@fluid-topics/ft-search-bar 0.1.2 → 0.1.3

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.
@@ -4,55 +4,55 @@
4
4
  * Copyright 2019 Google LLC
5
5
  * SPDX-License-Identifier: BSD-3-Clause
6
6
  */
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 a=(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)},n=(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)}))},c=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new o("string"==typeof t?t:t+"",i))(e)})(t):t
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 n=t=>new o("string"==typeof t?t:t+"",i),a=(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)},c=(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 n(e)})(t):t
8
8
  /**
9
9
  * @license
10
10
  * Copyright 2017 Google LLC
11
11
  * SPDX-License-Identifier: BSD-3-Clause
12
- */;var s;const l=window.trustedTypes,d=l?l.emptyScript:"",h=window.reactiveElementPolyfillSupport,p={toAttribute(t,e){switch(e){case Boolean:t=t?d: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),u={attribute:!0,type:String,converter:p,reflect:!1,hasChanged:f};class m 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=u){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)||u}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(c(t))}else void 0!==t&&e.push(c(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 n(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=u){var r,o;const a=this.constructor._$Eh(t,i);if(void 0!==a&&!0===i.reflect){const n=(null!==(o=null===(r=i.converter)||void 0===r?void 0:r.toAttribute)&&void 0!==o?o:p.toAttribute)(e,i.type);this._$Ei=t,null==n?this.removeAttribute(a):this.setAttribute(a,n),this._$Ei=null}}_$AK(t,e){var i,r,o;const a=this.constructor,n=a._$Eu.get(t);if(void 0!==n&&this._$Ei!==n){const t=a.getPropertyOptions(n),c=t.converter,s=null!==(o=null!==(r=null===(i=c)||void 0===i?void 0:i.fromAttribute)&&void 0!==r?r:"function"==typeof c?c:null)&&void 0!==o?o:p.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){}}
12
+ */;var l;const d=window.trustedTypes,p=d?d.emptyScript:"",h=window.reactiveElementPolyfillSupport,f={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}},u=(t,e)=>e!==t&&(e==e||t==t),m={attribute:!0,type:String,converter:f,reflect:!1,hasChanged:u};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 c(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 n=this.constructor._$Eh(t,i);if(void 0!==n&&!0===i.reflect){const a=(null!==(o=null===(r=i.converter)||void 0===r?void 0:r.toAttribute)&&void 0!==o?o:f.toAttribute)(e,i.type);this._$Ei=t,null==a?this.removeAttribute(n):this.setAttribute(n,a),this._$Ei=null}}_$AK(t,e){var i,r,o;const n=this.constructor,a=n._$Eu.get(t);if(void 0!==a&&this._$Ei!==a){const t=n.getPropertyOptions(a),c=t.converter,s=null!==(o=null!==(r=null===(i=c)||void 0===i?void 0:i.fromAttribute)&&void 0!==r?r:"function"==typeof c?c:null)&&void 0!==o?o:f.fromAttribute;this._$Ei=a,this[a]=s(e,t.type),this._$Ei=null}}requestUpdate(t,e,i){let r=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||u)(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){}}
13
13
  /**
14
14
  * @license
15
15
  * Copyright 2017 Google LLC
16
16
  * SPDX-License-Identifier: BSD-3-Clause
17
17
  */
18
- var b;m.finalized=!0,m.elementProperties=new Map,m.elementStyles=[],m.shadowRootOptions={mode:"open"},null==h||h({ReactiveElement:m}),(null!==(s=globalThis.reactiveElementVersions)&&void 0!==s?s:globalThis.reactiveElementVersions=[]).push("1.2.2");const v=globalThis.trustedTypes,g=v?v.createPolicy("lit-html",{createHTML:t=>t}):void 0,y=`lit$${(Math.random()+"").slice(9)}$`,x="?"+y,k=`<${x}>`,w=document,_=(t="")=>w.createComment(t),$=t=>null===t||"object"!=typeof t&&"function"!=typeof t,z=Array.isArray,S=t=>{var e;return z(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])},O=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,C=/-->/g,T=/>/g,E=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,A=/'/g,F=/"/g,j=/^(?:script|style|textarea|title)$/i,B=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),R=Symbol.for("lit-noChange"),L=Symbol.for("lit-nothing"),M=new WeakMap,I=w.createTreeWalker(w,129,null,!1),D=(t,e)=>{const i=t.length-1,r=[];let o,a=2===e?"<svg>":"",n=O;for(let e=0;e<i;e++){const i=t[e];let c,s,l=-1,d=0;for(;d<i.length&&(n.lastIndex=d,s=n.exec(i),null!==s);)d=n.lastIndex,n===O?"!--"===s[1]?n=C:void 0!==s[1]?n=T:void 0!==s[2]?(j.test(s[2])&&(o=RegExp("</"+s[2],"g")),n=E):void 0!==s[3]&&(n=E):n===E?">"===s[0]?(n=null!=o?o:O,l=-1):void 0===s[1]?l=-2:(l=n.lastIndex-s[2].length,c=s[1],n=void 0===s[3]?E:'"'===s[3]?F:A):n===F||n===A?n=E:n===C||n===T?n=O:(n=E,o=void 0);const h=n===E&&t[e+1].startsWith("/>")?" ":"";a+=n===O?i+k:l>=0?(r.push(c),i.slice(0,l)+"$lit$"+i.slice(l)+y+h):i+y+(-2===l?(r.push(void 0),e):h)}const c=a+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==g?g.createHTML(c):c,r]};class H{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let o=0,a=0;const n=t.length-1,c=this.parts,[s,l]=D(t,e);if(this.el=H.createElement(s,i),I.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(r=I.nextNode())&&c.length<n;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const e of r.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(y)){const i=l[a++];if(t.push(e),void 0!==i){const t=r.getAttribute(i.toLowerCase()+"$lit$").split(y),e=/([.?@])?(.*)/.exec(i);c.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?q:"?"===e[1]?K:"@"===e[1]?W:V})}else c.push({type:6,index:o})}for(const e of t)r.removeAttribute(e)}if(j.test(r.tagName)){const t=r.textContent.split(y),e=t.length-1;if(e>0){r.textContent=v?v.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],_()),I.nextNode(),c.push({type:2,index:++o});r.append(t[e],_())}}}else if(8===r.nodeType)if(r.data===x)c.push({type:2,index:o});else{let t=-1;for(;-1!==(t=r.data.indexOf(y,t+1));)c.push({type:7,index:o}),t+=y.length-1}o++}}static createElement(t,e){const i=w.createElement("template");return i.innerHTML=t,i}}function N(t,e,i=t,r){var o,a,n,c;if(e===R)return e;let s=void 0!==r?null===(o=i._$Cl)||void 0===o?void 0:o[r]:i._$Cu;const l=$(e)?void 0:e._$litDirective$;return(null==s?void 0:s.constructor)!==l&&(null===(a=null==s?void 0:s._$AO)||void 0===a||a.call(s,!1),void 0===l?s=void 0:(s=new l(t),s._$AT(t,i,r)),void 0!==r?(null!==(n=(c=i)._$Cl)&&void 0!==n?n:c._$Cl=[])[r]=s:i._$Cu=s),void 0!==s&&(e=N(t,s._$AS(t,e.values),s,r)),e}class P{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);I.currentNode=o;let a=I.nextNode(),n=0,c=0,s=r[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new U(a,a.nextSibling,this,t):1===s.type?e=new s.ctor(a,s.name,s.strings,this,t):6===s.type&&(e=new X(a,this,t)),this.v.push(e),s=r[++c]}n!==(null==s?void 0:s.index)&&(a=I.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 U{constructor(t,e,i,r){var o;this.type=2,this._$AH=L,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=N(this,t,e),$(t)?t===L||null==t||""===t?(this._$AH!==L&&this._$AR(),this._$AH=L):t!==this._$AH&&t!==R&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):S(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!==L&&$(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=H.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 P(o,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=M.get(t.strings);return void 0===e&&M.set(t.strings,e=new H(t)),e}A(t){z(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 U(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 V{constructor(t,e,i,r,o){this.type=1,this._$AH=L,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=L}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,r){const o=this.strings;let a=!1;if(void 0===o)t=N(this,t,e,0),a=!$(t)||t!==this._$AH&&t!==R,a&&(this._$AH=t);else{const r=t;let n,c;for(t=o[0],n=0;n<o.length-1;n++)c=N(this,r[i+n],e,n),c===R&&(c=this._$AH[n]),a||(a=!$(c)||c!==this._$AH[n]),c===L?t=L:t!==L&&(t+=(null!=c?c:"")+o[n+1]),this._$AH[n]=c}a&&!r&&this.k(t)}k(t){t===L?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class q extends V{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===L?void 0:t}}const G=v?v.emptyScript:"";class K extends V{constructor(){super(...arguments),this.type=4}k(t){t&&t!==L?this.element.setAttribute(this.name,G):this.element.removeAttribute(this.name)}}class W extends V{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=N(this,t,e,0))&&void 0!==i?i:L)===R)return;const r=this._$AH,o=t===L&&r!==L||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,a=t!==L&&(r===L||o);o&&this.element.removeEventListener(this.name,this,r),a&&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){N(this,t)}}const J={P:"$lit$",V:y,L:x,I:1,N:D,R:P,D:S,j:N,H:U,O:V,F:K,B:W,W:q,Z:X},Z=window.litHtmlPolyfillSupport;
18
+ var v;b.finalized=!0,b.elementProperties=new Map,b.elementStyles=[],b.shadowRootOptions={mode:"open"},null==h||h({ReactiveElement:b}),(null!==(l=globalThis.reactiveElementVersions)&&void 0!==l?l: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,w=`<${k}>`,$=document,_=(t="")=>$.createComment(t),S=t=>null===t||"object"!=typeof t&&"function"!=typeof t,O=Array.isArray,z=t=>{var e;return O(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])},C=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,E=/-->/g,R=/>/g,B=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,F=/'/g,T=/"/g,A=/^(?:script|style|textarea|title)$/i,N=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),j=Symbol.for("lit-noChange"),M=Symbol.for("lit-nothing"),L=new WeakMap,D=$.createTreeWalker($,129,null,!1),I=(t,e)=>{const i=t.length-1,r=[];let o,n=2===e?"<svg>":"",a=C;for(let e=0;e<i;e++){const i=t[e];let c,s,l=-1,d=0;for(;d<i.length&&(a.lastIndex=d,s=a.exec(i),null!==s);)d=a.lastIndex,a===C?"!--"===s[1]?a=E:void 0!==s[1]?a=R:void 0!==s[2]?(A.test(s[2])&&(o=RegExp("</"+s[2],"g")),a=B):void 0!==s[3]&&(a=B):a===B?">"===s[0]?(a=null!=o?o:C,l=-1):void 0===s[1]?l=-2:(l=a.lastIndex-s[2].length,c=s[1],a=void 0===s[3]?B:'"'===s[3]?T:F):a===T||a===F?a=B:a===E||a===R?a=C:(a=B,o=void 0);const p=a===B&&t[e+1].startsWith("/>")?" ":"";n+=a===C?i+w:l>=0?(r.push(c),i.slice(0,l)+"$lit$"+i.slice(l)+x+p):i+x+(-2===l?(r.push(void 0),e):p)}const c=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==y?y.createHTML(c):c,r]};class U{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let o=0,n=0;const a=t.length-1,c=this.parts,[s,l]=I(t,e);if(this.el=U.createElement(s,i),D.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(r=D.nextNode())&&c.length<a;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const e of r.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(x)){const i=l[n++];if(t.push(e),void 0!==i){const t=r.getAttribute(i.toLowerCase()+"$lit$").split(x),e=/([.?@])?(.*)/.exec(i);c.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?W:"?"===e[1]?q:"@"===e[1]?G:Z})}else c.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],_()),D.nextNode(),c.push({type:2,index:++o});r.append(t[e],_())}}}else if(8===r.nodeType)if(r.data===k)c.push({type:2,index:o});else{let t=-1;for(;-1!==(t=r.data.indexOf(x,t+1));)c.push({type:7,index:o}),t+=x.length-1}o++}}static createElement(t,e){const i=$.createElement("template");return i.innerHTML=t,i}}function P(t,e,i=t,r){var o,n,a,c;if(e===j)return e;let s=void 0!==r?null===(o=i._$Cl)||void 0===o?void 0:o[r]:i._$Cu;const l=S(e)?void 0:e._$litDirective$;return(null==s?void 0:s.constructor)!==l&&(null===(n=null==s?void 0:s._$AO)||void 0===n||n.call(s,!1),void 0===l?s=void 0:(s=new l(t),s._$AT(t,i,r)),void 0!==r?(null!==(a=(c=i)._$Cl)&&void 0!==a?a:c._$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:$).importNode(i,!0);D.currentNode=o;let n=D.nextNode(),a=0,c=0,s=r[0];for(;void 0!==s;){if(a===s.index){let e;2===s.type?e=new V(n,n.nextSibling,this,t):1===s.type?e=new s.ctor(n,s.name,s.strings,this,t):6===s.type&&(e=new X(n,this,t)),this.v.push(e),s=r[++c]}a!==(null==s?void 0:s.index)&&(n=D.nextNode(),a++)}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=M,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),S(t)?t===M||null==t||""===t?(this._$AH!==M&&this._$AR(),this._$AH=M):t!==this._$AH&&t!==j&&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!==M&&S(this._$AH)?this._$AA.nextSibling.data=t:this.S($.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=U.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=L.get(t.strings);return void 0===e&&L.set(t.strings,e=new U(t)),e}A(t){O(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 Z{constructor(t,e,i,r,o){this.type=1,this._$AH=M,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=M}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,r){const o=this.strings;let n=!1;if(void 0===o)t=P(this,t,e,0),n=!S(t)||t!==this._$AH&&t!==j,n&&(this._$AH=t);else{const r=t;let a,c;for(t=o[0],a=0;a<o.length-1;a++)c=P(this,r[i+a],e,a),c===j&&(c=this._$AH[a]),n||(n=!S(c)||c!==this._$AH[a]),c===M?t=M:t!==M&&(t+=(null!=c?c:"")+o[a+1]),this._$AH[a]=c}n&&!r&&this.k(t)}k(t){t===M?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class W extends Z{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===M?void 0:t}}const K=g?g.emptyScript:"";class q extends Z{constructor(){super(...arguments),this.type=4}k(t){t&&t!==M?this.element.setAttribute(this.name,K):this.element.removeAttribute(this.name)}}class G extends Z{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:M)===j)return;const r=this._$AH,o=t===M&&r!==M||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==M&&(r===M||o);o&&this.element.removeEventListener(this.name,this,r),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 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:I,R:H,D:z,j:P,H:V,O:Z,F:q,B:G,W,Z:X},Y=window.litHtmlPolyfillSupport;
19
19
  /**
20
20
  * @license
21
21
  * Copyright 2017 Google LLC
22
22
  * SPDX-License-Identifier: BSD-3-Clause
23
23
  */
24
- var Y,Q;null==Z||Z(H,U),(null!==(b=globalThis.litHtmlVersions)&&void 0!==b?b:globalThis.litHtmlVersions=[]).push("2.1.3");class tt extends m{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 a=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:e;let n=a._$litPart$;if(void 0===n){const t=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;a._$litPart$=n=new U(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 R}}tt.finalized=!0,tt._$litElement$=!0,null===(Y=globalThis.litElementHydrateSupport)||void 0===Y||Y.call(globalThis,{LitElement:tt});const et=globalThis.litElementPolyfillSupport;null==et||et({LitElement:tt}),(null!==(Q=globalThis.litElementVersions)&&void 0!==Q?Q:globalThis.litElementVersions=[]).push("3.1.2");
24
+ var Q,tt;null==Y||Y(U,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 n=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:e;let a=n._$litPart$;if(void 0===a){const t=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;n._$litPart$=a=new V(e.insertBefore(_(),t),t,void 0,null!=i?i:{})}return a._$AI(t),a})(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 j}}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");
25
25
  /**
26
26
  * @license
27
27
  * Copyright 2017 Google LLC
28
28
  * SPDX-License-Identifier: BSD-3-Clause
29
29
  */
30
- const it=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)
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)
31
31
  /**
32
32
  * @license
33
33
  * Copyright 2017 Google LLC
34
34
  * SPDX-License-Identifier: BSD-3-Clause
35
- */,rt=(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 ot(t){return(e,i)=>void 0!==i?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,e,i):rt(t,e)
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 nt(t){return(e,i)=>void 0!==i?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,e,i):ot(t,e)
36
36
  /**
37
37
  * @license
38
38
  * Copyright 2017 Google LLC
39
39
  * SPDX-License-Identifier: BSD-3-Clause
40
- */}function at(t){return ot({...t,state:!0})}
40
+ */}function at(t){return nt({...t,state:!0})}
41
41
  /**
42
42
  * @license
43
43
  * Copyright 2017 Google LLC
44
44
  * SPDX-License-Identifier: BSD-3-Clause
45
- */const nt=({finisher:t,descriptor:e})=>(i,r)=>{var o;if(void 0===r){const r=null!==(o=i.originalKey)&&void 0!==o?o:i.key,a=null!=e?{kind:"method",placement:"prototype",key:r,descriptor:e(i.key)}:{...i,key:r};return null!=t&&(a.finisher=function(e){t(e,r)}),a}{const o=i.constructor;void 0!==e&&Object.defineProperty(i,r,e(r)),null==t||t(o,r)}}
45
+ */const ct=({finisher:t,descriptor:e})=>(i,r)=>{var o;if(void 0===r){const r=null!==(o=i.originalKey)&&void 0!==o?o:i.key,n=null!=e?{kind:"method",placement:"prototype",key:r,descriptor:e(i.key)}:{...i,key:r};return null!=t&&(n.finisher=function(e){t(e,r)}),n}{const o=i.constructor;void 0!==e&&Object.defineProperty(i,r,e(r)),null==t||t(o,r)}}
46
46
  /**
47
47
  * @license
48
48
  * Copyright 2017 Google LLC
49
49
  * SPDX-License-Identifier: BSD-3-Clause
50
- */;function ct(t){return nt({finisher:(e,i)=>{Object.assign(e.prototype[i],t)}})}
50
+ */;function st(t){return ct({finisher:(e,i)=>{Object.assign(e.prototype[i],t)}})}
51
51
  /**
52
52
  * @license
53
53
  * Copyright 2017 Google LLC
54
54
  * SPDX-License-Identifier: BSD-3-Clause
55
- */function st(t,e){return nt({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}})}
55
+ */function lt(t,e){return ct({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}})}
56
56
  /**
57
57
  * @license
58
58
  * Copyright 2017 Google LLC
@@ -63,147 +63,142 @@ const it=t=>e=>"function"==typeof e?((t,e)=>(window.customElements.define(t,e),e
63
63
  * Copyright 2017 Google LLC
64
64
  * SPDX-License-Identifier: BSD-3-Clause
65
65
  */
66
- function lt(t){return nt({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})})}
66
+ function dt(t){return ct({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
67
  /**
68
68
  * @license
69
69
  * Copyright 2021 Google LLC
70
70
  * SPDX-License-Identifier: BSD-3-Clause
71
- */var dt;const ht=null!=(null===(dt=window.HTMLSlotElement)||void 0===dt?void 0:dt.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));
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));
72
72
  /**
73
73
  * @license
74
74
  * Copyright 2017 Google LLC
75
75
  * SPDX-License-Identifier: BSD-3-Clause
76
76
  */
