@fluid-topics/ft-select 0.3.30 → 0.3.32

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.
@@ -8,7 +8,7 @@ import { html } from "lit";
8
8
  import { property, query, state } from "lit/decorators.js";
9
9
  import { classMap } from "lit/directives/class-map.js";
10
10
  import { repeat } from "lit/directives/repeat.js";
11
- import { FtLitElement } from "@fluid-topics/ft-wc-utils";
11
+ import { deepEqual, FtLitElement } from "@fluid-topics/ft-wc-utils";
12
12
  import { FtTypography, FtTypographyBody2, FtTypographyCaption } from "@fluid-topics/ft-typography";
13
13
  import { FtInputLabel } from "@fluid-topics/ft-input-label";
14
14
  import { FtRipple } from "@fluid-topics/ft-ripple";
@@ -132,14 +132,12 @@ export class FtSelect extends FtLitElement {
132
132
  `;
133
133
  }
134
134
  updated(props) {
135
- var _a;
136
135
  super.updated(props);
137
136
  if (props.has("options")) {
138
137
  this.selectedOption = this.options.filter(o => o.selected)[0];
139
138
  }
140
139
  if (props.has("selectedOption")) {
141
140
  this.optionsDisplayed = false;
142
- this.dispatchEvent(new CustomEvent("change", { detail: (_a = this.selectedOption) === null || _a === void 0 ? void 0 : _a.value }));
143
141
  }
144
142
  if (props.has("optionsDisplayed")) {
145
143
  if (this.fixedMenuPosition && this.hasOptionsMenuOpen) {
@@ -228,10 +226,15 @@ export class FtSelect extends FtLitElement {
228
226
  }
229
227
  }
230
228
  selectOption(option) {
231
- this.selectedOption = option;
232
- for (let otherOption of this.options) {
233
- otherOption.selected = otherOption === option;
229
+ var _a, _b;
230
+ if (!deepEqual((_a = this.selectedOption) === null || _a === void 0 ? void 0 : _a.value, option.value)) {
231
+ this.selectedOption = option;
232
+ for (let otherOption of this.options) {
233
+ otherOption.selected = otherOption === option;
234
+ }
235
+ this.dispatchEvent(new CustomEvent("change", { detail: (_b = this.selectedOption) === null || _b === void 0 ? void 0 : _b.value }));
234
236
  }
237
+ this.optionsDisplayed = false;
235
238
  }
236
239
  connectedCallback() {
237
240
  super.connectedCallback();
@@ -580,4 +580,4 @@ const K=Symbol.for(""),F=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
580
580
  <ft-ripple ?primary=${e} ?activated=${e}></ft-ripple>
581
581
  <span>${t.label}</span>
582
582
  </div>
583
- `}updated(t){var e;super.updated(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1,this.dispatchEvent(new CustomEvent("change",{detail:null===(e=this.selectedOption)||void 0===e?void 0:e.value}))),t.has("optionsDisplayed")&&this.fixedMenuPosition&&this.hasOptionsMenuOpen&&this.positionOptionsMenu()}positionOptionsMenu(){this.optionsMenu.style.top=this.mainPanel.getBoundingClientRect().top+this.mainPanel.getBoundingClientRect().height+"px",this.optionsMenu.style.left=this.mainPanel.getBoundingClientRect().left+"px",this.optionsMenu.style.width=this.mainPanel.getBoundingClientRect().width+"px"}contentAvailableCallback(t){var e,i;t.has("focusOptions")&&this.focusOptions&&(null===(i=null!==(e=this.selectedOptionElement)&&void 0!==e?e:this.firstOption)||void 0===i||i.focus(),this.focusOptions=!1)}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var e;t.stopPropagation();let i=null===(e=this.optionsSlot)||void 0===e?void 0:e.assignedElements().map((t=>t));i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0}}onOptionsKeyDown(t){var e,i,o,s,l;let n;switch(t.key){case"Escape":this.optionsDisplayed=!1,null===(e=this.mainPanel)||void 0===e||e.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),n=null!==(o=null===(i=this.focusedOption)||void 0===i?void 0:i.previousElementSibling)&&void 0!==o?o:this.lastOption;break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),n=null!==(l=null===(s=this.focusedOption)||void 0===s?void 0:s.nextElementSibling)&&void 0!==l?l:this.firstOption}null==n||n.focus()}onOptionKeyDown(t,e){var i;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.selectOption(e),this.optionsDisplayed=!1,null===(i=this.mainPanel)||void 0===i||i.focus())}selectOption(t){this.selectedOption=t;for(let e of this.options)e.selected=e===t}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}_e.elementDefinitions={"ft-input-label":ae,"ft-typography":le,"ft-ripple":we,"ft-icon":Ae},_e.styles=[Qt,Vt,De],Me([o.property({type:String})],_e.prototype,"label",void 0),Me([o.property({type:String})],_e.prototype,"helper",void 0),Me([o.property({type:Boolean})],_e.prototype,"outlined",void 0),Me([o.property({type:Boolean})],_e.prototype,"disabled",void 0),Me([o.property({type:Boolean})],_e.prototype,"error",void 0),Me([o.property({type:Boolean})],_e.prototype,"fixedMenuPosition",void 0),Me([o.property({type:Array})],_e.prototype,"options",void 0),Me([o.state()],_e.prototype,"selectedOption",void 0),Me([o.state()],_e.prototype,"optionsDisplayed",void 0),Me([o.state()],_e.prototype,"focusOptions",void 0),Me([o.query(".ft-select")],_e.prototype,"container",void 0),Me([o.query(".ft-select--options")],_e.prototype,"optionsMenu",void 0),Me([o.query(".ft-select--input-panel")],_e.prototype,"mainPanel",void 0),Me([o.query(".ft-select--option:first-child")],_e.prototype,"firstOption",void 0),Me([o.query(".ft-select--option:focus")],_e.prototype,"focusedOption",void 0),Me([o.query(".ft-select--option.ft-select--option-selected")],_e.prototype,"selectedOptionElement",void 0),Me([o.query(".ft-select--option:last-child")],_e.prototype,"lastOption",void 0),Me([o.query("slot")],_e.prototype,"optionsSlot",void 0),e.customElement("ft-select")(_e),e.customElement("ft-select-option")(Be),t.FtSelect=_e,t.FtSelectCssVariables=Ie,t.FtSelectOption=Be,t.styles=De,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litRepeat,ftGlobals.litUnsafeHTML);
583
+ `}updated(t){super.updated(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1),t.has("optionsDisplayed")&&this.fixedMenuPosition&&this.hasOptionsMenuOpen&&this.positionOptionsMenu()}positionOptionsMenu(){this.optionsMenu.style.top=this.mainPanel.getBoundingClientRect().top+this.mainPanel.getBoundingClientRect().height+"px",this.optionsMenu.style.left=this.mainPanel.getBoundingClientRect().left+"px",this.optionsMenu.style.width=this.mainPanel.getBoundingClientRect().width+"px"}contentAvailableCallback(t){var e,i;t.has("focusOptions")&&this.focusOptions&&(null===(i=null!==(e=this.selectedOptionElement)&&void 0!==e?e:this.firstOption)||void 0===i||i.focus(),this.focusOptions=!1)}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var e;t.stopPropagation();let i=null===(e=this.optionsSlot)||void 0===e?void 0:e.assignedElements().map((t=>t));i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0}}onOptionsKeyDown(t){var e,i,o,s,l;let n;switch(t.key){case"Escape":this.optionsDisplayed=!1,null===(e=this.mainPanel)||void 0===e||e.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),n=null!==(o=null===(i=this.focusedOption)||void 0===i?void 0:i.previousElementSibling)&&void 0!==o?o:this.lastOption;break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),n=null!==(l=null===(s=this.focusedOption)||void 0===s?void 0:s.nextElementSibling)&&void 0!==l?l:this.firstOption}null==n||n.focus()}onOptionKeyDown(t,e){var i;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.selectOption(e),this.optionsDisplayed=!1,null===(i=this.mainPanel)||void 0===i||i.focus())}selectOption(t){var i,o;if(!e.deepEqual(null===(i=this.selectedOption)||void 0===i?void 0:i.value,t.value)){this.selectedOption=t;for(let e of this.options)e.selected=e===t;this.dispatchEvent(new CustomEvent("change",{detail:null===(o=this.selectedOption)||void 0===o?void 0:o.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}_e.elementDefinitions={"ft-input-label":ae,"ft-typography":le,"ft-ripple":we,"ft-icon":Ae},_e.styles=[Qt,Vt,De],Me([o.property({type:String})],_e.prototype,"label",void 0),Me([o.property({type:String})],_e.prototype,"helper",void 0),Me([o.property({type:Boolean})],_e.prototype,"outlined",void 0),Me([o.property({type:Boolean})],_e.prototype,"disabled",void 0),Me([o.property({type:Boolean})],_e.prototype,"error",void 0),Me([o.property({type:Boolean})],_e.prototype,"fixedMenuPosition",void 0),Me([o.property({type:Array})],_e.prototype,"options",void 0),Me([o.state()],_e.prototype,"selectedOption",void 0),Me([o.state()],_e.prototype,"optionsDisplayed",void 0),Me([o.state()],_e.prototype,"focusOptions",void 0),Me([o.query(".ft-select")],_e.prototype,"container",void 0),Me([o.query(".ft-select--options")],_e.prototype,"optionsMenu",void 0),Me([o.query(".ft-select--input-panel")],_e.prototype,"mainPanel",void 0),Me([o.query(".ft-select--option:first-child")],_e.prototype,"firstOption",void 0),Me([o.query(".ft-select--option:focus")],_e.prototype,"focusedOption",void 0),Me([o.query(".ft-select--option.ft-select--option-selected")],_e.prototype,"selectedOptionElement",void 0),Me([o.query(".ft-select--option:last-child")],_e.prototype,"lastOption",void 0),Me([o.query("slot")],_e.prototype,"optionsSlot",void 0),e.customElement("ft-select")(_e),e.customElement("ft-select-option")(Be),t.FtSelect=_e,t.FtSelectCssVariables=Ie,t.FtSelectOption=Be,t.styles=De,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litRepeat,ftGlobals.litUnsafeHTML);
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
16
16
  */
17
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,s=new WeakMap,n=new WeakMap,r=new WeakMap,l=new WeakMap;let a;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,s){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=s.prototype.attributeChangedCallback,a=new Set(s.observedAttributes||[]);f(s,a,l);const p={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,p),this._definitionsByClass.set(s,p);let c=i.call(o,t);c||(c=h(t),e.call(o,t,c)),this===window.customElements&&(r.set(s,p),p.standInClass=c);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,p,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){x.push(this),o.upgrade.apply(o,arguments),x.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=a;if(e)return a=void 0,e;const i=r.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),s.set(e,i),e},window.HTMLElement.prototype=t.prototype;const p=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!p(e)){const t=x[x.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),p(e)||(e=l.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=c(i)||window.customElements,s=o._getDefinition(e);return s?u(i,s):n.set(i,o),i}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){s.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,s){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,s),i.call(this,n,t,s)}else o.call(this,n,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);s.call(this,o),i.call(this,o,t,null)}else s.call(this,o)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),s.set(t,e),a=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let x=[document];const v=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){x.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&l.set(t,this),x.pop(),t}};v(ShadowRoot,"createElement",document),v(ShadowRoot,"importNode",document),v(Element,"insertAdjacentHTML");const b=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){x.push(this),i.set.call(this,t),x.pop()}})};if(b(Element,"innerHTML"),b(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==s.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),s=e.get(o)||[];this[+i]=t,s.push(t),e.set(o,s)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),e=[];for(const i of t){const t=s.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(fi){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){this.callbacks=[t],this.debounce(e)}queue(t,e){this.callbacks.push(t),this.debounce(e)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}
17
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,s=new WeakMap,n=new WeakMap,r=new WeakMap,l=new WeakMap;let a;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,s){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=s.prototype.attributeChangedCallback,a=new Set(s.observedAttributes||[]);f(s,a,l);const p={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,p),this._definitionsByClass.set(s,p);let c=i.call(o,t);c||(c=h(t),e.call(o,t,c)),this===window.customElements&&(r.set(s,p),p.standInClass=c);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,p,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){v.push(this),o.upgrade.apply(o,arguments),v.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=a;if(e)return a=void 0,e;const i=r.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),s.set(e,i),e},window.HTMLElement.prototype=t.prototype;const p=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!p(e)){const t=v[v.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),p(e)||(e=l.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=c(i)||window.customElements,s=o._getDefinition(e);return s?u(i,s):n.set(i,o),i}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){s.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,s){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,s),i.call(this,n,t,s)}else o.call(this,n,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);s.call(this,o),i.call(this,o,t,null)}else s.call(this,o)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),s.set(t,e),a=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let v=[document];const x=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){v.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&l.set(t,this),v.pop(),t}};x(ShadowRoot,"createElement",document),x(ShadowRoot,"importNode",document),x(Element,"insertAdjacentHTML");const b=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){v.push(this),i.set.call(this,t),v.pop()}})};if(b(Element,"innerHTML"),b(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==s.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),s=e.get(o)||[];this[+i]=t,s.push(t),e.set(o,s)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),e=[];for(const i of t){const t=s.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(di){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.reject()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,s=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){o(t)}s()}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}reject(){this.rejectPromise&&(this.rejectPromise(),this.clearPromise())}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
@@ -40,40 +40,39 @@ function n(t,e){return(({finisher:t,descriptor:e})=>(i,o)=>{var s;if(void 0===o)
40
40
  * @license
41
41
  * Copyright 2021 Google LLC
42
42
  * SPDX-License-Identifier: BSD-3-Clause
43
- */var r;null===(r=window.HTMLSlotElement)||void 0===r||r.prototype.assignedElements;const l=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};
43
+ */var r;null===(r=window.HTMLSlotElement)||void 0===r||r.prototype.assignedElements;const l=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function a(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var i,o,s;if(Array.isArray(t)){if((i=t.length)!=e.length)return!1;for(o=i;0!=o--;)if(!a(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;for(o of t.entries())if(!a(o[1],e.get(o[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((i=(s=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(o=i;0!=o--;)if(!Object.prototype.hasOwnProperty.call(e,s[o]))return!1;for(o=i;0!=o--;){var n=s[o];if(!a(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}
44
44
  /**
45
45
  * @license
46
46
  * Copyright 2019 Google LLC
47
47
  * SPDX-License-Identifier: BSD-3-Clause
48
- */
49
- const a=window,p=a.ShadowRoot&&(void 0===a.ShadyCSS||a.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,c=Symbol(),h=new WeakMap;class f{constructor(t,e,i){if(this._$cssResult$=!0,i!==c)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(p&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=h.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&h.set(e,t))}return t}toString(){return this.cssText}}const d=t=>new f("string"==typeof t?t:t+"",void 0,c),u=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new f(i,t,c)},y=(t,e)=>{p?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=a.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},x=p?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return d(e)})(t):t
48
+ */const p=window,c=p.ShadowRoot&&(void 0===p.ShadyCSS||p.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,h=Symbol(),f=new WeakMap;class d{constructor(t,e,i){if(this._$cssResult$=!0,i!==h)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(c&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=f.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&f.set(e,t))}return t}toString(){return this.cssText}}const u=t=>new d("string"==typeof t?t:t+"",void 0,h),y=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new d(i,t,h)},v=(t,e)=>{c?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=p.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},x=c?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return u(e)})(t):t
50
49
  /**
51
50
  * @license
52
51
  * Copyright 2017 Google LLC
53
52
  * SPDX-License-Identifier: BSD-3-Clause
54
- */;var v;const b=window,g=b.trustedTypes,m=g?g.emptyScript:"",$=b.reactiveElementPolyfillSupport,w={toAttribute(t,e){switch(e){case Boolean:t=t?m:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},O=(t,e)=>e!==t&&(e==e||t==t),S={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:O};class k extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;null!==(e=this.h)&&void 0!==e||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=S){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const s=this[t];this[e]=o,this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||S}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(x(t))}else void 0!==t&&e.push(x(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return y(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=S){var o;const s=this.constructor._$Ep(t,i);if(void 0!==s&&!0===i.reflect){const n=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:w).toAttribute(e,i.type);this._$El=t,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(t,e){var i;const o=this.constructor,s=o._$Ev.get(t);if(void 0!==s&&this._$El!==s){const t=o.getPropertyOptions(s),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:w;this._$El=s,this[s]=n.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||O)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
53
+ */;var b;const g=window,m=g.trustedTypes,w=m?m.emptyScript:"",$=g.reactiveElementPolyfillSupport,O={toAttribute(t,e){switch(e){case Boolean:t=t?w:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},S=(t,e)=>e!==t&&(e==e||t==t),k={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:S};class E extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;null!==(e=this.h)&&void 0!==e||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=k){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const s=this[t];this[e]=o,this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||k}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(x(t))}else void 0!==t&&e.push(x(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return v(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=k){var o;const s=this.constructor._$Ep(t,i);if(void 0!==s&&!0===i.reflect){const n=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:O).toAttribute(e,i.type);this._$El=t,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(t,e){var i;const o=this.constructor,s=o._$Ev.get(t);if(void 0!==s&&this._$El!==s){const t=o.getPropertyOptions(s),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:O;this._$El=s,this[s]=n.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||S)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
55
54
  /**
56
55
  * @license
57
56
  * Copyright 2017 Google LLC
58
57
  * SPDX-License-Identifier: BSD-3-Clause
59
58
  */
60
- var E;k.finalized=!0,k.elementProperties=new Map,k.elementStyles=[],k.shadowRootOptions={mode:"open"},null==$||$({ReactiveElement:k}),(null!==(v=b.reactiveElementVersions)&&void 0!==v?v:b.reactiveElementVersions=[]).push("1.4.1");const N=window,C=N.trustedTypes,R=C?C.createPolicy("lit-html",{createHTML:t=>t}):void 0,M=`lit$${(Math.random()+"").slice(9)}$`,U="?"+M,z=`<${U}>`,F=document,j=(t="")=>F.createComment(t),A=t=>null===t||"object"!=typeof t&&"function"!=typeof t,B=Array.isArray,D=t=>B(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),L=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,P=/-->/g,_=/>/g,T=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),I=/'/g,W=/"/g,H=/^(?:script|style|textarea|title)$/i,K=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),Z=Symbol.for("lit-noChange"),V=Symbol.for("lit-nothing"),J=new WeakMap,q=F.createTreeWalker(F,129,null,!1),X=(t,e)=>{const i=t.length-1,o=[];let s,n=2===e?"<svg>":"",r=L;for(let e=0;e<i;e++){const i=t[e];let l,a,p=-1,c=0;for(;c<i.length&&(r.lastIndex=c,a=r.exec(i),null!==a);)c=r.lastIndex,r===L?"!--"===a[1]?r=P:void 0!==a[1]?r=_:void 0!==a[2]?(H.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=T):void 0!==a[3]&&(r=T):r===T?">"===a[0]?(r=null!=s?s:L,p=-1):void 0===a[1]?p=-2:(p=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?T:'"'===a[3]?W:I):r===W||r===I?r=T:r===P||r===_?r=L:(r=T,s=void 0);const h=r===T&&t[e+1].startsWith("/>")?" ":"";n+=r===L?i+z:p>=0?(o.push(l),i.slice(0,p)+"$lit$"+i.slice(p)+M+h):i+M+(-2===p?(o.push(void 0),e):h)}const l=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==R?R.createHTML(l):l,o]};class Y{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,n=0;const r=t.length-1,l=this.parts,[a,p]=X(t,e);if(this.el=Y.createElement(a,i),q.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=q.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(M)){const i=p[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(M),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?it:"?"===e[1]?st:"@"===e[1]?nt:et})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(H.test(o.tagName)){const t=o.textContent.split(M),e=t.length-1;if(e>0){o.textContent=C?C.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],j()),q.nextNode(),l.push({type:2,index:++s});o.append(t[e],j())}}}else if(8===o.nodeType)if(o.data===U)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(M,t+1));)l.push({type:7,index:s}),t+=M.length-1}s++}}static createElement(t,e){const i=F.createElement("template");return i.innerHTML=t,i}}function G(t,e,i=t,o){var s,n,r,l;if(e===Z)return e;let a=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const p=A(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(n=null==a?void 0:a._$AO)||void 0===n||n.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,i,o)),void 0!==o?(null!==(r=(l=i)._$Co)&&void 0!==r?r:l._$Co=[])[o]=a:i._$Cl=a),void 0!==a&&(e=G(t,a._$AS(t,e.values),a,o)),e}class Q{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:F).importNode(i,!0);q.currentNode=s;let n=q.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new tt(n,n.nextSibling,this,t):1===a.type?e=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(e=new rt(n,this,t)),this.u.push(e),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=q.nextNode(),r++)}return s}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class tt{constructor(t,e,i,o){var s;this.type=2,this._$AH=V,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=G(this,t,e),A(t)?t===V||null==t||""===t?(this._$AH!==V&&this._$AR(),this._$AH=V):t!==this._$AH&&t!==Z&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):D(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==V&&A(this._$AH)?this._$AA.nextSibling.data=t:this.T(F.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Y.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.p(i);else{const t=new Q(s,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=J.get(t.strings);return void 0===e&&J.set(t.strings,e=new Y(t)),e}k(t){B(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new tt(this.O(j()),this.O(j()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class et{constructor(t,e,i,o,s){this.type=1,this._$AH=V,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=V}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let n=!1;if(void 0===s)t=G(this,t,e,0),n=!A(t)||t!==this._$AH&&t!==Z,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=G(this,o[i+r],e,r),l===Z&&(l=this._$AH[r]),n||(n=!A(l)||l!==this._$AH[r]),l===V?t=V:t!==V&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.j(t)}j(t){t===V?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class it extends et{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===V?void 0:t}}const ot=C?C.emptyScript:"";class st extends et{constructor(){super(...arguments),this.type=4}j(t){t&&t!==V?this.element.setAttribute(this.name,ot):this.element.removeAttribute(this.name)}}class nt extends et{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=G(this,t,e,0))&&void 0!==i?i:V)===Z)return;const o=this._$AH,s=t===V&&o!==V||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==V&&(o===V||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class rt{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){G(this,t)}}const lt={P:"$lit$",A:M,M:U,C:1,L:X,R:Q,D,V:G,I:tt,H:et,N:st,U:nt,B:it,F:rt},at=N.litHtmlPolyfillSupport;null==at||at(Y,tt),(null!==(E=N.litHtmlVersions)&&void 0!==E?E:N.litHtmlVersions=[]).push("2.4.0");
59
+ var N;E.finalized=!0,E.elementProperties=new Map,E.elementStyles=[],E.shadowRootOptions={mode:"open"},null==$||$({ReactiveElement:E}),(null!==(b=g.reactiveElementVersions)&&void 0!==b?b:g.reactiveElementVersions=[]).push("1.4.1");const C=window,M=C.trustedTypes,R=M?M.createPolicy("lit-html",{createHTML:t=>t}):void 0,U=`lit$${(Math.random()+"").slice(9)}$`,z="?"+U,j=`<${z}>`,F=document,A=(t="")=>F.createComment(t),B=t=>null===t||"object"!=typeof t&&"function"!=typeof t,D=Array.isArray,P=t=>D(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),L=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,T=/>/g,I=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),W=/'/g,H=/"/g,K=/^(?:script|style|textarea|title)$/i,Z=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),V=Symbol.for("lit-noChange"),J=Symbol.for("lit-nothing"),q=new WeakMap,X=F.createTreeWalker(F,129,null,!1),Y=(t,e)=>{const i=t.length-1,o=[];let s,n=2===e?"<svg>":"",r=L;for(let e=0;e<i;e++){const i=t[e];let l,a,p=-1,c=0;for(;c<i.length&&(r.lastIndex=c,a=r.exec(i),null!==a);)c=r.lastIndex,r===L?"!--"===a[1]?r=_:void 0!==a[1]?r=T:void 0!==a[2]?(K.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=I):void 0!==a[3]&&(r=I):r===I?">"===a[0]?(r=null!=s?s:L,p=-1):void 0===a[1]?p=-2:(p=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?I:'"'===a[3]?H:W):r===H||r===W?r=I:r===_||r===T?r=L:(r=I,s=void 0);const h=r===I&&t[e+1].startsWith("/>")?" ":"";n+=r===L?i+j:p>=0?(o.push(l),i.slice(0,p)+"$lit$"+i.slice(p)+U+h):i+U+(-2===p?(o.push(void 0),e):h)}const l=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==R?R.createHTML(l):l,o]};class G{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,n=0;const r=t.length-1,l=this.parts,[a,p]=Y(t,e);if(this.el=G.createElement(a,i),X.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=X.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(U)){const i=p[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(U),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?ot:"?"===e[1]?nt:"@"===e[1]?rt:it})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(K.test(o.tagName)){const t=o.textContent.split(U),e=t.length-1;if(e>0){o.textContent=M?M.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],A()),X.nextNode(),l.push({type:2,index:++s});o.append(t[e],A())}}}else if(8===o.nodeType)if(o.data===z)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(U,t+1));)l.push({type:7,index:s}),t+=U.length-1}s++}}static createElement(t,e){const i=F.createElement("template");return i.innerHTML=t,i}}function Q(t,e,i=t,o){var s,n,r,l;if(e===V)return e;let a=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const p=B(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(n=null==a?void 0:a._$AO)||void 0===n||n.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,i,o)),void 0!==o?(null!==(r=(l=i)._$Co)&&void 0!==r?r:l._$Co=[])[o]=a:i._$Cl=a),void 0!==a&&(e=Q(t,a._$AS(t,e.values),a,o)),e}class tt{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:F).importNode(i,!0);X.currentNode=s;let n=X.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new et(n,n.nextSibling,this,t):1===a.type?e=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(e=new lt(n,this,t)),this.u.push(e),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=X.nextNode(),r++)}return s}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class et{constructor(t,e,i,o){var s;this.type=2,this._$AH=J,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Q(this,t,e),B(t)?t===J||null==t||""===t?(this._$AH!==J&&this._$AR(),this._$AH=J):t!==this._$AH&&t!==V&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):P(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==J&&B(this._$AH)?this._$AA.nextSibling.data=t:this.T(F.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=G.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.p(i);else{const t=new tt(s,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=q.get(t.strings);return void 0===e&&q.set(t.strings,e=new G(t)),e}k(t){D(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new et(this.O(A()),this.O(A()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class it{constructor(t,e,i,o,s){this.type=1,this._$AH=J,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=J}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let n=!1;if(void 0===s)t=Q(this,t,e,0),n=!B(t)||t!==this._$AH&&t!==V,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=Q(this,o[i+r],e,r),l===V&&(l=this._$AH[r]),n||(n=!B(l)||l!==this._$AH[r]),l===J?t=J:t!==J&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.j(t)}j(t){t===J?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class ot extends it{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===J?void 0:t}}const st=M?M.emptyScript:"";class nt extends it{constructor(){super(...arguments),this.type=4}j(t){t&&t!==J?this.element.setAttribute(this.name,st):this.element.removeAttribute(this.name)}}class rt extends it{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=Q(this,t,e,0))&&void 0!==i?i:J)===V)return;const o=this._$AH,s=t===J&&o!==J||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==J&&(o===J||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class lt{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Q(this,t)}}const at={P:"$lit$",A:U,M:z,C:1,L:Y,R:tt,D:P,V:Q,I:et,H:it,N:nt,U:rt,B:ot,F:lt},pt=C.litHtmlPolyfillSupport;null==pt||pt(G,et),(null!==(N=C.litHtmlVersions)&&void 0!==N?N:C.litHtmlVersions=[]).push("2.4.0");
61
60
  /**
62
61
  * @license
63
62
  * Copyright 2017 Google LLC
64
63
  * SPDX-License-Identifier: BSD-3-Clause
65
64
  */
66
- var pt,ct;class ht extends k{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,s;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let r=n._$litPart$;if(void 0===r){const t=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new tt(e.insertBefore(j(),t),t,void 0,null!=i?i:{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return Z}}ht.finalized=!0,ht._$litElement$=!0,null===(pt=globalThis.litElementHydrateSupport)||void 0===pt||pt.call(globalThis,{LitElement:ht});const ft=globalThis.litElementPolyfillSupport;null==ft||ft({LitElement:ht}),(null!==(ct=globalThis.litElementVersions)&&void 0!==ct?ct:globalThis.litElementVersions=[]).push("3.2.2");class dt{static create(t,e,i){let o=t=>d(null!=t?t:i),s=u`var(${d(t)}, ${o(i)})`;return s.name=t,s.category=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>u`var(${d(t)}, ${o(e)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),s=u`var(${d(t)}, ${o(i)})`;return s.name=t,s.category=e.category,s.fallbackVariable=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>u`var(${d(t)}, ${o(e)})`,s.breadcrumb=()=>[e.name,...e.breadcrumb()],s.lastResortDefaultValue=()=>i,s}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):d(null!=e?e:t.defaultValue),o=u`var(${d(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>u`var(${d(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}function ut(t,e){return d(`${t.name}: ${e}`)}const yt={colorPrimary:dt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:dt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:dt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:dt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:dt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:dt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:dt.create("--ft-color-error","COLOR","#B00020"),colorOutline:dt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:dt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:dt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:dt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:dt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:dt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:dt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:dt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:dt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:dt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:dt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:dt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:dt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:dt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:dt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:dt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:dt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:dt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:dt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:dt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:dt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:dt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:dt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:dt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:dt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:dt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:dt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:dt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:dt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:dt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:dt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:dt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:dt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:dt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:dt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:dt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:dt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:dt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:dt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:dt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:dt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:dt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:dt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:dt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:dt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:dt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:dt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:dt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:dt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:dt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:dt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:dt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:dt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:dt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:dt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
65
+ var ct,ht;class ft extends E{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,s;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let r=n._$litPart$;if(void 0===r){const t=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new et(e.insertBefore(A(),t),t,void 0,null!=i?i:{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return V}}ft.finalized=!0,ft._$litElement$=!0,null===(ct=globalThis.litElementHydrateSupport)||void 0===ct||ct.call(globalThis,{LitElement:ft});const dt=globalThis.litElementPolyfillSupport;null==dt||dt({LitElement:ft}),(null!==(ht=globalThis.litElementVersions)&&void 0!==ht?ht:globalThis.litElementVersions=[]).push("3.2.2");class ut{static create(t,e,i){let o=t=>u(null!=t?t:i),s=y`var(${u(t)}, ${o(i)})`;return s.name=t,s.category=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>y`var(${u(t)}, ${o(e)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),s=y`var(${u(t)}, ${o(i)})`;return s.name=t,s.category=e.category,s.fallbackVariable=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>y`var(${u(t)}, ${o(e)})`,s.breadcrumb=()=>[e.name,...e.breadcrumb()],s.lastResortDefaultValue=()=>i,s}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):u(null!=e?e:t.defaultValue),o=y`var(${u(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>y`var(${u(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}function yt(t,e){return u(`${t.name}: ${e}`)}const vt={colorPrimary:ut.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:ut.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:ut.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:ut.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:ut.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:ut.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:ut.create("--ft-color-error","COLOR","#B00020"),colorOutline:ut.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:ut.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:ut.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:ut.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:ut.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:ut.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:ut.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:ut.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:ut.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:ut.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:ut.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:ut.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:ut.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:ut.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:ut.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:ut.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:ut.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:ut.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:ut.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:ut.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:ut.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:ut.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:ut.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:ut.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:ut.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:ut.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:ut.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:ut.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:ut.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:ut.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:ut.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:ut.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:ut.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:ut.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:ut.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:ut.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:ut.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:ut.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:ut.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:ut.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:ut.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:ut.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:ut.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:ut.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:ut.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:ut.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:ut.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:ut.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:ut.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:ut.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:ut.create("--ft-border-radius-XL","SIZE","16px"),titleFont:ut.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:ut.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:ut.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:ut.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
67
66
  /**
68
67
  * @license
69
68
  * Copyright 2021 Google LLC
70
69
  * SPDX-License-Identifier: BSD-3-Clause
71
- */var xt,vt,bt=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class gt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const s=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return y(s,this.constructor.elementStyles),s}}}(ht)){constructor(){super(...arguments),this.exportpartsDebouncer=new e(5)}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),K`
72
- ${t.map((t=>K`
70
+ */var xt,bt,gt=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class mt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const s=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return v(s,this.constructor.elementStyles),s}}}(ft)){constructor(){super(),this.exportpartsDebouncer=new e(5),this.constructorName=this.constructor.name,this.constructorPrototype=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this.constructorName&&Object.setPrototypeOf(this,this.constructorPrototype)}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),Z`
71
+ ${t.map((t=>Z`
73
72
  <style>${t}</style>
74
73
  `))}
75
74
  ${this.getTemplate()}
76
- `}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){}scheduleExportpartsUpdate(){this.exportpartsDebouncer.run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,s,n,r;const l=t=>null!=t&&t.trim().length>0,a=t.filter(l).map((t=>t.trim()));if(0===a.length)return void this.removeAttribute("exportparts");const p=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(s=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==s?s:[],i=null!==(r=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];new Array(...e,...i).filter(l).map((t=>t.trim())).forEach((t=>p.add(t)))}if(0===p.size)return void this.removeAttribute("exportparts");const c=[...p.values()].flatMap((t=>a.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}}bt([o()],gt.prototype,"exportpartsPrefix",void 0),bt([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},...null!=e?e:{}})}([])],gt.prototype,"exportpartsPrefixes",void 0),u`
75
+ `}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){}scheduleExportpartsUpdate(){this.exportpartsDebouncer.run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,s,n,r;const l=t=>null!=t&&t.trim().length>0,a=t.filter(l).map((t=>t.trim()));if(0===a.length)return void this.removeAttribute("exportparts");const p=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(s=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==s?s:[],i=null!==(r=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];new Array(...e,...i).filter(l).map((t=>t.trim())).forEach((t=>p.add(t)))}if(0===p.size)return void this.removeAttribute("exportparts");const c=[...p.values()].flatMap((t=>a.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}}gt([o()],mt.prototype,"exportpartsPrefix",void 0),gt([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},...null!=e?e:{}})}([])],mt.prototype,"exportpartsPrefixes",void 0),y`
77
76
  .ft-no-text-select {
78
77
  -webkit-touch-callout: none;
79
78
  -webkit-user-select: none;
@@ -82,7 +81,7 @@ var pt,ct;class ht extends k{constructor(){super(...arguments),this.renderOption
82
81
  -ms-user-select: none;
83
82
  user-select: none;
84
83
  }
85
- `,u`
84
+ `,y`
86
85
  .ft-word-wrap {
87
86
  white-space: normal;
88
87
  word-wrap: break-word;
@@ -94,143 +93,143 @@ var pt,ct;class ht extends k{constructor(){super(...arguments),this.renderOption
94
93
  -webkit-hyphens: auto;
95
94
  hyphens: auto
96
95
  }
97
- `,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(vt=null===(xt=window.safari)||void 0===xt?void 0:xt.pushNotification)||void 0===vt||vt.toString());
96
+ `,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(bt=null===(xt=window.safari)||void 0===xt?void 0:xt.pushNotification)||void 0===bt||bt.toString());
98
97
  /**
99
98
  * @license
100
99
  * Copyright 2017 Google LLC
101
100
  * SPDX-License-Identifier: BSD-3-Clause
102
101
  */
103
- const mt=1,$t=2,wt=t=>(...e)=>({_$litDirective$:t,values:e});class Ot{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
102
+ const wt=1,$t=2,Ot=t=>(...e)=>({_$litDirective$:t,values:e});class St{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
104
103
  /**
105
104
  * @license
106
105
  * Copyright 2018 Google LLC
107
106
  * SPDX-License-Identifier: BSD-3-Clause
108
- */const St=wt(class extends Ot{constructor(t){var e;if(super(t),t.type!==mt||"class"!==t.name||(null===(e=t.strings)||void 0===e?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(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const s=t.element.classList;this.nt.forEach((t=>{t in e||(s.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(s.add(t),this.nt.add(t)):(s.remove(t),this.nt.delete(t)))}return Z}}),{I:kt}=lt,Et=()=>document.createComment(""),Nt=(t,e,i)=>{var o;const s=t._$AA.parentNode,n=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=s.insertBefore(Et(),n),o=s.insertBefore(Et(),n);i=new kt(e,o,t,t.options)}else{const e=i._$AB.nextSibling,r=i._$AM,l=r!==t;if(l){let e;null===(o=i._$AQ)||void 0===o||o.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==r._$AU&&i._$AP(e)}if(e!==n||l){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;s.insertBefore(t,n),t=e}}}return i},Ct=(t,e,i=t)=>(t._$AI(e,i),t),Rt={},Mt=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const o=t._$AB.nextSibling;for(;i!==o;){const t=i.nextSibling;i.remove(),i=t}},Ut=(t,e,i)=>{const o=new Map;for(let s=e;s<=i;s++)o.set(t[s],s);return o},zt=wt(class extends Ot{constructor(t){if(super(t),t.type!==$t)throw Error("repeat() can only be used in text expressions")}ht(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const s=[],n=[];let r=0;for(const e of t)s[r]=o?o(e,r):r,n[r]=i(e,r),r++;return{values:n,keys:s}}render(t,e,i){return this.ht(t,e,i).values}update(t,[e,i,o]){var s;const n=(t=>t._$AH)(t),{values:r,keys:l}=this.ht(e,i,o);if(!Array.isArray(n))return this.ut=l,r;const a=null!==(s=this.ut)&&void 0!==s?s:this.ut=[],p=[];let c,h,f=0,d=n.length-1,u=0,y=r.length-1;for(;f<=d&&u<=y;)if(null===n[f])f++;else if(null===n[d])d--;else if(a[f]===l[u])p[u]=Ct(n[f],r[u]),f++,u++;else if(a[d]===l[y])p[y]=Ct(n[d],r[y]),d--,y--;else if(a[f]===l[y])p[y]=Ct(n[f],r[y]),Nt(t,p[y+1],n[f]),f++,y--;else if(a[d]===l[u])p[u]=Ct(n[d],r[u]),Nt(t,n[f],n[d]),d--,u++;else if(void 0===c&&(c=Ut(l,u,y),h=Ut(a,f,d)),c.has(a[f]))if(c.has(a[d])){const e=h.get(l[u]),i=void 0!==e?n[e]:null;if(null===i){const e=Nt(t,n[f]);Ct(e,r[u]),p[u]=e}else p[u]=Ct(i,r[u]),Nt(t,n[f],i),n[e]=null;u++}else Mt(n[d]),d--;else Mt(n[f]),f++;for(;u<=y;){const e=Nt(t,p[y+1]);Ct(e,r[u]),p[u++]=e}for(;f<=d;){const t=n[f++];null!==t&&Mt(t)}return this.ut=l,((t,e=Rt)=>{t._$AH=e})(t,p),Z}}),Ft=Symbol.for(""),jt=t=>{if((null==t?void 0:t.r)===Ft)return null==t?void 0:t._$litStatic$},At=t=>({_$litStatic$:t,r:Ft}),Bt=new Map,Dt=(t=>(e,...i)=>{const o=i.length;let s,n;const r=[],l=[];let a,p=0,c=!1;for(;p<o;){for(a=e[p];p<o&&void 0!==(n=i[p],s=jt(n));)a+=s+e[++p],c=!0;l.push(n),r.push(a),p++}if(p===o&&r.push(e[o]),c){const t=r.join("$$lit$$");void 0===(e=Bt.get(t))&&(r.raw=r,Bt.set(t,e=r)),i=l}return t(e,...i)})(K);
107
+ */const kt=Ot(class extends St{constructor(t){var e;if(super(t),t.type!==wt||"class"!==t.name||(null===(e=t.strings)||void 0===e?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(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const s=t.element.classList;this.nt.forEach((t=>{t in e||(s.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(s.add(t),this.nt.add(t)):(s.remove(t),this.nt.delete(t)))}return V}}),{I:Et}=at,Nt=()=>document.createComment(""),Ct=(t,e,i)=>{var o;const s=t._$AA.parentNode,n=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=s.insertBefore(Nt(),n),o=s.insertBefore(Nt(),n);i=new Et(e,o,t,t.options)}else{const e=i._$AB.nextSibling,r=i._$AM,l=r!==t;if(l){let e;null===(o=i._$AQ)||void 0===o||o.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==r._$AU&&i._$AP(e)}if(e!==n||l){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;s.insertBefore(t,n),t=e}}}return i},Mt=(t,e,i=t)=>(t._$AI(e,i),t),Rt={},Ut=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const o=t._$AB.nextSibling;for(;i!==o;){const t=i.nextSibling;i.remove(),i=t}},zt=(t,e,i)=>{const o=new Map;for(let s=e;s<=i;s++)o.set(t[s],s);return o},jt=Ot(class extends St{constructor(t){if(super(t),t.type!==$t)throw Error("repeat() can only be used in text expressions")}ht(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const s=[],n=[];let r=0;for(const e of t)s[r]=o?o(e,r):r,n[r]=i(e,r),r++;return{values:n,keys:s}}render(t,e,i){return this.ht(t,e,i).values}update(t,[e,i,o]){var s;const n=(t=>t._$AH)(t),{values:r,keys:l}=this.ht(e,i,o);if(!Array.isArray(n))return this.ut=l,r;const a=null!==(s=this.ut)&&void 0!==s?s:this.ut=[],p=[];let c,h,f=0,d=n.length-1,u=0,y=r.length-1;for(;f<=d&&u<=y;)if(null===n[f])f++;else if(null===n[d])d--;else if(a[f]===l[u])p[u]=Mt(n[f],r[u]),f++,u++;else if(a[d]===l[y])p[y]=Mt(n[d],r[y]),d--,y--;else if(a[f]===l[y])p[y]=Mt(n[f],r[y]),Ct(t,p[y+1],n[f]),f++,y--;else if(a[d]===l[u])p[u]=Mt(n[d],r[u]),Ct(t,n[f],n[d]),d--,u++;else if(void 0===c&&(c=zt(l,u,y),h=zt(a,f,d)),c.has(a[f]))if(c.has(a[d])){const e=h.get(l[u]),i=void 0!==e?n[e]:null;if(null===i){const e=Ct(t,n[f]);Mt(e,r[u]),p[u]=e}else p[u]=Mt(i,r[u]),Ct(t,n[f],i),n[e]=null;u++}else Ut(n[d]),d--;else Ut(n[f]),f++;for(;u<=y;){const e=Ct(t,p[y+1]);Mt(e,r[u]),p[u++]=e}for(;f<=d;){const t=n[f++];null!==t&&Ut(t)}return this.ut=l,((t,e=Rt)=>{t._$AH=e})(t,p),V}}),Ft=Symbol.for(""),At=t=>{if((null==t?void 0:t.r)===Ft)return null==t?void 0:t._$litStatic$},Bt=t=>({_$litStatic$:t,r:Ft}),Dt=new Map,Pt=(t=>(e,...i)=>{const o=i.length;let s,n;const r=[],l=[];let a,p=0,c=!1;for(;p<o;){for(a=e[p];p<o&&void 0!==(n=i[p],s=At(n));)a+=s+e[++p],c=!0;l.push(n),r.push(a),p++}if(p===o&&r.push(e[o]),c){const t=r.join("$$lit$$");void 0===(e=Dt.get(t))&&(r.raw=r,Dt.set(t,e=r)),i=l}return t(e,...i)})(Z);
109
108
  /**
110
109
  * @license
111
110
  * Copyright 2020 Google LLC
112
111
  * SPDX-License-Identifier: BSD-3-Clause
113
- */var Lt;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(Lt||(Lt={}));const Pt=dt.extend("--ft-typography-font-family",yt.titleFont),_t=dt.extend("--ft-typography-font-family",yt.contentFont),Tt={fontFamily:_t,fontSize:dt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:dt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:dt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:dt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:dt.create("--ft-typography-text-transform","UNKNOWN","inherit")},It=dt.extend("--ft-typography-title-font-family",Pt),Wt=dt.extend("--ft-typography-title-font-size",Tt.fontSize,"20px"),Ht=dt.extend("--ft-typography-title-font-weight",Tt.fontWeight,"normal"),Kt=dt.extend("--ft-typography-title-letter-spacing",Tt.letterSpacing,"0.15px"),Zt=dt.extend("--ft-typography-title-line-height",Tt.lineHeight,"1.2"),Vt=dt.extend("--ft-typography-title-text-transform",Tt.textTransform,"inherit"),Jt=dt.extend("--ft-typography-title-dense-font-family",Pt),qt=dt.extend("--ft-typography-title-dense-font-size",Tt.fontSize,"14px"),Xt=dt.extend("--ft-typography-title-dense-font-weight",Tt.fontWeight,"normal"),Yt=dt.extend("--ft-typography-title-dense-letter-spacing",Tt.letterSpacing,"0.105px"),Gt=dt.extend("--ft-typography-title-dense-line-height",Tt.lineHeight,"1.7"),Qt=dt.extend("--ft-typography-title-dense-text-transform",Tt.textTransform,"inherit"),te=dt.extend("--ft-typography-subtitle1-font-family",_t),ee=dt.extend("--ft-typography-subtitle1-font-size",Tt.fontSize,"16px"),ie=dt.extend("--ft-typography-subtitle1-font-weight",Tt.fontWeight,"600"),oe=dt.extend("--ft-typography-subtitle1-letter-spacing",Tt.letterSpacing,"0.144px"),se=dt.extend("--ft-typography-subtitle1-line-height",Tt.lineHeight,"1.5"),ne=dt.extend("--ft-typography-subtitle1-text-transform",Tt.textTransform,"inherit"),re=dt.extend("--ft-typography-subtitle2-font-family",_t),le=dt.extend("--ft-typography-subtitle2-font-size",Tt.fontSize,"14px"),ae=dt.extend("--ft-typography-subtitle2-font-weight",Tt.fontWeight,"normal"),pe=dt.extend("--ft-typography-subtitle2-letter-spacing",Tt.letterSpacing,"0.098px"),ce=dt.extend("--ft-typography-subtitle2-line-height",Tt.lineHeight,"1.7"),he=dt.extend("--ft-typography-subtitle2-text-transform",Tt.textTransform,"inherit"),fe={fontFamily:dt.extend("--ft-typography-body1-font-family",_t),fontSize:dt.extend("--ft-typography-body1-font-size",Tt.fontSize,"16px"),fontWeight:dt.extend("--ft-typography-body1-font-weight",Tt.fontWeight,"normal"),letterSpacing:dt.extend("--ft-typography-body1-letter-spacing",Tt.letterSpacing,"0.496px"),lineHeight:dt.extend("--ft-typography-body1-line-height",Tt.lineHeight,"1.5"),textTransform:dt.extend("--ft-typography-body1-text-transform",Tt.textTransform,"inherit")},de=dt.extend("--ft-typography-body2-font-family",_t),ue=dt.extend("--ft-typography-body2-font-size",Tt.fontSize,"14px"),ye=dt.extend("--ft-typography-body2-font-weight",Tt.fontWeight,"normal"),xe=dt.extend("--ft-typography-body2-letter-spacing",Tt.letterSpacing,"0.252px"),ve=dt.extend("--ft-typography-body2-line-height",Tt.lineHeight,"1.4"),be=dt.extend("--ft-typography-body2-text-transform",Tt.textTransform,"inherit"),ge={fontFamily:dt.extend("--ft-typography-caption-font-family",_t),fontSize:dt.extend("--ft-typography-caption-font-size",Tt.fontSize,"12px"),fontWeight:dt.extend("--ft-typography-caption-font-weight",Tt.fontWeight,"normal"),letterSpacing:dt.extend("--ft-typography-caption-letter-spacing",Tt.letterSpacing,"0.396px"),lineHeight:dt.extend("--ft-typography-caption-line-height",Tt.lineHeight,"1.33"),textTransform:dt.extend("--ft-typography-caption-text-transform",Tt.textTransform,"inherit")},me=dt.extend("--ft-typography-breadcrumb-font-family",_t),$e=dt.extend("--ft-typography-breadcrumb-font-size",Tt.fontSize,"10px"),we=dt.extend("--ft-typography-breadcrumb-font-weight",Tt.fontWeight,"normal"),Oe=dt.extend("--ft-typography-breadcrumb-letter-spacing",Tt.letterSpacing,"0.33px"),Se=dt.extend("--ft-typography-breadcrumb-line-height",Tt.lineHeight,"1.6"),ke=dt.extend("--ft-typography-breadcrumb-text-transform",Tt.textTransform,"inherit"),Ee=dt.extend("--ft-typography-overline-font-family",_t),Ne=dt.extend("--ft-typography-overline-font-size",Tt.fontSize,"10px"),Ce=dt.extend("--ft-typography-overline-font-weight",Tt.fontWeight,"normal"),Re=dt.extend("--ft-typography-overline-letter-spacing",Tt.letterSpacing,"1.5px"),Me=dt.extend("--ft-typography-overline-line-height",Tt.lineHeight,"1.6"),Ue=dt.extend("--ft-typography-overline-text-transform",Tt.textTransform,"uppercase"),ze=dt.extend("--ft-typography-button-font-family",_t),Fe=dt.extend("--ft-typography-button-font-size",Tt.fontSize,"14px"),je=dt.extend("--ft-typography-button-font-weight",Tt.fontWeight,"600"),Ae=dt.extend("--ft-typography-button-letter-spacing",Tt.letterSpacing,"1.246px"),Be=dt.extend("--ft-typography-button-line-height",Tt.lineHeight,"1.15"),De=dt.extend("--ft-typography-button-text-transform",Tt.textTransform,"uppercase"),Le=u`
112
+ */var Lt;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(Lt||(Lt={}));const _t=ut.extend("--ft-typography-font-family",vt.titleFont),Tt=ut.extend("--ft-typography-font-family",vt.contentFont),It={fontFamily:Tt,fontSize:ut.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ut.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ut.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ut.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ut.create("--ft-typography-text-transform","UNKNOWN","inherit")},Wt=ut.extend("--ft-typography-title-font-family",_t),Ht=ut.extend("--ft-typography-title-font-size",It.fontSize,"20px"),Kt=ut.extend("--ft-typography-title-font-weight",It.fontWeight,"normal"),Zt=ut.extend("--ft-typography-title-letter-spacing",It.letterSpacing,"0.15px"),Vt=ut.extend("--ft-typography-title-line-height",It.lineHeight,"1.2"),Jt=ut.extend("--ft-typography-title-text-transform",It.textTransform,"inherit"),qt=ut.extend("--ft-typography-title-dense-font-family",_t),Xt=ut.extend("--ft-typography-title-dense-font-size",It.fontSize,"14px"),Yt=ut.extend("--ft-typography-title-dense-font-weight",It.fontWeight,"normal"),Gt=ut.extend("--ft-typography-title-dense-letter-spacing",It.letterSpacing,"0.105px"),Qt=ut.extend("--ft-typography-title-dense-line-height",It.lineHeight,"1.7"),te=ut.extend("--ft-typography-title-dense-text-transform",It.textTransform,"inherit"),ee=ut.extend("--ft-typography-subtitle1-font-family",Tt),ie=ut.extend("--ft-typography-subtitle1-font-size",It.fontSize,"16px"),oe=ut.extend("--ft-typography-subtitle1-font-weight",It.fontWeight,"600"),se=ut.extend("--ft-typography-subtitle1-letter-spacing",It.letterSpacing,"0.144px"),ne=ut.extend("--ft-typography-subtitle1-line-height",It.lineHeight,"1.5"),re=ut.extend("--ft-typography-subtitle1-text-transform",It.textTransform,"inherit"),le=ut.extend("--ft-typography-subtitle2-font-family",Tt),ae=ut.extend("--ft-typography-subtitle2-font-size",It.fontSize,"14px"),pe=ut.extend("--ft-typography-subtitle2-font-weight",It.fontWeight,"normal"),ce=ut.extend("--ft-typography-subtitle2-letter-spacing",It.letterSpacing,"0.098px"),he=ut.extend("--ft-typography-subtitle2-line-height",It.lineHeight,"1.7"),fe=ut.extend("--ft-typography-subtitle2-text-transform",It.textTransform,"inherit"),de={fontFamily:ut.extend("--ft-typography-body1-font-family",Tt),fontSize:ut.extend("--ft-typography-body1-font-size",It.fontSize,"16px"),fontWeight:ut.extend("--ft-typography-body1-font-weight",It.fontWeight,"normal"),letterSpacing:ut.extend("--ft-typography-body1-letter-spacing",It.letterSpacing,"0.496px"),lineHeight:ut.extend("--ft-typography-body1-line-height",It.lineHeight,"1.5"),textTransform:ut.extend("--ft-typography-body1-text-transform",It.textTransform,"inherit")},ue=ut.extend("--ft-typography-body2-font-family",Tt),ye=ut.extend("--ft-typography-body2-font-size",It.fontSize,"14px"),ve=ut.extend("--ft-typography-body2-font-weight",It.fontWeight,"normal"),xe=ut.extend("--ft-typography-body2-letter-spacing",It.letterSpacing,"0.252px"),be=ut.extend("--ft-typography-body2-line-height",It.lineHeight,"1.4"),ge=ut.extend("--ft-typography-body2-text-transform",It.textTransform,"inherit"),me={fontFamily:ut.extend("--ft-typography-caption-font-family",Tt),fontSize:ut.extend("--ft-typography-caption-font-size",It.fontSize,"12px"),fontWeight:ut.extend("--ft-typography-caption-font-weight",It.fontWeight,"normal"),letterSpacing:ut.extend("--ft-typography-caption-letter-spacing",It.letterSpacing,"0.396px"),lineHeight:ut.extend("--ft-typography-caption-line-height",It.lineHeight,"1.33"),textTransform:ut.extend("--ft-typography-caption-text-transform",It.textTransform,"inherit")},we=ut.extend("--ft-typography-breadcrumb-font-family",Tt),$e=ut.extend("--ft-typography-breadcrumb-font-size",It.fontSize,"10px"),Oe=ut.extend("--ft-typography-breadcrumb-font-weight",It.fontWeight,"normal"),Se=ut.extend("--ft-typography-breadcrumb-letter-spacing",It.letterSpacing,"0.33px"),ke=ut.extend("--ft-typography-breadcrumb-line-height",It.lineHeight,"1.6"),Ee=ut.extend("--ft-typography-breadcrumb-text-transform",It.textTransform,"inherit"),Ne=ut.extend("--ft-typography-overline-font-family",Tt),Ce=ut.extend("--ft-typography-overline-font-size",It.fontSize,"10px"),Me=ut.extend("--ft-typography-overline-font-weight",It.fontWeight,"normal"),Re=ut.extend("--ft-typography-overline-letter-spacing",It.letterSpacing,"1.5px"),Ue=ut.extend("--ft-typography-overline-line-height",It.lineHeight,"1.6"),ze=ut.extend("--ft-typography-overline-text-transform",It.textTransform,"uppercase"),je=ut.extend("--ft-typography-button-font-family",Tt),Fe=ut.extend("--ft-typography-button-font-size",It.fontSize,"14px"),Ae=ut.extend("--ft-typography-button-font-weight",It.fontWeight,"600"),Be=ut.extend("--ft-typography-button-letter-spacing",It.letterSpacing,"1.246px"),De=ut.extend("--ft-typography-button-line-height",It.lineHeight,"1.15"),Pe=ut.extend("--ft-typography-button-text-transform",It.textTransform,"uppercase"),Le=y`
114
113
  .ft-typography--title {
115
- font-family: ${It};
116
- font-size: ${Wt};
117
- font-weight: ${Ht};
118
- letter-spacing: ${Kt};
119
- line-height: ${Zt};
120
- text-transform: ${Vt};
121
- }
122
- `,Pe=u`
114
+ font-family: ${Wt};
115
+ font-size: ${Ht};
116
+ font-weight: ${Kt};
117
+ letter-spacing: ${Zt};
118
+ line-height: ${Vt};
119
+ text-transform: ${Jt};
120
+ }
121
+ `,_e=y`
123
122
  .ft-typography--title-dense {
124
- font-family: ${Jt};
125
- font-size: ${qt};
126
- font-weight: ${Xt};
127
- letter-spacing: ${Yt};
128
- line-height: ${Gt};
129
- text-transform: ${Qt};
130
- }
131
- `,_e=u`
123
+ font-family: ${qt};
124
+ font-size: ${Xt};
125
+ font-weight: ${Yt};
126
+ letter-spacing: ${Gt};
127
+ line-height: ${Qt};
128
+ text-transform: ${te};
129
+ }
130
+ `,Te=y`
132
131
  .ft-typography--subtitle1 {
133
- font-family: ${te};
134
- font-size: ${ee};
135
- font-weight: ${ie};
136
- letter-spacing: ${oe};
137
- line-height: ${se};
138
- text-transform: ${ne};
139
- }
140
- `,Te=u`
132
+ font-family: ${ee};
133
+ font-size: ${ie};
134
+ font-weight: ${oe};
135
+ letter-spacing: ${se};
136
+ line-height: ${ne};
137
+ text-transform: ${re};
138
+ }
139
+ `,Ie=y`
141
140
  .ft-typography--subtitle2 {
142
- font-family: ${re};
143
- font-size: ${le};
144
- font-weight: ${ae};
145
- letter-spacing: ${pe};
146
- line-height: ${ce};
147
- text-transform: ${he};
141
+ font-family: ${le};
142
+ font-size: ${ae};
143
+ font-weight: ${pe};
144
+ letter-spacing: ${ce};
145
+ line-height: ${he};
146
+ text-transform: ${fe};
148
147
  }
149
148
 
150
- `,Ie=u`
149
+ `,We=y`
151
150
  .ft-typography--body1 {
152
- font-family: ${fe.fontFamily};
153
- font-size: ${fe.fontSize};
154
- font-weight: ${fe.fontWeight};
155
- letter-spacing: ${fe.letterSpacing};
156
- line-height: ${fe.lineHeight};
157
- text-transform: ${fe.textTransform};
158
- }
159
- `,We=u`
151
+ font-family: ${de.fontFamily};
152
+ font-size: ${de.fontSize};
153
+ font-weight: ${de.fontWeight};
154
+ letter-spacing: ${de.letterSpacing};
155
+ line-height: ${de.lineHeight};
156
+ text-transform: ${de.textTransform};
157
+ }
158
+ `,He=y`
160
159
  .ft-typography--body2 {
161
- font-family: ${de};
162
- font-size: ${ue};
163
- font-weight: ${ye};
160
+ font-family: ${ue};
161
+ font-size: ${ye};
162
+ font-weight: ${ve};
164
163
  letter-spacing: ${xe};
165
- line-height: ${ve};
166
- text-transform: ${be};
164
+ line-height: ${be};
165
+ text-transform: ${ge};
167
166
  }
168
- `,He=u`
167
+ `,Ke=y`
169
168
  .ft-typography--caption {
170
- font-family: ${ge.fontFamily};
171
- font-size: ${ge.fontSize};
172
- font-weight: ${ge.fontWeight};
173
- letter-spacing: ${ge.letterSpacing};
174
- line-height: ${ge.lineHeight};
175
- text-transform: ${ge.textTransform};
176
- }
177
- `,Ke=u`
169
+ font-family: ${me.fontFamily};
170
+ font-size: ${me.fontSize};
171
+ font-weight: ${me.fontWeight};
172
+ letter-spacing: ${me.letterSpacing};
173
+ line-height: ${me.lineHeight};
174
+ text-transform: ${me.textTransform};
175
+ }
176
+ `,Ze=y`
178
177
  .ft-typography--breadcrumb {
179
- font-family: ${me};
178
+ font-family: ${we};
180
179
  font-size: ${$e};
181
- font-weight: ${we};
182
- letter-spacing: ${Oe};
183
- line-height: ${Se};
184
- text-transform: ${ke};
180
+ font-weight: ${Oe};
181
+ letter-spacing: ${Se};
182
+ line-height: ${ke};
183
+ text-transform: ${Ee};
185
184
  }
186
- `,Ze=u`
185
+ `,Ve=y`
187
186
  .ft-typography--overline {
188
- font-family: ${Ee};
189
- font-size: ${Ne};
190
- font-weight: ${Ce};
187
+ font-family: ${Ne};
188
+ font-size: ${Ce};
189
+ font-weight: ${Me};
191
190
  letter-spacing: ${Re};
192
- line-height: ${Me};
193
- text-transform: ${Ue};
191
+ line-height: ${Ue};
192
+ text-transform: ${ze};
194
193
  }
195
- `,Ve=u`
194
+ `,Je=y`
196
195
  .ft-typography--button {
197
- font-family: ${ze};
196
+ font-family: ${je};
198
197
  font-size: ${Fe};
199
- font-weight: ${je};
200
- letter-spacing: ${Ae};
201
- line-height: ${Be};
202
- text-transform: ${De};
198
+ font-weight: ${Ae};
199
+ letter-spacing: ${Be};
200
+ line-height: ${De};
201
+ text-transform: ${Pe};
203
202
  }
204
- `,Je=u`
203
+ `,qe=y`
205
204
  .ft-typography {
206
205
  vertical-align: inherit;
207
206
  }
208
- `;var qe=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Xe extends gt{constructor(){super(...arguments),this.variant=Lt.body1}render(){return this.element?Dt`
209
- <${At(this.element)}
207
+ `;var Xe=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ye extends mt{constructor(){super(...arguments),this.variant=Lt.body1}render(){return this.element?Pt`
208
+ <${Bt(this.element)}
210
209
  class="ft-typography ft-typography--${this.variant}">
211
210
  <slot></slot>
212
- </${At(this.element)}>
213
- `:Dt`
211
+ </${Bt(this.element)}>
212
+ `:Pt`
214
213
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
215
- `}}Xe.styles=[Le,Pe,_e,Te,Ie,We,He,Ke,Ze,Ve,Je],qe([o()],Xe.prototype,"element",void 0),qe([o()],Xe.prototype,"variant",void 0),l("ft-typography")(Xe);const Ye={fontSize:dt.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:dt.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:dt.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:dt.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:dt.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:dt.extend("--ft-input-label-border-color",yt.colorOutline),textColor:dt.extend("--ft-input-label-text-color",yt.colorOnSurfaceMedium),disabledTextColor:dt.extend("--ft-input-label-disabled-text-color",yt.colorOnSurfaceDisabled),colorSurface:dt.external(yt.colorSurface,"Design system"),borderRadiusS:dt.external(yt.borderRadiusS,"Design system"),colorError:dt.external(yt.colorError,"Design system")},Ge=u`
214
+ `}}Ye.styles=[Le,_e,Te,Ie,We,He,Ke,Ze,Ve,Je,qe],Xe([o()],Ye.prototype,"element",void 0),Xe([o()],Ye.prototype,"variant",void 0),l("ft-typography")(Ye);const Ge={fontSize:ut.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:ut.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:ut.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:ut.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:ut.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:ut.extend("--ft-input-label-border-color",vt.colorOutline),textColor:ut.extend("--ft-input-label-text-color",vt.colorOnSurfaceMedium),disabledTextColor:ut.extend("--ft-input-label-disabled-text-color",vt.colorOnSurfaceDisabled),colorSurface:ut.external(vt.colorSurface,"Design system"),borderRadiusS:ut.external(vt.borderRadiusS,"Design system"),colorError:ut.external(vt.colorError,"Design system")},Qe=y`
216
215
  .ft-input-label {
217
216
  position: absolute;
218
217
  inset: 0;
219
218
  display: flex;
220
- background-color: ${Ye.colorSurface};
221
- border-radius: ${Ye.borderRadiusS} ${Ye.borderRadiusS} 0 0;
219
+ background-color: ${Ge.colorSurface};
220
+ border-radius: ${Ge.borderRadiusS} ${Ge.borderRadiusS} 0 0;
222
221
  }
223
222
 
224
223
  .ft-input-label--outlined {
225
- border-radius: ${Ye.borderRadiusS};
224
+ border-radius: ${Ge.borderRadiusS};
226
225
  }
227
226
 
228
227
  .ft-input-label {
229
- border-color: ${Ye.borderColor};
228
+ border-color: ${Ge.borderColor};
230
229
  }
231
230
 
232
231
  .ft-input-label.ft-input-label--in-error {
233
- border-color: ${Ye.colorError}
232
+ border-color: ${Ge.colorError}
234
233
  }
235
234
 
236
235
  .ft-input-label:before,
@@ -243,7 +242,7 @@ const mt=1,$t=2,wt=t=>(...e)=>({_$litDirective$:t,values:e});class Ot{constructo
243
242
  }
244
243
 
245
244
  .ft-input-label:before {
246
- width: ${Ye.horizontalSpacing};
245
+ width: ${Ge.horizontalSpacing};
247
246
  flex-shrink: 0;
248
247
  }
249
248
 
@@ -259,18 +258,18 @@ const mt=1,$t=2,wt=t=>(...e)=>({_$litDirective$:t,values:e});class Ot{constructo
259
258
  border-bottom-width: 1px;
260
259
  border-bottom-style: solid;
261
260
  border-color: inherit;
262
- color: ${Ye.textColor};
261
+ color: ${Ge.textColor};
263
262
  transition: font-size 250ms, line-height 250ms, color 250ms;
264
- ${ut(ge.fontSize,Ye.fontSize)};
265
- ${ut(ge.lineHeight,Ye.fontSize)};
263
+ ${yt(me.fontSize,Ge.fontSize)};
264
+ ${yt(me.lineHeight,Ge.fontSize)};
266
265
  }
267
266
 
268
267
  .ft-input-label--in-error .ft-input-label--text {
269
- color: ${Ye.colorError}
268
+ color: ${Ge.colorError}
270
269
  }
271
270
 
272
271
  .ft-input-label--disabled .ft-input-label--text {
273
- color: ${Ye.disabledTextColor};
272
+ color: ${Ge.disabledTextColor};
274
273
  }
275
274
 
276
275
  .ft-input-label--hidden-text {
@@ -285,17 +284,17 @@ const mt=1,$t=2,wt=t=>(...e)=>({_$litDirective$:t,values:e});class Ot{constructo
285
284
  overflow: hidden;
286
285
  white-space: nowrap;
287
286
  text-overflow: ellipsis;
288
- padding: ${Ye.verticalSpacing} 4px;
289
- margin: calc(${Ye.verticalSpacing} * -1) 0;
287
+ padding: ${Ge.verticalSpacing} 4px;
288
+ margin: calc(${Ge.verticalSpacing} * -1) 0;
290
289
  }
291
290
 
292
291
  .ft-input-label--raised .ft-input-label--text {
293
- ${ut(ge.fontSize,Ye.raisedFontSize)};
294
- ${ut(ge.lineHeight,Ye.raisedFontSize)};
292
+ ${yt(me.fontSize,Ge.raisedFontSize)};
293
+ ${yt(me.lineHeight,Ge.raisedFontSize)};
295
294
  }
296
295
 
297
296
  .ft-input-label--raised .ft-input-label--floating-text {
298
- top: ${Ye.verticalSpacing};
297
+ top: ${Ge.verticalSpacing};
299
298
  }
300
299
 
301
300
  .ft-input-label--outlined .ft-input-label--text,
@@ -308,36 +307,36 @@ const mt=1,$t=2,wt=t=>(...e)=>({_$litDirective$:t,values:e});class Ot{constructo
308
307
  .ft-input-label--outlined:before {
309
308
  border-left-width: 1px;
310
309
  border-left-style: solid;
311
- border-radius: ${Ye.borderRadiusS} 0 0 ${Ye.borderRadiusS};
310
+ border-radius: ${Ge.borderRadiusS} 0 0 ${Ge.borderRadiusS};
312
311
  }
313
312
 
314
313
  .ft-input-label--outlined:after {
315
314
  border-right-width: 1px;
316
315
  border-right-style: solid;
317
- border-radius: 0 ${Ye.borderRadiusS} ${Ye.borderRadiusS} 0;
316
+ border-radius: 0 ${Ge.borderRadiusS} ${Ge.borderRadiusS} 0;
318
317
  }
319
318
 
320
319
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
321
320
  padding: 2px 4px;
322
- z-index: ${Ye.raisedZIndex};
323
- background-color: ${Ye.colorSurface};
324
- border-radius: ${Ye.borderRadiusS};
321
+ z-index: ${Ge.raisedZIndex};
322
+ background-color: ${Ge.colorSurface};
323
+ border-radius: ${Ge.borderRadiusS};
325
324
  top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
326
325
  }
327
326
 
328
327
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
329
328
  border-top: none;
330
329
  }
331
- `;var Qe=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class ti extends gt{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return K`
332
- <div class="${St(t)}">
333
- ${this.text?K`
330
+ `;var ti=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class ei extends mt{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return Z`
331
+ <div class="${kt(t)}">
332
+ ${this.text?Z`
334
333
  <div class="ft-input-label--text ft-typography--caption">
335
334
  <span class="ft-input-label--floating-text">${this.text}</span>
336
335
  <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
337
336
  </div>
338
337
  `:null}
339
338
  </div>
340
- `}}ti.elementDefinitions={},ti.styles=[He,Ge],Qe([o({type:String})],ti.prototype,"text",void 0),Qe([o({type:Boolean})],ti.prototype,"raised",void 0),Qe([o({type:Boolean})],ti.prototype,"outlined",void 0),Qe([o({type:Boolean})],ti.prototype,"disabled",void 0),Qe([o({type:Boolean})],ti.prototype,"error",void 0),l("ft-input-label")(ti);const ei=dt.extend("--ft-ripple-color",yt.colorContent),ii={color:ei,backgroundColor:dt.extend("--ft-ripple-background-color",ei),opacityContentOnSurfacePressed:dt.external(yt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:dt.external(yt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:dt.external(yt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:dt.external(yt.opacityContentOnSurfaceSelected,"Design system")},oi=dt.extend("--ft-ripple-color",yt.colorPrimary),si=oi,ni=dt.extend("--ft-ripple-background-color",oi),ri=dt.extend("--ft-ripple-color",yt.colorSecondary),li=ri,ai=dt.extend("--ft-ripple-background-color",ri),pi=u`
339
+ `}}ei.elementDefinitions={},ei.styles=[Ke,Qe],ti([o({type:String})],ei.prototype,"text",void 0),ti([o({type:Boolean})],ei.prototype,"raised",void 0),ti([o({type:Boolean})],ei.prototype,"outlined",void 0),ti([o({type:Boolean})],ei.prototype,"disabled",void 0),ti([o({type:Boolean})],ei.prototype,"error",void 0),l("ft-input-label")(ei);const ii=ut.extend("--ft-ripple-color",vt.colorContent),oi={color:ii,backgroundColor:ut.extend("--ft-ripple-background-color",ii),opacityContentOnSurfacePressed:ut.external(vt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ut.external(vt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ut.external(vt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ut.external(vt.opacityContentOnSurfaceSelected,"Design system")},si=ut.extend("--ft-ripple-color",vt.colorPrimary),ni=si,ri=ut.extend("--ft-ripple-background-color",si),li=ut.extend("--ft-ripple-color",vt.colorSecondary),ai=li,pi=ut.extend("--ft-ripple-background-color",li),ci=y`
341
340
  :host {
342
341
  display: contents;
343
342
  }
@@ -359,27 +358,27 @@ const mt=1,$t=2,wt=t=>(...e)=>({_$litDirective$:t,values:e});class Ot{constructo
359
358
  }
360
359
 
361
360
  .ft-ripple .ft-ripple--background {
362
- background-color: ${ii.backgroundColor};
361
+ background-color: ${oi.backgroundColor};
363
362
  }
364
363
 
365
364
  .ft-ripple .ft-ripple--effect {
366
- background-color: ${ii.color};
365
+ background-color: ${oi.color};
367
366
  }
368
367
 
369
368
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
370
- background-color: ${ai};
369
+ background-color: ${pi};
371
370
  }
372
371
 
373
372
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
374
- background-color: ${li};
373
+ background-color: ${ai};
375
374
  }
376
375
 
377
376
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
378
- background-color: ${ni};
377
+ background-color: ${ri};
379
378
  }
380
379
 
381
380
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
382
- background-color: ${si};
381
+ background-color: ${ni};
383
382
  }
384
383
 
385
384
  .ft-ripple .ft-ripple--background {
@@ -411,22 +410,22 @@ const mt=1,$t=2,wt=t=>(...e)=>({_$litDirective$:t,values:e});class Ot{constructo
411
410
  }
412
411
 
413
412
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
414
- opacity: ${ii.opacityContentOnSurfaceHover};
413
+ opacity: ${oi.opacityContentOnSurfaceHover};
415
414
  }
416
415
 
417
416
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
418
- opacity: ${ii.opacityContentOnSurfaceSelected};
417
+ opacity: ${oi.opacityContentOnSurfaceSelected};
419
418
  }
420
419
 
421
420
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
422
- opacity: ${ii.opacityContentOnSurfaceFocused};
421
+ opacity: ${oi.opacityContentOnSurfaceFocused};
423
422
  }
424
423
 
425
424
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
426
- opacity: ${ii.opacityContentOnSurfacePressed};
425
+ opacity: ${oi.opacityContentOnSurfacePressed};
427
426
  transform: translate(-50%, -50%) scale(1);
428
427
  }
429
- `;var ci=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class hi extends gt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),n=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-n.x:n.width/2),this.originY=Math.round(null!=s?s-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return K`
428
+ `;var hi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class fi extends mt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),n=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-n.x:n.width/2),this.originY=Math.round(null!=s?s-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Z`
430
429
  <style>
431
430
  .ft-ripple .ft-ripple--effect,
432
431
  .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
@@ -439,17 +438,17 @@ const mt=1,$t=2,wt=t=>(...e)=>({_$litDirective$:t,values:e});class Ot{constructo
439
438
  top: ${this.originY}px;
440
439
  }
441
440
  </style>
442
- <div class="${St(t)}">
441
+ <div class="${kt(t)}">
443
442
  <div class="ft-ripple--background"></div>
444
443
  <div class="ft-ripple--effect"></div>
445
444
  </div>
446
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}hi.elementDefinitions={},hi.styles=pi,ci([o({type:Boolean})],hi.prototype,"primary",void 0),ci([o({type:Boolean})],hi.prototype,"secondary",void 0),ci([o({type:Boolean})],hi.prototype,"unbounded",void 0),ci([o({type:Boolean})],hi.prototype,"activated",void 0),ci([o({type:Boolean})],hi.prototype,"selected",void 0),ci([o({type:Boolean})],hi.prototype,"disabled",void 0),ci([s()],hi.prototype,"hovered",void 0),ci([s()],hi.prototype,"focused",void 0),ci([s()],hi.prototype,"pressed",void 0),ci([s()],hi.prototype,"rippling",void 0),ci([s()],hi.prototype,"rippleSize",void 0),ci([s()],hi.prototype,"originX",void 0),ci([s()],hi.prototype,"originY",void 0),ci([n(".ft-ripple")],hi.prototype,"ripple",void 0),ci([n(".ft-ripple--effect")],hi.prototype,"rippleEffect",void 0),l("ft-ripple")(hi);
445
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}fi.elementDefinitions={},fi.styles=ci,hi([o({type:Boolean})],fi.prototype,"primary",void 0),hi([o({type:Boolean})],fi.prototype,"secondary",void 0),hi([o({type:Boolean})],fi.prototype,"unbounded",void 0),hi([o({type:Boolean})],fi.prototype,"activated",void 0),hi([o({type:Boolean})],fi.prototype,"selected",void 0),hi([o({type:Boolean})],fi.prototype,"disabled",void 0),hi([s()],fi.prototype,"hovered",void 0),hi([s()],fi.prototype,"focused",void 0),hi([s()],fi.prototype,"pressed",void 0),hi([s()],fi.prototype,"rippling",void 0),hi([s()],fi.prototype,"rippleSize",void 0),hi([s()],fi.prototype,"originX",void 0),hi([s()],fi.prototype,"originY",void 0),hi([n(".ft-ripple")],fi.prototype,"ripple",void 0),hi([n(".ft-ripple--effect")],fi.prototype,"rippleEffect",void 0),l("ft-ripple")(fi);
447
446
  /**
448
447
  * @license
449
448
  * Copyright 2017 Google LLC
450
449
  * SPDX-License-Identifier: BSD-3-Clause
451
450
  */
452
- class fi extends Ot{constructor(t){if(super(t),this.it=V,t.type!==$t)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===V||null==t)return this._t=void 0,this.it=t;if(t===Z)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}fi.directiveName="unsafeHTML",fi.resultType=1;const di=wt(fi);var ui,yi;!function(t){t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.STAR_PLAIN="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN_PLAIN="&#xe94d;",t.THUMBS_DOWN="&#xe94e;",t.THUMBS_UP_PLAIN="&#xe94f;",t.THUMBS_UP="&#xe950;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe900;",t.EYE="\f06e",t.DISC="&#xe901;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe902;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe90f;",t.ADMIN_USERS="&#xe910;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe912;"}(ui||(ui={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(yi||(yi={})),new Map([...["abw"].map((t=>[t,yi.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,yi.AUDIO])),...["avi"].map((t=>[t,yi.AVI])),...["chm","xhs"].map((t=>[t,yi.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,yi.CODE])),...["csv"].map((t=>[t,yi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,yi.DITA])),...["epub"].map((t=>[t,yi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,yi.EXCEL])),...["flac"].map((t=>[t,yi.FLAC])),...["gif"].map((t=>[t,yi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,yi.GZIP])),...["html","htm","xhtml"].map((t=>[t,yi.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,yi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,yi.JPEG])),...["json"].map((t=>[t,yi.JSON])),...["m4a","m4p"].map((t=>[t,yi.M4A])),...["mov","qt"].map((t=>[t,yi.MOV])),...["mp3"].map((t=>[t,yi.MP3])),...["mp4","m4v"].map((t=>[t,yi.MP4])),...["ogg","oga"].map((t=>[t,yi.OGG])),...["pdf","ps"].map((t=>[t,yi.PDF])),...["png"].map((t=>[t,yi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,yi.POWERPOINT])),...["rar"].map((t=>[t,yi.RAR])),...["stp"].map((t=>[t,yi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,yi.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,yi.VIDEO])),...["wav"].map((t=>[t,yi.WAV])),...["wma"].map((t=>[t,yi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,yi.WORD])),...["xml","xsl","rdf"].map((t=>[t,yi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,yi.YAML])),...["zip"].map((t=>[t,yi.ZIP]))]);const xi=dt.create("--ft-icon-font-size","SIZE","24px"),vi=dt.extend("--ft-icon-fluid-topics-font-family",dt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),bi=dt.extend("--ft-icon-file-format-font-family",dt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),gi=dt.extend("--ft-icon-material-font-family",dt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),mi=dt.create("--ft-icon-vertical-align","UNKNOWN","unset"),$i=u`
451
+ class di extends St{constructor(t){if(super(t),this.it=J,t.type!==$t)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===J||null==t)return this._t=void 0,this.it=t;if(t===V)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}di.directiveName="unsafeHTML",di.resultType=1;const ui=Ot(di);var yi,vi;!function(t){t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.STAR_PLAIN="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN_PLAIN="&#xe94d;",t.THUMBS_DOWN="&#xe94e;",t.THUMBS_UP_PLAIN="&#xe94f;",t.THUMBS_UP="&#xe950;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe900;",t.EYE="\f06e",t.DISC="&#xe901;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe902;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe90f;",t.ADMIN_USERS="&#xe910;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe912;"}(yi||(yi={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(vi||(vi={})),new Map([...["abw"].map((t=>[t,vi.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,vi.AUDIO])),...["avi"].map((t=>[t,vi.AVI])),...["chm","xhs"].map((t=>[t,vi.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,vi.CODE])),...["csv"].map((t=>[t,vi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,vi.DITA])),...["epub"].map((t=>[t,vi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,vi.EXCEL])),...["flac"].map((t=>[t,vi.FLAC])),...["gif"].map((t=>[t,vi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,vi.GZIP])),...["html","htm","xhtml"].map((t=>[t,vi.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,vi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,vi.JPEG])),...["json"].map((t=>[t,vi.JSON])),...["m4a","m4p"].map((t=>[t,vi.M4A])),...["mov","qt"].map((t=>[t,vi.MOV])),...["mp3"].map((t=>[t,vi.MP3])),...["mp4","m4v"].map((t=>[t,vi.MP4])),...["ogg","oga"].map((t=>[t,vi.OGG])),...["pdf","ps"].map((t=>[t,vi.PDF])),...["png"].map((t=>[t,vi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,vi.POWERPOINT])),...["rar"].map((t=>[t,vi.RAR])),...["stp"].map((t=>[t,vi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,vi.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,vi.VIDEO])),...["wav"].map((t=>[t,vi.WAV])),...["wma"].map((t=>[t,vi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,vi.WORD])),...["xml","xsl","rdf"].map((t=>[t,vi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,vi.YAML])),...["zip"].map((t=>[t,vi.ZIP]))]);const xi=ut.create("--ft-icon-font-size","SIZE","24px"),bi=ut.extend("--ft-icon-fluid-topics-font-family",ut.create("--ft-icon-font-family","UNKNOWN","ft-icons")),gi=ut.extend("--ft-icon-file-format-font-family",ut.create("--ft-icon-font-family","UNKNOWN","ft-mime")),mi=ut.extend("--ft-icon-material-font-family",ut.create("--ft-icon-font-family","UNKNOWN","Material Icons")),wi=ut.create("--ft-icon-vertical-align","UNKNOWN","unset"),$i=y`
453
452
  :host {
454
453
  display: inline-block;
455
454
  }
@@ -472,26 +471,26 @@ class fi extends Ot{constructor(t){if(super(t),this.it=V,t.type!==$t)throw Error
472
471
  text-rendering: auto;
473
472
  -webkit-font-smoothing: antialiased;
474
473
  -moz-osx-font-smoothing: grayscale;
475
- vertical-align: ${mi};
474
+ vertical-align: ${wi};
476
475
  }
477
476
 
478
477
  .ft-icon--fluid-topics {
479
- font-family: ${vi}, ft-icons, fticons, sans-serif;
478
+ font-family: ${bi}, ft-icons, fticons, sans-serif;
480
479
  }
481
480
 
482
481
  .ft-icon--file-format {
483
- font-family: ${bi}, ft-mime, sans-serif;
482
+ font-family: ${gi}, ft-mime, sans-serif;
484
483
  }
485
484
 
486
485
  .ft-icon--material {
487
- font-family: ${gi}, "Material Icons", sans-serif;
486
+ font-family: ${mi}, "Material Icons", sans-serif;
488
487
  }
489
- `;var wi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(wi||(wi={}));var Oi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Si extends gt{constructor(){super(...arguments),this.variant=wi.fluid_topics,this.resolvedIcon=V}render(){const t="material"!==this.variant||this.value;return K`
488
+ `;var Oi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Oi||(Oi={}));var Si=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class ki extends mt{constructor(){super(...arguments),this.variant=Oi.fluid_topics,this.resolvedIcon=J}render(){const t="material"!==this.variant||this.value;return Z`
490
489
  <i class="ft-icon ${"ft-icon--"+this.variant}">
491
- ${di(this.resolvedIcon)}
490
+ ${ui(this.resolvedIcon)}
492
491
  <slot ?hidden=${t}></slot>
493
492
  </i>
494
- `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case wi.file_format:this.resolvedIcon=null!==(t=yi[i.toUpperCase()])&&void 0!==t?t:i;break;case wi.fluid_topics:this.resolvedIcon=null!==(e=ui[i.toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||V}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}Si.elementDefinitions={},Si.styles=$i,Oi([o()],Si.prototype,"variant",void 0),Oi([o()],Si.prototype,"value",void 0),Oi([s()],Si.prototype,"resolvedIcon",void 0),Oi([n("slot")],Si.prototype,"slottedContent",void 0),l("ft-icon")(Si);const ki={labelSize:dt.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:dt.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:dt.create("--ft-select-vertical-spacing","SIZE","4px"),optionsHeight:dt.create("--ft-select-options-height","SIZE","unset"),selectedOptionColor:dt.extend("--ft-select-selected-option-color",yt.colorOnSurface),helperColor:dt.extend("--ft-select-helper-color",yt.colorOnSurfaceMedium),optionsColor:dt.extend("--ft-select-options-color",yt.colorOnSurface),optionsZIndex:dt.create("--ft-select-options-z-index","NUMBER","3"),colorSurface:dt.external(yt.colorSurface,"Design system"),colorOnSurfaceDisabled:dt.external(yt.colorOnSurfaceDisabled,"Design system"),colorPrimary:dt.external(yt.colorPrimary,"Design system"),borderRadiusS:dt.external(yt.borderRadiusS,"Design system"),elevation02:dt.external(yt.elevation02,"Design system"),colorError:dt.external(yt.colorError,"Design system")},Ei=u`
493
+ `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Oi.file_format:this.resolvedIcon=null!==(t=vi[i.toUpperCase()])&&void 0!==t?t:i;break;case Oi.fluid_topics:this.resolvedIcon=null!==(e=yi[i.toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||J}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}ki.elementDefinitions={},ki.styles=$i,Si([o()],ki.prototype,"variant",void 0),Si([o()],ki.prototype,"value",void 0),Si([s()],ki.prototype,"resolvedIcon",void 0),Si([n("slot")],ki.prototype,"slottedContent",void 0),l("ft-icon")(ki);const Ei={labelSize:ut.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:ut.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:ut.create("--ft-select-vertical-spacing","SIZE","4px"),optionsHeight:ut.create("--ft-select-options-height","SIZE","unset"),selectedOptionColor:ut.extend("--ft-select-selected-option-color",vt.colorOnSurface),helperColor:ut.extend("--ft-select-helper-color",vt.colorOnSurfaceMedium),optionsColor:ut.extend("--ft-select-options-color",vt.colorOnSurface),optionsZIndex:ut.create("--ft-select-options-z-index","NUMBER","3"),colorSurface:ut.external(vt.colorSurface,"Design system"),colorOnSurfaceDisabled:ut.external(vt.colorOnSurfaceDisabled,"Design system"),colorPrimary:ut.external(vt.colorPrimary,"Design system"),borderRadiusS:ut.external(vt.borderRadiusS,"Design system"),elevation02:ut.external(vt.elevation02,"Design system"),colorError:ut.external(vt.colorError,"Design system")},Ni=y`
495
494
  *:focus {
496
495
  outline: none;
497
496
  }
@@ -505,7 +504,7 @@ class fi extends Ot{constructor(t){if(super(t),this.it=V,t.type!==$t)throw Error
505
504
  .ft-select--main-panel {
506
505
  position: relative;
507
506
  display: flex;
508
- height: calc(4 * ${ki.verticalSpacing} + ${ki.labelSize} + ${ki.selectedOptionSize});
507
+ height: calc(4 * ${Ei.verticalSpacing} + ${Ei.labelSize} + ${Ei.selectedOptionSize});
509
508
  }
510
509
 
511
510
  .ft-select--input-panel {
@@ -517,14 +516,14 @@ class fi extends Ot{constructor(t){if(super(t),this.it=V,t.type!==$t)throw Error
517
516
  padding-left: 16px;
518
517
  padding-right: 8px;
519
518
  gap: 8px;
520
- color: ${ki.selectedOptionColor};
521
- ${ut(ii.color,ki.selectedOptionColor)};
519
+ color: ${Ei.selectedOptionColor};
520
+ ${yt(oi.color,Ei.selectedOptionColor)};
522
521
  }
523
522
 
524
523
  .ft-select--input-panel,
525
524
  .ft-select--option {
526
- ${ut(ii.opacityContentOnSurfaceHover,"0.08")};
527
- ${ut(ii.opacityContentOnSurfacePressed,"0.04")};
525
+ ${yt(oi.opacityContentOnSurfaceHover,"0.08")};
526
+ ${yt(oi.opacityContentOnSurfacePressed,"0.04")};
528
527
  }
529
528
 
530
529
  .ft-select--input-panel > *:not(ft-ripple),
@@ -534,7 +533,7 @@ class fi extends Ot{constructor(t){if(super(t),this.it=V,t.type!==$t)throw Error
534
533
 
535
534
  .ft-select--disabled .ft-select--input-panel,
536
535
  .ft-select--disabled .ft-select--option {
537
- color: ${ki.colorOnSurfaceDisabled};
536
+ color: ${Ei.colorOnSurfaceDisabled};
538
537
  }
539
538
 
540
539
  .ft-select:not(.ft-select--disabled) .ft-select--input-panel,
@@ -543,18 +542,18 @@ class fi extends Ot{constructor(t){if(super(t),this.it=V,t.type!==$t)throw Error
543
542
  }
544
543
 
545
544
  ft-input-label {
546
- ${ut(Ye.fontSize,ki.selectedOptionSize)};
547
- ${ut(Ye.raisedFontSize,ki.labelSize)};
548
- ${ut(Ye.verticalSpacing,ki.verticalSpacing)};
545
+ ${yt(Ge.fontSize,Ei.selectedOptionSize)};
546
+ ${yt(Ge.raisedFontSize,Ei.labelSize)};
547
+ ${yt(Ge.verticalSpacing,Ei.verticalSpacing)};
549
548
  }
550
549
 
551
550
  .ft-select:not(.ft-select--disabled):focus-within ft-icon {
552
- color: ${ki.colorPrimary};
551
+ color: ${Ei.colorPrimary};
553
552
  }
554
553
 
555
554
  .ft-select:not(.ft-select--disabled):focus-within ft-input-label {
556
- ${ut(Ye.borderColor,ki.colorPrimary)};
557
- ${ut(Ye.textColor,ki.colorPrimary)};
555
+ ${yt(Ge.borderColor,Ei.colorPrimary)};
556
+ ${yt(Ge.textColor,Ei.colorPrimary)};
558
557
  }
559
558
 
560
559
  .ft-select--selected-option {
@@ -564,12 +563,12 @@ class fi extends Ot{constructor(t){if(super(t),this.it=V,t.type!==$t)throw Error
564
563
  overflow: hidden;
565
564
  white-space: nowrap;
566
565
  text-overflow: ellipsis;
567
- ${ut(fe.fontSize,ki.selectedOptionSize)};
568
- ${ut(fe.lineHeight,ki.selectedOptionSize)};
566
+ ${yt(de.fontSize,Ei.selectedOptionSize)};
567
+ ${yt(de.lineHeight,Ei.selectedOptionSize)};
569
568
  }
570
569
 
571
570
  .ft-select--in-error .ft-select--selected-option {
572
- color: ${ki.colorError};
571
+ color: ${Ei.colorError};
573
572
  }
574
573
 
575
574
  ft-icon {
@@ -581,16 +580,16 @@ class fi extends Ot{constructor(t){if(super(t),this.it=V,t.type!==$t)throw Error
581
580
  }
582
581
 
583
582
  .ft-select--filled .ft-select--input-panel {
584
- border-radius: ${ki.borderRadiusS} ${ki.borderRadiusS} 0 0;
583
+ border-radius: ${Ei.borderRadiusS} ${Ei.borderRadiusS} 0 0;
585
584
  }
586
585
 
587
586
  .ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
588
587
  align-self: stretch;
589
- padding-top: calc(${ki.labelSize} + 2 * ${ki.verticalSpacing});
588
+ padding-top: calc(${Ei.labelSize} + 2 * ${Ei.verticalSpacing});
590
589
  }
591
590
 
592
591
  .ft-select--outlined .ft-select--input-panel {
593
- border-radius: ${ki.borderRadiusS};
592
+ border-radius: ${Ei.borderRadiusS};
594
593
  }
595
594
 
596
595
  .ft-select--options {
@@ -599,10 +598,10 @@ class fi extends Ot{constructor(t){if(super(t),this.it=V,t.type!==$t)throw Error
599
598
  top: 100%;
600
599
  left: 0;
601
600
  right: 0;
602
- color: ${ki.optionsColor};
603
- background: ${ki.colorSurface};
604
- z-index: ${ki.optionsZIndex};
605
- box-shadow: ${ki.elevation02};
601
+ color: ${Ei.optionsColor};
602
+ background: ${Ei.colorSurface};
603
+ z-index: ${Ei.optionsZIndex};
604
+ box-shadow: ${Ei.elevation02};
606
605
  }
607
606
 
608
607
  .ft-select--fixed .ft-select--options {
@@ -613,7 +612,7 @@ class fi extends Ot{constructor(t){if(super(t),this.it=V,t.type!==$t)throw Error
613
612
 
614
613
  .ft-select--options-displayed .ft-select--options {
615
614
  display: block;
616
- max-height: ${ki.optionsHeight};
615
+ max-height: ${Ei.optionsHeight};
617
616
  overflow-y: auto;
618
617
  }
619
618
 
@@ -632,14 +631,14 @@ class fi extends Ot{constructor(t){if(super(t),this.it=V,t.type!==$t)throw Error
632
631
 
633
632
  .ft-select--helper-text {
634
633
  padding: 0 12px 0 16px;
635
- color: ${ki.helperColor};
634
+ color: ${Ei.helperColor};
636
635
  }
637
636
 
638
637
  .ft-select--in-error .ft-select--helper-text {
639
- color: ${ki.colorError};
638
+ color: ${Ei.colorError};
640
639
  }
641
- `;var Ni=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ci extends gt{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return K``}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}Ci.elementDefinitions={},Ni([o({type:String})],Ci.prototype,"label",void 0),Ni([o({type:Object,converter:t=>t})],Ci.prototype,"value",void 0),Ni([o({type:Boolean,reflect:!0})],Ci.prototype,"selected",void 0);class Ri extends gt{constructor(){super(...arguments),this.label="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.hideOptions=t=>this.optionsDisplayed=this.optionsDisplayed&&t.composedPath().includes(this.container)}render(){var t,e,i,o,s;let n=this.hasOptionsMenuOpen,r=this.disabled||!this.hasOptions;const l=null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value)||(null!==(i=null===(e=this.selectedOption)||void 0===e?void 0:e.label)&&void 0!==i?i:"").length>0,a={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":r,"ft-select--options-displayed":n,"ft-select--has-option-selected":l,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return K`
642
- <div class="${St(a)}" part="container">
640
+ `;var Ci=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Mi extends mt{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return Z``}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}Mi.elementDefinitions={},Ci([o({type:String})],Mi.prototype,"label",void 0),Ci([o({type:Object,converter:t=>t})],Mi.prototype,"value",void 0),Ci([o({type:Boolean,reflect:!0})],Mi.prototype,"selected",void 0);class Ri extends mt{constructor(){super(...arguments),this.label="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.hideOptions=t=>this.optionsDisplayed=this.optionsDisplayed&&t.composedPath().includes(this.container)}render(){var t,e,i,o,s;let n=this.hasOptionsMenuOpen,r=this.disabled||!this.hasOptions;const l=null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value)||(null!==(i=null===(e=this.selectedOption)||void 0===e?void 0:e.label)&&void 0!==i?i:"").length>0,a={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":r,"ft-select--options-displayed":n,"ft-select--has-option-selected":l,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return Z`
641
+ <div class="${kt(a)}" part="container">
643
642
  <div class="ft-select--main-panel" part="main-panel">
644
643
  <ft-input-label text="${this.label}"
645
644
  part="label"
@@ -666,18 +665,18 @@ class fi extends Ot{constructor(t){if(super(t),this.it=V,t.type!==$t)throw Error
666
665
  part="options"
667
666
  @keydown=${this.onOptionsKeyDown}
668
667
  innerrole="listbox">
669
- ${zt(this.options,(t=>t.value),(t=>this.renderOption(t)))}
668
+ ${jt(this.options,(t=>t.value),(t=>this.renderOption(t)))}
670
669
  </div>
671
670
  </div>
672
- ${this.helper?K`
671
+ ${this.helper?Z`
673
672
  <ft-typography class="ft-select--helper-text" variant="caption">${this.helper}
674
673
  </ft-typography>`:void 0}
675
674
  </div>
676
675
  <slot @slotchange=${this.updateOptionsFromSlot}
677
676
  @option-change=${this.updateOptionsFromSlot}
678
677
  ></slot>
679
- `}renderOption(t){let e=this.selectedOption===t;return K`
680
- <div class="${St({"ft-select--option":!0,"ft-select--option-selected":e,"ft-typography--body2":!0})}"
678
+ `}renderOption(t){let e=this.selectedOption===t;return Z`
679
+ <div class="${kt({"ft-select--option":!0,"ft-select--option-selected":e,"ft-typography--body2":!0})}"
681
680
  part="option"
682
681
  tabindex="0"
683
682
  data-value="${t.value}"
@@ -686,4 +685,4 @@ class fi extends Ot{constructor(t){if(super(t),this.it=V,t.type!==$t)throw Error
686
685
  <ft-ripple ?primary=${e} ?activated=${e}></ft-ripple>
687
686
  <span>${t.label}</span>
688
687
  </div>
689
- `}updated(t){var e;super.updated(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1,this.dispatchEvent(new CustomEvent("change",{detail:null===(e=this.selectedOption)||void 0===e?void 0:e.value}))),t.has("optionsDisplayed")&&this.fixedMenuPosition&&this.hasOptionsMenuOpen&&this.positionOptionsMenu()}positionOptionsMenu(){this.optionsMenu.style.top=this.mainPanel.getBoundingClientRect().top+this.mainPanel.getBoundingClientRect().height+"px",this.optionsMenu.style.left=this.mainPanel.getBoundingClientRect().left+"px",this.optionsMenu.style.width=this.mainPanel.getBoundingClientRect().width+"px"}contentAvailableCallback(t){var e,i;t.has("focusOptions")&&this.focusOptions&&(null===(i=null!==(e=this.selectedOptionElement)&&void 0!==e?e:this.firstOption)||void 0===i||i.focus(),this.focusOptions=!1)}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var e;t.stopPropagation();let i=null===(e=this.optionsSlot)||void 0===e?void 0:e.assignedElements().map((t=>t));i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0}}onOptionsKeyDown(t){var e,i,o,s,n;let r;switch(t.key){case"Escape":this.optionsDisplayed=!1,null===(e=this.mainPanel)||void 0===e||e.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),r=null!==(o=null===(i=this.focusedOption)||void 0===i?void 0:i.previousElementSibling)&&void 0!==o?o:this.lastOption;break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),r=null!==(n=null===(s=this.focusedOption)||void 0===s?void 0:s.nextElementSibling)&&void 0!==n?n:this.firstOption}null==r||r.focus()}onOptionKeyDown(t,e){var i;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.selectOption(e),this.optionsDisplayed=!1,null===(i=this.mainPanel)||void 0===i||i.focus())}selectOption(t){this.selectedOption=t;for(let e of this.options)e.selected=e===t}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}Ri.elementDefinitions={"ft-input-label":ti,"ft-typography":Xe,"ft-ripple":hi,"ft-icon":Si},Ri.styles=[We,He,Ei],Ni([o({type:String})],Ri.prototype,"label",void 0),Ni([o({type:String})],Ri.prototype,"helper",void 0),Ni([o({type:Boolean})],Ri.prototype,"outlined",void 0),Ni([o({type:Boolean})],Ri.prototype,"disabled",void 0),Ni([o({type:Boolean})],Ri.prototype,"error",void 0),Ni([o({type:Boolean})],Ri.prototype,"fixedMenuPosition",void 0),Ni([o({type:Array})],Ri.prototype,"options",void 0),Ni([s()],Ri.prototype,"selectedOption",void 0),Ni([s()],Ri.prototype,"optionsDisplayed",void 0),Ni([s()],Ri.prototype,"focusOptions",void 0),Ni([n(".ft-select")],Ri.prototype,"container",void 0),Ni([n(".ft-select--options")],Ri.prototype,"optionsMenu",void 0),Ni([n(".ft-select--input-panel")],Ri.prototype,"mainPanel",void 0),Ni([n(".ft-select--option:first-child")],Ri.prototype,"firstOption",void 0),Ni([n(".ft-select--option:focus")],Ri.prototype,"focusedOption",void 0),Ni([n(".ft-select--option.ft-select--option-selected")],Ri.prototype,"selectedOptionElement",void 0),Ni([n(".ft-select--option:last-child")],Ri.prototype,"lastOption",void 0),Ni([n("slot")],Ri.prototype,"optionsSlot",void 0),l("ft-select")(Ri),l("ft-select-option")(Ci),t.FtSelect=Ri,t.FtSelectCssVariables=ki,t.FtSelectOption=Ci,t.styles=Ei,Object.defineProperty(t,"i",{value:!0})}({});
688
+ `}updated(t){super.updated(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1),t.has("optionsDisplayed")&&this.fixedMenuPosition&&this.hasOptionsMenuOpen&&this.positionOptionsMenu()}positionOptionsMenu(){this.optionsMenu.style.top=this.mainPanel.getBoundingClientRect().top+this.mainPanel.getBoundingClientRect().height+"px",this.optionsMenu.style.left=this.mainPanel.getBoundingClientRect().left+"px",this.optionsMenu.style.width=this.mainPanel.getBoundingClientRect().width+"px"}contentAvailableCallback(t){var e,i;t.has("focusOptions")&&this.focusOptions&&(null===(i=null!==(e=this.selectedOptionElement)&&void 0!==e?e:this.firstOption)||void 0===i||i.focus(),this.focusOptions=!1)}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var e;t.stopPropagation();let i=null===(e=this.optionsSlot)||void 0===e?void 0:e.assignedElements().map((t=>t));i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0}}onOptionsKeyDown(t){var e,i,o,s,n;let r;switch(t.key){case"Escape":this.optionsDisplayed=!1,null===(e=this.mainPanel)||void 0===e||e.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),r=null!==(o=null===(i=this.focusedOption)||void 0===i?void 0:i.previousElementSibling)&&void 0!==o?o:this.lastOption;break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),r=null!==(n=null===(s=this.focusedOption)||void 0===s?void 0:s.nextElementSibling)&&void 0!==n?n:this.firstOption}null==r||r.focus()}onOptionKeyDown(t,e){var i;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.selectOption(e),this.optionsDisplayed=!1,null===(i=this.mainPanel)||void 0===i||i.focus())}selectOption(t){var e,i;if(!a(null===(e=this.selectedOption)||void 0===e?void 0:e.value,t.value)){this.selectedOption=t;for(let e of this.options)e.selected=e===t;this.dispatchEvent(new CustomEvent("change",{detail:null===(i=this.selectedOption)||void 0===i?void 0:i.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}Ri.elementDefinitions={"ft-input-label":ei,"ft-typography":Ye,"ft-ripple":fi,"ft-icon":ki},Ri.styles=[He,Ke,Ni],Ci([o({type:String})],Ri.prototype,"label",void 0),Ci([o({type:String})],Ri.prototype,"helper",void 0),Ci([o({type:Boolean})],Ri.prototype,"outlined",void 0),Ci([o({type:Boolean})],Ri.prototype,"disabled",void 0),Ci([o({type:Boolean})],Ri.prototype,"error",void 0),Ci([o({type:Boolean})],Ri.prototype,"fixedMenuPosition",void 0),Ci([o({type:Array})],Ri.prototype,"options",void 0),Ci([s()],Ri.prototype,"selectedOption",void 0),Ci([s()],Ri.prototype,"optionsDisplayed",void 0),Ci([s()],Ri.prototype,"focusOptions",void 0),Ci([n(".ft-select")],Ri.prototype,"container",void 0),Ci([n(".ft-select--options")],Ri.prototype,"optionsMenu",void 0),Ci([n(".ft-select--input-panel")],Ri.prototype,"mainPanel",void 0),Ci([n(".ft-select--option:first-child")],Ri.prototype,"firstOption",void 0),Ci([n(".ft-select--option:focus")],Ri.prototype,"focusedOption",void 0),Ci([n(".ft-select--option.ft-select--option-selected")],Ri.prototype,"selectedOptionElement",void 0),Ci([n(".ft-select--option:last-child")],Ri.prototype,"lastOption",void 0),Ci([n("slot")],Ri.prototype,"optionsSlot",void 0),l("ft-select")(Ri),l("ft-select-option")(Mi),t.FtSelect=Ri,t.FtSelectCssVariables=Ei,t.FtSelectOption=Mi,t.styles=Ni,Object.defineProperty(t,"i",{value:!0})}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-select",
3
- "version": "0.3.30",
3
+ "version": "0.3.32",
4
4
  "description": "Value selector for a predefined list of choices",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,12 +19,12 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-icon": "0.3.30",
23
- "@fluid-topics/ft-input-label": "0.3.30",
24
- "@fluid-topics/ft-ripple": "0.3.30",
25
- "@fluid-topics/ft-typography": "0.3.30",
26
- "@fluid-topics/ft-wc-utils": "0.3.30",
22
+ "@fluid-topics/ft-icon": "0.3.32",
23
+ "@fluid-topics/ft-input-label": "0.3.32",
24
+ "@fluid-topics/ft-ripple": "0.3.32",
25
+ "@fluid-topics/ft-typography": "0.3.32",
26
+ "@fluid-topics/ft-wc-utils": "0.3.32",
27
27
  "lit": "2.2.8"
28
28
  },
29
- "gitHead": "b82e37919b38b7a367762ddc9a1780dc0280d5d2"
29
+ "gitHead": "27bd400b0630590c76a67d175875b5ac7f03f4d9"
30
30
  }