scb-wc-test 0.1.106 → 0.1.107

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.
@@ -10,7 +10,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */const{is:kl,defineProperty:$l,getOwnPropertyDescriptor:Cl,getOwnPropertyNames:El,getOwnPropertySymbols:Tl,getPrototypeOf:Al}=Object,Je=globalThis,cs=Je.trustedTypes,zl=cs?cs.emptyScript:"",fa=Je.reactiveElementPolyfillSupport,ri=(a,e)=>a,Yi={toAttribute(a,e){switch(e){case Boolean:a=a?zl:null;break;case Object:case Array:a=a==null?a:JSON.stringify(a)}return a},fromAttribute(a,e){let t=a;switch(e){case Boolean:t=a!==null;break;case Number:t=a===null?null:Number(a);break;case Object:case Array:try{t=JSON.parse(a)}catch{t=null}}return t}},ga=(a,e)=>!kl(a,e),ds={attribute:!0,type:String,converter:Yi,reflect:!1,useDefault:!1,hasChanged:ga};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Je.litPropertyMetadata??(Je.litPropertyMetadata=new WeakMap);let Ft=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=ds){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 i=Symbol(),r=this.getPropertyDescriptor(e,i,t);r!==void 0&&$l(this.prototype,e,r)}}static getPropertyDescriptor(e,t,i){const{get:r,set:s}=Cl(this.prototype,e)??{get(){return this[t]},set(l){this[t]=l}};return{get:r,set(l){const h=r==null?void 0:r.call(this);s==null||s.call(this,l),this.requestUpdate(e,h,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??ds}static _$Ei(){if(this.hasOwnProperty(ri("elementProperties")))return;const e=Al(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(ri("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ri("properties"))){const t=this.properties,i=[...El(t),...Tl(t)];for(const r of i)this.createProperty(r,t[r])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[i,r]of t)this.elementProperties.set(i,r)}this._$Eh=new Map;for(const[t,i]of this.elementProperties){const r=this._$Eu(t,i);r!==void 0&&this._$Eh.set(r,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const r of i)t.unshift(ls(r))}else e!==void 0&&t.push(ls(e));return t}static _$Eu(e,t){const i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((t=e.hostConnected)==null||t.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Sl(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostConnected)==null?void 0:i.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostDisconnected)==null?void 0:i.call(t)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$ET(e,t){var s;const i=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,i);if(r!==void 0&&i.reflect===!0){const l=(((s=i.converter)==null?void 0:s.toAttribute)!==void 0?i.converter:Yi).toAttribute(t,i.type);this._$Em=e,l==null?this.removeAttribute(r):this.setAttribute(r,l),this._$Em=null}}_$AK(e,t){var s,l;const i=this.constructor,r=i._$Eh.get(e);if(r!==void 0&&this._$Em!==r){const h=i.getPropertyOptions(r),p=typeof h.converter=="function"?{fromAttribute:h.converter}:((s=h.converter)==null?void 0:s.fromAttribute)!==void 0?h.converter:Yi;this._$Em=r;const v=p.fromAttribute(t,h.type);this[r]=v??((l=this._$Ej)==null?void 0:l.get(r))??v,this._$Em=null}}requestUpdate(e,t,i){var r;if(e!==void 0){const s=this.constructor,l=this[e];if(i??(i=s.getPropertyOptions(e)),!((i.hasChanged??ga)(l,t)||i.useDefault&&i.reflect&&l===((r=this._$Ej)==null?void 0:r.get(e))&&!this.hasAttribute(s._$Eu(e,i))))return;this.C(e,t,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:i,reflect:r,wrapped:s},l){i&&!(this._$Ej??(this._$Ej=new Map)).has(e)&&(this._$Ej.set(e,l??t??this[e]),s!==!0||l!==void 0)||(this._$AL.has(e)||(this.hasUpdated||i||(t=void 0),this._$AL.set(e,t)),r===!0&&this._$Em!==e&&(this._$Eq??(this._$Eq=new Set)).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[s,l]of this._$Ep)this[s]=l;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[s,l]of r){const{wrapped:h}=l,p=this[s];h!==!0||this._$AL.has(s)||p===void 0||this.C(s,void 0,l,p)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(r=>{var s;return(s=r.hostUpdate)==null?void 0:s.call(r)}),this.update(t)):this._$EM()}catch(r){throw e=!1,this._$EM(),r}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(i=>{var r;return(r=i.hostUpdated)==null?void 0:r.call(i)}),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=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(e){}firstUpdated(e){}};Ft.elementStyles=[],Ft.shadowRootOptions={mode:"open"},Ft[ri("elementProperties")]=new Map,Ft[ri("finalized")]=new Map,fa==null||fa({ReactiveElement:Ft}),(Je.reactiveElementVersions??(Je.reactiveElementVersions=[])).push("2.1.1");/**
13
+ */const{is:kl,defineProperty:$l,getOwnPropertyDescriptor:Cl,getOwnPropertyNames:El,getOwnPropertySymbols:Tl,getPrototypeOf:Al}=Object,Qe=globalThis,cs=Qe.trustedTypes,zl=cs?cs.emptyScript:"",fa=Qe.reactiveElementPolyfillSupport,ri=(a,e)=>a,Yi={toAttribute(a,e){switch(e){case Boolean:a=a?zl:null;break;case Object:case Array:a=a==null?a:JSON.stringify(a)}return a},fromAttribute(a,e){let t=a;switch(e){case Boolean:t=a!==null;break;case Number:t=a===null?null:Number(a);break;case Object:case Array:try{t=JSON.parse(a)}catch{t=null}}return t}},ga=(a,e)=>!kl(a,e),ds={attribute:!0,type:String,converter:Yi,reflect:!1,useDefault:!1,hasChanged:ga};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Qe.litPropertyMetadata??(Qe.litPropertyMetadata=new WeakMap);let Ft=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=ds){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 i=Symbol(),r=this.getPropertyDescriptor(e,i,t);r!==void 0&&$l(this.prototype,e,r)}}static getPropertyDescriptor(e,t,i){const{get:r,set:s}=Cl(this.prototype,e)??{get(){return this[t]},set(l){this[t]=l}};return{get:r,set(l){const h=r==null?void 0:r.call(this);s==null||s.call(this,l),this.requestUpdate(e,h,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??ds}static _$Ei(){if(this.hasOwnProperty(ri("elementProperties")))return;const e=Al(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(ri("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ri("properties"))){const t=this.properties,i=[...El(t),...Tl(t)];for(const r of i)this.createProperty(r,t[r])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[i,r]of t)this.elementProperties.set(i,r)}this._$Eh=new Map;for(const[t,i]of this.elementProperties){const r=this._$Eu(t,i);r!==void 0&&this._$Eh.set(r,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const r of i)t.unshift(ls(r))}else e!==void 0&&t.push(ls(e));return t}static _$Eu(e,t){const i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((t=e.hostConnected)==null||t.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Sl(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostConnected)==null?void 0:i.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostDisconnected)==null?void 0:i.call(t)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$ET(e,t){var s;const i=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,i);if(r!==void 0&&i.reflect===!0){const l=(((s=i.converter)==null?void 0:s.toAttribute)!==void 0?i.converter:Yi).toAttribute(t,i.type);this._$Em=e,l==null?this.removeAttribute(r):this.setAttribute(r,l),this._$Em=null}}_$AK(e,t){var s,l;const i=this.constructor,r=i._$Eh.get(e);if(r!==void 0&&this._$Em!==r){const h=i.getPropertyOptions(r),p=typeof h.converter=="function"?{fromAttribute:h.converter}:((s=h.converter)==null?void 0:s.fromAttribute)!==void 0?h.converter:Yi;this._$Em=r;const v=p.fromAttribute(t,h.type);this[r]=v??((l=this._$Ej)==null?void 0:l.get(r))??v,this._$Em=null}}requestUpdate(e,t,i){var r;if(e!==void 0){const s=this.constructor,l=this[e];if(i??(i=s.getPropertyOptions(e)),!((i.hasChanged??ga)(l,t)||i.useDefault&&i.reflect&&l===((r=this._$Ej)==null?void 0:r.get(e))&&!this.hasAttribute(s._$Eu(e,i))))return;this.C(e,t,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:i,reflect:r,wrapped:s},l){i&&!(this._$Ej??(this._$Ej=new Map)).has(e)&&(this._$Ej.set(e,l??t??this[e]),s!==!0||l!==void 0)||(this._$AL.has(e)||(this.hasUpdated||i||(t=void 0),this._$AL.set(e,t)),r===!0&&this._$Em!==e&&(this._$Eq??(this._$Eq=new Set)).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[s,l]of this._$Ep)this[s]=l;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[s,l]of r){const{wrapped:h}=l,p=this[s];h!==!0||this._$AL.has(s)||p===void 0||this.C(s,void 0,l,p)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(r=>{var s;return(s=r.hostUpdate)==null?void 0:s.call(r)}),this.update(t)):this._$EM()}catch(r){throw e=!1,this._$EM(),r}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(i=>{var r;return(r=i.hostUpdated)==null?void 0:r.call(i)}),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=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(e){}firstUpdated(e){}};Ft.elementStyles=[],Ft.shadowRootOptions={mode:"open"},Ft[ri("elementProperties")]=new Map,Ft[ri("finalized")]=new Map,fa==null||fa({ReactiveElement:Ft}),(Qe.reactiveElementVersions??(Qe.reactiveElementVersions=[])).push("2.1.1");/**
14
14
  * @license
15
15
  * Copyright 2017 Google LLC
16
16
  * SPDX-License-Identifier: BSD-3-Clause
@@ -46,13 +46,13 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
46
46
  * @license
47
47
  * Copyright 2017 Google LLC
48
48
  * SPDX-License-Identifier: BSD-3-Clause
49
- */const oi=globalThis,Xi=oi.trustedTypes,ps=Xi?Xi.createPolicy("lit-html",{createHTML:a=>a}):void 0,us="$lit$",Qe=`lit$${Math.random().toFixed(9).slice(2)}$`,vs="?"+Qe,Rl=`<${vs}>`,ht=document,si=()=>ht.createComment(""),ni=a=>a===null||typeof a!="object"&&typeof a!="function",_a=Array.isArray,Bl=a=>_a(a)||typeof(a==null?void 0:a[Symbol.iterator])=="function",xa=`[
50
- \f\r]`,li=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,bs=/-->/g,ms=/>/g,pt=RegExp(`>|${xa}(?:([^\\s"'>=/]+)(${xa}*=${xa}*(?:[^
51
- \f\r"'\`<>=]|("|')|))|$)`,"g"),fs=/'/g,gs=/"/g,ys=/^(?:script|style|textarea|title)$/i,Dl=a=>(e,...t)=>({_$litType$:a,strings:e,values:t}),c=Dl(1),ue=Symbol.for("lit-noChange"),u=Symbol.for("lit-nothing"),_s=new WeakMap,ut=ht.createTreeWalker(ht,129);function xs(a,e){if(!_a(a)||!a.hasOwnProperty("raw"))throw Error("invalid template strings array");return ps!==void 0?ps.createHTML(e):e}const Ml=(a,e)=>{const t=a.length-1,i=[];let r,s=e===2?"<svg>":e===3?"<math>":"",l=li;for(let h=0;h<t;h++){const p=a[h];let v,f,b=-1,_=0;for(;_<p.length&&(l.lastIndex=_,f=l.exec(p),f!==null);)_=l.lastIndex,l===li?f[1]==="!--"?l=bs:f[1]!==void 0?l=ms:f[2]!==void 0?(ys.test(f[2])&&(r=RegExp("</"+f[2],"g")),l=pt):f[3]!==void 0&&(l=pt):l===pt?f[0]===">"?(l=r??li,b=-1):f[1]===void 0?b=-2:(b=l.lastIndex-f[2].length,v=f[1],l=f[3]===void 0?pt:f[3]==='"'?gs:fs):l===gs||l===fs?l=pt:l===bs||l===ms?l=li:(l=pt,r=void 0);const x=l===pt&&a[h+1].startsWith("/>")?" ":"";s+=l===li?p+Rl:b>=0?(i.push(v),p.slice(0,b)+us+p.slice(b)+Qe+x):p+Qe+(b===-2?h:x)}return[xs(a,s+(a[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]};class ci{constructor({strings:e,_$litType$:t},i){let r;this.parts=[];let s=0,l=0;const h=e.length-1,p=this.parts,[v,f]=Ml(e,t);if(this.el=ci.createElement(v,i),ut.currentNode=this.el.content,t===2||t===3){const b=this.el.content.firstChild;b.replaceWith(...b.childNodes)}for(;(r=ut.nextNode())!==null&&p.length<h;){if(r.nodeType===1){if(r.hasAttributes())for(const b of r.getAttributeNames())if(b.endsWith(us)){const _=f[l++],x=r.getAttribute(b).split(Qe),S=/([.?@])?(.*)/.exec(_);p.push({type:1,index:s,name:S[2],strings:x,ctor:S[1]==="."?Hl:S[1]==="?"?Nl:S[1]==="@"?Vl:Zi}),r.removeAttribute(b)}else b.startsWith(Qe)&&(p.push({type:6,index:s}),r.removeAttribute(b));if(ys.test(r.tagName)){const b=r.textContent.split(Qe),_=b.length-1;if(_>0){r.textContent=Xi?Xi.emptyScript:"";for(let x=0;x<_;x++)r.append(b[x],si()),ut.nextNode(),p.push({type:2,index:++s});r.append(b[_],si())}}}else if(r.nodeType===8)if(r.data===vs)p.push({type:2,index:s});else{let b=-1;for(;(b=r.data.indexOf(Qe,b+1))!==-1;)p.push({type:7,index:s}),b+=Qe.length-1}s++}}static createElement(e,t){const i=ht.createElement("template");return i.innerHTML=e,i}}function Ht(a,e,t=a,i){var l,h;if(e===ue)return e;let r=i!==void 0?(l=t._$Co)==null?void 0:l[i]:t._$Cl;const s=ni(e)?void 0:e._$litDirective$;return(r==null?void 0:r.constructor)!==s&&((h=r==null?void 0:r._$AO)==null||h.call(r,!1),s===void 0?r=void 0:(r=new s(a),r._$AT(a,t,i)),i!==void 0?(t._$Co??(t._$Co=[]))[i]=r:t._$Cl=r),r!==void 0&&(e=Ht(a,r._$AS(a,e.values),r,i)),e}class Fl{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:i}=this._$AD,r=((e==null?void 0:e.creationScope)??ht).importNode(t,!0);ut.currentNode=r;let s=ut.nextNode(),l=0,h=0,p=i[0];for(;p!==void 0;){if(l===p.index){let v;p.type===2?v=new di(s,s.nextSibling,this,e):p.type===1?v=new p.ctor(s,p.name,p.strings,this,e):p.type===6&&(v=new ql(s,this,e)),this._$AV.push(v),p=i[++h]}l!==(p==null?void 0:p.index)&&(s=ut.nextNode(),l++)}return ut.currentNode=ht,r}p(e){let t=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class di{get _$AU(){var e;return((e=this._$AM)==null?void 0:e._$AU)??this._$Cv}constructor(e,t,i,r){this.type=2,this._$AH=u,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=r,this._$Cv=(r==null?void 0:r.isConnected)??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Ht(this,e,t),ni(e)?e===u||e==null||e===""?(this._$AH!==u&&this._$AR(),this._$AH=u):e!==this._$AH&&e!==ue&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Bl(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!==u&&ni(this._$AH)?this._$AA.nextSibling.data=e:this.T(ht.createTextNode(e)),this._$AH=e}$(e){var s;const{values:t,_$litType$:i}=e,r=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=ci.createElement(xs(i.h,i.h[0]),this.options)),i);if(((s=this._$AH)==null?void 0:s._$AD)===r)this._$AH.p(t);else{const l=new Fl(r,this),h=l.u(this.options);l.p(t),this.T(h),this._$AH=l}}_$AC(e){let t=_s.get(e.strings);return t===void 0&&_s.set(e.strings,t=new ci(e)),t}k(e){_a(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,r=0;for(const s of e)r===t.length?t.push(i=new di(this.O(si()),this.O(si()),this,this.options)):i=t[r],i._$AI(s),r++;r<t.length&&(this._$AR(i&&i._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,t);e!==this._$AB;){const r=e.nextSibling;e.remove(),e=r}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class Zi{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,r,s){this.type=1,this._$AH=u,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=u}_$AI(e,t=this,i,r){const s=this.strings;let l=!1;if(s===void 0)e=Ht(this,e,t,0),l=!ni(e)||e!==this._$AH&&e!==ue,l&&(this._$AH=e);else{const h=e;let p,v;for(e=s[0],p=0;p<s.length-1;p++)v=Ht(this,h[i+p],t,p),v===ue&&(v=this._$AH[p]),l||(l=!ni(v)||v!==this._$AH[p]),v===u?e=u:e!==u&&(e+=(v??"")+s[p+1]),this._$AH[p]=v}l&&!r&&this.j(e)}j(e){e===u?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Hl extends Zi{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===u?void 0:e}}class Nl extends Zi{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==u)}}class Vl extends Zi{constructor(e,t,i,r,s){super(e,t,i,r,s),this.type=5}_$AI(e,t=this){if((e=Ht(this,e,t,0)??u)===ue)return;const i=this._$AH,r=e===u&&i!==u||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,s=e!==u&&(i===u||r);r&&this.element.removeEventListener(this.name,this,i),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t;typeof this._$AH=="function"?this._$AH.call(((t=this.options)==null?void 0:t.host)??this.element,e):this._$AH.handleEvent(e)}}class ql{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Ht(this,e)}}const wa=oi.litHtmlPolyfillSupport;wa==null||wa(ci,di),(oi.litHtmlVersions??(oi.litHtmlVersions=[])).push("3.3.1");const Sa=(a,e,t)=>{const i=(t==null?void 0:t.renderBefore)??e;let r=i._$litPart$;if(r===void 0){const s=(t==null?void 0:t.renderBefore)??null;i._$litPart$=r=new di(e.insertBefore(si(),s),s,void 0,t??{})}return r._$AI(a),r};/**
49
+ */const oi=globalThis,Xi=oi.trustedTypes,ps=Xi?Xi.createPolicy("lit-html",{createHTML:a=>a}):void 0,us="$lit$",et=`lit$${Math.random().toFixed(9).slice(2)}$`,vs="?"+et,Bl=`<${vs}>`,pt=document,si=()=>pt.createComment(""),ni=a=>a===null||typeof a!="object"&&typeof a!="function",_a=Array.isArray,Rl=a=>_a(a)||typeof(a==null?void 0:a[Symbol.iterator])=="function",xa=`[
50
+ \f\r]`,li=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,bs=/-->/g,ms=/>/g,ut=RegExp(`>|${xa}(?:([^\\s"'>=/]+)(${xa}*=${xa}*(?:[^
51
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),fs=/'/g,gs=/"/g,ys=/^(?:script|style|textarea|title)$/i,Dl=a=>(e,...t)=>({_$litType$:a,strings:e,values:t}),c=Dl(1),ve=Symbol.for("lit-noChange"),u=Symbol.for("lit-nothing"),_s=new WeakMap,vt=pt.createTreeWalker(pt,129);function xs(a,e){if(!_a(a)||!a.hasOwnProperty("raw"))throw Error("invalid template strings array");return ps!==void 0?ps.createHTML(e):e}const Ml=(a,e)=>{const t=a.length-1,i=[];let r,s=e===2?"<svg>":e===3?"<math>":"",l=li;for(let h=0;h<t;h++){const p=a[h];let v,f,b=-1,_=0;for(;_<p.length&&(l.lastIndex=_,f=l.exec(p),f!==null);)_=l.lastIndex,l===li?f[1]==="!--"?l=bs:f[1]!==void 0?l=ms:f[2]!==void 0?(ys.test(f[2])&&(r=RegExp("</"+f[2],"g")),l=ut):f[3]!==void 0&&(l=ut):l===ut?f[0]===">"?(l=r??li,b=-1):f[1]===void 0?b=-2:(b=l.lastIndex-f[2].length,v=f[1],l=f[3]===void 0?ut:f[3]==='"'?gs:fs):l===gs||l===fs?l=ut:l===bs||l===ms?l=li:(l=ut,r=void 0);const x=l===ut&&a[h+1].startsWith("/>")?" ":"";s+=l===li?p+Bl:b>=0?(i.push(v),p.slice(0,b)+us+p.slice(b)+et+x):p+et+(b===-2?h:x)}return[xs(a,s+(a[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]};class ci{constructor({strings:e,_$litType$:t},i){let r;this.parts=[];let s=0,l=0;const h=e.length-1,p=this.parts,[v,f]=Ml(e,t);if(this.el=ci.createElement(v,i),vt.currentNode=this.el.content,t===2||t===3){const b=this.el.content.firstChild;b.replaceWith(...b.childNodes)}for(;(r=vt.nextNode())!==null&&p.length<h;){if(r.nodeType===1){if(r.hasAttributes())for(const b of r.getAttributeNames())if(b.endsWith(us)){const _=f[l++],x=r.getAttribute(b).split(et),S=/([.?@])?(.*)/.exec(_);p.push({type:1,index:s,name:S[2],strings:x,ctor:S[1]==="."?Hl:S[1]==="?"?Nl:S[1]==="@"?Vl:Zi}),r.removeAttribute(b)}else b.startsWith(et)&&(p.push({type:6,index:s}),r.removeAttribute(b));if(ys.test(r.tagName)){const b=r.textContent.split(et),_=b.length-1;if(_>0){r.textContent=Xi?Xi.emptyScript:"";for(let x=0;x<_;x++)r.append(b[x],si()),vt.nextNode(),p.push({type:2,index:++s});r.append(b[_],si())}}}else if(r.nodeType===8)if(r.data===vs)p.push({type:2,index:s});else{let b=-1;for(;(b=r.data.indexOf(et,b+1))!==-1;)p.push({type:7,index:s}),b+=et.length-1}s++}}static createElement(e,t){const i=pt.createElement("template");return i.innerHTML=e,i}}function Ht(a,e,t=a,i){var l,h;if(e===ve)return e;let r=i!==void 0?(l=t._$Co)==null?void 0:l[i]:t._$Cl;const s=ni(e)?void 0:e._$litDirective$;return(r==null?void 0:r.constructor)!==s&&((h=r==null?void 0:r._$AO)==null||h.call(r,!1),s===void 0?r=void 0:(r=new s(a),r._$AT(a,t,i)),i!==void 0?(t._$Co??(t._$Co=[]))[i]=r:t._$Cl=r),r!==void 0&&(e=Ht(a,r._$AS(a,e.values),r,i)),e}class Fl{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:i}=this._$AD,r=((e==null?void 0:e.creationScope)??pt).importNode(t,!0);vt.currentNode=r;let s=vt.nextNode(),l=0,h=0,p=i[0];for(;p!==void 0;){if(l===p.index){let v;p.type===2?v=new di(s,s.nextSibling,this,e):p.type===1?v=new p.ctor(s,p.name,p.strings,this,e):p.type===6&&(v=new ql(s,this,e)),this._$AV.push(v),p=i[++h]}l!==(p==null?void 0:p.index)&&(s=vt.nextNode(),l++)}return vt.currentNode=pt,r}p(e){let t=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class di{get _$AU(){var e;return((e=this._$AM)==null?void 0:e._$AU)??this._$Cv}constructor(e,t,i,r){this.type=2,this._$AH=u,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=r,this._$Cv=(r==null?void 0:r.isConnected)??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Ht(this,e,t),ni(e)?e===u||e==null||e===""?(this._$AH!==u&&this._$AR(),this._$AH=u):e!==this._$AH&&e!==ve&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Rl(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!==u&&ni(this._$AH)?this._$AA.nextSibling.data=e:this.T(pt.createTextNode(e)),this._$AH=e}$(e){var s;const{values:t,_$litType$:i}=e,r=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=ci.createElement(xs(i.h,i.h[0]),this.options)),i);if(((s=this._$AH)==null?void 0:s._$AD)===r)this._$AH.p(t);else{const l=new Fl(r,this),h=l.u(this.options);l.p(t),this.T(h),this._$AH=l}}_$AC(e){let t=_s.get(e.strings);return t===void 0&&_s.set(e.strings,t=new ci(e)),t}k(e){_a(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,r=0;for(const s of e)r===t.length?t.push(i=new di(this.O(si()),this.O(si()),this,this.options)):i=t[r],i._$AI(s),r++;r<t.length&&(this._$AR(i&&i._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,t);e!==this._$AB;){const r=e.nextSibling;e.remove(),e=r}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class Zi{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,r,s){this.type=1,this._$AH=u,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=u}_$AI(e,t=this,i,r){const s=this.strings;let l=!1;if(s===void 0)e=Ht(this,e,t,0),l=!ni(e)||e!==this._$AH&&e!==ve,l&&(this._$AH=e);else{const h=e;let p,v;for(e=s[0],p=0;p<s.length-1;p++)v=Ht(this,h[i+p],t,p),v===ve&&(v=this._$AH[p]),l||(l=!ni(v)||v!==this._$AH[p]),v===u?e=u:e!==u&&(e+=(v??"")+s[p+1]),this._$AH[p]=v}l&&!r&&this.j(e)}j(e){e===u?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Hl extends Zi{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===u?void 0:e}}class Nl extends Zi{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==u)}}class Vl extends Zi{constructor(e,t,i,r,s){super(e,t,i,r,s),this.type=5}_$AI(e,t=this){if((e=Ht(this,e,t,0)??u)===ve)return;const i=this._$AH,r=e===u&&i!==u||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,s=e!==u&&(i===u||r);r&&this.element.removeEventListener(this.name,this,i),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t;typeof this._$AH=="function"?this._$AH.call(((t=this.options)==null?void 0:t.host)??this.element,e):this._$AH.handleEvent(e)}}class ql{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Ht(this,e)}}const wa=oi.litHtmlPolyfillSupport;wa==null||wa(ci,di),(oi.litHtmlVersions??(oi.litHtmlVersions=[])).push("3.3.1");const Sa=(a,e,t)=>{const i=(t==null?void 0:t.renderBefore)??e;let r=i._$litPart$;if(r===void 0){const s=(t==null?void 0:t.renderBefore)??null;i._$litPart$=r=new di(e.insertBefore(si(),s),s,void 0,t??{})}return r._$AI(a),r};/**
52
52
  * @license
53
53
  * Copyright 2017 Google LLC
54
54
  * SPDX-License-Identifier: BSD-3-Clause
55
- */const vt=globalThis;let y=class extends Ft{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const e=super.createRenderRoot();return(t=this.renderOptions).renderBefore??(t.renderBefore=e.firstChild),e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Sa(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return ue}};y._$litElement$=!0,y.finalized=!0,(xl=vt.litElementHydrateSupport)==null||xl.call(vt,{LitElement:y});const ka=vt.litElementPolyfillSupport;ka==null||ka({LitElement:y}),(vt.litElementVersions??(vt.litElementVersions=[])).push("4.2.1");/**
55
+ */const bt=globalThis;let y=class extends Ft{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const e=super.createRenderRoot();return(t=this.renderOptions).renderBefore??(t.renderBefore=e.firstChild),e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Sa(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return ve}};y._$litElement$=!0,y.finalized=!0,(xl=bt.litElementHydrateSupport)==null||xl.call(bt,{LitElement:y});const ka=bt.litElementPolyfillSupport;ka==null||ka({LitElement:y}),(bt.litElementVersions??(bt.litElementVersions=[])).push("4.2.1");/**
56
56
  * @license
57
57
  * Copyright 2022 Google LLC
58
58
  * SPDX-License-Identifier: Apache-2.0
@@ -86,19 +86,19 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
86
86
  * @license
87
87
  * Copyright 2017 Google LLC
88
88
  * SPDX-License-Identifier: BSD-3-Clause
89
- */const et={ATTRIBUTE:1,PROPERTY:3,BOOLEAN_ATTRIBUTE:4},Ea=a=>(...e)=>({_$litDirective$:a,values:e});let Ta=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};/**
89
+ */const tt={ATTRIBUTE:1,PROPERTY:3,BOOLEAN_ATTRIBUTE:4},Ea=a=>(...e)=>({_$litDirective$:a,values:e});let Ta=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};/**
90
90
  * @license
91
91
  * Copyright 2018 Google LLC
92
92
  * SPDX-License-Identifier: BSD-3-Clause
93
- */const L=Ea(class extends Ta{constructor(a){var e;if(super(a),a.type!==et.ATTRIBUTE||a.name!=="class"||((e=a.strings)==null?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(a){return" "+Object.keys(a).filter(e=>a[e]).join(" ")+" "}update(a,[e]){var i,r;if(this.st===void 0){this.st=new Set,a.strings!==void 0&&(this.nt=new Set(a.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(const s in e)e[s]&&!((i=this.nt)!=null&&i.has(s))&&this.st.add(s);return this.render(e)}const t=a.element.classList;for(const s of this.st)s in e||(t.remove(s),this.st.delete(s));for(const s in e){const l=!!e[s];l===this.st.has(s)||(r=this.nt)!=null&&r.has(s)||(l?(t.add(s),this.st.add(s)):(t.remove(s),this.st.delete(s)))}return ue}});/**
93
+ */const L=Ea(class extends Ta{constructor(a){var e;if(super(a),a.type!==tt.ATTRIBUTE||a.name!=="class"||((e=a.strings)==null?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(a){return" "+Object.keys(a).filter(e=>a[e]).join(" ")+" "}update(a,[e]){var i,r;if(this.st===void 0){this.st=new Set,a.strings!==void 0&&(this.nt=new Set(a.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(const s in e)e[s]&&!((i=this.nt)!=null&&i.has(s))&&this.st.add(s);return this.render(e)}const t=a.element.classList;for(const s of this.st)s in e||(t.remove(s),this.st.delete(s));for(const s in e){const l=!!e[s];l===this.st.has(s)||(r=this.nt)!=null&&r.has(s)||(l?(t.add(s),this.st.add(s)):(t.remove(s),this.st.delete(s)))}return ve}});/**
94
94
  * @license
95
95
  * Copyright 2021 Google LLC
96
96
  * SPDX-License-Identifier: Apache-2.0
97
- */const xe={STANDARD:"cubic-bezier(0.2, 0, 0, 1)",EMPHASIZED:"cubic-bezier(.3,0,0,1)",EMPHASIZED_ACCELERATE:"cubic-bezier(.3,0,.8,.15)"};function Yl(){let a=null;return{start(){return a==null||a.abort(),a=new AbortController,a.signal},finish(){a=null}}}/**
97
+ */const we={STANDARD:"cubic-bezier(0.2, 0, 0, 1)",EMPHASIZED:"cubic-bezier(.3,0,0,1)",EMPHASIZED_ACCELERATE:"cubic-bezier(.3,0,.8,.15)"};function Yl(){let a=null;return{start(){return a==null||a.abort(),a=new AbortController,a.signal},finish(){a=null}}}/**
98
98
  * @license
99
99
  * Copyright 2022 Google LLC
100
100
  * SPDX-License-Identifier: Apache-2.0
101
- */const Xl=450,$s=225,Zl=.2,Jl=10,Ql=75,ec=.35,tc="::after",ic="forwards";var te;(function(a){a[a.INACTIVE=0]="INACTIVE",a[a.TOUCH_DELAY=1]="TOUCH_DELAY",a[a.HOLDING=2]="HOLDING",a[a.WAITING_FOR_CLICK=3]="WAITING_FOR_CLICK"})(te||(te={}));const rc=["click","contextmenu","pointercancel","pointerdown","pointerenter","pointerleave","pointerup"],ac=150,Aa=window.matchMedia("(forced-colors: active)");class hi extends y{constructor(){super(...arguments),this.disabled=!1,this.hovered=!1,this.pressed=!1,this.rippleSize="",this.rippleScale="",this.initialSize=0,this.state=te.INACTIVE,this.checkBoundsAfterContextMenu=!1,this.attachableController=new Ss(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(e){this.attachableController.htmlFor=e}get control(){return this.attachableController.control}set control(e){this.attachableController.control=e}attach(e){this.attachableController.attach(e)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){const e={hovered:this.hovered,pressed:this.pressed};return c`<div class="surface ${L(e)}"></div>`}update(e){e.has("disabled")&&this.disabled&&(this.hovered=!1,this.pressed=!1),super.update(e)}handlePointerenter(e){this.shouldReactToEvent(e)&&(this.hovered=!0)}handlePointerleave(e){this.shouldReactToEvent(e)&&(this.hovered=!1,this.state!==te.INACTIVE&&this.endPressAnimation())}handlePointerup(e){if(this.shouldReactToEvent(e)){if(this.state===te.HOLDING){this.state=te.WAITING_FOR_CLICK;return}if(this.state===te.TOUCH_DELAY){this.state=te.WAITING_FOR_CLICK,this.startPressAnimation(this.rippleStartEvent);return}}}async handlePointerdown(e){if(this.shouldReactToEvent(e)){if(this.rippleStartEvent=e,!this.isTouch(e)){this.state=te.WAITING_FOR_CLICK,this.startPressAnimation(e);return}this.checkBoundsAfterContextMenu&&!this.inBounds(e)||(this.checkBoundsAfterContextMenu=!1,this.state=te.TOUCH_DELAY,await new Promise(t=>{setTimeout(t,ac)}),this.state===te.TOUCH_DELAY&&(this.state=te.HOLDING,this.startPressAnimation(e)))}}handleClick(){if(!this.disabled){if(this.state===te.WAITING_FOR_CLICK){this.endPressAnimation();return}this.state===te.INACTIVE&&(this.startPressAnimation(),this.endPressAnimation())}}handlePointercancel(e){this.shouldReactToEvent(e)&&this.endPressAnimation()}handleContextmenu(){this.disabled||(this.checkBoundsAfterContextMenu=!0,this.endPressAnimation())}determineRippleSize(){const{height:e,width:t}=this.getBoundingClientRect(),i=Math.max(e,t),r=Math.max(ec*i,Ql),s=Math.floor(i*Zl),h=Math.sqrt(t**2+e**2)+Jl;this.initialSize=s,this.rippleScale=`${(h+r)/s}`,this.rippleSize=`${s}px`}getNormalizedPointerEventCoords(e){const{scrollX:t,scrollY:i}=window,{left:r,top:s}=this.getBoundingClientRect(),l=t+r,h=i+s,{pageX:p,pageY:v}=e;return{x:p-l,y:v-h}}getTranslationCoordinates(e){const{height:t,width:i}=this.getBoundingClientRect(),r={x:(i-this.initialSize)/2,y:(t-this.initialSize)/2};let s;return e instanceof PointerEvent?s=this.getNormalizedPointerEventCoords(e):s={x:i/2,y:t/2},s={x:s.x-this.initialSize/2,y:s.y-this.initialSize/2},{startPoint:s,endPoint:r}}startPressAnimation(e){var l;if(!this.mdRoot)return;this.pressed=!0,(l=this.growAnimation)==null||l.cancel(),this.determineRippleSize();const{startPoint:t,endPoint:i}=this.getTranslationCoordinates(e),r=`${t.x}px, ${t.y}px`,s=`${i.x}px, ${i.y}px`;this.growAnimation=this.mdRoot.animate({top:[0,0],left:[0,0],height:[this.rippleSize,this.rippleSize],width:[this.rippleSize,this.rippleSize],transform:[`translate(${r}) scale(1)`,`translate(${s}) scale(${this.rippleScale})`]},{pseudoElement:tc,duration:Xl,easing:xe.STANDARD,fill:ic})}async endPressAnimation(){this.rippleStartEvent=void 0,this.state=te.INACTIVE;const e=this.growAnimation;let t=1/0;if(typeof(e==null?void 0:e.currentTime)=="number"?t=e.currentTime:e!=null&&e.currentTime&&(t=e.currentTime.to("ms").value),t>=$s){this.pressed=!1;return}await new Promise(i=>{setTimeout(i,$s-t)}),this.growAnimation===e&&(this.pressed=!1)}shouldReactToEvent(e){if(this.disabled||!e.isPrimary||this.rippleStartEvent&&this.rippleStartEvent.pointerId!==e.pointerId)return!1;if(e.type==="pointerenter"||e.type==="pointerleave")return!this.isTouch(e);const t=e.buttons===1;return this.isTouch(e)||t}inBounds({x:e,y:t}){const{top:i,left:r,bottom:s,right:l}=this.getBoundingClientRect();return e>=r&&e<=l&&t>=i&&t<=s}isTouch({pointerType:e}){return e==="touch"}async handleEvent(e){if(!(Aa!=null&&Aa.matches))switch(e.type){case"click":this.handleClick();break;case"contextmenu":this.handleContextmenu();break;case"pointercancel":this.handlePointercancel(e);break;case"pointerdown":await this.handlePointerdown(e);break;case"pointerenter":this.handlePointerenter(e);break;case"pointerleave":this.handlePointerleave(e);break;case"pointerup":this.handlePointerup(e);break}}onControlChange(e,t){for(const i of rc)e==null||e.removeEventListener(i,this),t==null||t.addEventListener(i,this)}}d([n({type:Boolean,reflect:!0})],hi.prototype,"disabled",void 0),d([w()],hi.prototype,"hovered",void 0),d([w()],hi.prototype,"pressed",void 0),d([k(".surface")],hi.prototype,"mdRoot",void 0);/**
101
+ */const Xl=450,$s=225,Zl=.2,Jl=10,Ql=75,ec=.35,tc="::after",ic="forwards";var te;(function(a){a[a.INACTIVE=0]="INACTIVE",a[a.TOUCH_DELAY=1]="TOUCH_DELAY",a[a.HOLDING=2]="HOLDING",a[a.WAITING_FOR_CLICK=3]="WAITING_FOR_CLICK"})(te||(te={}));const rc=["click","contextmenu","pointercancel","pointerdown","pointerenter","pointerleave","pointerup"],ac=150,Aa=window.matchMedia("(forced-colors: active)");class hi extends y{constructor(){super(...arguments),this.disabled=!1,this.hovered=!1,this.pressed=!1,this.rippleSize="",this.rippleScale="",this.initialSize=0,this.state=te.INACTIVE,this.checkBoundsAfterContextMenu=!1,this.attachableController=new Ss(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(e){this.attachableController.htmlFor=e}get control(){return this.attachableController.control}set control(e){this.attachableController.control=e}attach(e){this.attachableController.attach(e)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){const e={hovered:this.hovered,pressed:this.pressed};return c`<div class="surface ${L(e)}"></div>`}update(e){e.has("disabled")&&this.disabled&&(this.hovered=!1,this.pressed=!1),super.update(e)}handlePointerenter(e){this.shouldReactToEvent(e)&&(this.hovered=!0)}handlePointerleave(e){this.shouldReactToEvent(e)&&(this.hovered=!1,this.state!==te.INACTIVE&&this.endPressAnimation())}handlePointerup(e){if(this.shouldReactToEvent(e)){if(this.state===te.HOLDING){this.state=te.WAITING_FOR_CLICK;return}if(this.state===te.TOUCH_DELAY){this.state=te.WAITING_FOR_CLICK,this.startPressAnimation(this.rippleStartEvent);return}}}async handlePointerdown(e){if(this.shouldReactToEvent(e)){if(this.rippleStartEvent=e,!this.isTouch(e)){this.state=te.WAITING_FOR_CLICK,this.startPressAnimation(e);return}this.checkBoundsAfterContextMenu&&!this.inBounds(e)||(this.checkBoundsAfterContextMenu=!1,this.state=te.TOUCH_DELAY,await new Promise(t=>{setTimeout(t,ac)}),this.state===te.TOUCH_DELAY&&(this.state=te.HOLDING,this.startPressAnimation(e)))}}handleClick(){if(!this.disabled){if(this.state===te.WAITING_FOR_CLICK){this.endPressAnimation();return}this.state===te.INACTIVE&&(this.startPressAnimation(),this.endPressAnimation())}}handlePointercancel(e){this.shouldReactToEvent(e)&&this.endPressAnimation()}handleContextmenu(){this.disabled||(this.checkBoundsAfterContextMenu=!0,this.endPressAnimation())}determineRippleSize(){const{height:e,width:t}=this.getBoundingClientRect(),i=Math.max(e,t),r=Math.max(ec*i,Ql),s=Math.floor(i*Zl),h=Math.sqrt(t**2+e**2)+Jl;this.initialSize=s,this.rippleScale=`${(h+r)/s}`,this.rippleSize=`${s}px`}getNormalizedPointerEventCoords(e){const{scrollX:t,scrollY:i}=window,{left:r,top:s}=this.getBoundingClientRect(),l=t+r,h=i+s,{pageX:p,pageY:v}=e;return{x:p-l,y:v-h}}getTranslationCoordinates(e){const{height:t,width:i}=this.getBoundingClientRect(),r={x:(i-this.initialSize)/2,y:(t-this.initialSize)/2};let s;return e instanceof PointerEvent?s=this.getNormalizedPointerEventCoords(e):s={x:i/2,y:t/2},s={x:s.x-this.initialSize/2,y:s.y-this.initialSize/2},{startPoint:s,endPoint:r}}startPressAnimation(e){var l;if(!this.mdRoot)return;this.pressed=!0,(l=this.growAnimation)==null||l.cancel(),this.determineRippleSize();const{startPoint:t,endPoint:i}=this.getTranslationCoordinates(e),r=`${t.x}px, ${t.y}px`,s=`${i.x}px, ${i.y}px`;this.growAnimation=this.mdRoot.animate({top:[0,0],left:[0,0],height:[this.rippleSize,this.rippleSize],width:[this.rippleSize,this.rippleSize],transform:[`translate(${r}) scale(1)`,`translate(${s}) scale(${this.rippleScale})`]},{pseudoElement:tc,duration:Xl,easing:we.STANDARD,fill:ic})}async endPressAnimation(){this.rippleStartEvent=void 0,this.state=te.INACTIVE;const e=this.growAnimation;let t=1/0;if(typeof(e==null?void 0:e.currentTime)=="number"?t=e.currentTime:e!=null&&e.currentTime&&(t=e.currentTime.to("ms").value),t>=$s){this.pressed=!1;return}await new Promise(i=>{setTimeout(i,$s-t)}),this.growAnimation===e&&(this.pressed=!1)}shouldReactToEvent(e){if(this.disabled||!e.isPrimary||this.rippleStartEvent&&this.rippleStartEvent.pointerId!==e.pointerId)return!1;if(e.type==="pointerenter"||e.type==="pointerleave")return!this.isTouch(e);const t=e.buttons===1;return this.isTouch(e)||t}inBounds({x:e,y:t}){const{top:i,left:r,bottom:s,right:l}=this.getBoundingClientRect();return e>=r&&e<=l&&t>=i&&t<=s}isTouch({pointerType:e}){return e==="touch"}async handleEvent(e){if(!(Aa!=null&&Aa.matches))switch(e.type){case"click":this.handleClick();break;case"contextmenu":this.handleContextmenu();break;case"pointercancel":this.handlePointercancel(e);break;case"pointerdown":await this.handlePointerdown(e);break;case"pointerenter":this.handlePointerenter(e);break;case"pointerleave":this.handlePointerleave(e);break;case"pointerup":this.handlePointerup(e);break}}onControlChange(e,t){for(const i of rc)e==null||e.removeEventListener(i,this),t==null||t.addEventListener(i,this)}}d([n({type:Boolean,reflect:!0})],hi.prototype,"disabled",void 0),d([w()],hi.prototype,"hovered",void 0),d([w()],hi.prototype,"pressed",void 0),d([k(".surface")],hi.prototype,"mdRoot",void 0);/**
102
102
  * @license
103
103
  * Copyright 2024 Google LLC
104
104
  * SPDX-License-Identifier: Apache-2.0
@@ -119,7 +119,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
119
119
  * @license
120
120
  * Copyright 2023 Google LLC
121
121
  * SPDX-License-Identifier: Apache-2.0
122
- */const K=Symbol("internals"),za=Symbol("privateInternals");function tt(a){class e extends a{get[K](){return this[za]||(this[za]=this.attachInternals()),this[za]}}return e}/**
122
+ */const K=Symbol("internals"),za=Symbol("privateInternals");function it(a){class e extends a{get[K](){return this[za]||(this[za]=this.attachInternals()),this[za]}}return e}/**
123
123
  * @license
124
124
  * Copyright 2023 Google LLC
125
125
  * SPDX-License-Identifier: Apache-2.0
@@ -131,7 +131,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
131
131
  * @license
132
132
  * Copyright 2019 Google LLC
133
133
  * SPDX-License-Identifier: Apache-2.0
134
- */const lc=tt(y);class U extends lc{get name(){return this.getAttribute("name")??""}set name(e){this.setAttribute("name",e)}get form(){return this[K].form}constructor(){super(),this.disabled=!1,this.href="",this.target="",this.trailingIcon=!1,this.hasIcon=!1,this.type="submit",this.value="",this.handleActivationClick=e=>{!pi(e)||!this.buttonElement||(this.focus(),ir(this.buttonElement))},this.addEventListener("click",this.handleActivationClick)}focus(){var e;(e=this.buttonElement)==null||e.focus()}blur(){var e;(e=this.buttonElement)==null||e.blur()}render(){var r;const e=this.disabled&&!this.href,t=this.href?this.renderLink():this.renderButton(),i=this.href?"link":"button";return c`
134
+ */const lc=it(y);class U extends lc{get name(){return this.getAttribute("name")??""}set name(e){this.setAttribute("name",e)}get form(){return this[K].form}constructor(){super(),this.disabled=!1,this.href="",this.target="",this.trailingIcon=!1,this.hasIcon=!1,this.type="submit",this.value="",this.handleActivationClick=e=>{!pi(e)||!this.buttonElement||(this.focus(),ir(this.buttonElement))},this.addEventListener("click",this.handleActivationClick)}focus(){var e;(e=this.buttonElement)==null||e.focus()}blur(){var e;(e=this.buttonElement)==null||e.blur()}render(){var r;const e=this.disabled&&!this.href,t=this.href?this.renderLink():this.renderButton(),i=this.href?"link":"button";return c`
135
135
  ${(r=this.renderElevationOrOutline)==null?void 0:r.call(this)}
136
136
  <div class="background"></div>
137
137
  <md-focus-ring part="focus-ring" for=${i}></md-focus-ring>
@@ -213,7 +213,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
213
213
  * @license
214
214
  * Copyright 2021 Google LLC
215
215
  * SPDX-License-Identifier: Apache-2.0
216
- */let Ra=class extends uc{};Ra.styles=[ui,Pa,vc],Ra=d([g("md-filled-tonal-button")],Ra);/**
216
+ */let Ba=class extends uc{};Ba.styles=[ui,Pa,vc],Ba=d([g("md-filled-tonal-button")],Ba);/**
217
217
  * @license
218
218
  * Copyright 2021 Google LLC
219
219
  * SPDX-License-Identifier: Apache-2.0
@@ -226,7 +226,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
226
226
  * @license
227
227
  * Copyright 2021 Google LLC
228
228
  * SPDX-License-Identifier: Apache-2.0
229
- */let Ba=class extends bc{};Ba.styles=[ui,mc],Ba=d([g("md-outlined-button")],Ba);/**
229
+ */let Ra=class extends bc{};Ra.styles=[ui,mc],Ra=d([g("md-outlined-button")],Ra);/**
230
230
  * @license
231
231
  * Copyright 2021 Google LLC
232
232
  * SPDX-License-Identifier: Apache-2.0
@@ -243,11 +243,11 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
243
243
  * @license
244
244
  * Copyright 2021 Google LLC
245
245
  * SPDX-License-Identifier: Apache-2.0
246
- */function it(a,e){e.bubbles&&(!a.shadowRoot||e.composed)&&e.stopPropagation();const t=Reflect.construct(e.constructor,[e.type,e]),i=a.dispatchEvent(t);return i||e.preventDefault(),i}/**
246
+ */function rt(a,e){e.bubbles&&(!a.shadowRoot||e.composed)&&e.stopPropagation();const t=Reflect.construct(e.constructor,[e.type,e]),i=a.dispatchEvent(t);return i||e.preventDefault(),i}/**
247
247
  * @license
248
248
  * Copyright 2023 Google LLC
249
249
  * SPDX-License-Identifier: Apache-2.0
250
- */const bt=Symbol("createValidator"),mt=Symbol("getValidityAnchor"),Ma=Symbol("privateValidator"),Me=Symbol("privateSyncValidity"),rr=Symbol("privateCustomValidationMessage");function vi(a){var e;class t extends a{constructor(){super(...arguments),this[e]=""}get validity(){return this[Me](),this[K].validity}get validationMessage(){return this[Me](),this[K].validationMessage}get willValidate(){return this[Me](),this[K].willValidate}checkValidity(){return this[Me](),this[K].checkValidity()}reportValidity(){return this[Me](),this[K].reportValidity()}setCustomValidity(r){this[rr]=r,this[Me]()}requestUpdate(r,s,l){super.requestUpdate(r,s,l),this[Me]()}firstUpdated(r){super.firstUpdated(r),this[Me]()}[(e=rr,Me)](){this[Ma]||(this[Ma]=this[bt]());const{validity:r,validationMessage:s}=this[Ma].getValidity(),l=!!this[rr],h=this[rr]||s;this[K].setValidity({...r,customError:l},h,this[mt]()??void 0)}[bt](){throw new Error("Implement [createValidator]")}[mt](){throw new Error("Implement [getValidityAnchor]")}}return t}/**
250
+ */const mt=Symbol("createValidator"),ft=Symbol("getValidityAnchor"),Ma=Symbol("privateValidator"),Me=Symbol("privateSyncValidity"),rr=Symbol("privateCustomValidationMessage");function vi(a){var e;class t extends a{constructor(){super(...arguments),this[e]=""}get validity(){return this[Me](),this[K].validity}get validationMessage(){return this[Me](),this[K].validationMessage}get willValidate(){return this[Me](),this[K].willValidate}checkValidity(){return this[Me](),this[K].checkValidity()}reportValidity(){return this[Me](),this[K].reportValidity()}setCustomValidity(r){this[rr]=r,this[Me]()}requestUpdate(r,s,l){super.requestUpdate(r,s,l),this[Me]()}firstUpdated(r){super.firstUpdated(r),this[Me]()}[(e=rr,Me)](){this[Ma]||(this[Ma]=this[mt]());const{validity:r,validationMessage:s}=this[Ma].getValidity(),l=!!this[rr],h=this[rr]||s;this[K].setValidity({...r,customError:l},h,this[ft]()??void 0)}[mt](){throw new Error("Implement [createValidator]")}[ft](){throw new Error("Implement [getValidityAnchor]")}}return t}/**
251
251
  * @license
252
252
  * Copyright 2023 Google LLC
253
253
  * SPDX-License-Identifier: Apache-2.0
@@ -263,7 +263,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
263
263
  * @license
264
264
  * Copyright 2019 Google LLC
265
265
  * SPDX-License-Identifier: Apache-2.0
266
- */const yc=vi(Nt(tt(y)));class we extends yc{constructor(){super(),this.checked=!1,this.indeterminate=!1,this.required=!1,this.value="on",this.prevChecked=!1,this.prevDisabled=!1,this.prevIndeterminate=!1,this.addEventListener("click",e=>{!pi(e)||!this.input||(this.focus(),ir(this.input))})}update(e){(e.has("checked")||e.has("disabled")||e.has("indeterminate"))&&(this.prevChecked=e.get("checked")??this.checked,this.prevDisabled=e.get("disabled")??this.disabled,this.prevIndeterminate=e.get("indeterminate")??this.indeterminate),super.update(e)}render(){const e=!this.prevChecked&&!this.prevIndeterminate,t=this.prevChecked&&!this.prevIndeterminate,i=this.prevIndeterminate,r=this.checked&&!this.indeterminate,s=this.indeterminate,l=L({disabled:this.disabled,selected:r||s,unselected:!r&&!s,checked:r,indeterminate:s,"prev-unselected":e,"prev-checked":t,"prev-indeterminate":i,"prev-disabled":this.prevDisabled}),{ariaLabel:h,ariaInvalid:p}=this;return c`
266
+ */const yc=vi(Nt(it(y)));class Se extends yc{constructor(){super(),this.checked=!1,this.indeterminate=!1,this.required=!1,this.value="on",this.prevChecked=!1,this.prevDisabled=!1,this.prevIndeterminate=!1,this.addEventListener("click",e=>{!pi(e)||!this.input||(this.focus(),ir(this.input))})}update(e){(e.has("checked")||e.has("disabled")||e.has("indeterminate"))&&(this.prevChecked=e.get("checked")??this.checked,this.prevDisabled=e.get("disabled")??this.disabled,this.prevIndeterminate=e.get("indeterminate")??this.indeterminate),super.update(e)}render(){const e=!this.prevChecked&&!this.prevIndeterminate,t=this.prevChecked&&!this.prevIndeterminate,i=this.prevIndeterminate,r=this.checked&&!this.indeterminate,s=this.indeterminate,l=L({disabled:this.disabled,selected:r||s,unselected:!r&&!s,checked:r,indeterminate:s,"prev-unselected":e,"prev-checked":t,"prev-indeterminate":i,"prev-disabled":this.prevDisabled}),{ariaLabel:h,ariaInvalid:p}=this;return c`
267
267
  <div class="container ${l}">
268
268
  <input
269
269
  type="checkbox"
@@ -287,7 +287,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
287
287
  <rect class="mark long" />
288
288
  </svg>
289
289
  </div>
290
- `}handleInput(e){const t=e.target;this.checked=t.checked,this.indeterminate=t.indeterminate}handleChange(e){it(this,e)}[Fe](){return!this.checked||this.indeterminate?null:this.value}[bi](){return String(this.checked)}formResetCallback(){this.checked=this.hasAttribute("checked")}formStateRestoreCallback(e){this.checked=e==="true"}[bt](){return new As(()=>this)}[mt](){return this.input}}re(we),we.shadowRootOptions={...y.shadowRootOptions,delegatesFocus:!0},d([n({type:Boolean})],we.prototype,"checked",void 0),d([n({type:Boolean})],we.prototype,"indeterminate",void 0),d([n({type:Boolean})],we.prototype,"required",void 0),d([n()],we.prototype,"value",void 0),d([w()],we.prototype,"prevChecked",void 0),d([w()],we.prototype,"prevDisabled",void 0),d([w()],we.prototype,"prevIndeterminate",void 0),d([k("input")],we.prototype,"input",void 0);/**
290
+ `}handleInput(e){const t=e.target;this.checked=t.checked,this.indeterminate=t.indeterminate}handleChange(e){rt(this,e)}[Fe](){return!this.checked||this.indeterminate?null:this.value}[bi](){return String(this.checked)}formResetCallback(){this.checked=this.hasAttribute("checked")}formStateRestoreCallback(e){this.checked=e==="true"}[mt](){return new As(()=>this)}[ft](){return this.input}}re(Se),Se.shadowRootOptions={...y.shadowRootOptions,delegatesFocus:!0},d([n({type:Boolean})],Se.prototype,"checked",void 0),d([n({type:Boolean})],Se.prototype,"indeterminate",void 0),d([n({type:Boolean})],Se.prototype,"required",void 0),d([n()],Se.prototype,"value",void 0),d([w()],Se.prototype,"prevChecked",void 0),d([w()],Se.prototype,"prevDisabled",void 0),d([w()],Se.prototype,"prevIndeterminate",void 0),d([k("input")],Se.prototype,"input",void 0);/**
291
291
  * @license
292
292
  * Copyright 2024 Google LLC
293
293
  * SPDX-License-Identifier: Apache-2.0
@@ -296,7 +296,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
296
296
  * @license
297
297
  * Copyright 2018 Google LLC
298
298
  * SPDX-License-Identifier: Apache-2.0
299
- */let Fa=class extends we{};Fa.styles=[_c],Fa=d([g("md-checkbox")],Fa);/**
299
+ */let Fa=class extends Se{};Fa.styles=[_c],Fa=d([g("md-checkbox")],Fa);/**
300
300
  * @license
301
301
  * Copyright 2023 Google LLC
302
302
  * SPDX-License-Identifier: Apache-2.0
@@ -405,7 +405,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
405
405
  * @license
406
406
  * Copyright 2023 Google LLC
407
407
  * SPDX-License-Identifier: Apache-2.0
408
- */class ft extends Is{constructor(){super(...arguments),this.elevated=!1,this.removable=!1,this.selected=!1,this.hasSelectedIcon=!1}get primaryId(){return"button"}getContainerClasses(){return{...super.getContainerClasses(),elevated:this.elevated,selected:this.selected,"has-trailing":this.removable,"has-icon":this.hasIcon||this.selected}}renderPrimaryAction(e){const{ariaLabel:t}=this;return c`
408
+ */class gt extends Is{constructor(){super(...arguments),this.elevated=!1,this.removable=!1,this.selected=!1,this.hasSelectedIcon=!1}get primaryId(){return"button"}getContainerClasses(){return{...super.getContainerClasses(),elevated:this.elevated,selected:this.selected,"has-trailing":this.removable,"has-icon":this.hasIcon||this.selected}}renderPrimaryAction(e){const{ariaLabel:t}=this;return c`
409
409
  <button
410
410
  class="primary action"
411
411
  id="button"
@@ -422,7 +422,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
422
422
  d="M6.75012 12.1274L3.62262 8.99988L2.55762 10.0574L6.75012 14.2499L15.7501 5.24988L14.6926 4.19238L6.75012 12.1274Z" />
423
423
  </svg>
424
424
  </slot>
425
- `:super.renderLeadingIcon()}renderTrailingAction(e){return this.removable?Ps({focusListener:e,ariaLabel:this.ariaLabelRemove,disabled:this.disabled}):u}renderOutline(){return this.elevated?c`<md-elevation part="elevation"></md-elevation>`:super.renderOutline()}handleClick(e){if(this.disabled)return;const t=this.selected;if(this.selected=!this.selected,!it(this,e)){this.selected=t;return}}}d([n({type:Boolean})],ft.prototype,"elevated",void 0),d([n({type:Boolean})],ft.prototype,"removable",void 0),d([n({type:Boolean,reflect:!0})],ft.prototype,"selected",void 0),d([n({type:Boolean,reflect:!0,attribute:"has-selected-icon"})],ft.prototype,"hasSelectedIcon",void 0),d([k(".primary.action")],ft.prototype,"primaryAction",void 0),d([k(".trailing.action")],ft.prototype,"trailingAction",void 0);/**
425
+ `:super.renderLeadingIcon()}renderTrailingAction(e){return this.removable?Ps({focusListener:e,ariaLabel:this.ariaLabelRemove,disabled:this.disabled}):u}renderOutline(){return this.elevated?c`<md-elevation part="elevation"></md-elevation>`:super.renderOutline()}handleClick(e){if(this.disabled)return;const t=this.selected;if(this.selected=!this.selected,!rt(this,e)){this.selected=t;return}}}d([n({type:Boolean})],gt.prototype,"elevated",void 0),d([n({type:Boolean})],gt.prototype,"removable",void 0),d([n({type:Boolean,reflect:!0})],gt.prototype,"selected",void 0),d([n({type:Boolean,reflect:!0,attribute:"has-selected-icon"})],gt.prototype,"hasSelectedIcon",void 0),d([k(".primary.action")],gt.prototype,"primaryAction",void 0),d([k(".trailing.action")],gt.prototype,"trailingAction",void 0);/**
426
426
  * @license
427
427
  * Copyright 2024 Google LLC
428
428
  * SPDX-License-Identifier: Apache-2.0
@@ -441,11 +441,11 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
441
441
  * @license
442
442
  * Copyright 2023 Google LLC
443
443
  * SPDX-License-Identifier: Apache-2.0
444
- */let cr=class extends ft{};cr.styles=[or,Ha,Ls,Os,Cc],cr=d([g("md-filter-chip")],cr);const Ec=Object.freeze(Object.defineProperty({__proto__:null,get MdFilterChip(){return cr}},Symbol.toStringTag,{value:"Module"}));/**
444
+ */let cr=class extends gt{};cr.styles=[or,Ha,Ls,Os,Cc],cr=d([g("md-filter-chip")],cr);const Ec=Object.freeze(Object.defineProperty({__proto__:null,get MdFilterChip(){return cr}},Symbol.toStringTag,{value:"Module"}));/**
445
445
  * @license
446
446
  * Copyright 2023 Google LLC
447
447
  * SPDX-License-Identifier: Apache-2.0
448
- */class gt extends Is{constructor(){super(...arguments),this.avatar=!1,this.href="",this.target="",this.removeOnly=!1,this.selected=!1}get primaryId(){return this.href?"link":this.removeOnly?"":"button"}get rippleDisabled(){return!this.href&&this.disabled}get primaryAction(){return this.removeOnly?null:this.renderRoot.querySelector(".primary.action")}getContainerClasses(){return{...super.getContainerClasses(),avatar:this.avatar,disabled:!this.href&&this.disabled,link:!!this.href,selected:this.selected,"has-trailing":!0}}renderPrimaryAction(e){const{ariaLabel:t}=this;return this.href?c`
448
+ */class yt extends Is{constructor(){super(...arguments),this.avatar=!1,this.href="",this.target="",this.removeOnly=!1,this.selected=!1}get primaryId(){return this.href?"link":this.removeOnly?"":"button"}get rippleDisabled(){return!this.href&&this.disabled}get primaryAction(){return this.removeOnly?null:this.renderRoot.querySelector(".primary.action")}getContainerClasses(){return{...super.getContainerClasses(),avatar:this.avatar,disabled:!this.href&&this.disabled,link:!!this.href,selected:this.selected,"has-trailing":!0}}renderPrimaryAction(e){const{ariaLabel:t}=this;return this.href?c`
449
449
  <a
450
450
  class="primary action"
451
451
  id="link"
@@ -467,7 +467,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
467
467
  type="button"
468
468
  >${e}</button
469
469
  >
470
- `}renderTrailingAction(e){return Ps({focusListener:e,ariaLabel:this.ariaLabelRemove,disabled:!this.href&&this.disabled,tabbable:this.removeOnly})}}d([n({type:Boolean})],gt.prototype,"avatar",void 0),d([n()],gt.prototype,"href",void 0),d([n()],gt.prototype,"target",void 0),d([n({type:Boolean,attribute:"remove-only"})],gt.prototype,"removeOnly",void 0),d([n({type:Boolean,reflect:!0})],gt.prototype,"selected",void 0),d([k(".trailing.action")],gt.prototype,"trailingAction",void 0);/**
470
+ `}renderTrailingAction(e){return Ps({focusListener:e,ariaLabel:this.ariaLabelRemove,disabled:!this.href&&this.disabled,tabbable:this.removeOnly})}}d([n({type:Boolean})],yt.prototype,"avatar",void 0),d([n()],yt.prototype,"href",void 0),d([n()],yt.prototype,"target",void 0),d([n({type:Boolean,attribute:"remove-only"})],yt.prototype,"removeOnly",void 0),d([n({type:Boolean,reflect:!0})],yt.prototype,"selected",void 0),d([k(".trailing.action")],yt.prototype,"trailingAction",void 0);/**
471
471
  * @license
472
472
  * Copyright 2024 Google LLC
473
473
  * SPDX-License-Identifier: Apache-2.0
@@ -476,7 +476,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
476
476
  * @license
477
477
  * Copyright 2023 Google LLC
478
478
  * SPDX-License-Identifier: Apache-2.0
479
- */let Na=class extends gt{};Na.styles=[or,Ls,Os,Tc],Na=d([g("md-input-chip")],Na);/**
479
+ */let Na=class extends yt{};Na.styles=[or,Ls,Os,Tc],Na=d([g("md-input-chip")],Na);/**
480
480
  * @license
481
481
  * Copyright 2023 Google LLC
482
482
  * SPDX-License-Identifier: Apache-2.0
@@ -506,11 +506,11 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
506
506
  * @license
507
507
  * Copyright 2023 Google LLC
508
508
  * SPDX-License-Identifier: Apache-2.0
509
- */const Pc={dialog:[[[{transform:"translateY(-50px)"},{transform:"translateY(0)"}],{duration:500,easing:xe.EMPHASIZED}]],scrim:[[[{opacity:0},{opacity:.32}],{duration:500,easing:"linear"}]],container:[[[{opacity:0},{opacity:1}],{duration:50,easing:"linear",pseudoElement:"::before"}],[[{height:"35%"},{height:"100%"}],{duration:500,easing:xe.EMPHASIZED,pseudoElement:"::before"}]],headline:[[[{opacity:0},{opacity:0,offset:.2},{opacity:1}],{duration:250,easing:"linear",fill:"forwards"}]],content:[[[{opacity:0},{opacity:0,offset:.2},{opacity:1}],{duration:250,easing:"linear",fill:"forwards"}]],actions:[[[{opacity:0},{opacity:0,offset:.5},{opacity:1}],{duration:300,easing:"linear",fill:"forwards"}]]},Oc={dialog:[[[{transform:"translateY(0)"},{transform:"translateY(-50px)"}],{duration:150,easing:xe.EMPHASIZED_ACCELERATE}]],scrim:[[[{opacity:.32},{opacity:0}],{duration:150,easing:"linear"}]],container:[[[{height:"100%"},{height:"35%"}],{duration:150,easing:xe.EMPHASIZED_ACCELERATE,pseudoElement:"::before"}],[[{opacity:"1"},{opacity:"0"}],{delay:100,duration:50,easing:"linear",pseudoElement:"::before"}]],headline:[[[{opacity:1},{opacity:0}],{duration:100,easing:"linear",fill:"forwards"}]],content:[[[{opacity:1},{opacity:0}],{duration:100,easing:"linear",fill:"forwards"}]],actions:[[[{opacity:1},{opacity:0}],{duration:100,easing:"linear",fill:"forwards"}]]};/**
509
+ */const Pc={dialog:[[[{transform:"translateY(-50px)"},{transform:"translateY(0)"}],{duration:500,easing:we.EMPHASIZED}]],scrim:[[[{opacity:0},{opacity:.32}],{duration:500,easing:"linear"}]],container:[[[{opacity:0},{opacity:1}],{duration:50,easing:"linear",pseudoElement:"::before"}],[[{height:"35%"},{height:"100%"}],{duration:500,easing:we.EMPHASIZED,pseudoElement:"::before"}]],headline:[[[{opacity:0},{opacity:0,offset:.2},{opacity:1}],{duration:250,easing:"linear",fill:"forwards"}]],content:[[[{opacity:0},{opacity:0,offset:.2},{opacity:1}],{duration:250,easing:"linear",fill:"forwards"}]],actions:[[[{opacity:0},{opacity:0,offset:.5},{opacity:1}],{duration:300,easing:"linear",fill:"forwards"}]]},Oc={dialog:[[[{transform:"translateY(0)"},{transform:"translateY(-50px)"}],{duration:150,easing:we.EMPHASIZED_ACCELERATE}]],scrim:[[[{opacity:.32},{opacity:0}],{duration:150,easing:"linear"}]],container:[[[{height:"100%"},{height:"35%"}],{duration:150,easing:we.EMPHASIZED_ACCELERATE,pseudoElement:"::before"}],[[{opacity:"1"},{opacity:"0"}],{delay:100,duration:50,easing:"linear",pseudoElement:"::before"}]],headline:[[[{opacity:1},{opacity:0}],{duration:100,easing:"linear",fill:"forwards"}]],content:[[[{opacity:1},{opacity:0}],{duration:100,easing:"linear",fill:"forwards"}]],actions:[[[{opacity:1},{opacity:0}],{duration:100,easing:"linear",fill:"forwards"}]]};/**
510
510
  * @license
511
511
  * Copyright 2023 Google LLC
512
512
  * SPDX-License-Identifier: Apache-2.0
513
- */class B extends y{get open(){return this.isOpen}set open(e){e!==this.isOpen&&(this.isOpen=e,e?(this.setAttribute("open",""),this.show()):(this.removeAttribute("open"),this.close()))}constructor(){super(),this.quick=!1,this.returnValue="",this.noFocusTrap=!1,this.getOpenAnimation=()=>Pc,this.getCloseAnimation=()=>Oc,this.isOpen=!1,this.isOpening=!1,this.isConnectedPromise=this.getIsConnectedPromise(),this.isAtScrollTop=!1,this.isAtScrollBottom=!1,this.nextClickIsFromContent=!1,this.hasHeadline=!1,this.hasActions=!1,this.hasIcon=!1,this.escapePressedWithoutCancel=!1,this.treewalker=document.createTreeWalker(this,NodeFilter.SHOW_ELEMENT),this.addEventListener("submit",this.handleSubmit)}async show(){var i;this.isOpening=!0,await this.isConnectedPromise,await this.updateComplete;const e=this.dialog;if(e.open||!this.isOpening){this.isOpening=!1;return}if(!this.dispatchEvent(new Event("open",{cancelable:!0}))){this.open=!1,this.isOpening=!1;return}e.showModal(),this.open=!0,this.scroller&&(this.scroller.scrollTop=0),(i=this.querySelector("[autofocus]"))==null||i.focus(),await this.animateDialog(this.getOpenAnimation()),this.dispatchEvent(new Event("opened")),this.isOpening=!1}async close(e=this.returnValue){if(this.isOpening=!1,!this.isConnected){this.open=!1;return}await this.updateComplete;const t=this.dialog;if(!t.open||this.isOpening){this.open=!1;return}const i=this.returnValue;if(this.returnValue=e,!this.dispatchEvent(new Event("close",{cancelable:!0}))){this.returnValue=i;return}await this.animateDialog(this.getCloseAnimation()),t.close(e),this.open=!1,this.dispatchEvent(new Event("closed"))}connectedCallback(){super.connectedCallback(),this.isConnectedPromiseResolve()}disconnectedCallback(){super.disconnectedCallback(),this.isConnectedPromise=this.getIsConnectedPromise()}render(){const e=this.open&&!(this.isAtScrollTop&&this.isAtScrollBottom),t={"has-headline":this.hasHeadline,"has-actions":this.hasActions,"has-icon":this.hasIcon,scrollable:e,"show-top-divider":e&&!this.isAtScrollTop,"show-bottom-divider":e&&!this.isAtScrollBottom},i=this.open&&!this.noFocusTrap,r=c`
513
+ */class R extends y{get open(){return this.isOpen}set open(e){e!==this.isOpen&&(this.isOpen=e,e?(this.setAttribute("open",""),this.show()):(this.removeAttribute("open"),this.close()))}constructor(){super(),this.quick=!1,this.returnValue="",this.noFocusTrap=!1,this.getOpenAnimation=()=>Pc,this.getCloseAnimation=()=>Oc,this.isOpen=!1,this.isOpening=!1,this.isConnectedPromise=this.getIsConnectedPromise(),this.isAtScrollTop=!1,this.isAtScrollBottom=!1,this.nextClickIsFromContent=!1,this.hasHeadline=!1,this.hasActions=!1,this.hasIcon=!1,this.escapePressedWithoutCancel=!1,this.treewalker=document.createTreeWalker(this,NodeFilter.SHOW_ELEMENT),this.addEventListener("submit",this.handleSubmit)}async show(){var i;this.isOpening=!0,await this.isConnectedPromise,await this.updateComplete;const e=this.dialog;if(e.open||!this.isOpening){this.isOpening=!1;return}if(!this.dispatchEvent(new Event("open",{cancelable:!0}))){this.open=!1,this.isOpening=!1;return}e.showModal(),this.open=!0,this.scroller&&(this.scroller.scrollTop=0),(i=this.querySelector("[autofocus]"))==null||i.focus(),await this.animateDialog(this.getOpenAnimation()),this.dispatchEvent(new Event("opened")),this.isOpening=!1}async close(e=this.returnValue){if(this.isOpening=!1,!this.isConnected){this.open=!1;return}await this.updateComplete;const t=this.dialog;if(!t.open||this.isOpening){this.open=!1;return}const i=this.returnValue;if(this.returnValue=e,!this.dispatchEvent(new Event("close",{cancelable:!0}))){this.returnValue=i;return}await this.animateDialog(this.getCloseAnimation()),t.close(e),this.open=!1,this.dispatchEvent(new Event("closed"))}connectedCallback(){super.connectedCallback(),this.isConnectedPromiseResolve()}disconnectedCallback(){super.disconnectedCallback(),this.isConnectedPromise=this.getIsConnectedPromise()}render(){const e=this.open&&!(this.isAtScrollTop&&this.isAtScrollBottom),t={"has-headline":this.hasHeadline,"has-actions":this.hasActions,"has-icon":this.hasIcon,scrollable:e,"show-top-divider":e&&!this.isAtScrollTop,"show-bottom-divider":e&&!this.isAtScrollBottom},i=this.open&&!this.noFocusTrap,r=c`
514
514
  <div
515
515
  class="focus-trap"
516
516
  tabindex="0"
@@ -555,16 +555,16 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
555
555
  </div>
556
556
  ${i?r:u}
557
557
  </dialog>
558
- `}firstUpdated(){this.intersectionObserver=new IntersectionObserver(e=>{for(const t of e)this.handleAnchorIntersection(t)},{root:this.scroller}),this.intersectionObserver.observe(this.topAnchor),this.intersectionObserver.observe(this.bottomAnchor)}handleDialogClick(){if(this.nextClickIsFromContent){this.nextClickIsFromContent=!1;return}this.dispatchEvent(new Event("cancel",{cancelable:!0}))&&this.close()}handleContentClick(){this.nextClickIsFromContent=!0}handleSubmit(e){const t=e.target,{submitter:i}=e;t.method!=="dialog"||!i||this.close(i.getAttribute("value")??this.returnValue)}handleCancel(e){if(e.target!==this.dialog)return;this.escapePressedWithoutCancel=!1;const t=!it(this,e);e.preventDefault(),!t&&this.close()}handleClose(){var e;this.escapePressedWithoutCancel&&(this.escapePressedWithoutCancel=!1,(e=this.dialog)==null||e.dispatchEvent(new Event("cancel",{cancelable:!0})))}handleKeydown(e){e.key==="Escape"&&(this.escapePressedWithoutCancel=!0,setTimeout(()=>{this.escapePressedWithoutCancel=!1}))}async animateDialog(e){var T;if((T=this.cancelAnimations)==null||T.abort(),this.cancelAnimations=new AbortController,this.quick)return;const{dialog:t,scrim:i,container:r,headline:s,content:l,actions:h}=this;if(!t||!i||!r||!s||!l||!h)return;const{container:p,dialog:v,scrim:f,headline:b,content:_,actions:x}=e,S=[[t,v??[]],[i,f??[]],[r,p??[]],[s,b??[]],[l,_??[]],[h,x??[]]],C=[];for(const[A,z]of S)for(const ee of z){const q=A.animate(...ee);this.cancelAnimations.signal.addEventListener("abort",()=>{q.cancel()}),C.push(q)}await Promise.all(C.map(A=>A.finished.catch(()=>{})))}handleHeadlineChange(e){const t=e.target;this.hasHeadline=t.assignedElements().length>0}handleActionsChange(e){const t=e.target;this.hasActions=t.assignedElements().length>0}handleIconChange(e){const t=e.target;this.hasIcon=t.assignedElements().length>0}handleAnchorIntersection(e){const{target:t,isIntersecting:i}=e;t===this.topAnchor&&(this.isAtScrollTop=i),t===this.bottomAnchor&&(this.isAtScrollBottom=i)}getIsConnectedPromise(){return new Promise(e=>{this.isConnectedPromiseResolve=e})}handleFocusTrapFocus(e){var b;const[t,i]=this.getFirstAndLastFocusableChildren();if(!t||!i){(b=this.dialog)==null||b.focus();return}const r=e.target===this.firstFocusTrap,s=!r,l=e.relatedTarget===t,h=e.relatedTarget===i,p=!l&&!h;if(s&&h||r&&p){t.focus();return}if(r&&l||s&&p){i.focus();return}}getFirstAndLastFocusableChildren(){let e=null,t=null;for(this.treewalker.currentNode=this.treewalker.root;this.treewalker.nextNode();){const i=this.treewalker.currentNode;Lc(i)&&(e||(e=i),t=i)}return[e,t]}}re(B),d([n({type:Boolean})],B.prototype,"open",null),d([n({type:Boolean})],B.prototype,"quick",void 0),d([n({attribute:!1})],B.prototype,"returnValue",void 0),d([n()],B.prototype,"type",void 0),d([n({type:Boolean,attribute:"no-focus-trap"})],B.prototype,"noFocusTrap",void 0),d([k("dialog")],B.prototype,"dialog",void 0),d([k(".scrim")],B.prototype,"scrim",void 0),d([k(".container")],B.prototype,"container",void 0),d([k(".headline")],B.prototype,"headline",void 0),d([k(".content")],B.prototype,"content",void 0),d([k(".actions")],B.prototype,"actions",void 0),d([w()],B.prototype,"isAtScrollTop",void 0),d([w()],B.prototype,"isAtScrollBottom",void 0),d([k(".scroller")],B.prototype,"scroller",void 0),d([k(".top.anchor")],B.prototype,"topAnchor",void 0),d([k(".bottom.anchor")],B.prototype,"bottomAnchor",void 0),d([k(".focus-trap")],B.prototype,"firstFocusTrap",void 0),d([w()],B.prototype,"hasHeadline",void 0),d([w()],B.prototype,"hasActions",void 0),d([w()],B.prototype,"hasIcon",void 0);function Lc(a){var s;const e=":is(button,input,select,textarea,object,:is(a,area)[href],[tabindex],[contenteditable=true])",t=":not(:disabled,[disabled])";return a.matches(e+t+':not([tabindex^="-"])')?!0:!a.localName.includes("-")||!a.matches(t)?!1:((s=a.shadowRoot)==null?void 0:s.delegatesFocus)??!1}/**
558
+ `}firstUpdated(){this.intersectionObserver=new IntersectionObserver(e=>{for(const t of e)this.handleAnchorIntersection(t)},{root:this.scroller}),this.intersectionObserver.observe(this.topAnchor),this.intersectionObserver.observe(this.bottomAnchor)}handleDialogClick(){if(this.nextClickIsFromContent){this.nextClickIsFromContent=!1;return}this.dispatchEvent(new Event("cancel",{cancelable:!0}))&&this.close()}handleContentClick(){this.nextClickIsFromContent=!0}handleSubmit(e){const t=e.target,{submitter:i}=e;t.method!=="dialog"||!i||this.close(i.getAttribute("value")??this.returnValue)}handleCancel(e){if(e.target!==this.dialog)return;this.escapePressedWithoutCancel=!1;const t=!rt(this,e);e.preventDefault(),!t&&this.close()}handleClose(){var e;this.escapePressedWithoutCancel&&(this.escapePressedWithoutCancel=!1,(e=this.dialog)==null||e.dispatchEvent(new Event("cancel",{cancelable:!0})))}handleKeydown(e){e.key==="Escape"&&(this.escapePressedWithoutCancel=!0,setTimeout(()=>{this.escapePressedWithoutCancel=!1}))}async animateDialog(e){var T;if((T=this.cancelAnimations)==null||T.abort(),this.cancelAnimations=new AbortController,this.quick)return;const{dialog:t,scrim:i,container:r,headline:s,content:l,actions:h}=this;if(!t||!i||!r||!s||!l||!h)return;const{container:p,dialog:v,scrim:f,headline:b,content:_,actions:x}=e,S=[[t,v??[]],[i,f??[]],[r,p??[]],[s,b??[]],[l,_??[]],[h,x??[]]],C=[];for(const[A,z]of S)for(const ee of z){const q=A.animate(...ee);this.cancelAnimations.signal.addEventListener("abort",()=>{q.cancel()}),C.push(q)}await Promise.all(C.map(A=>A.finished.catch(()=>{})))}handleHeadlineChange(e){const t=e.target;this.hasHeadline=t.assignedElements().length>0}handleActionsChange(e){const t=e.target;this.hasActions=t.assignedElements().length>0}handleIconChange(e){const t=e.target;this.hasIcon=t.assignedElements().length>0}handleAnchorIntersection(e){const{target:t,isIntersecting:i}=e;t===this.topAnchor&&(this.isAtScrollTop=i),t===this.bottomAnchor&&(this.isAtScrollBottom=i)}getIsConnectedPromise(){return new Promise(e=>{this.isConnectedPromiseResolve=e})}handleFocusTrapFocus(e){var b;const[t,i]=this.getFirstAndLastFocusableChildren();if(!t||!i){(b=this.dialog)==null||b.focus();return}const r=e.target===this.firstFocusTrap,s=!r,l=e.relatedTarget===t,h=e.relatedTarget===i,p=!l&&!h;if(s&&h||r&&p){t.focus();return}if(r&&l||s&&p){i.focus();return}}getFirstAndLastFocusableChildren(){let e=null,t=null;for(this.treewalker.currentNode=this.treewalker.root;this.treewalker.nextNode();){const i=this.treewalker.currentNode;Lc(i)&&(e||(e=i),t=i)}return[e,t]}}re(R),d([n({type:Boolean})],R.prototype,"open",null),d([n({type:Boolean})],R.prototype,"quick",void 0),d([n({attribute:!1})],R.prototype,"returnValue",void 0),d([n()],R.prototype,"type",void 0),d([n({type:Boolean,attribute:"no-focus-trap"})],R.prototype,"noFocusTrap",void 0),d([k("dialog")],R.prototype,"dialog",void 0),d([k(".scrim")],R.prototype,"scrim",void 0),d([k(".container")],R.prototype,"container",void 0),d([k(".headline")],R.prototype,"headline",void 0),d([k(".content")],R.prototype,"content",void 0),d([k(".actions")],R.prototype,"actions",void 0),d([w()],R.prototype,"isAtScrollTop",void 0),d([w()],R.prototype,"isAtScrollBottom",void 0),d([k(".scroller")],R.prototype,"scroller",void 0),d([k(".top.anchor")],R.prototype,"topAnchor",void 0),d([k(".bottom.anchor")],R.prototype,"bottomAnchor",void 0),d([k(".focus-trap")],R.prototype,"firstFocusTrap",void 0),d([w()],R.prototype,"hasHeadline",void 0),d([w()],R.prototype,"hasActions",void 0),d([w()],R.prototype,"hasIcon",void 0);function Lc(a){var s;const e=":is(button,input,select,textarea,object,:is(a,area)[href],[tabindex],[contenteditable=true])",t=":not(:disabled,[disabled])";return a.matches(e+t+':not([tabindex^="-"])')?!0:!a.localName.includes("-")||!a.matches(t)?!1:((s=a.shadowRoot)==null?void 0:s.delegatesFocus)??!1}/**
559
559
  * @license
560
560
  * Copyright 2024 Google LLC
561
561
  * SPDX-License-Identifier: Apache-2.0
562
- */const Rc=m`:host{border-start-start-radius:var(--md-dialog-container-shape-start-start, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));border-start-end-radius:var(--md-dialog-container-shape-start-end, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));border-end-end-radius:var(--md-dialog-container-shape-end-end, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));border-end-start-radius:var(--md-dialog-container-shape-end-start, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));display:contents;margin:auto;max-height:min(560px,100% - 48px);max-width:min(560px,100% - 48px);min-height:140px;min-width:280px;position:fixed;height:fit-content;width:fit-content}dialog{background:rgba(0,0,0,0);border:none;border-radius:inherit;flex-direction:column;height:inherit;margin:inherit;max-height:inherit;max-width:inherit;min-height:inherit;min-width:inherit;outline:none;overflow:visible;padding:0;width:inherit}dialog[open]{display:flex}::backdrop{background:none}.scrim{background:var(--md-sys-color-scrim, #000);display:none;inset:0;opacity:32%;pointer-events:none;position:fixed;z-index:1}:host([open]) .scrim{display:flex}h2{all:unset;align-self:stretch}.headline{align-items:center;color:var(--md-dialog-headline-color, var(--md-sys-color-on-surface, #1d1b20));display:flex;flex-direction:column;font-family:var(--md-dialog-headline-font, var(--md-sys-typescale-headline-small-font, var(--md-ref-typeface-brand, Roboto)));font-size:var(--md-dialog-headline-size, var(--md-sys-typescale-headline-small-size, 1.5rem));line-height:var(--md-dialog-headline-line-height, var(--md-sys-typescale-headline-small-line-height, 2rem));font-weight:var(--md-dialog-headline-weight, var(--md-sys-typescale-headline-small-weight, var(--md-ref-typeface-weight-regular, 400)));position:relative}slot[name=headline]::slotted(*){align-items:center;align-self:stretch;box-sizing:border-box;display:flex;gap:8px;padding:24px 24px 0}.icon{display:flex}slot[name=icon]::slotted(*){color:var(--md-dialog-icon-color, var(--md-sys-color-secondary, #625b71));fill:currentColor;font-size:var(--md-dialog-icon-size, 24px);margin-top:24px;height:var(--md-dialog-icon-size, 24px);width:var(--md-dialog-icon-size, 24px)}.has-icon slot[name=headline]::slotted(*){justify-content:center;padding-top:16px}.scrollable slot[name=headline]::slotted(*){padding-bottom:16px}.scrollable.has-headline slot[name=content]::slotted(*){padding-top:8px}.container{border-radius:inherit;display:flex;flex-direction:column;flex-grow:1;overflow:hidden;position:relative;transform-origin:top}.container::before{background:var(--md-dialog-container-color, var(--md-sys-color-surface-container-high, #ece6f0));border-radius:inherit;content:"";inset:0;position:absolute}.scroller{display:flex;flex:1;flex-direction:column;overflow:hidden;z-index:1}.scrollable .scroller{overflow-y:scroll}.content{color:var(--md-dialog-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));font-family:var(--md-dialog-supporting-text-font, var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-dialog-supporting-text-size, var(--md-sys-typescale-body-medium-size, 0.875rem));line-height:var(--md-dialog-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));flex:1;font-weight:var(--md-dialog-supporting-text-weight, var(--md-sys-typescale-body-medium-weight, var(--md-ref-typeface-weight-regular, 400)));height:min-content;position:relative}slot[name=content]::slotted(*){box-sizing:border-box;padding:24px}.anchor{position:absolute}.top.anchor{top:0}.bottom.anchor{bottom:0}.actions{position:relative}slot[name=actions]::slotted(*){box-sizing:border-box;display:flex;gap:8px;justify-content:flex-end;padding:16px 24px 24px}.has-actions slot[name=content]::slotted(*){padding-bottom:8px}md-divider{display:none;position:absolute}.has-headline.show-top-divider .headline md-divider,.has-actions.show-bottom-divider .actions md-divider{display:flex}.headline md-divider{bottom:0}.actions md-divider{top:0}@media(forced-colors: active){dialog{outline:2px solid WindowText}}
562
+ */const Bc=m`:host{border-start-start-radius:var(--md-dialog-container-shape-start-start, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));border-start-end-radius:var(--md-dialog-container-shape-start-end, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));border-end-end-radius:var(--md-dialog-container-shape-end-end, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));border-end-start-radius:var(--md-dialog-container-shape-end-start, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));display:contents;margin:auto;max-height:min(560px,100% - 48px);max-width:min(560px,100% - 48px);min-height:140px;min-width:280px;position:fixed;height:fit-content;width:fit-content}dialog{background:rgba(0,0,0,0);border:none;border-radius:inherit;flex-direction:column;height:inherit;margin:inherit;max-height:inherit;max-width:inherit;min-height:inherit;min-width:inherit;outline:none;overflow:visible;padding:0;width:inherit}dialog[open]{display:flex}::backdrop{background:none}.scrim{background:var(--md-sys-color-scrim, #000);display:none;inset:0;opacity:32%;pointer-events:none;position:fixed;z-index:1}:host([open]) .scrim{display:flex}h2{all:unset;align-self:stretch}.headline{align-items:center;color:var(--md-dialog-headline-color, var(--md-sys-color-on-surface, #1d1b20));display:flex;flex-direction:column;font-family:var(--md-dialog-headline-font, var(--md-sys-typescale-headline-small-font, var(--md-ref-typeface-brand, Roboto)));font-size:var(--md-dialog-headline-size, var(--md-sys-typescale-headline-small-size, 1.5rem));line-height:var(--md-dialog-headline-line-height, var(--md-sys-typescale-headline-small-line-height, 2rem));font-weight:var(--md-dialog-headline-weight, var(--md-sys-typescale-headline-small-weight, var(--md-ref-typeface-weight-regular, 400)));position:relative}slot[name=headline]::slotted(*){align-items:center;align-self:stretch;box-sizing:border-box;display:flex;gap:8px;padding:24px 24px 0}.icon{display:flex}slot[name=icon]::slotted(*){color:var(--md-dialog-icon-color, var(--md-sys-color-secondary, #625b71));fill:currentColor;font-size:var(--md-dialog-icon-size, 24px);margin-top:24px;height:var(--md-dialog-icon-size, 24px);width:var(--md-dialog-icon-size, 24px)}.has-icon slot[name=headline]::slotted(*){justify-content:center;padding-top:16px}.scrollable slot[name=headline]::slotted(*){padding-bottom:16px}.scrollable.has-headline slot[name=content]::slotted(*){padding-top:8px}.container{border-radius:inherit;display:flex;flex-direction:column;flex-grow:1;overflow:hidden;position:relative;transform-origin:top}.container::before{background:var(--md-dialog-container-color, var(--md-sys-color-surface-container-high, #ece6f0));border-radius:inherit;content:"";inset:0;position:absolute}.scroller{display:flex;flex:1;flex-direction:column;overflow:hidden;z-index:1}.scrollable .scroller{overflow-y:scroll}.content{color:var(--md-dialog-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));font-family:var(--md-dialog-supporting-text-font, var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-dialog-supporting-text-size, var(--md-sys-typescale-body-medium-size, 0.875rem));line-height:var(--md-dialog-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));flex:1;font-weight:var(--md-dialog-supporting-text-weight, var(--md-sys-typescale-body-medium-weight, var(--md-ref-typeface-weight-regular, 400)));height:min-content;position:relative}slot[name=content]::slotted(*){box-sizing:border-box;padding:24px}.anchor{position:absolute}.top.anchor{top:0}.bottom.anchor{bottom:0}.actions{position:relative}slot[name=actions]::slotted(*){box-sizing:border-box;display:flex;gap:8px;justify-content:flex-end;padding:16px 24px 24px}.has-actions slot[name=content]::slotted(*){padding-bottom:8px}md-divider{display:none;position:absolute}.has-headline.show-top-divider .headline md-divider,.has-actions.show-bottom-divider .actions md-divider{display:flex}.headline md-divider{bottom:0}.actions md-divider{top:0}@media(forced-colors: active){dialog{outline:2px solid WindowText}}
563
563
  `;/**
564
564
  * @license
565
565
  * Copyright 2023 Google LLC
566
566
  * SPDX-License-Identifier: Apache-2.0
567
- */let Ua=class extends B{};Ua.styles=[Rc],Ua=d([g("md-dialog")],Ua);/**
567
+ */let Ua=class extends R{};Ua.styles=[Bc],Ua=d([g("md-dialog")],Ua);/**
568
568
  * @license
569
569
  * Copyright 2023 Google LLC
570
570
  * SPDX-License-Identifier: Apache-2.0
@@ -591,22 +591,22 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
591
591
  * @license
592
592
  * Copyright 2024 Google LLC
593
593
  * SPDX-License-Identifier: Apache-2.0
594
- */const Bc=m`:host{--_container-color: var(--md-fab-branded-container-color, var(--md-sys-color-surface-container-high, #ece6f0));--_container-elevation: var(--md-fab-branded-container-elevation, 3);--_container-height: var(--md-fab-branded-container-height, 56px);--_container-shadow-color: var(--md-fab-branded-container-shadow-color, var(--md-sys-color-shadow, #000));--_container-width: var(--md-fab-branded-container-width, 56px);--_focus-container-elevation: var(--md-fab-branded-focus-container-elevation, 3);--_hover-container-elevation: var(--md-fab-branded-hover-container-elevation, 4);--_hover-state-layer-color: var(--md-fab-branded-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-fab-branded-hover-state-layer-opacity, 0.08);--_icon-size: var(--md-fab-branded-icon-size, 36px);--_lowered-container-color: var(--md-fab-branded-lowered-container-color, var(--md-sys-color-surface-container-low, #f7f2fa));--_lowered-container-elevation: var(--md-fab-branded-lowered-container-elevation, 1);--_lowered-focus-container-elevation: var(--md-fab-branded-lowered-focus-container-elevation, 1);--_lowered-hover-container-elevation: var(--md-fab-branded-lowered-hover-container-elevation, 2);--_lowered-pressed-container-elevation: var(--md-fab-branded-lowered-pressed-container-elevation, 1);--_pressed-container-elevation: var(--md-fab-branded-pressed-container-elevation, 3);--_pressed-state-layer-color: var(--md-fab-branded-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-fab-branded-pressed-state-layer-opacity, 0.12);--_focus-label-text-color: var(--md-fab-branded-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-label-text-color: var(--md-fab-branded-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-color: var(--md-fab-branded-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_label-text-font: var(--md-fab-branded-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-size: var(--md-fab-branded-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-line-height: var(--md-fab-branded-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-weight: var(--md-fab-branded-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_large-container-height: var(--md-fab-branded-large-container-height, 96px);--_large-container-width: var(--md-fab-branded-large-container-width, 96px);--_large-icon-size: var(--md-fab-branded-large-icon-size, 48px);--_pressed-label-text-color: var(--md-fab-branded-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start: var(--md-fab-branded-container-shape-start-start, var(--md-fab-branded-container-shape, var(--md-sys-shape-corner-large, 16px)));--_container-shape-start-end: var(--md-fab-branded-container-shape-start-end, var(--md-fab-branded-container-shape, var(--md-sys-shape-corner-large, 16px)));--_container-shape-end-end: var(--md-fab-branded-container-shape-end-end, var(--md-fab-branded-container-shape, var(--md-sys-shape-corner-large, 16px)));--_container-shape-end-start: var(--md-fab-branded-container-shape-end-start, var(--md-fab-branded-container-shape, var(--md-sys-shape-corner-large, 16px)));--_large-container-shape-start-start: var(--md-fab-branded-large-container-shape-start-start, var(--md-fab-branded-large-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));--_large-container-shape-start-end: var(--md-fab-branded-large-container-shape-start-end, var(--md-fab-branded-large-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));--_large-container-shape-end-end: var(--md-fab-branded-large-container-shape-end-end, var(--md-fab-branded-large-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));--_large-container-shape-end-start: var(--md-fab-branded-large-container-shape-end-start, var(--md-fab-branded-large-container-shape, var(--md-sys-shape-corner-extra-large, 28px)))}
594
+ */const Rc=m`:host{--_container-color: var(--md-fab-branded-container-color, var(--md-sys-color-surface-container-high, #ece6f0));--_container-elevation: var(--md-fab-branded-container-elevation, 3);--_container-height: var(--md-fab-branded-container-height, 56px);--_container-shadow-color: var(--md-fab-branded-container-shadow-color, var(--md-sys-color-shadow, #000));--_container-width: var(--md-fab-branded-container-width, 56px);--_focus-container-elevation: var(--md-fab-branded-focus-container-elevation, 3);--_hover-container-elevation: var(--md-fab-branded-hover-container-elevation, 4);--_hover-state-layer-color: var(--md-fab-branded-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-fab-branded-hover-state-layer-opacity, 0.08);--_icon-size: var(--md-fab-branded-icon-size, 36px);--_lowered-container-color: var(--md-fab-branded-lowered-container-color, var(--md-sys-color-surface-container-low, #f7f2fa));--_lowered-container-elevation: var(--md-fab-branded-lowered-container-elevation, 1);--_lowered-focus-container-elevation: var(--md-fab-branded-lowered-focus-container-elevation, 1);--_lowered-hover-container-elevation: var(--md-fab-branded-lowered-hover-container-elevation, 2);--_lowered-pressed-container-elevation: var(--md-fab-branded-lowered-pressed-container-elevation, 1);--_pressed-container-elevation: var(--md-fab-branded-pressed-container-elevation, 3);--_pressed-state-layer-color: var(--md-fab-branded-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-fab-branded-pressed-state-layer-opacity, 0.12);--_focus-label-text-color: var(--md-fab-branded-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-label-text-color: var(--md-fab-branded-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-color: var(--md-fab-branded-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_label-text-font: var(--md-fab-branded-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-size: var(--md-fab-branded-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-line-height: var(--md-fab-branded-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-weight: var(--md-fab-branded-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_large-container-height: var(--md-fab-branded-large-container-height, 96px);--_large-container-width: var(--md-fab-branded-large-container-width, 96px);--_large-icon-size: var(--md-fab-branded-large-icon-size, 48px);--_pressed-label-text-color: var(--md-fab-branded-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start: var(--md-fab-branded-container-shape-start-start, var(--md-fab-branded-container-shape, var(--md-sys-shape-corner-large, 16px)));--_container-shape-start-end: var(--md-fab-branded-container-shape-start-end, var(--md-fab-branded-container-shape, var(--md-sys-shape-corner-large, 16px)));--_container-shape-end-end: var(--md-fab-branded-container-shape-end-end, var(--md-fab-branded-container-shape, var(--md-sys-shape-corner-large, 16px)));--_container-shape-end-start: var(--md-fab-branded-container-shape-end-start, var(--md-fab-branded-container-shape, var(--md-sys-shape-corner-large, 16px)));--_large-container-shape-start-start: var(--md-fab-branded-large-container-shape-start-start, var(--md-fab-branded-large-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));--_large-container-shape-start-end: var(--md-fab-branded-large-container-shape-start-end, var(--md-fab-branded-large-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));--_large-container-shape-end-end: var(--md-fab-branded-large-container-shape-end-end, var(--md-fab-branded-large-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));--_large-container-shape-end-start: var(--md-fab-branded-large-container-shape-end-start, var(--md-fab-branded-large-container-shape, var(--md-sys-shape-corner-extra-large, 28px)))}
595
595
  `;/**
596
596
  * @license
597
597
  * Copyright 2024 Google LLC
598
598
  * SPDX-License-Identifier: Apache-2.0
599
- */const Rs=m`@media(forced-colors: active){.fab{border:1px solid ButtonText}.fab.extended{padding-inline-start:15px;padding-inline-end:19px}md-focus-ring{--md-focus-ring-outward-offset: 3px}}
599
+ */const Bs=m`@media(forced-colors: active){.fab{border:1px solid ButtonText}.fab.extended{padding-inline-start:15px;padding-inline-end:19px}md-focus-ring{--md-focus-ring-outward-offset: 3px}}
600
600
  `;/**
601
601
  * @license
602
602
  * Copyright 2024 Google LLC
603
603
  * SPDX-License-Identifier: Apache-2.0
604
- */const Bs=m`:host{--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity);display:inline-flex;-webkit-tap-highlight-color:rgba(0,0,0,0)}:host([size=medium][touch-target=wrapper]){margin:max(0px,48px - var(--_container-height))}:host([size=large][touch-target=wrapper]){margin:max(0px,48px - var(--_large-container-height))}.fab,.icon,.icon ::slotted(*){display:flex}.fab{align-items:center;justify-content:center;vertical-align:middle;padding:0;position:relative;height:var(--_container-height);transition-property:background-color;border-width:0px;outline:none;z-index:0;text-transform:inherit;--md-elevation-level: var(--_container-elevation);--md-elevation-shadow-color: var(--_container-shadow-color);background-color:var(--_container-color);--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-pressed-color: var(--_pressed-state-layer-color)}.fab.extended{width:inherit;box-sizing:border-box;padding-inline-start:16px;padding-inline-end:20px}.fab:not(.extended){width:var(--_container-width)}.fab.large{width:var(--_large-container-width);height:var(--_large-container-height)}.fab.large .icon ::slotted(*){width:var(--_large-icon-size);height:var(--_large-icon-size);font-size:var(--_large-icon-size)}.fab.large,.fab.large .ripple{border-start-start-radius:var(--_large-container-shape-start-start);border-start-end-radius:var(--_large-container-shape-start-end);border-end-start-radius:var(--_large-container-shape-end-start);border-end-end-radius:var(--_large-container-shape-end-end)}.fab.large md-focus-ring{--md-focus-ring-shape-start-start: var(--_large-container-shape-start-start);--md-focus-ring-shape-start-end: var(--_large-container-shape-start-end);--md-focus-ring-shape-end-end: var(--_large-container-shape-end-end);--md-focus-ring-shape-end-start: var(--_large-container-shape-end-start)}.fab:focus{--md-elevation-level: var(--_focus-container-elevation)}.fab:hover{--md-elevation-level: var(--_hover-container-elevation)}.fab:active{--md-elevation-level: var(--_pressed-container-elevation)}.fab.lowered{background-color:var(--_lowered-container-color);--md-elevation-level: var(--_lowered-container-elevation)}.fab.lowered:focus{--md-elevation-level: var(--_lowered-focus-container-elevation)}.fab.lowered:hover{--md-elevation-level: var(--_lowered-hover-container-elevation)}.fab.lowered:active{--md-elevation-level: var(--_lowered-pressed-container-elevation)}.fab .label{color:var(--_label-text-color)}.fab:hover .fab .label{color:var(--_hover-label-text-color)}.fab:focus .fab .label{color:var(--_focus-label-text-color)}.fab:active .fab .label{color:var(--_pressed-label-text-color)}.label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight)}.fab.extended .icon ::slotted(*){margin-inline-end:12px}.ripple{overflow:hidden}.ripple,md-elevation{z-index:-1}.touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}:host([touch-target=none]) .touch-target{display:none}md-elevation,.fab{transition-duration:280ms;transition-timing-function:cubic-bezier(0.2, 0, 0, 1)}.fab,.ripple{border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end)}md-focus-ring{--md-focus-ring-shape-start-start: var(--_container-shape-start-start);--md-focus-ring-shape-start-end: var(--_container-shape-start-end);--md-focus-ring-shape-end-end: var(--_container-shape-end-end);--md-focus-ring-shape-end-start: var(--_container-shape-end-start)}.icon ::slotted(*){width:var(--_icon-size);height:var(--_icon-size);font-size:var(--_icon-size)}
604
+ */const Rs=m`:host{--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity);display:inline-flex;-webkit-tap-highlight-color:rgba(0,0,0,0)}:host([size=medium][touch-target=wrapper]){margin:max(0px,48px - var(--_container-height))}:host([size=large][touch-target=wrapper]){margin:max(0px,48px - var(--_large-container-height))}.fab,.icon,.icon ::slotted(*){display:flex}.fab{align-items:center;justify-content:center;vertical-align:middle;padding:0;position:relative;height:var(--_container-height);transition-property:background-color;border-width:0px;outline:none;z-index:0;text-transform:inherit;--md-elevation-level: var(--_container-elevation);--md-elevation-shadow-color: var(--_container-shadow-color);background-color:var(--_container-color);--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-pressed-color: var(--_pressed-state-layer-color)}.fab.extended{width:inherit;box-sizing:border-box;padding-inline-start:16px;padding-inline-end:20px}.fab:not(.extended){width:var(--_container-width)}.fab.large{width:var(--_large-container-width);height:var(--_large-container-height)}.fab.large .icon ::slotted(*){width:var(--_large-icon-size);height:var(--_large-icon-size);font-size:var(--_large-icon-size)}.fab.large,.fab.large .ripple{border-start-start-radius:var(--_large-container-shape-start-start);border-start-end-radius:var(--_large-container-shape-start-end);border-end-start-radius:var(--_large-container-shape-end-start);border-end-end-radius:var(--_large-container-shape-end-end)}.fab.large md-focus-ring{--md-focus-ring-shape-start-start: var(--_large-container-shape-start-start);--md-focus-ring-shape-start-end: var(--_large-container-shape-start-end);--md-focus-ring-shape-end-end: var(--_large-container-shape-end-end);--md-focus-ring-shape-end-start: var(--_large-container-shape-end-start)}.fab:focus{--md-elevation-level: var(--_focus-container-elevation)}.fab:hover{--md-elevation-level: var(--_hover-container-elevation)}.fab:active{--md-elevation-level: var(--_pressed-container-elevation)}.fab.lowered{background-color:var(--_lowered-container-color);--md-elevation-level: var(--_lowered-container-elevation)}.fab.lowered:focus{--md-elevation-level: var(--_lowered-focus-container-elevation)}.fab.lowered:hover{--md-elevation-level: var(--_lowered-hover-container-elevation)}.fab.lowered:active{--md-elevation-level: var(--_lowered-pressed-container-elevation)}.fab .label{color:var(--_label-text-color)}.fab:hover .fab .label{color:var(--_hover-label-text-color)}.fab:focus .fab .label{color:var(--_focus-label-text-color)}.fab:active .fab .label{color:var(--_pressed-label-text-color)}.label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight)}.fab.extended .icon ::slotted(*){margin-inline-end:12px}.ripple{overflow:hidden}.ripple,md-elevation{z-index:-1}.touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}:host([touch-target=none]) .touch-target{display:none}md-elevation,.fab{transition-duration:280ms;transition-timing-function:cubic-bezier(0.2, 0, 0, 1)}.fab,.ripple{border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end)}md-focus-ring{--md-focus-ring-shape-start-start: var(--_container-shape-start-start);--md-focus-ring-shape-start-end: var(--_container-shape-start-end);--md-focus-ring-shape-end-end: var(--_container-shape-end-end);--md-focus-ring-shape-end-start: var(--_container-shape-end-start)}.icon ::slotted(*){width:var(--_icon-size);height:var(--_icon-size);font-size:var(--_icon-size)}
605
605
  `;/**
606
606
  * @license
607
607
  * Copyright 2023 Google LLC
608
608
  * SPDX-License-Identifier: Apache-2.0
609
- */let ja=class extends Wa{getRenderClasses(){return{...super.getRenderClasses(),primary:!1,secondary:!1,tertiary:!1,small:!1}}};ja.styles=[Bs,Bc,Rs],ja=d([g("md-branded-fab")],ja);/**
609
+ */let ja=class extends Wa{getRenderClasses(){return{...super.getRenderClasses(),primary:!1,secondary:!1,tertiary:!1,small:!1}}};ja.styles=[Rs,Rc,Bs],ja=d([g("md-branded-fab")],ja);/**
610
610
  * @license
611
611
  * Copyright 2024 Google LLC
612
612
  * SPDX-License-Identifier: Apache-2.0
@@ -615,11 +615,11 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
615
615
  * @license
616
616
  * Copyright 2022 Google LLC
617
617
  * SPDX-License-Identifier: Apache-2.0
618
- */let Ka=class extends Wa{};Ka.styles=[Bs,Dc,Rs],Ka=d([g("md-fab")],Ka);/**
618
+ */let Ka=class extends Wa{};Ka.styles=[Rs,Dc,Bs],Ka=d([g("md-fab")],Ka);/**
619
619
  * @license
620
620
  * Copyright 2021 Google LLC
621
621
  * SPDX-License-Identifier: Apache-2.0
622
- */class R extends y{constructor(){super(...arguments),this.disabled=!1,this.error=!1,this.focused=!1,this.label="",this.noAsterisk=!1,this.populated=!1,this.required=!1,this.resizable=!1,this.supportingText="",this.errorText="",this.count=-1,this.max=-1,this.hasStart=!1,this.hasEnd=!1,this.isAnimating=!1,this.refreshErrorAlert=!1,this.disableTransitions=!1}get counterText(){const e=this.count??-1,t=this.max??-1;return e<0||t<=0?"":`${e} / ${t}`}get supportingOrErrorText(){return this.error&&this.errorText?this.errorText:this.supportingText}reannounceError(){this.refreshErrorAlert=!0}update(e){e.has("disabled")&&e.get("disabled")!==void 0&&(this.disableTransitions=!0),this.disabled&&this.focused&&(e.set("focused",!0),this.focused=!1),this.animateLabelIfNeeded({wasFocused:e.get("focused"),wasPopulated:e.get("populated")}),super.update(e)}render(){var s,l,h;const e=this.renderLabel(!0),t=this.renderLabel(!1),i=(s=this.renderOutline)==null?void 0:s.call(this,e),r={disabled:this.disabled,"disable-transitions":this.disableTransitions,error:this.error&&!this.disabled,focused:this.focused,"with-start":this.hasStart,"with-end":this.hasEnd,populated:this.populated,resizable:this.resizable,required:this.required,"no-label":!this.label};return c`
622
+ */class B extends y{constructor(){super(...arguments),this.disabled=!1,this.error=!1,this.focused=!1,this.label="",this.noAsterisk=!1,this.populated=!1,this.required=!1,this.resizable=!1,this.supportingText="",this.errorText="",this.count=-1,this.max=-1,this.hasStart=!1,this.hasEnd=!1,this.isAnimating=!1,this.refreshErrorAlert=!1,this.disableTransitions=!1}get counterText(){const e=this.count??-1,t=this.max??-1;return e<0||t<=0?"":`${e} / ${t}`}get supportingOrErrorText(){return this.error&&this.errorText?this.errorText:this.supportingText}reannounceError(){this.refreshErrorAlert=!0}update(e){e.has("disabled")&&e.get("disabled")!==void 0&&(this.disableTransitions=!0),this.disabled&&this.focused&&(e.set("focused",!0),this.focused=!1),this.animateLabelIfNeeded({wasFocused:e.get("focused"),wasPopulated:e.get("populated")}),super.update(e)}render(){var s,l,h;const e=this.renderLabel(!0),t=this.renderLabel(!1),i=(s=this.renderOutline)==null?void 0:s.call(this,e),r={disabled:this.disabled,"disable-transitions":this.disableTransitions,error:this.error&&!this.disabled,focused:this.focused,"with-start":this.hasStart,"with-end":this.hasEnd,populated:this.populated,resizable:this.resizable,required:this.required,"no-label":!this.label};return c`
623
623
  <div class="field ${L(r)}">
624
624
  <div class="container-overflow">
625
625
  ${(l=this.renderBackground)==null?void 0:l.call(this)} ${(h=this.renderIndicator)==null?void 0:h.call(this)} ${i}
@@ -651,11 +651,11 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
651
651
  <span class="label ${L(i)}" aria-hidden=${!t}
652
652
  >${r}</span
653
653
  >
654
- `}animateLabelIfNeeded({wasFocused:e,wasPopulated:t}){var s,l,h;if(!this.label)return;e??(e=this.focused),t??(t=this.populated);const i=e||t,r=this.focused||this.populated;i!==r&&(this.isAnimating=!0,(s=this.labelAnimation)==null||s.cancel(),this.labelAnimation=(l=this.floatingLabelEl)==null?void 0:l.animate(this.getLabelKeyframes(),{duration:150,easing:xe.STANDARD}),(h=this.labelAnimation)==null||h.addEventListener("finish",()=>{this.isAnimating=!1}))}getLabelKeyframes(){const{floatingLabelEl:e,restingLabelEl:t}=this;if(!e||!t)return[];const{x:i,y:r,height:s}=e.getBoundingClientRect(),{x:l,y:h,height:p}=t.getBoundingClientRect(),v=e.scrollWidth,f=t.scrollWidth,b=f/v,_=l-i,x=h-r+Math.round((p-s*b)/2),S=`translateX(${_}px) translateY(${x}px) scale(${b})`,C="translateX(0) translateY(0) scale(1)",T=t.clientWidth,z=f>T?`${T/b}px`:"";return this.focused||this.populated?[{transform:S,width:z},{transform:C,width:z}]:[{transform:C,width:z},{transform:S,width:z}]}getSurfacePositionClientRect(){return this.containerEl.getBoundingClientRect()}}d([n({type:Boolean})],R.prototype,"disabled",void 0),d([n({type:Boolean})],R.prototype,"error",void 0),d([n({type:Boolean})],R.prototype,"focused",void 0),d([n()],R.prototype,"label",void 0),d([n({type:Boolean,attribute:"no-asterisk"})],R.prototype,"noAsterisk",void 0),d([n({type:Boolean})],R.prototype,"populated",void 0),d([n({type:Boolean})],R.prototype,"required",void 0),d([n({type:Boolean})],R.prototype,"resizable",void 0),d([n({attribute:"supporting-text"})],R.prototype,"supportingText",void 0),d([n({attribute:"error-text"})],R.prototype,"errorText",void 0),d([n({type:Number})],R.prototype,"count",void 0),d([n({type:Number})],R.prototype,"max",void 0),d([n({type:Boolean,attribute:"has-start"})],R.prototype,"hasStart",void 0),d([n({type:Boolean,attribute:"has-end"})],R.prototype,"hasEnd",void 0),d([Y({slot:"aria-describedby"})],R.prototype,"slottedAriaDescribedBy",void 0),d([w()],R.prototype,"isAnimating",void 0),d([w()],R.prototype,"refreshErrorAlert",void 0),d([w()],R.prototype,"disableTransitions",void 0),d([k(".label.floating")],R.prototype,"floatingLabelEl",void 0),d([k(".label.resting")],R.prototype,"restingLabelEl",void 0),d([k(".container")],R.prototype,"containerEl",void 0);/**
654
+ `}animateLabelIfNeeded({wasFocused:e,wasPopulated:t}){var s,l,h;if(!this.label)return;e??(e=this.focused),t??(t=this.populated);const i=e||t,r=this.focused||this.populated;i!==r&&(this.isAnimating=!0,(s=this.labelAnimation)==null||s.cancel(),this.labelAnimation=(l=this.floatingLabelEl)==null?void 0:l.animate(this.getLabelKeyframes(),{duration:150,easing:we.STANDARD}),(h=this.labelAnimation)==null||h.addEventListener("finish",()=>{this.isAnimating=!1}))}getLabelKeyframes(){const{floatingLabelEl:e,restingLabelEl:t}=this;if(!e||!t)return[];const{x:i,y:r,height:s}=e.getBoundingClientRect(),{x:l,y:h,height:p}=t.getBoundingClientRect(),v=e.scrollWidth,f=t.scrollWidth,b=f/v,_=l-i,x=h-r+Math.round((p-s*b)/2),S=`translateX(${_}px) translateY(${x}px) scale(${b})`,C="translateX(0) translateY(0) scale(1)",T=t.clientWidth,z=f>T?`${T/b}px`:"";return this.focused||this.populated?[{transform:S,width:z},{transform:C,width:z}]:[{transform:C,width:z},{transform:S,width:z}]}getSurfacePositionClientRect(){return this.containerEl.getBoundingClientRect()}}d([n({type:Boolean})],B.prototype,"disabled",void 0),d([n({type:Boolean})],B.prototype,"error",void 0),d([n({type:Boolean})],B.prototype,"focused",void 0),d([n()],B.prototype,"label",void 0),d([n({type:Boolean,attribute:"no-asterisk"})],B.prototype,"noAsterisk",void 0),d([n({type:Boolean})],B.prototype,"populated",void 0),d([n({type:Boolean})],B.prototype,"required",void 0),d([n({type:Boolean})],B.prototype,"resizable",void 0),d([n({attribute:"supporting-text"})],B.prototype,"supportingText",void 0),d([n({attribute:"error-text"})],B.prototype,"errorText",void 0),d([n({type:Number})],B.prototype,"count",void 0),d([n({type:Number})],B.prototype,"max",void 0),d([n({type:Boolean,attribute:"has-start"})],B.prototype,"hasStart",void 0),d([n({type:Boolean,attribute:"has-end"})],B.prototype,"hasEnd",void 0),d([Y({slot:"aria-describedby"})],B.prototype,"slottedAriaDescribedBy",void 0),d([w()],B.prototype,"isAnimating",void 0),d([w()],B.prototype,"refreshErrorAlert",void 0),d([w()],B.prototype,"disableTransitions",void 0),d([k(".label.floating")],B.prototype,"floatingLabelEl",void 0),d([k(".label.resting")],B.prototype,"restingLabelEl",void 0),d([k(".container")],B.prototype,"containerEl",void 0);/**
655
655
  * @license
656
656
  * Copyright 2021 Google LLC
657
657
  * SPDX-License-Identifier: Apache-2.0
658
- */class Mc extends R{renderBackground(){return c`
658
+ */class Mc extends B{renderBackground(){return c`
659
659
  <div class="background"></div>
660
660
  <div class="state-layer"></div>
661
661
  `}renderIndicator(){return c`<div class="active-indicator"></div>`}}/**
@@ -676,7 +676,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
676
676
  * @license
677
677
  * Copyright 2021 Google LLC
678
678
  * SPDX-License-Identifier: Apache-2.0
679
- */class Hc extends R{renderOutline(e){return c`
679
+ */class Hc extends B{renderOutline(e){return c`
680
680
  <div class="outline">
681
681
  <div class="outline-start"></div>
682
682
  <div class="outline-notch">
@@ -726,7 +726,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
726
726
  * @license
727
727
  * Copyright 2018 Google LLC
728
728
  * SPDX-License-Identifier: Apache-2.0
729
- */const Kc=tt(y);class W extends Kc{constructor(){super(...arguments),this.disabled=!1,this.flipIconInRtl=!1,this.href="",this.target="",this.ariaLabelSelected="",this.toggle=!1,this.selected=!1,this.type="submit",this.value="",this.flipIcon=Hs(this,this.flipIconInRtl)}get name(){return this.getAttribute("name")??""}set name(e){this.setAttribute("name",e)}get form(){return this[K].form}get labels(){return this[K].labels}willUpdate(){this.href&&(this.disabled=!1)}render(){const e=this.href?ae`div`:ae`button`,{ariaLabel:t,ariaHasPopup:i,ariaExpanded:r}=this,s=t&&this.ariaLabelSelected,l=this.toggle?this.selected:u;let h=u;return this.href||(h=s&&this.selected?this.ariaLabelSelected:t),fi`<${e}
729
+ */const Kc=it(y);class W extends Kc{constructor(){super(...arguments),this.disabled=!1,this.flipIconInRtl=!1,this.href="",this.target="",this.ariaLabelSelected="",this.toggle=!1,this.selected=!1,this.type="submit",this.value="",this.flipIcon=Hs(this,this.flipIconInRtl)}get name(){return this.getAttribute("name")??""}set name(e){this.setAttribute("name",e)}get form(){return this[K].form}get labels(){return this[K].labels}willUpdate(){this.href&&(this.disabled=!1)}render(){const e=this.href?ae`div`:ae`button`,{ariaLabel:t,ariaHasPopup:i,ariaExpanded:r}=this,s=t&&this.ariaLabelSelected,l=this.toggle?this.selected:u;let h=u;return this.href||(h=s&&this.selected?this.ariaLabelSelected:t),fi`<${e}
730
730
  class="icon-button ${L(this.getRenderClasses())}"
731
731
  id="button"
732
732
  aria-label="${h||u}"
@@ -901,26 +901,26 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
901
901
  * @license
902
902
  * Copyright 2018 Google LLC
903
903
  * SPDX-License-Identifier: BSD-3-Clause
904
- */const Ys="important",dd=" !"+Ys,yt=Ea(class extends Ta{constructor(a){var e;if(super(a),a.type!==et.ATTRIBUTE||a.name!=="style"||((e=a.strings)==null?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(a){return Object.keys(a).reduce((e,t)=>{const i=a[t];return i==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(a,[e]){const{style:t}=a.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(const i of this.ft)e[i]==null&&(this.ft.delete(i),i.includes("-")?t.removeProperty(i):t[i]=null);for(const i in e){const r=e[i];if(r!=null){this.ft.add(i);const s=typeof r=="string"&&r.endsWith(dd);i.includes("-")||s?t.setProperty(i,s?r.slice(0,-11):r,s?Ys:""):t[i]=r}}return ue}});/**
904
+ */const Ys="important",dd=" !"+Ys,_t=Ea(class extends Ta{constructor(a){var e;if(super(a),a.type!==tt.ATTRIBUTE||a.name!=="style"||((e=a.strings)==null?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(a){return Object.keys(a).reduce((e,t)=>{const i=a[t];return i==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(a,[e]){const{style:t}=a.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(const i of this.ft)e[i]==null&&(this.ft.delete(i),i.includes("-")?t.removeProperty(i):t[i]=null);for(const i in e){const r=e[i];if(r!=null){this.ft.add(i);const s=typeof r=="string"&&r.endsWith(dd);i.includes("-")||s?t.setProperty(i,s?r.slice(0,-11):r,s?Ys:""):t[i]=r}}return ve}});/**
905
905
  * @license
906
906
  * Copyright 2023 Google LLC
907
907
  * SPDX-License-Identifier: Apache-2.0
908
- */function hd(a,e){return new CustomEvent("close-menu",{bubbles:!0,composed:!0,detail:{initiator:a,reason:e,itemPath:[a]}})}const Xs=hd;function pd(){return new Event("deactivate-typeahead",{bubbles:!0,composed:!0})}function Qa(){return new Event("activate-typeahead",{bubbles:!0,composed:!0})}const rt={RIGHT:"ArrowRight",LEFT:"ArrowLeft"},Ut={SPACE:"Space",ENTER:"Enter"},eo={CLICK_SELECTION:"click-selection",KEYDOWN:"keydown"},to={ESCAPE:"Escape",SPACE:Ut.SPACE,ENTER:Ut.ENTER};function Zs(a){return Object.values(to).some(e=>e===a)}function ud(a){return Object.values(Ut).some(e=>e===a)}function io(a,e){const t=new Event("md-contains",{bubbles:!0,composed:!0});let i=[];const r=l=>{i=l.composedPath()};return e.addEventListener("md-contains",r),a.dispatchEvent(t),e.removeEventListener("md-contains",r),i.length>0}const Se={NONE:"none",LIST_ROOT:"list-root",FIRST_ITEM:"first-item",LAST_ITEM:"last-item"};/**
908
+ */function hd(a,e){return new CustomEvent("close-menu",{bubbles:!0,composed:!0,detail:{initiator:a,reason:e,itemPath:[a]}})}const Xs=hd;function pd(){return new Event("deactivate-typeahead",{bubbles:!0,composed:!0})}function Qa(){return new Event("activate-typeahead",{bubbles:!0,composed:!0})}const at={RIGHT:"ArrowRight",LEFT:"ArrowLeft"},Ut={SPACE:"Space",ENTER:"Enter"},eo={CLICK_SELECTION:"click-selection",KEYDOWN:"keydown"},to={ESCAPE:"Escape",SPACE:Ut.SPACE,ENTER:Ut.ENTER};function Zs(a){return Object.values(to).some(e=>e===a)}function ud(a){return Object.values(Ut).some(e=>e===a)}function io(a,e){const t=new Event("md-contains",{bubbles:!0,composed:!0});let i=[];const r=l=>{i=l.composedPath()};return e.addEventListener("md-contains",r),a.dispatchEvent(t),e.removeEventListener("md-contains",r),i.length>0}const ke={NONE:"none",LIST_ROOT:"list-root",FIRST_ITEM:"first-item",LAST_ITEM:"last-item"};/**
909
909
  * @license
910
910
  * Copyright 2023 Google LLC
911
911
  * SPDX-License-Identifier: Apache-2.0
912
- */const _r={END_START:"end-start",START_START:"start-start",START_END:"start-end"};class vd{constructor(e,t){this.host=e,this.getProperties=t,this.surfaceStylesInternal={display:"none"},this.lastValues={isOpen:!1},this.host.addController(this)}get surfaceStyles(){return this.surfaceStylesInternal}async position(){const{surfaceEl:e,anchorEl:t,anchorCorner:i,surfaceCorner:r,positioning:s,xOffset:l,yOffset:h,repositionStrategy:p}=this.getProperties(),v=i.toLowerCase().trim(),f=r.toLowerCase().trim();if(!e||!t)return;const b=window.innerWidth,_=window.innerHeight,x=document.createElement("div");x.style.opacity="0",x.style.position="fixed",x.style.display="block",x.style.inset="0",document.body.appendChild(x);const S=x.getBoundingClientRect();x.remove();const C=window.innerHeight-S.bottom,T=window.innerWidth-S.right;this.surfaceStylesInternal={display:"block",opacity:"0"},this.host.requestUpdate(),await this.host.updateComplete,e.popover&&e.isConnected&&e.showPopover();const A=e.getSurfacePositionClientRect?e.getSurfacePositionClientRect():e.getBoundingClientRect(),z=t.getSurfacePositionClientRect?t.getSurfacePositionClientRect():t.getBoundingClientRect(),[ee,q]=f.split("-"),[H,Xe]=v.split("-"),Ze=getComputedStyle(e).direction==="ltr";let{blockInset:_e,blockOutOfBoundsCorrection:he,surfaceBlockProperty:Mt}=this.calculateBlock({surfaceRect:A,anchorRect:z,anchorBlock:H,surfaceBlock:ee,yOffset:h,positioning:s,windowInnerHeight:_,blockScrollbarHeight:C});if(he){const Wi=ee==="start"?"end":"start",ji=H==="start"?"end":"start",Ae=this.calculateBlock({surfaceRect:A,anchorRect:z,anchorBlock:ji,surfaceBlock:Wi,yOffset:h,positioning:s,windowInnerHeight:_,blockScrollbarHeight:C});he>Ae.blockOutOfBoundsCorrection&&(_e=Ae.blockInset,he=Ae.blockOutOfBoundsCorrection,Mt=Ae.surfaceBlockProperty)}let{inlineInset:De,inlineOutOfBoundsCorrection:dt,surfaceInlineProperty:ua}=this.calculateInline({surfaceRect:A,anchorRect:z,anchorInline:Xe,surfaceInline:q,xOffset:l,positioning:s,isLTR:Ze,windowInnerWidth:b,inlineScrollbarWidth:T});if(dt){const Wi=q==="start"?"end":"start",ji=Xe==="start"?"end":"start",Ae=this.calculateInline({surfaceRect:A,anchorRect:z,anchorInline:ji,surfaceInline:Wi,xOffset:l,positioning:s,isLTR:Ze,windowInnerWidth:b,inlineScrollbarWidth:T});Math.abs(dt)>Math.abs(Ae.inlineOutOfBoundsCorrection)&&(De=Ae.inlineInset,dt=Ae.inlineOutOfBoundsCorrection,ua=Ae.surfaceInlineProperty)}p==="move"&&(_e=_e-he,De=De-dt),this.surfaceStylesInternal={display:"block",opacity:"1",[Mt]:`${_e}px`,[ua]:`${De}px`},p==="resize"&&(he&&(this.surfaceStylesInternal.height=`${A.height-he}px`),dt&&(this.surfaceStylesInternal.width=`${A.width-dt}px`)),this.host.requestUpdate()}calculateBlock(e){const{surfaceRect:t,anchorRect:i,anchorBlock:r,surfaceBlock:s,yOffset:l,positioning:h,windowInnerHeight:p,blockScrollbarHeight:v}=e,f=h==="fixed"||h==="document"?1:0,b=h==="document"?1:0,_=s==="start"?1:0,x=s==="end"?1:0,C=(r!==s?1:0)*i.height+l,T=_*i.top+x*(p-i.bottom-v),A=_*window.scrollY-x*window.scrollY,z=Math.abs(Math.min(0,p-T-C-t.height));return{blockInset:f*T+b*A+C,blockOutOfBoundsCorrection:z,surfaceBlockProperty:s==="start"?"inset-block-start":"inset-block-end"}}calculateInline(e){const{isLTR:t,surfaceInline:i,anchorInline:r,anchorRect:s,surfaceRect:l,xOffset:h,positioning:p,windowInnerWidth:v,inlineScrollbarWidth:f}=e,b=p==="fixed"||p==="document"?1:0,_=p==="document"?1:0,x=t?1:0,S=t?0:1,C=i==="start"?1:0,T=i==="end"?1:0,z=(r!==i?1:0)*s.width+h,ee=C*s.left+T*(v-s.right-f),q=C*(v-s.right-f)+T*s.left,H=x*ee+S*q,Xe=C*window.scrollX-T*window.scrollX,Ze=T*window.scrollX-C*window.scrollX,_e=x*Xe+S*Ze,he=Math.abs(Math.min(0,v-H-z-l.width)),Mt=b*H+z+_*_e;let De=i==="start"?"inset-inline-start":"inset-inline-end";return(p==="document"||p==="fixed")&&(i==="start"&&t||i==="end"&&!t?De="left":De="right"),{inlineInset:Mt,inlineOutOfBoundsCorrection:he,surfaceInlineProperty:De}}hostUpdate(){this.onUpdate()}hostUpdated(){this.onUpdate()}async onUpdate(){const e=this.getProperties();let t=!1;for(const[l,h]of Object.entries(e))if(t=t||h!==this.lastValues[l],t)break;const i=this.lastValues.isOpen!==e.isOpen,r=!!e.anchorEl,s=!!e.surfaceEl;t&&r&&s&&(this.lastValues.isOpen=e.isOpen,e.isOpen?(this.lastValues=e,await this.position(),e.onOpen()):i&&(await e.beforeClose(),this.close(),e.onClose()))}close(){this.surfaceStylesInternal={display:"none"},this.host.requestUpdate();const e=this.getProperties().surfaceEl;e!=null&&e.popover&&(e!=null&&e.isConnected)&&e.hidePopover()}}/**
912
+ */const _r={END_START:"end-start",START_START:"start-start",START_END:"start-end"};class vd{constructor(e,t){this.host=e,this.getProperties=t,this.surfaceStylesInternal={display:"none"},this.lastValues={isOpen:!1},this.host.addController(this)}get surfaceStyles(){return this.surfaceStylesInternal}async position(){const{surfaceEl:e,anchorEl:t,anchorCorner:i,surfaceCorner:r,positioning:s,xOffset:l,yOffset:h,repositionStrategy:p}=this.getProperties(),v=i.toLowerCase().trim(),f=r.toLowerCase().trim();if(!e||!t)return;const b=window.innerWidth,_=window.innerHeight,x=document.createElement("div");x.style.opacity="0",x.style.position="fixed",x.style.display="block",x.style.inset="0",document.body.appendChild(x);const S=x.getBoundingClientRect();x.remove();const C=window.innerHeight-S.bottom,T=window.innerWidth-S.right;this.surfaceStylesInternal={display:"block",opacity:"0"},this.host.requestUpdate(),await this.host.updateComplete,e.popover&&e.isConnected&&e.showPopover();const A=e.getSurfacePositionClientRect?e.getSurfacePositionClientRect():e.getBoundingClientRect(),z=t.getSurfacePositionClientRect?t.getSurfacePositionClientRect():t.getBoundingClientRect(),[ee,q]=f.split("-"),[H,Ze]=v.split("-"),Je=getComputedStyle(e).direction==="ltr";let{blockInset:xe,blockOutOfBoundsCorrection:pe,surfaceBlockProperty:Mt}=this.calculateBlock({surfaceRect:A,anchorRect:z,anchorBlock:H,surfaceBlock:ee,yOffset:h,positioning:s,windowInnerHeight:_,blockScrollbarHeight:C});if(pe){const Wi=ee==="start"?"end":"start",ji=H==="start"?"end":"start",Ae=this.calculateBlock({surfaceRect:A,anchorRect:z,anchorBlock:ji,surfaceBlock:Wi,yOffset:h,positioning:s,windowInnerHeight:_,blockScrollbarHeight:C});pe>Ae.blockOutOfBoundsCorrection&&(xe=Ae.blockInset,pe=Ae.blockOutOfBoundsCorrection,Mt=Ae.surfaceBlockProperty)}let{inlineInset:De,inlineOutOfBoundsCorrection:ht,surfaceInlineProperty:ua}=this.calculateInline({surfaceRect:A,anchorRect:z,anchorInline:Ze,surfaceInline:q,xOffset:l,positioning:s,isLTR:Je,windowInnerWidth:b,inlineScrollbarWidth:T});if(ht){const Wi=q==="start"?"end":"start",ji=Ze==="start"?"end":"start",Ae=this.calculateInline({surfaceRect:A,anchorRect:z,anchorInline:ji,surfaceInline:Wi,xOffset:l,positioning:s,isLTR:Je,windowInnerWidth:b,inlineScrollbarWidth:T});Math.abs(ht)>Math.abs(Ae.inlineOutOfBoundsCorrection)&&(De=Ae.inlineInset,ht=Ae.inlineOutOfBoundsCorrection,ua=Ae.surfaceInlineProperty)}p==="move"&&(xe=xe-pe,De=De-ht),this.surfaceStylesInternal={display:"block",opacity:"1",[Mt]:`${xe}px`,[ua]:`${De}px`},p==="resize"&&(pe&&(this.surfaceStylesInternal.height=`${A.height-pe}px`),ht&&(this.surfaceStylesInternal.width=`${A.width-ht}px`)),this.host.requestUpdate()}calculateBlock(e){const{surfaceRect:t,anchorRect:i,anchorBlock:r,surfaceBlock:s,yOffset:l,positioning:h,windowInnerHeight:p,blockScrollbarHeight:v}=e,f=h==="fixed"||h==="document"?1:0,b=h==="document"?1:0,_=s==="start"?1:0,x=s==="end"?1:0,C=(r!==s?1:0)*i.height+l,T=_*i.top+x*(p-i.bottom-v),A=_*window.scrollY-x*window.scrollY,z=Math.abs(Math.min(0,p-T-C-t.height));return{blockInset:f*T+b*A+C,blockOutOfBoundsCorrection:z,surfaceBlockProperty:s==="start"?"inset-block-start":"inset-block-end"}}calculateInline(e){const{isLTR:t,surfaceInline:i,anchorInline:r,anchorRect:s,surfaceRect:l,xOffset:h,positioning:p,windowInnerWidth:v,inlineScrollbarWidth:f}=e,b=p==="fixed"||p==="document"?1:0,_=p==="document"?1:0,x=t?1:0,S=t?0:1,C=i==="start"?1:0,T=i==="end"?1:0,z=(r!==i?1:0)*s.width+h,ee=C*s.left+T*(v-s.right-f),q=C*(v-s.right-f)+T*s.left,H=x*ee+S*q,Ze=C*window.scrollX-T*window.scrollX,Je=T*window.scrollX-C*window.scrollX,xe=x*Ze+S*Je,pe=Math.abs(Math.min(0,v-H-z-l.width)),Mt=b*H+z+_*xe;let De=i==="start"?"inset-inline-start":"inset-inline-end";return(p==="document"||p==="fixed")&&(i==="start"&&t||i==="end"&&!t?De="left":De="right"),{inlineInset:Mt,inlineOutOfBoundsCorrection:pe,surfaceInlineProperty:De}}hostUpdate(){this.onUpdate()}hostUpdated(){this.onUpdate()}async onUpdate(){const e=this.getProperties();let t=!1;for(const[l,h]of Object.entries(e))if(t=t||h!==this.lastValues[l],t)break;const i=this.lastValues.isOpen!==e.isOpen,r=!!e.anchorEl,s=!!e.surfaceEl;t&&r&&s&&(this.lastValues.isOpen=e.isOpen,e.isOpen?(this.lastValues=e,await this.position(),e.onOpen()):i&&(await e.beforeClose(),this.close(),e.onClose()))}close(){this.surfaceStylesInternal={display:"none"},this.host.requestUpdate();const e=this.getProperties().surfaceEl;e!=null&&e.popover&&(e!=null&&e.isConnected)&&e.hidePopover()}}/**
913
913
  * @license
914
914
  * Copyright 2023 Google LLC
915
915
  * SPDX-License-Identifier: Apache-2.0
916
- */const ve={INDEX:0,ITEM:1,TEXT:2};class bd{constructor(e){this.getProperties=e,this.typeaheadRecords=[],this.typaheadBuffer="",this.cancelTypeaheadTimeout=0,this.isTypingAhead=!1,this.lastActiveRecord=null,this.onKeydown=t=>{this.isTypingAhead?this.typeahead(t):this.beginTypeahead(t)},this.endTypeahead=()=>{this.isTypingAhead=!1,this.typaheadBuffer="",this.typeaheadRecords=[]}}get items(){return this.getProperties().getItems()}get active(){return this.getProperties().active}beginTypeahead(e){this.active&&(e.code==="Space"||e.code==="Enter"||e.code.startsWith("Arrow")||e.code==="Escape"||(this.isTypingAhead=!0,this.typeaheadRecords=this.items.map((t,i)=>[i,t,t.typeaheadText.trim().toLowerCase()]),this.lastActiveRecord=this.typeaheadRecords.find(t=>t[ve.ITEM].tabIndex===0)??null,this.lastActiveRecord&&(this.lastActiveRecord[ve.ITEM].tabIndex=-1),this.typeahead(e)))}typeahead(e){if(e.defaultPrevented)return;if(clearTimeout(this.cancelTypeaheadTimeout),e.code==="Enter"||e.code.startsWith("Arrow")||e.code==="Escape"){this.endTypeahead(),this.lastActiveRecord&&(this.lastActiveRecord[ve.ITEM].tabIndex=-1);return}e.code==="Space"&&e.preventDefault(),this.cancelTypeaheadTimeout=setTimeout(this.endTypeahead,this.getProperties().typeaheadBufferTime),this.typaheadBuffer+=e.key.toLowerCase();const t=this.lastActiveRecord?this.lastActiveRecord[ve.INDEX]:-1,i=this.typeaheadRecords.length,r=p=>(p[ve.INDEX]+i-t)%i,s=this.typeaheadRecords.filter(p=>!p[ve.ITEM].disabled&&p[ve.TEXT].startsWith(this.typaheadBuffer)).sort((p,v)=>r(p)-r(v));if(s.length===0){clearTimeout(this.cancelTypeaheadTimeout),this.lastActiveRecord&&(this.lastActiveRecord[ve.ITEM].tabIndex=-1),this.endTypeahead();return}const l=this.typaheadBuffer.length===1;let h;this.lastActiveRecord===s[0]&&l?h=s[1]??s[0]:h=s[0],this.lastActiveRecord&&(this.lastActiveRecord[ve.ITEM].tabIndex=-1),this.lastActiveRecord=h,h[ve.ITEM].tabIndex=0,h[ve.ITEM].focus()}}/**
916
+ */const be={INDEX:0,ITEM:1,TEXT:2};class bd{constructor(e){this.getProperties=e,this.typeaheadRecords=[],this.typaheadBuffer="",this.cancelTypeaheadTimeout=0,this.isTypingAhead=!1,this.lastActiveRecord=null,this.onKeydown=t=>{this.isTypingAhead?this.typeahead(t):this.beginTypeahead(t)},this.endTypeahead=()=>{this.isTypingAhead=!1,this.typaheadBuffer="",this.typeaheadRecords=[]}}get items(){return this.getProperties().getItems()}get active(){return this.getProperties().active}beginTypeahead(e){this.active&&(e.code==="Space"||e.code==="Enter"||e.code.startsWith("Arrow")||e.code==="Escape"||(this.isTypingAhead=!0,this.typeaheadRecords=this.items.map((t,i)=>[i,t,t.typeaheadText.trim().toLowerCase()]),this.lastActiveRecord=this.typeaheadRecords.find(t=>t[be.ITEM].tabIndex===0)??null,this.lastActiveRecord&&(this.lastActiveRecord[be.ITEM].tabIndex=-1),this.typeahead(e)))}typeahead(e){if(e.defaultPrevented)return;if(clearTimeout(this.cancelTypeaheadTimeout),e.code==="Enter"||e.code.startsWith("Arrow")||e.code==="Escape"){this.endTypeahead(),this.lastActiveRecord&&(this.lastActiveRecord[be.ITEM].tabIndex=-1);return}e.code==="Space"&&e.preventDefault(),this.cancelTypeaheadTimeout=setTimeout(this.endTypeahead,this.getProperties().typeaheadBufferTime),this.typaheadBuffer+=e.key.toLowerCase();const t=this.lastActiveRecord?this.lastActiveRecord[be.INDEX]:-1,i=this.typeaheadRecords.length,r=p=>(p[be.INDEX]+i-t)%i,s=this.typeaheadRecords.filter(p=>!p[be.ITEM].disabled&&p[be.TEXT].startsWith(this.typaheadBuffer)).sort((p,v)=>r(p)-r(v));if(s.length===0){clearTimeout(this.cancelTypeaheadTimeout),this.lastActiveRecord&&(this.lastActiveRecord[be.ITEM].tabIndex=-1),this.endTypeahead();return}const l=this.typaheadBuffer.length===1;let h;this.lastActiveRecord===s[0]&&l?h=s[1]??s[0]:h=s[0],this.lastActiveRecord&&(this.lastActiveRecord[be.ITEM].tabIndex=-1),this.lastActiveRecord=h,h[be.ITEM].tabIndex=0,h[be.ITEM].focus()}}/**
917
917
  * @license
918
918
  * Copyright 2023 Google LLC
919
919
  * SPDX-License-Identifier: Apache-2.0
920
- */const Js=200,Qs=new Set([G.ArrowDown,G.ArrowUp,G.Home,G.End]),md=new Set([G.ArrowLeft,G.ArrowRight,...Qs]);function fd(a=document){var t;let e=a.activeElement;for(;e&&((t=e==null?void 0:e.shadowRoot)!=null&&t.activeElement);)e=e.shadowRoot.activeElement;return e}class N extends y{get openDirection(){return this.menuCorner.split("-")[0]==="start"?"DOWN":"UP"}get anchorElement(){return this.anchor?this.getRootNode().querySelector(`#${this.anchor}`):this.currentAnchorElement}set anchorElement(e){this.currentAnchorElement=e,this.requestUpdate("anchorElement")}constructor(){super(),this.anchor="",this.positioning="absolute",this.quick=!1,this.hasOverflow=!1,this.open=!1,this.xOffset=0,this.yOffset=0,this.typeaheadDelay=Js,this.anchorCorner=_r.END_START,this.menuCorner=_r.START_START,this.stayOpenOnOutsideClick=!1,this.stayOpenOnFocusout=!1,this.skipRestoreFocus=!1,this.defaultFocus=Se.FIRST_ITEM,this.noNavigationWrap=!1,this.typeaheadActive=!0,this.isSubmenu=!1,this.pointerPath=[],this.isRepositioning=!1,this.openCloseAnimationSignal=Yl(),this.listController=new Ks({isItem:e=>e.hasAttribute("md-menu-item"),getPossibleItems:()=>this.slotItems,isRtl:()=>getComputedStyle(this).direction==="rtl",deactivateItem:e=>{e.selected=!1,e.tabIndex=-1},activateItem:e=>{e.selected=!0,e.tabIndex=0},isNavigableKey:e=>{if(!this.isSubmenu)return md.has(e);const i=getComputedStyle(this).direction==="rtl"?G.ArrowLeft:G.ArrowRight;return e===i?!0:Qs.has(e)},wrapNavigation:()=>!this.noNavigationWrap}),this.lastFocusedElement=null,this.typeaheadController=new bd(()=>({getItems:()=>this.items,typeaheadBufferTime:this.typeaheadDelay,active:this.typeaheadActive})),this.currentAnchorElement=null,this.internals=this.attachInternals(),this.menuPositionController=new vd(this,()=>({anchorCorner:this.anchorCorner,surfaceCorner:this.menuCorner,surfaceEl:this.surfaceEl,anchorEl:this.anchorElement,positioning:this.positioning==="popover"?"document":this.positioning,isOpen:this.open,xOffset:this.xOffset,yOffset:this.yOffset,onOpen:this.onOpened,beforeClose:this.beforeClose,onClose:this.onClosed,repositionStrategy:this.hasOverflow&&this.positioning!=="popover"?"move":"resize"})),this.onWindowResize=()=>{this.isRepositioning||this.positioning!=="document"&&this.positioning!=="fixed"&&this.positioning!=="popover"||(this.isRepositioning=!0,this.reposition(),this.isRepositioning=!1)},this.handleFocusout=async e=>{const t=this.anchorElement;if(this.stayOpenOnFocusout||!this.open||this.pointerPath.includes(t))return;if(e.relatedTarget){if(io(e.relatedTarget,this)||this.pointerPath.length!==0&&io(e.relatedTarget,t))return}else if(this.pointerPath.includes(this))return;const i=this.skipRestoreFocus;this.skipRestoreFocus=!0,this.close(),await this.updateComplete,this.skipRestoreFocus=i},this.onOpened=async()=>{this.lastFocusedElement=fd();const e=this.items,t=qt(e);t&&this.defaultFocus!==Se.NONE&&(t.item.tabIndex=-1);let i=!this.quick;switch(this.quick?this.dispatchEvent(new Event("opening")):i=!!await this.animateOpen(),this.defaultFocus){case Se.FIRST_ITEM:const r=fr(e);r&&(r.tabIndex=0,r.focus(),await r.updateComplete);break;case Se.LAST_ITEM:const s=qs(e);s&&(s.tabIndex=0,s.focus(),await s.updateComplete);break;case Se.LIST_ROOT:this.focus();break;default:case Se.NONE:break}i||this.dispatchEvent(new Event("opened"))},this.beforeClose=async()=>{var e,t;this.open=!1,this.skipRestoreFocus||(t=(e=this.lastFocusedElement)==null?void 0:e.focus)==null||t.call(e),this.quick||await this.animateClose()},this.onClosed=()=>{this.quick&&(this.dispatchEvent(new Event("closing")),this.dispatchEvent(new Event("closed")))},this.onWindowPointerdown=e=>{this.pointerPath=e.composedPath()},this.onDocumentClick=e=>{if(!this.open)return;const t=e.composedPath();!this.stayOpenOnOutsideClick&&!t.includes(this)&&!t.includes(this.anchorElement)&&(this.open=!1)},this.internals.role="menu",this.addEventListener("keydown",this.handleKeydown),this.addEventListener("keydown",this.captureKeydown,{capture:!0}),this.addEventListener("focusout",this.handleFocusout)}get items(){return this.listController.items}willUpdate(e){if(e.has("open")){if(this.open){this.removeAttribute("aria-hidden");return}this.setAttribute("aria-hidden","true")}}update(e){e.has("open")&&(this.open?this.setUpGlobalEventListeners():this.cleanUpGlobalEventListeners()),e.has("positioning")&&this.positioning==="popover"&&!this.showPopover&&(this.positioning="fixed"),super.update(e)}connectedCallback(){super.connectedCallback(),this.open&&this.setUpGlobalEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.cleanUpGlobalEventListeners()}getBoundingClientRect(){return this.surfaceEl?this.surfaceEl.getBoundingClientRect():super.getBoundingClientRect()}getClientRects(){return this.surfaceEl?this.surfaceEl.getClientRects():super.getClientRects()}render(){return this.renderSurface()}renderSurface(){return c`
920
+ */const Js=200,Qs=new Set([G.ArrowDown,G.ArrowUp,G.Home,G.End]),md=new Set([G.ArrowLeft,G.ArrowRight,...Qs]);function fd(a=document){var t;let e=a.activeElement;for(;e&&((t=e==null?void 0:e.shadowRoot)!=null&&t.activeElement);)e=e.shadowRoot.activeElement;return e}class N extends y{get openDirection(){return this.menuCorner.split("-")[0]==="start"?"DOWN":"UP"}get anchorElement(){return this.anchor?this.getRootNode().querySelector(`#${this.anchor}`):this.currentAnchorElement}set anchorElement(e){this.currentAnchorElement=e,this.requestUpdate("anchorElement")}constructor(){super(),this.anchor="",this.positioning="absolute",this.quick=!1,this.hasOverflow=!1,this.open=!1,this.xOffset=0,this.yOffset=0,this.typeaheadDelay=Js,this.anchorCorner=_r.END_START,this.menuCorner=_r.START_START,this.stayOpenOnOutsideClick=!1,this.stayOpenOnFocusout=!1,this.skipRestoreFocus=!1,this.defaultFocus=ke.FIRST_ITEM,this.noNavigationWrap=!1,this.typeaheadActive=!0,this.isSubmenu=!1,this.pointerPath=[],this.isRepositioning=!1,this.openCloseAnimationSignal=Yl(),this.listController=new Ks({isItem:e=>e.hasAttribute("md-menu-item"),getPossibleItems:()=>this.slotItems,isRtl:()=>getComputedStyle(this).direction==="rtl",deactivateItem:e=>{e.selected=!1,e.tabIndex=-1},activateItem:e=>{e.selected=!0,e.tabIndex=0},isNavigableKey:e=>{if(!this.isSubmenu)return md.has(e);const i=getComputedStyle(this).direction==="rtl"?G.ArrowLeft:G.ArrowRight;return e===i?!0:Qs.has(e)},wrapNavigation:()=>!this.noNavigationWrap}),this.lastFocusedElement=null,this.typeaheadController=new bd(()=>({getItems:()=>this.items,typeaheadBufferTime:this.typeaheadDelay,active:this.typeaheadActive})),this.currentAnchorElement=null,this.internals=this.attachInternals(),this.menuPositionController=new vd(this,()=>({anchorCorner:this.anchorCorner,surfaceCorner:this.menuCorner,surfaceEl:this.surfaceEl,anchorEl:this.anchorElement,positioning:this.positioning==="popover"?"document":this.positioning,isOpen:this.open,xOffset:this.xOffset,yOffset:this.yOffset,onOpen:this.onOpened,beforeClose:this.beforeClose,onClose:this.onClosed,repositionStrategy:this.hasOverflow&&this.positioning!=="popover"?"move":"resize"})),this.onWindowResize=()=>{this.isRepositioning||this.positioning!=="document"&&this.positioning!=="fixed"&&this.positioning!=="popover"||(this.isRepositioning=!0,this.reposition(),this.isRepositioning=!1)},this.handleFocusout=async e=>{const t=this.anchorElement;if(this.stayOpenOnFocusout||!this.open||this.pointerPath.includes(t))return;if(e.relatedTarget){if(io(e.relatedTarget,this)||this.pointerPath.length!==0&&io(e.relatedTarget,t))return}else if(this.pointerPath.includes(this))return;const i=this.skipRestoreFocus;this.skipRestoreFocus=!0,this.close(),await this.updateComplete,this.skipRestoreFocus=i},this.onOpened=async()=>{this.lastFocusedElement=fd();const e=this.items,t=qt(e);t&&this.defaultFocus!==ke.NONE&&(t.item.tabIndex=-1);let i=!this.quick;switch(this.quick?this.dispatchEvent(new Event("opening")):i=!!await this.animateOpen(),this.defaultFocus){case ke.FIRST_ITEM:const r=fr(e);r&&(r.tabIndex=0,r.focus(),await r.updateComplete);break;case ke.LAST_ITEM:const s=qs(e);s&&(s.tabIndex=0,s.focus(),await s.updateComplete);break;case ke.LIST_ROOT:this.focus();break;default:case ke.NONE:break}i||this.dispatchEvent(new Event("opened"))},this.beforeClose=async()=>{var e,t;this.open=!1,this.skipRestoreFocus||(t=(e=this.lastFocusedElement)==null?void 0:e.focus)==null||t.call(e),this.quick||await this.animateClose()},this.onClosed=()=>{this.quick&&(this.dispatchEvent(new Event("closing")),this.dispatchEvent(new Event("closed")))},this.onWindowPointerdown=e=>{this.pointerPath=e.composedPath()},this.onDocumentClick=e=>{if(!this.open)return;const t=e.composedPath();!this.stayOpenOnOutsideClick&&!t.includes(this)&&!t.includes(this.anchorElement)&&(this.open=!1)},this.internals.role="menu",this.addEventListener("keydown",this.handleKeydown),this.addEventListener("keydown",this.captureKeydown,{capture:!0}),this.addEventListener("focusout",this.handleFocusout)}get items(){return this.listController.items}willUpdate(e){if(e.has("open")){if(this.open){this.removeAttribute("aria-hidden");return}this.setAttribute("aria-hidden","true")}}update(e){e.has("open")&&(this.open?this.setUpGlobalEventListeners():this.cleanUpGlobalEventListeners()),e.has("positioning")&&this.positioning==="popover"&&!this.showPopover&&(this.positioning="fixed"),super.update(e)}connectedCallback(){super.connectedCallback(),this.open&&this.setUpGlobalEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.cleanUpGlobalEventListeners()}getBoundingClientRect(){return this.surfaceEl?this.surfaceEl.getBoundingClientRect():super.getBoundingClientRect()}getClientRects(){return this.surfaceEl?this.surfaceEl.getClientRects():super.getClientRects()}render(){return this.renderSurface()}renderSurface(){return c`
921
921
  <div
922
922
  class="menu ${L(this.getSurfaceClasses())}"
923
- style=${yt(this.menuPositionController.surfaceStyles)}
923
+ style=${_t(this.menuPositionController.surfaceStyles)}
924
924
  popover=${this.positioning==="popover"?"manual":u}>
925
925
  ${this.renderElevation()}
926
926
  <div class="items">
@@ -935,7 +935,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
935
935
  @activate-typeahead=${this.handleActivateTypeahead}
936
936
  @stay-open-on-focusout=${this.handleStayOpenOnFocusout}
937
937
  @close-on-focusout=${this.handleCloseOnFocusout}
938
- @slotchange=${this.listController.onSlotchange}></slot>`}renderElevation(){return c`<md-elevation part="elevation"></md-elevation>`}getSurfaceClasses(){return{open:this.open,fixed:this.positioning==="fixed","has-overflow":this.hasOverflow}}captureKeydown(e){e.target===this&&!e.defaultPrevented&&Zs(e.code)&&(e.preventDefault(),this.close()),this.typeaheadController.onKeydown(e)}async animateOpen(){const e=this.surfaceEl,t=this.slotEl;if(!e||!t)return!0;const i=this.openDirection;this.dispatchEvent(new Event("opening")),e.classList.toggle("animating",!0);const r=this.openCloseAnimationSignal.start(),s=e.offsetHeight,l=i==="UP",h=this.items,p=500,v=50,f=250,b=(p-f)/h.length,_=e.animate([{height:"0px"},{height:`${s}px`}],{duration:p,easing:xe.EMPHASIZED}),x=t.animate([{transform:l?`translateY(-${s}px)`:""},{transform:""}],{duration:p,easing:xe.EMPHASIZED}),S=e.animate([{opacity:0},{opacity:1}],v),C=[];for(let z=0;z<h.length;z++){const ee=l?h.length-1-z:z,q=h[ee],H=q.animate([{opacity:0},{opacity:1}],{duration:f,delay:b*z});q.classList.toggle("md-menu-hidden",!0),H.addEventListener("finish",()=>{q.classList.toggle("md-menu-hidden",!1)}),C.push([q,H])}let T=z=>{};const A=new Promise(z=>{T=z});return r.addEventListener("abort",()=>{_.cancel(),x.cancel(),S.cancel(),C.forEach(([z,ee])=>{z.classList.toggle("md-menu-hidden",!1),ee.cancel()}),T(!0)}),_.addEventListener("finish",()=>{e.classList.toggle("animating",!1),this.openCloseAnimationSignal.finish(),T(!1)}),await A}animateClose(){let e;const t=new Promise(H=>{e=H}),i=this.surfaceEl,r=this.slotEl;if(!i||!r)return e(!1),t;const l=this.openDirection==="UP";this.dispatchEvent(new Event("closing")),i.classList.toggle("animating",!0);const h=this.openCloseAnimationSignal.start(),p=i.offsetHeight,v=this.items,f=150,b=50,_=f-b,x=50,S=50,C=.35,T=(f-S-x)/v.length,A=i.animate([{height:`${p}px`},{height:`${p*C}px`}],{duration:f,easing:xe.EMPHASIZED_ACCELERATE}),z=r.animate([{transform:""},{transform:l?`translateY(-${p*(1-C)}px)`:""}],{duration:f,easing:xe.EMPHASIZED_ACCELERATE}),ee=i.animate([{opacity:1},{opacity:0}],{duration:b,delay:_}),q=[];for(let H=0;H<v.length;H++){const Xe=l?H:v.length-1-H,Ze=v[Xe],_e=Ze.animate([{opacity:1},{opacity:0}],{duration:x,delay:S+T*H});_e.addEventListener("finish",()=>{Ze.classList.toggle("md-menu-hidden",!0)}),q.push([Ze,_e])}return h.addEventListener("abort",()=>{A.cancel(),z.cancel(),ee.cancel(),q.forEach(([H,Xe])=>{Xe.cancel(),H.classList.toggle("md-menu-hidden",!1)}),e(!1)}),A.addEventListener("finish",()=>{i.classList.toggle("animating",!1),q.forEach(([H])=>{H.classList.toggle("md-menu-hidden",!1)}),this.openCloseAnimationSignal.finish(),this.dispatchEvent(new Event("closed")),e(!0)}),t}handleKeydown(e){this.pointerPath=[],this.listController.handleKeydown(e)}setUpGlobalEventListeners(){document.addEventListener("click",this.onDocumentClick,{capture:!0}),window.addEventListener("pointerdown",this.onWindowPointerdown),document.addEventListener("resize",this.onWindowResize,{passive:!0}),window.addEventListener("resize",this.onWindowResize,{passive:!0})}cleanUpGlobalEventListeners(){document.removeEventListener("click",this.onDocumentClick,{capture:!0}),window.removeEventListener("pointerdown",this.onWindowPointerdown),document.removeEventListener("resize",this.onWindowResize),window.removeEventListener("resize",this.onWindowResize)}onCloseMenu(){this.close()}onDeactivateItems(e){e.stopPropagation(),this.listController.onDeactivateItems()}onRequestActivation(e){e.stopPropagation(),this.listController.onRequestActivation(e)}handleDeactivateTypeahead(e){e.stopPropagation(),this.typeaheadActive=!1}handleActivateTypeahead(e){e.stopPropagation(),this.typeaheadActive=!0}handleStayOpenOnFocusout(e){e.stopPropagation(),this.stayOpenOnFocusout=!0}handleCloseOnFocusout(e){e.stopPropagation(),this.stayOpenOnFocusout=!1}close(){this.open=!1,this.slotItems.forEach(t=>{var i;(i=t.close)==null||i.call(t)})}show(){this.open=!0}activateNextItem(){return this.listController.activateNextItem()??null}activatePreviousItem(){return this.listController.activatePreviousItem()??null}reposition(){this.open&&this.menuPositionController.position()}}d([k(".menu")],N.prototype,"surfaceEl",void 0),d([k("slot")],N.prototype,"slotEl",void 0),d([n()],N.prototype,"anchor",void 0),d([n()],N.prototype,"positioning",void 0),d([n({type:Boolean})],N.prototype,"quick",void 0),d([n({type:Boolean,attribute:"has-overflow"})],N.prototype,"hasOverflow",void 0),d([n({type:Boolean,reflect:!0})],N.prototype,"open",void 0),d([n({type:Number,attribute:"x-offset"})],N.prototype,"xOffset",void 0),d([n({type:Number,attribute:"y-offset"})],N.prototype,"yOffset",void 0),d([n({type:Number,attribute:"typeahead-delay"})],N.prototype,"typeaheadDelay",void 0),d([n({attribute:"anchor-corner"})],N.prototype,"anchorCorner",void 0),d([n({attribute:"menu-corner"})],N.prototype,"menuCorner",void 0),d([n({type:Boolean,attribute:"stay-open-on-outside-click"})],N.prototype,"stayOpenOnOutsideClick",void 0),d([n({type:Boolean,attribute:"stay-open-on-focusout"})],N.prototype,"stayOpenOnFocusout",void 0),d([n({type:Boolean,attribute:"skip-restore-focus"})],N.prototype,"skipRestoreFocus",void 0),d([n({attribute:"default-focus"})],N.prototype,"defaultFocus",void 0),d([n({type:Boolean,attribute:"no-navigation-wrap"})],N.prototype,"noNavigationWrap",void 0),d([Y({flatten:!0})],N.prototype,"slotItems",void 0),d([w()],N.prototype,"typeaheadActive",void 0);/**
938
+ @slotchange=${this.listController.onSlotchange}></slot>`}renderElevation(){return c`<md-elevation part="elevation"></md-elevation>`}getSurfaceClasses(){return{open:this.open,fixed:this.positioning==="fixed","has-overflow":this.hasOverflow}}captureKeydown(e){e.target===this&&!e.defaultPrevented&&Zs(e.code)&&(e.preventDefault(),this.close()),this.typeaheadController.onKeydown(e)}async animateOpen(){const e=this.surfaceEl,t=this.slotEl;if(!e||!t)return!0;const i=this.openDirection;this.dispatchEvent(new Event("opening")),e.classList.toggle("animating",!0);const r=this.openCloseAnimationSignal.start(),s=e.offsetHeight,l=i==="UP",h=this.items,p=500,v=50,f=250,b=(p-f)/h.length,_=e.animate([{height:"0px"},{height:`${s}px`}],{duration:p,easing:we.EMPHASIZED}),x=t.animate([{transform:l?`translateY(-${s}px)`:""},{transform:""}],{duration:p,easing:we.EMPHASIZED}),S=e.animate([{opacity:0},{opacity:1}],v),C=[];for(let z=0;z<h.length;z++){const ee=l?h.length-1-z:z,q=h[ee],H=q.animate([{opacity:0},{opacity:1}],{duration:f,delay:b*z});q.classList.toggle("md-menu-hidden",!0),H.addEventListener("finish",()=>{q.classList.toggle("md-menu-hidden",!1)}),C.push([q,H])}let T=z=>{};const A=new Promise(z=>{T=z});return r.addEventListener("abort",()=>{_.cancel(),x.cancel(),S.cancel(),C.forEach(([z,ee])=>{z.classList.toggle("md-menu-hidden",!1),ee.cancel()}),T(!0)}),_.addEventListener("finish",()=>{e.classList.toggle("animating",!1),this.openCloseAnimationSignal.finish(),T(!1)}),await A}animateClose(){let e;const t=new Promise(H=>{e=H}),i=this.surfaceEl,r=this.slotEl;if(!i||!r)return e(!1),t;const l=this.openDirection==="UP";this.dispatchEvent(new Event("closing")),i.classList.toggle("animating",!0);const h=this.openCloseAnimationSignal.start(),p=i.offsetHeight,v=this.items,f=150,b=50,_=f-b,x=50,S=50,C=.35,T=(f-S-x)/v.length,A=i.animate([{height:`${p}px`},{height:`${p*C}px`}],{duration:f,easing:we.EMPHASIZED_ACCELERATE}),z=r.animate([{transform:""},{transform:l?`translateY(-${p*(1-C)}px)`:""}],{duration:f,easing:we.EMPHASIZED_ACCELERATE}),ee=i.animate([{opacity:1},{opacity:0}],{duration:b,delay:_}),q=[];for(let H=0;H<v.length;H++){const Ze=l?H:v.length-1-H,Je=v[Ze],xe=Je.animate([{opacity:1},{opacity:0}],{duration:x,delay:S+T*H});xe.addEventListener("finish",()=>{Je.classList.toggle("md-menu-hidden",!0)}),q.push([Je,xe])}return h.addEventListener("abort",()=>{A.cancel(),z.cancel(),ee.cancel(),q.forEach(([H,Ze])=>{Ze.cancel(),H.classList.toggle("md-menu-hidden",!1)}),e(!1)}),A.addEventListener("finish",()=>{i.classList.toggle("animating",!1),q.forEach(([H])=>{H.classList.toggle("md-menu-hidden",!1)}),this.openCloseAnimationSignal.finish(),this.dispatchEvent(new Event("closed")),e(!0)}),t}handleKeydown(e){this.pointerPath=[],this.listController.handleKeydown(e)}setUpGlobalEventListeners(){document.addEventListener("click",this.onDocumentClick,{capture:!0}),window.addEventListener("pointerdown",this.onWindowPointerdown),document.addEventListener("resize",this.onWindowResize,{passive:!0}),window.addEventListener("resize",this.onWindowResize,{passive:!0})}cleanUpGlobalEventListeners(){document.removeEventListener("click",this.onDocumentClick,{capture:!0}),window.removeEventListener("pointerdown",this.onWindowPointerdown),document.removeEventListener("resize",this.onWindowResize),window.removeEventListener("resize",this.onWindowResize)}onCloseMenu(){this.close()}onDeactivateItems(e){e.stopPropagation(),this.listController.onDeactivateItems()}onRequestActivation(e){e.stopPropagation(),this.listController.onRequestActivation(e)}handleDeactivateTypeahead(e){e.stopPropagation(),this.typeaheadActive=!1}handleActivateTypeahead(e){e.stopPropagation(),this.typeaheadActive=!0}handleStayOpenOnFocusout(e){e.stopPropagation(),this.stayOpenOnFocusout=!0}handleCloseOnFocusout(e){e.stopPropagation(),this.stayOpenOnFocusout=!1}close(){this.open=!1,this.slotItems.forEach(t=>{var i;(i=t.close)==null||i.call(t)})}show(){this.open=!0}activateNextItem(){return this.listController.activateNextItem()??null}activatePreviousItem(){return this.listController.activatePreviousItem()??null}reposition(){this.open&&this.menuPositionController.position()}}d([k(".menu")],N.prototype,"surfaceEl",void 0),d([k("slot")],N.prototype,"slotEl",void 0),d([n()],N.prototype,"anchor",void 0),d([n()],N.prototype,"positioning",void 0),d([n({type:Boolean})],N.prototype,"quick",void 0),d([n({type:Boolean,attribute:"has-overflow"})],N.prototype,"hasOverflow",void 0),d([n({type:Boolean,reflect:!0})],N.prototype,"open",void 0),d([n({type:Number,attribute:"x-offset"})],N.prototype,"xOffset",void 0),d([n({type:Number,attribute:"y-offset"})],N.prototype,"yOffset",void 0),d([n({type:Number,attribute:"typeahead-delay"})],N.prototype,"typeaheadDelay",void 0),d([n({attribute:"anchor-corner"})],N.prototype,"anchorCorner",void 0),d([n({attribute:"menu-corner"})],N.prototype,"menuCorner",void 0),d([n({type:Boolean,attribute:"stay-open-on-outside-click"})],N.prototype,"stayOpenOnOutsideClick",void 0),d([n({type:Boolean,attribute:"stay-open-on-focusout"})],N.prototype,"stayOpenOnFocusout",void 0),d([n({type:Boolean,attribute:"skip-restore-focus"})],N.prototype,"skipRestoreFocus",void 0),d([n({attribute:"default-focus"})],N.prototype,"defaultFocus",void 0),d([n({type:Boolean,attribute:"no-navigation-wrap"})],N.prototype,"noNavigationWrap",void 0),d([Y({flatten:!0})],N.prototype,"slotItems",void 0),d([w()],N.prototype,"typeaheadActive",void 0);/**
939
939
  * @license
940
940
  * Copyright 2024 Google LLC
941
941
  * SPDX-License-Identifier: Apache-2.0
@@ -1004,7 +1004,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
1004
1004
  * @license
1005
1005
  * Copyright 2023 Google LLC
1006
1006
  * SPDX-License-Identifier: Apache-2.0
1007
- */class at extends y{get item(){return this.items[0]??null}get menu(){return this.menus[0]??null}constructor(){super(),this.anchorCorner=_r.START_END,this.menuCorner=_r.START_START,this.hoverOpenDelay=400,this.hoverCloseDelay=400,this.isSubMenu=!0,this.previousOpenTimeout=0,this.previousCloseTimeout=0,this.onMouseenter=()=>{var e;clearTimeout(this.previousOpenTimeout),clearTimeout(this.previousCloseTimeout),!((e=this.menu)!=null&&e.open)&&(this.hoverOpenDelay?this.previousOpenTimeout=setTimeout(()=>{this.show()},this.hoverOpenDelay):this.show())},this.onMouseleave=()=>{clearTimeout(this.previousCloseTimeout),clearTimeout(this.previousOpenTimeout),this.hoverCloseDelay?this.previousCloseTimeout=setTimeout(()=>{this.close()},this.hoverCloseDelay):this.close()},this.addEventListener("mouseenter",this.onMouseenter),this.addEventListener("mouseleave",this.onMouseleave)}render(){return c`
1007
+ */class ot extends y{get item(){return this.items[0]??null}get menu(){return this.menus[0]??null}constructor(){super(),this.anchorCorner=_r.START_END,this.menuCorner=_r.START_START,this.hoverOpenDelay=400,this.hoverCloseDelay=400,this.isSubMenu=!0,this.previousOpenTimeout=0,this.previousCloseTimeout=0,this.onMouseenter=()=>{var e;clearTimeout(this.previousOpenTimeout),clearTimeout(this.previousCloseTimeout),!((e=this.menu)!=null&&e.open)&&(this.hoverOpenDelay?this.previousOpenTimeout=setTimeout(()=>{this.show()},this.hoverOpenDelay):this.show())},this.onMouseleave=()=>{clearTimeout(this.previousCloseTimeout),clearTimeout(this.previousOpenTimeout),this.hoverCloseDelay?this.previousCloseTimeout=setTimeout(()=>{this.close()},this.hoverCloseDelay):this.close()},this.addEventListener("mouseenter",this.onMouseenter),this.addEventListener("mouseleave",this.onMouseleave)}render(){return c`
1008
1008
  <slot
1009
1009
  name="item"
1010
1010
  @click=${this.onClick}
@@ -1017,7 +1017,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
1017
1017
  @close-menu=${this.onCloseSubmenu}
1018
1018
  @slotchange=${this.onSlotchange}>
1019
1019
  </slot>
1020
- `}firstUpdated(){this.onSlotchange()}async show(){const e=this.menu;if(!e||e.open)return;e.addEventListener("closed",()=>{this.item.ariaExpanded="false",this.dispatchEvent(Qa()),this.dispatchEvent(gr()),e.ariaHidden="true"},{once:!0}),e.positioning==="document"&&(e.positioning="absolute"),e.quick=!0,e.hasOverflow=!0,e.anchorCorner=this.anchorCorner,e.menuCorner=this.menuCorner,e.anchorElement=this.item,e.defaultFocus="first-item",e.removeAttribute("aria-hidden"),e.skipRestoreFocus=!1;const t=e.open;if(e.show(),this.item.ariaExpanded="true",this.item.ariaHasPopup="menu",e.id&&this.item.setAttribute("aria-controls",e.id),this.dispatchEvent(gr()),this.dispatchEvent(pd()),this.item.selected=!0,!t){let i=s=>{};const r=new Promise(s=>{i=s});e.addEventListener("opened",i,{once:!0}),await r}}async close(){const e=this.menu;if(!e||!e.open)return;this.dispatchEvent(Qa()),e.quick=!0,e.close(),this.dispatchEvent(gr());let t=r=>{};const i=new Promise(r=>{t=r});e.addEventListener("closed",t,{once:!0}),await i}onSlotchange(){var t;if(!this.item)return;this.item.ariaExpanded="false",this.item.ariaHasPopup="menu",(t=this.menu)!=null&&t.id&&this.item.setAttribute("aria-controls",this.menu.id),this.item.keepOpen=!0;const e=this.menu;e&&(e.isSubmenu=!0,e.ariaHidden="true")}onClick(){this.show()}async onKeydown(e){const t=this.isSubmenuOpenKey(e.code);if(e.defaultPrevented)return;const i=t&&(rt.LEFT===e.code||rt.RIGHT===e.code);if((e.code===Ut.SPACE||i)&&(e.preventDefault(),i&&e.stopPropagation()),!t)return;const r=this.menu;if(!r)return;const s=r.items,l=fr(s);if(l){await this.show(),l.tabIndex=0,l.focus();return}}onCloseSubmenu(e){const{itemPath:t,reason:i}=e.detail;if(t.push(this.item),this.dispatchEvent(Qa()),i.kind===eo.KEYDOWN&&i.key===to.ESCAPE){e.stopPropagation(),this.item.dispatchEvent(js());return}this.dispatchEvent(gr())}async onSubMenuKeydown(e){var r;if(e.defaultPrevented)return;const{close:t,keyCode:i}=this.isSubmenuCloseKey(e.code);t&&(e.preventDefault(),(i===rt.LEFT||i===rt.RIGHT)&&e.stopPropagation(),await this.close(),td(this.menu.items),(r=this.item)==null||r.focus(),this.item.tabIndex=0,this.item.focus())}isSubmenuOpenKey(e){const i=getComputedStyle(this).direction==="rtl"?rt.LEFT:rt.RIGHT;switch(e){case i:case Ut.SPACE:case Ut.ENTER:return!0;default:return!1}}isSubmenuCloseKey(e){const i=getComputedStyle(this).direction==="rtl"?rt.RIGHT:rt.LEFT;switch(e){case i:case to.ESCAPE:return{close:!0,keyCode:e};default:return{close:!1}}}}d([n({attribute:"anchor-corner"})],at.prototype,"anchorCorner",void 0),d([n({attribute:"menu-corner"})],at.prototype,"menuCorner",void 0),d([n({type:Number,attribute:"hover-open-delay"})],at.prototype,"hoverOpenDelay",void 0),d([n({type:Number,attribute:"hover-close-delay"})],at.prototype,"hoverCloseDelay",void 0),d([n({type:Boolean,reflect:!0,attribute:"md-sub-menu"})],at.prototype,"isSubMenu",void 0),d([Y({slot:"item",flatten:!0})],at.prototype,"items",void 0),d([Y({slot:"menu",flatten:!0})],at.prototype,"menus",void 0);/**
1020
+ `}firstUpdated(){this.onSlotchange()}async show(){const e=this.menu;if(!e||e.open)return;e.addEventListener("closed",()=>{this.item.ariaExpanded="false",this.dispatchEvent(Qa()),this.dispatchEvent(gr()),e.ariaHidden="true"},{once:!0}),e.positioning==="document"&&(e.positioning="absolute"),e.quick=!0,e.hasOverflow=!0,e.anchorCorner=this.anchorCorner,e.menuCorner=this.menuCorner,e.anchorElement=this.item,e.defaultFocus="first-item",e.removeAttribute("aria-hidden"),e.skipRestoreFocus=!1;const t=e.open;if(e.show(),this.item.ariaExpanded="true",this.item.ariaHasPopup="menu",e.id&&this.item.setAttribute("aria-controls",e.id),this.dispatchEvent(gr()),this.dispatchEvent(pd()),this.item.selected=!0,!t){let i=s=>{};const r=new Promise(s=>{i=s});e.addEventListener("opened",i,{once:!0}),await r}}async close(){const e=this.menu;if(!e||!e.open)return;this.dispatchEvent(Qa()),e.quick=!0,e.close(),this.dispatchEvent(gr());let t=r=>{};const i=new Promise(r=>{t=r});e.addEventListener("closed",t,{once:!0}),await i}onSlotchange(){var t;if(!this.item)return;this.item.ariaExpanded="false",this.item.ariaHasPopup="menu",(t=this.menu)!=null&&t.id&&this.item.setAttribute("aria-controls",this.menu.id),this.item.keepOpen=!0;const e=this.menu;e&&(e.isSubmenu=!0,e.ariaHidden="true")}onClick(){this.show()}async onKeydown(e){const t=this.isSubmenuOpenKey(e.code);if(e.defaultPrevented)return;const i=t&&(at.LEFT===e.code||at.RIGHT===e.code);if((e.code===Ut.SPACE||i)&&(e.preventDefault(),i&&e.stopPropagation()),!t)return;const r=this.menu;if(!r)return;const s=r.items,l=fr(s);if(l){await this.show(),l.tabIndex=0,l.focus();return}}onCloseSubmenu(e){const{itemPath:t,reason:i}=e.detail;if(t.push(this.item),this.dispatchEvent(Qa()),i.kind===eo.KEYDOWN&&i.key===to.ESCAPE){e.stopPropagation(),this.item.dispatchEvent(js());return}this.dispatchEvent(gr())}async onSubMenuKeydown(e){var r;if(e.defaultPrevented)return;const{close:t,keyCode:i}=this.isSubmenuCloseKey(e.code);t&&(e.preventDefault(),(i===at.LEFT||i===at.RIGHT)&&e.stopPropagation(),await this.close(),td(this.menu.items),(r=this.item)==null||r.focus(),this.item.tabIndex=0,this.item.focus())}isSubmenuOpenKey(e){const i=getComputedStyle(this).direction==="rtl"?at.LEFT:at.RIGHT;switch(e){case i:case Ut.SPACE:case Ut.ENTER:return!0;default:return!1}}isSubmenuCloseKey(e){const i=getComputedStyle(this).direction==="rtl"?at.RIGHT:at.LEFT;switch(e){case i:case to.ESCAPE:return{close:!0,keyCode:e};default:return{close:!1}}}}d([n({attribute:"anchor-corner"})],ot.prototype,"anchorCorner",void 0),d([n({attribute:"menu-corner"})],ot.prototype,"menuCorner",void 0),d([n({type:Number,attribute:"hover-open-delay"})],ot.prototype,"hoverOpenDelay",void 0),d([n({type:Number,attribute:"hover-close-delay"})],ot.prototype,"hoverCloseDelay",void 0),d([n({type:Boolean,reflect:!0,attribute:"md-sub-menu"})],ot.prototype,"isSubMenu",void 0),d([Y({slot:"item",flatten:!0})],ot.prototype,"items",void 0),d([Y({slot:"menu",flatten:!0})],ot.prototype,"menus",void 0);/**
1021
1021
  * @license
1022
1022
  * Copyright 2024 Google LLC
1023
1023
  * SPDX-License-Identifier: Apache-2.0
@@ -1026,11 +1026,11 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
1026
1026
  * @license
1027
1027
  * Copyright 2023 Google LLC
1028
1028
  * SPDX-License-Identifier: Apache-2.0
1029
- */let oo=class extends at{};oo.styles=[yd],oo=d([g("md-sub-menu")],oo);/**
1029
+ */let oo=class extends ot{};oo.styles=[yd],oo=d([g("md-sub-menu")],oo);/**
1030
1030
  * @license
1031
1031
  * Copyright 2023 Google LLC
1032
1032
  * SPDX-License-Identifier: Apache-2.0
1033
- */class _t extends y{constructor(){super(...arguments),this.value=0,this.max=1,this.indeterminate=!1,this.fourColor=!1}render(){const{ariaLabel:e}=this;return c`
1033
+ */class xt extends y{constructor(){super(...arguments),this.value=0,this.max=1,this.indeterminate=!1,this.fourColor=!1}render(){const{ariaLabel:e}=this;return c`
1034
1034
  <div
1035
1035
  class="progress ${L(this.getRenderClasses())}"
1036
1036
  role="progressbar"
@@ -1040,11 +1040,11 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
1040
1040
  aria-valuenow=${this.indeterminate?u:this.value}
1041
1041
  >${this.renderIndicator()}</div
1042
1042
  >
1043
- `}getRenderClasses(){return{indeterminate:this.indeterminate,"four-color":this.fourColor}}}re(_t),d([n({type:Number})],_t.prototype,"value",void 0),d([n({type:Number})],_t.prototype,"max",void 0),d([n({type:Boolean})],_t.prototype,"indeterminate",void 0),d([n({type:Boolean,attribute:"four-color"})],_t.prototype,"fourColor",void 0);/**
1043
+ `}getRenderClasses(){return{indeterminate:this.indeterminate,"four-color":this.fourColor}}}re(xt),d([n({type:Number})],xt.prototype,"value",void 0),d([n({type:Number})],xt.prototype,"max",void 0),d([n({type:Boolean})],xt.prototype,"indeterminate",void 0),d([n({type:Boolean,attribute:"four-color"})],xt.prototype,"fourColor",void 0);/**
1044
1044
  * @license
1045
1045
  * Copyright 2023 Google LLC
1046
1046
  * SPDX-License-Identifier: Apache-2.0
1047
- */class _d extends _t{renderIndicator(){return this.indeterminate?this.renderIndeterminateContainer():this.renderDeterminateContainer()}renderDeterminateContainer(){const e=(1-this.value/this.max)*100;return c`
1047
+ */class _d extends xt{renderIndicator(){return this.indeterminate?this.renderIndeterminateContainer():this.renderDeterminateContainer()}renderDeterminateContainer(){const e=(1-this.value/this.max)*100;return c`
1048
1048
  <svg viewBox="0 0 4800 4800">
1049
1049
  <circle class="track" pathLength="100"></circle>
1050
1050
  <circle
@@ -1072,10 +1072,10 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
1072
1072
  * @license
1073
1073
  * Copyright 2023 Google LLC
1074
1074
  * SPDX-License-Identifier: Apache-2.0
1075
- */class rn extends _t{constructor(){super(...arguments),this.buffer=0}renderIndicator(){const e={transform:`scaleX(${(this.indeterminate?1:this.value/this.max)*100}%)`},t=this.buffer??0,i=t>0,s={transform:`scaleX(${(this.indeterminate||!i?1:t/this.max)*100}%)`},l=this.indeterminate||!i||t>=this.max||this.value>=this.max;return c`
1075
+ */class rn extends xt{constructor(){super(...arguments),this.buffer=0}renderIndicator(){const e={transform:`scaleX(${(this.indeterminate?1:this.value/this.max)*100}%)`},t=this.buffer??0,i=t>0,s={transform:`scaleX(${(this.indeterminate||!i?1:t/this.max)*100}%)`},l=this.indeterminate||!i||t>=this.max||this.value>=this.max;return c`
1076
1076
  <div class="dots" ?hidden=${l}></div>
1077
- <div class="inactive-track" style=${yt(s)}></div>
1078
- <div class="bar primary-bar" style=${yt(e)}>
1077
+ <div class="inactive-track" style=${_t(s)}></div>
1078
+ <div class="bar primary-bar" style=${_t(e)}>
1079
1079
  <div class="bar-inner"></div>
1080
1080
  </div>
1081
1081
  <div class="bar secondary-bar">
@@ -1106,7 +1106,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
1106
1106
  * @license
1107
1107
  * Copyright 2018 Google LLC
1108
1108
  * SPDX-License-Identifier: Apache-2.0
1109
- */var on;const co=Symbol("checked");let $d=0;const Cd=vi(Nt(tt(an(y))));class gi extends Cd{get checked(){return this[co]}set checked(e){const t=this.checked;t!==e&&(this[co]=e,this.requestUpdate("checked",t),this.selectionController.handleCheckedChange())}constructor(){super(),this.maskId=`cutout${++$d}`,this[on]=!1,this.required=!1,this.value="on",this.selectionController=new kd(this),this.addController(this.selectionController),this[K].role="radio",this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("keydown",this.handleKeydown.bind(this))}render(){const e={checked:this.checked};return c`
1109
+ */var on;const co=Symbol("checked");let $d=0;const Cd=vi(Nt(it(an(y))));class gi extends Cd{get checked(){return this[co]}set checked(e){const t=this.checked;t!==e&&(this[co]=e,this.requestUpdate("checked",t),this.selectionController.handleCheckedChange())}constructor(){super(),this.maskId=`cutout${++$d}`,this[on]=!1,this.required=!1,this.value="on",this.selectionController=new kd(this),this.addController(this.selectionController),this[K].role="radio",this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("keydown",this.handleKeydown.bind(this))}render(){const e={checked:this.checked};return c`
1110
1110
  <div class="container ${L(e)}" aria-hidden="true">
1111
1111
  <md-ripple
1112
1112
  part="ripple"
@@ -1135,7 +1135,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
1135
1135
  .value=${this.value}
1136
1136
  ?disabled=${this.disabled} />
1137
1137
  </div>
1138
- `}updated(){this[K].ariaChecked=String(this.checked)}async handleClick(e){this.disabled||(await 0,!e.defaultPrevented&&(pi(e)&&this.focus(),this.checked=!0,this.dispatchEvent(new Event("change",{bubbles:!0})),this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0}))))}async handleKeydown(e){await 0,!(e.key!==" "||e.defaultPrevented)&&this.click()}[(on=co,Fe)](){return this.checked?this.value:null}[bi](){return String(this.checked)}formResetCallback(){this.checked=this.hasAttribute("checked")}formStateRestoreCallback(e){this.checked=e==="true"}[bt](){return new Sd(()=>this.selectionController?this.selectionController.controls:[this])}[mt](){return this.container}}d([n({type:Boolean})],gi.prototype,"checked",null),d([n({type:Boolean})],gi.prototype,"required",void 0),d([n()],gi.prototype,"value",void 0),d([k(".container")],gi.prototype,"container",void 0);/**
1138
+ `}updated(){this[K].ariaChecked=String(this.checked)}async handleClick(e){this.disabled||(await 0,!e.defaultPrevented&&(pi(e)&&this.focus(),this.checked=!0,this.dispatchEvent(new Event("change",{bubbles:!0})),this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0}))))}async handleKeydown(e){await 0,!(e.key!==" "||e.defaultPrevented)&&this.click()}[(on=co,Fe)](){return this.checked?this.value:null}[bi](){return String(this.checked)}formResetCallback(){this.checked=this.hasAttribute("checked")}formStateRestoreCallback(e){this.checked=e==="true"}[mt](){return new Sd(()=>this.selectionController?this.selectionController.controls:[this])}[ft](){return this.container}}d([n({type:Boolean})],gi.prototype,"checked",null),d([n({type:Boolean})],gi.prototype,"required",void 0),d([n()],gi.prototype,"value",void 0),d([k(".container")],gi.prototype,"container",void 0);/**
1139
1139
  * @license
1140
1140
  * Copyright 2024 Google LLC
1141
1141
  * SPDX-License-Identifier: Apache-2.0
@@ -1160,7 +1160,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
1160
1160
  * @license
1161
1161
  * Copyright 2023 Google LLC
1162
1162
  * SPDX-License-Identifier: Apache-2.0
1163
- */var nn;const zr=Symbol("value"),Od=sn(vi(Nt(tt(y))));class O extends Od{get value(){return this[zr]}set value(e){this.lastUserSetValue=e,this.select(e)}get options(){var e;return((e=this.menu)==null?void 0:e.items)??[]}get selectedIndex(){const[e,t]=(this.getSelectedOptions()??[])[0]??[];return t??-1}set selectedIndex(e){this.lastUserSetSelectedIndex=e,this.selectIndex(e)}get selectedOptions(){return(this.getSelectedOptions()??[]).map(([e])=>e)}get hasError(){return this.error||this.nativeError}constructor(){super(),this.quick=!1,this.required=!1,this.errorText="",this.label="",this.noAsterisk=!1,this.supportingText="",this.error=!1,this.menuPositioning="popover",this.clampMenuWidth=!1,this.typeaheadDelay=Js,this.hasLeadingIcon=!1,this.displayText="",this.menuAlign="start",this[nn]="",this.lastUserSetValue=null,this.lastUserSetSelectedIndex=null,this.lastSelectedOption=null,this.lastSelectedOptionRecords=[],this.nativeError=!1,this.nativeErrorText="",this.focused=!1,this.open=!1,this.defaultFocus=Se.NONE,this.prevOpen=this.open,this.selectWidth=0,this.addEventListener("focus",this.handleFocus.bind(this)),this.addEventListener("blur",this.handleBlur.bind(this))}select(e){const t=this.options.find(i=>i.value===e);t&&this.selectItem(t)}selectIndex(e){const t=this.options[e];t&&this.selectItem(t)}reset(){for(const e of this.options)e.selected=e.hasAttribute("selected");this.updateValueAndDisplayText(),this.nativeError=!1,this.nativeErrorText=""}[(nn=zr,$r)](e){var i;e==null||e.preventDefault();const t=this.getErrorText();this.nativeError=!!e,this.nativeErrorText=this.validationMessage,t===this.getErrorText()&&((i=this.field)==null||i.reannounceError())}update(e){if(this.hasUpdated||this.initUserSelection(),this.prevOpen!==this.open&&this.open){const t=this.getBoundingClientRect();this.selectWidth=t.width}this.prevOpen=this.open,super.update(e)}render(){return c`
1163
+ */var nn;const zr=Symbol("value"),Od=sn(vi(Nt(it(y))));class O extends Od{get value(){return this[zr]}set value(e){this.lastUserSetValue=e,this.select(e)}get options(){var e;return((e=this.menu)==null?void 0:e.items)??[]}get selectedIndex(){const[e,t]=(this.getSelectedOptions()??[])[0]??[];return t??-1}set selectedIndex(e){this.lastUserSetSelectedIndex=e,this.selectIndex(e)}get selectedOptions(){return(this.getSelectedOptions()??[]).map(([e])=>e)}get hasError(){return this.error||this.nativeError}constructor(){super(),this.quick=!1,this.required=!1,this.errorText="",this.label="",this.noAsterisk=!1,this.supportingText="",this.error=!1,this.menuPositioning="popover",this.clampMenuWidth=!1,this.typeaheadDelay=Js,this.hasLeadingIcon=!1,this.displayText="",this.menuAlign="start",this[nn]="",this.lastUserSetValue=null,this.lastUserSetSelectedIndex=null,this.lastSelectedOption=null,this.lastSelectedOptionRecords=[],this.nativeError=!1,this.nativeErrorText="",this.focused=!1,this.open=!1,this.defaultFocus=ke.NONE,this.prevOpen=this.open,this.selectWidth=0,this.addEventListener("focus",this.handleFocus.bind(this)),this.addEventListener("blur",this.handleBlur.bind(this))}select(e){const t=this.options.find(i=>i.value===e);t&&this.selectItem(t)}selectIndex(e){const t=this.options[e];t&&this.selectItem(t)}reset(){for(const e of this.options)e.selected=e.hasAttribute("selected");this.updateValueAndDisplayText(),this.nativeError=!1,this.nativeErrorText=""}[(nn=zr,$r)](e){var i;e==null||e.preventDefault();const t=this.getErrorText();this.nativeError=!!e,this.nativeErrorText=this.validationMessage,t===this.getErrorText()&&((i=this.field)==null||i.reannounceError())}update(e){if(this.hasUpdated||this.initUserSelection(),this.prevOpen!==this.open&&this.open){const t=this.getBoundingClientRect();this.selectWidth=t.width}this.prevOpen=this.open,super.update(e)}render(){return c`
1164
1164
  <span
1165
1165
  class="select ${L(this.getRenderClasses())}"
1166
1166
  @focusout=${this.handleFocusout}>
@@ -1225,7 +1225,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
1225
1225
  part="menu"
1226
1226
  exportparts="focus-ring: menu-focus-ring"
1227
1227
  anchor="field"
1228
- style=${yt({"--__menu-min-width":`${this.selectWidth}px`,"--__menu-max-width":this.clampMenuWidth?`${this.selectWidth}px`:void 0})}
1228
+ style=${_t({"--__menu-min-width":`${this.selectWidth}px`,"--__menu-max-width":this.clampMenuWidth?`${this.selectWidth}px`:void 0})}
1229
1229
  no-navigation-wrap
1230
1230
  .open=${this.open}
1231
1231
  .quick=${this.quick}
@@ -1242,7 +1242,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
1242
1242
  @request-deselection=${this.handleRequestDeselection}>
1243
1243
  ${this.renderMenuContent()}
1244
1244
  </md-menu>
1245
- </div>`}renderMenuContent(){return c`<slot></slot>`}handleKeydown(e){var s,l;if(this.open||this.disabled||!this.menu)return;const t=this.menu.typeaheadController,i=e.code==="Space"||e.code==="ArrowDown"||e.code==="ArrowUp"||e.code==="End"||e.code==="Home"||e.code==="Enter";if(!t.isTypingAhead&&i){switch(e.preventDefault(),this.open=!0,e.code){case"Space":case"ArrowDown":case"Enter":this.defaultFocus=Se.NONE;break;case"End":this.defaultFocus=Se.LAST_ITEM;break;case"ArrowUp":case"Home":this.defaultFocus=Se.FIRST_ITEM;break}return}if(e.key.length===1){t.onKeydown(e),e.preventDefault();const{lastActiveRecord:h}=t;if(!h)return;(l=(s=this.labelEl)==null?void 0:s.setAttribute)==null||l.call(s,"aria-live","polite"),this.selectItem(h[ve.ITEM])&&this.dispatchInteractionEvents()}}handleClick(){this.open=!this.open}handleFocus(){this.focused=!0}handleBlur(){this.focused=!1}handleFocusout(e){e.relatedTarget&&io(e.relatedTarget,this)||(this.open=!1)}getSelectedOptions(){if(!this.menu)return this.lastSelectedOptionRecords=[],null;const e=this.menu.items;return this.lastSelectedOptionRecords=Pd(e),this.lastSelectedOptionRecords}async getUpdateComplete(){var e;return await((e=this.menu)==null?void 0:e.updateComplete),super.getUpdateComplete()}updateValueAndDisplayText(){const e=this.getSelectedOptions()??[];let t=!1;if(e.length){const[i]=e[0];t=this.lastSelectedOption!==i,this.lastSelectedOption=i,this[zr]=i.value,this.displayText=i.displayText}else t=this.lastSelectedOption!==null,this.lastSelectedOption=null,this[zr]="",this.displayText="";return t}async handleOpening(e){var s,l,h;if((l=(s=this.labelEl)==null?void 0:s.removeAttribute)==null||l.call(s,"aria-live"),this.redispatchEvent(e),this.defaultFocus!==Se.NONE)return;const t=this.menu.items,i=(h=qt(t))==null?void 0:h.item;let[r]=this.lastSelectedOptionRecords[0]??[null];i&&i!==r&&(i.tabIndex=-1),r=r??t[0],r&&(r.tabIndex=0,r.focus())}redispatchEvent(e){it(this,e)}handleClosed(e){this.open=!1,this.redispatchEvent(e)}handleCloseMenu(e){const t=e.detail.reason,i=e.detail.itemPath[0];this.open=!1;let r=!1;t.kind==="click-selection"?r=this.selectItem(i):t.kind==="keydown"&&ud(t.key)?r=this.selectItem(i):(i.tabIndex=-1,i.blur()),r&&this.dispatchInteractionEvents()}selectItem(e){return(this.getSelectedOptions()??[]).forEach(([i])=>{e!==i&&(i.selected=!1)}),e.selected=!0,this.updateValueAndDisplayText()}handleRequestSelection(e){const t=e.target;this.lastSelectedOptionRecords.some(([i])=>i===t)||this.selectItem(t)}handleRequestDeselection(e){const t=e.target;this.lastSelectedOptionRecords.some(([i])=>i===t)&&this.updateValueAndDisplayText()}initUserSelection(){this.lastUserSetValue&&!this.lastSelectedOptionRecords.length?this.select(this.lastUserSetValue):this.lastUserSetSelectedIndex!==null&&!this.lastSelectedOptionRecords.length?this.selectIndex(this.lastUserSetSelectedIndex):this.updateValueAndDisplayText()}handleIconChange(){this.hasLeadingIcon=this.leadingIcons.length>0}dispatchInteractionEvents(){this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0}))}getErrorText(){return this.error?this.errorText:this.nativeErrorText}[Fe](){return this.value}formResetCallback(){this.reset()}formStateRestoreCallback(e){this.value=e}click(){var e;(e=this.field)==null||e.click()}[bt](){return new Id(()=>this)}[mt](){return this.field}}re(O),O.shadowRootOptions={...y.shadowRootOptions,delegatesFocus:!0},d([n({type:Boolean})],O.prototype,"quick",void 0),d([n({type:Boolean})],O.prototype,"required",void 0),d([n({type:String,attribute:"error-text"})],O.prototype,"errorText",void 0),d([n()],O.prototype,"label",void 0),d([n({type:Boolean,attribute:"no-asterisk"})],O.prototype,"noAsterisk",void 0),d([n({type:String,attribute:"supporting-text"})],O.prototype,"supportingText",void 0),d([n({type:Boolean,reflect:!0})],O.prototype,"error",void 0),d([n({attribute:"menu-positioning"})],O.prototype,"menuPositioning",void 0),d([n({type:Boolean,attribute:"clamp-menu-width"})],O.prototype,"clampMenuWidth",void 0),d([n({type:Number,attribute:"typeahead-delay"})],O.prototype,"typeaheadDelay",void 0),d([n({type:Boolean,attribute:"has-leading-icon"})],O.prototype,"hasLeadingIcon",void 0),d([n({attribute:"display-text"})],O.prototype,"displayText",void 0),d([n({attribute:"menu-align"})],O.prototype,"menuAlign",void 0),d([n()],O.prototype,"value",null),d([n({type:Number,attribute:"selected-index"})],O.prototype,"selectedIndex",null),d([w()],O.prototype,"nativeError",void 0),d([w()],O.prototype,"nativeErrorText",void 0),d([w()],O.prototype,"focused",void 0),d([w()],O.prototype,"open",void 0),d([w()],O.prototype,"defaultFocus",void 0),d([k(".field")],O.prototype,"field",void 0),d([k("md-menu")],O.prototype,"menu",void 0),d([k("#label")],O.prototype,"labelEl",void 0),d([Y({slot:"leading-icon",flatten:!0})],O.prototype,"leadingIcons",void 0);/**
1245
+ </div>`}renderMenuContent(){return c`<slot></slot>`}handleKeydown(e){var s,l;if(this.open||this.disabled||!this.menu)return;const t=this.menu.typeaheadController,i=e.code==="Space"||e.code==="ArrowDown"||e.code==="ArrowUp"||e.code==="End"||e.code==="Home"||e.code==="Enter";if(!t.isTypingAhead&&i){switch(e.preventDefault(),this.open=!0,e.code){case"Space":case"ArrowDown":case"Enter":this.defaultFocus=ke.NONE;break;case"End":this.defaultFocus=ke.LAST_ITEM;break;case"ArrowUp":case"Home":this.defaultFocus=ke.FIRST_ITEM;break}return}if(e.key.length===1){t.onKeydown(e),e.preventDefault();const{lastActiveRecord:h}=t;if(!h)return;(l=(s=this.labelEl)==null?void 0:s.setAttribute)==null||l.call(s,"aria-live","polite"),this.selectItem(h[be.ITEM])&&this.dispatchInteractionEvents()}}handleClick(){this.open=!this.open}handleFocus(){this.focused=!0}handleBlur(){this.focused=!1}handleFocusout(e){e.relatedTarget&&io(e.relatedTarget,this)||(this.open=!1)}getSelectedOptions(){if(!this.menu)return this.lastSelectedOptionRecords=[],null;const e=this.menu.items;return this.lastSelectedOptionRecords=Pd(e),this.lastSelectedOptionRecords}async getUpdateComplete(){var e;return await((e=this.menu)==null?void 0:e.updateComplete),super.getUpdateComplete()}updateValueAndDisplayText(){const e=this.getSelectedOptions()??[];let t=!1;if(e.length){const[i]=e[0];t=this.lastSelectedOption!==i,this.lastSelectedOption=i,this[zr]=i.value,this.displayText=i.displayText}else t=this.lastSelectedOption!==null,this.lastSelectedOption=null,this[zr]="",this.displayText="";return t}async handleOpening(e){var s,l,h;if((l=(s=this.labelEl)==null?void 0:s.removeAttribute)==null||l.call(s,"aria-live"),this.redispatchEvent(e),this.defaultFocus!==ke.NONE)return;const t=this.menu.items,i=(h=qt(t))==null?void 0:h.item;let[r]=this.lastSelectedOptionRecords[0]??[null];i&&i!==r&&(i.tabIndex=-1),r=r??t[0],r&&(r.tabIndex=0,r.focus())}redispatchEvent(e){rt(this,e)}handleClosed(e){this.open=!1,this.redispatchEvent(e)}handleCloseMenu(e){const t=e.detail.reason,i=e.detail.itemPath[0];this.open=!1;let r=!1;t.kind==="click-selection"?r=this.selectItem(i):t.kind==="keydown"&&ud(t.key)?r=this.selectItem(i):(i.tabIndex=-1,i.blur()),r&&this.dispatchInteractionEvents()}selectItem(e){return(this.getSelectedOptions()??[]).forEach(([i])=>{e!==i&&(i.selected=!1)}),e.selected=!0,this.updateValueAndDisplayText()}handleRequestSelection(e){const t=e.target;this.lastSelectedOptionRecords.some(([i])=>i===t)||this.selectItem(t)}handleRequestDeselection(e){const t=e.target;this.lastSelectedOptionRecords.some(([i])=>i===t)&&this.updateValueAndDisplayText()}initUserSelection(){this.lastUserSetValue&&!this.lastSelectedOptionRecords.length?this.select(this.lastUserSetValue):this.lastUserSetSelectedIndex!==null&&!this.lastSelectedOptionRecords.length?this.selectIndex(this.lastUserSetSelectedIndex):this.updateValueAndDisplayText()}handleIconChange(){this.hasLeadingIcon=this.leadingIcons.length>0}dispatchInteractionEvents(){this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0}))}getErrorText(){return this.error?this.errorText:this.nativeErrorText}[Fe](){return this.value}formResetCallback(){this.reset()}formStateRestoreCallback(e){this.value=e}click(){var e;(e=this.field)==null||e.click()}[mt](){return new Id(()=>this)}[ft](){return this.field}}re(O),O.shadowRootOptions={...y.shadowRootOptions,delegatesFocus:!0},d([n({type:Boolean})],O.prototype,"quick",void 0),d([n({type:Boolean})],O.prototype,"required",void 0),d([n({type:String,attribute:"error-text"})],O.prototype,"errorText",void 0),d([n()],O.prototype,"label",void 0),d([n({type:Boolean,attribute:"no-asterisk"})],O.prototype,"noAsterisk",void 0),d([n({type:String,attribute:"supporting-text"})],O.prototype,"supportingText",void 0),d([n({type:Boolean,reflect:!0})],O.prototype,"error",void 0),d([n({attribute:"menu-positioning"})],O.prototype,"menuPositioning",void 0),d([n({type:Boolean,attribute:"clamp-menu-width"})],O.prototype,"clampMenuWidth",void 0),d([n({type:Number,attribute:"typeahead-delay"})],O.prototype,"typeaheadDelay",void 0),d([n({type:Boolean,attribute:"has-leading-icon"})],O.prototype,"hasLeadingIcon",void 0),d([n({attribute:"display-text"})],O.prototype,"displayText",void 0),d([n({attribute:"menu-align"})],O.prototype,"menuAlign",void 0),d([n()],O.prototype,"value",null),d([n({type:Number,attribute:"selected-index"})],O.prototype,"selectedIndex",null),d([w()],O.prototype,"nativeError",void 0),d([w()],O.prototype,"nativeErrorText",void 0),d([w()],O.prototype,"focused",void 0),d([w()],O.prototype,"open",void 0),d([w()],O.prototype,"defaultFocus",void 0),d([k(".field")],O.prototype,"field",void 0),d([k("md-menu")],O.prototype,"menu",void 0),d([k("#label")],O.prototype,"labelEl",void 0),d([Y({slot:"leading-icon",flatten:!0})],O.prototype,"leadingIcons",void 0);/**
1246
1246
  * @license
1247
1247
  * Copyright 2023 Google LLC
1248
1248
  * SPDX-License-Identifier: Apache-2.0
@@ -1250,7 +1250,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
1250
1250
  * @license
1251
1251
  * Copyright 2024 Google LLC
1252
1252
  * SPDX-License-Identifier: Apache-2.0
1253
- */const Rd=m`:host{--_text-field-active-indicator-color: var(--md-filled-select-text-field-active-indicator-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-active-indicator-height: var(--md-filled-select-text-field-active-indicator-height, 1px);--_text-field-container-color: var(--md-filled-select-text-field-container-color, var(--md-sys-color-surface-container-highest, #e6e0e9));--_text-field-disabled-active-indicator-color: var(--md-filled-select-text-field-disabled-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-active-indicator-height: var(--md-filled-select-text-field-disabled-active-indicator-height, 1px);--_text-field-disabled-active-indicator-opacity: var(--md-filled-select-text-field-disabled-active-indicator-opacity, 0.38);--_text-field-disabled-container-color: var(--md-filled-select-text-field-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-container-opacity: var(--md-filled-select-text-field-disabled-container-opacity, 0.04);--_text-field-disabled-input-text-color: var(--md-filled-select-text-field-disabled-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-input-text-opacity: var(--md-filled-select-text-field-disabled-input-text-opacity, 0.38);--_text-field-disabled-label-text-color: var(--md-filled-select-text-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-label-text-opacity: var(--md-filled-select-text-field-disabled-label-text-opacity, 0.38);--_text-field-disabled-leading-icon-color: var(--md-filled-select-text-field-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-leading-icon-opacity: var(--md-filled-select-text-field-disabled-leading-icon-opacity, 0.38);--_text-field-disabled-supporting-text-color: var(--md-filled-select-text-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-supporting-text-opacity: var(--md-filled-select-text-field-disabled-supporting-text-opacity, 0.38);--_text-field-disabled-trailing-icon-color: var(--md-filled-select-text-field-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-trailing-icon-opacity: var(--md-filled-select-text-field-disabled-trailing-icon-opacity, 0.38);--_text-field-error-active-indicator-color: var(--md-filled-select-text-field-error-active-indicator-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-active-indicator-color: var(--md-filled-select-text-field-error-focus-active-indicator-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-input-text-color: var(--md-filled-select-text-field-error-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-focus-label-text-color: var(--md-filled-select-text-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-leading-icon-color: var(--md-filled-select-text-field-error-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-focus-supporting-text-color: var(--md-filled-select-text-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-trailing-icon-color: var(--md-filled-select-text-field-error-focus-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_text-field-error-hover-active-indicator-color: var(--md-filled-select-text-field-error-hover-active-indicator-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-hover-input-text-color: var(--md-filled-select-text-field-error-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-hover-label-text-color: var(--md-filled-select-text-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-hover-leading-icon-color: var(--md-filled-select-text-field-error-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-hover-state-layer-color: var(--md-filled-select-text-field-error-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-hover-state-layer-opacity: var(--md-filled-select-text-field-error-hover-state-layer-opacity, 0.08);--_text-field-error-hover-supporting-text-color: var(--md-filled-select-text-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-hover-trailing-icon-color: var(--md-filled-select-text-field-error-hover-trailing-icon-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-input-text-color: var(--md-filled-select-text-field-error-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-label-text-color: var(--md-filled-select-text-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-leading-icon-color: var(--md-filled-select-text-field-error-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-supporting-text-color: var(--md-filled-select-text-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-trailing-icon-color: var(--md-filled-select-text-field-error-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_text-field-focus-active-indicator-color: var(--md-filled-select-text-field-focus-active-indicator-color, var(--md-sys-color-primary, #6750a4));--_text-field-focus-active-indicator-height: var(--md-filled-select-text-field-focus-active-indicator-height, 3px);--_text-field-focus-input-text-color: var(--md-filled-select-text-field-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-focus-label-text-color: var(--md-filled-select-text-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_text-field-focus-leading-icon-color: var(--md-filled-select-text-field-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-focus-supporting-text-color: var(--md-filled-select-text-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-focus-trailing-icon-color: var(--md-filled-select-text-field-focus-trailing-icon-color, var(--md-sys-color-primary, #6750a4));--_text-field-hover-active-indicator-color: var(--md-filled-select-text-field-hover-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-active-indicator-height: var(--md-filled-select-text-field-hover-active-indicator-height, 1px);--_text-field-hover-input-text-color: var(--md-filled-select-text-field-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-label-text-color: var(--md-filled-select-text-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-leading-icon-color: var(--md-filled-select-text-field-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-hover-state-layer-color: var(--md-filled-select-text-field-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-state-layer-opacity: var(--md-filled-select-text-field-hover-state-layer-opacity, 0.08);--_text-field-hover-supporting-text-color: var(--md-filled-select-text-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-hover-trailing-icon-color: var(--md-filled-select-text-field-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-input-text-color: var(--md-filled-select-text-field-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-input-text-font: var(--md-filled-select-text-field-input-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_text-field-input-text-line-height: var(--md-filled-select-text-field-input-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_text-field-input-text-size: var(--md-filled-select-text-field-input-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_text-field-input-text-weight: var(--md-filled-select-text-field-input-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_text-field-label-text-color: var(--md-filled-select-text-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-label-text-font: var(--md-filled-select-text-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_text-field-label-text-line-height: var(--md-filled-select-text-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_text-field-label-text-populated-line-height: var(--md-filled-select-text-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_text-field-label-text-populated-size: var(--md-filled-select-text-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_text-field-label-text-size: var(--md-filled-select-text-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_text-field-label-text-weight: var(--md-filled-select-text-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_text-field-leading-icon-color: var(--md-filled-select-text-field-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-leading-icon-size: var(--md-filled-select-text-field-leading-icon-size, 24px);--_text-field-supporting-text-color: var(--md-filled-select-text-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-supporting-text-font: var(--md-filled-select-text-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_text-field-supporting-text-line-height: var(--md-filled-select-text-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_text-field-supporting-text-size: var(--md-filled-select-text-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_text-field-supporting-text-weight: var(--md-filled-select-text-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_text-field-trailing-icon-color: var(--md-filled-select-text-field-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-trailing-icon-size: var(--md-filled-select-text-field-trailing-icon-size, 24px);--_text-field-container-shape-start-start: var(--md-filled-select-text-field-container-shape-start-start, var(--md-filled-select-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_text-field-container-shape-start-end: var(--md-filled-select-text-field-container-shape-start-end, var(--md-filled-select-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_text-field-container-shape-end-end: var(--md-filled-select-text-field-container-shape-end-end, var(--md-filled-select-text-field-container-shape, var(--md-sys-shape-corner-none, 0px)));--_text-field-container-shape-end-start: var(--md-filled-select-text-field-container-shape-end-start, var(--md-filled-select-text-field-container-shape, var(--md-sys-shape-corner-none, 0px)));--md-filled-field-active-indicator-color: var(--_text-field-active-indicator-color);--md-filled-field-active-indicator-height: var(--_text-field-active-indicator-height);--md-filled-field-container-color: var(--_text-field-container-color);--md-filled-field-container-shape-end-end: var(--_text-field-container-shape-end-end);--md-filled-field-container-shape-end-start: var(--_text-field-container-shape-end-start);--md-filled-field-container-shape-start-end: var(--_text-field-container-shape-start-end);--md-filled-field-container-shape-start-start: var(--_text-field-container-shape-start-start);--md-filled-field-content-color: var(--_text-field-input-text-color);--md-filled-field-content-font: var(--_text-field-input-text-font);--md-filled-field-content-line-height: var(--_text-field-input-text-line-height);--md-filled-field-content-size: var(--_text-field-input-text-size);--md-filled-field-content-weight: var(--_text-field-input-text-weight);--md-filled-field-disabled-active-indicator-color: var(--_text-field-disabled-active-indicator-color);--md-filled-field-disabled-active-indicator-height: var(--_text-field-disabled-active-indicator-height);--md-filled-field-disabled-active-indicator-opacity: var(--_text-field-disabled-active-indicator-opacity);--md-filled-field-disabled-container-color: var(--_text-field-disabled-container-color);--md-filled-field-disabled-container-opacity: var(--_text-field-disabled-container-opacity);--md-filled-field-disabled-content-color: var(--_text-field-disabled-input-text-color);--md-filled-field-disabled-content-opacity: var(--_text-field-disabled-input-text-opacity);--md-filled-field-disabled-label-text-color: var(--_text-field-disabled-label-text-color);--md-filled-field-disabled-label-text-opacity: var(--_text-field-disabled-label-text-opacity);--md-filled-field-disabled-leading-content-color: var(--_text-field-disabled-leading-icon-color);--md-filled-field-disabled-leading-content-opacity: var(--_text-field-disabled-leading-icon-opacity);--md-filled-field-disabled-supporting-text-color: var(--_text-field-disabled-supporting-text-color);--md-filled-field-disabled-supporting-text-opacity: var(--_text-field-disabled-supporting-text-opacity);--md-filled-field-disabled-trailing-content-color: var(--_text-field-disabled-trailing-icon-color);--md-filled-field-disabled-trailing-content-opacity: var(--_text-field-disabled-trailing-icon-opacity);--md-filled-field-error-active-indicator-color: var(--_text-field-error-active-indicator-color);--md-filled-field-error-content-color: var(--_text-field-error-input-text-color);--md-filled-field-error-focus-active-indicator-color: var(--_text-field-error-focus-active-indicator-color);--md-filled-field-error-focus-content-color: var(--_text-field-error-focus-input-text-color);--md-filled-field-error-focus-label-text-color: var(--_text-field-error-focus-label-text-color);--md-filled-field-error-focus-leading-content-color: var(--_text-field-error-focus-leading-icon-color);--md-filled-field-error-focus-supporting-text-color: var(--_text-field-error-focus-supporting-text-color);--md-filled-field-error-focus-trailing-content-color: var(--_text-field-error-focus-trailing-icon-color);--md-filled-field-error-hover-active-indicator-color: var(--_text-field-error-hover-active-indicator-color);--md-filled-field-error-hover-content-color: var(--_text-field-error-hover-input-text-color);--md-filled-field-error-hover-label-text-color: var(--_text-field-error-hover-label-text-color);--md-filled-field-error-hover-leading-content-color: var(--_text-field-error-hover-leading-icon-color);--md-filled-field-error-hover-state-layer-color: var(--_text-field-error-hover-state-layer-color);--md-filled-field-error-hover-state-layer-opacity: var(--_text-field-error-hover-state-layer-opacity);--md-filled-field-error-hover-supporting-text-color: var(--_text-field-error-hover-supporting-text-color);--md-filled-field-error-hover-trailing-content-color: var(--_text-field-error-hover-trailing-icon-color);--md-filled-field-error-label-text-color: var(--_text-field-error-label-text-color);--md-filled-field-error-leading-content-color: var(--_text-field-error-leading-icon-color);--md-filled-field-error-supporting-text-color: var(--_text-field-error-supporting-text-color);--md-filled-field-error-trailing-content-color: var(--_text-field-error-trailing-icon-color);--md-filled-field-focus-active-indicator-color: var(--_text-field-focus-active-indicator-color);--md-filled-field-focus-active-indicator-height: var(--_text-field-focus-active-indicator-height);--md-filled-field-focus-content-color: var(--_text-field-focus-input-text-color);--md-filled-field-focus-label-text-color: var(--_text-field-focus-label-text-color);--md-filled-field-focus-leading-content-color: var(--_text-field-focus-leading-icon-color);--md-filled-field-focus-supporting-text-color: var(--_text-field-focus-supporting-text-color);--md-filled-field-focus-trailing-content-color: var(--_text-field-focus-trailing-icon-color);--md-filled-field-hover-active-indicator-color: var(--_text-field-hover-active-indicator-color);--md-filled-field-hover-active-indicator-height: var(--_text-field-hover-active-indicator-height);--md-filled-field-hover-content-color: var(--_text-field-hover-input-text-color);--md-filled-field-hover-label-text-color: var(--_text-field-hover-label-text-color);--md-filled-field-hover-leading-content-color: var(--_text-field-hover-leading-icon-color);--md-filled-field-hover-state-layer-color: var(--_text-field-hover-state-layer-color);--md-filled-field-hover-state-layer-opacity: var(--_text-field-hover-state-layer-opacity);--md-filled-field-hover-supporting-text-color: var(--_text-field-hover-supporting-text-color);--md-filled-field-hover-trailing-content-color: var(--_text-field-hover-trailing-icon-color);--md-filled-field-label-text-color: var(--_text-field-label-text-color);--md-filled-field-label-text-font: var(--_text-field-label-text-font);--md-filled-field-label-text-line-height: var(--_text-field-label-text-line-height);--md-filled-field-label-text-populated-line-height: var(--_text-field-label-text-populated-line-height);--md-filled-field-label-text-populated-size: var(--_text-field-label-text-populated-size);--md-filled-field-label-text-size: var(--_text-field-label-text-size);--md-filled-field-label-text-weight: var(--_text-field-label-text-weight);--md-filled-field-leading-content-color: var(--_text-field-leading-icon-color);--md-filled-field-supporting-text-color: var(--_text-field-supporting-text-color);--md-filled-field-supporting-text-font: var(--_text-field-supporting-text-font);--md-filled-field-supporting-text-line-height: var(--_text-field-supporting-text-line-height);--md-filled-field-supporting-text-size: var(--_text-field-supporting-text-size);--md-filled-field-supporting-text-weight: var(--_text-field-supporting-text-weight);--md-filled-field-trailing-content-color: var(--_text-field-trailing-icon-color)}[has-start] .icon.leading{font-size:var(--_text-field-leading-icon-size);height:var(--_text-field-leading-icon-size);width:var(--_text-field-leading-icon-size)}.icon.trailing{font-size:var(--_text-field-trailing-icon-size);height:var(--_text-field-trailing-icon-size);width:var(--_text-field-trailing-icon-size)}
1253
+ */const Bd=m`:host{--_text-field-active-indicator-color: var(--md-filled-select-text-field-active-indicator-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-active-indicator-height: var(--md-filled-select-text-field-active-indicator-height, 1px);--_text-field-container-color: var(--md-filled-select-text-field-container-color, var(--md-sys-color-surface-container-highest, #e6e0e9));--_text-field-disabled-active-indicator-color: var(--md-filled-select-text-field-disabled-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-active-indicator-height: var(--md-filled-select-text-field-disabled-active-indicator-height, 1px);--_text-field-disabled-active-indicator-opacity: var(--md-filled-select-text-field-disabled-active-indicator-opacity, 0.38);--_text-field-disabled-container-color: var(--md-filled-select-text-field-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-container-opacity: var(--md-filled-select-text-field-disabled-container-opacity, 0.04);--_text-field-disabled-input-text-color: var(--md-filled-select-text-field-disabled-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-input-text-opacity: var(--md-filled-select-text-field-disabled-input-text-opacity, 0.38);--_text-field-disabled-label-text-color: var(--md-filled-select-text-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-label-text-opacity: var(--md-filled-select-text-field-disabled-label-text-opacity, 0.38);--_text-field-disabled-leading-icon-color: var(--md-filled-select-text-field-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-leading-icon-opacity: var(--md-filled-select-text-field-disabled-leading-icon-opacity, 0.38);--_text-field-disabled-supporting-text-color: var(--md-filled-select-text-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-supporting-text-opacity: var(--md-filled-select-text-field-disabled-supporting-text-opacity, 0.38);--_text-field-disabled-trailing-icon-color: var(--md-filled-select-text-field-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-trailing-icon-opacity: var(--md-filled-select-text-field-disabled-trailing-icon-opacity, 0.38);--_text-field-error-active-indicator-color: var(--md-filled-select-text-field-error-active-indicator-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-active-indicator-color: var(--md-filled-select-text-field-error-focus-active-indicator-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-input-text-color: var(--md-filled-select-text-field-error-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-focus-label-text-color: var(--md-filled-select-text-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-leading-icon-color: var(--md-filled-select-text-field-error-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-focus-supporting-text-color: var(--md-filled-select-text-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-trailing-icon-color: var(--md-filled-select-text-field-error-focus-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_text-field-error-hover-active-indicator-color: var(--md-filled-select-text-field-error-hover-active-indicator-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-hover-input-text-color: var(--md-filled-select-text-field-error-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-hover-label-text-color: var(--md-filled-select-text-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-hover-leading-icon-color: var(--md-filled-select-text-field-error-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-hover-state-layer-color: var(--md-filled-select-text-field-error-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-hover-state-layer-opacity: var(--md-filled-select-text-field-error-hover-state-layer-opacity, 0.08);--_text-field-error-hover-supporting-text-color: var(--md-filled-select-text-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-hover-trailing-icon-color: var(--md-filled-select-text-field-error-hover-trailing-icon-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-input-text-color: var(--md-filled-select-text-field-error-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-label-text-color: var(--md-filled-select-text-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-leading-icon-color: var(--md-filled-select-text-field-error-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-supporting-text-color: var(--md-filled-select-text-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-trailing-icon-color: var(--md-filled-select-text-field-error-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_text-field-focus-active-indicator-color: var(--md-filled-select-text-field-focus-active-indicator-color, var(--md-sys-color-primary, #6750a4));--_text-field-focus-active-indicator-height: var(--md-filled-select-text-field-focus-active-indicator-height, 3px);--_text-field-focus-input-text-color: var(--md-filled-select-text-field-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-focus-label-text-color: var(--md-filled-select-text-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_text-field-focus-leading-icon-color: var(--md-filled-select-text-field-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-focus-supporting-text-color: var(--md-filled-select-text-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-focus-trailing-icon-color: var(--md-filled-select-text-field-focus-trailing-icon-color, var(--md-sys-color-primary, #6750a4));--_text-field-hover-active-indicator-color: var(--md-filled-select-text-field-hover-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-active-indicator-height: var(--md-filled-select-text-field-hover-active-indicator-height, 1px);--_text-field-hover-input-text-color: var(--md-filled-select-text-field-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-label-text-color: var(--md-filled-select-text-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-leading-icon-color: var(--md-filled-select-text-field-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-hover-state-layer-color: var(--md-filled-select-text-field-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-state-layer-opacity: var(--md-filled-select-text-field-hover-state-layer-opacity, 0.08);--_text-field-hover-supporting-text-color: var(--md-filled-select-text-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-hover-trailing-icon-color: var(--md-filled-select-text-field-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-input-text-color: var(--md-filled-select-text-field-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-input-text-font: var(--md-filled-select-text-field-input-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_text-field-input-text-line-height: var(--md-filled-select-text-field-input-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_text-field-input-text-size: var(--md-filled-select-text-field-input-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_text-field-input-text-weight: var(--md-filled-select-text-field-input-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_text-field-label-text-color: var(--md-filled-select-text-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-label-text-font: var(--md-filled-select-text-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_text-field-label-text-line-height: var(--md-filled-select-text-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_text-field-label-text-populated-line-height: var(--md-filled-select-text-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_text-field-label-text-populated-size: var(--md-filled-select-text-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_text-field-label-text-size: var(--md-filled-select-text-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_text-field-label-text-weight: var(--md-filled-select-text-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_text-field-leading-icon-color: var(--md-filled-select-text-field-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-leading-icon-size: var(--md-filled-select-text-field-leading-icon-size, 24px);--_text-field-supporting-text-color: var(--md-filled-select-text-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-supporting-text-font: var(--md-filled-select-text-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_text-field-supporting-text-line-height: var(--md-filled-select-text-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_text-field-supporting-text-size: var(--md-filled-select-text-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_text-field-supporting-text-weight: var(--md-filled-select-text-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_text-field-trailing-icon-color: var(--md-filled-select-text-field-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-trailing-icon-size: var(--md-filled-select-text-field-trailing-icon-size, 24px);--_text-field-container-shape-start-start: var(--md-filled-select-text-field-container-shape-start-start, var(--md-filled-select-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_text-field-container-shape-start-end: var(--md-filled-select-text-field-container-shape-start-end, var(--md-filled-select-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_text-field-container-shape-end-end: var(--md-filled-select-text-field-container-shape-end-end, var(--md-filled-select-text-field-container-shape, var(--md-sys-shape-corner-none, 0px)));--_text-field-container-shape-end-start: var(--md-filled-select-text-field-container-shape-end-start, var(--md-filled-select-text-field-container-shape, var(--md-sys-shape-corner-none, 0px)));--md-filled-field-active-indicator-color: var(--_text-field-active-indicator-color);--md-filled-field-active-indicator-height: var(--_text-field-active-indicator-height);--md-filled-field-container-color: var(--_text-field-container-color);--md-filled-field-container-shape-end-end: var(--_text-field-container-shape-end-end);--md-filled-field-container-shape-end-start: var(--_text-field-container-shape-end-start);--md-filled-field-container-shape-start-end: var(--_text-field-container-shape-start-end);--md-filled-field-container-shape-start-start: var(--_text-field-container-shape-start-start);--md-filled-field-content-color: var(--_text-field-input-text-color);--md-filled-field-content-font: var(--_text-field-input-text-font);--md-filled-field-content-line-height: var(--_text-field-input-text-line-height);--md-filled-field-content-size: var(--_text-field-input-text-size);--md-filled-field-content-weight: var(--_text-field-input-text-weight);--md-filled-field-disabled-active-indicator-color: var(--_text-field-disabled-active-indicator-color);--md-filled-field-disabled-active-indicator-height: var(--_text-field-disabled-active-indicator-height);--md-filled-field-disabled-active-indicator-opacity: var(--_text-field-disabled-active-indicator-opacity);--md-filled-field-disabled-container-color: var(--_text-field-disabled-container-color);--md-filled-field-disabled-container-opacity: var(--_text-field-disabled-container-opacity);--md-filled-field-disabled-content-color: var(--_text-field-disabled-input-text-color);--md-filled-field-disabled-content-opacity: var(--_text-field-disabled-input-text-opacity);--md-filled-field-disabled-label-text-color: var(--_text-field-disabled-label-text-color);--md-filled-field-disabled-label-text-opacity: var(--_text-field-disabled-label-text-opacity);--md-filled-field-disabled-leading-content-color: var(--_text-field-disabled-leading-icon-color);--md-filled-field-disabled-leading-content-opacity: var(--_text-field-disabled-leading-icon-opacity);--md-filled-field-disabled-supporting-text-color: var(--_text-field-disabled-supporting-text-color);--md-filled-field-disabled-supporting-text-opacity: var(--_text-field-disabled-supporting-text-opacity);--md-filled-field-disabled-trailing-content-color: var(--_text-field-disabled-trailing-icon-color);--md-filled-field-disabled-trailing-content-opacity: var(--_text-field-disabled-trailing-icon-opacity);--md-filled-field-error-active-indicator-color: var(--_text-field-error-active-indicator-color);--md-filled-field-error-content-color: var(--_text-field-error-input-text-color);--md-filled-field-error-focus-active-indicator-color: var(--_text-field-error-focus-active-indicator-color);--md-filled-field-error-focus-content-color: var(--_text-field-error-focus-input-text-color);--md-filled-field-error-focus-label-text-color: var(--_text-field-error-focus-label-text-color);--md-filled-field-error-focus-leading-content-color: var(--_text-field-error-focus-leading-icon-color);--md-filled-field-error-focus-supporting-text-color: var(--_text-field-error-focus-supporting-text-color);--md-filled-field-error-focus-trailing-content-color: var(--_text-field-error-focus-trailing-icon-color);--md-filled-field-error-hover-active-indicator-color: var(--_text-field-error-hover-active-indicator-color);--md-filled-field-error-hover-content-color: var(--_text-field-error-hover-input-text-color);--md-filled-field-error-hover-label-text-color: var(--_text-field-error-hover-label-text-color);--md-filled-field-error-hover-leading-content-color: var(--_text-field-error-hover-leading-icon-color);--md-filled-field-error-hover-state-layer-color: var(--_text-field-error-hover-state-layer-color);--md-filled-field-error-hover-state-layer-opacity: var(--_text-field-error-hover-state-layer-opacity);--md-filled-field-error-hover-supporting-text-color: var(--_text-field-error-hover-supporting-text-color);--md-filled-field-error-hover-trailing-content-color: var(--_text-field-error-hover-trailing-icon-color);--md-filled-field-error-label-text-color: var(--_text-field-error-label-text-color);--md-filled-field-error-leading-content-color: var(--_text-field-error-leading-icon-color);--md-filled-field-error-supporting-text-color: var(--_text-field-error-supporting-text-color);--md-filled-field-error-trailing-content-color: var(--_text-field-error-trailing-icon-color);--md-filled-field-focus-active-indicator-color: var(--_text-field-focus-active-indicator-color);--md-filled-field-focus-active-indicator-height: var(--_text-field-focus-active-indicator-height);--md-filled-field-focus-content-color: var(--_text-field-focus-input-text-color);--md-filled-field-focus-label-text-color: var(--_text-field-focus-label-text-color);--md-filled-field-focus-leading-content-color: var(--_text-field-focus-leading-icon-color);--md-filled-field-focus-supporting-text-color: var(--_text-field-focus-supporting-text-color);--md-filled-field-focus-trailing-content-color: var(--_text-field-focus-trailing-icon-color);--md-filled-field-hover-active-indicator-color: var(--_text-field-hover-active-indicator-color);--md-filled-field-hover-active-indicator-height: var(--_text-field-hover-active-indicator-height);--md-filled-field-hover-content-color: var(--_text-field-hover-input-text-color);--md-filled-field-hover-label-text-color: var(--_text-field-hover-label-text-color);--md-filled-field-hover-leading-content-color: var(--_text-field-hover-leading-icon-color);--md-filled-field-hover-state-layer-color: var(--_text-field-hover-state-layer-color);--md-filled-field-hover-state-layer-opacity: var(--_text-field-hover-state-layer-opacity);--md-filled-field-hover-supporting-text-color: var(--_text-field-hover-supporting-text-color);--md-filled-field-hover-trailing-content-color: var(--_text-field-hover-trailing-icon-color);--md-filled-field-label-text-color: var(--_text-field-label-text-color);--md-filled-field-label-text-font: var(--_text-field-label-text-font);--md-filled-field-label-text-line-height: var(--_text-field-label-text-line-height);--md-filled-field-label-text-populated-line-height: var(--_text-field-label-text-populated-line-height);--md-filled-field-label-text-populated-size: var(--_text-field-label-text-populated-size);--md-filled-field-label-text-size: var(--_text-field-label-text-size);--md-filled-field-label-text-weight: var(--_text-field-label-text-weight);--md-filled-field-leading-content-color: var(--_text-field-leading-icon-color);--md-filled-field-supporting-text-color: var(--_text-field-supporting-text-color);--md-filled-field-supporting-text-font: var(--_text-field-supporting-text-font);--md-filled-field-supporting-text-line-height: var(--_text-field-supporting-text-line-height);--md-filled-field-supporting-text-size: var(--_text-field-supporting-text-size);--md-filled-field-supporting-text-weight: var(--_text-field-supporting-text-weight);--md-filled-field-trailing-content-color: var(--_text-field-trailing-icon-color)}[has-start] .icon.leading{font-size:var(--_text-field-leading-icon-size);height:var(--_text-field-leading-icon-size);width:var(--_text-field-leading-icon-size)}.icon.trailing{font-size:var(--_text-field-trailing-icon-size);height:var(--_text-field-trailing-icon-size);width:var(--_text-field-trailing-icon-size)}
1254
1254
  `;/**
1255
1255
  * @license
1256
1256
  * Copyright 2024 Google LLC
@@ -1260,11 +1260,11 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
1260
1260
  * @license
1261
1261
  * Copyright 2023 Google LLC
1262
1262
  * SPDX-License-Identifier: Apache-2.0
1263
- */let uo=class extends Ld{};uo.styles=[ln,Rd],uo=d([g("md-filled-select")],uo);/**
1263
+ */let uo=class extends Ld{};uo.styles=[ln,Bd],uo=d([g("md-filled-select")],uo);/**
1264
1264
  * @license
1265
1265
  * Copyright 2023 Google LLC
1266
1266
  * SPDX-License-Identifier: Apache-2.0
1267
- */class Bd extends O{constructor(){super(...arguments),this.fieldTag=ae`md-outlined-field`}}/**
1267
+ */class Rd extends O{constructor(){super(...arguments),this.fieldTag=ae`md-outlined-field`}}/**
1268
1268
  * @license
1269
1269
  * Copyright 2024 Google LLC
1270
1270
  * SPDX-License-Identifier: Apache-2.0
@@ -1273,7 +1273,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
1273
1273
  * @license
1274
1274
  * Copyright 2023 Google LLC
1275
1275
  * SPDX-License-Identifier: Apache-2.0
1276
- */let vo=class extends Bd{};vo.styles=[ln,Dd],vo=d([g("md-outlined-select")],vo);/**
1276
+ */let vo=class extends Rd{};vo.styles=[ln,Dd],vo=d([g("md-outlined-select")],vo);/**
1277
1277
  * @license
1278
1278
  * Copyright 2023 Google LLC
1279
1279
  * SPDX-License-Identifier: Apache-2.0
@@ -1336,9 +1336,9 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
1336
1336
  * @license
1337
1337
  * Copyright 2023 Google LLC
1338
1338
  * SPDX-License-Identifier: Apache-2.0
1339
- */const Vd=Nt(tt(y));class I extends Vd{get nameStart(){return this.getAttribute("name-start")??this.name}set nameStart(e){this.setAttribute("name-start",e)}get nameEnd(){return this.getAttribute("name-end")??this.nameStart}set nameEnd(e){this.setAttribute("name-end",e)}get renderAriaLabelStart(){const{ariaLabel:e}=this;return this.ariaLabelStart||e&&`${e} start`||this.valueLabelStart||String(this.valueStart)}get renderAriaValueTextStart(){return this.ariaValueTextStart||this.valueLabelStart||String(this.valueStart)}get renderAriaLabelEnd(){const{ariaLabel:e}=this;return this.range?this.ariaLabelEnd||e&&`${e} end`||this.valueLabelEnd||String(this.valueEnd):e||this.valueLabel||String(this.value)}get renderAriaValueTextEnd(){if(this.range)return this.ariaValueTextEnd||this.valueLabelEnd||String(this.valueEnd);const{ariaValueText:e}=this;return e||this.valueLabel||String(this.value)}constructor(){super(),this.min=0,this.max=100,this.valueLabel="",this.valueLabelStart="",this.valueLabelEnd="",this.ariaLabelStart="",this.ariaValueTextStart="",this.ariaLabelEnd="",this.ariaValueTextEnd="",this.step=1,this.ticks=!1,this.labeled=!1,this.range=!1,this.handleStartHover=!1,this.handleEndHover=!1,this.startOnTop=!1,this.handlesOverlapping=!1,this.ripplePointerId=1,this.isRedispatchingEvent=!1,this.addEventListener("click",e=>{!pi(e)||!this.inputEnd||(this.focus(),ir(this.inputEnd))})}focus(){var e;(e=this.inputEnd)==null||e.focus()}willUpdate(e){var i,r;this.renderValueStart=e.has("valueStart")?this.valueStart:(i=this.inputStart)==null?void 0:i.valueAsNumber;const t=e.has("valueEnd")&&this.range||e.has("value");this.renderValueEnd=t?this.range?this.valueEnd:this.value:(r=this.inputEnd)==null?void 0:r.valueAsNumber,e.get("handleStartHover")!==void 0?this.toggleRippleHover(this.rippleStart,this.handleStartHover):e.get("handleEndHover")!==void 0&&this.toggleRippleHover(this.rippleEnd,this.handleEndHover)}updated(e){var t,i;if(this.range&&(this.renderValueStart=this.inputStart.valueAsNumber),this.renderValueEnd=this.inputEnd.valueAsNumber,this.range){const r=(this.max-this.min)/3;if(this.valueStart===void 0){this.inputStart.valueAsNumber=this.min+r;const s=this.inputStart.valueAsNumber;this.valueStart=this.renderValueStart=s}if(this.valueEnd===void 0){this.inputEnd.valueAsNumber=this.min+2*r;const s=this.inputEnd.valueAsNumber;this.valueEnd=this.renderValueEnd=s}}else this.value??(this.value=this.renderValueEnd);if(e.has("range")||e.has("renderValueStart")||e.has("renderValueEnd")||this.isUpdatePending){const r=(t=this.handleStart)==null?void 0:t.querySelector(".handleNub"),s=(i=this.handleEnd)==null?void 0:i.querySelector(".handleNub");this.handlesOverlapping=qd(r,s)}this.performUpdate()}render(){const e=this.step===0?1:this.step,t=Math.max(this.max-this.min,e),i=this.range?((this.renderValueStart??this.min)-this.min)/t:0,r=((this.renderValueEnd??this.min)-this.min)/t,s={"--_start-fraction":String(i),"--_end-fraction":String(r),"--_tick-count":String(t/e)},l={ranged:this.range},h=this.valueLabelStart||String(this.renderValueStart),p=(this.range?this.valueLabelEnd:this.valueLabel)||String(this.renderValueEnd),v={start:!0,value:this.renderValueStart,ariaLabel:this.renderAriaLabelStart,ariaValueText:this.renderAriaValueTextStart,ariaMin:this.min,ariaMax:this.valueEnd??this.max},f={start:!1,value:this.renderValueEnd,ariaLabel:this.renderAriaLabelEnd,ariaValueText:this.renderAriaValueTextEnd,ariaMin:this.range?this.valueStart??this.min:this.min,ariaMax:this.max},b={start:!0,hover:this.handleStartHover,label:h},_={start:!1,hover:this.handleEndHover,label:p},x={hover:this.handleStartHover||this.handleEndHover};return c` <div
1339
+ */const Vd=Nt(it(y));class I extends Vd{get nameStart(){return this.getAttribute("name-start")??this.name}set nameStart(e){this.setAttribute("name-start",e)}get nameEnd(){return this.getAttribute("name-end")??this.nameStart}set nameEnd(e){this.setAttribute("name-end",e)}get renderAriaLabelStart(){const{ariaLabel:e}=this;return this.ariaLabelStart||e&&`${e} start`||this.valueLabelStart||String(this.valueStart)}get renderAriaValueTextStart(){return this.ariaValueTextStart||this.valueLabelStart||String(this.valueStart)}get renderAriaLabelEnd(){const{ariaLabel:e}=this;return this.range?this.ariaLabelEnd||e&&`${e} end`||this.valueLabelEnd||String(this.valueEnd):e||this.valueLabel||String(this.value)}get renderAriaValueTextEnd(){if(this.range)return this.ariaValueTextEnd||this.valueLabelEnd||String(this.valueEnd);const{ariaValueText:e}=this;return e||this.valueLabel||String(this.value)}constructor(){super(),this.min=0,this.max=100,this.valueLabel="",this.valueLabelStart="",this.valueLabelEnd="",this.ariaLabelStart="",this.ariaValueTextStart="",this.ariaLabelEnd="",this.ariaValueTextEnd="",this.step=1,this.ticks=!1,this.labeled=!1,this.range=!1,this.handleStartHover=!1,this.handleEndHover=!1,this.startOnTop=!1,this.handlesOverlapping=!1,this.ripplePointerId=1,this.isRedispatchingEvent=!1,this.addEventListener("click",e=>{!pi(e)||!this.inputEnd||(this.focus(),ir(this.inputEnd))})}focus(){var e;(e=this.inputEnd)==null||e.focus()}willUpdate(e){var i,r;this.renderValueStart=e.has("valueStart")?this.valueStart:(i=this.inputStart)==null?void 0:i.valueAsNumber;const t=e.has("valueEnd")&&this.range||e.has("value");this.renderValueEnd=t?this.range?this.valueEnd:this.value:(r=this.inputEnd)==null?void 0:r.valueAsNumber,e.get("handleStartHover")!==void 0?this.toggleRippleHover(this.rippleStart,this.handleStartHover):e.get("handleEndHover")!==void 0&&this.toggleRippleHover(this.rippleEnd,this.handleEndHover)}updated(e){var t,i;if(this.range&&(this.renderValueStart=this.inputStart.valueAsNumber),this.renderValueEnd=this.inputEnd.valueAsNumber,this.range){const r=(this.max-this.min)/3;if(this.valueStart===void 0){this.inputStart.valueAsNumber=this.min+r;const s=this.inputStart.valueAsNumber;this.valueStart=this.renderValueStart=s}if(this.valueEnd===void 0){this.inputEnd.valueAsNumber=this.min+2*r;const s=this.inputEnd.valueAsNumber;this.valueEnd=this.renderValueEnd=s}}else this.value??(this.value=this.renderValueEnd);if(e.has("range")||e.has("renderValueStart")||e.has("renderValueEnd")||this.isUpdatePending){const r=(t=this.handleStart)==null?void 0:t.querySelector(".handleNub"),s=(i=this.handleEnd)==null?void 0:i.querySelector(".handleNub");this.handlesOverlapping=qd(r,s)}this.performUpdate()}render(){const e=this.step===0?1:this.step,t=Math.max(this.max-this.min,e),i=this.range?((this.renderValueStart??this.min)-this.min)/t:0,r=((this.renderValueEnd??this.min)-this.min)/t,s={"--_start-fraction":String(i),"--_end-fraction":String(r),"--_tick-count":String(t/e)},l={ranged:this.range},h=this.valueLabelStart||String(this.renderValueStart),p=(this.range?this.valueLabelEnd:this.valueLabel)||String(this.renderValueEnd),v={start:!0,value:this.renderValueStart,ariaLabel:this.renderAriaLabelStart,ariaValueText:this.renderAriaValueTextStart,ariaMin:this.min,ariaMax:this.valueEnd??this.max},f={start:!1,value:this.renderValueEnd,ariaLabel:this.renderAriaLabelEnd,ariaValueText:this.renderAriaValueTextEnd,ariaMin:this.range?this.valueStart??this.min:this.min,ariaMax:this.max},b={start:!0,hover:this.handleStartHover,label:h},_={start:!1,hover:this.handleEndHover,label:p},x={hover:this.handleStartHover||this.handleEndHover};return c` <div
1340
1340
  class="container ${L(l)}"
1341
- style=${yt(s)}>
1341
+ style=${_t(s)}>
1342
1342
  ${mo(this.range,()=>this.renderInput(v))}
1343
1343
  ${this.renderInput(f)} ${this.renderTrack()}
1344
1344
  <div class="handleContainerPadded">
@@ -1388,7 +1388,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
1388
1388
  .value=${String(t)}
1389
1389
  .tabIndex=${e?1:0}
1390
1390
  aria-label=${i||u}
1391
- aria-valuetext=${r} />`}async toggleRippleHover(e,t){const i=await e;i&&(t?i.handlePointerenter(new PointerEvent("pointerenter",{isPrimary:!0,pointerId:this.ripplePointerId})):i.handlePointerleave(new PointerEvent("pointerleave",{isPrimary:!0,pointerId:this.ripplePointerId})))}handleFocus(e){this.updateOnTop(e.target)}startAction(e){const t=e.target,i=t===this.inputStart?this.inputEnd:this.inputStart;this.action={canFlip:e.type==="pointerdown",flipped:!1,target:t,fixed:i,values:new Map([[t,t.valueAsNumber],[i,i==null?void 0:i.valueAsNumber]])}}finishAction(e){this.action=void 0}handleKeydown(e){this.startAction(e)}handleKeyup(e){this.finishAction(e)}handleDown(e){this.startAction(e),this.ripplePointerId=e.pointerId;const t=e.target===this.inputStart;this.handleStartHover=!this.disabled&&t&&!!this.handleStart,this.handleEndHover=!this.disabled&&!t&&!!this.handleEnd}async handleUp(e){if(!this.action)return;const{target:t,values:i,flipped:r}=this.action;await new Promise(requestAnimationFrame),t!==void 0&&(t.focus(),r&&t.valueAsNumber!==i.get(t)&&t.dispatchEvent(new Event("change",{bubbles:!0}))),this.finishAction(e)}handleMove(e){this.handleStartHover=!this.disabled&&cn(e,this.handleStart),this.handleEndHover=!this.disabled&&cn(e,this.handleEnd)}handleEnter(e){this.handleMove(e)}handleLeave(){this.handleStartHover=!1,this.handleEndHover=!1}updateOnTop(e){this.startOnTop=e.classList.contains("start")}needsClamping(){if(!this.action)return!1;const{target:e,fixed:t}=this.action;return e===this.inputStart?e.valueAsNumber>t.valueAsNumber:e.valueAsNumber<t.valueAsNumber}isActionFlipped(){const{action:e}=this;if(!e)return!1;const{target:t,fixed:i,values:r}=e;return e.canFlip&&r.get(t)===r.get(i)&&this.needsClamping()&&(e.canFlip=!1,e.flipped=!0,e.target=i,e.fixed=t),e.flipped}flipAction(){if(!this.action)return!1;const{target:e,fixed:t,values:i}=this.action,r=e.valueAsNumber!==t.valueAsNumber;return e.valueAsNumber=t.valueAsNumber,t.valueAsNumber=i.get(t),r}clampAction(){if(!this.needsClamping()||!this.action)return!1;const{target:e,fixed:t}=this.action;return e.valueAsNumber=t.valueAsNumber,!0}handleInput(e){if(this.isRedispatchingEvent)return;let t=!1,i=!1;this.range&&(this.isActionFlipped()&&(t=!0,i=this.flipAction()),this.clampAction()&&(t=!0,i=!1));const r=e.target;this.updateOnTop(r),this.range?(this.valueStart=this.inputStart.valueAsNumber,this.valueEnd=this.inputEnd.valueAsNumber):this.value=this.inputEnd.valueAsNumber,t&&e.stopPropagation(),i&&(this.isRedispatchingEvent=!0,it(r,e),this.isRedispatchingEvent=!1)}handleChange(e){const t=e.target,{target:i,values:r}=this.action??{};i&&i.valueAsNumber===r.get(t)||it(this,e),this.finishAction(e)}[Fe](){if(this.range){const e=new FormData;return e.append(this.nameStart,String(this.valueStart)),e.append(this.nameEnd,String(this.valueEnd)),e}return String(this.value)}formResetCallback(){if(this.range){const t=this.getAttribute("value-start");this.valueStart=t!==null?Number(t):void 0;const i=this.getAttribute("value-end");this.valueEnd=i!==null?Number(i):void 0;return}const e=this.getAttribute("value");this.value=e!==null?Number(e):void 0}formStateRestoreCallback(e){if(Array.isArray(e)){const[[,t],[,i]]=e;this.valueStart=Number(t),this.valueEnd=Number(i),this.range=!0;return}this.value=Number(e),this.range=!1}}re(I),I.shadowRootOptions={...y.shadowRootOptions,delegatesFocus:!0},d([n({type:Number})],I.prototype,"min",void 0),d([n({type:Number})],I.prototype,"max",void 0),d([n({type:Number})],I.prototype,"value",void 0),d([n({type:Number,attribute:"value-start"})],I.prototype,"valueStart",void 0),d([n({type:Number,attribute:"value-end"})],I.prototype,"valueEnd",void 0),d([n({attribute:"value-label"})],I.prototype,"valueLabel",void 0),d([n({attribute:"value-label-start"})],I.prototype,"valueLabelStart",void 0),d([n({attribute:"value-label-end"})],I.prototype,"valueLabelEnd",void 0),d([n({attribute:"aria-label-start"})],I.prototype,"ariaLabelStart",void 0),d([n({attribute:"aria-valuetext-start"})],I.prototype,"ariaValueTextStart",void 0),d([n({attribute:"aria-label-end"})],I.prototype,"ariaLabelEnd",void 0),d([n({attribute:"aria-valuetext-end"})],I.prototype,"ariaValueTextEnd",void 0),d([n({type:Number})],I.prototype,"step",void 0),d([n({type:Boolean})],I.prototype,"ticks",void 0),d([n({type:Boolean})],I.prototype,"labeled",void 0),d([n({type:Boolean})],I.prototype,"range",void 0),d([k("input.start")],I.prototype,"inputStart",void 0),d([k(".handle.start")],I.prototype,"handleStart",void 0),d([hs("md-ripple.start")],I.prototype,"rippleStart",void 0),d([k("input.end")],I.prototype,"inputEnd",void 0),d([k(".handle.end")],I.prototype,"handleEnd",void 0),d([hs("md-ripple.end")],I.prototype,"rippleEnd",void 0),d([w()],I.prototype,"handleStartHover",void 0),d([w()],I.prototype,"handleEndHover",void 0),d([w()],I.prototype,"startOnTop",void 0),d([w()],I.prototype,"handlesOverlapping",void 0),d([w()],I.prototype,"renderValueStart",void 0),d([w()],I.prototype,"renderValueEnd",void 0);function cn({x:a,y:e},t){if(!t)return!1;const{top:i,left:r,bottom:s,right:l}=t.getBoundingClientRect();return a>=r&&a<=l&&e>=i&&e<=s}function qd(a,e){if(!(a&&e))return!1;const t=a.getBoundingClientRect(),i=e.getBoundingClientRect();return!(t.top>i.bottom||t.right<i.left||t.bottom<i.top||t.left>i.right)}/**
1391
+ aria-valuetext=${r} />`}async toggleRippleHover(e,t){const i=await e;i&&(t?i.handlePointerenter(new PointerEvent("pointerenter",{isPrimary:!0,pointerId:this.ripplePointerId})):i.handlePointerleave(new PointerEvent("pointerleave",{isPrimary:!0,pointerId:this.ripplePointerId})))}handleFocus(e){this.updateOnTop(e.target)}startAction(e){const t=e.target,i=t===this.inputStart?this.inputEnd:this.inputStart;this.action={canFlip:e.type==="pointerdown",flipped:!1,target:t,fixed:i,values:new Map([[t,t.valueAsNumber],[i,i==null?void 0:i.valueAsNumber]])}}finishAction(e){this.action=void 0}handleKeydown(e){this.startAction(e)}handleKeyup(e){this.finishAction(e)}handleDown(e){this.startAction(e),this.ripplePointerId=e.pointerId;const t=e.target===this.inputStart;this.handleStartHover=!this.disabled&&t&&!!this.handleStart,this.handleEndHover=!this.disabled&&!t&&!!this.handleEnd}async handleUp(e){if(!this.action)return;const{target:t,values:i,flipped:r}=this.action;await new Promise(requestAnimationFrame),t!==void 0&&(t.focus(),r&&t.valueAsNumber!==i.get(t)&&t.dispatchEvent(new Event("change",{bubbles:!0}))),this.finishAction(e)}handleMove(e){this.handleStartHover=!this.disabled&&cn(e,this.handleStart),this.handleEndHover=!this.disabled&&cn(e,this.handleEnd)}handleEnter(e){this.handleMove(e)}handleLeave(){this.handleStartHover=!1,this.handleEndHover=!1}updateOnTop(e){this.startOnTop=e.classList.contains("start")}needsClamping(){if(!this.action)return!1;const{target:e,fixed:t}=this.action;return e===this.inputStart?e.valueAsNumber>t.valueAsNumber:e.valueAsNumber<t.valueAsNumber}isActionFlipped(){const{action:e}=this;if(!e)return!1;const{target:t,fixed:i,values:r}=e;return e.canFlip&&r.get(t)===r.get(i)&&this.needsClamping()&&(e.canFlip=!1,e.flipped=!0,e.target=i,e.fixed=t),e.flipped}flipAction(){if(!this.action)return!1;const{target:e,fixed:t,values:i}=this.action,r=e.valueAsNumber!==t.valueAsNumber;return e.valueAsNumber=t.valueAsNumber,t.valueAsNumber=i.get(t),r}clampAction(){if(!this.needsClamping()||!this.action)return!1;const{target:e,fixed:t}=this.action;return e.valueAsNumber=t.valueAsNumber,!0}handleInput(e){if(this.isRedispatchingEvent)return;let t=!1,i=!1;this.range&&(this.isActionFlipped()&&(t=!0,i=this.flipAction()),this.clampAction()&&(t=!0,i=!1));const r=e.target;this.updateOnTop(r),this.range?(this.valueStart=this.inputStart.valueAsNumber,this.valueEnd=this.inputEnd.valueAsNumber):this.value=this.inputEnd.valueAsNumber,t&&e.stopPropagation(),i&&(this.isRedispatchingEvent=!0,rt(r,e),this.isRedispatchingEvent=!1)}handleChange(e){const t=e.target,{target:i,values:r}=this.action??{};i&&i.valueAsNumber===r.get(t)||rt(this,e),this.finishAction(e)}[Fe](){if(this.range){const e=new FormData;return e.append(this.nameStart,String(this.valueStart)),e.append(this.nameEnd,String(this.valueEnd)),e}return String(this.value)}formResetCallback(){if(this.range){const t=this.getAttribute("value-start");this.valueStart=t!==null?Number(t):void 0;const i=this.getAttribute("value-end");this.valueEnd=i!==null?Number(i):void 0;return}const e=this.getAttribute("value");this.value=e!==null?Number(e):void 0}formStateRestoreCallback(e){if(Array.isArray(e)){const[[,t],[,i]]=e;this.valueStart=Number(t),this.valueEnd=Number(i),this.range=!0;return}this.value=Number(e),this.range=!1}}re(I),I.shadowRootOptions={...y.shadowRootOptions,delegatesFocus:!0},d([n({type:Number})],I.prototype,"min",void 0),d([n({type:Number})],I.prototype,"max",void 0),d([n({type:Number})],I.prototype,"value",void 0),d([n({type:Number,attribute:"value-start"})],I.prototype,"valueStart",void 0),d([n({type:Number,attribute:"value-end"})],I.prototype,"valueEnd",void 0),d([n({attribute:"value-label"})],I.prototype,"valueLabel",void 0),d([n({attribute:"value-label-start"})],I.prototype,"valueLabelStart",void 0),d([n({attribute:"value-label-end"})],I.prototype,"valueLabelEnd",void 0),d([n({attribute:"aria-label-start"})],I.prototype,"ariaLabelStart",void 0),d([n({attribute:"aria-valuetext-start"})],I.prototype,"ariaValueTextStart",void 0),d([n({attribute:"aria-label-end"})],I.prototype,"ariaLabelEnd",void 0),d([n({attribute:"aria-valuetext-end"})],I.prototype,"ariaValueTextEnd",void 0),d([n({type:Number})],I.prototype,"step",void 0),d([n({type:Boolean})],I.prototype,"ticks",void 0),d([n({type:Boolean})],I.prototype,"labeled",void 0),d([n({type:Boolean})],I.prototype,"range",void 0),d([k("input.start")],I.prototype,"inputStart",void 0),d([k(".handle.start")],I.prototype,"handleStart",void 0),d([hs("md-ripple.start")],I.prototype,"rippleStart",void 0),d([k("input.end")],I.prototype,"inputEnd",void 0),d([k(".handle.end")],I.prototype,"handleEnd",void 0),d([hs("md-ripple.end")],I.prototype,"rippleEnd",void 0),d([w()],I.prototype,"handleStartHover",void 0),d([w()],I.prototype,"handleEndHover",void 0),d([w()],I.prototype,"startOnTop",void 0),d([w()],I.prototype,"handlesOverlapping",void 0),d([w()],I.prototype,"renderValueStart",void 0),d([w()],I.prototype,"renderValueEnd",void 0);function cn({x:a,y:e},t){if(!t)return!1;const{top:i,left:r,bottom:s,right:l}=t.getBoundingClientRect();return a>=r&&a<=l&&e>=i&&e<=s}function qd(a,e){if(!(a&&e))return!1;const t=a.getBoundingClientRect(),i=e.getBoundingClientRect();return!(t.top>i.bottom||t.right<i.left||t.bottom<i.top||t.left>i.right)}/**
1392
1392
  * @license
1393
1393
  * Copyright 2024 Google LLC
1394
1394
  * SPDX-License-Identifier: Apache-2.0
@@ -1405,7 +1405,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
1405
1405
  * @license
1406
1406
  * Copyright 2021 Google LLC
1407
1407
  * SPDX-License-Identifier: Apache-2.0
1408
- */const Kd=vi(Nt(tt(y)));class Ve extends Kd{constructor(){super(),this.selected=!1,this.icons=!1,this.showOnlySelectedIcon=!1,this.required=!1,this.value="on",this.addEventListener("click",e=>{!pi(e)||!this.input||(this.focus(),ir(this.input))}),jd(this,"keydown"),this.addEventListener("keydown",e=>{Wd(e,()=>{e.defaultPrevented||e.key!=="Enter"||this.disabled||!this.input||this.input.click()})})}render(){return c`
1408
+ */const Kd=vi(Nt(it(y)));class Ve extends Kd{constructor(){super(),this.selected=!1,this.icons=!1,this.showOnlySelectedIcon=!1,this.required=!1,this.value="on",this.addEventListener("click",e=>{!pi(e)||!this.input||(this.focus(),ir(this.input))}),jd(this,"keydown"),this.addEventListener("keydown",e=>{Wd(e,()=>{e.defaultPrevented||e.key!=="Enter"||this.disabled||!this.input||this.input.click()})})}render(){return c`
1409
1409
  <div class="switch ${L(this.getRenderClasses())}">
1410
1410
  <input
1411
1411
  id="switch"
@@ -1449,7 +1449,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
1449
1449
  d="M6.4 19.2 4.8 17.6 10.4 12 4.8 6.4 6.4 4.8 12 10.4 17.6 4.8 19.2 6.4 13.6 12 19.2 17.6 17.6 19.2 12 13.6Z" />
1450
1450
  </svg>
1451
1451
  </slot>
1452
- `}renderTouchTarget(){return c`<span class="touch"></span>`}shouldShowIcons(){return this.icons||this.showOnlySelectedIcon}handleInput(e){const t=e.target;this.selected=t.checked}handleChange(e){it(this,e)}[Fe](){return this.selected?this.value:null}[bi](){return String(this.selected)}formResetCallback(){this.selected=this.hasAttribute("selected")}formStateRestoreCallback(e){this.selected=e==="true"}[bt](){return new As(()=>({checked:this.selected,required:this.required}))}[mt](){return this.input}}re(Ve),Ve.shadowRootOptions={mode:"open",delegatesFocus:!0},d([n({type:Boolean})],Ve.prototype,"selected",void 0),d([n({type:Boolean})],Ve.prototype,"icons",void 0),d([n({type:Boolean,attribute:"show-only-selected-icon"})],Ve.prototype,"showOnlySelectedIcon",void 0),d([n({type:Boolean})],Ve.prototype,"required",void 0),d([n()],Ve.prototype,"value",void 0),d([k("input")],Ve.prototype,"input",void 0);/**
1452
+ `}renderTouchTarget(){return c`<span class="touch"></span>`}shouldShowIcons(){return this.icons||this.showOnlySelectedIcon}handleInput(e){const t=e.target;this.selected=t.checked}handleChange(e){rt(this,e)}[Fe](){return this.selected?this.value:null}[bi](){return String(this.selected)}formResetCallback(){this.selected=this.hasAttribute("selected")}formStateRestoreCallback(e){this.selected=e==="true"}[mt](){return new As(()=>({checked:this.selected,required:this.required}))}[ft](){return this.input}}re(Ve),Ve.shadowRootOptions={mode:"open",delegatesFocus:!0},d([n({type:Boolean})],Ve.prototype,"selected",void 0),d([n({type:Boolean})],Ve.prototype,"icons",void 0),d([n({type:Boolean,attribute:"show-only-selected-icon"})],Ve.prototype,"showOnlySelectedIcon",void 0),d([n({type:Boolean})],Ve.prototype,"required",void 0),d([n()],Ve.prototype,"value",void 0),d([k("input")],Ve.prototype,"input",void 0);/**
1453
1453
  * @license
1454
1454
  * Copyright 2024 Google LLC
1455
1455
  * SPDX-License-Identifier: Apache-2.0
@@ -1462,7 +1462,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
1462
1462
  * @license
1463
1463
  * Copyright 2023 Google LLC
1464
1464
  * SPDX-License-Identifier: Apache-2.0
1465
- */var pn;const Wt=Symbol("indicator"),un=Symbol("animateIndicator"),Yd=an(y);class ke extends Yd{get selected(){return this.active}set selected(e){this.active=e}constructor(){super(),this.isTab=!0,this.active=!1,this.hasIcon=!1,this.iconOnly=!1,this.fullWidthIndicator=!1,this.internals=this.attachInternals(),this.internals.role="tab",this.addEventListener("keydown",this.handleKeydown.bind(this))}render(){const e=c`<div class="indicator"></div>`;return c`<div
1465
+ */var pn;const Wt=Symbol("indicator"),un=Symbol("animateIndicator"),Yd=an(y);class $e extends Yd{get selected(){return this.active}set selected(e){this.active=e}constructor(){super(),this.isTab=!0,this.active=!1,this.hasIcon=!1,this.iconOnly=!1,this.fullWidthIndicator=!1,this.internals=this.attachInternals(),this.internals.role="tab",this.addEventListener("keydown",this.handleKeydown.bind(this))}render(){const e=c`<div class="indicator"></div>`;return c`<div
1466
1466
  class="button"
1467
1467
  role="presentation"
1468
1468
  @click=${this.handleContentClick}>
@@ -1477,11 +1477,11 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
1477
1477
  ${this.fullWidthIndicator?u:e}
1478
1478
  </div>
1479
1479
  ${this.fullWidthIndicator?e:u}
1480
- </div>`}getContentClasses(){return{"has-icon":this.hasIcon,"has-label":!this.iconOnly}}updated(){this.internals.ariaSelected=String(this.active)}async handleKeydown(e){await 0,!e.defaultPrevented&&(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.click())}handleContentClick(e){e.stopPropagation(),this.click()}[(pn=Wt,un)](e){if(!this[Wt])return;this[Wt].getAnimations().forEach(i=>{i.cancel()});const t=this.getKeyframes(e);t!==null&&this[Wt].animate(t,{duration:250,easing:xe.EMPHASIZED})}getKeyframes(e){var b;const t=Xd();if(!this.active)return t?[{opacity:1},{transform:"none"}]:null;const i={},r=((b=e[Wt])==null?void 0:b.getBoundingClientRect())??{},s=r.left,l=r.width,h=this[Wt].getBoundingClientRect(),p=h.left,v=h.width,f=l/v;return!t&&s!==void 0&&p!==void 0&&!isNaN(f)?i.transform=`translateX(${(s-p).toFixed(4)}px) scaleX(${f.toFixed(4)})`:i.opacity=0,[i,{transform:"none"}]}handleSlotChange(){this.iconOnly=!1;for(const e of this.assignedDefaultNodes){const t=e.nodeType===Node.TEXT_NODE&&!!e.wholeText.match(/\S/);if(e.nodeType===Node.ELEMENT_NODE||t)return}this.iconOnly=!0}handleIconSlotChange(){this.hasIcon=this.assignedIcons.length>0}}d([n({type:Boolean,reflect:!0,attribute:"md-tab"})],ke.prototype,"isTab",void 0),d([n({type:Boolean,reflect:!0})],ke.prototype,"active",void 0),d([n({type:Boolean})],ke.prototype,"selected",null),d([n({type:Boolean,attribute:"has-icon"})],ke.prototype,"hasIcon",void 0),d([n({type:Boolean,attribute:"icon-only"})],ke.prototype,"iconOnly",void 0),d([k(".indicator")],ke.prototype,pn,void 0),d([w()],ke.prototype,"fullWidthIndicator",void 0),d([ya({flatten:!0})],ke.prototype,"assignedDefaultNodes",void 0),d([Y({slot:"icon",flatten:!0})],ke.prototype,"assignedIcons",void 0);function Xd(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}/**
1480
+ </div>`}getContentClasses(){return{"has-icon":this.hasIcon,"has-label":!this.iconOnly}}updated(){this.internals.ariaSelected=String(this.active)}async handleKeydown(e){await 0,!e.defaultPrevented&&(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.click())}handleContentClick(e){e.stopPropagation(),this.click()}[(pn=Wt,un)](e){if(!this[Wt])return;this[Wt].getAnimations().forEach(i=>{i.cancel()});const t=this.getKeyframes(e);t!==null&&this[Wt].animate(t,{duration:250,easing:we.EMPHASIZED})}getKeyframes(e){var b;const t=Xd();if(!this.active)return t?[{opacity:1},{transform:"none"}]:null;const i={},r=((b=e[Wt])==null?void 0:b.getBoundingClientRect())??{},s=r.left,l=r.width,h=this[Wt].getBoundingClientRect(),p=h.left,v=h.width,f=l/v;return!t&&s!==void 0&&p!==void 0&&!isNaN(f)?i.transform=`translateX(${(s-p).toFixed(4)}px) scaleX(${f.toFixed(4)})`:i.opacity=0,[i,{transform:"none"}]}handleSlotChange(){this.iconOnly=!1;for(const e of this.assignedDefaultNodes){const t=e.nodeType===Node.TEXT_NODE&&!!e.wholeText.match(/\S/);if(e.nodeType===Node.ELEMENT_NODE||t)return}this.iconOnly=!0}handleIconSlotChange(){this.hasIcon=this.assignedIcons.length>0}}d([n({type:Boolean,reflect:!0,attribute:"md-tab"})],$e.prototype,"isTab",void 0),d([n({type:Boolean,reflect:!0})],$e.prototype,"active",void 0),d([n({type:Boolean})],$e.prototype,"selected",null),d([n({type:Boolean,attribute:"has-icon"})],$e.prototype,"hasIcon",void 0),d([n({type:Boolean,attribute:"icon-only"})],$e.prototype,"iconOnly",void 0),d([k(".indicator")],$e.prototype,pn,void 0),d([w()],$e.prototype,"fullWidthIndicator",void 0),d([ya({flatten:!0})],$e.prototype,"assignedDefaultNodes",void 0),d([Y({slot:"icon",flatten:!0})],$e.prototype,"assignedIcons",void 0);function Xd(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}/**
1481
1481
  * @license
1482
1482
  * Copyright 2023 Google LLC
1483
1483
  * SPDX-License-Identifier: Apache-2.0
1484
- */class vn extends ke{constructor(){super(...arguments),this.inlineIcon=!1}getContentClasses(){return{...super.getContentClasses(),stacked:!this.inlineIcon}}}d([n({type:Boolean,attribute:"inline-icon"})],vn.prototype,"inlineIcon",void 0);/**
1484
+ */class vn extends $e{constructor(){super(...arguments),this.inlineIcon=!1}getContentClasses(){return{...super.getContentClasses(),stacked:!this.inlineIcon}}}d([n({type:Boolean,attribute:"inline-icon"})],vn.prototype,"inlineIcon",void 0);/**
1485
1485
  * @license
1486
1486
  * Copyright 2024 Google LLC
1487
1487
  * SPDX-License-Identifier: Apache-2.0
@@ -1499,7 +1499,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
1499
1499
  * @license
1500
1500
  * Copyright 2023 Google LLC
1501
1501
  * SPDX-License-Identifier: Apache-2.0
1502
- */class Jd extends ke{constructor(){super(...arguments),this.fullWidthIndicator=!0}}/**
1502
+ */class Jd extends $e{constructor(){super(...arguments),this.fullWidthIndicator=!0}}/**
1503
1503
  * @license
1504
1504
  * Copyright 2024 Google LLC
1505
1505
  * SPDX-License-Identifier: Apache-2.0
@@ -1541,7 +1541,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
1541
1541
  * @license
1542
1542
  * Copyright 2020 Google LLC
1543
1543
  * SPDX-License-Identifier: BSD-3-Clause
1544
- */const mn=Ea(class extends Ta{constructor(a){if(super(a),a.type!==et.PROPERTY&&a.type!==et.ATTRIBUTE&&a.type!==et.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!rh(a))throw Error("`live` bindings can only contain a single expression")}render(a){return a}update(a,[e]){if(e===ue||e===u)return e;const t=a.element,i=a.name;if(a.type===et.PROPERTY){if(e===t[i])return ue}else if(a.type===et.BOOLEAN_ATTRIBUTE){if(!!e===t.hasAttribute(i))return ue}else if(a.type===et.ATTRIBUTE&&t.getAttribute(i)===e+"")return ue;return oh(a),e}});/**
1544
+ */const mn=Ea(class extends Ta{constructor(a){if(super(a),a.type!==tt.PROPERTY&&a.type!==tt.ATTRIBUTE&&a.type!==tt.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!rh(a))throw Error("`live` bindings can only contain a single expression")}render(a){return a}update(a,[e]){if(e===ve||e===u)return e;const t=a.element,i=a.name;if(a.type===tt.PROPERTY){if(e===t[i])return ve}else if(a.type===tt.BOOLEAN_ATTRIBUTE){if(!!e===t.hasAttribute(i))return ve}else if(a.type===tt.ATTRIBUTE&&t.getAttribute(i)===e+"")return ve;return oh(a),e}});/**
1545
1545
  * @license
1546
1546
  * Copyright 2022 Google LLC
1547
1547
  * SPDX-License-Identifier: Apache-2.0
@@ -1553,7 +1553,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
1553
1553
  * @license
1554
1554
  * Copyright 2021 Google LLC
1555
1555
  * SPDX-License-Identifier: Apache-2.0
1556
- */const lh=sn(vi(Nt(tt(y))));class $ extends lh{constructor(){super(...arguments),this.error=!1,this.errorText="",this.label="",this.noAsterisk=!1,this.required=!1,this.value="",this.prefixText="",this.suffixText="",this.hasLeadingIcon=!1,this.hasTrailingIcon=!1,this.supportingText="",this.textDirection="",this.rows=2,this.cols=20,this.inputMode="",this.max="",this.maxLength=-1,this.min="",this.minLength=-1,this.noSpinner=!1,this.pattern="",this.placeholder="",this.readOnly=!1,this.multiple=!1,this.step="",this.type="text",this.autocomplete="",this.dirty=!1,this.focused=!1,this.nativeError=!1,this.nativeErrorText=""}get selectionDirection(){return this.getInputOrTextarea().selectionDirection}set selectionDirection(e){this.getInputOrTextarea().selectionDirection=e}get selectionEnd(){return this.getInputOrTextarea().selectionEnd}set selectionEnd(e){this.getInputOrTextarea().selectionEnd=e}get selectionStart(){return this.getInputOrTextarea().selectionStart}set selectionStart(e){this.getInputOrTextarea().selectionStart=e}get valueAsNumber(){const e=this.getInput();return e?e.valueAsNumber:NaN}set valueAsNumber(e){const t=this.getInput();t&&(t.valueAsNumber=e,this.value=t.value)}get valueAsDate(){const e=this.getInput();return e?e.valueAsDate:null}set valueAsDate(e){const t=this.getInput();t&&(t.valueAsDate=e,this.value=t.value)}get hasError(){return this.error||this.nativeError}select(){this.getInputOrTextarea().select()}setRangeText(...e){this.getInputOrTextarea().setRangeText(...e),this.value=this.getInputOrTextarea().value}setSelectionRange(e,t,i){this.getInputOrTextarea().setSelectionRange(e,t,i)}stepDown(e){const t=this.getInput();t&&(t.stepDown(e),this.value=t.value)}stepUp(e){const t=this.getInput();t&&(t.stepUp(e),this.value=t.value)}reset(){this.dirty=!1,this.value=this.getAttribute("value")??"",this.nativeError=!1,this.nativeErrorText=""}attributeChangedCallback(e,t,i){e==="value"&&this.dirty||super.attributeChangedCallback(e,t,i)}render(){const e={disabled:this.disabled,error:!this.disabled&&this.hasError,textarea:this.type==="textarea","no-spinner":this.noSpinner};return c`
1556
+ */const lh=sn(vi(Nt(it(y))));class $ extends lh{constructor(){super(...arguments),this.error=!1,this.errorText="",this.label="",this.noAsterisk=!1,this.required=!1,this.value="",this.prefixText="",this.suffixText="",this.hasLeadingIcon=!1,this.hasTrailingIcon=!1,this.supportingText="",this.textDirection="",this.rows=2,this.cols=20,this.inputMode="",this.max="",this.maxLength=-1,this.min="",this.minLength=-1,this.noSpinner=!1,this.pattern="",this.placeholder="",this.readOnly=!1,this.multiple=!1,this.step="",this.type="text",this.autocomplete="",this.dirty=!1,this.focused=!1,this.nativeError=!1,this.nativeErrorText=""}get selectionDirection(){return this.getInputOrTextarea().selectionDirection}set selectionDirection(e){this.getInputOrTextarea().selectionDirection=e}get selectionEnd(){return this.getInputOrTextarea().selectionEnd}set selectionEnd(e){this.getInputOrTextarea().selectionEnd=e}get selectionStart(){return this.getInputOrTextarea().selectionStart}set selectionStart(e){this.getInputOrTextarea().selectionStart=e}get valueAsNumber(){const e=this.getInput();return e?e.valueAsNumber:NaN}set valueAsNumber(e){const t=this.getInput();t&&(t.valueAsNumber=e,this.value=t.value)}get valueAsDate(){const e=this.getInput();return e?e.valueAsDate:null}set valueAsDate(e){const t=this.getInput();t&&(t.valueAsDate=e,this.value=t.value)}get hasError(){return this.error||this.nativeError}select(){this.getInputOrTextarea().select()}setRangeText(...e){this.getInputOrTextarea().setRangeText(...e),this.value=this.getInputOrTextarea().value}setSelectionRange(e,t,i){this.getInputOrTextarea().setSelectionRange(e,t,i)}stepDown(e){const t=this.getInput();t&&(t.stepDown(e),this.value=t.value)}stepUp(e){const t=this.getInput();t&&(t.stepUp(e),this.value=t.value)}reset(){this.dirty=!1,this.value=this.getAttribute("value")??"",this.nativeError=!1,this.nativeErrorText=""}attributeChangedCallback(e,t,i){e==="value"&&this.dirty||super.attributeChangedCallback(e,t,i)}render(){const e={disabled:this.disabled,error:!this.disabled&&this.hasError,textarea:this.type==="textarea","no-spinner":this.noSpinner};return c`
1557
1557
  <span class="text-field ${L(e)}">
1558
1558
  ${this.renderField()}
1559
1559
  </span>
@@ -1589,7 +1589,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
1589
1589
  `}renderInputOrTextarea(){const e={direction:this.textDirection},t=this.ariaLabel||this.label||u,i=this.autocomplete,r=(this.maxLength??-1)>-1,s=(this.minLength??-1)>-1;if(this.type==="textarea")return c`
1590
1590
  <textarea
1591
1591
  class="input"
1592
- style=${yt(e)}
1592
+ style=${_t(e)}
1593
1593
  aria-describedby="description"
1594
1594
  aria-invalid=${this.hasError}
1595
1595
  aria-label=${t}
@@ -1614,7 +1614,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
1614
1614
  ${l}
1615
1615
  <input
1616
1616
  class="input"
1617
- style=${yt(e)}
1617
+ style=${_t(e)}
1618
1618
  aria-describedby="description"
1619
1619
  aria-invalid=${this.hasError}
1620
1620
  aria-label=${t}
@@ -1641,7 +1641,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
1641
1641
  @select=${this.redispatchEvent} />
1642
1642
  ${h}
1643
1643
  </div>
1644
- `}renderPrefix(){return this.renderAffix(this.prefixText,!1)}renderSuffix(){return this.renderAffix(this.suffixText,!0)}renderAffix(e,t){return e?c`<span class="${L({suffix:t,prefix:!t})}">${e}</span>`:u}getErrorText(){return this.error?this.errorText:this.nativeErrorText}handleFocusChange(){var e;this.focused=((e=this.inputOrTextarea)==null?void 0:e.matches(":focus"))??!1}handleInput(e){this.dirty=!0,this.value=e.target.value}redispatchEvent(e){it(this,e)}getInputOrTextarea(){return this.inputOrTextarea||(this.connectedCallback(),this.scheduleUpdate()),this.isUpdatePending&&this.scheduleUpdate(),this.inputOrTextarea}getInput(){return this.type==="textarea"?null:this.getInputOrTextarea()}handleIconChange(){this.hasLeadingIcon=this.leadingIcons.length>0,this.hasTrailingIcon=this.trailingIcons.length>0}[Fe](){return this.value}formResetCallback(){this.reset()}formStateRestoreCallback(e){this.value=e}focus(){this.getInputOrTextarea().focus()}[bt](){return new nh(()=>({state:this,renderedControl:this.inputOrTextarea}))}[mt](){return this.inputOrTextarea}[$r](e){var i;e==null||e.preventDefault();const t=this.getErrorText();this.nativeError=!!e,this.nativeErrorText=this.validationMessage,t===this.getErrorText()&&((i=this.field)==null||i.reannounceError())}}re($),$.shadowRootOptions={...y.shadowRootOptions,delegatesFocus:!0},d([n({type:Boolean,reflect:!0})],$.prototype,"error",void 0),d([n({attribute:"error-text"})],$.prototype,"errorText",void 0),d([n()],$.prototype,"label",void 0),d([n({type:Boolean,attribute:"no-asterisk"})],$.prototype,"noAsterisk",void 0),d([n({type:Boolean,reflect:!0})],$.prototype,"required",void 0),d([n()],$.prototype,"value",void 0),d([n({attribute:"prefix-text"})],$.prototype,"prefixText",void 0),d([n({attribute:"suffix-text"})],$.prototype,"suffixText",void 0),d([n({type:Boolean,attribute:"has-leading-icon"})],$.prototype,"hasLeadingIcon",void 0),d([n({type:Boolean,attribute:"has-trailing-icon"})],$.prototype,"hasTrailingIcon",void 0),d([n({attribute:"supporting-text"})],$.prototype,"supportingText",void 0),d([n({attribute:"text-direction"})],$.prototype,"textDirection",void 0),d([n({type:Number})],$.prototype,"rows",void 0),d([n({type:Number})],$.prototype,"cols",void 0),d([n({reflect:!0})],$.prototype,"inputMode",void 0),d([n()],$.prototype,"max",void 0),d([n({type:Number})],$.prototype,"maxLength",void 0),d([n()],$.prototype,"min",void 0),d([n({type:Number})],$.prototype,"minLength",void 0),d([n({type:Boolean,attribute:"no-spinner"})],$.prototype,"noSpinner",void 0),d([n()],$.prototype,"pattern",void 0),d([n({reflect:!0,converter:sh})],$.prototype,"placeholder",void 0),d([n({type:Boolean,reflect:!0})],$.prototype,"readOnly",void 0),d([n({type:Boolean,reflect:!0})],$.prototype,"multiple",void 0),d([n()],$.prototype,"step",void 0),d([n({reflect:!0})],$.prototype,"type",void 0),d([n({reflect:!0})],$.prototype,"autocomplete",void 0),d([w()],$.prototype,"dirty",void 0),d([w()],$.prototype,"focused",void 0),d([w()],$.prototype,"nativeError",void 0),d([w()],$.prototype,"nativeErrorText",void 0),d([k(".input")],$.prototype,"inputOrTextarea",void 0),d([k(".field")],$.prototype,"field",void 0),d([Y({slot:"leading-icon"})],$.prototype,"leadingIcons",void 0),d([Y({slot:"trailing-icon"})],$.prototype,"trailingIcons",void 0);/**
1644
+ `}renderPrefix(){return this.renderAffix(this.prefixText,!1)}renderSuffix(){return this.renderAffix(this.suffixText,!0)}renderAffix(e,t){return e?c`<span class="${L({suffix:t,prefix:!t})}">${e}</span>`:u}getErrorText(){return this.error?this.errorText:this.nativeErrorText}handleFocusChange(){var e;this.focused=((e=this.inputOrTextarea)==null?void 0:e.matches(":focus"))??!1}handleInput(e){this.dirty=!0,this.value=e.target.value}redispatchEvent(e){rt(this,e)}getInputOrTextarea(){return this.inputOrTextarea||(this.connectedCallback(),this.scheduleUpdate()),this.isUpdatePending&&this.scheduleUpdate(),this.inputOrTextarea}getInput(){return this.type==="textarea"?null:this.getInputOrTextarea()}handleIconChange(){this.hasLeadingIcon=this.leadingIcons.length>0,this.hasTrailingIcon=this.trailingIcons.length>0}[Fe](){return this.value}formResetCallback(){this.reset()}formStateRestoreCallback(e){this.value=e}focus(){this.getInputOrTextarea().focus()}[mt](){return new nh(()=>({state:this,renderedControl:this.inputOrTextarea}))}[ft](){return this.inputOrTextarea}[$r](e){var i;e==null||e.preventDefault();const t=this.getErrorText();this.nativeError=!!e,this.nativeErrorText=this.validationMessage,t===this.getErrorText()&&((i=this.field)==null||i.reannounceError())}}re($),$.shadowRootOptions={...y.shadowRootOptions,delegatesFocus:!0},d([n({type:Boolean,reflect:!0})],$.prototype,"error",void 0),d([n({attribute:"error-text"})],$.prototype,"errorText",void 0),d([n()],$.prototype,"label",void 0),d([n({type:Boolean,attribute:"no-asterisk"})],$.prototype,"noAsterisk",void 0),d([n({type:Boolean,reflect:!0})],$.prototype,"required",void 0),d([n()],$.prototype,"value",void 0),d([n({attribute:"prefix-text"})],$.prototype,"prefixText",void 0),d([n({attribute:"suffix-text"})],$.prototype,"suffixText",void 0),d([n({type:Boolean,attribute:"has-leading-icon"})],$.prototype,"hasLeadingIcon",void 0),d([n({type:Boolean,attribute:"has-trailing-icon"})],$.prototype,"hasTrailingIcon",void 0),d([n({attribute:"supporting-text"})],$.prototype,"supportingText",void 0),d([n({attribute:"text-direction"})],$.prototype,"textDirection",void 0),d([n({type:Number})],$.prototype,"rows",void 0),d([n({type:Number})],$.prototype,"cols",void 0),d([n({reflect:!0})],$.prototype,"inputMode",void 0),d([n()],$.prototype,"max",void 0),d([n({type:Number})],$.prototype,"maxLength",void 0),d([n()],$.prototype,"min",void 0),d([n({type:Number})],$.prototype,"minLength",void 0),d([n({type:Boolean,attribute:"no-spinner"})],$.prototype,"noSpinner",void 0),d([n()],$.prototype,"pattern",void 0),d([n({reflect:!0,converter:sh})],$.prototype,"placeholder",void 0),d([n({type:Boolean,reflect:!0})],$.prototype,"readOnly",void 0),d([n({type:Boolean,reflect:!0})],$.prototype,"multiple",void 0),d([n()],$.prototype,"step",void 0),d([n({reflect:!0})],$.prototype,"type",void 0),d([n({reflect:!0})],$.prototype,"autocomplete",void 0),d([w()],$.prototype,"dirty",void 0),d([w()],$.prototype,"focused",void 0),d([w()],$.prototype,"nativeError",void 0),d([w()],$.prototype,"nativeErrorText",void 0),d([k(".input")],$.prototype,"inputOrTextarea",void 0),d([k(".field")],$.prototype,"field",void 0),d([Y({slot:"leading-icon"})],$.prototype,"leadingIcons",void 0),d([Y({slot:"trailing-icon"})],$.prototype,"trailingIcons",void 0);/**
1645
1645
  * @license
1646
1646
  * Copyright 2021 Google LLC
1647
1647
  * SPDX-License-Identifier: Apache-2.0
@@ -1845,7 +1845,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
1845
1845
  margin-block-start: var(--scb-accordion-spacing-block-start, 0);
1846
1846
  margin-block-end: var(--scb-accordion-spacing-block-end, 0);
1847
1847
  }
1848
- `,Si([n({type:Boolean,reflect:!0})],o.ScbAccordion.prototype,"detached",2),Si([n({type:String,reflect:!0})],o.ScbAccordion.prototype,"spacing",2),Si([n({type:String,attribute:"spacing-top",reflect:!0})],o.ScbAccordion.prototype,"spacingTop",2),Si([n({type:String,attribute:"spacing-bottom",reflect:!0})],o.ScbAccordion.prototype,"spacingBottom",2),o.ScbAccordion=Si([g("scb-accordion")],o.ScbAccordion);var gh=Object.defineProperty,yh=Object.getOwnPropertyDescriptor,_n=a=>{throw TypeError(a)},$e=(a,e,t,i)=>{for(var r=i>1?void 0:i?yh(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&gh(e,t,r),r},_h=(a,e,t)=>e.has(a)||_n("Cannot "+t),xh=(a,e,t)=>e.has(a)?_n("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),xn=(a,e,t)=>(_h(a,e,"access private method"),t),Pr,wo;o.ScbIconButton=class extends y{constructor(){super(...arguments),xh(this,Pr),this.icon="home",this.tooltip="",this.ariaLabel="",this.variant="standard",this.toggle=!1,this.selected=!1,this.toggleofficon="add",this.toggleonicon="remove",this.disabled=!1,this.spacing="",this.__loadedVariants=new Set,this.__iconLoaded=!1,this.__lastMdHost=null,this.__onInnerChange=()=>{const e=this.__getMdHost(),t=!!(e!=null&&e.selected);this.toggle&&(this.selected=t),this.dispatchEvent(new CustomEvent("change",{detail:{selected:t},bubbles:!0,composed:!0}))}}async firstUpdated(){await this.__ensureDepsLoaded(),await this.updateComplete,this.__attachChangeListener(),this.__syncTitleAndAria(),xn(this,Pr,wo).call(this)}updated(e){if(super.updated(e),e.has("spacing")&&xn(this,Pr,wo).call(this),e.has("variant")){this.__ensureDepsLoaded().then(()=>{queueMicrotask(()=>{this.__attachChangeListener(),this.__syncTitleAndAria()})});return}(e.has("toggle")||e.has("icon")||e.has("toggleofficon")||e.has("toggleonicon")||e.has("selected")||e.has("disabled")||e.has("tooltip")||e.has("ariaLabel"))&&queueMicrotask(()=>{this.__attachChangeListener(),this.__syncTitleAndAria()})}disconnectedCallback(){var e,t;(t=(e=this.__lastMdHost)==null?void 0:e.removeEventListener)==null||t.call(e,"change",this.__onInnerChange),this.__lastMdHost=null,super.disconnectedCallback()}async __ensureDepsLoaded(){if(!this.__loadedVariants.has(this.variant)){switch(this.variant){case"filled":await Promise.resolve().then(()=>Gc);break;case"outlined":await Promise.resolve().then(()=>ed);break;case"filled-tonal":await Promise.resolve().then(()=>Xc);break;default:await Promise.resolve().then(()=>Jc);break}this.__loadedVariants.add(this.variant)}this.__iconLoaded||(await Promise.resolve().then(()=>Ie),this.__iconLoaded=!0)}__getMdHost(){return this.renderRoot.querySelector("md-filled-icon-button, md-outlined-icon-button, md-filled-tonal-icon-button, md-icon-button")}__attachChangeListener(){var t,i;const e=this.__getMdHost();e&&e!==this.__lastMdHost&&((i=(t=this.__lastMdHost)==null?void 0:t.removeEventListener)==null||i.call(t,"change",this.__onInnerChange),e.addEventListener("change",this.__onInnerChange),this.__lastMdHost=e),this.toggle&&e&&"selected"in e&&(e.selected=this.selected)}__syncTitleAndAria(){const e=this.__getMdHost();if(!e)return;const t=(this.tooltip||this.getAttribute("title")||"").trim(),i=(this.ariaLabel||this.getAttribute("aria-label")||"").trim(),r=this.getAttribute("aria-controls"),s=this.getAttribute("aria-expanded");this.tooltip&&this.setAttribute("title",t);const l=i||t||this.icon.trim()||void 0;l?e.setAttribute("aria-label",l):e.removeAttribute("aria-label"),t?e.setAttribute("title",t):e.removeAttribute("title"),r!==null?e.setAttribute("aria-controls",r):e.removeAttribute("aria-controls"),s!==null?e.setAttribute("aria-expanded",s):e.removeAttribute("aria-expanded")}mapSpacingToken(e){if(!e)return;const t=String(e).trim();if(t)return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}__renderToggleIcons(){return c`
1848
+ `,Si([n({type:Boolean,reflect:!0})],o.ScbAccordion.prototype,"detached",2),Si([n({type:String,reflect:!0})],o.ScbAccordion.prototype,"spacing",2),Si([n({type:String,attribute:"spacing-top",reflect:!0})],o.ScbAccordion.prototype,"spacingTop",2),Si([n({type:String,attribute:"spacing-bottom",reflect:!0})],o.ScbAccordion.prototype,"spacingBottom",2),o.ScbAccordion=Si([g("scb-accordion")],o.ScbAccordion);var gh=Object.defineProperty,yh=Object.getOwnPropertyDescriptor,_n=a=>{throw TypeError(a)},le=(a,e,t,i)=>{for(var r=i>1?void 0:i?yh(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&gh(e,t,r),r},_h=(a,e,t)=>e.has(a)||_n("Cannot "+t),xh=(a,e,t)=>e.has(a)?_n("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),xn=(a,e,t)=>(_h(a,e,"access private method"),t),Pr,wo;o.ScbIconButton=class extends y{constructor(){super(...arguments),xh(this,Pr),this.icon="home",this.tooltip="",this.ariaLabel="",this.variant="standard",this.toggle=!1,this.selected=!1,this.toggleofficon="add",this.toggleonicon="remove",this.disabled=!1,this.spacing="",this.spacingTop="",this.spacingBottom="",this.__loadedVariants=new Set,this.__iconLoaded=!1,this.__lastMdHost=null,this.__onInnerChange=()=>{const e=this.__getMdHost(),t=!!(e!=null&&e.selected);this.toggle&&(this.selected=t),this.dispatchEvent(new CustomEvent("change",{detail:{selected:t},bubbles:!0,composed:!0}))}}async firstUpdated(){await this.__ensureDepsLoaded(),await this.updateComplete,this.__attachChangeListener(),this.__syncTitleAndAria(),xn(this,Pr,wo).call(this)}updated(e){if(super.updated(e),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&xn(this,Pr,wo).call(this),e.has("variant")){this.__ensureDepsLoaded().then(()=>{queueMicrotask(()=>{this.__attachChangeListener(),this.__syncTitleAndAria()})});return}(e.has("toggle")||e.has("icon")||e.has("toggleofficon")||e.has("toggleonicon")||e.has("selected")||e.has("disabled")||e.has("tooltip")||e.has("ariaLabel"))&&queueMicrotask(()=>{this.__attachChangeListener(),this.__syncTitleAndAria()})}disconnectedCallback(){var e,t;(t=(e=this.__lastMdHost)==null?void 0:e.removeEventListener)==null||t.call(e,"change",this.__onInnerChange),this.__lastMdHost=null,super.disconnectedCallback()}async __ensureDepsLoaded(){if(!this.__loadedVariants.has(this.variant)){switch(this.variant){case"filled":await Promise.resolve().then(()=>Gc);break;case"outlined":await Promise.resolve().then(()=>ed);break;case"filled-tonal":await Promise.resolve().then(()=>Xc);break;default:await Promise.resolve().then(()=>Jc);break}this.__loadedVariants.add(this.variant)}this.__iconLoaded||(await Promise.resolve().then(()=>Ie),this.__iconLoaded=!0)}__getMdHost(){return this.renderRoot.querySelector("md-filled-icon-button, md-outlined-icon-button, md-filled-tonal-icon-button, md-icon-button")}__attachChangeListener(){var t,i;const e=this.__getMdHost();e&&e!==this.__lastMdHost&&((i=(t=this.__lastMdHost)==null?void 0:t.removeEventListener)==null||i.call(t,"change",this.__onInnerChange),e.addEventListener("change",this.__onInnerChange),this.__lastMdHost=e),this.toggle&&e&&"selected"in e&&(e.selected=this.selected)}__syncTitleAndAria(){const e=this.__getMdHost();if(!e)return;const t=(this.tooltip||this.getAttribute("title")||"").trim(),i=(this.ariaLabel||this.getAttribute("aria-label")||"").trim(),r=this.getAttribute("aria-controls"),s=this.getAttribute("aria-expanded");this.tooltip&&this.setAttribute("title",t);const l=i||t||this.icon.trim()||void 0;l?e.setAttribute("aria-label",l):e.removeAttribute("aria-label"),t?e.setAttribute("title",t):e.removeAttribute("title"),r!==null?e.setAttribute("aria-controls",r):e.removeAttribute("aria-controls"),s!==null?e.setAttribute("aria-expanded",s):e.removeAttribute("aria-expanded")}mapSpacingToken(e){if(!e)return;const t=String(e).trim();if(t)return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}__renderToggleIcons(){return c`
1849
1849
  <md-icon aria-hidden="true">${this.toggleofficon}</md-icon>
1850
1850
  <md-icon slot="selected" aria-hidden="true">${this.toggleonicon}</md-icon>
1851
1851
  `}__renderSingleIcon(){return c`<md-icon aria-hidden="true">${this.icon}</md-icon>`}__renderMd(){const e=this.toggle?this.__renderToggleIcons():this.__renderSingleIcon();if(this.toggle)switch(this.variant){case"filled":return c`
@@ -1892,12 +1892,13 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
1892
1892
  <md-icon-button ?disabled=${this.disabled}>
1893
1893
  ${e}
1894
1894
  </md-icon-button>
1895
- `}}render(){return this.__renderMd()}},Pr=new WeakSet,wo=function(){const a=this.mapSpacingToken(this.spacing);a?this.style.setProperty("--scb-icon-button-spacing-block",a):this.style.removeProperty("--scb-icon-button-spacing-block")},o.ScbIconButton.styles=m`
1895
+ `}}render(){return this.__renderMd()}},Pr=new WeakSet,wo=function(){const a=this.mapSpacingToken(this.spacing),e=this.mapSpacingToken(this.spacingTop)??a,t=this.mapSpacingToken(this.spacingBottom)??a;e?this.style.setProperty("--scb-icon-button-spacing-block-start",e):this.style.removeProperty("--scb-icon-button-spacing-block-start"),t?this.style.setProperty("--scb-icon-button-spacing-block-end",t):this.style.removeProperty("--scb-icon-button-spacing-block-end")},o.ScbIconButton.styles=m`
1896
1896
  :host {
1897
1897
  display: inline-flex;
1898
- margin-block: var(--scb-icon-button-spacing-block, 0);
1898
+ margin-block-start: var(--scb-icon-button-spacing-block-start, 0);
1899
+ margin-block-end: var(--scb-icon-button-spacing-block-end, 0);
1899
1900
  }
1900
- `,$e([n({type:String})],o.ScbIconButton.prototype,"icon",2),$e([n({type:String})],o.ScbIconButton.prototype,"tooltip",2),$e([n({type:String,attribute:"aria-label"})],o.ScbIconButton.prototype,"ariaLabel",2),$e([n({type:String})],o.ScbIconButton.prototype,"variant",2),$e([n({type:Boolean,reflect:!0})],o.ScbIconButton.prototype,"toggle",2),$e([n({type:Boolean,reflect:!0})],o.ScbIconButton.prototype,"selected",2),$e([n({type:String})],o.ScbIconButton.prototype,"toggleofficon",2),$e([n({type:String})],o.ScbIconButton.prototype,"toggleonicon",2),$e([n({type:Boolean,reflect:!0})],o.ScbIconButton.prototype,"disabled",2),$e([n({type:String,reflect:!0})],o.ScbIconButton.prototype,"spacing",2),o.ScbIconButton=$e([g("scb-icon-button")],o.ScbIconButton);const wh=Object.freeze(Object.defineProperty({__proto__:null,get ScbIconButton(){return o.ScbIconButton}},Symbol.toStringTag,{value:"Module"}));var Sh=Object.defineProperty,kh=Object.getOwnPropertyDescriptor,wn=a=>{throw TypeError(a)},D=(a,e,t,i)=>{for(var r=i>1?void 0:i?kh(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Sh(e,t,r),r},So=(a,e,t)=>e.has(a)||wn("Cannot "+t),Or=(a,e,t)=>(So(a,e,"read from private field"),t?t.call(a):e.get(a)),ki=(a,e,t)=>e.has(a)?wn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),ko=(a,e,t,i)=>(So(a,e,"write to private field"),e.set(a,t),t),Sn=(a,e,t)=>(So(a,e,"access private method"),t),Lr,Rr,Br,Dr,$o,Co;o.ScbListItem=class extends y{constructor(){super(...arguments),ki(this,Dr),this.type="text",this.href="",this.itemHref="",this.target="",this.disabled=!1,this.label="",this.supportingText="",this.overline="",this.leading=!1,this.leadingVariant="",this.leadingIcon="",this.avatarLabel="",this.avatarAlt="",this.avatarVariant="icon",this.avatarSrc="",this.imgHrefImage="",this.trailing=!1,this.trailingVariant="",this.trailingIcon="",this.density=0,this.noDivider=!1,ki(this,Lr,!1),ki(this,Rr,!1),ki(this,Br,!1),this.onRowClick=()=>{var i,r;if(this.type==="link"&&(this.href||this.itemHref))return;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("scb-checkbox"),t=(r=this.shadowRoot)==null?void 0:r.querySelector("scb-switch");e&&(e.checked=!e.checked),t&&(t.selected=!t.selected)},ki(this,Co,e=>{var t;if(!e.defaultPrevented&&(e.key==="Enter"||e.key===" ")){if(this.type==="link"){const i=(t=this.shadowRoot)==null?void 0:t.querySelector("a[href]");if(i){e.preventDefault(),i.click();return}}e.preventDefault(),this.onRowClick()}})}static get styles(){return m`
1901
+ `,le([n({type:String})],o.ScbIconButton.prototype,"icon",2),le([n({type:String})],o.ScbIconButton.prototype,"tooltip",2),le([n({type:String,attribute:"aria-label"})],o.ScbIconButton.prototype,"ariaLabel",2),le([n({type:String})],o.ScbIconButton.prototype,"variant",2),le([n({type:Boolean,reflect:!0})],o.ScbIconButton.prototype,"toggle",2),le([n({type:Boolean,reflect:!0})],o.ScbIconButton.prototype,"selected",2),le([n({type:String})],o.ScbIconButton.prototype,"toggleofficon",2),le([n({type:String})],o.ScbIconButton.prototype,"toggleonicon",2),le([n({type:Boolean,reflect:!0})],o.ScbIconButton.prototype,"disabled",2),le([n({type:String,reflect:!0})],o.ScbIconButton.prototype,"spacing",2),le([n({type:String,attribute:"spacing-top",reflect:!0})],o.ScbIconButton.prototype,"spacingTop",2),le([n({type:String,attribute:"spacing-bottom",reflect:!0})],o.ScbIconButton.prototype,"spacingBottom",2),o.ScbIconButton=le([g("scb-icon-button")],o.ScbIconButton);const wh=Object.freeze(Object.defineProperty({__proto__:null,get ScbIconButton(){return o.ScbIconButton}},Symbol.toStringTag,{value:"Module"}));var Sh=Object.defineProperty,kh=Object.getOwnPropertyDescriptor,wn=a=>{throw TypeError(a)},D=(a,e,t,i)=>{for(var r=i>1?void 0:i?kh(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Sh(e,t,r),r},So=(a,e,t)=>e.has(a)||wn("Cannot "+t),Or=(a,e,t)=>(So(a,e,"read from private field"),t?t.call(a):e.get(a)),ki=(a,e,t)=>e.has(a)?wn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),ko=(a,e,t,i)=>(So(a,e,"write to private field"),e.set(a,t),t),Sn=(a,e,t)=>(So(a,e,"access private method"),t),Lr,Br,Rr,Dr,$o,Co;o.ScbListItem=class extends y{constructor(){super(...arguments),ki(this,Dr),this.type="text",this.href="",this.itemHref="",this.target="",this.disabled=!1,this.label="",this.supportingText="",this.overline="",this.leading=!1,this.leadingVariant="",this.leadingIcon="",this.avatarLabel="",this.avatarAlt="",this.avatarVariant="icon",this.avatarSrc="",this.imgHrefImage="",this.trailing=!1,this.trailingVariant="",this.trailingIcon="",this.density=0,this.noDivider=!1,ki(this,Lr,!1),ki(this,Br,!1),ki(this,Rr,!1),this.onRowClick=()=>{var i,r;if(this.type==="link"&&(this.href||this.itemHref))return;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("scb-checkbox"),t=(r=this.shadowRoot)==null?void 0:r.querySelector("scb-switch");e&&(e.checked=!e.checked),t&&(t.selected=!t.selected)},ki(this,Co,e=>{var t;if(!e.defaultPrevented&&(e.key==="Enter"||e.key===" ")){if(this.type==="link"){const i=(t=this.shadowRoot)==null?void 0:t.querySelector("a[href]");if(i){e.preventDefault(),i.click();return}}e.preventDefault(),this.onRowClick()}})}static get styles(){return m`
1901
1902
  :host {
1902
1903
  border-bottom: var(--stroke-border, 1px) solid var(--md-sys-color-outline-variant);
1903
1904
  margin-bottom: calc(var(--stroke-border, 1px) * -1);
@@ -2039,7 +2040,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
2039
2040
  </div>
2040
2041
 
2041
2042
  <md-focus-ring></md-focus-ring>
2042
- `}},Lr=new WeakMap,Rr=new WeakMap,Br=new WeakMap,Dr=new WeakSet,$o=async function(){const a=this.type==="link"&&(!this.trailing||this.trailingVariant==="icon");(this.leading&&this.leadingVariant==="icon"||this.trailing&&this.trailingVariant==="icon"||a)&&!Or(this,Lr)&&(await Promise.resolve().then(()=>Ie),ko(this,Lr,!0)),this.trailing&&this.trailingVariant==="checkbox"&&!Or(this,Rr)&&(await Promise.resolve().then(()=>vp),ko(this,Rr,!0)),this.trailing&&this.trailingVariant==="switch"&&!Or(this,Br)&&(await Promise.resolve().then(()=>Ip),ko(this,Br,!0))},Co=new WeakMap,D([n({type:String,reflect:!0,attribute:"type"})],o.ScbListItem.prototype,"type",2),D([n({type:String})],o.ScbListItem.prototype,"href",2),D([n({type:String,attribute:"item-href"})],o.ScbListItem.prototype,"itemHref",2),D([n({type:String,attribute:"target"})],o.ScbListItem.prototype,"target",2),D([n({type:Boolean,attribute:"disabled"})],o.ScbListItem.prototype,"disabled",2),D([n({type:String,reflect:!0})],o.ScbListItem.prototype,"label",2),D([n({type:String,attribute:"supporting-text"})],o.ScbListItem.prototype,"supportingText",2),D([n({type:String,attribute:"overline"})],o.ScbListItem.prototype,"overline",2),D([n({type:Boolean})],o.ScbListItem.prototype,"leading",2),D([n({type:String,attribute:"leading-variant",reflect:!0})],o.ScbListItem.prototype,"leadingVariant",2),D([n({type:String,attribute:"leading-icon"})],o.ScbListItem.prototype,"leadingIcon",2),D([n({type:String,attribute:"avatar-label"})],o.ScbListItem.prototype,"avatarLabel",2),D([n({type:String,attribute:"avatar-alt"})],o.ScbListItem.prototype,"avatarAlt",2),D([n({type:String,attribute:"avatar-variant"})],o.ScbListItem.prototype,"avatarVariant",2),D([n({type:String,attribute:"avatar-src"})],o.ScbListItem.prototype,"avatarSrc",2),D([n({type:String,reflect:!0,attribute:"img-href-image"})],o.ScbListItem.prototype,"imgHrefImage",2),D([n({type:Boolean})],o.ScbListItem.prototype,"trailing",2),D([n({type:String,attribute:"trailing-variant",reflect:!0})],o.ScbListItem.prototype,"trailingVariant",2),D([n({type:String,attribute:"trailing-icon"})],o.ScbListItem.prototype,"trailingIcon",2),D([n({type:Number,reflect:!0})],o.ScbListItem.prototype,"density",2),D([n({type:Boolean,attribute:"no-divider",reflect:!0})],o.ScbListItem.prototype,"noDivider",2),o.ScbListItem=D([g("scb-list-item")],o.ScbListItem);var $h=Object.defineProperty,Ch=Object.getOwnPropertyDescriptor,kn=a=>{throw TypeError(a)},Kt=(a,e,t,i)=>{for(var r=i>1?void 0:i?Ch(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&$h(e,t,r),r},$n=(a,e,t)=>e.has(a)||kn("Cannot "+t),Eh=(a,e,t)=>($n(a,e,"read from private field"),e.get(a)),Th=(a,e,t)=>e.has(a)?kn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),Ah=(a,e,t,i)=>($n(a,e,"write to private field"),e.set(a,t),t),Mr;o.ScbList=class extends y{constructor(){super(...arguments),Th(this,Mr,!1),this.noDivider=!1,this.spacing="",this.spacingTop="",this.spacingBottom="",this._onSlotChange=()=>this._setupItems()}async firstUpdated(){Eh(this,Mr)||(await Promise.resolve().then(()=>sd),Ah(this,Mr,!0)),this._setupItems(),this._applySpacing()}updated(e){super.updated(e),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&this._applySpacing()}_getItems(){var t;return(((t=this._slotEl)==null?void 0:t.assignedElements({flatten:!0}))??[]).filter(i=>i instanceof HTMLElement)}_setupItems(){var i;this._getItems().forEach((r,s)=>{r.hasAttribute("role")||r.setAttribute("role","listitem"),r.setAttribute("tabindex",s===0?"0":"-1")});const t=(i=this.renderRoot)==null?void 0:i.querySelector("md-list");t&&!t.hasAttribute("data-kbd")&&(t.setAttribute("data-kbd","true"),t.addEventListener("keydown",r=>this._onKeyDown(r)))}_onKeyDown(e){const t=this._getItems();if(!t.length)return;const i=t.findIndex(s=>s.getAttribute("tabindex")==="0"),r=s=>{const l=(s%t.length+t.length)%t.length;t.forEach(p=>p.setAttribute("tabindex","-1"));const h=t[l];h.setAttribute("tabindex","0"),h.focus()};switch(e.key){case"ArrowDown":case"ArrowRight":e.preventDefault(),r(i<0?0:i+1);break;case"ArrowUp":case"ArrowLeft":e.preventDefault(),r(i<0?0:i-1);break;case"Home":e.preventDefault(),r(0);break;case"End":e.preventDefault(),r(t.length-1);break}}_mapSpacingToken(e){if(!e)return;const t=String(e).trim();if(t)return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}_applySpacing(){const e=this._mapSpacingToken(this.spacing),t=this._mapSpacingToken(this.spacingTop)??e,i=this._mapSpacingToken(this.spacingBottom)??e;t?this.style.marginBlockStart=t:this.style.removeProperty("margin-block-start"),i?this.style.marginBlockEnd=i:this.style.removeProperty("margin-block-end")}render(){return c`
2043
+ `}},Lr=new WeakMap,Br=new WeakMap,Rr=new WeakMap,Dr=new WeakSet,$o=async function(){const a=this.type==="link"&&(!this.trailing||this.trailingVariant==="icon");(this.leading&&this.leadingVariant==="icon"||this.trailing&&this.trailingVariant==="icon"||a)&&!Or(this,Lr)&&(await Promise.resolve().then(()=>Ie),ko(this,Lr,!0)),this.trailing&&this.trailingVariant==="checkbox"&&!Or(this,Br)&&(await Promise.resolve().then(()=>vp),ko(this,Br,!0)),this.trailing&&this.trailingVariant==="switch"&&!Or(this,Rr)&&(await Promise.resolve().then(()=>Ip),ko(this,Rr,!0))},Co=new WeakMap,D([n({type:String,reflect:!0,attribute:"type"})],o.ScbListItem.prototype,"type",2),D([n({type:String})],o.ScbListItem.prototype,"href",2),D([n({type:String,attribute:"item-href"})],o.ScbListItem.prototype,"itemHref",2),D([n({type:String,attribute:"target"})],o.ScbListItem.prototype,"target",2),D([n({type:Boolean,attribute:"disabled"})],o.ScbListItem.prototype,"disabled",2),D([n({type:String,reflect:!0})],o.ScbListItem.prototype,"label",2),D([n({type:String,attribute:"supporting-text"})],o.ScbListItem.prototype,"supportingText",2),D([n({type:String,attribute:"overline"})],o.ScbListItem.prototype,"overline",2),D([n({type:Boolean})],o.ScbListItem.prototype,"leading",2),D([n({type:String,attribute:"leading-variant",reflect:!0})],o.ScbListItem.prototype,"leadingVariant",2),D([n({type:String,attribute:"leading-icon"})],o.ScbListItem.prototype,"leadingIcon",2),D([n({type:String,attribute:"avatar-label"})],o.ScbListItem.prototype,"avatarLabel",2),D([n({type:String,attribute:"avatar-alt"})],o.ScbListItem.prototype,"avatarAlt",2),D([n({type:String,attribute:"avatar-variant"})],o.ScbListItem.prototype,"avatarVariant",2),D([n({type:String,attribute:"avatar-src"})],o.ScbListItem.prototype,"avatarSrc",2),D([n({type:String,reflect:!0,attribute:"img-href-image"})],o.ScbListItem.prototype,"imgHrefImage",2),D([n({type:Boolean})],o.ScbListItem.prototype,"trailing",2),D([n({type:String,attribute:"trailing-variant",reflect:!0})],o.ScbListItem.prototype,"trailingVariant",2),D([n({type:String,attribute:"trailing-icon"})],o.ScbListItem.prototype,"trailingIcon",2),D([n({type:Number,reflect:!0})],o.ScbListItem.prototype,"density",2),D([n({type:Boolean,attribute:"no-divider",reflect:!0})],o.ScbListItem.prototype,"noDivider",2),o.ScbListItem=D([g("scb-list-item")],o.ScbListItem);var $h=Object.defineProperty,Ch=Object.getOwnPropertyDescriptor,kn=a=>{throw TypeError(a)},Kt=(a,e,t,i)=>{for(var r=i>1?void 0:i?Ch(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&$h(e,t,r),r},$n=(a,e,t)=>e.has(a)||kn("Cannot "+t),Eh=(a,e,t)=>($n(a,e,"read from private field"),e.get(a)),Th=(a,e,t)=>e.has(a)?kn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),Ah=(a,e,t,i)=>($n(a,e,"write to private field"),e.set(a,t),t),Mr;o.ScbList=class extends y{constructor(){super(...arguments),Th(this,Mr,!1),this.noDivider=!1,this.spacing="",this.spacingTop="",this.spacingBottom="",this._onSlotChange=()=>this._setupItems()}async firstUpdated(){Eh(this,Mr)||(await Promise.resolve().then(()=>sd),Ah(this,Mr,!0)),this._setupItems(),this._applySpacing()}updated(e){super.updated(e),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&this._applySpacing()}_getItems(){var t;return(((t=this._slotEl)==null?void 0:t.assignedElements({flatten:!0}))??[]).filter(i=>i instanceof HTMLElement)}_setupItems(){var i;this._getItems().forEach((r,s)=>{r.hasAttribute("role")||r.setAttribute("role","listitem"),r.setAttribute("tabindex",s===0?"0":"-1")});const t=(i=this.renderRoot)==null?void 0:i.querySelector("md-list");t&&!t.hasAttribute("data-kbd")&&(t.setAttribute("data-kbd","true"),t.addEventListener("keydown",r=>this._onKeyDown(r)))}_onKeyDown(e){const t=this._getItems();if(!t.length)return;const i=t.findIndex(s=>s.getAttribute("tabindex")==="0"),r=s=>{const l=(s%t.length+t.length)%t.length;t.forEach(p=>p.setAttribute("tabindex","-1"));const h=t[l];h.setAttribute("tabindex","0"),h.focus()};switch(e.key){case"ArrowDown":case"ArrowRight":e.preventDefault(),r(i<0?0:i+1);break;case"ArrowUp":case"ArrowLeft":e.preventDefault(),r(i<0?0:i-1);break;case"Home":e.preventDefault(),r(0);break;case"End":e.preventDefault(),r(t.length-1);break}}_mapSpacingToken(e){if(!e)return;const t=String(e).trim();if(t)return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}_applySpacing(){const e=this._mapSpacingToken(this.spacing),t=this._mapSpacingToken(this.spacingTop)??e,i=this._mapSpacingToken(this.spacingBottom)??e;t?this.style.marginBlockStart=t:this.style.removeProperty("margin-block-start"),i?this.style.marginBlockEnd=i:this.style.removeProperty("margin-block-end")}render(){return c`
2043
2044
  <md-list role="list" @slotchange=${this._onSlotChange}>
2044
2045
  <slot></slot>
2045
2046
  </md-list>
@@ -2063,7 +2064,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
2063
2064
  :host([no-divider]) ::slotted(scb-list-item) {
2064
2065
  --stroke-border: 0px;
2065
2066
  }
2066
- `],Kt([n({type:Boolean,attribute:"no-divider",reflect:!0})],o.ScbList.prototype,"noDivider",2),Kt([n({type:String,reflect:!0})],o.ScbList.prototype,"spacing",2),Kt([n({type:String,reflect:!0,attribute:"spacing-top"})],o.ScbList.prototype,"spacingTop",2),Kt([n({type:String,reflect:!0,attribute:"spacing-bottom"})],o.ScbList.prototype,"spacingBottom",2),Kt([k("slot")],o.ScbList.prototype,"_slotEl",2),o.ScbList=Kt([g("scb-list")],o.ScbList);var zh=Object.defineProperty,Ih=Object.getOwnPropertyDescriptor,ot=(a,e,t,i)=>{for(var r=i>1?void 0:i?Ih(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&zh(e,t,r),r};let Ph=0;o.ScbSearch=class extends y{constructor(){super(),this._internals=null,this.supportingText="Hinted search text",this.value="",this.name="",this.disabled=!1,this.size="default",this.fullScreen=!1,this._inputFocused=!1,this._visibleSuggestions=0,this._activeIndex=-1,this._listboxId=`scb-search-listbox-${++Ph}`,this._kbMode=!1,this._kbShouldShowRing=!1,this._onGlobalKeydown=e=>{e.key==="Tab"&&(this._kbShouldShowRing=!0,this._inputFocused&&this._updateInputRingVisibility())},this._onGlobalPointerDown=()=>{this._kbShouldShowRing=!1,this._inputFocused&&this._updateInputRingVisibility()},this._form=null,this._formResetHandler=null,this._initialValue="",this._listScrollHandler=()=>{const e=this._getActiveItem();this._kbMode&&e&&this._positionOptionRing(e)},"attachInternals"in this&&(this._internals=this.attachInternals())}connectedCallback(){super.connectedCallback(),this._onWindowResize=this._onWindowResize.bind(this),window.addEventListener("resize",this._onWindowResize,{passive:!0}),window.addEventListener("keydown",this._onGlobalKeydown,!0),window.addEventListener("pointerdown",this._onGlobalPointerDown,!0),this._initialValue=this.value??"",this._form=this.closest("form"),this._form&&(this._formResetHandler=()=>{this.value=this._initialValue;const e=this._inputEl();e&&(e.value=this._initialValue),this._syncFormValue(),this._filterSuggestions(this.value),this._activeIndex=-1,this._kbMode=!1,this._updateComboboxA11y()},this._form.addEventListener("reset",this._formResetHandler,!0)),this._syncFormValue()}disconnectedCallback(){const e=this._inputEl();e&&this._boundNativeKeydown&&e.removeEventListener("keydown",this._boundNativeKeydown,!0),this._detachListScrollListener(),window.removeEventListener("resize",this._onWindowResize),window.removeEventListener("keydown",this._onGlobalKeydown,!0),window.removeEventListener("pointerdown",this._onGlobalPointerDown,!0),this._form&&this._formResetHandler&&this._form.removeEventListener("reset",this._formResetHandler,!0),super.disconnectedCallback()}firstUpdated(){this._ensureListboxA11y(),this._updateComboboxA11y();const e=this._inputEl();e&&(this._boundNativeKeydown=t=>this._handleKey(t),e.addEventListener("keydown",this._boundNativeKeydown,!0),e.disabled=this.disabled)}updated(e){if(super.updated(e),this._ensureListboxA11y(),this._updateComboboxA11y(),this._attachListScrollListener(),(e.has("value")||e.has("disabled"))&&this._syncFormValue(),e.has("disabled")){this.toggleAttribute("aria-disabled",this.disabled);const t=this._inputEl();t&&(t.disabled=this.disabled)}}render(){const e=(this.value??"").trim().length>0,t=this._inputFocused&&e&&this._hasSuggestions;return c`
2067
+ `],Kt([n({type:Boolean,attribute:"no-divider",reflect:!0})],o.ScbList.prototype,"noDivider",2),Kt([n({type:String,reflect:!0})],o.ScbList.prototype,"spacing",2),Kt([n({type:String,reflect:!0,attribute:"spacing-top"})],o.ScbList.prototype,"spacingTop",2),Kt([n({type:String,reflect:!0,attribute:"spacing-bottom"})],o.ScbList.prototype,"spacingBottom",2),Kt([k("slot")],o.ScbList.prototype,"_slotEl",2),o.ScbList=Kt([g("scb-list")],o.ScbList);var zh=Object.defineProperty,Ih=Object.getOwnPropertyDescriptor,st=(a,e,t,i)=>{for(var r=i>1?void 0:i?Ih(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&zh(e,t,r),r};let Ph=0;o.ScbSearch=class extends y{constructor(){super(),this._internals=null,this.supportingText="Hinted search text",this.value="",this.name="",this.disabled=!1,this.size="default",this.fullScreen=!1,this._inputFocused=!1,this._visibleSuggestions=0,this._activeIndex=-1,this._listboxId=`scb-search-listbox-${++Ph}`,this._kbMode=!1,this._kbShouldShowRing=!1,this._onGlobalKeydown=e=>{e.key==="Tab"&&(this._kbShouldShowRing=!0,this._inputFocused&&this._updateInputRingVisibility())},this._onGlobalPointerDown=()=>{this._kbShouldShowRing=!1,this._inputFocused&&this._updateInputRingVisibility()},this._form=null,this._formResetHandler=null,this._initialValue="",this._listScrollHandler=()=>{const e=this._getActiveItem();this._kbMode&&e&&this._positionOptionRing(e)},"attachInternals"in this&&(this._internals=this.attachInternals())}connectedCallback(){super.connectedCallback(),this._onWindowResize=this._onWindowResize.bind(this),window.addEventListener("resize",this._onWindowResize,{passive:!0}),window.addEventListener("keydown",this._onGlobalKeydown,!0),window.addEventListener("pointerdown",this._onGlobalPointerDown,!0),this._initialValue=this.value??"",this._form=this.closest("form"),this._form&&(this._formResetHandler=()=>{this.value=this._initialValue;const e=this._inputEl();e&&(e.value=this._initialValue),this._syncFormValue(),this._filterSuggestions(this.value),this._activeIndex=-1,this._kbMode=!1,this._updateComboboxA11y()},this._form.addEventListener("reset",this._formResetHandler,!0)),this._syncFormValue()}disconnectedCallback(){const e=this._inputEl();e&&this._boundNativeKeydown&&e.removeEventListener("keydown",this._boundNativeKeydown,!0),this._detachListScrollListener(),window.removeEventListener("resize",this._onWindowResize),window.removeEventListener("keydown",this._onGlobalKeydown,!0),window.removeEventListener("pointerdown",this._onGlobalPointerDown,!0),this._form&&this._formResetHandler&&this._form.removeEventListener("reset",this._formResetHandler,!0),super.disconnectedCallback()}firstUpdated(){this._ensureListboxA11y(),this._updateComboboxA11y();const e=this._inputEl();e&&(this._boundNativeKeydown=t=>this._handleKey(t),e.addEventListener("keydown",this._boundNativeKeydown,!0),e.disabled=this.disabled)}updated(e){if(super.updated(e),this._ensureListboxA11y(),this._updateComboboxA11y(),this._attachListScrollListener(),(e.has("value")||e.has("disabled"))&&this._syncFormValue(),e.has("disabled")){this.toggleAttribute("aria-disabled",this.disabled);const t=this._inputEl();t&&(t.disabled=this.disabled)}}render(){const e=(this.value??"").trim().length>0,t=this._inputFocused&&e&&this._hasSuggestions;return c`
2067
2068
  <div class="ripple-wrapper">
2068
2069
  <md-icon class="leading">${e?"arrow_back":"search"}</md-icon>
2069
2070
 
@@ -2336,7 +2337,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
2336
2337
  color: var(--md-sys-color-on-surface);
2337
2338
  }
2338
2339
  }
2339
- `,ot([n({type:String,attribute:"trailing-icon"})],o.ScbSearch.prototype,"trailingIcon",2),ot([n({type:String,attribute:"supporting-text"})],o.ScbSearch.prototype,"supportingText",2),ot([n({type:String})],o.ScbSearch.prototype,"value",2),ot([n({type:String,reflect:!0})],o.ScbSearch.prototype,"name",2),ot([n({type:Boolean,reflect:!0})],o.ScbSearch.prototype,"disabled",2),ot([n({type:String,reflect:!0})],o.ScbSearch.prototype,"size",2),ot([n({type:Boolean,attribute:"full-screen",reflect:!0})],o.ScbSearch.prototype,"fullScreen",2),o.ScbSearch=ot([g("scb-search")],o.ScbSearch);var Oh=Object.defineProperty,Lh=Object.getOwnPropertyDescriptor,Cn=a=>{throw TypeError(a)},le=(a,e,t,i)=>{for(var r=i>1?void 0:i?Lh(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Oh(e,t,r),r},Rh=(a,e,t)=>e.has(a)||Cn("Cannot "+t),Bh=(a,e,t)=>e.has(a)?Cn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),En=(a,e,t)=>(Rh(a,e,"access private method"),t),Fr,Eo;o.ScbAvatar=class extends y{constructor(){super(...arguments),Bh(this,Fr),this.src="",this.alt="",this.label="",this.size="medium",this.shape="circular",this.iconName="",this.variant="image",this.spacing="",this.spacingTop="",this.spacingBottom="",this._imgError=!1,this._hasIconSlot=!1,this._onImgLoad=()=>{this._imgError=!1,this.dispatchEvent(new CustomEvent("image-load",{bubbles:!0,composed:!0}))},this._onImgError=()=>{this._imgError=!0,this.dispatchEvent(new CustomEvent("image-error",{bubbles:!0,composed:!0}))},this._onIconSlotChange=e=>{const t=e.currentTarget;this._hasIconSlot=(t.assignedNodes({flatten:!0})||[]).length>0}}async firstUpdated(){this.variant==="icon"&&await Promise.resolve().then(()=>Ie),En(this,Fr,Eo).call(this)}updated(e){super.updated(e),e.has("variant")&&this.variant==="icon"&&Promise.resolve().then(()=>Ie),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&En(this,Fr,Eo).call(this)}_initials(){const e=(this.label||this.alt||"").trim();if(!e)return"?";const t=e.split(/\s+/).filter(Boolean);if(t.length===1)return t[0].slice(0,1).toUpperCase();const i=t[0].slice(0,1),r=t[t.length-1].slice(0,1);return(i+r).toUpperCase()}_ariaLabel(){const e=(this.label||this.alt||"").trim();return e||null}mapSpacingToken(e){if(!e)return;const t=String(e).trim();if(t)return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}render(){const e=this._ariaLabel(),t=this.variant==="image"&&!!this.src&&!this._imgError,i=c`${u}
2340
+ `,st([n({type:String,attribute:"trailing-icon"})],o.ScbSearch.prototype,"trailingIcon",2),st([n({type:String,attribute:"supporting-text"})],o.ScbSearch.prototype,"supportingText",2),st([n({type:String})],o.ScbSearch.prototype,"value",2),st([n({type:String,reflect:!0})],o.ScbSearch.prototype,"name",2),st([n({type:Boolean,reflect:!0})],o.ScbSearch.prototype,"disabled",2),st([n({type:String,reflect:!0})],o.ScbSearch.prototype,"size",2),st([n({type:Boolean,attribute:"full-screen",reflect:!0})],o.ScbSearch.prototype,"fullScreen",2),o.ScbSearch=st([g("scb-search")],o.ScbSearch);var Oh=Object.defineProperty,Lh=Object.getOwnPropertyDescriptor,Cn=a=>{throw TypeError(a)},ce=(a,e,t,i)=>{for(var r=i>1?void 0:i?Lh(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Oh(e,t,r),r},Bh=(a,e,t)=>e.has(a)||Cn("Cannot "+t),Rh=(a,e,t)=>e.has(a)?Cn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),En=(a,e,t)=>(Bh(a,e,"access private method"),t),Fr,Eo;o.ScbAvatar=class extends y{constructor(){super(...arguments),Rh(this,Fr),this.src="",this.alt="",this.label="",this.size="medium",this.shape="circular",this.iconName="",this.variant="image",this.spacing="",this.spacingTop="",this.spacingBottom="",this._imgError=!1,this._hasIconSlot=!1,this._onImgLoad=()=>{this._imgError=!1,this.dispatchEvent(new CustomEvent("image-load",{bubbles:!0,composed:!0}))},this._onImgError=()=>{this._imgError=!0,this.dispatchEvent(new CustomEvent("image-error",{bubbles:!0,composed:!0}))},this._onIconSlotChange=e=>{const t=e.currentTarget;this._hasIconSlot=(t.assignedNodes({flatten:!0})||[]).length>0}}async firstUpdated(){this.variant==="icon"&&await Promise.resolve().then(()=>Ie),En(this,Fr,Eo).call(this)}updated(e){super.updated(e),e.has("variant")&&this.variant==="icon"&&Promise.resolve().then(()=>Ie),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&En(this,Fr,Eo).call(this)}_initials(){const e=(this.label||this.alt||"").trim();if(!e)return"?";const t=e.split(/\s+/).filter(Boolean);if(t.length===1)return t[0].slice(0,1).toUpperCase();const i=t[0].slice(0,1),r=t[t.length-1].slice(0,1);return(i+r).toUpperCase()}_ariaLabel(){const e=(this.label||this.alt||"").trim();return e||null}mapSpacingToken(e){if(!e)return;const t=String(e).trim();if(t)return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}render(){const e=this._ariaLabel(),t=this.variant==="image"&&!!this.src&&!this._imgError,i=c`${u}
2340
2341
  <slot name="icon" @slotchange=${this._onIconSlotChange}></slot>
2341
2342
  ${this._hasIconSlot?u:this.iconName?c`<md-icon aria-hidden="true">${this.iconName}</md-icon>`:c`<div class="fallback" part="fallback">${this._initials()}</div>`}
2342
2343
  `,r=t?c`<img
@@ -2442,7 +2443,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
2442
2443
  outline-offset: 2px;
2443
2444
  border-radius: var(--_radius);
2444
2445
  }
2445
- `,le([n({type:String})],o.ScbAvatar.prototype,"src",2),le([n({type:String})],o.ScbAvatar.prototype,"alt",2),le([n({type:String})],o.ScbAvatar.prototype,"label",2),le([n({type:String,reflect:!0})],o.ScbAvatar.prototype,"size",2),le([n({type:String,reflect:!0})],o.ScbAvatar.prototype,"shape",2),le([n({type:String,attribute:"icon-name",reflect:!0})],o.ScbAvatar.prototype,"iconName",2),le([n({type:String,reflect:!0})],o.ScbAvatar.prototype,"variant",2),le([n({type:String,reflect:!0})],o.ScbAvatar.prototype,"spacing",2),le([n({type:String,attribute:"spacing-top",reflect:!0})],o.ScbAvatar.prototype,"spacingTop",2),le([n({type:String,attribute:"spacing-bottom",reflect:!0})],o.ScbAvatar.prototype,"spacingBottom",2),le([w()],o.ScbAvatar.prototype,"_imgError",2),le([w()],o.ScbAvatar.prototype,"_hasIconSlot",2),o.ScbAvatar=le([g("scb-avatar")],o.ScbAvatar);var Dh=Object.defineProperty,Mh=Object.getOwnPropertyDescriptor,$i=(a,e,t,i)=>{for(var r=i>1?void 0:i?Mh(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Dh(e,t,r),r};o.ScbAppBar=class extends y{constructor(){super(...arguments),this.title="",this.type="default",this.position="default",this.searchSupportingText=""}handleAvatarSlotChange(e){e.target.assignedElements({flatten:!0}).forEach(r=>{r.tagName==="SCB-AVATAR"&&r.setAttribute("size","small")})}updated(e){e.has("title")&&this.dispatchEvent(new CustomEvent("title-changed",{detail:{title:this.title},bubbles:!0,composed:!0})),e.has("position")&&this.dispatchEvent(new CustomEvent("position-changed",{detail:{position:this.position},bubbles:!0,composed:!0})),e.has("type")&&this.dispatchEvent(new CustomEvent("type-changed",{detail:{type:this.type},bubbles:!0,composed:!0})),e.has("searchSupportingText")&&this.dispatchEvent(new CustomEvent("search-supporting-text-changed",{detail:{searchSupportingText:this.searchSupportingText},bubbles:!0,composed:!0}))}render(){switch(this.type){case"small-flexible":return c`
2446
+ `,ce([n({type:String})],o.ScbAvatar.prototype,"src",2),ce([n({type:String})],o.ScbAvatar.prototype,"alt",2),ce([n({type:String})],o.ScbAvatar.prototype,"label",2),ce([n({type:String,reflect:!0})],o.ScbAvatar.prototype,"size",2),ce([n({type:String,reflect:!0})],o.ScbAvatar.prototype,"shape",2),ce([n({type:String,attribute:"icon-name",reflect:!0})],o.ScbAvatar.prototype,"iconName",2),ce([n({type:String,reflect:!0})],o.ScbAvatar.prototype,"variant",2),ce([n({type:String,reflect:!0})],o.ScbAvatar.prototype,"spacing",2),ce([n({type:String,attribute:"spacing-top",reflect:!0})],o.ScbAvatar.prototype,"spacingTop",2),ce([n({type:String,attribute:"spacing-bottom",reflect:!0})],o.ScbAvatar.prototype,"spacingBottom",2),ce([w()],o.ScbAvatar.prototype,"_imgError",2),ce([w()],o.ScbAvatar.prototype,"_hasIconSlot",2),o.ScbAvatar=ce([g("scb-avatar")],o.ScbAvatar);var Dh=Object.defineProperty,Mh=Object.getOwnPropertyDescriptor,$i=(a,e,t,i)=>{for(var r=i>1?void 0:i?Mh(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Dh(e,t,r),r};o.ScbAppBar=class extends y{constructor(){super(...arguments),this.title="",this.type="default",this.position="default",this.searchSupportingText=""}handleAvatarSlotChange(e){e.target.assignedElements({flatten:!0}).forEach(r=>{r.tagName==="SCB-AVATAR"&&r.setAttribute("size","small")})}updated(e){e.has("title")&&this.dispatchEvent(new CustomEvent("title-changed",{detail:{title:this.title},bubbles:!0,composed:!0})),e.has("position")&&this.dispatchEvent(new CustomEvent("position-changed",{detail:{position:this.position},bubbles:!0,composed:!0})),e.has("type")&&this.dispatchEvent(new CustomEvent("type-changed",{detail:{type:this.type},bubbles:!0,composed:!0})),e.has("searchSupportingText")&&this.dispatchEvent(new CustomEvent("search-supporting-text-changed",{detail:{searchSupportingText:this.searchSupportingText},bubbles:!0,composed:!0}))}render(){switch(this.type){case"small-flexible":return c`
2446
2447
  <header class="small-flexible ${this.position=="bottom"?"position-bottom":this.position=="top"?"position-top":""}" role="banner" aria-label="Small app bar">
2447
2448
  <div class="leading">
2448
2449
  <slot name="leading"></slot>
@@ -2675,7 +2676,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
2675
2676
  * @license
2676
2677
  * Copyright 2018 Google LLC
2677
2678
  * SPDX-License-Identifier: BSD-3-Clause
2678
- */const Ci=a=>a??u;var Nh=Object.defineProperty,Vh=Object.getOwnPropertyDescriptor,Tn=a=>{throw TypeError(a)},xt=(a,e,t,i)=>{for(var r=i>1?void 0:i?Vh(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Nh(e,t,r),r},qh=(a,e,t)=>e.has(a)||Tn("Cannot "+t),Uh=(a,e,t)=>(qh(a,e,"read from private field"),t?t.call(a):e.get(a)),Wh=(a,e,t)=>e.has(a)?Tn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),To;o.ScbLink=class extends y{constructor(){super(...arguments),this.href="",this.disabled=!1,this.ariaLabel="",Wh(this,To,e=>{this.disabled&&(e.preventDefault(),e.stopPropagation())})}render(){const e=this.target==="_blank"&&!this.rel?"noopener noreferrer":this.rel;return c`
2679
+ */const Ci=a=>a??u;var Nh=Object.defineProperty,Vh=Object.getOwnPropertyDescriptor,Tn=a=>{throw TypeError(a)},wt=(a,e,t,i)=>{for(var r=i>1?void 0:i?Vh(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Nh(e,t,r),r},qh=(a,e,t)=>e.has(a)||Tn("Cannot "+t),Uh=(a,e,t)=>(qh(a,e,"read from private field"),t?t.call(a):e.get(a)),Wh=(a,e,t)=>e.has(a)?Tn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),To;o.ScbLink=class extends y{constructor(){super(...arguments),this.href="",this.disabled=!1,this.ariaLabel="",Wh(this,To,e=>{this.disabled&&(e.preventDefault(),e.stopPropagation())})}render(){const e=this.target==="_blank"&&!this.rel?"noopener noreferrer":this.rel;return c`
2679
2680
  <a
2680
2681
  part="anchor"
2681
2682
  href=${Ci(this.disabled?void 0:this.href||void 0)}
@@ -2731,7 +2732,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
2731
2732
  a:focus-visible + md-focus-ring {
2732
2733
  display: block;
2733
2734
  }
2734
- `,xt([n({type:String,reflect:!0})],o.ScbLink.prototype,"href",2),xt([n({type:String,reflect:!0})],o.ScbLink.prototype,"target",2),xt([n({type:String,reflect:!0})],o.ScbLink.prototype,"rel",2),xt([n({type:String,reflect:!0})],o.ScbLink.prototype,"download",2),xt([n({type:Boolean,reflect:!0})],o.ScbLink.prototype,"disabled",2),xt([n({type:String,attribute:"aria-label"})],o.ScbLink.prototype,"ariaLabel",2),o.ScbLink=xt([g("scb-link")],o.ScbLink);var jh=Object.defineProperty,Kh=Object.getOwnPropertyDescriptor,Hr=(a,e,t,i)=>{for(var r=i>1?void 0:i?Kh(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&jh(e,t,r),r};o.SCBBreadcrumbItem=class extends y{constructor(){super(...arguments),this.label="",this.isCurrent=!1,this.href=""}static get styles(){return m`
2735
+ `,wt([n({type:String,reflect:!0})],o.ScbLink.prototype,"href",2),wt([n({type:String,reflect:!0})],o.ScbLink.prototype,"target",2),wt([n({type:String,reflect:!0})],o.ScbLink.prototype,"rel",2),wt([n({type:String,reflect:!0})],o.ScbLink.prototype,"download",2),wt([n({type:Boolean,reflect:!0})],o.ScbLink.prototype,"disabled",2),wt([n({type:String,attribute:"aria-label"})],o.ScbLink.prototype,"ariaLabel",2),o.ScbLink=wt([g("scb-link")],o.ScbLink);var jh=Object.defineProperty,Kh=Object.getOwnPropertyDescriptor,Hr=(a,e,t,i)=>{for(var r=i>1?void 0:i?Kh(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&jh(e,t,r),r};o.SCBBreadcrumbItem=class extends y{constructor(){super(...arguments),this.label="",this.isCurrent=!1,this.href=""}static get styles(){return m`
2735
2736
  .breadcrumb-separator {
2736
2737
  margin: var(--spacing-0) var(--spacing-3);
2737
2738
  color: var(--md-sys-color-on-surface);
@@ -2836,7 +2837,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
2836
2837
  <span class="breadcrumb-separator">/</span>
2837
2838
  ${i}`:c`${i}`):e.map(i=>i)}
2838
2839
  </div>
2839
- `}},Nr=new WeakSet,Ao=function(){const a=this.mapSpacingToken(this.spacing),e=this.mapSpacingToken(this.spacingTop)??a,t=this.mapSpacingToken(this.spacingBottom)??a;e?this.style.setProperty("--scb-breadcrumb-spacing-block-start",e):this.style.removeProperty("--scb-breadcrumb-spacing-block-start"),t?this.style.setProperty("--scb-breadcrumb-spacing-block-end",t):this.style.removeProperty("--scb-breadcrumb-spacing-block-end")},Ei([n({type:Boolean,attribute:"show-all",reflect:!0})],o.SCBBreadcrumb.prototype,"showAll",2),Ei([n({type:String,reflect:!0})],o.SCBBreadcrumb.prototype,"spacing",2),Ei([n({type:String,attribute:"spacing-top",reflect:!0})],o.SCBBreadcrumb.prototype,"spacingTop",2),Ei([n({type:String,attribute:"spacing-bottom",reflect:!0})],o.SCBBreadcrumb.prototype,"spacingBottom",2),o.SCBBreadcrumb=Ei([g("scb-breadcrumb")],o.SCBBreadcrumb);var Jh=Object.defineProperty,Qh=Object.getOwnPropertyDescriptor,In=a=>{throw TypeError(a)},ce=(a,e,t,i)=>{for(var r=i>1?void 0:i?Qh(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Jh(e,t,r),r},ep=(a,e,t)=>e.has(a)||In("Cannot "+t),tp=(a,e,t)=>e.has(a)?In("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),Pn=(a,e,t)=>(ep(a,e,"access private method"),t),Vr,zo;o.ScbButton=class extends y{constructor(){super(...arguments),tp(this,Vr),this.variant="filled",this.type="button",this.label="Button",this.trailingIcon=!1,this.icon="",this.disabled=!1,this.href="",this.target="",this.rel="",this.spacing="",this.spacingTop="",this.spacingBottom=""}__getMdHost(){return this.renderRoot.querySelector("md-filled-button, md-outlined-button, md-filled-tonal-button, md-text-button")}__getInnerNativeButton(e){var t;return((t=e==null?void 0:e.shadowRoot)==null?void 0:t.querySelector("button"))??null}__syncAriaToInner(){var v;const e=this.__getMdHost(),t=this.__getInnerNativeButton(e);if(!e||!t)return;const i=(this.getAttribute("aria-label")||"").trim(),r=(e.getAttribute("aria-label")||"").trim(),s=this.label.trim()===""?(this.icon||"").trim():"",l=i||r||s;l?t.setAttribute("aria-label",l):t.removeAttribute("aria-label");const h=this.getAttribute("aria-controls");h!==null?t.setAttribute("aria-controls",h):t.removeAttribute("aria-controls");const p=this.getAttribute("aria-expanded");p!==null?t.setAttribute("aria-expanded",p):t.removeAttribute("aria-expanded"),e.removeAttribute("aria-label"),e.removeAttribute("aria-controls"),e.removeAttribute("aria-expanded"),this.removeAttribute("aria-expanded"),(v=this.__ariaObserver)==null||v.disconnect(),this.__ariaObserver=new MutationObserver(f=>{const b=this.__getMdHost(),_=this.__getInnerNativeButton(b);if(!(!b||!_)){for(const x of f){if(x.type!=="attributes"||!x.attributeName)continue;const S=x.attributeName,C=this.getAttribute(S);if(S==="aria-label"){const T=(b.getAttribute("aria-label")||"").trim(),A=(C||T||(this.label.trim()===""?(this.icon||"").trim():"")).trim();A?_.setAttribute("aria-label",A):_.removeAttribute("aria-label"),b.removeAttribute("aria-label")}else(S==="aria-controls"||S==="aria-expanded")&&(C===null?_.removeAttribute(S):_.setAttribute(S,C),S==="aria-expanded"&&this.removeAttribute("aria-expanded"))}b.removeAttribute("aria-label"),b.removeAttribute("aria-controls"),b.removeAttribute("aria-expanded")}}),this.__ariaObserver.observe(this,{attributes:!0,attributeFilter:["aria-label","aria-controls","aria-expanded"]})}firstUpdated(){(this.type==="submit"||this.type==="reset")&&this.addEventListener("click",()=>{if(!this.disabled){const e=this.closest("form");e&&(this.type==="submit"&&e.requestSubmit(),this.type==="reset"&&e.reset())}}),this.__syncAriaToInner(),Pn(this,Vr,zo).call(this)}updated(e){e.has("variant")&&this.__syncAriaToInner(),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&Pn(this,Vr,zo).call(this)}disconnectedCallback(){var e;(e=this.__ariaObserver)==null||e.disconnect(),super.disconnectedCallback()}mapSpacingToken(e){if(!e)return;const t=String(e).trim();if(t)return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}static get styles(){return m`
2840
+ `}},Nr=new WeakSet,Ao=function(){const a=this.mapSpacingToken(this.spacing),e=this.mapSpacingToken(this.spacingTop)??a,t=this.mapSpacingToken(this.spacingBottom)??a;e?this.style.setProperty("--scb-breadcrumb-spacing-block-start",e):this.style.removeProperty("--scb-breadcrumb-spacing-block-start"),t?this.style.setProperty("--scb-breadcrumb-spacing-block-end",t):this.style.removeProperty("--scb-breadcrumb-spacing-block-end")},Ei([n({type:Boolean,attribute:"show-all",reflect:!0})],o.SCBBreadcrumb.prototype,"showAll",2),Ei([n({type:String,reflect:!0})],o.SCBBreadcrumb.prototype,"spacing",2),Ei([n({type:String,attribute:"spacing-top",reflect:!0})],o.SCBBreadcrumb.prototype,"spacingTop",2),Ei([n({type:String,attribute:"spacing-bottom",reflect:!0})],o.SCBBreadcrumb.prototype,"spacingBottom",2),o.SCBBreadcrumb=Ei([g("scb-breadcrumb")],o.SCBBreadcrumb);var Jh=Object.defineProperty,Qh=Object.getOwnPropertyDescriptor,In=a=>{throw TypeError(a)},de=(a,e,t,i)=>{for(var r=i>1?void 0:i?Qh(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Jh(e,t,r),r},ep=(a,e,t)=>e.has(a)||In("Cannot "+t),tp=(a,e,t)=>e.has(a)?In("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),Pn=(a,e,t)=>(ep(a,e,"access private method"),t),Vr,zo;o.ScbButton=class extends y{constructor(){super(...arguments),tp(this,Vr),this.variant="filled",this.type="button",this.label="Button",this.trailingIcon=!1,this.icon="",this.disabled=!1,this.href="",this.target="",this.rel="",this.spacing="",this.spacingTop="",this.spacingBottom=""}__getMdHost(){return this.renderRoot.querySelector("md-filled-button, md-outlined-button, md-filled-tonal-button, md-text-button")}__getInnerNativeButton(e){var t;return((t=e==null?void 0:e.shadowRoot)==null?void 0:t.querySelector("button"))??null}__syncAriaToInner(){var v;const e=this.__getMdHost(),t=this.__getInnerNativeButton(e);if(!e||!t)return;const i=(this.getAttribute("aria-label")||"").trim(),r=(e.getAttribute("aria-label")||"").trim(),s=this.label.trim()===""?(this.icon||"").trim():"",l=i||r||s;l?t.setAttribute("aria-label",l):t.removeAttribute("aria-label");const h=this.getAttribute("aria-controls");h!==null?t.setAttribute("aria-controls",h):t.removeAttribute("aria-controls");const p=this.getAttribute("aria-expanded");p!==null?t.setAttribute("aria-expanded",p):t.removeAttribute("aria-expanded"),e.removeAttribute("aria-label"),e.removeAttribute("aria-controls"),e.removeAttribute("aria-expanded"),this.removeAttribute("aria-expanded"),(v=this.__ariaObserver)==null||v.disconnect(),this.__ariaObserver=new MutationObserver(f=>{const b=this.__getMdHost(),_=this.__getInnerNativeButton(b);if(!(!b||!_)){for(const x of f){if(x.type!=="attributes"||!x.attributeName)continue;const S=x.attributeName,C=this.getAttribute(S);if(S==="aria-label"){const T=(b.getAttribute("aria-label")||"").trim(),A=(C||T||(this.label.trim()===""?(this.icon||"").trim():"")).trim();A?_.setAttribute("aria-label",A):_.removeAttribute("aria-label"),b.removeAttribute("aria-label")}else(S==="aria-controls"||S==="aria-expanded")&&(C===null?_.removeAttribute(S):_.setAttribute(S,C),S==="aria-expanded"&&this.removeAttribute("aria-expanded"))}b.removeAttribute("aria-label"),b.removeAttribute("aria-controls"),b.removeAttribute("aria-expanded")}}),this.__ariaObserver.observe(this,{attributes:!0,attributeFilter:["aria-label","aria-controls","aria-expanded"]})}firstUpdated(){(this.type==="submit"||this.type==="reset")&&this.addEventListener("click",()=>{if(!this.disabled){const e=this.closest("form");e&&(this.type==="submit"&&e.requestSubmit(),this.type==="reset"&&e.reset())}}),this.__syncAriaToInner(),Pn(this,Vr,zo).call(this)}updated(e){e.has("variant")&&this.__syncAriaToInner(),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&Pn(this,Vr,zo).call(this)}disconnectedCallback(){var e;(e=this.__ariaObserver)==null||e.disconnect(),super.disconnectedCallback()}mapSpacingToken(e){if(!e)return;const t=String(e).trim();if(t)return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}static get styles(){return m`
2840
2841
  /* Gör hosten stretchbar i t.ex. flex/grid */
2841
2842
  :host {
2842
2843
  display: inline-flex;
@@ -2957,7 +2958,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
2957
2958
  ${this.label}
2958
2959
  ${e&&this.trailingIcon?t:u}
2959
2960
  </md-text-button>
2960
- `;default:return c``}}},Vr=new WeakSet,zo=function(){const a=this.mapSpacingToken(this.spacing),e=this.mapSpacingToken(this.spacingTop)??a,t=this.mapSpacingToken(this.spacingBottom)??a;e?this.style.setProperty("--scb-button-spacing-block-start",e):this.style.removeProperty("--scb-button-spacing-block-start"),t?this.style.setProperty("--scb-button-spacing-block-end",t):this.style.removeProperty("--scb-button-spacing-block-end")},ce([n({type:String,reflect:!0})],o.ScbButton.prototype,"variant",2),ce([n({type:String,reflect:!0})],o.ScbButton.prototype,"type",2),ce([n({type:String})],o.ScbButton.prototype,"label",2),ce([n({type:Boolean,attribute:"trailing-icon"})],o.ScbButton.prototype,"trailingIcon",2),ce([n({type:String})],o.ScbButton.prototype,"icon",2),ce([n({type:Boolean,reflect:!0})],o.ScbButton.prototype,"disabled",2),ce([n({type:String})],o.ScbButton.prototype,"href",2),ce([n({type:String})],o.ScbButton.prototype,"target",2),ce([n({type:String})],o.ScbButton.prototype,"rel",2),ce([n({type:String,reflect:!0})],o.ScbButton.prototype,"spacing",2),ce([n({type:String,attribute:"spacing-top",reflect:!0})],o.ScbButton.prototype,"spacingTop",2),ce([n({type:String,attribute:"spacing-bottom",reflect:!0})],o.ScbButton.prototype,"spacingBottom",2),o.ScbButton=ce([g("scb-button")],o.ScbButton);var ip=Object.defineProperty,rp=Object.getOwnPropertyDescriptor,On=a=>{throw TypeError(a)},M=(a,e,t,i)=>{for(var r=i>1?void 0:i?rp(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&ip(e,t,r),r},ap=(a,e,t)=>e.has(a)||On("Cannot "+t),op=(a,e,t)=>e.has(a)?On("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),Ln=(a,e,t)=>(ap(a,e,"access private method"),t),qr,Io;o.ScbCalendarCard=class extends y{constructor(){super(...arguments),op(this,qr),this.variant="default",this.direction="horizontal",this.title="",this.subtitle="",this.supportingText="",this.cardHref="",this.cardHrefNav="",this.showMedia=null,this.mediaWidth="",this.mediaHeight="",this.mediaAspect="",this.width="",this.maxWidth="",this.minWidth="",this.height="",this.maxHeight="",this.minHeight="",this.sizing="stretch",this.spacing="",this.spacingTop="",this.spacingBottom=""}async firstUpdated(){o.ScbCalendarCard.__iconLoaded||(await Promise.resolve().then(()=>Ie),o.ScbCalendarCard.__iconLoaded=!0),o.ScbCalendarCard.__rippleLoaded||(await Promise.resolve().then(()=>tr),o.ScbCalendarCard.__rippleLoaded=!0),this.__applyInnerSizing(),Ln(this,qr,Io).call(this)}render(){const e=this.variant?`${this.variant.toLowerCase()}`:"",t=this.direction?`${this.direction.toLowerCase()}`:"",i=this.cardHref?"clickable":"",r=1,s="Jan",l=this.mediaWidth&&this.mediaWidth.trim()!==""?this.mediaWidth:"",h=this.mediaHeight&&this.mediaHeight.trim()!==""?this.mediaHeight:"",p=this.mediaAspect&&this.mediaAspect.trim()!==""?this.mediaAspect:"",v=`${l?`inline-size:${l};`:""}${h?`block-size:${h};`:""}${p?`aspect-ratio:${p};`:""}`;return c`
2961
+ `;default:return c``}}},Vr=new WeakSet,zo=function(){const a=this.mapSpacingToken(this.spacing),e=this.mapSpacingToken(this.spacingTop)??a,t=this.mapSpacingToken(this.spacingBottom)??a;e?this.style.setProperty("--scb-button-spacing-block-start",e):this.style.removeProperty("--scb-button-spacing-block-start"),t?this.style.setProperty("--scb-button-spacing-block-end",t):this.style.removeProperty("--scb-button-spacing-block-end")},de([n({type:String,reflect:!0})],o.ScbButton.prototype,"variant",2),de([n({type:String,reflect:!0})],o.ScbButton.prototype,"type",2),de([n({type:String})],o.ScbButton.prototype,"label",2),de([n({type:Boolean,attribute:"trailing-icon"})],o.ScbButton.prototype,"trailingIcon",2),de([n({type:String})],o.ScbButton.prototype,"icon",2),de([n({type:Boolean,reflect:!0})],o.ScbButton.prototype,"disabled",2),de([n({type:String})],o.ScbButton.prototype,"href",2),de([n({type:String})],o.ScbButton.prototype,"target",2),de([n({type:String})],o.ScbButton.prototype,"rel",2),de([n({type:String,reflect:!0})],o.ScbButton.prototype,"spacing",2),de([n({type:String,attribute:"spacing-top",reflect:!0})],o.ScbButton.prototype,"spacingTop",2),de([n({type:String,attribute:"spacing-bottom",reflect:!0})],o.ScbButton.prototype,"spacingBottom",2),o.ScbButton=de([g("scb-button")],o.ScbButton);var ip=Object.defineProperty,rp=Object.getOwnPropertyDescriptor,On=a=>{throw TypeError(a)},M=(a,e,t,i)=>{for(var r=i>1?void 0:i?rp(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&ip(e,t,r),r},ap=(a,e,t)=>e.has(a)||On("Cannot "+t),op=(a,e,t)=>e.has(a)?On("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),Ln=(a,e,t)=>(ap(a,e,"access private method"),t),qr,Io;o.ScbCalendarCard=class extends y{constructor(){super(...arguments),op(this,qr),this.variant="default",this.direction="horizontal",this.title="",this.subtitle="",this.supportingText="",this.cardHref="",this.cardHrefNav="",this.showMedia=null,this.mediaWidth="",this.mediaHeight="",this.mediaAspect="",this.width="",this.maxWidth="",this.minWidth="",this.height="",this.maxHeight="",this.minHeight="",this.sizing="stretch",this.spacing="",this.spacingTop="",this.spacingBottom=""}async firstUpdated(){o.ScbCalendarCard.__iconLoaded||(await Promise.resolve().then(()=>Ie),o.ScbCalendarCard.__iconLoaded=!0),o.ScbCalendarCard.__rippleLoaded||(await Promise.resolve().then(()=>tr),o.ScbCalendarCard.__rippleLoaded=!0),this.__applyInnerSizing(),Ln(this,qr,Io).call(this)}render(){const e=this.variant?`${this.variant.toLowerCase()}`:"",t=this.direction?`${this.direction.toLowerCase()}`:"",i=this.cardHref?"clickable":"",r=1,s="Jan",l=this.mediaWidth&&this.mediaWidth.trim()!==""?this.mediaWidth:"",h=this.mediaHeight&&this.mediaHeight.trim()!==""?this.mediaHeight:"",p=this.mediaAspect&&this.mediaAspect.trim()!==""?this.mediaAspect:"",v=`${l?`inline-size:${l};`:""}${h?`block-size:${h};`:""}${p?`aspect-ratio:${p};`:""}`;return c`
2961
2962
  <div
2962
2963
  class="calendar-card ${t} ${i} ${e}"
2963
2964
  role="${this.cardHref?"link":"group"}"
@@ -3203,7 +3204,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
3203
3204
  overflow: visible;
3204
3205
  text-overflow: clip;
3205
3206
  }
3206
- `,M([n({type:String,reflect:!0})],o.ScbCalendarCard.prototype,"variant",2),M([n({type:String,reflect:!0})],o.ScbCalendarCard.prototype,"direction",2),M([n({type:String,reflect:!0})],o.ScbCalendarCard.prototype,"title",2),M([n({type:String,reflect:!0})],o.ScbCalendarCard.prototype,"subtitle",2),M([n({type:String,attribute:"supporting-text",reflect:!0})],o.ScbCalendarCard.prototype,"supportingText",2),M([n({type:String,attribute:"card-href"})],o.ScbCalendarCard.prototype,"cardHref",2),M([n({type:String,attribute:"card-href-nav"})],o.ScbCalendarCard.prototype,"cardHrefNav",2),M([n({type:Boolean,reflect:!0,attribute:"show-media"})],o.ScbCalendarCard.prototype,"showMedia",2),M([n({type:String,attribute:"media-width"})],o.ScbCalendarCard.prototype,"mediaWidth",2),M([n({type:String,attribute:"media-height"})],o.ScbCalendarCard.prototype,"mediaHeight",2),M([n({type:String,attribute:"media-aspect"})],o.ScbCalendarCard.prototype,"mediaAspect",2),M([n({type:String,reflect:!0})],o.ScbCalendarCard.prototype,"width",2),M([n({type:String,reflect:!0,attribute:"max-width"})],o.ScbCalendarCard.prototype,"maxWidth",2),M([n({type:String,attribute:"min-width"})],o.ScbCalendarCard.prototype,"minWidth",2),M([n({type:String,reflect:!0})],o.ScbCalendarCard.prototype,"height",2),M([n({type:String,reflect:!0,attribute:"max-height"})],o.ScbCalendarCard.prototype,"maxHeight",2),M([n({type:String,attribute:"min-height"})],o.ScbCalendarCard.prototype,"minHeight",2),M([n({type:String,reflect:!0})],o.ScbCalendarCard.prototype,"sizing",2),M([n({type:String,reflect:!0})],o.ScbCalendarCard.prototype,"spacing",2),M([n({type:String,attribute:"spacing-top",reflect:!0})],o.ScbCalendarCard.prototype,"spacingTop",2),M([n({type:String,attribute:"spacing-bottom",reflect:!0})],o.ScbCalendarCard.prototype,"spacingBottom",2),o.ScbCalendarCard=M([g("scb-calendar-card")],o.ScbCalendarCard);var sp=Object.defineProperty,np=Object.getOwnPropertyDescriptor,Rn=a=>{throw TypeError(a)},E=(a,e,t,i)=>{for(var r=i>1?void 0:i?np(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&sp(e,t,r),r},lp=(a,e,t)=>e.has(a)||Rn("Cannot "+t),cp=(a,e,t)=>e.has(a)?Rn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),Bn=(a,e,t)=>(lp(a,e,"access private method"),t),Ur,Po;o.ScbCard=class extends y{constructor(){super(...arguments),cp(this,Ur),this.type="",this.variant="",this.direction="",this.mediaType="",this.mediaHref="",this.mediaAlt="",this.mediaSrcset="",this.mediaSizes="",this.mediaLoading="auto",this.mediaDecoding="async",this.mediaFetchPriority="auto",this.mediaFit="cover",this.mediaPosition="center",this.mediaWidth="",this.mediaHeight="",this.mediaAspect="",this.mediaPlaceholder=!1,this.cardHref="",this.title="",this.subtitle="",this.supportingText="",this.commentsText="",this.comments=0,this.likesText="",this.likes=0,this.sizing="stretch",this.width="",this.maxWidth="",this.height="",this.maxHeight="",this.spacing="",this.spacingTop="",this.spacingBottom="",this.__onImgLoad=e=>{const t=e.currentTarget.closest(".media");t&&t.classList.add("is-loaded")},this.__onKeyDown=e=>{(e.key==="Enter"||e.key===" ")&&this.cardHref&&(e.preventDefault(),window.open(this.cardHref,"_self"))},this.__handleHrefNavigation=e=>{this.cardHref&&(e.target.closest("a")||window.open(this.cardHref,"_self"))}}__calcAspectWH(e){const t=(e||"").trim();if(!t)return{w:640,h:360};const i=t.includes("/")?t.split("/"):t.includes(":")?t.split(":"):t.includes("x")?t.split("x"):null;if(i&&i.length===2){const s=Number(i[0]),l=Number(i[1]);if(s>0&&l>0)return{w:s,h:l}}const r=Number(t);return isFinite(r)&&r>0?{w:1e3,h:Math.round(1e3/r)}:{w:640,h:360}}__mediaTemplate(){if((this.mediaType||"").toLowerCase()==="avatar")return c`
3207
+ `,M([n({type:String,reflect:!0})],o.ScbCalendarCard.prototype,"variant",2),M([n({type:String,reflect:!0})],o.ScbCalendarCard.prototype,"direction",2),M([n({type:String,reflect:!0})],o.ScbCalendarCard.prototype,"title",2),M([n({type:String,reflect:!0})],o.ScbCalendarCard.prototype,"subtitle",2),M([n({type:String,attribute:"supporting-text",reflect:!0})],o.ScbCalendarCard.prototype,"supportingText",2),M([n({type:String,attribute:"card-href"})],o.ScbCalendarCard.prototype,"cardHref",2),M([n({type:String,attribute:"card-href-nav"})],o.ScbCalendarCard.prototype,"cardHrefNav",2),M([n({type:Boolean,reflect:!0,attribute:"show-media"})],o.ScbCalendarCard.prototype,"showMedia",2),M([n({type:String,attribute:"media-width"})],o.ScbCalendarCard.prototype,"mediaWidth",2),M([n({type:String,attribute:"media-height"})],o.ScbCalendarCard.prototype,"mediaHeight",2),M([n({type:String,attribute:"media-aspect"})],o.ScbCalendarCard.prototype,"mediaAspect",2),M([n({type:String,reflect:!0})],o.ScbCalendarCard.prototype,"width",2),M([n({type:String,reflect:!0,attribute:"max-width"})],o.ScbCalendarCard.prototype,"maxWidth",2),M([n({type:String,attribute:"min-width"})],o.ScbCalendarCard.prototype,"minWidth",2),M([n({type:String,reflect:!0})],o.ScbCalendarCard.prototype,"height",2),M([n({type:String,reflect:!0,attribute:"max-height"})],o.ScbCalendarCard.prototype,"maxHeight",2),M([n({type:String,attribute:"min-height"})],o.ScbCalendarCard.prototype,"minHeight",2),M([n({type:String,reflect:!0})],o.ScbCalendarCard.prototype,"sizing",2),M([n({type:String,reflect:!0})],o.ScbCalendarCard.prototype,"spacing",2),M([n({type:String,attribute:"spacing-top",reflect:!0})],o.ScbCalendarCard.prototype,"spacingTop",2),M([n({type:String,attribute:"spacing-bottom",reflect:!0})],o.ScbCalendarCard.prototype,"spacingBottom",2),o.ScbCalendarCard=M([g("scb-calendar-card")],o.ScbCalendarCard);var sp=Object.defineProperty,np=Object.getOwnPropertyDescriptor,Bn=a=>{throw TypeError(a)},E=(a,e,t,i)=>{for(var r=i>1?void 0:i?np(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&sp(e,t,r),r},lp=(a,e,t)=>e.has(a)||Bn("Cannot "+t),cp=(a,e,t)=>e.has(a)?Bn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),Rn=(a,e,t)=>(lp(a,e,"access private method"),t),Ur,Po;o.ScbCard=class extends y{constructor(){super(...arguments),cp(this,Ur),this.type="",this.variant="",this.direction="",this.mediaType="",this.mediaHref="",this.mediaAlt="",this.mediaSrcset="",this.mediaSizes="",this.mediaLoading="auto",this.mediaDecoding="async",this.mediaFetchPriority="auto",this.mediaFit="cover",this.mediaPosition="center",this.mediaWidth="",this.mediaHeight="",this.mediaAspect="",this.mediaPlaceholder=!1,this.cardHref="",this.title="",this.subtitle="",this.supportingText="",this.commentsText="",this.comments=0,this.likesText="",this.likes=0,this.sizing="stretch",this.width="",this.maxWidth="",this.height="",this.maxHeight="",this.spacing="",this.spacingTop="",this.spacingBottom="",this.__onImgLoad=e=>{const t=e.currentTarget.closest(".media");t&&t.classList.add("is-loaded")},this.__onKeyDown=e=>{(e.key==="Enter"||e.key===" ")&&this.cardHref&&(e.preventDefault(),window.open(this.cardHref,"_self"))},this.__handleHrefNavigation=e=>{this.cardHref&&(e.target.closest("a")||window.open(this.cardHref,"_self"))}}__calcAspectWH(e){const t=(e||"").trim();if(!t)return{w:640,h:360};const i=t.includes("/")?t.split("/"):t.includes(":")?t.split(":"):t.includes("x")?t.split("x"):null;if(i&&i.length===2){const s=Number(i[0]),l=Number(i[1]);if(s>0&&l>0)return{w:s,h:l}}const r=Number(t);return isFinite(r)&&r>0?{w:1e3,h:Math.round(1e3/r)}:{w:640,h:360}}__mediaTemplate(){if((this.mediaType||"").toLowerCase()==="avatar")return c`
3207
3208
  <div class="media">
3208
3209
  <slot name="media">
3209
3210
  <scb-avatar variant="icon" label="${this.title}" icon-name="person"></scb-avatar>
@@ -3318,7 +3319,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
3318
3319
  ${r?c`<div class="date">${r}</div>`:""}
3319
3320
  </div>
3320
3321
  </div>
3321
- `)}}updated(e){super.updated(e),e.has("width")&&(this.width?this.style.inlineSize=this.width:this.style.removeProperty("inline-size")),e.has("maxWidth")&&(this.maxWidth?this.style.maxInlineSize=this.maxWidth:this.style.removeProperty("max-inline-size")),e.has("height")&&(this.height?this.style.blockSize=this.height:this.style.removeProperty("block-size")),e.has("maxHeight")&&(this.maxHeight?this.style.maxBlockSize=this.maxHeight:this.style.removeProperty("max-block-size")),e.has("type")&&(this.type==="list"?this.setAttribute("data-density","-2"):this.removeAttribute("data-density")),this.style.setProperty("--scb-card-media-fit",this.mediaFit||"cover"),this.style.setProperty("--scb-card-media-position",this.mediaPosition||"center"),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&Bn(this,Ur,Po).call(this)}async firstUpdated(e){o.ScbCard.__iconLoaded||(await Promise.resolve().then(()=>Ie),o.ScbCard.__iconLoaded=!0),o.ScbCard.__rippleLoaded||(await Promise.resolve().then(()=>tr),o.ScbCard.__rippleLoaded=!0),Bn(this,Ur,Po).call(this)}},Ur=new WeakSet,Po=function(){const a=this.mapSpacingToken(this.spacing),e=this.mapSpacingToken(this.spacingTop)??a,t=this.mapSpacingToken(this.spacingBottom)??a;e?this.style.setProperty("--scb-card-spacing-block-start",e):this.style.removeProperty("--scb-card-spacing-block-start"),t?this.style.setProperty("--scb-card-spacing-block-end",t):this.style.removeProperty("--scb-card-spacing-block-end")},o.ScbCard.__iconLoaded=!1,o.ScbCard.__rippleLoaded=!1,o.ScbCard.styles=m`
3322
+ `)}}updated(e){super.updated(e),e.has("width")&&(this.width?this.style.inlineSize=this.width:this.style.removeProperty("inline-size")),e.has("maxWidth")&&(this.maxWidth?this.style.maxInlineSize=this.maxWidth:this.style.removeProperty("max-inline-size")),e.has("height")&&(this.height?this.style.blockSize=this.height:this.style.removeProperty("block-size")),e.has("maxHeight")&&(this.maxHeight?this.style.maxBlockSize=this.maxHeight:this.style.removeProperty("max-block-size")),e.has("type")&&(this.type==="list"?this.setAttribute("data-density","-2"):this.removeAttribute("data-density")),this.style.setProperty("--scb-card-media-fit",this.mediaFit||"cover"),this.style.setProperty("--scb-card-media-position",this.mediaPosition||"center"),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&Rn(this,Ur,Po).call(this)}async firstUpdated(e){o.ScbCard.__iconLoaded||(await Promise.resolve().then(()=>Ie),o.ScbCard.__iconLoaded=!0),o.ScbCard.__rippleLoaded||(await Promise.resolve().then(()=>tr),o.ScbCard.__rippleLoaded=!0),Rn(this,Ur,Po).call(this)}},Ur=new WeakSet,Po=function(){const a=this.mapSpacingToken(this.spacing),e=this.mapSpacingToken(this.spacingTop)??a,t=this.mapSpacingToken(this.spacingBottom)??a;e?this.style.setProperty("--scb-card-spacing-block-start",e):this.style.removeProperty("--scb-card-spacing-block-start"),t?this.style.setProperty("--scb-card-spacing-block-end",t):this.style.removeProperty("--scb-card-spacing-block-end")},o.ScbCard.__iconLoaded=!1,o.ScbCard.__rippleLoaded=!1,o.ScbCard.styles=m`
3322
3323
  :host {
3323
3324
  display: block;
3324
3325
  box-sizing: border-box;
@@ -3623,11 +3624,11 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
3623
3624
  .scb-card.filled .content.list ::slotted(scb-list) {
3624
3625
  --scb-list-bg: var(--md-sys-color-surface-dim);
3625
3626
  }
3626
- `,E([n({type:String,reflect:!0})],o.ScbCard.prototype,"type",2),E([n({type:String,reflect:!0})],o.ScbCard.prototype,"variant",2),E([n({type:String,reflect:!0})],o.ScbCard.prototype,"direction",2),E([n({type:String,attribute:"media-type"})],o.ScbCard.prototype,"mediaType",2),E([n({type:String,attribute:"media-href"})],o.ScbCard.prototype,"mediaHref",2),E([n({type:String,attribute:"media-alt"})],o.ScbCard.prototype,"mediaAlt",2),E([n({type:String,attribute:"media-srcset"})],o.ScbCard.prototype,"mediaSrcset",2),E([n({type:String,attribute:"media-sizes"})],o.ScbCard.prototype,"mediaSizes",2),E([n({type:String,attribute:"media-loading"})],o.ScbCard.prototype,"mediaLoading",2),E([n({type:String,attribute:"media-decoding"})],o.ScbCard.prototype,"mediaDecoding",2),E([n({type:String,attribute:"media-fetchpriority"})],o.ScbCard.prototype,"mediaFetchPriority",2),E([n({type:String,attribute:"media-fit"})],o.ScbCard.prototype,"mediaFit",2),E([n({type:String,attribute:"media-position"})],o.ScbCard.prototype,"mediaPosition",2),E([n({type:String,attribute:"media-width"})],o.ScbCard.prototype,"mediaWidth",2),E([n({type:String,attribute:"media-height"})],o.ScbCard.prototype,"mediaHeight",2),E([n({type:String,attribute:"media-aspect"})],o.ScbCard.prototype,"mediaAspect",2),E([n({type:Boolean,attribute:"media-placeholder"})],o.ScbCard.prototype,"mediaPlaceholder",2),E([n({type:String,attribute:"card-href",reflect:!0})],o.ScbCard.prototype,"cardHref",2),E([n({type:String,reflect:!0})],o.ScbCard.prototype,"title",2),E([n({type:String,reflect:!0})],o.ScbCard.prototype,"subtitle",2),E([n({type:String,attribute:"supporting-text",reflect:!0})],o.ScbCard.prototype,"supportingText",2),E([n({type:Date,reflect:!0})],o.ScbCard.prototype,"date",2),E([n({type:String,attribute:"social-comments-text",reflect:!0})],o.ScbCard.prototype,"commentsText",2),E([n({type:Number,attribute:"social-comments",reflect:!0})],o.ScbCard.prototype,"comments",2),E([n({type:String,attribute:"social-likes-text",reflect:!0})],o.ScbCard.prototype,"likesText",2),E([n({type:Number,attribute:"social-likes",reflect:!0})],o.ScbCard.prototype,"likes",2),E([n({type:String,reflect:!0})],o.ScbCard.prototype,"sizing",2),E([n({type:String,reflect:!0})],o.ScbCard.prototype,"width",2),E([n({type:String,reflect:!0,attribute:"max-width"})],o.ScbCard.prototype,"maxWidth",2),E([n({type:String,reflect:!0})],o.ScbCard.prototype,"height",2),E([n({type:String,reflect:!0,attribute:"max-height"})],o.ScbCard.prototype,"maxHeight",2),E([n({type:String,reflect:!0})],o.ScbCard.prototype,"spacing",2),E([n({type:String,attribute:"spacing-top",reflect:!0})],o.ScbCard.prototype,"spacingTop",2),E([n({type:String,attribute:"spacing-bottom",reflect:!0})],o.ScbCard.prototype,"spacingBottom",2),o.ScbCard=E([g("scb-card")],o.ScbCard);var dp=Object.defineProperty,hp=Object.getOwnPropertyDescriptor,Dn=a=>{throw TypeError(a)},Gt=(a,e,t,i)=>{for(var r=i>1?void 0:i?hp(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&dp(e,t,r),r},Mn=(a,e,t)=>e.has(a)||Dn("Cannot "+t),Oo=(a,e,t)=>(Mn(a,e,"read from private field"),t?t.call(a):e.get(a)),Fn=(a,e,t)=>e.has(a)?Dn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),Ti=(a,e,t)=>(Mn(a,e,"access private method"),t),Ai,wt,Lo,Wr;o.ScbCheckboxGroup=class extends y{constructor(){super(...arguments),Fn(this,wt),this.orientation="vertical",this.disabled=!1,this.spacing="",this.spacingTop="",this.spacingBottom="",Fn(this,Ai,()=>{var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("slot");if(!e)return;const t=e.assignedElements({flatten:!0}).filter(r=>r.tagName.toLowerCase()==="scb-checkbox");for(const r of t)this.disabled?r.setAttribute("disabled",""):r.removeAttribute("disabled"),this.orientation==="horizontal"?r.setAttribute("orientation","horizontal"):r.removeAttribute("orientation")})}render(){const e=this.orientation==="horizontal"?"row":"column";return c`
3627
+ `,E([n({type:String,reflect:!0})],o.ScbCard.prototype,"type",2),E([n({type:String,reflect:!0})],o.ScbCard.prototype,"variant",2),E([n({type:String,reflect:!0})],o.ScbCard.prototype,"direction",2),E([n({type:String,attribute:"media-type"})],o.ScbCard.prototype,"mediaType",2),E([n({type:String,attribute:"media-href"})],o.ScbCard.prototype,"mediaHref",2),E([n({type:String,attribute:"media-alt"})],o.ScbCard.prototype,"mediaAlt",2),E([n({type:String,attribute:"media-srcset"})],o.ScbCard.prototype,"mediaSrcset",2),E([n({type:String,attribute:"media-sizes"})],o.ScbCard.prototype,"mediaSizes",2),E([n({type:String,attribute:"media-loading"})],o.ScbCard.prototype,"mediaLoading",2),E([n({type:String,attribute:"media-decoding"})],o.ScbCard.prototype,"mediaDecoding",2),E([n({type:String,attribute:"media-fetchpriority"})],o.ScbCard.prototype,"mediaFetchPriority",2),E([n({type:String,attribute:"media-fit"})],o.ScbCard.prototype,"mediaFit",2),E([n({type:String,attribute:"media-position"})],o.ScbCard.prototype,"mediaPosition",2),E([n({type:String,attribute:"media-width"})],o.ScbCard.prototype,"mediaWidth",2),E([n({type:String,attribute:"media-height"})],o.ScbCard.prototype,"mediaHeight",2),E([n({type:String,attribute:"media-aspect"})],o.ScbCard.prototype,"mediaAspect",2),E([n({type:Boolean,attribute:"media-placeholder"})],o.ScbCard.prototype,"mediaPlaceholder",2),E([n({type:String,attribute:"card-href",reflect:!0})],o.ScbCard.prototype,"cardHref",2),E([n({type:String,reflect:!0})],o.ScbCard.prototype,"title",2),E([n({type:String,reflect:!0})],o.ScbCard.prototype,"subtitle",2),E([n({type:String,attribute:"supporting-text",reflect:!0})],o.ScbCard.prototype,"supportingText",2),E([n({type:Date,reflect:!0})],o.ScbCard.prototype,"date",2),E([n({type:String,attribute:"social-comments-text",reflect:!0})],o.ScbCard.prototype,"commentsText",2),E([n({type:Number,attribute:"social-comments",reflect:!0})],o.ScbCard.prototype,"comments",2),E([n({type:String,attribute:"social-likes-text",reflect:!0})],o.ScbCard.prototype,"likesText",2),E([n({type:Number,attribute:"social-likes",reflect:!0})],o.ScbCard.prototype,"likes",2),E([n({type:String,reflect:!0})],o.ScbCard.prototype,"sizing",2),E([n({type:String,reflect:!0})],o.ScbCard.prototype,"width",2),E([n({type:String,reflect:!0,attribute:"max-width"})],o.ScbCard.prototype,"maxWidth",2),E([n({type:String,reflect:!0})],o.ScbCard.prototype,"height",2),E([n({type:String,reflect:!0,attribute:"max-height"})],o.ScbCard.prototype,"maxHeight",2),E([n({type:String,reflect:!0})],o.ScbCard.prototype,"spacing",2),E([n({type:String,attribute:"spacing-top",reflect:!0})],o.ScbCard.prototype,"spacingTop",2),E([n({type:String,attribute:"spacing-bottom",reflect:!0})],o.ScbCard.prototype,"spacingBottom",2),o.ScbCard=E([g("scb-card")],o.ScbCard);var dp=Object.defineProperty,hp=Object.getOwnPropertyDescriptor,Dn=a=>{throw TypeError(a)},Gt=(a,e,t,i)=>{for(var r=i>1?void 0:i?hp(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&dp(e,t,r),r},Mn=(a,e,t)=>e.has(a)||Dn("Cannot "+t),Oo=(a,e,t)=>(Mn(a,e,"read from private field"),t?t.call(a):e.get(a)),Fn=(a,e,t)=>e.has(a)?Dn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),Ti=(a,e,t)=>(Mn(a,e,"access private method"),t),Ai,St,Lo,Wr;o.ScbCheckboxGroup=class extends y{constructor(){super(...arguments),Fn(this,St),this.orientation="vertical",this.disabled=!1,this.spacing="",this.spacingTop="",this.spacingBottom="",Fn(this,Ai,()=>{var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("slot");if(!e)return;const t=e.assignedElements({flatten:!0}).filter(r=>r.tagName.toLowerCase()==="scb-checkbox");for(const r of t)this.disabled?r.setAttribute("disabled",""):r.removeAttribute("disabled"),this.orientation==="horizontal"?r.setAttribute("orientation","horizontal"):r.removeAttribute("orientation")})}render(){const e=this.orientation==="horizontal"?"row":"column";return c`
3627
3628
  <div class="g" role="group" aria-disabled=${String(this.disabled)} style=${`--_dir:${e}`}>
3628
3629
  <slot @slotchange=${Oo(this,Ai)}></slot>
3629
3630
  </div>
3630
- `}firstUpdated(){Ti(this,wt,Lo).call(this),Oo(this,Ai).call(this)}updated(e){(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&Ti(this,wt,Lo).call(this),(e.has("disabled")||e.has("orientation"))&&Oo(this,Ai).call(this)}},Ai=new WeakMap,wt=new WeakSet,Lo=function(){const a=Ti(this,wt,Wr).call(this,this.spacing),e=Ti(this,wt,Wr).call(this,this.spacingTop)??a,t=Ti(this,wt,Wr).call(this,this.spacingBottom)??a;e?this.style.setProperty("--scb-checkbox-group-spacing-block-start",e):this.style.removeProperty("--scb-checkbox-group-spacing-block-start"),t?this.style.setProperty("--scb-checkbox-group-spacing-block-end",t):this.style.removeProperty("--scb-checkbox-group-spacing-block-end")},Wr=function(a){if(!a)return;const e=String(a).trim();if(e)return/^\d+$/.test(e)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(e,10)))})`:e},o.ScbCheckboxGroup.styles=m`
3631
+ `}firstUpdated(){Ti(this,St,Lo).call(this),Oo(this,Ai).call(this)}updated(e){(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&Ti(this,St,Lo).call(this),(e.has("disabled")||e.has("orientation"))&&Oo(this,Ai).call(this)}},Ai=new WeakMap,St=new WeakSet,Lo=function(){const a=Ti(this,St,Wr).call(this,this.spacing),e=Ti(this,St,Wr).call(this,this.spacingTop)??a,t=Ti(this,St,Wr).call(this,this.spacingBottom)??a;e?this.style.setProperty("--scb-checkbox-group-spacing-block-start",e):this.style.removeProperty("--scb-checkbox-group-spacing-block-start"),t?this.style.setProperty("--scb-checkbox-group-spacing-block-end",t):this.style.removeProperty("--scb-checkbox-group-spacing-block-end")},Wr=function(a){if(!a)return;const e=String(a).trim();if(e)return/^\d+$/.test(e)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(e,10)))})`:e},o.ScbCheckboxGroup.styles=m`
3631
3632
  :host {
3632
3633
  display: block;
3633
3634
  /* Vertikal standard-spacing mellan items i gruppen */
@@ -3742,7 +3743,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
3742
3743
  color: var(--md-sys-color-on-surface-variant);
3743
3744
  }
3744
3745
  }
3745
- `,Ue([n({type:Boolean,reflect:!0})],o.ScbCheckbox.prototype,"disabled",2),Ue([n({type:Boolean,reflect:!0})],o.ScbCheckbox.prototype,"indeterminate",2),Ue([n({type:Boolean,reflect:!0})],o.ScbCheckbox.prototype,"checked",2),Ue([n({type:String})],o.ScbCheckbox.prototype,"label",2),Ue([n({type:String,attribute:"supporting-text"})],o.ScbCheckbox.prototype,"supportingText",2),Ue([n({type:String,reflect:!0,attribute:"aria-label"})],o.ScbCheckbox.prototype,"ariaLabel",2),Ue([n({type:String})],o.ScbCheckbox.prototype,"name",2),Ue([n({type:String})],o.ScbCheckbox.prototype,"value",2),o.ScbCheckbox=Ue([g("scb-checkbox")],o.ScbCheckbox);const vp=Object.freeze(Object.defineProperty({__proto__:null,get ScbCheckbox(){return o.ScbCheckbox}},Symbol.toStringTag,{value:"Module"}));var bp=Object.defineProperty,mp=Object.getOwnPropertyDescriptor,Hn=a=>{throw TypeError(a)},X=(a,e,t,i)=>{for(var r=i>1?void 0:i?mp(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&bp(e,t,r),r},fp=(a,e,t)=>e.has(a)||Hn("Cannot "+t),gp=(a,e,t)=>e.has(a)?Hn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),Nn=(a,e,t)=>(fp(a,e,"access private method"),t),jr,Ro;o.ScbChip=class extends y{constructor(){super(),gp(this,jr),this.variant="assist",this.label="",this.icon="",this.disabled=!1,this.elevated=!1,this.removable=!1,this.selected=!1,this.href="",this.target="",this.name="",this.value="",this.spacing="",this.spacingTop="",this.spacingBottom="",this.size="",this._internals=null,this.__loadedVariants=new Set,this.__chipSetLoaded=!1,this.__iconLoaded=!1,"attachInternals"in this&&(this._internals=this.attachInternals())}updated(e){super.updated(e),(e.has("variant")||e.has("icon"))&&this.__ensureDepsLoaded(),e.has("disabled")&&(this.toggleAttribute("aria-disabled",this.disabled),this.dispatchEvent(new CustomEvent("disabled-changed",{detail:{disabled:this.disabled},bubbles:!0,composed:!0}))),e.has("variant")&&this.dispatchEvent(new CustomEvent("variant-changed",{detail:{variant:this.variant},bubbles:!0,composed:!0})),e.has("label")&&this.dispatchEvent(new CustomEvent("label-changed",{detail:{label:this.label},bubbles:!0,composed:!0})),e.has("elevated")&&this.dispatchEvent(new CustomEvent("elevated-changed",{detail:{elevated:this.elevated},bubbles:!0,composed:!0})),e.has("icon")&&this.dispatchEvent(new CustomEvent("icon-changed",{detail:{icon:this.icon},bubbles:!0,composed:!0})),e.has("size")&&this.dispatchEvent(new CustomEvent("size-changed",{detail:{size:this.size},bubbles:!0,composed:!0})),(e.has("selected")||e.has("disabled")||e.has("variant")||e.has("value")||e.has("name"))&&this._updateFormValue(),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&Nn(this,jr,Ro).call(this)}firstUpdated(){this.__ensureDepsLoaded(),Nn(this,jr,Ro).call(this),this._updateFormValue()}async __ensureDepsLoaded(){if(!this.__loadedVariants.has(this.variant)){switch(this.variant){case"assist":await Promise.resolve().then(()=>wc);break;case"filter":await Promise.resolve().then(()=>Ec);break}this.__loadedVariants.add(this.variant)}!this._insideChipSet&&!this.__chipSetLoaded&&(await Promise.resolve().then(()=>kc),this.__chipSetLoaded=!0),this.icon&&!this.__iconLoaded&&(await Promise.resolve().then(()=>Ie),this.__iconLoaded=!0)}get _insideChipSet(){return!!this.closest("md-chip-set")}render(){const e=this._renderChip();return this._insideChipSet?e:c`<md-chip-set>${e}</md-chip-set>`}_renderChip(){const e=this.icon?c`<md-icon slot="icon">${this.icon}</md-icon>`:null;switch(this.variant){case"assist":{const t=this.target==="_blank"?"noopener noreferrer":void 0;return c`
3746
+ `,Ue([n({type:Boolean,reflect:!0})],o.ScbCheckbox.prototype,"disabled",2),Ue([n({type:Boolean,reflect:!0})],o.ScbCheckbox.prototype,"indeterminate",2),Ue([n({type:Boolean,reflect:!0})],o.ScbCheckbox.prototype,"checked",2),Ue([n({type:String})],o.ScbCheckbox.prototype,"label",2),Ue([n({type:String,attribute:"supporting-text"})],o.ScbCheckbox.prototype,"supportingText",2),Ue([n({type:String,reflect:!0,attribute:"aria-label"})],o.ScbCheckbox.prototype,"ariaLabel",2),Ue([n({type:String})],o.ScbCheckbox.prototype,"name",2),Ue([n({type:String})],o.ScbCheckbox.prototype,"value",2),o.ScbCheckbox=Ue([g("scb-checkbox")],o.ScbCheckbox);const vp=Object.freeze(Object.defineProperty({__proto__:null,get ScbCheckbox(){return o.ScbCheckbox}},Symbol.toStringTag,{value:"Module"}));var bp=Object.defineProperty,mp=Object.getOwnPropertyDescriptor,Hn=a=>{throw TypeError(a)},X=(a,e,t,i)=>{for(var r=i>1?void 0:i?mp(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&bp(e,t,r),r},fp=(a,e,t)=>e.has(a)||Hn("Cannot "+t),gp=(a,e,t)=>e.has(a)?Hn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),Nn=(a,e,t)=>(fp(a,e,"access private method"),t),jr,Bo;o.ScbChip=class extends y{constructor(){super(),gp(this,jr),this.variant="assist",this.label="",this.icon="",this.disabled=!1,this.elevated=!1,this.removable=!1,this.selected=!1,this.href="",this.target="",this.name="",this.value="",this.spacing="",this.spacingTop="",this.spacingBottom="",this.size="",this._internals=null,this.__loadedVariants=new Set,this.__chipSetLoaded=!1,this.__iconLoaded=!1,"attachInternals"in this&&(this._internals=this.attachInternals())}updated(e){super.updated(e),(e.has("variant")||e.has("icon"))&&this.__ensureDepsLoaded(),e.has("disabled")&&(this.toggleAttribute("aria-disabled",this.disabled),this.dispatchEvent(new CustomEvent("disabled-changed",{detail:{disabled:this.disabled},bubbles:!0,composed:!0}))),e.has("variant")&&this.dispatchEvent(new CustomEvent("variant-changed",{detail:{variant:this.variant},bubbles:!0,composed:!0})),e.has("label")&&this.dispatchEvent(new CustomEvent("label-changed",{detail:{label:this.label},bubbles:!0,composed:!0})),e.has("elevated")&&this.dispatchEvent(new CustomEvent("elevated-changed",{detail:{elevated:this.elevated},bubbles:!0,composed:!0})),e.has("icon")&&this.dispatchEvent(new CustomEvent("icon-changed",{detail:{icon:this.icon},bubbles:!0,composed:!0})),e.has("size")&&this.dispatchEvent(new CustomEvent("size-changed",{detail:{size:this.size},bubbles:!0,composed:!0})),(e.has("selected")||e.has("disabled")||e.has("variant")||e.has("value")||e.has("name"))&&this._updateFormValue(),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&Nn(this,jr,Bo).call(this)}firstUpdated(){this.__ensureDepsLoaded(),Nn(this,jr,Bo).call(this),this._updateFormValue()}async __ensureDepsLoaded(){if(!this.__loadedVariants.has(this.variant)){switch(this.variant){case"assist":await Promise.resolve().then(()=>wc);break;case"filter":await Promise.resolve().then(()=>Ec);break}this.__loadedVariants.add(this.variant)}!this._insideChipSet&&!this.__chipSetLoaded&&(await Promise.resolve().then(()=>kc),this.__chipSetLoaded=!0),this.icon&&!this.__iconLoaded&&(await Promise.resolve().then(()=>Ie),this.__iconLoaded=!0)}get _insideChipSet(){return!!this.closest("md-chip-set")}render(){const e=this._renderChip();return this._insideChipSet?e:c`<md-chip-set>${e}</md-chip-set>`}_renderChip(){const e=this.icon?c`<md-icon slot="icon">${this.icon}</md-icon>`:null;switch(this.variant){case"assist":{const t=this.target==="_blank"?"noopener noreferrer":void 0;return c`
3746
3747
  <md-assist-chip
3747
3748
  label=${this.label}
3748
3749
  ?disabled=${this.disabled}
@@ -3766,7 +3767,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
3766
3767
  >
3767
3768
  ${e}
3768
3769
  </md-filter-chip>
3769
- `;default:return c``}}_toggleSelected(){this.selected=!this.selected,this.dispatchEvent(new CustomEvent("selected-changed",{detail:{selected:this.selected},bubbles:!0,composed:!0})),this._updateFormValue()}_onRemove(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("remove",{detail:{label:this.label},bubbles:!0,composed:!0}))}_forward(e){this.dispatchEvent(new CustomEvent(e.type,{detail:e.detail,bubbles:!0,composed:!0}))}_updateFormValue(){if(!this._internals)return;if(!(this.variant==="filter"&&this.selected&&!this.disabled&&!!this.name)){this._internals.setFormValue(null),this._internals.setValidity({});return}const t=this.value||this.label||"";this._internals.setFormValue(t,this.name),this._internals.setValidity({})}formDisabledCallback(e){this.disabled=e}mapSpacingToken(e){if(!e)return;const t=String(e).trim();if(t)return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}},jr=new WeakSet,Ro=function(){const a=this.mapSpacingToken(this.spacing),e=this.mapSpacingToken(this.spacingTop),t=this.mapSpacingToken(this.spacingBottom),i=e??a,r=t??a;i?this.style.setProperty("--scb-chip-spacing-block-start",i):this.style.removeProperty("--scb-chip-spacing-block-start"),r?this.style.setProperty("--scb-chip-spacing-block-end",r):this.style.removeProperty("--scb-chip-spacing-block-end")},o.ScbChip.formAssociated=!0,o.ScbChip.styles=m`
3770
+ `;default:return c``}}_toggleSelected(){this.selected=!this.selected,this.dispatchEvent(new CustomEvent("selected-changed",{detail:{selected:this.selected},bubbles:!0,composed:!0})),this._updateFormValue()}_onRemove(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("remove",{detail:{label:this.label},bubbles:!0,composed:!0}))}_forward(e){this.dispatchEvent(new CustomEvent(e.type,{detail:e.detail,bubbles:!0,composed:!0}))}_updateFormValue(){if(!this._internals)return;if(!(this.variant==="filter"&&this.selected&&!this.disabled&&!!this.name)){this._internals.setFormValue(null),this._internals.setValidity({});return}const t=this.value||this.label||"";this._internals.setFormValue(t,this.name),this._internals.setValidity({})}formDisabledCallback(e){this.disabled=e}mapSpacingToken(e){if(!e)return;const t=String(e).trim();if(t)return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}},jr=new WeakSet,Bo=function(){const a=this.mapSpacingToken(this.spacing),e=this.mapSpacingToken(this.spacingTop),t=this.mapSpacingToken(this.spacingBottom),i=e??a,r=t??a;i?this.style.setProperty("--scb-chip-spacing-block-start",i):this.style.removeProperty("--scb-chip-spacing-block-start"),r?this.style.setProperty("--scb-chip-spacing-block-end",r):this.style.removeProperty("--scb-chip-spacing-block-end")},o.ScbChip.formAssociated=!0,o.ScbChip.styles=m`
3770
3771
  :host {
3771
3772
  display: inline-block;
3772
3773
  margin-block-start: var(--scb-chip-spacing-block-start, 0);
@@ -3803,7 +3804,7 @@ var ScbWcTest=function(o){"use strict";var xl;function d(a,e,t,i){var r=argument
3803
3804
  color: var(--md-sys-color-on-surface);
3804
3805
  font-size: var(--md-sys-typescale-body-large-size);
3805
3806
  }
3806
- `,X([n({type:String,reflect:!0})],o.ScbChip.prototype,"variant",2),X([n({type:String})],o.ScbChip.prototype,"label",2),X([n({type:String})],o.ScbChip.prototype,"icon",2),X([n({type:Boolean,reflect:!0})],o.ScbChip.prototype,"disabled",2),X([n({type:Boolean,reflect:!0})],o.ScbChip.prototype,"elevated",2),X([n({type:Boolean,reflect:!0})],o.ScbChip.prototype,"removable",2),X([n({type:Boolean,reflect:!0})],o.ScbChip.prototype,"selected",2),X([n({type:String})],o.ScbChip.prototype,"href",2),X([n({type:String})],o.ScbChip.prototype,"target",2),X([n({type:String})],o.ScbChip.prototype,"name",2),X([n({type:String})],o.ScbChip.prototype,"value",2),X([n({type:String,reflect:!0})],o.ScbChip.prototype,"spacing",2),X([n({type:String,reflect:!0,attribute:"spacing-top"})],o.ScbChip.prototype,"spacingTop",2),X([n({type:String,reflect:!0,attribute:"spacing-bottom"})],o.ScbChip.prototype,"spacingBottom",2),X([n({type:String,reflect:!0})],o.ScbChip.prototype,"size",2),o.ScbChip=X([g("scb-chip")],o.ScbChip);var yp=Object.defineProperty,_p=Object.getOwnPropertyDescriptor,Vn=a=>{throw TypeError(a)},Z=(a,e,t,i)=>{for(var r=i>1?void 0:i?_p(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&yp(e,t,r),r},xp=(a,e,t)=>e.has(a)||Vn("Cannot "+t),wp=(a,e,t)=>e.has(a)?Vn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),zi=(a,e,t)=>(xp(a,e,"access private method"),t),St,Bo,Kr;o.ScbTextField=class extends y{constructor(){super(),wp(this,St),this._internals=null,this.type="text",this.label="",this.supportingText="",this.errorText="",this.leadingIcon="",this.name="",this.pattern="",this.value="",this.underLabel="",this.error=!1,this.disabled=!1,this.required=!1,this.spacing="",this.spacingTop="",this.spacingBottom="",this._form=null,this._formSubmitHandler=null,this._formResetHandler=null,this._initialValue="",this._inputId="","attachInternals"in this&&(this._internals=this.attachInternals())}render(){const e=this.leadingIcon?c`<md-icon class="scb-textfield-icon">${this.leadingIcon}</md-icon>`:null,t=this.error?c`<md-icon class="scb-textfield-error-icon" aria-hidden="true">error</md-icon>`:null;this.underLabel=this.error?this.errorText||"Ogiltig inmatning.":this.supportingText,this.value=this.value||"";const i=this.underLabel?`${this._inputId}-supporting-text`:void 0,r=this.type==="search"&&this.value?c`
3807
+ `,X([n({type:String,reflect:!0})],o.ScbChip.prototype,"variant",2),X([n({type:String})],o.ScbChip.prototype,"label",2),X([n({type:String})],o.ScbChip.prototype,"icon",2),X([n({type:Boolean,reflect:!0})],o.ScbChip.prototype,"disabled",2),X([n({type:Boolean,reflect:!0})],o.ScbChip.prototype,"elevated",2),X([n({type:Boolean,reflect:!0})],o.ScbChip.prototype,"removable",2),X([n({type:Boolean,reflect:!0})],o.ScbChip.prototype,"selected",2),X([n({type:String})],o.ScbChip.prototype,"href",2),X([n({type:String})],o.ScbChip.prototype,"target",2),X([n({type:String})],o.ScbChip.prototype,"name",2),X([n({type:String})],o.ScbChip.prototype,"value",2),X([n({type:String,reflect:!0})],o.ScbChip.prototype,"spacing",2),X([n({type:String,reflect:!0,attribute:"spacing-top"})],o.ScbChip.prototype,"spacingTop",2),X([n({type:String,reflect:!0,attribute:"spacing-bottom"})],o.ScbChip.prototype,"spacingBottom",2),X([n({type:String,reflect:!0})],o.ScbChip.prototype,"size",2),o.ScbChip=X([g("scb-chip")],o.ScbChip);var yp=Object.defineProperty,_p=Object.getOwnPropertyDescriptor,Vn=a=>{throw TypeError(a)},Z=(a,e,t,i)=>{for(var r=i>1?void 0:i?_p(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&yp(e,t,r),r},xp=(a,e,t)=>e.has(a)||Vn("Cannot "+t),wp=(a,e,t)=>e.has(a)?Vn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),zi=(a,e,t)=>(xp(a,e,"access private method"),t),kt,Ro,Kr;o.ScbTextField=class extends y{constructor(){super(),wp(this,kt),this._internals=null,this.type="text",this.label="",this.supportingText="",this.errorText="",this.leadingIcon="",this.name="",this.pattern="",this.value="",this.underLabel="",this.error=!1,this.disabled=!1,this.required=!1,this.spacing="",this.spacingTop="",this.spacingBottom="",this._form=null,this._formSubmitHandler=null,this._formResetHandler=null,this._initialValue="",this._inputId="","attachInternals"in this&&(this._internals=this.attachInternals())}render(){const e=this.leadingIcon?c`<md-icon class="scb-textfield-icon">${this.leadingIcon}</md-icon>`:null,t=this.error?c`<md-icon class="scb-textfield-error-icon" aria-hidden="true">error</md-icon>`:null;this.underLabel=this.error?this.errorText||"Ogiltig inmatning.":this.supportingText,this.value=this.value||"";const i=this.underLabel?`${this._inputId}-supporting-text`:void 0,r=this.type==="search"&&this.value?c`
3807
3808
  <button
3808
3809
  type="button"
3809
3810
  class="scb-textfield-clear"
@@ -3880,7 +3881,7 @@ ${this.value}</textarea
3880
3881
  ${r}
3881
3882
  ${t}
3882
3883
  </div>
3883
- `}firstUpdated(e){var i;super.firstUpdated(e),this._initialValue=this.value;const t=(i=this.shadowRoot)==null?void 0:i.querySelector(".scb-textfield");t&&(t.addEventListener("input",()=>{const r=t;if(this.value=r.value,this._internals){const s=this.disabled?null:this.value;this._internals.setFormValue(s)}if(this.pattern){const s=new RegExp(this.pattern);this.error=!s.test(this.value)}this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("onValueChanged",{detail:{value:this.value},bubbles:!0,composed:!0}))}),t.addEventListener("change",()=>{this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}),t.addEventListener("select",()=>{this.dispatchEvent(new Event("select",{bubbles:!0,composed:!0}))})),zi(this,St,Bo).call(this)}updated(e){if(super.updated(e),this.toggleAttribute("aria-disabled",this.disabled),this._internals&&(e.has("value")||e.has("disabled"))){const t=this.disabled?null:this.value;this._internals.setFormValue(t)}(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&zi(this,St,Bo).call(this)}formDisabledCallback(e){this.disabled=e}connectedCallback(){super.connectedCallback(),this._inputId=this.id||`scb-textfield-${Math.random().toString(36).substr(2,9)}`,this._formSubmitHandler=e=>{this.reportValidity()||(e.preventDefault(),e.stopPropagation())},this._form=this.closest("form"),this._form&&(this._form.addEventListener("submit",this._formSubmitHandler,!0),this._formResetHandler=()=>{var t;this.value=this._initialValue;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".scb-textfield");e&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&(e.value=this._initialValue),this.error=!1},this._form.addEventListener("reset",this._formResetHandler,!0))}disconnectedCallback(){super.disconnectedCallback(),this._form&&this._formSubmitHandler&&(this._form.removeEventListener("submit",this._formSubmitHandler,!0),this._formResetHandler&&this._form.removeEventListener("reset",this._formResetHandler,!0))}reportValidity(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".scb-textfield");if(e&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){this.required&&!e.value?e.setCustomValidity(this.errorText||"Ogiltig inmatning."):e.setCustomValidity("");const i=e.reportValidity();this.error=!i;const r=i?"":this.errorText||e.validationMessage||"Ogiltig inmatning.";return i||(this.errorText=r),this._internals&&(i?this._internals.setValidity({}):this._internals.setValidity({customError:!0},r,e)),i}return!0}_onClearClick(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".scb-textfield");if(e&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){if(e.value="",this.value="",this._internals){const i=this.disabled?null:this.value;this._internals.setFormValue(i),this._internals.setValidity({})}this.error=!1,e.setCustomValidity(""),this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("onValueChanged",{detail:{value:this.value},bubbles:!0,composed:!0})),e.focus()}}},St=new WeakSet,Bo=function(){const a=zi(this,St,Kr).call(this,this.spacing),e=zi(this,St,Kr).call(this,this.spacingTop)??a,t=zi(this,St,Kr).call(this,this.spacingBottom)??a;e?this.style.setProperty("--scb-textfield-spacing-block-start",e):this.style.removeProperty("--scb-textfield-spacing-block-start"),t?this.style.setProperty("--scb-textfield-spacing-block-end",t):this.style.removeProperty("--scb-textfield-spacing-block-end")},Kr=function(a){if(!a)return;const e=String(a).trim();if(e)return/^\d+$/.test(e)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(e,10)))})`:e},o.ScbTextField.formAssociated=!0,o.ScbTextField.styles=[m`
3884
+ `}firstUpdated(e){var i;super.firstUpdated(e),this._initialValue=this.value;const t=(i=this.shadowRoot)==null?void 0:i.querySelector(".scb-textfield");t&&(t.addEventListener("input",()=>{const r=t;if(this.value=r.value,this._internals){const s=this.disabled?null:this.value;this._internals.setFormValue(s)}if(this.pattern){const s=new RegExp(this.pattern);this.error=!s.test(this.value)}this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("onValueChanged",{detail:{value:this.value},bubbles:!0,composed:!0}))}),t.addEventListener("change",()=>{this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}),t.addEventListener("select",()=>{this.dispatchEvent(new Event("select",{bubbles:!0,composed:!0}))})),zi(this,kt,Ro).call(this)}updated(e){if(super.updated(e),this.toggleAttribute("aria-disabled",this.disabled),this._internals&&(e.has("value")||e.has("disabled"))){const t=this.disabled?null:this.value;this._internals.setFormValue(t)}(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&zi(this,kt,Ro).call(this)}formDisabledCallback(e){this.disabled=e}connectedCallback(){super.connectedCallback(),this._inputId=this.id||`scb-textfield-${Math.random().toString(36).substr(2,9)}`,this._formSubmitHandler=e=>{this.reportValidity()||(e.preventDefault(),e.stopPropagation())},this._form=this.closest("form"),this._form&&(this._form.addEventListener("submit",this._formSubmitHandler,!0),this._formResetHandler=()=>{var t;this.value=this._initialValue;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".scb-textfield");e&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&(e.value=this._initialValue),this.error=!1},this._form.addEventListener("reset",this._formResetHandler,!0))}disconnectedCallback(){super.disconnectedCallback(),this._form&&this._formSubmitHandler&&(this._form.removeEventListener("submit",this._formSubmitHandler,!0),this._formResetHandler&&this._form.removeEventListener("reset",this._formResetHandler,!0))}reportValidity(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".scb-textfield");if(e&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){this.required&&!e.value?e.setCustomValidity(this.errorText||"Ogiltig inmatning."):e.setCustomValidity("");const i=e.reportValidity();this.error=!i;const r=i?"":this.errorText||e.validationMessage||"Ogiltig inmatning.";return i||(this.errorText=r),this._internals&&(i?this._internals.setValidity({}):this._internals.setValidity({customError:!0},r,e)),i}return!0}_onClearClick(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".scb-textfield");if(e&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){if(e.value="",this.value="",this._internals){const i=this.disabled?null:this.value;this._internals.setFormValue(i),this._internals.setValidity({})}this.error=!1,e.setCustomValidity(""),this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("onValueChanged",{detail:{value:this.value},bubbles:!0,composed:!0})),e.focus()}}},kt=new WeakSet,Ro=function(){const a=zi(this,kt,Kr).call(this,this.spacing),e=zi(this,kt,Kr).call(this,this.spacingTop)??a,t=zi(this,kt,Kr).call(this,this.spacingBottom)??a;e?this.style.setProperty("--scb-textfield-spacing-block-start",e):this.style.removeProperty("--scb-textfield-spacing-block-start"),t?this.style.setProperty("--scb-textfield-spacing-block-end",t):this.style.removeProperty("--scb-textfield-spacing-block-end")},Kr=function(a){if(!a)return;const e=String(a).trim();if(e)return/^\d+$/.test(e)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(e,10)))})`:e},o.ScbTextField.formAssociated=!0,o.ScbTextField.styles=[m`
3884
3885
  :host {
3885
3886
  --scb-textfield-number-max-width: 280px;
3886
3887
  --scb-textfield-text-max-width: 400px;
@@ -4057,7 +4058,7 @@ ${this.value}</textarea
4057
4058
  height: 100%;
4058
4059
  display: block;
4059
4060
  }
4060
- `],Z([n({type:String,reflect:!0})],o.ScbTextField.prototype,"type",2),Z([n({type:String})],o.ScbTextField.prototype,"label",2),Z([n({type:String,attribute:"supporting-text"})],o.ScbTextField.prototype,"supportingText",2),Z([n({type:String,attribute:"error-text"})],o.ScbTextField.prototype,"errorText",2),Z([n({type:String,attribute:"leading-icon"})],o.ScbTextField.prototype,"leadingIcon",2),Z([n({type:String})],o.ScbTextField.prototype,"name",2),Z([n({type:String})],o.ScbTextField.prototype,"pattern",2),Z([n({type:String,attribute:"value"})],o.ScbTextField.prototype,"value",2),Z([n({type:String})],o.ScbTextField.prototype,"underLabel",2),Z([n({type:Boolean,reflect:!0})],o.ScbTextField.prototype,"error",2),Z([n({type:Boolean,reflect:!0})],o.ScbTextField.prototype,"disabled",2),Z([n({type:Boolean,reflect:!0})],o.ScbTextField.prototype,"required",2),Z([n({type:String,reflect:!0})],o.ScbTextField.prototype,"spacing",2),Z([n({type:String,attribute:"spacing-top",reflect:!0})],o.ScbTextField.prototype,"spacingTop",2),Z([n({type:String,attribute:"spacing-bottom",reflect:!0})],o.ScbTextField.prototype,"spacingBottom",2),o.ScbTextField=Z([g("scb-textfield")],o.ScbTextField);var Sp=Object.defineProperty,kp=Object.getOwnPropertyDescriptor,qn=a=>{throw TypeError(a)},We=(a,e,t,i)=>{for(var r=i>1?void 0:i?kp(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Sp(e,t,r),r},Un=(a,e,t)=>e.has(a)||qn("Cannot "+t),kt=(a,e,t)=>(Un(a,e,"read from private field"),t?t.call(a):e.get(a)),Gr=(a,e,t)=>e.has(a)?qn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),Ii=(a,e,t)=>(Un(a,e,"access private method"),t),Do,Yt,Yr,$t,Mo,Xr;o.ScbRadioGroup=class extends y{constructor(){super(),Gr(this,$t),this.name="",this.orientation="vertical",this.disabled=!1,this.ariaLabel=null,this.spacing="",this.spacingTop="",this.spacingBottom="",this.value="",this._internals=null,this._form=null,this._formResetHandler=null,this._initialValue="",Gr(this,Do,()=>{var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");return e?e.assignedElements({flatten:!0}).filter(i=>i.tagName.toLowerCase()==="scb-radio-button"):[]}),Gr(this,Yt,()=>{const e=kt(this,Do).call(this);if(!e.length)return;let t=null;for(const i of e){const r=i;this.name&&i.setAttribute("name",this.name),this.disabled?i.setAttribute("disabled",""):i.removeAttribute("disabled"),this.orientation==="horizontal"?i.setAttribute("orientation","horizontal"):i.removeAttribute("orientation");const s=r.value??i.getAttribute("value")??"",l=typeof r.checked=="boolean"?r.checked:i.hasAttribute("checked");if(this.value){const h=String(s)===this.value;h&&!l?r.checked=!0:!h&&l&&(r.checked=!1)}else l&&t===null&&(t=String(s))}!this.value&&t!==null&&(this.value=t)}),Gr(this,Yr,e=>{var r,s;const t=e.composedPath().find(l=>{var h;return((h=l==null?void 0:l.tagName)==null?void 0:h.toLowerCase())==="scb-radio-button"}),i=(t==null?void 0:t.value)??((r=t==null?void 0:t.getAttribute)==null?void 0:r.call(t,"value"))??((s=e.target)==null?void 0:s.value)??"";this.value=String(i??""),this.dispatchEvent(new CustomEvent("scb-change",{detail:{value:String(i??""),originalIsTrusted:(e==null?void 0:e.isTrusted)===!0},bubbles:!0,composed:!0}))}),"attachInternals"in this&&(this._internals=this.attachInternals())}render(){const e=this.orientation==="horizontal"?"row":"column";return c`
4061
+ `],Z([n({type:String,reflect:!0})],o.ScbTextField.prototype,"type",2),Z([n({type:String})],o.ScbTextField.prototype,"label",2),Z([n({type:String,attribute:"supporting-text"})],o.ScbTextField.prototype,"supportingText",2),Z([n({type:String,attribute:"error-text"})],o.ScbTextField.prototype,"errorText",2),Z([n({type:String,attribute:"leading-icon"})],o.ScbTextField.prototype,"leadingIcon",2),Z([n({type:String})],o.ScbTextField.prototype,"name",2),Z([n({type:String})],o.ScbTextField.prototype,"pattern",2),Z([n({type:String,attribute:"value"})],o.ScbTextField.prototype,"value",2),Z([n({type:String})],o.ScbTextField.prototype,"underLabel",2),Z([n({type:Boolean,reflect:!0})],o.ScbTextField.prototype,"error",2),Z([n({type:Boolean,reflect:!0})],o.ScbTextField.prototype,"disabled",2),Z([n({type:Boolean,reflect:!0})],o.ScbTextField.prototype,"required",2),Z([n({type:String,reflect:!0})],o.ScbTextField.prototype,"spacing",2),Z([n({type:String,attribute:"spacing-top",reflect:!0})],o.ScbTextField.prototype,"spacingTop",2),Z([n({type:String,attribute:"spacing-bottom",reflect:!0})],o.ScbTextField.prototype,"spacingBottom",2),o.ScbTextField=Z([g("scb-textfield")],o.ScbTextField);var Sp=Object.defineProperty,kp=Object.getOwnPropertyDescriptor,qn=a=>{throw TypeError(a)},We=(a,e,t,i)=>{for(var r=i>1?void 0:i?kp(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Sp(e,t,r),r},Un=(a,e,t)=>e.has(a)||qn("Cannot "+t),$t=(a,e,t)=>(Un(a,e,"read from private field"),t?t.call(a):e.get(a)),Gr=(a,e,t)=>e.has(a)?qn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),Ii=(a,e,t)=>(Un(a,e,"access private method"),t),Do,Yt,Yr,Ct,Mo,Xr;o.ScbRadioGroup=class extends y{constructor(){super(),Gr(this,Ct),this.name="",this.orientation="vertical",this.disabled=!1,this.ariaLabel=null,this.spacing="",this.spacingTop="",this.spacingBottom="",this.value="",this._internals=null,this._form=null,this._formResetHandler=null,this._initialValue="",Gr(this,Do,()=>{var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");return e?e.assignedElements({flatten:!0}).filter(i=>i.tagName.toLowerCase()==="scb-radio-button"):[]}),Gr(this,Yt,()=>{const e=$t(this,Do).call(this);if(!e.length)return;let t=null;for(const i of e){const r=i;this.name&&i.setAttribute("name",this.name),this.disabled?i.setAttribute("disabled",""):i.removeAttribute("disabled"),this.orientation==="horizontal"?i.setAttribute("orientation","horizontal"):i.removeAttribute("orientation");const s=r.value??i.getAttribute("value")??"",l=typeof r.checked=="boolean"?r.checked:i.hasAttribute("checked");if(this.value){const h=String(s)===this.value;h&&!l?r.checked=!0:!h&&l&&(r.checked=!1)}else l&&t===null&&(t=String(s))}!this.value&&t!==null&&(this.value=t)}),Gr(this,Yr,e=>{var r,s;const t=e.composedPath().find(l=>{var h;return((h=l==null?void 0:l.tagName)==null?void 0:h.toLowerCase())==="scb-radio-button"}),i=(t==null?void 0:t.value)??((r=t==null?void 0:t.getAttribute)==null?void 0:r.call(t,"value"))??((s=e.target)==null?void 0:s.value)??"";this.value=String(i??""),this.dispatchEvent(new CustomEvent("scb-change",{detail:{value:String(i??""),originalIsTrusted:(e==null?void 0:e.isTrusted)===!0},bubbles:!0,composed:!0}))}),"attachInternals"in this&&(this._internals=this.attachInternals())}render(){const e=this.orientation==="horizontal"?"row":"column";return c`
4061
4062
  <div
4062
4063
  class="g"
4063
4064
  role="radiogroup"
@@ -4065,9 +4066,9 @@ ${this.value}</textarea
4065
4066
  aria-label=${this.ariaLabel??""}
4066
4067
  style=${`--_dir:${e}`}
4067
4068
  >
4068
- <slot @slotchange=${kt(this,Yt)}></slot>
4069
+ <slot @slotchange=${$t(this,Yt)}></slot>
4069
4070
  </div>
4070
- `}firstUpdated(){Ii(this,$t,Mo).call(this),kt(this,Yt).call(this),this.addEventListener("change",kt(this,Yr)),this._initialValue=this.value,this._form=this.closest("form"),this._form&&(this._formResetHandler=()=>{this.value=this._initialValue,this.requestUpdate(),kt(this,Yt).call(this),this.__syncFormValue()},this._form.addEventListener("reset",this._formResetHandler,!0)),this.__syncFormValue()}disconnectedCallback(){this.removeEventListener("change",kt(this,Yr)),this._form&&this._formResetHandler&&this._form.removeEventListener("reset",this._formResetHandler,!0),super.disconnectedCallback()}updated(e){(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&Ii(this,$t,Mo).call(this),(e.has("name")||e.has("disabled")||e.has("orientation")||e.has("value"))&&kt(this,Yt).call(this),(e.has("value")||e.has("disabled")||e.has("name"))&&this.__syncFormValue()}formDisabledCallback(e){this.disabled=e}__syncFormValue(){if(!this._internals)return;const e=typeof this.name=="string"&&this.name.trim()!=="",t=typeof this.value=="string"&&this.value.trim()!=="",i=this.disabled||!e||!t?null:this.value;this._internals.setFormValue(i)}},Do=new WeakMap,Yt=new WeakMap,Yr=new WeakMap,$t=new WeakSet,Mo=function(){const a=Ii(this,$t,Xr).call(this,this.spacing),e=Ii(this,$t,Xr).call(this,this.spacingTop)??a,t=Ii(this,$t,Xr).call(this,this.spacingBottom)??a;e?this.style.setProperty("--scb-radio-group-spacing-block-start",e):this.style.removeProperty("--scb-radio-group-spacing-block-start"),t?this.style.setProperty("--scb-radio-group-spacing-block-end",t):this.style.removeProperty("--scb-radio-group-spacing-block-end")},Xr=function(a){if(!a)return;const e=String(a).trim();if(e)return/^\d+$/.test(e)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(e,10)))})`:e},o.ScbRadioGroup.formAssociated=!0,o.ScbRadioGroup.styles=m`
4071
+ `}firstUpdated(){Ii(this,Ct,Mo).call(this),$t(this,Yt).call(this),this.addEventListener("change",$t(this,Yr)),this._initialValue=this.value,this._form=this.closest("form"),this._form&&(this._formResetHandler=()=>{this.value=this._initialValue,this.requestUpdate(),$t(this,Yt).call(this),this.__syncFormValue()},this._form.addEventListener("reset",this._formResetHandler,!0)),this.__syncFormValue()}disconnectedCallback(){this.removeEventListener("change",$t(this,Yr)),this._form&&this._formResetHandler&&this._form.removeEventListener("reset",this._formResetHandler,!0),super.disconnectedCallback()}updated(e){(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&Ii(this,Ct,Mo).call(this),(e.has("name")||e.has("disabled")||e.has("orientation")||e.has("value"))&&$t(this,Yt).call(this),(e.has("value")||e.has("disabled")||e.has("name"))&&this.__syncFormValue()}formDisabledCallback(e){this.disabled=e}__syncFormValue(){if(!this._internals)return;const e=typeof this.name=="string"&&this.name.trim()!=="",t=typeof this.value=="string"&&this.value.trim()!=="",i=this.disabled||!e||!t?null:this.value;this._internals.setFormValue(i)}},Do=new WeakMap,Yt=new WeakMap,Yr=new WeakMap,Ct=new WeakSet,Mo=function(){const a=Ii(this,Ct,Xr).call(this,this.spacing),e=Ii(this,Ct,Xr).call(this,this.spacingTop)??a,t=Ii(this,Ct,Xr).call(this,this.spacingBottom)??a;e?this.style.setProperty("--scb-radio-group-spacing-block-start",e):this.style.removeProperty("--scb-radio-group-spacing-block-start"),t?this.style.setProperty("--scb-radio-group-spacing-block-end",t):this.style.removeProperty("--scb-radio-group-spacing-block-end")},Xr=function(a){if(!a)return;const e=String(a).trim();if(e)return/^\d+$/.test(e)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(e,10)))})`:e},o.ScbRadioGroup.formAssociated=!0,o.ScbRadioGroup.styles=m`
4071
4072
  :host {
4072
4073
  display: block;
4073
4074
 
@@ -4095,7 +4096,7 @@ ${this.value}</textarea
4095
4096
  ::slotted(scb-radio-button) {
4096
4097
  --scb-radio-gap: 0;
4097
4098
  }
4098
- `,We([n({type:String})],o.ScbRadioGroup.prototype,"name",2),We([n({type:String,reflect:!0})],o.ScbRadioGroup.prototype,"orientation",2),We([n({type:Boolean,reflect:!0})],o.ScbRadioGroup.prototype,"disabled",2),We([n({type:String,attribute:"aria-label"})],o.ScbRadioGroup.prototype,"ariaLabel",2),We([n({type:String,reflect:!0})],o.ScbRadioGroup.prototype,"spacing",2),We([n({type:String,attribute:"spacing-top",reflect:!0})],o.ScbRadioGroup.prototype,"spacingTop",2),We([n({type:String,attribute:"spacing-bottom",reflect:!0})],o.ScbRadioGroup.prototype,"spacingBottom",2),We([n({type:String,reflect:!0})],o.ScbRadioGroup.prototype,"value",2),o.ScbRadioGroup=We([g("scb-radio-group")],o.ScbRadioGroup);var $p=Object.defineProperty,Cp=Object.getOwnPropertyDescriptor,Ct=(a,e,t,i)=>{for(var r=i>1?void 0:i?Cp(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&$p(e,t,r),r};o.ScbRadioButton=class extends y{constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this.name="",this.value="",this.label="",this.supportingText="",this._radioId="",this._onMdRadioChange=e=>{if(this.disabled)return;const t=e.target;t&&t.checked&&(this.checked=!0,this.dispatchEvent(new CustomEvent("scb-radio-change",{detail:{name:this.name,source:this},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("change",{detail:{checked:this.checked,value:this.value},bubbles:!0,composed:!0})))},this._onRadioChange=e=>{e.detail.name===this.name&&e.detail.source!==this&&(this.checked=!1)}}connectedCallback(){super.connectedCallback(),this._radioId=this.id||`scb-radio-${Math.random().toString(36).substr(2,9)}`,document.addEventListener("scb-radio-change",this._onRadioChange)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("scb-radio-change",this._onRadioChange)}firstUpdated(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("md-radio");e&&e.addEventListener("input",()=>{this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))})}updated(e){super.updated(e),e.has("disabled")&&this.toggleAttribute("aria-disabled",this.disabled)}render(){const e=this.supportingText?`${this._radioId}-supporting-text`:void 0;return c`
4099
+ `,We([n({type:String})],o.ScbRadioGroup.prototype,"name",2),We([n({type:String,reflect:!0})],o.ScbRadioGroup.prototype,"orientation",2),We([n({type:Boolean,reflect:!0})],o.ScbRadioGroup.prototype,"disabled",2),We([n({type:String,attribute:"aria-label"})],o.ScbRadioGroup.prototype,"ariaLabel",2),We([n({type:String,reflect:!0})],o.ScbRadioGroup.prototype,"spacing",2),We([n({type:String,attribute:"spacing-top",reflect:!0})],o.ScbRadioGroup.prototype,"spacingTop",2),We([n({type:String,attribute:"spacing-bottom",reflect:!0})],o.ScbRadioGroup.prototype,"spacingBottom",2),We([n({type:String,reflect:!0})],o.ScbRadioGroup.prototype,"value",2),o.ScbRadioGroup=We([g("scb-radio-group")],o.ScbRadioGroup);var $p=Object.defineProperty,Cp=Object.getOwnPropertyDescriptor,Et=(a,e,t,i)=>{for(var r=i>1?void 0:i?Cp(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&$p(e,t,r),r};o.ScbRadioButton=class extends y{constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this.name="",this.value="",this.label="",this.supportingText="",this._radioId="",this._onMdRadioChange=e=>{if(this.disabled)return;const t=e.target;t&&t.checked&&(this.checked=!0,this.dispatchEvent(new CustomEvent("scb-radio-change",{detail:{name:this.name,source:this},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("change",{detail:{checked:this.checked,value:this.value},bubbles:!0,composed:!0})))},this._onRadioChange=e=>{e.detail.name===this.name&&e.detail.source!==this&&(this.checked=!1)}}connectedCallback(){super.connectedCallback(),this._radioId=this.id||`scb-radio-${Math.random().toString(36).substr(2,9)}`,document.addEventListener("scb-radio-change",this._onRadioChange)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("scb-radio-change",this._onRadioChange)}firstUpdated(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("md-radio");e&&e.addEventListener("input",()=>{this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))})}updated(e){super.updated(e),e.has("disabled")&&this.toggleAttribute("aria-disabled",this.disabled)}render(){const e=this.supportingText?`${this._radioId}-supporting-text`:void 0;return c`
4099
4100
  <label class="wrap">
4100
4101
  <div class="radio-wrap">
4101
4102
  <md-radio
@@ -4183,7 +4184,7 @@ ${this.value}</textarea
4183
4184
  .lbl { color: var(--md-sys-color-on-surface); }
4184
4185
  .supporting-text { color: var(--md-sys-color-on-surface-variant); }
4185
4186
  }
4186
- `,Ct([n({type:Boolean,reflect:!0})],o.ScbRadioButton.prototype,"disabled",2),Ct([n({type:Boolean,reflect:!0})],o.ScbRadioButton.prototype,"checked",2),Ct([n({type:String,reflect:!0})],o.ScbRadioButton.prototype,"name",2),Ct([n({type:String,reflect:!0})],o.ScbRadioButton.prototype,"value",2),Ct([n({type:String})],o.ScbRadioButton.prototype,"label",2),Ct([n({type:String,attribute:"supporting-text"})],o.ScbRadioButton.prototype,"supportingText",2),o.ScbRadioButton=Ct([g("scb-radio-button")],o.ScbRadioButton);var Ep=Object.defineProperty,Tp=Object.getOwnPropertyDescriptor,Wn=a=>{throw TypeError(a)},be=(a,e,t,i)=>{for(var r=i>1?void 0:i?Tp(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Ep(e,t,r),r},Ap=(a,e,t)=>e.has(a)||Wn("Cannot "+t),zp=(a,e,t)=>e.has(a)?Wn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),Pi=(a,e,t)=>(Ap(a,e,"access private method"),t),Et,Fo,Zr;o.ScbSwitch=class extends y{constructor(){super(),zp(this,Et),this._internals=null,this.label="",this.ariaLabel="",this.icons=!1,this.selected=!1,this.disabled=!1,this.fullWidth=!1,this.spacing="",this.spacingTop="",this.spacingBottom="",this.name="",this.value="on",this._form=null,this._formResetHandler=null,this._initialSelected=!1,"attachInternals"in this&&(this._internals=this.attachInternals())}connectedCallback(){super.connectedCallback(),this._initialSelected=this.selected,this._form=this.closest("form"),this._form&&(this._formResetHandler=()=>{this.selected=this._initialSelected,this.__syncFormValue()},this._form.addEventListener("reset",this._formResetHandler,!0)),this.__syncFormValue()}disconnectedCallback(){this._form&&this._formResetHandler&&this._form.removeEventListener("reset",this._formResetHandler,!0),super.disconnectedCallback()}firstUpdated(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("md-switch");e==null||e.addEventListener("change",i=>{this.selected=i.target.selected,this.dispatchEvent(new CustomEvent("change",{detail:{selected:this.selected},bubbles:!0,composed:!0}))}),Pi(this,Et,Fo).call(this)}updated(e){super.updated(e),e.has("disabled")&&this.toggleAttribute("aria-disabled",this.disabled),(e.has("selected")||e.has("disabled")||e.has("value"))&&this.__syncFormValue(),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&Pi(this,Et,Fo).call(this)}formDisabledCallback(e){this.disabled=e}__syncFormValue(){if(!this._internals)return;const e=this.disabled||!this.selected?null:this.value;this._internals.setFormValue(e)}render(){const e=this.label.trim().length>0,t=e?u:this.ariaLabel||u,i=c`
4187
+ `,Et([n({type:Boolean,reflect:!0})],o.ScbRadioButton.prototype,"disabled",2),Et([n({type:Boolean,reflect:!0})],o.ScbRadioButton.prototype,"checked",2),Et([n({type:String,reflect:!0})],o.ScbRadioButton.prototype,"name",2),Et([n({type:String,reflect:!0})],o.ScbRadioButton.prototype,"value",2),Et([n({type:String})],o.ScbRadioButton.prototype,"label",2),Et([n({type:String,attribute:"supporting-text"})],o.ScbRadioButton.prototype,"supportingText",2),o.ScbRadioButton=Et([g("scb-radio-button")],o.ScbRadioButton);var Ep=Object.defineProperty,Tp=Object.getOwnPropertyDescriptor,Wn=a=>{throw TypeError(a)},me=(a,e,t,i)=>{for(var r=i>1?void 0:i?Tp(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Ep(e,t,r),r},Ap=(a,e,t)=>e.has(a)||Wn("Cannot "+t),zp=(a,e,t)=>e.has(a)?Wn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),Pi=(a,e,t)=>(Ap(a,e,"access private method"),t),Tt,Fo,Zr;o.ScbSwitch=class extends y{constructor(){super(),zp(this,Tt),this._internals=null,this.label="",this.ariaLabel="",this.icons=!1,this.selected=!1,this.disabled=!1,this.fullWidth=!1,this.spacing="",this.spacingTop="",this.spacingBottom="",this.name="",this.value="on",this._form=null,this._formResetHandler=null,this._initialSelected=!1,"attachInternals"in this&&(this._internals=this.attachInternals())}connectedCallback(){super.connectedCallback(),this._initialSelected=this.selected,this._form=this.closest("form"),this._form&&(this._formResetHandler=()=>{this.selected=this._initialSelected,this.__syncFormValue()},this._form.addEventListener("reset",this._formResetHandler,!0)),this.__syncFormValue()}disconnectedCallback(){this._form&&this._formResetHandler&&this._form.removeEventListener("reset",this._formResetHandler,!0),super.disconnectedCallback()}firstUpdated(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("md-switch");e==null||e.addEventListener("change",i=>{this.selected=i.target.selected,this.dispatchEvent(new CustomEvent("change",{detail:{selected:this.selected},bubbles:!0,composed:!0}))}),Pi(this,Tt,Fo).call(this)}updated(e){super.updated(e),e.has("disabled")&&this.toggleAttribute("aria-disabled",this.disabled),(e.has("selected")||e.has("disabled")||e.has("value"))&&this.__syncFormValue(),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&Pi(this,Tt,Fo).call(this)}formDisabledCallback(e){this.disabled=e}__syncFormValue(){if(!this._internals)return;const e=this.disabled||!this.selected?null:this.value;this._internals.setFormValue(e)}render(){const e=this.label.trim().length>0,t=e?u:this.ariaLabel||u,i=c`
4187
4188
  <md-switch
4188
4189
  ?icons=${this.icons}
4189
4190
  ?selected=${this.selected}
@@ -4195,7 +4196,7 @@ ${this.value}</textarea
4195
4196
  <span class="switch-label">${this.label}</span>
4196
4197
  ${i}
4197
4198
  </label>
4198
- `:i}},Et=new WeakSet,Fo=function(){const a=Pi(this,Et,Zr).call(this,this.spacing),e=Pi(this,Et,Zr).call(this,this.spacingTop)??a,t=Pi(this,Et,Zr).call(this,this.spacingBottom)??a;e?this.style.setProperty("--scb-switch-spacing-block-start",e):this.style.removeProperty("--scb-switch-spacing-block-start"),t?this.style.setProperty("--scb-switch-spacing-block-end",t):this.style.removeProperty("--scb-switch-spacing-block-end")},Zr=function(a){if(!a)return;const e=String(a).trim();if(e)return/^\d+$/.test(e)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(e,10)))})`:e},o.ScbSwitch.formAssociated=!0,o.ScbSwitch.styles=m`
4199
+ `:i}},Tt=new WeakSet,Fo=function(){const a=Pi(this,Tt,Zr).call(this,this.spacing),e=Pi(this,Tt,Zr).call(this,this.spacingTop)??a,t=Pi(this,Tt,Zr).call(this,this.spacingBottom)??a;e?this.style.setProperty("--scb-switch-spacing-block-start",e):this.style.removeProperty("--scb-switch-spacing-block-start"),t?this.style.setProperty("--scb-switch-spacing-block-end",t):this.style.removeProperty("--scb-switch-spacing-block-end")},Zr=function(a){if(!a)return;const e=String(a).trim();if(e)return/^\d+$/.test(e)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(e,10)))})`:e},o.ScbSwitch.formAssociated=!0,o.ScbSwitch.styles=m`
4199
4200
  :host {
4200
4201
  display: block;
4201
4202
  /* Vertikalt avstånd styrs av spacing-attributen via CSS-variabler */
@@ -4238,7 +4239,7 @@ ${this.value}</textarea
4238
4239
  /* Ärver färg från container */
4239
4240
  color: var(--scb-switch-label-color, inherit);
4240
4241
  }
4241
- `,be([n({type:String})],o.ScbSwitch.prototype,"label",2),be([n({type:String,reflect:!0,attribute:"aria-label"})],o.ScbSwitch.prototype,"ariaLabel",2),be([n({type:Boolean,reflect:!0})],o.ScbSwitch.prototype,"icons",2),be([n({type:Boolean,reflect:!0})],o.ScbSwitch.prototype,"selected",2),be([n({type:Boolean,reflect:!0})],o.ScbSwitch.prototype,"disabled",2),be([n({type:Boolean,reflect:!0,attribute:"full-width"})],o.ScbSwitch.prototype,"fullWidth",2),be([n({type:String,reflect:!0})],o.ScbSwitch.prototype,"spacing",2),be([n({type:String,attribute:"spacing-top",reflect:!0})],o.ScbSwitch.prototype,"spacingTop",2),be([n({type:String,attribute:"spacing-bottom",reflect:!0})],o.ScbSwitch.prototype,"spacingBottom",2),be([n({type:String})],o.ScbSwitch.prototype,"name",2),be([n({type:String})],o.ScbSwitch.prototype,"value",2),o.ScbSwitch=be([g("scb-switch")],o.ScbSwitch);const Ip=Object.freeze(Object.defineProperty({__proto__:null,get ScbSwitch(){return o.ScbSwitch}},Symbol.toStringTag,{value:"Module"}));var Pp=Object.defineProperty,Op=Object.getOwnPropertyDescriptor,j=(a,e,t,i)=>{for(var r=i>1?void 0:i?Op(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Pp(e,t,r),r};o.ScbDialog=class extends y{constructor(){super(...arguments),this.open=!1,this.inSb=!1,this.scrimClose=!0,this.variant="basic",this.label="",this.icon="",this.supportingText="",this.okButton="OK",this.cancelButton="Avbryt",this.deleteButton="Delete",this.confirmButton="Ta bort",this.denyButton="Avbryt",this.resetButton="Återställ",this.submitButton="Spara",this.formId="",this.formAction="",this.formMethod="",this.__lastTriggerEl=null,this.__onDocumentClick=e=>{this.__getActionFromEvent(e)==="toggle"&&(this.__setOpen(!this.open),e.stopPropagation())},this.__onDocumentKeydown=e=>{this.open&&e.key==="Escape"&&(this.__fire("esc"),this.__setOpen(!1))},this.__onScrimClick=()=>{this.scrimClose&&(this.__fire("scrim"),this.__setOpen(!1))},this.__onOk=()=>{this.__fire("ok"),this.__setOpen(!1)},this.__onCancel=()=>{this.__fire("cancel"),this.__setOpen(!1)},this.__onConfirm=()=>{this.__fire("confirm"),this.__setOpen(!1)},this.__onDeny=()=>{this.__fire("deny"),this.__setOpen(!1)},this.__onReset=()=>{var t,i,r,s;(i=(t=this.shadowRoot)==null?void 0:t.querySelector("form"))==null||i.reset(),(((s=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"))==null?void 0:s.assignedElements({flatten:!0}))??[]).forEach(l=>{const h=l.tagName;h==="SCB-TEXTFIELD"&&(l.value=""),h==="SCB-CHECKBOX"&&(l.checked=!1),h==="SCB-RADIO-BUTTON"&&(l.checked=!1),h==="SCB-SWITCH"&&(l.selected=!1),h==="SCB-CHIP"&&(l.selected=!1)}),this.__fire("reset")},this.__onSubmit=()=>{var e,t;(t=(e=this.shadowRoot)==null?void 0:e.querySelector("form"))==null||t.requestSubmit(),this.__fire("submit"),this.__setOpen(!1)},this.__onKeydownTrap=e=>{if(!this.open||e.key!=="Tab")return;const t=Array.from(this.shadowRoot.querySelectorAll('button,[href],input,select,textarea,[tabindex]:not([tabindex="-1"])')).filter(s=>!s.hasAttribute("disabled"));if(!t.length)return;const i=t[0],r=t[t.length-1];e.shiftKey&&document.activeElement===i?(r.focus(),e.preventDefault()):!e.shiftKey&&document.activeElement===r&&(i.focus(),e.preventDefault())}}__getActionFromEvent(e){if(!this.id)return null;for(const t of e.composedPath())if(t instanceof Element){if(t.getAttribute("data-dialog-toggle")===this.id)return this.__lastTriggerEl=t,"toggle";if(t.getAttribute("aria-controls")===this.id)return this.__lastTriggerEl=t,"toggle"}return null}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.__onDocumentClick,!1),document.addEventListener("keydown",this.__onDocumentKeydown,!0),this.addEventListener("keydown",this.__onKeydownTrap)}disconnectedCallback(){document.removeEventListener("click",this.__onDocumentClick,!1),document.removeEventListener("keydown",this.__onDocumentKeydown,!0),this.removeEventListener("keydown",this.__onKeydownTrap),super.disconnectedCallback()}updated(e){var t,i;if(e.has("open")){const r=e.get("open");this.__updateTriggersExpanded(),this.open&&!r?this.updateComplete.then(()=>{var s,l,h;(h=(l=(s=this.shadowRoot)==null?void 0:s.querySelector('button,[href],input,select,textarea,[tabindex]:not([tabindex="-1"])'))==null?void 0:l.focus)==null||h.call(l)}):!this.open&&r&&((i=(t=this.__lastTriggerEl)==null?void 0:t.focus)==null||i.call(t)),this.__toggleScrollLock(this.open)}}__updateTriggersExpanded(){this.id&&document.querySelectorAll(`[aria-controls="${this.id}"], [data-dialog-toggle="${this.id}"]`).forEach(e=>{e.hasAttribute("aria-controls")&&e.setAttribute("aria-expanded",String(this.open))})}__toggleScrollLock(e){if(this.inSb)return;const t=document.documentElement;t.style.overflow=e?"hidden":""}__setOpen(e){this.open=e,this.__fire(e?"open":"close")}__fire(e,t){this.dispatchEvent(new CustomEvent(e,{detail:t,bubbles:!0,composed:!0}))}__slotIsEmpty(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");return e?e.assignedElements({flatten:!0}).length===0:!0}renderHeader(e){const t=this.variant==="form"||this.variant==="floating";return c`
4242
+ `,me([n({type:String})],o.ScbSwitch.prototype,"label",2),me([n({type:String,reflect:!0,attribute:"aria-label"})],o.ScbSwitch.prototype,"ariaLabel",2),me([n({type:Boolean,reflect:!0})],o.ScbSwitch.prototype,"icons",2),me([n({type:Boolean,reflect:!0})],o.ScbSwitch.prototype,"selected",2),me([n({type:Boolean,reflect:!0})],o.ScbSwitch.prototype,"disabled",2),me([n({type:Boolean,reflect:!0,attribute:"full-width"})],o.ScbSwitch.prototype,"fullWidth",2),me([n({type:String,reflect:!0})],o.ScbSwitch.prototype,"spacing",2),me([n({type:String,attribute:"spacing-top",reflect:!0})],o.ScbSwitch.prototype,"spacingTop",2),me([n({type:String,attribute:"spacing-bottom",reflect:!0})],o.ScbSwitch.prototype,"spacingBottom",2),me([n({type:String})],o.ScbSwitch.prototype,"name",2),me([n({type:String})],o.ScbSwitch.prototype,"value",2),o.ScbSwitch=me([g("scb-switch")],o.ScbSwitch);const Ip=Object.freeze(Object.defineProperty({__proto__:null,get ScbSwitch(){return o.ScbSwitch}},Symbol.toStringTag,{value:"Module"}));var Pp=Object.defineProperty,Op=Object.getOwnPropertyDescriptor,j=(a,e,t,i)=>{for(var r=i>1?void 0:i?Op(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Pp(e,t,r),r};o.ScbDialog=class extends y{constructor(){super(...arguments),this.open=!1,this.inSb=!1,this.scrimClose=!0,this.variant="basic",this.label="",this.icon="",this.supportingText="",this.okButton="OK",this.cancelButton="Avbryt",this.deleteButton="Delete",this.confirmButton="Ta bort",this.denyButton="Avbryt",this.resetButton="Återställ",this.submitButton="Spara",this.formId="",this.formAction="",this.formMethod="",this.__lastTriggerEl=null,this.__onDocumentClick=e=>{this.__getActionFromEvent(e)==="toggle"&&(this.__setOpen(!this.open),e.stopPropagation())},this.__onDocumentKeydown=e=>{this.open&&e.key==="Escape"&&(this.__fire("esc"),this.__setOpen(!1))},this.__onScrimClick=()=>{this.scrimClose&&(this.__fire("scrim"),this.__setOpen(!1))},this.__onOk=()=>{this.__fire("ok"),this.__setOpen(!1)},this.__onCancel=()=>{this.__fire("cancel"),this.__setOpen(!1)},this.__onConfirm=()=>{this.__fire("confirm"),this.__setOpen(!1)},this.__onDeny=()=>{this.__fire("deny"),this.__setOpen(!1)},this.__onReset=()=>{var t,i,r,s;(i=(t=this.shadowRoot)==null?void 0:t.querySelector("form"))==null||i.reset(),(((s=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"))==null?void 0:s.assignedElements({flatten:!0}))??[]).forEach(l=>{const h=l.tagName;h==="SCB-TEXTFIELD"&&(l.value=""),h==="SCB-CHECKBOX"&&(l.checked=!1),h==="SCB-RADIO-BUTTON"&&(l.checked=!1),h==="SCB-SWITCH"&&(l.selected=!1),h==="SCB-CHIP"&&(l.selected=!1)}),this.__fire("reset")},this.__onSubmit=()=>{var e,t;(t=(e=this.shadowRoot)==null?void 0:e.querySelector("form"))==null||t.requestSubmit(),this.__fire("submit"),this.__setOpen(!1)},this.__onKeydownTrap=e=>{if(!this.open||e.key!=="Tab")return;const t=Array.from(this.shadowRoot.querySelectorAll('button,[href],input,select,textarea,[tabindex]:not([tabindex="-1"])')).filter(s=>!s.hasAttribute("disabled"));if(!t.length)return;const i=t[0],r=t[t.length-1];e.shiftKey&&document.activeElement===i?(r.focus(),e.preventDefault()):!e.shiftKey&&document.activeElement===r&&(i.focus(),e.preventDefault())}}__getActionFromEvent(e){if(!this.id)return null;for(const t of e.composedPath())if(t instanceof Element){if(t.getAttribute("data-dialog-toggle")===this.id)return this.__lastTriggerEl=t,"toggle";if(t.getAttribute("aria-controls")===this.id)return this.__lastTriggerEl=t,"toggle"}return null}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.__onDocumentClick,!1),document.addEventListener("keydown",this.__onDocumentKeydown,!0),this.addEventListener("keydown",this.__onKeydownTrap)}disconnectedCallback(){document.removeEventListener("click",this.__onDocumentClick,!1),document.removeEventListener("keydown",this.__onDocumentKeydown,!0),this.removeEventListener("keydown",this.__onKeydownTrap),super.disconnectedCallback()}updated(e){var t,i;if(e.has("open")){const r=e.get("open");this.__updateTriggersExpanded(),this.open&&!r?this.updateComplete.then(()=>{var s,l,h;(h=(l=(s=this.shadowRoot)==null?void 0:s.querySelector('button,[href],input,select,textarea,[tabindex]:not([tabindex="-1"])'))==null?void 0:l.focus)==null||h.call(l)}):!this.open&&r&&((i=(t=this.__lastTriggerEl)==null?void 0:t.focus)==null||i.call(t)),this.__toggleScrollLock(this.open)}}__updateTriggersExpanded(){this.id&&document.querySelectorAll(`[aria-controls="${this.id}"], [data-dialog-toggle="${this.id}"]`).forEach(e=>{e.hasAttribute("aria-controls")&&e.setAttribute("aria-expanded",String(this.open))})}__toggleScrollLock(e){if(this.inSb)return;const t=document.documentElement;t.style.overflow=e?"hidden":""}__setOpen(e){this.open=e,this.__fire(e?"open":"close")}__fire(e,t){this.dispatchEvent(new CustomEvent(e,{detail:t,bubbles:!0,composed:!0}))}__slotIsEmpty(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");return e?e.assignedElements({flatten:!0}).length===0:!0}renderHeader(e){const t=this.variant==="form"||this.variant==="floating";return c`
4242
4243
  <div class="header">
4243
4244
  <div class="title">
4244
4245
  ${this.icon?c`<md-icon class="dialog-icon">${this.icon}</md-icon>`:u}
@@ -4398,7 +4399,7 @@ ${this.value}</textarea
4398
4399
  display:block;
4399
4400
  margin-block: var(--scb-choice-gap, 6px);
4400
4401
  }
4401
- `,j([n({type:Boolean,reflect:!0})],o.ScbDialog.prototype,"open",2),j([n({type:Boolean,attribute:!1})],o.ScbDialog.prototype,"inSb",2),j([n({type:Boolean,attribute:"scrim-close"})],o.ScbDialog.prototype,"scrimClose",2),j([n({type:String})],o.ScbDialog.prototype,"variant",2),j([n({type:String})],o.ScbDialog.prototype,"label",2),j([n({type:String})],o.ScbDialog.prototype,"icon",2),j([n({type:String,attribute:"supporting-text"})],o.ScbDialog.prototype,"supportingText",2),j([n({type:String,attribute:"ok-button"})],o.ScbDialog.prototype,"okButton",2),j([n({type:String,attribute:"cancel-button"})],o.ScbDialog.prototype,"cancelButton",2),j([n({type:String,attribute:"delete-button"})],o.ScbDialog.prototype,"deleteButton",2),j([n({type:String,attribute:"confirm-button"})],o.ScbDialog.prototype,"confirmButton",2),j([n({type:String,attribute:"deny-button"})],o.ScbDialog.prototype,"denyButton",2),j([n({type:String,attribute:"reset-button"})],o.ScbDialog.prototype,"resetButton",2),j([n({type:String,attribute:"submit-button"})],o.ScbDialog.prototype,"submitButton",2),j([n({type:String,attribute:"form-id"})],o.ScbDialog.prototype,"formId",2),j([n({type:String,attribute:"form-action"})],o.ScbDialog.prototype,"formAction",2),j([n({type:String,attribute:"form-method"})],o.ScbDialog.prototype,"formMethod",2),o.ScbDialog=j([g("scb-dialog")],o.ScbDialog);var Lp=Object.defineProperty,Rp=Object.getOwnPropertyDescriptor,jn=a=>{throw TypeError(a)},Tt=(a,e,t,i)=>{for(var r=i>1?void 0:i?Rp(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Lp(e,t,r),r},Bp=(a,e,t)=>e.has(a)||jn("Cannot "+t),Dp=(a,e,t)=>e.has(a)?jn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),Kn=(a,e,t)=>(Bp(a,e,"access private method"),t),Jr,Ho;o.ScbDivider=class extends y{constructor(){super(...arguments),Dp(this,Jr),this.variant="thin",this.direction="horizontal",this.inset="none",this.overlay=!1,this.anchor="end",this.spacing=""}firstUpdated(){Kn(this,Jr,Ho).call(this)}updated(e){e.has("spacing")&&Kn(this,Jr,Ho).call(this)}mapSpacingToken(e){if(!e)return;const t=String(e).trim();if(t)return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}render(){return c``}},Jr=new WeakSet,Ho=function(){const a=this.mapSpacingToken(this.spacing);a?this.style.setProperty("--scb-divider-spacing-orth",a):this.style.removeProperty("--scb-divider-spacing-orth")},o.ScbDivider.styles=m`
4402
+ `,j([n({type:Boolean,reflect:!0})],o.ScbDialog.prototype,"open",2),j([n({type:Boolean,attribute:!1})],o.ScbDialog.prototype,"inSb",2),j([n({type:Boolean,attribute:"scrim-close"})],o.ScbDialog.prototype,"scrimClose",2),j([n({type:String})],o.ScbDialog.prototype,"variant",2),j([n({type:String})],o.ScbDialog.prototype,"label",2),j([n({type:String})],o.ScbDialog.prototype,"icon",2),j([n({type:String,attribute:"supporting-text"})],o.ScbDialog.prototype,"supportingText",2),j([n({type:String,attribute:"ok-button"})],o.ScbDialog.prototype,"okButton",2),j([n({type:String,attribute:"cancel-button"})],o.ScbDialog.prototype,"cancelButton",2),j([n({type:String,attribute:"delete-button"})],o.ScbDialog.prototype,"deleteButton",2),j([n({type:String,attribute:"confirm-button"})],o.ScbDialog.prototype,"confirmButton",2),j([n({type:String,attribute:"deny-button"})],o.ScbDialog.prototype,"denyButton",2),j([n({type:String,attribute:"reset-button"})],o.ScbDialog.prototype,"resetButton",2),j([n({type:String,attribute:"submit-button"})],o.ScbDialog.prototype,"submitButton",2),j([n({type:String,attribute:"form-id"})],o.ScbDialog.prototype,"formId",2),j([n({type:String,attribute:"form-action"})],o.ScbDialog.prototype,"formAction",2),j([n({type:String,attribute:"form-method"})],o.ScbDialog.prototype,"formMethod",2),o.ScbDialog=j([g("scb-dialog")],o.ScbDialog);var Lp=Object.defineProperty,Bp=Object.getOwnPropertyDescriptor,jn=a=>{throw TypeError(a)},At=(a,e,t,i)=>{for(var r=i>1?void 0:i?Bp(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Lp(e,t,r),r},Rp=(a,e,t)=>e.has(a)||jn("Cannot "+t),Dp=(a,e,t)=>e.has(a)?jn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),Kn=(a,e,t)=>(Rp(a,e,"access private method"),t),Jr,Ho;o.ScbDivider=class extends y{constructor(){super(...arguments),Dp(this,Jr),this.variant="thin",this.direction="horizontal",this.inset="none",this.overlay=!1,this.anchor="end",this.spacing=""}firstUpdated(){Kn(this,Jr,Ho).call(this)}updated(e){e.has("spacing")&&Kn(this,Jr,Ho).call(this)}mapSpacingToken(e){if(!e)return;const t=String(e).trim();if(t)return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}render(){return c``}},Jr=new WeakSet,Ho=function(){const a=this.mapSpacingToken(this.spacing);a?this.style.setProperty("--scb-divider-spacing-orth",a):this.style.removeProperty("--scb-divider-spacing-orth")},o.ScbDivider.styles=m`
4402
4403
  :host {
4403
4404
  --scb-divider-color: var(--md-sys-color-outline-variant);
4404
4405
  --scb-divider-thickness: 1px;
@@ -4466,7 +4467,7 @@ ${this.value}</textarea
4466
4467
  :host([overlay][direction='vertical'][anchor='start']) {
4467
4468
  left: calc(var(--scb-divider-gap) / -2);
4468
4469
  }
4469
- `,Tt([n({type:String,reflect:!0})],o.ScbDivider.prototype,"variant",2),Tt([n({type:String,reflect:!0})],o.ScbDivider.prototype,"direction",2),Tt([n({type:String,reflect:!0})],o.ScbDivider.prototype,"inset",2),Tt([n({type:Boolean,reflect:!0})],o.ScbDivider.prototype,"overlay",2),Tt([n({type:String,reflect:!0})],o.ScbDivider.prototype,"anchor",2),Tt([n({type:String,reflect:!0})],o.ScbDivider.prototype,"spacing",2),o.ScbDivider=Tt([g("scb-divider")],o.ScbDivider);var Mp=Object.defineProperty,Fp=Object.getOwnPropertyDescriptor,At=(a,e,t,i)=>{for(var r=i>1?void 0:i?Fp(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Mp(e,t,r),r};o.ScbDrawerItem=class extends y{constructor(){super(...arguments),this.label="",this.selected=!1,this.leadingIcon="",this.itemHref="",this.hasSlotContent=!1,this.expanded=!1,this.__submenuId=`sub-${Math.random().toString(36).slice(2)}`,this.__focusId=`f-${Math.random().toString(36).slice(2)}`,this._toggleExpand=e=>{e&&e.stopPropagation(),this.hasSlotContent&&this.__setExpanded(!this.expanded)},this._onButtonClick=e=>{e.stopPropagation(),this._dispatchSelect(),this._toggleExpand()},this._onLinkClick=()=>{this._dispatchSelect()},this._onKeyDown=e=>{var r,s,l,h,p,v,f,b,_;const t=Array.from(((r=this.parentElement)==null?void 0:r.querySelectorAll("scb-drawer-item"))||[]),i=t.indexOf(this);switch(e.key){case"ArrowDown":{e.preventDefault(),(l=(s=(t[i+1]||t[0]).shadowRoot)==null?void 0:s.querySelector(".scb-drawer-label-text"))==null||l.focus();break}case"ArrowUp":{e.preventDefault(),(p=(h=(t[i-1]||t[t.length-1]).shadowRoot)==null?void 0:h.querySelector(".scb-drawer-label-text"))==null||p.focus();break}case"Home":{e.preventDefault(),(f=(v=t[0].shadowRoot)==null?void 0:v.querySelector(".scb-drawer-label-text"))==null||f.focus();break}case"End":{e.preventDefault(),(_=(b=t[t.length-1].shadowRoot)==null?void 0:b.querySelector(".scb-drawer-label-text"))==null||_.focus();break}}}}get __submenuEl(){return this.renderRoot.querySelector(`#${this.__submenuId}`)}async __ensureDepsLoaded(){o.ScbDrawerItem.__rippleLoaded||(await Promise.resolve().then(()=>tr),o.ScbDrawerItem.__rippleLoaded=!0),o.ScbDrawerItem.__focusRingLoaded||(await Promise.resolve().then(()=>Gl),o.ScbDrawerItem.__focusRingLoaded=!0),this.leadingIcon&&!o.ScbDrawerItem.__iconLoaded&&(await Promise.resolve().then(()=>Ie),o.ScbDrawerItem.__iconLoaded=!0),this.hasSlotContent&&!o.ScbDrawerItem.__iconButtonLoaded&&(await Promise.resolve().then(()=>wh),o.ScbDrawerItem.__iconButtonLoaded=!0)}_onSlotChange(e){const i=e.target.assignedElements({flatten:!0});this.hasSlotContent=i.length>0&&i.every(r=>r.tagName==="SCB-SUB-DRAWER")}__setExpanded(e){this.hasSlotContent&&(this.expanded=e,this.dispatchEvent(new CustomEvent("scb-drawer-expand",{bubbles:!0,composed:!0,detail:{item:this,expanded:e}})))}_dispatchSelect(){this.dispatchEvent(new CustomEvent("scb-drawer-select",{bubbles:!0,composed:!0,detail:{item:this}}))}async firstUpdated(){const e=this.renderRoot.querySelector("slot");if(e){const t=e.assignedElements({flatten:!0});this.hasSlotContent=t.length>0&&t.every(i=>i.tagName==="SCB-SUB-DRAWER")}await this.__ensureDepsLoaded()}updated(e){e.has("leadingIcon")&&this.leadingIcon&&this.__ensureDepsLoaded(),e.has("hasSlotContent")&&this.hasSlotContent&&this.__ensureDepsLoaded(),e.has("expanded")&&this.__applyInert()}__applyInert(){const e=this.__submenuEl;e&&(this.expanded?(e.removeAttribute("inert"),e.setAttribute("aria-hidden","false")):(e.setAttribute("inert",""),e.setAttribute("aria-hidden","true")))}render(){const e=!!this.leadingIcon,t=!!this.itemHref,i=this.hasSlotContent;return c`
4470
+ `,At([n({type:String,reflect:!0})],o.ScbDivider.prototype,"variant",2),At([n({type:String,reflect:!0})],o.ScbDivider.prototype,"direction",2),At([n({type:String,reflect:!0})],o.ScbDivider.prototype,"inset",2),At([n({type:Boolean,reflect:!0})],o.ScbDivider.prototype,"overlay",2),At([n({type:String,reflect:!0})],o.ScbDivider.prototype,"anchor",2),At([n({type:String,reflect:!0})],o.ScbDivider.prototype,"spacing",2),o.ScbDivider=At([g("scb-divider")],o.ScbDivider);var Mp=Object.defineProperty,Fp=Object.getOwnPropertyDescriptor,zt=(a,e,t,i)=>{for(var r=i>1?void 0:i?Fp(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Mp(e,t,r),r};o.ScbDrawerItem=class extends y{constructor(){super(...arguments),this.label="",this.selected=!1,this.leadingIcon="",this.itemHref="",this.hasSlotContent=!1,this.expanded=!1,this.__submenuId=`sub-${Math.random().toString(36).slice(2)}`,this.__focusId=`f-${Math.random().toString(36).slice(2)}`,this._toggleExpand=e=>{e&&e.stopPropagation(),this.hasSlotContent&&this.__setExpanded(!this.expanded)},this._onButtonClick=e=>{e.stopPropagation(),this._dispatchSelect(),this._toggleExpand()},this._onLinkClick=()=>{this._dispatchSelect()},this._onKeyDown=e=>{var r,s,l,h,p,v,f,b,_;const t=Array.from(((r=this.parentElement)==null?void 0:r.querySelectorAll("scb-drawer-item"))||[]),i=t.indexOf(this);switch(e.key){case"ArrowDown":{e.preventDefault(),(l=(s=(t[i+1]||t[0]).shadowRoot)==null?void 0:s.querySelector(".scb-drawer-label-text"))==null||l.focus();break}case"ArrowUp":{e.preventDefault(),(p=(h=(t[i-1]||t[t.length-1]).shadowRoot)==null?void 0:h.querySelector(".scb-drawer-label-text"))==null||p.focus();break}case"Home":{e.preventDefault(),(f=(v=t[0].shadowRoot)==null?void 0:v.querySelector(".scb-drawer-label-text"))==null||f.focus();break}case"End":{e.preventDefault(),(_=(b=t[t.length-1].shadowRoot)==null?void 0:b.querySelector(".scb-drawer-label-text"))==null||_.focus();break}}}}get __submenuEl(){return this.renderRoot.querySelector(`#${this.__submenuId}`)}async __ensureDepsLoaded(){o.ScbDrawerItem.__rippleLoaded||(await Promise.resolve().then(()=>tr),o.ScbDrawerItem.__rippleLoaded=!0),o.ScbDrawerItem.__focusRingLoaded||(await Promise.resolve().then(()=>Gl),o.ScbDrawerItem.__focusRingLoaded=!0),this.leadingIcon&&!o.ScbDrawerItem.__iconLoaded&&(await Promise.resolve().then(()=>Ie),o.ScbDrawerItem.__iconLoaded=!0),this.hasSlotContent&&!o.ScbDrawerItem.__iconButtonLoaded&&(await Promise.resolve().then(()=>wh),o.ScbDrawerItem.__iconButtonLoaded=!0)}_onSlotChange(e){const i=e.target.assignedElements({flatten:!0});this.hasSlotContent=i.length>0&&i.every(r=>r.tagName==="SCB-SUB-DRAWER")}__setExpanded(e){this.hasSlotContent&&(this.expanded=e,this.dispatchEvent(new CustomEvent("scb-drawer-expand",{bubbles:!0,composed:!0,detail:{item:this,expanded:e}})))}_dispatchSelect(){this.dispatchEvent(new CustomEvent("scb-drawer-select",{bubbles:!0,composed:!0,detail:{item:this}}))}async firstUpdated(){const e=this.renderRoot.querySelector("slot");if(e){const t=e.assignedElements({flatten:!0});this.hasSlotContent=t.length>0&&t.every(i=>i.tagName==="SCB-SUB-DRAWER")}await this.__ensureDepsLoaded()}updated(e){e.has("leadingIcon")&&this.leadingIcon&&this.__ensureDepsLoaded(),e.has("hasSlotContent")&&this.hasSlotContent&&this.__ensureDepsLoaded(),e.has("expanded")&&this.__applyInert()}__applyInert(){const e=this.__submenuEl;e&&(this.expanded?(e.removeAttribute("inert"),e.setAttribute("aria-hidden","false")):(e.setAttribute("inert",""),e.setAttribute("aria-hidden","true")))}render(){const e=!!this.leadingIcon,t=!!this.itemHref,i=this.hasSlotContent;return c`
4470
4471
  <div class="scb-drawer-item">
4471
4472
  <div class="scb-drawer-item-label" ?selected=${this.selected}>
4472
4473
  ${t?c`
@@ -4627,7 +4628,7 @@ ${this.value}</textarea
4627
4628
  transition: none;
4628
4629
  }
4629
4630
  }
4630
- `,At([n({type:String})],o.ScbDrawerItem.prototype,"label",2),At([n({type:Boolean,reflect:!0})],o.ScbDrawerItem.prototype,"selected",2),At([n({type:String,attribute:"leading-icon"})],o.ScbDrawerItem.prototype,"leadingIcon",2),At([n({type:String,attribute:"item-href"})],o.ScbDrawerItem.prototype,"itemHref",2),At([w()],o.ScbDrawerItem.prototype,"hasSlotContent",2),At([w()],o.ScbDrawerItem.prototype,"expanded",2),o.ScbDrawerItem=At([g("scb-drawer-item")],o.ScbDrawerItem);const Hp=Object.freeze(Object.defineProperty({__proto__:null,get ScbDrawerItem(){return o.ScbDrawerItem}},Symbol.toStringTag,{value:"Module"}));var Np=Object.defineProperty,Vp=Object.getOwnPropertyDescriptor,Gn=(a,e,t,i)=>{for(var r=i>1?void 0:i?Vp(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Np(e,t,r),r};o.ScbDrawerSection=class extends y{constructor(){super(...arguments),this.label=""}render(){return c`
4631
+ `,zt([n({type:String})],o.ScbDrawerItem.prototype,"label",2),zt([n({type:Boolean,reflect:!0})],o.ScbDrawerItem.prototype,"selected",2),zt([n({type:String,attribute:"leading-icon"})],o.ScbDrawerItem.prototype,"leadingIcon",2),zt([n({type:String,attribute:"item-href"})],o.ScbDrawerItem.prototype,"itemHref",2),zt([w()],o.ScbDrawerItem.prototype,"hasSlotContent",2),zt([w()],o.ScbDrawerItem.prototype,"expanded",2),o.ScbDrawerItem=zt([g("scb-drawer-item")],o.ScbDrawerItem);const Hp=Object.freeze(Object.defineProperty({__proto__:null,get ScbDrawerItem(){return o.ScbDrawerItem}},Symbol.toStringTag,{value:"Module"}));var Np=Object.defineProperty,Vp=Object.getOwnPropertyDescriptor,Gn=(a,e,t,i)=>{for(var r=i>1?void 0:i?Vp(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Np(e,t,r),r};o.ScbDrawerSection=class extends y{constructor(){super(...arguments),this.label=""}render(){return c`
4631
4632
  <scb-divider></scb-divider>
4632
4633
  ${this.label?c`
4633
4634
  <div class="scb-drawer-section">
@@ -5027,7 +5028,7 @@ ${this.value}</textarea
5027
5028
  }
5028
5029
  `,J([n({type:String})],o.ScbFactCard.prototype,"variant",2),J([n({type:String,attribute:"title"})],o.ScbFactCard.prototype,"title",2),J([n({type:String,attribute:"subtitle"})],o.ScbFactCard.prototype,"subtitle",2),J([n({type:String,attribute:"supporting-text"})],o.ScbFactCard.prototype,"supportingText",2),J([n({type:String})],o.ScbFactCard.prototype,"icon",2),J([n({type:Boolean,attribute:"show-close-button"})],o.ScbFactCard.prototype,"showCloseButton",2),J([n({type:Boolean,reflect:!0})],o.ScbFactCard.prototype,"open",2),J([n({type:String,reflect:!0})],o.ScbFactCard.prototype,"sizing",2),J([n({type:String,reflect:!0})],o.ScbFactCard.prototype,"width",2),J([n({type:String,reflect:!0,attribute:"max-width"})],o.ScbFactCard.prototype,"maxWidth",2),J([n({type:String,reflect:!0})],o.ScbFactCard.prototype,"height",2),J([n({type:String,reflect:!0,attribute:"max-height"})],o.ScbFactCard.prototype,"maxHeight",2),J([n({type:String,reflect:!0})],o.ScbFactCard.prototype,"spacing",2),J([n({type:String,reflect:!0,attribute:"spacing-top"})],o.ScbFactCard.prototype,"spacingTop",2),J([n({type:String,reflect:!0,attribute:"spacing-bottom"})],o.ScbFactCard.prototype,"spacingBottom",2),o.ScbFactCard=J([g("scb-fact-card")],o.ScbFactCard);var tu=Object.defineProperty,iu=Object.getOwnPropertyDescriptor,Jn=(a,e,t,i)=>{for(var r=i>1?void 0:i?iu(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&tu(e,t,r),r};o.ScbFooterSection=class extends y{constructor(){super(...arguments),this.title=""}render(){return c`<slot></slot>`}},o.ScbFooterSection.styles=m`
5029
5030
  :host { display: none; }
5030
- `,Jn([n({type:String,reflect:!0})],o.ScbFooterSection.prototype,"title",2),o.ScbFooterSection=Jn([g("scb-footer-section")],o.ScbFooterSection);var ru=Object.defineProperty,au=Object.getOwnPropertyDescriptor,Qn=a=>{throw TypeError(a)},me=(a,e,t,i)=>{for(var r=i>1?void 0:i?au(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&ru(e,t,r),r},ou=(a,e,t)=>e.has(a)||Qn("Cannot "+t),su=(a,e,t)=>e.has(a)?Qn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),Oe=(a,e,t)=>(ou(a,e,"access private method"),t),fe,Vo,je;o.ScbGridItem=class extends y{constructor(){super(...arguments),su(this,fe),this.fit=!1}firstUpdated(){Oe(this,fe,Vo).call(this)}updated(){Oe(this,fe,Vo).call(this)}render(){return c`<slot></slot>`}},fe=new WeakSet,Vo=function(){Oe(this,fe,je).call(this,"--col-span",this.hasAttribute("col-span")?String(this.colSpan):null),Oe(this,fe,je).call(this,"--col-span-compact",this.hasAttribute("col-span-compact")?String(this.colSpanCompact):null),Oe(this,fe,je).call(this,"--col-span-medium",this.hasAttribute("col-span-medium")?String(this.colSpanMedium):null),Oe(this,fe,je).call(this,"--col-span-expanded",this.hasAttribute("col-span-expanded")?String(this.colSpanExpanded):null),Oe(this,fe,je).call(this,"--row-rule",this.hasAttribute("row-span")?`span ${this.rowSpan}`:null),Oe(this,fe,je).call(this,"--row-rule-compact",this.hasAttribute("row-span-compact")?`span ${this.rowSpanCompact}`:null),Oe(this,fe,je).call(this,"--row-rule-medium",this.hasAttribute("row-span-medium")?`span ${this.rowSpanMedium}`:null),Oe(this,fe,je).call(this,"--row-rule-expanded",this.hasAttribute("row-span-expanded")?`span ${this.rowSpanExpanded}`:null),this.align?(this.style.setProperty("--scb-grid-item-align",this.align),this.style.setProperty("align-self",this.align)):(this.style.removeProperty("--scb-grid-item-align"),this.style.removeProperty("align-self")),this.justify?(this.style.setProperty("--scb-grid-item-justify",this.justify),this.style.setProperty("justify-self",this.justify)):(this.style.removeProperty("--scb-grid-item-justify"),this.style.removeProperty("justify-self"))},je=function(a,e){e===null||e===""?this.style.removeProperty(a):this.style.setProperty(a,e)},o.ScbGridItem.styles=m`
5031
+ `,Jn([n({type:String,reflect:!0})],o.ScbFooterSection.prototype,"title",2),o.ScbFooterSection=Jn([g("scb-footer-section")],o.ScbFooterSection);var ru=Object.defineProperty,au=Object.getOwnPropertyDescriptor,Qn=a=>{throw TypeError(a)},fe=(a,e,t,i)=>{for(var r=i>1?void 0:i?au(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&ru(e,t,r),r},ou=(a,e,t)=>e.has(a)||Qn("Cannot "+t),su=(a,e,t)=>e.has(a)?Qn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),Oe=(a,e,t)=>(ou(a,e,"access private method"),t),ge,Vo,je;o.ScbGridItem=class extends y{constructor(){super(...arguments),su(this,ge),this.fit=!1}firstUpdated(){Oe(this,ge,Vo).call(this)}updated(){Oe(this,ge,Vo).call(this)}render(){return c`<slot></slot>`}},ge=new WeakSet,Vo=function(){Oe(this,ge,je).call(this,"--col-span",this.hasAttribute("col-span")?String(this.colSpan):null),Oe(this,ge,je).call(this,"--col-span-compact",this.hasAttribute("col-span-compact")?String(this.colSpanCompact):null),Oe(this,ge,je).call(this,"--col-span-medium",this.hasAttribute("col-span-medium")?String(this.colSpanMedium):null),Oe(this,ge,je).call(this,"--col-span-expanded",this.hasAttribute("col-span-expanded")?String(this.colSpanExpanded):null),Oe(this,ge,je).call(this,"--row-rule",this.hasAttribute("row-span")?`span ${this.rowSpan}`:null),Oe(this,ge,je).call(this,"--row-rule-compact",this.hasAttribute("row-span-compact")?`span ${this.rowSpanCompact}`:null),Oe(this,ge,je).call(this,"--row-rule-medium",this.hasAttribute("row-span-medium")?`span ${this.rowSpanMedium}`:null),Oe(this,ge,je).call(this,"--row-rule-expanded",this.hasAttribute("row-span-expanded")?`span ${this.rowSpanExpanded}`:null),this.align?(this.style.setProperty("--scb-grid-item-align",this.align),this.style.setProperty("align-self",this.align)):(this.style.removeProperty("--scb-grid-item-align"),this.style.removeProperty("align-self")),this.justify?(this.style.setProperty("--scb-grid-item-justify",this.justify),this.style.setProperty("justify-self",this.justify)):(this.style.removeProperty("--scb-grid-item-justify"),this.style.removeProperty("justify-self"))},je=function(a,e){e===null||e===""?this.style.removeProperty(a):this.style.setProperty(a,e)},o.ScbGridItem.styles=m`
5031
5032
  :host {
5032
5033
  box-sizing: border-box;
5033
5034
  display: block;
@@ -5037,7 +5038,7 @@ ${this.value}</textarea
5037
5038
  }
5038
5039
  :host([fit]) { block-size: 100%; }
5039
5040
  :host([fit]) ::slotted(*) { block-size: 100%; }
5040
- `,me([n({type:Number,attribute:"col-span",reflect:!0})],o.ScbGridItem.prototype,"colSpan",2),me([n({type:Number,attribute:"col-span-compact",reflect:!0})],o.ScbGridItem.prototype,"colSpanCompact",2),me([n({type:Number,attribute:"col-span-medium",reflect:!0})],o.ScbGridItem.prototype,"colSpanMedium",2),me([n({type:Number,attribute:"col-span-expanded",reflect:!0})],o.ScbGridItem.prototype,"colSpanExpanded",2),me([n({type:Number,attribute:"row-span",reflect:!0})],o.ScbGridItem.prototype,"rowSpan",2),me([n({type:Number,attribute:"row-span-compact",reflect:!0})],o.ScbGridItem.prototype,"rowSpanCompact",2),me([n({type:Number,attribute:"row-span-medium",reflect:!0})],o.ScbGridItem.prototype,"rowSpanMedium",2),me([n({type:Number,attribute:"row-span-expanded",reflect:!0})],o.ScbGridItem.prototype,"rowSpanExpanded",2),me([n({type:String,reflect:!0})],o.ScbGridItem.prototype,"align",2),me([n({type:String,reflect:!0})],o.ScbGridItem.prototype,"justify",2),me([n({type:Boolean,reflect:!0})],o.ScbGridItem.prototype,"fit",2),o.ScbGridItem=me([g("scb-grid-item")],o.ScbGridItem);var nu=Object.defineProperty,lu=Object.getOwnPropertyDescriptor,el=a=>{throw TypeError(a)},Ke=(a,e,t,i)=>{for(var r=i>1?void 0:i?lu(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&nu(e,t,r),r},cu=(a,e,t)=>e.has(a)||el("Cannot "+t),du=(a,e,t)=>e.has(a)?el("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),tl=(a,e,t)=>(cu(a,e,"access private method"),t),ta,qo;o.ScbStack=class extends y{constructor(){super(...arguments),du(this,ta),this.direction="column",this.gap="",this.rowGap="",this.columnGap="",this.align="stretch",this.justify="start",this.wrap=!1,this.inline=!1}firstUpdated(){tl(this,ta,qo).call(this)}updated(){tl(this,ta,qo).call(this)}mapSpacingToken(e){if(!e)return;const t=String(e).trim();return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}parseGapShorthand(e){if(!e)return{};const t=e.trim().split(/\s+/);if(t.length===1){const i=this.mapSpacingToken(t[0]);return{row:i,col:i}}return{row:this.mapSpacingToken(t[0]),col:this.mapSpacingToken(t[1])}}render(){return c`<div class="base"><slot></slot></div>`}},ta=new WeakSet,qo=function(){this.style.setProperty("--scb-stack-direction",this.direction);const a="var(--spacing-5, 16px)",e=this.parseGapShorthand(this.gap),t=this.mapSpacingToken(this.rowGap)??e.row??a,i=this.mapSpacingToken(this.columnGap)??e.col??a;this.style.setProperty("--scb-stack-gap",`${t}`),this.style.setProperty("--scb-stack-row-gap",t),this.style.setProperty("--scb-stack-column-gap",i);const r={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch",baseline:"baseline"},s={start:"flex-start",center:"center",end:"flex-end",between:"space-between",around:"space-around",evenly:"space-evenly"};this.style.setProperty("--scb-stack-align",r[this.align]??"stretch"),this.style.setProperty("--scb-stack-justify",s[this.justify]??"flex-start"),this.style.setProperty("--scb-stack-wrap",this.wrap?"wrap":"nowrap")},o.ScbStack.styles=m`
5041
+ `,fe([n({type:Number,attribute:"col-span",reflect:!0})],o.ScbGridItem.prototype,"colSpan",2),fe([n({type:Number,attribute:"col-span-compact",reflect:!0})],o.ScbGridItem.prototype,"colSpanCompact",2),fe([n({type:Number,attribute:"col-span-medium",reflect:!0})],o.ScbGridItem.prototype,"colSpanMedium",2),fe([n({type:Number,attribute:"col-span-expanded",reflect:!0})],o.ScbGridItem.prototype,"colSpanExpanded",2),fe([n({type:Number,attribute:"row-span",reflect:!0})],o.ScbGridItem.prototype,"rowSpan",2),fe([n({type:Number,attribute:"row-span-compact",reflect:!0})],o.ScbGridItem.prototype,"rowSpanCompact",2),fe([n({type:Number,attribute:"row-span-medium",reflect:!0})],o.ScbGridItem.prototype,"rowSpanMedium",2),fe([n({type:Number,attribute:"row-span-expanded",reflect:!0})],o.ScbGridItem.prototype,"rowSpanExpanded",2),fe([n({type:String,reflect:!0})],o.ScbGridItem.prototype,"align",2),fe([n({type:String,reflect:!0})],o.ScbGridItem.prototype,"justify",2),fe([n({type:Boolean,reflect:!0})],o.ScbGridItem.prototype,"fit",2),o.ScbGridItem=fe([g("scb-grid-item")],o.ScbGridItem);var nu=Object.defineProperty,lu=Object.getOwnPropertyDescriptor,el=a=>{throw TypeError(a)},Ke=(a,e,t,i)=>{for(var r=i>1?void 0:i?lu(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&nu(e,t,r),r},cu=(a,e,t)=>e.has(a)||el("Cannot "+t),du=(a,e,t)=>e.has(a)?el("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),tl=(a,e,t)=>(cu(a,e,"access private method"),t),ta,qo;o.ScbStack=class extends y{constructor(){super(...arguments),du(this,ta),this.direction="column",this.gap="",this.rowGap="",this.columnGap="",this.align="stretch",this.justify="start",this.wrap=!1,this.inline=!1}firstUpdated(){tl(this,ta,qo).call(this)}updated(){tl(this,ta,qo).call(this)}mapSpacingToken(e){if(!e)return;const t=String(e).trim();return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}parseGapShorthand(e){if(!e)return{};const t=e.trim().split(/\s+/);if(t.length===1){const i=this.mapSpacingToken(t[0]);return{row:i,col:i}}return{row:this.mapSpacingToken(t[0]),col:this.mapSpacingToken(t[1])}}render(){return c`<div class="base"><slot></slot></div>`}},ta=new WeakSet,qo=function(){this.style.setProperty("--scb-stack-direction",this.direction);const a="var(--spacing-5, 16px)",e=this.parseGapShorthand(this.gap),t=this.mapSpacingToken(this.rowGap)??e.row??a,i=this.mapSpacingToken(this.columnGap)??e.col??a;this.style.setProperty("--scb-stack-gap",`${t}`),this.style.setProperty("--scb-stack-row-gap",t),this.style.setProperty("--scb-stack-column-gap",i);const r={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch",baseline:"baseline"},s={start:"flex-start",center:"center",end:"flex-end",between:"space-between",around:"space-around",evenly:"space-evenly"};this.style.setProperty("--scb-stack-align",r[this.align]??"stretch"),this.style.setProperty("--scb-stack-justify",s[this.justify]??"flex-start"),this.style.setProperty("--scb-stack-wrap",this.wrap?"wrap":"nowrap")},o.ScbStack.styles=m`
5041
5042
  :host {
5042
5043
  box-sizing: border-box;
5043
5044
  display: block;
@@ -5069,7 +5070,7 @@ ${this.value}</textarea
5069
5070
  :host([direction="row"]) ::slotted(*) {
5070
5071
  flex: var(--scb-stack-item-flex, 0 0 auto);
5071
5072
  }
5072
- `,Ke([n({type:String,reflect:!0})],o.ScbStack.prototype,"direction",2),Ke([n({type:String,reflect:!0})],o.ScbStack.prototype,"gap",2),Ke([n({type:String,attribute:"row-gap",reflect:!0})],o.ScbStack.prototype,"rowGap",2),Ke([n({type:String,attribute:"column-gap",reflect:!0})],o.ScbStack.prototype,"columnGap",2),Ke([n({type:String,reflect:!0})],o.ScbStack.prototype,"align",2),Ke([n({type:String,reflect:!0})],o.ScbStack.prototype,"justify",2),Ke([n({type:Boolean,reflect:!0})],o.ScbStack.prototype,"wrap",2),Ke([n({type:Boolean,reflect:!0})],o.ScbStack.prototype,"inline",2),o.ScbStack=Ke([g("scb-stack")],o.ScbStack);var hu=Object.defineProperty,pu=Object.getOwnPropertyDescriptor,il=a=>{throw TypeError(a)},de=(a,e,t,i)=>{for(var r=i>1?void 0:i?pu(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&hu(e,t,r),r},uu=(a,e,t)=>e.has(a)||il("Cannot "+t),vu=(a,e,t)=>e.has(a)?il("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),Xt=(a,e,t)=>(uu(a,e,"access private method"),t),st,Uo,Oi;o.ScbGrid=class extends y{constructor(){super(...arguments),vu(this,st),this.colsCompact=4,this.colsMedium=8,this.colsExpanded=12,this.gap="",this.rowGap="",this.columnGap="",this.alignItems="stretch",this.justifyItems="stretch",this.paddingInline="",this.paddingBlock="",this.maxWidth="",this.autoRows=""}firstUpdated(){Xt(this,st,Uo).call(this)}updated(){Xt(this,st,Uo).call(this)}mapSpacingToken(e){if(!e)return;const t=String(e).trim();return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}parseGapShorthand(e){if(!e)return{};const t=e.trim().split(/\s+/);if(t.length===1){const i=this.mapSpacingToken(t[0]);return{row:i,col:i}}return{row:this.mapSpacingToken(t[0]),col:this.mapSpacingToken(t[1])}}render(){return c`<div class="grid"><slot></slot></div>`}},st=new WeakSet,Uo=function(){this.style.setProperty("--scb-grid-cols-compact",String(this.colsCompact)),this.style.setProperty("--scb-grid-cols-medium",String(this.colsMedium)),this.style.setProperty("--scb-grid-cols-expanded",String(this.colsExpanded));const a="var(--spacing-7, 24px)",e=this.parseGapShorthand(this.gap),t=this.mapSpacingToken(this.rowGap)??e.row??a,i=this.mapSpacingToken(this.columnGap)??e.col??a;this.style.setProperty("--scb-grid-row-gap",t),this.style.setProperty("--scb-grid-column-gap",i),this.style.setProperty("--scb-grid-gap",`${t} ${i}`),this.style.setProperty("--scb-grid-align-items",this.alignItems),this.style.setProperty("--scb-grid-justify-items",this.justifyItems);const r=this.mapSpacingToken(this.paddingInline),s=this.mapSpacingToken(this.paddingBlock);Xt(this,st,Oi).call(this,"--scb-grid-max-width",this.maxWidth),Xt(this,st,Oi).call(this,"--scb-grid-padding-inline",r??""),Xt(this,st,Oi).call(this,"--scb-grid-padding-block",s??""),Xt(this,st,Oi).call(this,"--scb-grid-auto-rows",this.autoRows)},Oi=function(a,e){e?this.style.setProperty(a,e):this.style.removeProperty(a)},o.ScbGrid.styles=m`
5073
+ `,Ke([n({type:String,reflect:!0})],o.ScbStack.prototype,"direction",2),Ke([n({type:String,reflect:!0})],o.ScbStack.prototype,"gap",2),Ke([n({type:String,attribute:"row-gap",reflect:!0})],o.ScbStack.prototype,"rowGap",2),Ke([n({type:String,attribute:"column-gap",reflect:!0})],o.ScbStack.prototype,"columnGap",2),Ke([n({type:String,reflect:!0})],o.ScbStack.prototype,"align",2),Ke([n({type:String,reflect:!0})],o.ScbStack.prototype,"justify",2),Ke([n({type:Boolean,reflect:!0})],o.ScbStack.prototype,"wrap",2),Ke([n({type:Boolean,reflect:!0})],o.ScbStack.prototype,"inline",2),o.ScbStack=Ke([g("scb-stack")],o.ScbStack);var hu=Object.defineProperty,pu=Object.getOwnPropertyDescriptor,il=a=>{throw TypeError(a)},he=(a,e,t,i)=>{for(var r=i>1?void 0:i?pu(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&hu(e,t,r),r},uu=(a,e,t)=>e.has(a)||il("Cannot "+t),vu=(a,e,t)=>e.has(a)?il("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),Xt=(a,e,t)=>(uu(a,e,"access private method"),t),nt,Uo,Oi;o.ScbGrid=class extends y{constructor(){super(...arguments),vu(this,nt),this.colsCompact=4,this.colsMedium=8,this.colsExpanded=12,this.gap="",this.rowGap="",this.columnGap="",this.alignItems="stretch",this.justifyItems="stretch",this.paddingInline="",this.paddingBlock="",this.maxWidth="",this.autoRows=""}firstUpdated(){Xt(this,nt,Uo).call(this)}updated(){Xt(this,nt,Uo).call(this)}mapSpacingToken(e){if(!e)return;const t=String(e).trim();return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}parseGapShorthand(e){if(!e)return{};const t=e.trim().split(/\s+/);if(t.length===1){const i=this.mapSpacingToken(t[0]);return{row:i,col:i}}return{row:this.mapSpacingToken(t[0]),col:this.mapSpacingToken(t[1])}}render(){return c`<div class="grid"><slot></slot></div>`}},nt=new WeakSet,Uo=function(){this.style.setProperty("--scb-grid-cols-compact",String(this.colsCompact)),this.style.setProperty("--scb-grid-cols-medium",String(this.colsMedium)),this.style.setProperty("--scb-grid-cols-expanded",String(this.colsExpanded));const a="var(--spacing-7, 24px)",e=this.parseGapShorthand(this.gap),t=this.mapSpacingToken(this.rowGap)??e.row??a,i=this.mapSpacingToken(this.columnGap)??e.col??a;this.style.setProperty("--scb-grid-row-gap",t),this.style.setProperty("--scb-grid-column-gap",i),this.style.setProperty("--scb-grid-gap",`${t} ${i}`),this.style.setProperty("--scb-grid-align-items",this.alignItems),this.style.setProperty("--scb-grid-justify-items",this.justifyItems);const r=this.mapSpacingToken(this.paddingInline),s=this.mapSpacingToken(this.paddingBlock);Xt(this,nt,Oi).call(this,"--scb-grid-max-width",this.maxWidth),Xt(this,nt,Oi).call(this,"--scb-grid-padding-inline",r??""),Xt(this,nt,Oi).call(this,"--scb-grid-padding-block",s??""),Xt(this,nt,Oi).call(this,"--scb-grid-auto-rows",this.autoRows)},Oi=function(a,e){e?this.style.setProperty(a,e):this.style.removeProperty(a)},o.ScbGrid.styles=m`
5073
5074
  :host {
5074
5075
  box-sizing: border-box;
5075
5076
  display: block;
@@ -5166,7 +5167,7 @@ ${this.value}</textarea
5166
5167
  }
5167
5168
  }
5168
5169
  }
5169
- `,de([n({type:Number,attribute:"cols-compact",reflect:!0})],o.ScbGrid.prototype,"colsCompact",2),de([n({type:Number,attribute:"cols-medium",reflect:!0})],o.ScbGrid.prototype,"colsMedium",2),de([n({type:Number,attribute:"cols-expanded",reflect:!0})],o.ScbGrid.prototype,"colsExpanded",2),de([n({type:String,reflect:!0})],o.ScbGrid.prototype,"gap",2),de([n({type:String,attribute:"row-gap",reflect:!0})],o.ScbGrid.prototype,"rowGap",2),de([n({type:String,attribute:"column-gap",reflect:!0})],o.ScbGrid.prototype,"columnGap",2),de([n({type:String,attribute:"align-items",reflect:!0})],o.ScbGrid.prototype,"alignItems",2),de([n({type:String,attribute:"justify-items",reflect:!0})],o.ScbGrid.prototype,"justifyItems",2),de([n({type:String,attribute:"padding-inline",reflect:!0})],o.ScbGrid.prototype,"paddingInline",2),de([n({type:String,attribute:"padding-block",reflect:!0})],o.ScbGrid.prototype,"paddingBlock",2),de([n({type:String,attribute:"max-width",reflect:!0})],o.ScbGrid.prototype,"maxWidth",2),de([n({type:String,attribute:"auto-rows",reflect:!0})],o.ScbGrid.prototype,"autoRows",2),o.ScbGrid=de([g("scb-grid")],o.ScbGrid);var bu=Object.defineProperty,mu=Object.getOwnPropertyDescriptor,rl=a=>{throw TypeError(a)},Li=(a,e,t,i)=>{for(var r=i>1?void 0:i?mu(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&bu(e,t,r),r},Wo=(a,e,t)=>e.has(a)||rl("Cannot "+t),Ge=(a,e,t)=>(Wo(a,e,"read from private field"),t?t.call(a):e.get(a)),Zt=(a,e,t)=>e.has(a)?rl("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),zt=(a,e,t,i)=>(Wo(a,e,"write to private field"),e.set(a,t),t),Ye=(a,e,t)=>(Wo(a,e,"access private method"),t),Jt,Ri,Qt,Bi,ge,al,jo,ol,Ko,Go,sl,nl,Yo;o.ScbFooter=class extends y{constructor(){super(...arguments),Zt(this,ge),this.maxWidth="1440px",this.deferPaint=!1,this.sections=[],this.description="Statistikmyndigheten SCB förser samhället med statistik för beslutsfattande, debatt och forskning.",Zt(this,Jt,null),Zt(this,Ri,""),Zt(this,Qt),Zt(this,Bi,!1),Zt(this,Go,8)}connectedCallback(){super.connectedCallback(),this.style.setProperty("--scb-footer-max-width",this.maxWidth),Ye(this,ge,Ko).call(this,!0),Ye(this,ge,al).call(this)}updated(e){e.has("maxWidth")&&this.style.setProperty("--scb-footer-max-width",this.maxWidth)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=Ge(this,Qt))==null||e.disconnect()}render(){const e=Ge(this,ge,ol);return c`
5170
+ `,he([n({type:Number,attribute:"cols-compact",reflect:!0})],o.ScbGrid.prototype,"colsCompact",2),he([n({type:Number,attribute:"cols-medium",reflect:!0})],o.ScbGrid.prototype,"colsMedium",2),he([n({type:Number,attribute:"cols-expanded",reflect:!0})],o.ScbGrid.prototype,"colsExpanded",2),he([n({type:String,reflect:!0})],o.ScbGrid.prototype,"gap",2),he([n({type:String,attribute:"row-gap",reflect:!0})],o.ScbGrid.prototype,"rowGap",2),he([n({type:String,attribute:"column-gap",reflect:!0})],o.ScbGrid.prototype,"columnGap",2),he([n({type:String,attribute:"align-items",reflect:!0})],o.ScbGrid.prototype,"alignItems",2),he([n({type:String,attribute:"justify-items",reflect:!0})],o.ScbGrid.prototype,"justifyItems",2),he([n({type:String,attribute:"padding-inline",reflect:!0})],o.ScbGrid.prototype,"paddingInline",2),he([n({type:String,attribute:"padding-block",reflect:!0})],o.ScbGrid.prototype,"paddingBlock",2),he([n({type:String,attribute:"max-width",reflect:!0})],o.ScbGrid.prototype,"maxWidth",2),he([n({type:String,attribute:"auto-rows",reflect:!0})],o.ScbGrid.prototype,"autoRows",2),o.ScbGrid=he([g("scb-grid")],o.ScbGrid);var bu=Object.defineProperty,mu=Object.getOwnPropertyDescriptor,rl=a=>{throw TypeError(a)},Li=(a,e,t,i)=>{for(var r=i>1?void 0:i?mu(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&bu(e,t,r),r},Wo=(a,e,t)=>e.has(a)||rl("Cannot "+t),Ge=(a,e,t)=>(Wo(a,e,"read from private field"),t?t.call(a):e.get(a)),Zt=(a,e,t)=>e.has(a)?rl("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),It=(a,e,t,i)=>(Wo(a,e,"write to private field"),e.set(a,t),t),Ye=(a,e,t)=>(Wo(a,e,"access private method"),t),Jt,Bi,Qt,Ri,ye,al,jo,ol,Ko,Go,sl,nl,Yo;o.ScbFooter=class extends y{constructor(){super(...arguments),Zt(this,ye),this.maxWidth="1440px",this.deferPaint=!1,this.sections=[],this.description="Statistikmyndigheten SCB förser samhället med statistik för beslutsfattande, debatt och forskning.",Zt(this,Jt,null),Zt(this,Bi,""),Zt(this,Qt),Zt(this,Ri,!1),Zt(this,Go,8)}connectedCallback(){super.connectedCallback(),this.style.setProperty("--scb-footer-max-width",this.maxWidth),Ye(this,ye,Ko).call(this,!0),Ye(this,ye,al).call(this)}updated(e){e.has("maxWidth")&&this.style.setProperty("--scb-footer-max-width",this.maxWidth)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=Ge(this,Qt))==null||e.disconnect()}render(){const e=Ge(this,ye,ol);return c`
5170
5171
  <footer class="outer" role="contentinfo">
5171
5172
  <nav aria-label="Sidfot med länkar">
5172
5173
  <scb-grid
@@ -5176,7 +5177,7 @@ ${this.value}</textarea
5176
5177
  padding-block="0"
5177
5178
  .maxWidth=${this.maxWidth}
5178
5179
  >
5179
- ${Ye(this,ge,sl).call(this,e)}
5180
+ ${Ye(this,ye,sl).call(this,e)}
5180
5181
  </scb-grid>
5181
5182
  </nav>
5182
5183
 
@@ -5195,23 +5196,23 @@ ${this.value}</textarea
5195
5196
  </div>
5196
5197
  </div>
5197
5198
  </footer>
5198
- `}},Jt=new WeakMap,Ri=new WeakMap,Qt=new WeakMap,Bi=new WeakMap,ge=new WeakSet,al=function(){var a;(a=Ge(this,Qt))==null||a.disconnect(),zt(this,Qt,new MutationObserver(e=>{for(const t of e){if(t.type==="childList"){const i=[...t.addedNodes].some(s=>s.tagName==="SCB-FOOTER-SECTION"||s.tagName==="SCB-LINK"),r=[...t.removedNodes].some(s=>s.tagName==="SCB-FOOTER-SECTION"||s.tagName==="SCB-LINK");if(i||r){Ye(this,ge,jo).call(this);return}}if(t.type==="attributes"&&(t.target.tagName==="SCB-FOOTER-SECTION"||t.target.tagName==="SCB-LINK")){Ye(this,ge,jo).call(this);return}}})),Ge(this,Qt).observe(this,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["title","href","target"]})},jo=function(){Ge(this,Bi)||(zt(this,Bi,!0),queueMicrotask(()=>{zt(this,Bi,!1),Ye(this,ge,Ko).call(this,!1)}))},ol=function(){return Ge(this,Jt)??this.sections??[]},Ko=function(a=!1){const e=Array.from(this.querySelectorAll("scb-footer-section"));if(!e.length){Ge(this,Jt)!==null&&(zt(this,Jt,null),zt(this,Ri,""),a||this.requestUpdate());return}const t=e.map(r=>{const s=(r.getAttribute("title")||"").trim(),l=Array.from(r.querySelectorAll("scb-link")).map(h=>{const p=(h.getAttribute("href")||"").trim(),v=h.getAttribute("target"),b={label:(h.textContent||"").trim(),href:p};return v&&(b.target=v),b});return{title:s,links:l}}),i=JSON.stringify(t);i!==Ge(this,Ri)&&(zt(this,Ri,i),zt(this,Jt,t),a||this.requestUpdate())},Go=new WeakMap,sl=function(a){const e=[],i=a.length;if(i>0&&i<4)return e.push(c`
5199
+ `}},Jt=new WeakMap,Bi=new WeakMap,Qt=new WeakMap,Ri=new WeakMap,ye=new WeakSet,al=function(){var a;(a=Ge(this,Qt))==null||a.disconnect(),It(this,Qt,new MutationObserver(e=>{for(const t of e){if(t.type==="childList"){const i=[...t.addedNodes].some(s=>s.tagName==="SCB-FOOTER-SECTION"||s.tagName==="SCB-LINK"),r=[...t.removedNodes].some(s=>s.tagName==="SCB-FOOTER-SECTION"||s.tagName==="SCB-LINK");if(i||r){Ye(this,ye,jo).call(this);return}}if(t.type==="attributes"&&(t.target.tagName==="SCB-FOOTER-SECTION"||t.target.tagName==="SCB-LINK")){Ye(this,ye,jo).call(this);return}}})),Ge(this,Qt).observe(this,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["title","href","target"]})},jo=function(){Ge(this,Ri)||(It(this,Ri,!0),queueMicrotask(()=>{It(this,Ri,!1),Ye(this,ye,Ko).call(this,!1)}))},ol=function(){return Ge(this,Jt)??this.sections??[]},Ko=function(a=!1){const e=Array.from(this.querySelectorAll("scb-footer-section"));if(!e.length){Ge(this,Jt)!==null&&(It(this,Jt,null),It(this,Bi,""),a||this.requestUpdate());return}const t=e.map(r=>{const s=(r.getAttribute("title")||"").trim(),l=Array.from(r.querySelectorAll("scb-link")).map(h=>{const p=(h.getAttribute("href")||"").trim(),v=h.getAttribute("target"),b={label:(h.textContent||"").trim(),href:p};return v&&(b.target=v),b});return{title:s,links:l}}),i=JSON.stringify(t);i!==Ge(this,Bi)&&(It(this,Bi,i),It(this,Jt,t),a||this.requestUpdate())},Go=new WeakMap,sl=function(a){const e=[],i=a.length;if(i>0&&i<4)return e.push(c`
5199
5200
  <scb-grid-item
5200
5201
  col-span-compact="4"
5201
5202
  col-span-medium="8"
5202
5203
  col-span-expanded="${Ge(this,Go)}"
5203
5204
  >
5204
5205
  <div class="center-row">
5205
- ${a.map((r,s)=>Ye(this,ge,Yo).call(this,r,s,!0))}
5206
+ ${a.map((r,s)=>Ye(this,ye,Yo).call(this,r,s,!0))}
5206
5207
  </div>
5207
5208
  </scb-grid-item>
5208
- `),e;for(let r=0;r<i;r++)e.push(Ye(this,ge,nl).call(this,a[r],r));return e},nl=function(a,e){return c`
5209
+ `),e;for(let r=0;r<i;r++)e.push(Ye(this,ye,nl).call(this,a[r],r));return e},nl=function(a,e){return c`
5209
5210
  <scb-grid-item
5210
5211
  col-span-compact="4"
5211
5212
  col-span-medium="4"
5212
5213
  col-span-expanded="2"
5213
5214
  >
5214
- ${Ye(this,ge,Yo).call(this,a,e,!1)}
5215
+ ${Ye(this,ye,Yo).call(this,a,e,!1)}
5215
5216
  </scb-grid-item>
5216
5217
  `},Yo=function(a,e,t){return c`
5217
5218
  <section class="group ${t?"group--centered":""}" aria-labelledby=${`scb-footer-sec-${e}`}>
@@ -6191,7 +6192,7 @@ ${this.value}</textarea
6191
6192
  line-height: var(--md-sys-typescale-display-medium-line-height);
6192
6193
  letter-spacing: var(--md-sys-typescale-display-medium-tracking);
6193
6194
  }
6194
- `,Q([n({attribute:"keyfigure"})],o.ScbKeyFigureCard.prototype,"keyfigure",2),Q([n({type:String,attribute:"subtitle"})],o.ScbKeyFigureCard.prototype,"subtitle",2),Q([n({type:String,attribute:"supporting-text"})],o.ScbKeyFigureCard.prototype,"supportingText",2),Q([n({type:String,attribute:"card-href"})],o.ScbKeyFigureCard.prototype,"cardHref",2),Q([n({type:String})],o.ScbKeyFigureCard.prototype,"icon",2),Q([n({type:String})],o.ScbKeyFigureCard.prototype,"size",2),Q([n({type:String})],o.ScbKeyFigureCard.prototype,"unit",2),Q([n({type:String,reflect:!0})],o.ScbKeyFigureCard.prototype,"width",2),Q([n({type:String,reflect:!0,attribute:"max-width"})],o.ScbKeyFigureCard.prototype,"maxWidth",2),Q([n({type:String,reflect:!0})],o.ScbKeyFigureCard.prototype,"height",2),Q([n({type:String,reflect:!0,attribute:"max-height"})],o.ScbKeyFigureCard.prototype,"maxHeight",2),Q([n({type:String,reflect:!0})],o.ScbKeyFigureCard.prototype,"sizing",2),Q([n({type:String,reflect:!0})],o.ScbKeyFigureCard.prototype,"spacing",2),Q([n({type:String,reflect:!0,attribute:"spacing-top"})],o.ScbKeyFigureCard.prototype,"spacingTop",2),Q([n({type:String,reflect:!0,attribute:"spacing-bottom"})],o.ScbKeyFigureCard.prototype,"spacingBottom",2),o.ScbKeyFigureCard=Q([g("scb-keyfigure-card")],o.ScbKeyFigureCard);var Iu=Object.defineProperty,Pu=Object.getOwnPropertyDescriptor,nt=(a,e,t,i)=>{for(var r=i>1?void 0:i?Pu(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Iu(e,t,r),r};o.ScbMenuItem=class extends y{constructor(){super(...arguments),this.label="",this.hasSubMenu=!1,this.openLeft=!1,this.divider=!1,this.leadingIcon="",this.trailingIcon="",this.itemHref="",this.handleClick=e=>{this.itemHref?this._navigateToHref(e):this._toggleSubMenu()},this._onBlur=e=>{const t=this.closest("scb-sub-menu");if(t&&t.open){const i=e.relatedTarget;(!i||!t.contains(i))&&t.dispatchEvent(new CustomEvent("hide-submenu",{bubbles:!0,composed:!0}))}},this._onFocus=()=>{const e=this.nextElementSibling;this.classList.contains("open-submenu")&&(e&&e.tagName==="SCB-SUB-MENU"&&e.hasAttribute("open")||this.classList.remove("open-submenu"))},this._onKeyDown=e=>{var t,i,r,s,l,h;if(e.key==="Enter"||e.key===" "){e.preventDefault(),this.handleClick(e);return}if(e.key==="ArrowDown"){e.preventDefault();let p=this.nextElementSibling;for(;p&&p.tagName!=="SCB-MENU-ITEM";)p=p.nextElementSibling;p&&((i=(t=p.shadowRoot)==null?void 0:t.querySelector("li"))==null||i.focus());return}if(e.key==="ArrowUp"){e.preventDefault();let p=this.previousElementSibling;for(;p&&p.tagName!=="SCB-MENU-ITEM";)p=p.previousElementSibling;p&&((s=(r=p.shadowRoot)==null?void 0:r.querySelector("li"))==null||s.focus());return}if(e.key==="ArrowRight"){e.preventDefault();const p=this.nextElementSibling;p&&p.tagName==="SCB-SUB-MENU"&&(p.hasAttribute("open")||(this._toggleSubMenu(),p.dispatchEvent(new CustomEvent("show-submenu",{bubbles:!0,composed:!0}))),setTimeout(()=>{var f,b;const v=p.querySelector("scb-menu-item");v&&((b=(f=v.shadowRoot)==null?void 0:f.querySelector("li"))==null||b.focus())},0));return}if(e.key==="ArrowLeft"){e.preventDefault();const p=this.nextElementSibling;if(p&&p.tagName==="SCB-SUB-MENU"&&p.hasAttribute("open")){this._toggleSubMenu(),p.dispatchEvent(new CustomEvent("hide-submenu",{bubbles:!0,composed:!0}));return}const v=this.closest("scb-sub-menu");if(v){const f=v.previousElementSibling;f&&f.tagName==="SCB-MENU-ITEM"&&((h=(l=f.shadowRoot)==null?void 0:l.querySelector("li"))==null||h.focus())}return}}}updated(){const e=this.nextElementSibling;this.hasSubMenu=!!(e&&e.tagName==="SCB-SUB-MENU"),this.openLeft=!!(this.hasSubMenu&&e&&e.hasAttribute("open-left"))}render(){return c`
6195
+ `,Q([n({attribute:"keyfigure"})],o.ScbKeyFigureCard.prototype,"keyfigure",2),Q([n({type:String,attribute:"subtitle"})],o.ScbKeyFigureCard.prototype,"subtitle",2),Q([n({type:String,attribute:"supporting-text"})],o.ScbKeyFigureCard.prototype,"supportingText",2),Q([n({type:String,attribute:"card-href"})],o.ScbKeyFigureCard.prototype,"cardHref",2),Q([n({type:String})],o.ScbKeyFigureCard.prototype,"icon",2),Q([n({type:String})],o.ScbKeyFigureCard.prototype,"size",2),Q([n({type:String})],o.ScbKeyFigureCard.prototype,"unit",2),Q([n({type:String,reflect:!0})],o.ScbKeyFigureCard.prototype,"width",2),Q([n({type:String,reflect:!0,attribute:"max-width"})],o.ScbKeyFigureCard.prototype,"maxWidth",2),Q([n({type:String,reflect:!0})],o.ScbKeyFigureCard.prototype,"height",2),Q([n({type:String,reflect:!0,attribute:"max-height"})],o.ScbKeyFigureCard.prototype,"maxHeight",2),Q([n({type:String,reflect:!0})],o.ScbKeyFigureCard.prototype,"sizing",2),Q([n({type:String,reflect:!0})],o.ScbKeyFigureCard.prototype,"spacing",2),Q([n({type:String,reflect:!0,attribute:"spacing-top"})],o.ScbKeyFigureCard.prototype,"spacingTop",2),Q([n({type:String,reflect:!0,attribute:"spacing-bottom"})],o.ScbKeyFigureCard.prototype,"spacingBottom",2),o.ScbKeyFigureCard=Q([g("scb-keyfigure-card")],o.ScbKeyFigureCard);var Iu=Object.defineProperty,Pu=Object.getOwnPropertyDescriptor,lt=(a,e,t,i)=>{for(var r=i>1?void 0:i?Pu(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Iu(e,t,r),r};o.ScbMenuItem=class extends y{constructor(){super(...arguments),this.label="",this.hasSubMenu=!1,this.openLeft=!1,this.divider=!1,this.leadingIcon="",this.trailingIcon="",this.itemHref="",this.handleClick=e=>{this.itemHref?this._navigateToHref(e):this._toggleSubMenu()},this._onBlur=e=>{const t=this.closest("scb-sub-menu");if(t&&t.open){const i=e.relatedTarget;(!i||!t.contains(i))&&t.dispatchEvent(new CustomEvent("hide-submenu",{bubbles:!0,composed:!0}))}},this._onFocus=()=>{const e=this.nextElementSibling;this.classList.contains("open-submenu")&&(e&&e.tagName==="SCB-SUB-MENU"&&e.hasAttribute("open")||this.classList.remove("open-submenu"))},this._onKeyDown=e=>{var t,i,r,s,l,h;if(e.key==="Enter"||e.key===" "){e.preventDefault(),this.handleClick(e);return}if(e.key==="ArrowDown"){e.preventDefault();let p=this.nextElementSibling;for(;p&&p.tagName!=="SCB-MENU-ITEM";)p=p.nextElementSibling;p&&((i=(t=p.shadowRoot)==null?void 0:t.querySelector("li"))==null||i.focus());return}if(e.key==="ArrowUp"){e.preventDefault();let p=this.previousElementSibling;for(;p&&p.tagName!=="SCB-MENU-ITEM";)p=p.previousElementSibling;p&&((s=(r=p.shadowRoot)==null?void 0:r.querySelector("li"))==null||s.focus());return}if(e.key==="ArrowRight"){e.preventDefault();const p=this.nextElementSibling;p&&p.tagName==="SCB-SUB-MENU"&&(p.hasAttribute("open")||(this._toggleSubMenu(),p.dispatchEvent(new CustomEvent("show-submenu",{bubbles:!0,composed:!0}))),setTimeout(()=>{var f,b;const v=p.querySelector("scb-menu-item");v&&((b=(f=v.shadowRoot)==null?void 0:f.querySelector("li"))==null||b.focus())},0));return}if(e.key==="ArrowLeft"){e.preventDefault();const p=this.nextElementSibling;if(p&&p.tagName==="SCB-SUB-MENU"&&p.hasAttribute("open")){this._toggleSubMenu(),p.dispatchEvent(new CustomEvent("hide-submenu",{bubbles:!0,composed:!0}));return}const v=this.closest("scb-sub-menu");if(v){const f=v.previousElementSibling;f&&f.tagName==="SCB-MENU-ITEM"&&((h=(l=f.shadowRoot)==null?void 0:l.querySelector("li"))==null||h.focus())}return}}}updated(){const e=this.nextElementSibling;this.hasSubMenu=!!(e&&e.tagName==="SCB-SUB-MENU"),this.openLeft=!!(this.hasSubMenu&&e&&e.hasAttribute("open-left"))}render(){return c`
6195
6196
  ${this.divider?c`<scb-divider></scb-divider>`:""}
6196
6197
  <li @click=${this.handleClick} @keydown=${this._onKeyDown} @blur=${this._onBlur} @focus=${this._onFocus} role="menuitem" tabindex="0">
6197
6198
 
@@ -6252,7 +6253,7 @@ ${this.value}</textarea
6252
6253
  :host li:focus {
6253
6254
  outline: none;
6254
6255
  }
6255
- `,nt([n({type:String})],o.ScbMenuItem.prototype,"label",2),nt([n({type:Boolean})],o.ScbMenuItem.prototype,"hasSubMenu",2),nt([n({type:Boolean})],o.ScbMenuItem.prototype,"openLeft",2),nt([n({type:Boolean})],o.ScbMenuItem.prototype,"divider",2),nt([n({type:String,attribute:"leading-icon"})],o.ScbMenuItem.prototype,"leadingIcon",2),nt([n({type:String,attribute:"trailing-icon"})],o.ScbMenuItem.prototype,"trailingIcon",2),nt([n({type:String,attribute:"item-href"})],o.ScbMenuItem.prototype,"itemHref",2),o.ScbMenuItem=nt([g("scb-menu-item")],o.ScbMenuItem);var Ou=Object.defineProperty,Lu=Object.getOwnPropertyDescriptor,vl=(a,e,t,i)=>{for(var r=i>1?void 0:i?Lu(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Ou(e,t,r),r};o.ScbSubMenu=class extends y{constructor(){super(...arguments),this.open=!1,this._show=()=>{this.setAttribute("open",""),this.open=!0},this._hide=e=>{this.removeAttribute("open"),this.open=!1,e&&e.stopPropagation()}}connectedCallback(){super.connectedCallback(),this.addEventListener("show-submenu",this._show),this.addEventListener("hide-submenu",this._hide)}disconnectedCallback(){this.removeEventListener("show-submenu",this._show),this.removeEventListener("hide-submenu",this._hide),super.disconnectedCallback()}firstUpdated(){let e=0,t=this.parentElement;for(;t;)t.tagName==="SCB-SUB-MENU"&&e++,t=t.parentElement;e%2===1?this.setAttribute("open-left",""):this.removeAttribute("open-left")}render(){return c`
6256
+ `,lt([n({type:String})],o.ScbMenuItem.prototype,"label",2),lt([n({type:Boolean})],o.ScbMenuItem.prototype,"hasSubMenu",2),lt([n({type:Boolean})],o.ScbMenuItem.prototype,"openLeft",2),lt([n({type:Boolean})],o.ScbMenuItem.prototype,"divider",2),lt([n({type:String,attribute:"leading-icon"})],o.ScbMenuItem.prototype,"leadingIcon",2),lt([n({type:String,attribute:"trailing-icon"})],o.ScbMenuItem.prototype,"trailingIcon",2),lt([n({type:String,attribute:"item-href"})],o.ScbMenuItem.prototype,"itemHref",2),o.ScbMenuItem=lt([g("scb-menu-item")],o.ScbMenuItem);var Ou=Object.defineProperty,Lu=Object.getOwnPropertyDescriptor,vl=(a,e,t,i)=>{for(var r=i>1?void 0:i?Lu(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Ou(e,t,r),r};o.ScbSubMenu=class extends y{constructor(){super(...arguments),this.open=!1,this._show=()=>{this.setAttribute("open",""),this.open=!0},this._hide=e=>{this.removeAttribute("open"),this.open=!1,e&&e.stopPropagation()}}connectedCallback(){super.connectedCallback(),this.addEventListener("show-submenu",this._show),this.addEventListener("hide-submenu",this._hide)}disconnectedCallback(){this.removeEventListener("show-submenu",this._show),this.removeEventListener("hide-submenu",this._hide),super.disconnectedCallback()}firstUpdated(){let e=0,t=this.parentElement;for(;t;)t.tagName==="SCB-SUB-MENU"&&e++,t=t.parentElement;e%2===1?this.setAttribute("open-left",""):this.removeAttribute("open-left")}render(){return c`
6256
6257
  <div role="menu" class="submenu${this.open?" open":""}">
6257
6258
  <slot></slot>
6258
6259
  </div>
@@ -6284,7 +6285,7 @@ ${this.value}</textarea
6284
6285
  .submenu.open {
6285
6286
  display: block;
6286
6287
  }
6287
- `,vl([n({type:Boolean,reflect:!0})],o.ScbSubMenu.prototype,"open",2),o.ScbSubMenu=vl([g("scb-sub-menu")],o.ScbSubMenu);var Ru=Object.defineProperty,Bu=Object.getOwnPropertyDescriptor,Qo=(a,e,t,i)=>{for(var r=i>1?void 0:i?Bu(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Ru(e,t,r),r};o.ScbMenu=class extends y{constructor(){super(...arguments),this.open=!1,this.inSb=!1,this.__lastTriggerEl=null,this.__onDocumentClick=e=>{if(!this.inSb&&this.open&&!this.isClickInScbMenu(e)){this.__setOpen(!1);return}const t=this.__getActionFromEvent(e);if(t){t==="open"&&(this.__setOpen(!0),this.dispatchEvent(new CustomEvent("open",{bubbles:!0,composed:!0}))),t==="close"&&(this.__setOpen(!1),this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))),t==="toggle"&&(this.__setOpen(!this.open),this.dispatchEvent(new CustomEvent("toggle",{bubbles:!0,composed:!0}))),e.stopPropagation();return}},this.__onDocumentKeydown=e=>{if(this.open&&e.key==="Escape"){this.__setOpen(!1);return}}}render(){return c`
6288
+ `,vl([n({type:Boolean,reflect:!0})],o.ScbSubMenu.prototype,"open",2),o.ScbSubMenu=vl([g("scb-sub-menu")],o.ScbSubMenu);var Bu=Object.defineProperty,Ru=Object.getOwnPropertyDescriptor,Qo=(a,e,t,i)=>{for(var r=i>1?void 0:i?Ru(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Bu(e,t,r),r};o.ScbMenu=class extends y{constructor(){super(...arguments),this.open=!1,this.inSb=!1,this.__lastTriggerEl=null,this.__onDocumentClick=e=>{if(!this.inSb&&this.open&&!this.isClickInScbMenu(e)){this.__setOpen(!1);return}const t=this.__getActionFromEvent(e);if(t){t==="open"&&(this.__setOpen(!0),this.dispatchEvent(new CustomEvent("open",{bubbles:!0,composed:!0}))),t==="close"&&(this.__setOpen(!1),this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))),t==="toggle"&&(this.__setOpen(!this.open),this.dispatchEvent(new CustomEvent("toggle",{bubbles:!0,composed:!0}))),e.stopPropagation();return}},this.__onDocumentKeydown=e=>{if(this.open&&e.key==="Escape"){this.__setOpen(!1);return}}}render(){return c`
6288
6289
  <div
6289
6290
  role="menu"
6290
6291
  class="scb-menu-panel${this.open?" open":""}"
@@ -6625,7 +6626,7 @@ ${this.value}</textarea
6625
6626
  box-shadow: 0 0 0 2px var(--md-sys-color-primary, #1976d2);
6626
6627
  }
6627
6628
  }
6628
- `],F([n({type:String})],o.ScbNotificationCard.prototype,"variant",2),F([n({type:String,reflect:!0})],o.ScbNotificationCard.prototype,"direction",2),F([n({type:String})],o.ScbNotificationCard.prototype,"title",2),F([n({type:String})],o.ScbNotificationCard.prototype,"subtitle",2),F([n({type:String,attribute:"supporting-text"})],o.ScbNotificationCard.prototype,"supportingText",2),F([n({type:Boolean,reflect:!0})],o.ScbNotificationCard.prototype,"open",2),F([n({type:String,attribute:"link-text"})],o.ScbNotificationCard.prototype,"linkText",2),F([n({type:String,attribute:"link-href"})],o.ScbNotificationCard.prototype,"linkHref",2),F([n({type:Boolean,attribute:"show-icon"})],o.ScbNotificationCard.prototype,"showIcon",2),F([n({type:Boolean,attribute:"show-close-button"})],o.ScbNotificationCard.prototype,"showCloseButton",2),F([n({type:String,reflect:!0})],o.ScbNotificationCard.prototype,"sizing",2),F([n({type:String,reflect:!0})],o.ScbNotificationCard.prototype,"width",2),F([n({type:String,reflect:!0,attribute:"max-width"})],o.ScbNotificationCard.prototype,"maxWidth",2),F([n({type:String,reflect:!0})],o.ScbNotificationCard.prototype,"height",2),F([n({type:String,reflect:!0,attribute:"max-height"})],o.ScbNotificationCard.prototype,"maxHeight",2),F([n({type:Boolean,reflect:!0,attribute:"full-height"})],o.ScbNotificationCard.prototype,"fullHeight",2),F([n({type:Boolean,reflect:!0,attribute:"full-width"})],o.ScbNotificationCard.prototype,"fullWidth",2),F([n({type:String})],o.ScbNotificationCard.prototype,"spacing",2),F([n({type:String,attribute:"spacing-top"})],o.ScbNotificationCard.prototype,"spacingTop",2),F([n({type:String,attribute:"spacing-bottom"})],o.ScbNotificationCard.prototype,"spacingBottom",2),o.ScbNotificationCard=F([g("scb-notification-card")],o.ScbNotificationCard);var Fu=Object.defineProperty,Hu=Object.getOwnPropertyDescriptor,ye=(a,e,t,i)=>{for(var r=i>1?void 0:i?Hu(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Fu(e,t,r),r};o.ScbPagination=class extends y{constructor(){super(...arguments),this.variant="icon-text",this.page=1,this.totalPages=0,this.pagingHref="/products?page=",this.paginationAriaLabel="Paginering",this.currentAriaLabel="Nuvarande sida, ",this.pagingNumberAriaLabel="Gå till sida ",this.isNarrow=window.innerWidth<=768,this.spacing="",this.spacingTop="",this.spacingBottom="",this._onResize=()=>{this.isNarrow=window.innerWidth<=768}}_prevPage(){this.page>1&&this.page--,this.dispatchEvent(new CustomEvent("page-change",{detail:{page:this.page}}))}_nextPage(){this.page<this.totalPages&&this.page++,this.dispatchEvent(new CustomEvent("page-change",{detail:{page:this.page}}))}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this._onResize),this._onResize()}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this._onResize)}__resolveSpacingToken(e){const t=(e??"").trim();return t?/^(?:[0-9]|1[0-4])$/.test(t)?`var(--spacing-${t})`:t:""}__applySpacing(){const e=this.__resolveSpacingToken(this.spacingTop||this.spacing),t=this.__resolveSpacingToken(this.spacingBottom||this.spacing);e?this.style.marginBlockStart=e:this.style.removeProperty("margin-block-start"),t?this.style.marginBlockEnd=t:this.style.removeProperty("margin-block-end")}updated(e){super.updated(e),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&this.__applySpacing()}render(){if(this.totalPages===0)return null;const e=this.variant?`${this.variant.toLowerCase()}`:"",t=[],{page:i,totalPages:r}=this,s=window.innerWidth<=768,l=s?1:2,h=p=>p===i?c`
6629
+ `],F([n({type:String})],o.ScbNotificationCard.prototype,"variant",2),F([n({type:String,reflect:!0})],o.ScbNotificationCard.prototype,"direction",2),F([n({type:String})],o.ScbNotificationCard.prototype,"title",2),F([n({type:String})],o.ScbNotificationCard.prototype,"subtitle",2),F([n({type:String,attribute:"supporting-text"})],o.ScbNotificationCard.prototype,"supportingText",2),F([n({type:Boolean,reflect:!0})],o.ScbNotificationCard.prototype,"open",2),F([n({type:String,attribute:"link-text"})],o.ScbNotificationCard.prototype,"linkText",2),F([n({type:String,attribute:"link-href"})],o.ScbNotificationCard.prototype,"linkHref",2),F([n({type:Boolean,attribute:"show-icon"})],o.ScbNotificationCard.prototype,"showIcon",2),F([n({type:Boolean,attribute:"show-close-button"})],o.ScbNotificationCard.prototype,"showCloseButton",2),F([n({type:String,reflect:!0})],o.ScbNotificationCard.prototype,"sizing",2),F([n({type:String,reflect:!0})],o.ScbNotificationCard.prototype,"width",2),F([n({type:String,reflect:!0,attribute:"max-width"})],o.ScbNotificationCard.prototype,"maxWidth",2),F([n({type:String,reflect:!0})],o.ScbNotificationCard.prototype,"height",2),F([n({type:String,reflect:!0,attribute:"max-height"})],o.ScbNotificationCard.prototype,"maxHeight",2),F([n({type:Boolean,reflect:!0,attribute:"full-height"})],o.ScbNotificationCard.prototype,"fullHeight",2),F([n({type:Boolean,reflect:!0,attribute:"full-width"})],o.ScbNotificationCard.prototype,"fullWidth",2),F([n({type:String})],o.ScbNotificationCard.prototype,"spacing",2),F([n({type:String,attribute:"spacing-top"})],o.ScbNotificationCard.prototype,"spacingTop",2),F([n({type:String,attribute:"spacing-bottom"})],o.ScbNotificationCard.prototype,"spacingBottom",2),o.ScbNotificationCard=F([g("scb-notification-card")],o.ScbNotificationCard);var Fu=Object.defineProperty,Hu=Object.getOwnPropertyDescriptor,_e=(a,e,t,i)=>{for(var r=i>1?void 0:i?Hu(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Fu(e,t,r),r};o.ScbPagination=class extends y{constructor(){super(...arguments),this.variant="icon-text",this.page=1,this.totalPages=0,this.pagingHref="/products?page=",this.paginationAriaLabel="Paginering",this.currentAriaLabel="Nuvarande sida, ",this.pagingNumberAriaLabel="Gå till sida ",this.isNarrow=window.innerWidth<=768,this.spacing="",this.spacingTop="",this.spacingBottom="",this._onResize=()=>{this.isNarrow=window.innerWidth<=768}}_prevPage(){this.page>1&&this.page--,this.dispatchEvent(new CustomEvent("page-change",{detail:{page:this.page}}))}_nextPage(){this.page<this.totalPages&&this.page++,this.dispatchEvent(new CustomEvent("page-change",{detail:{page:this.page}}))}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this._onResize),this._onResize()}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this._onResize)}__resolveSpacingToken(e){const t=(e??"").trim();return t?/^(?:[0-9]|1[0-4])$/.test(t)?`var(--spacing-${t})`:t:""}__applySpacing(){const e=this.__resolveSpacingToken(this.spacingTop||this.spacing),t=this.__resolveSpacingToken(this.spacingBottom||this.spacing);e?this.style.marginBlockStart=e:this.style.removeProperty("margin-block-start"),t?this.style.marginBlockEnd=t:this.style.removeProperty("margin-block-end")}updated(e){super.updated(e),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&this.__applySpacing()}render(){if(this.totalPages===0)return null;const e=this.variant?`${this.variant.toLowerCase()}`:"",t=[],{page:i,totalPages:r}=this,s=window.innerWidth<=768,l=s?1:2,h=p=>p===i?c`
6629
6630
  <li>
6630
6631
  <span
6631
6632
  class="page-number active"
@@ -6857,7 +6858,7 @@ ${this.value}</textarea
6857
6858
  margin-top: 8px;
6858
6859
  }
6859
6860
  }
6860
- `],ye([n({type:String})],o.ScbPagination.prototype,"variant",2),ye([n({type:Number})],o.ScbPagination.prototype,"page",2),ye([n({type:Number,attribute:"total-pages"})],o.ScbPagination.prototype,"totalPages",2),ye([n({type:String,attribute:"paging-href"})],o.ScbPagination.prototype,"pagingHref",2),ye([n({type:String,attribute:"pagination-aria-label"})],o.ScbPagination.prototype,"paginationAriaLabel",2),ye([n({type:String,attribute:"current-aria-label"})],o.ScbPagination.prototype,"currentAriaLabel",2),ye([n({type:String,attribute:"paging-number-aria-label"})],o.ScbPagination.prototype,"pagingNumberAriaLabel",2),ye([n({type:Boolean})],o.ScbPagination.prototype,"isNarrow",2),ye([n({type:String})],o.ScbPagination.prototype,"spacing",2),ye([n({type:String,attribute:"spacing-top"})],o.ScbPagination.prototype,"spacingTop",2),ye([n({type:String,attribute:"spacing-bottom"})],o.ScbPagination.prototype,"spacingBottom",2),o.ScbPagination=ye([g("scb-pagination")],o.ScbPagination);var Nu=Object.defineProperty,Vu=Object.getOwnPropertyDescriptor,Di=(a,e,t,i)=>{for(var r=i>1?void 0:i?Vu(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Nu(e,t,r),r};o.ScbProgressIndicator=class extends y{constructor(){super(...arguments),this.id="",this.type="circular",this.progress=25,this.isStatic=!0}render(){return c`
6861
+ `],_e([n({type:String})],o.ScbPagination.prototype,"variant",2),_e([n({type:Number})],o.ScbPagination.prototype,"page",2),_e([n({type:Number,attribute:"total-pages"})],o.ScbPagination.prototype,"totalPages",2),_e([n({type:String,attribute:"paging-href"})],o.ScbPagination.prototype,"pagingHref",2),_e([n({type:String,attribute:"pagination-aria-label"})],o.ScbPagination.prototype,"paginationAriaLabel",2),_e([n({type:String,attribute:"current-aria-label"})],o.ScbPagination.prototype,"currentAriaLabel",2),_e([n({type:String,attribute:"paging-number-aria-label"})],o.ScbPagination.prototype,"pagingNumberAriaLabel",2),_e([n({type:Boolean})],o.ScbPagination.prototype,"isNarrow",2),_e([n({type:String})],o.ScbPagination.prototype,"spacing",2),_e([n({type:String,attribute:"spacing-top"})],o.ScbPagination.prototype,"spacingTop",2),_e([n({type:String,attribute:"spacing-bottom"})],o.ScbPagination.prototype,"spacingBottom",2),o.ScbPagination=_e([g("scb-pagination")],o.ScbPagination);var Nu=Object.defineProperty,Vu=Object.getOwnPropertyDescriptor,Di=(a,e,t,i)=>{for(var r=i>1?void 0:i?Vu(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Nu(e,t,r),r};o.ScbProgressIndicator=class extends y{constructor(){super(...arguments),this.id="",this.type="circular",this.progress=25,this.isStatic=!0}render(){return c`
6861
6862
  <div class="scb-progress-indicator">
6862
6863
  ${this.type==="circular"?c`
6863
6864
  <div class="circular">
@@ -6933,7 +6934,7 @@ ${this.value}</textarea
6933
6934
  50% { margin-left: 30%; width: 60%; }
6934
6935
  100% { margin-left: 100%; width: 40%; }
6935
6936
  }
6936
- `],Di([n({type:String})],o.ScbProgressIndicator.prototype,"id",2),Di([n({type:String,reflect:!0})],o.ScbProgressIndicator.prototype,"type",2),Di([n({type:Number,reflect:!0})],o.ScbProgressIndicator.prototype,"progress",2),Di([n({type:Boolean,attribute:"is-static"})],o.ScbProgressIndicator.prototype,"isStatic",2),o.ScbProgressIndicator=Di([g("scb-progress-indicator")],o.ScbProgressIndicator);var qu=Object.defineProperty,Uu=Object.getOwnPropertyDescriptor,lt=(a,e,t,i)=>{for(var r=i>1?void 0:i?Uu(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&qu(e,t,r),r};o.ScbProgressStep=class extends y{constructor(){super(...arguments),this.width="100%",this.active=!1,this.disabled=!1,this.href="",this.label="",this.position="top",this._stepId=`scb-step-${Math.random().toString(36).slice(2)}`}updated(e){var t;(t=super.updated)==null||t.call(this,e),this.style.setProperty("--progress-step-width",this.width)}_onClick(){this.dispatchEvent(new CustomEvent("step-click",{detail:{},bubbles:!0,composed:!0}))}firstUpdated(e){var t;(t=super.firstUpdated)==null||t.call(this,e),this._setupTooltipPositioning()}_setupTooltipPositioning(){new MutationObserver(()=>this._adjustTooltipPosition()).observe(this,{attributes:!0,childList:!0,subtree:!0}),window.addEventListener("resize",()=>this._adjustTooltipPosition())}_adjustTooltipPosition(){const e=this.renderRoot.querySelector(".tooltip");if(!e)return;e.style.left="50%",e.style.right="",e.style.transform="translateX(-50%)",e.classList.remove("tooltip-left","tooltip-right");const t=e.getBoundingClientRect(),i=8;t.right>window.innerWidth-i&&(e.style.left="auto",e.style.right=`${i}px`,e.style.transform="none",e.classList.add("tooltip-right")),t.left<i&&(e.style.left=`${i}px`,e.style.right="auto",e.style.transform="none",e.classList.add("tooltip-left"))}render(){const e=!!this.href&&!this.disabled;return c`
6937
+ `],Di([n({type:String})],o.ScbProgressIndicator.prototype,"id",2),Di([n({type:String,reflect:!0})],o.ScbProgressIndicator.prototype,"type",2),Di([n({type:Number,reflect:!0})],o.ScbProgressIndicator.prototype,"progress",2),Di([n({type:Boolean,attribute:"is-static"})],o.ScbProgressIndicator.prototype,"isStatic",2),o.ScbProgressIndicator=Di([g("scb-progress-indicator")],o.ScbProgressIndicator);var qu=Object.defineProperty,Uu=Object.getOwnPropertyDescriptor,ct=(a,e,t,i)=>{for(var r=i>1?void 0:i?Uu(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&qu(e,t,r),r};o.ScbProgressStep=class extends y{constructor(){super(...arguments),this.width="100%",this.active=!1,this.disabled=!1,this.href="",this.label="",this.position="top",this._stepId=`scb-step-${Math.random().toString(36).slice(2)}`}updated(e){var t;(t=super.updated)==null||t.call(this,e),this.style.setProperty("--progress-step-width",this.width)}_onClick(){this.dispatchEvent(new CustomEvent("step-click",{detail:{},bubbles:!0,composed:!0}))}firstUpdated(e){var t;(t=super.firstUpdated)==null||t.call(this,e),this._setupTooltipPositioning()}_setupTooltipPositioning(){new MutationObserver(()=>this._adjustTooltipPosition()).observe(this,{attributes:!0,childList:!0,subtree:!0}),window.addEventListener("resize",()=>this._adjustTooltipPosition())}_adjustTooltipPosition(){const e=this.renderRoot.querySelector(".tooltip");if(!e)return;e.style.left="50%",e.style.right="",e.style.transform="translateX(-50%)",e.classList.remove("tooltip-left","tooltip-right");const t=e.getBoundingClientRect(),i=8;t.right>window.innerWidth-i&&(e.style.left="auto",e.style.right=`${i}px`,e.style.transform="none",e.classList.add("tooltip-right")),t.left<i&&(e.style.left=`${i}px`,e.style.right="auto",e.style.transform="none",e.classList.add("tooltip-left"))}render(){const e=!!this.href&&!this.disabled;return c`
6937
6938
  ${e?c`
6938
6939
  <a
6939
6940
  id=${this._stepId}
@@ -7079,7 +7080,7 @@ ${this.value}</textarea
7079
7080
  left: auto;
7080
7081
  transform: none;
7081
7082
  }
7082
- `,lt([n({type:String})],o.ScbProgressStep.prototype,"width",2),lt([n({type:Boolean,reflect:!0})],o.ScbProgressStep.prototype,"active",2),lt([n({type:Boolean,reflect:!0})],o.ScbProgressStep.prototype,"disabled",2),lt([n({type:String,reflect:!0})],o.ScbProgressStep.prototype,"href",2),lt([n({type:String})],o.ScbProgressStep.prototype,"label",2),lt([n({type:String})],o.ScbProgressStep.prototype,"position",2),lt([w()],o.ScbProgressStep.prototype,"_stepId",2),o.ScbProgressStep=lt([g("scb-progress-step")],o.ScbProgressStep);var Wu=Object.defineProperty,ju=Object.getOwnPropertyDescriptor,sa=(a,e,t,i)=>{for(var r=i>1?void 0:i?ju(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Wu(e,t,r),r};o.ScbProgressStepper=class extends y{constructor(){super(...arguments),this.progressWidth=23,this.height="normal",this.position="top"}updated(e){var l;const t=(l=this.shadowRoot)==null?void 0:l.querySelector("slot");if(!t)return;e.has("progressWidth")&&t.dispatchEvent(new Event("slotchange"));const i=t.assignedElements({flatten:!0}),r=this.progressWidth;let s=0;i.forEach((h,p)=>{if(h instanceof o.ScbProgressStep){const v=typeof h.width=="string"?parseFloat(h.width.replace("%","")):Number(h.width);s+=v,this.position=="bottom"?h.setAttribute("position","bottom"):h.setAttribute("position","top"),s<=r+2?h.setAttribute("active","true"):h.removeAttribute("active"),p===i.length-1?h.classList.add("last-step"):h.classList.remove("last-step")}})}render(){return c`
7083
+ `,ct([n({type:String})],o.ScbProgressStep.prototype,"width",2),ct([n({type:Boolean,reflect:!0})],o.ScbProgressStep.prototype,"active",2),ct([n({type:Boolean,reflect:!0})],o.ScbProgressStep.prototype,"disabled",2),ct([n({type:String,reflect:!0})],o.ScbProgressStep.prototype,"href",2),ct([n({type:String})],o.ScbProgressStep.prototype,"label",2),ct([n({type:String})],o.ScbProgressStep.prototype,"position",2),ct([w()],o.ScbProgressStep.prototype,"_stepId",2),o.ScbProgressStep=ct([g("scb-progress-step")],o.ScbProgressStep);var Wu=Object.defineProperty,ju=Object.getOwnPropertyDescriptor,sa=(a,e,t,i)=>{for(var r=i>1?void 0:i?ju(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Wu(e,t,r),r};o.ScbProgressStepper=class extends y{constructor(){super(...arguments),this.progressWidth=23,this.height="normal",this.position="top"}updated(e){var l;const t=(l=this.shadowRoot)==null?void 0:l.querySelector("slot");if(!t)return;e.has("progressWidth")&&t.dispatchEvent(new Event("slotchange"));const i=t.assignedElements({flatten:!0}),r=this.progressWidth;let s=0;i.forEach((h,p)=>{if(h instanceof o.ScbProgressStep){const v=typeof h.width=="string"?parseFloat(h.width.replace("%","")):Number(h.width);s+=v,this.position=="bottom"?h.setAttribute("position","bottom"):h.setAttribute("position","top"),s<=r+2?h.setAttribute("active","true"):h.removeAttribute("active"),p===i.length-1?h.classList.add("last-step"):h.classList.remove("last-step")}})}render(){return c`
7083
7084
  <div class="progress-bar">
7084
7085
  <div class="progress-bar__fill" style="width: ${this.progressWidth}%;"></div>
7085
7086
  </div>
@@ -7209,35 +7210,36 @@ ${this.value}</textarea
7209
7210
  border-top-right-radius: var(--md-sys-shape-corner-full);
7210
7211
  border-bottom-right-radius: var(--md-sys-shape-corner-full);
7211
7212
  }
7212
- `,ei([n({type:String,reflect:!0})],o.ScbSegmentedItem.prototype,"label",2),ei([n({type:String,reflect:!0})],o.ScbSegmentedItem.prototype,"value",2),ei([n({type:Boolean,reflect:!0})],o.ScbSegmentedItem.prototype,"selected",2),ei([n({type:String,reflect:!0})],o.ScbSegmentedItem.prototype,"icon",2),ei([n({type:Boolean,reflect:!0})],o.ScbSegmentedItem.prototype,"disabled",2),o.ScbSegmentedItem=ei([g("scb-segmented-item")],o.ScbSegmentedItem);var Yu=Object.defineProperty,Xu=Object.getOwnPropertyDescriptor,bl=a=>{throw TypeError(a)},It=(a,e,t,i)=>{for(var r=i>1?void 0:i?Xu(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Yu(e,t,r),r},Zu=(a,e,t)=>e.has(a)||bl("Cannot "+t),Ju=(a,e,t)=>e.has(a)?bl("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),ml=(a,e,t)=>(Zu(a,e,"access private method"),t),na,es;o.ScbSegmentedButton=class extends y{constructor(){super(),Ju(this,na),this._internals=null,this.variant="single-select",this.value="",this.values=[],this.disabled=!1,this.name="",this.spacing="",this._form=null,this._formResetHandler=null,this._initialValue="",this._initialValues=[],"attachInternals"in this&&(this._internals=this.attachInternals())}connectedCallback(){super.connectedCallback(),this._form=this.closest("form"),this._form&&(this._formResetHandler=()=>{this.value=this._initialValue,this.values=Array.isArray(this._initialValues)?[...this._initialValues]:[],this.updateSegments(),this._syncFormValue()},this._form.addEventListener("reset",this._formResetHandler,!0))}disconnectedCallback(){this._form&&this._formResetHandler&&this._form.removeEventListener("reset",this._formResetHandler,!0),super.disconnectedCallback()}firstUpdated(){var t;this._initialValue=this.value,this._initialValues=Array.isArray(this.values)?[...this.values]:[],this.updateSegments();const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e&&(e.addEventListener("click",i=>this.onSlotClick(i)),e.addEventListener("focus",()=>{this.dispatchEvent(new CustomEvent("focus",{detail:{},bubbles:!0,composed:!0}))},!0),e.addEventListener("blur",()=>{this.dispatchEvent(new CustomEvent("blur",{detail:{},bubbles:!0,composed:!0}))},!0),e.addEventListener("keydown",i=>{if(i.code==="Space"||i.code==="Enter"||i.code==="NumpadEnter"){const r=i.target;if(r&&r.closest){const s=r.closest("scb-segmented-item");s&&!s.hasAttribute("disabled")&&!this.disabled&&(this.onSlotClick(i),i.preventDefault())}}})),this._syncFormValue(),ml(this,na,es).call(this)}updated(e){super.updated(e),this.updateSegments(),(e.has("value")||e.has("values")||e.has("disabled")||e.has("variant")||e.has("name"))&&this._syncFormValue(),e.has("spacing")&&ml(this,na,es).call(this)}onSlotClick(e){let t=e.target;if(!t||!t.closest)return;const i=t.closest("scb-segmented-item");if(!i||this.disabled||i.hasAttribute("disabled"))return;const r=i.getAttribute("value")||"";r&&(this.variant==="multi-select"?(this.values.indexOf(r)===-1?this.values=[...this.values,r]:this.values=this.values.filter(l=>l!==r),this.dispatchEvent(new CustomEvent("change",{detail:{values:this.values},bubbles:!0,composed:!0})),this.updateSegments()):r!==this.value&&(this.value=r,this.dispatchEvent(new CustomEvent("change",{detail:{value:r},bubbles:!0,composed:!0})),this.updateSegments()))}updateSegments(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("slot");if(!e)return;e.assignedElements().forEach(r=>{if(r.tagName==="SCB-SEGMENTED-ITEM"){const s=r.getAttribute("value")||"";if(s){let l=!1;this.variant==="multi-select"?l=!!this.values&&this.values.includes(s):l=s===this.value,r.setAttribute("aria-pressed",l?"true":"false"),l?r.setAttribute("selected","true"):r.removeAttribute("selected")}this.disabled&&r.setAttribute("disabled","true")}})}formDisabledCallback(e){this.disabled=e}_syncFormValue(){if(this._internals){if(this.disabled||!this.name){this._internals.setFormValue(null);return}if(this.variant==="multi-select"){if(!this.values||this.values.length===0){this._internals.setFormValue(null);return}const e=new FormData;for(const t of this.values)e.append(this.name,t);this._internals.setFormValue(e)}else{if(!this.value){this._internals.setFormValue(null);return}this._internals.setFormValue(this.value)}}}mapSpacingToken(e){if(!e)return;const t=String(e).trim();if(t)return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}render(){return c`<slot></slot>`}},na=new WeakSet,es=function(){const a=this.mapSpacingToken(this.spacing);a?this.style.setProperty("--scb-segmented-button-spacing-block",a):this.style.removeProperty("--scb-segmented-button-spacing-block")},o.ScbSegmentedButton.formAssociated=!0,o.ScbSegmentedButton.styles=m`
7213
+ `,ei([n({type:String,reflect:!0})],o.ScbSegmentedItem.prototype,"label",2),ei([n({type:String,reflect:!0})],o.ScbSegmentedItem.prototype,"value",2),ei([n({type:Boolean,reflect:!0})],o.ScbSegmentedItem.prototype,"selected",2),ei([n({type:String,reflect:!0})],o.ScbSegmentedItem.prototype,"icon",2),ei([n({type:Boolean,reflect:!0})],o.ScbSegmentedItem.prototype,"disabled",2),o.ScbSegmentedItem=ei([g("scb-segmented-item")],o.ScbSegmentedItem);var Yu=Object.defineProperty,Xu=Object.getOwnPropertyDescriptor,bl=a=>{throw TypeError(a)},Xe=(a,e,t,i)=>{for(var r=i>1?void 0:i?Xu(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Yu(e,t,r),r},Zu=(a,e,t)=>e.has(a)||bl("Cannot "+t),Ju=(a,e,t)=>e.has(a)?bl("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),ml=(a,e,t)=>(Zu(a,e,"access private method"),t),na,es;o.ScbSegmentedButton=class extends y{constructor(){super(),Ju(this,na),this._internals=null,this.variant="single-select",this.value="",this.values=[],this.disabled=!1,this.name="",this.spacing="",this.spacingTop="",this.spacingBottom="",this._form=null,this._formResetHandler=null,this._initialValue="",this._initialValues=[],"attachInternals"in this&&(this._internals=this.attachInternals())}connectedCallback(){super.connectedCallback(),this._form=this.closest("form"),this._form&&(this._formResetHandler=()=>{this.value=this._initialValue,this.values=Array.isArray(this._initialValues)?[...this._initialValues]:[],this.updateSegments(),this._syncFormValue()},this._form.addEventListener("reset",this._formResetHandler,!0))}disconnectedCallback(){this._form&&this._formResetHandler&&this._form.removeEventListener("reset",this._formResetHandler,!0),super.disconnectedCallback()}firstUpdated(){var t;this._initialValue=this.value,this._initialValues=Array.isArray(this.values)?[...this.values]:[],this.updateSegments();const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e&&(e.addEventListener("click",i=>this.onSlotClick(i)),e.addEventListener("focus",()=>{this.dispatchEvent(new CustomEvent("focus",{detail:{},bubbles:!0,composed:!0}))},!0),e.addEventListener("blur",()=>{this.dispatchEvent(new CustomEvent("blur",{detail:{},bubbles:!0,composed:!0}))},!0),e.addEventListener("keydown",i=>{if(i.code==="Space"||i.code==="Enter"||i.code==="NumpadEnter"){const r=i.target;if(r&&r.closest){const s=r.closest("scb-segmented-item");s&&!s.hasAttribute("disabled")&&!this.disabled&&(this.onSlotClick(i),i.preventDefault())}}})),this._syncFormValue(),ml(this,na,es).call(this)}updated(e){super.updated(e),this.updateSegments(),(e.has("value")||e.has("values")||e.has("disabled")||e.has("variant")||e.has("name"))&&this._syncFormValue(),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&ml(this,na,es).call(this)}onSlotClick(e){let t=e.target;if(!t||!t.closest)return;const i=t.closest("scb-segmented-item");if(!i||this.disabled||i.hasAttribute("disabled"))return;const r=i.getAttribute("value")||"";r&&(this.variant==="multi-select"?(this.values.indexOf(r)===-1?this.values=[...this.values,r]:this.values=this.values.filter(l=>l!==r),this.dispatchEvent(new CustomEvent("change",{detail:{values:this.values},bubbles:!0,composed:!0})),this.updateSegments()):r!==this.value&&(this.value=r,this.dispatchEvent(new CustomEvent("change",{detail:{value:r},bubbles:!0,composed:!0})),this.updateSegments()))}updateSegments(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("slot");if(!e)return;e.assignedElements().forEach(r=>{if(r.tagName==="SCB-SEGMENTED-ITEM"){const s=r.getAttribute("value")||"";if(s){let l=!1;this.variant==="multi-select"?l=!!this.values&&this.values.includes(s):l=s===this.value,r.setAttribute("aria-pressed",l?"true":"false"),l?r.setAttribute("selected","true"):r.removeAttribute("selected")}this.disabled&&r.setAttribute("disabled","true")}})}formDisabledCallback(e){this.disabled=e}_syncFormValue(){if(this._internals){if(this.disabled||!this.name){this._internals.setFormValue(null);return}if(this.variant==="multi-select"){if(!this.values||this.values.length===0){this._internals.setFormValue(null);return}const e=new FormData;for(const t of this.values)e.append(this.name,t);this._internals.setFormValue(e)}else{if(!this.value){this._internals.setFormValue(null);return}this._internals.setFormValue(this.value)}}}mapSpacingToken(e){if(!e)return;const t=String(e).trim();if(t)return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}render(){return c`<slot></slot>`}},na=new WeakSet,es=function(){const a=this.mapSpacingToken(this.spacing),e=this.mapSpacingToken(this.spacingTop)??a,t=this.mapSpacingToken(this.spacingBottom)??a;e?this.style.setProperty("--scb-segmented-button-spacing-block-start",e):this.style.removeProperty("--scb-segmented-button-spacing-block-start"),t?this.style.setProperty("--scb-segmented-button-spacing-block-end",t):this.style.removeProperty("--scb-segmented-button-spacing-block-end")},o.ScbSegmentedButton.formAssociated=!0,o.ScbSegmentedButton.styles=m`
7213
7214
  :host {
7214
- --scb-segmented-button-width: 100%;
7215
- --scb-segmented-button-height: 48px;
7216
- max-width: var(--scb-segmented-button-width);
7217
- height: var(--scb-segmented-button-height);
7218
- display: grid;
7219
- grid-auto-flow: column;
7220
- grid-auto-columns: 1fr;
7221
- font-family: var(--brand, Inter);
7222
- margin-block: var(--scb-segmented-button-spacing-block, 0);
7215
+ --scb-segmented-button-width: 100%;
7216
+ --scb-segmented-button-height: 48px;
7217
+ max-width: var(--scb-segmented-button-width);
7218
+ height: var(--scb-segmented-button-height);
7219
+ display: grid;
7220
+ grid-auto-flow: column;
7221
+ grid-auto-columns: 1fr;
7222
+ font-family: var(--brand, Inter);
7223
+ margin-block-start: var(--scb-segmented-button-spacing-block-start, 0);
7224
+ margin-block-end: var(--scb-segmented-button-spacing-block-end, 0);
7223
7225
  }
7224
7226
  /* Border radius only on first and last button */
7225
7227
  ::slotted(scb-segmented-item:first-child .segmented-item),
7226
- ::slotted([role="button"]:first-child .segmented-item) {
7228
+ ::slotted([role='button']:first-child .segmented-item) {
7227
7229
  border-top-left-radius: var(--md-sys-shape-corner-full);
7228
7230
  border-bottom-left-radius: var(--md-sys-shape-corner-full);
7229
7231
  }
7230
7232
  ::slotted(scb-segmented-item:last-child .segmented-item),
7231
- ::slotted([role="button"]:last-child .segmented-item) {
7233
+ ::slotted([role='button']:last-child .segmented-item) {
7232
7234
  border-top-right-radius: var(--md-sys-shape-corner-full);
7233
7235
  border-bottom-right-radius: var(--md-sys-shape-corner-full);
7234
7236
  }
7235
7237
  /* First button gets left border */
7236
7238
  ::slotted(scb-segmented-item:first-child .segmented-item),
7237
- ::slotted([role="button"]:first-child .segmented-item) {
7239
+ ::slotted([role='button']:first-child .segmented-item) {
7238
7240
  border-left: 1px solid var(--md-sys-color-outline);
7239
7241
  }
7240
- `,It([n({type:String,reflect:!0})],o.ScbSegmentedButton.prototype,"variant",2),It([n({type:String,reflect:!0})],o.ScbSegmentedButton.prototype,"value",2),It([n({type:Array})],o.ScbSegmentedButton.prototype,"values",2),It([n({type:Boolean,reflect:!0})],o.ScbSegmentedButton.prototype,"disabled",2),It([n({type:String,reflect:!0})],o.ScbSegmentedButton.prototype,"name",2),It([n({type:String,reflect:!0})],o.ScbSegmentedButton.prototype,"spacing",2),o.ScbSegmentedButton=It([g("scb-segmented-button")],o.ScbSegmentedButton);var Qu=Object.defineProperty,ev=Object.getOwnPropertyDescriptor,Pt=(a,e,t,i)=>{for(var r=i>1?void 0:i?ev(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Qu(e,t,r),r};o.ScbSelectOption=class extends y{constructor(){super(...arguments),this.value="",this.disabled=!1,this.showCheckbox=!1,this.checked=!1,this.showRadio=!1,this.label=""}render(){return c`
7242
+ `,Xe([n({type:String,reflect:!0})],o.ScbSegmentedButton.prototype,"variant",2),Xe([n({type:String,reflect:!0})],o.ScbSegmentedButton.prototype,"value",2),Xe([n({type:Array})],o.ScbSegmentedButton.prototype,"values",2),Xe([n({type:Boolean,reflect:!0})],o.ScbSegmentedButton.prototype,"disabled",2),Xe([n({type:String,reflect:!0})],o.ScbSegmentedButton.prototype,"name",2),Xe([n({type:String,reflect:!0})],o.ScbSegmentedButton.prototype,"spacing",2),Xe([n({type:String,attribute:"spacing-top",reflect:!0})],o.ScbSegmentedButton.prototype,"spacingTop",2),Xe([n({type:String,attribute:"spacing-bottom",reflect:!0})],o.ScbSegmentedButton.prototype,"spacingBottom",2),o.ScbSegmentedButton=Xe([g("scb-segmented-button")],o.ScbSegmentedButton);var Qu=Object.defineProperty,ev=Object.getOwnPropertyDescriptor,Pt=(a,e,t,i)=>{for(var r=i>1?void 0:i?ev(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Qu(e,t,r),r};o.ScbSelectOption=class extends y{constructor(){super(...arguments),this.value="",this.disabled=!1,this.showCheckbox=!1,this.checked=!1,this.showRadio=!1,this.label=""}render(){return c`
7241
7243
  <div tabindex="0" class="item ${this.checked?"checked":""}" value=${this.value} ?disabled=${this.disabled}>
7242
7244
  <md-ripple></md-ripple>
7243
7245
  ${this.showCheckbox?c`<md-icon class="${this.checked?"checkbox-checked":""}">${this.checked?"check_box":"check_box_outline_blank"}</md-icon>`:null}
@@ -7462,7 +7464,7 @@ ${this.value}</textarea
7462
7464
  background-position: -200% 0;
7463
7465
  }
7464
7466
  }
7465
- `,Mi([n({type:String})],o.ScbSkeleton.prototype,"variant",2),Mi([n({type:String})],o.ScbSkeleton.prototype,"width",2),Mi([n({type:String})],o.ScbSkeleton.prototype,"height",2),Mi([n({type:String,attribute:"border-size"})],o.ScbSkeleton.prototype,"borderSize",2),o.ScbSkeleton=Mi([g("scb-skeleton")],o.ScbSkeleton);var ov=Object.defineProperty,sv=Object.getOwnPropertyDescriptor,ct=(a,e,t,i)=>{for(var r=i>1?void 0:i?sv(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&ov(e,t,r),r};o.ScbSnackbar=class extends y{constructor(){super(...arguments),this.message="",this.open=!1,this.actionText="",this.showClose=!1,this.fixed=!1,this.fadeout=!1,this.withLongerAction=!1}handleAction(){this.dispatchEvent(new CustomEvent("snackbar-action",{bubbles:!0,composed:!0})),this.open=!1}handleClose(){this.open=!1}updated(e){super.updated(e),e.has("open")&&(this.open?this.dispatchEvent(new CustomEvent("snackbar-open",{bubbles:!0,composed:!0})):this.dispatchEvent(new CustomEvent("snackbar-close",{bubbles:!0,composed:!0}))),(e.has("open")||e.has("fadeout"))&&(this.open&&this.fadeout?(window.clearTimeout(this._fadeoutTimer),this._fadeoutTimer=window.setTimeout(()=>{this.open=!1},5e3)):window.clearTimeout(this._fadeoutTimer))}render(){const e=!!this.actionText,t=!!this.showClose;let i="snackbar";return!e&&!t&&(i+=" no-actions"),this.withLongerAction&&(i+=" longer-action"),c`
7467
+ `,Mi([n({type:String})],o.ScbSkeleton.prototype,"variant",2),Mi([n({type:String})],o.ScbSkeleton.prototype,"width",2),Mi([n({type:String})],o.ScbSkeleton.prototype,"height",2),Mi([n({type:String,attribute:"border-size"})],o.ScbSkeleton.prototype,"borderSize",2),o.ScbSkeleton=Mi([g("scb-skeleton")],o.ScbSkeleton);var ov=Object.defineProperty,sv=Object.getOwnPropertyDescriptor,dt=(a,e,t,i)=>{for(var r=i>1?void 0:i?sv(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&ov(e,t,r),r};o.ScbSnackbar=class extends y{constructor(){super(...arguments),this.message="",this.open=!1,this.actionText="",this.showClose=!1,this.fixed=!1,this.fadeout=!1,this.withLongerAction=!1}handleAction(){this.dispatchEvent(new CustomEvent("snackbar-action",{bubbles:!0,composed:!0})),this.open=!1}handleClose(){this.open=!1}updated(e){super.updated(e),e.has("open")&&(this.open?this.dispatchEvent(new CustomEvent("snackbar-open",{bubbles:!0,composed:!0})):this.dispatchEvent(new CustomEvent("snackbar-close",{bubbles:!0,composed:!0}))),(e.has("open")||e.has("fadeout"))&&(this.open&&this.fadeout?(window.clearTimeout(this._fadeoutTimer),this._fadeoutTimer=window.setTimeout(()=>{this.open=!1},5e3)):window.clearTimeout(this._fadeoutTimer))}render(){const e=!!this.actionText,t=!!this.showClose;let i="snackbar";return!e&&!t&&(i+=" no-actions"),this.withLongerAction&&(i+=" longer-action"),c`
7466
7468
  <div class="${i}" ?hidden=${!this.open}>
7467
7469
  ${this.withLongerAction?c`
7468
7470
  <div class="message">${this.message}</div>
@@ -7584,7 +7586,7 @@ ${this.value}</textarea
7584
7586
  );
7585
7587
  --md-focus-ring-color: var(--md-sys-color-inverse-on-surface);
7586
7588
  }
7587
- `,ct([n({type:String})],o.ScbSnackbar.prototype,"message",2),ct([n({type:Boolean,reflect:!0})],o.ScbSnackbar.prototype,"open",2),ct([n({type:String,attribute:"action-text"})],o.ScbSnackbar.prototype,"actionText",2),ct([n({type:Boolean,attribute:"show-close"})],o.ScbSnackbar.prototype,"showClose",2),ct([n({type:Boolean,reflect:!0})],o.ScbSnackbar.prototype,"fixed",2),ct([n({type:Boolean})],o.ScbSnackbar.prototype,"fadeout",2),ct([n({type:Boolean,attribute:"with-longer-action"})],o.ScbSnackbar.prototype,"withLongerAction",2),o.ScbSnackbar=ct([g("scb-snackbar")],o.ScbSnackbar);var nv=Object.defineProperty,lv=Object.getOwnPropertyDescriptor,Ot=(a,e,t,i)=>{for(var r=i>1?void 0:i?lv(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&nv(e,t,r),r};o.ScbStatusPill=class extends y{constructor(){super(...arguments),this.status="",this.label="",this.showIcon=!1,this.spacing="",this.spacingTop="",this.spacingBottom=""}__resolveSpacingToken(e){const t=(e??"").trim();return t?/^(?:[0-9]|1[0-4])$/.test(t)?`var(--spacing-${t})`:t:""}__applySpacing(){const e=this.__resolveSpacingToken(this.spacingTop||this.spacing),t=this.__resolveSpacingToken(this.spacingBottom||this.spacing);e?this.style.marginBlockStart=e:this.style.removeProperty("margin-block-start"),t?this.style.marginBlockEnd=t:this.style.removeProperty("margin-block-end")}updated(e){super.updated(e),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&this.__applySpacing()}render(){return c`
7589
+ `,dt([n({type:String})],o.ScbSnackbar.prototype,"message",2),dt([n({type:Boolean,reflect:!0})],o.ScbSnackbar.prototype,"open",2),dt([n({type:String,attribute:"action-text"})],o.ScbSnackbar.prototype,"actionText",2),dt([n({type:Boolean,attribute:"show-close"})],o.ScbSnackbar.prototype,"showClose",2),dt([n({type:Boolean,reflect:!0})],o.ScbSnackbar.prototype,"fixed",2),dt([n({type:Boolean})],o.ScbSnackbar.prototype,"fadeout",2),dt([n({type:Boolean,attribute:"with-longer-action"})],o.ScbSnackbar.prototype,"withLongerAction",2),o.ScbSnackbar=dt([g("scb-snackbar")],o.ScbSnackbar);var nv=Object.defineProperty,lv=Object.getOwnPropertyDescriptor,Ot=(a,e,t,i)=>{for(var r=i>1?void 0:i?lv(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&nv(e,t,r),r};o.ScbStatusPill=class extends y{constructor(){super(...arguments),this.status="",this.label="",this.showIcon=!1,this.spacing="",this.spacingTop="",this.spacingBottom=""}__resolveSpacingToken(e){const t=(e??"").trim();return t?/^(?:[0-9]|1[0-4])$/.test(t)?`var(--spacing-${t})`:t:""}__applySpacing(){const e=this.__resolveSpacingToken(this.spacingTop||this.spacing),t=this.__resolveSpacingToken(this.spacingBottom||this.spacing);e?this.style.marginBlockStart=e:this.style.removeProperty("margin-block-start"),t?this.style.marginBlockEnd=t:this.style.removeProperty("margin-block-end")}updated(e){super.updated(e),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&this.__applySpacing()}render(){return c`
7588
7590
  ${this.showIcon?this.status==="success"?c`<md-icon>check_circle</md-icon>`:this.status==="warning"?c`<md-icon>warning</md-icon>`:this.status==="error"?c`<md-icon>error</md-icon>`:"":""}
7589
7591
  <span class="label">${this.label}</span>
7590
7592
  `}},o.ScbStatusPill.styles=m`
@@ -7786,7 +7788,7 @@ ${this.value}</textarea
7786
7788
  }
7787
7789
  }
7788
7790
 
7789
- `,Te([n({type:String,reflect:!0})],o.ScbStep.prototype,"label",2),Te([n({type:String,reflect:!0,attribute:"sub-label"})],o.ScbStep.prototype,"subLabel",2),Te([n({type:String,reflect:!0,attribute:"symbol-variant"})],o.ScbStep.prototype,"symbolVariant",2),Te([n({type:Number,reflect:!0})],o.ScbStep.prototype,"number",2),Te([n({type:Boolean,reflect:!0})],o.ScbStep.prototype,"active",2),Te([n({type:Boolean,reflect:!0})],o.ScbStep.prototype,"completed",2),Te([n({type:Boolean,reflect:!0,attribute:"change-on-completed"})],o.ScbStep.prototype,"changeOnCompleted",2),Te([n({type:Boolean,reflect:!0})],o.ScbStep.prototype,"islast",2),Te([n({type:String,reflect:!0})],o.ScbStep.prototype,"variant",2),Te([n({type:String})],o.ScbStep.prototype,"icon",2),o.ScbStep=Te([g("scb-step")],o.ScbStep);var hv=Object.defineProperty,pv=Object.getOwnPropertyDescriptor,fl=a=>{throw TypeError(a)},Re=(a,e,t,i)=>{for(var r=i>1?void 0:i?pv(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&hv(e,t,r),r},uv=(a,e,t)=>e.has(a)||fl("Cannot "+t),vv=(a,e,t)=>e.has(a)?fl("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),Fi=(a,e,t)=>(uv(a,e,"access private method"),t),Lt,ts,la;o.ScbStepper=class extends y{constructor(){super(...arguments),vv(this,Lt),this.type="",this.label="",this.changeOnCompleted=!1,this.variant="horizontal",this.symbolVariant="number",this.spacing="",this.spacingTop="",this.spacingBottom="",this.activeIndex=0,this._onKeyNav=e=>{const t=this._getSteps(),i=this.activeIndex;let r=i;e.detail.key==="ArrowRight"?i<t.length-1?r=i+1:r=0:e.detail.key==="ArrowLeft"&&(i>0?r=i-1:r=t.length-1),r!==i&&(this._onStepClick(r),setTimeout(()=>{var l;const s=(l=t[r].shadowRoot)==null?void 0:l.querySelector(".scb-step-content");s&&"focus"in s&&typeof s.focus=="function"&&s.focus()},0))},this._onStepContainerClick=e=>{const t=this._getSteps(),i=e.composedPath(),r=t.findIndex(s=>i.includes(s));r!==-1&&this._onStepClick(r)}}_onStepClick(e){const t=this.activeIndex;this.activeIndex=e,this._updateSteps(),this.dispatchEvent(new CustomEvent("scb-step-change",{detail:{index:this.activeIndex,step:this._getSteps()[this.activeIndex]},bubbles:!0,composed:!0})),e>t?this.dispatchEvent(new CustomEvent("scb-step-next",{detail:{from:t,to:e,step:this._getSteps()[e]},bubbles:!0,composed:!0})):e<t&&this.dispatchEvent(new CustomEvent("scb-step-prev",{detail:{from:t,to:e,step:this._getSteps()[e]},bubbles:!0,composed:!0}))}nextStep(){const e=this._getSteps();this.activeIndex<e.length-1&&this._onStepClick(this.activeIndex+1)}prevStep(){this.activeIndex>0&&this._onStepClick(this.activeIndex-1)}getActiveIndex(){return this.activeIndex}_updateSteps(){const e=this._getSteps();e.forEach((t,i)=>{t.active=i===this.activeIndex,t.completed=i<this.activeIndex,t.islast=!1,t.changeOnCompleted=this.changeOnCompleted,t.number=i+1,t.variant=this.variant,t.symbolVariant=this.symbolVariant}),e.length>0&&(e[e.length-1].islast=!0)}_getSteps(){return Array.from(this.querySelectorAll("scb-step"))}firstUpdated(e){this._updateSteps(),Fi(this,Lt,ts).call(this)}updated(e){this._updateSteps(),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&Fi(this,Lt,ts).call(this)}render(){return c`
7791
+ `,Te([n({type:String,reflect:!0})],o.ScbStep.prototype,"label",2),Te([n({type:String,reflect:!0,attribute:"sub-label"})],o.ScbStep.prototype,"subLabel",2),Te([n({type:String,reflect:!0,attribute:"symbol-variant"})],o.ScbStep.prototype,"symbolVariant",2),Te([n({type:Number,reflect:!0})],o.ScbStep.prototype,"number",2),Te([n({type:Boolean,reflect:!0})],o.ScbStep.prototype,"active",2),Te([n({type:Boolean,reflect:!0})],o.ScbStep.prototype,"completed",2),Te([n({type:Boolean,reflect:!0,attribute:"change-on-completed"})],o.ScbStep.prototype,"changeOnCompleted",2),Te([n({type:Boolean,reflect:!0})],o.ScbStep.prototype,"islast",2),Te([n({type:String,reflect:!0})],o.ScbStep.prototype,"variant",2),Te([n({type:String})],o.ScbStep.prototype,"icon",2),o.ScbStep=Te([g("scb-step")],o.ScbStep);var hv=Object.defineProperty,pv=Object.getOwnPropertyDescriptor,fl=a=>{throw TypeError(a)},Be=(a,e,t,i)=>{for(var r=i>1?void 0:i?pv(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&hv(e,t,r),r},uv=(a,e,t)=>e.has(a)||fl("Cannot "+t),vv=(a,e,t)=>e.has(a)?fl("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),Fi=(a,e,t)=>(uv(a,e,"access private method"),t),Lt,ts,la;o.ScbStepper=class extends y{constructor(){super(...arguments),vv(this,Lt),this.type="",this.label="",this.changeOnCompleted=!1,this.variant="horizontal",this.symbolVariant="number",this.spacing="",this.spacingTop="",this.spacingBottom="",this.activeIndex=0,this._onKeyNav=e=>{const t=this._getSteps(),i=this.activeIndex;let r=i;e.detail.key==="ArrowRight"?i<t.length-1?r=i+1:r=0:e.detail.key==="ArrowLeft"&&(i>0?r=i-1:r=t.length-1),r!==i&&(this._onStepClick(r),setTimeout(()=>{var l;const s=(l=t[r].shadowRoot)==null?void 0:l.querySelector(".scb-step-content");s&&"focus"in s&&typeof s.focus=="function"&&s.focus()},0))},this._onStepContainerClick=e=>{const t=this._getSteps(),i=e.composedPath(),r=t.findIndex(s=>i.includes(s));r!==-1&&this._onStepClick(r)}}_onStepClick(e){const t=this.activeIndex;this.activeIndex=e,this._updateSteps(),this.dispatchEvent(new CustomEvent("scb-step-change",{detail:{index:this.activeIndex,step:this._getSteps()[this.activeIndex]},bubbles:!0,composed:!0})),e>t?this.dispatchEvent(new CustomEvent("scb-step-next",{detail:{from:t,to:e,step:this._getSteps()[e]},bubbles:!0,composed:!0})):e<t&&this.dispatchEvent(new CustomEvent("scb-step-prev",{detail:{from:t,to:e,step:this._getSteps()[e]},bubbles:!0,composed:!0}))}nextStep(){const e=this._getSteps();this.activeIndex<e.length-1&&this._onStepClick(this.activeIndex+1)}prevStep(){this.activeIndex>0&&this._onStepClick(this.activeIndex-1)}getActiveIndex(){return this.activeIndex}_updateSteps(){const e=this._getSteps();e.forEach((t,i)=>{t.active=i===this.activeIndex,t.completed=i<this.activeIndex,t.islast=!1,t.changeOnCompleted=this.changeOnCompleted,t.number=i+1,t.variant=this.variant,t.symbolVariant=this.symbolVariant}),e.length>0&&(e[e.length-1].islast=!0)}_getSteps(){return Array.from(this.querySelectorAll("scb-step"))}firstUpdated(e){this._updateSteps(),Fi(this,Lt,ts).call(this)}updated(e){this._updateSteps(),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&Fi(this,Lt,ts).call(this)}render(){return c`
7790
7792
  <div
7791
7793
  class="steps"
7792
7794
  role="list"
@@ -7871,7 +7873,7 @@ ${this.value}</textarea
7871
7873
  ::slotted(scb-step[symbol-variant='marker']:not(:first-child))::before {
7872
7874
  top: 20px;
7873
7875
  }
7874
- `,Re([n({type:String,reflect:!0})],o.ScbStepper.prototype,"type",2),Re([n({type:String,reflect:!0})],o.ScbStepper.prototype,"label",2),Re([n({type:Boolean,reflect:!0,attribute:"change-on-completed"})],o.ScbStepper.prototype,"changeOnCompleted",2),Re([n({type:String})],o.ScbStepper.prototype,"variant",2),Re([n({type:String,reflect:!0,attribute:"symbol-variant"})],o.ScbStepper.prototype,"symbolVariant",2),Re([n({type:String,reflect:!0})],o.ScbStepper.prototype,"spacing",2),Re([n({type:String,attribute:"spacing-top",reflect:!0})],o.ScbStepper.prototype,"spacingTop",2),Re([n({type:String,attribute:"spacing-bottom",reflect:!0})],o.ScbStepper.prototype,"spacingBottom",2),Re([w()],o.ScbStepper.prototype,"activeIndex",2),o.ScbStepper=Re([g("scb-stepper")],o.ScbStepper);var bv=Object.defineProperty,mv=Object.getOwnPropertyDescriptor,ca=(a,e,t,i)=>{for(var r=i>1?void 0:i?mv(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&bv(e,t,r),r};o.ScbPrimaryTab=class extends yi{constructor(){super(...arguments),this.iconOnly=!1,this.inlineIcon=!1,this._onActivate=()=>{var t;const e=((t=this.textContent)==null?void 0:t.trim())??"";this.dispatchEvent(new CustomEvent("activate",{detail:{label:e},bubbles:!0,composed:!0}))}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tab")}get icon(){return this._icon}set icon(e){const t=this._icon;t!==e&&(this._icon=e,this.requestUpdate("icon",t),this.updateIconSlot())}firstUpdated(e){super.firstUpdated(e),this.addEventListener("click",this._onActivate),this._icon&&this.updateIconSlot()}updated(){var e;if(super.updated(),this.setAttribute("aria-selected",this.active?"true":"false"),this.iconOnly&&!this.hasAttribute("aria-label")){const t=((e=this.textContent)==null?void 0:e.trim())??"";t&&this.setAttribute("aria-label",t)}}updateIconSlot(){const e=this.querySelector('md-icon[slot="icon"]');if(!this._icon){e==null||e.remove();return}if(e)e.textContent=this._icon;else{const t=document.createElement("md-icon");t.setAttribute("slot","icon"),t.textContent=this._icon,this.appendChild(t)}}},o.ScbPrimaryTab.styles=[...yi.styles,m`
7876
+ `,Be([n({type:String,reflect:!0})],o.ScbStepper.prototype,"type",2),Be([n({type:String,reflect:!0})],o.ScbStepper.prototype,"label",2),Be([n({type:Boolean,reflect:!0,attribute:"change-on-completed"})],o.ScbStepper.prototype,"changeOnCompleted",2),Be([n({type:String})],o.ScbStepper.prototype,"variant",2),Be([n({type:String,reflect:!0,attribute:"symbol-variant"})],o.ScbStepper.prototype,"symbolVariant",2),Be([n({type:String,reflect:!0})],o.ScbStepper.prototype,"spacing",2),Be([n({type:String,attribute:"spacing-top",reflect:!0})],o.ScbStepper.prototype,"spacingTop",2),Be([n({type:String,attribute:"spacing-bottom",reflect:!0})],o.ScbStepper.prototype,"spacingBottom",2),Be([w()],o.ScbStepper.prototype,"activeIndex",2),o.ScbStepper=Be([g("scb-stepper")],o.ScbStepper);var bv=Object.defineProperty,mv=Object.getOwnPropertyDescriptor,ca=(a,e,t,i)=>{for(var r=i>1?void 0:i?mv(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&bv(e,t,r),r};o.ScbPrimaryTab=class extends yi{constructor(){super(...arguments),this.iconOnly=!1,this.inlineIcon=!1,this._onActivate=()=>{var t;const e=((t=this.textContent)==null?void 0:t.trim())??"";this.dispatchEvent(new CustomEvent("activate",{detail:{label:e},bubbles:!0,composed:!0}))}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tab")}get icon(){return this._icon}set icon(e){const t=this._icon;t!==e&&(this._icon=e,this.requestUpdate("icon",t),this.updateIconSlot())}firstUpdated(e){super.firstUpdated(e),this.addEventListener("click",this._onActivate),this._icon&&this.updateIconSlot()}updated(){var e;if(super.updated(),this.setAttribute("aria-selected",this.active?"true":"false"),this.iconOnly&&!this.hasAttribute("aria-label")){const t=((e=this.textContent)==null?void 0:e.trim())??"";t&&this.setAttribute("aria-label",t)}}updateIconSlot(){const e=this.querySelector('md-icon[slot="icon"]');if(!this._icon){e==null||e.remove();return}if(e)e.textContent=this._icon;else{const t=document.createElement("md-icon");t.setAttribute("slot","icon"),t.textContent=this._icon,this.appendChild(t)}}},o.ScbPrimaryTab.styles=[...yi.styles,m`
7875
7877
  /* Icon-only: dölj textslot */
7876
7878
  :host([icon-only]) slot:not([name='icon']) {
7877
7879
  display: none;
@@ -7881,7 +7883,7 @@ ${this.value}</textarea
7881
7883
  :host([icon-only]) slot:not([name='icon']) {
7882
7884
  display: none;
7883
7885
  }
7884
- `],is([n({type:String})],o.ScbSecondaryTab.prototype,"icon",1),is([n({type:Boolean,reflect:!0,attribute:"icon-only"})],o.ScbSecondaryTab.prototype,"iconOnly",2),o.ScbSecondaryTab=is([g("scb-secondary-tab")],o.ScbSecondaryTab);var yv=Object.defineProperty,_v=Object.getOwnPropertyDescriptor,gl=a=>{throw TypeError(a)},Hi=(a,e,t,i)=>{for(var r=i>1?void 0:i?_v(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&yv(e,t,r),r},xv=(a,e,t)=>e.has(a)||gl("Cannot "+t),wv=(a,e,t)=>e.has(a)?gl("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),Ni=(a,e,t)=>(xv(a,e,"access private method"),t),Rt,rs,da;o.ScbTabs=class extends xi{constructor(){super(...arguments),wv(this,Rt),this.ariaLabel="",this.spacing="",this.spacingTop="",this.spacingBottom="",this._isDispatching=!1,this._onChange=e=>{if(!e.composed&&!this._isDispatching){e.stopPropagation(),this._isDispatching=!0;const t=e.target.activeTabIndex;this.dispatchEvent(new CustomEvent("change",{detail:{activeTabIndex:t},bubbles:!0,composed:!0})),this._isDispatching=!1}}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tablist")}firstUpdated(e){super.firstUpdated(e),this.addEventListener("change",this._onChange),Ni(this,Rt,rs).call(this)}updated(e){super.updated(e),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&Ni(this,Rt,rs).call(this)}},Rt=new WeakSet,rs=function(){const a=Ni(this,Rt,da).call(this,this.spacing),e=Ni(this,Rt,da).call(this,this.spacingTop)??a,t=Ni(this,Rt,da).call(this,this.spacingBottom)??a;e?this.style.setProperty("--scb-tabs-spacing-block-start",e):this.style.removeProperty("--scb-tabs-spacing-block-start"),t?this.style.setProperty("--scb-tabs-spacing-block-end",t):this.style.removeProperty("--scb-tabs-spacing-block-end")},da=function(a){if(!a)return;const e=String(a).trim();if(e)return/^\d+$/.test(e)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(e,10)))})`:e},o.ScbTabs.styles=[...xi.styles,m`
7886
+ `],is([n({type:String})],o.ScbSecondaryTab.prototype,"icon",1),is([n({type:Boolean,reflect:!0,attribute:"icon-only"})],o.ScbSecondaryTab.prototype,"iconOnly",2),o.ScbSecondaryTab=is([g("scb-secondary-tab")],o.ScbSecondaryTab);var yv=Object.defineProperty,_v=Object.getOwnPropertyDescriptor,gl=a=>{throw TypeError(a)},Hi=(a,e,t,i)=>{for(var r=i>1?void 0:i?_v(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&yv(e,t,r),r},xv=(a,e,t)=>e.has(a)||gl("Cannot "+t),wv=(a,e,t)=>e.has(a)?gl("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),Ni=(a,e,t)=>(xv(a,e,"access private method"),t),Bt,rs,da;o.ScbTabs=class extends xi{constructor(){super(...arguments),wv(this,Bt),this.ariaLabel="",this.spacing="",this.spacingTop="",this.spacingBottom="",this._isDispatching=!1,this._onChange=e=>{if(!e.composed&&!this._isDispatching){e.stopPropagation(),this._isDispatching=!0;const t=e.target.activeTabIndex;this.dispatchEvent(new CustomEvent("change",{detail:{activeTabIndex:t},bubbles:!0,composed:!0})),this._isDispatching=!1}}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tablist")}firstUpdated(e){super.firstUpdated(e),this.addEventListener("change",this._onChange),Ni(this,Bt,rs).call(this)}updated(e){super.updated(e),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&Ni(this,Bt,rs).call(this)}},Bt=new WeakSet,rs=function(){const a=Ni(this,Bt,da).call(this,this.spacing),e=Ni(this,Bt,da).call(this,this.spacingTop)??a,t=Ni(this,Bt,da).call(this,this.spacingBottom)??a;e?this.style.setProperty("--scb-tabs-spacing-block-start",e):this.style.removeProperty("--scb-tabs-spacing-block-start"),t?this.style.setProperty("--scb-tabs-spacing-block-end",t):this.style.removeProperty("--scb-tabs-spacing-block-end")},da=function(a){if(!a)return;const e=String(a).trim();if(e)return/^\d+$/.test(e)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(e,10)))})`:e},o.ScbTabs.styles=[...xi.styles,m`
7885
7887
  :host {
7886
7888
  /*Containerfärg */
7887
7889
  --md-primary-tab-container-color: var(--md-sys-color-surface);
@@ -8005,11 +8007,11 @@ ${this.value}</textarea
8005
8007
  color: var(--md-sys-color-on-surface);
8006
8008
  font-family: var(--brand-font, 'Inter', sans-serif);
8007
8009
  }
8008
- `],ti([n({type:Boolean})],o.ScbTocItem.prototype,"expanded",2),ti([n({type:String,reflect:!0})],o.ScbTocItem.prototype,"label",2),ti([n({type:String,attribute:"supporting-text"})],o.ScbTocItem.prototype,"supportingText",2),ti([n({type:String,attribute:"item-href"})],o.ScbTocItem.prototype,"itemHref",2),ti([n({type:Boolean,attribute:"divider"})],o.ScbTocItem.prototype,"divider",2),o.ScbTocItem=ti([g("scb-toc-item")],o.ScbTocItem);var $v=Object.defineProperty,Cv=Object.getOwnPropertyDescriptor,yl=a=>{throw TypeError(a)},Vi=(a,e,t,i)=>{for(var r=i>1?void 0:i?Cv(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&$v(e,t,r),r},Ev=(a,e,t)=>e.has(a)||yl("Cannot "+t),Tv=(a,e,t)=>e.has(a)?yl("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),qi=(a,e,t)=>(Ev(a,e,"access private method"),t),Bt,as,ha;o.ScbToc=class extends y{constructor(){super(...arguments),Tv(this,Bt),this.detached=!1,this.spacing="",this.spacingTop="",this.spacingBottom=""}firstUpdated(e){qi(this,Bt,as).call(this)}updated(e){super.updated(e),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&qi(this,Bt,as).call(this)}render(){return c`
8010
+ `],ti([n({type:Boolean})],o.ScbTocItem.prototype,"expanded",2),ti([n({type:String,reflect:!0})],o.ScbTocItem.prototype,"label",2),ti([n({type:String,attribute:"supporting-text"})],o.ScbTocItem.prototype,"supportingText",2),ti([n({type:String,attribute:"item-href"})],o.ScbTocItem.prototype,"itemHref",2),ti([n({type:Boolean,attribute:"divider"})],o.ScbTocItem.prototype,"divider",2),o.ScbTocItem=ti([g("scb-toc-item")],o.ScbTocItem);var $v=Object.defineProperty,Cv=Object.getOwnPropertyDescriptor,yl=a=>{throw TypeError(a)},Vi=(a,e,t,i)=>{for(var r=i>1?void 0:i?Cv(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&$v(e,t,r),r},Ev=(a,e,t)=>e.has(a)||yl("Cannot "+t),Tv=(a,e,t)=>e.has(a)?yl("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),qi=(a,e,t)=>(Ev(a,e,"access private method"),t),Rt,as,ha;o.ScbToc=class extends y{constructor(){super(...arguments),Tv(this,Rt),this.detached=!1,this.spacing="",this.spacingTop="",this.spacingBottom=""}firstUpdated(e){qi(this,Rt,as).call(this)}updated(e){super.updated(e),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&qi(this,Rt,as).call(this)}render(){return c`
8009
8011
  <div class="scb-toc-list" role="list">
8010
8012
  <slot></slot>
8011
8013
  </div>
8012
- `}},Bt=new WeakSet,as=function(){const a=qi(this,Bt,ha).call(this,this.spacing),e=qi(this,Bt,ha).call(this,this.spacingTop)??a,t=qi(this,Bt,ha).call(this,this.spacingBottom)??a;e?this.style.setProperty("--scb-toc-spacing-block-start",e):this.style.removeProperty("--scb-toc-spacing-block-start"),t?this.style.setProperty("--scb-toc-spacing-block-end",t):this.style.removeProperty("--scb-toc-spacing-block-end")},ha=function(a){if(!a)return;const e=String(a).trim();if(e)return/^\d+$/.test(e)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(e,10)))})`:e},o.ScbToc.styles=[m`
8014
+ `}},Rt=new WeakSet,as=function(){const a=qi(this,Rt,ha).call(this,this.spacing),e=qi(this,Rt,ha).call(this,this.spacingTop)??a,t=qi(this,Rt,ha).call(this,this.spacingBottom)??a;e?this.style.setProperty("--scb-toc-spacing-block-start",e):this.style.removeProperty("--scb-toc-spacing-block-start"),t?this.style.setProperty("--scb-toc-spacing-block-end",t):this.style.removeProperty("--scb-toc-spacing-block-end")},ha=function(a){if(!a)return;const e=String(a).trim();if(e)return/^\d+$/.test(e)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(e,10)))})`:e},o.ScbToc.styles=[m`
8013
8015
  :host {
8014
8016
  display: block;
8015
8017
  /* Vertikalt avstånd styrs av spacing-attributen via CSS-variabler */
@@ -8020,7 +8022,7 @@ ${this.value}</textarea
8020
8022
  .scb-toc-list {
8021
8023
  display: block;
8022
8024
  }
8023
- `],Vi([n({type:Boolean,reflect:!0})],o.ScbToc.prototype,"detached",2),Vi([n({type:String,reflect:!0})],o.ScbToc.prototype,"spacing",2),Vi([n({type:String,attribute:"spacing-top",reflect:!0})],o.ScbToc.prototype,"spacingTop",2),Vi([n({type:String,attribute:"spacing-bottom",reflect:!0})],o.ScbToc.prototype,"spacingBottom",2),o.ScbToc=Vi([g("scb-toc")],o.ScbToc);var Av=Object.defineProperty,zv=Object.getOwnPropertyDescriptor,Be=(a,e,t,i)=>{for(var r=i>1?void 0:i?zv(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Av(e,t,r),r};let Iv=0;o.ScbTooltip=class extends y{constructor(){super(...arguments),this.variant="plain",this.arrow=null,this.supportingtext="",this.label="",this.trigger="hover",this.position="top",this.open=!1,this.delay=.25,this.offset=0,this._hoverActive=!1,this._clickActive=!1,this._hideTimeout=null,this._triggerEl=null,this._originalPosition="top",this._tooltipId=`scb-tooltip-${++Iv}`,this._onTriggerMouseEnter=()=>{this._hoverActive=!0,this.open=!0},this._onTriggerMouseLeave=()=>{this._hoverActive=!1,this._clickActive||(this.open=!1)},this._onTriggerFocus=()=>{this._hoverActive=!0,this.open=!0},this._onTriggerBlur=()=>{this._hoverActive=!1,this._clickActive||(this.open=!1)},this._onTooltipMouseEnter=()=>{(this.trigger==="hover"||this.trigger==="hover-click")&&(this._hoverActive=!0,this.open=!0)},this._onTooltipMouseLeave=()=>{(this.trigger==="hover"||this.trigger==="hover-click")&&(this._hoverActive=!1,this._clickActive||(this.open=!1))},this._onTriggerClick=()=>{this._clickActive=!this._clickActive,this._clickActive?this.open=!0:this._hoverActive||(this.open=!1)}}firstUpdated(){if(this._originalPosition=this.position,this._updateDelayCss(),this._updateTriggerElement(),this._updateTooltipHoverListeners(),this.open){const e=this._getTooltipElement();e&&this._showTooltip(e)}}updated(e){if(e.has("trigger")&&(this._updateTriggerElement(),this._updateTooltipHoverListeners()),e.has("delay")&&this._updateDelayCss(),e.has("open")){const t=this._getTooltipElement();if(!t)return;this.open?this._showTooltip(t):this._hideTooltip(t)}}disconnectedCallback(){super.disconnectedCallback(),this._detachTriggerListeners();const e=this._getTooltipElement();e&&(e.removeEventListener("mouseenter",this._onTooltipMouseEnter),e.removeEventListener("mouseleave",this._onTooltipMouseLeave)),this._hideTimeout!==null&&(window.clearTimeout(this._hideTimeout),this._hideTimeout=null)}_getTooltipElement(){return this.renderRoot.querySelector(".scb-tooltip")}_updateDelayCss(){const e=Number.isFinite(this.delay)?this.delay:.25;this.style.setProperty("--delay",`${e}s`)}_findTriggerElement(){const e=this.querySelector("[scb-tooltip-anchor]:not([slot])");return e||(Array.from(this.children).find(i=>i.nodeType===Node.ELEMENT_NODE)??null)}_updateTriggerElement(){const e=this._triggerEl;e&&(this._detachTriggerListeners(),e.removeAttribute("aria-describedby"));const t=this._findTriggerElement();this._triggerEl=t,t&&(t.setAttribute("aria-describedby",this._tooltipId),(this.trigger==="click"||this.trigger==="hover-click")&&t.addEventListener("click",this._onTriggerClick),(this.trigger==="hover"||this.trigger==="hover-click")&&(t.addEventListener("mouseenter",this._onTriggerMouseEnter),t.addEventListener("mouseleave",this._onTriggerMouseLeave),t.addEventListener("focus",this._onTriggerFocus),t.addEventListener("blur",this._onTriggerBlur)))}_updateTooltipHoverListeners(){const e=this._getTooltipElement();e&&(e.removeEventListener("mouseenter",this._onTooltipMouseEnter),e.removeEventListener("mouseleave",this._onTooltipMouseLeave),(this.trigger==="hover"||this.trigger==="hover-click")&&(e.addEventListener("mouseenter",this._onTooltipMouseEnter),e.addEventListener("mouseleave",this._onTooltipMouseLeave)))}_detachTriggerListeners(){const e=this._triggerEl;e&&(e.removeEventListener("click",this._onTriggerClick),e.removeEventListener("mouseenter",this._onTriggerMouseEnter),e.removeEventListener("mouseleave",this._onTriggerMouseLeave),e.removeEventListener("focus",this._onTriggerFocus),e.removeEventListener("blur",this._onTriggerBlur))}_showTooltip(e){this._hideTimeout!==null&&(window.clearTimeout(this._hideTimeout),this._hideTimeout=null);const t=this._triggerEl;this._resetPosition(),e.classList.remove("hidden"),e.setAttribute("aria-hidden","false"),requestAnimationFrame(()=>{t&&this._positionTooltip(e,t),e.setAttribute("open","")})}_hideTooltip(e){e.removeAttribute("open"),e.setAttribute("aria-hidden","true"),this._scheduleHidden(e)}_scheduleHidden(e){const t=(Number.isFinite(this.delay)?this.delay:.25)*1e3;if(t<=0){e.classList.add("hidden");return}this._hideTimeout=window.setTimeout(()=>{e.classList.add("hidden"),this._hideTimeout=null},t)}_resetPosition(){this.position=this._originalPosition}_positionTooltip(e,t){const i=t.getBoundingClientRect(),r=e.getBoundingClientRect(),s=this.getBoundingClientRect(),p=(this.offset??0)+8,v=8,f=v,b=window.innerHeight-v,_=v,x=window.innerWidth-v,S=V=>V>=f&&V+r.height<=b,C=V=>V>=_&&V+r.width<=x,T=(V,pe,ze,Ki)=>{let ii=0;V<ze&&(ii+=ze-V);const va=V+pe;return va>Ki&&(ii+=va-Ki),ii},A=V=>{let pe=0,ze=0;switch(V){case"top":pe=i.top-s.top-r.height-p,ze=i.left-s.left+(i.width-r.width)/2;break;case"bottom":pe=i.bottom-s.top+p,ze=i.left-s.left+(i.width-r.width)/2;break;case"left":ze=i.left-s.left-r.width-p,pe=i.top-s.top+(i.height-r.height)/2;break;case"right":ze=i.right-s.left+p,pe=i.top-s.top+(i.height-r.height)/2;break}const Ki=pe+s.top,ii=ze+s.left,va=T(Ki,r.height,f,b),Bv=T(ii,r.width,_,x);return{pos:V,top:pe,left:ze,fitsV:S(Ki),fitsH:C(ii),totalOverflow:va+Bv}},z=this.position==="top"||this.position==="bottom",ee=this.position,q=this._getOppositePosition(ee),_e=[ee,q,z?"left":"top",z?"right":"bottom"].map(A);let he=_e.find(V=>V.fitsV&&V.fitsH)??_e.reduce((V,pe)=>pe.totalOverflow<V.totalOverflow?pe:V);const Mt=(V,pe,ze)=>Math.min(Math.max(V,pe),ze),De=f-s.top,dt=b-r.height-s.top,ua=_-s.left,Wi=x-r.width-s.left,ji=Mt(he.top,De,dt),Ae=Mt(he.left,ua,Wi);e.style.top=`${ji}px`,e.style.left=`${Ae}px`,this.position!==he.pos&&(this.position=he.pos)}_getOppositePosition(e){switch(e){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}_onDefaultSlotChange(){this._updateTriggerElement()}render(){const e=this.arrow?c`<svg
8025
+ `],Vi([n({type:Boolean,reflect:!0})],o.ScbToc.prototype,"detached",2),Vi([n({type:String,reflect:!0})],o.ScbToc.prototype,"spacing",2),Vi([n({type:String,attribute:"spacing-top",reflect:!0})],o.ScbToc.prototype,"spacingTop",2),Vi([n({type:String,attribute:"spacing-bottom",reflect:!0})],o.ScbToc.prototype,"spacingBottom",2),o.ScbToc=Vi([g("scb-toc")],o.ScbToc);var Av=Object.defineProperty,zv=Object.getOwnPropertyDescriptor,Re=(a,e,t,i)=>{for(var r=i>1?void 0:i?zv(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Av(e,t,r),r};let Iv=0;o.ScbTooltip=class extends y{constructor(){super(...arguments),this.variant="plain",this.arrow=null,this.supportingtext="",this.label="",this.trigger="hover",this.position="top",this.open=!1,this.delay=.25,this.offset=0,this._hoverActive=!1,this._clickActive=!1,this._hideTimeout=null,this._triggerEl=null,this._originalPosition="top",this._tooltipId=`scb-tooltip-${++Iv}`,this._onTriggerMouseEnter=()=>{this._hoverActive=!0,this.open=!0},this._onTriggerMouseLeave=()=>{this._hoverActive=!1,this._clickActive||(this.open=!1)},this._onTriggerFocus=()=>{this._hoverActive=!0,this.open=!0},this._onTriggerBlur=()=>{this._hoverActive=!1,this._clickActive||(this.open=!1)},this._onTooltipMouseEnter=()=>{(this.trigger==="hover"||this.trigger==="hover-click")&&(this._hoverActive=!0,this.open=!0)},this._onTooltipMouseLeave=()=>{(this.trigger==="hover"||this.trigger==="hover-click")&&(this._hoverActive=!1,this._clickActive||(this.open=!1))},this._onTriggerClick=()=>{this._clickActive=!this._clickActive,this._clickActive?this.open=!0:this._hoverActive||(this.open=!1)}}firstUpdated(){if(this._originalPosition=this.position,this._updateDelayCss(),this._updateTriggerElement(),this._updateTooltipHoverListeners(),this.open){const e=this._getTooltipElement();e&&this._showTooltip(e)}}updated(e){if(e.has("trigger")&&(this._updateTriggerElement(),this._updateTooltipHoverListeners()),e.has("delay")&&this._updateDelayCss(),e.has("open")){const t=this._getTooltipElement();if(!t)return;this.open?this._showTooltip(t):this._hideTooltip(t)}}disconnectedCallback(){super.disconnectedCallback(),this._detachTriggerListeners();const e=this._getTooltipElement();e&&(e.removeEventListener("mouseenter",this._onTooltipMouseEnter),e.removeEventListener("mouseleave",this._onTooltipMouseLeave)),this._hideTimeout!==null&&(window.clearTimeout(this._hideTimeout),this._hideTimeout=null)}_getTooltipElement(){return this.renderRoot.querySelector(".scb-tooltip")}_updateDelayCss(){const e=Number.isFinite(this.delay)?this.delay:.25;this.style.setProperty("--delay",`${e}s`)}_findTriggerElement(){const e=this.querySelector("[scb-tooltip-anchor]:not([slot])");return e||(Array.from(this.children).find(i=>i.nodeType===Node.ELEMENT_NODE)??null)}_updateTriggerElement(){const e=this._triggerEl;e&&(this._detachTriggerListeners(),e.removeAttribute("aria-describedby"));const t=this._findTriggerElement();this._triggerEl=t,t&&(t.setAttribute("aria-describedby",this._tooltipId),(this.trigger==="click"||this.trigger==="hover-click")&&t.addEventListener("click",this._onTriggerClick),(this.trigger==="hover"||this.trigger==="hover-click")&&(t.addEventListener("mouseenter",this._onTriggerMouseEnter),t.addEventListener("mouseleave",this._onTriggerMouseLeave),t.addEventListener("focus",this._onTriggerFocus),t.addEventListener("blur",this._onTriggerBlur)))}_updateTooltipHoverListeners(){const e=this._getTooltipElement();e&&(e.removeEventListener("mouseenter",this._onTooltipMouseEnter),e.removeEventListener("mouseleave",this._onTooltipMouseLeave),(this.trigger==="hover"||this.trigger==="hover-click")&&(e.addEventListener("mouseenter",this._onTooltipMouseEnter),e.addEventListener("mouseleave",this._onTooltipMouseLeave)))}_detachTriggerListeners(){const e=this._triggerEl;e&&(e.removeEventListener("click",this._onTriggerClick),e.removeEventListener("mouseenter",this._onTriggerMouseEnter),e.removeEventListener("mouseleave",this._onTriggerMouseLeave),e.removeEventListener("focus",this._onTriggerFocus),e.removeEventListener("blur",this._onTriggerBlur))}_showTooltip(e){this._hideTimeout!==null&&(window.clearTimeout(this._hideTimeout),this._hideTimeout=null);const t=this._triggerEl;this._resetPosition(),e.classList.remove("hidden"),e.setAttribute("aria-hidden","false"),requestAnimationFrame(()=>{t&&this._positionTooltip(e,t),e.setAttribute("open","")})}_hideTooltip(e){e.removeAttribute("open"),e.setAttribute("aria-hidden","true"),this._scheduleHidden(e)}_scheduleHidden(e){const t=(Number.isFinite(this.delay)?this.delay:.25)*1e3;if(t<=0){e.classList.add("hidden");return}this._hideTimeout=window.setTimeout(()=>{e.classList.add("hidden"),this._hideTimeout=null},t)}_resetPosition(){this.position=this._originalPosition}_positionTooltip(e,t){const i=t.getBoundingClientRect(),r=e.getBoundingClientRect(),s=this.getBoundingClientRect(),p=(this.offset??0)+8,v=8,f=v,b=window.innerHeight-v,_=v,x=window.innerWidth-v,S=V=>V>=f&&V+r.height<=b,C=V=>V>=_&&V+r.width<=x,T=(V,ue,ze,Ki)=>{let ii=0;V<ze&&(ii+=ze-V);const va=V+ue;return va>Ki&&(ii+=va-Ki),ii},A=V=>{let ue=0,ze=0;switch(V){case"top":ue=i.top-s.top-r.height-p,ze=i.left-s.left+(i.width-r.width)/2;break;case"bottom":ue=i.bottom-s.top+p,ze=i.left-s.left+(i.width-r.width)/2;break;case"left":ze=i.left-s.left-r.width-p,ue=i.top-s.top+(i.height-r.height)/2;break;case"right":ze=i.right-s.left+p,ue=i.top-s.top+(i.height-r.height)/2;break}const Ki=ue+s.top,ii=ze+s.left,va=T(Ki,r.height,f,b),Rv=T(ii,r.width,_,x);return{pos:V,top:ue,left:ze,fitsV:S(Ki),fitsH:C(ii),totalOverflow:va+Rv}},z=this.position==="top"||this.position==="bottom",ee=this.position,q=this._getOppositePosition(ee),xe=[ee,q,z?"left":"top",z?"right":"bottom"].map(A);let pe=xe.find(V=>V.fitsV&&V.fitsH)??xe.reduce((V,ue)=>ue.totalOverflow<V.totalOverflow?ue:V);const Mt=(V,ue,ze)=>Math.min(Math.max(V,ue),ze),De=f-s.top,ht=b-r.height-s.top,ua=_-s.left,Wi=x-r.width-s.left,ji=Mt(pe.top,De,ht),Ae=Mt(pe.left,ua,Wi);e.style.top=`${ji}px`,e.style.left=`${Ae}px`,this.position!==pe.pos&&(this.position=pe.pos)}_getOppositePosition(e){switch(e){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}_onDefaultSlotChange(){this._updateTriggerElement()}render(){const e=this.arrow?c`<svg
8024
8026
  class="scb-tooltip-arrow"
8025
8027
  xmlns="http://www.w3.org/2000/svg"
8026
8028
  width="13"
@@ -8211,7 +8213,7 @@ ${this.value}</textarea
8211
8213
  gap: var(--spacing-3);
8212
8214
  align-self: stretch;
8213
8215
  }
8214
- `,Be([n({type:String,reflect:!0})],o.ScbTooltip.prototype,"variant",2),Be([n({type:Boolean,reflect:!0})],o.ScbTooltip.prototype,"arrow",2),Be([n({type:String,attribute:"supporting-text"})],o.ScbTooltip.prototype,"supportingtext",2),Be([n({type:String})],o.ScbTooltip.prototype,"label",2),Be([n({type:String,reflect:!0})],o.ScbTooltip.prototype,"trigger",2),Be([n({type:String,reflect:!0})],o.ScbTooltip.prototype,"position",2),Be([n({type:Boolean,reflect:!0})],o.ScbTooltip.prototype,"open",2),Be([n({type:Number,reflect:!0})],o.ScbTooltip.prototype,"delay",2),Be([n({type:Number,reflect:!0})],o.ScbTooltip.prototype,"offset",2),o.ScbTooltip=Be([g("scb-tooltip")],o.ScbTooltip);var Pv=Object.defineProperty,Ov=Object.getOwnPropertyDescriptor,_l=a=>{throw TypeError(a)},se=(a,e,t,i)=>{for(var r=i>1?void 0:i?Ov(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Pv(e,t,r),r},Lv=(a,e,t)=>e.has(a)||_l("Cannot "+t),Rv=(a,e,t)=>e.has(a)?_l("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),Ui=(a,e,t)=>(Lv(a,e,"access private method"),t),Dt,os,pa;return o.ScbViz=class extends y{constructor(){super(...arguments),Rv(this,Dt),this.variant="Standard",this.selectedChip="Diagram",this.title="",this.subtitle="",this.description="",this.comment="",this.source="",this.footnote="",this.lang="sv",this.imageHref="",this.spacing="",this.spacingTop="",this.spacingBottom=""}get descriptionLabel(){return this.lang==="en"?"Description of the chart":"Beskrivning av diagrammet"}get moreAboutStatsLabel(){return this.lang==="en"?"More about the statistics":"Mer om statistiken"}get commentLabel(){return this.lang==="en"?"Comments":"Kommentar"}get sourceLabel(){return this.lang==="en"?"Source":"Källa"}get footnoteLabel(){return this.lang==="en"?"Footnotes":"Fotnot"}firstUpdated(e){var i;const t=(i=this.shadowRoot)==null?void 0:i.querySelector('slot[name="table"]');t&&(t.addEventListener("slotchange",()=>this._styleSlottedTable()),this._styleSlottedTable()),Ui(this,Dt,os).call(this)}updated(e){super.updated(e),this._styleSlottedTable(),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&Ui(this,Dt,os).call(this)}_styleSlottedTable(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector('slot[name="table"]');if(!e)return;e.assignedElements({flatten:!0}).forEach(r=>{if(r.tagName==="TABLE"){const s=r;s.style.borderCollapse="collapse",s.style.width="100%",r.querySelectorAll("tbody tr:nth-child(odd)").forEach(l=>{l.style.background="var(--md-sys-color-surface-container)"}),r.querySelectorAll("th").forEach(l=>{const h=l;h.style.border="1px solid var(--md-sys-color-on-surface)",h.style.padding="8px"}),r.querySelectorAll("td").forEach(l=>{const h=l;h.style.border="1px solid var(--md-sys-color-on-surface)",h.style.padding="8px"}),r.querySelectorAll("tr").forEach(l=>{const h=Array.from(l.children).filter(p=>p.tagName==="TD"||p.tagName==="TH");h.length>0&&(h[0].style.borderLeft="none",h[h.length-1].style.borderRight="none")})}})}render(){switch(this.variant){case"Table":return c`
8216
+ `,Re([n({type:String,reflect:!0})],o.ScbTooltip.prototype,"variant",2),Re([n({type:Boolean,reflect:!0})],o.ScbTooltip.prototype,"arrow",2),Re([n({type:String,attribute:"supporting-text"})],o.ScbTooltip.prototype,"supportingtext",2),Re([n({type:String})],o.ScbTooltip.prototype,"label",2),Re([n({type:String,reflect:!0})],o.ScbTooltip.prototype,"trigger",2),Re([n({type:String,reflect:!0})],o.ScbTooltip.prototype,"position",2),Re([n({type:Boolean,reflect:!0})],o.ScbTooltip.prototype,"open",2),Re([n({type:Number,reflect:!0})],o.ScbTooltip.prototype,"delay",2),Re([n({type:Number,reflect:!0})],o.ScbTooltip.prototype,"offset",2),o.ScbTooltip=Re([g("scb-tooltip")],o.ScbTooltip);var Pv=Object.defineProperty,Ov=Object.getOwnPropertyDescriptor,_l=a=>{throw TypeError(a)},se=(a,e,t,i)=>{for(var r=i>1?void 0:i?Ov(e,t):e,s=a.length-1,l;s>=0;s--)(l=a[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Pv(e,t,r),r},Lv=(a,e,t)=>e.has(a)||_l("Cannot "+t),Bv=(a,e,t)=>e.has(a)?_l("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),Ui=(a,e,t)=>(Lv(a,e,"access private method"),t),Dt,os,pa;return o.ScbViz=class extends y{constructor(){super(...arguments),Bv(this,Dt),this.variant="Standard",this.selectedChip="Diagram",this.title="",this.subtitle="",this.description="",this.comment="",this.source="",this.footnote="",this.lang="sv",this.imageHref="",this.spacing="",this.spacingTop="",this.spacingBottom=""}get descriptionLabel(){return this.lang==="en"?"Description of the chart":"Beskrivning av diagrammet"}get moreAboutStatsLabel(){return this.lang==="en"?"More about the statistics":"Mer om statistiken"}get commentLabel(){return this.lang==="en"?"Comments":"Kommentar"}get sourceLabel(){return this.lang==="en"?"Source":"Källa"}get footnoteLabel(){return this.lang==="en"?"Footnotes":"Fotnot"}firstUpdated(e){var i;const t=(i=this.shadowRoot)==null?void 0:i.querySelector('slot[name="table"]');t&&(t.addEventListener("slotchange",()=>this._styleSlottedTable()),this._styleSlottedTable()),Ui(this,Dt,os).call(this)}updated(e){super.updated(e),this._styleSlottedTable(),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&Ui(this,Dt,os).call(this)}_styleSlottedTable(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector('slot[name="table"]');if(!e)return;e.assignedElements({flatten:!0}).forEach(r=>{if(r.tagName==="TABLE"){const s=r;s.style.borderCollapse="collapse",s.style.width="100%",r.querySelectorAll("tbody tr:nth-child(odd)").forEach(l=>{l.style.background="var(--md-sys-color-surface-container)"}),r.querySelectorAll("th").forEach(l=>{const h=l;h.style.border="1px solid var(--md-sys-color-on-surface)",h.style.padding="8px"}),r.querySelectorAll("td").forEach(l=>{const h=l;h.style.border="1px solid var(--md-sys-color-on-surface)",h.style.padding="8px"}),r.querySelectorAll("tr").forEach(l=>{const h=Array.from(l.children).filter(p=>p.tagName==="TD"||p.tagName==="TH");h.length>0&&(h[0].style.borderLeft="none",h[h.length-1].style.borderRight="none")})}})}render(){switch(this.variant){case"Table":return c`
8215
8217
  <div part="container">
8216
8218
  <div class="header">
8217
8219
  ${this.title?c` <div class="label">${this.title}</div> `:""}