@fluid-topics/ft-filter 0.1.17 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,90 +1,89 @@
1
1
  !function(t){
2
2
  /**
3
3
  * @license
4
- * Copyright 2019 Google LLC
5
- * SPDX-License-Identifier: BSD-3-Clause
4
+ * Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
5
+ * This code may only be used under the BSD style license found at
6
+ * http://polymer.github.io/LICENSE.txt
7
+ * The complete set of authors may be found at
8
+ * http://polymer.github.io/AUTHORS.txt
9
+ * The complete set of contributors may be found at
10
+ * http://polymer.github.io/CONTRIBUTORS.txt
11
+ * Code distributed by Google as part of the polymer project is also
12
+ * subject to an additional IP rights grant found at
13
+ * http://polymer.github.io/PATENTS.txt
14
+ *
15
+ * @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
6
16
  */
7
- const e=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),r=new Map;class o{constructor(t,e){if(this._$cssResult$=!0,e!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=r.get(this.cssText);return e&&void 0===t&&(r.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const c=t=>new o("string"==typeof t?t:t+"",i),n=(t,...e)=>{const r=1===t.length?t[0]:e.reduce(((e,i,r)=>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[r+1]),t[0]);return new o(r,i)},a=(t,i)=>{e?t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):i.forEach((e=>{const i=document.createElement("style"),r=window.litNonce;void 0!==r&&i.setAttribute("nonce",r),i.textContent=e.cssText,t.appendChild(i)}))},s=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return c(e)})(t):t
8
- /**
9
- * @license
10
- * Copyright 2017 Google LLC
11
- * SPDX-License-Identifier: BSD-3-Clause
12
- */;var d;const l=window.trustedTypes,p=l?l.emptyScript:"",h=window.reactiveElementPolyfillSupport,u={toAttribute(t,e){switch(e){case Boolean:t=t?p: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}},f=(t,e)=>e!==t&&(e==e||t==t),m={attribute:!0,type:String,converter:u,reflect:!1,hasChanged:f};class b extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var e;null!==(e=this.l)&&void 0!==e||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const r=this._$Eh(i,e);void 0!==r&&(this._$Eu.set(r,i),t.push(r))})),t}static createProperty(t,e=m){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,r=this.getPropertyDescriptor(t,i,e);void 0!==r&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(r){const o=this[t];this[e]=r,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||m}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._$Eu=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(s(t))}else void 0!==t&&e.push(s(t));return e}static _$Eh(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$Eg)&&void 0!==e?e:this._$Eg=[]).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._$Eg)||void 0===e||e.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Et.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 a(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Eg)||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._$Eg)||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)}_$ES(t,e,i=m){var r,o;const c=this.constructor._$Eh(t,i);if(void 0!==c&&!0===i.reflect){const n=(null!==(o=null===(r=i.converter)||void 0===r?void 0:r.toAttribute)&&void 0!==o?o:u.toAttribute)(e,i.type);this._$Ei=t,null==n?this.removeAttribute(c):this.setAttribute(c,n),this._$Ei=null}}_$AK(t,e){var i,r,o;const c=this.constructor,n=c._$Eu.get(t);if(void 0!==n&&this._$Ei!==n){const t=c.getPropertyOptions(n),a=t.converter,s=null!==(o=null!==(r=null===(i=a)||void 0===i?void 0:i.fromAttribute)&&void 0!==r?r:"function"==typeof a?a:null)&&void 0!==o?o:u.fromAttribute;this._$Ei=n,this[n]=s(e,t.type),this._$Ei=null}}requestUpdate(t,e,i){let r=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||f)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Ei!==t&&(void 0===this._$E_&&(this._$E_=new Map),this._$E_.set(t,i))):r=!1),!this.isUpdatePending&&r&&(this._$Ep=this._$EC())}async _$EC(){this.isUpdatePending=!0;try{await this._$Ep}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._$Et&&(this._$Et.forEach(((t,e)=>this[e]=t)),this._$Et=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$Eg)||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._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$Eg)||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)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(t){return!0}update(t){void 0!==this._$E_&&(this._$E_.forEach(((t,e)=>this._$ES(e,this[e],t))),this._$E_=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
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||[]);d(s,a,l);const h={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,h),this._definitionsByClass.set(s,h);let c=i.call(o,t);c||(c=p(t),e.call(o,t,c)),this===window.customElements&&(r.set(s,h),h.standInClass=c);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)n.delete(t),u(t,h,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){b.push(this),o.upgrade.apply(o,arguments),b.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 h=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!h(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),h(e)||(e=l.get(e)?.getRootNode()||document)}return e.customElements},p=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)}},d=(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)})},f=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):f(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),s.set(t,e),a=t;try{new e.elementClass}catch(t){f(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)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const x=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&l.set(t,this),b.pop(),t}};x(ShadowRoot,"createElement",document),x(ShadowRoot,"importNode",document),x(Element,"insertAdjacentHTML");const y=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){b.push(this),i.set.call(this,t),b.pop()}})};if(y(Element,"innerHTML"),y(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(hi){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.warn(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=[]}}
13
18
  /**
14
19
  * @license
15
20
  * Copyright 2017 Google LLC
16
21
  * SPDX-License-Identifier: BSD-3-Clause
17
- */
18
- var v;b.finalized=!0,b.elementProperties=new Map,b.elementStyles=[],b.shadowRootOptions={mode:"open"},null==h||h({ReactiveElement:b}),(null!==(d=globalThis.reactiveElementVersions)&&void 0!==d?d:globalThis.reactiveElementVersions=[]).push("1.2.2");const g=globalThis.trustedTypes,y=g?g.createPolicy("lit-html",{createHTML:t=>t}):void 0,x=`lit$${(Math.random()+"").slice(9)}$`,k="?"+x,_=`<${k}>`,w=document,$=(t="")=>w.createComment(t),O=t=>null===t||"object"!=typeof t&&"function"!=typeof t,S=Array.isArray,z=t=>{var e;return S(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])},R=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,C=/-->/g,E=/>/g,T=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,N=/'/g,F=/"/g,A=/^(?:script|style|textarea|title)$/i,M=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),B=Symbol.for("lit-noChange"),j=Symbol.for("lit-nothing"),D=new WeakMap,L=w.createTreeWalker(w,129,null,!1),U=(t,e)=>{const i=t.length-1,r=[];let o,c=2===e?"<svg>":"",n=R;for(let e=0;e<i;e++){const i=t[e];let a,s,d=-1,l=0;for(;l<i.length&&(n.lastIndex=l,s=n.exec(i),null!==s);)l=n.lastIndex,n===R?"!--"===s[1]?n=C:void 0!==s[1]?n=E:void 0!==s[2]?(A.test(s[2])&&(o=RegExp("</"+s[2],"g")),n=T):void 0!==s[3]&&(n=T):n===T?">"===s[0]?(n=null!=o?o:R,d=-1):void 0===s[1]?d=-2:(d=n.lastIndex-s[2].length,a=s[1],n=void 0===s[3]?T:'"'===s[3]?F:N):n===F||n===N?n=T:n===C||n===E?n=R:(n=T,o=void 0);const p=n===T&&t[e+1].startsWith("/>")?" ":"";c+=n===R?i+_:d>=0?(r.push(a),i.slice(0,d)+"$lit$"+i.slice(d)+x+p):i+x+(-2===d?(r.push(void 0),e):p)}const a=c+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==y?y.createHTML(a):a,r]};class I{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let o=0,c=0;const n=t.length-1,a=this.parts,[s,d]=U(t,e);if(this.el=I.createElement(s,i),L.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(r=L.nextNode())&&a.length<n;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const e of r.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(x)){const i=d[c++];if(t.push(e),void 0!==i){const t=r.getAttribute(i.toLowerCase()+"$lit$").split(x),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?G:"?"===e[1]?Z:"@"===e[1]?q:W})}else a.push({type:6,index:o})}for(const e of t)r.removeAttribute(e)}if(A.test(r.tagName)){const t=r.textContent.split(x),e=t.length-1;if(e>0){r.textContent=g?g.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],$()),L.nextNode(),a.push({type:2,index:++o});r.append(t[e],$())}}}else if(8===r.nodeType)if(r.data===k)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=r.data.indexOf(x,t+1));)a.push({type:7,index:o}),t+=x.length-1}o++}}static createElement(t,e){const i=w.createElement("template");return i.innerHTML=t,i}}function P(t,e,i=t,r){var o,c,n,a;if(e===B)return e;let s=void 0!==r?null===(o=i._$Cl)||void 0===o?void 0:o[r]:i._$Cu;const d=O(e)?void 0:e._$litDirective$;return(null==s?void 0:s.constructor)!==d&&(null===(c=null==s?void 0:s._$AO)||void 0===c||c.call(s,!1),void 0===d?s=void 0:(s=new d(t),s._$AT(t,i,r)),void 0!==r?(null!==(n=(a=i)._$Cl)&&void 0!==n?n:a._$Cl=[])[r]=s:i._$Cu=s),void 0!==s&&(e=P(t,s._$AS(t,e.values),s,r)),e}class H{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:r}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:w).importNode(i,!0);L.currentNode=o;let c=L.nextNode(),n=0,a=0,s=r[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new V(c,c.nextSibling,this,t):1===s.type?e=new s.ctor(c,s.name,s.strings,this,t):6===s.type&&(e=new X(c,this,t)),this.v.push(e),s=r[++a]}n!==(null==s?void 0:s.index)&&(c=L.nextNode(),n++)}return o}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class V{constructor(t,e,i,r){var o;this.type=2,this._$AH=j,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cg=null===(o=null==r?void 0:r.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}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=P(this,t,e),O(t)?t===j||null==t||""===t?(this._$AH!==j&&this._$AR(),this._$AH=j):t!==this._$AH&&t!==B&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):z(t)?this.A(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==j&&O(this._$AH)?this._$AA.nextSibling.data=t:this.S(w.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:r}=t,o="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=I.createElement(r.h,this.options)),r);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.m(i);else{const t=new H(o,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=D.get(t.strings);return void 0===e&&D.set(t.strings,e=new I(t)),e}A(t){S(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const o of t)r===e.length?e.push(i=new V(this.M($()),this.M($()),this,this.options)):i=e[r],i._$AI(o),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$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._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class W{constructor(t,e,i,r,o){this.type=1,this._$AH=j,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,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,r){const o=this.strings;let c=!1;if(void 0===o)t=P(this,t,e,0),c=!O(t)||t!==this._$AH&&t!==B,c&&(this._$AH=t);else{const r=t;let n,a;for(t=o[0],n=0;n<o.length-1;n++)a=P(this,r[i+n],e,n),a===B&&(a=this._$AH[n]),c||(c=!O(a)||a!==this._$AH[n]),a===j?t=j:t!==j&&(t+=(null!=a?a:"")+o[n+1]),this._$AH[n]=a}c&&!r&&this.k(t)}k(t){t===j?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class G extends W{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===j?void 0:t}}const K=g?g.emptyScript:"";class Z extends W{constructor(){super(...arguments),this.type=4}k(t){t&&t!==j?this.element.setAttribute(this.name,K):this.element.removeAttribute(this.name)}}class q extends W{constructor(t,e,i,r,o){super(t,e,i,r,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=P(this,t,e,0))&&void 0!==i?i:j)===B)return;const r=this._$AH,o=t===j&&r!==j||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,c=t!==j&&(r===j||o);o&&this.element.removeEventListener(this.name,this,r),c&&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 X{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){P(this,t)}}const J={P:"$lit$",V:x,L:k,I:1,N:U,R:H,D:z,j:P,H:V,O:W,F:Z,B:q,W:G,Z:X},Y=window.litHtmlPolyfillSupport;
22
+ */const i=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};function o(t){return(e,o)=>void 0!==o?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,e,o):i(t,e)
19
23
  /**
20
24
  * @license
21
25
  * Copyright 2017 Google LLC
22
26
  * SPDX-License-Identifier: BSD-3-Clause
23
- */
24
- var Q,tt;null==Y||Y(I,V),(null!==(v=globalThis.litHtmlVersions)&&void 0!==v?v:globalThis.litHtmlVersions=[]).push("2.1.3");class et extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=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._$Dt=((t,e,i)=>{var r,o;const c=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:e;let n=c._$litPart$;if(void 0===n){const t=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;c._$litPart$=n=new V(e.insertBefore($(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return B}}et.finalized=!0,et._$litElement$=!0,null===(Q=globalThis.litElementHydrateSupport)||void 0===Q||Q.call(globalThis,{LitElement:et});const it=globalThis.litElementPolyfillSupport;null==it||it({LitElement:et}),(null!==(tt=globalThis.litElementVersions)&&void 0!==tt?tt:globalThis.litElementVersions=[]).push("3.1.2");
27
+ */}function s(t){return o({...t,state:!0})}
25
28
  /**
26
29
  * @license
27
30
  * Copyright 2017 Google LLC
28
31
  * SPDX-License-Identifier: BSD-3-Clause
29
- */
30
- const rt=t=>e=>"function"==typeof e?((t,e)=>(window.customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:i,elements:r}=e;return{kind:i,elements:r,finisher(e){window.customElements.define(t,e)}}})(t,e)
32
+ */const n=({finisher:t,descriptor:e})=>(i,o)=>{var s;if(void 0===o){const o=null!==(s=i.originalKey)&&void 0!==s?s:i.key,n=null!=e?{kind:"method",placement:"prototype",key:o,descriptor:e(i.key)}:{...i,key:o};return null!=t&&(n.finisher=function(e){t(e,o)}),n}{const s=i.constructor;void 0!==e&&Object.defineProperty(i,o,e(o)),null==t||t(s,o)}}
31
33
  /**
32
34
  * @license
33
35
  * Copyright 2017 Google LLC
34
36
  * SPDX-License-Identifier: BSD-3-Clause
35
- */,ot=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};function ct(t){return(e,i)=>void 0!==i?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,e,i):ot(t,e)
37
+ */;function r(t,e){return n({descriptor:i=>{const o={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;o.get=function(){var i,o;return void 0===this[e]&&(this[e]=null!==(o=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==o?o:null),this[e]}}return o}})}
36
38
  /**
37
39
  * @license
38
40
  * Copyright 2017 Google LLC
39
41
  * SPDX-License-Identifier: BSD-3-Clause
40
- */}function nt(t){return ct({...t,state:!0})}
42
+ */
41
43
  /**
42
44
  * @license
43
- * Copyright 2017 Google LLC
45
+ * Copyright 2021 Google LLC
44
46
  * SPDX-License-Identifier: BSD-3-Clause
45
- */const at=({finisher:t,descriptor:e})=>(i,r)=>{var o;if(void 0===r){const r=null!==(o=i.originalKey)&&void 0!==o?o:i.key,c=null!=e?{kind:"method",placement:"prototype",key:r,descriptor:e(i.key)}:{...i,key:r};return null!=t&&(c.finisher=function(e){t(e,r)}),c}{const o=i.constructor;void 0!==e&&Object.defineProperty(i,r,e(r)),null==t||t(o,r)}}
47
+ */
48
+ var l;const a=null!=(null===(l=window.HTMLSlotElement)||void 0===l?void 0:l.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));function h(t){const{slot:e,selector:i}=null!=t?t:{};return n({descriptor:o=>({get(){var o;const s="slot"+(e?`[name=${e}]`:":not([name])"),n=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(s),r=null!=n?a(n,t):[];return i?r.filter((t=>t.matches(i))):r},enumerable:!0,configurable:!0})})}
46
49
  /**
47
50
  * @license
48
51
  * Copyright 2017 Google LLC
49
52
  * SPDX-License-Identifier: BSD-3-Clause
50
- */;function st(t){return at({finisher:(e,i)=>{Object.assign(e.prototype[i],t)}})}
53
+ */const c=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};
51
54
  /**
52
55
  * @license
53
- * Copyright 2017 Google LLC
56
+ * Copyright 2019 Google LLC
54
57
  * SPDX-License-Identifier: BSD-3-Clause
55
- */function dt(t,e){return at({descriptor:i=>{const r={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;r.get=function(){var i,r;return void 0===this[e]&&(this[e]=null!==(r=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==r?r:null),this[e]}}return r}})}
58
+ */
59
+ const p=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,d=Symbol(),f=new Map;class u{constructor(t,e){if(this._$cssResult$=!0,e!==d)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=f.get(this.cssText);return p&&void 0===t&&(f.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const v=t=>new u("string"==typeof t?t:t+"",d),b=(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 u(i,d)},x=(t,e)=>{p?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=window.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},y=p?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return v(e)})(t):t
56
60
  /**
57
61
  * @license
58
62
  * Copyright 2017 Google LLC
59
63
  * SPDX-License-Identifier: BSD-3-Clause
60
- */
64
+ */;var g;const m=window.trustedTypes,$=m?m.emptyScript:"",w=window.reactiveElementPolyfillSupport,k={toAttribute(t,e){switch(e){case Boolean:t=t?$: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:k,reflect:!1,hasChanged:O};class C extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var e;null!==(e=this.l)&&void 0!==e||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Eh(i,e);void 0!==o&&(this._$Eu.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._$Eu=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(y(t))}else void 0!==t&&e.push(y(t));return e}static _$Eh(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$Eg)&&void 0!==e?e:this._$Eg=[]).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._$Eg)||void 0===e||e.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Et.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 x(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Eg)||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._$Eg)||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)}_$ES(t,e,i=S){var o,s;const n=this.constructor._$Eh(t,i);if(void 0!==n&&!0===i.reflect){const r=(null!==(s=null===(o=i.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==s?s:k.toAttribute)(e,i.type);this._$Ei=t,null==r?this.removeAttribute(n):this.setAttribute(n,r),this._$Ei=null}}_$AK(t,e){var i,o,s;const n=this.constructor,r=n._$Eu.get(t);if(void 0!==r&&this._$Ei!==r){const t=n.getPropertyOptions(r),l=t.converter,a=null!==(s=null!==(o=null===(i=l)||void 0===i?void 0:i.fromAttribute)&&void 0!==o?o:"function"==typeof l?l:null)&&void 0!==s?s:k.fromAttribute;this._$Ei=r,this[r]=a(e,t.type),this._$Ei=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._$Ei!==t&&(void 0===this._$E_&&(this._$E_=new Map),this._$E_.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$Ep=this._$EC())}async _$EC(){this.isUpdatePending=!0;try{await this._$Ep}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._$Et&&(this._$Et.forEach(((t,e)=>this[e]=t)),this._$Et=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$Eg)||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._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$Eg)||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)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(t){return!0}update(t){void 0!==this._$E_&&(this._$E_.forEach(((t,e)=>this._$ES(e,this[e],t))),this._$E_=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
61
65
  /**
62
66
  * @license
63
67
  * Copyright 2017 Google LLC
64
68
  * SPDX-License-Identifier: BSD-3-Clause
65
69
  */
66
- function lt(t){return at({descriptor:e=>({async get(){var e;return await this.updateComplete,null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t)},enumerable:!0,configurable:!0})})}
67
- /**
68
- * @license
69
- * Copyright 2021 Google LLC
70
- * SPDX-License-Identifier: BSD-3-Clause
71
- */var pt;const ht=null!=(null===(pt=window.HTMLSlotElement)||void 0===pt?void 0:pt.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));
70
+ var E;C.finalized=!0,C.elementProperties=new Map,C.elementStyles=[],C.shadowRootOptions={mode:"open"},null==w||w({ReactiveElement:C}),(null!==(g=globalThis.reactiveElementVersions)&&void 0!==g?g:globalThis.reactiveElementVersions=[]).push("1.2.2");const N=globalThis.trustedTypes,z=N?N.createPolicy("lit-html",{createHTML:t=>t}):void 0,M=`lit$${(Math.random()+"").slice(9)}$`,R="?"+M,F=`<${R}>`,B=document,j=(t="")=>B.createComment(t),U=t=>null===t||"object"!=typeof t&&"function"!=typeof t,D=Array.isArray,L=t=>{var e;return D(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])},T=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,A=/-->/g,_=/>/g,P=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,I=/'/g,H=/"/g,W=/^(?:script|style|textarea|title)$/i,K=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),V=Symbol.for("lit-noChange"),Z=Symbol.for("lit-nothing"),J=new WeakMap,q=B.createTreeWalker(B,129,null,!1),X=(t,e)=>{const i=t.length-1,o=[];let s,n=2===e?"<svg>":"",r=T;for(let e=0;e<i;e++){const i=t[e];let l,a,h=-1,c=0;for(;c<i.length&&(r.lastIndex=c,a=r.exec(i),null!==a);)c=r.lastIndex,r===T?"!--"===a[1]?r=A:void 0!==a[1]?r=_:void 0!==a[2]?(W.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=P):void 0!==a[3]&&(r=P):r===P?">"===a[0]?(r=null!=s?s:T,h=-1):void 0===a[1]?h=-2:(h=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?P:'"'===a[3]?H:I):r===H||r===I?r=P:r===A||r===_?r=T:(r=P,s=void 0);const p=r===P&&t[e+1].startsWith("/>")?" ":"";n+=r===T?i+F:h>=0?(o.push(l),i.slice(0,h)+"$lit$"+i.slice(h)+M+p):i+M+(-2===h?(o.push(void 0),e):p)}const l=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==z?z.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,h]=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=h[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(W.test(o.tagName)){const t=o.textContent.split(M),e=t.length-1;if(e>0){o.textContent=N?N.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===R)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=B.createElement("template");return i.innerHTML=t,i}}function G(t,e,i=t,o){var s,n,r,l;if(e===V)return e;let a=void 0!==o?null===(s=i._$Cl)||void 0===s?void 0:s[o]:i._$Cu;const h=U(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==h&&(null===(n=null==a?void 0:a._$AO)||void 0===n||n.call(a,!1),void 0===h?a=void 0:(a=new h(t),a._$AT(t,i,o)),void 0!==o?(null!==(r=(l=i)._$Cl)&&void 0!==r?r:l._$Cl=[])[o]=a:i._$Cu=a),void 0!==a&&(e=G(t,a._$AS(t,e.values),a,o)),e}class Q{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:B).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.v.push(e),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=q.nextNode(),r++)}return s}m(t){let e=0;for(const i of this.v)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=Z,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cg=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._$Cg}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),U(t)?t===Z||null==t||""===t?(this._$AH!==Z&&this._$AR(),this._$AH=Z):t!==this._$AH&&t!==V&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):L(t)?this.A(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==Z&&U(this._$AH)?this._$AA.nextSibling.data=t:this.S(B.createTextNode(t)),this._$AH=t}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.m(i);else{const t=new Q(s,this),e=t.p(this.options);t.m(i),this.S(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}A(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 tt(this.M(j()),this.M(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._$Cg=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=Z,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=Z}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=!U(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=G(this,o[i+r],e,r),l===V&&(l=this._$AH[r]),n||(n=!U(l)||l!==this._$AH[r]),l===Z?t=Z:t!==Z&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.k(t)}k(t){t===Z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class it extends et{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===Z?void 0:t}}const ot=N?N.emptyScript:"";class st extends et{constructor(){super(...arguments),this.type=4}k(t){t&&t!==Z?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:Z)===V)return;const o=this._$AH,s=t===Z&&o!==Z||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==Z&&(o===Z||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$",V:M,L:R,I:1,N:X,R:Q,D:L,j:G,H:tt,O:et,F:st,B:nt,W:it,Z:rt},at=window.litHtmlPolyfillSupport;
72
71
  /**
73
72
  * @license
74
73
  * Copyright 2017 Google LLC
75
74
  * SPDX-License-Identifier: BSD-3-Clause
76
75
  */