77
- function pt(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 nt({descriptor:r=>({get(){var r;const o="slot"+(e?`[name=${e}]`:":not([name])"),a=null===(r=this.renderRoot)||void 0===r?void 0:r.querySelector(o),n=null!=a?ht(a,t):[];return i?n.filter((t=>t.matches(i))):n},enumerable:!0,configurable:!0})})}({slot:o,flatten:e,selector:i}):nt({descriptor:t=>({get(){var t,e;const i="slot"+(o?`[name=${o}]`:":not([name])"),a=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==a?void 0:a.assignedNodes(r))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}
77
+ function ft(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 ct({descriptor:r=>({get(){var r;const o="slot"+(e?`[name=${e}]`:":not([name])"),n=null===(r=this.renderRoot)||void 0===r?void 0:r.querySelector(o),a=null!=n?ht(n,t):[];return i?a.filter((t=>t.matches(i))):a},enumerable:!0,configurable:!0})})}({slot:o,flatten:e,selector:i}):ct({descriptor:t=>({get(){var t,e;const i="slot"+(o?`[name=${o}]`:":not([name])"),n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==n?void 0:n.assignedNodes(r))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}
78
78
  /**
79
79
  * @license
80
80
  * Copyright 2017 Google LLC
81
81
  * SPDX-License-Identifier: BSD-3-Clause
82
- */const ft=1,ut=2,mt=t=>(...e)=>({_$litDirective$:t,values:e});class bt{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)}}
82
+ */const ut=1,mt=2,bt=t=>(...e)=>({_$litDirective$:t,values:e});class vt{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)}}
83
83
  /**
84
84
  * @license
85
85
  * Copyright 2020 Google LLC
86
86
  * SPDX-License-Identifier: BSD-3-Clause
87
- */const{H:vt}=J,gt=()=>document.createComment(""),yt=(t,e,i)=>{var r;const o=t._$AA.parentNode,a=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=o.insertBefore(gt(),a),r=o.insertBefore(gt(),a);i=new vt(e,r,t,t.options)}else{const e=i._$AB.nextSibling,n=i._$AM,c=n!==t;if(c){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!==a||c){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;o.insertBefore(t,a),t=e}}}return i},xt=(t,e,i=t)=>(t._$AI(e,i),t),kt={},wt=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}},_t=(t,e,i)=>{const r=new Map;for(let o=e;o<=i;o++)r.set(t[o],o);return r},$t=mt(class extends bt{constructor(t){if(super(t),t.type!==ut)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=[],a=[];let n=0;for(const e of t)o[n]=r?r(e,n):n,a[n]=i(e,n),n++;return{values:a,keys:o}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,r]){var o;const a=(t=>t._$AH)(t),{values:n,keys:c}=this.dt(e,i,r);if(!Array.isArray(a))return this.at=c,n;const s=null!==(o=this.at)&&void 0!==o?o:this.at=[],l=[];let d,h,p=0,f=a.length-1,u=0,m=n.length-1;for(;p<=f&&u<=m;)if(null===a[p])p++;else if(null===a[f])f--;else if(s[p]===c[u])l[u]=xt(a[p],n[u]),p++,u++;else if(s[f]===c[m])l[m]=xt(a[f],n[m]),f--,m--;else if(s[p]===c[m])l[m]=xt(a[p],n[m]),yt(t,l[m+1],a[p]),p++,m--;else if(s[f]===c[u])l[u]=xt(a[f],n[u]),yt(t,a[p],a[f]),f--,u++;else if(void 0===d&&(d=_t(c,u,m),h=_t(s,p,f)),d.has(s[p]))if(d.has(s[f])){const e=h.get(c[u]),i=void 0!==e?a[e]:null;if(null===i){const e=yt(t,a[p]);xt(e,n[u]),l[u]=e}else l[u]=xt(i,n[u]),yt(t,a[p],i),a[e]=null;u++}else wt(a[f]),f--;else wt(a[p]),p++;for(;u<=m;){const e=yt(t,l[m+1]);xt(e,n[u]),l[u++]=e}for(;p<=f;){const t=a[p++];null!==t&&wt(t)}return this.at=c,((t,e=kt)=>{t._$AH=e})(t,l),R}}),zt=mt(class extends bt{constructor(t){var e;if(super(t),t.type!==ft||"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 R}});
87
+ */const{H:gt}=J,yt=()=>document.createComment(""),xt=(t,e,i)=>{var r;const o=t._$AA.parentNode,n=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=o.insertBefore(yt(),n),r=o.insertBefore(yt(),n);i=new gt(e,r,t,t.options)}else{const e=i._$AB.nextSibling,a=i._$AM,c=a!==t;if(c){let e;null===(r=i._$AQ)||void 0===r||r.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==a._$AU&&i._$AP(e)}if(e!==n||c){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;o.insertBefore(t,n),t=e}}}return i},kt=(t,e,i=t)=>(t._$AI(e,i),t),wt={},$t=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}},_t=(t,e,i)=>{const r=new Map;for(let o=e;o<=i;o++)r.set(t[o],o);return r},St=bt(class extends vt{constructor(t){if(super(t),t.type!==mt)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=[],n=[];let a=0;for(const e of t)o[a]=r?r(e,a):a,n[a]=i(e,a),a++;return{values:n,keys:o}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,r]){var o;const n=(t=>t._$AH)(t),{values:a,keys:c}=this.dt(e,i,r);if(!Array.isArray(n))return this.at=c,a;const s=null!==(o=this.at)&&void 0!==o?o:this.at=[],l=[];let d,p,h=0,f=n.length-1,u=0,m=a.length-1;for(;h<=f&&u<=m;)if(null===n[h])h++;else if(null===n[f])f--;else if(s[h]===c[u])l[u]=kt(n[h],a[u]),h++,u++;else if(s[f]===c[m])l[m]=kt(n[f],a[m]),f--,m--;else if(s[h]===c[m])l[m]=kt(n[h],a[m]),xt(t,l[m+1],n[h]),h++,m--;else if(s[f]===c[u])l[u]=kt(n[f],a[u]),xt(t,n[h],n[f]),f--,u++;else if(void 0===d&&(d=_t(c,u,m),p=_t(s,h,f)),d.has(s[h]))if(d.has(s[f])){const e=p.get(c[u]),i=void 0!==e?n[e]:null;if(null===i){const e=xt(t,n[h]);kt(e,a[u]),l[u]=e}else l[u]=kt(i,a[u]),xt(t,n[h],i),n[e]=null;u++}else $t(n[f]),f--;else $t(n[h]),h++;for(;u<=m;){const e=xt(t,l[m+1]);kt(e,a[u]),l[u++]=e}for(;h<=f;){const t=n[h++];null!==t&&$t(t)}return this.at=c,((t,e=wt)=>{t._$AH=e})(t,l),j}}),Ot=bt(class extends vt{constructor(t){var e;if(super(t),t.type!==ut||"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 j}});
88
88
  /**
89
89
  * @license
90
90
  * Copyright 2017 Google LLC
91
91
  * SPDX-License-Identifier: BSD-3-Clause
92
- */(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,a=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 c;t:{var s={};try{s.__proto__={a:!0},c=s.a;break t}catch(t){}c=!1}o=c?function(t,e){if(t.__proto__=e,t.__proto__!==e)throw new TypeError(t+" is not extensible");return t}:null}var l=o;if(!ShadowRoot.prototype.createElement){var d,h=window.HTMLElement,p=window.customElements.define,f=window.customElements.get,u=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=f.call(u,t))||(o=y(t),p.call(u,t,o)),this===window.customElements&&(v.set(i,r),r.s=o),o=this.h.get(t)){this.h.delete(t);for(var a=(o=e(o)).next();!a.done;a=o.next())a=a.value,b.delete(a),w(a,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),u.upgrade.apply(u,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=d;if(t)return d=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(h,[],e.s),Object.setPrototypeOf(t,this.constructor.prototype),m.set(t,e),t},window.HTMLElement.prototype=h.prototype;var y=function(t){function e(){var e=Reflect.construct(h,[],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))?w(e,i):b.set(e,r),e}return a.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 a=this.getAttribute(t);r.call(this,t,o),i.call(this,t,a,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===h?Object.setPrototypeOf(t,window.HTMLElement):k(e)},w=function(t,e,i){i=void 0!==i&&i,Object.setPrototypeOf(t,e.g.prototype),m.set(t,e),d=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)},_=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){var e=_.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};var $=[document],z=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}};z(ShadowRoot,"createElement",document),z(ShadowRoot,"importNode",document),z(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 O=new WeakMap,C=HTMLElement.prototype.attachInternals;HTMLElement.prototype.attachInternals=function(t){for(var e=[],r=0;r<arguments.length;++r)e[r]=arguments[r];return e=C.call.apply(C,[this].concat(i(e))),O.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=O.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 T=function(t){var e=n(Array,[].concat(i(t)),this.constructor);return e.h=t,e},E=T,A=Array;if(E.prototype=r(A.prototype),E.prototype.constructor=E,l)l(E,A);else for(var F in A)if("prototype"!=F)if(Object.defineProperties){var j=Object.getOwnPropertyDescriptor(A,F);j&&Object.defineProperty(E,F,j)}else E[F]=A[F];E.u=A.prototype,a.Object.defineProperty(T.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 B=function(t){var e=this,i=new Map;t.forEach((function(t,r){var o=t.getAttribute("name"),a=i.get(o)||[];e[+r]=t,a.push(t),i.set(o,a)})),this.length=t.length,i.forEach((function(t,i){t&&(e[i]=1===t.length?t[0]:new T(t))}))};B.prototype.namedItem=function(t){return this[t]};var R=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){for(var t=R.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 B(i)}})}}}).call(self);try{window.customElements.define("custom-element",null)}catch(Ft){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 St{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 Ot=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function Ct(t,e){const i=()=>JSON.parse(JSON.stringify(t));return ot({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:{}})}
92
+ */(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,n=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),a=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 c;t:{var s={};try{s.__proto__={a:!0},c=s.a;break t}catch(t){}c=!1}o=c?function(t,e){if(t.__proto__=e,t.__proto__!==e)throw new TypeError(t+" is not extensible");return t}:null}var l=o;if(!ShadowRoot.prototype.createElement){var d,p=window.HTMLElement,h=window.customElements.define,f=window.customElements.get,u=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=f.call(u,t))||(o=y(t),h.call(u,t,o)),this===window.customElements&&(v.set(i,r),r.s=o),o=this.h.get(t)){this.h.delete(t);for(var n=(o=e(o)).next();!n.done;n=o.next())n=n.value,b.delete(n),w(n,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),u.upgrade.apply(u,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=d;if(t)return d=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))?w(e,i):b.set(e,r),e}return n.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 n=this.getAttribute(t);r.call(this,t,o),i.call(this,t,n,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)},w=function(t,e,i){i=void 0!==i&&i,Object.setPrototypeOf(t,e.g.prototype),m.set(t,e),d=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)},$=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){var e=$.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};var _=[document],S=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}};S(ShadowRoot,"createElement",document),S(ShadowRoot,"importNode",document),S(Element,"insertAdjacentHTML");var O=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(O(Element),O(ShadowRoot),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){var z=new WeakMap,C=HTMLElement.prototype.attachInternals;HTMLElement.prototype.attachInternals=function(t){for(var e=[],r=0;r<arguments.length;++r)e[r]=arguments[r];return e=C.call.apply(C,[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 E=function(t){var e=a(Array,[].concat(i(t)),this.constructor);return e.h=t,e},R=E,B=Array;if(R.prototype=r(B.prototype),R.prototype.constructor=R,l)l(R,B);else for(var F in B)if("prototype"!=F)if(Object.defineProperties){var T=Object.getOwnPropertyDescriptor(B,F);T&&Object.defineProperty(R,F,T)}else R[F]=B[F];R.u=B.prototype,n.Object.defineProperty(E.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"),n=i.get(o)||[];e[+r]=t,n.push(t),i.set(o,n)})),this.length=t.length,i.forEach((function(t,i){t&&(e[i]=1===t.length?t[0]:new E(t))}))};A.prototype.namedItem=function(t){return this[t]};var N=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){for(var t=N.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(self);try{window.customElements.define("custom-element",null)}catch(Ar){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 zt{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 Ct=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function Et(t,e){const i=()=>JSON.parse(JSON.stringify(t));return nt({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:{}})}class Rt{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 Rt(t,e,void 0,i)}static extend(t,e,i){return new Rt(t,e.category,e,i)}static external(t,e){return new Rt(t.name,t.category,t.fallbackVariable,t.defaultValue,e)}get(t){return a`var(${n(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):n(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 Bt(t,e){return n(`${t.name}: ${e}`)}const Ft={colorPrimary:Rt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:Rt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:Rt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:Rt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:Rt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:Rt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:Rt.create("--ft-color-error","COLOR","#B00020"),colorOutline:Rt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:Rt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:Rt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:Rt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:Rt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:Rt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:Rt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:Rt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:Rt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:Rt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:Rt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:Rt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:Rt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:Rt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:Rt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:Rt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:Rt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:Rt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:Rt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:Rt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:Rt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:Rt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:Rt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:Rt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:Rt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:Rt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:Rt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:Rt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:Rt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:Rt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:Rt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:Rt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:Rt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:Rt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:Rt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:Rt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:Rt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:Rt.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:Rt.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:Rt.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:Rt.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:Rt.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:Rt.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:Rt.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:Rt.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:Rt.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:Rt.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:Rt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:Rt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:Rt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:Rt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:Rt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:Rt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:Rt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:Rt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
93
93
  /**
94
94
  * @license
95
95
  * Copyright 2021 Google LLC
96
96
  * SPDX-License-Identifier: BSD-3-Clause
97
- */class Tt 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 n(o,this.constructor.elementStyles),o}}}(tt)){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]),B`${t.map((t=>B`<style>${t}</style>`))} ${this.getTemplate()}`}adoptedCallback(){Object.getPrototypeOf(this)!==this.constructorName&&Object.setPrototypeOf(this,this.proto)}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}const Et=a`.ft-no-text-select{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}`;class At{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,r;let o=null!==(r=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==r?r:"";return e.forEach(((t,e)=>o=o.replace(new RegExp(`\\{${e}\\}`,"g"),t))),o}}
98
- /**
99
- * @license
100
- * Copyright 2017 Google LLC
101
- * SPDX-License-Identifier: BSD-3-Clause
102
- */class Ft extends bt{constructor(t){if(super(t),this.it=L,t.type!==ut)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===L||null==t)return this.vt=void 0,this.it=t;if(t===R)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:[]}}}Ft.directiveName="unsafeHTML",Ft.resultType=1;const jt=mt(Ft);var Bt,Rt,Lt;const Mt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Lt=null===(Rt=null===(Bt=window.safari)||void 0===Bt?void 0:Bt.pushNotification)||void 0===Rt?void 0:Rt.toString())&&void 0!==Lt?Lt:"");var It,Dt=function(t,e,i,r){for(var o,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,c=t.length-1;c>=0;c--)(o=t[c])&&(n=(a<3?o(n):a>3?o(e,i,n):o(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};!function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"}(It||(It={}));class Ht extends CustomEvent{constructor(t,e){super("change",{detail:{size:t,category:e}})}}let Nt=class extends Tt{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=It.S,this.resizeObserver=new ResizeObserver((()=>this.updateSize())),this.debouncer=new St}getStyles(){return a`.ft-size-watcher--pixel{width:0;height:0;overflow:hidden}.ft-size-watcher--pixel.ft-size-watcher--local{width:100%}.ft-size-watcher--watcher{height:1px;width:100vw}.ft-size-watcher--local .ft-size-watcher--watcher{width:100%}`}getTemplate(){return B`<div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}"><div class="ft-size-watcher--watcher"></div></div>`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run((()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=It.S:this.size<976?this.category=It.M:this.size<1024?this.category=It.L:this.size<1440?this.category=It.XL:this.category=It.XXL,this.dispatchEvent(new Ht(this.size,this.category)))}),this.debounceTimeout)}};Nt.elementDefinitions={},Dt([ot({type:Number})],Nt.prototype,"debounceTimeout",void 0),Dt([ot({type:Boolean})],Nt.prototype,"local",void 0),Dt([ot({type:Number,reflect:!0})],Nt.prototype,"size",void 0),Dt([ot({type:String,reflect:!0})],Nt.prototype,"category",void 0),Dt([st(".ft-size-watcher--watcher")],Nt.prototype,"watcher",void 0),Nt=Dt([Ot("ft-size-watcher")],Nt);
97
+ */class Tt 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 c(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]),N`${t.map((t=>N`<style>${t}</style>`))} ${this.getTemplate()}`}adoptedCallback(){Object.getPrototypeOf(this)!==this.constructorName&&Object.setPrototypeOf(this,this.proto)}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}const At=a`.ft-no-text-select{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}`;class Nt{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,r;let o=null!==(r=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==r?r:"";return e.forEach(((t,e)=>o=o.replace(new RegExp(`\\{${e}\\}`,"g"),t))),o}}var jt,Mt,Lt;const Dt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Lt=null===(Mt=null===(jt=window.safari)||void 0===jt?void 0:jt.pushNotification)||void 0===Mt?void 0:Mt.toString())&&void 0!==Lt?Lt:"");var It,Ut=function(t,e,i,r){for(var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,c=t.length-1;c>=0;c--)(o=t[c])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};!function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"}(It||(It={}));class Pt extends CustomEvent{constructor(t,e){super("change",{detail:{size:t,category:e}})}}let Ht=class extends Tt{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=It.S,this.resizeObserver=new ResizeObserver((()=>this.updateSize())),this.debouncer=new zt}getStyles(){return a`.ft-size-watcher--pixel{width:0;height:0;overflow:hidden}.ft-size-watcher--pixel.ft-size-watcher--local{width:100%}.ft-size-watcher--watcher{height:1px;width:100vw}.ft-size-watcher--local .ft-size-watcher--watcher{width:100%}`}getTemplate(){return N`<div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}"><div class="ft-size-watcher--watcher"></div></div>`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run((()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=It.S:this.size<976?this.category=It.M:this.size<1024?this.category=It.L:this.size<1440?this.category=It.XL:this.category=It.XXL,this.dispatchEvent(new Pt(this.size,this.category)))}),this.debounceTimeout)}};Ht.elementDefinitions={},Ut([nt({type:Number})],Ht.prototype,"debounceTimeout",void 0),Ut([nt({type:Boolean})],Ht.prototype,"local",void 0),Ut([nt({type:Number,reflect:!0})],Ht.prototype,"size",void 0),Ut([nt({type:String,reflect:!0})],Ht.prototype,"category",void 0),Ut([lt(".ft-size-watcher--watcher")],Ht.prototype,"watcher",void 0),Ht=Ut([Ct("ft-size-watcher")],Ht);
103
98
  /**
104
99
  * @license
105
100
  * Copyright 2020 Google LLC
106
101
  * SPDX-License-Identifier: BSD-3-Clause
107
102
  */
108
- const Pt=t=>({_$litStatic$:t}),Ut=new Map,Vt=(t=>(e,...i)=>{var r;const o=i.length;let a,n;const c=[],s=[];let l,d=0,h=!1;for(;d<o;){for(l=e[d];d<o&&void 0!==(n=i[d],a=null===(r=n)||void 0===r?void 0:r._$litStatic$);)l+=a+e[++d],h=!0;s.push(n),c.push(l),d++}if(d===o&&c.push(e[o]),h){const t=c.join("$$lit$$");void 0===(e=Ut.get(t))&&(c.raw=c,Ut.set(t,e=c)),i=s}return t(e,...i)})(B);var qt,Gt=function(t,e,i,r){for(var o,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,c=t.length-1;c>=0;c--)(o=t[c])&&(n=(a<3?o(n):a>3?o(e,i,n):o(e,i))||n);return a>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"}(qt||(qt={}));const Kt=a`
103
+ const Vt=t=>({_$litStatic$:t}),Zt=new Map,Wt=(t=>(e,...i)=>{var r;const o=i.length;let n,a;const c=[],s=[];let l,d=0,p=!1;for(;d<o;){for(l=e[d];d<o&&void 0!==(a=i[d],n=null===(r=a)||void 0===r?void 0:r._$litStatic$);)l+=n+e[++d],p=!0;s.push(a),c.push(l),d++}if(d===o&&c.push(e[o]),p){const t=c.join("$$lit$$");void 0===(e=Zt.get(t))&&(c.raw=c,Zt.set(t,e=c)),i=s}return t(e,...i)})(N);var Kt,qt=function(t,e,i,r){for(var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,c=t.length-1;c>=0;c--)(o=t[c])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};!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"}(Kt||(Kt={}));const Gt=Rt.extend("--ft-typography-font-family",Ft.titleFont),Xt=Rt.extend("--ft-typography-font-family",Ft.contentFont),Jt={fontFamily:Xt,fontSize:Rt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:Rt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:Rt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:Rt.create("--ft-typography-line-height","SIZE","24px"),textTransform:Rt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Yt=Rt.extend("--ft-typography-title-font-family",Gt),Qt=Rt.extend("--ft-typography-title-font-size",Jt.fontSize,"20px"),te=Rt.extend("--ft-typography-title-font-weight",Jt.fontWeight,"normal"),ee=Rt.extend("--ft-typography-title-letter-spacing",Jt.letterSpacing,"0.15px"),ie=Rt.extend("--ft-typography-title-line-height",Jt.lineHeight,"24px"),re=Rt.extend("--ft-typography-title-text-transform",Jt.textTransform,"inherit"),oe=Rt.extend("--ft-typography-title-dense-font-family",Gt),ne=Rt.extend("--ft-typography-title-dense-font-size",Jt.fontSize,"14px"),ae=Rt.extend("--ft-typography-title-dense-font-weight",Jt.fontWeight,"normal"),ce=Rt.extend("--ft-typography-title-dense-letter-spacing",Jt.letterSpacing,"0.105px"),se=Rt.extend("--ft-typography-title-dense-line-height",Jt.lineHeight,"24px"),le=Rt.extend("--ft-typography-title-dense-text-transform",Jt.textTransform,"inherit"),de=Rt.extend("--ft-typography-subtitle1-font-family",Xt),pe=Rt.extend("--ft-typography-subtitle1-font-size",Jt.fontSize,"16px"),he=Rt.extend("--ft-typography-subtitle1-font-weight",Jt.fontWeight,"600"),fe=Rt.extend("--ft-typography-subtitle1-letter-spacing",Jt.letterSpacing,"0.144px"),ue=Rt.extend("--ft-typography-subtitle1-line-height",Jt.lineHeight,"24px"),me=Rt.extend("--ft-typography-subtitle1-text-transform",Jt.textTransform,"inherit"),be=Rt.extend("--ft-typography-subtitle2-font-family",Xt),ve=Rt.extend("--ft-typography-subtitle2-font-size",Jt.fontSize,"14px"),ge=Rt.extend("--ft-typography-subtitle2-font-weight",Jt.fontWeight,"normal"),ye=Rt.extend("--ft-typography-subtitle2-letter-spacing",Jt.letterSpacing,"0.098px"),xe=Rt.extend("--ft-typography-subtitle2-line-height",Jt.lineHeight,"24px"),ke=Rt.extend("--ft-typography-subtitle2-text-transform",Jt.textTransform,"inherit"),we={fontFamily:Rt.extend("--ft-typography-body1-font-family",Xt),fontSize:Rt.extend("--ft-typography-body1-font-size",Jt.fontSize,"16px"),fontWeight:Rt.extend("--ft-typography-body1-font-weight",Jt.fontWeight,"normal"),letterSpacing:Rt.extend("--ft-typography-body1-letter-spacing",Jt.letterSpacing,"0.496px"),lineHeight:Rt.extend("--ft-typography-body1-line-height",Jt.lineHeight,"24px"),textTransform:Rt.extend("--ft-typography-body1-text-transform",Jt.textTransform,"inherit")},$e={fontFamily:Rt.extend("--ft-typography-body2-font-family",Xt),fontSize:Rt.extend("--ft-typography-body2-font-size",Jt.fontSize,"14px"),fontWeight:Rt.extend("--ft-typography-body2-font-weight",Jt.fontWeight,"normal"),letterSpacing:Rt.extend("--ft-typography-body2-letter-spacing",Jt.letterSpacing,"0.252px"),lineHeight:Rt.extend("--ft-typography-body2-line-height",Jt.lineHeight,"20px"),textTransform:Rt.extend("--ft-typography-body2-text-transform",Jt.textTransform,"inherit")},_e={fontFamily:Rt.extend("--ft-typography-caption-font-family",Xt),fontSize:Rt.extend("--ft-typography-caption-font-size",Jt.fontSize,"12px"),fontWeight:Rt.extend("--ft-typography-caption-font-weight",Jt.fontWeight,"normal"),letterSpacing:Rt.extend("--ft-typography-caption-letter-spacing",Jt.letterSpacing,"0.396px"),lineHeight:Rt.extend("--ft-typography-caption-line-height",Jt.lineHeight,"16px"),textTransform:Rt.extend("--ft-typography-caption-text-transform",Jt.textTransform,"inherit")},Se=Rt.extend("--ft-typography-breadcrumb-font-family",Xt),Oe=Rt.extend("--ft-typography-breadcrumb-font-size",Jt.fontSize,"10px"),ze=Rt.extend("--ft-typography-breadcrumb-font-weight",Jt.fontWeight,"normal"),Ce=Rt.extend("--ft-typography-breadcrumb-letter-spacing",Jt.letterSpacing,"0.33px"),Ee=Rt.extend("--ft-typography-breadcrumb-line-height",Jt.lineHeight,"16px"),Re=Rt.extend("--ft-typography-breadcrumb-text-transform",Jt.textTransform,"inherit"),Be=Rt.extend("--ft-typography-overline-font-family",Xt),Fe=Rt.extend("--ft-typography-overline-font-size",Jt.fontSize,"10px"),Te=Rt.extend("--ft-typography-overline-font-weight",Jt.fontWeight,"normal"),Ae=Rt.extend("--ft-typography-overline-letter-spacing",Jt.letterSpacing,"1.5px"),Ne=Rt.extend("--ft-typography-overline-line-height",Jt.lineHeight,"16px"),je=Rt.extend("--ft-typography-overline-text-transform",Jt.textTransform,"uppercase"),Me={fontFamily:Rt.extend("--ft-typography-button-font-family",Xt),fontSize:Rt.extend("--ft-typography-button-font-size",Jt.fontSize,"14px"),fontWeight:Rt.extend("--ft-typography-button-font-weight",Jt.fontWeight,"600"),letterSpacing:Rt.extend("--ft-typography-button-letter-spacing",Jt.letterSpacing,"1.246px"),lineHeight:Rt.extend("--ft-typography-button-line-height",Jt.lineHeight,"16px"),textTransform:Rt.extend("--ft-typography-button-text-transform",Jt.textTransform,"uppercase")},Le=a`
109
104
  .ft-typography--title {
110
- font-family: var(--ft-typography-title-font-family, var(--ft-typography-font-family, var(--ft-title-font, Ubuntu))), system-ui, sans-serif;
111
- font-size: var(--ft-typography-title-font-size, var(--ft-typography-font-size, 20px));
112
- font-weight: var(--ft-typography-title-font-weight, var(--ft-typography-font-weight, normal));
113
- letter-spacing: var(--ft-typography-title-letter-spacing, var(--ft-typography-letter-spacing, 0.15px));
114
- line-height: var(--ft-typography-title-line-height, var(--ft-typography-line-height, 24px));
115
- text-transform: var(--ft-typography-title-text-transform, var(--ft-typography-text-transform, inherit));
105
+ font-family: ${Yt};
106
+ font-size: ${Qt};
107
+ font-weight: ${te};
108
+ letter-spacing: ${ee};
109
+ line-height: ${ie};
110
+ text-transform: ${re};
116
111
  }
117
- `,Wt=a`
112
+ `,De=a`
118
113
  .ft-typography--title-dense {
119
- font-family: var(--ft-typography-title-dense-font-family, var(--ft-typography-font-family, var(--ft-title-font, Ubuntu))), system-ui, sans-serif;
120
- font-size: var(--ft-typography-title-dense-font-size, var(--ft-typography-font-size, 14px));
121
- font-weight: var(--ft-typography-title-dense-font-weight, var(--ft-typography-font-weight, normal));
122
- letter-spacing: var(--ft-typography-title-dense-letter-spacing, var(--ft-typography-letter-spacing, 0.105px));
123
- line-height: var(--ft-typography-title-dense-line-height, var(--ft-typography-line-height, 24px));
124
- text-transform: var(--ft-typography-title-dense-text-transform, var(--ft-typography-text-transform, inherit));
114
+ font-family: ${oe};
115
+ font-size: ${ne};
116
+ font-weight: ${ae};
117
+ letter-spacing: ${ce};
118
+ line-height: ${se};
119
+ text-transform: ${le};
125
120
  }
126
- `,Xt=a`
121
+ `,Ie=a`
127
122
  .ft-typography--subtitle1 {
128
- font-family: var(--ft-typography-subtitle1-font-family, var(--ft-typography-font-family, var(--ft-content-font, 'Open Sans'))), system-ui, sans-serif;
129
- font-size: var(--ft-typography-subtitle1-font-size, var(--ft-typography-font-size, 16px));
130
- font-weight: var(--ft-typography-subtitle1-font-weight, var(--ft-typography-font-weight, 600));
131
- letter-spacing: var(--ft-typography-subtitle1-letter-spacing, var(--ft-typography-letter-spacing, 0.144px));
132
- line-height: var(--ft-typography-subtitle1-line-height, var(--ft-typography-line-height, 24px));
133
- text-transform: var(--ft-typography-subtitle1-text-transform, var(--ft-typography-text-transform, inherit));
123
+ font-family: ${de};
124
+ font-size: ${pe};
125
+ font-weight: ${he};
126
+ letter-spacing: ${fe};
127
+ line-height: ${ue};
128
+ text-transform: ${me};
134
129
  }
135
- `,Jt=a`
130
+ `,Ue=a`
136
131
  .ft-typography--subtitle2 {
137
- font-family: var(--ft-typography-subtitle2-font-family, var(--ft-typography-font-family, var(--ft-content-font, 'Open Sans'))), system-ui, sans-serif;
138
- font-size: var(--ft-typography-subtitle2-font-size, var(--ft-typography-font-size, 14px));
139
- font-weight: var(--ft-typography-subtitle2-font-weight, var(--ft-typography-font-weight, normal));
140
- letter-spacing: var(--ft-typography-subtitle2-letter-spacing, var(--ft-typography-letter-spacing, 0.098px));
141
- line-height: var(--ft-typography-subtitle2-line-height, var(--ft-typography-line-height, 24px));
142
- text-transform: var(--ft-typography-subtitle2-text-transform, var(--ft-typography-text-transform, inherit));
132
+ font-family: ${be};
133
+ font-size: ${ve};
134
+ font-weight: ${ge};
135
+ letter-spacing: ${ye};
136
+ line-height: ${xe};
137
+ text-transform: ${ke};
143
138
  }
144
139
 
145
- `,Zt=a`
140
+ `,Pe=a`
146
141
  .ft-typography--body1 {
147
- font-family: var(--ft-typography-body1-font-family, var(--ft-typography-font-family, var(--ft-content-font, 'Open Sans'))), system-ui, sans-serif;
148
- font-size: var(--ft-typography-body1-font-size, var(--ft-typography-font-size, 16px));
149
- font-weight: var(--ft-typography-body1-font-weight, var(--ft-typography-font-weight, normal));
150
- letter-spacing: var(--ft-typography-body1-letter-spacing, var(--ft-typography-letter-spacing, 0.496px));
151
- line-height: var(--ft-typography-body1-line-height, var(--ft-typography-line-height, 24px));
152
- text-transform: var(--ft-typography-body1-text-transform, var(--ft-typography-text-transform, inherit));
142
+ font-family: ${we.fontFamily};
143
+ font-size: ${we.fontSize};
144
+ font-weight: ${we.fontWeight};
145
+ letter-spacing: ${we.letterSpacing};
146
+ line-height: ${we.lineHeight};
147
+ text-transform: ${we.textTransform};
153
148
  }
154
- `,Yt=a`
149
+ `,He=a`
155
150
  .ft-typography--body2 {
156
- font-family: var(--ft-typography-body2-font-family, var(--ft-typography-font-family, var(--ft-content-font, 'Open Sans'))), system-ui, sans-serif;
157
- font-size: var(--ft-typography-body2-font-size, var(--ft-typography-font-size, 14px));
158
- font-weight: var(--ft-typography-body2-font-weight, var(--ft-typography-font-weight, normal));
159
- letter-spacing: var(--ft-typography-body2-letter-spacing, var(--ft-typography-letter-spacing, 0.252px));
160
- line-height: var(--ft-typography-body2-line-height, var(--ft-typography-line-height, 20px));
161
- text-transform: var(--ft-typography-body2-text-transform, var(--ft-typography-text-transform, inherit));
151
+ font-family: ${$e.fontFamily};
152
+ font-size: ${$e.fontSize};
153
+ font-weight: ${$e.fontWeight};
154
+ letter-spacing: ${$e.letterSpacing};
155
+ line-height: ${$e.lineHeight};
156
+ text-transform: ${$e.textTransform};
162
157
  }
163
- `,Qt=a`
158
+ `,Ve=a`
164
159
  .ft-typography--caption {
165
- font-family: var(--ft-typography-caption-font-family, var(--ft-typography-font-family, var(--ft-content-font, 'Open Sans'))), system-ui, sans-serif;
166
- font-size: var(--ft-typography-caption-font-size, var(--ft-typography-font-size, 12px));
167
- font-weight: var(--ft-typography-caption-font-weight, var(--ft-typography-font-weight, normal));
168
- letter-spacing: var(--ft-typography-caption-letter-spacing, var(--ft-typography-letter-spacing, 0.396px));
169
- line-height: var(--ft-typography-caption-line-height, var(--ft-typography-line-height, 16px));
170
- text-transform: var(--ft-typography-caption-text-transform, var(--ft-typography-text-transform, inherit));
160
+ font-family: ${_e.fontFamily};
161
+ font-size: ${_e.fontSize};
162
+ font-weight: ${_e.fontWeight};
163
+ letter-spacing: ${_e.letterSpacing};
164
+ line-height: ${_e.lineHeight};
165
+ text-transform: ${_e.textTransform};
171
166
  }
172
- `,te=a`
167
+ `,Ze=a`
173
168
  .ft-typography--breadcrumb {
174
- font-family: var(--ft-typography-breadcrumb-font-family, var(--ft-typography-font-family, var(--ft-content-font, 'Open Sans'))), system-ui, sans-serif;
175
- font-size: var(--ft-typography-breadcrumb-font-size, var(--ft-typography-font-size, 10px));
176
- font-weight: var(--ft-typography-breadcrumb-font-weight, var(--ft-typography-font-weight, normal));
177
- letter-spacing: var(--ft-typography-breadcrumb-letter-spacing, var(--ft-typography-letter-spacing, 0.33px));
178
- line-height: var(--ft-typography-breadcrumb-line-height, var(--ft-typography-line-height, 16px));
179
- text-transform: var(--ft-typography-breadcrumb-text-transform, var(--ft-typography-text-transform, inherit));
169
+ font-family: ${Se};
170
+ font-size: ${Oe};
171
+ font-weight: ${ze};
172
+ letter-spacing: ${Ce};
173
+ line-height: ${Ee};
174
+ text-transform: ${Re};
180
175
  }
181
- `,ee=a`
176
+ `,We=a`
182
177
  .ft-typography--overline {
183
- font-family: var(--ft-typography-overline-font-family, var(--ft-typography-font-family, var(--ft-content-font, 'Open Sans'))), system-ui, sans-serif;
184
- font-size: var(--ft-typography-overline-font-size, var(--ft-typography-font-size, 10px));
185
- font-weight: var(--ft-typography-overline-font-weight, var(--ft-typography-font-weight, normal));
186
- letter-spacing: var(--ft-typography-overline-letter-spacing, var(--ft-typography-letter-spacing, 1.5px));
187
- line-height: var(--ft-typography-overline-line-height, var(--ft-typography-line-height, 16px));
188
- text-transform: var(--ft-typography-overline-text-transform, var(--ft-typography-text-transform, uppercase));
178
+ font-family: ${Be};
179
+ font-size: ${Fe};
180
+ font-weight: ${Te};
181
+ letter-spacing: ${Ae};
182
+ line-height: ${Ne};
183
+ text-transform: ${je};
189
184
  }
190
- `,ie=a`
185
+ `,Ke=a`
191
186
  .ft-typography--button {
192
- font-family: var(--ft-typography-button-font-family, var(--ft-typography-font-family, var(--ft-content-font, 'Open Sans'))), system-ui, sans-serif;
193
- font-size: var(--ft-typography-button-font-size, var(--ft-typography-font-size, 14px));
194
- font-weight: var(--ft-typography-button-font-weight, var(--ft-typography-font-weight, 600));
195
- letter-spacing: var(--ft-typography-button-letter-spacing, var(--ft-typography-letter-spacing, 1.246px));
196
- line-height: var(--ft-typography-button-line-height, var(--ft-typography-line-height, 16px));
197
- text-transform: var(--ft-typography-button-text-transform, var(--ft-typography-text-transform, uppercase));
187
+ font-family: ${Me.fontFamily};
188
+ font-size: ${Me.fontSize};
189
+ font-weight: ${Me.fontWeight};
190
+ letter-spacing: ${Me.letterSpacing};
191
+ line-height: ${Me.lineHeight};
192
+ text-transform: ${Me.textTransform};
198
193
  }
199
- `;let re=class extends Tt{constructor(){super(...arguments),this.variant=qt.body1}getStyles(){return[Kt,Wt,Xt,Jt,Zt,Yt,Qt,te,ee,ie]}getTemplate(){return this.element?Vt`
200
- <${Pt(this.element)}
194
+ `;let qe=class extends Tt{constructor(){super(...arguments),this.variant=Kt.body1}getStyles(){return[Le,De,Ie,Ue,Pe,He,Ve,Ze,We,Ke]}getTemplate(){return this.element?Wt`
195
+ <${Vt(this.element)}
201
196
  class="ft-typography ft-typography--${this.variant}">
202
197
  <slot></slot>
203
- </${Pt(this.element)}>
204
- `:Vt`
198
+ </${Vt(this.element)}>
199
+ `:Wt`
205
200
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
206
- `}};function oe(t,e){return t.flatMap((t=>[t,...oe(e(t),e)]))}function ae(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function ne(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map((e=>ne(e,t.selected))),value:t.value}}function ce(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map((t=>ne(t,!1)))}}
201
+ `}};function Ge(t,e){return t.flatMap((t=>[t,...Ge(e(t),e)]))}function Xe(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Je(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map((e=>Je(e,t.selected))),value:t.value}}function Ye(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map((t=>Je(t,!1)))}}
207
202
  /*! *****************************************************************************
208
203
  Copyright (c) Microsoft Corporation.
209
204
 
@@ -217,7 +212,7 @@ const Pt=t=>({_$litStatic$:t}),Ut=new Map,Vt=(t=>(e,...i)=>{var r;const o=i.leng
217
212
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
218
213
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
219
214
  PERFORMANCE OF THIS SOFTWARE.
220
- ***************************************************************************** */Gt([ot()],re.prototype,"element",void 0),Gt([ot()],re.prototype,"variant",void 0),re=Gt([Ot("ft-typography")],re);var se=function(t,e){return se=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])},se(t,e)};function le(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}se(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var de=function(){return de=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},de.apply(this,arguments)};function he(t,e,i,r){for(var o,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,c=t.length-1;c>=0;c--)(o=t[c])&&(n=(a<3?o(n):a>3?o(e,i,n):o(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n}function pe(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.")}
215
+ ***************************************************************************** */qt([nt()],qe.prototype,"element",void 0),qt([nt()],qe.prototype,"variant",void 0),qe=qt([Ct("ft-typography")],qe);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,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,c=t.length-1;c>=0;c--)(o=t[c])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a}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.")}
221
216
  /**
222
217
  * @license
223
218
  * Copyright 2018 Google Inc.
@@ -239,13 +234,13 @@ const Pt=t=>({_$litStatic$:t}),Ut=new Map,Vt=(t=>(e,...i)=>{var r;const o=i.leng
239
234
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
240
235
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
241
236
  * THE SOFTWARE.
242
- */const fe=()=>{},ue={get passive(){return!1}};document.addEventListener("x",fe,ue),document.removeEventListener("x",fe);
237
+ */const oi=()=>{},ni={get passive(){return!1}};document.addEventListener("x",oi,ni),document.removeEventListener("x",oi);
243
238
  /**
244
239
  * @license
245
240
  * Copyright 2018 Google LLC
246
241
  * SPDX-License-Identifier: Apache-2.0
247
242
  */
248
- class me extends tt{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()}}
243
+ class ai 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()}}
249
244
  /**
250
245
  * @license
251
246
  * Copyright 2016 Google Inc.
@@ -267,7 +262,7 @@ class me extends tt{click(){if(this.mdcRoot)return this.mdcRoot.focus(),void thi
267
262
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
268
263
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
269
264
  * THE SOFTWARE.
270
- */var be=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}(),ve={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"},ge={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"},ye={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300};
265
+ */var ci=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"},li={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"},di={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300};
271
266
  /**
272
267
  * @license
273
268
  * Copyright 2016 Google Inc.
@@ -312,83 +307,83 @@ class me extends tt{click(){if(this.mdcRoot)return this.mdcRoot.focus(),void thi
312
307
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
313
308
  * THE SOFTWARE.
314
309
  */
