@fluid-topics/ft-text-area 0.1.15 → 0.1.18

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.
@@ -0,0 +1,604 @@
1
+ !function(){
2
+ /**
3
+ * @license
4
+ * Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
5
+ * This code may only be used under the BSD style license found at
6
+ * http://polymer.github.io/LICENSE.txt
7
+ * The complete set of authors may be found at
8
+ * http://polymer.github.io/AUTHORS.txt
9
+ * The complete set of contributors may be found at
10
+ * http://polymer.github.io/CONTRIBUTORS.txt
11
+ * Code distributed by Google as part of the polymer project is also
12
+ * subject to an additional IP rights grant found at
13
+ * http://polymer.github.io/PATENTS.txt
14
+ *
15
+ * @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
16
+ */
17
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,r=new WeakMap,s=new WeakMap,n=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);f(r,l,a);const p={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,p),this._definitionsByClass.set(r,p);let h=i.call(o,t);h||(h=c(t),e.call(o,t,h)),this===window.customElements&&(n.set(r,p),p.standInClass=h);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)s.delete(t),u(t,p,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){g.push(this),o.upgrade.apply(o,arguments),g.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=n.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,i),e},window.HTMLElement.prototype=t.prototype;const p=t=>t===document||t instanceof ShadowRoot,h=t=>{let e=t.getRootNode();if(!p(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),p(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},c=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=h(i)||window.customElements,r=o._getDefinition(e);return r?u(i,r):s.set(i,o),i}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){r.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,r){const s=t.toLowerCase();if(e.has(s)){const t=this.getAttribute(s);o.call(this,s,r),i.call(this,s,t,r)}else o.call(this,s,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);r.call(this,o),i.call(this,o,t,null)}else r.call(this,o)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const b=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const v=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){g.push(this),i.set.call(this,t),g.pop()}})};if(v(Element,"innerHTML"),v(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==r.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class s{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),r=e.get(o)||[];this[+i]=t,r.push(t),e.set(o,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const n=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=n.get.call(this,[]),e=[];for(const i of t){const t=r.get(i);t&&!0!==t.formAssociated||e.push(i)}return new s(e)}})}}try{window.customElements.define("custom-element",null)}catch(t){const e=window.customElements.define;window.customElements.define=(t,i,o)=>{try{e.bind(window.customElements)(t,i,o)}catch(e){console.warn(t,i,o,e)}}}
18
+ /**
19
+ * @license
20
+ * Copyright 2017 Google LLC
21
+ * SPDX-License-Identifier: BSD-3-Clause
22
+ */const t=(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)}};
23
+ /**
24
+ * @license
25
+ * Copyright 2017 Google LLC
26
+ * SPDX-License-Identifier: BSD-3-Clause
27
+ */function e(e){return(i,o)=>void 0!==o?((t,e,i)=>{e.constructor.createProperty(i,t)})(e,i,o):t(e,i)
28
+ /**
29
+ * @license
30
+ * Copyright 2017 Google LLC
31
+ * SPDX-License-Identifier: BSD-3-Clause
32
+ */}function i(t){return e({...t,state:!0})}
33
+ /**
34
+ * @license
35
+ * Copyright 2017 Google LLC
36
+ * SPDX-License-Identifier: BSD-3-Clause
37
+ */
38
+ /**
39
+ * @license
40
+ * Copyright 2017 Google LLC
41
+ * SPDX-License-Identifier: BSD-3-Clause
42
+ */
43
+ function o(t,e){return(({finisher:t,descriptor:e})=>(i,o)=>{var r;if(void 0===o){const o=null!==(r=i.originalKey)&&void 0!==r?r:i.key,s=null!=e?{kind:"method",placement:"prototype",key:o,descriptor:e(i.key)}:{...i,key:o};return null!=t&&(s.finisher=function(e){t(e,o)}),s}{const r=i.constructor;void 0!==e&&Object.defineProperty(i,o,e(o)),null==t||t(r,o)}})({descriptor:i=>{const o={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;o.get=function(){var i,o;return void 0===this[e]&&(this[e]=null!==(o=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==o?o:null),this[e]}}return o}})}
44
+ /**
45
+ * @license
46
+ * Copyright 2021 Google LLC
47
+ * SPDX-License-Identifier: BSD-3-Clause
48
+ */var r;null===(r=window.HTMLSlotElement)||void 0===r||r.prototype.assignedElements;const s=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)}
49
+ /**
50
+ * @license
51
+ * Copyright 2019 Google LLC
52
+ * SPDX-License-Identifier: BSD-3-Clause
53
+ */,n=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,a=Symbol(),l=new Map;class p{constructor(t,e){if(this._$cssResult$=!0,e!==a)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=l.get(this.cssText);return n&&void 0===t&&(l.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const h=t=>new p("string"==typeof t?t:t+"",a),c=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new p(i,a)},f=(t,e)=>{n?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=window.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},d=n?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return h(e)})(t):t
54
+ /**
55
+ * @license
56
+ * Copyright 2017 Google LLC
57
+ * SPDX-License-Identifier: BSD-3-Clause
58
+ */;var u;const y=window.trustedTypes,g=y?y.emptyScript:"",b=window.reactiveElementPolyfillSupport,v={toAttribute(t,e){switch(e){case Boolean:t=t?g: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}},m=(t,e)=>e!==t&&(e==e||t==t),x={attribute:!0,type:String,converter:v,reflect:!1,hasChanged:m};class w extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var e;null!==(e=this.l)&&void 0!==e||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Eh(i,e);void 0!==o&&(this._$Eu.set(o,i),t.push(o))})),t}static createProperty(t,e=x){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const r=this[t];this[e]=o,this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||x}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(d(t))}else void 0!==t&&e.push(d(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 f(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=x){var o,r;const s=this.constructor._$Eh(t,i);if(void 0!==s&&!0===i.reflect){const n=(null!==(r=null===(o=i.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==r?r:v.toAttribute)(e,i.type);this._$Ei=t,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$Ei=null}}_$AK(t,e){var i,o,r;const s=this.constructor,n=s._$Eu.get(t);if(void 0!==n&&this._$Ei!==n){const t=s.getPropertyOptions(n),a=t.converter,l=null!==(r=null!==(o=null===(i=a)||void 0===i?void 0:i.fromAttribute)&&void 0!==o?o:"function"==typeof a?a:null)&&void 0!==r?r:v.fromAttribute;this._$Ei=n,this[n]=l(e,t.type),this._$Ei=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||m)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Ei!==t&&(void 0===this._$E_&&(this._$E_=new Map),this._$E_.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$Ep=this._$EC())}async _$EC(){this.isUpdatePending=!0;try{await this._$Ep}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach(((t,e)=>this[e]=t)),this._$Et=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$Eg)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(t){return!0}update(t){void 0!==this._$E_&&(this._$E_.forEach(((t,e)=>this._$ES(e,this[e],t))),this._$E_=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
59
+ /**
60
+ * @license
61
+ * Copyright 2017 Google LLC
62
+ * SPDX-License-Identifier: BSD-3-Clause
63
+ */
64
+ var $;w.finalized=!0,w.elementProperties=new Map,w.elementStyles=[],w.shadowRootOptions={mode:"open"},null==b||b({ReactiveElement:w}),(null!==(u=globalThis.reactiveElementVersions)&&void 0!==u?u:globalThis.reactiveElementVersions=[]).push("1.2.2");const O=globalThis.trustedTypes,S=O?O.createPolicy("lit-html",{createHTML:t=>t}):void 0,C=`lit$${(Math.random()+"").slice(9)}$`,E="?"+C,N=`<${E}>`,R=document,k=(t="")=>R.createComment(t),M=t=>null===t||"object"!=typeof t&&"function"!=typeof t,z=Array.isArray,U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,F=/-->/g,D=/>/g,A=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,B=/'/g,L=/"/g,T=/^(?:script|style|textarea|title)$/i,j=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),P=Symbol.for("lit-noChange"),_=Symbol.for("lit-nothing"),I=new WeakMap,W=R.createTreeWalker(R,129,null,!1),H=(t,e)=>{const i=t.length-1,o=[];let r,s=2===e?"<svg>":"",n=U;for(let e=0;e<i;e++){const i=t[e];let a,l,p=-1,h=0;for(;h<i.length&&(n.lastIndex=h,l=n.exec(i),null!==l);)h=n.lastIndex,n===U?"!--"===l[1]?n=F:void 0!==l[1]?n=D:void 0!==l[2]?(T.test(l[2])&&(r=RegExp("</"+l[2],"g")),n=A):void 0!==l[3]&&(n=A):n===A?">"===l[0]?(n=null!=r?r:U,p=-1):void 0===l[1]?p=-2:(p=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?A:'"'===l[3]?L:B):n===L||n===B?n=A:n===F||n===D?n=U:(n=A,r=void 0);const c=n===A&&t[e+1].startsWith("/>")?" ":"";s+=n===U?i+N:p>=0?(o.push(a),i.slice(0,p)+"$lit$"+i.slice(p)+C+c):i+C+(-2===p?(o.push(void 0),e):c)}const a=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==S?S.createHTML(a):a,o]};class K{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let r=0,s=0;const n=t.length-1,a=this.parts,[l,p]=H(t,e);if(this.el=K.createElement(l,i),W.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=W.nextNode())&&a.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(C)){const i=p[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(C),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:r,name:e[2],strings:t,ctor:"."===e[1]?q:"?"===e[1]?G:"@"===e[1]?Q:J})}else a.push({type:6,index:r})}for(const e of t)o.removeAttribute(e)}if(T.test(o.tagName)){const t=o.textContent.split(C),e=t.length-1;if(e>0){o.textContent=O?O.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],k()),W.nextNode(),a.push({type:2,index:++r});o.append(t[e],k())}}}else if(8===o.nodeType)if(o.data===E)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(C,t+1));)a.push({type:7,index:r}),t+=C.length-1}r++}}static createElement(t,e){const i=R.createElement("template");return i.innerHTML=t,i}}function Z(t,e,i=t,o){var r,s,n,a;if(e===P)return e;let l=void 0!==o?null===(r=i._$Cl)||void 0===r?void 0:r[o]:i._$Cu;const p=M(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==p&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===p?l=void 0:(l=new p(t),l._$AT(t,i,o)),void 0!==o?(null!==(n=(a=i)._$Cl)&&void 0!==n?n:a._$Cl=[])[o]=l:i._$Cu=l),void 0!==l&&(e=Z(t,l._$AS(t,e.values),l,o)),e}class V{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,r=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:R).importNode(i,!0);W.currentNode=r;let s=W.nextNode(),n=0,a=0,l=o[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new X(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new tt(s,this,t)),this.v.push(e),l=o[++a]}n!==(null==l?void 0:l.index)&&(s=W.nextNode(),n++)}return r}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 X{constructor(t,e,i,o){var r;this.type=2,this._$AH=_,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cg=null===(r=null==o?void 0:o.isConnected)||void 0===r||r}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=Z(this,t,e),M(t)?t===_||null==t||""===t?(this._$AH!==_&&this._$AR(),this._$AH=_):t!==this._$AH&&t!==P&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var e;return z(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(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(this._$AH)?this._$AA.nextSibling.data=t:this.S(R.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=K.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.m(i);else{const t=new V(r,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=I.get(t.strings);return void 0===e&&I.set(t.strings,e=new K(t)),e}A(t){z(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const r of t)o===e.length?e.push(i=new X(this.M(k()),this.M(k()),this,this.options)):i=e[o],i._$AI(r),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class J{constructor(t,e,i,o,r){this.type=1,this._$AH=_,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=_}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const r=this.strings;let s=!1;if(void 0===r)t=Z(this,t,e,0),s=!M(t)||t!==this._$AH&&t!==P,s&&(this._$AH=t);else{const o=t;let n,a;for(t=r[0],n=0;n<r.length-1;n++)a=Z(this,o[i+n],e,n),a===P&&(a=this._$AH[n]),s||(s=!M(a)||a!==this._$AH[n]),a===_?t=_:t!==_&&(t+=(null!=a?a:"")+r[n+1]),this._$AH[n]=a}s&&!o&&this.k(t)}k(t){t===_?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class q extends J{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===_?void 0:t}}const Y=O?O.emptyScript:"";class G extends J{constructor(){super(...arguments),this.type=4}k(t){t&&t!==_?this.element.setAttribute(this.name,Y):this.element.removeAttribute(this.name)}}class Q extends J{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=Z(this,t,e,0))&&void 0!==i?i:_)===P)return;const o=this._$AH,r=t===_&&o!==_||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==_&&(o===_||r);r&&this.element.removeEventListener(this.name,this,o),s&&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 tt{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){Z(this,t)}}const et=window.litHtmlPolyfillSupport;
65
+ /**
66
+ * @license
67
+ * Copyright 2017 Google LLC
68
+ * SPDX-License-Identifier: BSD-3-Clause
69
+ */
70
+ var it,ot;null==et||et(K,X),(null!==($=globalThis.litHtmlVersions)&&void 0!==$?$:globalThis.litHtmlVersions=[]).push("2.1.3");class rt extends w{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=((t,e,i)=>{var o,r;const s=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let n=s._$litPart$;if(void 0===n){const t=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:null;s._$litPart$=n=new X(e.insertBefore(k(),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 P}}rt.finalized=!0,rt._$litElement$=!0,null===(it=globalThis.litElementHydrateSupport)||void 0===it||it.call(globalThis,{LitElement:rt});const st=globalThis.litElementPolyfillSupport;null==st||st({LitElement:rt}),(null!==(ot=globalThis.litElementVersions)&&void 0!==ot?ot:globalThis.litElementVersions=[]).push("3.1.2");class nt{constructor(t,e,i,o,r){this.name=t,this.category=e,this.fallbackVariable=i,this.defaultValue=o,this.context=r,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 nt(t,e,void 0,i)}static extend(t,e,i){return new nt(t,e.category,e,i)}static external(t,e){return new nt(t.name,t.category,t.fallbackVariable,t.defaultValue,e)}get(t){return c`var(${h(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):h(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 at(t,e){return h(`${t.name}: ${e}`)}const lt={colorPrimary:nt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:nt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:nt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:nt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:nt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:nt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:nt.create("--ft-color-error","COLOR","#B00020"),colorOutline:nt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:nt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:nt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:nt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:nt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:nt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:nt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:nt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:nt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:nt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:nt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:nt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:nt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:nt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:nt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:nt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:nt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:nt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:nt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:nt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:nt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:nt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:nt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:nt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:nt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:nt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:nt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:nt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:nt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:nt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:nt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:nt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:nt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:nt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:nt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:nt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:nt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:nt.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:nt.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:nt.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:nt.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:nt.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:nt.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:nt.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:nt.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:nt.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:nt.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:nt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:nt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:nt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:nt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:nt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:nt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:nt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:nt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
71
+ /**
72
+ * @license
73
+ * Copyright 2021 Google LLC
74
+ * SPDX-License-Identifier: BSD-3-Clause
75
+ */class pt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const r=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return f(r,this.constructor.elementStyles),r}}}(rt)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),j`
76
+ ${t.map((t=>j`
77
+ <style>${t}</style>
78
+ `))}
79
+ ${this.getTemplate()}
80
+ `}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}const ht=c`
81
+ .ft-no-text-select {
82
+ -webkit-touch-callout: none;
83
+ -webkit-user-select: none;
84
+ -khtml-user-select: none;
85
+ -moz-user-select: none;
86
+ -ms-user-select: none;
87
+ user-select: none;
88
+ }
89
+ `;var ct,ft;navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(ft=null===(ct=window.safari)||void 0===ct?void 0:ct.pushNotification)||void 0===ft||ft.toString());
90
+ /**
91
+ * @license
92
+ * Copyright 2017 Google LLC
93
+ * SPDX-License-Identifier: BSD-3-Clause
94
+ */
95
+ const dt=1;
96
+ /**
97
+ * @license
98
+ * Copyright 2018 Google LLC
99
+ * SPDX-License-Identifier: BSD-3-Clause
100
+ */
101
+ const ut=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class{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)}}{constructor(t){var e;if(super(t),t.type!==dt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.et=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.et)||void 0===i?void 0:i.has(t))&&this.st.add(t);return this.render(e)}const r=t.element.classList;this.st.forEach((t=>{t in e||(r.remove(t),this.st.delete(t))}));for(const t in e){const i=!!e[t];i===this.st.has(t)||(null===(o=this.et)||void 0===o?void 0:o.has(t))||(i?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)))}return P}}),yt=t=>({_$litStatic$:t}),gt=new Map,bt=(t=>(e,...i)=>{var o;const r=i.length;let s,n;const a=[],l=[];let p,h=0,c=!1;for(;h<r;){for(p=e[h];h<r&&void 0!==(n=i[h],s=null===(o=n)||void 0===o?void 0:o._$litStatic$);)p+=s+e[++h],c=!0;l.push(n),a.push(p),h++}if(h===r&&a.push(e[r]),c){const t=a.join("$$lit$$");void 0===(e=gt.get(t))&&(a.raw=a,gt.set(t,e=a)),i=l}return t(e,...i)})(j);
102
+ /**
103
+ * @license
104
+ * Copyright 2020 Google LLC
105
+ * SPDX-License-Identifier: BSD-3-Clause
106
+ */var vt,mt=function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>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"}(vt||(vt={}));const xt=nt.extend("--ft-typography-font-family",lt.titleFont),wt=nt.extend("--ft-typography-font-family",lt.contentFont),$t={fontFamily:wt,fontSize:nt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:nt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:nt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:nt.create("--ft-typography-line-height","SIZE","24px"),textTransform:nt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Ot=nt.extend("--ft-typography-title-font-family",xt),St=nt.extend("--ft-typography-title-font-size",$t.fontSize,"20px"),Ct=nt.extend("--ft-typography-title-font-weight",$t.fontWeight,"normal"),Et=nt.extend("--ft-typography-title-letter-spacing",$t.letterSpacing,"0.15px"),Nt=nt.extend("--ft-typography-title-line-height",$t.lineHeight,"24px"),Rt=nt.extend("--ft-typography-title-text-transform",$t.textTransform,"inherit"),kt=nt.extend("--ft-typography-title-dense-font-family",xt),Mt=nt.extend("--ft-typography-title-dense-font-size",$t.fontSize,"14px"),zt=nt.extend("--ft-typography-title-dense-font-weight",$t.fontWeight,"normal"),Ut=nt.extend("--ft-typography-title-dense-letter-spacing",$t.letterSpacing,"0.105px"),Ft=nt.extend("--ft-typography-title-dense-line-height",$t.lineHeight,"24px"),Dt=nt.extend("--ft-typography-title-dense-text-transform",$t.textTransform,"inherit"),At=nt.extend("--ft-typography-subtitle1-font-family",wt),Bt=nt.extend("--ft-typography-subtitle1-font-size",$t.fontSize,"16px"),Lt=nt.extend("--ft-typography-subtitle1-font-weight",$t.fontWeight,"600"),Tt=nt.extend("--ft-typography-subtitle1-letter-spacing",$t.letterSpacing,"0.144px"),jt=nt.extend("--ft-typography-subtitle1-line-height",$t.lineHeight,"24px"),Pt=nt.extend("--ft-typography-subtitle1-text-transform",$t.textTransform,"inherit"),_t=nt.extend("--ft-typography-subtitle2-font-family",wt),It=nt.extend("--ft-typography-subtitle2-font-size",$t.fontSize,"14px"),Wt=nt.extend("--ft-typography-subtitle2-font-weight",$t.fontWeight,"normal"),Ht=nt.extend("--ft-typography-subtitle2-letter-spacing",$t.letterSpacing,"0.098px"),Kt=nt.extend("--ft-typography-subtitle2-line-height",$t.lineHeight,"24px"),Zt=nt.extend("--ft-typography-subtitle2-text-transform",$t.textTransform,"inherit"),Vt={fontFamily:nt.extend("--ft-typography-body1-font-family",wt),fontSize:nt.extend("--ft-typography-body1-font-size",$t.fontSize,"16px"),fontWeight:nt.extend("--ft-typography-body1-font-weight",$t.fontWeight,"normal"),letterSpacing:nt.extend("--ft-typography-body1-letter-spacing",$t.letterSpacing,"0.496px"),lineHeight:nt.extend("--ft-typography-body1-line-height",$t.lineHeight,"24px"),textTransform:nt.extend("--ft-typography-body1-text-transform",$t.textTransform,"inherit")},Xt=nt.extend("--ft-typography-body2-font-family",wt),Jt=nt.extend("--ft-typography-body2-font-size",$t.fontSize,"14px"),qt=nt.extend("--ft-typography-body2-font-weight",$t.fontWeight,"normal"),Yt=nt.extend("--ft-typography-body2-letter-spacing",$t.letterSpacing,"0.252px"),Gt=nt.extend("--ft-typography-body2-line-height",$t.lineHeight,"20px"),Qt=nt.extend("--ft-typography-body2-text-transform",$t.textTransform,"inherit"),te={fontFamily:nt.extend("--ft-typography-caption-font-family",wt),fontSize:nt.extend("--ft-typography-caption-font-size",$t.fontSize,"12px"),fontWeight:nt.extend("--ft-typography-caption-font-weight",$t.fontWeight,"normal"),letterSpacing:nt.extend("--ft-typography-caption-letter-spacing",$t.letterSpacing,"0.396px"),lineHeight:nt.extend("--ft-typography-caption-line-height",$t.lineHeight,"16px"),textTransform:nt.extend("--ft-typography-caption-text-transform",$t.textTransform,"inherit")},ee=nt.extend("--ft-typography-breadcrumb-font-family",wt),ie=nt.extend("--ft-typography-breadcrumb-font-size",$t.fontSize,"10px"),oe=nt.extend("--ft-typography-breadcrumb-font-weight",$t.fontWeight,"normal"),re=nt.extend("--ft-typography-breadcrumb-letter-spacing",$t.letterSpacing,"0.33px"),se=nt.extend("--ft-typography-breadcrumb-line-height",$t.lineHeight,"16px"),ne=nt.extend("--ft-typography-breadcrumb-text-transform",$t.textTransform,"inherit"),ae=nt.extend("--ft-typography-overline-font-family",wt),le=nt.extend("--ft-typography-overline-font-size",$t.fontSize,"10px"),pe=nt.extend("--ft-typography-overline-font-weight",$t.fontWeight,"normal"),he=nt.extend("--ft-typography-overline-letter-spacing",$t.letterSpacing,"1.5px"),ce=nt.extend("--ft-typography-overline-line-height",$t.lineHeight,"16px"),fe=nt.extend("--ft-typography-overline-text-transform",$t.textTransform,"uppercase"),de=nt.extend("--ft-typography-button-font-family",wt),ue=nt.extend("--ft-typography-button-font-size",$t.fontSize,"14px"),ye=nt.extend("--ft-typography-button-font-weight",$t.fontWeight,"600"),ge=nt.extend("--ft-typography-button-letter-spacing",$t.letterSpacing,"1.246px"),be=nt.extend("--ft-typography-button-line-height",$t.lineHeight,"16px"),ve=nt.extend("--ft-typography-button-text-transform",$t.textTransform,"uppercase"),me=c`
107
+ .ft-typography--title {
108
+ font-family: ${Ot};
109
+ font-size: ${St};
110
+ font-weight: ${Ct};
111
+ letter-spacing: ${Et};
112
+ line-height: ${Nt};
113
+ text-transform: ${Rt};
114
+ }
115
+ `,xe=c`
116
+ .ft-typography--title-dense {
117
+ font-family: ${kt};
118
+ font-size: ${Mt};
119
+ font-weight: ${zt};
120
+ letter-spacing: ${Ut};
121
+ line-height: ${Ft};
122
+ text-transform: ${Dt};
123
+ }
124
+ `,we=c`
125
+ .ft-typography--subtitle1 {
126
+ font-family: ${At};
127
+ font-size: ${Bt};
128
+ font-weight: ${Lt};
129
+ letter-spacing: ${Tt};
130
+ line-height: ${jt};
131
+ text-transform: ${Pt};
132
+ }
133
+ `,$e=c`
134
+ .ft-typography--subtitle2 {
135
+ font-family: ${_t};
136
+ font-size: ${It};
137
+ font-weight: ${Wt};
138
+ letter-spacing: ${Ht};
139
+ line-height: ${Kt};
140
+ text-transform: ${Zt};
141
+ }
142
+
143
+ `,Oe=c`
144
+ .ft-typography--body1 {
145
+ font-family: ${Vt.fontFamily};
146
+ font-size: ${Vt.fontSize};
147
+ font-weight: ${Vt.fontWeight};
148
+ letter-spacing: ${Vt.letterSpacing};
149
+ line-height: ${Vt.lineHeight};
150
+ text-transform: ${Vt.textTransform};
151
+ }
152
+ `,Se=c`
153
+ .ft-typography--body2 {
154
+ font-family: ${Xt};
155
+ font-size: ${Jt};
156
+ font-weight: ${qt};
157
+ letter-spacing: ${Yt};
158
+ line-height: ${Gt};
159
+ text-transform: ${Qt};
160
+ }
161
+ `,Ce=c`
162
+ .ft-typography--caption {
163
+ font-family: ${te.fontFamily};
164
+ font-size: ${te.fontSize};
165
+ font-weight: ${te.fontWeight};
166
+ letter-spacing: ${te.letterSpacing};
167
+ line-height: ${te.lineHeight};
168
+ text-transform: ${te.textTransform};
169
+ }
170
+ `,Ee=c`
171
+ .ft-typography--breadcrumb {
172
+ font-family: ${ee};
173
+ font-size: ${ie};
174
+ font-weight: ${oe};
175
+ letter-spacing: ${re};
176
+ line-height: ${se};
177
+ text-transform: ${ne};
178
+ }
179
+ `,Ne=c`
180
+ .ft-typography--overline {
181
+ font-family: ${ae};
182
+ font-size: ${le};
183
+ font-weight: ${pe};
184
+ letter-spacing: ${he};
185
+ line-height: ${ce};
186
+ text-transform: ${fe};
187
+ }
188
+ `,Re=c`
189
+ .ft-typography--button {
190
+ font-family: ${de};
191
+ font-size: ${ue};
192
+ font-weight: ${ye};
193
+ letter-spacing: ${ge};
194
+ line-height: ${be};
195
+ text-transform: ${ve};
196
+ }
197
+ `;class ke extends pt{constructor(){super(...arguments),this.variant=vt.body1}render(){return this.element?bt`
198
+ <${yt(this.element)}
199
+ class="ft-typography ft-typography--${this.variant}">
200
+ <slot></slot>
201
+ </${yt(this.element)}>
202
+ `:bt`
203
+ <slot class="ft-typography ft-typography--${this.variant}"></slot>
204
+ `}}ke.styles=[me,xe,we,$e,Oe,Se,Ce,Ee,Ne,Re,c`
205
+ .ft-typography {
206
+ vertical-align: inherit;
207
+ }
208
+ `],mt([e()],ke.prototype,"element",void 0),mt([e()],ke.prototype,"variant",void 0),s("ft-typography")(ke);
209
+ /**
210
+ * @license
211
+ * Copyright 2021 Google LLC
212
+ * SPDX-LIcense-Identifier: Apache-2.0
213
+ */
214
+ const Me=c`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}`
215
+ /**
216
+ * @license
217
+ * Copyright 2018 Google LLC
218
+ * SPDX-License-Identifier: Apache-2.0
219
+ */;let ze=class extends rt{render(){return j`<span><slot></slot></span>`}};ze.styles=[Me],ze=
220
+ /*! *****************************************************************************
221
+ Copyright (c) Microsoft Corporation.
222
+
223
+ Permission to use, copy, modify, and/or distribute this software for any
224
+ purpose with or without fee is hereby granted.
225
+
226
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
227
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
228
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
229
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
230
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
231
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
232
+ PERFORMANCE OF THIS SOFTWARE.
233
+ ***************************************************************************** */
234
+ function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n}([(t=>e=>"function"==typeof e?((t,e)=>(window.customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:i,elements:o}=e;return{kind:i,elements:o,finisher(e){window.customElements.define(t,e)}}})(t,e))("mwc-icon")],ze);var Ue=function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n};class Fe extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}const De=nt.external(lt.colorOutline,"Design system"),Ae=nt.external(lt.colorOnSurfaceMedium,"Design system");class Be extends pt{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.cursor="nwse-resize",this.dragging=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=t=>this.doDrag(t.clientX,t.clientY),this.doDragFromTouch=t=>this.doDrag(t.touches[0].clientX,t.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return j`
235
+ <style>
236
+ .ft-resizer {
237
+ cursor: ${h(this.cursor)}
238
+ }
239
+ </style>
240
+ <div class="ft-resizer ft-no-text-select ${this.dragging?"ft-resizer--dragging":""}"
241
+ @mousedown=${this.initDragFromMouse}
242
+ @touchstart=${this.initDragFromTouch}>
243
+ <mwc-icon>${this.icon}</mwc-icon>
244
+ </div>
245
+ `}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let i=this.fixedWidth+t-this.startX,o=this.fixedHeight+e-this.startY;this.dispatchEvent(new Fe(i,o))}}Be.elementDefinitions={"mwc-icon":ze},Be.styles=[ht,c`
246
+ :host {
247
+ display: block;
248
+ }
249
+
250
+ .ft-resizer {
251
+ display: flex;
252
+ }
253
+
254
+ mwc-icon {
255
+ transform: rotate(-45deg);
256
+ color: ${De};
257
+ }
258
+
259
+ .ft-resizer--dragging mwc-icon,
260
+ .ft-resizer:hover mwc-icon {
261
+ color: ${Ae};
262
+ }
263
+ `],Ue([e({type:Number})],Be.prototype,"initialWidth",void 0),Ue([e({type:Number})],Be.prototype,"initialHeight",void 0),Ue([e()],Be.prototype,"icon",void 0),Ue([e()],Be.prototype,"cursor",void 0),Ue([i()],Be.prototype,"dragging",void 0),s("ft-resizer")(Be);var Le=function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n};const Te={fontSize:nt.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:nt.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:nt.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:nt.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:nt.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:nt.extend("--ft-input-label-border-color",lt.colorOutline),textColor:nt.extend("--ft-input-label-text-color",lt.colorOnSurfaceMedium),disabledTextColor:nt.extend("--ft-input-label-disabled-text-color",lt.colorOnSurfaceDisabled),colorSurface:nt.external(lt.colorSurface,"Design system"),borderRadiusS:nt.external(lt.borderRadiusS,"Design system")};class je extends pt{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled};return j`
264
+ <div class="${ut(t)}">
265
+ ${this.text?j`
266
+ <div class="ft-input-label--text ft-typography--caption">
267
+ <span class="ft-input-label--floating-text">${this.text}</span>
268
+ <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
269
+ </div>
270
+ `:null}
271
+ </div>
272
+ `}}je.elementDefinitions={},je.styles=[Ce,c`
273
+ .ft-input-label {
274
+ position: absolute;
275
+ inset: 0;
276
+ display: flex;
277
+ }
278
+
279
+ .ft-input-label {
280
+ border-color: ${Te.borderColor};
281
+ }
282
+
283
+ .ft-input-label:before,
284
+ .ft-input-label:after {
285
+ content: "";
286
+ display: flex;
287
+ border-bottom-width: 1px;
288
+ border-bottom-style: solid;
289
+ border-color: inherit;
290
+ }
291
+
292
+ .ft-input-label:before {
293
+ width: ${Te.horizontalSpacing};
294
+ flex-shrink: 0;
295
+ }
296
+
297
+ .ft-input-label:after {
298
+ flex-grow: 1;
299
+ flex-shrink: 1;
300
+ }
301
+
302
+ .ft-input-label--text {
303
+ display: flex;
304
+ flex-shrink: 1;
305
+ position: relative;
306
+ border-bottom-width: 1px;
307
+ border-bottom-style: solid;
308
+ border-color: inherit;
309
+ color: ${Te.textColor};
310
+ transition: font-size 250ms, line-height 250ms, color 250ms;
311
+ ${at(te.fontSize,Te.fontSize)};
312
+ ${at(te.lineHeight,Te.fontSize)};
313
+ }
314
+
315
+ .ft-input-label--disabled .ft-input-label--text {
316
+ color: ${Te.disabledTextColor};
317
+ }
318
+
319
+ .ft-input-label--hidden-text {
320
+ padding: 0 4px;
321
+ opacity: 0;
322
+ }
323
+
324
+ .ft-input-label--floating-text {
325
+ position: absolute;
326
+ top: calc(50% - var(--ft-typography-caption-line-height) / 2);
327
+ transition: top 250ms;
328
+ width: calc(100% - 8px);
329
+ overflow: hidden;
330
+ white-space: nowrap;
331
+ text-overflow: ellipsis;
332
+ padding: ${Te.verticalSpacing} 4px;
333
+ margin: calc(${Te.verticalSpacing} * -1) 0;
334
+ }
335
+
336
+ .ft-input-label--raised .ft-input-label--text {
337
+ ${at(te.fontSize,Te.raisedFontSize)};
338
+ ${at(te.lineHeight,Te.raisedFontSize)};
339
+ }
340
+
341
+ .ft-input-label--raised .ft-input-label--floating-text {
342
+ top: ${Te.verticalSpacing};
343
+ }
344
+
345
+ .ft-input-label--outlined .ft-input-label--text,
346
+ .ft-input-label--outlined:before,
347
+ .ft-input-label--outlined:after {
348
+ border-top-width: 1px;
349
+ border-top-style: solid;
350
+ }
351
+
352
+ .ft-input-label--outlined:before {
353
+ border-left-width: 1px;
354
+ border-left-style: solid;
355
+ border-radius: ${Te.borderRadiusS} 0 0 ${Te.borderRadiusS};
356
+ }
357
+
358
+ .ft-input-label--outlined:after {
359
+ border-right-width: 1px;
360
+ border-right-style: solid;
361
+ border-radius: 0 ${Te.borderRadiusS} ${Te.borderRadiusS} 0;
362
+ }
363
+
364
+ .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
365
+ padding: 2px 4px;
366
+ z-index: ${Te.raisedZIndex};
367
+ background-color: ${Te.colorSurface};
368
+ border-radius: ${Te.borderRadiusS};
369
+ top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
370
+ }
371
+
372
+ .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
373
+ border-top: none;
374
+ }
375
+ `],Le([e({type:String})],je.prototype,"text",void 0),Le([e({type:Boolean})],je.prototype,"raised",void 0),Le([e({type:Boolean})],je.prototype,"outlined",void 0),Le([e({type:Boolean})],je.prototype,"disabled",void 0),s("ft-input-label")(je);var Pe=function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n};const _e={color:nt.extend("--ft-ripple-color",lt.colorContent),primaryColor:nt.extend("--ft-ripple-primary-color",nt.extend("--ft-ripple-color",lt.colorPrimary)),secondaryColor:nt.extend("--ft-ripple-secondary-color",nt.extend("--ft-ripple-color",lt.colorSecondary)),opacityContentOnSurfacePressed:nt.external(lt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:nt.external(lt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:nt.external(lt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:nt.external(lt.opacityContentOnSurfaceSelected,"Design system")};class Ie extends pt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed)},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:r}=this.getCoordinates(t),s=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-s.x:s.width/2),this.originY=Math.round(null!=r?r-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return j`
376
+ <style>
377
+ .ft-ripple .ft-ripple--effect,
378
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
379
+ width: ${this.rippleSize}px;
380
+ height: ${this.rippleSize}px;
381
+ }
382
+
383
+ .ft-ripple .ft-ripple--effect {
384
+ left: ${this.originX}px;
385
+ top: ${this.originY}px;
386
+ }
387
+ </style>
388
+ <div class="${ut(t)}">
389
+ <div class="ft-ripple--background"></div>
390
+ <div class="ft-ripple--effect"></div>
391
+ </div>
392
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){super.updated(t),t.has("disabled")&&this.disabled&&this.endRipple(),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,r;return null!=e.x?({x:o,y:r}=e):null!=i.touches&&(o=i.touches[0].clientX,r=i.touches[0].clientY),{x:o,y:r}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Ie.elementDefinitions={},Ie.styles=c`
393
+ :host {
394
+ display: contents;
395
+ }
396
+
397
+ .ft-ripple {
398
+ position: absolute;
399
+ inset: 0;
400
+ pointer-events: none;
401
+ }
402
+
403
+ .ft-ripple:not(.ft-ripple--unbounded) {
404
+ overflow: hidden;
405
+ }
406
+
407
+ .ft-ripple .ft-ripple--background,
408
+ .ft-ripple .ft-ripple--effect {
409
+ position: absolute;
410
+ opacity: 0;
411
+ background-color: ${_e.color};
412
+ }
413
+
414
+ .ft-ripple.ft-ripple--secondary .ft-ripple--background,
415
+ .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
416
+ background-color: ${_e.secondaryColor};
417
+ }
418
+
419
+ .ft-ripple.ft-ripple--primary .ft-ripple--background,
420
+ .ft-ripple.ft-ripple--primary .ft-ripple--effect {
421
+ background-color: ${_e.primaryColor};
422
+ }
423
+
424
+ .ft-ripple .ft-ripple--background {
425
+ top: 0;
426
+ left: 0;
427
+ height: 100%;
428
+ width: 100%;
429
+ }
430
+
431
+ .ft-ripple .ft-ripple--effect,
432
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
433
+ border-radius: 50%;
434
+ }
435
+
436
+ .ft-ripple .ft-ripple--effect {
437
+ transform: translate(-50%, -50%) scale(0.15);
438
+ transition: transform 300ms ease, opacity 75ms linear;
439
+ }
440
+
441
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
442
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
443
+ left: 50%;
444
+ top: 50%;
445
+ }
446
+
447
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
448
+ transform: translate(-50%, -50%);
449
+ }
450
+
451
+ .ft-ripple.ft-ripple--hovered .ft-ripple--background {
452
+ opacity: ${_e.opacityContentOnSurfaceHover};
453
+ }
454
+
455
+ .ft-ripple.ft-ripple--selected .ft-ripple--background {
456
+ opacity: ${_e.opacityContentOnSurfaceSelected};
457
+ }
458
+
459
+ .ft-ripple.ft-ripple--focused .ft-ripple--background {
460
+ opacity: ${_e.opacityContentOnSurfaceFocused};
461
+ }
462
+
463
+ .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
464
+ opacity: ${_e.opacityContentOnSurfacePressed};
465
+ transform: translate(-50%, -50%) scale(1);
466
+ }
467
+ `,Pe([e({type:Boolean})],Ie.prototype,"primary",void 0),Pe([e({type:Boolean})],Ie.prototype,"secondary",void 0),Pe([e({type:Boolean})],Ie.prototype,"unbounded",void 0),Pe([e({type:Boolean})],Ie.prototype,"activated",void 0),Pe([e({type:Boolean})],Ie.prototype,"selected",void 0),Pe([e({type:Boolean})],Ie.prototype,"disabled",void 0),Pe([i()],Ie.prototype,"hovered",void 0),Pe([i()],Ie.prototype,"focused",void 0),Pe([i()],Ie.prototype,"pressed",void 0),Pe([i()],Ie.prototype,"rippling",void 0),Pe([i()],Ie.prototype,"rippleSize",void 0),Pe([i()],Ie.prototype,"originX",void 0),Pe([i()],Ie.prototype,"originY",void 0),Pe([o(".ft-ripple")],Ie.prototype,"ripple",void 0),Pe([o(".ft-ripple--effect")],Ie.prototype,"rippleEffect",void 0),s("ft-ripple")(Ie);var We=function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n};const He={fontSize:nt.create("--ft-text-area-font-size","SIZE","14px"),labelSize:nt.create("--ft-text-area-label-size","SIZE","11px"),verticalSpacing:nt.create("--ft-text-area-vertical-spacing","SIZE","4px"),horizontalSpacing:nt.create("--ft-text-area-horizontal-spacing","SIZE","16px"),helperColor:nt.extend("--ft-text-area-helper-color",lt.colorOnSurfaceMedium),colorPrimary:nt.external(lt.colorPrimary,"Design system"),colorOnSurface:nt.external(lt.colorOnSurface,"Design system"),colorOnSurfaceDisabled:nt.external(lt.colorOnSurfaceDisabled,"Design system"),borderRadiusS:nt.external(lt.borderRadiusS,"Design system")};class Ke extends pt{constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.height=50,this.focused=!1}render(){const t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label};return j`
468
+ <style>
469
+ .ft-text-area--main-panel {
470
+ height: calc(4 * ${He.verticalSpacing} + ${He.labelSize} + ${He.fontSize} + ${this.height}px);
471
+ }
472
+ </style>
473
+ <div class="${ut(t)}">
474
+ <div class="ft-text-area--main-panel">
475
+ <ft-input-label text="${this.label}"
476
+ ?disabled=${this.disabled}
477
+ ?outlined=${this.outlined}
478
+ ?raised=${this.focused||""!=this.value}
479
+ ></ft-input-label>
480
+ <div class="ft-text-area--input-panel"
481
+ aria-label="${this.label}">
482
+ ${this.outlined?null:j`
483
+ <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
484
+ `}
485
+ <textarea class="ft-typography--body1 ft-text-area--input"
486
+ ?disabled=${this.disabled}
487
+ .value=${this.value}
488
+ @change=${this.updateValueFromInputField}
489
+ @keydown=${this.onKeyDown}
490
+ @keyup=${this.liveUpdateValueFromInputField}
491
+ @focus=${()=>this.focused=!0}
492
+ @focusout=${()=>this.focused=!1}>
493
+ </textarea>
494
+ </div>
495
+ <ft-resizer @resize=${this.onResize}
496
+ initialHeight="${this.height}"
497
+ cursor="ns-resize"></ft-resizer>
498
+ </div>
499
+ ${this.helper?j`
500
+ <ft-typography class="ft-text-area--helper-text" variant="caption">
501
+ ${this.helper}
502
+ </ft-typography>`:void 0}
503
+ </div>
504
+ `}updated(t){super.updated(t),t.has("value")&&this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||""}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}Ke.elementDefinitions={"ft-input-label":je,"ft-resizer":Be,"ft-ripple":Ie,"ft-typography":ke},Ke.styles=[Oe,c`
505
+ *:focus {
506
+ outline: none;
507
+ }
508
+
509
+ .ft-text-area {
510
+ display: flex;
511
+ flex-direction: column;
512
+ align-items: stretch;
513
+ }
514
+
515
+ ft-input-label {
516
+ ${at(Te.fontSize,He.fontSize)};
517
+ ${at(Te.raisedFontSize,He.labelSize)};
518
+ ${at(Te.verticalSpacing,He.verticalSpacing)};
519
+ ${at(Te.horizontalSpacing,c`calc(${He.horizontalSpacing} - 4px)`)};
520
+ }
521
+
522
+ .ft-text-area--main-panel {
523
+ position: relative;
524
+ display: flex;
525
+ }
526
+
527
+ .ft-text-area--input-panel {
528
+ flex-grow: 1;
529
+ position: relative;
530
+ display: flex;
531
+ align-items: center;
532
+ overflow: hidden;
533
+ gap: 8px;
534
+ }
535
+
536
+ .ft-text-area--input-panel ft-ripple {
537
+ ${at(_e.opacityContentOnSurfaceHover,"0.08")};
538
+ ${at(_e.opacityContentOnSurfacePressed,"0.04")};
539
+ }
540
+
541
+ .ft-text-area--input {
542
+ display: block;
543
+ flex-grow: 1;
544
+ flex-shrink: 1;
545
+ min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
546
+ align-self: stretch;
547
+ resize: none;
548
+
549
+ ${at(Vt.fontSize,He.fontSize)};
550
+ ${at(Vt.lineHeight,He.fontSize)};
551
+ color: ${He.colorOnSurface};
552
+
553
+ padding: 0 ${He.horizontalSpacing};
554
+ margin: calc(${He.verticalSpacing} + ${He.labelSize} / 2) 0 ${He.verticalSpacing} 0;
555
+
556
+ border: none;
557
+ background: none;
558
+
559
+ line-height: 1.4;
560
+ }
561
+
562
+ .ft-text-area--disabled .ft-text-area--input {
563
+ color: ${He.colorOnSurfaceDisabled};
564
+ }
565
+
566
+ .ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
567
+ cursor: pointer;
568
+ }
569
+
570
+ .ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
571
+ ${at(Te.borderColor,He.colorPrimary)};
572
+ ${at(Te.textColor,He.colorPrimary)};
573
+ }
574
+
575
+ .ft-text-area--filled .ft-text-area--input-panel {
576
+ border-radius: ${He.borderRadiusS} ${He.borderRadiusS} 0 0;
577
+ }
578
+
579
+ .ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
580
+ align-self: stretch;
581
+ margin-bottom: ${He.verticalSpacing};
582
+ margin-top: calc(${He.labelSize} + 2 * ${He.verticalSpacing});
583
+ }
584
+
585
+ .ft-text-area--outlined .ft-text-area--input-panel {
586
+ border-radius: ${He.borderRadiusS};
587
+ }
588
+
589
+ .ft-text-area--helper-text {
590
+ padding: 0 12px 0 ${He.horizontalSpacing};
591
+ color: ${He.helperColor};
592
+ }
593
+
594
+ ft-resizer {
595
+ position: absolute;
596
+ right: 0;
597
+ bottom: 0;
598
+ }
599
+ `],We([e({type:String})],Ke.prototype,"label",void 0),We([e({reflect:!0})],Ke.prototype,"value",void 0),We([e({type:String})],Ke.prototype,"helper",void 0),We([e({type:Boolean})],Ke.prototype,"outlined",void 0),We([e({type:Boolean})],Ke.prototype,"disabled",void 0),We([e({type:Number,reflect:!0})],Ke.prototype,"height",void 0),We([o("textarea")],Ke.prototype,"textarea",void 0),We([i()],Ke.prototype,"focused",void 0),s("ft-text-area")(function t(e){var i;let o;if("elementDefinitions"in e){o={};const i=e.elementDefinitions;for(let e in i)o[e]=t(i[e])}return i=class extends e{constructor(...t){super(t),this._constructor=this.constructor}render(){var t;let i=null!==(t=e.styles)&&void 0!==t?t:[];return Array.isArray(i)||(i=[i]),j`
600
+ ${i.map((t=>j`
601
+ <style>${t}</style>
602
+ `))}
603
+ ${super.render()}
604
+ `}},i.styles=void 0,i.elementDefinitions=o,i}(Ke))}();