77
- function ut(t,e,i){let r,o=t;return"object"==typeof t?(o=t.slot,r=t):r={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return at({descriptor:r=>({get(){var r;const o="slot"+(e?`[name=${e}]`:":not([name])"),c=null===(r=this.renderRoot)||void 0===r?void 0:r.querySelector(o),n=null!=c?ht(c,t):[];return i?n.filter((t=>t.matches(i))):n},enumerable:!0,configurable:!0})})}({slot:o,flatten:e,selector:i}):at({descriptor:t=>({get(){var t,e;const i="slot"+(o?`[name=${o}]`:":not([name])"),c=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==c?void 0:c.assignedNodes(r))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}(function(){function t(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}function e(e){var i="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return i?i.call(e):{next:t(e)}}function i(t){if(!(t instanceof Array)){t=e(t);for(var i,r=[];!(i=t.next()).done;)r.push(i.value);t=r}return t}var r="function"==typeof Object.create?Object.create:function(t){function e(){}return e.prototype=t,new e};var o,c=function(t){t=["object"==typeof globalThis&&globalThis,t,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var e=0;e<t.length;++e){var i=t[e];if(i&&i.Math==Math)return i}throw Error("Cannot find global object")}(this),n=function(){if("undefined"!=typeof Reflect&&Reflect.construct){if(function(){function t(){}return Reflect.construct(t,[],(function(){})),new t instanceof t}())return Reflect.construct;var t=Reflect.construct;return function(e,i,r){return e=t(e,i),r&&Reflect.setPrototypeOf(e,r.prototype),e}}return function(t,e,i){return void 0===i&&(i=t),i=r(i.prototype||Object.prototype),Function.prototype.apply.call(t,i,e)||i}}();if("function"==typeof Object.setPrototypeOf)o=Object.setPrototypeOf;else{var a;t:{var s={};try{s.__proto__={a:!0},a=s.a;break t}catch(t){}a=!1}o=a?function(t,e){if(t.__proto__=e,t.__proto__!==e)throw new TypeError(t+" is not extensible");return t}:null}var d=o;if(!ShadowRoot.prototype.createElement){var l,p=window.HTMLElement,h=window.customElements.define,u=window.customElements.get,f=window.customElements,m=new WeakMap,b=new WeakMap,v=new WeakMap,g=new WeakMap;window.CustomElementRegistry=function(){this.l=new Map,this.o=new Map,this.i=new Map,this.h=new Map},window.CustomElementRegistry.prototype.define=function(t,i){if(t=t.toLowerCase(),void 0!==this.j(t))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': the name \""+t+'" has already been used with this registry');if(void 0!==this.o.get(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");var r=i.prototype.attributeChangedCallback,o=new Set(i.observedAttributes||[]);if(x(i,o,r),r={g:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:r,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:o},this.l.set(t,r),this.o.set(i,r),(o=u.call(f,t))||(o=y(t),h.call(f,t,o)),this===window.customElements&&(v.set(i,r),r.s=o),o=this.h.get(t)){this.h.delete(t);for(var c=(o=e(o)).next();!c.done;c=o.next())c=c.value,b.delete(c),_(c,r,!0)}return void 0!==(r=this.i.get(t))&&(r.resolve(i),this.i.delete(t)),i},window.CustomElementRegistry.prototype.upgrade=function(){$.push(this),f.upgrade.apply(f,arguments),$.pop()},window.CustomElementRegistry.prototype.get=function(t){var e;return null==(e=this.l.get(t))?void 0:e.g},window.CustomElementRegistry.prototype.j=function(t){return this.l.get(t)},window.CustomElementRegistry.prototype.whenDefined=function(t){var e=this.j(t);if(void 0!==e)return Promise.resolve(e.g);var i=this.i.get(t);return void 0===i&&((i={}).promise=new Promise((function(t){return i.resolve=t})),this.i.set(t,i)),i.promise},window.CustomElementRegistry.prototype.m=function(t,e,i){var r=this.h.get(e);r||this.h.set(e,r=new Set),i?r.add(t):r.delete(t)},window.HTMLElement=function(){var t=l;if(t)return l=void 0,t;var e=v.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return t=Reflect.construct(p,[],e.s),Object.setPrototypeOf(t,this.constructor.prototype),m.set(t,e),t},window.HTMLElement.prototype=p.prototype;var y=function(t){function e(){var e=Reflect.construct(p,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);t:{var i=e.getRootNode();if(!(i===document||i instanceof ShadowRoot)){if((i=$[$.length-1])instanceof CustomElementRegistry){var r=i;break t}(i=i.getRootNode())===document||i instanceof ShadowRoot||(i=(null==(r=g.get(i))?void 0:r.getRootNode())||document)}r=i.customElements}return(i=(r=r||window.customElements).j(t))?_(e,i):b.set(e,r),e}return c.Object.defineProperty(e,"formAssociated",{configurable:!0,enumerable:!0,get:function(){return!0}}),e.prototype.connectedCallback=function(){var e=m.get(this);e?e.connectedCallback&&e.connectedCallback.apply(this,arguments):b.get(this).m(this,t,!0)},e.prototype.disconnectedCallback=function(){var e=m.get(this);e?e.disconnectedCallback&&e.disconnectedCallback.apply(this,arguments):b.get(this).m(this,t,!1)},e.prototype.adoptedCallback=function(){var t,e;null==(t=m.get(this))||null==(e=t.adoptedCallback)||e.apply(this,arguments)},e.prototype.formAssociatedCallback=function(){var t,e=m.get(this);e&&e.formAssociated&&(null==e||null==(t=e.formAssociatedCallback)||t.apply(this,arguments))},e.prototype.formDisabledCallback=function(){var t,e=m.get(this);null!=e&&e.formAssociated&&(null==e||null==(t=e.formDisabledCallback)||t.apply(this,arguments))},e.prototype.formResetCallback=function(){var t,e=m.get(this);null!=e&&e.formAssociated&&(null==e||null==(t=e.formResetCallback)||t.apply(this,arguments))},e.prototype.formStateRestoreCallback=function(){var t,e=m.get(this);null!=e&&e.formAssociated&&(null==e||null==(t=e.formStateRestoreCallback)||t.apply(this,arguments))},e},x=function(t,e,i){if(0!==e.size&&void 0!==i){var r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,o){if(t=t.toLowerCase(),e.has(t)){var c=this.getAttribute(t);r.call(this,t,o),i.call(this,t,c,o)}else r.call(this,t,o)});var o=t.prototype.removeAttribute;o&&(t.prototype.removeAttribute=function(t){if(t=t.toLowerCase(),e.has(t)){var r=this.getAttribute(t);o.call(this,t),i.call(this,t,r,null)}else o.call(this,t)})}},k=function(t){var e=Object.getPrototypeOf(t);if(e!==window.HTMLElement)return e===p?Object.setPrototypeOf(t,window.HTMLElement):k(e)},_=function(t,e,i){i=void 0!==i&&i,Object.setPrototypeOf(t,e.g.prototype),m.set(t,e),l=t;try{new e.g}catch(t){k(e.g),new e.g}e.observedAttributes.forEach((function(i){t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},w=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){var e=w.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};var $=[document],O=function(t,e,i){var r=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){$.push(this);var t=r.apply(i||this,arguments);return void 0!==t&&g.set(t,this),$.pop(),t}};O(ShadowRoot,"createElement",document),O(ShadowRoot,"importNode",document),O(Element,"insertAdjacentHTML");var S=function(t){var e=Object.getOwnPropertyDescriptor(t.prototype,"innerHTML");Object.defineProperty(t.prototype,"innerHTML",Object.assign({},e,{set:function(t){$.push(this),e.set.call(this,t),$.pop()}}))};if(S(Element),S(ShadowRoot),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){var z=new WeakMap,R=HTMLElement.prototype.attachInternals;HTMLElement.prototype.attachInternals=function(t){for(var e=[],r=0;r<arguments.length;++r)e[r]=arguments[r];return e=R.call.apply(R,[this].concat(i(e))),z.set(e,this),e},["setFormValue","setValidity","checkValidity","reportValidity"].forEach((function(t){var e=window.ElementInternals.prototype,r=e[t];e[t]=function(t){for(var e=[],o=0;o<arguments.length;++o)e[o]=arguments[o];if(o=z.get(this),!0!==m.get(o).formAssociated)throw new DOMException("Failed to execute "+r+" on 'ElementInternals': The target element is not a form-associated custom element.");null==r||r.call.apply(r,[this].concat(i(e)))}}));var C=function(t){var e=n(Array,[].concat(i(t)),this.constructor);return e.h=t,e},E=C,T=Array;if(E.prototype=r(T.prototype),E.prototype.constructor=E,d)d(E,T);else for(var N in T)if("prototype"!=N)if(Object.defineProperties){var F=Object.getOwnPropertyDescriptor(T,N);F&&Object.defineProperty(E,N,F)}else E[N]=T[N];E.u=T.prototype,c.Object.defineProperty(C.prototype,"value",{configurable:!0,enumerable:!0,get:function(){var t;return(null==(t=this.h.find((function(t){return!0===t.checked})))?void 0:t.value)||""}});var A=function(t){var e=this,i=new Map;t.forEach((function(t,r){var o=t.getAttribute("name"),c=i.get(o)||[];e[+r]=t,c.push(t),i.set(o,c)})),this.length=t.length,i.forEach((function(t,i){t&&(e[i]=1===t.length?t[0]:new C(t))}))};A.prototype.namedItem=function(t){return this[t]};var M=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){for(var t=M.get.call(this,[]),i=[],r=(t=e(t)).next();!r.done;r=t.next()){r=r.value;var o=m.get(r);o&&!0!==o.formAssociated||i.push(r)}return new A(i)}})}}}).call("object"==typeof globalThis?globalThis:window);try{window.customElements.define("custom-element",null)}catch(Ge){const t=window.customElements.define;window.customElements.define=(e,i,r)=>{try{t.bind(window.customElements)(e,i,r)}catch(t){console.warn(e,i,r,t)}}}class ft{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=[]}}const mt=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};class bt{constructor(t,e,i,r,o){this.name=t,this.category=e,this.fallbackVariable=i,this.defaultValue=r,this.context=o,this._$cssResult$=!0,this.value=this.get()}get cssText(){return this.value.cssText}get styleSheet(){return this.value.styleSheet}toString(){return this.value.toString()}static create(t,e,i){return new bt(t,e,void 0,i)}static extend(t,e,i){return new bt(t,e.category,e,i)}static external(t,e){return new bt(t.name,t.category,t.fallbackVariable,t.defaultValue,e)}get(t){return n`var(${c(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):c(null!=t?t:this.defaultValue)}lastResortDefaultValue(){var t,e;return null!==(t=this.defaultValue)&&void 0!==t?t:null===(e=this.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()}breadcrumb(){return this.fallbackVariable?[this.fallbackVariable.name,...this.fallbackVariable.breadcrumb()]:[]}}function vt(t,e){return c(`${t.name}: ${e}`)}const gt={colorPrimary:bt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:bt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:bt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:bt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:bt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:bt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:bt.create("--ft-color-error","COLOR","#B00020"),colorOutline:bt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:bt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:bt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:bt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:bt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:bt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:bt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:bt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:bt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:bt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:bt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:bt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:bt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:bt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:bt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:bt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:bt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:bt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:bt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:bt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:bt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:bt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:bt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:bt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:bt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:bt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:bt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:bt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:bt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:bt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:bt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:bt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:bt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:bt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:bt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:bt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:bt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:bt.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:bt.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:bt.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:bt.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:bt.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:bt.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:bt.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:bt.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:bt.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:bt.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:bt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:bt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:bt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:bt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:bt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:bt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:bt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:bt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
76
+ var ht,ct;null==at||at(Y,tt),(null!==(E=globalThis.litHtmlVersions)&&void 0!==E?E:globalThis.litHtmlVersions=[]).push("2.1.3");class pt extends C{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=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._$Dt=((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._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return V}}pt.finalized=!0,pt._$litElement$=!0,null===(ht=globalThis.litElementHydrateSupport)||void 0===ht||ht.call(globalThis,{LitElement:pt});const dt=globalThis.litElementPolyfillSupport;null==dt||dt({LitElement:pt}),(null!==(ct=globalThis.litElementVersions)&&void 0!==ct?ct:globalThis.litElementVersions=[]).push("3.1.2");class ft{constructor(t,e,i,o,s){this.name=t,this.category=e,this.fallbackVariable=i,this.defaultValue=o,this.context=s,this._$cssResult$=!0,this.value=this.get()}get cssText(){return this.value.cssText}get styleSheet(){return this.value.styleSheet}toString(){return this.value.toString()}static create(t,e,i){return new ft(t,e,void 0,i)}static extend(t,e,i){return new ft(t,e.category,e,i)}static external(t,e){return new ft(t.name,t.category,t.fallbackVariable,t.defaultValue,e)}get(t){return b`var(${v(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):v(null!=t?t:this.defaultValue)}lastResortDefaultValue(){var t,e;return null!==(t=this.defaultValue)&&void 0!==t?t:null===(e=this.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()}breadcrumb(){return this.fallbackVariable?[this.fallbackVariable.name,...this.fallbackVariable.breadcrumb()]:[]}}function ut(t,e){return v(`${t.name}: ${e}`)}const vt={colorPrimary:ft.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:ft.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:ft.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:ft.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:ft.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:ft.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:ft.create("--ft-color-error","COLOR","#B00020"),colorOutline:ft.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:ft.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:ft.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:ft.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:ft.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:ft.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:ft.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:ft.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:ft.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:ft.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:ft.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:ft.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:ft.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:ft.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:ft.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:ft.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:ft.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:ft.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:ft.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:ft.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:ft.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:ft.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:ft.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:ft.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:ft.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:ft.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:ft.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:ft.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:ft.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:ft.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:ft.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:ft.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:ft.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:ft.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:ft.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:ft.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:ft.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:ft.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:ft.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:ft.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:ft.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:ft.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:ft.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:ft.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:ft.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:ft.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:ft.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:ft.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:ft.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:ft.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:ft.create("--ft-border-radius-XL","SIZE","16px"),titleFont:ft.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:ft.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:ft.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:ft.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
78
77
  /**
79
78
  * @license
80
79
  * Copyright 2021 Google LLC
81
80
  * SPDX-License-Identifier: BSD-3-Clause
82
- */class yt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:r}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const o=this.renderOptions.creationScope=this.attachShadow({...r,customElements:t.registry});return a(o,this.constructor.elementStyles),o}}}(et)){constructor(){super(),this.constructorName=this.constructor.name,this.proto=this.constructor.prototype}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),M`
83
- ${t.map((t=>M`
81
+ */class bt 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 x(s,this.constructor.elementStyles),s}}}(pt)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),K`
82
+ ${t.map((t=>K`
84
83
  <style>${t}</style>
85
84
  `))}
86
85
  ${this.getTemplate()}
87
- `}adoptedCallback(){Object.getPrototypeOf(this)!==this.constructorName&&Object.setPrototypeOf(this,this.proto)}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}const xt=n`
86
+ `}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}const xt=b`
88
87
  .ft-no-text-select {
89
88
  -webkit-touch-callout: none;
90
89
  -webkit-user-select: none;
@@ -93,418 +92,221 @@ function ut(t,e,i){let r,o=t;return"object"==typeof t?(o=t.slot,r=t):r={flatten:
93
92
  -ms-user-select: none;
94
93
  user-select: none;
95
94
  }
96
- `;var kt,_t,wt;const $t=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(wt=null===(_t=null===(kt=window.safari)||void 0===kt?void 0:kt.pushNotification)||void 0===_t?void 0:_t.toString())&&void 0!==wt?wt:""),Ot=t=>({_$litStatic$:t}),St=new Map,zt=(t=>(e,...i)=>{var r;const o=i.length;let c,n;const a=[],s=[];let d,l=0,p=!1;for(;l<o;){for(d=e[l];l<o&&void 0!==(n=i[l],c=null===(r=n)||void 0===r?void 0:r._$litStatic$);)d+=c+e[++l],p=!0;s.push(n),a.push(d),l++}if(l===o&&a.push(e[o]),p){const t=a.join("$$lit$$");void 0===(e=St.get(t))&&(a.raw=a,St.set(t,e=a)),i=s}return t(e,...i)})(M);
95
+ `;var yt,gt,mt;const $t=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(mt=null===(gt=null===(yt=window.safari)||void 0===yt?void 0:yt.pushNotification)||void 0===gt?void 0:gt.toString())&&void 0!==mt?mt:""),wt=t=>({_$litStatic$:t}),kt=new Map,Ot=(t=>(e,...i)=>{var o;const s=i.length;let n,r;const l=[],a=[];let h,c=0,p=!1;for(;c<s;){for(h=e[c];c<s&&void 0!==(r=i[c],n=null===(o=r)||void 0===o?void 0:o._$litStatic$);)h+=n+e[++c],p=!0;a.push(r),l.push(h),c++}if(c===s&&l.push(e[s]),p){const t=l.join("$$lit$$");void 0===(e=kt.get(t))&&(l.raw=l,kt.set(t,e=l)),i=a}return t(e,...i)})(K);
97
96
  /**
98
97
  * @license
99
98
  * Copyright 2020 Google LLC
100
99
  * SPDX-License-Identifier: BSD-3-Clause
101
- */var Rt,Ct=function(t,e,i,r){for(var o,c=arguments.length,n=c<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,a=t.length-1;a>=0;a--)(o=t[a])&&(n=(c<3?o(n):c>3?o(e,i,n):o(e,i))||n);return c>3&&n&&Object.defineProperty(e,i,n),n};!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"}(Rt||(Rt={}));const Et=bt.extend("--ft-typography-font-family",gt.titleFont),Tt=bt.extend("--ft-typography-font-family",gt.contentFont),Nt={fontFamily:Tt,fontSize:bt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:bt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:bt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:bt.create("--ft-typography-line-height","SIZE","24px"),textTransform:bt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Ft=bt.extend("--ft-typography-title-font-family",Et),At=bt.extend("--ft-typography-title-font-size",Nt.fontSize,"20px"),Mt=bt.extend("--ft-typography-title-font-weight",Nt.fontWeight,"normal"),Bt=bt.extend("--ft-typography-title-letter-spacing",Nt.letterSpacing,"0.15px"),jt=bt.extend("--ft-typography-title-line-height",Nt.lineHeight,"24px"),Dt=bt.extend("--ft-typography-title-text-transform",Nt.textTransform,"inherit"),Lt=bt.extend("--ft-typography-title-dense-font-family",Et),Ut=bt.extend("--ft-typography-title-dense-font-size",Nt.fontSize,"14px"),It=bt.extend("--ft-typography-title-dense-font-weight",Nt.fontWeight,"normal"),Pt=bt.extend("--ft-typography-title-dense-letter-spacing",Nt.letterSpacing,"0.105px"),Ht=bt.extend("--ft-typography-title-dense-line-height",Nt.lineHeight,"24px"),Vt=bt.extend("--ft-typography-title-dense-text-transform",Nt.textTransform,"inherit"),Wt=bt.extend("--ft-typography-subtitle1-font-family",Tt),Gt=bt.extend("--ft-typography-subtitle1-font-size",Nt.fontSize,"16px"),Kt=bt.extend("--ft-typography-subtitle1-font-weight",Nt.fontWeight,"600"),Zt=bt.extend("--ft-typography-subtitle1-letter-spacing",Nt.letterSpacing,"0.144px"),qt=bt.extend("--ft-typography-subtitle1-line-height",Nt.lineHeight,"24px"),Xt=bt.extend("--ft-typography-subtitle1-text-transform",Nt.textTransform,"inherit"),Jt=bt.extend("--ft-typography-subtitle2-font-family",Tt),Yt=bt.extend("--ft-typography-subtitle2-font-size",Nt.fontSize,"14px"),Qt=bt.extend("--ft-typography-subtitle2-font-weight",Nt.fontWeight,"normal"),te=bt.extend("--ft-typography-subtitle2-letter-spacing",Nt.letterSpacing,"0.098px"),ee=bt.extend("--ft-typography-subtitle2-line-height",Nt.lineHeight,"24px"),ie=bt.extend("--ft-typography-subtitle2-text-transform",Nt.textTransform,"inherit"),re=bt.extend("--ft-typography-body1-font-family",Tt),oe=bt.extend("--ft-typography-body1-font-size",Nt.fontSize,"16px"),ce=bt.extend("--ft-typography-body1-font-weight",Nt.fontWeight,"normal"),ne=bt.extend("--ft-typography-body1-letter-spacing",Nt.letterSpacing,"0.496px"),ae=bt.extend("--ft-typography-body1-line-height",Nt.lineHeight,"24px"),se=bt.extend("--ft-typography-body1-text-transform",Nt.textTransform,"inherit"),de={fontFamily:bt.extend("--ft-typography-body2-font-family",Tt),fontSize:bt.extend("--ft-typography-body2-font-size",Nt.fontSize,"14px"),fontWeight:bt.extend("--ft-typography-body2-font-weight",Nt.fontWeight,"normal"),letterSpacing:bt.extend("--ft-typography-body2-letter-spacing",Nt.letterSpacing,"0.252px"),lineHeight:bt.extend("--ft-typography-body2-line-height",Nt.lineHeight,"20px"),textTransform:bt.extend("--ft-typography-body2-text-transform",Nt.textTransform,"inherit")},le=bt.extend("--ft-typography-caption-font-family",Tt),pe=bt.extend("--ft-typography-caption-font-size",Nt.fontSize,"12px"),he=bt.extend("--ft-typography-caption-font-weight",Nt.fontWeight,"normal"),ue=bt.extend("--ft-typography-caption-letter-spacing",Nt.letterSpacing,"0.396px"),fe=bt.extend("--ft-typography-caption-line-height",Nt.lineHeight,"16px"),me=bt.extend("--ft-typography-caption-text-transform",Nt.textTransform,"inherit"),be=bt.extend("--ft-typography-breadcrumb-font-family",Tt),ve=bt.extend("--ft-typography-breadcrumb-font-size",Nt.fontSize,"10px"),ge=bt.extend("--ft-typography-breadcrumb-font-weight",Nt.fontWeight,"normal"),ye=bt.extend("--ft-typography-breadcrumb-letter-spacing",Nt.letterSpacing,"0.33px"),xe=bt.extend("--ft-typography-breadcrumb-line-height",Nt.lineHeight,"16px"),ke=bt.extend("--ft-typography-breadcrumb-text-transform",Nt.textTransform,"inherit"),_e=bt.extend("--ft-typography-overline-font-family",Tt),we=bt.extend("--ft-typography-overline-font-size",Nt.fontSize,"10px"),$e=bt.extend("--ft-typography-overline-font-weight",Nt.fontWeight,"normal"),Oe=bt.extend("--ft-typography-overline-letter-spacing",Nt.letterSpacing,"1.5px"),Se=bt.extend("--ft-typography-overline-line-height",Nt.lineHeight,"16px"),ze=bt.extend("--ft-typography-overline-text-transform",Nt.textTransform,"uppercase"),Re={fontFamily:bt.extend("--ft-typography-button-font-family",Tt),fontSize:bt.extend("--ft-typography-button-font-size",Nt.fontSize,"14px"),fontWeight:bt.extend("--ft-typography-button-font-weight",Nt.fontWeight,"600"),letterSpacing:bt.extend("--ft-typography-button-letter-spacing",Nt.letterSpacing,"1.246px"),lineHeight:bt.extend("--ft-typography-button-line-height",Nt.lineHeight,"16px"),textTransform:bt.extend("--ft-typography-button-text-transform",Nt.textTransform,"uppercase")},Ce=n`
100
+ */var St,Ct=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};!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"}(St||(St={}));const Et=ft.extend("--ft-typography-font-family",vt.titleFont),Nt=ft.extend("--ft-typography-font-family",vt.contentFont),zt={fontFamily:Nt,fontSize:ft.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ft.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ft.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ft.create("--ft-typography-line-height","SIZE","24px"),textTransform:ft.create("--ft-typography-text-transform","UNKNOWN","inherit")},Mt=ft.extend("--ft-typography-title-font-family",Et),Rt=ft.extend("--ft-typography-title-font-size",zt.fontSize,"20px"),Ft=ft.extend("--ft-typography-title-font-weight",zt.fontWeight,"normal"),Bt=ft.extend("--ft-typography-title-letter-spacing",zt.letterSpacing,"0.15px"),jt=ft.extend("--ft-typography-title-line-height",zt.lineHeight,"24px"),Ut=ft.extend("--ft-typography-title-text-transform",zt.textTransform,"inherit"),Dt=ft.extend("--ft-typography-title-dense-font-family",Et),Lt=ft.extend("--ft-typography-title-dense-font-size",zt.fontSize,"14px"),Tt=ft.extend("--ft-typography-title-dense-font-weight",zt.fontWeight,"normal"),At=ft.extend("--ft-typography-title-dense-letter-spacing",zt.letterSpacing,"0.105px"),_t=ft.extend("--ft-typography-title-dense-line-height",zt.lineHeight,"24px"),Pt=ft.extend("--ft-typography-title-dense-text-transform",zt.textTransform,"inherit"),It=ft.extend("--ft-typography-subtitle1-font-family",Nt),Ht=ft.extend("--ft-typography-subtitle1-font-size",zt.fontSize,"16px"),Wt=ft.extend("--ft-typography-subtitle1-font-weight",zt.fontWeight,"600"),Kt=ft.extend("--ft-typography-subtitle1-letter-spacing",zt.letterSpacing,"0.144px"),Vt=ft.extend("--ft-typography-subtitle1-line-height",zt.lineHeight,"24px"),Zt=ft.extend("--ft-typography-subtitle1-text-transform",zt.textTransform,"inherit"),Jt=ft.extend("--ft-typography-subtitle2-font-family",Nt),qt=ft.extend("--ft-typography-subtitle2-font-size",zt.fontSize,"14px"),Xt=ft.extend("--ft-typography-subtitle2-font-weight",zt.fontWeight,"normal"),Yt=ft.extend("--ft-typography-subtitle2-letter-spacing",zt.letterSpacing,"0.098px"),Gt=ft.extend("--ft-typography-subtitle2-line-height",zt.lineHeight,"24px"),Qt=ft.extend("--ft-typography-subtitle2-text-transform",zt.textTransform,"inherit"),te=ft.extend("--ft-typography-body1-font-family",Nt),ee=ft.extend("--ft-typography-body1-font-size",zt.fontSize,"16px"),ie=ft.extend("--ft-typography-body1-font-weight",zt.fontWeight,"normal"),oe=ft.extend("--ft-typography-body1-letter-spacing",zt.letterSpacing,"0.496px"),se=ft.extend("--ft-typography-body1-line-height",zt.lineHeight,"24px"),ne=ft.extend("--ft-typography-body1-text-transform",zt.textTransform,"inherit"),re={fontFamily:ft.extend("--ft-typography-body2-font-family",Nt),fontSize:ft.extend("--ft-typography-body2-font-size",zt.fontSize,"14px"),fontWeight:ft.extend("--ft-typography-body2-font-weight",zt.fontWeight,"normal"),letterSpacing:ft.extend("--ft-typography-body2-letter-spacing",zt.letterSpacing,"0.252px"),lineHeight:ft.extend("--ft-typography-body2-line-height",zt.lineHeight,"20px"),textTransform:ft.extend("--ft-typography-body2-text-transform",zt.textTransform,"inherit")},le=ft.extend("--ft-typography-caption-font-family",Nt),ae=ft.extend("--ft-typography-caption-font-size",zt.fontSize,"12px"),he=ft.extend("--ft-typography-caption-font-weight",zt.fontWeight,"normal"),ce=ft.extend("--ft-typography-caption-letter-spacing",zt.letterSpacing,"0.396px"),pe=ft.extend("--ft-typography-caption-line-height",zt.lineHeight,"16px"),de=ft.extend("--ft-typography-caption-text-transform",zt.textTransform,"inherit"),fe=ft.extend("--ft-typography-breadcrumb-font-family",Nt),ue=ft.extend("--ft-typography-breadcrumb-font-size",zt.fontSize,"10px"),ve=ft.extend("--ft-typography-breadcrumb-font-weight",zt.fontWeight,"normal"),be=ft.extend("--ft-typography-breadcrumb-letter-spacing",zt.letterSpacing,"0.33px"),xe=ft.extend("--ft-typography-breadcrumb-line-height",zt.lineHeight,"16px"),ye=ft.extend("--ft-typography-breadcrumb-text-transform",zt.textTransform,"inherit"),ge=ft.extend("--ft-typography-overline-font-family",Nt),me=ft.extend("--ft-typography-overline-font-size",zt.fontSize,"10px"),$e=ft.extend("--ft-typography-overline-font-weight",zt.fontWeight,"normal"),we=ft.extend("--ft-typography-overline-letter-spacing",zt.letterSpacing,"1.5px"),ke=ft.extend("--ft-typography-overline-line-height",zt.lineHeight,"16px"),Oe=ft.extend("--ft-typography-overline-text-transform",zt.textTransform,"uppercase"),Se={fontFamily:ft.extend("--ft-typography-button-font-family",Nt),fontSize:ft.extend("--ft-typography-button-font-size",zt.fontSize,"14px"),fontWeight:ft.extend("--ft-typography-button-font-weight",zt.fontWeight,"600"),letterSpacing:ft.extend("--ft-typography-button-letter-spacing",zt.letterSpacing,"1.246px"),lineHeight:ft.extend("--ft-typography-button-line-height",zt.lineHeight,"16px"),textTransform:ft.extend("--ft-typography-button-text-transform",zt.textTransform,"uppercase")},Ce=b`
102
101
  .ft-typography--title {
103
- font-family: ${Ft};
104
- font-size: ${At};
105
- font-weight: ${Mt};
102
+ font-family: ${Mt};
103
+ font-size: ${Rt};
104
+ font-weight: ${Ft};
106
105
  letter-spacing: ${Bt};
107
106
  line-height: ${jt};
108
- text-transform: ${Dt};
107
+ text-transform: ${Ut};
109
108
  }
110
- `,Ee=n`
109
+ `,Ee=b`
111
110
  .ft-typography--title-dense {
112
- font-family: ${Lt};
113
- font-size: ${Ut};
114
- font-weight: ${It};
115
- letter-spacing: ${Pt};
116
- line-height: ${Ht};
117
- text-transform: ${Vt};
111
+ font-family: ${Dt};
112
+ font-size: ${Lt};
113
+ font-weight: ${Tt};
114
+ letter-spacing: ${At};
115
+ line-height: ${_t};
116
+ text-transform: ${Pt};
118
117
  }
119
- `,Te=n`
118
+ `,Ne=b`
120
119
  .ft-typography--subtitle1 {
121
- font-family: ${Wt};
122
- font-size: ${Gt};
123
- font-weight: ${Kt};
124
- letter-spacing: ${Zt};
125
- line-height: ${qt};
126
- text-transform: ${Xt};
120
+ font-family: ${It};
121
+ font-size: ${Ht};
122
+ font-weight: ${Wt};
123
+ letter-spacing: ${Kt};
124
+ line-height: ${Vt};
125
+ text-transform: ${Zt};
127
126
  }
128
- `,Ne=n`
127
+ `,ze=b`
129
128
  .ft-typography--subtitle2 {
130
129
  font-family: ${Jt};
131
- font-size: ${Yt};
132
- font-weight: ${Qt};
133
- letter-spacing: ${te};
134
- line-height: ${ee};
135
- text-transform: ${ie};
130
+ font-size: ${qt};
131
+ font-weight: ${Xt};
132
+ letter-spacing: ${Yt};
133
+ line-height: ${Gt};
134
+ text-transform: ${Qt};
136
135
  }
137
136
 
138
- `,Fe=n`
137
+ `,Me=b`
139
138
  .ft-typography--body1 {
140
- font-family: ${re};
141
- font-size: ${oe};
142
- font-weight: ${ce};
143
- letter-spacing: ${ne};
144
- line-height: ${ae};
145
- text-transform: ${se};
139
+ font-family: ${te};
140
+ font-size: ${ee};
141
+ font-weight: ${ie};
142
+ letter-spacing: ${oe};
143
+ line-height: ${se};
144
+ text-transform: ${ne};
146
145
  }
147
- `,Ae=n`
146
+ `,Re=b`
148
147
  .ft-typography--body2 {
149
- font-family: ${de.fontFamily};
150
- font-size: ${de.fontSize};
151
- font-weight: ${de.fontWeight};
152
- letter-spacing: ${de.letterSpacing};
153
- line-height: ${de.lineHeight};
154
- text-transform: ${de.textTransform};
148
+ font-family: ${re.fontFamily};
149
+ font-size: ${re.fontSize};
150
+ font-weight: ${re.fontWeight};
151
+ letter-spacing: ${re.letterSpacing};
152
+ line-height: ${re.lineHeight};
153
+ text-transform: ${re.textTransform};
155
154
  }
156
- `,Me=n`
155
+ `,Fe=b`
157
156
  .ft-typography--caption {
158
157
  font-family: ${le};
159
- font-size: ${pe};
158
+ font-size: ${ae};
160
159
  font-weight: ${he};
161
- letter-spacing: ${ue};
162
- line-height: ${fe};
163
- text-transform: ${me};
160
+ letter-spacing: ${ce};
161
+ line-height: ${pe};
162
+ text-transform: ${de};
164
163
  }
165
- `,Be=n`
164
+ `,Be=b`
166
165
  .ft-typography--breadcrumb {
167
- font-family: ${be};
168
- font-size: ${ve};
169
- font-weight: ${ge};
170
- letter-spacing: ${ye};
166
+ font-family: ${fe};
167
+ font-size: ${ue};
168
+ font-weight: ${ve};
169
+ letter-spacing: ${be};
171
170
  line-height: ${xe};
172
- text-transform: ${ke};
171
+ text-transform: ${ye};
173
172
  }
174
- `,je=n`
173
+ `,je=b`
175
174
  .ft-typography--overline {
176
- font-family: ${_e};
177
- font-size: ${we};
175
+ font-family: ${ge};
176
+ font-size: ${me};
178
177
  font-weight: ${$e};
179
- letter-spacing: ${Oe};
180
- line-height: ${Se};
181
- text-transform: ${ze};
178
+ letter-spacing: ${we};
179
+ line-height: ${ke};
180
+ text-transform: ${Oe};
182
181
  }
183
- `,De=n`
182
+ `,Ue=b`
184
183
  .ft-typography--button {
185
- font-family: ${Re.fontFamily};
186
- font-size: ${Re.fontSize};
187
- font-weight: ${Re.fontWeight};
188
- letter-spacing: ${Re.letterSpacing};
189
- line-height: ${Re.lineHeight};
190
- text-transform: ${Re.textTransform};
184
+ font-family: ${Se.fontFamily};
185
+ font-size: ${Se.fontSize};
186
+ font-weight: ${Se.fontWeight};
187
+ letter-spacing: ${Se.letterSpacing};
188
+ line-height: ${Se.lineHeight};
189
+ text-transform: ${Se.textTransform};
191
190
  }
192
- `;let Le=class extends yt{constructor(){super(...arguments),this.variant=Rt.body1}getStyles(){return[Ce,Ee,Te,Ne,Fe,Ae,Me,Be,je,De,n`
193
- .ft-typography {
194
- vertical-align: inherit;
195
- }
196
- `]}getTemplate(){return this.element?zt`
197
- <${Ot(this.element)}
191
+ `;class De extends bt{constructor(){super(...arguments),this.variant=St.body1}render(){return this.element?Ot`
192
+ <${wt(this.element)}
198
193
  class="ft-typography ft-typography--${this.variant}">
199
194
  <slot></slot>
200
- </${Ot(this.element)}>
201
- `:zt`
195
+ </${wt(this.element)}>
196
+ `:Ot`
202
197
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
203
- `}};function Ue(t,e){return t.flatMap((t=>[t,...Ue(e(t),e)]))}
198
+ `}}function Le(t,e){return t.flatMap((t=>[t,...Le(e(t),e)]))}
204
199
  /**
205
200
  * @license
206
201
  * Copyright 2017 Google LLC
207
202
  * SPDX-License-Identifier: BSD-3-Clause
208
- */Ct([ct()],Le.prototype,"element",void 0),Ct([ct()],Le.prototype,"variant",void 0),Le=Ct([mt("ft-typography")],Le);const Ie=1,Pe=2,He=t=>(...e)=>({_$litDirective$:t,values:e});class Ve{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)}}
203
+ */De.styles=[Ce,Ee,Ne,ze,Me,Re,Fe,Be,je,Ue,b`
204
+ .ft-typography {
205
+ vertical-align: inherit;
206
+ }
207
+ `],Ct([o()],De.prototype,"element",void 0),Ct([o()],De.prototype,"variant",void 0),c("ft-typography")(De);const Te=1,Ae=2,_e=t=>(...e)=>({_$litDirective$:t,values:e});class Pe{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)}}
209
208
  /**
210
209
  * @license
211
210
  * Copyright 2020 Google LLC
212
211
  * SPDX-License-Identifier: BSD-3-Clause
213
- */const{H:We}=J,Ge=()=>document.createComment(""),Ke=(t,e,i)=>{var r;const o=t._$AA.parentNode,c=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=o.insertBefore(Ge(),c),r=o.insertBefore(Ge(),c);i=new We(e,r,t,t.options)}else{const e=i._$AB.nextSibling,n=i._$AM,a=n!==t;if(a){let e;null===(r=i._$AQ)||void 0===r||r.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==n._$AU&&i._$AP(e)}if(e!==c||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;o.insertBefore(t,c),t=e}}}return i},Ze=(t,e,i=t)=>(t._$AI(e,i),t),qe={},Xe=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const r=t._$AB.nextSibling;for(;i!==r;){const t=i.nextSibling;i.remove(),i=t}},Je=(t,e,i)=>{const r=new Map;for(let o=e;o<=i;o++)r.set(t[o],o);return r},Ye=He(class extends Ve{constructor(t){if(super(t),t.type!==Pe)throw Error("repeat() can only be used in text expressions")}dt(t,e,i){let r;void 0===i?i=e:void 0!==e&&(r=e);const o=[],c=[];let n=0;for(const e of t)o[n]=r?r(e,n):n,c[n]=i(e,n),n++;return{values:c,keys:o}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,r]){var o;const c=(t=>t._$AH)(t),{values:n,keys:a}=this.dt(e,i,r);if(!Array.isArray(c))return this.at=a,n;const s=null!==(o=this.at)&&void 0!==o?o:this.at=[],d=[];let l,p,h=0,u=c.length-1,f=0,m=n.length-1;for(;h<=u&&f<=m;)if(null===c[h])h++;else if(null===c[u])u--;else if(s[h]===a[f])d[f]=Ze(c[h],n[f]),h++,f++;else if(s[u]===a[m])d[m]=Ze(c[u],n[m]),u--,m--;else if(s[h]===a[m])d[m]=Ze(c[h],n[m]),Ke(t,d[m+1],c[h]),h++,m--;else if(s[u]===a[f])d[f]=Ze(c[u],n[f]),Ke(t,c[h],c[u]),u--,f++;else if(void 0===l&&(l=Je(a,f,m),p=Je(s,h,u)),l.has(s[h]))if(l.has(s[u])){const e=p.get(a[f]),i=void 0!==e?c[e]:null;if(null===i){const e=Ke(t,c[h]);Ze(e,n[f]),d[f]=e}else d[f]=Ze(i,n[f]),Ke(t,c[h],i),c[e]=null;f++}else Xe(c[u]),u--;else Xe(c[h]),h++;for(;f<=m;){const e=Ke(t,d[m+1]);Ze(e,n[f]),d[f++]=e}for(;h<=u;){const t=c[h++];null!==t&&Xe(t)}return this.at=a,((t,e=qe)=>{t._$AH=e})(t,d),B}});
212
+ */const{H:Ie}=lt,He=()=>document.createComment(""),We=(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(He(),n),o=s.insertBefore(He(),n);i=new Ie(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},Ke=(t,e,i=t)=>(t._$AI(e,i),t),Ve={},Ze=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}},Je=(t,e,i)=>{const o=new Map;for(let s=e;s<=i;s++)o.set(t[s],s);return o},qe=_e(class extends Pe{constructor(t){if(super(t),t.type!==Ae)throw Error("repeat() can only be used in text expressions")}dt(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.dt(t,e,i).values}update(t,[e,i,o]){var s;const n=(t=>t._$AH)(t),{values:r,keys:l}=this.dt(e,i,o);if(!Array.isArray(n))return this.at=l,r;const a=null!==(s=this.at)&&void 0!==s?s:this.at=[],h=[];let c,p,d=0,f=n.length-1,u=0,v=r.length-1;for(;d<=f&&u<=v;)if(null===n[d])d++;else if(null===n[f])f--;else if(a[d]===l[u])h[u]=Ke(n[d],r[u]),d++,u++;else if(a[f]===l[v])h[v]=Ke(n[f],r[v]),f--,v--;else if(a[d]===l[v])h[v]=Ke(n[d],r[v]),We(t,h[v+1],n[d]),d++,v--;else if(a[f]===l[u])h[u]=Ke(n[f],r[u]),We(t,n[d],n[f]),f--,u++;else if(void 0===c&&(c=Je(l,u,v),p=Je(a,d,f)),c.has(a[d]))if(c.has(a[f])){const e=p.get(l[u]),i=void 0!==e?n[e]:null;if(null===i){const e=We(t,n[d]);Ke(e,r[u]),h[u]=e}else h[u]=Ke(i,r[u]),We(t,n[d],i),n[e]=null;u++}else Ze(n[f]),f--;else Ze(n[d]),d++;for(;u<=v;){const e=We(t,h[v+1]);Ke(e,r[u]),h[u++]=e}for(;d<=f;){const t=n[d++];null!==t&&Ze(t)}return this.at=l,((t,e=Ve)=>{t._$AH=e})(t,h),V}}),Xe=_e(class extends Pe{constructor(t){var e;if(super(t),t.type!==Te||"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.st){this.st=new Set,void 0!==t.strings&&(this.et=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.et)||void 0===i?void 0:i.has(t))&&this.st.add(t);return this.render(e)}const s=t.element.classList;this.st.forEach((t=>{t in e||(s.remove(t),this.st.delete(t))}));for(const t in e){const i=!!e[t];i===this.st.has(t)||(null===(o=this.et)||void 0===o?void 0:o.has(t))||(i?(s.add(t),this.st.add(t)):(s.remove(t),this.st.delete(t)))}return V}});
214
213
  /**
215
214
  * @license
216
215
  * Copyright 2017 Google LLC
217
216
  * SPDX-License-Identifier: BSD-3-Clause
218
- */
219
- /*! *****************************************************************************
220
- Copyright (c) Microsoft Corporation.
221
-
222
- Permission to use, copy, modify, and/or distribute this software for any
223
- purpose with or without fee is hereby granted.
224
-
225
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
226
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
227
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
228
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
229
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
230
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
231
- PERFORMANCE OF THIS SOFTWARE.
232
- ***************************************************************************** */
233
- var Qe=function(t,e){return Qe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},Qe(t,e)};function ti(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}Qe(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var ei=function(){return ei=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},ei.apply(this,arguments)};function ii(t,e,i,r){for(var o,c=arguments.length,n=c<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,a=t.length-1;a>=0;a--)(o=t[a])&&(n=(c<3?o(n):c>3?o(e,i,n):o(e,i))||n);return c>3&&n&&Object.defineProperty(e,i,n),n}function ri(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}
234
- /**
235
- * @license
236
- * Copyright 2018 Google Inc.
237
- *
238
- * Permission is hereby granted, free of charge, to any person obtaining a copy
239
- * of this software and associated documentation files (the "Software"), to deal
240
- * in the Software without restriction, including without limitation the rights
241
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
242
- * copies of the Software, and to permit persons to whom the Software is
243
- * furnished to do so, subject to the following conditions:
244
- *
245
- * The above copyright notice and this permission notice shall be included in
246
- * all copies or substantial portions of the Software.
247
- *
248
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
249
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
250
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
251
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
252
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
253
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
254
- * THE SOFTWARE.
255
- */const oi=()=>{},ci={get passive(){return!1}};document.addEventListener("x",oi,ci),document.removeEventListener("x",oi);
256
- /**
257
- * @license
258
- * Copyright 2018 Google LLC
259
- * SPDX-License-Identifier: Apache-2.0
260
- */
261
- class ni extends et{click(){if(this.mdcRoot)return this.mdcRoot.focus(),void this.mdcRoot.click();super.click()}createFoundation(){void 0!==this.mdcFoundation&&this.mdcFoundation.destroy(),this.mdcFoundationClass&&(this.mdcFoundation=new this.mdcFoundationClass(this.createAdapter()),this.mdcFoundation.init())}firstUpdated(){this.createFoundation()}}
262
- /**
263
- * @license
264
- * Copyright 2016 Google Inc.
265
- *
266
- * Permission is hereby granted, free of charge, to any person obtaining a copy
267
- * of this software and associated documentation files (the "Software"), to deal
268
- * in the Software without restriction, including without limitation the rights
269
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
270
- * copies of the Software, and to permit persons to whom the Software is
271
- * furnished to do so, subject to the following conditions:
272
- *
273
- * The above copyright notice and this permission notice shall be included in
274
- * all copies or substantial portions of the Software.
275
- *
276
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
277
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
278
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
279
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
280
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
281
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
282
- * THE SOFTWARE.
283
- */var ai=function(){function t(t){void 0===t&&(t={}),this.adapter=t}return Object.defineProperty(t,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.destroy=function(){},t}(),si={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},di={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},li={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300};
284
- /**
285
- * @license
286
- * Copyright 2016 Google Inc.
287
- *
288
- * Permission is hereby granted, free of charge, to any person obtaining a copy
289
- * of this software and associated documentation files (the "Software"), to deal
290
- * in the Software without restriction, including without limitation the rights
291
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
292
- * copies of the Software, and to permit persons to whom the Software is
293
- * furnished to do so, subject to the following conditions:
294
- *
295
- * The above copyright notice and this permission notice shall be included in
296
- * all copies or substantial portions of the Software.
297
- *
298
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
299
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
300
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
301
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
302
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
303
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
304
- * THE SOFTWARE.
305
- */
306
- /**
307
- * @license
308
- * Copyright 2016 Google Inc.
309
- *
310
- * Permission is hereby granted, free of charge, to any person obtaining a copy
311
- * of this software and associated documentation files (the "Software"), to deal
312
- * in the Software without restriction, including without limitation the rights
313
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
314
- * copies of the Software, and to permit persons to whom the Software is
315
- * furnished to do so, subject to the following conditions:
316
- *
317
- * The above copyright notice and this permission notice shall be included in
318
- * all copies or substantial portions of the Software.
319
- *
320
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
321
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
322
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
323
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
324
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
325
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
326
- * THE SOFTWARE.
327
- */
328
- var pi=["touchstart","pointerdown","mousedown","keydown"],hi=["touchend","pointerup","mouseup","contextmenu"],ui=[],fi=function(t){function e(i){var r=t.call(this,ei(ei({},e.defaultAdapter),i))||this;return r.activationAnimationHasEnded=!1,r.activationTimer=0,r.fgDeactivationRemovalTimer=0,r.fgScale="0",r.frame={width:0,height:0},r.initialSize=0,r.layoutFrame=0,r.maxRadius=0,r.unboundedCoords={left:0,top:0},r.activationState=r.defaultActivationState(),r.activationTimerCallback=function(){r.activationAnimationHasEnded=!0,r.runDeactivationUXLogicIfReady()},r.activateHandler=function(t){r.activateImpl(t)},r.deactivateHandler=function(){r.deactivateImpl()},r.focusHandler=function(){r.handleFocus()},r.blurHandler=function(){r.handleBlur()},r.resizeHandler=function(){r.layout()},r}return ti(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return si},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return di},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return li},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var t=this,i=this.supportsPressRipple();if(this.registerRootHandlers(i),i){var r=e.cssClasses,o=r.ROOT,c=r.UNBOUNDED;requestAnimationFrame((function(){t.adapter.addClass(o),t.adapter.isUnbounded()&&(t.adapter.addClass(c),t.layoutInternal())}))}},e.prototype.destroy=function(){var t=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(e.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(e.cssClasses.FG_DEACTIVATION));var i=e.cssClasses,r=i.ROOT,o=i.UNBOUNDED;requestAnimationFrame((function(){t.adapter.removeClass(r),t.adapter.removeClass(o),t.removeCssVars()}))}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},e.prototype.activate=function(t){this.activateImpl(t)},e.prototype.deactivate=function(){this.deactivateImpl()},e.prototype.layout=function(){var t=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame((function(){t.layoutInternal(),t.layoutFrame=0}))},e.prototype.setUnbounded=function(t){var i=e.cssClasses.UNBOUNDED;t?this.adapter.addClass(i):this.adapter.removeClass(i)},e.prototype.handleFocus=function(){var t=this;requestAnimationFrame((function(){return t.adapter.addClass(e.cssClasses.BG_FOCUSED)}))},e.prototype.handleBlur=function(){var t=this;requestAnimationFrame((function(){return t.adapter.removeClass(e.cssClasses.BG_FOCUSED)}))},e.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},e.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},e.prototype.registerRootHandlers=function(t){var e,i;if(t){try{for(var r=ri(pi),o=r.next();!o.done;o=r.next()){var c=o.value;this.adapter.registerInteractionHandler(c,this.activateHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},e.prototype.registerDeactivationHandlers=function(t){var e,i;if("keydown"===t.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var r=ri(hi),o=r.next();!o.done;o=r.next()){var c=o.value;this.adapter.registerDocumentInteractionHandler(c,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}},e.prototype.deregisterRootHandlers=function(){var t,e;try{for(var i=ri(pi),r=i.next();!r.done;r=i.next()){var o=r.value;this.adapter.deregisterInteractionHandler(o,this.activateHandler)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},e.prototype.deregisterDeactivationHandlers=function(){var t,e;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var i=ri(hi),r=i.next();!r.done;r=i.next()){var o=r.value;this.adapter.deregisterDocumentInteractionHandler(o,this.deactivateHandler)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}},e.prototype.removeCssVars=function(){var t=this,i=e.strings;Object.keys(i).forEach((function(e){0===e.indexOf("VAR_")&&t.adapter.updateCssVariable(i[e],null)}))},e.prototype.activateImpl=function(t){var e=this;if(!this.adapter.isSurfaceDisabled()){var i=this.activationState;if(!i.isActivated){var r=this.previousActivationEvent;if(!(r&&void 0!==t&&r.type!==t.type))i.isActivated=!0,i.isProgrammatic=void 0===t,i.activationEvent=t,i.wasActivatedByPointer=!i.isProgrammatic&&(void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type)),void 0!==t&&ui.length>0&&ui.some((function(t){return e.adapter.containsEventTarget(t)}))?this.resetActivationState():(void 0!==t&&(ui.push(t.target),this.registerDeactivationHandlers(t)),i.wasElementMadeActive=this.checkElementMadeActive(t),i.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame((function(){ui=[],i.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(i.wasElementMadeActive=e.checkElementMadeActive(t),i.wasElementMadeActive&&e.animateActivation()),i.wasElementMadeActive||(e.activationState=e.defaultActivationState())})))}}},e.prototype.checkElementMadeActive=function(t){return void 0===t||"keydown"!==t.type||this.adapter.isSurfaceActive()},e.prototype.animateActivation=function(){var t=this,i=e.strings,r=i.VAR_FG_TRANSLATE_START,o=i.VAR_FG_TRANSLATE_END,c=e.cssClasses,n=c.FG_DEACTIVATION,a=c.FG_ACTIVATION,s=e.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var d="",l="";if(!this.adapter.isUnbounded()){var p=this.getFgTranslationCoordinates(),h=p.startPoint,u=p.endPoint;d=h.x+"px, "+h.y+"px",l=u.x+"px, "+u.y+"px"}this.adapter.updateCssVariable(r,d),this.adapter.updateCssVariable(o,l),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(n),this.adapter.computeBoundingRect(),this.adapter.addClass(a),this.activationTimer=setTimeout((function(){t.activationTimerCallback()}),s)},e.prototype.getFgTranslationCoordinates=function(){var t,e=this.activationState,i=e.activationEvent;return t=e.wasActivatedByPointer?function(t,e,i){if(!t)return{x:0,y:0};var r,o,c=e.x,n=e.y,a=c+i.left,s=n+i.top;if("touchstart"===t.type){var d=t;r=d.changedTouches[0].pageX-a,o=d.changedTouches[0].pageY-s}else{var l=t;r=l.pageX-a,o=l.pageY-s}return{x:r,y:o}}(i,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2},{startPoint:t={x:t.x-this.initialSize/2,y:t.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},e.prototype.runDeactivationUXLogicIfReady=function(){var t=this,i=e.cssClasses.FG_DEACTIVATION,r=this.activationState,o=r.hasDeactivationUXRun,c=r.isActivated;(o||!c)&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(i),this.fgDeactivationRemovalTimer=setTimeout((function(){t.adapter.removeClass(i)}),li.FG_DEACTIVATION_MS))},e.prototype.rmBoundedActivationClasses=function(){var t=e.cssClasses.FG_ACTIVATION;this.adapter.removeClass(t),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},e.prototype.resetActivationState=function(){var t=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout((function(){return t.previousActivationEvent=void 0}),e.numbers.TAP_DELAY_MS)},e.prototype.deactivateImpl=function(){var t=this,e=this.activationState;if(e.isActivated){var i=ei({},e);e.isProgrammatic?(requestAnimationFrame((function(){t.animateDeactivation(i)})),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame((function(){t.activationState.hasDeactivationUXRun=!0,t.animateDeactivation(i),t.resetActivationState()})))}},e.prototype.animateDeactivation=function(t){var e=t.wasActivatedByPointer,i=t.wasElementMadeActive;(e||i)&&this.runDeactivationUXLogicIfReady()},e.prototype.layoutInternal=function(){var t=this;this.frame=this.adapter.computeBoundingRect();var i=Math.max(this.frame.height,this.frame.width);this.maxRadius=this.adapter.isUnbounded()?i:Math.sqrt(Math.pow(t.frame.width,2)+Math.pow(t.frame.height,2))+e.numbers.PADDING;var r=Math.floor(i*e.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&r%2!=0?this.initialSize=r-1:this.initialSize=r,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},e.prototype.updateLayoutCssVars=function(){var t=e.strings,i=t.VAR_FG_SIZE,r=t.VAR_LEFT,o=t.VAR_TOP,c=t.VAR_FG_SCALE;this.adapter.updateCssVariable(i,this.initialSize+"px"),this.adapter.updateCssVariable(c,this.fgScale),this.adapter.isUnbounded()&&(this.unboundedCoords={left:Math.round(this.frame.width/2-this.initialSize/2),top:Math.round(this.frame.height/2-this.initialSize/2)},this.adapter.updateCssVariable(r,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(o,this.unboundedCoords.top+"px"))},e}(ai),mi=fi;
329
- /**
330
- * @license
331
- * Copyright 2018 Google LLC
332
- * SPDX-License-Identifier: BSD-3-Clause
333
- */
334
- const bi=He(class extends Ve{constructor(t){var e;if(super(t),t.type!==Ie||"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,r;if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.et=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.et)||void 0===i?void 0:i.has(t))&&this.st.add(t);return this.render(e)}const o=t.element.classList;this.st.forEach((t=>{t in e||(o.remove(t),this.st.delete(t))}));for(const t in e){const i=!!e[t];i===this.st.has(t)||(null===(r=this.et)||void 0===r?void 0:r.has(t))||(i?(o.add(t),this.st.add(t)):(o.remove(t),this.st.delete(t)))}return B}}),vi=He(class extends Ve{constructor(t){var e;if(super(t),t.type!==Ie||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,i)=>{const r=t[i];return null==r?e:e+`${i=i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`}),"")}update(t,[e]){const{style:i}=t.element;if(void 0===this.ct){this.ct=new Set;for(const t in e)this.ct.add(t);return this.render(e)}this.ct.forEach((t=>{null==e[t]&&(this.ct.delete(t),t.includes("-")?i.removeProperty(t):i[t]="")}));for(const t in e){const r=e[t];null!=r&&(this.ct.add(t),t.includes("-")?i.setProperty(t,r):i[t]=r)}return B}});
335
- /**
336
- * @license
337
- * Copyright 2018 Google LLC
338
- * SPDX-License-Identifier: BSD-3-Clause
339
- */
340
- /**
341
- * @license
342
- * Copyright 2018 Google LLC
343
- * SPDX-License-Identifier: Apache-2.0
344
- */
345
- class gi extends ni{constructor(){super(...arguments),this.primary=!1,this.accent=!1,this.unbounded=!1,this.disabled=!1,this.activated=!1,this.selected=!1,this.internalUseStateLayerCustomProperties=!1,this.hovering=!1,this.bgFocused=!1,this.fgActivation=!1,this.fgDeactivation=!1,this.fgScale="",this.fgSize="",this.translateStart="",this.translateEnd="",this.leftPos="",this.topPos="",this.mdcFoundationClass=mi}get isActive(){return t=this.parentElement||this,e=":active",(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e);var t,e;
346
- /**
347
- * @license
348
- * Copyright 2018 Google LLC
349
- * SPDX-License-Identifier: Apache-2.0
350
- */}createAdapter(){return{browserSupportsCssVars:()=>!0,isUnbounded:()=>this.unbounded,isSurfaceActive:()=>this.isActive,isSurfaceDisabled:()=>this.disabled,addClass:t=>{switch(t){case"mdc-ripple-upgraded--background-focused":this.bgFocused=!0;break;case"mdc-ripple-upgraded--foreground-activation":this.fgActivation=!0;break;case"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation=!0}},removeClass:t=>{switch(t){case"mdc-ripple-upgraded--background-focused":this.bgFocused=!1;break;case"mdc-ripple-upgraded--foreground-activation":this.fgActivation=!1;break;case"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation=!1}},containsEventTarget:()=>!0,registerInteractionHandler:()=>{},deregisterInteractionHandler:()=>{},registerDocumentInteractionHandler:()=>{},deregisterDocumentInteractionHandler:()=>{},registerResizeHandler:()=>{},deregisterResizeHandler:()=>{},updateCssVariable:(t,e)=>{switch(t){case"--mdc-ripple-fg-scale":this.fgScale=e;break;case"--mdc-ripple-fg-size":this.fgSize=e;break;case"--mdc-ripple-fg-translate-end":this.translateEnd=e;break;case"--mdc-ripple-fg-translate-start":this.translateStart=e;break;case"--mdc-ripple-left":this.leftPos=e;break;case"--mdc-ripple-top":this.topPos=e}},computeBoundingRect:()=>(this.parentElement||this).getBoundingClientRect(),getWindowPageOffset:()=>({x:window.pageXOffset,y:window.pageYOffset})}}startPress(t){this.waitForFoundation((()=>{this.mdcFoundation.activate(t)}))}endPress(){this.waitForFoundation((()=>{this.mdcFoundation.deactivate()}))}startFocus(){this.waitForFoundation((()=>{this.mdcFoundation.handleFocus()}))}endFocus(){this.waitForFoundation((()=>{this.mdcFoundation.handleBlur()}))}startHover(){this.hovering=!0}endHover(){this.hovering=!1}waitForFoundation(t){this.mdcFoundation?t():this.updateComplete.then(t)}update(t){t.has("disabled")&&this.disabled&&this.endHover(),super.update(t)}render(){const t=this.activated&&(this.primary||!this.accent),e=this.selected&&(this.primary||!this.accent),i={"mdc-ripple-surface--accent":this.accent,"mdc-ripple-surface--primary--activated":t,"mdc-ripple-surface--accent--activated":this.accent&&this.activated,"mdc-ripple-surface--primary--selected":e,"mdc-ripple-surface--accent--selected":this.accent&&this.selected,"mdc-ripple-surface--disabled":this.disabled,"mdc-ripple-surface--hover":this.hovering,"mdc-ripple-surface--primary":this.primary,"mdc-ripple-surface--selected":this.selected,"mdc-ripple-upgraded--background-focused":this.bgFocused,"mdc-ripple-upgraded--foreground-activation":this.fgActivation,"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation,"mdc-ripple-upgraded--unbounded":this.unbounded,"mdc-ripple-surface--internal-use-state-layer-custom-properties":this.internalUseStateLayerCustomProperties};return M`
351
- <div class="mdc-ripple-surface mdc-ripple-upgraded ${bi(i)}"
352
- style="${vi({"--mdc-ripple-fg-scale":this.fgScale,"--mdc-ripple-fg-size":this.fgSize,"--mdc-ripple-fg-translate-end":this.translateEnd,"--mdc-ripple-fg-translate-start":this.translateStart,"--mdc-ripple-left":this.leftPos,"--mdc-ripple-top":this.topPos})}"></div>`}}ii([dt(".mdc-ripple-surface")],gi.prototype,"mdcRoot",void 0),ii([ct({type:Boolean})],gi.prototype,"primary",void 0),ii([ct({type:Boolean})],gi.prototype,"accent",void 0),ii([ct({type:Boolean})],gi.prototype,"unbounded",void 0),ii([ct({type:Boolean})],gi.prototype,"disabled",void 0),ii([ct({type:Boolean})],gi.prototype,"activated",void 0),ii([ct({type:Boolean})],gi.prototype,"selected",void 0),ii([ct({type:Boolean})],gi.prototype,"internalUseStateLayerCustomProperties",void 0),ii([nt()],gi.prototype,"hovering",void 0),ii([nt()],gi.prototype,"bgFocused",void 0),ii([nt()],gi.prototype,"fgActivation",void 0),ii([nt()],gi.prototype,"fgDeactivation",void 0),ii([nt()],gi.prototype,"fgScale",void 0),ii([nt()],gi.prototype,"fgSize",void 0),ii([nt()],gi.prototype,"translateStart",void 0),ii([nt()],gi.prototype,"translateEnd",void 0),ii([nt()],gi.prototype,"leftPos",void 0),ii([nt()],gi.prototype,"topPos",void 0);
353
- /**
354
- * @license
355
- * Copyright 2021 Google LLC
356
- * SPDX-LIcense-Identifier: Apache-2.0
357
- */
358
- const yi=n`.mdc-ripple-surface{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity;position:relative;outline:none;overflow:hidden}.mdc-ripple-surface::before,.mdc-ripple-surface::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-ripple-surface::before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-ripple-surface::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-ripple-surface.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface::before,.mdc-ripple-surface::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-ripple-surface.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded],.mdc-ripple-upgraded--unbounded{overflow:visible}.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::after,.mdc-ripple-upgraded--unbounded::before,.mdc-ripple-upgraded--unbounded::after{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{top:var(--mdc-ripple-top, calc(50% - 50%));left:var(--mdc-ripple-left, calc(50% - 50%));width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface::before,.mdc-ripple-surface::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-ripple-surface:hover::before,.mdc-ripple-surface.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}:host{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;display:block}:host .mdc-ripple-surface{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;will-change:unset}.mdc-ripple-surface--primary::before,.mdc-ripple-surface--primary::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary:hover::before,.mdc-ripple-surface--primary.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--primary.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before,.mdc-ripple-surface--primary--activated::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--activated:hover::before,.mdc-ripple-surface--primary--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--primary--selected::before,.mdc-ripple-surface--primary--selected::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--selected:hover::before,.mdc-ripple-surface--primary--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent::before,.mdc-ripple-surface--accent::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent:hover::before,.mdc-ripple-surface--accent.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--accent.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before,.mdc-ripple-surface--accent--activated::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--activated:hover::before,.mdc-ripple-surface--accent--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--accent--selected::before,.mdc-ripple-surface--accent--selected::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--selected:hover::before,.mdc-ripple-surface--accent--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--disabled{opacity:0}.mdc-ripple-surface--internal-use-state-layer-custom-properties::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties::after{background-color:#000;background-color:var(--mdc-ripple-hover-state-layer-color, #000)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:hover::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-state-layer-opacity, 0.04)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}`
359
- /**
360
- * @license
361
- * Copyright 2018 Google LLC
362
- * SPDX-License-Identifier: Apache-2.0
363
- */;let xi=class extends gi{};function ki(t,e,i){if(void 0!==e)
364
- /**
365
- * @license
366
- * Copyright 2021 Google LLC
367
- * SPDX-License-Identifier: Apache-2.0
368
- */
369
- return function(t,e,i){const r=t.constructor;if(!i){const t=`__${e}`;if(!(i=r.getPropertyDescriptor(e,t)))throw new Error("@ariaProperty must be used after a @property decorator")}const o=i;let c="";if(!o.set)throw new Error(`@ariaProperty requires a setter for ${e}`);if(t.dispatchWizEvent)return i;const n={configurable:!0,enumerable:!0,set(t){if(""===c){const t=r.getPropertyOptions(e);c="string"==typeof t.attribute?t.attribute:e}this.hasAttribute(c)&&this.removeAttribute(c),o.set.call(this,t)}};return o.get&&(n.get=function(){return o.get.call(this)}),n}(t,e,i);throw new Error("@ariaProperty only supports TypeScript Decorators")}
370
- /**
371
- * @license
372
- * Copyright 2018 Google LLC
373
- * SPDX-License-Identifier: Apache-2.0
374
- */var _i,wi;xi.styles=[yi],xi=ii([rt("mwc-ripple")],xi);const $i=null!==(wi=null===(_i=window.ShadyDOM)||void 0===_i?void 0:_i.inUse)&&void 0!==wi&&wi;class Oi extends ni{constructor(){super(...arguments),this.disabled=!1,this.containingForm=null,this.formDataListener=t=>{this.disabled||this.setFormData(t.formData)}}findFormElement(){if(!this.shadowRoot||$i)return null;const t=this.getRootNode().querySelectorAll("form");for(const e of Array.from(t))if(e.contains(this))return e;return null}connectedCallback(){var t;super.connectedCallback(),this.containingForm=this.findFormElement(),null===(t=this.containingForm)||void 0===t||t.addEventListener("formdata",this.formDataListener)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this.containingForm)||void 0===t||t.removeEventListener("formdata",this.formDataListener),this.containingForm=null}click(){this.formElement&&!this.disabled&&(this.formElement.focus(),this.formElement.click())}firstUpdated(){super.firstUpdated(),this.shadowRoot&&this.mdcRoot.addEventListener("change",(t=>{this.dispatchEvent(new Event("change",t))}))}}Oi.shadowRootOptions={mode:"open",delegatesFocus:!0},ii([ct({type:Boolean})],Oi.prototype,"disabled",void 0);
375
- /**
376
- * @license
377
- * Copyright 2020 Google LLC
378
- * SPDX-License-Identifier: Apache-2.0
379
- */
380
- class Si{constructor(t){this.startPress=e=>{t().then((t=>{t&&t.startPress(e)}))},this.endPress=()=>{t().then((t=>{t&&t.endPress()}))},this.startFocus=()=>{t().then((t=>{t&&t.startFocus()}))},this.endFocus=()=>{t().then((t=>{t&&t.endFocus()}))},this.startHover=()=>{t().then((t=>{t&&t.startHover()}))},this.endHover=()=>{t().then((t=>{t&&t.endHover()}))}}}
381
- /**
382
- * @license
383
- * Copyright 2018 Google LLC
384
- * SPDX-License-Identifier: BSD-3-Clause
385
- */const zi=t=>null!=t?t:j
386
- /**
387
- * @license
388
- * Copyright 2019 Google LLC
389
- * SPDX-License-Identifier: Apache-2.0
390
- */;class Ri extends Oi{constructor(){super(...arguments),this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.name="",this.value="on",this.reducedTouchTarget=!1,this.animationClass="",this.shouldRenderRipple=!1,this.focused=!1,this.mdcFoundationClass=void 0,this.mdcFoundation=void 0,this.rippleElement=null,this.rippleHandlers=new Si((()=>(this.shouldRenderRipple=!0,this.ripple.then((t=>this.rippleElement=t)),this.ripple)))}createAdapter(){return{}}update(t){const e=t.get("indeterminate"),i=t.get("checked"),r=t.get("disabled");if(void 0!==e||void 0!==i||void 0!==r){const t=this.calculateAnimationStateName(!!i,!!e,!!r),o=this.calculateAnimationStateName(this.checked,this.indeterminate,this.disabled);this.animationClass=`${t}-${o}`}super.update(t)}calculateAnimationStateName(t,e,i){return i?"disabled":e?"indeterminate":t?"checked":"unchecked"}renderRipple(){return this.shouldRenderRipple?this.renderRippleTemplate():""}renderRippleTemplate(){return M`<mwc-ripple
391
- .disabled="${this.disabled}"
392
- unbounded></mwc-ripple>`}render(){const t=this.indeterminate||this.checked,e={"mdc-checkbox--disabled":this.disabled,"mdc-checkbox--selected":t,"mdc-checkbox--touch":!this.reducedTouchTarget,"mdc-ripple-upgraded--background-focused":this.focused,"mdc-checkbox--anim-checked-indeterminate":"checked-indeterminate"==this.animationClass,"mdc-checkbox--anim-checked-unchecked":"checked-unchecked"==this.animationClass,"mdc-checkbox--anim-indeterminate-checked":"indeterminate-checked"==this.animationClass,"mdc-checkbox--anim-indeterminate-unchecked":"indeterminate-unchecked"==this.animationClass,"mdc-checkbox--anim-unchecked-checked":"unchecked-checked"==this.animationClass,"mdc-checkbox--anim-unchecked-indeterminate":"unchecked-indeterminate"==this.animationClass},i=this.indeterminate?"mixed":void 0;return M`
393
- <div class="mdc-checkbox mdc-checkbox--upgraded ${bi(e)}">
394
- <input type="checkbox"
395
- class="mdc-checkbox__native-control"
396
- name="${zi(this.name)}"
397
- aria-checked="${zi(i)}"
398
- aria-label="${zi(this.ariaLabel)}"
399
- aria-labelledby="${zi(this.ariaLabelledBy)}"
400
- aria-describedby="${zi(this.ariaDescribedBy)}"
401
- data-indeterminate="${this.indeterminate?"true":"false"}"
402
- ?disabled="${this.disabled}"
403
- .indeterminate="${this.indeterminate}"
404
- .checked="${this.checked}"
405
- .value="${this.value}"
406
- @change="${this.handleChange}"
407
- @focus="${this.handleFocus}"
408
- @blur="${this.handleBlur}"
409
- @mousedown="${this.handleRippleMouseDown}"
410
- @mouseenter="${this.handleRippleMouseEnter}"
411
- @mouseleave="${this.handleRippleMouseLeave}"
412
- @touchstart="${this.handleRippleTouchStart}"
413
- @touchend="${this.handleRippleDeactivate}"
414
- @touchcancel="${this.handleRippleDeactivate}">
415
- <div class="mdc-checkbox__background"
416
- @animationend="${this.resetAnimationClass}">
417
- <svg class="mdc-checkbox__checkmark"
418
- viewBox="0 0 24 24">
419
- <path class="mdc-checkbox__checkmark-path"
420
- fill="none"
421
- d="M1.73,12.91 8.1,19.28 22.79,4.59"></path>
422
- </svg>
423
- <div class="mdc-checkbox__mixedmark"></div>
424
- </div>
425
- ${this.renderRipple()}
426
- </div>`}setFormData(t){this.name&&this.checked&&t.append(this.name,this.value)}handleFocus(){this.focused=!0,this.handleRippleFocus()}handleBlur(){this.focused=!1,this.handleRippleBlur()}handleRippleMouseDown(t){const e=()=>{window.removeEventListener("mouseup",e),this.handleRippleDeactivate()};window.addEventListener("mouseup",e),this.rippleHandlers.startPress(t)}handleRippleTouchStart(t){this.rippleHandlers.startPress(t)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}handleChange(){this.checked=this.formElement.checked,this.indeterminate=this.formElement.indeterminate}resetAnimationClass(){this.animationClass=""}get isRippleActive(){var t;return(null===(t=this.rippleElement)||void 0===t?void 0:t.isActive)||!1}}ii([dt(".mdc-checkbox")],Ri.prototype,"mdcRoot",void 0),ii([dt("input")],Ri.prototype,"formElement",void 0),ii([ct({type:Boolean,reflect:!0})],Ri.prototype,"checked",void 0),ii([ct({type:Boolean})],Ri.prototype,"indeterminate",void 0),ii([ct({type:Boolean,reflect:!0})],Ri.prototype,"disabled",void 0),ii([ct({type:String,reflect:!0})],Ri.prototype,"name",void 0),ii([ct({type:String})],Ri.prototype,"value",void 0),ii([ki,ct({type:String,attribute:"aria-label"})],Ri.prototype,"ariaLabel",void 0),ii([ki,ct({type:String,attribute:"aria-labelledby"})],Ri.prototype,"ariaLabelledBy",void 0),ii([ki,ct({type:String,attribute:"aria-describedby"})],Ri.prototype,"ariaDescribedBy",void 0),ii([ct({type:Boolean})],Ri.prototype,"reducedTouchTarget",void 0),ii([nt()],Ri.prototype,"animationClass",void 0),ii([nt()],Ri.prototype,"shouldRenderRipple",void 0),ii([nt()],Ri.prototype,"focused",void 0),ii([lt("mwc-ripple")],Ri.prototype,"ripple",void 0),ii([st({passive:!0})],Ri.prototype,"handleRippleTouchStart",null);
427
- /**
428
- * @license
429
- * Copyright 2021 Google LLC
430
- * SPDX-LIcense-Identifier: Apache-2.0
431
- */
432
- const Ci=n`.mdc-checkbox{padding:calc((40px - 18px) / 2);padding:calc((var(--mdc-checkbox-ripple-size, 40px) - 18px) / 2);margin:calc((40px - 40px) / 2);margin:calc((var(--mdc-checkbox-touch-target-size, 40px) - 40px) / 2)}.mdc-checkbox .mdc-checkbox__ripple::before,.mdc-checkbox .mdc-checkbox__ripple::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-checkbox:hover .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-ripple-surface--hover .mdc-checkbox__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__ripple::before,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-checkbox:not(.mdc-ripple-upgraded) .mdc-checkbox__ripple::after{transition:opacity 150ms linear}.mdc-checkbox:not(.mdc-ripple-upgraded):active .mdc-checkbox__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-checkbox.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-checkbox.mdc-checkbox--selected .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-checkbox--selected .mdc-checkbox__ripple::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-checkbox.mdc-checkbox--selected:hover .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-checkbox--selected.mdc-ripple-surface--hover .mdc-checkbox__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-checkbox.mdc-checkbox--selected.mdc-ripple-upgraded--background-focused .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded):focus .mdc-checkbox__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded) .mdc-checkbox__ripple::after{transition:opacity 150ms linear}.mdc-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded):active .mdc-checkbox__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-checkbox.mdc-checkbox--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--selected .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--selected .mdc-checkbox__ripple::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-checkbox .mdc-checkbox__background{top:calc((40px - 18px) / 2);top:calc((var(--mdc-checkbox-ripple-size, 40px) - 18px) / 2);left:calc((40px - 18px) / 2);left:calc((var(--mdc-checkbox-ripple-size, 40px) - 18px) / 2)}.mdc-checkbox .mdc-checkbox__native-control{top:calc((40px - 40px) / 2);top:calc((40px - var(--mdc-checkbox-touch-target-size, 40px)) / 2);right:calc((40px - 40px) / 2);right:calc((40px - var(--mdc-checkbox-touch-target-size, 40px)) / 2);left:calc((40px - 40px) / 2);left:calc((40px - var(--mdc-checkbox-touch-target-size, 40px)) / 2);width:40px;width:var(--mdc-checkbox-touch-target-size, 40px);height:40px;height:var(--mdc-checkbox-touch-target-size, 40px)}.mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:rgba(0, 0, 0, 0.54);border-color:var(--mdc-checkbox-unchecked-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:#018786;border-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786));background-color:#018786;background-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786{0%{border-color:rgba(0, 0, 0, 0.54);border-color:var(--mdc-checkbox-unchecked-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:#018786;border-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786));background-color:#018786;background-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786{0%,80%{border-color:#018786;border-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786));background-color:#018786;background-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786))}100%{border-color:rgba(0, 0, 0, 0.54);border-color:var(--mdc-checkbox-unchecked-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786}.mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786}.mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:rgba(0, 0, 0, 0.38);border-color:var(--mdc-checkbox-disabled-color, rgba(0, 0, 0, 0.38));background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:rgba(0, 0, 0, 0.38);background-color:var(--mdc-checkbox-disabled-color, rgba(0, 0, 0, 0.38))}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:#fff;color:var(--mdc-checkbox-ink-color, #fff)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:#fff;border-color:var(--mdc-checkbox-ink-color, #fff)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:#fff;color:var(--mdc-checkbox-ink-color, #fff)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:#fff;border-color:var(--mdc-checkbox-ink-color, #fff)}.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:GrayText;border-color:var(--mdc-checkbox-disabled-color, GrayText);background-color:transparent}.mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:GrayText;background-color:transparent;background-color:var(--mdc-checkbox-disabled-color, transparent)}.mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:GrayText;color:var(--mdc-checkbox-ink-color, GrayText)}.mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:GrayText;border-color:var(--mdc-checkbox-ink-color, GrayText)}.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:transparent;pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((48px - 40px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size, 48px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((40px - 48px) / 2);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);right:calc((40px - 48px) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);left:calc((40px - 48px) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);width:48px;width:var(--mdc-checkbox-state-layer-size, 48px);height:48px;height:var(--mdc-checkbox-state-layer-size, 48px)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}:host{outline:none;display:inline-flex;-webkit-tap-highlight-color:transparent}:host([checked]),:host([indeterminate]){--mdc-ripple-color:var(--mdc-theme-secondary, #018786)}.mdc-checkbox .mdc-checkbox__background::before{content:none}`
433
- /**
434
- * @license
435
- * Copyright 2018 Google LLC
436
- * SPDX-License-Identifier: Apache-2.0
437
- */;let Ei=class extends Ri{};Ei.styles=[Ci],Ei=ii([rt("mwc-checkbox")],Ei);var Ti=function(t,e,i,r){for(var o,c=arguments.length,n=c<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,a=t.length-1;a>=0;a--)(o=t[a])&&(n=(c<3?o(n):c>3?o(e,i,n):o(e,i))||n);return c>3&&n&&Object.defineProperty(e,i,n),n};const Ni={color:bt.extend("--ft-ripple-color",gt.colorContent),primaryColor:bt.extend("--ft-ripple-primary-color",bt.extend("--ft-ripple-color",gt.colorPrimary)),secondaryColor:bt.extend("--ft-ripple-secondary-color",bt.extend("--ft-ripple-color",gt.colorSecondary)),opacityContentOnSurfacePressed:bt.external(gt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:bt.external(gt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:bt.external(gt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:bt.external(gt.opacityContentOnSurfaceSelected,"Design system"),opacityContentOnSurfaceDragged:bt.external(gt.opacityContentOnSurfaceDragged,"Design system")};let Fi=class extends yt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1}getStyles(){return n`
438
- :host {
439
- display: contents;
440
-
441
- --mdc-ripple-color: ${Ni.color};
442
- --mdc-ripple-press-opacity: ${Ni.opacityContentOnSurfacePressed};
443
- --mdc-ripple-hover-opacity: ${Ni.opacityContentOnSurfaceHover};
444
- --mdc-ripple-focus-opacity: ${Ni.opacityContentOnSurfaceFocused};
445
- --mdc-ripple-selected-opacity: ${Ni.opacityContentOnSurfaceSelected};
446
- --mdc-ripple-activated-opacity: ${Ni.opacityContentOnSurfaceDragged};
447
- }
448
-
449
- mwc-ripple.ft-ripple--secondary {
450
- --mdc-ripple-color: ${Ni.secondaryColor};
451
- }
452
-
453
- mwc-ripple.ft-ripple--primary {
454
- --mdc-ripple-color: ${Ni.primaryColor};
455
- }
456
- `}getTemplate(){return M`
457
- <mwc-ripple
458
- class="${this.primary?"ft-ripple--primary":this.secondary?"ft-ripple--secondary":""}"
459
- ?unbounded=${this.unbounded}
460
- ?activated=${this.activated}
461
- ?selected=${this.selected}
462
- ?disabled=${this.disabled}
463
- ></mwc-ripple>
464
- `}updated(t){super.updated(t),t.has("disabled")&&this.disabled&&this.endRipple()}endRipple(){var t,e,i;null===(t=this.rippleHandlers)||void 0===t||t.endHover(),null===(e=this.rippleHandlers)||void 0===e||e.endFocus(),null===(i=this.rippleHandlers)||void 0===i||i.endPress()}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentNode;if(e){const t=new Si((async()=>this.mwcRipple)),i=(...e)=>i=>{e.forEach((e=>window.addEventListener(e,t.endPress,{once:!0}))),t.startPress(i)},r=i("mouseup"),o=i("touchend","touchcancel"),c=t=>{["Enter"," "].includes(t.key)&&i("keyup")()};e.addEventListener("mouseenter",t.startHover),e.addEventListener("mouseleave",t.endHover),e.addEventListener("mousedown",r),e.addEventListener("touchstart",o),e.addEventListener("keydown",c),e.addEventListener("focus",t.startFocus),e.addEventListener("blur",t.endFocus),this.onDisconnect=()=>{e.removeEventListener("mouseenter",t.startHover),e.removeEventListener("mouseleave",t.endHover),e.removeEventListener("mousedown",r),e.removeEventListener("touchstart",o),e.removeEventListener("keydown",c),e.removeEventListener("focus",t.startFocus),e.removeEventListener("blur",t.endFocus)},this.rippleHandlers=t}}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};Fi.elementDefinitions={"mwc-ripple":xi},Ti([ct({type:Boolean})],Fi.prototype,"primary",void 0),Ti([ct({type:Boolean})],Fi.prototype,"secondary",void 0),Ti([ct({type:Boolean})],Fi.prototype,"unbounded",void 0),Ti([ct({type:Boolean})],Fi.prototype,"activated",void 0),Ti([ct({type:Boolean})],Fi.prototype,"selected",void 0),Ti([ct({type:Boolean})],Fi.prototype,"disabled",void 0),Ti([dt("mwc-ripple")],Fi.prototype,"mwcRipple",void 0),Fi=Ti([mt("ft-ripple")],Fi);
465
- /**
466
- * @license
467
- * Copyright 2021 Google LLC
468
- * SPDX-LIcense-Identifier: Apache-2.0
469
- */
470
- const Ai=n`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}`
471
- /**
472
- * @license
473
- * Copyright 2018 Google LLC
474
- * SPDX-License-Identifier: Apache-2.0
475
- */;let Mi=class extends et{render(){return M`<span><slot></slot></span>`}};Mi.styles=[Ai],Mi=ii([rt("mwc-icon")],Mi);var Bi=function(t,e,i,r){for(var o,c=arguments.length,n=c<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,a=t.length-1;a>=0;a--)(o=t[a])&&(n=(c<3?o(n):c>3?o(e,i,n):o(e,i))||n);return c>3&&n&&Object.defineProperty(e,i,n),n};const ji=bt.create("--ft-tooltip-distance","SIZE","4px"),Di=bt.create("--ft-tooltip-color","COLOR","#FFFFFF"),Li=bt.create("--ft-tooltip-background-color","COLOR","#666666"),Ui=bt.create("--ft-tooltip-z-index","NUMBER","1"),Ii=bt.external(gt.borderRadiusS,"Design system");let Pi=class extends yt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new ft,this.revealDebouncer=new ft}getStyles(){return n`
476
- .ft-tooltip--container {
477
- display: block;
478
- position: relative;
479
- }
480
-
481
- .ft-tooltip--inline {
482
- display: inline-block;
483
- max-width: 100%;
484
- }
485
-
486
- .ft-tooltip {
487
- position: absolute;
488
- box-sizing: border-box;
489
- overflow: hidden;
490
- width: max-content;
491
- max-width: 150px;
492
- text-align: center;
493
- padding: ${ji};
494
- z-index: ${Ui};
495
- }
217
+ */var Ye=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};const Ge={color:ft.extend("--ft-ripple-color",vt.colorContent),primaryColor:ft.extend("--ft-ripple-primary-color",ft.extend("--ft-ripple-color",vt.colorPrimary)),secondaryColor:ft.extend("--ft-ripple-secondary-color",ft.extend("--ft-ripple-color",vt.colorSecondary)),opacityContentOnSurfacePressed:ft.external(vt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ft.external(vt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ft.external(vt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ft.external(vt.opacityContentOnSurfaceSelected,"Design system")};class Qe extends bt{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.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed)},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`
218
+ <style>
219
+ .ft-ripple .ft-ripple--effect,
220
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
221
+ width: ${this.rippleSize}px;
222
+ height: ${this.rippleSize}px;
223
+ }
496
224
 
497
- .ft-tooltip--content {
498
- padding: 4px 8px;
499
- border-radius: ${Ii};
500
- background-color: ${Li};
501
- color: ${Di};
502
- top: -500px;
503
- left: -500px;
504
- position: relative;
505
- word-break: break-word;
506
- }
507
- `}getTemplate(){return M`
225
+ .ft-ripple .ft-ripple--effect {
226
+ left: ${this.originX}px;
227
+ top: ${this.originY}px;
228
+ }
229
+ </style>
230
+ <div class="${Xe(t)}">
231
+ <div class="ft-ripple--background"></div>
232
+ <div class="ft-ripple--effect"></div>
233
+ </div>
234
+ `}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){super.updated(t),t.has("disabled")&&this.disabled&&this.endRipple(),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()}}Qe.elementDefinitions={},Qe.styles=b`
235
+ :host {
236
+ display: contents;
237
+ }
238
+
239
+ .ft-ripple {
240
+ position: absolute;
241
+ inset: 0;
242
+ pointer-events: none;
243
+ }
244
+
245
+ .ft-ripple:not(.ft-ripple--unbounded) {
246
+ overflow: hidden;
247
+ }
248
+
249
+ .ft-ripple .ft-ripple--background,
250
+ .ft-ripple .ft-ripple--effect {
251
+ position: absolute;
252
+ opacity: 0;
253
+ background-color: ${Ge.color};
254
+ }
255
+
256
+ .ft-ripple.ft-ripple--secondary .ft-ripple--background,
257
+ .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
258
+ background-color: ${Ge.secondaryColor};
259
+ }
260
+
261
+ .ft-ripple.ft-ripple--primary .ft-ripple--background,
262
+ .ft-ripple.ft-ripple--primary .ft-ripple--effect {
263
+ background-color: ${Ge.primaryColor};
264
+ }
265
+
266
+ .ft-ripple .ft-ripple--background {
267
+ top: 0;
268
+ left: 0;
269
+ height: 100%;
270
+ width: 100%;
271
+ }
272
+
273
+ .ft-ripple .ft-ripple--effect,
274
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
275
+ border-radius: 50%;
276
+ }
277
+
278
+ .ft-ripple .ft-ripple--effect {
279
+ transform: translate(-50%, -50%) scale(0.15);
280
+ transition: transform 300ms ease, opacity 75ms linear;
281
+ }
282
+
283
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
284
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
285
+ left: 50%;
286
+ top: 50%;
287
+ }
288
+
289
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
290
+ transform: translate(-50%, -50%);
291
+ }
292
+
293
+ .ft-ripple.ft-ripple--hovered .ft-ripple--background {
294
+ opacity: ${Ge.opacityContentOnSurfaceHover};
295
+ }
296
+
297
+ .ft-ripple.ft-ripple--selected .ft-ripple--background {
298
+ opacity: ${Ge.opacityContentOnSurfaceSelected};
299
+ }
300
+
301
+ .ft-ripple.ft-ripple--focused .ft-ripple--background {
302
+ opacity: ${Ge.opacityContentOnSurfaceFocused};
303
+ }
304
+
305
+ .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
306
+ opacity: ${Ge.opacityContentOnSurfacePressed};
307
+ transform: translate(-50%, -50%) scale(1);
308
+ }
309
+ `,Ye([o({type:Boolean})],Qe.prototype,"primary",void 0),Ye([o({type:Boolean})],Qe.prototype,"secondary",void 0),Ye([o({type:Boolean})],Qe.prototype,"unbounded",void 0),Ye([o({type:Boolean})],Qe.prototype,"activated",void 0),Ye([o({type:Boolean})],Qe.prototype,"selected",void 0),Ye([o({type:Boolean})],Qe.prototype,"disabled",void 0),Ye([s()],Qe.prototype,"hovered",void 0),Ye([s()],Qe.prototype,"focused",void 0),Ye([s()],Qe.prototype,"pressed",void 0),Ye([s()],Qe.prototype,"rippling",void 0),Ye([s()],Qe.prototype,"rippleSize",void 0),Ye([s()],Qe.prototype,"originX",void 0),Ye([s()],Qe.prototype,"originY",void 0),Ye([r(".ft-ripple")],Qe.prototype,"ripple",void 0),Ye([r(".ft-ripple--effect")],Qe.prototype,"rippleEffect",void 0),c("ft-ripple")(Qe);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};const ei=ft.create("--ft-tooltip-distance","SIZE","4px"),ii=ft.create("--ft-tooltip-color","COLOR","#FFFFFF"),oi=ft.create("--ft-tooltip-background-color","COLOR","#666666"),si=ft.create("--ft-tooltip-z-index","NUMBER","1"),ni=ft.external(vt.borderRadiusS,"Design system");class ri extends bt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new e,this.revealDebouncer=new e}render(){return K`
508
310
  <div part="container"
509
311
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
510
312
  @mouseenter=${this.onHover}
@@ -519,7 +321,39 @@ const Ai=n`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:
519
321
  </div>
520
322
  <slot></slot>
521
323
  </div>
522
- `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.position){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,r=(e.width-this.tooltip.clientWidth)/2,o=this.tooltip.style;switch(this.position){case"top":o.top=-this.tooltip.clientHeight+"px",o.left=r+"px";break;case"bottom":o.top=e.height+"px",o.left=r+"px";break;case"left":o.top=i+"px",o.left=-this.tooltip.clientWidth+"px";break;case"right":o.top=i+"px",o.left=e.width+"px"}o.maxWidth=Math.max(e.width,150)+"px"}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}};Pi.elementDefinitions={"ft-typography":Le},Bi([ct()],Pi.prototype,"text",void 0),Bi([ct({type:Boolean})],Pi.prototype,"manual",void 0),Bi([ct({type:Boolean})],Pi.prototype,"inline",void 0),Bi([ct({type:Number})],Pi.prototype,"delay",void 0),Bi([ct()],Pi.prototype,"position",void 0),Bi([ut("",!0)],Pi.prototype,"slotNodes",void 0),Bi([dt(".ft-tooltip--container")],Pi.prototype,"container",void 0),Bi([dt("slot")],Pi.prototype,"target",void 0),Bi([dt(".ft-tooltip")],Pi.prototype,"tooltip",void 0),Bi([dt(".ft-tooltip--content")],Pi.prototype,"tooltipContent",void 0),Bi([nt()],Pi.prototype,"visible",void 0),Pi=Bi([mt("ft-tooltip")],Pi);var Hi=function(t,e,i,r){for(var o,c=arguments.length,n=c<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,a=t.length-1;a>=0;a--)(o=t[a])&&(n=(c<3?o(n):c>3?o(e,i,n):o(e,i))||n);return c>3&&n&&Object.defineProperty(e,i,n),n};const Vi={color:bt.extend("--ft-loader-color",gt.colorPrimary),size:bt.create("--ft-loader-size","SIZE","80px")};let Wi=class extends yt{getStyles(){return n`
324
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.position){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2,s=this.tooltip.style;switch(this.position){case"top":s.top=-this.tooltip.clientHeight+"px",s.left=o+"px";break;case"bottom":s.top=e.height+"px",s.left=o+"px";break;case"left":s.top=i+"px",s.left=-this.tooltip.clientWidth+"px";break;case"right":s.top=i+"px",s.left=e.width+"px"}s.maxWidth=Math.max(e.width,150)+"px"}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}ri.elementDefinitions={"ft-typography":De},ri.styles=b`
325
+ .ft-tooltip--container {
326
+ display: block;
327
+ position: relative;
328
+ }
329
+
330
+ .ft-tooltip--inline {
331
+ display: inline-block;
332
+ max-width: 100%;
333
+ }
334
+
335
+ .ft-tooltip {
336
+ position: absolute;
337
+ box-sizing: border-box;
338
+ overflow: hidden;
339
+ width: max-content;
340
+ max-width: 150px;
341
+ text-align: center;
342
+ padding: ${ei};
343
+ z-index: ${si};
344
+ }
345
+
346
+ .ft-tooltip--content {
347
+ padding: 4px 8px;
348
+ border-radius: ${ni};
349
+ background-color: ${oi};
350
+ color: ${ii};
351
+ top: -500px;
352
+ left: -500px;
353
+ position: relative;
354
+ word-break: break-word;
355
+ }
356
+ `,ti([o()],ri.prototype,"text",void 0),ti([o({type:Boolean})],ri.prototype,"manual",void 0),ti([o({type:Boolean})],ri.prototype,"inline",void 0),ti([o({type:Number})],ri.prototype,"delay",void 0),ti([o()],ri.prototype,"position",void 0),ti([function(t,e,i){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:e},i?h({slot:s,flatten:e,selector:i}):n({descriptor:t=>({get(){var t,e;const i="slot"+(s?`[name=${s}]`:":not([name])"),n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==n?void 0:n.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],ri.prototype,"slotNodes",void 0),ti([r(".ft-tooltip--container")],ri.prototype,"container",void 0),ti([r("slot")],ri.prototype,"target",void 0),ti([r(".ft-tooltip")],ri.prototype,"tooltip",void 0),ti([r(".ft-tooltip--content")],ri.prototype,"tooltipContent",void 0),ti([s()],ri.prototype,"visible",void 0),c("ft-tooltip")(ri);const li={color:ft.extend("--ft-loader-color",vt.colorPrimary),size:ft.create("--ft-loader-size","SIZE","80px")};class ai extends bt{static get styles(){return b`
523
357
  :host {
524
358
  line-height: 0;
525
359
  }
@@ -528,8 +362,8 @@ const Ai=n`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:
528
362
  display: inline-block;
529
363
  position: relative;
530
364
 
531
- width: ${Vi.size};
532
- height: ${Vi.size};
365
+ width: ${li.size};
366
+ height: ${li.size};
533
367
  }
534
368
 
535
369
  .ft-loader div {
@@ -538,7 +372,7 @@ const Ai=n`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:
538
372
  width: 25%;
539
373
  height: 25%;
540
374
  border-radius: 50%;
541
- background: ${Vi.color};
375
+ background: ${li.color};
542
376
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
543
377
  }
544
378
 
@@ -585,20 +419,65 @@ const Ai=n`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:
585
419
  transform: translate(0, 0);
586
420
  }
587
421
  100% {
588
- transform: translate(calc(0.35 * ${Vi.size}), 0);
422
+ transform: translate(calc(0.35 * ${li.size}), 0);
589
423
  }
590
424
  }
591
- `}getTemplate(){return M`
425
+ `}render(){return K`
592
426
  <div class="ft-loader">
593
427
  <div></div>
594
428
  <div></div>
595
429
  <div></div>
596
430
  <div></div>
597
431
  </div>
598
- `}};Wi=Hi([mt("ft-loader")],Wi);var Gi=function(t,e,i,r){for(var o,c=arguments.length,n=c<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,a=t.length-1;a>=0;a--)(o=t[a])&&(n=(c<3?o(n):c>3?o(e,i,n):o(e,i))||n);return c>3&&n&&Object.defineProperty(e,i,n),n};const Ki=bt.extend("--ft-button-color",gt.colorPrimary),Zi={backgroundColor:bt.extend("--ft-button-background-color",gt.colorSurface),borderRadius:bt.extend("--ft-button-border-radius",gt.borderRadiusL),color:Ki,fontSize:bt.extend("--ft-button-font-size",Re.fontSize),iconSize:bt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:bt.extend("--ft-button-ripple-color",Ki),opacityDisabled:bt.external(gt.colorOpacityDisabled,"Design system")},qi=bt.extend("--ft-button-primary-color",bt.extend("--ft-button-color",gt.colorOnPrimary)),Xi=bt.extend("--ft-button-primary-background-color",bt.extend("--ft-button-background-color",gt.colorPrimary)),Ji=qi,Yi=(bt.extend("--ft-button-primary-ripple-color",qi),bt.extend("--ft-button-dense-border-radius",bt.extend("--ft-button-border-radius",gt.borderRadiusM)));let Qi=class extends yt{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}getStyles(){return[xt,n`
432
+ `}}c("ft-loader")(ai);
433
+ /**
434
+ * @license
435
+ * Copyright 2017 Google LLC
436
+ * SPDX-License-Identifier: BSD-3-Clause
437
+ */
438
+ class hi extends Pe{constructor(t){if(super(t),this.it=Z,t.type!==Ae)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Z||null==t)return this.vt=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.vt;this.it=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}hi.directiveName="unsafeHTML",hi.resultType=1;const ci=_e(hi);var pi,di;!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;"}(pi||(pi={})),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;"}(di||(di={})),new Map([...["abw"].map((t=>[t,di.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,di.AUDIO])),...["avi"].map((t=>[t,di.AVI])),...["chm","xhs"].map((t=>[t,di.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,di.CODE])),...["csv"].map((t=>[t,di.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,di.DITA])),...["epub"].map((t=>[t,di.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,di.EXCEL])),...["flac"].map((t=>[t,di.FLAC])),...["gif"].map((t=>[t,di.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,di.GZIP])),...["html","htm","xhtml"].map((t=>[t,di.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,di.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,di.JPEG])),...["json"].map((t=>[t,di.JSON])),...["m4a","m4p"].map((t=>[t,di.M4A])),...["mov","qt"].map((t=>[t,di.MOV])),...["mp3"].map((t=>[t,di.MP3])),...["mp4","m4v"].map((t=>[t,di.MP4])),...["ogg","oga"].map((t=>[t,di.OGG])),...["pdf","ps"].map((t=>[t,di.PDF])),...["png"].map((t=>[t,di.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,di.POWERPOINT])),...["rar"].map((t=>[t,di.RAR])),...["stp"].map((t=>[t,di.STP])),...["txt","rtf","md","mdown"].map((t=>[t,di.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,di.VIDEO])),...["wav"].map((t=>[t,di.WAV])),...["wma"].map((t=>[t,di.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,di.WORD])),...["xml","xsl","rdf"].map((t=>[t,di.XML])),...["yaml","yml","x-yaml"].map((t=>[t,di.YAML])),...["zip"].map((t=>[t,di.ZIP]))]);var fi,ui=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};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(fi||(fi={}));const vi={size:ft.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:ft.extend("--ft-icon-fluid-topics-font-family",ft.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:ft.extend("--ft-icon-file-format-font-family",ft.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:ft.extend("--ft-icon-material-font-family",ft.create("--ft-icon-font-family","UNKNOWN","Material Icons"))};class bi extends bt{constructor(){super(...arguments),this.variant=fi.fluid_topics}render(){return K`
439
+ <i class="ft-icon ${"ft-icon--"+this.variant}">
440
+ ${ci(this.getIcon())}
441
+ <slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
442
+ </i>
443
+ `}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:""}getIcon(){var t,e;let i=this.textContent;return this.variant===fi.file_format?null!==(t=di[i.toUpperCase()])&&void 0!==t?t:i:this.variant===fi.fluid_topics?null!==(e=pi[i.toUpperCase()])&&void 0!==e?e:i:Z}}bi.elementDefinitions={},bi.styles=b`
444
+ :host, i.ft-icon {
445
+ display: inline-block;
446
+ width: ${vi.size};
447
+ height: ${vi.size};
448
+ text-align: center;
449
+ }
450
+
451
+ i.ft-icon {
452
+ font-size: ${vi.size};
453
+ line-height: 1;
454
+ font-weight: normal;
455
+ text-transform: none;
456
+ font-style: normal;
457
+ font-variant: normal;
458
+ speak: none;
459
+ text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
460
+ text-rendering: auto;
461
+ -webkit-font-smoothing: antialiased;
462
+ -moz-osx-font-smoothing: grayscale;
463
+ }
464
+
465
+ .ft-icon--fluid-topics {
466
+ font-family: ${vi.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
467
+ }
468
+
469
+ .ft-icon--file-format {
470
+ font-family: ${vi.fileFormatFontFamily}, ft-mime, sans-serif;
471
+ }
472
+
473
+ .ft-icon--material {
474
+ font-family: ${vi.materialFontFamily}, "Material Icons", sans-serif;
475
+ }
476
+ `,ui([o()],bi.prototype,"variant",void 0),ui([r("slot")],bi.prototype,"slottedContent",void 0),c("ft-icon")(bi);var xi=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};const yi=ft.extend("--ft-button-color",vt.colorPrimary),gi={backgroundColor:ft.extend("--ft-button-background-color",vt.colorSurface),borderRadius:ft.extend("--ft-button-border-radius",vt.borderRadiusL),color:yi,fontSize:ft.extend("--ft-button-font-size",Se.fontSize),iconSize:ft.create("--ft-button-icon-size","SIZE","24px"),rippleColor:ft.extend("--ft-button-ripple-color",yi),opacityDisabled:ft.external(vt.colorOpacityDisabled,"Design system")},mi=ft.extend("--ft-button-primary-color",ft.extend("--ft-button-color",vt.colorOnPrimary)),$i={backgroundColor:ft.extend("--ft-button-primary-background-color",ft.extend("--ft-button-background-color",vt.colorPrimary)),color:mi,rippleColor:ft.extend("--ft-button-primary-ripple-color",mi)},wi=ft.extend("--ft-button-dense-border-radius",ft.extend("--ft-button-border-radius",vt.borderRadiusM));class ki extends bt{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}static get styles(){return[xt,b`
599
477
  :host {
600
478
  display: inline-block;
601
479
  max-width: 100%;
480
+ pointer-events: none;
602
481
  }
603
482
 
604
483
  button {
@@ -631,19 +510,20 @@ const Ai=n`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:
631
510
  overflow: hidden;
632
511
  box-sizing: border-box;
633
512
  border: none;
513
+ pointer-events: auto;
634
514
 
635
- --ft-button-internal-font-size: ${Zi.fontSize};
515
+ --ft-button-internal-font-size: ${gi.fontSize};
636
516
  --ft-button-internal-line-height: calc(var(--ft-button-internal-font-size) + 2px);
637
- --ft-button-internal-color: ${Zi.color};
638
- --mdc-icon-size: ${Zi.iconSize};
517
+ --ft-button-internal-color: ${gi.color};
518
+ ${ut(vi.size,gi.iconSize)};
639
519
  --ft-button-internal-vertical-padding: 6px;
640
520
  --ft-button-internal-horizontal-padding: 8px;
641
- ${vt(Ni.color,Zi.rippleColor)};
642
- --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), var(--mdc-icon-size));
521
+ ${ut(Ge.color,gi.rippleColor)};
522
+ --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${gi.iconSize});
643
523
 
644
- border-radius: ${Zi.borderRadius};
524
+ border-radius: ${gi.borderRadius};
645
525
  padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
646
- background-color: ${Zi.backgroundColor};
526
+ background-color: ${gi.backgroundColor};
647
527
  color: var(--ft-button-internal-color);
648
528
  -webkit-mask-image: radial-gradient(white, black);
649
529
  }
@@ -655,7 +535,7 @@ const Ai=n`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:
655
535
  .ft-button--dense {
656
536
  --ft-button-internal-vertical-padding: 2px;
657
537
  --ft-button-internal-horizontal-padding: 4px;
658
- border-radius: ${Yi};
538
+ border-radius: ${wi};
659
539
  }
660
540
 
661
541
  .ft-button--round {
@@ -664,12 +544,13 @@ const Ai=n`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:
664
544
 
665
545
  .ft-button[disabled] {
666
546
  filter: grayscale(1);
667
- opacity: ${Zi.opacityDisabled};
547
+ opacity: ${gi.opacityDisabled};
668
548
  }
669
549
 
670
550
  .ft-button.ft-button--primary {
671
- background-color: ${Xi};
672
- --ft-button-internal-color: ${Ji};
551
+ background-color: ${$i.backgroundColor};
552
+ --ft-button-internal-color: ${$i.color};
553
+ ${ut(Ge.color,$i.rippleColor)};
673
554
  }
674
555
 
675
556
  .ft-button.ft-button--outlined {
@@ -687,8 +568,8 @@ const Ai=n`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:
687
568
  text-overflow: ellipsis;
688
569
  display: block;
689
570
  margin: 0 var(--ft-button-internal-horizontal-padding);
690
- ${vt(Re.fontSize,"var(--ft-button-internal-font-size)")};
691
- ${vt(Re.lineHeight,"var(--ft-button-internal-content-height)")};
571
+ ${ut(Se.fontSize,"var(--ft-button-internal-font-size)")};
572
+ ${ut(Se.lineHeight,"var(--ft-button-internal-content-height)")};
692
573
  }
693
574
 
694
575
  .ft-button--safari-fix .ft-button--label {
@@ -705,28 +586,27 @@ const Ai=n`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:
705
586
  display: none;
706
587
  }
707
588
 
708
- mwc-icon {
589
+ ft-icon {
709
590
  flex-shrink: 0;
710
- width: var(--mdc-icon-size);
711
591
  }
712
592
 
713
- .ft-button--label[hidden] + mwc-icon {
593
+ .ft-button--label[hidden] + ft-icon {
714
594
  margin: 0 calc(var(--ft-button-internal-horizontal-padding) * -1);
715
595
  padding: 0 var(--ft-button-internal-vertical-padding);
716
596
  }
717
597
 
718
- .ft-button:not(.ft-button--trailing-icon) mwc-icon,
598
+ .ft-button:not(.ft-button--trailing-icon) ft-icon,
719
599
  .ft-button:not(.ft-button--trailing-icon) ft-loader {
720
600
  order: -1;
721
601
  }
722
602
 
723
603
  ft-loader {
724
- ${vt(Vi.size,Zi.iconSize)};
725
- ${vt(Vi.color,"var(--ft-button-internal-color)")};
604
+ ${ut(li.size,gi.iconSize)};
605
+ ${ut(li.color,"var(--ft-button-internal-color)")};
726
606
  }
727
- `]}getTemplate(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--safari-fix":$t,"ft-no-text-select":!0};return this.addTooltip(M`
607
+ `]}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--safari-fix":$t,"ft-no-text-select":!0};return this.addTooltip(K`
728
608
  <button part="button"
729
- class="${bi(t)}"
609
+ class="${Xe(t)}"
730
610
  aria-label="${this.getLabel()}"
731
611
  ?disabled=${this.isDisabled()}>
732
612
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
@@ -738,239 +618,246 @@ const Ai=n`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:
738
618
  </ft-typography>
739
619
  ${this.resolveIcon()}
740
620
  </button>
741
- `)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:M`
621
+ `)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:K`
742
622
  <ft-tooltip part="tooltip"
743
623
  text="${this.getLabel()}"
744
624
  position="${this.tooltipPosition}">
745
625
  ${t}
746
626
  </ft-tooltip>
747
- `}resolveIcon(){return this.loading?M`
748
- <ft-loader></ft-loader> `:this.icon?M`
749
- <mwc-icon>${this.icon}</mwc-icon> `:j}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};Qi.elementDefinitions={"ft-ripple":Fi,"ft-tooltip":Pi,"ft-typography":Le,"mwc-icon":Mi,"ft-loader":Wi},Gi([ct({type:Boolean})],Qi.prototype,"primary",void 0),Gi([ct({type:Boolean})],Qi.prototype,"outlined",void 0),Gi([ct({type:Boolean})],Qi.prototype,"disabled",void 0),Gi([ct({type:Boolean})],Qi.prototype,"dense",void 0),Gi([ct({type:Boolean})],Qi.prototype,"round",void 0),Gi([ct({type:String})],Qi.prototype,"label",void 0),Gi([ct({type:String})],Qi.prototype,"icon",void 0),Gi([ct({type:Boolean})],Qi.prototype,"trailingIcon",void 0),Gi([ct({type:Boolean})],Qi.prototype,"loading",void 0),Gi([ct({type:String})],Qi.prototype,"tooltipPosition",void 0),Gi([dt(".ft-button")],Qi.prototype,"button",void 0),Gi([dt(".ft-button--label slot")],Qi.prototype,"slottedContent",void 0),Qi=Gi([mt("ft-button")],Qi);
750
- /**
751
- * @license
752
- * Copyright 2017 Google Inc.
753
- *
754
- * Permission is hereby granted, free of charge, to any person obtaining a copy
755
- * of this software and associated documentation files (the "Software"), to deal
756
- * in the Software without restriction, including without limitation the rights
757
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
758
- * copies of the Software, and to permit persons to whom the Software is
759
- * furnished to do so, subject to the following conditions:
760
- *
761
- * The above copyright notice and this permission notice shall be included in
762
- * all copies or substantial portions of the Software.
763
- *
764
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
765
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
766
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
767
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
768
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
769
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
770
- * THE SOFTWARE.
771
- */
772
- var tr={ROOT:"mdc-form-field"},er={LABEL_SELECTOR:".mdc-form-field > label"},ir=function(t){function e(i){var r=t.call(this,ei(ei({},e.defaultAdapter),i))||this;return r.click=function(){r.handleClick()},r}return ti(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return tr},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return er},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{activateInputRipple:function(){},deactivateInputRipple:function(){},deregisterInteractionHandler:function(){},registerInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.adapter.registerInteractionHandler("click",this.click)},e.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("click",this.click)},e.prototype.handleClick=function(){var t=this;this.adapter.activateInputRipple(),requestAnimationFrame((function(){t.adapter.deactivateInputRipple()}))},e}(ai);
773
- /**
774
- * @license
775
- * Copyright 2018 Google LLC
776
- * SPDX-License-Identifier: Apache-2.0
777
- */
778
- const rr=t=>(e,i)=>{if(e.constructor._observers){if(!e.constructor.hasOwnProperty("_observers")){const t=e.constructor._observers;e.constructor._observers=new Map,t.forEach(((t,i)=>e.constructor._observers.set(i,t)))}}else{e.constructor._observers=new Map;const t=e.updated;e.updated=function(e){t.call(this,e),e.forEach(((t,e)=>{const i=this.constructor._observers.get(e);void 0!==i&&i.call(this,this[e],t)}))}}e.constructor._observers.set(i,t)}
779
- /**
780
- * @license
781
- * Copyright 2018 Google LLC
782
- * SPDX-License-Identifier: Apache-2.0
783
- */;class or extends ni{constructor(){super(...arguments),this.alignEnd=!1,this.spaceBetween=!1,this.nowrap=!1,this.label="",this.mdcFoundationClass=ir}createAdapter(){return{registerInteractionHandler:(t,e)=>{this.labelEl.addEventListener(t,e)},deregisterInteractionHandler:(t,e)=>{this.labelEl.removeEventListener(t,e)},activateInputRipple:async()=>{const t=this.input;if(t instanceof Oi){const e=await t.ripple;e&&e.startPress()}},deactivateInputRipple:async()=>{const t=this.input;if(t instanceof Oi){const e=await t.ripple;e&&e.endPress()}}}}get input(){var t,e;return null!==(e=null===(t=this.slottedInputs)||void 0===t?void 0:t[0])&&void 0!==e?e:null}render(){const t={"mdc-form-field--align-end":this.alignEnd,"mdc-form-field--space-between":this.spaceBetween,"mdc-form-field--nowrap":this.nowrap};return M`
784
- <div class="mdc-form-field ${bi(t)}">
785
- <slot></slot>
786
- <label class="mdc-label"
787
- @click="${this._labelClick}">${this.label}</label>
788
- </div>`}click(){this._labelClick()}_labelClick(){const t=this.input;t&&(t.focus(),t.click())}}ii([ct({type:Boolean})],or.prototype,"alignEnd",void 0),ii([ct({type:Boolean})],or.prototype,"spaceBetween",void 0),ii([ct({type:Boolean})],or.prototype,"nowrap",void 0),ii([ct({type:String}),rr((async function(t){var e;null===(e=this.input)||void 0===e||e.setAttribute("aria-label",t)}))],or.prototype,"label",void 0),ii([dt(".mdc-form-field")],or.prototype,"mdcRoot",void 0),ii([ut("",!0,"*")],or.prototype,"slottedInputs",void 0),ii([dt("label")],or.prototype,"labelEl",void 0);
789
- /**
790
- * @license
791
- * Copyright 2021 Google LLC
792
- * SPDX-LIcense-Identifier: Apache-2.0
793
- */
794
- const cr=n`.mdc-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-body2-font-size, 0.875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit);color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87));display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}:host{display:inline-flex}.mdc-form-field{width:100%}::slotted(*){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-body2-font-size, 0.875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit);color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}::slotted(mwc-switch){margin-right:10px}[dir=rtl] ::slotted(mwc-switch),::slotted(mwc-switch[dir=rtl]){margin-left:10px}`
795
- /**
796
- * @license
797
- * Copyright 2018 Google LLC
798
- * SPDX-License-Identifier: Apache-2.0
799
- */;let nr=class extends or{};nr.styles=[cr],nr=ii([rt("mwc-formfield")],nr);
800
- /**
801
- * @license
802
- * Copyright 2020 Google LLC
803
- * SPDX-License-Identifier: Apache-2.0
804
- */
805
- const ar=Symbol("selection controller");class sr{constructor(){this.selected=null,this.ordered=null,this.set=new Set}}class dr{constructor(t){this.sets={},this.focusedSet=null,this.mouseIsDown=!1,this.updating=!1,t.addEventListener("keydown",(t=>{this.keyDownHandler(t)})),t.addEventListener("mousedown",(()=>{this.mousedownHandler()})),t.addEventListener("mouseup",(()=>{this.mouseupHandler()}))}static getController(t){const e=!("global"in t)||"global"in t&&t.global?document:t.getRootNode();let i=e[ar];return void 0===i&&(i=new dr(e),e[ar]=i),i}keyDownHandler(t){const e=t.target;"checked"in e&&this.has(e)&&("ArrowRight"==t.key||"ArrowDown"==t.key?this.selectNext(e):"ArrowLeft"!=t.key&&"ArrowUp"!=t.key||this.selectPrevious(e))}mousedownHandler(){this.mouseIsDown=!0}mouseupHandler(){this.mouseIsDown=!1}has(t){return this.getSet(t.name).set.has(t)}selectPrevious(t){const e=this.getOrdered(t),i=e.indexOf(t),r=e[i-1]||e[e.length-1];return this.select(r),r}selectNext(t){const e=this.getOrdered(t),i=e.indexOf(t),r=e[i+1]||e[0];return this.select(r),r}select(t){t.click()}focus(t){if(this.mouseIsDown)return;const e=this.getSet(t.name),i=this.focusedSet;this.focusedSet=e,i!=e&&e.selected&&e.selected!=t&&e.selected.focus()}isAnySelected(t){const e=this.getSet(t.name);for(const t of e.set)if(t.checked)return!0;return!1}getOrdered(t){const e=this.getSet(t.name);return e.ordered||(e.ordered=Array.from(e.set),e.ordered.sort(((t,e)=>t.compareDocumentPosition(e)==Node.DOCUMENT_POSITION_PRECEDING?1:0))),e.ordered}getSet(t){return this.sets[t]||(this.sets[t]=new sr),this.sets[t]}register(t){const e=t.name||t.getAttribute("name")||"",i=this.getSet(e);i.set.add(t),i.ordered=null}unregister(t){const e=this.getSet(t.name);e.set.delete(t),e.ordered=null,e.selected==t&&(e.selected=null)}update(t){if(this.updating)return;this.updating=!0;const e=this.getSet(t.name);if(t.checked){for(const i of e.set)i!=t&&(i.checked=!1);e.selected=t}if(this.isAnySelected(t))for(const t of e.set){if(void 0===t.formElementTabIndex)break;t.formElementTabIndex=t.checked?0:-1}this.updating=!1}}
806
- /**
807
- * @license
808
- * Copyright 2016 Google Inc.
809
- *
810
- * Permission is hereby granted, free of charge, to any person obtaining a copy
811
- * of this software and associated documentation files (the "Software"), to deal
812
- * in the Software without restriction, including without limitation the rights
813
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
814
- * copies of the Software, and to permit persons to whom the Software is
815
- * furnished to do so, subject to the following conditions:
816
- *
817
- * The above copyright notice and this permission notice shall be included in
818
- * all copies or substantial portions of the Software.
819
- *
820
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
821
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
822
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
823
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
824
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
825
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
826
- * THE SOFTWARE.
827
- */var lr={NATIVE_CONTROL_SELECTOR:".mdc-radio__native-control"},pr={DISABLED:"mdc-radio--disabled",ROOT:"mdc-radio"},hr=function(t){function e(i){return t.call(this,ei(ei({},e.defaultAdapter),i))||this}return ti(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return pr},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return lr},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNativeControlDisabled:function(){}}},enumerable:!1,configurable:!0}),e.prototype.setDisabled=function(t){var i=e.cssClasses.DISABLED;this.adapter.setNativeControlDisabled(t),t?this.adapter.addClass(i):this.adapter.removeClass(i)},e}(ai);
828
- /**
829
- * @license
830
- * Copyright 2018 Google LLC
831
- * SPDX-License-Identifier: Apache-2.0
832
- */
833
- class ur extends Oi{constructor(){super(...arguments),this._checked=!1,this.useStateLayerCustomProperties=!1,this.global=!1,this.disabled=!1,this.value="on",this.name="",this.reducedTouchTarget=!1,this.mdcFoundationClass=hr,this.formElementTabIndex=0,this.focused=!1,this.shouldRenderRipple=!1,this.rippleElement=null,this.rippleHandlers=new Si((()=>(this.shouldRenderRipple=!0,this.ripple.then((t=>{this.rippleElement=t})),this.ripple)))}get checked(){return this._checked}set checked(t){var e,i;const r=this._checked;t!==r&&(this._checked=t,this.formElement&&(this.formElement.checked=t),null===(e=this._selectionController)||void 0===e||e.update(this),!1===t&&(null===(i=this.formElement)||void 0===i||i.blur()),this.requestUpdate("checked",r),this.dispatchEvent(new Event("checked",{bubbles:!0,composed:!0})))}_handleUpdatedValue(t){this.formElement.value=t}renderRipple(){return this.shouldRenderRipple?M`<mwc-ripple unbounded accent
834
- .internalUseStateLayerCustomProperties="${this.useStateLayerCustomProperties}"
835
- .disabled="${this.disabled}"></mwc-ripple>`:""}get isRippleActive(){var t;return(null===(t=this.rippleElement)||void 0===t?void 0:t.isActive)||!1}connectedCallback(){super.connectedCallback(),this._selectionController=dr.getController(this),this._selectionController.register(this),this._selectionController.update(this)}disconnectedCallback(){this._selectionController.unregister(this),this._selectionController=void 0}focus(){this.formElement.focus()}createAdapter(){return Object.assign(Object.assign({},(t=this.mdcRoot,{addClass:e=>{t.classList.add(e)},removeClass:e=>{t.classList.remove(e)},hasClass:e=>t.classList.contains(e)})),{setNativeControlDisabled:t=>{this.formElement.disabled=t}});var t}handleFocus(){this.focused=!0,this.handleRippleFocus()}handleClick(){this.formElement.focus()}handleBlur(){this.focused=!1,this.formElement.blur(),this.rippleHandlers.endFocus()}setFormData(t){this.name&&this.checked&&t.append(this.name,this.value)}render(){const t={"mdc-radio--touch":!this.reducedTouchTarget,"mdc-ripple-upgraded--background-focused":this.focused,"mdc-radio--disabled":this.disabled};return M`
836
- <div class="mdc-radio ${bi(t)}">
837
- <input
838
- tabindex="${this.formElementTabIndex}"
839
- class="mdc-radio__native-control"
840
- type="radio"
841
- name="${this.name}"
842
- aria-label="${zi(this.ariaLabel)}"
843
- aria-labelledby="${zi(this.ariaLabelledBy)}"
844
- .checked="${this.checked}"
845
- .value="${this.value}"
846
- ?disabled="${this.disabled}"
847
- @change="${this.changeHandler}"
848
- @focus="${this.handleFocus}"
849
- @click="${this.handleClick}"
850
- @blur="${this.handleBlur}"
851
- @mousedown="${this.handleRippleMouseDown}"
852
- @mouseenter="${this.handleRippleMouseEnter}"
853
- @mouseleave="${this.handleRippleMouseLeave}"
854
- @touchstart="${this.handleRippleTouchStart}"
855
- @touchend="${this.handleRippleDeactivate}"
856
- @touchcancel="${this.handleRippleDeactivate}">
857
- <div class="mdc-radio__background">
858
- <div class="mdc-radio__outer-circle"></div>
859
- <div class="mdc-radio__inner-circle"></div>
860
- </div>
861
- ${this.renderRipple()}
862
- </div>`}handleRippleMouseDown(t){const e=()=>{window.removeEventListener("mouseup",e),this.handleRippleDeactivate()};window.addEventListener("mouseup",e),this.rippleHandlers.startPress(t)}handleRippleTouchStart(t){this.rippleHandlers.startPress(t)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}changeHandler(){this.checked=this.formElement.checked}}ii([dt(".mdc-radio")],ur.prototype,"mdcRoot",void 0),ii([dt("input")],ur.prototype,"formElement",void 0),ii([nt()],ur.prototype,"useStateLayerCustomProperties",void 0),ii([ct({type:Boolean})],ur.prototype,"global",void 0),ii([ct({type:Boolean,reflect:!0})],ur.prototype,"checked",null),ii([ct({type:Boolean}),rr((function(t){this.mdcFoundation.setDisabled(t)}))],ur.prototype,"disabled",void 0),ii([ct({type:String}),rr((function(t){this._handleUpdatedValue(t)}))],ur.prototype,"value",void 0),ii([ct({type:String})],ur.prototype,"name",void 0),ii([ct({type:Boolean})],ur.prototype,"reducedTouchTarget",void 0),ii([ct({type:Number})],ur.prototype,"formElementTabIndex",void 0),ii([nt()],ur.prototype,"focused",void 0),ii([nt()],ur.prototype,"shouldRenderRipple",void 0),ii([lt("mwc-ripple")],ur.prototype,"ripple",void 0),ii([ki,ct({attribute:"aria-label"})],ur.prototype,"ariaLabel",void 0),ii([ki,ct({attribute:"aria-labelledby"})],ur.prototype,"ariaLabelledBy",void 0),ii([st({passive:!0})],ur.prototype,"handleRippleTouchStart",null);
863
- /**
864
- * @license
865
- * Copyright 2021 Google LLC
866
- * SPDX-LIcense-Identifier: Apache-2.0
867
- */
868
- const fr=n`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc((40px - 20px) / 2)}.mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:rgba(0, 0, 0, 0.54)}.mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:#018786;border-color:var(--mdc-theme-secondary, #018786)}.mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:#018786;border-color:var(--mdc-theme-secondary, #018786)}.mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:rgba(0, 0, 0, 0.38)}.mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:rgba(0, 0, 0, 0.38)}.mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:rgba(0, 0, 0, 0.38)}.mdc-radio .mdc-radio__background::before{background-color:#018786;background-color:var(--mdc-theme-secondary, #018786)}.mdc-radio .mdc-radio__background::before{top:calc(-1 * (40px - 20px) / 2);left:calc(-1 * (40px - 20px) / 2);width:40px;height:40px}.mdc-radio .mdc-radio__native-control{top:calc((40px - 40px) / 2);right:calc((40px - 40px) / 2);left:calc((40px - 40px) / 2);width:40px;height:40px}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:GrayText}.mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:GrayText}.mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:GrayText}}.mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color}.mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}.mdc-radio--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-radio--touch .mdc-radio__native-control{top:calc((40px - 48px) / 2);right:calc((40px - 48px) / 2);left:calc((40px - 48px) / 2);width:48px;height:48px}.mdc-radio__native-control:checked+.mdc-radio__background,.mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio--disabled{cursor:default;pointer-events:none}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5);transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:disabled+.mdc-radio__background,[aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background{cursor:default}.mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}:host{display:inline-block;outline:none}.mdc-radio{vertical-align:bottom}.mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unchecked-color, rgba(0, 0, 0, 0.54))}.mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-color, rgba(0, 0, 0, 0.38))}.mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-color, rgba(0, 0, 0, 0.38))}.mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-disabled-color, rgba(0, 0, 0, 0.38))}`
869
- /**
870
- * @license
871
- * Copyright 2018 Google LLC
872
- * SPDX-License-Identifier: Apache-2.0
873
- */;let mr=class extends ur{};mr.styles=[fr],mr=ii([rt("mwc-radio")],mr);var br=function(t,e,i,r){for(var o,c=arguments.length,n=c<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,a=t.length-1;a>=0;a--)(o=t[a])&&(n=(c<3?o(n):c>3?o(e,i,n):o(e,i))||n);return c>3&&n&&Object.defineProperty(e,i,n),n};const vr={borderRadiusM:bt.external(gt.borderRadiusM,"Design system"),colorOutline:bt.external(gt.colorOutline,"Design system"),colorOnSurface:bt.external(gt.colorOnSurface,"Design system"),colorOnSurfaceMedium:bt.external(gt.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:bt.external(gt.colorOnSurfaceDisabled,"Design system"),colorPrimary:bt.external(gt.colorPrimary,"Design system"),colorOnPrimary:bt.external(gt.colorOnPrimary,"Design system"),fontFamily:bt.external(de.fontFamily,"Body2 typography"),fontSize:bt.external(de.fontSize,"Body2 typography"),fontWeight:bt.external(de.fontWeight,"Body2 typography"),letterSpacing:bt.external(de.letterSpacing,"Body2 typography"),lineHeight:bt.external(de.lineHeight,"Body2 typography"),textTransform:bt.external(de.textTransform,"Body2 typography")};let gr=class extends yt{constructor(){super(...arguments),this.id="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1}getStyles(){return[n`
874
- .ft-filter-level--container {
875
- display: flex;
876
- flex-direction: column;
877
- }
878
-
879
- .ft-filter-level--container > * {
880
- padding: 0 10px;
881
- }
882
-
883
- .ft-filter-level--go-back {
884
- flex-shrink: 0;
885
- text-decoration: none;
886
- position: relative;
887
- border-radius: ${vr.borderRadiusM};
888
- overflow: hidden;
889
- display: flex;
890
- align-items: center;
891
- padding: 4px 4px;
892
- gap: 4px;
893
- cursor: pointer;
894
- color: ${vr.colorOnSurface};
895
- }
896
-
897
- .ft-filter-level--go-back:focus {
898
- outline: none;
899
- }
900
-
901
- .ft-filter-level--go-back mwc-icon {
902
- flex-shrink: 0;
903
- }
904
-
905
- .ft-filter-level--go-back ft-typography {
906
- display: block;
907
- flex-grow: 1;
908
- flex-shrink: 0;
909
- }
910
-
911
- .ft-filter-level--option {
912
- display: flex;
913
- align-items: center;
914
- max-width: 100%;
915
- }
916
-
917
- .ft-filter-level--option ft-button {
918
- margin-right: -10px;
919
- flex-shrink: 0;
920
- }
921
-
922
- ft-button {
923
- ${vt(Zi.color,vr.colorOnSurface)};
924
- }
925
-
926
- mwc-formfield {
927
- flex-shrink: 1;
928
- flex-grow: 1;
929
- display: block;
930
- max-width: calc(100% + 10px);
931
- margin-left: -10px;
932
- word-break: break-word;
933
-
934
- --mdc-theme-secondary: ${vr.colorPrimary};
935
-
936
- --mdc-radio-unchecked-color: ${vr.colorOnSurfaceMedium};
937
- --mdc-checkbox-unchecked-color: ${vr.colorOnSurfaceMedium};
938
- --mdc-checkbox-ink-color: ${vr.colorOnPrimary};
939
-
940
- --mdc-radio-disabled-color: ${vr.colorOnSurfaceDisabled};
941
- --mdc-checkbox-disabled-color: ${vr.colorOnSurfaceDisabled};
942
-
943
- --mdc-theme-on-surface: ${vr.colorPrimary};
944
-
945
- --mdc-typography-body2-font-family: ${vr.fontFamily};
946
- --mdc-typography-body2-font-size: ${vr.fontSize};
947
- --mdc-typography-body2-font-weight: ${vr.fontWeight};
948
- --mdc-typography-body2-letter-spacing: ${vr.letterSpacing};
949
- --mdc-typography-body2-line-height: ${vr.lineHeight};
950
- --mdc-typography-body2-text-transform: ${vr.textTransform};
951
- --mdc-theme-text-primary-on-background: ${vr.colorOnSurface};
952
- }
953
-
954
- .ft-filter--disabled {
955
- --mdc-theme-text-primary-on-background: ${vr.colorOnSurfaceDisabled};
956
- }
957
- `]}get hasHiddenValues(){let t=this.limit;return null!=t&&t<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var t,e;return null!==(e=null===(t=this.container)||void 0===t?void 0:t.scrollHeight)&&void 0!==e?e:0}getTemplate(){let t=this.options;this.hideSelectedOptions&&(t=t.filter((t=>!t.selected))),this.filter&&(t=t.filter((t=>t.label.toLowerCase().includes(this.filter.toLowerCase()))));const e=t.slice(0,this.limit);return M`
627
+ `}resolveIcon(){return this.loading?K`
628
+ <ft-loader></ft-loader> `:this.icon?K`
629
+ <ft-icon variant="material">${this.icon}</ft-icon> `:Z}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}ki.elementDefinitions={"ft-ripple":Qe,"ft-tooltip":ri,"ft-typography":De,"ft-icon":bi,"ft-loader":ai},xi([o({type:Boolean})],ki.prototype,"primary",void 0),xi([o({type:Boolean})],ki.prototype,"outlined",void 0),xi([o({type:Boolean})],ki.prototype,"disabled",void 0),xi([o({type:Boolean})],ki.prototype,"dense",void 0),xi([o({type:Boolean})],ki.prototype,"round",void 0),xi([o({type:String})],ki.prototype,"label",void 0),xi([o({type:String})],ki.prototype,"icon",void 0),xi([o({type:Boolean})],ki.prototype,"trailingIcon",void 0),xi([o({type:Boolean})],ki.prototype,"loading",void 0),xi([o({type:String})],ki.prototype,"tooltipPosition",void 0),xi([r(".ft-button")],ki.prototype,"button",void 0),xi([r(".ft-button--label slot")],ki.prototype,"slottedContent",void 0),c("ft-button")(ki);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};const Si=ft.extend("--ft-checkbox-text-color",vt.colorOnSurfaceHigh),Ci=ft.external(vt.colorPrimary,"Design system"),Ei=ft.external(vt.colorOnPrimary,"Design system"),Ni=ft.extend("--ft-checkbox-border-color",vt.colorOnSurfaceMedium),zi=ft.external(vt.colorOnSurfaceDisabled,"Design system");class Mi extends bt{constructor(){super(...arguments),this.name="",this.checked=!1,this.indeterminate=!1,this.disabled=!1}render(){const t={"ft-checkbox":!0,"ft-checkbox--checked":this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled};return K`
630
+ <label class="${Xe(t)}">
631
+ <div class="ft-checkbox--box-container">
632
+ <input type="checkbox"
633
+ name=${this.name}
634
+ .checked=${this.checked}
635
+ .disabled=${this.disabled}
636
+ @change=${this.onChange}
637
+ >
638
+ <ft-ripple
639
+ ?disabled=${this.disabled}
640
+ ?primary=${this.checked||this.indeterminate}
641
+ unbounded>
642
+ </ft-ripple>
643
+ <div class="ft-checkbox--box">
644
+ <svg class="ft-checkbox--checkmark" viewBox="0 0 24 24">
645
+ <path class="ft-checkbox--checkmark-path" fill="none"
646
+ d=${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}></path>
647
+ </svg>
648
+ </div>
649
+ </div>
650
+ <ft-typography variant="body2">
651
+ <slot></slot>
652
+ </ft-typography>
653
+ </label>
654
+ `}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),null===(e=this.ripple)||void 0===e||e.setupFor(this.container)}}Mi.elementDefinitions={"ft-ripple":Qe,"ft-typography":De},Mi.styles=b`
655
+ * {
656
+ box-sizing: border-box;
657
+ }
658
+
659
+ .ft-checkbox {
660
+ box-sizing: border-box;
661
+ color: ${Si};
662
+
663
+ display: inline-flex;
664
+ align-items: center;
665
+ gap: 4px;
666
+ }
667
+
668
+ .ft-checkbox--disabled {
669
+ color: ${zi};
670
+ }
671
+
672
+ input {
673
+ opacity: 0;
674
+ position: absolute;
675
+ width: 40px;
676
+ height: 40px;
677
+ margin: 0;
678
+ }
679
+
680
+ .ft-checkbox--box-container {
681
+ position: relative;
682
+ width: 40px;
683
+ height: 40px;
684
+
685
+ display: flex;
686
+ justify-content: center;
687
+ align-items: center;
688
+ flex-shrink: 0;
689
+ }
690
+
691
+ .ft-checkbox--box {
692
+ border: 2px solid ${Ni};
693
+ border-radius: 2px;
694
+
695
+ width: 18px;
696
+ height: 18px;
697
+
698
+ color: ${Ei};
699
+ }
700
+
701
+
702
+ .ft-checkbox--checked .ft-checkbox--box,
703
+ .ft-checkbox--indeterminate .ft-checkbox--box {
704
+ border-color: ${Ci};
705
+ background-color: ${Ci};
706
+ }
707
+
708
+ .ft-checkbox--disabled .ft-checkbox--box {
709
+ border-color: ${zi};
710
+ background-color: transparent;
711
+ color: ${zi};
712
+ }
713
+
714
+ .ft-checkbox--checkmark {
715
+ transition: opacity 180ms cubic-bezier(0, 0, 0.2, 1) 0ms, transform 180ms cubic-bezier(0, 0, 0.2, 1) 0ms;
716
+ opacity: 0;
717
+ }
718
+
719
+ .ft-checkbox--checkmark-path {
720
+ stroke-dashoffset: 0;
721
+ stroke: currentcolor;
722
+ stroke-width: 3px;
723
+ stroke-dasharray: 30;
724
+ }
725
+
726
+ .ft-checkbox--checked .ft-checkbox--checkmark,
727
+ .ft-checkbox--indeterminate .ft-checkbox--checkmark {
728
+ opacity: 1;
729
+ }
730
+ `,Oi([o()],Mi.prototype,"name",void 0),Oi([o({type:Boolean})],Mi.prototype,"checked",void 0),Oi([o({type:Boolean})],Mi.prototype,"indeterminate",void 0),Oi([o({type:Boolean})],Mi.prototype,"disabled",void 0),Oi([r(".ft-checkbox")],Mi.prototype,"container",void 0),Oi([r("ft-ripple")],Mi.prototype,"ripple",void 0),c("ft-checkbox")(Mi);var Ri=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};const Fi=ft.extend("--ft-radio-text-color",vt.colorOnSurfaceHigh),Bi=ft.external(vt.colorPrimary,"Design system"),ji=(ft.external(vt.colorOnPrimary,"Design system"),ft.extend("--ft-radio-border-color",vt.colorOnSurfaceMedium)),Ui=ft.external(vt.colorOnSurfaceDisabled,"Design system");class Di extends CustomEvent{constructor(t,e){super("change",{detail:{value:t,checked:e},bubbles:!0,composed:!0})}}class Li extends bt{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.disabled=!1}render(){const t={"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled};return K`
731
+ <div class="${Xe(t)}">
732
+ <div class="ft-radio--box-container">
733
+ <input id="radio-button"
734
+ type="radio"
735
+ name="${this.name}"
736
+ value="${this.value}"
737
+ .checked=${this.checked}
738
+ .disabled=${this.disabled}
739
+ @change=${this.onChange}
740
+ >
741
+ <ft-ripple
742
+ ?disabled=${this.disabled}
743
+ ?primary=${this.checked}
744
+ unbounded>
745
+ </ft-ripple>
746
+ <div class="ft-radio--box">
747
+ </div>
748
+ </div>
749
+ <label for="radio-button" @click=${t=>t.stopPropagation()}>
750
+ <ft-typography variant="body2">
751
+ <slot></slot>
752
+ </ft-typography>
753
+ </label>
754
+ </div>
755
+ `}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new Di(this.value,this.checked))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),null===(e=this.ripple)||void 0===e||e.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new Di(this.value,this.checked)),this.focus()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}}Li.elementDefinitions={"ft-ripple":Qe,"ft-typography":De},Li.styles=b`
756
+ * {
757
+ box-sizing: border-box;
758
+ }
759
+
760
+ .ft-radio {
761
+ box-sizing: border-box;
762
+ color: ${Fi};
763
+
764
+ display: inline-flex;
765
+ align-items: center;
766
+ gap: 4px;
767
+ }
768
+
769
+ .ft-radio--disabled {
770
+ color: ${Ui};
771
+ }
772
+
773
+ input {
774
+ opacity: 0;
775
+ position: absolute;
776
+ width: 40px;
777
+ height: 40px;
778
+ margin: 0;
779
+ }
780
+
781
+ .ft-radio--box-container {
782
+ position: relative;
783
+ width: 40px;
784
+ height: 40px;
785
+
786
+ display: flex;
787
+ justify-content: center;
788
+ align-items: center;
789
+ flex-shrink: 0;
790
+ }
791
+
792
+ .ft-radio--box {
793
+ border: 2px solid ${ji};
794
+ border-radius: 50%;
795
+
796
+ display: flex;
797
+ justify-content: center;
798
+ align-items: center;
799
+
800
+ width: 20px;
801
+ height: 20px;
802
+ }
803
+
804
+ .ft-radio--box:after {
805
+ content: " ";
806
+ background-color: ${Bi};
807
+
808
+ border-radius: 50%;
809
+
810
+ width: 12px;
811
+ height: 12px;
812
+
813
+ transform: scale(0);
814
+ transition: transform 100ms ease;
815
+ }
816
+
817
+ .ft-radio--checked .ft-radio--box {
818
+ border-color: ${Bi};
819
+ }
820
+
821
+
822
+ .ft-radio--checked .ft-radio--box:after {
823
+ transform: scale(1);
824
+ }
825
+
826
+ .ft-radio--disabled .ft-radio--box {
827
+ border-color: ${Ui};
828
+ background-color: transparent;
829
+ }
830
+
831
+ .ft-radio--disabled .ft-radio--box:after {
832
+ background-color: ${Ui};
833
+ }
834
+ `,Ri([o()],Li.prototype,"value",void 0),Ri([o()],Li.prototype,"name",void 0),Ri([o({type:Boolean})],Li.prototype,"checked",void 0),Ri([o({type:Boolean})],Li.prototype,"disabled",void 0),Ri([r(".ft-radio")],Li.prototype,"container",void 0),Ri([r("ft-ripple")],Li.prototype,"ripple",void 0),Ri([r("input")],Li.prototype,"input",void 0);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 Ai extends bt{constructor(){super(...arguments),this.name=""}render(){return K`
835
+ <slot @slotchange=${this.onSlotChange}
836
+ @change=${this.onChange}
837
+ @keydown=${this.onKeyDown}
838
+ @focusin=${this.onFocusIn}
839
+ ></slot>
840
+ `}onSlotChange(){this.radioButtons.forEach((t=>t.name=this.name))}onChange(t){t.stopPropagation(),this.radioButtons.forEach((e=>e.checked=t.detail.value===e.value)),this.dispatchEvent(new CustomEvent("change",{detail:t.detail.value}))}onKeyDown(t){switch(t.key){case"ArrowUp":case"ArrowLeft":{let e=this.findFtRadio(t),i=this.radioButtons.indexOf(e)-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select();break}case"ArrowDown":case"ArrowRight":{let e=this.radioButtons.indexOf(this.findFtRadio(t))+1;this.radioButtons[e>this.radioButtons.length-1?0:e].select();break}}}findFtRadio(t){return t.composedPath().find((t=>"FT-RADIO"===t.tagName))}onFocusIn(){setTimeout((()=>{var t;return null===(t=this.radioButtons.find((t=>t.checked)))||void 0===t?void 0:t.focus()}),10)}}Ai.elementDefinitions={},Ai.styles=b`
841
+ :host {
842
+ display: contents;
843
+ }
844
+ `,Ti([o()],Ai.prototype,"name",void 0),Ti([h()],Ai.prototype,"radioButtons",void 0),c("ft-radio")(Li),c("ft-radio-group")(Ai);var _i=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};const Pi={borderRadiusM:ft.external(vt.borderRadiusM,"Design system"),colorOutline:ft.external(vt.colorOutline,"Design system"),colorOnSurface:ft.external(vt.colorOnSurface,"Design system"),colorOnSurfaceMedium:ft.external(vt.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:ft.external(vt.colorOnSurfaceDisabled,"Design system"),colorPrimary:ft.external(vt.colorPrimary,"Design system"),colorOnPrimary:ft.external(vt.colorOnPrimary,"Design system"),fontFamily:ft.external(re.fontFamily,"Body2 typography"),fontSize:ft.external(re.fontSize,"Body2 typography"),fontWeight:ft.external(re.fontWeight,"Body2 typography"),letterSpacing:ft.external(re.letterSpacing,"Body2 typography"),lineHeight:ft.external(re.lineHeight,"Body2 typography"),textTransform:ft.external(re.textTransform,"Body2 typography")};class Ii extends bt{constructor(){super(...arguments),this.id="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1}get hasHiddenValues(){let t=this.limit;return null!=t&&t<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var t,e;return null!==(e=null===(t=this.container)||void 0===t?void 0:t.scrollHeight)&&void 0!==e?e:0}render(){let t=this.options;this.hideSelectedOptions&&(t=t.filter((t=>!t.selected))),this.filter&&(t=t.filter((t=>t.label.toLowerCase().includes(this.filter.toLowerCase()))));const e=t.slice(0,this.limit);return K`
958
845
  <div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
959
- ${null==this.parent?null:M`
846
+ ${null==this.parent?null:K`
960
847
  <div tabindex="0"
961
848
  class="ft-filter-level--go-back"
962
849
  ?disabled=${this.disabled}
963
850
  @keyup=${this.goBackOnKeyPress}
964
851
  @click=${this.goBackOnClick}>
965
852
  <ft-ripple></ft-ripple>
966
- <mwc-icon>chevron_left</mwc-icon>
853
+ <ft-icon variant="material">chevron_left</ft-icon>
967
854
  <ft-typography variant="body2">${this.parent.label}</ft-typography>
968
855
  </div>
969
856
  `}
970
- ${Ye(e,(t=>t.value),(t=>{var e;return M`
857
+ ${qe(e,(t=>t.value),(t=>{var e;return K`
971
858
  <div class="ft-filter-level--option" part="options">
972
859
  ${this.multivalued?this.buildMultiValuedOption(t):this.buildMonoValuedOption(t)}
973
- ${this.preventNavigation||t.selected||0===(null!==(e=t.subOptions)&&void 0!==e?e:[]).length?j:M`
860
+ ${this.preventNavigation||t.selected||0===(null!==(e=t.subOptions)&&void 0!==e?e:[]).length?Z:K`
974
861
  <ft-button icon="chevron_right"
975
862
  label="${t.label}"
976
863
  ?disabled=${this.disabled}
@@ -979,7 +866,7 @@ const fr=n`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc((40p
979
866
  `}
980
867
  </div>
981
868
  `}))}
982
- ${e.length<t.length?M`
869
+ ${e.length<t.length?K`
983
870
  <ft-button
984
871
  class="ft-filter-level--display-more"
985
872
  icon="expand_more"
@@ -987,154 +874,88 @@ const fr=n`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc((40p
987
874
  @click=${this.displayMore}>
988
875
  ${this.moreValuesButtonLabel}
989
876
  </ft-button>
990
- `:j}
877
+ `:Z}
991
878
  </div>
992
- `}goBackOnKeyPress(t){"Enter"!==t.key&&" "!==t.key||this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(t){t.stopPropagation(),t.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){this.displayedPages++}buildMultiValuedOption(t){var e;return M`
993
- <mwc-formfield label="${t.label}">
994
- <mwc-checkbox
995
- reducedTouchTarget
996
- .checked=${t.selected}
997
- .disabled=${this.disabled}
998
- .indeterminate=${Ue(null!==(e=t.subOptions)&&void 0!==e?e:[],(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]})).some((t=>t.selected))}
999
- @change=${e=>this.optionsChanged(e,t)}
1000
- ></mwc-checkbox>
1001
- </mwc-formfield>
1002
- `}buildMonoValuedOption(t){return M`
1003
- <mwc-formfield label="${t.label}">
1004
- <mwc-radio
1005
- reducedTouchTarget
1006
- name="${this.id}"
1007
- ?checked=${t.selected}
1008
- ?disabled=${this.disabled}
1009
- @click=${e=>this.optionsChanged(e,t)}
1010
- ></mwc-radio>
1011
- </mwc-formfield>
1012
- `}optionsChanged(t,e){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:e}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}};gr.elementDefinitions={"ft-button":Qi,"ft-ripple":Fi,"ft-typography":Le,"mwc-checkbox":Ei,"mwc-formfield":nr,"mwc-icon":Mi,"mwc-radio":mr},br([ct({type:String})],gr.prototype,"id",void 0),br([ct({type:Object})],gr.prototype,"parent",void 0),br([ct({type:Array})],gr.prototype,"options",void 0),br([ct({type:Boolean})],gr.prototype,"multivalued",void 0),br([ct({type:Boolean})],gr.prototype,"disabled",void 0),br([ct({type:Boolean})],gr.prototype,"hideSelectedOptions",void 0),br([ct({type:Boolean})],gr.prototype,"preventNavigation",void 0),br([ct({type:String})],gr.prototype,"filter",void 0),br([ct({type:String})],gr.prototype,"moreValuesButtonLabel",void 0),br([ct({type:Number})],gr.prototype,"displayedValuesLimit",void 0),br([dt(".ft-filter-level--container")],gr.prototype,"container",void 0),br([nt()],gr.prototype,"displayedPages",void 0),gr=br([mt("ft-filter-level")],gr);var yr=function(t,e,i,r){for(var o,c=arguments.length,n=c<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,a=t.length-1;a>=0;a--)(o=t[a])&&(n=(c<3?o(n):c>3?o(e,i,n):o(e,i))||n);return c>3&&n&&Object.defineProperty(e,i,n),n};const xr={buttonsColor:bt.extend("--ft-snap-scroll-buttons-color",gt.colorPrimary),buttonsZIndex:bt.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:bt.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:bt.external(gt.colorSurface,"Design system")};class kr extends CustomEvent{constructor(t,e){super("current-element-change",{detail:{index:t,element:e}})}}let _r=class extends yt{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver((()=>this.scheduleUpdateScroll())),this.scrollDebouncer=new ft(200),this.updateScrollDebouncer=new ft(100)}getStyles(){return n`
1013
- .ft-snap-scroll {
1014
- box-sizing: border-box;
1015
- position: relative;
879
+ `}goBackOnKeyPress(t){"Enter"!==t.key&&" "!==t.key||this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(t){t.stopPropagation(),t.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){this.displayedPages++}buildMultiValuedOption(t){var e;return K`
880
+ <ft-checkbox name="${this.id}"
881
+ .checked=${t.selected}
882
+ .disabled=${this.disabled}
883
+ .indeterminate=${Le(null!==(e=t.subOptions)&&void 0!==e?e:[],(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]})).some((t=>t.selected))}
884
+ @change=${e=>this.optionsChanged(e,t)}>
885
+ ${t.label}
886
+ </ft-checkbox>
887
+ `}buildMonoValuedOption(t){return K`
888
+ <ft-radio name="${this.id+Math.round(1e6*Math.random())}"
889
+ .checked=${t.selected}
890
+ ?disabled=${this.disabled}
891
+ @click=${e=>this.optionsChanged(e,t)}
892
+ @keyup=${e=>this.onRadioKeyUp(e,t)}
893
+ @change=${t=>t.stopPropagation()}>
894
+
895
+ ${t.label}
896
+ </ft-radio>
897
+ `}onRadioKeyUp(t,e){e.selected&&" "===t.key&&this.optionsChanged(t,e)}optionsChanged(t,e){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:e}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}}Ii.elementDefinitions={"ft-button":ki,"ft-ripple":Qe,"ft-typography":De,"ft-checkbox":Mi,"ft-icon":bi,"ft-radio":Li},Ii.styles=[b`
898
+ .ft-filter-level--container {
1016
899
  display: flex;
1017
-
1018
- --ft-snap-scroll-transparent-color: transparent;
900
+ flex-direction: column;
1019
901
  }
1020
902
 
1021
- .ft-snap-scroll.ft-snap-scroll--safari-fix {
1022
- /* Safari handles "transparent" as rgba(0,0,0,0) so it's ugly in linear-gradiant with default --ft-color-surface */
1023
- /* this value should be overridden with --ft-color-surface with alpha set to 0 when needed */
1024
- --ft-snap-scroll-transparent-color: rgba(255, 255, 255, 0);
903
+ .ft-filter-level--container > * {
904
+ padding: 0 10px;
1025
905
  }
1026
906
 
1027
- .ft-snap-scroll,
1028
- .ft-snap-scroll--content {
907
+ .ft-filter-level--go-back {
908
+ flex-shrink: 0;
909
+ text-decoration: none;
910
+ position: relative;
911
+ border-radius: ${Pi.borderRadiusM};
1029
912
  overflow: hidden;
1030
- }
1031
-
1032
- .ft-snap-scroll--limit-size,
1033
- .ft-snap-scroll--limit-size .ft-snap-scroll--content {
1034
- width: 100%;
1035
- height: 100%;
1036
- }
1037
-
1038
- .ft-snap-scroll--content {
1039
- flex-grow: 1;
1040
- flex-shrink: 1;
1041
- box-sizing: border-box;
1042
- scroll-snap-align: start;
1043
913
  display: flex;
1044
- flex-wrap: nowrap;
1045
- align-items: flex-start;
1046
- justify-content: flex-start;
1047
- gap: ${xr.gap};
914
+ align-items: center;
915
+ padding: 4px 4px;
916
+ gap: 4px;
917
+ cursor: pointer;
918
+ color: ${Pi.colorOnSurface};
1048
919
  }
1049
920
 
1050
- .ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
1051
- display: none;
921
+ .ft-filter-level--go-back:focus {
922
+ outline: none;
1052
923
  }
1053
924
 
1054
- .ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content {
1055
- -ms-overflow-style: none;
1056
- scrollbar-width: none;
1057
- }
1058
-
1059
- .ft-snap-scroll--content::slotted(*) {
925
+ .ft-filter-level--go-back ft-icon {
1060
926
  flex-shrink: 0;
1061
- flex-grow: 1;
1062
- max-height: 100%;
1063
- max-width: 100%;
1064
927
  }
1065
928
 
1066
- .ft-snap-scroll--horizontal,
1067
- .ft-snap-scroll--horizontal .ft-snap-scroll--content {
1068
- width: 100%;
1069
- }
1070
-
1071
- .ft-snap-scroll--vertical,
1072
- .ft-snap-scroll--vertical .ft-snap-scroll--content {
1073
- height: 100%;
1074
- }
1075
-
1076
- .ft-snap-scroll--horizontal .ft-snap-scroll--content {
1077
- flex-direction: row;
1078
- overflow-x: auto;
1079
- }
1080
-
1081
- .ft-snap-scroll--vertical .ft-snap-scroll--content {
1082
- flex-direction: column;
1083
- overflow-y: auto;
929
+ .ft-filter-level--go-back ft-typography {
930
+ display: block;
931
+ flex-grow: 1;
932
+ flex-shrink: 0;
1084
933
  }
1085
934
 
1086
- .ft-snap-scroll--previous,
1087
- .ft-snap-scroll--next {
1088
- position: absolute;
935
+ .ft-filter-level--option {
1089
936
  display: flex;
1090
- z-index: ${xr.buttonsZIndex};
1091
- opacity: 1;
1092
- transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
1093
- ${vt(Zi.backgroundColor,"transparent")};
1094
- ${vt(Zi.color,xr.buttonsColor)};
1095
- }
1096
-
1097
- .ft-snap-scroll--previous[hidden],
1098
- .ft-snap-scroll--next[hidden] {
1099
- z-index: -1;
1100
- opacity: 0;
1101
- }
1102
-
1103
- .ft-snap-scroll--horizontal .ft-snap-scroll--previous {
1104
- top: 0;
1105
- left: -1px;
1106
- bottom: 0;
1107
- background: linear-gradient(to right, ${xr.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1108
- }
1109
-
1110
- .ft-snap-scroll--vertical .ft-snap-scroll--previous {
1111
- top: -1px;
1112
- left: 0;
1113
- right: 0;
1114
- background: linear-gradient(to bottom, ${xr.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
937
+ align-items: center;
938
+ max-width: 100%;
1115
939
  }
1116
940
 
1117
- .ft-snap-scroll--horizontal .ft-snap-scroll--next {
1118
- top: 0;
1119
- right: -1px;
1120
- bottom: 0;
1121
- background: linear-gradient(to left, ${xr.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
941
+ .ft-filter-level--option ft-button {
942
+ margin-right: -10px;
943
+ flex-shrink: 0;
1122
944
  }
1123
945
 
1124
- .ft-snap-scroll--vertical .ft-snap-scroll--next {
1125
- left: 0;
1126
- right: 0;
1127
- bottom: -1px;
1128
- background: linear-gradient(to top, ${xr.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
946
+ ft-button {
947
+ ${ut(gi.color,Pi.colorOnSurface)};
1129
948
  }
1130
949
 
1131
- .ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
1132
- .ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
1133
- .ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
1134
- .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
1135
- background-color: ${xr.colorSurface};
950
+ ft-radio, ft-checkbox {
951
+ flex-shrink: 1;
952
+ flex-grow: 1;
953
+ display: block;
954
+ max-width: calc(100% + 10px);
955
+ margin-left: -10px;
956
+ word-break: break-word;
1136
957
  }
1137
- `}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let e=this.elements[t];if(e){const t=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,i=this.contentSlot[this.scrollAttribute]+this.prevSize;(e[this.offsetAttribute]<i||e[this.offsetAttribute]+e[this.sizeAttribute]>t)&&this.scrollToElement(e)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}getTemplate(){const t=bi({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":$t}),e=this.controls&&this.withScroll;return M`
958
+ `],_i([o({type:String})],Ii.prototype,"id",void 0),_i([o({type:Object})],Ii.prototype,"parent",void 0),_i([o({type:Array})],Ii.prototype,"options",void 0),_i([o({type:Boolean})],Ii.prototype,"multivalued",void 0),_i([o({type:Boolean})],Ii.prototype,"disabled",void 0),_i([o({type:Boolean})],Ii.prototype,"hideSelectedOptions",void 0),_i([o({type:Boolean})],Ii.prototype,"preventNavigation",void 0),_i([o({type:String})],Ii.prototype,"filter",void 0),_i([o({type:String})],Ii.prototype,"moreValuesButtonLabel",void 0),_i([o({type:Number})],Ii.prototype,"displayedValuesLimit",void 0),_i([r(".ft-filter-level--container")],Ii.prototype,"container",void 0),_i([s()],Ii.prototype,"displayedPages",void 0);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};const Wi={buttonsColor:ft.extend("--ft-snap-scroll-buttons-color",vt.colorPrimary),buttonsZIndex:ft.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:ft.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:ft.external(vt.colorSurface,"Design system")};class Ki extends CustomEvent{constructor(t,e){super("current-element-change",{detail:{index:t,element:e}})}}class Vi extends bt{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver((()=>this.scheduleUpdateScroll())),this.scrollDebouncer=new e(200),this.updateScrollDebouncer=new e(100)}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let e=this.elements[t];if(e){const t=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,i=this.contentSlot[this.scrollAttribute]+this.prevSize;(e[this.offsetAttribute]<i||e[this.offsetAttribute]+e[this.sizeAttribute]>t)&&this.scrollToElement(e)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){const t=Xe({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":$t}),e=this.controls&&this.withScroll;return K`
1138
959
  <div part="container" class="${t}">
1139
960
  <ft-button
1140
961
  class="ft-snap-scroll--previous"
@@ -1158,132 +979,150 @@ const fr=n`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc((40p
1158
979
  @click=${this.next}
1159
980
  ></ft-button>
1160
981
  </div>
1161
- `}updated(t){var e;super.updated(t),this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer!==this.contentSlot&&(this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(e=this.listenedContainer)||void 0===e||e.addEventListener("scroll",this.updateScrollCallback))),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new kr(this.currentElement,this.elements[this.currentElement]))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const e=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<e&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var e,i;t&&(this.horizontal?null===(e=this.contentSlot)||void 0===e||e.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(i=this.contentSlot)||void 0===i||i.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,e;this.elements=null!==(e=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==e?e:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let e=0;e<this.elements.length;e++)(t<0||this.getDistanceFromStart(this.elements[e])<this.getDistanceFromStart(this.elements[t]))&&(t=e);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run((()=>this.updateScroll()))}updateScroll(){null!=this.contentSlot?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=0===this.contentSlot[this.scrollAttribute],this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){const e=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-e)}};_r.elementDefinitions={"ft-button":Qi},yr([ct({type:Boolean})],_r.prototype,"horizontal",void 0),yr([ct({type:Boolean})],_r.prototype,"hideScrollbar",void 0),yr([ct({type:Boolean})],_r.prototype,"controls",void 0),yr([ct({type:Boolean})],_r.prototype,"limitSize",void 0),yr([nt()],_r.prototype,"elements",void 0),yr([nt()],_r.prototype,"currentElement",void 0),yr([nt()],_r.prototype,"withScroll",void 0),yr([nt()],_r.prototype,"startReached",void 0),yr([nt()],_r.prototype,"endReached",void 0),yr([dt(".ft-snap-scroll--content")],_r.prototype,"contentSlot",void 0),_r=yr([mt("ft-snap-scroll")],_r);var wr=function(t,e,i,r){for(var o,c=arguments.length,n=c<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,a=t.length-1;a>=0;a--)(o=t[a])&&(n=(c<3?o(n):c>3?o(e,i,n):o(e,i))||n);return c>3&&n&&Object.defineProperty(e,i,n),n};t.FtFilterOption=class extends yt{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}getTemplate(){return M`
1162
- <slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
1163
- `}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map((t=>t))}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}},t.FtFilterOption.elementDefinitions={},wr([ct({type:String})],t.FtFilterOption.prototype,"label",void 0),wr([ct({type:Object,converter:t=>t})],t.FtFilterOption.prototype,"value",void 0),wr([ct({type:Boolean,reflect:!0})],t.FtFilterOption.prototype,"selected",void 0),wr([ct({type:Object})],t.FtFilterOption.prototype,"subOptions",void 0),wr([dt(".ft-filter-option--slot")],t.FtFilterOption.prototype,"slotElement",void 0),t.FtFilterOption=wr([mt("ft-filter-option")],t.FtFilterOption);var $r=function(t,e,i,r){for(var o,c=arguments.length,n=c<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,a=t.length-1;a>=0;a--)(o=t[a])&&(n=(c<3?o(n):c>3?o(e,i,n):o(e,i))||n);return c>3&&n&&Object.defineProperty(e,i,n),n};const Or={colorOutline:bt.external(gt.colorOutline,"Design system"),colorOnSurface:bt.external(gt.colorOnSurface,"Design system"),colorOnSurfaceMedium:bt.external(gt.colorOnSurfaceMedium,"Design system"),colorPrimary:bt.external(gt.colorPrimary,"Design system"),colorSurface:bt.external(gt.colorSurface,"Design system"),transitionDuration:bt.external(gt.transitionDuration,"Design system"),transitionTimingFunction:bt.external(gt.transitionTimingFunction,"Design system")};class Sr extends CustomEvent{constructor(t){super("change",{detail:t})}}t.FtFilter=class extends yt{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayedValuesLimit=0,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver((()=>this.updateScroll())),this.levelsScrollDebouncer=new ft(300),this.changeDebouncer=new ft(10)}getStyles(){return[Me,n`
1164
- :host {
1165
- display: flex;
1166
- max-height: 100%;
1167
- max-width: 100%;
1168
- }
1169
-
1170
- .ft-filter--container {
1171
- flex-grow: 1;
1172
- display: flex;
1173
- flex-direction: column;
1174
- max-height: 100%;
1175
- max-width: 100%;
1176
- color: ${Or.colorOnSurface};
1177
- background: ${Or.colorSurface};
1178
- }
1179
-
1180
- .ft-filter--header {
1181
- display: flex;
1182
- flex-wrap: wrap;
1183
- gap: 4px;
1184
- flex-shrink: 0;
1185
- padding: 0 10px;
1186
- margin-bottom: 8px;
1187
- ${vt(Nt.fontSize,"14px")};
1188
- }
1189
-
1190
- .ft-filter--header ft-button {
1191
- flex-shrink: 0;
1192
- margin-left: auto;
1193
- ${vt(Zi.iconSize,"18px")};
1194
- }
1195
-
1196
- .ft-filter--label {
1197
- display: block;
1198
- flex-shrink: 1;
1199
- flex-grow: 1;
1200
- word-break: break-word;
1201
- ${vt(Nt.lineHeight,"22px")};
1202
- ${vt(Nt.fontWeight,"bold")};
1203
- }
1204
-
1205
- .ft-filter--filter {
1206
- flex-shrink: 0;
1207
- display: flex;
1208
- margin: 0;
1209
- margin-bottom: 8px;
1210
- padding: 0 10px;
1211
- overflow: hidden;
1212
- height: 32px;
1213
- transition: height ${Or.transitionDuration} ${Or.transitionTimingFunction},
1214
- margin ${Or.transitionDuration} ${Or.transitionTimingFunction};
1215
- transition-delay: 500ms;
1216
- }
1217
-
1218
- .ft-filter--filter[hidden] {
1219
- height: 0;
1220
- margin-bottom: 0;
1221
- }
1222
-
1223
- input {
1224
- display: block;
1225
- width: 100%;
1226
- border-radius: 4px;
1227
- border: 1px solid ${Or.colorOutline};
1228
- padding: 4px;
1229
- background-color: ${Or.colorSurface};
1230
- color: ${Or.colorOnSurfaceMedium};
1231
- outline-color: ${Or.colorPrimary};
1232
- }
1233
-
1234
- .ft-filter--values {
1235
- flex-grow: 1;
1236
- flex-shrink: 1;
1237
- max-width: 100%;
1238
- overflow-x: hidden;
1239
- overflow-y: auto;
1240
- }
1241
-
1242
- .ft-filter--separator {
1243
- border-top: 1px solid ${Or.colorOutline};
1244
- margin: 4px 10px;
1245
- }
1246
-
1247
- .ft-filter--levels-container {
1248
- position: relative;
1249
- overflow: hidden;
1250
- }
1251
-
1252
- .ft-filter--levels {
1253
- position: relative;
1254
- overflow: hidden;
1255
- }
1256
-
1257
- ft-filter-level {
1258
- width: 100%;
1259
- }
1260
-
1261
- .ft-filter--level-left {
1262
- height: 0;
1263
- }
1264
-
1265
- slot {
1266
- display: none;
1267
- }
1268
- `]}get flatOptions(){return Ue(this.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]}))}getTemplate(){var t,e;const i=this.flatOptions.some((t=>t.selected));let r=this.withScroll||this.filter||null!==(e=null===(t=this.lastLevel)||void 0===t?void 0:t.hasHiddenValues)&&void 0!==e&&e;return M`
982
+ `}updated(t){var e;super.updated(t),this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer!==this.contentSlot&&(this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(e=this.listenedContainer)||void 0===e||e.addEventListener("scroll",this.updateScrollCallback))),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new Ki(this.currentElement,this.elements[this.currentElement]))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const e=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<e&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var e,i;t&&(this.horizontal?null===(e=this.contentSlot)||void 0===e||e.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(i=this.contentSlot)||void 0===i||i.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,e;this.elements=null!==(e=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==e?e:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let e=0;e<this.elements.length;e++)(t<0||this.getDistanceFromStart(this.elements[e])<this.getDistanceFromStart(this.elements[t]))&&(t=e);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run((()=>this.updateScroll()))}updateScroll(){null!=this.contentSlot?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=0===this.contentSlot[this.scrollAttribute],this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){const e=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-e)}}Vi.elementDefinitions={"ft-button":ki},Vi.styles=b`
983
+ .ft-snap-scroll {
984
+ box-sizing: border-box;
985
+ position: relative;
986
+ display: flex;
987
+
988
+ --ft-snap-scroll-transparent-color: transparent;
989
+ }
990
+
991
+ .ft-snap-scroll.ft-snap-scroll--safari-fix {
992
+ /* Safari handles "transparent" as rgba(0,0,0,0) so it's ugly in linear-gradiant with default --ft-color-surface */
993
+ /* this value should be overridden with --ft-color-surface with alpha set to 0 when needed */
994
+ --ft-snap-scroll-transparent-color: rgba(255, 255, 255, 0);
995
+ }
996
+
997
+ .ft-snap-scroll,
998
+ .ft-snap-scroll--content {
999
+ overflow: hidden;
1000
+ }
1001
+
1002
+ .ft-snap-scroll--limit-size,
1003
+ .ft-snap-scroll--limit-size .ft-snap-scroll--content {
1004
+ width: 100%;
1005
+ height: 100%;
1006
+ }
1007
+
1008
+ .ft-snap-scroll--content {
1009
+ flex-grow: 1;
1010
+ flex-shrink: 1;
1011
+ box-sizing: border-box;
1012
+ scroll-snap-align: start;
1013
+ display: flex;
1014
+ flex-wrap: nowrap;
1015
+ align-items: flex-start;
1016
+ justify-content: flex-start;
1017
+ gap: ${Wi.gap};
1018
+ }
1019
+
1020
+ .ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
1021
+ display: none;
1022
+ }
1023
+
1024
+ .ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content {
1025
+ -ms-overflow-style: none;
1026
+ scrollbar-width: none;
1027
+ }
1028
+
1029
+ .ft-snap-scroll--content::slotted(*) {
1030
+ flex-shrink: 0;
1031
+ flex-grow: 1;
1032
+ max-height: 100%;
1033
+ max-width: 100%;
1034
+ }
1035
+
1036
+ .ft-snap-scroll--horizontal,
1037
+ .ft-snap-scroll--horizontal .ft-snap-scroll--content {
1038
+ width: 100%;
1039
+ }
1040
+
1041
+ .ft-snap-scroll--vertical,
1042
+ .ft-snap-scroll--vertical .ft-snap-scroll--content {
1043
+ height: 100%;
1044
+ }
1045
+
1046
+ .ft-snap-scroll--horizontal .ft-snap-scroll--content {
1047
+ flex-direction: row;
1048
+ overflow-x: auto;
1049
+ }
1050
+
1051
+ .ft-snap-scroll--vertical .ft-snap-scroll--content {
1052
+ flex-direction: column;
1053
+ overflow-y: auto;
1054
+ }
1055
+
1056
+ .ft-snap-scroll--previous,
1057
+ .ft-snap-scroll--next {
1058
+ position: absolute;
1059
+ display: flex;
1060
+ z-index: ${Wi.buttonsZIndex};
1061
+ opacity: 1;
1062
+ transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
1063
+ ${ut(gi.backgroundColor,"transparent")};
1064
+ ${ut(gi.color,Wi.buttonsColor)};
1065
+ }
1066
+
1067
+ .ft-snap-scroll--previous[hidden],
1068
+ .ft-snap-scroll--next[hidden] {
1069
+ z-index: -1;
1070
+ opacity: 0;
1071
+ }
1072
+
1073
+ .ft-snap-scroll--horizontal .ft-snap-scroll--previous {
1074
+ top: 0;
1075
+ left: -1px;
1076
+ bottom: 0;
1077
+ background: linear-gradient(to right, ${Wi.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1078
+ }
1079
+
1080
+ .ft-snap-scroll--vertical .ft-snap-scroll--previous {
1081
+ top: -1px;
1082
+ left: 0;
1083
+ right: 0;
1084
+ background: linear-gradient(to bottom, ${Wi.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1085
+ }
1086
+
1087
+ .ft-snap-scroll--horizontal .ft-snap-scroll--next {
1088
+ top: 0;
1089
+ right: -1px;
1090
+ bottom: 0;
1091
+ background: linear-gradient(to left, ${Wi.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1092
+ }
1093
+
1094
+ .ft-snap-scroll--vertical .ft-snap-scroll--next {
1095
+ left: 0;
1096
+ right: 0;
1097
+ bottom: -1px;
1098
+ background: linear-gradient(to top, ${Wi.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1099
+ }
1100
+
1101
+ .ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
1102
+ .ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
1103
+ .ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
1104
+ .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
1105
+ background-color: ${Wi.colorSurface};
1106
+ }
1107
+ `,Hi([o({type:Boolean})],Vi.prototype,"horizontal",void 0),Hi([o({type:Boolean})],Vi.prototype,"hideScrollbar",void 0),Hi([o({type:Boolean})],Vi.prototype,"controls",void 0),Hi([o({type:Boolean})],Vi.prototype,"limitSize",void 0),Hi([s()],Vi.prototype,"elements",void 0),Hi([s()],Vi.prototype,"currentElement",void 0),Hi([s()],Vi.prototype,"withScroll",void 0),Hi([s()],Vi.prototype,"startReached",void 0),Hi([s()],Vi.prototype,"endReached",void 0),Hi([r(".ft-snap-scroll--content")],Vi.prototype,"contentSlot",void 0),c("ft-snap-scroll")(Vi);var Zi=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};const Ji={colorOutline:ft.external(vt.colorOutline,"Design system"),colorOnSurface:ft.external(vt.colorOnSurface,"Design system"),colorOnSurfaceMedium:ft.external(vt.colorOnSurfaceMedium,"Design system"),colorPrimary:ft.external(vt.colorPrimary,"Design system"),colorSurface:ft.external(vt.colorSurface,"Design system"),transitionDuration:ft.external(vt.transitionDuration,"Design system"),transitionTimingFunction:ft.external(vt.transitionTimingFunction,"Design system")};class qi extends CustomEvent{constructor(t){super("change",{detail:t})}}class Xi extends bt{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayedValuesLimit=0,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver((()=>this.updateScroll())),this.levelsScrollDebouncer=new e(300),this.changeDebouncer=new e(10)}get flatOptions(){return Le(this.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]}))}render(){var t,e;const i=this.flatOptions.some((t=>t.selected));let o=this.withScroll||this.filter||null!==(e=null===(t=this.lastLevel)||void 0===t?void 0:t.hasHiddenValues)&&void 0!==e&&e;return K`
1269
1108
  <div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
1270
1109
  part="container">
1271
- ${this.label||i?M`
1110
+ ${this.label||i?K`
1272
1111
  <div class="ft-filter--header" part="header">
1273
1112
  <ft-typography class="ft-filter--label" variant="overline" part="label">${this.label}
1274
1113
  </ft-typography>
1275
- ${i?M`
1114
+ ${i?K`
1276
1115
  <ft-button icon="close" dense @click=${this.clear} part="clear-button">
1277
1116
  ${this.clearButtonLabel}
1278
1117
  </ft-button>
1279
1118
  `:null}
1280
1119
  </div>
1281
1120
  `:null}
1282
- <div class="ft-filter--filter" ?hidden=${!r}>
1121
+ <div class="ft-filter--filter" ?hidden=${!o}>
1283
1122
  <input type="search"
1284
1123
  part="input"
1285
1124
  class="ft-typography--caption"
1286
- ?disabled=${!r}
1125
+ ?disabled=${!o}
1287
1126
  placeholder="${this.filterPlaceHolder.replace("{0}",this.label)}"
1288
1127
  @keyup=${this.onFilterChange}>
1289
1128
  </div>
@@ -1294,8 +1133,8 @@ const fr=n`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc((40p
1294
1133
  @slotchange=${this.updateOptionsFromSlot}
1295
1134
  @option-change=${this.optionsChanged}></slot>
1296
1135
  </div>
1297
- `}update(t){if(super.update(t),t.has("options")){const t=new Set(this.flatOptions.map((t=>t.value)));this.displayedLevels=this.displayedLevels.filter((e=>t.has(e)))}}contentAvailableCallback(t){var e,i;super.contentAvailableCallback(t),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),t.has("options")&&(this.updateScroll(),null===(e=this.levelsContainer)||void 0===e||e.scrollToIndex(this.displayedLevels.length)),t.has("slideIn")&&this.slideIn&&setTimeout((()=>{var t;null===(t=this.levelsContainer)||void 0===t||t.next(),this.slideIn=void 0}),0),t.has("slideOut")&&this.slideOut&&(null===(i=this.levelsContainer)||void 0===i||i.previous(),setTimeout((()=>{this.displayedLevels.pop(),this.slideOut=void 0}),300))}renderLevels(){const t=this.flatOptions,e=t.filter((t=>t.selected)),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,r=i<0?"ft-filter--level-center":"ft-filter--level-left";return M`
1298
- ${this.raiseSelectedOptions&&e.length>0?M`
1136
+ `}update(t){if(super.update(t),t.has("options")){const t=new Set(this.flatOptions.map((t=>t.value)));this.displayedLevels=this.displayedLevels.filter((e=>t.has(e)))}}contentAvailableCallback(t){var e,i;super.contentAvailableCallback(t),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),t.has("options")&&(this.updateScroll(),null===(e=this.levelsContainer)||void 0===e||e.scrollToIndex(this.displayedLevels.length)),t.has("slideIn")&&this.slideIn&&setTimeout((()=>{var t;null===(t=this.levelsContainer)||void 0===t||t.next(),this.slideIn=void 0}),0),t.has("slideOut")&&this.slideOut&&(null===(i=this.levelsContainer)||void 0===i||i.previous(),setTimeout((()=>{this.displayedLevels.pop(),this.slideOut=void 0}),300))}renderLevels(){const t=this.flatOptions,e=t.filter((t=>t.selected)),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,o=i<0?"ft-filter--level-center":"ft-filter--level-left";return K`
1137
+ ${this.raiseSelectedOptions&&e.length>0?K`
1299
1138
  <ft-filter-level
1300
1139
  id="${this.id}"
1301
1140
  ?multivalued=${this.multivalued}
@@ -1310,10 +1149,10 @@ const fr=n`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc((40p
1310
1149
  <ft-snap-scroll horizontal hideScrollbar
1311
1150
  class="ft-filter--levels"
1312
1151
  @current-element-change=${t=>this.levelsScrollDebouncer.run((()=>{for(;t.detail.index<this.displayedLevels.length;)this.displayedLevels.pop();this.requestUpdate()}))}>
1313
- ${this.renderLevel(r,this.options)}
1314
- ${this.displayedLevels.map((e=>t.find((t=>t.value===e)))).map(((t,e)=>{var r;const o=(null==t?void 0:t.value)===this.slideIn||(null==t?void 0:t.value)===this.slideOut?"ft-filter--level-right":e===i?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(o,null!==(r=null==t?void 0:t.subOptions)&&void 0!==r?r:[],t)}))}
1152
+ ${this.renderLevel(o,this.options)}
1153
+ ${this.displayedLevels.map((e=>t.find((t=>t.value===e)))).map(((t,e)=>{var o;const s=(null==t?void 0:t.value)===this.slideIn||(null==t?void 0:t.value)===this.slideOut?"ft-filter--level-right":e===i?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(s,null!==(o=null==t?void 0:t.subOptions)&&void 0!==o?o:[],t)}))}
1315
1154
  </ft-snap-scroll>
1316
- `}renderLevel(t,e,i){return M`
1155
+ `}renderLevel(t,e,i){return K`
1317
1156
  <ft-filter-level
1318
1157
  class="${t}"
1319
1158
  id="${this.id}"
@@ -1330,4 +1169,111 @@ const fr=n`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc((40p
1330
1169
  @display-level=${this.onDisplayLevel}
1331
1170
  part="values"
1332
1171
  ></ft-filter-level>
1333
- `}goBack(t){this.slideOut=t.detail.value}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value}clear(){if(this.flatOptions.forEach((t=>t.selected=!1)),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var e;t.stopPropagation();const i=this.flatOptions.find((e=>e.value===t.detail.value));i.selected=!i.selected;const r=t=>{var e;t!==i&&(t.selected=!1),null===(e=t.subOptions)||void 0===e||e.forEach(r)};this.multivalued?null===(e=i.subOptions)||void 0===e||e.forEach(r):this.options.forEach(r),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run((()=>{var t;const e=this.flatOptions.filter((t=>t.selected)).map((t=>t.value));this.dispatchEvent(new Sr(e)),this.requestUpdate(),null===(t=this.levels)||void 0===t||t.forEach((t=>t.requestUpdate()))}))}updateOptionsFromSlot(t){t.stopPropagation(),this.options=this.slotElement.assignedElements().map((t=>t)),this.optionsChanged()}onFilterChange(t){const e=t.composedPath()[0];this.filter=e.value}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}},t.FtFilter.elementDefinitions={"ft-button":Qi,"ft-filter-level":gr,"ft-snap-scroll":_r,"ft-typography":Le},$r([ct({type:String})],t.FtFilter.prototype,"id",void 0),$r([ct({type:String})],t.FtFilter.prototype,"label",void 0),$r([ct({type:String})],t.FtFilter.prototype,"filterPlaceHolder",void 0),$r([ct({type:String})],t.FtFilter.prototype,"clearButtonLabel",void 0),$r([ct({type:String})],t.FtFilter.prototype,"moreValuesButtonLabel",void 0),$r([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return ct({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:{}})}([])],t.FtFilter.prototype,"options",void 0),$r([ct({type:Boolean})],t.FtFilter.prototype,"multivalued",void 0),$r([ct({type:Boolean})],t.FtFilter.prototype,"disabled",void 0),$r([ct({type:Boolean})],t.FtFilter.prototype,"raiseSelectedOptions",void 0),$r([ct({type:Number})],t.FtFilter.prototype,"displayedValuesLimit",void 0),$r([dt(".ft-filter--slot")],t.FtFilter.prototype,"slotElement",void 0),$r([dt(".ft-filter--container")],t.FtFilter.prototype,"container",void 0),$r([dt(".ft-filter--values")],t.FtFilter.prototype,"valuesContainer",void 0),$r([dt(".ft-filter--levels")],t.FtFilter.prototype,"levelsContainer",void 0),$r([dt(".ft-filter--levels ft-filter-level:last-child")],t.FtFilter.prototype,"lastLevel",void 0),$r([function(t){return at({descriptor:e=>({get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelectorAll(t))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}(".ft-filter--levels ft-filter-level")],t.FtFilter.prototype,"levels",void 0),$r([nt()],t.FtFilter.prototype,"withScroll",void 0),$r([nt()],t.FtFilter.prototype,"filter",void 0),$r([nt()],t.FtFilter.prototype,"slideIn",void 0),$r([nt()],t.FtFilter.prototype,"slideOut",void 0),t.FtFilter=$r([mt("ft-filter")],t.FtFilter),t.FtFilterChangeEvent=Sr,t.FtFilterCssVariables=Or,Object.defineProperty(t,"t",{value:!0})}({});
1172
+ `}goBack(t){this.slideOut=t.detail.value}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value}clear(){if(this.flatOptions.forEach((t=>t.selected=!1)),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var e;t.stopPropagation();const i=this.flatOptions.find((e=>e.value===t.detail.value));i.selected=!i.selected;const o=t=>{var e;t!==i&&(t.selected=!1),null===(e=t.subOptions)||void 0===e||e.forEach(o)};this.multivalued?null===(e=i.subOptions)||void 0===e||e.forEach(o):this.options.forEach(o),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run((()=>{var t;const e=this.flatOptions.filter((t=>t.selected)).map((t=>t.value));this.dispatchEvent(new qi(e)),this.requestUpdate(),null===(t=this.levels)||void 0===t||t.forEach((t=>t.requestUpdate()))}))}updateOptionsFromSlot(t){t.stopPropagation(),this.options=this.slotElement.assignedElements().map((t=>t)),this.optionsChanged()}onFilterChange(t){const e=t.composedPath()[0];this.filter=e.value}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}}Xi.elementDefinitions={"ft-button":ki,"ft-filter-level":Ii,"ft-snap-scroll":Vi,"ft-typography":De},Xi.styles=[Fe,b`
1173
+ :host {
1174
+ display: flex;
1175
+ max-height: 100%;
1176
+ max-width: 100%;
1177
+ }
1178
+
1179
+ .ft-filter--container {
1180
+ flex-grow: 1;
1181
+ display: flex;
1182
+ flex-direction: column;
1183
+ max-height: 100%;
1184
+ max-width: 100%;
1185
+ color: ${Ji.colorOnSurface};
1186
+ background: ${Ji.colorSurface};
1187
+ }
1188
+
1189
+ .ft-filter--header {
1190
+ display: flex;
1191
+ flex-wrap: wrap;
1192
+ gap: 4px;
1193
+ flex-shrink: 0;
1194
+ padding: 0 10px;
1195
+ margin-bottom: 8px;
1196
+ ${ut(zt.fontSize,"14px")};
1197
+ }
1198
+
1199
+ .ft-filter--header ft-button {
1200
+ flex-shrink: 0;
1201
+ margin-left: auto;
1202
+ ${ut(gi.iconSize,"18px")};
1203
+ }
1204
+
1205
+ .ft-filter--label {
1206
+ display: block;
1207
+ flex-shrink: 1;
1208
+ flex-grow: 1;
1209
+ word-break: break-word;
1210
+ ${ut(zt.lineHeight,"22px")};
1211
+ ${ut(zt.fontWeight,"bold")};
1212
+ }
1213
+
1214
+ .ft-filter--filter {
1215
+ flex-shrink: 0;
1216
+ display: flex;
1217
+ margin: 0;
1218
+ margin-bottom: 8px;
1219
+ padding: 0 10px;
1220
+ overflow: hidden;
1221
+ height: 32px;
1222
+ transition: height ${Ji.transitionDuration} ${Ji.transitionTimingFunction},
1223
+ margin ${Ji.transitionDuration} ${Ji.transitionTimingFunction};
1224
+ transition-delay: 500ms;
1225
+ }
1226
+
1227
+ .ft-filter--filter[hidden] {
1228
+ height: 0;
1229
+ margin-bottom: 0;
1230
+ }
1231
+
1232
+ input {
1233
+ display: block;
1234
+ width: 100%;
1235
+ border-radius: 4px;
1236
+ border: 1px solid ${Ji.colorOutline};
1237
+ padding: 4px;
1238
+ background-color: ${Ji.colorSurface};
1239
+ color: ${Ji.colorOnSurfaceMedium};
1240
+ outline-color: ${Ji.colorPrimary};
1241
+ }
1242
+
1243
+ .ft-filter--values {
1244
+ flex-grow: 1;
1245
+ flex-shrink: 1;
1246
+ max-width: 100%;
1247
+ overflow-x: hidden;
1248
+ overflow-y: auto;
1249
+ }
1250
+
1251
+ .ft-filter--separator {
1252
+ border-top: 1px solid ${Ji.colorOutline};
1253
+ margin: 4px 10px;
1254
+ }
1255
+
1256
+ .ft-filter--levels-container {
1257
+ position: relative;
1258
+ overflow: hidden;
1259
+ }
1260
+
1261
+ .ft-filter--levels {
1262
+ position: relative;
1263
+ overflow: hidden;
1264
+ }
1265
+
1266
+ ft-filter-level {
1267
+ width: 100%;
1268
+ }
1269
+
1270
+ .ft-filter--level-left {
1271
+ height: 0;
1272
+ }
1273
+
1274
+ slot {
1275
+ display: none;
1276
+ }
1277
+ `],Zi([o({type:String})],Xi.prototype,"id",void 0),Zi([o({type:String})],Xi.prototype,"label",void 0),Zi([o({type:String})],Xi.prototype,"filterPlaceHolder",void 0),Zi([o({type:String})],Xi.prototype,"clearButtonLabel",void 0),Zi([o({type:String})],Xi.prototype,"moreValuesButtonLabel",void 0),Zi([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:{}})}([])],Xi.prototype,"options",void 0),Zi([o({type:Boolean})],Xi.prototype,"multivalued",void 0),Zi([o({type:Boolean})],Xi.prototype,"disabled",void 0),Zi([o({type:Boolean})],Xi.prototype,"raiseSelectedOptions",void 0),Zi([o({type:Number})],Xi.prototype,"displayedValuesLimit",void 0),Zi([r(".ft-filter--slot")],Xi.prototype,"slotElement",void 0),Zi([r(".ft-filter--container")],Xi.prototype,"container",void 0),Zi([r(".ft-filter--values")],Xi.prototype,"valuesContainer",void 0),Zi([r(".ft-filter--levels")],Xi.prototype,"levelsContainer",void 0),Zi([r(".ft-filter--levels ft-filter-level:last-child")],Xi.prototype,"lastLevel",void 0),Zi([function(t){return n({descriptor:e=>({get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelectorAll(t))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}(".ft-filter--levels ft-filter-level")],Xi.prototype,"levels",void 0),Zi([s()],Xi.prototype,"withScroll",void 0),Zi([s()],Xi.prototype,"filter",void 0),Zi([s()],Xi.prototype,"slideIn",void 0),Zi([s()],Xi.prototype,"slideOut",void 0);var Yi=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 Gi extends bt{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return K`
1278
+ <slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
1279
+ `}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map((t=>t))}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}Gi.elementDefinitions={},Yi([o({type:String})],Gi.prototype,"label",void 0),Yi([o({type:Object,converter:t=>t})],Gi.prototype,"value",void 0),Yi([o({type:Boolean,reflect:!0})],Gi.prototype,"selected",void 0),Yi([o({type:Object})],Gi.prototype,"subOptions",void 0),Yi([r(".ft-filter-option--slot")],Gi.prototype,"slotElement",void 0),c("ft-filter")(Xi),c("ft-filter-option")(Gi),t.FtFilter=Xi,t.FtFilterChangeEvent=qi,t.FtFilterCssVariables=Ji,t.FtFilterOption=Gi,Object.defineProperty(t,"t",{value:!0})}({});