315
- var xe=["touchstart","pointerdown","mousedown","keydown"],ke=["touchend","pointerup","mouseup","contextmenu"],we=[],_e=function(t){function e(i){var r=t.call(this,de(de({},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 le(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return ve},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return ge},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return ye},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,a=r.UNBOUNDED;requestAnimationFrame((function(){t.adapter.addClass(o),t.adapter.isUnbounded()&&(t.adapter.addClass(a),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=pe(xe),o=r.next();!o.done;o=r.next()){var a=o.value;this.adapter.registerInteractionHandler(a,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=pe(ke),o=r.next();!o.done;o=r.next()){var a=o.value;this.adapter.registerDocumentInteractionHandler(a,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=pe(xe),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=pe(ke),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&&we.length>0&&we.some((function(t){return e.adapter.containsEventTarget(t)}))?this.resetActivationState():(void 0!==t&&(we.push(t.target),this.registerDeactivationHandlers(t)),i.wasElementMadeActive=this.checkElementMadeActive(t),i.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame((function(){we=[],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,a=e.cssClasses,n=a.FG_DEACTIVATION,c=a.FG_ACTIVATION,s=e.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var l="",d="";if(!this.adapter.isUnbounded()){var h=this.getFgTranslationCoordinates(),p=h.startPoint,f=h.endPoint;l=p.x+"px, "+p.y+"px",d=f.x+"px, "+f.y+"px"}this.adapter.updateCssVariable(r,l),this.adapter.updateCssVariable(o,d),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(n),this.adapter.computeBoundingRect(),this.adapter.addClass(c),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,a=e.x,n=e.y,c=a+i.left,s=n+i.top;if("touchstart"===t.type){var l=t;r=l.changedTouches[0].pageX-c,o=l.changedTouches[0].pageY-s}else{var d=t;r=d.pageX-c,o=d.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,a=r.isActivated;(o||!a)&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(i),this.fgDeactivationRemovalTimer=setTimeout((function(){t.adapter.removeClass(i)}),ye.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=de({},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,a=t.VAR_FG_SCALE;this.adapter.updateCssVariable(i,this.initialSize+"px"),this.adapter.updateCssVariable(a,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}(be),$e=_e;
310
+ var pi=["touchstart","pointerdown","mousedown","keydown"],hi=["touchend","pointerup","mouseup","contextmenu"],fi=[],ui=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 li},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return di},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,n=r.UNBOUNDED;requestAnimationFrame((function(){t.adapter.addClass(o),t.adapter.isUnbounded()&&(t.adapter.addClass(n),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 n=o.value;this.adapter.registerInteractionHandler(n,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 n=o.value;this.adapter.registerDocumentInteractionHandler(n,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&&fi.length>0&&fi.some((function(t){return e.adapter.containsEventTarget(t)}))?this.resetActivationState():(void 0!==t&&(fi.push(t.target),this.registerDeactivationHandlers(t)),i.wasElementMadeActive=this.checkElementMadeActive(t),i.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame((function(){fi=[],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,n=e.cssClasses,a=n.FG_DEACTIVATION,c=n.FG_ACTIVATION,s=e.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var l="",d="";if(!this.adapter.isUnbounded()){var p=this.getFgTranslationCoordinates(),h=p.startPoint,f=p.endPoint;l=h.x+"px, "+h.y+"px",d=f.x+"px, "+f.y+"px"}this.adapter.updateCssVariable(r,l),this.adapter.updateCssVariable(o,d),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(a),this.adapter.computeBoundingRect(),this.adapter.addClass(c),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,n=e.x,a=e.y,c=n+i.left,s=a+i.top;if("touchstart"===t.type){var l=t;r=l.changedTouches[0].pageX-c,o=l.changedTouches[0].pageY-s}else{var d=t;r=d.pageX-c,o=d.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,n=r.isActivated;(o||!n)&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(i),this.fgDeactivationRemovalTimer=setTimeout((function(){t.adapter.removeClass(i)}),di.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,n=t.VAR_FG_SCALE;this.adapter.updateCssVariable(i,this.initialSize+"px"),this.adapter.updateCssVariable(n,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}(ci),mi=ui;
316
311
  /**
317
312
  * @license
318
313
  * Copyright 2018 Google LLC
319
314
  * SPDX-License-Identifier: BSD-3-Clause
320
315
  */
321
- const ze=mt(class extends bt{constructor(t){var e;if(super(t),t.type!==ft||"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 R}});
316
+ const bi=bt(class extends vt{constructor(t){var e;if(super(t),t.type!==ut||"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 j}});
322
317
  /**
323
318
  * @license
324
319
  * Copyright 2018 Google LLC
325
320
  * SPDX-License-Identifier: Apache-2.0
326
- */class Se extends me{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=$e}get isActive(){return t=this.parentElement||this,e=":active",(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e);var t,e;
321
+ */class vi extends ai{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;
327
322
  /**
328
323
  * @license
329
324
  * Copyright 2018 Google LLC
330
325
  * SPDX-License-Identifier: Apache-2.0
331
- */}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 B`<div class="mdc-ripple-surface mdc-ripple-upgraded ${zt(i)}" style="${ze({"--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>`}}he([st(".mdc-ripple-surface")],Se.prototype,"mdcRoot",void 0),he([ot({type:Boolean})],Se.prototype,"primary",void 0),he([ot({type:Boolean})],Se.prototype,"accent",void 0),he([ot({type:Boolean})],Se.prototype,"unbounded",void 0),he([ot({type:Boolean})],Se.prototype,"disabled",void 0),he([ot({type:Boolean})],Se.prototype,"activated",void 0),he([ot({type:Boolean})],Se.prototype,"selected",void 0),he([ot({type:Boolean})],Se.prototype,"internalUseStateLayerCustomProperties",void 0),he([at()],Se.prototype,"hovering",void 0),he([at()],Se.prototype,"bgFocused",void 0),he([at()],Se.prototype,"fgActivation",void 0),he([at()],Se.prototype,"fgDeactivation",void 0),he([at()],Se.prototype,"fgScale",void 0),he([at()],Se.prototype,"fgSize",void 0),he([at()],Se.prototype,"translateStart",void 0),he([at()],Se.prototype,"translateEnd",void 0),he([at()],Se.prototype,"leftPos",void 0),he([at()],Se.prototype,"topPos",void 0);
326
+ */}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 N`<div class="mdc-ripple-surface mdc-ripple-upgraded ${Ot(i)}" style="${bi({"--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([lt(".mdc-ripple-surface")],vi.prototype,"mdcRoot",void 0),ii([nt({type:Boolean})],vi.prototype,"primary",void 0),ii([nt({type:Boolean})],vi.prototype,"accent",void 0),ii([nt({type:Boolean})],vi.prototype,"unbounded",void 0),ii([nt({type:Boolean})],vi.prototype,"disabled",void 0),ii([nt({type:Boolean})],vi.prototype,"activated",void 0),ii([nt({type:Boolean})],vi.prototype,"selected",void 0),ii([nt({type:Boolean})],vi.prototype,"internalUseStateLayerCustomProperties",void 0),ii([at()],vi.prototype,"hovering",void 0),ii([at()],vi.prototype,"bgFocused",void 0),ii([at()],vi.prototype,"fgActivation",void 0),ii([at()],vi.prototype,"fgDeactivation",void 0),ii([at()],vi.prototype,"fgScale",void 0),ii([at()],vi.prototype,"fgSize",void 0),ii([at()],vi.prototype,"translateStart",void 0),ii([at()],vi.prototype,"translateEnd",void 0),ii([at()],vi.prototype,"leftPos",void 0),ii([at()],vi.prototype,"topPos",void 0);
332
327
  /**
333
328
  * @license
334
329
  * Copyright 2021 Google LLC
335
330
  * SPDX-LIcense-Identifier: Apache-2.0
336
331
  */
337
- const Oe=a`.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:transparent;will-change:transform,opacity;position:relative;outline:0;overflow:hidden}.mdc-ripple-surface::after,.mdc-ripple-surface::before{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::after,.mdc-ripple-surface::before{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]::after,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-upgraded--unbounded::after,.mdc-ripple-upgraded--unbounded::before{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before{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::after,.mdc-ripple-surface::before{background-color:#000;background-color:var(--mdc-ripple-color,#000)}.mdc-ripple-surface.mdc-ripple-surface--hover::before,.mdc-ripple-surface:hover::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity,.04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity,.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:.12;opacity:var(--mdc-ripple-press-opacity,.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(.4,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::after,.mdc-ripple-surface--primary::before{background-color:#6200ee;background-color:var(--mdc-ripple-color,var(--mdc-theme-primary,#6200ee))}.mdc-ripple-surface--primary.mdc-ripple-surface--hover::before,.mdc-ripple-surface--primary:hover::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity,.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:.12;opacity:var(--mdc-ripple-focus-opacity,.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:.12;opacity:var(--mdc-ripple-press-opacity,.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:.12;opacity:var(--mdc-ripple-activated-opacity,.12)}.mdc-ripple-surface--primary--activated::after,.mdc-ripple-surface--primary--activated::before{background-color:#6200ee;background-color:var(--mdc-ripple-color,var(--mdc-theme-primary,#6200ee))}.mdc-ripple-surface--primary--activated.mdc-ripple-surface--hover::before,.mdc-ripple-surface--primary--activated:hover::before{opacity:.16;opacity:var(--mdc-ripple-hover-opacity,.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:.24;opacity:var(--mdc-ripple-focus-opacity,.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:.24;opacity:var(--mdc-ripple-press-opacity,.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:.08;opacity:var(--mdc-ripple-selected-opacity,.08)}.mdc-ripple-surface--primary--selected::after,.mdc-ripple-surface--primary--selected::before{background-color:#6200ee;background-color:var(--mdc-ripple-color,var(--mdc-theme-primary,#6200ee))}.mdc-ripple-surface--primary--selected.mdc-ripple-surface--hover::before,.mdc-ripple-surface--primary--selected:hover::before{opacity:.12;opacity:var(--mdc-ripple-hover-opacity,.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:.2;opacity:var(--mdc-ripple-focus-opacity,.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:.2;opacity:var(--mdc-ripple-press-opacity,.2)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent::after,.mdc-ripple-surface--accent::before{background-color:#018786;background-color:var(--mdc-ripple-color,var(--mdc-theme-secondary,#018786))}.mdc-ripple-surface--accent.mdc-ripple-surface--hover::before,.mdc-ripple-surface--accent:hover::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity,.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:.12;opacity:var(--mdc-ripple-focus-opacity,.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:.12;opacity:var(--mdc-ripple-press-opacity,.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:.12;opacity:var(--mdc-ripple-activated-opacity,.12)}.mdc-ripple-surface--accent--activated::after,.mdc-ripple-surface--accent--activated::before{background-color:#018786;background-color:var(--mdc-ripple-color,var(--mdc-theme-secondary,#018786))}.mdc-ripple-surface--accent--activated.mdc-ripple-surface--hover::before,.mdc-ripple-surface--accent--activated:hover::before{opacity:.16;opacity:var(--mdc-ripple-hover-opacity,.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:.24;opacity:var(--mdc-ripple-focus-opacity,.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:.24;opacity:var(--mdc-ripple-press-opacity,.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:.08;opacity:var(--mdc-ripple-selected-opacity,.08)}.mdc-ripple-surface--accent--selected::after,.mdc-ripple-surface--accent--selected::before{background-color:#018786;background-color:var(--mdc-ripple-color,var(--mdc-theme-secondary,#018786))}.mdc-ripple-surface--accent--selected.mdc-ripple-surface--hover::before,.mdc-ripple-surface--accent--selected:hover::before{opacity:.12;opacity:var(--mdc-ripple-hover-opacity,.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:.2;opacity:var(--mdc-ripple-focus-opacity,.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:.2;opacity:var(--mdc-ripple-press-opacity,.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::after,.mdc-ripple-surface--internal-use-state-layer-custom-properties::before{background-color:#000;background-color:var(--mdc-ripple-hover-state-layer-color,#000)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-surface--hover::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties:hover::before{opacity:.04;opacity:var(--mdc-ripple-hover-state-layer-opacity,.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:.12;opacity:var(--mdc-ripple-focus-state-layer-opacity,.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:.12;opacity:var(--mdc-ripple-pressed-state-layer-opacity,.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)}`
332
+ const gi=a`.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:transparent;will-change:transform,opacity;position:relative;outline:0;overflow:hidden}.mdc-ripple-surface::after,.mdc-ripple-surface::before{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::after,.mdc-ripple-surface::before{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]::after,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-upgraded--unbounded::after,.mdc-ripple-upgraded--unbounded::before{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before{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::after,.mdc-ripple-surface::before{background-color:#000;background-color:var(--mdc-ripple-color,#000)}.mdc-ripple-surface.mdc-ripple-surface--hover::before,.mdc-ripple-surface:hover::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity,.04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity,.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:.12;opacity:var(--mdc-ripple-press-opacity,.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(.4,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::after,.mdc-ripple-surface--primary::before{background-color:#6200ee;background-color:var(--mdc-ripple-color,var(--mdc-theme-primary,#6200ee))}.mdc-ripple-surface--primary.mdc-ripple-surface--hover::before,.mdc-ripple-surface--primary:hover::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity,.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:.12;opacity:var(--mdc-ripple-focus-opacity,.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:.12;opacity:var(--mdc-ripple-press-opacity,.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:.12;opacity:var(--mdc-ripple-activated-opacity,.12)}.mdc-ripple-surface--primary--activated::after,.mdc-ripple-surface--primary--activated::before{background-color:#6200ee;background-color:var(--mdc-ripple-color,var(--mdc-theme-primary,#6200ee))}.mdc-ripple-surface--primary--activated.mdc-ripple-surface--hover::before,.mdc-ripple-surface--primary--activated:hover::before{opacity:.16;opacity:var(--mdc-ripple-hover-opacity,.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:.24;opacity:var(--mdc-ripple-focus-opacity,.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:.24;opacity:var(--mdc-ripple-press-opacity,.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:.08;opacity:var(--mdc-ripple-selected-opacity,.08)}.mdc-ripple-surface--primary--selected::after,.mdc-ripple-surface--primary--selected::before{background-color:#6200ee;background-color:var(--mdc-ripple-color,var(--mdc-theme-primary,#6200ee))}.mdc-ripple-surface--primary--selected.mdc-ripple-surface--hover::before,.mdc-ripple-surface--primary--selected:hover::before{opacity:.12;opacity:var(--mdc-ripple-hover-opacity,.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:.2;opacity:var(--mdc-ripple-focus-opacity,.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:.2;opacity:var(--mdc-ripple-press-opacity,.2)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent::after,.mdc-ripple-surface--accent::before{background-color:#018786;background-color:var(--mdc-ripple-color,var(--mdc-theme-secondary,#018786))}.mdc-ripple-surface--accent.mdc-ripple-surface--hover::before,.mdc-ripple-surface--accent:hover::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity,.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:.12;opacity:var(--mdc-ripple-focus-opacity,.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:.12;opacity:var(--mdc-ripple-press-opacity,.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:.12;opacity:var(--mdc-ripple-activated-opacity,.12)}.mdc-ripple-surface--accent--activated::after,.mdc-ripple-surface--accent--activated::before{background-color:#018786;background-color:var(--mdc-ripple-color,var(--mdc-theme-secondary,#018786))}.mdc-ripple-surface--accent--activated.mdc-ripple-surface--hover::before,.mdc-ripple-surface--accent--activated:hover::before{opacity:.16;opacity:var(--mdc-ripple-hover-opacity,.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:.24;opacity:var(--mdc-ripple-focus-opacity,.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:.24;opacity:var(--mdc-ripple-press-opacity,.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:.08;opacity:var(--mdc-ripple-selected-opacity,.08)}.mdc-ripple-surface--accent--selected::after,.mdc-ripple-surface--accent--selected::before{background-color:#018786;background-color:var(--mdc-ripple-color,var(--mdc-theme-secondary,#018786))}.mdc-ripple-surface--accent--selected.mdc-ripple-surface--hover::before,.mdc-ripple-surface--accent--selected:hover::before{opacity:.12;opacity:var(--mdc-ripple-hover-opacity,.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:.2;opacity:var(--mdc-ripple-focus-opacity,.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:.2;opacity:var(--mdc-ripple-press-opacity,.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::after,.mdc-ripple-surface--internal-use-state-layer-custom-properties::before{background-color:#000;background-color:var(--mdc-ripple-hover-state-layer-color,#000)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-surface--hover::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties:hover::before{opacity:.04;opacity:var(--mdc-ripple-hover-state-layer-opacity,.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:.12;opacity:var(--mdc-ripple-focus-state-layer-opacity,.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:.12;opacity:var(--mdc-ripple-pressed-state-layer-opacity,.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)}`
338
333
  /**
339
334
  * @license
340
335
  * Copyright 2018 Google LLC
341
336
  * SPDX-License-Identifier: Apache-2.0
342
- */;let Ce=class extends Se{};function Te(t,e,i){if(void 0!==e)
337
+ */;let yi=class extends vi{};function xi(t,e,i){if(void 0!==e)
343
338
  /**
344
339
  * @license
345
340
  * Copyright 2021 Google LLC
346
341
  * SPDX-License-Identifier: Apache-2.0
347
342
  */
348
- 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 a="";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(""===a){const t=r.getPropertyOptions(e);a="string"==typeof t.attribute?t.attribute:e}this.hasAttribute(a)&&this.removeAttribute(a),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")}
343
+ 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 n="";if(!o.set)throw new Error(`@ariaProperty requires a setter for ${e}`);if(t.dispatchWizEvent)return i;const a={configurable:!0,enumerable:!0,set(t){if(""===n){const t=r.getPropertyOptions(e);n="string"==typeof t.attribute?t.attribute:e}this.hasAttribute(n)&&this.removeAttribute(n),o.set.call(this,t)}};return o.get&&(a.get=function(){return o.get.call(this)}),a}(t,e,i);throw new Error("@ariaProperty only supports TypeScript Decorators")}
349
344
  /**
350
345
  * @license
351
346
  * Copyright 2018 Google LLC
352
347
  * SPDX-License-Identifier: Apache-2.0
353
- */var Ee,Ae;Ce.styles=[Oe],Ce=he([it("mwc-ripple")],Ce);const Fe=null!==(Ae=null===(Ee=window.ShadyDOM)||void 0===Ee?void 0:Ee.inUse)&&void 0!==Ae&&Ae;class je extends me{constructor(){super(...arguments),this.disabled=!1,this.containingForm=null,this.formDataListener=t=>{this.disabled||this.setFormData(t.formData)}}findFormElement(){if(!this.shadowRoot||Fe)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))}))}}je.shadowRootOptions={mode:"open",delegatesFocus:!0},he([ot({type:Boolean})],je.prototype,"disabled",void 0);
348
+ */var ki,wi;yi.styles=[gi],yi=ii([rt("mwc-ripple")],yi);const $i=null!==(wi=null===(ki=window.ShadyDOM)||void 0===ki?void 0:ki.inUse)&&void 0!==wi&&wi;class _i extends ai{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))}))}}_i.shadowRootOptions={mode:"open",delegatesFocus:!0},ii([nt({type:Boolean})],_i.prototype,"disabled",void 0);
354
349
  /**
355
350
  * @license
356
351
  * Copyright 2020 Google LLC
357
352
  * SPDX-License-Identifier: Apache-2.0
358
353
  */
359
- class Be{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()}))}}}
354
+ 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()}))}}}
360
355
  /**
361
356
  * @license
362
357
  * Copyright 2018 Google LLC
363
358
  * SPDX-License-Identifier: BSD-3-Clause
364
- */const Re=t=>null!=t?t:L
359
+ */const Oi=t=>null!=t?t:M
365
360
  /**
366
361
  * @license
367
362
  * Copyright 2019 Google LLC
368
363
  * SPDX-License-Identifier: Apache-2.0
369
- */;class Le extends je{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 Be((()=>(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 B`<mwc-ripple .disabled="${this.disabled}" 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 B`<div class="mdc-checkbox mdc-checkbox--upgraded ${zt(e)}"><input type="checkbox" class="mdc-checkbox__native-control" name="${Re(this.name)}" aria-checked="${Re(i)}" aria-label="${Re(this.ariaLabel)}" aria-labelledby="${Re(this.ariaLabelledBy)}" aria-describedby="${Re(this.ariaDescribedBy)}" data-indeterminate="${this.indeterminate?"true":"false"}" ?disabled="${this.disabled}" .indeterminate="${this.indeterminate}" .checked="${this.checked}" .value="${this.value}" @change="${this.handleChange}" @focus="${this.handleFocus}" @blur="${this.handleBlur}" @mousedown="${this.handleRippleMouseDown}" @mouseenter="${this.handleRippleMouseEnter}" @mouseleave="${this.handleRippleMouseLeave}" @touchstart="${this.handleRippleTouchStart}" @touchend="${this.handleRippleDeactivate}" @touchcancel="${this.handleRippleDeactivate}"><div class="mdc-checkbox__background" @animationend="${this.resetAnimationClass}"><svg class="mdc-checkbox__checkmark" viewBox="0 0 24 24"><path class="mdc-checkbox__checkmark-path" fill="none" d="M1.73,12.91 8.1,19.28 22.79,4.59"></path></svg><div class="mdc-checkbox__mixedmark"></div></div>${this.renderRipple()}</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}}he([st(".mdc-checkbox")],Le.prototype,"mdcRoot",void 0),he([st("input")],Le.prototype,"formElement",void 0),he([ot({type:Boolean,reflect:!0})],Le.prototype,"checked",void 0),he([ot({type:Boolean})],Le.prototype,"indeterminate",void 0),he([ot({type:Boolean,reflect:!0})],Le.prototype,"disabled",void 0),he([ot({type:String,reflect:!0})],Le.prototype,"name",void 0),he([ot({type:String})],Le.prototype,"value",void 0),he([Te,ot({type:String,attribute:"aria-label"})],Le.prototype,"ariaLabel",void 0),he([Te,ot({type:String,attribute:"aria-labelledby"})],Le.prototype,"ariaLabelledBy",void 0),he([Te,ot({type:String,attribute:"aria-describedby"})],Le.prototype,"ariaDescribedBy",void 0),he([ot({type:Boolean})],Le.prototype,"reducedTouchTarget",void 0),he([at()],Le.prototype,"animationClass",void 0),he([at()],Le.prototype,"shouldRenderRipple",void 0),he([at()],Le.prototype,"focused",void 0),he([lt("mwc-ripple")],Le.prototype,"ripple",void 0),he([ct({passive:!0})],Le.prototype,"handleRippleTouchStart",null);
364
+ */;class zi extends _i{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 N`<mwc-ripple .disabled="${this.disabled}" 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 N`<div class="mdc-checkbox mdc-checkbox--upgraded ${Ot(e)}"><input type="checkbox" class="mdc-checkbox__native-control" name="${Oi(this.name)}" aria-checked="${Oi(i)}" aria-label="${Oi(this.ariaLabel)}" aria-labelledby="${Oi(this.ariaLabelledBy)}" aria-describedby="${Oi(this.ariaDescribedBy)}" data-indeterminate="${this.indeterminate?"true":"false"}" ?disabled="${this.disabled}" .indeterminate="${this.indeterminate}" .checked="${this.checked}" .value="${this.value}" @change="${this.handleChange}" @focus="${this.handleFocus}" @blur="${this.handleBlur}" @mousedown="${this.handleRippleMouseDown}" @mouseenter="${this.handleRippleMouseEnter}" @mouseleave="${this.handleRippleMouseLeave}" @touchstart="${this.handleRippleTouchStart}" @touchend="${this.handleRippleDeactivate}" @touchcancel="${this.handleRippleDeactivate}"><div class="mdc-checkbox__background" @animationend="${this.resetAnimationClass}"><svg class="mdc-checkbox__checkmark" viewBox="0 0 24 24"><path class="mdc-checkbox__checkmark-path" fill="none" d="M1.73,12.91 8.1,19.28 22.79,4.59"></path></svg><div class="mdc-checkbox__mixedmark"></div></div>${this.renderRipple()}</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([lt(".mdc-checkbox")],zi.prototype,"mdcRoot",void 0),ii([lt("input")],zi.prototype,"formElement",void 0),ii([nt({type:Boolean,reflect:!0})],zi.prototype,"checked",void 0),ii([nt({type:Boolean})],zi.prototype,"indeterminate",void 0),ii([nt({type:Boolean,reflect:!0})],zi.prototype,"disabled",void 0),ii([nt({type:String,reflect:!0})],zi.prototype,"name",void 0),ii([nt({type:String})],zi.prototype,"value",void 0),ii([xi,nt({type:String,attribute:"aria-label"})],zi.prototype,"ariaLabel",void 0),ii([xi,nt({type:String,attribute:"aria-labelledby"})],zi.prototype,"ariaLabelledBy",void 0),ii([xi,nt({type:String,attribute:"aria-describedby"})],zi.prototype,"ariaDescribedBy",void 0),ii([nt({type:Boolean})],zi.prototype,"reducedTouchTarget",void 0),ii([at()],zi.prototype,"animationClass",void 0),ii([at()],zi.prototype,"shouldRenderRipple",void 0),ii([at()],zi.prototype,"focused",void 0),ii([dt("mwc-ripple")],zi.prototype,"ripple",void 0),ii([st({passive:!0})],zi.prototype,"handleRippleTouchStart",null);
370
365
  /**
371
366
  * @license
372
367
  * Copyright 2021 Google LLC
373
368
  * SPDX-LIcense-Identifier: Apache-2.0
374
369
  */
375
- const Me=a`.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::after,.mdc-checkbox .mdc-checkbox__ripple::before{background-color:#000;background-color:var(--mdc-ripple-color,#000)}.mdc-checkbox.mdc-ripple-surface--hover .mdc-checkbox__ripple::before,.mdc-checkbox:hover .mdc-checkbox__ripple::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity,.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:.12;opacity:var(--mdc-ripple-focus-opacity,.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:.12;opacity:var(--mdc-ripple-press-opacity,.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::after,.mdc-checkbox.mdc-checkbox--selected .mdc-checkbox__ripple::before{background-color:#018786;background-color:var(--mdc-ripple-color,var(--mdc-theme-secondary,#018786))}.mdc-checkbox.mdc-checkbox--selected.mdc-ripple-surface--hover .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-checkbox--selected:hover .mdc-checkbox__ripple::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity,.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:.12;opacity:var(--mdc-ripple-focus-opacity,.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:.12;opacity:var(--mdc-ripple-press-opacity,.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::after,.mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--selected .mdc-checkbox__ripple::before{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,.54);border-color:var(--mdc-checkbox-unchecked-color,rgba(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,.54);border-color:var(--mdc-checkbox-unchecked-color,rgba(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,.54);border-color:var(--mdc-checkbox-unchecked-color,rgba(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,.38);border-color:var(--mdc-checkbox-disabled-color,rgba(0,0,0,.38));background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background{border-color:transparent;background-color:rgba(0,0,0,.38);background-color:var(--mdc-checkbox-disabled-color,rgba(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,.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(.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,.2,1);transform:rotate(0);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(.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(0);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(.14,0,0,1);transform:rotate(0);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}100%,32.8%{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[data-indeterminate=true][disabled]~.mdc-checkbox__background,.mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox__native-control[disabled]:indeterminate~.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 0s cubic-bezier(.4,0,.6,1),border-color 90ms 0s cubic-bezier(.4,0,.6,1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0s cubic-bezier(.4,0,.6,1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0s cubic-bezier(.4,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(0);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0s cubic-bezier(.4,0,.6,1),transform 90ms 0s cubic-bezier(.4,0,.6,1)}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .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 .5s linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark .5s linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark .3s 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 0s cubic-bezier(0,0,.2,1),background-color 90ms 0s cubic-bezier(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 0s cubic-bezier(0,0,.2,1),transform 180ms 0s cubic-bezier(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 0s cubic-bezier(.4,0,.6,1),transform 90ms 0s cubic-bezier(.4,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(0);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:0;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}`
370
+ const Ci=a`.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::after,.mdc-checkbox .mdc-checkbox__ripple::before{background-color:#000;background-color:var(--mdc-ripple-color,#000)}.mdc-checkbox.mdc-ripple-surface--hover .mdc-checkbox__ripple::before,.mdc-checkbox:hover .mdc-checkbox__ripple::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity,.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:.12;opacity:var(--mdc-ripple-focus-opacity,.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:.12;opacity:var(--mdc-ripple-press-opacity,.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::after,.mdc-checkbox.mdc-checkbox--selected .mdc-checkbox__ripple::before{background-color:#018786;background-color:var(--mdc-ripple-color,var(--mdc-theme-secondary,#018786))}.mdc-checkbox.mdc-checkbox--selected.mdc-ripple-surface--hover .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-checkbox--selected:hover .mdc-checkbox__ripple::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity,.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:.12;opacity:var(--mdc-ripple-focus-opacity,.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:.12;opacity:var(--mdc-ripple-press-opacity,.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::after,.mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--selected .mdc-checkbox__ripple::before{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,.54);border-color:var(--mdc-checkbox-unchecked-color,rgba(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,.54);border-color:var(--mdc-checkbox-unchecked-color,rgba(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,.54);border-color:var(--mdc-checkbox-unchecked-color,rgba(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,.38);border-color:var(--mdc-checkbox-disabled-color,rgba(0,0,0,.38));background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background{border-color:transparent;background-color:rgba(0,0,0,.38);background-color:var(--mdc-checkbox-disabled-color,rgba(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,.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(.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,.2,1);transform:rotate(0);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(.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(0);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(.14,0,0,1);transform:rotate(0);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}100%,32.8%{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[data-indeterminate=true][disabled]~.mdc-checkbox__background,.mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox__native-control[disabled]:indeterminate~.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 0s cubic-bezier(.4,0,.6,1),border-color 90ms 0s cubic-bezier(.4,0,.6,1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0s cubic-bezier(.4,0,.6,1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0s cubic-bezier(.4,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(0);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0s cubic-bezier(.4,0,.6,1),transform 90ms 0s cubic-bezier(.4,0,.6,1)}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .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 .5s linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark .5s linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark .3s 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 0s cubic-bezier(0,0,.2,1),background-color 90ms 0s cubic-bezier(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 0s cubic-bezier(0,0,.2,1),transform 180ms 0s cubic-bezier(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 0s cubic-bezier(.4,0,.6,1),transform 90ms 0s cubic-bezier(.4,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(0);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:0;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}`
376
371
  /**
377
372
  * @license
378
373
  * Copyright 2018 Google LLC
379
374
  * SPDX-License-Identifier: Apache-2.0
380
- */;let Ie=class extends Le{};Ie.styles=[Me],Ie=he([it("mwc-checkbox")],Ie);var De=function(t,e,i,r){for(var o,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,c=t.length-1;c>=0;c--)(o=t[c])&&(n=(a<3?o(n):a>3?o(e,i,n):o(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};let He=class extends Tt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1}getStyles(){return a`:host{display:contents;--mdc-ripple-color:var(--ft-ripple-color, var(--ft-color-content, #000));--mdc-ripple-press-opacity:var(--ft-opacity-color-content-on-surface-pressed, 0.1);--mdc-ripple-hover-opacity:var(--ft-opacity-color-content-on-surface-hover, 0.04);--mdc-ripple-focus-opacity:var(--ft-opacity-color-content-on-surface-focused, 0.12);--mdc-ripple-selected-opacity:var(--ft-opacity-color-content-on-surface-selected, 0.08);--mdc-ripple-activated-opacity:var(--ft-opacity-color-content-on-surface-dragged, 0.08)}mwc-ripple.ft-ripple--secondary{--mdc-ripple-color:var(--ft-ripple-color, var(--ft-color-secondary, #FFCC80))}mwc-ripple.ft-ripple--primary{--mdc-ripple-color:var(--ft-ripple-color, var(--ft-color-primary, #2196F3))}`}getTemplate(){return B`<mwc-ripple class="${this.primary?"ft-ripple--primary":this.secondary?"ft-ripple--secondary":""}" ?unbounded="${this.unbounded}" ?activated="${this.activated}" ?selected="${this.selected}" ?disabled="${this.disabled}"></mwc-ripple>`}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 Be((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"),a=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",a),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",a),e.removeEventListener("focus",t.startFocus),e.removeEventListener("blur",t.endFocus)},this.rippleHandlers=t}}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};He.elementDefinitions={"mwc-ripple":Ce},De([ot({type:Boolean})],He.prototype,"primary",void 0),De([ot({type:Boolean})],He.prototype,"secondary",void 0),De([ot({type:Boolean})],He.prototype,"unbounded",void 0),De([ot({type:Boolean})],He.prototype,"activated",void 0),De([ot({type:Boolean})],He.prototype,"selected",void 0),De([ot({type:Boolean})],He.prototype,"disabled",void 0),De([st("mwc-ripple")],He.prototype,"mwcRipple",void 0),He=De([Ot("ft-ripple")],He);
375
+ */;let Ei=class extends zi{};Ei.styles=[Ci],Ei=ii([rt("mwc-checkbox")],Ei);var Ri=function(t,e,i,r){for(var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,c=t.length-1;c>=0;c--)(o=t[c])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const Bi={color:Rt.extend("--ft-ripple-color",Ft.colorContent),primaryColor:Rt.extend("--ft-ripple-primary-color",Rt.extend("--ft-ripple-color",Ft.colorPrimary)),secondaryColor:Rt.extend("--ft-ripple-secondary-color",Rt.extend("--ft-ripple-color",Ft.colorSecondary)),opacityContentOnSurfacePressed:Rt.external(Ft.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Rt.external(Ft.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Rt.external(Ft.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Rt.external(Ft.opacityContentOnSurfaceSelected,"Design system"),opacityContentOnSurfaceDragged:Rt.external(Ft.opacityContentOnSurfaceDragged,"Design system")};let Fi=class extends Tt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1}getStyles(){return a`:host{display:contents;--mdc-ripple-color:${Bi.color}--mdc-ripple-press-opacity:${Bi.opacityContentOnSurfacePressed}--mdc-ripple-hover-opacity:${Bi.opacityContentOnSurfaceHover}--mdc-ripple-focus-opacity:${Bi.opacityContentOnSurfaceFocused}--mdc-ripple-selected-opacity:${Bi.opacityContentOnSurfaceSelected}--mdc-ripple-activated-opacity:${Bi.opacityContentOnSurfaceDragged}}mwc-ripple.ft-ripple--secondary{--mdc-ripple-color:${Bi.secondaryColor}}mwc-ripple.ft-ripple--primary{--mdc-ripple-color:${Bi.primaryColor}}`}getTemplate(){return N`<mwc-ripple class="${this.primary?"ft-ripple--primary":this.secondary?"ft-ripple--secondary":""}" ?unbounded="${this.unbounded}" ?activated="${this.activated}" ?selected="${this.selected}" ?disabled="${this.disabled}"></mwc-ripple>`}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"),n=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",n),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",n),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":yi},Ri([nt({type:Boolean})],Fi.prototype,"primary",void 0),Ri([nt({type:Boolean})],Fi.prototype,"secondary",void 0),Ri([nt({type:Boolean})],Fi.prototype,"unbounded",void 0),Ri([nt({type:Boolean})],Fi.prototype,"activated",void 0),Ri([nt({type:Boolean})],Fi.prototype,"selected",void 0),Ri([nt({type:Boolean})],Fi.prototype,"disabled",void 0),Ri([lt("mwc-ripple")],Fi.prototype,"mwcRipple",void 0),Fi=Ri([Ct("ft-ripple")],Fi);
381
376
  /**
382
377
  * @license
383
378
  * Copyright 2021 Google LLC
384
379
  * SPDX-LIcense-Identifier: Apache-2.0
385
380
  */
386
- const Ne=a`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:400;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"}`
381
+ const Ti=a`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:400;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"}`
387
382
  /**
388
383
  * @license
389
384
  * Copyright 2018 Google LLC
390
385
  * SPDX-License-Identifier: Apache-2.0
391
- */;let Pe=class extends tt{render(){return B`<span><slot></slot></span>`}};Pe.styles=[Ne],Pe=he([it("mwc-icon")],Pe);var Ue=function(t,e,i,r){for(var o,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,c=t.length-1;c>=0;c--)(o=t[c])&&(n=(a<3?o(n):a>3?o(e,i,n):o(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};let Ve=class extends Tt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new St,this.revealDebouncer=new St}getStyles(){return a`.ft-tooltip--container{display:block;position:relative}.ft-tooltip--inline{display:inline-block;max-width:100%}.ft-tooltip{position:absolute;box-sizing:border-box;overflow:hidden;width:max-content;max-width:150px;text-align:center;padding:var(--ft-tooltip-distance,4px);z-index:var(--ft-tooltip-z-index,1)}.ft-tooltip--content{padding:4px 8px;border-radius:var(--ft-border-radius-S,4px);background-color:var(--ft-tooltip-background-color,#666);color:var(--ft-tooltip-color,#fff);top:-500px;left:-500px;position:relative;word-break:break-word}`}getTemplate(){return B`<div part="container" class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}" @mouseenter="${this.onHover}" @mouseleave="${this.onOut}" @focusin="${this.onHover}" @focusout="${this.onOut}" @touchstart="${this.onTouch}"><div part="tooltip" class="ft-tooltip ft-tooltip--${this.position}" ?hidden="${!this.visible}"><div part="tooltip-content" class="ft-tooltip--content"><ft-typography variant="caption">${this.text}</ft-typography></div></div><slot></slot></div>`}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())}};Ve.elementDefinitions={"ft-typography":re},Ue([ot()],Ve.prototype,"text",void 0),Ue([ot({type:Boolean})],Ve.prototype,"manual",void 0),Ue([ot({type:Boolean})],Ve.prototype,"inline",void 0),Ue([ot({type:Number})],Ve.prototype,"delay",void 0),Ue([ot()],Ve.prototype,"position",void 0),Ue([pt("",!0)],Ve.prototype,"slotNodes",void 0),Ue([st(".ft-tooltip--container")],Ve.prototype,"container",void 0),Ue([st("slot")],Ve.prototype,"target",void 0),Ue([st(".ft-tooltip")],Ve.prototype,"tooltip",void 0),Ue([st(".ft-tooltip--content")],Ve.prototype,"tooltipContent",void 0),Ue([at()],Ve.prototype,"visible",void 0),Ve=Ue([Ot("ft-tooltip")],Ve);var qe=function(t,e,i,r){for(var o,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,c=t.length-1;c>=0;c--)(o=t[c])&&(n=(a<3?o(n):a>3?o(e,i,n):o(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};let Ge=class extends Tt{getStyles(){return a`:host{line-height:0}.ft-loader{display:inline-block;position:relative;width:var(--ft-loader-size,80px);height:var(--ft-loader-size,80px)}.ft-loader div{position:absolute;top:37.5%;width:25%;height:25%;border-radius:50%;background:var(--ft-loader-color,var(--ft-color-primary,#2196f3));animation-timing-function:cubic-bezier(0,1,1,0)}.ft-loader div:nth-child(1){left:2.5%;animation:appear .6s infinite}.ft-loader div:nth-child(2){left:2.5%;animation:move .6s infinite}.ft-loader div:nth-child(3){left:37.5%;animation:move .6s infinite}.ft-loader div:nth-child(4){left:72.5%;animation:disappear .6s infinite}@keyframes appear{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes disappear{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes move{0%{transform:translate(0,0)}100%{transform:translate(calc(.35 * var(--ft-loader-size,80px)),0)}}`}getTemplate(){return B`<div class="ft-loader"><div></div><div></div><div></div><div></div></div>`}};Ge=qe([Ot("ft-loader")],Ge);var Ke=function(t,e,i,r){for(var o,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,c=t.length-1;c>=0;c--)(o=t[c])&&(n=(a<3?o(n):a>3?o(e,i,n):o(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};let We=class extends Tt{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[Et,a`:host{display:inline-block;max-width:100%}button{box-shadow:0 0 0 transparent;border:0 solid transparent;text-shadow:0 0 0 transparent}button:hover{box-shadow:0 0 0 transparent;border:0 solid transparent;text-shadow:0 0 0 transparent}button:active{outline:0;border:none}button:focus{outline:0}.ft-button{position:relative;display:flex;justify-content:center;align-items:center;width:100%;overflow:hidden;box-sizing:border-box;border:none;--ft-button-internal-font-size:var(--ft-typography-button-font-size, 14px);--ft-button-internal-line-height:var(--ft-typography-button-line-height, calc(var(--ft-button-internal-font-size) + 2px));--ft-button-internal-color:var(--ft-button-color, var(--ft-color-primary, #2196F3));--mdc-icon-size:var(--ft-button-icon-size, 24px);--ft-button-internal-vertical-padding:6px;--ft-button-internal-horizontal-padding:8px;--ft-ripple-color:var(--ft-button-ripple-color, var(--ft-button-internal-color));--ft-button-internal-content-height:max(var(--ft-button-internal-line-height), var(--mdc-icon-size));border-radius:var(--ft-button-border-radius,var(--ft-border-radius-L,12px));padding:var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);background-color:var(--ft-button-background-color,var(--ft-color-surface,#fff));color:var(--ft-button-internal-color);-webkit-mask-image:radial-gradient(white,#000)}.ft-button:not([disabled]):hover{cursor:pointer}.ft-button--dense{--ft-button-internal-vertical-padding:2px;--ft-button-internal-horizontal-padding:4px;border-radius:var(--ft-button-border-radius,var(--ft-border-radius-M,8px))}.ft-button--round{border-radius:calc(var(--ft-button-internal-content-height)/ 2 + var(--ft-button-internal-vertical-padding))}.ft-button[disabled]{filter:grayscale(1);opacity:var(--ft-color-opacity-disabled,.38)}.ft-button.ft-button--primary{background-color:var(--ft-button-background-color,var(--ft-color-primary,#2196f3));--ft-button-internal-color:var(--ft-button-color, var(--ft-color-on-primary, #FFFFFF))}.ft-button.ft-button--outlined{border:1px solid var(--ft-button-internal-color);padding:calc(var(--ft-button-internal-vertical-padding) - 1px) calc(var(--ft-button-internal-horizontal-padding) - 1px)}.ft-button:focus{outline:0}.ft-button--label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:block;margin:0 var(--ft-button-internal-horizontal-padding);--ft-typography-button-line-height:var(--ft-button-internal-content-height)}.ft-button--safari-fix .ft-button--label{margin-right:0}.ft-button--safari-fix .ft-button--label:after{content:"\\0000a0";display:inline-block;width:0}.ft-button--label[hidden]{display:none}mwc-icon{flex-shrink:0;width:var(--mdc-icon-size)}.ft-button--label[hidden]+mwc-icon{margin:0 calc(var(--ft-button-internal-horizontal-padding) * -1);padding:0 var(--ft-button-internal-vertical-padding)}.ft-button:not(.ft-button--trailing-icon) ft-loader,.ft-button:not(.ft-button--trailing-icon) mwc-icon{order:-1}ft-loader{--ft-loader-size:var(--ft-button-icon-size, 24px);--ft-loader-color:var(--ft-button-internal-color)}`]}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":Mt,"ft-no-text-select":!0};return this.addTooltip(B`<button class="${zt(t)}" aria-label="${this.getLabel()}" ?disabled="${this.isDisabled()}"><ft-ripple ?disabled="${this.isDisabled()}"></ft-ripple><ft-typography variant="button" class="ft-button--label" ?hidden="${!this.hasTextContent()}"><slot @slotchange="${this.onSlotchange}"></slot></ft-typography>${this.resolveIcon()}</button>`)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:B`<ft-tooltip text="${this.getLabel()}" position="${this.tooltipPosition}">${t}</ft-tooltip>`}resolveIcon(){return this.loading?B`<ft-loader></ft-loader>`:this.icon?B`<mwc-icon>${this.icon}</mwc-icon>`:L}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}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:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};We.elementDefinitions={"ft-ripple":He,"ft-tooltip":Ve,"ft-typography":re,"mwc-icon":Pe,"ft-loader":Ge},Ke([ot({type:Boolean})],We.prototype,"primary",void 0),Ke([ot({type:Boolean})],We.prototype,"outlined",void 0),Ke([ot({type:Boolean})],We.prototype,"disabled",void 0),Ke([ot({type:Boolean})],We.prototype,"dense",void 0),Ke([ot({type:Boolean})],We.prototype,"round",void 0),Ke([ot({type:String})],We.prototype,"label",void 0),Ke([ot({type:String})],We.prototype,"icon",void 0),Ke([ot({type:Boolean})],We.prototype,"trailingIcon",void 0),Ke([ot({type:Boolean})],We.prototype,"loading",void 0),Ke([ot({type:String})],We.prototype,"tooltipPosition",void 0),Ke([st(".ft-button")],We.prototype,"button",void 0),Ke([st(".ft-button--label slot")],We.prototype,"slottedContent",void 0),We=Ke([Ot("ft-button")],We);
386
+ */;let Ai=class extends et{render(){return N`<span><slot></slot></span>`}};Ai.styles=[Ti],Ai=ii([rt("mwc-icon")],Ai);var Ni=function(t,e,i,r){for(var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,c=t.length-1;c>=0;c--)(o=t[c])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const ji=Rt.create("--ft-tooltip-distance","SIZE","4px"),Mi=Rt.create("--ft-tooltip-color","COLOR","#FFFFFF"),Li=Rt.create("--ft-tooltip-background-color","COLOR","#666666"),Di=Rt.create("--ft-tooltip-z-index","NUMBER","1"),Ii=Rt.external(Ft.borderRadiusS,"Design system");let Ui=class extends Tt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new zt,this.revealDebouncer=new zt}getStyles(){return a`.ft-tooltip--container{display:block;position:relative}.ft-tooltip--inline{display:inline-block;max-width:100%}.ft-tooltip{position:absolute;box-sizing:border-box;overflow:hidden;width:max-content;max-width:150px;text-align:center;padding:${ji};z-index:${Di}}.ft-tooltip--content{padding:4px 8px;border-radius:${Ii};background-color:${Li};color:${Mi};top:-500px;left:-500px;position:relative;word-break:break-word}`}getTemplate(){return N`<div part="container" class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}" @mouseenter="${this.onHover}" @mouseleave="${this.onOut}" @focusin="${this.onHover}" @focusout="${this.onOut}" @touchstart="${this.onTouch}"><div part="tooltip" class="ft-tooltip ft-tooltip--${this.position}" ?hidden="${!this.visible}"><div part="tooltip-content" class="ft-tooltip--content"><ft-typography variant="caption">${this.text}</ft-typography></div></div><slot></slot></div>`}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())}};Ui.elementDefinitions={"ft-typography":qe},Ni([nt()],Ui.prototype,"text",void 0),Ni([nt({type:Boolean})],Ui.prototype,"manual",void 0),Ni([nt({type:Boolean})],Ui.prototype,"inline",void 0),Ni([nt({type:Number})],Ui.prototype,"delay",void 0),Ni([nt()],Ui.prototype,"position",void 0),Ni([ft("",!0)],Ui.prototype,"slotNodes",void 0),Ni([lt(".ft-tooltip--container")],Ui.prototype,"container",void 0),Ni([lt("slot")],Ui.prototype,"target",void 0),Ni([lt(".ft-tooltip")],Ui.prototype,"tooltip",void 0),Ni([lt(".ft-tooltip--content")],Ui.prototype,"tooltipContent",void 0),Ni([at()],Ui.prototype,"visible",void 0),Ui=Ni([Ct("ft-tooltip")],Ui);var Pi=function(t,e,i,r){for(var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,c=t.length-1;c>=0;c--)(o=t[c])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const Hi={color:Rt.extend("--ft-loader-color",Ft.colorPrimary),size:Rt.create("--ft-loader-size","SIZE","80px")};let Vi=class extends Tt{getStyles(){return a`:host{line-height:0}.ft-loader{display:inline-block;position:relative;width:${Hi.size};height:${Hi.size}}.ft-loader div{position:absolute;top:37.5%;width:25%;height:25%;border-radius:50%;background:${Hi.color};animation-timing-function:cubic-bezier(0,1,1,0)}.ft-loader div:nth-child(1){left:2.5%;animation:appear .6s infinite}.ft-loader div:nth-child(2){left:2.5%;animation:move .6s infinite}.ft-loader div:nth-child(3){left:37.5%;animation:move .6s infinite}.ft-loader div:nth-child(4){left:72.5%;animation:disappear .6s infinite}@keyframes appear{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes disappear{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes move{0%{transform:translate(0,0)}100%{transform:translate(calc(.35 * ${Hi.size}),0)}}`}getTemplate(){return N`<div class="ft-loader"><div></div><div></div><div></div><div></div></div>`}};Vi=Pi([Ct("ft-loader")],Vi);var Zi=function(t,e,i,r){for(var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,c=t.length-1;c>=0;c--)(o=t[c])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const Wi=Rt.extend("--ft-button-color",Ft.colorPrimary),Ki={backgroundColor:Rt.extend("--ft-button-background-color",Ft.colorSurface),borderRadius:Rt.extend("--ft-button-border-radius",Ft.borderRadiusL),color:Wi,fontSize:Rt.extend("--ft-button-font-size",Me.fontSize),iconSize:Rt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:Rt.extend("--ft-button-ripple-color",Wi),opacityDisabled:Rt.external(Ft.colorOpacityDisabled,"Design system")},qi=Rt.extend("--ft-button-primary-color",Rt.extend("--ft-button-color",Ft.colorOnPrimary)),Gi=Rt.extend("--ft-button-primary-background-color",Rt.extend("--ft-button-background-color",Ft.colorPrimary)),Xi=qi,Ji=(Rt.extend("--ft-button-primary-ripple-color",qi),Rt.extend("--ft-button-dense-border-radius",Rt.extend("--ft-button-border-radius",Ft.borderRadiusM)));let Yi=class extends Tt{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[At,a`:host{display:inline-block;max-width:100%}button{box-shadow:0 0 0 transparent;border:0 solid transparent;text-shadow:0 0 0 transparent}button:hover{box-shadow:0 0 0 transparent;border:0 solid transparent;text-shadow:0 0 0 transparent}button:active{outline:0;border:none}button:focus{outline:0}.ft-button{position:relative;display:flex;justify-content:center;align-items:center;width:100%;overflow:hidden;box-sizing:border-box;border:none;--ft-button-internal-font-size:${Ki.fontSize}--ft-button-internal-line-height:calc(var(--ft-button-internal-font-size) + 2px);--ft-button-internal-color:${Ki.color}--mdc-icon-size:${Ki.iconSize}--ft-button-internal-vertical-padding:6px;--ft-button-internal-horizontal-padding:8px;${Bt(Bi.color,Ki.rippleColor)}--ft-button-internal-content-height:max(var(--ft-button-internal-line-height), var(--mdc-icon-size));border-radius:${Ki.borderRadius};padding:var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);background-color:${Ki.backgroundColor};color:var(--ft-button-internal-color);-webkit-mask-image:radial-gradient(white,#000)}.ft-button:not([disabled]):hover{cursor:pointer}.ft-button--dense{--ft-button-internal-vertical-padding:2px;--ft-button-internal-horizontal-padding:4px;border-radius:${Ji}}.ft-button--round{border-radius:calc(var(--ft-button-internal-content-height)/ 2 + var(--ft-button-internal-vertical-padding))}.ft-button[disabled]{filter:grayscale(1);opacity:${Ki.opacityDisabled}}.ft-button.ft-button--primary{background-color:${Gi};--ft-button-internal-color:${Xi}}.ft-button.ft-button--outlined{border:1px solid var(--ft-button-internal-color);padding:calc(var(--ft-button-internal-vertical-padding) - 1px) calc(var(--ft-button-internal-horizontal-padding) - 1px)}.ft-button:focus{outline:0}.ft-button--label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:block;margin:0 var(--ft-button-internal-horizontal-padding);${Bt(Me.fontSize,"var(--ft-button-internal-font-size)")}${Bt(Me.lineHeight,"var(--ft-button-internal-content-height)")}}.ft-button--safari-fix .ft-button--label{margin-right:0}.ft-button--safari-fix .ft-button--label:after{content:"\\0000a0";display:inline-block;width:0}.ft-button--label[hidden]{display:none}mwc-icon{flex-shrink:0;width:var(--mdc-icon-size)}.ft-button--label[hidden]+mwc-icon{margin:0 calc(var(--ft-button-internal-horizontal-padding) * -1);padding:0 var(--ft-button-internal-vertical-padding)}.ft-button:not(.ft-button--trailing-icon) ft-loader,.ft-button:not(.ft-button--trailing-icon) mwc-icon{order:-1}ft-loader{${Bt(Hi.size,Ki.iconSize)}${Bt(Hi.color,"var(--ft-button-internal-color)")}}`]}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":Dt,"ft-no-text-select":!0};return this.addTooltip(N`<button class="${Ot(t)}" aria-label="${this.getLabel()}" ?disabled="${this.isDisabled()}"><ft-ripple ?disabled="${this.isDisabled()}"></ft-ripple><ft-typography variant="button" class="ft-button--label" ?hidden="${!this.hasTextContent()}"><slot @slotchange="${this.onSlotchange}"></slot></ft-typography>${this.resolveIcon()}</button>`)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:N`<ft-tooltip text="${this.getLabel()}" position="${this.tooltipPosition}">${t}</ft-tooltip>`}resolveIcon(){return this.loading?N`<ft-loader></ft-loader>`:this.icon?N`<mwc-icon>${this.icon}</mwc-icon>`:M}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}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:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};Yi.elementDefinitions={"ft-ripple":Fi,"ft-tooltip":Ui,"ft-typography":qe,"mwc-icon":Ai,"ft-loader":Vi},Zi([nt({type:Boolean})],Yi.prototype,"primary",void 0),Zi([nt({type:Boolean})],Yi.prototype,"outlined",void 0),Zi([nt({type:Boolean})],Yi.prototype,"disabled",void 0),Zi([nt({type:Boolean})],Yi.prototype,"dense",void 0),Zi([nt({type:Boolean})],Yi.prototype,"round",void 0),Zi([nt({type:String})],Yi.prototype,"label",void 0),Zi([nt({type:String})],Yi.prototype,"icon",void 0),Zi([nt({type:Boolean})],Yi.prototype,"trailingIcon",void 0),Zi([nt({type:Boolean})],Yi.prototype,"loading",void 0),Zi([nt({type:String})],Yi.prototype,"tooltipPosition",void 0),Zi([lt(".ft-button")],Yi.prototype,"button",void 0),Zi([lt(".ft-button--label slot")],Yi.prototype,"slottedContent",void 0),Yi=Zi([Ct("ft-button")],Yi);
392
387
  /**
393
388
  * @license
394
389
  * Copyright 2017 Google Inc.
@@ -411,35 +406,35 @@ const Ne=a`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:
411
406
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
412
407
  * THE SOFTWARE.
413
408
  */
414
- var Xe={ROOT:"mdc-form-field"},Je={LABEL_SELECTOR:".mdc-form-field > label"},Ze=function(t){function e(i){var r=t.call(this,de(de({},e.defaultAdapter),i))||this;return r.click=function(){r.handleClick()},r}return le(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return Xe},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return Je},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}(be);
409
+ var Qi={ROOT:"mdc-form-field"},tr={LABEL_SELECTOR:".mdc-form-field > label"},er=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 Qi},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return tr},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}(ci);
415
410
  /**
416
411
  * @license
417
412
  * Copyright 2018 Google LLC
418
413
  * SPDX-License-Identifier: Apache-2.0
419
414
  */
420
- const Ye=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)}
415
+ const ir=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)}
421
416
  /**
422
417
  * @license
423
418
  * Copyright 2018 Google LLC
424
419
  * SPDX-License-Identifier: Apache-2.0
425
- */;class Qe extends me{constructor(){super(...arguments),this.alignEnd=!1,this.spaceBetween=!1,this.nowrap=!1,this.label="",this.mdcFoundationClass=Ze}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 je){const e=await t.ripple;e&&e.startPress()}},deactivateInputRipple:async()=>{const t=this.input;if(t instanceof je){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 B`<div class="mdc-form-field ${zt(t)}"><slot></slot><label class="mdc-label" @click="${this._labelClick}">${this.label}</label></div>`}click(){this._labelClick()}_labelClick(){const t=this.input;t&&(t.focus(),t.click())}}he([ot({type:Boolean})],Qe.prototype,"alignEnd",void 0),he([ot({type:Boolean})],Qe.prototype,"spaceBetween",void 0),he([ot({type:Boolean})],Qe.prototype,"nowrap",void 0),he([ot({type:String}),Ye((async function(t){var e;null===(e=this.input)||void 0===e||e.setAttribute("aria-label",t)}))],Qe.prototype,"label",void 0),he([st(".mdc-form-field")],Qe.prototype,"mdcRoot",void 0),he([pt("",!0,"*")],Qe.prototype,"slottedInputs",void 0),he([st("label")],Qe.prototype,"labelEl",void 0);
420
+ */;class rr extends ai{constructor(){super(...arguments),this.alignEnd=!1,this.spaceBetween=!1,this.nowrap=!1,this.label="",this.mdcFoundationClass=er}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 _i){const e=await t.ripple;e&&e.startPress()}},deactivateInputRipple:async()=>{const t=this.input;if(t instanceof _i){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 N`<div class="mdc-form-field ${Ot(t)}"><slot></slot><label class="mdc-label" @click="${this._labelClick}">${this.label}</label></div>`}click(){this._labelClick()}_labelClick(){const t=this.input;t&&(t.focus(),t.click())}}ii([nt({type:Boolean})],rr.prototype,"alignEnd",void 0),ii([nt({type:Boolean})],rr.prototype,"spaceBetween",void 0),ii([nt({type:Boolean})],rr.prototype,"nowrap",void 0),ii([nt({type:String}),ir((async function(t){var e;null===(e=this.input)||void 0===e||e.setAttribute("aria-label",t)}))],rr.prototype,"label",void 0),ii([lt(".mdc-form-field")],rr.prototype,"mdcRoot",void 0),ii([ft("",!0,"*")],rr.prototype,"slottedInputs",void 0),ii([lt("label")],rr.prototype,"labelEl",void 0);
426
421
  /**
427
422
  * @license
428
423
  * Copyright 2021 Google LLC
429
424
  * SPDX-LIcense-Identifier: Apache-2.0
430
425
  */
431
- const ti=a`.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:.875rem;font-size:var(--mdc-typography-body2-font-size,.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:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing,.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,.87);color:var(--mdc-theme-text-primary-on-background,rgba(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}.mdc-form-field>label[dir=rtl],[dir=rtl] .mdc-form-field>label{margin-left:auto;margin-right:0}.mdc-form-field>label[dir=rtl],[dir=rtl] .mdc-form-field>label{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}.mdc-form-field--align-end>label[dir=rtl],[dir=rtl] .mdc-form-field--align-end>label{margin-left:0;margin-right:auto}.mdc-form-field--align-end>label[dir=rtl],[dir=rtl] .mdc-form-field--align-end>label{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}.mdc-form-field--space-between>label[dir=rtl],[dir=rtl] .mdc-form-field--space-between>label{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:.875rem;font-size:var(--mdc-typography-body2-font-size,.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:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing,.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,.87);color:var(--mdc-theme-text-primary-on-background,rgba(0,0,0,.87))}::slotted(mwc-switch){margin-right:10px}::slotted(mwc-switch[dir=rtl]),[dir=rtl] ::slotted(mwc-switch){margin-left:10px}`
426
+ const or=a`.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:.875rem;font-size:var(--mdc-typography-body2-font-size,.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:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing,.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,.87);color:var(--mdc-theme-text-primary-on-background,rgba(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}.mdc-form-field>label[dir=rtl],[dir=rtl] .mdc-form-field>label{margin-left:auto;margin-right:0}.mdc-form-field>label[dir=rtl],[dir=rtl] .mdc-form-field>label{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}.mdc-form-field--align-end>label[dir=rtl],[dir=rtl] .mdc-form-field--align-end>label{margin-left:0;margin-right:auto}.mdc-form-field--align-end>label[dir=rtl],[dir=rtl] .mdc-form-field--align-end>label{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}.mdc-form-field--space-between>label[dir=rtl],[dir=rtl] .mdc-form-field--space-between>label{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:.875rem;font-size:var(--mdc-typography-body2-font-size,.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:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing,.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,.87);color:var(--mdc-theme-text-primary-on-background,rgba(0,0,0,.87))}::slotted(mwc-switch){margin-right:10px}::slotted(mwc-switch[dir=rtl]),[dir=rtl] ::slotted(mwc-switch){margin-left:10px}`
432
427
  /**
433
428
  * @license
434
429
  * Copyright 2018 Google LLC
435
430
  * SPDX-License-Identifier: Apache-2.0
436
- */;let ei=class extends Qe{};ei.styles=[ti],ei=he([it("mwc-formfield")],ei);
431
+ */;let nr=class extends rr{};nr.styles=[or],nr=ii([rt("mwc-formfield")],nr);
437
432
  /**
438
433
  * @license
439
434
  * Copyright 2020 Google LLC
440
435
  * SPDX-License-Identifier: Apache-2.0
441
436
  */
442
- const ii=Symbol("selection controller");class ri{constructor(){this.selected=null,this.ordered=null,this.set=new Set}}class oi{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[ii];return void 0===i&&(i=new oi(e),e[ii]=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 ri),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}}
437
+ const ar=Symbol("selection controller");class cr{constructor(){this.selected=null,this.ordered=null,this.set=new Set}}class sr{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 sr(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 cr),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}}
443
438
  /**
444
439
  * @license
445
440
  * Copyright 2016 Google Inc.
@@ -461,21 +456,509 @@ const ii=Symbol("selection controller");class ri{constructor(){this.selected=nul
461
456
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
462
457
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
463
458
  * THE SOFTWARE.
464
- */var ai={NATIVE_CONTROL_SELECTOR:".mdc-radio__native-control"},ni={DISABLED:"mdc-radio--disabled",ROOT:"mdc-radio"},ci=function(t){function e(i){return t.call(this,de(de({},e.defaultAdapter),i))||this}return le(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return ni},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return ai},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}(be);
459
+ */var lr={NATIVE_CONTROL_SELECTOR:".mdc-radio__native-control"},dr={DISABLED:"mdc-radio--disabled",ROOT:"mdc-radio"},pr=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 dr},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}(ci);
465
460
  /**
466
461
  * @license
467
462
  * Copyright 2018 Google LLC
468
463
  * SPDX-License-Identifier: Apache-2.0
469
464
  */
470
- class si extends je{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=ci,this.formElementTabIndex=0,this.focused=!1,this.shouldRenderRipple=!1,this.rippleElement=null,this.rippleHandlers=new Be((()=>(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?B`<mwc-ripple unbounded accent .internalUseStateLayerCustomProperties="${this.useStateLayerCustomProperties}" .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=oi.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 B`<div class="mdc-radio ${zt(t)}"><input tabindex="${this.formElementTabIndex}" class="mdc-radio__native-control" type="radio" name="${this.name}" aria-label="${Re(this.ariaLabel)}" aria-labelledby="${Re(this.ariaLabelledBy)}" .checked="${this.checked}" .value="${this.value}" ?disabled="${this.disabled}" @change="${this.changeHandler}" @focus="${this.handleFocus}" @click="${this.handleClick}" @blur="${this.handleBlur}" @mousedown="${this.handleRippleMouseDown}" @mouseenter="${this.handleRippleMouseEnter}" @mouseleave="${this.handleRippleMouseLeave}" @touchstart="${this.handleRippleTouchStart}" @touchend="${this.handleRippleDeactivate}" @touchcancel="${this.handleRippleDeactivate}"><div class="mdc-radio__background"><div class="mdc-radio__outer-circle"></div><div class="mdc-radio__inner-circle"></div></div>${this.renderRipple()}</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}}he([st(".mdc-radio")],si.prototype,"mdcRoot",void 0),he([st("input")],si.prototype,"formElement",void 0),he([at()],si.prototype,"useStateLayerCustomProperties",void 0),he([ot({type:Boolean})],si.prototype,"global",void 0),he([ot({type:Boolean,reflect:!0})],si.prototype,"checked",null),he([ot({type:Boolean}),Ye((function(t){this.mdcFoundation.setDisabled(t)}))],si.prototype,"disabled",void 0),he([ot({type:String}),Ye((function(t){this._handleUpdatedValue(t)}))],si.prototype,"value",void 0),he([ot({type:String})],si.prototype,"name",void 0),he([ot({type:Boolean})],si.prototype,"reducedTouchTarget",void 0),he([ot({type:Number})],si.prototype,"formElementTabIndex",void 0),he([at()],si.prototype,"focused",void 0),he([at()],si.prototype,"shouldRenderRipple",void 0),he([lt("mwc-ripple")],si.prototype,"ripple",void 0),he([Te,ot({attribute:"aria-label"})],si.prototype,"ariaLabel",void 0),he([Te,ot({attribute:"aria-labelledby"})],si.prototype,"ariaLabelledBy",void 0),he([ct({passive:!0})],si.prototype,"handleRippleTouchStart",null);
465
+ class hr extends _i{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=pr,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?N`<mwc-ripple unbounded accent .internalUseStateLayerCustomProperties="${this.useStateLayerCustomProperties}" .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=sr.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 N`<div class="mdc-radio ${Ot(t)}"><input tabindex="${this.formElementTabIndex}" class="mdc-radio__native-control" type="radio" name="${this.name}" aria-label="${Oi(this.ariaLabel)}" aria-labelledby="${Oi(this.ariaLabelledBy)}" .checked="${this.checked}" .value="${this.value}" ?disabled="${this.disabled}" @change="${this.changeHandler}" @focus="${this.handleFocus}" @click="${this.handleClick}" @blur="${this.handleBlur}" @mousedown="${this.handleRippleMouseDown}" @mouseenter="${this.handleRippleMouseEnter}" @mouseleave="${this.handleRippleMouseLeave}" @touchstart="${this.handleRippleTouchStart}" @touchend="${this.handleRippleDeactivate}" @touchcancel="${this.handleRippleDeactivate}"><div class="mdc-radio__background"><div class="mdc-radio__outer-circle"></div><div class="mdc-radio__inner-circle"></div></div>${this.renderRipple()}</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([lt(".mdc-radio")],hr.prototype,"mdcRoot",void 0),ii([lt("input")],hr.prototype,"formElement",void 0),ii([at()],hr.prototype,"useStateLayerCustomProperties",void 0),ii([nt({type:Boolean})],hr.prototype,"global",void 0),ii([nt({type:Boolean,reflect:!0})],hr.prototype,"checked",null),ii([nt({type:Boolean}),ir((function(t){this.mdcFoundation.setDisabled(t)}))],hr.prototype,"disabled",void 0),ii([nt({type:String}),ir((function(t){this._handleUpdatedValue(t)}))],hr.prototype,"value",void 0),ii([nt({type:String})],hr.prototype,"name",void 0),ii([nt({type:Boolean})],hr.prototype,"reducedTouchTarget",void 0),ii([nt({type:Number})],hr.prototype,"formElementTabIndex",void 0),ii([at()],hr.prototype,"focused",void 0),ii([at()],hr.prototype,"shouldRenderRipple",void 0),ii([dt("mwc-ripple")],hr.prototype,"ripple",void 0),ii([xi,nt({attribute:"aria-label"})],hr.prototype,"ariaLabel",void 0),ii([xi,nt({attribute:"aria-labelledby"})],hr.prototype,"ariaLabelledBy",void 0),ii([st({passive:!0})],hr.prototype,"handleRippleTouchStart",null);
471
466
  /**
472
467
  * @license
473
468
  * Copyright 2021 Google LLC
474
469
  * SPDX-LIcense-Identifier: Apache-2.0
475
470
  */
476
- const li=a`.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,.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 .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:rgba(0,0,0,.38)}.mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:rgba(0,0,0,.38)}.mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle{border-color:rgba(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 .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:GrayText}.mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:GrayText}.mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio [aria-disabled=true] .mdc-radio__native-control+.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 0s cubic-bezier(.4,0,.6,1),transform 120ms 0s cubic-bezier(.4,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 0s cubic-bezier(.4,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 0s cubic-bezier(.4,0,.6,1),border-color 120ms 0s cubic-bezier(.4,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 0s cubic-bezier(0,0,.2,1),transform 120ms 0s cubic-bezier(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 0s cubic-bezier(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 0s cubic-bezier(0,0,.2,1),border-color 120ms 0s cubic-bezier(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(.5);transition:transform 120ms 0s cubic-bezier(0,0,.2,1),border-color 120ms 0s cubic-bezier(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 0s cubic-bezier(0,0,.2,1),transform 120ms 0s cubic-bezier(0,0,.2,1)}:host{display:inline-block;outline:0}.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,.54))}.mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-color,rgba(0,0,0,.38))}.mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-color,rgba(0,0,0,.38))}.mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-disabled-color,rgba(0,0,0,.38))}`
471
+ const fr=a`.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,.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 .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:rgba(0,0,0,.38)}.mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:rgba(0,0,0,.38)}.mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle{border-color:rgba(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 .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:GrayText}.mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:GrayText}.mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio [aria-disabled=true] .mdc-radio__native-control+.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 0s cubic-bezier(.4,0,.6,1),transform 120ms 0s cubic-bezier(.4,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 0s cubic-bezier(.4,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 0s cubic-bezier(.4,0,.6,1),border-color 120ms 0s cubic-bezier(.4,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 0s cubic-bezier(0,0,.2,1),transform 120ms 0s cubic-bezier(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 0s cubic-bezier(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 0s cubic-bezier(0,0,.2,1),border-color 120ms 0s cubic-bezier(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(.5);transition:transform 120ms 0s cubic-bezier(0,0,.2,1),border-color 120ms 0s cubic-bezier(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 0s cubic-bezier(0,0,.2,1),transform 120ms 0s cubic-bezier(0,0,.2,1)}:host{display:inline-block;outline:0}.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,.54))}.mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-color,rgba(0,0,0,.38))}.mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-color,rgba(0,0,0,.38))}.mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-disabled-color,rgba(0,0,0,.38))}`
477
472
  /**
478
473
  * @license
479
474
  * Copyright 2018 Google LLC
480
475
  * SPDX-License-Identifier: Apache-2.0
481
- */;let di=class extends si{};di.styles=[li],di=he([it("mwc-radio")],di);var hi=function(t,e,i,r){for(var o,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,c=t.length-1;c>=0;c--)(o=t[c])&&(n=(a<3?o(n):a>3?o(e,i,n):o(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};let pi=class extends Tt{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[a`.ft-filter-level--container{display:flex;flex-direction:column}.ft-filter-level--container>*{padding:0 10px}.ft-filter-level--go-back{flex-shrink:0;text-decoration:none;position:relative;border-radius:var(--ft-border-radius-M,8px);overflow:hidden;display:flex;align-items:center;padding:4px 4px;gap:4px;cursor:pointer;color:var(--ft-color-on-surface,rgba(0,0,0,.87))}.ft-filter-level--go-back:focus{outline:0}.ft-filter-level--go-back mwc-icon{flex-shrink:0}.ft-filter-level--go-back ft-typography{display:block;flex-grow:1;flex-shrink:0}.ft-filter-level--option{display:flex;align-items:center;max-width:100%}.ft-filter-level--option ft-button{margin-right:-10px;flex-shrink:0}ft-button{--ft-color-primary:var(--ft-color-on-surface, rgba(0, 0, 0, 0.87))}mwc-formfield{flex-shrink:1;flex-grow:1;display:block;max-width:calc(100% + 10px);margin-left:-10px;word-break:break-word;--mdc-theme-secondary:var(--ft-color-primary, #2196F3);--mdc-radio-unchecked-color:var(--ft-color-on-surface-medium, rgba(0, 0, 0, 0.60));--mdc-checkbox-unchecked-color:var(--ft-color-on-surface-medium, rgba(0, 0, 0, 0.60));--mdc-checkbox-ink-color:var(--ft-color-on-primary, #FFFFFF);--mdc-radio-disabled-color:var(--ft-color-on-surface-disabled, rgba(0, 0, 0, 0.38));--mdc-checkbox-disabled-color:var(--ft-color-on-surface-disabled, rgba(0, 0, 0, 0.38));--mdc-theme-on-surface:var(--ft-color-primary, #2196F3);--mdc-typography-body2-font-family:var(--ft-typography-font-family, var(--ft-content-font, 'Open Sans')),system-ui,sans-serif;--mdc-typography-body2-font-size:var(--ft-typography-font-size, 14px);--mdc-typography-body2-font-weight:var(--ft-typography-font-weight, normal);--mdc-typography-body2-letter-spacing:var(--ft-typography-letter-spacing, 0.252px);--mdc-typography-body2-line-height:var(--ft-typography-line-height, 20px);--mdc-typography-body2-text-transform:var(--ft-typography-text-transform, inherit)}.ft-filter--disabled{--mdc-theme-text-primary-on-background:var(--ft-color-on-surface-disabled, rgba(0, 0, 0, 0.38))}`]}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 B`<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">${null==this.parent?null:B`<div tabindex="0" class="ft-filter-level--go-back" ?disabled="${this.disabled}" @keyup="${this.goBackOnKeyPress}" @click="${this.goBackOnClick}"><ft-ripple></ft-ripple><mwc-icon>chevron_left</mwc-icon><ft-typography variant="body2">${this.parent.label}</ft-typography></div>`} ${$t(e,(t=>t.value),(t=>{var e;return B`<div class="ft-filter-level--option" part="options">${this.multivalued?this.buildMultiValuedOption(t):this.buildMonoValuedOption(t)} ${this.preventNavigation||t.selected||0===(null!==(e=t.subOptions)&&void 0!==e?e:[]).length?L:B`<ft-button icon="chevron_right" label="${t.label}" ?disabled="${this.disabled}" tooltipPosition="left" @click="${()=>this.displayLevel(t)}"></ft-button>`}</div>`}))} ${e.length<t.length?B`<ft-button class="ft-filter-level--display-more" icon="expand_more" dense trailingIcon @click="${this.displayMore}">${this.moreValuesButtonLabel}</ft-button>`:L}</div>`}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 B`<mwc-formfield label="${t.label}"><mwc-checkbox reducedTouchTarget ?checked="${t.selected}" ?disabled="${this.disabled}" ?indeterminate="${oe(null!==(e=t.subOptions)&&void 0!==e?e:[],(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]})).some((t=>t.selected))}" @change="${e=>this.toggleMultiValuedOption(e,t)}"></mwc-checkbox></mwc-formfield>`}toggleMultiValuedOption(t,e){var i;oe(null!==(i=e.subOptions)&&void 0!==i?i:[],(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]})).forEach((t=>t.selected=!1)),this.optionsChanged(t,e)}buildMonoValuedOption(t){return B`<mwc-formfield label="${t.label}"><mwc-radio reducedTouchTarget name="${this.id}" ?checked="${t.selected}" ?disabled="${this.disabled}" @click="${e=>this.toggleMonoValuedOption(e,t)}"></mwc-radio></mwc-formfield>`}toggleMonoValuedOption(t,e){this.optionsChanged(t,e)}optionsChanged(t,e){t.stopPropagation(),e.selected=!e.selected,this.dispatchEvent(new CustomEvent("change",{detail:e}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}};pi.elementDefinitions={"ft-button":We,"ft-ripple":He,"ft-typography":re,"mwc-checkbox":Ie,"mwc-formfield":ei,"mwc-icon":Pe,"mwc-radio":di},hi([ot({type:String})],pi.prototype,"id",void 0),hi([ot({type:Object})],pi.prototype,"parent",void 0),hi([ot({type:Array})],pi.prototype,"options",void 0),hi([ot({type:Boolean})],pi.prototype,"multivalued",void 0),hi([ot({type:Boolean})],pi.prototype,"disabled",void 0),hi([ot({type:Boolean})],pi.prototype,"hideSelectedOptions",void 0),hi([ot({type:Boolean})],pi.prototype,"preventNavigation",void 0),hi([ot({type:String})],pi.prototype,"filter",void 0),hi([ot({type:String})],pi.prototype,"moreValuesButtonLabel",void 0),hi([ot({type:Number})],pi.prototype,"displayedValuesLimit",void 0),hi([st(".ft-filter-level--container")],pi.prototype,"container",void 0),hi([at()],pi.prototype,"displayedPages",void 0),pi=hi([Ot("ft-filter-level")],pi);var fi=function(t,e,i,r){for(var o,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,c=t.length-1;c>=0;c--)(o=t[c])&&(n=(a<3?o(n):a>3?o(e,i,n):o(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};class ui extends CustomEvent{constructor(t,e){super("current-element-change",{detail:{index:t,element:e}})}}let mi=class extends Tt{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 St(200),this.updateScrollDebouncer=new St(100)}getStyles(){return a`.ft-snap-scroll{box-sizing:border-box;position:relative;display:flex;--ft-snap-scroll-transparent-color:transparent}.ft-snap-scroll.ft-snap-scroll--safari-fix{--ft-snap-scroll-transparent-color:rgba(255, 255, 255, 0)}.ft-snap-scroll,.ft-snap-scroll--content{overflow:hidden}.ft-snap-scroll--limit-size,.ft-snap-scroll--limit-size .ft-snap-scroll--content{width:100%;height:100%}.ft-snap-scroll--content{flex-grow:1;flex-shrink:1;box-sizing:border-box;scroll-snap-align:start;display:flex;flex-wrap:nowrap;align-items:flex-start;justify-content:flex-start;gap:var(--ft-snap-scroll-gap,0)}.ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar{display:none}.ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content{-ms-overflow-style:none;scrollbar-width:none}.ft-snap-scroll--content::slotted(*){flex-shrink:0;flex-grow:1;max-height:100%;max-width:100%}.ft-snap-scroll--horizontal,.ft-snap-scroll--horizontal .ft-snap-scroll--content{width:100%}.ft-snap-scroll--vertical,.ft-snap-scroll--vertical .ft-snap-scroll--content{height:100%}.ft-snap-scroll--horizontal .ft-snap-scroll--content{flex-direction:row;overflow-x:auto}.ft-snap-scroll--vertical .ft-snap-scroll--content{flex-direction:column;overflow-y:auto}.ft-snap-scroll--next,.ft-snap-scroll--previous{position:absolute;display:flex;z-index:var(--ft-snap-scroll-buttons-z-index,1);opacity:1;transition:background-color .5s ease-in-out,opacity .5s ease-in-out,z-index .5s ease-in-out;--ft-button-background-color:transparent;--ft-button-color:var(--ft-snap-scroll-buttons-color, var(--ft-color-primary, #2196F3))}.ft-snap-scroll--next[hidden],.ft-snap-scroll--previous[hidden]{z-index:-1;opacity:0}.ft-snap-scroll--horizontal .ft-snap-scroll--previous{top:0;left:-1px;bottom:0;background:linear-gradient(to right,var(--ft-color-surface,#fff) 50%,var(--ft-snap-scroll-transparent-color))}.ft-snap-scroll--vertical .ft-snap-scroll--previous{top:-1px;left:0;right:0;background:linear-gradient(to bottom,var(--ft-color-surface,#fff) 50%,var(--ft-snap-scroll-transparent-color))}.ft-snap-scroll--horizontal .ft-snap-scroll--next{top:0;right:-1px;bottom:0;background:linear-gradient(to left,var(--ft-color-surface,#fff) 50%,var(--ft-snap-scroll-transparent-color))}.ft-snap-scroll--vertical .ft-snap-scroll--next{left:0;right:0;bottom:-1px;background:linear-gradient(to top,var(--ft-color-surface,#fff) 50%,var(--ft-snap-scroll-transparent-color))}.ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,.ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,.ft-snap-scroll--vertical .ft-snap-scroll--next:hover,.ft-snap-scroll--vertical .ft-snap-scroll--previous:hover{background-color:var(--ft-color-surface,#fff)}`}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=zt({"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":Mt}),e=this.controls&&this.withScroll;return B`<div part="container" class="${t}"><ft-button class="ft-snap-scroll--previous" part="controls" primary icon="${this.horizontal?"arrow_back_ios_new":"expand_less"}" ?hidden="${!e||this.startReached}" ?disabled="${!e||this.startReached}" @click="${this.previous}"></ft-button><slot class="ft-snap-scroll--content" part="content" @slotchange="${this.onSlotChange}"></slot><ft-button class="ft-snap-scroll--next" part="controls" primary icon="${this.horizontal?"arrow_forward_ios":"expand_more"}" ?hidden="${!e||this.endReached}" ?disabled="${!e||this.endReached}" @click="${this.next}"></ft-button></div>`}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 ui(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)}};mi.elementDefinitions={"ft-button":We},fi([ot({type:Boolean})],mi.prototype,"horizontal",void 0),fi([ot({type:Boolean})],mi.prototype,"hideScrollbar",void 0),fi([ot({type:Boolean})],mi.prototype,"controls",void 0),fi([ot({type:Boolean})],mi.prototype,"limitSize",void 0),fi([at()],mi.prototype,"elements",void 0),fi([at()],mi.prototype,"currentElement",void 0),fi([at()],mi.prototype,"withScroll",void 0),fi([at()],mi.prototype,"startReached",void 0),fi([at()],mi.prototype,"endReached",void 0),fi([st(".ft-snap-scroll--content")],mi.prototype,"contentSlot",void 0),mi=fi([Ot("ft-snap-scroll")],mi);var bi=function(t,e,i,r){for(var o,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,c=t.length-1;c>=0;c--)(o=t[c])&&(n=(a<3?o(n):a>3?o(e,i,n):o(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};let vi=class extends Tt{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}getTemplate(){return B`<slot @slotchange="${this.updateSubOptionsFromSlot}"></slot>`}updateSubOptionsFromSlot(t){const e=t.composedPath()[0];this.subOptions=e.assignedElements().map((t=>t))}};vi.elementDefinitions={},bi([ot({type:String})],vi.prototype,"label",void 0),bi([ot({type:Object,converter:t=>t})],vi.prototype,"value",void 0),bi([ot({type:Boolean,reflect:!0})],vi.prototype,"selected",void 0),bi([ot({type:Object})],vi.prototype,"subOptions",void 0),vi=bi([Ot("ft-filter-option")],vi);var gi=function(t,e,i,r){for(var o,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,c=t.length-1;c>=0;c--)(o=t[c])&&(n=(a<3?o(n):a>3?o(e,i,n):o(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};class yi extends CustomEvent{constructor(t){super("change",{detail:t})}}let xi=class extends Tt{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 St(300)}getStyles(){return[Qt,a`:host{display:flex;max-height:100%;max-width:100%}.ft-filter--container{flex-grow:1;display:flex;flex-direction:column;max-height:100%;max-width:100%;background:var(--ft-color-surface,#fff)}.ft-filter--header{display:flex;flex-wrap:wrap;gap:4px;flex-shrink:0;padding:0 10px;margin-bottom:8px;--ft-typography-font-size:14px}.ft-filter--header ft-button{flex-shrink:0;margin-left:auto;--ft-button-icon-size:18px}.ft-filter--label{display:block;flex-shrink:1;flex-grow:1;word-break:break-word;--ft-typography-line-height:22px;--ft-typography-font-weight:bold}.ft-filter--filter{flex-shrink:0;display:flex;margin:0;margin-bottom:8px;padding:0 10px;overflow:hidden;height:32px;transition:height 250ms ease-in-out,margin 250ms ease-in-out;transition-delay:.5s}.ft-filter--filter[hidden]{height:0;margin-bottom:0}input{display:block;width:100%;border-radius:4px;border:1px solid var(--ft-color-outline,rgba(0,0,0,.14));padding:4px;outline-color:var(--ft-color-primary,#2196f3)}.ft-filter--values{flex-grow:1;flex-shrink:1;max-width:100%;overflow-x:hidden;overflow-y:auto}.ft-filter--separator{border-top:1px solid var(--ft-color-outline,rgba(0,0,0,.14));margin:4px 10px}.ft-filter--levels-container{position:relative;overflow:hidden}.ft-filter--levels{position:relative;overflow:hidden}ft-filter-level{width:100%}.ft-filter--level-left{height:0}slot{display:none}`]}get flatOptions(){return oe(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 B`<div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}" part="container">${this.label||i?B`<div class="ft-filter--header" part="header"><ft-typography class="ft-filter--label" variant="overline" part="label">${this.label}</ft-typography>${i?B`<ft-button icon="close" dense @click="${this.clear}" part="clear-button">${this.clearButtonLabel}</ft-button>`:null}</div>`:null}<div class="ft-filter--filter" ?hidden="${!r}"><input type="search" part="input" class="ft-typography--caption" ?disabled="${!r}" placeholder="${this.filterPlaceHolder.replace("{0}",this.label)}" @keyup="${this.onFilterChange}"></div><div class="ft-filter--values">${this.renderLevels()}</div><slot @slotchange="${this.updateOptionsFromSlot}"></slot></div>`}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 B`${this.raiseSelectedOptions&&e.length>0?B`<ft-filter-level id="${this.id}" ?multivalued="${this.multivalued}" ?disabled="${this.disabled}" preventNavigation .options="${e}" @change="${this.onChange}" part="selected-values"></ft-filter-level><div class="ft-filter--separator"></div>`:null}<ft-snap-scroll horizontal hideScrollbar class="ft-filter--levels" @current-element-change="${t=>this.levelsScrollDebouncer.run((()=>{for(;t.detail.index<this.displayedLevels.length;)this.displayedLevels.pop();this.requestUpdate()}))}">${this.renderLevel(r,this.options)} ${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)}))}</ft-snap-scroll>`}renderLevel(t,e,i){return B`<ft-filter-level class="${t}" id="${this.id}" filter="${this.filter}" moreValuesButtonLabel="${this.moreValuesButtonLabel}" ?multivalued="${this.multivalued}" ?disabled="${this.disabled||"ft-filter--level-center"!==t}" ?hideSelectedOptions="${this.raiseSelectedOptions}" .parent="${i}" .options="${e}" .displayedValuesLimit="${this.displayedValuesLimit}" @change="${this.onChange}" @go-back="${this.goBack}" @display-level="${this.onDisplayLevel}" part="values"></ft-filter-level>`}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){if(t.stopPropagation(),!this.multivalued){const e=i=>{var r;i.value!==t.detail.value&&(i.selected=!1),null===(r=i.subOptions)||void 0===r||r.forEach(e)};this.options.forEach(e)}this.optionsChanged()}optionsChanged(){var t;const e=this.flatOptions.filter((t=>t.selected)).map((t=>t.value));this.dispatchEvent(new yi(e)),this.requestUpdate(),null===(t=this.levels)||void 0===t||t.forEach((t=>t.requestUpdate()))}updateOptionsFromSlot(t){const e=t.composedPath()[0];this.options=e.assignedElements().map((t=>t))}onFilterChange(t){const e=t.composedPath()[0];this.filter=e.value}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};var ki,wi;xi.elementDefinitions={"ft-button":We,"ft-filter-level":pi,"ft-snap-scroll":mi,"ft-typography":re},gi([ot({type:String})],xi.prototype,"id",void 0),gi([ot({type:String})],xi.prototype,"label",void 0),gi([ot({type:String})],xi.prototype,"filterPlaceHolder",void 0),gi([ot({type:String})],xi.prototype,"clearButtonLabel",void 0),gi([ot({type:String})],xi.prototype,"moreValuesButtonLabel",void 0),gi([ot({type:Array})],xi.prototype,"options",void 0),gi([ot({type:Boolean})],xi.prototype,"multivalued",void 0),gi([ot({type:Boolean})],xi.prototype,"disabled",void 0),gi([ot({type:Boolean})],xi.prototype,"raiseSelectedOptions",void 0),gi([ot({type:Number})],xi.prototype,"displayedValuesLimit",void 0),gi([st(".ft-filter--container")],xi.prototype,"container",void 0),gi([st(".ft-filter--values")],xi.prototype,"valuesContainer",void 0),gi([st(".ft-filter--levels")],xi.prototype,"levelsContainer",void 0),gi([st(".ft-filter--levels ft-filter-level:last-child")],xi.prototype,"lastLevel",void 0),gi([function(t){return nt({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),gi([at()],xi.prototype,"withScroll",void 0),gi([at()],xi.prototype,"filter",void 0),gi([at()],xi.prototype,"slideIn",void 0),gi([at()],xi.prototype,"slideOut",void 0),xi=gi([Ot("ft-filter")],xi),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;"}(ki||(ki={})),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;"}(wi||(wi={}));const _i=new Map([...["abw"].map((t=>[t,wi.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,wi.AUDIO])),...["avi"].map((t=>[t,wi.AVI])),...["chm","xhs"].map((t=>[t,wi.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,wi.CODE])),...["csv"].map((t=>[t,wi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,wi.DITA])),...["epub"].map((t=>[t,wi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,wi.EXCEL])),...["flac"].map((t=>[t,wi.FLAC])),...["gif"].map((t=>[t,wi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,wi.GZIP])),...["html","htm","xhtml"].map((t=>[t,wi.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,wi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,wi.JPEG])),...["json"].map((t=>[t,wi.JSON])),...["m4a","m4p"].map((t=>[t,wi.M4A])),...["mov","qt"].map((t=>[t,wi.MOV])),...["mp3"].map((t=>[t,wi.MP3])),...["mp4","m4v"].map((t=>[t,wi.MP4])),...["ogg","oga"].map((t=>[t,wi.OGG])),...["pdf","ps"].map((t=>[t,wi.PDF])),...["png"].map((t=>[t,wi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,wi.POWERPOINT])),...["rar"].map((t=>[t,wi.RAR])),...["stp"].map((t=>[t,wi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,wi.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,wi.VIDEO])),...["wav"].map((t=>[t,wi.WAV])),...["wma"].map((t=>[t,wi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,wi.WORD])),...["xml","xsl","rdf"].map((t=>[t,wi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,wi.YAML])),...["zip"].map((t=>[t,wi.ZIP]))]),$i=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);var zi,Si=function(t,e,i,r){for(var o,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,c=t.length-1;c>=0;c--)(o=t[c])&&(n=(a<3?o(n):a>3?o(e,i,n):o(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format"}(zi||(zi={}));const Oi=a`.ft-icon--fluid-topics{font-family:var(--ft-icon-fluid-topics-font-family, var(--ft-icon-font-family, "ft-icons")),ft-icons,fticons,sans-serif;font-size:var(--ft-icon-font-size,24px);line-height:1;font-weight:400;text-transform:none;font-style:normal;font-variant:normal;speak:none;text-shadow:1px 1px 1px rgba(0,0,0,.004);text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}`,Ci=a`.ft-icon--file-format{font-family:var(--ft-icon-file-format-font-family, var(--ft-icon-font-family, "ft-mime")),ft-mime,sans-serif;font-size:var(--ft-icon-font-size,24px);line-height:1;font-weight:400;text-transform:none;font-style:normal;font-variant:normal;speak:none;text-shadow:1px 1px 1px rgba(0,0,0,.004);text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}`;let Ti=class extends Tt{constructor(){super(...arguments),this.variant=zi.fluid_topics}getStyles(){return[Oi,Ci,a`:host,i.ft-icon{display:inline-block;width:var(--ft-icon-font-size,24px);height:var(--ft-icon-font-size,24px);text-align:center}`]}getTemplate(){return Vt`<slot @slotchange="${()=>this.requestUpdate()}" hidden></slot><i class="ft-icon ${"ft-icon--"+this.variant}">${jt(this.getIcon())}</i>`}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;return this.variant===zi.file_format?null!==(t=wi[this.textContent.toUpperCase()])&&void 0!==t?t:this.textContent:null!==(e=ki[this.textContent.toUpperCase()])&&void 0!==e?e:this.textContent}};Ti.elementDefinitions={},Si([ot()],Ti.prototype,"variant",void 0),Si([st("slot")],Ti.prototype,"slottedContent",void 0),Ti=Si([Ot("ft-icon")],Ti);var Ei=function(t,e,i,r){for(var o,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,c=t.length-1;c>=0;c--)(o=t[c])&&(n=(a<3?o(n):a>3?o(e,i,n):o(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};let Ai=class extends Tt{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}getStyles(){return a`.ft-accordion-item{display:flex;flex-direction:column}.ft-accordion-item--toggle{flex-shrink:0;flex-grow:0;position:relative;display:flex;align-items:center;cursor:pointer;padding:var(--ft-accordion-toggle-vertical-spacing,12px) var(--ft-accordion-toggle-horizontal-spacing,16px);gap:calc(var(--ft-accordion-toggle-horizontal-spacing,16px)/ 2);outline:0}.ft-accordion-item--label{flex-grow:1;flex-shrink:1;display:block}.ft-accordion-item--content{box-sizing:border-box;flex-shrink:1;flex-grow:1;overflow:hidden;height:0}.ft-accordion-item--active .ft-accordion-item--content{height:initial;overflow:visible;padding:var(--ft-accordion-toggle-vertical-spacing,12px) var(--ft-accordion-toggle-horizontal-spacing,16px)}.ft-accordion-item--separator{border-bottom:1px solid var(--ft-color-outline,rgba(0,0,0,.14))}`}getTemplate(){return B`<div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}"><div class="ft-accordion-item--toggle" part="toggle" @click="${()=>this.active=!this.active}" @keydown="${this.onToggleKeyDown}" tabindex="0"><ft-ripple part="toggle-ripple"></ft-ripple>${this.icon?B`<mwc-icon>${this.icon}</mwc-icon>`:null} ${this.label?B`<ft-typography class="ft-accordion-item--label" variant="body1" part="label">${this.label}</ft-typography>`:B`<slot class="ft-accordion-item--label" name="toggle" part="label"></slot>`}<mwc-icon>${this.active?"expand_less":"expand_more"}</mwc-icon></div><div class="ft-accordion-item--content" part="content" @focusin="${()=>this.active=!0}"><slot></slot></div><div class="ft-accordion-item--separator" part="separator"></div></div>`}update(t){super.update(t),t.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.active=!this.active)}};Ai.elementDefinitions={"ft-ripple":He,"ft-typography":re,"mwc-icon":Pe},Ei([ot({type:String})],Ai.prototype,"icon",void 0),Ei([ot({type:String})],Ai.prototype,"label",void 0),Ei([ot({type:Boolean,reflect:!0})],Ai.prototype,"active",void 0),Ai=Ei([Ot("ft-accordion-item")],Ai);var Fi=function(t,e,i,r){for(var o,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,c=t.length-1;c>=0;c--)(o=t[c])&&(n=(a<3?o(n):a>3?o(e,i,n):o(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};let ji=class extends Tt{constructor(){super(...arguments),this.multi=!1}getStyles(){return a`.ft-accordion{box-sizing:border-box}`}getTemplate(){return B`<div class="ft-accordion"><slot @activated="${this.onChange}"></slot></div>`}onChange(t){t.stopPropagation(),this.multi||this.content.assignedElements().forEach((e=>e.active=e===t.target))}};ji.elementDefinitions={},Fi([ot({type:Boolean})],ji.prototype,"multi",void 0),Fi([st("slot")],ji.prototype,"content",void 0),ji=Fi([Ot("ft-accordion")],ji);var Bi=function(t,e,i,r){for(var o,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,c=t.length-1;c>=0;c--)(o=t[c])&&(n=(a<3?o(n):a>3?o(e,i,n):o(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};class Ri extends CustomEvent{constructor(){super("icon-click")}}let Li=class extends Tt{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.icon=void 0,this.trailingIcon=!1}getStyles(){return[Et,a`:host{display:inline-block;max-width:100%}.ft-chip{position:relative;display:flex;justify-content:center;align-items:center;width:100%;overflow:hidden;box-sizing:border-box;--ft-chip-internal-font-size:var(--ft-typography-font-size, 14px);--ft-chip-internal-line-height:var(--ft-typography-line-height, max(20px, calc(var(--ft-chip-internal-font-size) + 2px)));--mdc-icon-size:var(--ft-chip-icon-size, 18px);--ft-chip-internal-vertical-padding:var(--ft-chip-vertical-padding, 6px);--ft-chip-internal-horizontal-padding:var(--ft-chip-horizontal-padding, 6px);--ft-chip-internal-icon-padding:3px;--ft-chip-internal-content-height:max(var(--ft-chip-internal-line-height), var(--mdc-icon-size));border:1px solid var(--ft-color-outline,rgba(0,0,0,.14));color:var(--ft-color-on-surface,rgba(0,0,0,.87));--ft-ripple-color:var(--ft-color-on-surface, rgba(0, 0, 0, 0.87));border-radius:calc(var(--ft-chip-internal-content-height)/ 2 + var(--ft-chip-internal-vertical-padding));padding:calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);background-color:var(--ft-color-surface,#fff);line-height:var(--ft-chip-internal-content-height)}.ft-chip--dense{--ft-chip-internal-icon-padding:3px;--ft-chip-internal-vertical-padding:var(--ft-chip-vertical-padding, 4px);--ft-chip-internal-horizontal-padding:var(--ft-chip-horizontal-padding, 4px);--ft-chip-internal-line-height:var(--ft-typography-line-height, max(16px, calc(var(--ft-chip-internal-font-size) + 2px)))}.ft-chip--no-content{--ft-chip-internal-horizontal-padding:var(--ft-chip-horizontal-padding, var(--ft-chip-internal-vertical-padding))}.ft-chip--disabled{cursor:default;pointer-events:none;filter:grayscale(1);opacity:var(--ft-color-opacity-disabled,.38)}.ft-chip--highlighted{border:none;padding:var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);background-color:var(--ft-color-primary,#2196f3);--ft-ripple-color:var(--ft-color-on-primary, #FFFFFF);color:var(--ft-color-on-primary,#fff)}.ft-chip--clickable{cursor:pointer;-webkit-mask-image:radial-gradient(white,#000)}.ft-chip:focus{outline:0}.ft-chip--icon-container{display:inline-flex;position:relative;overflow:hidden;border-radius:100%;justify-content:center;align-items:center;flex-shrink:0;padding:var(--ft-chip-internal-icon-padding);margin:calc((-1) * var(--ft-chip-internal-icon-padding))}.ft-chip--label{display:block;margin:0 var(--ft-chip-internal-horizontal-padding);--ft-typography-line-height:var(--ft-chip-internal-content-height)}.ft-chip--safari-fix .ft-chip--label{margin-right:0}.ft-chip:not(.ft-chip--multi-line) .ft-chip--label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ft-chip--safari-fix:not(.ft-chip--multi-line) .ft-chip--label:after{content:"\\0000a0";display:inline-block;width:0}.ft-chip--no-content .ft-chip--label{display:none}.ft-chip--no-content .ft-chip--label+.ft-chip--icon-container{width:var(--ft-chip-internal-content-height);height:var(--ft-chip-internal-content-height)}.ft-chip--icon-container:focus{outline:0}.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-container{order:-1}`]}getTemplate(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Mt};return B`<div class="${zt(t)}" aria-label="${this.getLabel()}" tabindex="${this.interactionsOnChip?0:-1}" @keyup="${this.onKeyUp}"><ft-ripple ?disabled="${!this.interactionsOnChip}"></ft-ripple><ft-typography variant="body2" element="span" class="ft-chip--label"><slot @slotchange="${this.onSlotchange}"></slot></ft-typography>${this.internalIcon?this.renderIcon():null}</div>`}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return B`<div class="ft-chip--icon-container ft-no-text-select ${this.interactionsOnIcon?"ft-chip--clickable":""}" tabindex="${this.interactionsOnIcon?0:-1}" @click="${this.onIconClick}" @keyup="${this.onIconKeyUp}"><ft-ripple ?disabled="${!this.interactionsOnIcon}"></ft-ripple><mwc-icon>${this.internalIcon}</mwc-icon></div>`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Ri))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Ri))}getLabel(){return this.label||this.textContent}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:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"cancel":void 0)}};Li.elementDefinitions={"ft-ripple":He,"ft-typography":re,"mwc-icon":Pe},Bi([ot({type:Boolean})],Li.prototype,"highlighted",void 0),Bi([ot({type:Boolean})],Li.prototype,"removable",void 0),Bi([ot({type:Boolean})],Li.prototype,"disabled",void 0),Bi([ot({type:Boolean})],Li.prototype,"clickable",void 0),Bi([ot({type:Boolean})],Li.prototype,"iconClickable",void 0),Bi([ot({type:Boolean})],Li.prototype,"dense",void 0),Bi([ot({type:Boolean})],Li.prototype,"multiLine",void 0),Bi([ot({type:String})],Li.prototype,"label",void 0),Bi([ot({type:String})],Li.prototype,"icon",void 0),Bi([ot({type:Boolean})],Li.prototype,"trailingIcon",void 0),Bi([st("ft-typography slot")],Li.prototype,"slottedContent",void 0),Li=Bi([Ot("ft-chip")],Li);var Mi=function(t,e,i,r){for(var o,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,c=t.length-1;c>=0;c--)(o=t[c])&&(n=(a<3?o(n):a>3?o(e,i,n):o(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};let Ii=class extends Tt{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1}getStyles(){return[Qt,a`.ft-input-label{position:absolute;inset:0;display:flex}.ft-input-label{border-color:var(--ft-input-label-border-color,var(--ft-color-outline,rgba(0,0,0,.14)))}.ft-input-label:after,.ft-input-label:before{content:"";display:flex;border-bottom-width:1px;border-bottom-style:solid;border-color:inherit}.ft-input-label:before{width:var(--ft-input-label-horizontal-spacing,12px);flex-shrink:0}.ft-input-label:after{flex-grow:1;flex-shrink:1}.ft-input-label--text{display:flex;flex-shrink:1;position:relative;border-bottom-width:1px;border-bottom-style:solid;border-color:inherit;padding:0 4px;color:var(--ft-input-label-text-color,var(--ft-color-on-surface-medium,rgba(0,0,0,.6)));transition:font-size 250ms,line-height 250ms,color 250ms;--ft-typography-font-size:var(--ft-input-label-font-size, 14px);--ft-typography-line-height:var(--ft-input-label-font-size, 14px)}.ft-input-label--disabled .ft-input-label--text{color:var(--ft-input-label-text-color,var(--ft-color-on-surface-disabled,rgba(0,0,0,.38)))}.ft-input-label--hidden-text{opacity:0}.ft-input-label--floating-text{position:absolute;top:calc(50% - var(--ft-typography-line-height)/ 2);transition:top 250ms;width:calc(100% - 8px);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:var(--ft-input-label-vertical-spacing,4px) 0;margin:calc(var(--ft-input-label-vertical-spacing,4px) * -1) 0}.ft-input-label--raised .ft-input-label--text{--ft-typography-font-size:var(--ft-input-label-raised-font-size, 11px);--ft-typography-line-height:var(--ft-input-label-raised-font-size, 11px)}.ft-input-label--raised .ft-input-label--floating-text{top:var(--ft-input-label-vertical-spacing,4px)}.ft-input-label--outlined .ft-input-label--text,.ft-input-label--outlined:after,.ft-input-label--outlined:before{border-top-width:1px;border-top-style:solid}.ft-input-label--outlined:before{border-left-width:1px;border-left-style:solid;border-radius:var(--ft-border-radius-S,4px) 0 0 var(--ft-border-radius-S,4px)}.ft-input-label--outlined:after{border-right-width:1px;border-right-style:solid;border-radius:0 var(--ft-border-radius-S,4px) var(--ft-border-radius-S,4px) 0}.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text{top:calc(var(--ft-typography-line-height)/ -2)}.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text{border-top:none}`]}getTemplate(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled};return B`<div class="${zt(t)}">${this.text?B`<div class="ft-input-label--text ft-typography--caption"><span class="ft-input-label--floating-text">${this.text}</span> <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span></div>`:null}</div>`}};Ii.elementDefinitions={},Mi([ot({type:String})],Ii.prototype,"text",void 0),Mi([ot({type:Boolean})],Ii.prototype,"raised",void 0),Mi([ot({type:Boolean})],Ii.prototype,"outlined",void 0),Mi([ot({type:Boolean})],Ii.prototype,"disabled",void 0),Ii=Mi([Ot("ft-input-label")],Ii);var Di=function(t,e,i,r){for(var o,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,c=t.length-1;c>=0;c--)(o=t[c])&&(n=(a<3?o(n):a>3?o(e,i,n):o(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};let Hi=class extends Tt{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}getTemplate(){return B``}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Hi.elementDefinitions={},Di([ot({type:String})],Hi.prototype,"label",void 0),Di([ot({type:Object,converter:t=>t})],Hi.prototype,"value",void 0),Di([ot({type:Boolean,reflect:!0})],Hi.prototype,"selected",void 0),Hi=Di([Ot("ft-select-option")],Hi);let Ni=class extends Tt{constructor(){super(...arguments),this.label="",this.helper="",this.outlined=!1,this.disabled=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.hideOptions=t=>this.optionsDisplayed=this.optionsDisplayed&&t.composedPath().includes(this.container)}getStyles(){return[Yt,Qt,a`:focus{outline:0}.ft-select{display:flex;flex-direction:column;align-items:stretch}.ft-select--main-panel{position:relative;display:flex;height:calc(4 * var(--ft-select-vertical-spacing,4px) + var(--ft-select-label-size,11px) + var(--ft-select-selected-option-size,14px))}.ft-select--input-panel{flex-grow:1;position:relative;display:flex;align-items:center;overflow:hidden;padding-left:16px;padding-right:8px;gap:8px}.ft-select--input-panel,.ft-select--option{color:var(--ft-color-on-surface,rgba(0,0,0,.87));--ft-opacity-color-content-on-surface-hover:0.08;--ft-opacity-color-content-on-surface-dragged:0.04}.ft-select--disabled .ft-select--input-panel,.ft-select--disabled .ft-select--option{color:var(--ft-color-on-surface-disabled,rgba(0,0,0,.38))}.ft-select:not(.ft-select--disabled) .ft-select--input-panel{cursor:pointer}ft-input-label{--ft-input-label-font-size:var(--ft-select-selected-option-size, 14px);--ft-input-label-raised-font-size:var(--ft-select-label-size, 11px);--ft-input-label-vertical-spacing:var(--ft-select-vertical-spacing, 4px)}.ft-select:not(.ft-select--disabled):focus-within mwc-icon{color:var(--ft-color-primary,#2196f3)}.ft-select:not(.ft-select--disabled):focus-within ft-input-label{--ft-input-label-border-color:var(--ft-color-primary, #2196F3);--ft-input-label-text-color:var(--ft-color-primary, #2196F3)}.ft-select--selected-option{display:block;flex-grow:1;flex-shrink:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;--ft-typography-font-size:var(--ft-select-selected-option-size, 14px);--ft-typography-line-height:var(--ft-select-selected-option-size, 14px)}mwc-icon{flex-shrink:0}slot{display:none}.ft-select--filled .ft-select--input-panel{border-radius:var(--ft-border-radius-S,4px) var(--ft-border-radius-S,4px) 0 0}.ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option{align-self:stretch;padding-top:calc(var(--ft-select-label-size,11px) + 2 * var(--ft-select-vertical-spacing,4px))}.ft-select--outlined .ft-select--input-panel{border-radius:var(--ft-border-radius-S,4px)}.ft-select--options{display:none;position:absolute;top:100%;left:0;right:0;background:var(--ft-color-surface,#fff);z-index:var(--ft-select-options-z-index,1);box-shadow:var(--ft-elevation-02,0 4px 10px 0 rgba(0,0,0,.06),0 2px 5px 0 rgba(0,0,0,.14),0 0 1px 0 rgba(0,0,0,.06))}.ft-select--options-displayed .ft-select--options{display:block}.ft-select--option{position:relative;padding:4px 16px;min-height:32px;display:flex;align-items:center}.ft-select--helper-text{padding:0 12px 0 16px;color:var(--ft-select-helper-color,var(--ft-color-on-surface-medium,rgba(0,0,0,.6)))}`]}getTemplate(){var t,e,i,r,o;let a=!this.disabled&&this.optionsDisplayed&&this.hasOptions,n=this.disabled||!this.hasOptions;const c={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":n,"ft-select--options-displayed":a,"ft-select--has-value":null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value),"ft-select--no-label":!this.label};return B`<div class="${zt(c)}" part="container"><div class="ft-select--main-panel" part="main-panel"><ft-input-label text="${this.label}" part="label" ?disabled="${n}" ?outlined="${this.outlined}" ?raised="${null!=(null===(e=this.selectedOption)||void 0===e?void 0:e.value)||a}"></ft-input-label><div class="ft-select--input-panel" part="selected-value" tabindex="${n?"-1":"0"}" @click="${()=>this.optionsDisplayed=!this.optionsDisplayed}" @keydown="${this.onMainPanelKeyDown}" aria-label="${this.label}" aria-haspopup="listbox" aria-expanded="${a}">${this.outlined?null:B`<ft-ripple ?disabled="${n}" activated></ft-ripple>`}<ft-typography variant="body1" class="ft-select--selected-option">${null!=(null===(i=this.selectedOption)||void 0===i?void 0:i.value)&&null!==(o=null===(r=this.selectedOption)||void 0===r?void 0:r.label)&&void 0!==o?o:""}</ft-typography><mwc-icon>${a?"expand_less":"expand_more"}</mwc-icon></div><div class="ft-select--options" part="options" @keydown="${this.onOptionsKeyDown}" innerrole="listbox">${$t(this.options,(t=>t.value),(t=>this.renderOption(t)))}</div></div>${this.helper?B`<ft-typography class="ft-select--helper-text" variant="caption">${this.helper}</ft-typography>`:void 0}</div><slot @slotchange="${this.updateOptionsFromSlot}" @option-change="${this.updateOptionsFromSlot}"></slot>`}renderOption(t){let e=this.selectedOption===t;return B`<div class="${zt({"ft-select--option":!0,"ft-select--option-selected":e,"ft-typography--body2":!0})}" part="option" tabindex="0" @keydown="${e=>this.onOptionKeyDown(e,t)}" @click="${()=>this.selectOption(t)}"><ft-ripple ?primary="${e}" ?activated="${e}"></ft-ripple>${t.label}</div>`}updated(t){var e;super.updated(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1,this.dispatchEvent(new CustomEvent("change",{detail:null===(e=this.selectedOption)||void 0===e?void 0:e.value})))}contentAvailableCallback(t){var e,i;t.has("focusOptions")&&this.focusOptions&&(null===(i=null!==(e=this.selectedOptionElement)&&void 0!==e?e:this.firstOption)||void 0===i||i.focus(),this.focusOptions=!1)}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var e;t.stopPropagation();let i=null===(e=this.optionsSlot)||void 0===e?void 0:e.assignedElements().map((t=>t));i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0}}onOptionsKeyDown(t){var e,i,r,o,a;let n;switch(t.key){case"Escape":this.optionsDisplayed=!1,null===(e=this.mainPanel)||void 0===e||e.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),n=null!==(r=null===(i=this.focusedOption)||void 0===i?void 0:i.previousElementSibling)&&void 0!==r?r:this.lastOption;break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),n=null!==(a=null===(o=this.focusedOption)||void 0===o?void 0:o.nextElementSibling)&&void 0!==a?a:this.firstOption}null==n||n.focus()}onOptionKeyDown(t,e){var i;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.selectOption(e),this.optionsDisplayed=!1,null===(i=this.mainPanel)||void 0===i||i.focus())}selectOption(t){this.selectedOption=t;for(let e of this.options)e.selected=e===t}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}};Ni.elementDefinitions={"ft-input-label":Ii,"ft-typography":re,"ft-ripple":He,"mwc-icon":Pe},Di([ot({type:String})],Ni.prototype,"label",void 0),Di([ot({type:String})],Ni.prototype,"helper",void 0),Di([ot({type:Boolean})],Ni.prototype,"outlined",void 0),Di([ot({type:Boolean})],Ni.prototype,"disabled",void 0),Di([ot({type:Array})],Ni.prototype,"options",void 0),Di([at()],Ni.prototype,"selectedOption",void 0),Di([at()],Ni.prototype,"optionsDisplayed",void 0),Di([at()],Ni.prototype,"focusOptions",void 0),Di([st(".ft-select")],Ni.prototype,"container",void 0),Di([st(".ft-select--input-panel")],Ni.prototype,"mainPanel",void 0),Di([st(".ft-select--option:first-child")],Ni.prototype,"firstOption",void 0),Di([st(".ft-select--option:focus")],Ni.prototype,"focusedOption",void 0),Di([st(".ft-select--option.ft-select--option-selected")],Ni.prototype,"selectedOptionElement",void 0),Di([st(".ft-select--option:last-child")],Ni.prototype,"lastOption",void 0),Di([st("slot")],Ni.prototype,"optionsSlot",void 0),Ni=Di([Ot("ft-select")],Ni);var Pi=function(t,e,i,r){for(var o,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,c=t.length-1;c>=0;c--)(o=t[c])&&(n=(a<3?o(n):a>3?o(e,i,n):o(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};null==window.fluidtopics&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");const Ui={filtersButton:"Filters",oneFilterEnabled:"1 filter enabled",nFiltersEnabled:"{0} filter(s) enabled",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",searchButton:"Search",noSuggestions:"No results found…",clearFilters:"Clear filters",contentLocaleSelector:"Lang",removeRecentSearch:"Remove",back:"Back"};class Vi extends CustomEvent{constructor(t){super("launch-search",{detail:t})}}class qi extends CustomEvent{constructor(t){super("change",{detail:t})}}t.FtSearchBar=class extends Tt{constructor(){super(...arguments),this.baseUrl="",this.apiIntegrationIdentifier="ft-search-bar",this.availableContentLocales=[],this.labels={},this.labelResolver=new At(Ui,{}),this.displayedFilters=[],this.searchRequestSerializer=t=>function(t,e){var i;const r=new URLSearchParams({"content-lang":null!==(i=e.contentLocale)&&void 0!==i?i:"all",query:e.query});if(e.filters.length>0){const t=e.filters.map((t=>{const e=t.values.map((t=>t.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*"))).map((t=>encodeURIComponent(function(t){return`"${t}"`}(t)))).join("_");return`${t.key}~${e}`})).join("*");r.append("filters",t)}return new URL(`${t}/search/all?${r.toString()}`).href}(this.baseUrl,t),this.searchFilters=[],this.sizeCategory=It.S,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.query="",this.suggestions=[],this.suggestionsLoaded=!0,this.recentSearches=[],this.updateFacetsDebouncer=new St(500),this.suggestDebouncer=new St(300),this.facetsLoaded=!1,this.closeFloatingContainer=t=>{this.sizeCategory!==It.S&&(this.displayFacets=this.displayFacets&&t.composedPath().some((t=>t===this.floatingContainer)))}}getStyles(){return[Yt,a`*{box-sizing:border-box}.ft-search-bar--container{display:flex;flex-direction:column;gap:8px;background:var(--ft-color-surface,#fff);outline:0;--ft-search-bar-border-radius--internal:var(--ft-search-bar-border-radius, var(--ft-border-radius-S, 4px))}.ft-search-bar--mobile-menu-open{position:var(--ft-search-bar-mobile-open-position,fixed);top:var(--ft-search-bar-mobile-open-top,0);bottom:var(--ft-search-bar-mobile-open-bottom,0);left:var(--ft-search-bar-mobile-open-left,0);right:var(--ft-search-bar-mobile-open-right,0);z-index:var(--ft-search-bar-floating-components-z-index,1);padding:16px}.ft-search-bar{flex-shrink:0;position:relative;display:flex;flex-direction:row;align-items:center;height:var(--ft-search-bar-height,38px);background:var(--ft-color-surface,#fff);border:1px solid var(--ft-color-outline,rgba(0,0,0,.14));border-radius:var(--ft-search-bar-border-radius--internal)}.ft-search-bar--floating-panel-open .ft-search-bar{border-radius:var(--ft-search-bar-border-radius--internal) var(--ft-search-bar-border-radius--internal) 0 0}.ft-search-bar--input-container{flex-grow:1;flex-shrink:1;align-self:stretch;position:relative}.ft-search-bar--input{border:none;background-color:transparent;padding:0 8px;height:100%;width:100%}.ft-search-bar--input:focus-within{outline-color:var(--ft-color-primary,#2196f3)}.ft-search-bar--mobile .ft-search-bar--suggestions{flex-grow:1;flex-shrink:1;overflow-y:auto;height:0}.ft-search-bar--mobile-open .ft-search-bar--suggestions{height:initial}.ft-search-bar--desktop .ft-search-bar--suggestions,.ft-search-bar--floating-panel{position:absolute;z-index:var(--ft-search-bar-floating-components-z-index,1);top:100%;left:-1px;right:-1px;display:none;background:var(--ft-color-surface,#fff);border:1px solid var(--ft-color-outline,rgba(0,0,0,.14));border-radius:0 0 var(--ft-search-bar-border-radius--internal) var(--ft-search-bar-border-radius--internal);box-shadow:var(--ft-elevation-02,0 4px 10px 0 rgba(0,0,0,.06),0 2px 5px 0 rgba(0,0,0,.14),0 0 1px 0 rgba(0,0,0,.06));outline:0}.ft-search-bar--desktop .ft-search-bar--suggestions{top:calc(100% + 1px)}.ft-search-bar--input-container:focus-within .ft-search-bar--suggestions-not-empty{display:block}.ft-search-bar--no-suggestions{text-align:center;padding:8px;color:var(--ft-color-on-surface,rgba(0,0,0,.87))}.ft-search-bar--suggestion{text-decoration:none;position:relative;display:flex;align-items:center;padding:8px;gap:8px;cursor:pointer;color:var(--ft-color-on-surface,rgba(0,0,0,.87));min-height:52px}.ft-search-bar--desktop .ft-search-bar--suggestion{min-height:44px}.ft-search-bar--suggestion:focus{outline:0}.ft-search-bar--mobile .ft-search-bar--suggestion:first-child,.ft-search-bar--recent-search+.ft-search-bar--suggestion:not(.ft-search-bar--recent-search){border-top:1px solid var(--ft-color-outline,rgba(0,0,0,.14))}.ft-search-bar--suggestion ft-typography{display:block;flex-grow:1;flex-shrink:1}.ft-search-bar>ft-button{flex-shrink:0}.ft-search-bar--left-action{--ft-border-radius-L:calc(var(--ft-search-bar-border-radius--internal) - 1px) 0 0 calc(var(--ft-search-bar-border-radius--internal) - 1px);border-right:1px solid var(--ft-color-outline,rgba(0,0,0,.14))}.ft-search-bar--floating-panel-open .ft-search-bar--left-action{--ft-border-radius-L:calc(var(--ft-search-bar-border-radius--internal) - 1px) 0 0 0}.ft-search-bar--clear-query,.ft-search-bar--launch-search{margin:0 4px}.ft-search-bar--separator{height:20px;border-right:1px solid var(--ft-color-outline,rgba(0,0,0,.14))}.ft-search-bar--floating-panel{padding:16px}.ft-search-bar--floating-panel-open .ft-search-bar--floating-panel{display:block}.ft-search-bar--desktop .ft-search-bar--facets-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:0 10px;margin-bottom:16px}.ft-search-bar--mobile .ft-search-bar--facets-actions{flex-shrink:0;flex-grow:0;display:flex;gap:16px;justify-content:space-evenly}.ft-search-bar--mobile .ft-search-bar--facets-actions>*{flex-grow:1;flex-basis:0}.ft-search-bar>.ft-search-bar--content-locale,.ft-search-bar>.ft-search-bar--content-locale::part(container),.ft-search-bar>.ft-search-bar--content-locale::part(main-panel){height:100%}.ft-search-bar>.ft-search-bar--content-locale::part(options){top:calc(100% + 1px);right:unset;width:max-content;min-width:100%}.ft-search-bar>.ft-search-bar--content-locale::part(selected-value){--ft-color-on-surface:var(--ft-button-color, var(--ft-color-primary, #2196F3));--ft-ripple-color:var(--ft-button-color, var(--ft-color-primary, #2196F3));border-radius:calc(var(--ft-search-bar-border-radius--internal) - 1px) 0 0 calc(var(--ft-search-bar-border-radius--internal) - 1px)}.ft-search-bar>.ft-search-bar--content-locale::part(label){--ft-input-label-border-color:transparent;--ft-ripple-color:var(--ft-button-color, var(--ft-color-primary, #2196F3))}.ft-search-bar--floating-panel .ft-search-bar--content-locale{margin-right:auto;min-width:250px;--ft-select-options-z-index:2}.ft-search-bar--mobile .ft-search-bar--content-locale::part(clear-button){display:none}.ft-search-bar--floating-panel .ft-search-bar--filters-container{display:block;height:400px;--ft-snap-scroll-gap:16px}.ft-search-bar--floating-panel ft-filter{display:flex;flex-grow:0;max-height:100%;max-width:250px}.ft-search-bar--hierarchical-filter{width:250px}.ft-search-bar--mobile .ft-search-bar--filters-container{flex-grow:1;flex-shrink:1;overflow-y:auto;margin:0 -16px;padding:0 16px}.ft-search-bar--mobile .ft-search-bar--filters-container ft-filter{display:flex;max-height:60vh}.ft-search-bar--mobile ft-filter::part(container){flex-grow:1}.ft-search-bar--filter-label{display:flex;justify-content:space-between;align-items:baseline;gap:8px}.ft-search-bar--filter-label>*{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ft-search-bar--filter-label>:first-child{flex-shrink:0}.ft-search-bar--filter-label>:last-child{flex-shrink:1;color:var(--ft-color-on-surface-medium,rgba(0,0,0,.6))}ft-accordion-item::part(toggle){margin-left:-16px;margin-right:-16px}ft-accordion-item::part(label){overflow:hidden}ft-accordion-item::part(content){padding-left:0;padding-right:0}.ft-search-bar--selected-filters{flex-shrink:0;display:flex;flex-direction:row;flex-wrap:wrap;gap:8px}.ft-search-bar--selected-filters *{max-width:100%}`]}get recentSearchesStorageKey(){return this.baseUrl+":ft:recent-search-queries"}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.displayedFilters.map((t=>({id:t}))),filters:this.searchFilters,paging:{perPage:0,page:1},sort:[]}}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,filters:this.searchFilters,sort:[]}}get hasFacets(){return this.facets.length>0}get hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var t;null===(t=this.container)||void 0===t||t.focus()}clear(){this.query="",this.searchFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}getTemplate(){const t={"ft-search-bar--container":!0,"ft-search-bar--mobile":this.sizeCategory===It.S,"ft-search-bar--desktop":this.sizeCategory!==It.S,"ft-search-bar--floating-panel-open":this.sizeCategory!==It.S&&this.displayFacets,"ft-search-bar--mobile-menu-open":this.mobileMenuOpen};return B`<ft-size-watcher @change="${this.updateSize}"></ft-size-watcher><div class="${zt(t)}" part="container" tabindex="-1">${this.sizeCategory===It.S?this.renderMobileSearchBar():this.renderDesktopSearchBar()}</div>`}renderDesktopSearchBar(){return B`<div class="ft-search-bar" part="search-bar">${this.renderSearchBarLeftAction()}<div class="ft-search-bar--input-container" part="input-container"><input class="ft-search-bar--input ft-typography--body2" part="input" type="text" placeholder="${this.labelResolver.resolve("inputPlaceHolder")}" value="${this.query}" @keydown="${this.onSearchBarKeyDown}" @keyup="${this.onSearchBarKeyUp}"> ${this.renderSuggestions()}</div>${this.renderDesktopSearchBarButtons()}<div class="ft-search-bar--floating-panel" @keyup="${this.onFloatingContainerKeyUp}" tabindex="-1">${this.renderDesktopFacetsActions()} ${this.renderDesktopFacets()}</div></div>${this.renderSelectedFacets()}`}renderSearchBarLeftAction(){return this.hasFacets?B`<ft-button class="ft-search-bar--filters-opener ft-search-bar--left-action" part="filters-opener" trailingIcon icon="${this.displayFacets?"expand_less":"expand_more"}" @click="${t=>{t.stopPropagation(),this.displayFacets=!this.displayFacets}}" @focusin="${t=>t.stopPropagation()}">${this.labelResolver.resolve("filtersButton")}</ft-button>`:this.hasLocaleSelector?B`<ft-select class="ft-search-bar--content-locale ft-search-bar--left-action" part="content-locale" @change="${t=>this.contentLocale=t.detail}">${$t(this.availableContentLocales,(t=>t.lang),(t=>B`<ft-select-option value="${t.lang}" label="${t.label}" ?selected="${t.lang===this.contentLocale}"></ft-select-option>`))}</ft-select>`:L}renderDesktopSearchBarButtons(){return B`${this.query?B`<ft-button class="ft-search-bar--clear-query" part="search-bar-actions" icon="close" round dense label="${this.labelResolver.resolve("clearInputButton")}" @click="${()=>this.setQuery("")}"></ft-button><div class="ft-search-bar--separator"></div>`:null}<ft-button class="ft-search-bar--launch-search" part="search-bar-actions" icon="search" round dense label="${this.labelResolver.resolve("searchButton")}" @click="${this.launchSearch}"></ft-button>`}renderMobileSearchBar(){return B`<div class="ft-search-bar"><div class="ft-search-bar--input-container" part="input-container"><input class="ft-search-bar--input ft-typography--body2" part="input" type="text" placeholder="${this.labelResolver.resolve("inputPlaceHolder")}" value="${this.query}" @keyup="${this.onSearchBarKeyUp}" @focus="${()=>{this.mobileMenuOpen=!0,this.displayFacets=!1}}"></div>${this.renderMobileSearchBarButtons()}</div>${this.mobileMenuOpen?this.renderMobileFacetsActions():this.renderSelectedFacets()} ${this.displayFacets?this.renderMobileFacets():this.renderSuggestions()}`}renderMobileSearchBarButtons(){return this.query||this.mobileMenuOpen?B`<ft-button class="ft-search-bar--clear-query" part="search-bar-actions" icon="close" round label="${this.labelResolver.resolve("clearInputButton")}" @click="${()=>{this.setQuery(""),this.mobileMenuOpen=!1,this.displayFacets=!1}}"></ft-button>`:B`<ft-button class="ft-search-bar--launch-search" part="search-bar-actions" icon="search" round label="${this.labelResolver.resolve("searchButton")}" @click="${()=>{var t;return null===(t=this.input)||void 0===t?void 0:t.focus()}}"></ft-button>`}renderMobileFacetsActions(){if(!this.hasLocaleSelector&&0===this.displayedFilters.length)return null;if(this.displayFacets)return B`<div class="ft-search-bar--facets-actions"><ft-button part="facets-actions" icon="arrow_back" label="${this.labelResolver.resolve("back")}" @click="${()=>this.displayFacets=!1}">${this.labelResolver.resolve("back")}</ft-button>${this.searchFilters.length>0?B`<ft-button part="facets-actions" @click="${this.clearFilters}">${this.labelResolver.resolve("clearFilters")}</ft-button>`:null}</div>`;let t=this.searchFilters.length>0?this.searchFilters.length>1?this.labelResolver.resolve("nFiltersEnabled",this.searchFilters.length):this.labelResolver.resolve("oneFilterEnabled"):this.labelResolver.resolve("filtersButton");return B`<div class="ft-search-bar--facets-actions"><ft-button part="facets-actions" @click="${()=>this.displayFacets=!0}">${t}</ft-button></div>`}renderMobileFacets(){var t;const e=this.availableContentLocales.filter((t=>t.lang===this.contentLocale)).pop(),i=this.availableContentLocales.map((t=>({value:t.lang,label:t.label,selected:t.lang==this.contentLocale,options:[]})));return B`<ft-accordion class="ft-search-bar--filters-container">${this.hasLocaleSelector?B`<ft-accordion-item><div class="ft-search-bar--filter-label" slot="toggle"><ft-typography variant="button">${this.labelResolver.resolve("contentLocaleSelector")}</ft-typography><ft-typography variant="body2">${null!==(t=null==e?void 0:e.label)&&void 0!==t?t:""}</ft-typography></div><ft-filter part="filters" class="ft-search-bar--content-locale" id="content-locale" filterPlaceHolder="${this.labelResolver.resolve("filterInputPlaceHolder",this.labelResolver.resolve("contentLocaleSelector"))}" clearButtonLabel="${this.labelResolver.resolve("clearFilterButton")}" raiseSelectedOptions .options="${i}" @change="${t=>this.contentLocale=t.detail[0]}"></ft-filter></ft-accordion-item>`:null} ${$t(this.facets,(t=>t.key),(t=>{const e=ce(t);return B`<ft-accordion-item><div class="ft-search-bar--filter-label" slot="toggle"><ft-typography variant="button">${t.label}</ft-typography><ft-typography variant="body2">${function(t){return oe(t.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]})).filter((t=>t.selected)).map((t=>t.label))}(e).join(", ")}</ft-typography></div><ft-filter part="filters" id="${e.id}" filterPlaceHolder="${this.labelResolver.resolve("filterInputPlaceHolder",e.label)}" clearButtonLabel="${this.labelResolver.resolve("clearFilterButton")}" moreValuesButtonLabel="${this.labelResolver.resolve("displayMoreFilterValuesButton")}" ?multivalued="${e.multivalued}" raiseSelectedOptions .options="${e.options}" .displayedValuesLimit="${10}" @change="${t=>this.setFilter(e.id,e.label,t.detail)}"></ft-filter></ft-accordion-item>`}))}</ft-accordion>`}renderSuggestions(){const t=this.recentSearches.filter((t=>t.toLowerCase().includes(this.query.toLowerCase()))),e=this.query.length>2||t.length>0;return B`<div class="ft-search-bar--suggestions ${e?"ft-search-bar--suggestions-not-empty":""}" @keydown="${this.onSuggestKeyDown}">${$t(t.slice(0,5),(t=>t),(t=>B`<a href="${this.searchRequestSerializer({...this.request,query:t})}" part="suggestions" class="ft-search-bar--suggestion ft-search-bar--recent-search" @keyup="${e=>this.onSuggestKeyUp(e,t)}" @click="${e=>this.onSuggestClick(e,t)}"><ft-ripple></ft-ripple><mwc-icon part="suggestion-icon">history</mwc-icon><ft-typography variant="body1">${t}</ft-typography><ft-button icon="close" round part="remove-suggestion" ?dense="${this.sizeCategory!==It.S}" label="${this.labelResolver.resolve("removeRecentSearch")}" @click="${e=>this.removeRecentSearch(e,t)}"></ft-button></a>`))} ${$t(this.suggestions,(t=>t.value),(t=>B`<a href="${this.searchRequestSerializer({...this.request,query:t.value})}" part="suggestions" class="ft-search-bar--suggestion" @keyup="${e=>this.onSuggestKeyUp(e,t.value)}" @click="${e=>this.onSuggestClick(e,t.value)}"><ft-ripple></ft-ripple>${this.getIcon(t)}<ft-typography variant="body1">${t.value}</ft-typography></a>`))} ${0===t.length&&0===this.suggestions.length&&this.query.length>2&&this.suggestionsLoaded?B`<ft-typography class="ft-search-bar--no-suggestions" element="p" variant="body2">${this.labelResolver.resolve("noSuggestions")}</ft-typography>`:null}</div>`}getIcon(t){const e="DOCUMENT"===t.type?zi.file_format:zi.fluid_topics;let i;switch(t.type){case"MAP":i="BOOK"===t.editorialType?ki.BOOK:ki.ARTICLE;break;case"DOCUMENT":i=function(t,e){var i,r,o,a;t=(null!=t?t:"").toLowerCase(),e=(null!=e?e:"").toLowerCase();const[n,c]=((null!==(i=$i.get(t))&&void 0!==i?i:t)+"/").split("/");return null!==(a=null!==(o=null!==(r=_i.get(c))&&void 0!==r?r:_i.get(e))&&void 0!==o?o:_i.get(n))&&void 0!==a?a:wi.UNKNOWN}(t.mimeType,t.filenameExtension);break;case"TOPIC":i=ki.TOPICS}return B`<ft-icon variant="${e}" part="suggestion-icon">${i}</ft-icon>`}renderDesktopFacetsActions(){return B`<div class="ft-search-bar--facets-actions">${this.hasLocaleSelector?B`<ft-select class="ft-search-bar--content-locale" part="content-locale" label="${this.labelResolver.resolve("contentLocaleSelector")}" outlined @change="${t=>this.contentLocale=t.detail}">${$t(this.availableContentLocales,(t=>t.lang),(t=>B`<ft-select-option value="${t.lang}" label="${t.label}" ?selected="${t.lang===this.contentLocale}"></ft-select-option>`))}</ft-select>`:null} ${this.searchFilters.length>0?B`<ft-button part="facets-actions" @click="${this.clearFilters}">${this.labelResolver.resolve("clearFilters")}</ft-button>`:null}<slot name="facets-actions"></slot></div>`}renderDesktopFacets(){return this.hasFacets?B`<ft-snap-scroll horizontal limitSize controls class="ft-search-bar--filters-container" part="filters-container">${$t(this.facets,(t=>t.key),(t=>{const e=ce(t),i=e.options.some((t=>{var e,i;return(null!==(i=null===(e=t.subOptions)||void 0===e?void 0:e.length)&&void 0!==i?i:0)>0}));return B`<ft-filter class="${i?"ft-search-bar--hierarchical-filter":""}" part="filters" id="${e.id}" label="${e.label}" filterPlaceHolder="${this.labelResolver.resolve("filterInputPlaceHolder",e.label)}" clearButtonLabel="${this.labelResolver.resolve("clearFilterButton")}" moreValuesButtonLabel="${this.labelResolver.resolve("displayMoreFilterValuesButton")}" ?multivalued="${e.multivalued}" raiseSelectedOptions .options="${e.options}" .displayedValuesLimit="${10}" @change="${t=>this.setFilter(e.id,e.label,t.detail)}"></ft-filter>`}))}</ft-snap-scroll>`:null}renderSelectedFacets(){return this.hasLocaleSelector||0!==this.searchFilters.length?B`<div class="ft-search-bar--selected-filters" part="selected-filters-container">${this.hasLocaleSelector&&(this.hasFacets||this.sizeCategory===It.S)?B`<ft-chip part="selected-filters">${this.getLocaleLabel(this.contentLocale)}</ft-chip>`:null} ${$t(this.searchFilters,(t=>t.key),(t=>$t(t.values,(e=>{let i=t.label+": "+function(t){return ae(t).split("|").join(" > ")}(e);return B`<ft-tooltip inline text="${i}"><ft-chip part="selected-filters" removable label="${i}" @icon-click="${()=>this.setFilter(t.key,t.label,t.values.filter((t=>t!==e)))}">${function(t){return ae(t).split("|").pop()}(e)}</ft-chip></ft-tooltip>`}))))}</div>`:null}async firstUpdated(t){var e,i;super.firstUpdated(t),this.initApi(),this.availableContentLocales=null!==(i=await(null===(e=this.api)||void 0===e?void 0:e.getAvailableSearchLocales().then((t=>t.contentLocales)).catch((()=>[]))))&&void 0!==i?i:[]}update(t){var e,i;t.has("labels")&&(this.labelResolver=new At(Ui,this.labels)),t.has("sizeCategory")&&(this.mobileMenuOpen=!1,this.displayFacets=this.displayFacets&&this.sizeCategory!==It.S),super.update(t),(t.has("availableContentLocales")||t.has("contentLocale"))&&this.availableContentLocales.length>0&&(this.availableContentLocales.some((t=>t.lang===this.contentLocale))||(this.contentLocale=null===(e=this.availableContentLocales[0])||void 0===e?void 0:e.lang)),t.has("baseUrl")&&this.baseUrl&&(this.baseUrl.endsWith("/")&&(this.baseUrl=this.baseUrl.replace(/\/$/,"")),this.recentSearches=JSON.parse(null!==(i=window.localStorage.getItem(this.recentSearchesStorageKey))&&void 0!==i?i:"[]")),["baseUrl","apiIntegrationIdentifier"].some((e=>t.has(e)))&&this.setApi(),["uiLocale","contentLocale","searchFilters","displayedFilters","api"].some((e=>t.has(e)))&&this.updateFacets(),["query","uiLocale","contentLocale","searchFilters","displayedFilters","api"].some((e=>t.has(e)))&&this.updateSuggestions(),["query","uiLocale","contentLocale","searchFilters"].some((e=>t.has(e)))&&this.dispatchEvent(new qi(this.request))}contentAvailableCallback(t){var e,i;super.contentAvailableCallback(t),t.has("displayFacets")&&this.displayFacets&&(null===(e=this.floatingContainer)||void 0===e||e.focus()),null!=this.scrollToFacet&&this.facetsLoaded&&(null===(i=this.scrollingFiltersContainer)||void 0===i||i.scrollIndexIntoView(this.facets.findIndex((t=>t.key===this.scrollToFacet))),this.scrollToFacet=void 0)}initApi(){null==this.api&&(this.setApi(),setTimeout((()=>this.initApi()),100))}setApi(){this.api=window.fluidtopics?new window.fluidtopics.FluidTopicsApi(this.baseUrl,this.apiIntegrationIdentifier):void 0}updateFacets(){this.displayedFilters.length>0?(this.facetsLoaded=!1,this.updateFacetsDebouncer.run((async()=>{var t,e;this.facets=null!==(e=await(null===(t=this.api)||void 0===t?void 0:t.search({...this.request,query:""}).then((t=>t.facets)).catch((()=>[]))))&&void 0!==e?e:[],this.facetsLoaded=!0}))):this.facets=[]}updateSuggestions(){this.suggestionsLoaded=!1,this.suggestDebouncer.run((async()=>{this.suggestions=this.api&&this.query.length>2?await this.api.getSuggestions(this.suggestRequest).then((t=>t.suggestions)).catch((()=>[])):[],this.suggestionsLoaded=!0}))}onSearchBarKeyUp(t){const e=t.composedPath()[0];this.query=e.value,"Enter"===t.key&&this.launchSearch()}onSearchBarKeyDown(t){var e,i;switch(t.key){case"Escape":this.mobileMenuOpen=!1,null===(e=this.input)||void 0===e||e.blur();break;case"ArrowDown":t.stopPropagation(),t.preventDefault(),null===(i=this.firstSuggestion)||void 0===i||i.focus()}}onFloatingContainerKeyUp(t){var e;"Escape"===t.key&&(this.displayFacets=!1,null===(e=this.filtersOpener)||void 0===e||e.focus())}setQuery(t){this.input&&(this.input.value=t),this.query=t}onSuggestClick(t,e){t.ctrlKey||t.metaKey||this.onSuggestSelected(t,e)}onSuggestKeyUp(t,e){"Enter"!==t.key&&" "!==t.key||this.onSuggestSelected(t,e)}onSuggestSelected(t,e){t.preventDefault(),this.setQuery(e),this.launchSearch()}launchSearch(){if(this.query){let t=this.recentSearches.filter((t=>t.toLowerCase()!==this.query.toLowerCase())).filter(((t,e)=>e<20));this.recentSearches=[this.query,...t],this.saveRecentSearches()}this.focus(),this.dispatchEvent(new Vi(this.request))}saveRecentSearches(){window.localStorage.setItem(this.recentSearchesStorageKey,JSON.stringify(this.recentSearches))}connectedCallback(){super.connectedCallback(),document.addEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer)}updateSize(t){this.sizeCategory=t.detail.category}getLocaleLabel(t){var e;return null!==(e=this.availableContentLocales.filter((e=>{var i;return(null!==(i=e.lang)&&void 0!==i?i:"").toLowerCase()===(null!=t?t:"").toLowerCase()})).map((t=>t.label)).pop())&&void 0!==e?e:t}setFilter(t,e,i){let r=this.searchFilters.filter((e=>e.key!==t));this.facets.forEach((e=>{e.key===t&&oe(e.rootNodes,(t=>t.childNodes)).forEach((t=>t.selected=i.includes(t.value)))})),i.length&&r.push({key:t,label:e,negative:!1,values:i}),this.searchFilters=r,this.scrollToFacet=t}clearFilters(){this.facets.forEach((t=>oe(t.rootNodes,(t=>t.childNodes)).forEach((t=>t.selected=!1)))),this.searchFilters=[];const t=this.facets[0];this.scrollToFacet=null==t?void 0:t.key}removeRecentSearch(t,e){var i,r,o,a;t.preventDefault(),t.stopPropagation();const n=null!==(a=null!==(r=null===(i=this.focusedSuggestion)||void 0===i?void 0:i.previousElementSibling)&&void 0!==r?r:null===(o=this.focusedSuggestion)||void 0===o?void 0:o.nextElementSibling)&&void 0!==a?a:this.input;null==n||n.focus(),this.recentSearches=this.recentSearches.filter((t=>t.toLowerCase()!==e.toLowerCase())),this.saveRecentSearches()}onSuggestKeyDown(t){var e,i,r,o,a,n;switch(t.key){case"ArrowUp":null===(r=null!==(i=null===(e=this.focusedSuggestion)||void 0===e?void 0:e.previousElementSibling)&&void 0!==i?i:this.lastSuggestion)||void 0===r||r.focus(),t.preventDefault(),t.stopPropagation();break;case"ArrowDown":null===(n=null!==(a=null===(o=this.focusedSuggestion)||void 0===o?void 0:o.nextElementSibling)&&void 0!==a?a:this.firstSuggestion)||void 0===n||n.focus(),t.preventDefault(),t.stopPropagation()}}},t.FtSearchBar.elementDefinitions={"ft-accordion":ji,"ft-accordion-item":Ai,"ft-button":We,"ft-chip":Li,"ft-filter":xi,"ft-filter-option":vi,"ft-icon":Ti,"ft-ripple":He,"ft-select":Ni,"ft-select-option":Hi,"ft-size-watcher":Nt,"ft-snap-scroll":mi,"ft-tooltip":Ve,"ft-typography":re,"mwc-icon":Pe},Pi([ot({type:String})],t.FtSearchBar.prototype,"baseUrl",void 0),Pi([ot({type:String})],t.FtSearchBar.prototype,"apiIntegrationIdentifier",void 0),Pi([ot({type:String})],t.FtSearchBar.prototype,"contentLocale",void 0),Pi([at()],t.FtSearchBar.prototype,"availableContentLocales",void 0),Pi([ot({type:String})],t.FtSearchBar.prototype,"uiLocale",void 0),Pi([Ct({})],t.FtSearchBar.prototype,"labels",void 0),Pi([Ct([])],t.FtSearchBar.prototype,"displayedFilters",void 0),Pi([ot()],t.FtSearchBar.prototype,"searchRequestSerializer",void 0),Pi([at()],t.FtSearchBar.prototype,"searchFilters",void 0),Pi([at()],t.FtSearchBar.prototype,"sizeCategory",void 0),Pi([at()],t.FtSearchBar.prototype,"displayFacets",void 0),Pi([at()],t.FtSearchBar.prototype,"mobileMenuOpen",void 0),Pi([at()],t.FtSearchBar.prototype,"facets",void 0),Pi([st(".ft-search-bar--container")],t.FtSearchBar.prototype,"container",void 0),Pi([st(".ft-search-bar--filters-opener")],t.FtSearchBar.prototype,"filtersOpener",void 0),Pi([st(".ft-search-bar--floating-panel")],t.FtSearchBar.prototype,"floatingContainer",void 0),Pi([st("ft-snap-scroll.ft-search-bar--filters-container")],t.FtSearchBar.prototype,"scrollingFiltersContainer",void 0),Pi([st(".ft-search-bar--input")],t.FtSearchBar.prototype,"input",void 0),Pi([at()],t.FtSearchBar.prototype,"query",void 0),Pi([at()],t.FtSearchBar.prototype,"suggestions",void 0),Pi([at()],t.FtSearchBar.prototype,"suggestionsLoaded",void 0),Pi([at()],t.FtSearchBar.prototype,"recentSearches",void 0),Pi([at()],t.FtSearchBar.prototype,"scrollToFacet",void 0),Pi([st(".ft-search-bar--suggestion:first-child")],t.FtSearchBar.prototype,"firstSuggestion",void 0),Pi([st(".ft-search-bar--suggestion:focus-within")],t.FtSearchBar.prototype,"focusedSuggestion",void 0),Pi([st(".ft-search-bar--suggestion:last-child")],t.FtSearchBar.prototype,"lastSuggestion",void 0),Pi([at()],t.FtSearchBar.prototype,"api",void 0),t.FtSearchBar=Pi([Ot("ft-search-bar")],t.FtSearchBar),t.DEFAULT_LABELS=Ui,t.LaunchSearchEvent=Vi,t.SearchStateChangeEvent=qi,Object.defineProperty(t,"t",{value:!0})}({});
476
+ */;let ur=class extends hr{};ur.styles=[fr],ur=ii([rt("mwc-radio")],ur);var mr=function(t,e,i,r){for(var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,c=t.length-1;c>=0;c--)(o=t[c])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const br={borderRadiusM:Rt.external(Ft.borderRadiusM,"Design system"),colorOutline:Rt.external(Ft.colorOutline,"Design system"),colorOnSurface:Rt.external(Ft.colorOnSurface,"Design system"),colorOnSurfaceMedium:Rt.external(Ft.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:Rt.external(Ft.colorOnSurfaceDisabled,"Design system"),colorPrimary:Rt.external(Ft.colorPrimary,"Design system"),colorOnPrimary:Rt.external(Ft.colorOnPrimary,"Design system"),fontFamily:Rt.external($e.fontFamily,"Body2 typography"),fontSize:Rt.external($e.fontSize,"Body2 typography"),fontWeight:Rt.external($e.fontWeight,"Body2 typography"),letterSpacing:Rt.external($e.letterSpacing,"Body2 typography"),lineHeight:Rt.external($e.lineHeight,"Body2 typography"),textTransform:Rt.external($e.textTransform,"Body2 typography")};let vr=class extends Tt{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[a`.ft-filter-level--container{display:flex;flex-direction:column}.ft-filter-level--container>*{padding:0 10px}.ft-filter-level--go-back{flex-shrink:0;text-decoration:none;position:relative;border-radius:${br.borderRadiusM};overflow:hidden;display:flex;align-items:center;padding:4px 4px;gap:4px;cursor:pointer;color:${br.colorOnSurface}}.ft-filter-level--go-back:focus{outline:0}.ft-filter-level--go-back mwc-icon{flex-shrink:0}.ft-filter-level--go-back ft-typography{display:block;flex-grow:1;flex-shrink:0}.ft-filter-level--option{display:flex;align-items:center;max-width:100%}.ft-filter-level--option ft-button{margin-right:-10px;flex-shrink:0}ft-button{${Bt(Ki.color,br.colorOnSurface)}}mwc-formfield{flex-shrink:1;flex-grow:1;display:block;max-width:calc(100% + 10px);margin-left:-10px;word-break:break-word;--mdc-theme-secondary:${br.colorPrimary}--mdc-radio-unchecked-color:${br.colorOnSurfaceMedium}--mdc-checkbox-unchecked-color:${br.colorOnSurfaceMedium}--mdc-checkbox-ink-color:${br.colorOnPrimary}--mdc-radio-disabled-color:${br.colorOnSurfaceDisabled}--mdc-checkbox-disabled-color:${br.colorOnSurfaceDisabled}--mdc-theme-on-surface:${br.colorPrimary}--mdc-typography-body2-font-family:${br.fontFamily}--mdc-typography-body2-font-size:${br.fontSize}--mdc-typography-body2-font-weight:${br.fontWeight}--mdc-typography-body2-letter-spacing:${br.letterSpacing}--mdc-typography-body2-line-height:${br.lineHeight}--mdc-typography-body2-text-transform:${br.textTransform}--mdc-theme-text-primary-on-background:${br.colorOnSurface}}.ft-filter--disabled{--mdc-theme-text-primary-on-background:${br.colorOnSurfaceDisabled}}`]}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 N`<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">${null==this.parent?null:N`<div tabindex="0" class="ft-filter-level--go-back" ?disabled="${this.disabled}" @keyup="${this.goBackOnKeyPress}" @click="${this.goBackOnClick}"><ft-ripple></ft-ripple><mwc-icon>chevron_left</mwc-icon><ft-typography variant="body2">${this.parent.label}</ft-typography></div>`} ${St(e,(t=>t.value),(t=>{var e;return N`<div class="ft-filter-level--option" part="options">${this.multivalued?this.buildMultiValuedOption(t):this.buildMonoValuedOption(t)} ${this.preventNavigation||t.selected||0===(null!==(e=t.subOptions)&&void 0!==e?e:[]).length?M:N`<ft-button icon="chevron_right" label="${t.label}" ?disabled="${this.disabled}" tooltipPosition="left" @click="${()=>this.displayLevel(t)}"></ft-button>`}</div>`}))} ${e.length<t.length?N`<ft-button class="ft-filter-level--display-more" icon="expand_more" dense trailingIcon @click="${this.displayMore}">${this.moreValuesButtonLabel}</ft-button>`:M}</div>`}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 N`<mwc-formfield label="${t.label}"><mwc-checkbox reducedTouchTarget ?checked="${t.selected}" ?disabled="${this.disabled}" ?indeterminate="${Ge(null!==(e=t.subOptions)&&void 0!==e?e:[],(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]})).some((t=>t.selected))}" @change="${e=>this.toggleMultiValuedOption(e,t)}"></mwc-checkbox></mwc-formfield>`}toggleMultiValuedOption(t,e){var i;Ge(null!==(i=e.subOptions)&&void 0!==i?i:[],(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]})).forEach((t=>t.selected=!1)),this.optionsChanged(t,e)}buildMonoValuedOption(t){return N`<mwc-formfield label="${t.label}"><mwc-radio reducedTouchTarget name="${this.id}" ?checked="${t.selected}" ?disabled="${this.disabled}" @click="${e=>this.toggleMonoValuedOption(e,t)}"></mwc-radio></mwc-formfield>`}toggleMonoValuedOption(t,e){this.optionsChanged(t,e)}optionsChanged(t,e){t.stopPropagation(),e.selected=!e.selected,this.dispatchEvent(new CustomEvent("change",{detail:e}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}};vr.elementDefinitions={"ft-button":Yi,"ft-ripple":Fi,"ft-typography":qe,"mwc-checkbox":Ei,"mwc-formfield":nr,"mwc-icon":Ai,"mwc-radio":ur},mr([nt({type:String})],vr.prototype,"id",void 0),mr([nt({type:Object})],vr.prototype,"parent",void 0),mr([nt({type:Array})],vr.prototype,"options",void 0),mr([nt({type:Boolean})],vr.prototype,"multivalued",void 0),mr([nt({type:Boolean})],vr.prototype,"disabled",void 0),mr([nt({type:Boolean})],vr.prototype,"hideSelectedOptions",void 0),mr([nt({type:Boolean})],vr.prototype,"preventNavigation",void 0),mr([nt({type:String})],vr.prototype,"filter",void 0),mr([nt({type:String})],vr.prototype,"moreValuesButtonLabel",void 0),mr([nt({type:Number})],vr.prototype,"displayedValuesLimit",void 0),mr([lt(".ft-filter-level--container")],vr.prototype,"container",void 0),mr([at()],vr.prototype,"displayedPages",void 0),vr=mr([Ct("ft-filter-level")],vr);var gr=function(t,e,i,r){for(var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,c=t.length-1;c>=0;c--)(o=t[c])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const yr={buttonsColor:Rt.extend("--ft-snap-scroll-buttons-color",Ft.colorPrimary),buttonsZIndex:Rt.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:Rt.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:Rt.external(Ft.colorSurface,"Design system")};class xr extends CustomEvent{constructor(t,e){super("current-element-change",{detail:{index:t,element:e}})}}let kr=class extends Tt{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 zt(200),this.updateScrollDebouncer=new zt(100)}getStyles(){return a`.ft-snap-scroll{box-sizing:border-box;position:relative;display:flex;--ft-snap-scroll-transparent-color:transparent}.ft-snap-scroll.ft-snap-scroll--safari-fix{--ft-snap-scroll-transparent-color:rgba(255, 255, 255, 0)}.ft-snap-scroll,.ft-snap-scroll--content{overflow:hidden}.ft-snap-scroll--limit-size,.ft-snap-scroll--limit-size .ft-snap-scroll--content{width:100%;height:100%}.ft-snap-scroll--content{flex-grow:1;flex-shrink:1;box-sizing:border-box;scroll-snap-align:start;display:flex;flex-wrap:nowrap;align-items:flex-start;justify-content:flex-start;gap:${yr.gap}}.ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar{display:none}.ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content{-ms-overflow-style:none;scrollbar-width:none}.ft-snap-scroll--content::slotted(*){flex-shrink:0;flex-grow:1;max-height:100%;max-width:100%}.ft-snap-scroll--horizontal,.ft-snap-scroll--horizontal .ft-snap-scroll--content{width:100%}.ft-snap-scroll--vertical,.ft-snap-scroll--vertical .ft-snap-scroll--content{height:100%}.ft-snap-scroll--horizontal .ft-snap-scroll--content{flex-direction:row;overflow-x:auto}.ft-snap-scroll--vertical .ft-snap-scroll--content{flex-direction:column;overflow-y:auto}.ft-snap-scroll--next,.ft-snap-scroll--previous{position:absolute;display:flex;z-index:${yr.buttonsZIndex};opacity:1;transition:background-color .5s ease-in-out,opacity .5s ease-in-out,z-index .5s ease-in-out;${Bt(Ki.backgroundColor,"transparent")}${Bt(Ki.color,yr.buttonsColor)}}.ft-snap-scroll--next[hidden],.ft-snap-scroll--previous[hidden]{z-index:-1;opacity:0}.ft-snap-scroll--horizontal .ft-snap-scroll--previous{top:0;left:-1px;bottom:0;background:linear-gradient(to right,${yr.colorSurface} 50%,var(--ft-snap-scroll-transparent-color))}.ft-snap-scroll--vertical .ft-snap-scroll--previous{top:-1px;left:0;right:0;background:linear-gradient(to bottom,${yr.colorSurface} 50%,var(--ft-snap-scroll-transparent-color))}.ft-snap-scroll--horizontal .ft-snap-scroll--next{top:0;right:-1px;bottom:0;background:linear-gradient(to left,${yr.colorSurface} 50%,var(--ft-snap-scroll-transparent-color))}.ft-snap-scroll--vertical .ft-snap-scroll--next{left:0;right:0;bottom:-1px;background:linear-gradient(to top,${yr.colorSurface} 50%,var(--ft-snap-scroll-transparent-color))}.ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,.ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,.ft-snap-scroll--vertical .ft-snap-scroll--next:hover,.ft-snap-scroll--vertical .ft-snap-scroll--previous:hover{background-color:${yr.colorSurface}}`}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=Ot({"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":Dt}),e=this.controls&&this.withScroll;return N`<div part="container" class="${t}"><ft-button class="ft-snap-scroll--previous" part="controls" primary icon="${this.horizontal?"arrow_back_ios_new":"expand_less"}" ?hidden="${!e||this.startReached}" ?disabled="${!e||this.startReached}" @click="${this.previous}"></ft-button><slot class="ft-snap-scroll--content" part="content" @slotchange="${this.onSlotChange}"></slot><ft-button class="ft-snap-scroll--next" part="controls" primary icon="${this.horizontal?"arrow_forward_ios":"expand_more"}" ?hidden="${!e||this.endReached}" ?disabled="${!e||this.endReached}" @click="${this.next}"></ft-button></div>`}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 xr(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)}};kr.elementDefinitions={"ft-button":Yi},gr([nt({type:Boolean})],kr.prototype,"horizontal",void 0),gr([nt({type:Boolean})],kr.prototype,"hideScrollbar",void 0),gr([nt({type:Boolean})],kr.prototype,"controls",void 0),gr([nt({type:Boolean})],kr.prototype,"limitSize",void 0),gr([at()],kr.prototype,"elements",void 0),gr([at()],kr.prototype,"currentElement",void 0),gr([at()],kr.prototype,"withScroll",void 0),gr([at()],kr.prototype,"startReached",void 0),gr([at()],kr.prototype,"endReached",void 0),gr([lt(".ft-snap-scroll--content")],kr.prototype,"contentSlot",void 0),kr=gr([Ct("ft-snap-scroll")],kr);var wr=function(t,e,i,r){for(var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,c=t.length-1;c>=0;c--)(o=t[c])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};let $r=class extends Tt{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}getTemplate(){return N`<slot @slotchange="${this.updateSubOptionsFromSlot}"></slot>`}updateSubOptionsFromSlot(t){const e=t.composedPath()[0];this.subOptions=e.assignedElements().map((t=>t))}};$r.elementDefinitions={},wr([nt({type:String})],$r.prototype,"label",void 0),wr([nt({type:Object,converter:t=>t})],$r.prototype,"value",void 0),wr([nt({type:Boolean,reflect:!0})],$r.prototype,"selected",void 0),wr([nt({type:Object})],$r.prototype,"subOptions",void 0),$r=wr([Ct("ft-filter-option")],$r);var _r=function(t,e,i,r){for(var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,c=t.length-1;c>=0;c--)(o=t[c])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const Sr=Rt.external(Ft.colorOutline,"Design system"),Or=Rt.external(Ft.colorOnSurface,"Design system"),zr=Rt.external(Ft.colorOnSurfaceMedium,"Design system"),Cr=Rt.external(Ft.colorPrimary,"Design system"),Er=Rt.external(Ft.colorSurface,"Design system"),Rr=Rt.external(Ft.transitionDuration,"Design system"),Br=Rt.external(Ft.transitionTimingFunction,"Design system");class Fr extends CustomEvent{constructor(t){super("change",{detail:t})}}let Tr=class extends Tt{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 zt(300)}getStyles(){return[Ve,a`
477
+ :host {
478
+ display: flex;
479
+ max-height: 100%;
480
+ max-width: 100%;
481
+ }
482
+
483
+ .ft-filter--container {
484
+ flex-grow: 1;
485
+ display: flex;
486
+ flex-direction: column;
487
+ max-height: 100%;
488
+ max-width: 100%;
489
+ color: ${Or};
490
+ background: ${Er};
491
+ }
492
+
493
+ .ft-filter--header {
494
+ display: flex;
495
+ flex-wrap: wrap;
496
+ gap: 4px;
497
+ flex-shrink: 0;
498
+ padding: 0 10px;
499
+ margin-bottom: 8px;
500
+ ${Bt(Jt.fontSize,"14px")};
501
+ }
502
+
503
+ .ft-filter--header ft-button {
504
+ flex-shrink: 0;
505
+ margin-left: auto;
506
+ ${Bt(Ki.iconSize,"18px")};
507
+ }
508
+
509
+ .ft-filter--label {
510
+ display: block;
511
+ flex-shrink: 1;
512
+ flex-grow: 1;
513
+ word-break: break-word;
514
+ ${Bt(Jt.lineHeight,"22px")};
515
+ ${Bt(Jt.fontWeight,"bold")};
516
+ }
517
+
518
+ .ft-filter--filter {
519
+ flex-shrink: 0;
520
+ display: flex;
521
+ margin: 0;
522
+ margin-bottom: 8px;
523
+ padding: 0 10px;
524
+ overflow: hidden;
525
+ height: 32px;
526
+ transition: height ${Rr} ${Br},
527
+ margin ${Rr} ${Br};
528
+ transition-delay: 500ms;
529
+ }
530
+
531
+ .ft-filter--filter[hidden] {
532
+ height: 0;
533
+ margin-bottom: 0;
534
+ }
535
+
536
+ input {
537
+ display: block;
538
+ width: 100%;
539
+ border-radius: 4px;
540
+ border: 1px solid ${Sr};
541
+ padding: 4px;
542
+ background-color: ${Er};
543
+ color: ${zr};
544
+ outline-color: ${Cr};
545
+ }
546
+
547
+ .ft-filter--values {
548
+ flex-grow: 1;
549
+ flex-shrink: 1;
550
+ max-width: 100%;
551
+ overflow-x: hidden;
552
+ overflow-y: auto;
553
+ }
554
+
555
+ .ft-filter--separator {
556
+ border-top: 1px solid ${Sr};
557
+ margin: 4px 10px;
558
+ }
559
+
560
+ .ft-filter--levels-container {
561
+ position: relative;
562
+ overflow: hidden;
563
+ }
564
+
565
+ .ft-filter--levels {
566
+ position: relative;
567
+ overflow: hidden;
568
+ }
569
+
570
+ ft-filter-level {
571
+ width: 100%;
572
+ }
573
+
574
+ .ft-filter--level-left {
575
+ height: 0;
576
+ }
577
+
578
+ slot {
579
+ display: none;
580
+ }
581
+ `]}get flatOptions(){return Ge(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 N`
582
+ <div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
583
+ part="container">
584
+ ${this.label||i?N`
585
+ <div class="ft-filter--header" part="header">
586
+ <ft-typography class="ft-filter--label" variant="overline" part="label">${this.label}
587
+ </ft-typography>
588
+ ${i?N`
589
+ <ft-button icon="close" dense @click=${this.clear} part="clear-button">
590
+ ${this.clearButtonLabel}
591
+ </ft-button>
592
+ `:null}
593
+ </div>
594
+ `:null}
595
+ <div class="ft-filter--filter" ?hidden=${!r}>
596
+ <input type="search"
597
+ part="input"
598
+ class="ft-typography--caption"
599
+ ?disabled=${!r}
600
+ placeholder="${this.filterPlaceHolder.replace("{0}",this.label)}"
601
+ @keyup=${this.onFilterChange}>
602
+ </div>
603
+ <div class="ft-filter--values">
604
+ ${this.renderLevels()}
605
+ </div>
606
+ <slot @slotchange=${this.updateOptionsFromSlot}></slot>
607
+ </div>
608
+ `}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 N`
609
+ ${this.raiseSelectedOptions&&e.length>0?N`
610
+ <ft-filter-level
611
+ id="${this.id}"
612
+ ?multivalued=${this.multivalued}
613
+ ?disabled=${this.disabled}
614
+ preventNavigation
615
+ .options=${e}
616
+ @change=${this.onChange}
617
+ part="selected-values"
618
+ ></ft-filter-level>
619
+ <div class="ft-filter--separator">
620
+ `:null}
621
+ <ft-snap-scroll horizontal hideScrollbar
622
+ class="ft-filter--levels"
623
+ @current-element-change=${t=>this.levelsScrollDebouncer.run((()=>{for(;t.detail.index<this.displayedLevels.length;)this.displayedLevels.pop();this.requestUpdate()}))}>
624
+ ${this.renderLevel(r,this.options)}
625
+ ${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)}))}
626
+ </ft-snap-scroll>
627
+ `}renderLevel(t,e,i){return N`
628
+ <ft-filter-level
629
+ class="${t}"
630
+ id="${this.id}"
631
+ filter="${this.filter}"
632
+ moreValuesButtonLabel="${this.moreValuesButtonLabel}"
633
+ ?multivalued=${this.multivalued}
634
+ ?disabled=${this.disabled||"ft-filter--level-center"!==t}
635
+ ?hideSelectedOptions=${this.raiseSelectedOptions}
636
+ .parent=${i}
637
+ .options=${e}
638
+ .displayedValuesLimit=${this.displayedValuesLimit}
639
+ @change=${this.onChange}
640
+ @go-back=${this.goBack}
641
+ @display-level=${this.onDisplayLevel}
642
+ part="values"
643
+ ></ft-filter-level>
644
+ `}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){if(t.stopPropagation(),!this.multivalued){const e=i=>{var r;i.value!==t.detail.value&&(i.selected=!1),null===(r=i.subOptions)||void 0===r||r.forEach(e)};this.options.forEach(e)}this.optionsChanged()}optionsChanged(){var t;const e=this.flatOptions.filter((t=>t.selected)).map((t=>t.value));this.dispatchEvent(new Fr(e)),this.requestUpdate(),null===(t=this.levels)||void 0===t||t.forEach((t=>t.requestUpdate()))}updateOptionsFromSlot(t){const e=t.composedPath()[0];this.options=e.assignedElements().map((t=>t))}onFilterChange(t){const e=t.composedPath()[0];this.filter=e.value}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};Tr.elementDefinitions={"ft-button":Yi,"ft-filter-level":vr,"ft-snap-scroll":kr,"ft-typography":qe},_r([nt({type:String})],Tr.prototype,"id",void 0),_r([nt({type:String})],Tr.prototype,"label",void 0),_r([nt({type:String})],Tr.prototype,"filterPlaceHolder",void 0),_r([nt({type:String})],Tr.prototype,"clearButtonLabel",void 0),_r([nt({type:String})],Tr.prototype,"moreValuesButtonLabel",void 0),_r([nt({type:Array})],Tr.prototype,"options",void 0),_r([nt({type:Boolean})],Tr.prototype,"multivalued",void 0),_r([nt({type:Boolean})],Tr.prototype,"disabled",void 0),_r([nt({type:Boolean})],Tr.prototype,"raiseSelectedOptions",void 0),_r([nt({type:Number})],Tr.prototype,"displayedValuesLimit",void 0),_r([lt(".ft-filter--container")],Tr.prototype,"container",void 0),_r([lt(".ft-filter--values")],Tr.prototype,"valuesContainer",void 0),_r([lt(".ft-filter--levels")],Tr.prototype,"levelsContainer",void 0),_r([lt(".ft-filter--levels ft-filter-level:last-child")],Tr.prototype,"lastLevel",void 0),_r([function(t){return ct({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")],Tr.prototype,"levels",void 0),_r([at()],Tr.prototype,"withScroll",void 0),_r([at()],Tr.prototype,"filter",void 0),_r([at()],Tr.prototype,"slideIn",void 0),_r([at()],Tr.prototype,"slideOut",void 0),Tr=_r([Ct("ft-filter")],Tr);
645
+ /**
646
+ * @license
647
+ * Copyright 2017 Google LLC
648
+ * SPDX-License-Identifier: BSD-3-Clause
649
+ */
650
+ class Ar extends vt{constructor(t){if(super(t),this.it=M,t.type!==mt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===M||null==t)return this.vt=void 0,this.it=t;if(t===j)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:[]}}}Ar.directiveName="unsafeHTML",Ar.resultType=1;const Nr=bt(Ar);var jr,Mr;!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;"}(jr||(jr={})),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;"}(Mr||(Mr={}));const Lr=new Map([...["abw"].map((t=>[t,Mr.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,Mr.AUDIO])),...["avi"].map((t=>[t,Mr.AVI])),...["chm","xhs"].map((t=>[t,Mr.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,Mr.CODE])),...["csv"].map((t=>[t,Mr.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Mr.DITA])),...["epub"].map((t=>[t,Mr.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Mr.EXCEL])),...["flac"].map((t=>[t,Mr.FLAC])),...["gif"].map((t=>[t,Mr.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Mr.GZIP])),...["html","htm","xhtml"].map((t=>[t,Mr.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,Mr.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Mr.JPEG])),...["json"].map((t=>[t,Mr.JSON])),...["m4a","m4p"].map((t=>[t,Mr.M4A])),...["mov","qt"].map((t=>[t,Mr.MOV])),...["mp3"].map((t=>[t,Mr.MP3])),...["mp4","m4v"].map((t=>[t,Mr.MP4])),...["ogg","oga"].map((t=>[t,Mr.OGG])),...["pdf","ps"].map((t=>[t,Mr.PDF])),...["png"].map((t=>[t,Mr.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Mr.POWERPOINT])),...["rar"].map((t=>[t,Mr.RAR])),...["stp"].map((t=>[t,Mr.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Mr.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,Mr.VIDEO])),...["wav"].map((t=>[t,Mr.WAV])),...["wma"].map((t=>[t,Mr.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Mr.WORD])),...["xml","xsl","rdf"].map((t=>[t,Mr.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Mr.YAML])),...["zip"].map((t=>[t,Mr.ZIP]))]),Dr=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);var Ir,Ur=function(t,e,i,r){for(var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,c=t.length-1;c>=0;c--)(o=t[c])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format"}(Ir||(Ir={}));const Pr=Rt.create("--ft-icon-font-size","SIZE","24px"),Hr=Rt.extend("--ft-icon-fluid-topics-font-family",Rt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),Vr=Rt.extend("--ft-icon-file-format-font-family",Rt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),Zr=a`
651
+ .ft-icon--fluid-topics {
652
+ font-family: ${Hr}, ft-icons, fticons, sans-serif;
653
+ font-size: ${Pr};
654
+ line-height: 1;
655
+ font-weight: normal;
656
+ text-transform: none;
657
+ font-style: normal;
658
+ font-variant: normal;
659
+ speak: none;
660
+ text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
661
+ text-rendering: auto;
662
+ -webkit-font-smoothing: antialiased;
663
+ -moz-osx-font-smoothing: grayscale;
664
+ }
665
+ `,Wr=a`
666
+ .ft-icon--file-format {
667
+ font-family: ${Vr}, ft-mime, sans-serif;
668
+ font-size: ${Pr};
669
+ line-height: 1;
670
+ font-weight: normal;
671
+ text-transform: none;
672
+ font-style: normal;
673
+ font-variant: normal;
674
+ speak: none;
675
+ text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
676
+ text-rendering: auto;
677
+ -webkit-font-smoothing: antialiased;
678
+ -moz-osx-font-smoothing: grayscale;
679
+ }
680
+ `;let Kr=class extends Tt{constructor(){super(...arguments),this.variant=Ir.fluid_topics}getStyles(){return[Zr,Wr,a`
681
+ :host, i.ft-icon {
682
+ display: inline-block;
683
+ width: ${Pr};
684
+ height: ${Pr};
685
+ text-align: center;
686
+ }
687
+ `]}getTemplate(){return Wt`
688
+ <slot @slotchange=${()=>this.requestUpdate()} hidden></slot>
689
+ <i class="ft-icon ${"ft-icon--"+this.variant}">${Nr(this.getIcon())}</i>
690
+ `}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;return this.variant===Ir.file_format?null!==(t=Mr[this.textContent.toUpperCase()])&&void 0!==t?t:this.textContent:null!==(e=jr[this.textContent.toUpperCase()])&&void 0!==e?e:this.textContent}};Kr.elementDefinitions={},Ur([nt()],Kr.prototype,"variant",void 0),Ur([lt("slot")],Kr.prototype,"slottedContent",void 0),Kr=Ur([Ct("ft-icon")],Kr);var qr=function(t,e,i,r){for(var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,c=t.length-1;c>=0;c--)(o=t[c])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const Gr=Rt.create("--ft-accordion-toggle-horizontal-spacing","SIZE","16px"),Xr=Rt.create("--ft-accordion-toggle-vertical-spacing","SIZE","16px"),Jr=Rt.external(Ft.colorOutline,"Design system");let Yr=class extends Tt{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}getStyles(){return a`.ft-accordion-item{display:flex;flex-direction:column}.ft-accordion-item--toggle{flex-shrink:0;flex-grow:0;position:relative;display:flex;align-items:center;cursor:pointer;padding:${Xr};${Gr}gap:calc(${Gr} / 2);outline:0}.ft-accordion-item--label{flex-grow:1;flex-shrink:1;display:block}.ft-accordion-item--content{box-sizing:border-box;flex-shrink:1;flex-grow:1;overflow:hidden;height:0}.ft-accordion-item--active .ft-accordion-item--content{height:initial;overflow:visible;padding:${Xr};${Gr}}.ft-accordion-item--separator{border-bottom:1px solid ${Jr}}`}getTemplate(){return N`<div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}"><div class="ft-accordion-item--toggle" part="toggle" @click="${()=>this.active=!this.active}" @keydown="${this.onToggleKeyDown}" tabindex="0"><ft-ripple part="toggle-ripple"></ft-ripple>${this.icon?N`<mwc-icon>${this.icon}</mwc-icon>`:null} ${this.label?N`<ft-typography class="ft-accordion-item--label" variant="body1" part="label">${this.label}</ft-typography>`:N`<slot class="ft-accordion-item--label" name="toggle" part="label"></slot>`}<mwc-icon>${this.active?"expand_less":"expand_more"}</mwc-icon></div><div class="ft-accordion-item--content" part="content" @focusin="${()=>this.active=!0}"><slot></slot></div><div class="ft-accordion-item--separator" part="separator"></div></div>`}update(t){super.update(t),t.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.active=!this.active)}};Yr.elementDefinitions={"ft-ripple":Fi,"ft-typography":qe,"mwc-icon":Ai},qr([nt({type:String})],Yr.prototype,"icon",void 0),qr([nt({type:String})],Yr.prototype,"label",void 0),qr([nt({type:Boolean,reflect:!0})],Yr.prototype,"active",void 0),Yr=qr([Ct("ft-accordion-item")],Yr);var Qr=function(t,e,i,r){for(var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,c=t.length-1;c>=0;c--)(o=t[c])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};let to=class extends Tt{constructor(){super(...arguments),this.multi=!1}getStyles(){return a`.ft-accordion{box-sizing:border-box}`}getTemplate(){return N`<div class="ft-accordion"><slot @activated="${this.onChange}"></slot></div>`}onChange(t){t.stopPropagation(),this.multi||this.content.assignedElements().forEach((e=>e.active=e===t.target))}};to.elementDefinitions={},Qr([nt({type:Boolean})],to.prototype,"multi",void 0),Qr([lt("slot")],to.prototype,"content",void 0),to=Qr([Ct("ft-accordion")],to);var eo=function(t,e,i,r){for(var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,c=t.length-1;c>=0;c--)(o=t[c])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const io=Rt.extend("--ft-chip-color",Ft.colorOnSurface),ro={backgroundColor:Rt.extend("--ft-chip-background-color",Ft.colorSurface),color:io,fontSize:Rt.extend("--ft-chip-font-size",$e.fontSize),iconSize:Rt.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:Rt.extend("--ft-chip-ripple-color",io),horizontalPadding:Rt.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:Rt.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:Rt.external(Ft.colorOutline,"Design system"),opacityDisabled:Rt.external(Ft.colorOpacityDisabled,"Design system")},oo=Rt.extend("--ft-chip-highlighted-color",Rt.extend("--ft-chip-color",Ft.colorOnPrimary)),no={backgroundColor:Rt.extend("--ft-chip-highlighted-background-color",Rt.extend("--ft-chip-background-color",Ft.colorPrimary)),color:oo,rippleColor:Rt.extend("--ft-chip-highlighted-ripple-color",oo)},ao=Rt.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),co=Rt.create("--ft-chip-dense-vertical-padding","SIZE","4px");class so extends CustomEvent{constructor(){super("icon-click")}}let lo=class extends Tt{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.icon=void 0,this.trailingIcon=!1}getStyles(){return[At,a`:host{display:inline-block;max-width:100%}.ft-chip{position:relative;display:flex;justify-content:center;align-items:center;width:100%;overflow:hidden;box-sizing:border-box;--ft-chip-internal-font-size:${ro.fontSize}--ft-chip-internal-line-height:max(20px, calc(var(--ft-chip-internal-font-size) + 2px));--mdc-icon-size:${ro.iconSize}--ft-chip-internal-vertical-padding:${ro.verticalPadding}--ft-chip-internal-horizontal-padding:${ro.horizontalPadding}--ft-chip-internal-icon-padding:3px;--ft-chip-internal-content-height:max(var(--ft-chip-internal-line-height), var(--mdc-icon-size));border:1px solid ${ro.colorOutline};color:${ro.color};${Bt(Bi.color,ro.rippleColor)}border-radius:calc(var(--ft-chip-internal-content-height)/ 2 + var(--ft-chip-internal-vertical-padding));padding:calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);background-color:${ro.backgroundColor};line-height:var(--ft-chip-internal-content-height)}.ft-chip--dense{--ft-chip-internal-icon-padding:3px;--ft-chip-internal-vertical-padding:${co}--ft-chip-internal-horizontal-padding:${ao}--ft-chip-internal-line-height:max(16px, calc(var(--ft-chip-internal-font-size) + 2px))}.ft-chip--no-content{--ft-chip-internal-horizontal-padding:var(--ft-chip-horizontal-padding, var(--ft-chip-internal-vertical-padding))}.ft-chip--disabled{cursor:default;pointer-events:none;filter:grayscale(1);opacity:${ro.opacityDisabled}}.ft-chip--highlighted{border:none;padding:var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);background-color:${no.backgroundColor};${Bt(Bi.color,no.rippleColor)}color:${no.color}}.ft-chip--clickable{cursor:pointer;-webkit-mask-image:radial-gradient(white,#000)}.ft-chip:focus{outline:0}.ft-chip--icon-container{display:inline-flex;position:relative;overflow:hidden;border-radius:100%;justify-content:center;align-items:center;flex-shrink:0;padding:var(--ft-chip-internal-icon-padding);margin:calc((-1) * var(--ft-chip-internal-icon-padding))}.ft-chip--label{display:block;margin:0 var(--ft-chip-internal-horizontal-padding);${Bt($e.lineHeight,"var(--ft-chip-internal-content-height)")}}.ft-chip--safari-fix .ft-chip--label{margin-right:0}.ft-chip:not(.ft-chip--multi-line) .ft-chip--label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ft-chip--safari-fix:not(.ft-chip--multi-line) .ft-chip--label:after{content:"\\0000a0";display:inline-block;width:0}.ft-chip--no-content .ft-chip--label{display:none}.ft-chip--no-content .ft-chip--label+.ft-chip--icon-container{width:var(--ft-chip-internal-content-height);height:var(--ft-chip-internal-content-height)}.ft-chip--icon-container:focus{outline:0}.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-container{order:-1}`]}getTemplate(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Dt};return N`<div class="${Ot(t)}" aria-label="${this.getLabel()}" tabindex="${this.interactionsOnChip?0:-1}" @keyup="${this.onKeyUp}"><ft-ripple ?disabled="${!this.interactionsOnChip}"></ft-ripple><ft-typography variant="body2" element="span" class="ft-chip--label"><slot @slotchange="${this.onSlotchange}"></slot></ft-typography>${this.internalIcon?this.renderIcon():null}</div>`}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return N`<div class="ft-chip--icon-container ft-no-text-select ${this.interactionsOnIcon?"ft-chip--clickable":""}" tabindex="${this.interactionsOnIcon?0:-1}" @click="${this.onIconClick}" @keyup="${this.onIconKeyUp}"><ft-ripple ?disabled="${!this.interactionsOnIcon}"></ft-ripple><mwc-icon>${this.internalIcon}</mwc-icon></div>`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new so))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new so))}getLabel(){return this.label||this.textContent}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:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"cancel":void 0)}};lo.elementDefinitions={"ft-ripple":Fi,"ft-typography":qe,"mwc-icon":Ai},eo([nt({type:Boolean})],lo.prototype,"highlighted",void 0),eo([nt({type:Boolean})],lo.prototype,"removable",void 0),eo([nt({type:Boolean})],lo.prototype,"disabled",void 0),eo([nt({type:Boolean})],lo.prototype,"clickable",void 0),eo([nt({type:Boolean})],lo.prototype,"iconClickable",void 0),eo([nt({type:Boolean})],lo.prototype,"dense",void 0),eo([nt({type:Boolean})],lo.prototype,"multiLine",void 0),eo([nt({type:String})],lo.prototype,"label",void 0),eo([nt({type:String})],lo.prototype,"icon",void 0),eo([nt({type:Boolean})],lo.prototype,"trailingIcon",void 0),eo([lt("ft-typography slot")],lo.prototype,"slottedContent",void 0),lo=eo([Ct("ft-chip")],lo);var po=function(t,e,i,r){for(var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,c=t.length-1;c>=0;c--)(o=t[c])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const ho={fontSize:Rt.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:Rt.create("--ft-input-label-raised-font-size","SIZE","11px"),verticalSpacing:Rt.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:Rt.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:Rt.extend("--ft-input-label-border-color",Ft.colorOutline),textColor:Rt.extend("--ft-input-label-text-color",Ft.colorOnSurfaceMedium),disabledTextColor:Rt.extend("--ft-input-label-disabled-text-color",Ft.colorOnSurfaceDisabled),borderRadiusS:Rt.external(Ft.borderRadiusS,"Design system")};let fo=class extends Tt{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1}getStyles(){return[Ve,a`
691
+ .ft-input-label {
692
+ position: absolute;
693
+ inset: 0;
694
+ display: flex;
695
+ }
696
+
697
+ .ft-input-label {
698
+ border-color: ${ho.borderColor};
699
+ }
700
+
701
+ .ft-input-label:before,
702
+ .ft-input-label:after {
703
+ content: "";
704
+ display: flex;
705
+ border-bottom-width: 1px;
706
+ border-bottom-style: solid;
707
+ border-color: inherit;
708
+ }
709
+
710
+ .ft-input-label:before {
711
+ width: ${ho.horizontalSpacing};
712
+ flex-shrink: 0;
713
+ }
714
+
715
+ .ft-input-label:after {
716
+ flex-grow: 1;
717
+ flex-shrink: 1;
718
+ }
719
+
720
+ .ft-input-label--text {
721
+ display: flex;
722
+ flex-shrink: 1;
723
+ position: relative;
724
+ border-bottom-width: 1px;
725
+ border-bottom-style: solid;
726
+ border-color: inherit;
727
+ padding: 0 4px;
728
+ color: ${ho.textColor};
729
+ transition: font-size 250ms, line-height 250ms, color 250ms;
730
+ ${Bt(_e.fontSize,ho.fontSize)};
731
+ ${Bt(_e.lineHeight,ho.fontSize)};
732
+ }
733
+
734
+ .ft-input-label--disabled .ft-input-label--text {
735
+ color: ${ho.disabledTextColor};
736
+ }
737
+
738
+ .ft-input-label--hidden-text {
739
+ opacity: 0;
740
+ }
741
+
742
+ .ft-input-label--floating-text {
743
+ position: absolute;
744
+ top: calc(50% - var(--ft-typography-caption-line-height) / 2);
745
+ transition: top 250ms;
746
+ width: calc(100% - 8px);
747
+ overflow: hidden;
748
+ white-space: nowrap;
749
+ text-overflow: ellipsis;
750
+ padding: ${ho.verticalSpacing} 0;
751
+ margin: calc(${ho.verticalSpacing} * -1) 0;
752
+ }
753
+
754
+ .ft-input-label--raised .ft-input-label--text {
755
+ ${Bt(_e.fontSize,ho.raisedFontSize)};
756
+ ${Bt(_e.lineHeight,ho.raisedFontSize)};
757
+ }
758
+
759
+ .ft-input-label--raised .ft-input-label--floating-text {
760
+ top: ${ho.verticalSpacing};
761
+ }
762
+
763
+ .ft-input-label--outlined .ft-input-label--text,
764
+ .ft-input-label--outlined:before,
765
+ .ft-input-label--outlined:after {
766
+ border-top-width: 1px;
767
+ border-top-style: solid;
768
+ }
769
+
770
+ .ft-input-label--outlined:before {
771
+ border-left-width: 1px;
772
+ border-left-style: solid;
773
+ border-radius: ${ho.borderRadiusS} 0 0 ${ho.borderRadiusS};
774
+ }
775
+
776
+ .ft-input-label--outlined:after {
777
+ border-right-width: 1px;
778
+ border-right-style: solid;
779
+ border-radius: 0 ${ho.borderRadiusS} ${ho.borderRadiusS} 0;
780
+ }
781
+
782
+ .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
783
+ top: calc(var(--ft-typography-caption-line-height) / -2);
784
+ }
785
+
786
+ .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
787
+ border-top: none;
788
+ }
789
+ `]}getTemplate(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled};return N`
790
+ <div class="${Ot(t)}">
791
+ ${this.text?N`
792
+ <div class="ft-input-label--text ft-typography--caption">
793
+ <span class="ft-input-label--floating-text">${this.text}</span>
794
+ <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
795
+ </div>
796
+ `:null}
797
+ </div>
798
+ `}};fo.elementDefinitions={},po([nt({type:String})],fo.prototype,"text",void 0),po([nt({type:Boolean})],fo.prototype,"raised",void 0),po([nt({type:Boolean})],fo.prototype,"outlined",void 0),po([nt({type:Boolean})],fo.prototype,"disabled",void 0),fo=po([Ct("ft-input-label")],fo);var uo=function(t,e,i,r){for(var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,c=t.length-1;c>=0;c--)(o=t[c])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};let mo=class extends Tt{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}getTemplate(){return N``}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};mo.elementDefinitions={},uo([nt({type:String})],mo.prototype,"label",void 0),uo([nt({type:Object,converter:t=>t})],mo.prototype,"value",void 0),uo([nt({type:Boolean,reflect:!0})],mo.prototype,"selected",void 0),mo=uo([Ct("ft-select-option")],mo);const bo={labelSize:Rt.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:Rt.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:Rt.create("--ft-select-vertical-spacing","SIZE","4px"),helperColor:Rt.extend("--ft-select-helper-color",Ft.colorOnSurfaceMedium),optionsZIndex:Rt.create("--ft-select-options-z-index","NUMBER","2"),colorSurface:Rt.external(Ft.colorSurface,"Design system"),colorOnSurface:Rt.external(Ft.colorOnSurface,"Design system"),colorOnSurfaceDisabled:Rt.external(Ft.colorOnSurfaceDisabled,"Design system"),colorPrimary:Rt.external(Ft.colorPrimary,"Design system"),borderRadiusS:Rt.external(Ft.borderRadiusS,"Design system"),elevation02:Rt.external(Ft.elevation02,"Design system")};let vo=class extends Tt{constructor(){super(...arguments),this.label="",this.helper="",this.outlined=!1,this.disabled=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.hideOptions=t=>this.optionsDisplayed=this.optionsDisplayed&&t.composedPath().includes(this.container)}getStyles(){return[He,Ve,a`
799
+ *:focus {
800
+ outline: none;
801
+ }
802
+
803
+ .ft-select {
804
+ display: flex;
805
+ flex-direction: column;
806
+ align-items: stretch;
807
+ }
808
+
809
+ .ft-select--main-panel {
810
+ position: relative;
811
+ display: flex;
812
+ height: calc(4 * ${bo.verticalSpacing} + ${bo.labelSize} + ${bo.selectedOptionSize});
813
+ }
814
+
815
+ .ft-select--input-panel {
816
+ flex-grow: 1;
817
+ position: relative;
818
+ display: flex;
819
+ align-items: center;
820
+ overflow: hidden;
821
+ padding-left: 16px;
822
+ padding-right: 8px;
823
+ gap: 8px;
824
+ }
825
+
826
+ .ft-select--input-panel,
827
+ .ft-select--option {
828
+ color: ${bo.colorOnSurface};
829
+ --ft-opacity-color-content-on-surface-hover: 0.08;
830
+ --ft-opacity-color-content-on-surface-dragged: 0.04;
831
+ }
832
+
833
+ .ft-select--disabled .ft-select--input-panel,
834
+ .ft-select--disabled .ft-select--option {
835
+ color: ${bo.colorOnSurfaceDisabled};
836
+ }
837
+
838
+ .ft-select:not(.ft-select--disabled) .ft-select--input-panel {
839
+ cursor: pointer;
840
+ }
841
+
842
+ ft-input-label {
843
+ ${Bt(ho.fontSize,bo.selectedOptionSize)};
844
+ ${Bt(ho.raisedFontSize,bo.labelSize)};
845
+ ${Bt(ho.verticalSpacing,bo.verticalSpacing)};
846
+ }
847
+
848
+ .ft-select:not(.ft-select--disabled):focus-within mwc-icon {
849
+ color: ${bo.colorPrimary};
850
+ }
851
+
852
+ .ft-select:not(.ft-select--disabled):focus-within ft-input-label {
853
+ ${Bt(ho.borderColor,bo.colorPrimary)};
854
+ ${Bt(ho.textColor,bo.colorPrimary)};
855
+ }
856
+
857
+ .ft-select--selected-option {
858
+ display: block;
859
+ flex-grow: 1;
860
+ flex-shrink: 1;
861
+ overflow: hidden;
862
+ white-space: nowrap;
863
+ text-overflow: ellipsis;
864
+ ${Bt(we.fontSize,bo.selectedOptionSize)};
865
+ ${Bt(we.lineHeight,bo.selectedOptionSize)};
866
+ }
867
+
868
+ mwc-icon {
869
+ flex-shrink: 0;
870
+ }
871
+
872
+ slot {
873
+ display: none;
874
+ }
875
+
876
+ .ft-select--filled .ft-select--input-panel {
877
+ border-radius: ${bo.borderRadiusS} ${bo.borderRadiusS} 0 0;
878
+ }
879
+
880
+ .ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
881
+ align-self: stretch;
882
+ padding-top: calc(${bo.labelSize} + 2 * ${bo.verticalSpacing});
883
+ }
884
+
885
+ .ft-select--outlined .ft-select--input-panel {
886
+ border-radius: ${bo.borderRadiusS};
887
+ }
888
+
889
+ .ft-select--options {
890
+ display: none;
891
+ position: absolute;
892
+ top: 100%;
893
+ left: 0;
894
+ right: 0;
895
+ background: ${bo.colorSurface};
896
+ z-index: ${bo.optionsZIndex};
897
+ box-shadow: ${bo.elevation02};
898
+ }
899
+
900
+ .ft-select--options-displayed .ft-select--options {
901
+ display: block;
902
+ }
903
+
904
+ .ft-select--option {
905
+ position: relative;
906
+ padding: 4px 16px;
907
+ min-height: 32px;
908
+ display: flex;
909
+ align-items: center;
910
+ }
911
+
912
+ .ft-select--helper-text {
913
+ padding: 0 12px 0 16px;
914
+ color: ${bo.helperColor};
915
+ }
916
+ `]}getTemplate(){var t,e,i,r,o;let n=!this.disabled&&this.optionsDisplayed&&this.hasOptions,a=this.disabled||!this.hasOptions;const c={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":a,"ft-select--options-displayed":n,"ft-select--has-value":null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value),"ft-select--no-label":!this.label};return N`
917
+ <div class="${Ot(c)}" part="container">
918
+ <div class="ft-select--main-panel" part="main-panel">
919
+ <ft-input-label text="${this.label}"
920
+ part="label"
921
+ ?disabled=${a}
922
+ ?outlined=${this.outlined}
923
+ ?raised=${null!=(null===(e=this.selectedOption)||void 0===e?void 0:e.value)||n}
924
+ ></ft-input-label>
925
+ <div class="ft-select--input-panel"
926
+ part="selected-value"
927
+ tabindex="${a?"-1":"0"}"
928
+ @click=${()=>this.optionsDisplayed=!this.optionsDisplayed}
929
+ @keydown=${this.onMainPanelKeyDown}
930
+ aria-label="${this.label}"
931
+ aria-haspopup="listbox"
932
+ aria-expanded="${n}">
933
+ ${this.outlined?null:N`
934
+ <ft-ripple ?disabled=${a} activated></ft-ripple>
935
+ `}
936
+ <ft-typography variant="body1" class="ft-select--selected-option">
937
+ ${null!=(null===(i=this.selectedOption)||void 0===i?void 0:i.value)&&null!==(o=null===(r=this.selectedOption)||void 0===r?void 0:r.label)&&void 0!==o?o:""}
938
+ </ft-typography>
939
+ <mwc-icon>${n?"expand_less":"expand_more"}</mwc-icon>
940
+ </div>
941
+ <div class="ft-select--options"
942
+ part="options"
943
+ @keydown=${this.onOptionsKeyDown}
944
+ innerrole="listbox">
945
+ ${St(this.options,(t=>t.value),(t=>this.renderOption(t)))}
946
+ </div>
947
+ </div>
948
+ ${this.helper?N`
949
+ <ft-typography class="ft-select--helper-text" variant="caption">${this.helper}
950
+ </ft-typography>`:void 0}
951
+ </div>
952
+ <slot @slotchange=${this.updateOptionsFromSlot}
953
+ @option-change=${this.updateOptionsFromSlot}
954
+ ></slot>
955
+ `}renderOption(t){let e=this.selectedOption===t;return N`
956
+ <div class="${Ot({"ft-select--option":!0,"ft-select--option-selected":e,"ft-typography--body2":!0})}"
957
+ part="option"
958
+ tabindex="0"
959
+ @keydown=${e=>this.onOptionKeyDown(e,t)}
960
+ @click=${()=>this.selectOption(t)}>
961
+ <ft-ripple ?primary=${e} ?activated=${e}></ft-ripple>
962
+ ${t.label}
963
+ </div>
964
+ `}updated(t){var e;super.updated(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1,this.dispatchEvent(new CustomEvent("change",{detail:null===(e=this.selectedOption)||void 0===e?void 0:e.value})))}contentAvailableCallback(t){var e,i;t.has("focusOptions")&&this.focusOptions&&(null===(i=null!==(e=this.selectedOptionElement)&&void 0!==e?e:this.firstOption)||void 0===i||i.focus(),this.focusOptions=!1)}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var e;t.stopPropagation();let i=null===(e=this.optionsSlot)||void 0===e?void 0:e.assignedElements().map((t=>t));i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0}}onOptionsKeyDown(t){var e,i,r,o,n;let a;switch(t.key){case"Escape":this.optionsDisplayed=!1,null===(e=this.mainPanel)||void 0===e||e.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),a=null!==(r=null===(i=this.focusedOption)||void 0===i?void 0:i.previousElementSibling)&&void 0!==r?r:this.lastOption;break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),a=null!==(n=null===(o=this.focusedOption)||void 0===o?void 0:o.nextElementSibling)&&void 0!==n?n:this.firstOption}null==a||a.focus()}onOptionKeyDown(t,e){var i;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.selectOption(e),this.optionsDisplayed=!1,null===(i=this.mainPanel)||void 0===i||i.focus())}selectOption(t){this.selectedOption=t;for(let e of this.options)e.selected=e===t}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}};vo.elementDefinitions={"ft-input-label":fo,"ft-typography":qe,"ft-ripple":Fi,"mwc-icon":Ai},uo([nt({type:String})],vo.prototype,"label",void 0),uo([nt({type:String})],vo.prototype,"helper",void 0),uo([nt({type:Boolean})],vo.prototype,"outlined",void 0),uo([nt({type:Boolean})],vo.prototype,"disabled",void 0),uo([nt({type:Array})],vo.prototype,"options",void 0),uo([at()],vo.prototype,"selectedOption",void 0),uo([at()],vo.prototype,"optionsDisplayed",void 0),uo([at()],vo.prototype,"focusOptions",void 0),uo([lt(".ft-select")],vo.prototype,"container",void 0),uo([lt(".ft-select--input-panel")],vo.prototype,"mainPanel",void 0),uo([lt(".ft-select--option:first-child")],vo.prototype,"firstOption",void 0),uo([lt(".ft-select--option:focus")],vo.prototype,"focusedOption",void 0),uo([lt(".ft-select--option.ft-select--option-selected")],vo.prototype,"selectedOptionElement",void 0),uo([lt(".ft-select--option:last-child")],vo.prototype,"lastOption",void 0),uo([lt("slot")],vo.prototype,"optionsSlot",void 0),vo=uo([Ct("ft-select")],vo);var go=function(t,e,i,r){for(var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,c=t.length-1;c>=0;c--)(o=t[c])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};null==window.fluidtopics&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");const yo={filtersButton:"Filters",oneFilterEnabled:"1 filter enabled",nFiltersEnabled:"{0} filter(s) enabled",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",searchButton:"Search",noSuggestions:"No results found…",clearFilters:"Clear filters",contentLocaleSelector:"Lang",removeRecentSearch:"Remove",back:"Back"},xo={height:Rt.create("--ft-search-bar-height","SIZE","38px"),borderRadius:Rt.extend("--ft-search-bar-border-radius",Ft.borderRadiusS),mobileOpenPosition:Rt.create("--ft-search-bar-mobile-open-position","POSITION","fixed"),mobileOpenTop:Rt.create("--ft-search-bar-mobile-open-top","SIZE","0"),mobileOpenBottom:Rt.create("--ft-search-bar-mobile-open-bottom","SIZE","0"),mobileOpenLeft:Rt.create("--ft-search-bar-mobile-open-left","SIZE","0"),mobileOpenRight:Rt.create("--ft-search-bar-mobile-open-right","SIZE","0"),floatingZIndex:Rt.create("--ft-search-bar-floating-components-z-index","NUMBER","2"),colorSurface:Rt.external(Ft.colorSurface,"Design system"),colorOnSurface:Rt.external(Ft.colorOnSurface,"Design system"),colorOnSurfaceMedium:Rt.external(Ft.colorOnSurfaceMedium,"Design system"),colorOutline:Rt.external(Ft.colorOutline,"Design system"),colorPrimary:Rt.external(Ft.colorPrimary,"Design system"),elevation02:Rt.external(Ft.elevation02,"Design system"),buttonColor:Rt.external(Ki.color,"Button"),buttonRippleColor:Rt.external(Ki.rippleColor,"Button")};class ko extends CustomEvent{constructor(t){super("launch-search",{detail:t})}}class wo extends CustomEvent{constructor(t){super("change",{detail:t})}}t.FtSearchBar=class extends Tt{constructor(){super(...arguments),this.baseUrl="",this.apiIntegrationIdentifier="ft-search-bar",this.availableContentLocales=[],this.labels={},this.labelResolver=new Nt(yo,{}),this.displayedFilters=[],this.searchRequestSerializer=t=>function(t,e){var i;const r=new URLSearchParams({"content-lang":null!==(i=e.contentLocale)&&void 0!==i?i:"all",query:e.query});if(e.filters.length>0){const t=e.filters.map((t=>{const e=t.values.map((t=>t.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*"))).map((t=>encodeURIComponent(function(t){return`"${t}"`}(t)))).join("_");return`${t.key}~${e}`})).join("*");r.append("filters",t)}return new URL(`${t}/search/all?${r.toString()}`).href}(this.baseUrl,t),this.searchFilters=[],this.sizeCategory=It.S,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.query="",this.suggestions=[],this.suggestionsLoaded=!0,this.recentSearches=[],this.updateFacetsDebouncer=new zt(500),this.suggestDebouncer=new zt(300),this.facetsLoaded=!1,this.closeFloatingContainer=t=>{this.sizeCategory!==It.S&&(this.displayFacets=this.displayFacets&&t.composedPath().some((t=>t===this.floatingContainer)))}}getStyles(){return[He,a`*{box-sizing:border-box}.ft-search-bar--container{display:flex;flex-direction:column;gap:8px;background:${xo.colorSurface};outline:0;--ft-search-bar-border-radius--internal:${xo.borderRadius}}.ft-search-bar--mobile-menu-open{position:${xo.mobileOpenPosition};top:${xo.mobileOpenTop};bottom:${xo.mobileOpenBottom};left:${xo.mobileOpenLeft};right:${xo.mobileOpenRight};z-index:${xo.floatingZIndex};padding:16px}.ft-search-bar{flex-shrink:0;position:relative;display:flex;flex-direction:row;align-items:center;height:${xo.height};background:${xo.colorSurface};border:1px solid ${xo.colorOutline};border-radius:var(--ft-search-bar-border-radius--internal)}.ft-search-bar--floating-panel-open .ft-search-bar{border-radius:var(--ft-search-bar-border-radius--internal) var(--ft-search-bar-border-radius--internal) 0 0}.ft-search-bar--input-container{flex-grow:1;flex-shrink:1;align-self:stretch;position:relative}.ft-search-bar--input{border:none;background-color:transparent;padding:0 8px;height:100%;width:100%}.ft-search-bar--input:focus-within{outline-color:${xo.colorPrimary}}.ft-search-bar--mobile .ft-search-bar--suggestions{flex-grow:1;flex-shrink:1;overflow-y:auto;height:0}.ft-search-bar--mobile-open .ft-search-bar--suggestions{height:initial}.ft-search-bar--desktop .ft-search-bar--suggestions,.ft-search-bar--floating-panel{position:absolute;z-index:var(--ft-search-bar-floating-components-z-index,1);top:100%;left:-1px;right:-1px;display:none;background:${xo.colorSurface};border:1px solid ${xo.colorOutline};border-radius:0 0 var(--ft-search-bar-border-radius--internal) var(--ft-search-bar-border-radius--internal);box-shadow:${xo.elevation02};outline:0}.ft-search-bar--desktop .ft-search-bar--suggestions{top:calc(100% + 1px)}.ft-search-bar--input-container:focus-within .ft-search-bar--suggestions-not-empty{display:block}.ft-search-bar--no-suggestions{text-align:center;padding:8px;color:${xo.colorOnSurface}}.ft-search-bar--suggestion{text-decoration:none;position:relative;display:flex;align-items:center;padding:8px;gap:8px;cursor:pointer;color:${xo.colorOnSurface};min-height:52px}.ft-search-bar--desktop .ft-search-bar--suggestion{min-height:44px}.ft-search-bar--suggestion:focus{outline:0}.ft-search-bar--mobile .ft-search-bar--suggestion:first-child,.ft-search-bar--recent-search+.ft-search-bar--suggestion:not(.ft-search-bar--recent-search){border-top:1px solid ${xo.colorOutline}}.ft-search-bar--suggestion ft-typography{display:block;flex-grow:1;flex-shrink:1}.ft-search-bar>ft-button{flex-shrink:0}.ft-search-bar--left-action{${Bt(Ki.borderRadius,"calc(var(--ft-search-bar-border-radius--internal) - 1px) 0 0 calc(var(--ft-search-bar-border-radius--internal) - 1px)")}border-right:1px solid ${xo.colorOutline}}.ft-search-bar--floating-panel-open .ft-search-bar--left-action{${Bt(Ki.borderRadius,"calc(var(--ft-search-bar-border-radius--internal) - 1px) 0 0 0")}}.ft-search-bar--clear-query,.ft-search-bar--launch-search{margin:0 4px}.ft-search-bar--separator{height:20px;border-right:1px solid ${xo.colorOutline}}.ft-search-bar--floating-panel{padding:16px}.ft-search-bar--floating-panel-open .ft-search-bar--floating-panel{display:block}.ft-search-bar--desktop .ft-search-bar--facets-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:0 10px;margin-bottom:16px}.ft-search-bar--mobile .ft-search-bar--facets-actions{flex-shrink:0;flex-grow:0;display:flex;gap:16px;justify-content:space-evenly}.ft-search-bar--mobile .ft-search-bar--facets-actions>*{flex-grow:1;flex-basis:0}.ft-search-bar>.ft-search-bar--content-locale,.ft-search-bar>.ft-search-bar--content-locale::part(container),.ft-search-bar>.ft-search-bar--content-locale::part(main-panel){height:100%}.ft-search-bar>.ft-search-bar--content-locale::part(options){top:calc(100% + 1px);right:unset;width:max-content;min-width:100%}.ft-search-bar>.ft-search-bar--content-locale::part(selected-value){${Bt(ro.color,xo.buttonColor)}${Bt(ro.rippleColor,xo.buttonRippleColor)}border-radius:calc(var(--ft-search-bar-border-radius--internal) - 1px) 0 0 calc(var(--ft-search-bar-border-radius--internal) - 1px)}.ft-search-bar>.ft-search-bar--content-locale::part(label){${Bt(ho.borderColor,"transparent")}${Bt(Bi.color,xo.buttonRippleColor)}}.ft-search-bar--floating-panel .ft-search-bar--content-locale{margin-right:auto;min-width:250px;${Bt(bo.optionsZIndex,"2")}}.ft-search-bar--mobile .ft-search-bar--content-locale::part(clear-button){display:none}.ft-search-bar--floating-panel .ft-search-bar--filters-container{display:block;height:400px;--ft-snap-scroll-gap:16px}.ft-search-bar--floating-panel ft-filter{display:flex;flex-grow:0;max-height:100%;max-width:250px}.ft-search-bar--hierarchical-filter{width:250px}.ft-search-bar--mobile .ft-search-bar--filters-container{flex-grow:1;flex-shrink:1;overflow-y:auto;margin:0 -16px;padding:0 16px}.ft-search-bar--mobile .ft-search-bar--filters-container ft-filter{display:flex;max-height:60vh}.ft-search-bar--mobile ft-filter::part(container){flex-grow:1}.ft-search-bar--filter-label{display:flex;justify-content:space-between;align-items:baseline;gap:8px}.ft-search-bar--filter-label>*{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ft-search-bar--filter-label>:first-child{flex-shrink:0}.ft-search-bar--filter-label>:last-child{flex-shrink:1;color:${xo.colorOnSurfaceMedium}}ft-accordion-item::part(toggle){margin-left:-16px;margin-right:-16px}ft-accordion-item::part(label){overflow:hidden}ft-accordion-item::part(content){padding-left:0;padding-right:0}.ft-search-bar--selected-filters{flex-shrink:0;display:flex;flex-direction:row;flex-wrap:wrap;gap:8px}.ft-search-bar--selected-filters *{max-width:100%}`]}get recentSearchesStorageKey(){return this.baseUrl+":ft:recent-search-queries"}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.displayedFilters.map((t=>({id:t}))),filters:this.searchFilters,paging:{perPage:0,page:1},sort:[]}}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,filters:this.searchFilters,sort:[]}}get hasFacets(){return this.facets.length>0}get hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var t;null===(t=this.container)||void 0===t||t.focus()}clear(){this.query="",this.searchFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}getTemplate(){const t={"ft-search-bar--container":!0,"ft-search-bar--mobile":this.sizeCategory===It.S,"ft-search-bar--desktop":this.sizeCategory!==It.S,"ft-search-bar--floating-panel-open":this.sizeCategory!==It.S&&this.displayFacets,"ft-search-bar--mobile-menu-open":this.mobileMenuOpen};return N`<ft-size-watcher @change="${this.updateSize}"></ft-size-watcher><div class="${Ot(t)}" part="container" tabindex="-1">${this.sizeCategory===It.S?this.renderMobileSearchBar():this.renderDesktopSearchBar()}</div>`}renderDesktopSearchBar(){return N`<div class="ft-search-bar" part="search-bar">${this.renderSearchBarLeftAction()}<div class="ft-search-bar--input-container" part="input-container"><input class="ft-search-bar--input ft-typography--body2" part="input" type="text" placeholder="${this.labelResolver.resolve("inputPlaceHolder")}" value="${this.query}" @keydown="${this.onSearchBarKeyDown}" @keyup="${this.onSearchBarKeyUp}"> ${this.renderSuggestions()}</div>${this.renderDesktopSearchBarButtons()}<div class="ft-search-bar--floating-panel" @keyup="${this.onFloatingContainerKeyUp}" tabindex="-1">${this.renderDesktopFacetsActions()} ${this.renderDesktopFacets()}</div></div>${this.renderSelectedFacets()}`}renderSearchBarLeftAction(){return this.hasFacets?N`<ft-button class="ft-search-bar--filters-opener ft-search-bar--left-action" part="filters-opener" trailingIcon icon="${this.displayFacets?"expand_less":"expand_more"}" @click="${t=>{t.stopPropagation(),this.displayFacets=!this.displayFacets}}" @focusin="${t=>t.stopPropagation()}">${this.labelResolver.resolve("filtersButton")}</ft-button>`:this.hasLocaleSelector?N`<ft-select class="ft-search-bar--content-locale ft-search-bar--left-action" part="content-locale" @change="${t=>this.contentLocale=t.detail}">${St(this.availableContentLocales,(t=>t.lang),(t=>N`<ft-select-option value="${t.lang}" label="${t.label}" ?selected="${t.lang===this.contentLocale}"></ft-select-option>`))}</ft-select>`:M}renderDesktopSearchBarButtons(){return N`${this.query?N`<ft-button class="ft-search-bar--clear-query" part="search-bar-actions" icon="close" round dense label="${this.labelResolver.resolve("clearInputButton")}" @click="${()=>this.setQuery("")}"></ft-button><div class="ft-search-bar--separator"></div>`:null}<ft-button class="ft-search-bar--launch-search" part="search-bar-actions" icon="search" round dense label="${this.labelResolver.resolve("searchButton")}" @click="${this.launchSearch}"></ft-button>`}renderMobileSearchBar(){return N`<div class="ft-search-bar"><div class="ft-search-bar--input-container" part="input-container"><input class="ft-search-bar--input ft-typography--body2" part="input" type="text" placeholder="${this.labelResolver.resolve("inputPlaceHolder")}" value="${this.query}" @keyup="${this.onSearchBarKeyUp}" @focus="${()=>{this.mobileMenuOpen=!0,this.displayFacets=!1}}"></div>${this.renderMobileSearchBarButtons()}</div>${this.mobileMenuOpen?this.renderMobileFacetsActions():this.renderSelectedFacets()} ${this.displayFacets?this.renderMobileFacets():this.renderSuggestions()}`}renderMobileSearchBarButtons(){return this.query||this.mobileMenuOpen?N`<ft-button class="ft-search-bar--clear-query" part="search-bar-actions" icon="close" round label="${this.labelResolver.resolve("clearInputButton")}" @click="${()=>{this.setQuery(""),this.mobileMenuOpen=!1,this.displayFacets=!1}}"></ft-button>`:N`<ft-button class="ft-search-bar--launch-search" part="search-bar-actions" icon="search" round label="${this.labelResolver.resolve("searchButton")}" @click="${()=>{var t;return null===(t=this.input)||void 0===t?void 0:t.focus()}}"></ft-button>`}renderMobileFacetsActions(){if(!this.hasLocaleSelector&&0===this.displayedFilters.length)return null;if(this.displayFacets)return N`<div class="ft-search-bar--facets-actions"><ft-button part="facets-actions" icon="arrow_back" label="${this.labelResolver.resolve("back")}" @click="${()=>this.displayFacets=!1}">${this.labelResolver.resolve("back")}</ft-button>${this.searchFilters.length>0?N`<ft-button part="facets-actions" @click="${this.clearFilters}">${this.labelResolver.resolve("clearFilters")}</ft-button>`:null}</div>`;let t=this.searchFilters.length>0?this.searchFilters.length>1?this.labelResolver.resolve("nFiltersEnabled",this.searchFilters.length):this.labelResolver.resolve("oneFilterEnabled"):this.labelResolver.resolve("filtersButton");return N`<div class="ft-search-bar--facets-actions"><ft-button part="facets-actions" @click="${()=>this.displayFacets=!0}">${t}</ft-button></div>`}renderMobileFacets(){var t;const e=this.availableContentLocales.filter((t=>t.lang===this.contentLocale)).pop(),i=this.availableContentLocales.map((t=>({value:t.lang,label:t.label,selected:t.lang==this.contentLocale,options:[]})));return N`<ft-accordion class="ft-search-bar--filters-container">${this.hasLocaleSelector?N`<ft-accordion-item><div class="ft-search-bar--filter-label" slot="toggle"><ft-typography variant="button">${this.labelResolver.resolve("contentLocaleSelector")}</ft-typography><ft-typography variant="body2">${null!==(t=null==e?void 0:e.label)&&void 0!==t?t:""}</ft-typography></div><ft-filter part="filters" class="ft-search-bar--content-locale" id="content-locale" filterPlaceHolder="${this.labelResolver.resolve("filterInputPlaceHolder",this.labelResolver.resolve("contentLocaleSelector"))}" clearButtonLabel="${this.labelResolver.resolve("clearFilterButton")}" raiseSelectedOptions .options="${i}" @change="${t=>this.contentLocale=t.detail[0]}"></ft-filter></ft-accordion-item>`:null} ${St(this.facets,(t=>t.key),(t=>{const e=Ye(t);return N`<ft-accordion-item><div class="ft-search-bar--filter-label" slot="toggle"><ft-typography variant="button">${t.label}</ft-typography><ft-typography variant="body2">${function(t){return Ge(t.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]})).filter((t=>t.selected)).map((t=>t.label))}(e).join(", ")}</ft-typography></div><ft-filter part="filters" id="${e.id}" filterPlaceHolder="${this.labelResolver.resolve("filterInputPlaceHolder",e.label)}" clearButtonLabel="${this.labelResolver.resolve("clearFilterButton")}" moreValuesButtonLabel="${this.labelResolver.resolve("displayMoreFilterValuesButton")}" ?multivalued="${e.multivalued}" raiseSelectedOptions .options="${e.options}" .displayedValuesLimit="${10}" @change="${t=>this.setFilter(e.id,e.label,t.detail)}"></ft-filter></ft-accordion-item>`}))}</ft-accordion>`}renderSuggestions(){const t=this.recentSearches.filter((t=>t.toLowerCase().includes(this.query.toLowerCase()))),e=this.query.length>2||t.length>0;return N`<div class="ft-search-bar--suggestions ${e?"ft-search-bar--suggestions-not-empty":""}" @keydown="${this.onSuggestKeyDown}">${St(t.slice(0,5),(t=>t),(t=>N`<a href="${this.searchRequestSerializer({...this.request,query:t})}" part="suggestions" class="ft-search-bar--suggestion ft-search-bar--recent-search" @keyup="${e=>this.onSuggestKeyUp(e,t)}" @click="${e=>this.onSuggestClick(e,t)}"><ft-ripple></ft-ripple><mwc-icon part="suggestion-icon">history</mwc-icon><ft-typography variant="body1">${t}</ft-typography><ft-button icon="close" round part="remove-suggestion" ?dense="${this.sizeCategory!==It.S}" label="${this.labelResolver.resolve("removeRecentSearch")}" @click="${e=>this.removeRecentSearch(e,t)}"></ft-button></a>`))} ${St(this.suggestions,(t=>t.value),(t=>N`<a href="${this.searchRequestSerializer({...this.request,query:t.value})}" part="suggestions" class="ft-search-bar--suggestion" @keyup="${e=>this.onSuggestKeyUp(e,t.value)}" @click="${e=>this.onSuggestClick(e,t.value)}"><ft-ripple></ft-ripple>${this.getIcon(t)}<ft-typography variant="body1">${t.value}</ft-typography></a>`))} ${0===t.length&&0===this.suggestions.length&&this.query.length>2&&this.suggestionsLoaded?N`<ft-typography class="ft-search-bar--no-suggestions" element="p" variant="body2">${this.labelResolver.resolve("noSuggestions")}</ft-typography>`:null}</div>`}getIcon(t){const e="DOCUMENT"===t.type?Ir.file_format:Ir.fluid_topics;let i;switch(t.type){case"MAP":i="BOOK"===t.editorialType?jr.BOOK:jr.ARTICLE;break;case"DOCUMENT":i=function(t,e){var i,r,o,n;t=(null!=t?t:"").toLowerCase(),e=(null!=e?e:"").toLowerCase();const[a,c]=((null!==(i=Dr.get(t))&&void 0!==i?i:t)+"/").split("/");return null!==(n=null!==(o=null!==(r=Lr.get(c))&&void 0!==r?r:Lr.get(e))&&void 0!==o?o:Lr.get(a))&&void 0!==n?n:Mr.UNKNOWN}(t.mimeType,t.filenameExtension);break;case"TOPIC":i=jr.TOPICS}return N`<ft-icon variant="${e}" part="suggestion-icon">${i}</ft-icon>`}renderDesktopFacetsActions(){return N`<div class="ft-search-bar--facets-actions">${this.hasLocaleSelector?N`<ft-select class="ft-search-bar--content-locale" part="content-locale" label="${this.labelResolver.resolve("contentLocaleSelector")}" outlined @change="${t=>this.contentLocale=t.detail}">${St(this.availableContentLocales,(t=>t.lang),(t=>N`<ft-select-option value="${t.lang}" label="${t.label}" ?selected="${t.lang===this.contentLocale}"></ft-select-option>`))}</ft-select>`:null} ${this.searchFilters.length>0?N`<ft-button part="facets-actions" @click="${this.clearFilters}">${this.labelResolver.resolve("clearFilters")}</ft-button>`:null}<slot name="facets-actions"></slot></div>`}renderDesktopFacets(){return this.hasFacets?N`<ft-snap-scroll horizontal limitSize controls class="ft-search-bar--filters-container" part="filters-container">${St(this.facets,(t=>t.key),(t=>{const e=Ye(t),i=e.options.some((t=>{var e,i;return(null!==(i=null===(e=t.subOptions)||void 0===e?void 0:e.length)&&void 0!==i?i:0)>0}));return N`<ft-filter class="${i?"ft-search-bar--hierarchical-filter":""}" part="filters" id="${e.id}" label="${e.label}" filterPlaceHolder="${this.labelResolver.resolve("filterInputPlaceHolder",e.label)}" clearButtonLabel="${this.labelResolver.resolve("clearFilterButton")}" moreValuesButtonLabel="${this.labelResolver.resolve("displayMoreFilterValuesButton")}" ?multivalued="${e.multivalued}" raiseSelectedOptions .options="${e.options}" .displayedValuesLimit="${10}" @change="${t=>this.setFilter(e.id,e.label,t.detail)}"></ft-filter>`}))}</ft-snap-scroll>`:null}renderSelectedFacets(){return this.hasLocaleSelector||0!==this.searchFilters.length?N`<div class="ft-search-bar--selected-filters" part="selected-filters-container">${this.hasLocaleSelector&&(this.hasFacets||this.sizeCategory===It.S)?N`<ft-chip part="selected-filters">${this.getLocaleLabel(this.contentLocale)}</ft-chip>`:null} ${St(this.searchFilters,(t=>t.key),(t=>St(t.values,(e=>{let i=t.label+": "+function(t){return Xe(t).split("|").join(" > ")}(e);return N`<ft-tooltip inline text="${i}"><ft-chip part="selected-filters" removable label="${i}" @icon-click="${()=>this.setFilter(t.key,t.label,t.values.filter((t=>t!==e)))}">${function(t){return Xe(t).split("|").pop()}(e)}</ft-chip></ft-tooltip>`}))))}</div>`:null}async firstUpdated(t){var e,i;super.firstUpdated(t),this.initApi(),this.availableContentLocales=null!==(i=await(null===(e=this.api)||void 0===e?void 0:e.getAvailableSearchLocales().then((t=>t.contentLocales)).catch((()=>[]))))&&void 0!==i?i:[]}update(t){var e,i;t.has("labels")&&(this.labelResolver=new Nt(yo,this.labels)),t.has("sizeCategory")&&(this.mobileMenuOpen=!1,this.displayFacets=this.displayFacets&&this.sizeCategory!==It.S),super.update(t),(t.has("availableContentLocales")||t.has("contentLocale"))&&this.availableContentLocales.length>0&&(this.availableContentLocales.some((t=>t.lang===this.contentLocale))||(this.contentLocale=null===(e=this.availableContentLocales[0])||void 0===e?void 0:e.lang)),t.has("baseUrl")&&this.baseUrl&&(this.baseUrl.endsWith("/")&&(this.baseUrl=this.baseUrl.replace(/\/$/,"")),this.recentSearches=JSON.parse(null!==(i=window.localStorage.getItem(this.recentSearchesStorageKey))&&void 0!==i?i:"[]")),["baseUrl","apiIntegrationIdentifier"].some((e=>t.has(e)))&&this.setApi(),["uiLocale","contentLocale","searchFilters","displayedFilters","api"].some((e=>t.has(e)))&&this.updateFacets(),["query","uiLocale","contentLocale","searchFilters","displayedFilters","api"].some((e=>t.has(e)))&&this.updateSuggestions(),["query","uiLocale","contentLocale","searchFilters"].some((e=>t.has(e)))&&this.dispatchEvent(new wo(this.request))}contentAvailableCallback(t){var e,i;super.contentAvailableCallback(t),t.has("displayFacets")&&this.displayFacets&&(null===(e=this.floatingContainer)||void 0===e||e.focus()),null!=this.scrollToFacet&&this.facetsLoaded&&(null===(i=this.scrollingFiltersContainer)||void 0===i||i.scrollIndexIntoView(this.facets.findIndex((t=>t.key===this.scrollToFacet))),this.scrollToFacet=void 0)}initApi(){null==this.api&&(this.setApi(),setTimeout((()=>this.initApi()),100))}setApi(){this.api=window.fluidtopics?new window.fluidtopics.FluidTopicsApi(this.baseUrl,this.apiIntegrationIdentifier):void 0}updateFacets(){this.displayedFilters.length>0?(this.facetsLoaded=!1,this.updateFacetsDebouncer.run((async()=>{var t,e;this.facets=null!==(e=await(null===(t=this.api)||void 0===t?void 0:t.search({...this.request,query:""}).then((t=>t.facets)).catch((()=>[]))))&&void 0!==e?e:[],this.facetsLoaded=!0}))):this.facets=[]}updateSuggestions(){this.suggestionsLoaded=!1,this.suggestDebouncer.run((async()=>{this.suggestions=this.api&&this.query.length>2?await this.api.getSuggestions(this.suggestRequest).then((t=>t.suggestions)).catch((()=>[])):[],this.suggestionsLoaded=!0}))}onSearchBarKeyUp(t){const e=t.composedPath()[0];this.query=e.value,"Enter"===t.key&&this.launchSearch()}onSearchBarKeyDown(t){var e,i;switch(t.key){case"Escape":this.mobileMenuOpen=!1,null===(e=this.input)||void 0===e||e.blur();break;case"ArrowDown":t.stopPropagation(),t.preventDefault(),null===(i=this.firstSuggestion)||void 0===i||i.focus()}}onFloatingContainerKeyUp(t){var e;"Escape"===t.key&&(this.displayFacets=!1,null===(e=this.filtersOpener)||void 0===e||e.focus())}setQuery(t){this.input&&(this.input.value=t),this.query=t}onSuggestClick(t,e){t.ctrlKey||t.metaKey||this.onSuggestSelected(t,e)}onSuggestKeyUp(t,e){"Enter"!==t.key&&" "!==t.key||this.onSuggestSelected(t,e)}onSuggestSelected(t,e){t.preventDefault(),this.setQuery(e),this.launchSearch()}launchSearch(){if(this.query){let t=this.recentSearches.filter((t=>t.toLowerCase()!==this.query.toLowerCase())).filter(((t,e)=>e<20));this.recentSearches=[this.query,...t],this.saveRecentSearches()}this.focus(),this.dispatchEvent(new ko(this.request))}saveRecentSearches(){window.localStorage.setItem(this.recentSearchesStorageKey,JSON.stringify(this.recentSearches))}connectedCallback(){super.connectedCallback(),document.addEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer)}updateSize(t){this.sizeCategory=t.detail.category}getLocaleLabel(t){var e;return null!==(e=this.availableContentLocales.filter((e=>{var i;return(null!==(i=e.lang)&&void 0!==i?i:"").toLowerCase()===(null!=t?t:"").toLowerCase()})).map((t=>t.label)).pop())&&void 0!==e?e:t}setFilter(t,e,i){let r=this.searchFilters.filter((e=>e.key!==t));this.facets.forEach((e=>{e.key===t&&Ge(e.rootNodes,(t=>t.childNodes)).forEach((t=>t.selected=i.includes(t.value)))})),i.length&&r.push({key:t,label:e,negative:!1,values:i}),this.searchFilters=r,this.scrollToFacet=t}clearFilters(){this.facets.forEach((t=>Ge(t.rootNodes,(t=>t.childNodes)).forEach((t=>t.selected=!1)))),this.searchFilters=[];const t=this.facets[0];this.scrollToFacet=null==t?void 0:t.key}removeRecentSearch(t,e){var i,r,o,n;t.preventDefault(),t.stopPropagation();const a=null!==(n=null!==(r=null===(i=this.focusedSuggestion)||void 0===i?void 0:i.previousElementSibling)&&void 0!==r?r:null===(o=this.focusedSuggestion)||void 0===o?void 0:o.nextElementSibling)&&void 0!==n?n:this.input;null==a||a.focus(),this.recentSearches=this.recentSearches.filter((t=>t.toLowerCase()!==e.toLowerCase())),this.saveRecentSearches()}onSuggestKeyDown(t){var e,i,r,o,n,a;switch(t.key){case"ArrowUp":null===(r=null!==(i=null===(e=this.focusedSuggestion)||void 0===e?void 0:e.previousElementSibling)&&void 0!==i?i:this.lastSuggestion)||void 0===r||r.focus(),t.preventDefault(),t.stopPropagation();break;case"ArrowDown":null===(a=null!==(n=null===(o=this.focusedSuggestion)||void 0===o?void 0:o.nextElementSibling)&&void 0!==n?n:this.firstSuggestion)||void 0===a||a.focus(),t.preventDefault(),t.stopPropagation()}}},t.FtSearchBar.elementDefinitions={"ft-accordion":to,"ft-accordion-item":Yr,"ft-button":Yi,"ft-chip":lo,"ft-filter":Tr,"ft-filter-option":$r,"ft-icon":Kr,"ft-ripple":Fi,"ft-select":vo,"ft-select-option":mo,"ft-size-watcher":Ht,"ft-snap-scroll":kr,"ft-tooltip":Ui,"ft-typography":qe,"mwc-icon":Ai},go([nt({type:String})],t.FtSearchBar.prototype,"baseUrl",void 0),go([nt({type:String})],t.FtSearchBar.prototype,"apiIntegrationIdentifier",void 0),go([nt({type:String})],t.FtSearchBar.prototype,"contentLocale",void 0),go([at()],t.FtSearchBar.prototype,"availableContentLocales",void 0),go([nt({type:String})],t.FtSearchBar.prototype,"uiLocale",void 0),go([Et({})],t.FtSearchBar.prototype,"labels",void 0),go([Et([])],t.FtSearchBar.prototype,"displayedFilters",void 0),go([nt()],t.FtSearchBar.prototype,"searchRequestSerializer",void 0),go([at()],t.FtSearchBar.prototype,"searchFilters",void 0),go([at()],t.FtSearchBar.prototype,"sizeCategory",void 0),go([at()],t.FtSearchBar.prototype,"displayFacets",void 0),go([at()],t.FtSearchBar.prototype,"mobileMenuOpen",void 0),go([at()],t.FtSearchBar.prototype,"facets",void 0),go([lt(".ft-search-bar--container")],t.FtSearchBar.prototype,"container",void 0),go([lt(".ft-search-bar--filters-opener")],t.FtSearchBar.prototype,"filtersOpener",void 0),go([lt(".ft-search-bar--floating-panel")],t.FtSearchBar.prototype,"floatingContainer",void 0),go([lt("ft-snap-scroll.ft-search-bar--filters-container")],t.FtSearchBar.prototype,"scrollingFiltersContainer",void 0),go([lt(".ft-search-bar--input")],t.FtSearchBar.prototype,"input",void 0),go([at()],t.FtSearchBar.prototype,"query",void 0),go([at()],t.FtSearchBar.prototype,"suggestions",void 0),go([at()],t.FtSearchBar.prototype,"suggestionsLoaded",void 0),go([at()],t.FtSearchBar.prototype,"recentSearches",void 0),go([at()],t.FtSearchBar.prototype,"scrollToFacet",void 0),go([lt(".ft-search-bar--suggestion:first-child")],t.FtSearchBar.prototype,"firstSuggestion",void 0),go([lt(".ft-search-bar--suggestion:focus-within")],t.FtSearchBar.prototype,"focusedSuggestion",void 0),go([lt(".ft-search-bar--suggestion:last-child")],t.FtSearchBar.prototype,"lastSuggestion",void 0),go([at()],t.FtSearchBar.prototype,"api",void 0),t.FtSearchBar=go([Ct("ft-search-bar")],t.FtSearchBar),t.DEFAULT_LABELS=yo,t.FtSearchBarCssVariables=xo,t.LaunchSearchEvent=ko,t.SearchStateChangeEvent=wo,Object.defineProperty(t,"t",{value:!0})}({});