@chefuicore/core 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,26 +1,26 @@
1
- "use strict";function e(e,t,o,i){var r,a=arguments.length,n=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(n=(a<3?r(n):a>3?r(t,o,n):r(t,o))||n);return a>3&&n&&Object.defineProperty(t,o,n),n}"function"==typeof SuppressedError&&SuppressedError;
1
+ "use strict";function e(e,t,o,i){var r,a=arguments.length,s=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var n=e.length-1;n>=0;n--)(r=e[n])&&(s=(a<3?r(s):a>3?r(t,o,s):r(t,o))||s);return a>3&&s&&Object.defineProperty(t,o,s),s}"function"==typeof SuppressedError&&SuppressedError;
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2019 Google LLC
5
5
  * SPDX-License-Identifier: BSD-3-Clause
6
6
  */
7
- const t=globalThis,o=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),r=new WeakMap;let a=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(o&&void 0===e){const o=void 0!==t&&1===t.length;o&&(e=r.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&r.set(t,e))}return e}toString(){return this.cssText}};const n=(e,...t)=>{const o=1===e.length?e[0]:t.reduce((t,o,i)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+e[i+1],e[0]);return new a(o,e,i)},s=o?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const o of e.cssRules)t+=o.cssText;return(e=>new a("string"==typeof e?e:e+"",void 0,i))(t)})(e):e,{is:c,defineProperty:h,getOwnPropertyDescriptor:l,getOwnPropertyNames:d,getOwnPropertySymbols:p,getPrototypeOf:u}=Object,f=globalThis,b=f.trustedTypes,v=b?b.emptyScript:"",g=f.reactiveElementPolyfillSupport,x=(e,t)=>e,y={toAttribute(e,t){switch(t){case Boolean:e=e?v:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let o=e;switch(t){case Boolean:o=null!==e;break;case Number:o=null===e?null:Number(e);break;case Object:case Array:try{o=JSON.parse(e)}catch(e){o=null}}return o}},m=(e,t)=>!c(e,t),k={attribute:!0,type:String,converter:y,reflect:!1,useDefault:!1,hasChanged:m};
7
+ const t=globalThis,o=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),r=new WeakMap;let a=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(o&&void 0===e){const o=void 0!==t&&1===t.length;o&&(e=r.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&r.set(t,e))}return e}toString(){return this.cssText}};const s=(e,...t)=>{const o=1===e.length?e[0]:t.reduce((t,o,i)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+e[i+1],e[0]);return new a(o,e,i)},n=o?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const o of e.cssRules)t+=o.cssText;return(e=>new a("string"==typeof e?e:e+"",void 0,i))(t)})(e):e,{is:c,defineProperty:h,getOwnPropertyDescriptor:l,getOwnPropertyNames:d,getOwnPropertySymbols:p,getPrototypeOf:u}=Object,f=globalThis,b=f.trustedTypes,v=b?b.emptyScript:"",g=f.reactiveElementPolyfillSupport,x=(e,t)=>e,y={toAttribute(e,t){switch(t){case Boolean:e=e?v:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let o=e;switch(t){case Boolean:o=null!==e;break;case Number:o=null===e?null:Number(e);break;case Object:case Array:try{o=JSON.parse(e)}catch(e){o=null}}return o}},m=(e,t)=>!c(e,t),k={attribute:!0,type:String,converter:y,reflect:!1,useDefault:!1,hasChanged:m};
8
8
  /**
9
9
  * @license
10
10
  * Copyright 2017 Google LLC
11
11
  * SPDX-License-Identifier: BSD-3-Clause
12
- */Symbol.metadata??=Symbol("metadata"),f.litPropertyMetadata??=new WeakMap;let $=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=k){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const o=Symbol(),i=this.getPropertyDescriptor(e,o,t);void 0!==i&&h(this.prototype,e,i)}}static getPropertyDescriptor(e,t,o){const{get:i,set:r}=l(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:i,set(t){const a=i?.call(this);r?.call(this,t),this.requestUpdate(e,a,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??k}static _$Ei(){if(this.hasOwnProperty(x("elementProperties")))return;const e=u(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(x("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(x("properties"))){const e=this.properties,t=[...d(e),...p(e)];for(const o of t)this.createProperty(o,e[o])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,o]of t)this.elementProperties.set(e,o)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const o=this._$Eu(e,t);void 0!==o&&this._$Eh.set(o,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const o=new Set(e.flat(1/0).reverse());for(const e of o)t.unshift(s(e))}else void 0!==e&&t.push(s(e));return t}static _$Eu(e,t){const o=t.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const o of t.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((e,i)=>{if(o)e.adoptedStyleSheets=i.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const o of i){const i=document.createElement("style"),r=t.litNonce;void 0!==r&&i.setAttribute("nonce",r),i.textContent=o.cssText,e.appendChild(i)}})(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$ET(e,t){const o=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,o);if(void 0!==i&&!0===o.reflect){const r=(void 0!==o.converter?.toAttribute?o.converter:y).toAttribute(t,o.type);this._$Em=e,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(e,t){const o=this.constructor,i=o._$Eh.get(e);if(void 0!==i&&this._$Em!==i){const e=o.getPropertyOptions(i),r="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:y;this._$Em=i;const a=r.fromAttribute(t,e.type);this[i]=a??this._$Ej?.get(i)??a,this._$Em=null}}requestUpdate(e,t,o,i=!1,r){if(void 0!==e){const a=this.constructor;if(!1===i&&(r=this[e]),o??=a.getPropertyOptions(e),!((o.hasChanged??m)(r,t)||o.useDefault&&o.reflect&&r===this._$Ej?.get(e)&&!this.hasAttribute(a._$Eu(e,o))))return;this.C(e,t,o)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:o,reflect:i,wrapped:r},a){o&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??t??this[e]),!0!==r||void 0!==a)||(this._$AL.has(e)||(this.hasUpdated||o||(t=void 0),this._$AL.set(e,t)),!0===i&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,o]of e){const{wrapped:e}=o,i=this[t];!0!==e||this._$AL.has(t)||void 0===i||this.C(t,void 0,o,i)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}};$.elementStyles=[],$.shadowRootOptions={mode:"open"},$[x("elementProperties")]=new Map,$[x("finalized")]=new Map,g?.({ReactiveElement:$}),(f.reactiveElementVersions??=[]).push("2.1.2");
12
+ */Symbol.metadata??=Symbol("metadata"),f.litPropertyMetadata??=new WeakMap;let C=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=k){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const o=Symbol(),i=this.getPropertyDescriptor(e,o,t);void 0!==i&&h(this.prototype,e,i)}}static getPropertyDescriptor(e,t,o){const{get:i,set:r}=l(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:i,set(t){const a=i?.call(this);r?.call(this,t),this.requestUpdate(e,a,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??k}static _$Ei(){if(this.hasOwnProperty(x("elementProperties")))return;const e=u(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(x("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(x("properties"))){const e=this.properties,t=[...d(e),...p(e)];for(const o of t)this.createProperty(o,e[o])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,o]of t)this.elementProperties.set(e,o)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const o=this._$Eu(e,t);void 0!==o&&this._$Eh.set(o,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const o=new Set(e.flat(1/0).reverse());for(const e of o)t.unshift(n(e))}else void 0!==e&&t.push(n(e));return t}static _$Eu(e,t){const o=t.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const o of t.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((e,i)=>{if(o)e.adoptedStyleSheets=i.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const o of i){const i=document.createElement("style"),r=t.litNonce;void 0!==r&&i.setAttribute("nonce",r),i.textContent=o.cssText,e.appendChild(i)}})(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$ET(e,t){const o=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,o);if(void 0!==i&&!0===o.reflect){const r=(void 0!==o.converter?.toAttribute?o.converter:y).toAttribute(t,o.type);this._$Em=e,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(e,t){const o=this.constructor,i=o._$Eh.get(e);if(void 0!==i&&this._$Em!==i){const e=o.getPropertyOptions(i),r="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:y;this._$Em=i;const a=r.fromAttribute(t,e.type);this[i]=a??this._$Ej?.get(i)??a,this._$Em=null}}requestUpdate(e,t,o,i=!1,r){if(void 0!==e){const a=this.constructor;if(!1===i&&(r=this[e]),o??=a.getPropertyOptions(e),!((o.hasChanged??m)(r,t)||o.useDefault&&o.reflect&&r===this._$Ej?.get(e)&&!this.hasAttribute(a._$Eu(e,o))))return;this.C(e,t,o)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:o,reflect:i,wrapped:r},a){o&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??t??this[e]),!0!==r||void 0!==a)||(this._$AL.has(e)||(this.hasUpdated||o||(t=void 0),this._$AL.set(e,t)),!0===i&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,o]of e){const{wrapped:e}=o,i=this[t];!0!==e||this._$AL.has(t)||void 0===i||this.C(t,void 0,o,i)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}};C.elementStyles=[],C.shadowRootOptions={mode:"open"},C[x("elementProperties")]=new Map,C[x("finalized")]=new Map,g?.({ReactiveElement:C}),(f.reactiveElementVersions??=[]).push("2.1.2");
13
13
  /**
14
14
  * @license
15
15
  * Copyright 2017 Google LLC
16
16
  * SPDX-License-Identifier: BSD-3-Clause
17
17
  */
18
- const C=globalThis,w=e=>e,A=C.trustedTypes,S=A?A.createPolicy("lit-html",{createHTML:e=>e}):void 0,_="$lit$",M=`lit$${Math.random().toFixed(9).slice(2)}$`,U="?"+M,E=`<${U}>`,z=document,D=()=>z.createComment(""),O=e=>null===e||"object"!=typeof e&&"function"!=typeof e,P=Array.isArray,I="[ \t\n\f\r]",B=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,T=/-->/g,H=/>/g,L=RegExp(`>|${I}(?:([^\\s"'>=/]+)(${I}*=${I}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),R=/'/g,N=/"/g,j=/^(?:script|style|textarea|title)$/i,V=e=>(t,...o)=>({_$litType$:e,strings:t,values:o}),Y=V(1),F=V(2),q=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),Z=new WeakMap,J=z.createTreeWalker(z,129);function Q(e,t){if(!P(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==S?S.createHTML(t):t}const K=(e,t)=>{const o=e.length-1,i=[];let r,a=2===t?"<svg>":3===t?"<math>":"",n=B;for(let t=0;t<o;t++){const o=e[t];let s,c,h=-1,l=0;for(;l<o.length&&(n.lastIndex=l,c=n.exec(o),null!==c);)l=n.lastIndex,n===B?"!--"===c[1]?n=T:void 0!==c[1]?n=H:void 0!==c[2]?(j.test(c[2])&&(r=RegExp("</"+c[2],"g")),n=L):void 0!==c[3]&&(n=L):n===L?">"===c[0]?(n=r??B,h=-1):void 0===c[1]?h=-2:(h=n.lastIndex-c[2].length,s=c[1],n=void 0===c[3]?L:'"'===c[3]?N:R):n===N||n===R?n=L:n===T||n===H?n=B:(n=L,r=void 0);const d=n===L&&e[t+1].startsWith("/>")?" ":"";a+=n===B?o+E:h>=0?(i.push(s),o.slice(0,h)+_+o.slice(h)+M+d):o+M+(-2===h?t:d)}return[Q(e,a+(e[o]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),i]};class X{constructor({strings:e,_$litType$:t},o){let i;this.parts=[];let r=0,a=0;const n=e.length-1,s=this.parts,[c,h]=K(e,t);if(this.el=X.createElement(c,o),J.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(i=J.nextNode())&&s.length<n;){if(1===i.nodeType){if(i.hasAttributes())for(const e of i.getAttributeNames())if(e.endsWith(_)){const t=h[a++],o=i.getAttribute(e).split(M),n=/([.?@])?(.*)/.exec(t);s.push({type:1,index:r,name:n[2],strings:o,ctor:"."===n[1]?ie:"?"===n[1]?re:"@"===n[1]?ae:oe}),i.removeAttribute(e)}else e.startsWith(M)&&(s.push({type:6,index:r}),i.removeAttribute(e));if(j.test(i.tagName)){const e=i.textContent.split(M),t=e.length-1;if(t>0){i.textContent=A?A.emptyScript:"";for(let o=0;o<t;o++)i.append(e[o],D()),J.nextNode(),s.push({type:2,index:++r});i.append(e[t],D())}}}else if(8===i.nodeType)if(i.data===U)s.push({type:2,index:r});else{let e=-1;for(;-1!==(e=i.data.indexOf(M,e+1));)s.push({type:7,index:r}),e+=M.length-1}r++}}static createElement(e,t){const o=z.createElement("template");return o.innerHTML=e,o}}function G(e,t,o=e,i){if(t===q)return t;let r=void 0!==i?o._$Co?.[i]:o._$Cl;const a=O(t)?void 0:t._$litDirective$;return r?.constructor!==a&&(r?._$AO?.(!1),void 0===a?r=void 0:(r=new a(e),r._$AT(e,o,i)),void 0!==i?(o._$Co??=[])[i]=r:o._$Cl=r),void 0!==r&&(t=G(e,r._$AS(e,t.values),r,i)),t}class ee{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:o}=this._$AD,i=(e?.creationScope??z).importNode(t,!0);J.currentNode=i;let r=J.nextNode(),a=0,n=0,s=o[0];for(;void 0!==s;){if(a===s.index){let t;2===s.type?t=new te(r,r.nextSibling,this,e):1===s.type?t=new s.ctor(r,s.name,s.strings,this,e):6===s.type&&(t=new ne(r,this,e)),this._$AV.push(t),s=o[++n]}a!==s?.index&&(r=J.nextNode(),a++)}return J.currentNode=z,i}p(e){let t=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}}class te{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,o,i){this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=G(this,e,t),O(e)?e===W||null==e||""===e?(this._$AH!==W&&this._$AR(),this._$AH=W):e!==this._$AH&&e!==q&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):(e=>P(e)||"function"==typeof e?.[Symbol.iterator])(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==W&&O(this._$AH)?this._$AA.nextSibling.data=e:this.T(z.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:o}=e,i="number"==typeof o?this._$AC(e):(void 0===o.el&&(o.el=X.createElement(Q(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(t);else{const e=new ee(i,this),o=e.u(this.options);e.p(t),this.T(o),this._$AH=e}}_$AC(e){let t=Z.get(e.strings);return void 0===t&&Z.set(e.strings,t=new X(e)),t}k(e){P(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let o,i=0;for(const r of e)i===t.length?t.push(o=new te(this.O(D()),this.O(D()),this,this.options)):o=t[i],o._$AI(r),i++;i<t.length&&(this._$AR(o&&o._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){const t=w(e).nextSibling;w(e).remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class oe{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,o,i,r){this.type=1,this._$AH=W,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=r,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=W}_$AI(e,t=this,o,i){const r=this.strings;let a=!1;if(void 0===r)e=G(this,e,t,0),a=!O(e)||e!==this._$AH&&e!==q,a&&(this._$AH=e);else{const i=e;let n,s;for(e=r[0],n=0;n<r.length-1;n++)s=G(this,i[o+n],t,n),s===q&&(s=this._$AH[n]),a||=!O(s)||s!==this._$AH[n],s===W?e=W:e!==W&&(e+=(s??"")+r[n+1]),this._$AH[n]=s}a&&!i&&this.j(e)}j(e){e===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class ie extends oe{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===W?void 0:e}}class re extends oe{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==W)}}class ae extends oe{constructor(e,t,o,i,r){super(e,t,o,i,r),this.type=5}_$AI(e,t=this){if((e=G(this,e,t,0)??W)===q)return;const o=this._$AH,i=e===W&&o!==W||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,r=e!==W&&(o===W||i);i&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class ne{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){G(this,e)}}const se=C.litHtmlPolyfillSupport;se?.(X,te),(C.litHtmlVersions??=[]).push("3.3.2");const ce=globalThis;
18
+ const $=globalThis,w=e=>e,S=$.trustedTypes,A=S?S.createPolicy("lit-html",{createHTML:e=>e}):void 0,U="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,E="?"+_,M=`<${E}>`,z=document,D=()=>z.createComment(""),R=e=>null===e||"object"!=typeof e&&"function"!=typeof e,O=Array.isArray,P="[ \t\n\f\r]",B=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,I=/-->/g,T=/>/g,L=RegExp(`>|${P}(?:([^\\s"'>=/]+)(${P}*=${P}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),H=/'/g,N=/"/g,j=/^(?:script|style|textarea|title)$/i,V=e=>(t,...o)=>({_$litType$:e,strings:t,values:o}),Y=V(1),q=V(2),F=Symbol.for("lit-noChange"),G=Symbol.for("lit-nothing"),W=new WeakMap,Z=z.createTreeWalker(z,129);function J(e,t){if(!O(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==A?A.createHTML(t):t}const Q=(e,t)=>{const o=e.length-1,i=[];let r,a=2===t?"<svg>":3===t?"<math>":"",s=B;for(let t=0;t<o;t++){const o=e[t];let n,c,h=-1,l=0;for(;l<o.length&&(s.lastIndex=l,c=s.exec(o),null!==c);)l=s.lastIndex,s===B?"!--"===c[1]?s=I:void 0!==c[1]?s=T:void 0!==c[2]?(j.test(c[2])&&(r=RegExp("</"+c[2],"g")),s=L):void 0!==c[3]&&(s=L):s===L?">"===c[0]?(s=r??B,h=-1):void 0===c[1]?h=-2:(h=s.lastIndex-c[2].length,n=c[1],s=void 0===c[3]?L:'"'===c[3]?N:H):s===N||s===H?s=L:s===I||s===T?s=B:(s=L,r=void 0);const d=s===L&&e[t+1].startsWith("/>")?" ":"";a+=s===B?o+M:h>=0?(i.push(n),o.slice(0,h)+U+o.slice(h)+_+d):o+_+(-2===h?t:d)}return[J(e,a+(e[o]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),i]};class K{constructor({strings:e,_$litType$:t},o){let i;this.parts=[];let r=0,a=0;const s=e.length-1,n=this.parts,[c,h]=Q(e,t);if(this.el=K.createElement(c,o),Z.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(i=Z.nextNode())&&n.length<s;){if(1===i.nodeType){if(i.hasAttributes())for(const e of i.getAttributeNames())if(e.endsWith(U)){const t=h[a++],o=i.getAttribute(e).split(_),s=/([.?@])?(.*)/.exec(t);n.push({type:1,index:r,name:s[2],strings:o,ctor:"."===s[1]?ie:"?"===s[1]?re:"@"===s[1]?ae:oe}),i.removeAttribute(e)}else e.startsWith(_)&&(n.push({type:6,index:r}),i.removeAttribute(e));if(j.test(i.tagName)){const e=i.textContent.split(_),t=e.length-1;if(t>0){i.textContent=S?S.emptyScript:"";for(let o=0;o<t;o++)i.append(e[o],D()),Z.nextNode(),n.push({type:2,index:++r});i.append(e[t],D())}}}else if(8===i.nodeType)if(i.data===E)n.push({type:2,index:r});else{let e=-1;for(;-1!==(e=i.data.indexOf(_,e+1));)n.push({type:7,index:r}),e+=_.length-1}r++}}static createElement(e,t){const o=z.createElement("template");return o.innerHTML=e,o}}function X(e,t,o=e,i){if(t===F)return t;let r=void 0!==i?o._$Co?.[i]:o._$Cl;const a=R(t)?void 0:t._$litDirective$;return r?.constructor!==a&&(r?._$AO?.(!1),void 0===a?r=void 0:(r=new a(e),r._$AT(e,o,i)),void 0!==i?(o._$Co??=[])[i]=r:o._$Cl=r),void 0!==r&&(t=X(e,r._$AS(e,t.values),r,i)),t}class ee{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:o}=this._$AD,i=(e?.creationScope??z).importNode(t,!0);Z.currentNode=i;let r=Z.nextNode(),a=0,s=0,n=o[0];for(;void 0!==n;){if(a===n.index){let t;2===n.type?t=new te(r,r.nextSibling,this,e):1===n.type?t=new n.ctor(r,n.name,n.strings,this,e):6===n.type&&(t=new se(r,this,e)),this._$AV.push(t),n=o[++s]}a!==n?.index&&(r=Z.nextNode(),a++)}return Z.currentNode=z,i}p(e){let t=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}}class te{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,o,i){this.type=2,this._$AH=G,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=X(this,e,t),R(e)?e===G||null==e||""===e?(this._$AH!==G&&this._$AR(),this._$AH=G):e!==this._$AH&&e!==F&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):(e=>O(e)||"function"==typeof e?.[Symbol.iterator])(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==G&&R(this._$AH)?this._$AA.nextSibling.data=e:this.T(z.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:o}=e,i="number"==typeof o?this._$AC(e):(void 0===o.el&&(o.el=K.createElement(J(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(t);else{const e=new ee(i,this),o=e.u(this.options);e.p(t),this.T(o),this._$AH=e}}_$AC(e){let t=W.get(e.strings);return void 0===t&&W.set(e.strings,t=new K(e)),t}k(e){O(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let o,i=0;for(const r of e)i===t.length?t.push(o=new te(this.O(D()),this.O(D()),this,this.options)):o=t[i],o._$AI(r),i++;i<t.length&&(this._$AR(o&&o._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){const t=w(e).nextSibling;w(e).remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class oe{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,o,i,r){this.type=1,this._$AH=G,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=r,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=G}_$AI(e,t=this,o,i){const r=this.strings;let a=!1;if(void 0===r)e=X(this,e,t,0),a=!R(e)||e!==this._$AH&&e!==F,a&&(this._$AH=e);else{const i=e;let s,n;for(e=r[0],s=0;s<r.length-1;s++)n=X(this,i[o+s],t,s),n===F&&(n=this._$AH[s]),a||=!R(n)||n!==this._$AH[s],n===G?e=G:e!==G&&(e+=(n??"")+r[s+1]),this._$AH[s]=n}a&&!i&&this.j(e)}j(e){e===G?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class ie extends oe{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===G?void 0:e}}class re extends oe{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==G)}}class ae extends oe{constructor(e,t,o,i,r){super(e,t,o,i,r),this.type=5}_$AI(e,t=this){if((e=X(this,e,t,0)??G)===F)return;const o=this._$AH,i=e===G&&o!==G||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,r=e!==G&&(o===G||i);i&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class se{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){X(this,e)}}const ne=$.litHtmlPolyfillSupport;ne?.(K,te),($.litHtmlVersions??=[]).push("3.3.2");const ce=globalThis;
19
19
  /**
20
20
  * @license
21
21
  * Copyright 2017 Google LLC
22
22
  * SPDX-License-Identifier: BSD-3-Clause
23
- */class he extends ${constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,o)=>{const i=o?.renderBefore??t;let r=i._$litPart$;if(void 0===r){const e=o?.renderBefore??null;i._$litPart$=r=new te(t.insertBefore(D(),e),e,void 0,o??{})}return r._$AI(e),r})(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return q}}he._$litElement$=!0,he.finalized=!0,ce.litElementHydrateSupport?.({LitElement:he});const le=ce.litElementPolyfillSupport;le?.({LitElement:he}),(ce.litElementVersions??=[]).push("4.2.2");
23
+ */class he extends C{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,o)=>{const i=o?.renderBefore??t;let r=i._$litPart$;if(void 0===r){const e=o?.renderBefore??null;i._$litPart$=r=new te(t.insertBefore(D(),e),e,void 0,o??{})}return r._$AI(e),r})(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return F}}he._$litElement$=!0,he.finalized=!0,ce.litElementHydrateSupport?.({LitElement:he});const le=ce.litElementPolyfillSupport;le?.({LitElement:he}),(ce.litElementVersions??=[]).push("4.2.2");
24
24
  /**
25
25
  * @license
26
26
  * Copyright 2017 Google LLC
@@ -47,7 +47,7 @@ const de=e=>(t,o)=>{void 0!==o?o.addInitializer(()=>{customElements.define(e,t)}
47
47
  * Copyright 2017 Google LLC
48
48
  * SPDX-License-Identifier: BSD-3-Clause
49
49
  */
50
- function ve(e,t){return(t,o,i)=>((e,t,o)=>(o.configurable=!0,o.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,o),o))(t,o,{get(){return(t=>t.renderRoot?.querySelector(e)??null)(this)}})}class ge{constructor(){this.registry=new Map}register(e,t){this.registry.set(e,t)}resolve(e){return this.registry.get(e)}has(e){return this.registry.has(e)}list(){return Array.from(this.registry.keys()).sort()}}const xe=new ge;xe.register("plus",{outline:"M12 4v16M4 12h16",solid:"M11 4h2v7h7v2h-7v7h-2v-7H4v-2h7z"}),xe.register("check",{outline:"m5 13 4 4L19 7",solid:"M10 15.172 5.414 10.586 4 12l6 6L20 8l-1.414-1.414z"}),xe.register("x",{outline:"M6 6l12 12M6 18L18 6",solid:"M6 6l12 12M6 18L18 6"}),xe.register("trash",{outline:"M3 6h18M8 6V4h8v2m-1 0v12a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2V6h10Z",solid:"M7 6h10v11a3 3 0 0 1-3 3H10a3 3 0 0 1-3-3V6Zm2-4h6v2H9z"}),xe.register("lock",{outline:"M7 10V7a5 5 0 0 1 10 0v3m-9 0h8a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2v-6a2 2 0 0 1 2-2Z",solid:"M12 1a6 6 0 0 1 6 6v3h1a2 2 0 0 1 2 2v7a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3v-7a2 2 0 0 1 2-2h1V7a6 6 0 0 1 6-6Z"}),xe.register("alert",{outline:"M12 9v4m0 4h.01M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0Z",solid:"M11 7h2v6h-2zm0 8h2v2h-2z"}),xe.register("info",{outline:"M12 8h.01M11 12h2v6h-2zm9 0a8 8 0 1 1-16 0 8 8 0 0 1 16 0Z",solid:"M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20Zm-1 8h2V7h-2v3Zm0 7h2v-6h-2v6Z"}),xe.register("edit",{outline:"M4 21h4l11-11a2.828 2.828 0 1 0-4-4L4 17v4Z",solid:"M3 17.25 16.06 4.19l3.75 3.75L6.75 21H3v-3.75Z"}),xe.register("search",{outline:"m21 21-4.35-4.35M10 18a8 8 0 1 1 0-16 8 8 0 0 1 0 16Z",solid:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16a6.471 6.471 0 0 0 4.23-1.57l.27.28v.79L20 21.5 21.5 20 15.5 14z"}),xe.register("save",{outline:"M5 5h10l4 4v10a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V5zm8 0v6H7V5",solid:"M17 3H5a2 2 0 0 0-2 2v16l4-4h10a2 2 0 0 0 2-2V7l-4-4z"}),xe.register("arrow-right",{outline:"M5 12h14M13 5l7 7-7 7",solid:"M10 5l7 7-7 7V5z"}),xe.register("arrow-left",{outline:"M19 12H5m6 7-7-7 7-7",solid:"M14 19l-7-7 7-7v14z"}),xe.register("heart",{outline:"M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12z",solid:"M11.645 20.91l-.007-.003-.022-.012a15.247 15.247 0 01-.383-.218 25.18 25.18 0 01-4.244-3.17C4.688 15.36 2.25 12.174 2.25 8.25 2.25 5.322 4.714 3 7.688 3A5.5 5.5 0 0112 5.052 5.5 5.5 0 0116.313 3c2.973 0 5.437 2.322 5.437 5.25 0 3.925-2.438 7.111-4.739 9.256a25.175 25.175 0 01-4.244 3.17 15.247 15.247 0 01-.383.219l-.022.012-.007.004-.003.001a.752.752 0 01-.704 0l-.003-.001z"}),xe.register("heart-outline",{outline:"M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12z"}),xe.register("star",{outline:"M11.48 3.499a.562.562 0 011.04 0l2.125 5.111a.563.563 0 00.475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 00-.182.557l1.285 5.385a.562.562 0 01-.84.61l-4.725-2.885a.563.563 0 00-.586 0L6.982 20.54a.562.562 0 01-.84-.61l1.285-5.386a.562.562 0 00-.182-.557l-4.204-3.602a.563.563 0 01.321-.988l5.518-.442a.563.563 0 00.475-.345L11.48 3.5z",solid:"M10.788 3.21c.448-1.077 1.976-1.077 2.424 0l2.082 5.007 5.404.433c1.164.093 1.636 1.545.749 2.305l-4.117 3.527 1.257 5.273c.271 1.136-.964 2.033-1.96 1.425L12 18.354 7.373 21.18c-.996.608-2.231-.29-1.96-1.425l1.257-5.273-4.117-3.527c-.887-.76-.415-2.212.749-2.305l5.404-.433 2.082-5.006z"}),xe.register("star-outline",{outline:"M11.48 3.499a.562.562 0 011.04 0l2.125 5.111a.563.563 0 00.475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 00-.182.557l1.285 5.385a.562.562 0 01-.84.61l-4.725-2.885a.563.563 0 00-.586 0L6.982 20.54a.562.562 0 01-.84-.61l1.285-5.386a.562.562 0 00-.182-.557l-4.204-3.602a.563.563 0 01.321-.988l5.518-.442a.563.563 0 00.475-.345L11.48 3.5z"}),xe.register("bookmark",{outline:"M17.593 3.322c1.1.128 1.907 1.077 1.907 2.185V21L12 17.25 4.5 21V5.507c0-1.108.806-2.057 1.907-2.185a48.507 48.507 0 0111.186 0z",solid:"M6.32 2.577a49.255 49.255 0 0111.36 0c1.497.174 2.57 1.46 2.57 2.93V21a.75.75 0 01-1.085.67L12 18.089l-7.165 3.583A.75.75 0 013.75 21V5.507c0-1.47 1.073-2.756 2.57-2.93z"}),xe.register("bookmark-outline",{outline:"M17.593 3.322c1.1.128 1.907 1.077 1.907 2.185V21L12 17.25 4.5 21V5.507c0-1.108.806-2.057 1.907-2.185a48.507 48.507 0 0111.186 0z"}),xe.register("thumbs-up",{outline:"M6.633 10.5c.806 0 1.533-.446 2.031-1.08a9.041 9.041 0 012.861-2.4c.723-.384 1.35-.956 1.653-1.715a4.498 4.498 0 00.322-1.672V3a.75.75 0 01.75-.75A2.25 2.25 0 0116.5 4.5c0 1.152-.26 2.243-.723 3.218-.266.558.107 1.282.725 1.282h3.126c1.026 0 1.945.694 2.054 1.715.045.422.068.85.068 1.285a11.95 11.95 0 01-2.649 7.521c-.388.482-.987.729-1.605.729H13.48c-.483 0-.964-.078-1.423-.23l-3.114-.937a6.5 6.5 0 00-1.893-.26H4.5A2.25 2.25 0 012.25 16.5v-5.25A2.25 2.25 0 014.5 9h2.133z",solid:"M7.493 18.75c-.425 0-.82-.236-.975-.632A7.48 7.48 0 016 15.375c0-1.75.599-3.358 1.602-4.634.151-.192.373-.309.6-.397.473-.183.89-.514 1.212-.924a9.042 9.042 0 012.861-2.4c.723-.384 1.35-.956 1.653-1.715a4.498 4.498 0 00.322-1.672V3a.75.75 0 01.75-.75 2.25 2.25 0 012.25 2.25c0 1.152-.26 2.243-.723 3.218-.266.558.107 1.282.725 1.282h3.126c1.026 0 1.945.694 2.054 1.715.045.422.068.85.068 1.285a11.95 11.95 0 01-2.649 7.521c-.388.482-.987.729-1.605.729H14.23c-.483 0-.964-.078-1.423-.23l-3.114-.937a6.5 6.5 0 00-1.893-.26H5.5z M2.331 10.727a11.969 11.969 0 00-.831 4.398 12 12 0 00.52 3.507c.26.85 1.084 1.368 1.973 1.368H4.9c.445 0 .72-.498.523-.898a8.963 8.963 0 01-.924-3.977c0-1.708.476-3.305 1.302-4.666.245-.403-.028-.959-.5-.959H4.25c-.832 0-1.612.453-1.918 1.227z"}),xe.register("thumbs-up-outline",{outline:"M6.633 10.5c.806 0 1.533-.446 2.031-1.08a9.041 9.041 0 012.861-2.4c.723-.384 1.35-.956 1.653-1.715a4.498 4.498 0 00.322-1.672V3a.75.75 0 01.75-.75A2.25 2.25 0 0116.5 4.5c0 1.152-.26 2.243-.723 3.218-.266.558.107 1.282.725 1.282h3.126c1.026 0 1.945.694 2.054 1.715.045.422.068.85.068 1.285a11.95 11.95 0 01-2.649 7.521c-.388.482-.987.729-1.605.729H13.48c-.483 0-.964-.078-1.423-.23l-3.114-.937a6.5 6.5 0 00-1.893-.26H4.5A2.25 2.25 0 012.25 16.5v-5.25A2.25 2.25 0 014.5 9h2.133z"}),xe.register("minus",{outline:"M19.5 12h-15",solid:"M4.25 12a.75.75 0 01.75-.75h14a.75.75 0 010 1.5H5a.75.75 0 01-.75-.75z"}),exports.ChefIcon=class extends he{constructor(){super(...arguments),this.name="info",this.styleVariant="outline",this.ariaLabel=null}updated(){this.size&&this.style.setProperty("--chefui-icon-size",this.size),this.color&&this.style.setProperty("--chefui-icon-color",this.color)}renderPath(){const e=xe.resolve(this.name);if(!e)return null;const t="solid"===this.styleVariant&&!!e.solid?e.solid:e.outline;return F`<path d="${t}" />`}render(){const e=xe.resolve(this.name),t="solid"===this.styleVariant&&!!e?.solid;return Y`
50
+ function ve(e,t){return(t,o,i)=>((e,t,o)=>(o.configurable=!0,o.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,o),o))(t,o,{get(){return(t=>t.renderRoot?.querySelector(e)??null)(this)}})}class ge{constructor(){this.registry=new Map}register(e,t){this.registry.set(e,t)}resolve(e){return this.registry.get(e)}has(e){return this.registry.has(e)}list(){return Array.from(this.registry.keys()).sort()}}const xe=new ge;xe.register("plus",{outline:"M12 4v16M4 12h16",solid:"M11 4h2v7h7v2h-7v7h-2v-7H4v-2h7z"}),xe.register("check",{outline:"m5 13 4 4L19 7",solid:"M10 15.172 5.414 10.586 4 12l6 6L20 8l-1.414-1.414z"}),xe.register("x",{outline:"M6 6l12 12M6 18L18 6",solid:"M6 6l12 12M6 18L18 6"}),xe.register("trash",{outline:"M3 6h18M8 6V4h8v2m-1 0v12a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2V6h10Z",solid:"M7 6h10v11a3 3 0 0 1-3 3H10a3 3 0 0 1-3-3V6Zm2-4h6v2H9z"}),xe.register("lock",{outline:"M7 10V7a5 5 0 0 1 10 0v3m-9 0h8a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2v-6a2 2 0 0 1 2-2Z",solid:"M12 1a6 6 0 0 1 6 6v3h1a2 2 0 0 1 2 2v7a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3v-7a2 2 0 0 1 2-2h1V7a6 6 0 0 1 6-6Z"}),xe.register("alert",{outline:"M12 9v4m0 4h.01M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0Z",solid:"M11 7h2v6h-2zm0 8h2v2h-2z"}),xe.register("info",{outline:"M12 8h.01M11 12h2v6h-2zm9 0a8 8 0 1 1-16 0 8 8 0 0 1 16 0Z",solid:"M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20Zm-1 8h2V7h-2v3Zm0 7h2v-6h-2v6Z"}),xe.register("edit",{outline:"M4 21h4l11-11a2.828 2.828 0 1 0-4-4L4 17v4Z",solid:"M3 17.25 16.06 4.19l3.75 3.75L6.75 21H3v-3.75Z"}),xe.register("search",{outline:"m21 21-4.35-4.35M10 18a8 8 0 1 1 0-16 8 8 0 0 1 0 16Z",solid:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16a6.471 6.471 0 0 0 4.23-1.57l.27.28v.79L20 21.5 21.5 20 15.5 14z"}),xe.register("save",{outline:"M5 5h10l4 4v10a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V5zm8 0v6H7V5",solid:"M17 3H5a2 2 0 0 0-2 2v16l4-4h10a2 2 0 0 0 2-2V7l-4-4z"}),xe.register("arrow-right",{outline:"M5 12h14M13 5l7 7-7 7",solid:"M10 5l7 7-7 7V5z"}),xe.register("arrow-left",{outline:"M19 12H5m6 7-7-7 7-7",solid:"M14 19l-7-7 7-7v14z"}),xe.register("heart",{outline:"M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12z",solid:"M11.645 20.91l-.007-.003-.022-.012a15.247 15.247 0 01-.383-.218 25.18 25.18 0 01-4.244-3.17C4.688 15.36 2.25 12.174 2.25 8.25 2.25 5.322 4.714 3 7.688 3A5.5 5.5 0 0112 5.052 5.5 5.5 0 0116.313 3c2.973 0 5.437 2.322 5.437 5.25 0 3.925-2.438 7.111-4.739 9.256a25.175 25.175 0 01-4.244 3.17 15.247 15.247 0 01-.383.219l-.022.012-.007.004-.003.001a.752.752 0 01-.704 0l-.003-.001z"}),xe.register("heart-outline",{outline:"M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12z"}),xe.register("star",{outline:"M11.48 3.499a.562.562 0 011.04 0l2.125 5.111a.563.563 0 00.475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 00-.182.557l1.285 5.385a.562.562 0 01-.84.61l-4.725-2.885a.563.563 0 00-.586 0L6.982 20.54a.562.562 0 01-.84-.61l1.285-5.386a.562.562 0 00-.182-.557l-4.204-3.602a.563.563 0 01.321-.988l5.518-.442a.563.563 0 00.475-.345L11.48 3.5z",solid:"M10.788 3.21c.448-1.077 1.976-1.077 2.424 0l2.082 5.007 5.404.433c1.164.093 1.636 1.545.749 2.305l-4.117 3.527 1.257 5.273c.271 1.136-.964 2.033-1.96 1.425L12 18.354 7.373 21.18c-.996.608-2.231-.29-1.96-1.425l1.257-5.273-4.117-3.527c-.887-.76-.415-2.212.749-2.305l5.404-.433 2.082-5.006z"}),xe.register("star-outline",{outline:"M11.48 3.499a.562.562 0 011.04 0l2.125 5.111a.563.563 0 00.475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 00-.182.557l1.285 5.385a.562.562 0 01-.84.61l-4.725-2.885a.563.563 0 00-.586 0L6.982 20.54a.562.562 0 01-.84-.61l1.285-5.386a.562.562 0 00-.182-.557l-4.204-3.602a.563.563 0 01.321-.988l5.518-.442a.563.563 0 00.475-.345L11.48 3.5z"}),xe.register("bookmark",{outline:"M17.593 3.322c1.1.128 1.907 1.077 1.907 2.185V21L12 17.25 4.5 21V5.507c0-1.108.806-2.057 1.907-2.185a48.507 48.507 0 0111.186 0z",solid:"M6.32 2.577a49.255 49.255 0 0111.36 0c1.497.174 2.57 1.46 2.57 2.93V21a.75.75 0 01-1.085.67L12 18.089l-7.165 3.583A.75.75 0 013.75 21V5.507c0-1.47 1.073-2.756 2.57-2.93z"}),xe.register("bookmark-outline",{outline:"M17.593 3.322c1.1.128 1.907 1.077 1.907 2.185V21L12 17.25 4.5 21V5.507c0-1.108.806-2.057 1.907-2.185a48.507 48.507 0 0111.186 0z"}),xe.register("thumbs-up",{outline:"M6.633 10.5c.806 0 1.533-.446 2.031-1.08a9.041 9.041 0 012.861-2.4c.723-.384 1.35-.956 1.653-1.715a4.498 4.498 0 00.322-1.672V3a.75.75 0 01.75-.75A2.25 2.25 0 0116.5 4.5c0 1.152-.26 2.243-.723 3.218-.266.558.107 1.282.725 1.282h3.126c1.026 0 1.945.694 2.054 1.715.045.422.068.85.068 1.285a11.95 11.95 0 01-2.649 7.521c-.388.482-.987.729-1.605.729H13.48c-.483 0-.964-.078-1.423-.23l-3.114-.937a6.5 6.5 0 00-1.893-.26H4.5A2.25 2.25 0 012.25 16.5v-5.25A2.25 2.25 0 014.5 9h2.133z",solid:"M7.493 18.75c-.425 0-.82-.236-.975-.632A7.48 7.48 0 016 15.375c0-1.75.599-3.358 1.602-4.634.151-.192.373-.309.6-.397.473-.183.89-.514 1.212-.924a9.042 9.042 0 012.861-2.4c.723-.384 1.35-.956 1.653-1.715a4.498 4.498 0 00.322-1.672V3a.75.75 0 01.75-.75 2.25 2.25 0 012.25 2.25c0 1.152-.26 2.243-.723 3.218-.266.558.107 1.282.725 1.282h3.126c1.026 0 1.945.694 2.054 1.715.045.422.068.85.068 1.285a11.95 11.95 0 01-2.649 7.521c-.388.482-.987.729-1.605.729H14.23c-.483 0-.964-.078-1.423-.23l-3.114-.937a6.5 6.5 0 00-1.893-.26H5.5z M2.331 10.727a11.969 11.969 0 00-.831 4.398 12 12 0 00.52 3.507c.26.85 1.084 1.368 1.973 1.368H4.9c.445 0 .72-.498.523-.898a8.963 8.963 0 01-.924-3.977c0-1.708.476-3.305 1.302-4.666.245-.403-.028-.959-.5-.959H4.25c-.832 0-1.612.453-1.918 1.227z"}),xe.register("thumbs-up-outline",{outline:"M6.633 10.5c.806 0 1.533-.446 2.031-1.08a9.041 9.041 0 012.861-2.4c.723-.384 1.35-.956 1.653-1.715a4.498 4.498 0 00.322-1.672V3a.75.75 0 01.75-.75A2.25 2.25 0 0116.5 4.5c0 1.152-.26 2.243-.723 3.218-.266.558.107 1.282.725 1.282h3.126c1.026 0 1.945.694 2.054 1.715.045.422.068.85.068 1.285a11.95 11.95 0 01-2.649 7.521c-.388.482-.987.729-1.605.729H13.48c-.483 0-.964-.078-1.423-.23l-3.114-.937a6.5 6.5 0 00-1.893-.26H4.5A2.25 2.25 0 012.25 16.5v-5.25A2.25 2.25 0 014.5 9h2.133z"}),xe.register("minus",{outline:"M19.5 12h-15",solid:"M4.25 12a.75.75 0 01.75-.75h14a.75.75 0 010 1.5H5a.75.75 0 01-.75-.75z"}),exports.ChefIcon=class extends he{constructor(){super(...arguments),this.name="info",this.styleVariant="outline",this.ariaLabel=null}updated(){this.size&&this.style.setProperty("--chefui-icon-size",this.size),this.color&&this.style.setProperty("--chefui-icon-color",this.color)}renderPath(){const e=xe.resolve(this.name);if(!e)return null;const t="solid"===this.styleVariant&&!!e.solid?e.solid:e.outline;return q`<path d="${t}" />`}render(){const e=xe.resolve(this.name),t="solid"===this.styleVariant&&!!e?.solid;return Y`
51
51
  <svg
52
52
  part="icon"
53
53
  xmlns="http://www.w3.org/2000/svg"
@@ -60,7 +60,7 @@ function ve(e,t){return(t,o,i)=>((e,t,o)=>(o.configurable=!0,o.enumerable=!0,Ref
60
60
  >
61
61
  ${this.renderPath()}
62
62
  </svg>
63
- `}},exports.ChefIcon.styles=n`
63
+ `}},exports.ChefIcon.styles=s`
64
64
  :host {
65
65
  display: inline-flex;
66
66
  --chefui-icon-size: 1.1em;
@@ -82,7 +82,7 @@ function ve(e,t){return(t,o,i)=>((e,t,o)=>(o.configurable=!0,o.enumerable=!0,Ref
82
82
  </slot>
83
83
  <slot></slot>
84
84
  </button>
85
- `}},exports.ChefButton.styles=n`
85
+ `}},exports.ChefButton.styles=s`
86
86
  :host {
87
87
  display: inline-block;
88
88
  --chefui-color: #1976d2;
@@ -230,7 +230,7 @@ function ve(e,t){return(t,o,i)=>((e,t,o)=>(o.configurable=!0,o.enumerable=!0,Ref
230
230
  <slot name="validation-message"></slot>
231
231
  </div>
232
232
  </div>
233
- `}},exports.ChefUiSelect.styles=n`
233
+ `}},exports.ChefUiSelect.styles=s`
234
234
  :host {
235
235
  display: block;
236
236
  --chefui-color: #7c3aed;
@@ -447,7 +447,7 @@ function ve(e,t){return(t,o,i)=>((e,t,o)=>(o.configurable=!0,o.enumerable=!0,Ref
447
447
  <div class="accordion-container" role="region">
448
448
  <slot></slot>
449
449
  </div>
450
- `}},exports.ChefUiAccordion.styles=n`
450
+ `}},exports.ChefUiAccordion.styles=s`
451
451
  :host {
452
452
  display: block;
453
453
  --chefui-accordion-bg: #1e293b;
@@ -528,7 +528,7 @@ function ve(e,t){return(t,o,i)=>((e,t,o)=>(o.configurable=!0,o.enumerable=!0,Ref
528
528
  </div>
529
529
  </div>
530
530
  </div>
531
- `}},exports.ChefUiAccordionItem.styles=n`
531
+ `}},exports.ChefUiAccordionItem.styles=s`
532
532
  :host {
533
533
  display: block;
534
534
  background: var(--chefui-accordion-bg, #1e293b);
@@ -687,7 +687,7 @@ function ve(e,t){return(t,o,i)=>((e,t,o)=>(o.configurable=!0,o.enumerable=!0,Ref
687
687
  width: 20px;
688
688
  height: 20px;
689
689
  }
690
- `,e([fe({type:Boolean,reflect:!0})],exports.ChefUiAccordionItem.prototype,"expanded",void 0),e([fe({type:Boolean,reflect:!0})],exports.ChefUiAccordionItem.prototype,"disabled",void 0),e([fe({type:String})],exports.ChefUiAccordionItem.prototype,"title",void 0),e([fe({type:String})],exports.ChefUiAccordionItem.prototype,"subtitle",void 0),e([fe({type:String})],exports.ChefUiAccordionItem.prototype,"badge",void 0),e([fe({type:String})],exports.ChefUiAccordionItem.prototype,"icon",void 0),e([fe({type:String,reflect:!0})],exports.ChefUiAccordionItem.prototype,"variant",void 0),exports.ChefUiAccordionItem=e([de("chef-ui-accordion-item")],exports.ChefUiAccordionItem),exports.ChefUiActionButton=class extends he{constructor(){super(...arguments),this.disabled=!1,this.variant="circular",this.size="medium",this.color="default",this.ariaLabel=null}createRipple(e){const t=e.currentTarget,o=document.createElement("span");o.classList.add("ripple");const i=t.getBoundingClientRect(),r=Math.max(i.width,i.height),a=e.clientX-i.left-r/2,n=e.clientY-i.top-r/2;o.style.width=o.style.height=`${r}px`,o.style.left=`${a}px`,o.style.top=`${n}px`,t.appendChild(o),o.addEventListener("animationend",()=>{o.remove()})}handleClick(e){if(this.disabled)return e.stopImmediatePropagation(),void e.preventDefault();this.createRipple(e),this.dispatchEvent(new CustomEvent("chef-click",{bubbles:!0,composed:!0})),this.href&&(window.location.href=this.href)}render(){return Y`
690
+ `,e([fe({type:Boolean,reflect:!0})],exports.ChefUiAccordionItem.prototype,"expanded",void 0),e([fe({type:Boolean,reflect:!0})],exports.ChefUiAccordionItem.prototype,"disabled",void 0),e([fe({type:String})],exports.ChefUiAccordionItem.prototype,"title",void 0),e([fe({type:String})],exports.ChefUiAccordionItem.prototype,"subtitle",void 0),e([fe({type:String})],exports.ChefUiAccordionItem.prototype,"badge",void 0),e([fe({type:String})],exports.ChefUiAccordionItem.prototype,"icon",void 0),e([fe({type:String,reflect:!0})],exports.ChefUiAccordionItem.prototype,"variant",void 0),exports.ChefUiAccordionItem=e([de("chef-ui-accordion-item")],exports.ChefUiAccordionItem),exports.ChefUiActionButton=class extends he{constructor(){super(...arguments),this.disabled=!1,this.variant="circular",this.size="medium",this.color="default",this.ariaLabel=null}createRipple(e){const t=e.currentTarget,o=document.createElement("span");o.classList.add("ripple");const i=t.getBoundingClientRect(),r=Math.max(i.width,i.height),a=e.clientX-i.left-r/2,s=e.clientY-i.top-r/2;o.style.width=o.style.height=`${r}px`,o.style.left=`${a}px`,o.style.top=`${s}px`,t.appendChild(o),o.addEventListener("animationend",()=>{o.remove()})}handleClick(e){if(this.disabled)return e.stopImmediatePropagation(),void e.preventDefault();this.createRipple(e),this.dispatchEvent(new CustomEvent("chef-click",{bubbles:!0,composed:!0})),this.href&&(window.location.href=this.href)}render(){return Y`
691
691
  <button
692
692
  type="button"
693
693
  ?disabled=${this.disabled}
@@ -701,7 +701,7 @@ function ve(e,t){return(t,o,i)=>((e,t,o)=>(o.configurable=!0,o.enumerable=!0,Ref
701
701
  </slot>
702
702
  ${"extended"===this.variant?Y`<span class="label"><slot></slot></span>`:null}
703
703
  </button>
704
- `}},exports.ChefUiActionButton.styles=n`
704
+ `}},exports.ChefUiActionButton.styles=s`
705
705
  :host {
706
706
  display: inline-block;
707
707
  position: relative;
@@ -931,7 +931,7 @@ function ve(e,t){return(t,o,i)=>((e,t,o)=>(o.configurable=!0,o.enumerable=!0,Ref
931
931
  opacity: 0;
932
932
  }
933
933
  }
934
- `,e([fe({type:Boolean,reflect:!0})],exports.ChefUiActionButton.prototype,"disabled",void 0),e([fe({type:String,reflect:!0})],exports.ChefUiActionButton.prototype,"variant",void 0),e([fe({type:String,reflect:!0})],exports.ChefUiActionButton.prototype,"size",void 0),e([fe({type:String,reflect:!0})],exports.ChefUiActionButton.prototype,"color",void 0),e([fe({type:String,reflect:!0})],exports.ChefUiActionButton.prototype,"icon",void 0),e([fe({type:String})],exports.ChefUiActionButton.prototype,"href",void 0),e([fe({type:String,attribute:"aria-label"})],exports.ChefUiActionButton.prototype,"ariaLabel",void 0),exports.ChefUiActionButton=e([de("chef-ui-action-button")],exports.ChefUiActionButton),exports.ChefUiCalendar=class extends he{constructor(){super(...arguments),this.value="",this.disabledDates=[],this.highlightedDates=[],this.showToday=!0,this.showClear=!1,this.showFooter=!0,this.showLegend=!1,this.mode="single",this.weekdays=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],this.firstDayOfWeek=0,this.showMonthYearDropdowns=!0,this.currentMonth=new Date,this.today=this.formatDate(new Date)}connectedCallback(){super.connectedCallback(),this.focusDate?this.currentMonth=this.parseDate(this.focusDate):this.value&&(this.currentMonth=this.parseDate(this.value))}formatDate(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}parseDate(e){const[t,o,i]=e.split("-").map(Number);return new Date(t,o-1,i)}isSameDay(e,t){return this.formatDate(e)===this.formatDate(t)}isDateDisabled(e){return!!this.disabledDates.includes(e)||(!!(this.min&&e<this.min)||(!!(this.max&&e>this.max)||!!(this.availableDates&&this.availableDates.length>0)&&!this.availableDates.includes(e)))}isDateInRange(e){return!("range"!==this.mode||!this.rangeStart||!this.rangeEnd)&&(e>this.rangeStart&&e<this.rangeEnd)}previousMonth(){this.currentMonth=new Date(this.currentMonth.getFullYear(),this.currentMonth.getMonth()-1),this.requestUpdate()}nextMonth(){this.currentMonth=new Date(this.currentMonth.getFullYear(),this.currentMonth.getMonth()+1),this.requestUpdate()}selectDate(e,t){if(!t)if("range"===this.mode)!this.rangeStart||this.rangeStart&&this.rangeEnd?(this.rangeStart=e,this.rangeEnd=void 0):(e<this.rangeStart?(this.rangeEnd=this.rangeStart,this.rangeStart=e):this.rangeEnd=e,this.dispatchEvent(new CustomEvent("chef-range-change",{detail:{rangeStart:this.rangeStart,rangeEnd:this.rangeEnd},bubbles:!0,composed:!0})));else{const t=this.value;this.value=e,this.dispatchEvent(new CustomEvent("chef-change",{detail:{value:this.value,oldValue:t,date:this.parseDate(e)},bubbles:!0,composed:!0}))}}goToToday(){this.currentMonth=new Date,"single"===this.mode&&(this.value=this.today,this.dispatchEvent(new CustomEvent("chef-change",{detail:{value:this.value,date:new Date},bubbles:!0,composed:!0})))}clearSelection(){this.value="",this.rangeStart=void 0,this.rangeEnd=void 0,this.dispatchEvent(new CustomEvent("chef-clear",{bubbles:!0,composed:!0}))}getDaysInMonth(){const e=this.currentMonth.getFullYear(),t=this.currentMonth.getMonth(),o=(new Date(e,t,1).getDay()-this.firstDayOfWeek+7)%7,i=new Date(e,t+1,0).getDate(),r=[],a=new Date(e,t,0).getDate();for(let i=o-1;i>=0;i--){const o=new Date(e,t-1,a-i);r.push({date:o,dateString:this.formatDate(o),outOfMonth:!0})}for(let o=1;o<=i;o++){const i=new Date(e,t,o);r.push({date:i,dateString:this.formatDate(i),outOfMonth:!1})}const n=42-r.length;for(let o=1;o<=n;o++){const i=new Date(e,t+1,o);r.push({date:i,dateString:this.formatDate(i),outOfMonth:!0})}return r}getMonthYearLabel(){return`${["January","February","March","April","May","June","July","August","September","October","November","December"][this.currentMonth.getMonth()]} ${this.currentMonth.getFullYear()}`}getAvailableYears(){if(this.availableYears&&this.availableYears.length>0)return this.availableYears;const e=(new Date).getFullYear(),t=this.startYear||e-10,o=this.endYear||e+10,i=[];for(let e=t;e<=o;e++)i.push(e);return i}getAvailableMonthsForDisplay(){if(this.availableMonths&&this.availableMonths.length>0)return this.availableMonths;const e=[];for(let t=0;t<12;t++)e.push(t);return e}isMonthAvailable(e,t){if(this.availableMonths&&this.availableMonths.length>0&&!this.availableMonths.includes(e))return!1;if(void 0!==this.startMonth||void 0!==this.endMonth){if(t===this.currentMonth.getFullYear()){if(void 0!==this.startMonth&&e<this.startMonth)return!1;if(void 0!==this.endMonth&&e>this.endMonth)return!1}}return!0}handleMonthChange(e){const t=e.target,o=parseInt(t.value);this.currentMonth=new Date(this.currentMonth.getFullYear(),o,1),this.requestUpdate(),this.dispatchEvent(new CustomEvent("chef-month-change",{detail:{month:o,year:this.currentMonth.getFullYear()},bubbles:!0,composed:!0}))}handleYearChange(e){const t=e.target,o=parseInt(t.value);this.currentMonth=new Date(o,this.currentMonth.getMonth(),1),this.requestUpdate(),this.dispatchEvent(new CustomEvent("chef-year-change",{detail:{year:o,month:this.currentMonth.getMonth()},bubbles:!0,composed:!0}))}getMonthNames(){return["January","February","March","April","May","June","July","August","September","October","November","December"]}getWeekdaysAdjusted(){const e=[...this.weekdays];for(let t=0;t<this.firstDayOfWeek;t++)e.push(e.shift());return e}render(){const e=this.getDaysInMonth(),t=this.getWeekdaysAdjusted(),o=this.getMonthNames(),i=this.getAvailableYears(),r=this.getAvailableMonthsForDisplay(),a=this.currentMonth.getFullYear(),n=this.currentMonth.getMonth();return Y`
934
+ `,e([fe({type:Boolean,reflect:!0})],exports.ChefUiActionButton.prototype,"disabled",void 0),e([fe({type:String,reflect:!0})],exports.ChefUiActionButton.prototype,"variant",void 0),e([fe({type:String,reflect:!0})],exports.ChefUiActionButton.prototype,"size",void 0),e([fe({type:String,reflect:!0})],exports.ChefUiActionButton.prototype,"color",void 0),e([fe({type:String,reflect:!0})],exports.ChefUiActionButton.prototype,"icon",void 0),e([fe({type:String})],exports.ChefUiActionButton.prototype,"href",void 0),e([fe({type:String,attribute:"aria-label"})],exports.ChefUiActionButton.prototype,"ariaLabel",void 0),exports.ChefUiActionButton=e([de("chef-ui-action-button")],exports.ChefUiActionButton),exports.ChefUiCalendar=class extends he{constructor(){super(...arguments),this.value="",this.disabledDates=[],this.highlightedDates=[],this.showToday=!0,this.showClear=!1,this.showFooter=!0,this.showLegend=!1,this.mode="single",this.weekdays=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],this.firstDayOfWeek=0,this.showMonthYearDropdowns=!0,this.currentMonth=new Date,this.today=this.formatDate(new Date)}connectedCallback(){super.connectedCallback(),this.focusDate?this.currentMonth=this.parseDate(this.focusDate):this.value&&(this.currentMonth=this.parseDate(this.value))}formatDate(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}parseDate(e){const[t,o,i]=e.split("-").map(Number);return new Date(t,o-1,i)}isSameDay(e,t){return this.formatDate(e)===this.formatDate(t)}isDateDisabled(e){return!!this.disabledDates.includes(e)||(!!(this.min&&e<this.min)||(!!(this.max&&e>this.max)||!!(this.availableDates&&this.availableDates.length>0)&&!this.availableDates.includes(e)))}isDateInRange(e){return!("range"!==this.mode||!this.rangeStart||!this.rangeEnd)&&(e>this.rangeStart&&e<this.rangeEnd)}previousMonth(){this.currentMonth=new Date(this.currentMonth.getFullYear(),this.currentMonth.getMonth()-1),this.requestUpdate()}nextMonth(){this.currentMonth=new Date(this.currentMonth.getFullYear(),this.currentMonth.getMonth()+1),this.requestUpdate()}selectDate(e,t){if(!t)if("range"===this.mode)!this.rangeStart||this.rangeStart&&this.rangeEnd?(this.rangeStart=e,this.rangeEnd=void 0):(e<this.rangeStart?(this.rangeEnd=this.rangeStart,this.rangeStart=e):this.rangeEnd=e,this.dispatchEvent(new CustomEvent("chef-range-change",{detail:{rangeStart:this.rangeStart,rangeEnd:this.rangeEnd},bubbles:!0,composed:!0})));else{const t=this.value;this.value=e,this.dispatchEvent(new CustomEvent("chef-change",{detail:{value:this.value,oldValue:t,date:this.parseDate(e)},bubbles:!0,composed:!0}))}}goToToday(){this.currentMonth=new Date,"single"===this.mode&&(this.value=this.today,this.dispatchEvent(new CustomEvent("chef-change",{detail:{value:this.value,date:new Date},bubbles:!0,composed:!0})))}clearSelection(){this.value="",this.rangeStart=void 0,this.rangeEnd=void 0,this.dispatchEvent(new CustomEvent("chef-clear",{bubbles:!0,composed:!0}))}getDaysInMonth(){const e=this.currentMonth.getFullYear(),t=this.currentMonth.getMonth(),o=(new Date(e,t,1).getDay()-this.firstDayOfWeek+7)%7,i=new Date(e,t+1,0).getDate(),r=[],a=new Date(e,t,0).getDate();for(let i=o-1;i>=0;i--){const o=new Date(e,t-1,a-i);r.push({date:o,dateString:this.formatDate(o),outOfMonth:!0})}for(let o=1;o<=i;o++){const i=new Date(e,t,o);r.push({date:i,dateString:this.formatDate(i),outOfMonth:!1})}const s=42-r.length;for(let o=1;o<=s;o++){const i=new Date(e,t+1,o);r.push({date:i,dateString:this.formatDate(i),outOfMonth:!0})}return r}getMonthYearLabel(){return`${["January","February","March","April","May","June","July","August","September","October","November","December"][this.currentMonth.getMonth()]} ${this.currentMonth.getFullYear()}`}getAvailableYears(){if(this.availableYears&&this.availableYears.length>0)return this.availableYears;const e=(new Date).getFullYear(),t=this.startYear||e-10,o=this.endYear||e+10,i=[];for(let e=t;e<=o;e++)i.push(e);return i}getAvailableMonthsForDisplay(){if(this.availableMonths&&this.availableMonths.length>0)return this.availableMonths;const e=[];for(let t=0;t<12;t++)e.push(t);return e}isMonthAvailable(e,t){if(this.availableMonths&&this.availableMonths.length>0&&!this.availableMonths.includes(e))return!1;if(void 0!==this.startMonth||void 0!==this.endMonth){if(t===this.currentMonth.getFullYear()){if(void 0!==this.startMonth&&e<this.startMonth)return!1;if(void 0!==this.endMonth&&e>this.endMonth)return!1}}return!0}handleMonthChange(e){const t=e.target,o=parseInt(t.value);this.currentMonth=new Date(this.currentMonth.getFullYear(),o,1),this.requestUpdate(),this.dispatchEvent(new CustomEvent("chef-month-change",{detail:{month:o,year:this.currentMonth.getFullYear()},bubbles:!0,composed:!0}))}handleYearChange(e){const t=e.target,o=parseInt(t.value);this.currentMonth=new Date(o,this.currentMonth.getMonth(),1),this.requestUpdate(),this.dispatchEvent(new CustomEvent("chef-year-change",{detail:{year:o,month:this.currentMonth.getMonth()},bubbles:!0,composed:!0}))}getMonthNames(){return["January","February","March","April","May","June","July","August","September","October","November","December"]}getWeekdaysAdjusted(){const e=[...this.weekdays];for(let t=0;t<this.firstDayOfWeek;t++)e.push(e.shift());return e}render(){const e=this.getDaysInMonth(),t=this.getWeekdaysAdjusted(),o=this.getMonthNames(),i=this.getAvailableYears(),r=this.getAvailableMonthsForDisplay(),a=this.currentMonth.getFullYear(),s=this.currentMonth.getMonth();return Y`
935
935
  <div class="calendar-container" role="application" aria-label="Calendar">
936
936
  <div class="header">
937
937
  <button
@@ -948,14 +948,14 @@ function ve(e,t){return(t,o,i)=>((e,t,o)=>(o.configurable=!0,o.enumerable=!0,Ref
948
948
  <select
949
949
  class="month-select"
950
950
  @change=${this.handleMonthChange}
951
- .value=${n.toString()}
951
+ .value=${s.toString()}
952
952
  aria-label="Select month"
953
953
  part="month-select"
954
954
  >
955
955
  ${r.map(e=>Y`
956
956
  <option
957
957
  value=${e}
958
- ?selected=${e===n}
958
+ ?selected=${e===s}
959
959
  ?disabled=${!this.isMonthAvailable(e,a)}
960
960
  >
961
961
  ${o[e]}
@@ -998,7 +998,7 @@ function ve(e,t){return(t,o,i)=>((e,t,o)=>(o.configurable=!0,o.enumerable=!0,Ref
998
998
  </div>
999
999
 
1000
1000
  <div class="days" role="grid">
1001
- ${e.map(({date:e,dateString:t,outOfMonth:o})=>{const i=t===this.today,r=t===this.value,a=this.isDateDisabled(t),n=this.availableDates?.includes(t),s=this.highlightedDates.includes(t),c=t===this.focusDate,h=this.isDateInRange(t),l=t===this.rangeStart,d=t===this.rangeEnd,p=["day",o&&"out-of-month",i&&"today",r&&"selected",a&&"disabled",n&&"available",c&&"focused",h&&"in-range",l&&"range-start",d&&"range-end"].filter(Boolean).join(" ");return Y`
1001
+ ${e.map(({date:e,dateString:t,outOfMonth:o})=>{const i=t===this.today,r=t===this.value,a=this.isDateDisabled(t),s=this.availableDates?.includes(t),n=this.highlightedDates.includes(t),c=t===this.focusDate,h=this.isDateInRange(t),l=t===this.rangeStart,d=t===this.rangeEnd,p=["day",o&&"out-of-month",i&&"today",r&&"selected",a&&"disabled",s&&"available",c&&"focused",h&&"in-range",l&&"range-start",d&&"range-end"].filter(Boolean).join(" ");return Y`
1002
1002
  <button
1003
1003
  class=${p}
1004
1004
  @click=${()=>this.selectDate(t,a)}
@@ -1009,7 +1009,7 @@ function ve(e,t){return(t,o,i)=>((e,t,o)=>(o.configurable=!0,o.enumerable=!0,Ref
1009
1009
  part="day"
1010
1010
  >
1011
1011
  ${e.getDate()}
1012
- ${s?Y`<span class="day-indicator"></span>`:null}
1012
+ ${n?Y`<span class="day-indicator"></span>`:null}
1013
1013
  </button>
1014
1014
  `})}
1015
1015
  </div>
@@ -1048,7 +1048,7 @@ function ve(e,t){return(t,o,i)=>((e,t,o)=>(o.configurable=!0,o.enumerable=!0,Ref
1048
1048
  </div>
1049
1049
  `:null}
1050
1050
  </div>
1051
- `}},exports.ChefUiCalendar.styles=n`
1051
+ `}},exports.ChefUiCalendar.styles=s`
1052
1052
  :host {
1053
1053
  display: block;
1054
1054
  --chefui-calendar-bg: #1e293b;
@@ -1336,7 +1336,7 @@ function ve(e,t){return(t,o,i)=>((e,t,o)=>(o.configurable=!0,o.enumerable=!0,Ref
1336
1336
  ${this.helperText?Y`
1337
1337
  <span class="helper-text" part="helper-text">${this.helperText}</span>
1338
1338
  `:null}
1339
- `}},exports.ChefUiCheckbox.styles=n`
1339
+ `}},exports.ChefUiCheckbox.styles=s`
1340
1340
  :host {
1341
1341
  display: inline-flex;
1342
1342
  --chefui-checkbox-size: 20px;
@@ -1401,6 +1401,7 @@ function ve(e,t){return(t,o,i)=>((e,t,o)=>(o.configurable=!0,o.enumerable=!0,Ref
1401
1401
  justify-content: center;
1402
1402
  transition: all var(--chefui-checkbox-transition);
1403
1403
  position: relative;
1404
+ box-sizing: border-box;
1404
1405
  }
1405
1406
 
1406
1407
  .checkbox-input:hover ~ .checkbox-box {
@@ -1589,7 +1590,298 @@ function ve(e,t){return(t,o,i)=>((e,t,o)=>(o.configurable=!0,o.enumerable=!0,Ref
1589
1590
  :host([icon-only]) .label {
1590
1591
  display: none;
1591
1592
  }
1592
- `,e([fe({type:Boolean,reflect:!0})],exports.ChefUiCheckbox.prototype,"checked",void 0),e([fe({type:Boolean,reflect:!0})],exports.ChefUiCheckbox.prototype,"indeterminate",void 0),e([fe({type:Boolean,reflect:!0})],exports.ChefUiCheckbox.prototype,"disabled",void 0),e([fe({type:Boolean,reflect:!0})],exports.ChefUiCheckbox.prototype,"required",void 0),e([fe({type:Boolean,reflect:!0})],exports.ChefUiCheckbox.prototype,"error",void 0),e([fe({type:String})],exports.ChefUiCheckbox.prototype,"name",void 0),e([fe({type:String})],exports.ChefUiCheckbox.prototype,"value",void 0),e([fe({type:String,reflect:!0})],exports.ChefUiCheckbox.prototype,"size",void 0),e([fe({type:String,reflect:!0})],exports.ChefUiCheckbox.prototype,"color",void 0),e([fe({type:String})],exports.ChefUiCheckbox.prototype,"label",void 0),e([fe({type:String})],exports.ChefUiCheckbox.prototype,"helperText",void 0),e([fe({type:String,reflect:!0,attribute:"label-placement"})],exports.ChefUiCheckbox.prototype,"labelPlacement",void 0),e([fe({type:String})],exports.ChefUiCheckbox.prototype,"checkedIcon",void 0),e([fe({type:String})],exports.ChefUiCheckbox.prototype,"uncheckedIcon",void 0),e([fe({type:String})],exports.ChefUiCheckbox.prototype,"indeterminateIcon",void 0),e([fe({type:Boolean,reflect:!0,attribute:"icon-only"})],exports.ChefUiCheckbox.prototype,"iconOnly",void 0),e([fe({type:String,reflect:!0,attribute:"checkbox-type"})],exports.ChefUiCheckbox.prototype,"checkboxType",void 0),exports.ChefUiCheckbox=e([de("chef-ui-checkbox")],exports.ChefUiCheckbox),exports.ChefUiReaction=class extends he{constructor(){super(...arguments),this.active=!1,this.disabled=!1,this.count=0,this.showCount=!0,this.type="like",this.size="medium",this.variant="outlined",this.value="on"}getIcon(){return{like:"heart","thumbs-up":"thumbs-up",star:"star",bookmark:"bookmark"}[this.type]}handleClick(){if(this.disabled)return;const e=this.active,t=this.count;this.active=!this.active,this.showCount&&(this.count=this.active?t+1:Math.max(0,t-1)),this.dispatchEvent(new CustomEvent("chef-reaction-change",{detail:{active:this.active,count:this.count,type:this.type,oldActive:e,oldCount:t},bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}render(){const e=this.getIcon();return Y`
1593
+ `,e([fe({type:Boolean,reflect:!0})],exports.ChefUiCheckbox.prototype,"checked",void 0),e([fe({type:Boolean,reflect:!0})],exports.ChefUiCheckbox.prototype,"indeterminate",void 0),e([fe({type:Boolean,reflect:!0})],exports.ChefUiCheckbox.prototype,"disabled",void 0),e([fe({type:Boolean,reflect:!0})],exports.ChefUiCheckbox.prototype,"required",void 0),e([fe({type:Boolean,reflect:!0})],exports.ChefUiCheckbox.prototype,"error",void 0),e([fe({type:String})],exports.ChefUiCheckbox.prototype,"name",void 0),e([fe({type:String})],exports.ChefUiCheckbox.prototype,"value",void 0),e([fe({type:String,reflect:!0})],exports.ChefUiCheckbox.prototype,"size",void 0),e([fe({type:String,reflect:!0})],exports.ChefUiCheckbox.prototype,"color",void 0),e([fe({type:String})],exports.ChefUiCheckbox.prototype,"label",void 0),e([fe({type:String})],exports.ChefUiCheckbox.prototype,"helperText",void 0),e([fe({type:String,reflect:!0,attribute:"label-placement"})],exports.ChefUiCheckbox.prototype,"labelPlacement",void 0),e([fe({type:String})],exports.ChefUiCheckbox.prototype,"checkedIcon",void 0),e([fe({type:String})],exports.ChefUiCheckbox.prototype,"uncheckedIcon",void 0),e([fe({type:String})],exports.ChefUiCheckbox.prototype,"indeterminateIcon",void 0),e([fe({type:Boolean,reflect:!0,attribute:"icon-only"})],exports.ChefUiCheckbox.prototype,"iconOnly",void 0),e([fe({type:String,reflect:!0,attribute:"checkbox-type"})],exports.ChefUiCheckbox.prototype,"checkboxType",void 0),exports.ChefUiCheckbox=e([de("chef-ui-checkbox")],exports.ChefUiCheckbox),exports.ChefUiRadio=class extends he{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.required=!1,this.error=!1,this.value="",this.size="medium",this.color="primary",this.labelPlacement="end"}handleChange(e){if(this.disabled)return void e.preventDefault();const t=e.target,o=this.checked;this.checked=t.checked,this.dispatchEvent(new CustomEvent("chef-change",{detail:{checked:this.checked,value:this.value,oldValue:o},bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}handleClick(e){e.target.classList.contains("label")&&e.preventDefault()}render(){return Y`
1594
+ <label class="radio-wrapper" @click=${this.handleClick} part="wrapper">
1595
+ <div class="radio-container" part="container">
1596
+ <input
1597
+ type="radio"
1598
+ class="radio-input"
1599
+ .checked=${this.checked}
1600
+ ?disabled=${this.disabled}
1601
+ ?required=${this.required}
1602
+ name=${this.name||""}
1603
+ value=${this.value}
1604
+ @change=${this.handleChange}
1605
+ aria-checked=${this.checked?"true":"false"}
1606
+ aria-disabled=${this.disabled}
1607
+ part="input"
1608
+ />
1609
+ <div class="radio-circle" part="circle">
1610
+ <div class="radio-dot" part="dot"></div>
1611
+ </div>
1612
+ </div>
1613
+
1614
+ ${this.label?Y`
1615
+ <span class="label" part="label">
1616
+ <slot>${this.label}</slot>
1617
+ </span>
1618
+ `:Y`
1619
+ <span class="label" part="label">
1620
+ <slot></slot>
1621
+ </span>
1622
+ `}
1623
+ </label>
1624
+
1625
+ ${this.helperText?Y`
1626
+ <span class="helper-text" part="helper-text">${this.helperText}</span>
1627
+ `:null}
1628
+ `}},exports.ChefUiRadio.styles=s`
1629
+ :host {
1630
+ display: inline-flex;
1631
+ --chefui-radio-size: 20px;
1632
+ --chefui-radio-border: #64748b;
1633
+ --chefui-radio-bg: transparent;
1634
+ --chefui-radio-checked-bg: #7c3aed;
1635
+ --chefui-radio-checked-border: #7c3aed;
1636
+ --chefui-radio-hover: rgba(124, 58, 237, 0.08);
1637
+ --chefui-radio-focus-ring: 0 0 0 3px rgba(124, 58, 237, 0.2);
1638
+ --chefui-radio-disabled-opacity: 0.5;
1639
+ --chefui-radio-text: #e2e8f0;
1640
+ --chefui-radio-transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
1641
+ --chefui-radio-dot-size: 10px;
1642
+ }
1643
+
1644
+ .radio-wrapper {
1645
+ display: inline-flex;
1646
+ align-items: flex-start;
1647
+ gap: 8px;
1648
+ cursor: pointer;
1649
+ user-select: none;
1650
+ position: relative;
1651
+ }
1652
+
1653
+ :host([disabled]) .radio-wrapper {
1654
+ cursor: not-allowed;
1655
+ opacity: var(--chefui-radio-disabled-opacity);
1656
+ }
1657
+
1658
+ .radio-container {
1659
+ position: relative;
1660
+ display: inline-flex;
1661
+ align-items: center;
1662
+ justify-content: center;
1663
+ width: var(--chefui-radio-size);
1664
+ height: var(--chefui-radio-size);
1665
+ flex-shrink: 0;
1666
+ }
1667
+
1668
+ .radio-input {
1669
+ position: absolute;
1670
+ opacity: 0;
1671
+ width: 100%;
1672
+ height: 100%;
1673
+ margin: 0;
1674
+ cursor: pointer;
1675
+ z-index: 1;
1676
+ }
1677
+
1678
+ :host([disabled]) .radio-input {
1679
+ cursor: not-allowed;
1680
+ }
1681
+
1682
+ .radio-circle {
1683
+ width: 100%;
1684
+ height: 100%;
1685
+ border: 2px solid var(--chefui-radio-border);
1686
+ border-radius: 50%;
1687
+ background: var(--chefui-radio-bg);
1688
+ display: flex;
1689
+ align-items: center;
1690
+ justify-content: center;
1691
+ transition: all var(--chefui-radio-transition);
1692
+ position: relative;
1693
+ box-sizing: border-box;
1694
+ }
1695
+
1696
+ .radio-input:hover ~ .radio-circle {
1697
+ background: var(--chefui-radio-hover);
1698
+ }
1699
+
1700
+ .radio-input:focus-visible ~ .radio-circle {
1701
+ box-shadow: var(--chefui-radio-focus-ring);
1702
+ }
1703
+
1704
+ :host([checked]) .radio-circle {
1705
+ border-color: var(--chefui-radio-checked-border);
1706
+ }
1707
+
1708
+ .radio-dot {
1709
+ width: var(--chefui-radio-dot-size);
1710
+ height: var(--chefui-radio-dot-size);
1711
+ border-radius: 50%;
1712
+ background: var(--chefui-radio-checked-bg);
1713
+ opacity: 0;
1714
+ transform: scale(0.5);
1715
+ transition: all var(--chefui-radio-transition);
1716
+ }
1717
+
1718
+ :host([checked]) .radio-dot {
1719
+ opacity: 1;
1720
+ transform: scale(1);
1721
+ }
1722
+
1723
+ .label {
1724
+ color: var(--chefui-radio-text);
1725
+ font-size: 14px;
1726
+ line-height: 20px;
1727
+ display: flex;
1728
+ align-items: center;
1729
+ }
1730
+
1731
+ /* Size variants */
1732
+ :host([size="small"]) {
1733
+ --chefui-radio-size: 16px;
1734
+ --chefui-radio-dot-size: 8px;
1735
+ }
1736
+
1737
+ :host([size="small"]) .label {
1738
+ font-size: 13px;
1739
+ }
1740
+
1741
+ :host([size="large"]) {
1742
+ --chefui-radio-size: 24px;
1743
+ --chefui-radio-dot-size: 12px;
1744
+ }
1745
+
1746
+ :host([size="large"]) .label {
1747
+ font-size: 15px;
1748
+ }
1749
+
1750
+ /* Color variants */
1751
+ :host([color="primary"]) {
1752
+ --chefui-radio-checked-bg: #7c3aed;
1753
+ --chefui-radio-checked-border: #7c3aed;
1754
+ --chefui-radio-hover: rgba(124, 58, 237, 0.08);
1755
+ --chefui-radio-focus-ring: 0 0 0 3px rgba(124, 58, 237, 0.2);
1756
+ }
1757
+
1758
+ :host([color="secondary"]) {
1759
+ --chefui-radio-checked-bg: #ec4899;
1760
+ --chefui-radio-checked-border: #ec4899;
1761
+ --chefui-radio-hover: rgba(236, 72, 153, 0.08);
1762
+ --chefui-radio-focus-ring: 0 0 0 3px rgba(236, 72, 153, 0.2);
1763
+ }
1764
+
1765
+ :host([color="success"]) {
1766
+ --chefui-radio-checked-bg: #10b981;
1767
+ --chefui-radio-checked-border: #10b981;
1768
+ --chefui-radio-hover: rgba(16, 185, 129, 0.08);
1769
+ --chefui-radio-focus-ring: 0 0 0 3px rgba(16, 185, 129, 0.2);
1770
+ }
1771
+
1772
+ :host([color="error"]) {
1773
+ --chefui-radio-checked-bg: #ef4444;
1774
+ --chefui-radio-checked-border: #ef4444;
1775
+ --chefui-radio-hover: rgba(239, 68, 68, 0.08);
1776
+ --chefui-radio-focus-ring: 0 0 0 3px rgba(239, 68, 68, 0.2);
1777
+ }
1778
+
1779
+ :host([color="warning"]) {
1780
+ --chefui-radio-checked-bg: #f59e0b;
1781
+ --chefui-radio-checked-border: #f59e0b;
1782
+ --chefui-radio-hover: rgba(245, 158, 11, 0.08);
1783
+ --chefui-radio-focus-ring: 0 0 0 3px rgba(245, 158, 11, 0.2);
1784
+ }
1785
+
1786
+ :host([color="info"]) {
1787
+ --chefui-radio-checked-bg: #3b82f6;
1788
+ --chefui-radio-checked-border: #3b82f6;
1789
+ --chefui-radio-hover: rgba(59, 130, 246, 0.08);
1790
+ --chefui-radio-focus-ring: 0 0 0 3px rgba(59, 130, 246, 0.2);
1791
+ }
1792
+
1793
+ /* Error state */
1794
+ :host([error]) .radio-circle {
1795
+ border-color: #ef4444;
1796
+ }
1797
+
1798
+ .helper-text {
1799
+ display: block;
1800
+ font-size: 12px;
1801
+ color: var(--chefui-radio-text);
1802
+ opacity: 0.7;
1803
+ margin-top: 4px;
1804
+ margin-left: calc(var(--chefui-radio-size) + 8px);
1805
+ }
1806
+
1807
+ :host([error]) .helper-text {
1808
+ color: #ef4444;
1809
+ opacity: 1;
1810
+ }
1811
+
1812
+ /* Label position */
1813
+ :host([label-placement="start"]) .radio-wrapper {
1814
+ flex-direction: row-reverse;
1815
+ }
1816
+
1817
+ :host([label-placement="top"]) .radio-wrapper {
1818
+ flex-direction: column-reverse;
1819
+ align-items: flex-start;
1820
+ }
1821
+
1822
+ :host([label-placement="bottom"]) .radio-wrapper {
1823
+ flex-direction: column;
1824
+ align-items: flex-start;
1825
+ }
1826
+ `,e([fe({type:Boolean,reflect:!0})],exports.ChefUiRadio.prototype,"checked",void 0),e([fe({type:Boolean,reflect:!0})],exports.ChefUiRadio.prototype,"disabled",void 0),e([fe({type:Boolean,reflect:!0})],exports.ChefUiRadio.prototype,"required",void 0),e([fe({type:Boolean,reflect:!0})],exports.ChefUiRadio.prototype,"error",void 0),e([fe({type:String})],exports.ChefUiRadio.prototype,"name",void 0),e([fe({type:String})],exports.ChefUiRadio.prototype,"value",void 0),e([fe({type:String,reflect:!0})],exports.ChefUiRadio.prototype,"size",void 0),e([fe({type:String,reflect:!0})],exports.ChefUiRadio.prototype,"color",void 0),e([fe({type:String})],exports.ChefUiRadio.prototype,"label",void 0),e([fe({type:String})],exports.ChefUiRadio.prototype,"helperText",void 0),e([fe({type:String,reflect:!0,attribute:"label-placement"})],exports.ChefUiRadio.prototype,"labelPlacement",void 0),exports.ChefUiRadio=e([de("chef-ui-radio")],exports.ChefUiRadio),exports.ChefUiRadioGroup=class extends he{constructor(){super(...arguments),this.disabled=!1,this.required=!1,this.error=!1,this.direction="column",this.size="medium",this.color="primary",this.radios=[]}connectedCallback(){super.connectedCallback(),this.addEventListener("chef-change",this.handleRadioChange)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("chef-change",this.handleRadioChange)}firstUpdated(){this.updateRadios()}updated(e){(e.has("value")||e.has("name")||e.has("disabled")||e.has("size")||e.has("color")||e.has("error"))&&this.updateRadios()}handleSlotChange(){this.updateRadios()}updateRadios(){const e=this.shadowRoot?.querySelector("slot");if(!e)return;const t=e.assignedElements({flatten:!0});this.radios=t.filter(e=>"chef-ui-radio"===e.tagName.toLowerCase()),this.radios.forEach(e=>{this.name&&(e.name=this.name),e.disabled=this.disabled,e.error=this.error,e.size=this.size,e.color=this.color,e.checked=e.value===this.value})}handleRadioChange(e){const t=e.target;if(!this.radios.includes(t))return;e.stopPropagation();const o=this.value;this.value=t.value,this.radios.forEach(e=>{e!==t&&(e.checked=!1)}),this.dispatchEvent(new CustomEvent("chef-change",{detail:{value:this.value,oldValue:o},bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}render(){return Y`
1827
+ ${this.label?Y`
1828
+ <div class="label" part="label">${this.label}</div>
1829
+ `:null}
1830
+
1831
+ <div class="radio-group" part="group" role="radiogroup" aria-required=${this.required}>
1832
+ <slot @slotchange=${this.handleSlotChange}></slot>
1833
+ </div>
1834
+
1835
+ ${this.helperText?Y`
1836
+ <div class="helper-text" part="helper-text">${this.helperText}</div>
1837
+ `:null}
1838
+ `}},exports.ChefUiRadioGroup.styles=s`
1839
+ :host {
1840
+ display: block;
1841
+ --chefui-radio-group-gap: 12px;
1842
+ --chefui-radio-group-text: #e2e8f0;
1843
+ }
1844
+
1845
+ .radio-group {
1846
+ display: flex;
1847
+ flex-direction: column;
1848
+ gap: var(--chefui-radio-group-gap);
1849
+ }
1850
+
1851
+ :host([direction="row"]) .radio-group {
1852
+ flex-direction: row;
1853
+ }
1854
+
1855
+ .label {
1856
+ display: block;
1857
+ font-size: 14px;
1858
+ font-weight: 500;
1859
+ color: var(--chefui-radio-group-text);
1860
+ margin-bottom: 8px;
1861
+ }
1862
+
1863
+ .helper-text {
1864
+ display: block;
1865
+ font-size: 12px;
1866
+ color: var(--chefui-radio-group-text);
1867
+ opacity: 0.7;
1868
+ margin-top: 8px;
1869
+ }
1870
+
1871
+ :host([error]) .helper-text {
1872
+ color: #ef4444;
1873
+ opacity: 1;
1874
+ }
1875
+
1876
+ :host([error]) .label {
1877
+ color: #ef4444;
1878
+ }
1879
+
1880
+ :host([disabled]) {
1881
+ opacity: 0.5;
1882
+ pointer-events: none;
1883
+ }
1884
+ `,e([fe({type:String})],exports.ChefUiRadioGroup.prototype,"value",void 0),e([fe({type:String})],exports.ChefUiRadioGroup.prototype,"name",void 0),e([fe({type:Boolean,reflect:!0})],exports.ChefUiRadioGroup.prototype,"disabled",void 0),e([fe({type:Boolean,reflect:!0})],exports.ChefUiRadioGroup.prototype,"required",void 0),e([fe({type:Boolean,reflect:!0})],exports.ChefUiRadioGroup.prototype,"error",void 0),e([fe({type:String})],exports.ChefUiRadioGroup.prototype,"label",void 0),e([fe({type:String})],exports.ChefUiRadioGroup.prototype,"helperText",void 0),e([fe({type:String,reflect:!0})],exports.ChefUiRadioGroup.prototype,"direction",void 0),e([fe({type:String,reflect:!0})],exports.ChefUiRadioGroup.prototype,"size",void 0),e([fe({type:String,reflect:!0})],exports.ChefUiRadioGroup.prototype,"color",void 0),e([be()],exports.ChefUiRadioGroup.prototype,"radios",void 0),exports.ChefUiRadioGroup=e([de("chef-ui-radio-group")],exports.ChefUiRadioGroup),exports.ChefUiReaction=class extends he{constructor(){super(...arguments),this.active=!1,this.disabled=!1,this.count=0,this.showCount=!0,this.type="like",this.size="medium",this.variant="outlined",this.value="on"}getIcon(){return{like:"heart","thumbs-up":"thumbs-up",star:"star",bookmark:"bookmark"}[this.type]}handleClick(){if(this.disabled)return;const e=this.active,t=this.count;this.active=!this.active,this.showCount&&(this.count=this.active?t+1:Math.max(0,t-1)),this.dispatchEvent(new CustomEvent("chef-reaction-change",{detail:{active:this.active,count:this.count,type:this.type,oldActive:e,oldCount:t},bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}render(){const e=this.getIcon();return Y`
1593
1885
  <div class="reaction-wrapper" @click=${this.handleClick} part="wrapper">
1594
1886
  <button
1595
1887
  class="reaction-button"
@@ -1608,7 +1900,7 @@ function ve(e,t){return(t,o,i)=>((e,t,o)=>(o.configurable=!0,o.enumerable=!0,Ref
1608
1900
  </span>
1609
1901
  `:null}
1610
1902
  </div>
1611
- `}},exports.ChefUiReaction.styles=n`
1903
+ `}},exports.ChefUiReaction.styles=s`
1612
1904
  :host {
1613
1905
  display: inline-flex;
1614
1906
  --chefui-reaction-size: 40px;