nuclo 0.1.90 → 0.1.91

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"attributeManager.d.ts","sourceRoot":"","sources":["../../src/core/attributeManager.ts"],"names":[],"mappings":"AAiGA,wBAAgB,eAAe,CAAC,QAAQ,SAAS,cAAc,EAC7D,OAAO,EAAE,eAAe,CAAC,QAAQ,CAAC,EAClC,UAAU,EAAE,yBAAyB,CAAC,QAAQ,CAAC,EAC/C,cAAc,UAAO,GACpB,IAAI,CASN;AAED,OAAO,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"attributeManager.d.ts","sourceRoot":"","sources":["../../src/core/attributeManager.ts"],"names":[],"mappings":"AAoGA,wBAAgB,eAAe,CAAC,QAAQ,SAAS,cAAc,EAC7D,OAAO,EAAE,eAAe,CAAC,QAAQ,CAAC,EAClC,UAAU,EAAE,yBAAyB,CAAC,QAAQ,CAAC,EAC/C,cAAc,UAAO,GACpB,IAAI,CASN;AAED,OAAO,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"classNameMerger.d.ts","sourceRoot":"","sources":["../../src/core/classNameMerger.ts"],"names":[],"mappings":"AAIA,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAK3D;AAGD,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,WAAW,GAAG,OAAO,CAE7D;AAQD,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAUzE;AAGD,wBAAgB,sBAAsB,CAAC,EAAE,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAevF;AAGD,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI,CAchF"}
1
+ {"version":3,"file":"classNameMerger.d.ts","sourceRoot":"","sources":["../../src/core/classNameMerger.ts"],"names":[],"mappings":"AAIA,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAU3D;AAGD,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,WAAW,GAAG,OAAO,CAE7D;AAQD,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAYzE;AAGD,wBAAgB,sBAAsB,CAAC,EAAE,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAkBvF;AAGD,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI,CAgBhF"}
@@ -1 +1 @@
1
- {"version":3,"file":"tagRegistry.d.ts","sourceRoot":"","sources":["../../src/core/tagRegistry.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAGxE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,iBAAiB,EAAE,CAAC;AAmBlD,wBAAgB,yBAAyB,CAAC,MAAM,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAc,GAAG,IAAI,CAW5F"}
1
+ {"version":3,"file":"tagRegistry.d.ts","sourceRoot":"","sources":["../../src/core/tagRegistry.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAGxE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,iBAAiB,EAAE,CAAC;AAmBlD,wBAAgB,yBAAyB,CAAC,MAAM,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAc,GAAG,IAAI,CAe5F"}
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/list/runtime.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAkB,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAC5F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AA6BvD,wBAAgB,IAAI,CAAC,KAAK,EAAE,QAAQ,SAAS,cAAc,EACzD,OAAO,EAAE,WAAW,CAAC,KAAK,EAAE,QAAQ,CAAC,GACpC,IAAI,CAiFN;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,QAAQ,SAAS,cAAc,GAAG,cAAc,EACvF,aAAa,EAAE,iBAAiB,CAAC,KAAK,CAAC,EACvC,UAAU,EAAE,YAAY,CAAC,KAAK,EAAE,QAAQ,CAAC,EACzC,IAAI,EAAE,eAAe,CAAC,QAAQ,CAAC,GAC9B,WAAW,CAAC,KAAK,EAAE,QAAQ,CAAC,CA0B9B;AAED,wBAAgB,kBAAkB,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,CA6C5D"}
1
+ {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/list/runtime.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAkB,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAC5F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AA6BvD,wBAAgB,IAAI,CAAC,KAAK,EAAE,QAAQ,SAAS,cAAc,EACzD,OAAO,EAAE,WAAW,CAAC,KAAK,EAAE,QAAQ,CAAC,GACpC,IAAI,CAqFN;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,QAAQ,SAAS,cAAc,GAAG,cAAc,EACvF,aAAa,EAAE,iBAAiB,CAAC,KAAK,CAAC,EACvC,UAAU,EAAE,YAAY,CAAC,KAAK,EAAE,QAAQ,CAAC,EACzC,IAAI,EAAE,eAAe,CAAC,QAAQ,CAAC,GAC9B,WAAW,CAAC,KAAK,EAAE,QAAQ,CAAC,CA0B9B;AAED,wBAAgB,kBAAkB,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,CA+C5D"}
package/dist/nuclo.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";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 o(e){return r(e)&&"tagName"in e}function n(e){return"function"==typeof e}function s(e){return n(e)&&0===e.length}function i(e,t){void 0!==console&&console.error("nuclo: "+e,t)}const a="undefined"!=typeof window&&"undefined"!=typeof document,c=new WeakMap;function l(e,t,r){return function(o){if(!o||"function"!=typeof o.addEventListener)return;const n=o,s=new AbortController,a=function(r){try{t.call(n,r)}catch(t){i(`Error in '${e}' listener`,t)}},l="boolean"==typeof r?{capture:r,signal:s.signal}:{...r||{},signal:s.signal};n.addEventListener(e,a,l),function(e,t,r,o,n,s){let i=c.get(e);i||(i=new Map,c.set(e,i));let a=i.get(t);a||(a=new Set,i.set(t,a)),a.add({original:r,wrapped:o,options:n,controller:s})}(n,e,t,a,r,s)}}const d=new Set;function p(e,t){e._conditionalInfo=t,d.add(new WeakRef(e))}function u(e){for(const t of d)if(t.deref()===e){d.delete(t);break}}function m(e){return globalThis.document?document.createElement(e):null}function f(e,t){return globalThis.document?document.createElementNS(e,t):null}function y(e){return globalThis.document?document.createTextNode(e):null}function g(){return globalThis.document?document.createDocumentFragment():null}function h(e){if(e.nodeType===Node.ELEMENT_NODE){const t=e;!function(e){const t=c.get(e);if(t){for(const[r,o]of t)for(const t of o)t.controller?t.controller.abort():e.removeEventListener(r,t.wrapped,t.options);c.delete(e)}}(t),function(e){for(const[t,r]of T)if(t.deref()===e){T.delete(t);break}}(t),u(t)}else e.nodeType===Node.TEXT_NODE?function(e){for(const[t]of R)if(t.deref()===e){R.delete(t);break}}(e):e.nodeType===Node.COMMENT_NODE&&u(e);if(e.childNodes&&e.childNodes.length>0)for(let t=0;e.childNodes.length>t;t++)h(e.childNodes[t])}function b(e){if(!e?.parentNode)return!1;try{return h(e),e.parentNode.removeChild(e),!0}catch(e){return i("Failed to remove child node",e),!1}}function x(e){if(!a)return null;try{return document.createComment(e)}catch(e){return i("Failed to create comment node",e),null}}function P(e){return x(e)}function S(e,t="hidden"){try{return document.createComment(`conditional-${e}-${t}`)}catch(e){return i("Failed to create conditional comment",e),null}}function k(e){if(!a)throw Error("Cannot create comment in non-browser environment");const t=x(`${e}-${Math.random().toString(36).slice(2)}`);if(!t)throw Error("Failed to create comment");return t}function w(e){const t=x(e+"-end");if(!t)throw Error("Failed to create end comment");return{start:k(e+"-start"),end:t}}function v(e){return!!e&&("boolean"==typeof e.isConnected?e.isConnected:!(!a||"undefined"==typeof document)&&document.contains(e))}function C(e,t){if(!e?.parentNode)return!1;try{return e.parentNode.replaceChild(t,e),!0}catch(e){return i("Error replacing conditional node",e),!1}}const R=new Map,T=new Map,B={};let E=!1;function I(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[o,n]of T){const s=o.deref();if(void 0!==s){if(s===r){e=o,t=n;break}}else T.delete(o)}t&&e&&(v(r)?W(t):T.delete(e))}r=r.parentNode}}function N(e,t){let r;try{r=t.resolver()}catch(t){return void i("Failed to resolve reactive attribute: "+e,t)}const o=null===(n=r)||"object"!=typeof n;var n;if(!o||!Object.is(r,t.lastValue))try{t.applyValue(r),t.lastValue=o?r:B}catch(t){i("Failed to apply reactive attribute: "+e,t)}}function W(e){for(const[t,r]of e.attributeResolvers)N(t,r)}function A(e,t,r,o){if(!(e instanceof Element&&t&&"function"==typeof r))return void i("Invalid parameters for registerAttributeResolver");E||"undefined"!=typeof document&&"function"==typeof document.addEventListener&&(document.addEventListener("update",I,!0),E=!0);const n=function(e){for(const[t,r]of T){const o=t.deref();if(void 0!==o){if(o===e)return r}else T.delete(t)}const t={attributeResolvers:new Map};return T.set(new WeakRef(e),t),t}(e),s={resolver:r,applyValue:o,lastValue:B};n.attributeResolvers.set(t,s),N(t,s)}function M(e,t,r){try{return null==r||""===r?(e.style[t]="",!0):(e.style[t]=r+"",!0)}catch{return!1}}function L(e,t){if(e?.style&&t)for(const[r,o]of Object.entries(t))M(e,r,o)||i(`Failed to set style property '${r}'`)}const F="__nuclo_reactive_className__",j="__nuclo_static_className__";function D(e,t,r,o=!1){if(null==r)return;if("style"===t)return i=r,void((s=e)&&(n(i)?A(s,"style",i,function(e){L(s,e)}):L(s,i)));var s,i;const a=(r,o=!1)=>{if(null!=r)if("className"===t&&e instanceof HTMLElement&&o)!function(e,t){if(!t)return;const r=e.className;if(r&&r!==t){const o=new Set(r.split(" ").filter(function(e){return e}));t.split(" ").filter(function(e){return e}).forEach(function(e){o.add(e)}),e.className=Array.from(o).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(n(r)&&0===r.length){const o=r;"className"===t&&e instanceof HTMLElement?(function(e){e[j]||(e[j]=new Set(e.className.split(" ").filter(function(e){return e}))),e[F]=!0}(e),A(e,t+"",o,function(t){!function(e,t){const r=function(e){return e[j]}(e);if(r&&r.size>0&&t){const o=new Set(r);t.split(" ").filter(function(e){return e}).forEach(function(e){o.add(e)}),e.className=Array.from(o).join(" ")}else e.className=t||(r&&r.size>0?Array.from(r).join(" "):"")}(e,(t||"")+"")})):A(e,t+"",o,function(e){a(e,!1)})}else{if("className"===t&&e instanceof HTMLElement&&function(e){return!!e[F]}(e)){const t=(r||"")+"";if(t){!function(e,t){t&&(e[j]||(e[j]=new Set),t.split(" ").filter(function(e){return e}).forEach(function(t){e[j].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,o)}}function O(e,t,r=!0){if(t)for(const o of Object.keys(t))D(e,o,t[o],r&&"className"===o)}const z=new WeakMap;function V(o,a,c){if(null==a)return null;if(n(a)){if(s(a))try{let n=z.get(a);if(n||(n={value:a(),error:!1},z.set(a,n)),n.error)return _(c,function(){return""});const s=n.value;if(r(s)&&!t(s)&&"className"in s&&"string"==typeof s.className&&1===Object.keys(s).length){const e=a;return O(o,{className:function(){const t=e();return r(t)&&"className"in t&&"string"==typeof t.className?t.className:""}}),null}return e(s)&&null!=s?_(c,a,s):null}catch(e){return z.set(a,{value:void 0,error:!0}),i("Error evaluating reactive text function:",e),_(c,function(){return""})}const n=a(o,c);return null==n?null:e(n)?$(c,n):t(n)?n:(r(n)&&O(o,n),null)}const l=a;return e(l)?$(c,l):t(l)?l:(O(o,l),null)}function _(e,t,r){const o=g();if(!o)throw Error("Failed to create document fragment: document not available");const n=P(` text-${e} `);n&&o.appendChild(n);const s=function(e,t){if("function"!=typeof e){i("Invalid resolver provided to createReactiveTextNode");const e=y("");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){i("Failed to evaluate reactive text resolver",e),r=""}const o=void 0===r?"":r+"",n=y(o);if(!n)throw Error("Failed to create text node: document not available");return R.set(new WeakRef(n),{resolver:e,lastValue:o}),n}(t,r);return o.appendChild(s),o}function $(e,t){const r=g();if(!r)throw Error("Failed to create document fragment: document not available");const o=P(` text-${e} `);o&&r.appendChild(o);const n=y(t+"");return n&&r.appendChild(n),r}function G(e,t,r=0){if(!t||0===t.length)return{element:e,nextIndex:r,appended:0};let o=r,n=0;const s=e;for(let r=0;t.length>r;r+=1){const i=t[r];if(null==i)continue;const a=V(e,i,o);a&&(a.parentNode!==s&&s.appendChild(a),o+=1,n+=1)}return{element:e,nextIndex:o,appended:n}}function q(e,t){const r=m(e);return G(r,t,0),r}function H(e,t){const r=f("http://www.w3.org/2000/svg",e);if(!r)throw Error("Failed to create SVG element: "+e);return G(r,t,0),r}function X(e){return(...t)=>function(e,...t){return function(r,o){const n=m(e);return G(n,t,o),n}}(e,...t)}function U(e){return(...t)=>function(e,...t){return function(r,o){const n=f("http://www.w3.org/2000/svg",e);if(!n)throw Error("Failed to create SVG element: "+e);return G(n,t,o),n}}(e,...t)}const Y=["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"],J=["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"];function Q(e=globalThis){const t="__nuclo_tags_registered";e[t]||(J.forEach(t=>function(e,t){const r=t+"Svg";r in e||(e[r]=U(t))}(e,t)),Y.forEach(t=>function(e,t){t in e&&"function"!=typeof e[t]||(e[t]=X(t))}(e,t)),e[t]=!0)}const K=new Map;function Z(e,t,r){return function(e,t,r){if(n(e)){const n=e(t,r);return n&&o(n)?n:null}return e&&o(e)?e:null}(e.renderItem(t,r),e.host,r)}function ee(e){b(e.element),e.element=null,e.item=null}function te(e){const{host:t,startMarker:r,endMarker:o}=e,n=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(function(e){const t=a.get(e.item);t?t.push(e):a.set(e.item,[e])}),s.forEach(function(t,r){if(e.lastSyncedItems.length>r&&e.lastSyncedItems[r]===t){const o=e.records[r];if(o&&o.item===t){i.set(r,o);const e=a.get(t);e.splice(e.indexOf(o),1),0===e.length&&a.delete(t)}}});const c=[],l=new Set(e.records);let d=o;for(let t=s.length-1;t>=0;t--){const r=s[t];let o=i.get(t);if(!o){const e=a.get(r);e&&e.length>0&&(o=e.shift(),0===e.length&&a.delete(r))}if(o)l.delete(o);else{const n=Z(e,r,t);if(!n)continue;o={item:r,element:n}}c.unshift(o);const p=o.element;p.nextSibling!==d&&n.insertBefore(p,d),d=p}l.forEach(ee),e.records=c,e.lastSyncedItems=[...s],0===c.length&&(e.records=[],e.lastSyncedItems=[])}function re(e,t){return function(r){const o=function(e,t,r){const{start:o,end:n}=w("list"),s={itemsProvider:e,renderItem:t,startMarker:o,endMarker:n,records:[],host:r,lastSyncedItems:[]},i=r;i.appendChild(o),i.appendChild(n);const a={runtime:s};return K.set(new WeakRef(o),a),te(s),s}(e,t,r);return o.startMarker}}function oe(e,t){try{return e()}catch(e){if(t)return t(e),!1;throw e}}function ne(e,t){return"function"==typeof e?oe(e,t):!!e}function se(e,t,r,o){return n(e)?s(e)?(z.delete(e),V(t,e,r)):function(e,t,r){const o=e,n=o.appendChild.bind(o),s=o.insertBefore.bind(o);o.appendChild=function(e){return s(e,t)};try{return r()}finally{o.appendChild=n}}(t,o,()=>{const o=V(t,e,r);return o&&!o.parentNode?o:null}):V(t,e,r)}const ie=new Map;function ae(e){const{groups:t,elseContent:r,host:o,index:n,endMarker:s}=e,a=function(e,t){for(let t=0;e.length>t;t++)if(ne(e[t].condition))return t;return t.length>0?-1:null}(t,r);if(a===e.activeIndex)return;if(function(e,t){let r=e.nextSibling;for(;r&&r!==t;){const e=r.nextSibling;b(r),r=e}}(e.startMarker,e.endMarker),e.activeIndex=a,null===a)return;const c=function(e,t,r,o){const n=[];for(const s of e){const e=se(s,t,r,o);e&&n.push(e)}return n}(0>a?r:t[a].content,o,n,s);!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 i("Failed to insert node before reference",e),!1}}(r,e,t)})}(c,s)}class ce{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(!a)return P("when-ssr")||null;const{start:r,end:o}=w("when"),n={startMarker:r,endMarker:o,host:e,index:t,groups:[...this.groups],elseContent:[...this.elseContent],activeIndex:null,update:function(){ae(n)}};!function(e){const t={runtime:e};ie.set(new WeakRef(e.startMarker),t)}(n);const s=e;return s.appendChild(r),s.appendChild(o),ae(n),r}}function le(e){return Object.assign(function(t,r){return e.render(t,r)},{when:function(t,...r){return e.when(t,...r),le(e)},else:function(...t){return e.else(...t),le(e)}})}function de(e,...t){return le(new ce(e,...t))}function pe(e){const t=function(e){return e._conditionalInfo??null}(e);if(!t)return;const r=oe(t.condition,e=>{i("Error evaluating conditional condition",e)}),o=e.nodeType===Node.ELEMENT_NODE;if(r&&!o){const r=function(e){try{return e.isSvg?H(e.tagName,e.modifiers):q(e.tagName,e.modifiers)}catch(t){if(i(`Error applying modifiers in conditional element "${e.tagName}"`,t),e.isSvg){const t=f("http://www.w3.org/2000/svg",e.tagName);if(!t)throw Error("Failed to create SVG element: "+e.tagName);return t}const r=m(e.tagName);if(!r)throw Error("Failed to create element: "+e.tagName);return r}}(t);p(r,t),C(e,r)}else if(!r&&o){const r=S(t.tagName);r&&(p(r,t),C(e,r))}}const ue=new Map;function me(e){const t=[],r=new Set;for(const o of e){if("string"!=typeof o)continue;const e=o.trim();e&&(r.has(e)||(r.add(e),t.push(e)))}return t}function fe(e,t){let r=ue.get(e);r||(r=new Set,ue.set(e,r)),r.add(new WeakRef(t))}function ye(...e){const t=me(e);return function(e){if(e instanceof Element)for(const r of t)fe(r,e)}}const ge=[function(e){const t=[];for(const[r,o]of K){const n=r.deref();void 0!==n&&v(n)&&v(o.runtime.endMarker)?e&&!e.contains(n)||te(o.runtime):(o.runtime.records&&(o.runtime.records.forEach(e=>{e.element=null,e.item=null}),o.runtime.records=[]),t.push(r))}for(const e of t)K.delete(e)},function(e){const t=[];for(const[r,o]of ie){const n=r.deref();if(void 0!==n)if(v(n)&&v(o.runtime.endMarker)){if(!e||e.contains(n))try{o.runtime.update()}catch{t.push(r)}}else t.push(r);else t.push(r)}for(const e of t)ie.delete(e)},function(e){if(a)try{const t=function(){const e=[],t=[];for(const r of d){const o=r.deref();void 0===o?t.push(r):e.push(o)}for(const e of t)d.delete(e);return e}();for(const r of t)r.isConnected?e&&!e.contains(r)||pe(r):u(r)}catch(e){i("Error during conditional elements update",e)}},function(e){const t=[];for(const[r,o]of T){const n=r.deref();void 0!==n&&v(n)?e&&!e.contains(n)||W(o):t.push(r)}for(const e of t)T.delete(e);t.length>0&&function(){const e=[];for(const[t]of T)void 0===t.deref()&&e.push(t);for(const t of e)T.delete(t)}()},function(e){const t=[];for(const[r,o]of R){const n=r.deref();if(void 0===n){t.push(r);continue}if(!v(n)){t.push(r);continue}if(e&&!e.contains(n))continue;let s;try{s=o.resolver()}catch(e){i("Failed to update reactive text node",e),s=void 0}const a=void 0===s?"":s+"";a!==o.lastValue&&(n.textContent=a,o.lastValue=a)}for(const e of t)R.delete(e);t.length>0&&function(){const e=[];for(const[t]of R)void 0===t.deref()&&e.push(t);for(const t of e)R.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){i("Error dispatching global update event",e)}}];function he(...e){let t;if(e.length>0){const r=function(e){const t=me(e);if(0===t.length)return[];const r=new Set;for(const e of t){const t=ue.get(e);if(!t)continue;const o=[];for(const e of t){const t=e.deref();void 0!==t&&v(t)?r.add(t):o.push(e)}for(const e of o)t.delete(e);0===t.size&&ue.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)}function be(e,t,r=0){const o=e(t||document.body,r);return(t||document.body).appendChild(o),o}const xe=[{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"}],Pe=["bold","center","flex"],Se=new Map;function ke(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 we(e){return Object.entries(e).sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>`${e}:${t}`).join("|")}function ve(e,t,r,o="media",n){let s=document.querySelector("#nuclo-styles");s||(s=m("style"),s.id="nuclo-styles",document.head.appendChild(s));const i=Object.entries(t).map(function([e,t]){return`${e}: ${t}`}).join("; ");if(n){const r=`.${e}${n}`,o=s.sheet;if(!o)return;const a=o.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,o]of Object.entries(t))e.setProperty(r,o)}else o.insertRule(`${r} { ${i} }`,d);return}if(r){const n=s.sheet;if(!n)return;const a=n.cssRules,c=a.length;let l=null;const d=e=>"media"===o&&e instanceof CSSMediaRule?e.media.mediaText===r:("container"===o&&e instanceof CSSContainerRule||"supports"===o&&e instanceof CSSSupportsRule)&&e.conditionText===r,p=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(p(r)){e=t+1;break}if(r instanceof CSSStyleRule){e=t+1;break}}n.insertRule(`${"media"===o?"@media":"container"===o?"@container":"supports"===o?"@supports":"@media"} ${r} {}`,e),l=n.cssRules[e]}let u=null;for(const t of Array.from(l.cssRules))if(t instanceof CSSStyleRule&&t.selectorText==="."+e){u=t;break}if(u){const e=u.style;e.cssText="";for(const[r,o]of Object.entries(t))e.setProperty(r,o)}else l.insertRule(`.${e} { ${i} }`,l.cssRules.length)}else{const r=s.sheet;if(!r)return;let o=null,n=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){o=r,n=t;break}a(r)||(n=t+1)}if(o){const e=o.style;e.cssText="";for(const[r,o]of Object.entries(t))e.setProperty(r,o)}else r.insertRule(`.${e} { ${i} }`,n)}}function Ce(e,t){ve(e,t)}class Re{styles={};getStyles(){return{...this.styles}}getClassName(e="",t){return function(e,t="",r){const o=we(e),n=t?`${t}:${o}`:o,s=function(e){return Se.get(e)}(n);if(s){const t=s;return function(e,t,r="media"){const o=document.querySelector("#nuclo-styles");if(!o||!o.sheet)return!1;if(t){const n=Array.from(o.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!!n&&Array.from(n.cssRules).some(function(t){return t instanceof CSSStyleRule&&t.selectorText==="."+e})}return Array.from(o.sheet.cssRules||[]).some(function(t){return t instanceof CSSStyleRule&&t.selectorText==="."+e})}(t,r)||ve(t,e,r),t}const i=ke(o),a=t?`n${t}-${i}`:"n"+i;return function(e,t){Se.set(e,t)}(n,a),ve(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 Te(e){return e.isShorthand?()=>(new Re).add(e.cssProperty,e.defaultValue||""):t=>(new Re).add(e.cssProperty,t||"")}!function(){const e=Re.prototype;for(const t of xe)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 Be={};for(const e of xe)Be[e.name]=Te(e);for(const e of Pe)"bold"===e||"center"===e?Be[e]=()=>(new Re)[e]():"flex"===e&&(Be[e]=e=>(new Re).flex(e));const{display:Ee,flex:Ie,grid:Ne,bg:We,color:Ae,accentColor:Me,fontSize:Le,fontWeight:Fe,fontFamily:je,lineHeight:De,letterSpacing:Oe,textAlign:ze,textDecoration:Ve,bold:_e,fontStyle:$e,fontVariant:Ge,fontStretch:qe,textTransform:He,textIndent:Xe,textOverflow:Ue,textShadow:Ye,whiteSpace:Je,wordSpacing:Qe,wordWrap:Ke,overflowWrap:Ze,textAlignLast:et,textJustify:tt,textDecorationLine:rt,textDecorationColor:ot,textDecorationStyle:nt,textDecorationThickness:st,textUnderlineOffset:it,verticalAlign:at,position:ct,padding:lt,paddingTop:dt,paddingRight:pt,paddingBottom:ut,paddingLeft:mt,margin:ft,marginTop:yt,marginRight:gt,marginBottom:ht,marginLeft:bt,width:xt,height:Pt,minWidth:St,maxWidth:kt,minHeight:wt,maxHeight:vt,boxSizing:Ct,top:Rt,right:Tt,bottom:Bt,left:Et,zIndex:It,flexDirection:Nt,alignItems:Wt,justifyContent:At,center:Mt,gap:Lt,flexWrap:Ft,flexGrow:jt,flexShrink:Dt,flexBasis:Ot,alignSelf:zt,alignContent:Vt,justifySelf:_t,justifyItems:$t,gridTemplateColumns:Gt,gridTemplateRows:qt,gridTemplateAreas:Ht,gridColumn:Xt,gridRow:Ut,gridColumnStart:Yt,gridColumnEnd:Jt,gridRowStart:Qt,gridRowEnd:Kt,gridArea:Zt,gridAutoColumns:er,gridAutoRows:tr,gridAutoFlow:rr,border:or,borderTop:nr,borderRight:sr,borderBottom:ir,borderLeft:ar,borderWidth:cr,borderStyle:lr,borderColor:dr,borderTopWidth:pr,borderRightWidth:ur,borderBottomWidth:mr,borderLeftWidth:fr,borderTopStyle:yr,borderRightStyle:gr,borderBottomStyle:hr,borderLeftStyle:br,borderTopColor:xr,borderRightColor:Pr,borderBottomColor:Sr,borderLeftColor:kr,borderRadius:wr,borderTopLeftRadius:vr,borderTopRightRadius:Cr,borderBottomLeftRadius:Rr,borderBottomRightRadius:Tr,outline:Br,outlineWidth:Er,outlineStyle:Ir,outlineColor:Nr,outlineOffset:Wr,backgroundColor:Ar,backgroundImage:Mr,backgroundRepeat:Lr,backgroundPosition:Fr,backgroundSize:jr,backgroundAttachment:Dr,backgroundClip:Or,backgroundOrigin:zr,boxShadow:Vr,opacity:_r,transition:$r,transitionProperty:Gr,transitionDuration:qr,transitionTimingFunction:Hr,transitionDelay:Xr,transform:Ur,transformOrigin:Yr,transformStyle:Jr,perspective:Qr,perspectiveOrigin:Kr,backfaceVisibility:Zr,animation:eo,animationName:to,animationDuration:ro,animationTimingFunction:oo,animationDelay:no,animationIterationCount:so,animationDirection:io,animationFillMode:ao,animationPlayState:co,filter:lo,backdropFilter:po,overflow:uo,overflowX:mo,overflowY:fo,visibility:yo,objectFit:go,objectPosition:ho,listStyle:bo,listStyleType:xo,listStylePosition:Po,listStyleImage:So,borderCollapse:ko,borderSpacing:wo,captionSide:vo,emptyCells:Co,tableLayout:Ro,content:To,quotes:Bo,counterReset:Eo,counterIncrement:Io,appearance:No,userSelect:Wo,pointerEvents:Ao,resize:Mo,scrollBehavior:Lo,clip:Fo,clipPath:jo,isolation:Do,mixBlendMode:Oo,willChange:zo,contain:Vo,pageBreakBefore:_o,pageBreakAfter:$o,pageBreakInside:Go,breakBefore:qo,breakAfter:Ho,breakInside:Xo,orphans:Uo,widows:Yo,columnCount:Jo,columnFill:Qo,columnGap:Ko,columnRule:Zo,columnRuleColor:en,columnRuleStyle:tn,columnRuleWidth:rn,columnSpan:on,columnWidth:nn,columns:sn,cursor:an}=Be,cn={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 ln(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 dn(e){return e in cn}function pn(e){return cn[e]}const un=new Map;function mn(e){const t=Array.isArray(e)?e:Object.entries(e),r=new Map;for(const[e,o]of t){let t=un.get(o);t||(t=ln(o),un.set(o,t)),r.set(e,t)}return function(e,o){let n,s;void 0!==o?(n=e,s=o):e instanceof Re?(n=e,s=void 0):(n=void 0,s=e);const i=null!=s&&Object.keys(s).length>0;if(!n&&!i)return{className:""};if(i){const e=[],o=new Set;for(const[n]of t){const t=s?.[n];t&&(o.add(n),e.push({queryName:n,query:r.get(n),styles:t.getStyles()}))}for(const[t,r]of Object.entries(s??{}))!o.has(t)&&dn(t)&&r instanceof Re&&e.push({queryName:t,query:{type:"pseudo",pseudoClass:pn(t)},styles:r.getStyles()});if(0===e.length&&!n)return{className:""};const i=[];i.length=e.length+(n?1:0);let a=0;if(n){const e=n.getStyles();i[a++]="default:"+we(e)}for(const{queryName:t,styles:r}of e){const e=we(r);i[a++]=`${t}:${e}`}const c="n"+ke(i.sort().join("||"));let l={};n&&(l={...n.getStyles()},ve(c,l));const d=[],p=[];for(const t of e)"pseudo"===t.query.type?p.push(t):d.push(t);for(const{query:e,styles:t}of d)l={...l,...t},ve(c,l,e.condition,e.type);for(const{query:e,styles:t}of p)ve(c,t,void 0,"pseudo",e.pseudoClass);return{className:c}}return{className:n.getClassName()}}}const fn=mn;var yn=Object.freeze({__proto__:null,StyleBuilder:Re,accentColor:Me,alignContent:Vt,alignItems:Wt,alignSelf:zt,animation:eo,animationDelay:no,animationDirection:io,animationDuration:ro,animationFillMode:ao,animationIterationCount:so,animationName:to,animationPlayState:co,animationTimingFunction:oo,appearance:No,backdropFilter:po,backfaceVisibility:Zr,backgroundAttachment:Dr,backgroundClip:Or,backgroundColor:Ar,backgroundImage:Mr,backgroundOrigin:zr,backgroundPosition:Fr,backgroundRepeat:Lr,backgroundSize:jr,bg:We,bold:_e,border:or,borderBottom:ir,borderBottomColor:Sr,borderBottomLeftRadius:Rr,borderBottomRightRadius:Tr,borderBottomStyle:hr,borderBottomWidth:mr,borderCollapse:ko,borderColor:dr,borderLeft:ar,borderLeftColor:kr,borderLeftStyle:br,borderLeftWidth:fr,borderRadius:wr,borderRight:sr,borderRightColor:Pr,borderRightStyle:gr,borderRightWidth:ur,borderSpacing:wo,borderStyle:lr,borderTop:nr,borderTopColor:xr,borderTopLeftRadius:vr,borderTopRightRadius:Cr,borderTopStyle:yr,borderTopWidth:pr,borderWidth:cr,bottom:Bt,boxShadow:Vr,boxSizing:Ct,breakAfter:Ho,breakBefore:qo,breakInside:Xo,captionSide:vo,center:Mt,clip:Fo,clipPath:jo,color:Ae,columnCount:Jo,columnFill:Qo,columnGap:Ko,columnRule:Zo,columnRuleColor:en,columnRuleStyle:tn,columnRuleWidth:rn,columnSpan:on,columnWidth:nn,columns:sn,contain:Vo,content:To,counterIncrement:Io,counterReset:Eo,createBreakpoints:fn,createCSSClass:Ce,createStyleQueries:mn,cursor:an,display:Ee,emptyCells:Co,filter:lo,flex:Ie,flexBasis:Ot,flexDirection:Nt,flexGrow:jt,flexShrink:Dt,flexWrap:Ft,fontFamily:je,fontSize:Le,fontStretch:qe,fontStyle:$e,fontVariant:Ge,fontWeight:Fe,gap:Lt,grid:Ne,gridArea:Zt,gridAutoColumns:er,gridAutoFlow:rr,gridAutoRows:tr,gridColumn:Xt,gridColumnEnd:Jt,gridColumnStart:Yt,gridRow:Ut,gridRowEnd:Kt,gridRowStart:Qt,gridTemplateAreas:Ht,gridTemplateColumns:Gt,gridTemplateRows:qt,height:Pt,isolation:Do,justifyContent:At,justifyItems:$t,justifySelf:_t,left:Et,letterSpacing:Oe,lineHeight:De,listStyle:bo,listStyleImage:So,listStylePosition:Po,listStyleType:xo,margin:ft,marginBottom:ht,marginLeft:bt,marginRight:gt,marginTop:yt,maxHeight:vt,maxWidth:kt,minHeight:wt,minWidth:St,mixBlendMode:Oo,objectFit:go,objectPosition:ho,opacity:_r,orphans:Uo,outline:Br,outlineColor:Nr,outlineOffset:Wr,outlineStyle:Ir,outlineWidth:Er,overflow:uo,overflowWrap:Ze,overflowX:mo,overflowY:fo,padding:lt,paddingBottom:ut,paddingLeft:mt,paddingRight:pt,paddingTop:dt,pageBreakAfter:$o,pageBreakBefore:_o,pageBreakInside:Go,perspective:Qr,perspectiveOrigin:Kr,pointerEvents:Ao,position:ct,quotes:Bo,resize:Mo,right:Tt,scrollBehavior:Lo,tableLayout:Ro,textAlign:ze,textAlignLast:et,textDecoration:Ve,textDecorationColor:ot,textDecorationLine:rt,textDecorationStyle:nt,textDecorationThickness:st,textIndent:Xe,textJustify:tt,textOverflow:Ue,textShadow:Ye,textTransform:He,textUnderlineOffset:it,top:Rt,transform:Ur,transformOrigin:Yr,transformStyle:Jr,transition:$r,transitionDelay:Xr,transitionDuration:qr,transitionProperty:Gr,transitionTimingFunction:Hr,userSelect:Wo,verticalAlign:at,visibility:yo,whiteSpace:Je,widows:Yo,width:xt,willChange:zo,wordSpacing:Qe,wordWrap:Ke,zIndex:It});function gn(){Q();const e=globalThis;e.list=re,e.update=he,e.when=de,e.on=l,e.scope=ye,e.render=be;for(const[t,r]of Object.entries(yn))try{e[t]=r}catch{}}gn(),exports.HTML_TAGS=Y,exports.SELF_CLOSING_TAGS=["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"],exports.SVG_TAGS=J,exports.StyleBuilder=Re,exports.accentColor=Me,exports.alignContent=Vt,exports.alignItems=Wt,exports.alignSelf=zt,exports.animation=eo,exports.animationDelay=no,exports.animationDirection=io,exports.animationDuration=ro,exports.animationFillMode=ao,exports.animationIterationCount=so,exports.animationName=to,exports.animationPlayState=co,exports.animationTimingFunction=oo,exports.appearance=No,exports.appendChildren=function(e,...t){return e?(t.forEach(function(t){if(null!=t){let r;if("string"==typeof t){const e=function(e){if(!a)return null;try{return y(e+"")}catch(e){return i("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 i("Failed to append child node",e),!1}}(e,r)}}),e):e},exports.applyAttributes=O,exports.applyNodeModifier=V,exports.backdropFilter=po,exports.backfaceVisibility=Zr,exports.backgroundAttachment=Dr,exports.backgroundClip=Or,exports.backgroundColor=Ar,exports.backgroundImage=Mr,exports.backgroundOrigin=zr,exports.backgroundPosition=Fr,exports.backgroundRepeat=Lr,exports.backgroundSize=jr,exports.bg=We,exports.bold=_e,exports.border=or,exports.borderBottom=ir,exports.borderBottomColor=Sr,exports.borderBottomLeftRadius=Rr,exports.borderBottomRightRadius=Tr,exports.borderBottomStyle=hr,exports.borderBottomWidth=mr,exports.borderCollapse=ko,exports.borderColor=dr,exports.borderLeft=ar,exports.borderLeftColor=kr,exports.borderLeftStyle=br,exports.borderLeftWidth=fr,exports.borderRadius=wr,exports.borderRight=sr,exports.borderRightColor=Pr,exports.borderRightStyle=gr,exports.borderRightWidth=ur,exports.borderSpacing=wo,exports.borderStyle=lr,exports.borderTop=nr,exports.borderTopColor=xr,exports.borderTopLeftRadius=vr,exports.borderTopRightRadius=Cr,exports.borderTopStyle=yr,exports.borderTopWidth=pr,exports.borderWidth=cr,exports.bottom=Bt,exports.boxShadow=Vr,exports.boxSizing=Ct,exports.breakAfter=Ho,exports.breakBefore=qo,exports.breakInside=Xo,exports.captionSide=vo,exports.center=Mt,exports.clip=Fo,exports.clipPath=jo,exports.color=Ae,exports.columnCount=Jo,exports.columnFill=Qo,exports.columnGap=Ko,exports.columnRule=Zo,exports.columnRuleColor=en,exports.columnRuleStyle=tn,exports.columnRuleWidth=rn,exports.columnSpan=on,exports.columnWidth=nn,exports.columns=sn,exports.contain=Vo,exports.content=To,exports.counterIncrement=Io,exports.counterReset=Eo,exports.createBreakpoints=fn,exports.createCSSClass=Ce,exports.createComment=P,exports.createConditionalComment=S,exports.createHtmlElementWithModifiers=q,exports.createHtmlTagBuilder=X,exports.createStyleQueries=mn,exports.createSvgElementWithModifiers=H,exports.createSvgTagBuilder=U,exports.cursor=an,exports.display=Ee,exports.emptyCells=Co,exports.filter=lo,exports.flex=Ie,exports.flexBasis=Ot,exports.flexDirection=Nt,exports.flexGrow=jt,exports.flexShrink=Dt,exports.flexWrap=Ft,exports.fontFamily=je,exports.fontSize=Le,exports.fontStretch=qe,exports.fontStyle=$e,exports.fontVariant=Ge,exports.fontWeight=Fe,exports.gap=Lt,exports.grid=Ne,exports.gridArea=Zt,exports.gridAutoColumns=er,exports.gridAutoFlow=rr,exports.gridAutoRows=tr,exports.gridColumn=Xt,exports.gridColumnEnd=Jt,exports.gridColumnStart=Yt,exports.gridRow=Ut,exports.gridRowEnd=Kt,exports.gridRowStart=Qt,exports.gridTemplateAreas=Ht,exports.gridTemplateColumns=Gt,exports.gridTemplateRows=qt,exports.height=Pt,exports.initializeRuntime=gn,exports.isBoolean=function(e){return"boolean"==typeof e},exports.isBrowser=a,exports.isFunction=n,exports.isNode=t,exports.isObject=r,exports.isPrimitive=e,exports.isTagLike=o,exports.isZeroArityFunction=s,exports.isolation=Do,exports.justifyContent=At,exports.justifyItems=$t,exports.justifySelf=_t,exports.left=Et,exports.letterSpacing=Oe,exports.lineHeight=De,exports.list=re,exports.listStyle=bo,exports.listStyleImage=So,exports.listStylePosition=Po,exports.listStyleType=xo,exports.margin=ft,exports.marginBottom=ht,exports.marginLeft=bt,exports.marginRight=gt,exports.marginTop=yt,exports.maxHeight=vt,exports.maxWidth=kt,exports.minHeight=wt,exports.minWidth=St,exports.mixBlendMode=Oo,exports.objectFit=go,exports.objectPosition=ho,exports.on=l,exports.opacity=_r,exports.orphans=Uo,exports.outline=Br,exports.outlineColor=Nr,exports.outlineOffset=Wr,exports.outlineStyle=Ir,exports.outlineWidth=Er,exports.overflow=uo,exports.overflowWrap=Ze,exports.overflowX=mo,exports.overflowY=fo,exports.padding=lt,exports.paddingBottom=ut,exports.paddingLeft=mt,exports.paddingRight=pt,exports.paddingTop=dt,exports.pageBreakAfter=$o,exports.pageBreakBefore=_o,exports.pageBreakInside=Go,exports.perspective=Qr,exports.perspectiveOrigin=Kr,exports.pointerEvents=Ao,exports.position=ct,exports.quotes=Bo,exports.registerGlobalTagBuilders=Q,exports.render=be,exports.replaceNodeSafely=C,exports.resize=Mo,exports.right=Tt,exports.scope=ye,exports.scrollBehavior=Lo,exports.tableLayout=Ro,exports.textAlign=ze,exports.textAlignLast=et,exports.textDecoration=Ve,exports.textDecorationColor=ot,exports.textDecorationLine=rt,exports.textDecorationStyle=nt,exports.textDecorationThickness=st,exports.textIndent=Xe,exports.textJustify=tt,exports.textOverflow=Ue,exports.textShadow=Ye,exports.textTransform=He,exports.textUnderlineOffset=it,exports.top=Rt,exports.transform=Ur,exports.transformOrigin=Yr,exports.transformStyle=Jr,exports.transition=$r,exports.transitionDelay=Xr,exports.transitionDuration=qr,exports.transitionProperty=Gr,exports.transitionTimingFunction=Hr,exports.update=he,exports.userSelect=Wo,exports.verticalAlign=at,exports.visibility=yo,exports.when=de,exports.whiteSpace=Je,exports.widows=Yo,exports.width=xt,exports.willChange=zo,exports.wordSpacing=Qe,exports.wordWrap=Ke,exports.zIndex=It;
1
+ "use strict";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 o(e){return r(e)&&"tagName"in e}function n(e){return"function"==typeof e}function s(e){return n(e)&&0===e.length}function i(e,t){void 0!==console&&console.error("nuclo: "+e,t)}const a="undefined"!=typeof window&&"undefined"!=typeof document,c=new WeakMap;function l(e,t,r){return function(o){if(!o||"function"!=typeof o.addEventListener)return;const n=o,s=new AbortController,a=function(r){try{t.call(n,r)}catch(t){i(`Error in '${e}' listener`,t)}},l="boolean"==typeof r?{capture:r,signal:s.signal}:{...r||{},signal:s.signal};n.addEventListener(e,a,l),function(e,t,r,o,n,s){let i=c.get(e);i||(i=new Map,c.set(e,i));let a=i.get(t);a||(a=new Set,i.set(t,a)),a.add({original:r,wrapped:o,options:n,controller:s})}(n,e,t,a,r,s)}}const d=new Set;function p(e,t){e._conditionalInfo=t,d.add(new WeakRef(e))}function u(e){for(const t of d)if(t.deref()===e){d.delete(t);break}}function m(e){return globalThis.document?document.createElement(e):null}function f(e,t){return globalThis.document?document.createElementNS(e,t):null}function y(e){return globalThis.document?document.createTextNode(e):null}function g(){return globalThis.document?document.createDocumentFragment():null}function h(e,t){try{return e.appendChild(t),!0}catch(e){return i("Failed to append child node",e),!1}}function b(e){if(e.nodeType===Node.ELEMENT_NODE){const t=e;!function(e){const t=c.get(e);if(t){for(const[r,o]of t)for(const t of o)t.controller?t.controller.abort():e.removeEventListener(r,t.wrapped,t.options);c.delete(e)}}(t),function(e){for(const[t,r]of N)if(t.deref()===e){N.delete(t);break}}(t),u(t)}else e.nodeType===Node.TEXT_NODE?function(e){for(const[t]of I)if(t.deref()===e){I.delete(t);break}}(e):e.nodeType===Node.COMMENT_NODE&&u(e);if(e.childNodes&&e.childNodes.length>0)for(let t=0;e.childNodes.length>t;t++)b(e.childNodes[t])}function x(e){if(!e?.parentNode)return!1;try{return b(e),e.parentNode.removeChild(e),!0}catch(e){return i("Failed to remove child node",e),!1}}function P(e,t,r){try{return e.insertBefore(t,r),!0}catch(e){return i("Failed to insert node before reference",e),!1}}function S(e){if(!a)return null;try{return y(e+"")}catch(e){return i("Failed to create text node",e),null}}function k(e){if(!a)return null;try{return document.createComment(e)}catch(e){return i("Failed to create comment node",e),null}}function w(e){return k(e)}function v(e,t="hidden"){try{return document.createComment(`conditional-${e}-${t}`)}catch(e){return i("Failed to create conditional comment",e),null}}function C(e){if(!a)throw Error("Cannot create comment in non-browser environment");const t=k(`${e}-${Math.random().toString(36).slice(2)}`);if(!t)throw Error("Failed to create comment");return t}function R(e){const t=k(e+"-end");if(!t)throw Error("Failed to create end comment");return{start:C(e+"-start"),end:t}}function T(e){return!!e&&("boolean"==typeof e.isConnected?e.isConnected:!(!a||"undefined"==typeof document)&&document.contains(e))}function B(e,t){if(!e?.parentNode)return!1;try{return e.parentNode.replaceChild(t,e),!0}catch(e){return i("Error replacing conditional node",e),!1}}const I=new Map,N=new Map,E={};let W=!1;function A(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[o,n]of N){const s=o.deref();if(void 0!==s){if(s===r){e=o,t=n;break}}else N.delete(o)}t&&e&&(T(r)?L(t):N.delete(e))}r=r.parentNode}}function M(e,t){let r;try{r=t.resolver()}catch(t){return void i("Failed to resolve reactive attribute: "+e,t)}const o=null===(n=r)||"object"!=typeof n;var n;if(!o||!Object.is(r,t.lastValue))try{t.applyValue(r),t.lastValue=o?r:E}catch(t){i("Failed to apply reactive attribute: "+e,t)}}function L(e){for(const[t,r]of e.attributeResolvers)M(t,r)}function F(e,t,r,o){if(!(e instanceof Element&&t&&"function"==typeof r))return void i("Invalid parameters for registerAttributeResolver");W||"undefined"!=typeof document&&"function"==typeof document.addEventListener&&(document.addEventListener("update",A,!0),W=!0);const n=function(e){for(const[t,r]of N){const o=t.deref();if(void 0!==o){if(o===e)return r}else N.delete(t)}const t={attributeResolvers:new Map};return N.set(new WeakRef(e),t),t}(e),s={resolver:r,applyValue:o,lastValue:E};n.attributeResolvers.set(t,s),M(t,s)}function j(e,t,r){try{return null==r||""===r?(e.style[t]="",!0):(e.style[t]=r+"",!0)}catch{return!1}}function D(e,t){if(e?.style&&t)for(const[r,o]of Object.entries(t))j(e,r,o)||i(`Failed to set style property '${r}'`)}const O="__nuclo_reactive_className__",z="__nuclo_static_className__";function V(e,t,r,o=!1){if(null==r)return;if("style"===t)return i=r,void((s=e)&&(n(i)?F(s,"style",i,function(e){D(s,e)}):D(s,i)));var s,i;const a=(r,o=!1)=>{if(null!=r)if("className"===t&&e instanceof HTMLElement&&o)!function(e,t){if(!t)return;const r=e.className;if(r&&r!==t){const o=new Set(r.split(" ").filter(function(e){return e})),n=t.split(" ").filter(function(e){return e});for(let e=0;n.length>e;e++)o.add(n[e]);e.className=Array.from(o).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(n(r)&&0===r.length){const o=r;"className"===t&&e instanceof HTMLElement?(function(e){if(!e[z]){const t=e.className.split(" ").filter(function(e){return e}),r=new Set;for(let e=0;t.length>e;e++)r.add(t[e]);e[z]=r}e[O]=!0}(e),F(e,t+"",o,function(t){!function(e,t){const r=function(e){return e[z]}(e);if(r&&r.size>0&&t){const o=new Set(r),n=t.split(" ").filter(function(e){return e});for(let e=0;n.length>e;e++)o.add(n[e]);e.className=Array.from(o).join(" ")}else e.className=t||(r&&r.size>0?Array.from(r).join(" "):"")}(e,(t||"")+"")})):F(e,t+"",o,function(e){a(e,!1)})}else{if("className"===t&&e instanceof HTMLElement&&function(e){return!!e[O]}(e)){const t=(r||"")+"";if(t){!function(e,t){if(!t)return;e[z]||(e[z]=new Set);const r=t.split(" ").filter(function(e){return e}),o=e[z];for(let e=0;r.length>e;e++)o.add(r[e])}(e,t);const r=new Set(e.className.split(" ").filter(function(e){return e})),o=t.split(" ").filter(function(e){return e});for(let e=0;o.length>e;e++)r.add(o[e]);e.className=Array.from(r).join(" ")}return}a(r,o)}}function _(e,t,r=!0){if(t)for(const o of Object.keys(t))V(e,o,t[o],r&&"className"===o)}const $=new WeakMap;function G(o,a,c){if(null==a)return null;if(n(a)){if(s(a))try{let n=$.get(a);if(n||(n={value:a(),error:!1},$.set(a,n)),n.error)return q(c,function(){return""});const s=n.value;if(r(s)&&!t(s)&&"className"in s&&"string"==typeof s.className&&1===Object.keys(s).length){const e=a;return _(o,{className:function(){const t=e();return r(t)&&"className"in t&&"string"==typeof t.className?t.className:""}}),null}return e(s)&&null!=s?q(c,a,s):null}catch(e){return $.set(a,{value:void 0,error:!0}),i("Error evaluating reactive text function:",e),q(c,function(){return""})}const n=a(o,c);return null==n?null:e(n)?H(c,n):t(n)?n:(r(n)&&_(o,n),null)}const l=a;return e(l)?H(c,l):t(l)?l:(_(o,l),null)}function q(e,t,r){const o=g();if(!o)throw Error("Failed to create document fragment: document not available");const n=w(` text-${e} `);n&&o.appendChild(n);const s=function(e,t){if("function"!=typeof e){i("Invalid resolver provided to createReactiveTextNode");const e=y("");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){i("Failed to evaluate reactive text resolver",e),r=""}const o=void 0===r?"":r+"",n=y(o);if(!n)throw Error("Failed to create text node: document not available");return I.set(new WeakRef(n),{resolver:e,lastValue:o}),n}(t,r);return o.appendChild(s),o}function H(e,t){const r=g();if(!r)throw Error("Failed to create document fragment: document not available");const o=w(` text-${e} `);o&&r.appendChild(o);const n=y(t+"");return n&&r.appendChild(n),r}function X(e,t,r=0){if(!t||0===t.length)return{element:e,nextIndex:r,appended:0};let o=r,n=0;const s=e;for(let r=0;t.length>r;r+=1){const i=t[r];if(null==i)continue;const a=G(e,i,o);a&&(a.parentNode!==s&&s.appendChild(a),o+=1,n+=1)}return{element:e,nextIndex:o,appended:n}}function U(e,t){const r=m(e);return X(r,t,0),r}function Y(e,t){const r=f("http://www.w3.org/2000/svg",e);if(!r)throw Error("Failed to create SVG element: "+e);return X(r,t,0),r}function J(e){return(...t)=>function(e,...t){return function(r,o){const n=m(e);return X(n,t,o),n}}(e,...t)}function Q(e){return(...t)=>function(e,...t){return function(r,o){const n=f("http://www.w3.org/2000/svg",e);if(!n)throw Error("Failed to create SVG element: "+e);return X(n,t,o),n}}(e,...t)}const K=["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"],Z=["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"];function ee(e,t){t in e&&"function"!=typeof e[t]||(e[t]=J(t))}function te(e,t){const r=t+"Svg";r in e||(e[r]=Q(t))}function re(e=globalThis){const t="__nuclo_tags_registered";if(!e[t]){for(let t=0;Z.length>t;t++)te(e,Z[t]);for(let t=0;K.length>t;t++)ee(e,K[t]);e[t]=!0}}const oe=new Map;function ne(e,t,r){return function(e,t,r){if(n(e)){const n=e(t,r);return n&&o(n)?n:null}return e&&o(e)?e:null}(e.renderItem(t,r),e.host,r)}function se(e){x(e.element),e.element=null,e.item=null}function ie(e){const{host:t,startMarker:r,endMarker:o}=e,n=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;for(let t=0;e.records.length>t;t++){const r=e.records[t],o=a.get(r.item);o?o.push(r):a.set(r.item,[r])}for(let t=0;s.length>t;t++){const r=s[t];if(e.lastSyncedItems.length>t&&e.lastSyncedItems[t]===r){const o=e.records[t];if(o&&o.item===r){i.set(t,o);const e=a.get(r);e.splice(e.indexOf(o),1),0===e.length&&a.delete(r)}}}const c=[],l=new Set(e.records);let d=o;for(let t=s.length-1;t>=0;t--){const r=s[t];let o=i.get(t);if(!o){const e=a.get(r);e&&e.length>0&&(o=e.shift(),0===e.length&&a.delete(r))}if(o)l.delete(o);else{const n=ne(e,r,t);if(!n)continue;o={item:r,element:n}}c.unshift(o);const p=o.element;p.nextSibling!==d&&n.insertBefore(p,d),d=p}for(const e of l)se(e);e.records=c,e.lastSyncedItems=[...s],0===c.length&&(e.records=[],e.lastSyncedItems=[])}function ae(e,t){return function(r){const o=function(e,t,r){const{start:o,end:n}=R("list"),s={itemsProvider:e,renderItem:t,startMarker:o,endMarker:n,records:[],host:r,lastSyncedItems:[]},i=r;i.appendChild(o),i.appendChild(n);const a={runtime:s};return oe.set(new WeakRef(o),a),ie(s),s}(e,t,r);return o.startMarker}}function ce(e,t){try{return e()}catch(e){if(t)return t(e),!1;throw e}}function le(e,t){return"function"==typeof e?ce(e,t):!!e}function de(e,t,r,o){return n(e)?s(e)?($.delete(e),G(t,e,r)):function(e,t,r){const o=e,n=o.appendChild.bind(o),s=o.insertBefore.bind(o);o.appendChild=function(e){return s(e,t)};try{return r()}finally{o.appendChild=n}}(t,o,()=>{const o=G(t,e,r);return o&&!o.parentNode?o:null}):G(t,e,r)}const pe=new Map;function ue(e){const{groups:t,elseContent:r,host:o,index:n,endMarker:s}=e,i=function(e,t){for(let t=0;e.length>t;t++)if(le(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;x(r),r=e}}(e.startMarker,e.endMarker),e.activeIndex=i,null===i)return;const a=function(e,t,r,o){const n=[];for(const s of e){const e=de(s,t,r,o);e&&n.push(e)}return n}(0>i?r:t[i].content,o,n,s);!function(e,t){const r=t.parentNode;if(r)for(let o=0;e.length>o;o++)P(r,e[o],t)}(a,s)}class me{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(!a)return w("when-ssr")||null;const{start:r,end:o}=R("when"),n={startMarker:r,endMarker:o,host:e,index:t,groups:[...this.groups],elseContent:[...this.elseContent],activeIndex:null,update:function(){ue(n)}};!function(e){const t={runtime:e};pe.set(new WeakRef(e.startMarker),t)}(n);const s=e;return s.appendChild(r),s.appendChild(o),ue(n),r}}function fe(e){return Object.assign(function(t,r){return e.render(t,r)},{when:function(t,...r){return e.when(t,...r),fe(e)},else:function(...t){return e.else(...t),fe(e)}})}function ye(e,...t){return fe(new me(e,...t))}function ge(e){const t=function(e){return e._conditionalInfo??null}(e);if(!t)return;const r=ce(t.condition,e=>{i("Error evaluating conditional condition",e)}),o=e.nodeType===Node.ELEMENT_NODE;if(r&&!o){const r=function(e){try{return e.isSvg?Y(e.tagName,e.modifiers):U(e.tagName,e.modifiers)}catch(t){if(i(`Error applying modifiers in conditional element "${e.tagName}"`,t),e.isSvg){const t=f("http://www.w3.org/2000/svg",e.tagName);if(!t)throw Error("Failed to create SVG element: "+e.tagName);return t}const r=m(e.tagName);if(!r)throw Error("Failed to create element: "+e.tagName);return r}}(t);p(r,t),B(e,r)}else if(!r&&o){const r=v(t.tagName);r&&(p(r,t),B(e,r))}}const he=new Map;function be(e){const t=[],r=new Set;for(const o of e){if("string"!=typeof o)continue;const e=o.trim();e&&(r.has(e)||(r.add(e),t.push(e)))}return t}function xe(e,t){let r=he.get(e);r||(r=new Set,he.set(e,r)),r.add(new WeakRef(t))}function Pe(...e){const t=be(e);return function(e){if(e instanceof Element)for(const r of t)xe(r,e)}}const Se=[function(e){const t=[];for(const[r,o]of oe){const n=r.deref();if(void 0!==n)if(T(n)&&T(o.runtime.endMarker))e&&!e.contains(n)||ie(o.runtime);else{if(o.runtime.records){for(let e=0;o.runtime.records.length>e;e++){const t=o.runtime.records[e];t.element=null,t.item=null}o.runtime.records=[]}t.push(r)}else{if(o.runtime.records){for(let e=0;o.runtime.records.length>e;e++){const t=o.runtime.records[e];t.element=null,t.item=null}o.runtime.records=[]}t.push(r)}}for(const e of t)oe.delete(e)},function(e){const t=[];for(const[r,o]of pe){const n=r.deref();if(void 0!==n)if(T(n)&&T(o.runtime.endMarker)){if(!e||e.contains(n))try{o.runtime.update()}catch{t.push(r)}}else t.push(r);else t.push(r)}for(const e of t)pe.delete(e)},function(e){if(a)try{const t=function(){const e=[],t=[];for(const r of d){const o=r.deref();void 0===o?t.push(r):e.push(o)}for(const e of t)d.delete(e);return e}();for(const r of t)r.isConnected?e&&!e.contains(r)||ge(r):u(r)}catch(e){i("Error during conditional elements update",e)}},function(e){const t=[];for(const[r,o]of N){const n=r.deref();void 0!==n&&T(n)?e&&!e.contains(n)||L(o):t.push(r)}for(const e of t)N.delete(e);t.length>0&&function(){const e=[];for(const[t]of N)void 0===t.deref()&&e.push(t);for(const t of e)N.delete(t)}()},function(e){const t=[];for(const[r,o]of I){const n=r.deref();if(void 0===n){t.push(r);continue}if(!T(n)){t.push(r);continue}if(e&&!e.contains(n))continue;let s;try{s=o.resolver()}catch(e){i("Failed to update reactive text node",e),s=void 0}const a=void 0===s?"":s+"";a!==o.lastValue&&(n.textContent=a,o.lastValue=a)}for(const e of t)I.delete(e);t.length>0&&function(){const e=[];for(const[t]of I)void 0===t.deref()&&e.push(t);for(const t of e)I.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){i("Error dispatching global update event",e)}}];function ke(...e){let t;if(e.length>0){const r=function(e){const t=be(e);if(0===t.length)return[];const r=new Set;for(const e of t){const t=he.get(e);if(!t)continue;const o=[];for(const e of t){const t=e.deref();void 0!==t&&T(t)?r.add(t):o.push(e)}for(const e of o)t.delete(e);0===t.size&&he.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 Se)e(t)}function we(e,t,r=0){const o=e(t||document.body,r);return(t||document.body).appendChild(o),o}const ve=[{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"}],Ce=["bold","center","flex"],Re=new Map;function Te(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 Ie(e,t,r,o="media",n){let s=document.querySelector("#nuclo-styles");s||(s=m("style"),s.id="nuclo-styles",document.head.appendChild(s));const i=Object.entries(t).map(function([e,t]){return`${e}: ${t}`}).join("; ");if(n){const r=`.${e}${n}`,o=s.sheet;if(!o)return;const a=o.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,o]of Object.entries(t))e.setProperty(r,o)}else o.insertRule(`${r} { ${i} }`,d);return}if(r){const n=s.sheet;if(!n)return;const a=n.cssRules,c=a.length;let l=null;const d=e=>"media"===o&&e instanceof CSSMediaRule?e.media.mediaText===r:("container"===o&&e instanceof CSSContainerRule||"supports"===o&&e instanceof CSSSupportsRule)&&e.conditionText===r,p=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(p(r)){e=t+1;break}if(r instanceof CSSStyleRule){e=t+1;break}}n.insertRule(`${"media"===o?"@media":"container"===o?"@container":"supports"===o?"@supports":"@media"} ${r} {}`,e),l=n.cssRules[e]}let u=null;for(const t of Array.from(l.cssRules))if(t instanceof CSSStyleRule&&t.selectorText==="."+e){u=t;break}if(u){const e=u.style;e.cssText="";for(const[r,o]of Object.entries(t))e.setProperty(r,o)}else l.insertRule(`.${e} { ${i} }`,l.cssRules.length)}else{const r=s.sheet;if(!r)return;let o=null,n=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){o=r,n=t;break}a(r)||(n=t+1)}if(o){const e=o.style;e.cssText="";for(const[r,o]of Object.entries(t))e.setProperty(r,o)}else r.insertRule(`.${e} { ${i} }`,n)}}function Ne(e,t){Ie(e,t)}class Ee{styles={};getStyles(){return{...this.styles}}getClassName(e="",t){return function(e,t="",r){const o=Be(e),n=t?`${t}:${o}`:o,s=function(e){return Re.get(e)}(n);if(s){const t=s;return function(e,t,r="media"){const o=document.querySelector("#nuclo-styles");if(!o||!o.sheet)return!1;if(t){const n=Array.from(o.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!!n&&Array.from(n.cssRules).some(function(t){return t instanceof CSSStyleRule&&t.selectorText==="."+e})}return Array.from(o.sheet.cssRules||[]).some(function(t){return t instanceof CSSStyleRule&&t.selectorText==="."+e})}(t,r)||Ie(t,e,r),t}const i=Te(o),a=t?`n${t}-${i}`:"n"+i;return function(e,t){Re.set(e,t)}(n,a),Ie(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 Ee).add(e.cssProperty,e.defaultValue||""):t=>(new Ee).add(e.cssProperty,t||"")}!function(){const e=Ee.prototype;for(const t of ve)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 Ae={};for(const e of ve)Ae[e.name]=We(e);for(const e of Ce)"bold"===e||"center"===e?Ae[e]=()=>(new Ee)[e]():"flex"===e&&(Ae[e]=e=>(new Ee).flex(e));const{display:Me,flex:Le,grid:Fe,bg:je,color:De,accentColor:Oe,fontSize:ze,fontWeight:Ve,fontFamily:_e,lineHeight:$e,letterSpacing:Ge,textAlign:qe,textDecoration:He,bold:Xe,fontStyle:Ue,fontVariant:Ye,fontStretch:Je,textTransform:Qe,textIndent:Ke,textOverflow:Ze,textShadow:et,whiteSpace:tt,wordSpacing:rt,wordWrap:ot,overflowWrap:nt,textAlignLast:st,textJustify:it,textDecorationLine:at,textDecorationColor:ct,textDecorationStyle:lt,textDecorationThickness:dt,textUnderlineOffset:pt,verticalAlign:ut,position:mt,padding:ft,paddingTop:yt,paddingRight:gt,paddingBottom:ht,paddingLeft:bt,margin:xt,marginTop:Pt,marginRight:St,marginBottom:kt,marginLeft:wt,width:vt,height:Ct,minWidth:Rt,maxWidth:Tt,minHeight:Bt,maxHeight:It,boxSizing:Nt,top:Et,right:Wt,bottom:At,left:Mt,zIndex:Lt,flexDirection:Ft,alignItems:jt,justifyContent:Dt,center:Ot,gap:zt,flexWrap:Vt,flexGrow:_t,flexShrink:$t,flexBasis:Gt,alignSelf:qt,alignContent:Ht,justifySelf:Xt,justifyItems:Ut,gridTemplateColumns:Yt,gridTemplateRows:Jt,gridTemplateAreas:Qt,gridColumn:Kt,gridRow:Zt,gridColumnStart:er,gridColumnEnd:tr,gridRowStart:rr,gridRowEnd:or,gridArea:nr,gridAutoColumns:sr,gridAutoRows:ir,gridAutoFlow:ar,border:cr,borderTop:lr,borderRight:dr,borderBottom:pr,borderLeft:ur,borderWidth:mr,borderStyle:fr,borderColor:yr,borderTopWidth:gr,borderRightWidth:hr,borderBottomWidth:br,borderLeftWidth:xr,borderTopStyle:Pr,borderRightStyle:Sr,borderBottomStyle:kr,borderLeftStyle:wr,borderTopColor:vr,borderRightColor:Cr,borderBottomColor:Rr,borderLeftColor:Tr,borderRadius:Br,borderTopLeftRadius:Ir,borderTopRightRadius:Nr,borderBottomLeftRadius:Er,borderBottomRightRadius:Wr,outline:Ar,outlineWidth:Mr,outlineStyle:Lr,outlineColor:Fr,outlineOffset:jr,backgroundColor:Dr,backgroundImage:Or,backgroundRepeat:zr,backgroundPosition:Vr,backgroundSize:_r,backgroundAttachment:$r,backgroundClip:Gr,backgroundOrigin:qr,boxShadow:Hr,opacity:Xr,transition:Ur,transitionProperty:Yr,transitionDuration:Jr,transitionTimingFunction:Qr,transitionDelay:Kr,transform:Zr,transformOrigin:eo,transformStyle:to,perspective:ro,perspectiveOrigin:oo,backfaceVisibility:no,animation:so,animationName:io,animationDuration:ao,animationTimingFunction:co,animationDelay:lo,animationIterationCount:po,animationDirection:uo,animationFillMode:mo,animationPlayState:fo,filter:yo,backdropFilter:go,overflow:ho,overflowX:bo,overflowY:xo,visibility:Po,objectFit:So,objectPosition:ko,listStyle:wo,listStyleType:vo,listStylePosition:Co,listStyleImage:Ro,borderCollapse:To,borderSpacing:Bo,captionSide:Io,emptyCells:No,tableLayout:Eo,content:Wo,quotes:Ao,counterReset:Mo,counterIncrement:Lo,appearance:Fo,userSelect:jo,pointerEvents:Do,resize:Oo,scrollBehavior:zo,clip:Vo,clipPath:_o,isolation:$o,mixBlendMode:Go,willChange:qo,contain:Ho,pageBreakBefore:Xo,pageBreakAfter:Uo,pageBreakInside:Yo,breakBefore:Jo,breakAfter:Qo,breakInside:Ko,orphans:Zo,widows:en,columnCount:tn,columnFill:rn,columnGap:on,columnRule:nn,columnRuleColor:sn,columnRuleStyle:an,columnRuleWidth:cn,columnSpan:ln,columnWidth:dn,columns:pn,cursor:un}=Ae,mn={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 fn(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 yn(e){return e in mn}function gn(e){return mn[e]}const hn=new Map;function bn(e){const t=Array.isArray(e)?e:Object.entries(e),r=new Map;for(const[e,o]of t){let t=hn.get(o);t||(t=fn(o),hn.set(o,t)),r.set(e,t)}return function(e,o){let n,s;void 0!==o?(n=e,s=o):e instanceof Ee?(n=e,s=void 0):(n=void 0,s=e);const i=null!=s&&Object.keys(s).length>0;if(!n&&!i)return{className:""};if(i){const e=[],o=new Set;for(const[n]of t){const t=s?.[n];t&&(o.add(n),e.push({queryName:n,query:r.get(n),styles:t.getStyles()}))}for(const[t,r]of Object.entries(s??{}))!o.has(t)&&yn(t)&&r instanceof Ee&&e.push({queryName:t,query:{type:"pseudo",pseudoClass:gn(t)},styles:r.getStyles()});if(0===e.length&&!n)return{className:""};const i=[];i.length=e.length+(n?1:0);let a=0;if(n){const e=n.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"+Te(i.sort().join("||"));let l={};n&&(l={...n.getStyles()},Ie(c,l));const d=[],p=[];for(const t of e)"pseudo"===t.query.type?p.push(t):d.push(t);for(const{query:e,styles:t}of d)l={...l,...t},Ie(c,l,e.condition,e.type);for(const{query:e,styles:t}of p)Ie(c,t,void 0,"pseudo",e.pseudoClass);return{className:c}}return{className:n.getClassName()}}}const xn=bn;var Pn=Object.freeze({__proto__:null,StyleBuilder:Ee,accentColor:Oe,alignContent:Ht,alignItems:jt,alignSelf:qt,animation:so,animationDelay:lo,animationDirection:uo,animationDuration:ao,animationFillMode:mo,animationIterationCount:po,animationName:io,animationPlayState:fo,animationTimingFunction:co,appearance:Fo,backdropFilter:go,backfaceVisibility:no,backgroundAttachment:$r,backgroundClip:Gr,backgroundColor:Dr,backgroundImage:Or,backgroundOrigin:qr,backgroundPosition:Vr,backgroundRepeat:zr,backgroundSize:_r,bg:je,bold:Xe,border:cr,borderBottom:pr,borderBottomColor:Rr,borderBottomLeftRadius:Er,borderBottomRightRadius:Wr,borderBottomStyle:kr,borderBottomWidth:br,borderCollapse:To,borderColor:yr,borderLeft:ur,borderLeftColor:Tr,borderLeftStyle:wr,borderLeftWidth:xr,borderRadius:Br,borderRight:dr,borderRightColor:Cr,borderRightStyle:Sr,borderRightWidth:hr,borderSpacing:Bo,borderStyle:fr,borderTop:lr,borderTopColor:vr,borderTopLeftRadius:Ir,borderTopRightRadius:Nr,borderTopStyle:Pr,borderTopWidth:gr,borderWidth:mr,bottom:At,boxShadow:Hr,boxSizing:Nt,breakAfter:Qo,breakBefore:Jo,breakInside:Ko,captionSide:Io,center:Ot,clip:Vo,clipPath:_o,color:De,columnCount:tn,columnFill:rn,columnGap:on,columnRule:nn,columnRuleColor:sn,columnRuleStyle:an,columnRuleWidth:cn,columnSpan:ln,columnWidth:dn,columns:pn,contain:Ho,content:Wo,counterIncrement:Lo,counterReset:Mo,createBreakpoints:xn,createCSSClass:Ne,createStyleQueries:bn,cursor:un,display:Me,emptyCells:No,filter:yo,flex:Le,flexBasis:Gt,flexDirection:Ft,flexGrow:_t,flexShrink:$t,flexWrap:Vt,fontFamily:_e,fontSize:ze,fontStretch:Je,fontStyle:Ue,fontVariant:Ye,fontWeight:Ve,gap:zt,grid:Fe,gridArea:nr,gridAutoColumns:sr,gridAutoFlow:ar,gridAutoRows:ir,gridColumn:Kt,gridColumnEnd:tr,gridColumnStart:er,gridRow:Zt,gridRowEnd:or,gridRowStart:rr,gridTemplateAreas:Qt,gridTemplateColumns:Yt,gridTemplateRows:Jt,height:Ct,isolation:$o,justifyContent:Dt,justifyItems:Ut,justifySelf:Xt,left:Mt,letterSpacing:Ge,lineHeight:$e,listStyle:wo,listStyleImage:Ro,listStylePosition:Co,listStyleType:vo,margin:xt,marginBottom:kt,marginLeft:wt,marginRight:St,marginTop:Pt,maxHeight:It,maxWidth:Tt,minHeight:Bt,minWidth:Rt,mixBlendMode:Go,objectFit:So,objectPosition:ko,opacity:Xr,orphans:Zo,outline:Ar,outlineColor:Fr,outlineOffset:jr,outlineStyle:Lr,outlineWidth:Mr,overflow:ho,overflowWrap:nt,overflowX:bo,overflowY:xo,padding:ft,paddingBottom:ht,paddingLeft:bt,paddingRight:gt,paddingTop:yt,pageBreakAfter:Uo,pageBreakBefore:Xo,pageBreakInside:Yo,perspective:ro,perspectiveOrigin:oo,pointerEvents:Do,position:mt,quotes:Ao,resize:Oo,right:Wt,scrollBehavior:zo,tableLayout:Eo,textAlign:qe,textAlignLast:st,textDecoration:He,textDecorationColor:ct,textDecorationLine:at,textDecorationStyle:lt,textDecorationThickness:dt,textIndent:Ke,textJustify:it,textOverflow:Ze,textShadow:et,textTransform:Qe,textUnderlineOffset:pt,top:Et,transform:Zr,transformOrigin:eo,transformStyle:to,transition:Ur,transitionDelay:Kr,transitionDuration:Jr,transitionProperty:Yr,transitionTimingFunction:Qr,userSelect:jo,verticalAlign:ut,visibility:Po,whiteSpace:tt,widows:en,width:vt,willChange:qo,wordSpacing:rt,wordWrap:ot,zIndex:Lt});function Sn(){re();const e=globalThis;e.list=ae,e.update=ke,e.when=ye,e.on=l,e.scope=Pe,e.render=we;for(const[t,r]of Object.entries(Pn))try{e[t]=r}catch{}}Sn(),exports.HTML_TAGS=K,exports.SELF_CLOSING_TAGS=["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"],exports.SVG_TAGS=Z,exports.StyleBuilder=Ee,exports.accentColor=Oe,exports.alignContent=Ht,exports.alignItems=jt,exports.alignSelf=qt,exports.animation=so,exports.animationDelay=lo,exports.animationDirection=uo,exports.animationDuration=ao,exports.animationFillMode=mo,exports.animationIterationCount=po,exports.animationName=io,exports.animationPlayState=fo,exports.animationTimingFunction=co,exports.appearance=Fo,exports.appendChildren=function(e,...t){if(!e)return e;for(let r=0;t.length>r;r++){const o=t[r];if(null!=o){let t;if("string"==typeof o){const e=S(o);if(!e)continue;t=e}else t=o;h(e,t)}}return e},exports.applyAttributes=_,exports.applyNodeModifier=G,exports.backdropFilter=go,exports.backfaceVisibility=no,exports.backgroundAttachment=$r,exports.backgroundClip=Gr,exports.backgroundColor=Dr,exports.backgroundImage=Or,exports.backgroundOrigin=qr,exports.backgroundPosition=Vr,exports.backgroundRepeat=zr,exports.backgroundSize=_r,exports.bg=je,exports.bold=Xe,exports.border=cr,exports.borderBottom=pr,exports.borderBottomColor=Rr,exports.borderBottomLeftRadius=Er,exports.borderBottomRightRadius=Wr,exports.borderBottomStyle=kr,exports.borderBottomWidth=br,exports.borderCollapse=To,exports.borderColor=yr,exports.borderLeft=ur,exports.borderLeftColor=Tr,exports.borderLeftStyle=wr,exports.borderLeftWidth=xr,exports.borderRadius=Br,exports.borderRight=dr,exports.borderRightColor=Cr,exports.borderRightStyle=Sr,exports.borderRightWidth=hr,exports.borderSpacing=Bo,exports.borderStyle=fr,exports.borderTop=lr,exports.borderTopColor=vr,exports.borderTopLeftRadius=Ir,exports.borderTopRightRadius=Nr,exports.borderTopStyle=Pr,exports.borderTopWidth=gr,exports.borderWidth=mr,exports.bottom=At,exports.boxShadow=Hr,exports.boxSizing=Nt,exports.breakAfter=Qo,exports.breakBefore=Jo,exports.breakInside=Ko,exports.captionSide=Io,exports.center=Ot,exports.clip=Vo,exports.clipPath=_o,exports.color=De,exports.columnCount=tn,exports.columnFill=rn,exports.columnGap=on,exports.columnRule=nn,exports.columnRuleColor=sn,exports.columnRuleStyle=an,exports.columnRuleWidth=cn,exports.columnSpan=ln,exports.columnWidth=dn,exports.columns=pn,exports.contain=Ho,exports.content=Wo,exports.counterIncrement=Lo,exports.counterReset=Mo,exports.createBreakpoints=xn,exports.createCSSClass=Ne,exports.createComment=w,exports.createConditionalComment=v,exports.createHtmlElementWithModifiers=U,exports.createHtmlTagBuilder=J,exports.createStyleQueries=bn,exports.createSvgElementWithModifiers=Y,exports.createSvgTagBuilder=Q,exports.cursor=un,exports.display=Me,exports.emptyCells=No,exports.filter=yo,exports.flex=Le,exports.flexBasis=Gt,exports.flexDirection=Ft,exports.flexGrow=_t,exports.flexShrink=$t,exports.flexWrap=Vt,exports.fontFamily=_e,exports.fontSize=ze,exports.fontStretch=Je,exports.fontStyle=Ue,exports.fontVariant=Ye,exports.fontWeight=Ve,exports.gap=zt,exports.grid=Fe,exports.gridArea=nr,exports.gridAutoColumns=sr,exports.gridAutoFlow=ar,exports.gridAutoRows=ir,exports.gridColumn=Kt,exports.gridColumnEnd=tr,exports.gridColumnStart=er,exports.gridRow=Zt,exports.gridRowEnd=or,exports.gridRowStart=rr,exports.gridTemplateAreas=Qt,exports.gridTemplateColumns=Yt,exports.gridTemplateRows=Jt,exports.height=Ct,exports.initializeRuntime=Sn,exports.isBoolean=function(e){return"boolean"==typeof e},exports.isBrowser=a,exports.isFunction=n,exports.isNode=t,exports.isObject=r,exports.isPrimitive=e,exports.isTagLike=o,exports.isZeroArityFunction=s,exports.isolation=$o,exports.justifyContent=Dt,exports.justifyItems=Ut,exports.justifySelf=Xt,exports.left=Mt,exports.letterSpacing=Ge,exports.lineHeight=$e,exports.list=ae,exports.listStyle=wo,exports.listStyleImage=Ro,exports.listStylePosition=Co,exports.listStyleType=vo,exports.margin=xt,exports.marginBottom=kt,exports.marginLeft=wt,exports.marginRight=St,exports.marginTop=Pt,exports.maxHeight=It,exports.maxWidth=Tt,exports.minHeight=Bt,exports.minWidth=Rt,exports.mixBlendMode=Go,exports.objectFit=So,exports.objectPosition=ko,exports.on=l,exports.opacity=Xr,exports.orphans=Zo,exports.outline=Ar,exports.outlineColor=Fr,exports.outlineOffset=jr,exports.outlineStyle=Lr,exports.outlineWidth=Mr,exports.overflow=ho,exports.overflowWrap=nt,exports.overflowX=bo,exports.overflowY=xo,exports.padding=ft,exports.paddingBottom=ht,exports.paddingLeft=bt,exports.paddingRight=gt,exports.paddingTop=yt,exports.pageBreakAfter=Uo,exports.pageBreakBefore=Xo,exports.pageBreakInside=Yo,exports.perspective=ro,exports.perspectiveOrigin=oo,exports.pointerEvents=Do,exports.position=mt,exports.quotes=Ao,exports.registerGlobalTagBuilders=re,exports.render=we,exports.replaceNodeSafely=B,exports.resize=Oo,exports.right=Wt,exports.scope=Pe,exports.scrollBehavior=zo,exports.tableLayout=Eo,exports.textAlign=qe,exports.textAlignLast=st,exports.textDecoration=He,exports.textDecorationColor=ct,exports.textDecorationLine=at,exports.textDecorationStyle=lt,exports.textDecorationThickness=dt,exports.textIndent=Ke,exports.textJustify=it,exports.textOverflow=Ze,exports.textShadow=et,exports.textTransform=Qe,exports.textUnderlineOffset=pt,exports.top=Et,exports.transform=Zr,exports.transformOrigin=eo,exports.transformStyle=to,exports.transition=Ur,exports.transitionDelay=Kr,exports.transitionDuration=Jr,exports.transitionProperty=Yr,exports.transitionTimingFunction=Qr,exports.update=ke,exports.userSelect=jo,exports.verticalAlign=ut,exports.visibility=Po,exports.when=ye,exports.whiteSpace=tt,exports.widows=en,exports.width=vt,exports.willChange=qo,exports.wordSpacing=rt,exports.wordWrap=ot,exports.zIndex=Lt;
2
2
  //# sourceMappingURL=nuclo.cjs.map