@fluid-topics/ft-copy-block 1.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.
- package/README.md +19 -0
- package/build/CopyBlockComponentMessages.d.ts +7 -0
- package/build/CopyBlockComponentMessages.js +6 -0
- package/build/ft-copy-block.css.d.ts +10 -0
- package/build/ft-copy-block.css.js +56 -0
- package/build/ft-copy-block.d.ts +11 -0
- package/build/ft-copy-block.js +58 -0
- package/build/ft-copy-block.light.js +866 -0
- package/build/ft-copy-block.min.js +1033 -0
- package/build/ft-copy-block.properties.d.ts +2 -0
- package/build/ft-copy-block.properties.js +1 -0
- package/build/index.d.ts +3 -0
- package/build/index.js +6 -0
- package/package.json +26 -0
|
@@ -0,0 +1,1033 @@
|
|
|
1
|
+
!function(t){
|
|
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
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,o=window.customElements.get,r=window.customElements,i=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let c;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,i){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(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=i.prototype.attributeChangedCallback,c=new Set(i.observedAttributes||[]);u(i,c,s);const l={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:c};this._definitionsByTag.set(t,l),this._definitionsByClass.set(i,l);let f=o.call(r,t);f||(f=p(t),e.call(r,t,f)),this===window.customElements&&(a.set(i,l),l.standInClass=f);const h=this._awaitingUpgrade.get(t);if(h){this._awaitingUpgrade.delete(t);for(const t of h)n.delete(t),d(t,l,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){b.push(this),r.upgrade.apply(r,arguments),b.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.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 o=this._whenDefinedPromises.get(t);return void 0===o&&(o={},o.promise=new Promise((t=>o.resolve=t)),this._whenDefinedPromises.set(t,o)),o.promise}_upgradeWhenDefined(t,e,o){let r=this._awaitingUpgrade.get(e);r||this._awaitingUpgrade.set(e,r=new Set),o?r.add(t):r.delete(t)}},window.HTMLElement=function(){let e=c;if(e)return c=void 0,e;const o=a.get(this.constructor);if(!o)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],o.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),i.set(e,o),e},window.HTMLElement.prototype=t.prototype;const l=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!l(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),l(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const r=f(o)||window.customElements,i=r._getDefinition(e);return i?d(o,i):n.set(o,r),o}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=i.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},u=(t,e,o)=>{if(0===e.size||void 0===o)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);r.call(this,n,i),o.call(this,n,t,i)}else r.call(this,n,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);i.call(this,r),o.call(this,r,t,null)}else i.call(this,r)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,r){const i=t.toLowerCase();if(e.has(i)){const t=this.getAttribute(i);n.call(this,i,r);const e=this.getAttribute(i);o.call(this,i,t,e)}else n.call(this,i,r)})},h=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):h(o)},d=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),i.set(t,e),c=t;try{new e.elementClass}catch(t){h(e.elementClass),new e.elementClass}e.attributeChangedCallback&&e.observedAttributes.forEach((o=>{t.hasAttribute(o)&&e.attributeChangedCallback.call(t,o,null,t.getAttribute(o))})),o&&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 b=[document];const g=(t,e,o=void 0)=>{const r=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=r.apply(o||this,arguments);return void 0!==t&&s.set(t,this),b.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const m=(t,e)=>{const o=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...o,set(t){b.push(this),o.set.call(this,t),b.pop()}})};if(m(Element,"innerHTML"),m(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,o=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...o){const r=e.call(this,...o);return t.set(r,this),r},o.forEach((e=>{const o=window.ElementInternals.prototype,r=o[e];o[e]=function(...e){const o=t.get(this);if(!0===i.get(o).formAssociated)return r?.call(this,...e);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,o)=>{const r=t.getAttribute("name"),i=e.get(r)||[];this[+o]=t,i.push(t),e.set(r,i)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new r(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),e=[];for(const o of t){const t=i.get(o);t&&!0!==t.formAssociated||e.push(o)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(ws){const t=window.customElements.define;window.customElements.define=(e,o,r)=>{if(null!==o)try{t.bind(window.customElements)(e,o,r)}catch(t){console.info(e,o,r,t)}}}
|
|
16
|
+
/**
|
|
17
|
+
* @license
|
|
18
|
+
* Copyright 2019 Google LLC
|
|
19
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
20
|
+
*/
|
|
21
|
+
const e=globalThis,o=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),i=new WeakMap;const n=t=>new class{constructor(t,e,o){if(this._$cssResult$=!0,o!==r)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(o&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=i.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&i.set(e,t))}return t}toString(){return this.cssText}}("string"==typeof t?t:t+"",void 0,r),a=o?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return n(e)})(t):t
|
|
22
|
+
/**
|
|
23
|
+
* @license
|
|
24
|
+
* Copyright 2017 Google LLC
|
|
25
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
26
|
+
*/,{is:s,defineProperty:c,getOwnPropertyDescriptor:l,getOwnPropertyNames:f,getOwnPropertySymbols:p,getPrototypeOf:u}=Object,h=globalThis,d=h.trustedTypes,y=d?d.emptyScript:"",b=h.reactiveElementPolyfillSupport,g=(t,e)=>t,m={toAttribute(t,e){switch(e){case Boolean:t=t?y:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},v=(t,e)=>!s(t,e),x={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:v};Symbol.metadata??=Symbol("metadata"),h.litPropertyMetadata??=new WeakMap;let O=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=x){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),r=this.getPropertyDescriptor(t,o,e);void 0!==r&&c(this.prototype,t,r)}}static getPropertyDescriptor(t,e,o){const{get:r,set:i}=l(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return r?.call(this)},set(e){const n=r?.call(this);i.call(this,e),this.requestUpdate(t,n,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??x}static _$Ei(){if(this.hasOwnProperty(g("elementProperties")))return;const t=u(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(g("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(g("properties"))){const t=this.properties,e=[...f(t),...p(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(a(t))}else void 0!==t&&e.push(a(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,r)=>{if(o)t.adoptedStyleSheets=r.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of r){const r=document.createElement("style"),i=e.litNonce;void 0!==i&&r.setAttribute("nonce",i),r.textContent=o.cssText,t.appendChild(r)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){const o=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,o);if(void 0!==r&&!0===o.reflect){const i=(void 0!==o.converter?.toAttribute?o.converter:m).toAttribute(e,o.type);this._$Em=t,null==i?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(t,e){const o=this.constructor,r=o._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=o.getPropertyOptions(r),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:m;this._$Em=r,this[r]=i.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o,r=!1,i){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??v)(r?i:this[t],e))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};O.elementStyles=[],O.shadowRootOptions={mode:"open"},O[g("elementProperties")]=new Map,O[g("finalized")]=new Map,b?.({ReactiveElement:O}),(h.reactiveElementVersions??=[]).push("2.0.2");
|
|
27
|
+
/**
|
|
28
|
+
* @license
|
|
29
|
+
* Copyright 2017 Google LLC
|
|
30
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
31
|
+
*/
|
|
32
|
+
const w={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:v},S=(t=w,e,o)=>{const{kind:r,metadata:i}=o;let n=globalThis.litPropertyMetadata.get(i);if(void 0===n&&globalThis.litPropertyMetadata.set(i,n=new Map),n.set(o.name,t),"accessor"===r){const{name:r}=o;return{set(o){const i=e.get.call(this);e.set.call(this,o),this.requestUpdate(r,i,t)},init(e){return void 0!==e&&this.C(r,void 0,t),e}}}if("setter"===r){const{name:r}=o;return function(o){const i=this[r];e.call(this,o),this.requestUpdate(r,i,t)}}throw Error("Unsupported decorator location: "+r)};function N(t){return(e,o)=>"object"==typeof o?S(t,e,o):((t,e,o)=>{const r=e.hasOwnProperty(o);return e.constructor.createProperty(o,r?{...t,wrapped:!0}:t),r?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)
|
|
33
|
+
/**
|
|
34
|
+
* @license
|
|
35
|
+
* Copyright 2017 Google LLC
|
|
36
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
37
|
+
*/}function C(t){return N({...t,state:!0,attribute:!1})}
|
|
38
|
+
/**
|
|
39
|
+
* @license
|
|
40
|
+
* Copyright 2017 Google LLC
|
|
41
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
42
|
+
*/function E(t){return(e,o)=>{const r="function"==typeof e?e:e[o];Object.assign(r,t)}}
|
|
43
|
+
/**
|
|
44
|
+
* @license
|
|
45
|
+
* Copyright 2017 Google LLC
|
|
46
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
|
+
*/const R=(t,e,o)=>(o.configurable=!0,o.enumerable=!0,o)
|
|
48
|
+
/**
|
|
49
|
+
* @license
|
|
50
|
+
* Copyright 2017 Google LLC
|
|
51
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
52
|
+
*/;function $(t,e){return(o,r,i)=>{const n=e=>e.renderRoot?.querySelector(t)??null;if(e){const{get:t,set:e}="object"==typeof r?o:i??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return R(0,0,{get(){let o=t.call(this);return void 0===o&&(o=n(this),(null!==o||this.hasUpdated)&&e.call(this,o)),o}})}return R(0,0,{get(){return n(this)}})}}
|
|
53
|
+
/**
|
|
54
|
+
* @license
|
|
55
|
+
* Copyright 2017 Google LLC
|
|
56
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
57
|
+
*/function U(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var o,r,i;if(Array.isArray(t)){if((o=t.length)!=e.length)return!1;for(r=o;0!=r--;)if(!U(t[r],e[r]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;for(r of t.entries())if(!U(r[1],e.get(r[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((o=(i=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(r=o;0!=r--;)if(!Object.prototype.hasOwnProperty.call(e,i[r]))return!1;for(r=o;0!=r--;){var n=i[r];if(!U(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}
|
|
58
|
+
/**
|
|
59
|
+
* @license
|
|
60
|
+
* Copyright 2017 Google LLC
|
|
61
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
62
|
+
*/
|
|
63
|
+
const k=globalThis,I=k.trustedTypes,L=I?I.createPolicy("lit-html",{createHTML:t=>t}):void 0,W="$lit$",F=`lit$${(Math.random()+"").slice(9)}$`,M="?"+F,j=`<${M}>`,K=document,A=()=>K.createComment(""),P=t=>null===t||"object"!=typeof t&&"function"!=typeof t,B=Array.isArray,Z="[ \t\n\f\r]",z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,D=/-->/g,T=/>/g,H=RegExp(`>|${Z}(?:([^\\s"'>=/]+)(${Z}*=${Z}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),_=/'/g,G=/"/g,V=/^(?:script|style|textarea|title)$/i,q=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),Y=Symbol.for("lit-noChange"),J=Symbol.for("lit-nothing"),X=new WeakMap,Q=K.createTreeWalker(K,129);function tt(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==L?L.createHTML(e):e}let et=class t{constructor({strings:e,_$litType$:o},r){let i;this.parts=[];let n=0,a=0;const s=e.length-1,c=this.parts,[l,f]=((t,e)=>{const o=t.length-1,r=[];let i,n=2===e?"<svg>":"",a=z;for(let e=0;e<o;e++){const o=t[e];let s,c,l=-1,f=0;for(;f<o.length&&(a.lastIndex=f,c=a.exec(o),null!==c);)f=a.lastIndex,a===z?"!--"===c[1]?a=D:void 0!==c[1]?a=T:void 0!==c[2]?(V.test(c[2])&&(i=RegExp("</"+c[2],"g")),a=H):void 0!==c[3]&&(a=H):a===H?">"===c[0]?(a=i??z,l=-1):void 0===c[1]?l=-2:(l=a.lastIndex-c[2].length,s=c[1],a=void 0===c[3]?H:'"'===c[3]?G:_):a===G||a===_?a=H:a===D||a===T?a=z:(a=H,i=void 0);const p=a===H&&t[e+1].startsWith("/>")?" ":"";n+=a===z?o+j:l>=0?(r.push(s),o.slice(0,l)+W+o.slice(l)+F+p):o+F+(-2===l?e:p)}return[tt(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),r]})(e,o);if(this.el=t.createElement(l,r),Q.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=Q.nextNode())&&c.length<s;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(W)){const e=f[a++],o=i.getAttribute(t).split(F),r=/([.?@])?(.*)/.exec(e);c.push({type:1,index:n,name:r[2],strings:o,ctor:"."===r[1]?nt:"?"===r[1]?at:"@"===r[1]?st:it}),i.removeAttribute(t)}else t.startsWith(F)&&(c.push({type:6,index:n}),i.removeAttribute(t));if(V.test(i.tagName)){const t=i.textContent.split(F),e=t.length-1;if(e>0){i.textContent=I?I.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],A()),Q.nextNode(),c.push({type:2,index:++n});i.append(t[e],A())}}}else if(8===i.nodeType)if(i.data===M)c.push({type:2,index:n});else{let t=-1;for(;-1!==(t=i.data.indexOf(F,t+1));)c.push({type:7,index:n}),t+=F.length-1}n++}}static createElement(t,e){const o=K.createElement("template");return o.innerHTML=t,o}};function ot(t,e,o=t,r){if(e===Y)return e;let i=void 0!==r?o._$Co?.[r]:o._$Cl;const n=P(e)?void 0:e._$litDirective$;return i?.constructor!==n&&(i?._$AO?.(!1),void 0===n?i=void 0:(i=new n(t),i._$AT(t,o,r)),void 0!==r?(o._$Co??=[])[r]=i:o._$Cl=i),void 0!==i&&(e=ot(t,i._$AS(t,e.values),i,r)),e}let rt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,r){this.type=2,this._$AH=J,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=r,this._$Cv=r?.isConnected??!0}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=ot(this,t,e),P(t)?t===J||null==t||""===t?(this._$AH!==J&&this._$AR(),this._$AH=J):t!==this._$AH&&t!==Y&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>B(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==J&&P(this._$AH)?this._$AA.nextSibling.data=t:this.$(K.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=et.createElement(tt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,r=(t?.creationScope??K).importNode(e,!0);Q.currentNode=r;let i=Q.nextNode(),n=0,a=0,s=o[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new rt(i,i.nextSibling,this,t):1===s.type?e=new s.ctor(i,s.name,s.strings,this,t):6===s.type&&(e=new ct(i,this,t)),this._$AV.push(e),s=o[++a]}n!==s?.index&&(i=Q.nextNode(),n++)}return Q.currentNode=K,r}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}(r,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=X.get(t.strings);return void 0===e&&X.set(t.strings,e=new et(t)),e}T(e){B(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let r,i=0;for(const n of e)i===o.length?o.push(r=new t(this.k(A()),this.k(A()),this,this.options)):r=o[i],r._$AI(n),i++;i<o.length&&(this._$AR(r&&r._$AB.nextSibling,i),o.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},it=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,i){this.type=1,this._$AH=J,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=J}_$AI(t,e=this,o,r){const i=this.strings;let n=!1;if(void 0===i)t=ot(this,t,e,0),n=!P(t)||t!==this._$AH&&t!==Y,n&&(this._$AH=t);else{const r=t;let a,s;for(t=i[0],a=0;a<i.length-1;a++)s=ot(this,r[o+a],e,a),s===Y&&(s=this._$AH[a]),n||=!P(s)||s!==this._$AH[a],s===J?t=J:t!==J&&(t+=(s??"")+i[a+1]),this._$AH[a]=s}n&&!r&&this.O(t)}O(t){t===J?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},nt=class extends it{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===J?void 0:t}},at=class extends it{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==J)}},st=class extends it{constructor(t,e,o,r,i){super(t,e,o,r,i),this.type=5}_$AI(t,e=this){if((t=ot(this,t,e,0)??J)===Y)return;const o=this._$AH,r=t===J&&o!==J||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,i=t!==J&&(o===J||r);r&&this.element.removeEventListener(this.name,this,o),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},ct=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){ot(this,t)}};const lt=k.litHtmlPolyfillSupport;lt?.(et,rt),(k.litHtmlVersions??=[]).push("3.1.0");
|
|
64
|
+
/**
|
|
65
|
+
* @license
|
|
66
|
+
* Copyright 2019 Google LLC
|
|
67
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
68
|
+
*/
|
|
69
|
+
const ft=globalThis,pt=ft.ShadowRoot&&(void 0===ft.ShadyCSS||ft.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ut=Symbol(),ht=new WeakMap;let dt=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==ut)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(pt&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=ht.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&ht.set(e,t))}return t}toString(){return this.cssText}};const yt=t=>new dt("string"==typeof t?t:t+"",void 0,ut),bt=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,o,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.")})(o)+t[r+1]),t[0]);return new dt(o,t,ut)},gt=pt?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return yt(e)})(t):t
|
|
70
|
+
/**
|
|
71
|
+
* @license
|
|
72
|
+
* Copyright 2017 Google LLC
|
|
73
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
74
|
+
*/,{is:mt,defineProperty:vt,getOwnPropertyDescriptor:xt,getOwnPropertyNames:Ot,getOwnPropertySymbols:wt,getPrototypeOf:St}=Object,Nt=globalThis,Ct=Nt.trustedTypes,Et=Ct?Ct.emptyScript:"",Rt=Nt.reactiveElementPolyfillSupport,$t=(t,e)=>t,Ut={toAttribute(t,e){switch(e){case Boolean:t=t?Et:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},kt=(t,e)=>!mt(t,e),It={attribute:!0,type:String,converter:Ut,reflect:!1,hasChanged:kt};Symbol.metadata??=Symbol("metadata"),Nt.litPropertyMetadata??=new WeakMap;let Lt=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=It){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),r=this.getPropertyDescriptor(t,o,e);void 0!==r&&vt(this.prototype,t,r)}}static getPropertyDescriptor(t,e,o){const{get:r,set:i}=xt(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return r?.call(this)},set(e){const n=r?.call(this);i.call(this,e),this.requestUpdate(t,n,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??It}static _$Ei(){if(this.hasOwnProperty($t("elementProperties")))return;const t=St(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty($t("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty($t("properties"))){const t=this.properties,e=[...Ot(t),...wt(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(gt(t))}else void 0!==t&&e.push(gt(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(pt)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),r=ft.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){const o=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,o);if(void 0!==r&&!0===o.reflect){const i=(void 0!==o.converter?.toAttribute?o.converter:Ut).toAttribute(e,o.type);this._$Em=t,null==i?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(t,e){const o=this.constructor,r=o._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=o.getPropertyOptions(r),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:Ut;this._$Em=r,this[r]=i.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o,r=!1,i){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??kt)(r?i:this[t],e))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};Lt.elementStyles=[],Lt.shadowRootOptions={mode:"open"},Lt[$t("elementProperties")]=new Map,Lt[$t("finalized")]=new Map,Rt?.({ReactiveElement:Lt}),(Nt.reactiveElementVersions??=[]).push("2.0.2");
|
|
75
|
+
/**
|
|
76
|
+
* @license
|
|
77
|
+
* Copyright 2017 Google LLC
|
|
78
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
79
|
+
*/
|
|
80
|
+
const Wt=globalThis,Ft=Wt.trustedTypes,Mt=Ft?Ft.createPolicy("lit-html",{createHTML:t=>t}):void 0,jt="$lit$",Kt=`lit$${(Math.random()+"").slice(9)}$`,At="?"+Kt,Pt=`<${At}>`,Bt=document,Zt=()=>Bt.createComment(""),zt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Dt=Array.isArray,Tt="[ \t\n\f\r]",Ht=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_t=/-->/g,Gt=/>/g,Vt=RegExp(`>|${Tt}(?:([^\\s"'>=/]+)(${Tt}*=${Tt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),qt=/'/g,Yt=/"/g,Jt=/^(?:script|style|textarea|title)$/i,Xt=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),Qt=Symbol.for("lit-noChange"),te=Symbol.for("lit-nothing"),ee=new WeakMap,oe=Bt.createTreeWalker(Bt,129);function re(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Mt?Mt.createHTML(e):e}class ie{constructor({strings:t,_$litType$:e},o){let r;this.parts=[];let i=0,n=0;const a=t.length-1,s=this.parts,[c,l]=((t,e)=>{const o=t.length-1,r=[];let i,n=2===e?"<svg>":"",a=Ht;for(let e=0;e<o;e++){const o=t[e];let s,c,l=-1,f=0;for(;f<o.length&&(a.lastIndex=f,c=a.exec(o),null!==c);)f=a.lastIndex,a===Ht?"!--"===c[1]?a=_t:void 0!==c[1]?a=Gt:void 0!==c[2]?(Jt.test(c[2])&&(i=RegExp("</"+c[2],"g")),a=Vt):void 0!==c[3]&&(a=Vt):a===Vt?">"===c[0]?(a=i??Ht,l=-1):void 0===c[1]?l=-2:(l=a.lastIndex-c[2].length,s=c[1],a=void 0===c[3]?Vt:'"'===c[3]?Yt:qt):a===Yt||a===qt?a=Vt:a===_t||a===Gt?a=Ht:(a=Vt,i=void 0);const p=a===Vt&&t[e+1].startsWith("/>")?" ":"";n+=a===Ht?o+Pt:l>=0?(r.push(s),o.slice(0,l)+jt+o.slice(l)+Kt+p):o+Kt+(-2===l?e:p)}return[re(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),r]})(t,e);if(this.el=ie.createElement(c,o),oe.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=oe.nextNode())&&s.length<a;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(jt)){const e=l[n++],o=r.getAttribute(t).split(Kt),a=/([.?@])?(.*)/.exec(e);s.push({type:1,index:i,name:a[2],strings:o,ctor:"."===a[1]?ce:"?"===a[1]?le:"@"===a[1]?fe:se}),r.removeAttribute(t)}else t.startsWith(Kt)&&(s.push({type:6,index:i}),r.removeAttribute(t));if(Jt.test(r.tagName)){const t=r.textContent.split(Kt),e=t.length-1;if(e>0){r.textContent=Ft?Ft.emptyScript:"";for(let o=0;o<e;o++)r.append(t[o],Zt()),oe.nextNode(),s.push({type:2,index:++i});r.append(t[e],Zt())}}}else if(8===r.nodeType)if(r.data===At)s.push({type:2,index:i});else{let t=-1;for(;-1!==(t=r.data.indexOf(Kt,t+1));)s.push({type:7,index:i}),t+=Kt.length-1}i++}}static createElement(t,e){const o=Bt.createElement("template");return o.innerHTML=t,o}}function ne(t,e,o=t,r){if(e===Qt)return e;let i=void 0!==r?o._$Co?.[r]:o._$Cl;const n=zt(e)?void 0:e._$litDirective$;return i?.constructor!==n&&(i?._$AO?.(!1),void 0===n?i=void 0:(i=new n(t),i._$AT(t,o,r)),void 0!==r?(o._$Co??=[])[r]=i:o._$Cl=i),void 0!==i&&(e=ne(t,i._$AS(t,e.values),i,r)),e}let ae=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,r){this.type=2,this._$AH=te,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=r,this._$Cv=r?.isConnected??!0}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=ne(this,t,e),zt(t)?t===te||null==t||""===t?(this._$AH!==te&&this._$AR(),this._$AH=te):t!==this._$AH&&t!==Qt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>Dt(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==te&&zt(this._$AH)?this._$AA.nextSibling.data=t:this.$(Bt.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=ie.createElement(re(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,r=(t?.creationScope??Bt).importNode(e,!0);oe.currentNode=r;let i=oe.nextNode(),n=0,a=0,s=o[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new ae(i,i.nextSibling,this,t):1===s.type?e=new s.ctor(i,s.name,s.strings,this,t):6===s.type&&(e=new pe(i,this,t)),this._$AV.push(e),s=o[++a]}n!==s?.index&&(i=oe.nextNode(),n++)}return oe.currentNode=Bt,r}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}(r,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=ee.get(t.strings);return void 0===e&&ee.set(t.strings,e=new ie(t)),e}T(e){Dt(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let r,i=0;for(const n of e)i===o.length?o.push(r=new t(this.k(Zt()),this.k(Zt()),this,this.options)):r=o[i],r._$AI(n),i++;i<o.length&&(this._$AR(r&&r._$AB.nextSibling,i),o.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},se=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,i){this.type=1,this._$AH=te,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=te}_$AI(t,e=this,o,r){const i=this.strings;let n=!1;if(void 0===i)t=ne(this,t,e,0),n=!zt(t)||t!==this._$AH&&t!==Qt,n&&(this._$AH=t);else{const r=t;let a,s;for(t=i[0],a=0;a<i.length-1;a++)s=ne(this,r[o+a],e,a),s===Qt&&(s=this._$AH[a]),n||=!zt(s)||s!==this._$AH[a],s===te?t=te:t!==te&&(t+=(s??"")+i[a+1]),this._$AH[a]=s}n&&!r&&this.O(t)}O(t){t===te?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ce=class extends se{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===te?void 0:t}},le=class extends se{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==te)}},fe=class extends se{constructor(t,e,o,r,i){super(t,e,o,r,i),this.type=5}_$AI(t,e=this){if((t=ne(this,t,e,0)??te)===Qt)return;const o=this._$AH,r=t===te&&o!==te||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,i=t!==te&&(o===te||r);r&&this.element.removeEventListener(this.name,this,o),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},pe=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){ne(this,t)}};const ue=Wt.litHtmlPolyfillSupport;ue?.(ie,ae),(Wt.litHtmlVersions??=[]).push("3.1.0");
|
|
81
|
+
/**
|
|
82
|
+
* @license
|
|
83
|
+
* Copyright 2017 Google LLC
|
|
84
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
85
|
+
*/
|
|
86
|
+
let he=class extends Lt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,o)=>{const r=o?.renderBefore??e;let i=r._$litPart$;if(void 0===i){const t=o?.renderBefore??null;r._$litPart$=i=new ae(e.insertBefore(Zt(),t),t,void 0,o??{})}return i._$AI(t),i})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Qt}};he._$litElement$=!0,he.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:he});const de=globalThis.litElementPolyfillSupport;de?.({LitElement:he}),(globalThis.litElementVersions??=[]).push("4.0.2");const ye=t=>"string"==typeof t?yt(t):t;class be{static create(t,e,o,r){const i=t=>ye(null!=t?t:r),n=bt`var(${ye(t)}, ${i(r)})`;return n.name=t,n.description=e,n.category=o,n.defaultValue=r,n.defaultCssValue=i,n.get=e=>bt`var(${ye(t)}, ${i(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>r,n}static extend(t,e,o,r){const i=t=>o.get(null!=t?t:r),n=bt`var(${ye(t)}, ${i(r)})`;return n.name=t,n.description=e,n.category=o.category,n.fallbackVariable=o,n.defaultValue=r,n.defaultCssValue=i,n.get=e=>bt`var(${ye(t)}, ${i(e)})`,n.breadcrumb=()=>[o.name,...o.breadcrumb()],n.lastResortDefaultValue=()=>null!=r?r:o.lastResortDefaultValue(),n}static external(t,e){const o=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):ye(null!=e?e:t.lastResortDefaultValue()),r=bt`var(${ye(t.name)}, ${o(t.defaultValue)})`;return r.name=t.name,r.category=t.category,r.fallbackVariable=t.fallbackVariable,r.defaultValue=t.defaultValue,r.context=e,r.defaultCssValue=o,r.get=e=>bt`var(${ye(t.name)}, ${o(e)})`,r.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],r.lastResortDefaultValue=()=>t.lastResortDefaultValue(),r}}function ge(t,e){return ye(`${t.name}: ${e}`)}const me={colorWhite:be.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:be.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:be.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:be.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:be.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:be.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:be.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:be.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:be.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:be.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:be.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:be.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:be.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:be.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:be.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:be.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:be.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:be.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:be.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:be.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:be.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:be.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:be.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:be.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:be.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:be.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:be.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:be.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:be.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:be.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:be.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:be.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:be.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:be.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:be.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:be.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:be.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:be.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:be.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:be.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:be.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:be.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:be.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:be.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:be.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:be.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:be.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:be.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:be.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:be.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:be.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:be.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:be.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:be.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:be.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:be.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:be.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:be.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:be.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:be.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:be.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:be.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:be.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:be.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:be.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:be.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:be.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:be.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:be.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:be.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:be.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:be.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:be.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:be.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:be.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:be.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:be.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:be.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:be.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:be.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:be.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:be.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:be.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:be.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:be.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:be.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:be.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:be.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:be.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:be.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:be.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:be.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:be.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:be.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:be.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:be.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:be.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:be.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:be.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:be.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:be.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:be.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:be.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:be.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:be.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:be.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:be.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:be.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:be.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:be.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:be.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:be.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:be.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:be.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:be.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:be.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:be.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:be.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:be.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:be.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:be.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:be.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:be.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:be.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:be.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:be.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:be.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:be.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:be.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:be.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:be.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:be.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:be.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:be.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:be.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:be.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:be.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:be.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:be.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:be.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:be.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:be.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:be.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:be.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:be.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:be.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:be.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:be.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:be.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:be.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:be.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:be.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:be.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:be.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:be.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:be.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:be.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:be.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:be.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:be.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:be.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:be.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:be.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:be.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:be.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:be.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:be.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:be.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:be.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:be.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:be.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:be.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:be.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:be.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:be.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:be.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:be.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:be.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:be.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:be.create("--ft-icon-size-6","","SIZE","48px"),opacity0:be.create("--ft-opacity-0","","NUMBER","0"),opacity8:be.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:be.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:be.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:be.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:be.create("--ft-opacity-80","","NUMBER","0.8")},ve={display:{fontFamily:be.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:be.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:be.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:be.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:be.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:be.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:be.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:be.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:be.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:be.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:be.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:be.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:be.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:be.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:be.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:be.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:be.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:be.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:be.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:be.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:be.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:be.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:be.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:be.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:be.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:be.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:be.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:be.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:be.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:be.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:be.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:be.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:be.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:be.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:be.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:be.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:be.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:be.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:be.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:be.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:be.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:be.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:be.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:be.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:be.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:be.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:be.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:be.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:be.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:be.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:be.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:be.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:be.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:be.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:be.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:be.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:be.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:be.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:be.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:be.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:be.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:be.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:be.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:be.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:be.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:be.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:be.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:be.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:be.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:be.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:be.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:be.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:be.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:be.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:be.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:be.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:be.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:be.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:be.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:be.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:be.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:be.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:be.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:be.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:be.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:be.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:be.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:be.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:be.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:be.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:be.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:be.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:be.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:be.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:be.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:be.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:be.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:be.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:be.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:be.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:be.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:be.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:be.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:be.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:be.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:be.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:be.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:be.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:be.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:be.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:be.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:be.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:be.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:be.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:be.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:be.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:be.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:be.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:be.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:be.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:be.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:be.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:be.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:be.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:be.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:be.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:be.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:be.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:be.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:be.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:be.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:be.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:be.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:be.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:be.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:be.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:be.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:be.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:be.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:be.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:be.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:be.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:be.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:be.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:be.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:be.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:be.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:be.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:be.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:be.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:be.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:be.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:be.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:be.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:be.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:be.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:be.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:be.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:be.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:be.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:be.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:be.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:be.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:be.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:be.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:be.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:be.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:be.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:be.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:be.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:be.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:be.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:be.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:be.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:be.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:be.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:be.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:be.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:be.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:be.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:be.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:be.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:be.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:be.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:be.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:be.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:be.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:be.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:be.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:be.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:be.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:be.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:be.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:be.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:be.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:be.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:be.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:be.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},xe={backgroundActionPrimary:be.extend("--ft-background-action-primary","Used as backgorund of primary action components.",me.colorBrand0),backgroundErrorPrimary:be.extend("--ft-background-error-primary","Used as background of error components.",me.colorRed0),backgroundErrorSubtle:be.extend("--ft-background-error-subtle","Used as background of subtle error components.",me.colorRed10),backgroundInfoPrimary:be.extend("--ft-background-info-primary","Used as background of information components.",me.colorCyan200),backgroundInfoSubtle:be.extend("--ft-background-info-subtle","Used as background of subtle information components.",me.colorCyan10),backgroundWarningPrimary:be.extend("--ft-background-warning-primary","Used as background of warning components.",me.colorOrange300),backgroundWarningSubtle:be.extend("--ft-background-warning-subtle","Used as background of subtle information components.",me.colorOrange10),backgroundSuccessPrimary:be.extend("--ft-background-success-primary","Used as background of success components.",me.colorGreen200),backgroundSuccessSubtle:be.extend("--ft-background-success-subtle","Used as background of subtle success components.",me.colorGreen10),backgroundGlobalSurface:be.extend("--ft-background-global-surface","Used as app background.",me.colorWhite),backgroundGlobalOnSurface:be.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",me.colorGray10),backgroundGlobalOnSurfaceDark:be.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",me.colorGray30),contentActionPrimary:be.extend("--ft-content-action-primary","Used on label of primary action on light surface.",me.colorBrand0),contentWarningPrimary:be.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",me.colorOrange300),contentWarningIconOnly:be.extend("--ft-content-warning-icon-only","Used on warning status icons alone",me.colorOrange0),contentErrorPrimary:be.extend("--ft-content-error-primary","Used on label of error messages on light surface.",me.colorRed0),contentErrorIconOnly:be.extend("--ft-content-error-icon-only","Used on error status icons alone",me.colorRed0),contentInfoPrimary:be.extend("--ft-content-info-primary","Used on label of information messages on light surface.",me.colorCyan200),contentInfoIconOnly:be.extend("--ft-content-info-icon-only","Used on info status icons alone",me.colorCyan0),contentSuccessIconOnly:be.extend("--ft-content-success-icon-only","Used on success status icons alone",me.colorGreen0),contentSuccessPrimary:be.extend("--ft-content-success-primary","Used on label of success messages on light surface.",me.colorGreen200),contentGlobalPrimary:be.extend("--ft-content-global-primary","Used for main content on the page.",me.colorGray500),contentGlobalSecondary:be.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",me.colorGray200),contentGlobalSubtle:be.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",me.colorGray0),contentGlobalOnColor:be.extend("--ft-content-global-on-color","Used for content on a dominant color.",me.colorWhite),borderActionPrimary:be.extend("--ft-border-action-primary","Used as border for primary action components.",me.colorBrand0),borderActionFocusRing:be.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",me.colorCyan0),borderWarningPrimary:be.extend("--ft-border-warning-primary","Used as border for warning components.",me.colorOrange30),borderSuccessPrimary:be.extend("--ft-border-success-primary","Used as border for success components.",me.colorGreen30),borderErrorPrimary:be.extend("--ft-border-error-primary","Used as border for error components.",me.colorRed30),borderInfoPrimary:be.extend("--ft-border-info-primary","Used as border for information components.",me.colorCyan30),borderGlobalSubtle:be.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",me.colorGray30),borderGlobalPrimary:be.extend("--ft-border-global-primary","Used as border for element like input.",me.colorGray50),borderInputPrimary:be.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",me.colorGray80)},Oe={largeHeight:be.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:be.extend("--ft-button-large-horizontal-padding","",me.spacing4),largeGap:be.extend("--ft-button-large-gap","",me.spacing2),largeBorderRadius:be.extend("--ft-button-large-border-radius","",me.borderRadiusS),largeIconSize:be.extend("--ft-button-large-icon-size","",me.iconSize3),largeBorderWidth:be.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:be.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:be.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:be.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:be.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:be.extend("--ft-button-small-horizontal-padding","",me.spacing3),smallGap:be.extend("--ft-button-small-gap","",me.spacing2),smallBorderRadius:be.extend("--ft-button-small-border-radius","",me.borderRadiusS),smallIconSize:be.extend("--ft-button-small-icon-size","",me.iconSize2),smallBorderWidth:be.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:be.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:be.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:be.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:be.extend("--ft-button-primary-background-color","",xe.backgroundActionPrimary),primaryColor:be.extend("--ft-button-primary-color","",xe.contentGlobalOnColor),primaryIconColor:be.extend("--ft-button-primary-icon-color","",xe.contentGlobalOnColor),primaryStateLayerColor:be.extend("--ft-button-primary-state-layer-color","",xe.contentGlobalOnColor),primaryStateLayerOpacityHover:be.extend("--ft-button-primary-state-layer-opacity-hover","",me.opacity16),primaryStateLayerOpacityFocus:be.extend("--ft-button-primary-state-layer-opacity-focus","",me.opacity16),primaryStateLayerOpacityActive:be.extend("--ft-button-primary-state-layer-opacity-active","",me.opacity24),primaryComponentOpacityDisabled:be.extend("--ft-button-primary-component-opacity-disabled","",me.opacity40),focusFocusRingColor:be.extend("--ft-button-focus-focus-ring-color","",xe.borderActionFocusRing),tertiaryBackgroundColor:be.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:be.extend("--ft-button-tertiary-color","",xe.contentActionPrimary),tertiaryIconColor:be.extend("--ft-button-tertiary-icon-color","",xe.contentActionPrimary),tertiaryStateLayerColor:be.extend("--ft-button-tertiary-state-layer-color","",xe.contentActionPrimary),tertiaryStateLayerOpacityHover:be.extend("--ft-button-tertiary-state-layer-opacity-hover","",me.opacity8),tertiaryStateLayerOpacityFocus:be.extend("--ft-button-tertiary-state-layer-opacity-focus","",me.opacity8),tertiaryStateLayerOpacityActive:be.extend("--ft-button-tertiary-state-layer-opacity-active","",me.opacity16),tertiaryComponentOpacityDisabled:be.extend("--ft-button-tertiary-component-opacity-disabled","",me.opacity40),secondaryBackgroundColor:be.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:be.extend("--ft-button-secondary-color","",xe.contentActionPrimary),secondaryIconColor:be.extend("--ft-button-secondary-icon-color","",xe.contentActionPrimary),secondaryStateLayerColor:be.extend("--ft-button-secondary-state-layer-color","",xe.contentActionPrimary),secondaryStateLayerOpacityHover:be.extend("--ft-button-secondary-state-layer-opacity-hover","",me.opacity8),secondaryStateLayerOpacityFocus:be.extend("--ft-button-secondary-state-layer-opacity-focus","",me.opacity8),secondaryStateLayerOpacityActive:be.extend("--ft-button-secondary-state-layer-opacity-active","",me.opacity16),secondaryComponentOpacityDisabled:be.extend("--ft-button-secondary-component-opacity-disabled","",me.opacity40),secondaryBorderColor:be.extend("--ft-button-secondary-border-color","",xe.borderActionPrimary),neutralBackgroundColor:be.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:be.extend("--ft-button-neutral-icon-color","",xe.contentGlobalSecondary),neutralColor:be.extend("--ft-button-neutral-color","",xe.contentGlobalSecondary),neutralStateLayerColor:be.extend("--ft-button-neutral-state-layer-color","",xe.contentGlobalSecondary),neutralStateLayerOpacityHover:be.extend("--ft-button-neutral-state-layer-opacity-hover","",me.opacity8),neutralStateLayerOpacityFocus:be.extend("--ft-button-neutral-state-layer-opacity-focus","",me.opacity8),neutralStateLayerOpacityActive:be.extend("--ft-button-neutral-state-layer-opacity-active","",me.opacity16),neutralComponentOpacityDisabled:be.extend("--ft-button-neutral-component-opacity-disabled","",me.opacity40)};be.extend("--ft-tabs-top-left-border-radius","",me.borderRadiusS),be.extend("--ft-tabs-top-right-border-radius","",me.borderRadiusS),be.extend("--ft-tabs-label-horizontal-padding","",me.spacing4),be.extend("--ft-tabs-label-vertical-padding","",me.spacing3),be.extend("--ft-tabs-label-gap","",me.spacing1),be.extend("--ft-switch-group-horizontal-padding","",me.spacing1),be.extend("--ft-switch-group-vertical-padding","",me.spacing1),be.extend("--ft-switch-group-gap","",me.spacing1),be.extend("--ft-switch-group-background-color","",xe.backgroundGlobalSurface),be.extend("--ft-switch-group-border-color","",xe.borderGlobalSubtle),be.create("--ft-switch-group-border-radius","","SIZE","6px"),be.extend("--ft-switch-label-horizontal-padding","",me.spacing2),be.extend("--ft-switch-label-vertical-padding","",me.spacing1),be.extend("--ft-switch-icon-horizontal-padding","",me.spacing1),be.extend("--ft-switch-icon-vertical-padding","",me.spacing1),be.create("--ft-switch-focus-outline-width","","SIZE","2px"),be.extend("--ft-switch-focus-focus-ring-color","",xe.borderActionFocusRing),be.extend("--ft-switch-option-border-radius","",me.borderRadiusS),be.extend("--ft-switch-off-state-layer-opacity-hover","",me.opacity8),be.extend("--ft-switch-off-state-layer-opacity-focus","",me.opacity8),be.extend("--ft-switch-off-state-layer-opacity-active","",me.opacity16),be.extend("--ft-switch-off-component-opacity-disabled","",me.opacity40),be.extend("--ft-switch-off-color","",xe.contentGlobalSubtle),be.extend("--ft-switch-off-state-layer-color","",xe.contentGlobalSubtle),be.extend("--ft-chart-1-light","for area color charts",me.colorBrand40),be.extend("--ft-chart-1-base","for line charts",me.colorBrand0),be.extend("--ft-chart-2-light","for area color charts",me.colorYellow60),be.extend("--ft-chart-2-base","for line charts",me.colorYellow100),be.extend("--ft-chart-3-light","",me.colorUltramarine40),be.extend("--ft-chart-3-base","",me.colorUltramarine70),be.extend("--ft-chart-4-light","",me.colorCyan50),be.extend("--ft-chart-4-base","",me.colorCyan100),be.extend("--ft-chart-5-light","",me.colorRed40),be.extend("--ft-chart-5-base","",me.colorRed60),be.extend("--ft-chart-6-light","",me.colorGreen40),be.extend("--ft-chart-6-base","",me.colorGreen70),be.extend("--ft-chart-7-light","",me.colorOrange70),be.extend("--ft-chart-7-base","",me.colorOrange100),be.extend("--ft-chart-8-light","",me.colorAvocado70),be.extend("--ft-chart-8-base","",me.colorAvocado200),be.extend("--ft-chart-9-light","",me.colorBrown50),be.extend("--ft-chart-9-base","",me.colorBrown200),be.extend("--ft-chart-10-light","",me.colorGray50),be.extend("--ft-chart-10-base","",me.colorGray80),be.extend("--ft-chart-monochrome-10","",me.colorBrand10),be.extend("--ft-chart-monochrome-20","",me.colorBrand20),be.extend("--ft-chart-monochrome-30","",me.colorBrand40),be.extend("--ft-chart-monochrome-40","",me.colorBrand60),be.extend("--ft-chart-monochrome-50","",me.colorBrand0),be.extend("--ft-chart-monochrome-60","",me.colorBrand200),be.extend("--ft-chip-large-horizontal-padding","",me.spacing4),be.extend("--ft-chip-large-vertical-padding","",me.spacing2),be.extend("--ft-chip-large-gap","",me.spacing1),be.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),be.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),be.extend("--ft-chip-large-border-radius","",me.borderRadiusPill),be.create("--ft-chip-large-border-width","","SIZE","1px"),be.extend("--ft-chip-large-icon-size","",me.iconSize3),be.extend("--ft-chip-medium-horizontal-padding","",me.spacing3),be.extend("--ft-chip-medium-vertical-padding","",me.spacing1),be.extend("--ft-chip-medium-gap","",me.spacing1),be.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),be.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),be.extend("--ft-chip-medium-border-radius","",me.borderRadiusPill),be.create("--ft-chip-medium-border-width","","SIZE","1px"),be.extend("--ft-chip-medium-icon-size","",me.iconSize2),be.extend("--ft-chip-small-horizontal-padding","",me.spacing2),be.extend("--ft-chip-small-vertical-padding","",me.spacing05),be.extend("--ft-chip-small-gap","",me.spacing1),be.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),be.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),be.extend("--ft-chip-small-border-radius","",me.borderRadiusPill),be.create("--ft-chip-small-border-width","","SIZE","1px"),be.extend("--ft-chip-small-icon-size","",me.iconSize1),be.extend("--ft-chip-neutral-background-color","",xe.backgroundGlobalOnSurface),be.extend("--ft-chip-neutral-color","",xe.contentGlobalPrimary),be.extend("--ft-chip-neutral-border-color","",xe.borderGlobalSubtle),be.extend("--ft-chip-info-background-color","",xe.backgroundInfoSubtle),be.extend("--ft-chip-info-color","",xe.contentInfoPrimary),be.extend("--ft-chip-info-border-color","",xe.borderInfoPrimary),be.extend("--ft-chip-success-background-color","",xe.backgroundSuccessSubtle),be.extend("--ft-chip-success-color","",xe.contentSuccessPrimary),be.extend("--ft-chip-success-border-color","",xe.borderSuccessPrimary),be.extend("--ft-chip-warning-background-color","",xe.backgroundWarningSubtle),be.extend("--ft-chip-warning-color","",xe.contentWarningPrimary),be.extend("--ft-chip-warning-border-color","",xe.borderWarningPrimary),be.extend("--ft-chip-error-background-color","",xe.backgroundErrorSubtle),be.extend("--ft-chip-error-color","",xe.contentErrorPrimary),be.extend("--ft-chip-error-border-color","",xe.borderErrorPrimary),be.create("--ft-notice-border-width","","SIZE","1px"),be.extend("--ft-notice-horizontal-padding","",me.spacing2),be.extend("--ft-notice-vertical-padding","",me.spacing1),be.extend("--ft-notice-border-radius","",me.borderRadiusS),be.extend("--ft-notice-gap","",me.spacing2),be.extend("--ft-notice-icon-size","",me.iconSize3),be.extend("--ft-notice-info-background-color","",xe.backgroundInfoSubtle),be.extend("--ft-notice-info-border-color","",xe.borderInfoPrimary),be.extend("--ft-notice-info-color","",xe.contentInfoPrimary),be.extend("--ft-notice-warning-background-color","",xe.backgroundWarningSubtle),be.extend("--ft-notice-warning-border-color","",xe.borderWarningPrimary),be.extend("--ft-notice-warning-color","",xe.contentWarningPrimary),be.extend("--ft-checkbox-label-color","",xe.contentGlobalPrimary),be.extend("--ft-checkbox-checked-background-color","",xe.contentActionPrimary),be.extend("--ft-checkbox-checked-state-layer-color","",xe.contentActionPrimary),be.extend("--ft-checkbox-checked-color","",xe.contentGlobalOnColor),be.extend("--ft-checkbox-checked-state-layer-opacity-hover","",me.opacity16),be.extend("--ft-checkbox-checked-state-layer-opacity-focus","",me.opacity16),be.extend("--ft-checkbox-checked-state-layer-opacity-active","",me.opacity24),be.extend("--ft-checkbox-checked-component-opacity-disabled","",me.opacity40),be.extend("--ft-checkbox-unchecked-border-color","",me.colorGray80),be.extend("--ft-checkbox-unchecked-state-layer-color","",me.colorGray80),be.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",me.opacity16),be.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",me.opacity16),be.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",me.opacity24),be.extend("--ft-checkbox-unchecked-component-opacity-disabled","",me.opacity40),be.extend("--ft-checkbox-focus-focus-ring-color","",xe.borderActionFocusRing),be.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),be.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),be.extend("--ft-checkbox-gap","",me.spacing3),be.extend("--ft-toggle-off-state-layer-opacity-hover","",me.opacity16),be.extend("--ft-toggle-off-state-layer-opacity-focus","",me.opacity16),be.extend("--ft-toggle-off-state-layer-opacity-active","",me.opacity24),be.extend("--ft-toggle-off-component-opacity-disabled","",me.opacity40),be.extend("--ft-toggle-off-background-color","",xe.contentGlobalSubtle),be.extend("--ft-toggle-off-icon-color","",xe.contentGlobalSubtle),be.extend("--ft-toggle-off-state-layer-color","",xe.contentGlobalSubtle),be.extend("--ft-toggle-on-state-layer-opacity-hover","",me.opacity16),be.extend("--ft-toggle-on-state-layer-opacity-focus","",me.opacity16),be.extend("--ft-toggle-on-state-layer-opacity-active","",me.opacity24),be.extend("--ft-toggle-on-component-opacity-disabled","",me.opacity40),be.extend("--ft-toggle-on-background-color","",xe.contentActionPrimary),be.extend("--ft-toggle-on-icon-color","",xe.contentActionPrimary),be.extend("--ft-toggle-on-state-layer-color","",xe.contentActionPrimary),be.extend("--ft-toggle-label-color","",xe.contentGlobalPrimary),be.extend("--ft-toggle-focus-focus-ring-color","",xe.borderActionFocusRing),be.extend("--ft-toggle-gap","",me.spacing3),be.extend("--ft-radio-label-color","",xe.contentGlobalPrimary),be.extend("--ft-radio-selected-color","",xe.contentActionPrimary),be.extend("--ft-radio-selected-state-layer-color","",xe.contentActionPrimary),be.extend("--ft-radio-selected-state-layer-opacity-hover","",me.opacity16),be.extend("--ft-radio-selected-state-layer-opacity-focus","",me.opacity16),be.extend("--ft-radio-selected-state-layer-opacity-active","",me.opacity24),be.extend("--ft-radio-selected-component-opacity-disabled","",me.opacity40),be.extend("--ft-radio-unselected-state-layer-color","",me.colorGray80),be.extend("--ft-radio-unselected-state-layer-opacity-hover","",me.opacity16),be.extend("--ft-radio-unselected-state-layer-opacity-focus","",me.opacity16),be.extend("--ft-radio-unselected-state-layer-opacity-active","",me.opacity24),be.extend("--ft-radio-unselected-component-opacity-disabled","",me.opacity40),be.extend("--ft-radio-focus-focus-ring-color","",xe.borderActionFocusRing),be.create("--ft-radio-focus-outline-offset","","SIZE","3px"),be.create("--ft-radio-focus-outline-width","","SIZE","2px"),be.extend("--ft-radio-gap","",me.spacing3),be.extend("--ft-notification-icon-size","",me.iconSize4),be.extend("--ft-notification-horizontal-padding","",me.spacing4),be.extend("--ft-notification-vertical-padding","",me.spacing4),be.extend("--ft-notification-info-background-color","",xe.backgroundInfoSubtle),be.extend("--ft-notification-info-color","",xe.contentInfoPrimary),be.extend("--ft-notification-info-border-color","",xe.borderInfoPrimary),be.extend("--ft-notification-success-background-color","",xe.backgroundSuccessSubtle),be.extend("--ft-notification-success-color","",xe.contentSuccessPrimary),be.extend("--ft-notification-success-border-color","",xe.borderSuccessPrimary),be.extend("--ft-notification-warning-background-color","",xe.backgroundWarningSubtle),be.extend("--ft-notification-warning-color","",xe.contentWarningPrimary),be.extend("--ft-notification-warning-border-color","",xe.borderWarningPrimary),be.extend("--ft-notification-error-background-color","",xe.backgroundErrorSubtle),be.extend("--ft-notification-error-color","",xe.contentErrorPrimary),be.extend("--ft-notification-error-border-color","",xe.borderErrorPrimary),be.extend("--ft-notification-border-radius","",me.borderRadiusPill),be.create("--ft-notification-border-width","","SIZE","1px"),be.extend("--ft-notification-gap-leading","",me.spacing2),be.extend("--ft-notification-gap-trailing","",me.spacing8);const we={colorPrimary:be.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:be.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:be.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:be.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:be.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:be.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:be.create("--ft-color-error","","COLOR","#B00020"),colorOutline:be.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:be.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:be.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:be.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:be.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:be.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:be.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:be.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:be.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:be.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:be.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:be.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:be.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:be.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:be.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:be.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:be.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:be.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:be.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:be.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:be.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:be.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:be.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:be.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:be.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:be.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:be.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:be.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:be.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:be.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:be.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:be.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:be.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:be.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:be.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:be.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:be.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:be.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:be.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:be.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:be.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:be.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:be.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:be.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:be.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:be.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:be.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:be.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:be.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:be.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:be.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:be.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:be.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:be.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:be.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")},Se=window,Ne=Se.ShadowRoot&&(void 0===Se.ShadyCSS||Se.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ce=(t,e)=>{Ne?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),r=Se.litNonce;void 0!==r&&o.setAttribute("nonce",r),o.textContent=e.cssText,t.appendChild(o)}))};
|
|
87
|
+
/**
|
|
88
|
+
* @license
|
|
89
|
+
* Copyright 2019 Google LLC
|
|
90
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
91
|
+
*/let Ee=class extends he{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,o])=>t.registry.define(e,o))));const e={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(e);return Ce(o,t.elementStyles),o}};var Re,$e=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Ue=Symbol("constructorPrototype"),ke=Symbol("constructorName"),Ie=Symbol("exportpartsDebouncer");let Le=class extends Ee{constructor(){super(),this[Re]=new class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const o=[...this.callbacks];this.callbacks=[];const r=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,i=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of o)try{await t()}catch(t){return void r(t)}i(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}(5),this[ke]=this.constructor.name,this[Ue]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ke]&&Object.setPrototypeOf(this,this[Ue])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,o;if((null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==o?o:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Ie].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,o,r,i,n,a;const s=t=>null!=t&&t.trim().length>0,c=t.filter(s).map((t=>t.trim()));if(0===c.length)return void this.removeAttribute("exportparts");const l=new Set;for(let t of null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==o?o:[]){const e=null!==(i=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==i?i:[],o=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...e,...o).filter(s).map((t=>t.trim())).forEach((t=>l.add(t)))}if(0===l.size)return void this.removeAttribute("exportparts");const f=[...l.values()].flatMap((t=>c.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}};Re=Ie,$e([N()],Le.prototype,"exportpartsPrefix",void 0),$e([function(t,e){const o=()=>JSON.parse(JSON.stringify(t));return N({type:Object,converter:{fromAttribute:t=>{if(null==t)return o();try{return JSON.parse(t)}catch{return o()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!U(t,e),...null!=e?e:{}})}([])],Le.prototype,"exportpartsPrefixes",void 0),$e([N()],Le.prototype,"customStylesheet",void 0);const We=be.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");function Fe(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Me,je,Ke;bt`
|
|
92
|
+
.highlight-html-match {
|
|
93
|
+
background: ${We};
|
|
94
|
+
}
|
|
95
|
+
`,bt`
|
|
96
|
+
.ft-no-text-select {
|
|
97
|
+
-webkit-touch-callout: none;
|
|
98
|
+
-webkit-user-select: none;
|
|
99
|
+
-khtml-user-select: none;
|
|
100
|
+
-moz-user-select: none;
|
|
101
|
+
-ms-user-select: none;
|
|
102
|
+
user-select: none;
|
|
103
|
+
}
|
|
104
|
+
`,bt`
|
|
105
|
+
.ft-word-wrap {
|
|
106
|
+
white-space: normal;
|
|
107
|
+
word-wrap: break-word;
|
|
108
|
+
-ms-word-break: break-all;
|
|
109
|
+
word-break: break-all;
|
|
110
|
+
word-break: break-word;
|
|
111
|
+
-ms-hyphens: auto;
|
|
112
|
+
-moz-hyphens: auto;
|
|
113
|
+
-webkit-hyphens: auto;
|
|
114
|
+
hyphens: auto
|
|
115
|
+
}
|
|
116
|
+
`,bt`
|
|
117
|
+
.ft-safari-ellipsis-fix {
|
|
118
|
+
margin-right: 0;
|
|
119
|
+
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.ft-safari-ellipsis-fix:after {
|
|
123
|
+
content: "\\0000a0";
|
|
124
|
+
display: inline-block;
|
|
125
|
+
width: 0;
|
|
126
|
+
}
|
|
127
|
+
`;const Ae=Symbol("internalReduxEventsUnsubscribers"),Pe=Symbol("internalStoresUnsubscribers"),Be=Symbol("internalStores");let Ze=class extends Le{constructor(){super(...arguments),this[Me]=new Map,this[je]=new Map,this[Ke]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[Be].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Be].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Be].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:Fe(t)?t.name:void 0)&&void 0!==o?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[Be].delete(e)}setupStore(t,e){this[Be].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Be].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,e)=>{const o=this.constructor.getPropertyOptions(e);if(!(null==o?void 0:o.attribute)||!this.hasAttribute("string"==typeof(null==o?void 0:o.attribute)?o.attribute:e)){const o=this.getStore(t.store);o&&(t.store?this[Pe].has(t.store):this[Pe].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[Pe].set(t,e.subscribe((()=>this.updateFromStores()))),Fe(e)&&e.eventBus&&(null===(o=this.reduxConstructor.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const r=t=>this[o](t);e.eventBus.addEventListener(t.eventName,r),this[Ae].push((()=>e.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Pe].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Ae].forEach((t=>t())),this[Ae]=[]}unsubscribeFromStore(t){this[Pe].has(t)&&this[Pe].get(t)(),this[Pe].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};function ze(t){for(var e=arguments.length,o=Array(e>1?e-1:0),r=1;r<e;r++)o[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function De(t){return!!t&&!!t[ko]}function Te(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var o=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return o===Object||"function"==typeof o&&Function.toString.call(o)===Io}(t)||Array.isArray(t)||!!t[Uo]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Uo])||Ye(t)||Je(t))}function He(t,e,o){void 0===o&&(o=!1),0===_e(t)?(o?Object.keys:Lo)(t).forEach((function(r){o&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(o,r){return e(r,o,t)}))}function _e(t){var e=t[ko];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Ye(t)?2:Je(t)?3:0}function Ge(t,e){return 2===_e(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Ve(t,e,o){var r=_e(t);2===r?t.set(e,o):3===r?t.add(o):t[e]=o}function qe(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function Ye(t){return Co&&t instanceof Map}function Je(t){return Eo&&t instanceof Set}function Xe(t){return t.o||t.t}function Qe(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Wo(t);delete e[ko];for(var o=Lo(e),r=0;r<o.length;r++){var i=o[r],n=e[i];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[i]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function to(t,e){return void 0===e&&(e=!1),oo(t)||De(t)||!Te(t)||(_e(t)>1&&(t.set=t.add=t.clear=t.delete=eo),Object.freeze(t),e&&He(t,(function(t,e){return to(e,!0)}),!0)),t}function eo(){ze(2)}function oo(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function ro(t){var e=Fo[t];return e||ze(18,t),e}function io(){return So}function no(t,e){e&&(ro("Patches"),t.u=[],t.s=[],t.v=e)}function ao(t){so(t),t.p.forEach(lo),t.p=null}function so(t){t===So&&(So=t.l)}function co(t){return So={p:[],l:So,h:t,m:!0,_:0}}function lo(t){var e=t[ko];0===e.i||1===e.i?e.j():e.g=!0}function fo(t,e){e._=e.p.length;var o=e.p[0],r=void 0!==t&&t!==o;return e.h.O||ro("ES5").S(e,t,r),r?(o[ko].P&&(ao(e),ze(4)),Te(t)&&(t=po(e,t),e.l||ho(e,t)),e.u&&ro("Patches").M(o[ko].t,t,e.u,e.s)):t=po(e,o,[]),ao(e),e.u&&e.v(e.u,e.s),t!==$o?t:void 0}function po(t,e,o){if(oo(e))return e;var r=e[ko];if(!r)return He(e,(function(i,n){return uo(t,r,e,i,n,o)}),!0),e;if(r.A!==t)return e;if(!r.P)return ho(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=Qe(r.k):r.o,n=i,a=!1;3===r.i&&(n=new Set(i),i.clear(),a=!0),He(n,(function(e,n){return uo(t,r,i,e,n,o,a)})),ho(t,i,!1),o&&t.u&&ro("Patches").N(r,o,t.u,t.s)}return r.o}function uo(t,e,o,r,i,n,a){if(De(i)){var s=po(t,i,n&&e&&3!==e.i&&!Ge(e.R,r)?n.concat(r):void 0);if(Ve(o,r,s),!De(s))return;t.m=!1}else a&&o.add(i);if(Te(i)&&!oo(i)){if(!t.h.D&&t._<1)return;po(t,i),e&&e.A.l||ho(t,i)}}function ho(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&to(e,o)}function yo(t,e){var o=t[ko];return(o?Xe(o):t)[e]}function bo(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var r=Object.getOwnPropertyDescriptor(o,e);if(r)return r;o=Object.getPrototypeOf(o)}}function go(t){t.P||(t.P=!0,t.l&&go(t.l))}function mo(t){t.o||(t.o=Qe(t.t))}function vo(t,e,o){var r=Ye(e)?ro("MapSet").F(e,o):Je(e)?ro("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),r={i:o?1:0,A:e?e.A:io(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},i=r,n=Mo;o&&(i=[r],n=jo);var a=Proxy.revocable(i,n),s=a.revoke,c=a.proxy;return r.k=c,r.j=s,c}(e,o):ro("ES5").J(e,o);return(o?o.A:io()).p.push(r),r}function xo(t){return De(t)||ze(22,t),function t(e){if(!Te(e))return e;var o,r=e[ko],i=_e(e);if(r){if(!r.P&&(r.i<4||!ro("ES5").K(r)))return r.t;r.I=!0,o=Oo(e,i),r.I=!1}else o=Oo(e,i);return He(o,(function(e,i){r&&function(t,e){return 2===_e(t)?t.get(e):t[e]}(r.t,e)===i||Ve(o,e,t(i))})),3===i?new Set(o):o}(t)}function Oo(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Qe(t)}Me=Pe,je=Be,Ke=Ae,Ze.reduxProperties=new Map,Ze.reduxReactiveProperties=new Set,Ze.reduxEventListeners=new Map;var wo,So,No="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Co="undefined"!=typeof Map,Eo="undefined"!=typeof Set,Ro="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,$o=No?Symbol.for("immer-nothing"):((wo={})["immer-nothing"]=!0,wo),Uo=No?Symbol.for("immer-draftable"):"__$immer_draftable",ko=No?Symbol.for("immer-state"):"__$immer_state",Io=""+Object.prototype.constructor,Lo="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Wo=Object.getOwnPropertyDescriptors||function(t){var e={};return Lo(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},Fo={},Mo={get:function(t,e){if(e===ko)return t;var o=Xe(t);if(!Ge(o,e))return function(t,e,o){var r,i=bo(e,o);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(t.k):void 0}(t,o,e);var r=o[e];return t.I||!Te(r)?r:r===yo(t.t,e)?(mo(t),t.o[e]=vo(t.A.h,r,t)):r},has:function(t,e){return e in Xe(t)},ownKeys:function(t){return Reflect.ownKeys(Xe(t))},set:function(t,e,o){var r=bo(Xe(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,o),!0;if(!t.P){var i=yo(Xe(t),e),n=null==i?void 0:i[ko];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(qe(o,i)&&(void 0!==o||Ge(t.t,e)))return!0;mo(t),go(t)}return t.o[e]===o&&(void 0!==o||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==yo(t.t,e)||e in t.t?(t.R[e]=!1,mo(t),go(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Xe(t),r=Reflect.getOwnPropertyDescriptor(o,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:o[e]}:r},defineProperty:function(){ze(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ze(12)}},jo={};He(Mo,(function(t,e){jo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),jo.deleteProperty=function(t,e){return jo.set.call(this,t,e,void 0)},jo.set=function(t,e,o){return Mo.set.call(this,t[0],e,o,t[0])};var Ko=function(){function t(t){var e=this;this.O=Ro,this.D=!0,this.produce=function(t,o,r){if("function"==typeof t&&"function"!=typeof o){var i=o;o=t;var n=e;return function(t){var e=this;void 0===t&&(t=i);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var r;return(r=o).call.apply(r,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&ze(6),void 0!==r&&"function"!=typeof r&&ze(7),Te(t)){var s=co(e),c=vo(e,t,void 0),l=!0;try{a=o(c),l=!1}finally{l?ao(s):so(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return no(s,r),fo(t,s)}),(function(t){throw ao(s),t})):(no(s,r),fo(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===$o&&(a=void 0),e.D&&to(a,!0),r){var f=[],p=[];ro("Patches").M(t,a,f,p),r(f,p)}return a}ze(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var r=arguments.length,i=Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(i))}))};var r,i,n=e.produce(t,o,(function(t,e){r=t,i=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,r,i]})):[n,r,i]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){Te(t)||ze(8),De(t)&&(t=xo(t));var e=co(this),o=vo(this,t,void 0);return o[ko].C=!0,so(e),o},e.finishDraft=function(t,e){var o=(t&&t[ko]).A;return no(o,e),fo(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Ro&&ze(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var r=e[o];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}o>-1&&(e=e.slice(o+1));var i=ro("Patches").$;return De(t)?i(t,e):this.produce(t,(function(t){return i(t,e)}))},t}(),Ao=new Ko,Po=Ao.produce;function Bo(t){return Bo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bo(t)}function Zo(t){var e=function(t,e){if("object"!==Bo(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,e||"default");if("object"!==Bo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Bo(e)?e:String(e)}function zo(t,e,o){return(e=Zo(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Do(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function To(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?Do(Object(o),!0).forEach((function(e){zo(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Do(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function Ho(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}Ao.produceWithPatches.bind(Ao),Ao.setAutoFreeze.bind(Ao),Ao.setUseProxies.bind(Ao),Ao.applyPatches.bind(Ao),Ao.createDraft.bind(Ao),Ao.finishDraft.bind(Ao);var _o="function"==typeof Symbol&&Symbol.observable||"@@observable",Go=function(){return Math.random().toString(36).substring(7).split("").join(".")},Vo={INIT:"@@redux/INIT"+Go(),REPLACE:"@@redux/REPLACE"+Go(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Go()}};function qo(t,e,o){var r;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(Ho(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(Ho(1));return o(qo)(t,e)}if("function"!=typeof t)throw new Error(Ho(2));var i=t,n=e,a=[],s=a,c=!1;function l(){s===a&&(s=a.slice())}function f(){if(c)throw new Error(Ho(3));return n}function p(t){if("function"!=typeof t)throw new Error(Ho(4));if(c)throw new Error(Ho(5));var e=!0;return l(),s.push(t),function(){if(e){if(c)throw new Error(Ho(6));e=!1,l();var o=s.indexOf(t);s.splice(o,1),a=null}}}function u(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(Ho(7));if(void 0===t.type)throw new Error(Ho(8));if(c)throw new Error(Ho(9));try{c=!0,n=i(n,t)}finally{c=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return u({type:Vo.INIT}),(r={dispatch:u,subscribe:p,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Ho(10));i=t,u({type:Vo.REPLACE})}})[_o]=function(){var t,e=p;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Ho(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[_o]=function(){return this},t},r}function Yo(t){for(var e=Object.keys(t),o={},r=0;r<e.length;r++){var i=e[r];"function"==typeof t[i]&&(o[i]=t[i])}var n,a=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:Vo.INIT}))throw new Error(Ho(12));if(void 0===o(void 0,{type:Vo.PROBE_UNKNOWN_ACTION()}))throw new Error(Ho(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var r=!1,i={},s=0;s<a.length;s++){var c=a[s],l=o[c],f=t[c],p=l(f,e);if(void 0===p)throw e&&e.type,new Error(Ho(14));i[c]=p,r=r||p!==f}return(r=r||a.length!==Object.keys(t).length)?i:t}}function Jo(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function Xo(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(t){return function(){var o=t.apply(void 0,arguments),r=function(){throw new Error(Ho(15))},i={getState:o.getState,dispatch:function(){return r.apply(void 0,arguments)}},n=e.map((function(t){return t(i)}));return r=Jo.apply(void 0,n)(o.dispatch),To(To({},o),{},{dispatch:r})}}}function Qo(t){return function(e){var o=e.dispatch,r=e.getState;return function(e){return function(i){return"function"==typeof i?i(o,r,t):e(i)}}}}var tr=Qo();tr.withExtraArgument=Qo;var er,or=tr,rr=(er=function(t,e){return er=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},er(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}er(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),ir=function(t,e){var o,r,i,n,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,r&&(i=2&n[0]?r.return:n[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,n[1])).done)return i;switch(r=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,r=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){a.label=n[1];break}if(6===n[0]&&a.label<i[1]){a.label=i[1],i=n;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(n);break}i[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],r=0}finally{o=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},nr=function(t,e){for(var o=0,r=e.length,i=t.length;o<r;o++,i++)t[i]=e[o];return t},ar=Object.defineProperty,sr=Object.defineProperties,cr=Object.getOwnPropertyDescriptors,lr=Object.getOwnPropertySymbols,fr=Object.prototype.hasOwnProperty,pr=Object.prototype.propertyIsEnumerable,ur=function(t,e,o){return e in t?ar(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},hr=function(t,e){for(var o in e||(e={}))fr.call(e,o)&&ur(t,o,e[o]);if(lr)for(var r=0,i=lr(e);r<i.length;r++){o=i[r];pr.call(e,o)&&ur(t,o,e[o])}return t},dr=function(t,e){return sr(t,cr(e))},yr="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Jo:Jo.apply(null,arguments)};var br=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return rr(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,nr([void 0],t[0].concat(this)))):new(e.bind.apply(e,nr([void 0],t.concat(this))))},e}(Array),gr=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return rr(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,nr([void 0],t[0].concat(this)))):new(e.bind.apply(e,nr([void 0],t.concat(this))))},e}(Array);function mr(t){return Te(t)?Po(t,(function(){})):t}function vr(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var r=new br;o&&(!function(t){return"boolean"==typeof t}(o)?r.push(or.withExtraArgument(o.extraArgument)):r.push(or));return r}(t)}}function xr(t){var e,o=vr(),r=t||{},i=r.reducer,n=void 0===i?void 0:i,a=r.middleware,s=void 0===a?o():a,c=r.devTools,l=void 0===c||c,f=r.preloadedState,p=void 0===f?void 0:f,u=r.enhancers,h=void 0===u?void 0:u;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var o=e;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return e===o}(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=Yo(n)}var d=s;"function"==typeof d&&(d=d(o));var y=Xo.apply(void 0,d),b=Jo;l&&(b=yr(hr({trace:!1},"object"==typeof l&&l)));var g=new gr(y),m=g;return Array.isArray(h)?m=nr([y],h):"function"==typeof h&&(m=h(g)),qo(e,p,b.apply(void 0,m))}function Or(t,e){function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(e){var i=e.apply(void 0,o);if(!i)throw new Error("prepareAction did not return an object");return hr(hr({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:o[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(e){return e.type===t},o}function wr(t){var e,o={},r=[],i={addCase:function(t,e){var r="string"==typeof t?t:t.type;if(r in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[r]=e,i},addMatcher:function(t,e){return r.push({matcher:t,reducer:e}),i},addDefaultCase:function(t){return e=t,i}};return t(i),[o,r,e]}function Sr(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,r="function"==typeof t.initialState?t.initialState:mr(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},c={};function l(){var e="function"==typeof t.extraReducers?wr(t.extraReducers):[t.extraReducers],o=e[0],i=void 0===o?{}:o,n=e[1],a=void 0===n?[]:n,c=e[2],l=void 0===c?void 0:c,f=hr(hr({},i),s);return function(t,e,o,r){void 0===o&&(o=[]);var i,n="function"==typeof e?wr(e):[e,o,r],a=n[0],s=n[1],c=n[2];if(function(t){return"function"==typeof t}(t))i=function(){return mr(t())};else{var l=mr(t);i=function(){return l}}function f(t,e){void 0===t&&(t=i());var o=nr([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[c]),o.reduce((function(t,o){if(o){var r;if(De(t))return void 0===(r=o(t,e))?t:r;if(Te(t))return Po(t,(function(t){return o(t,e)}));if(void 0===(r=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return t}),t)}return f.getInitialState=i,f}(r,(function(t){for(var e in f)t.addCase(e,f[e]);for(var o=0,r=a;o<r.length;o++){var i=r[o];t.addMatcher(i.matcher,i.reducer)}l&&t.addDefaultCase(l)}))}return n.forEach((function(t){var o,r,n=i[t],l=e+"/"+t;"reducer"in n?(o=n.reducer,r=n.prepare):o=n,a[t]=o,s[l]=o,c[t]=r?Or(l,r):Or(l)})),{name:e,reducer:function(t,e){return o||(o=l()),o(t,e)},actions:c,caseReducers:a,getInitialState:function(){return o||(o=l()),o.getInitialState()}}}var Nr=["name","message","stack","code"],Cr=function(t,e){this.payload=t,this.meta=e},Er=function(t,e){this.payload=t,this.meta=e},Rr=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,r=Nr;o<r.length;o++){var i=r[o];"string"==typeof t[i]&&(e[i]=t[i])}return e}return{message:String(t)}};function $r(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,o){var r=Or(t+"/fulfilled",(function(t,e,o,r){return{payload:t,meta:dr(hr({},r||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),i=Or(t+"/pending",(function(t,e,o){return{payload:void 0,meta:dr(hr({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Or(t+"/rejected",(function(t,e,r,i,n){return{payload:i,error:(o&&o.serializeError||Rr)(t||"Rejected"),meta:dr(hr({},n||{}),{arg:r,requestId:e,rejectedWithValue:!!i,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(s,c,l){var f,p=(null==o?void 0:o.idGenerator)?o.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",o=t;o--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),u=new a;function h(t){f=t,u.abort()}var d=function(){return a=this,d=null,y=function(){var a,d,y,b,g,m;return ir(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),b=null==(a=null==o?void 0:o.condition)?void 0:a.call(o,t,{getState:c,extra:l}),null===(x=b)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,b];case 1:b=v.sent(),v.label=2;case 2:if(!1===b||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return g=new Promise((function(t,e){return u.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(i(p,t,null==(d=null==o?void 0:o.getPendingMeta)?void 0:d.call(o,{requestId:p,arg:t},{getState:c,extra:l}))),[4,Promise.race([g,Promise.resolve(e(t,{dispatch:s,getState:c,extra:l,requestId:p,signal:u.signal,abort:h,rejectWithValue:function(t,e){return new Cr(t,e)},fulfillWithValue:function(t,e){return new Er(t,e)}})).then((function(e){if(e instanceof Cr)throw e;return e instanceof Er?r(e.payload,p,t,e.meta):r(e,p,t)}))])];case 3:return y=v.sent(),[3,5];case 4:return m=v.sent(),y=m instanceof Cr?n(null,p,t,m.payload,m.meta):n(m,p,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&n.match(y)&&y.meta.condition||s(y),[2,y]}var x}))},new Promise((function(t,e){var o=function(t){try{i(y.next(t))}catch(t){e(t)}},r=function(t){try{i(y.throw(t))}catch(t){e(t)}},i=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,r)};i((y=y.apply(a,d)).next())}));var a,d,y}();return Object.assign(d,{abort:h,requestId:p,arg:t,unwrap:function(){return d.then($r)}})}}),{pending:i,rejected:n,fulfilled:r,typePrefix:t})}t.withTypes=function(){return t}}();var Ur,kr,Ir="listenerMiddleware";Or(Ir+"/add"),Or(Ir+"/removeAll"),Or(Ir+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=i[t];return o?o.enumerable=e:i[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[ko];return Mo.get(e,t)},set:function(e){var o=this[ko];Mo.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var i=t[e][ko];if(!i.P)switch(i.i){case 5:r(i)&&go(i);break;case 4:o(i)&&go(i)}}}function o(t){for(var e=t.t,o=t.k,r=Lo(o),i=r.length-1;i>=0;i--){var n=r[i];if(n!==ko){var a=e[n];if(void 0===a&&!Ge(e,n))return!0;var s=o[n],c=s&&s[ko];if(c?c.t!==a:!qe(s,a))return!0}}var l=!!e[ko];return r.length!==Lo(e).length+(l?0:1)}function r(t){var e=t.k;if(e.length!==t.t.length)return!0;var o=Object.getOwnPropertyDescriptor(e,e.length-1);if(o&&!o.get)return!0;for(var r=0;r<e.length;r++)if(!e.hasOwnProperty(r))return!0;return!1}var i={};!function(t,e){Fo[t]||(Fo[t]=e)}("ES5",{J:function(e,o){var r=Array.isArray(e),i=function(e,o){if(e){for(var r=Array(o.length),i=0;i<o.length;i++)Object.defineProperty(r,""+i,t(i,!0));return r}var n=Wo(o);delete n[ko];for(var a=Lo(n),s=0;s<a.length;s++){var c=a[s];n[c]=t(c,e||!!n[c].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(r,e),n={i:r?5:4,A:o?o.A:io(),P:!1,I:!1,R:{},l:o,t:e,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,ko,{value:n,writable:!0}),i},S:function(t,o,i){i?De(o)&&o[ko].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[ko];if(o){var i=o.t,n=o.k,a=o.R,s=o.i;if(4===s)He(n,(function(e){e!==ko&&(void 0!==i[e]||Ge(i,e)?a[e]||t(n[e]):(a[e]=!0,go(o)))})),He(i,(function(t){void 0!==n[t]||Ge(n,t)||(a[t]=!1,go(o))}));else if(5===s){if(r(o)&&(go(o),a.length=!0),n.length<i.length)for(var c=n.length;c<i.length;c++)a[c]=!1;else for(var l=i.length;l<n.length;l++)a[l]=!0;for(var f=Math.min(n.length,i.length),p=0;p<f;p++)n.hasOwnProperty(p)||(a[p]=!0),void 0===a[p]&&t(n[p])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):r(t)}})}(),window.ftReduxStores||(window.ftReduxStores={}),navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(kr=null===(Ur=window.safari)||void 0===Ur?void 0:Ur.pushNotification)||void 0===kr||kr.toString());try{window.customElements.define("custom-element",null)}catch(ws){const t=window.customElements.define;window.customElements.define=(e,o,r)=>{if(null!==o)try{t.bind(window.customElements)(e,o,r)}catch(t){console.info(e,o,r,t)}}}class Lr extends Error{constructor(t,e,o){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=o}}class Wr extends Promise{constructor(t){super(((e,o)=>t((t=>{this.isCanceled?o(new Lr("Promise has been canceled",t)):e(t)}),(t=>{this.isCanceled?o(new Lr("Promise has been canceled",void 0,t)):o(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class Fr{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof Wr&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,o){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const r=(t=>new Wr(((e,o)=>t.then(e).catch(o))))(e());return this.content[t]=r,r.then((e=>(this.content[t]=e,null!=o&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),o)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class Mr{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const o=[...this.callbacks];this.callbacks=[];const r=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,i=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of o)try{await t()}catch(t){return void r(t)}i(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}function jr(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var o,r,i;if(Array.isArray(t)){if((o=t.length)!=e.length)return!1;for(r=o;0!=r--;)if(!jr(t[r],e[r]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;for(r of t.entries())if(!jr(r[1],e.get(r[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((o=(i=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(r=o;0!=r--;)if(!Object.prototype.hasOwnProperty.call(e,i[r]))return!1;for(r=o;0!=r--;){var n=i[r];if(!jr(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}const Kr=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function Ar(t,e){const o=()=>JSON.parse(JSON.stringify(t));return N({type:Object,converter:{fromAttribute:t=>{if(null==t)return o();try{return JSON.parse(t)}catch{return o()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!jr(t,e),...null!=e?e:{}})}const Pr={colorPrimary:be.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:be.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:be.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:be.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:be.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:be.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:be.create("--ft-color-error","","COLOR","#B00020"),colorOutline:be.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:be.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:be.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:be.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:be.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:be.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:be.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:be.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:be.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:be.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:be.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:be.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:be.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:be.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:be.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:be.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:be.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:be.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:be.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:be.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:be.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:be.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:be.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:be.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:be.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:be.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:be.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:be.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:be.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:be.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:be.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:be.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:be.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:be.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:be.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:be.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:be.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:be.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:be.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:be.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:be.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:be.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:be.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:be.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:be.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:be.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:be.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:be.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:be.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:be.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:be.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:be.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:be.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:be.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:be.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};class Br extends he{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,o])=>t.registry.define(e,o))));const e={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(e);return Ce(o,t.elementStyles),o}}var Zr,zr=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Dr=Symbol("constructorPrototype"),Tr=Symbol("constructorName"),Hr=Symbol("exportpartsDebouncer");class _r extends Br{constructor(){super(),this[Zr]=new Mr(5),this[Tr]=this.constructor.name,this[Dr]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Tr]&&Object.setPrototypeOf(this,this[Dr])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,o;if((null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==o?o:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Hr].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,o,r,i,n,a;const s=t=>null!=t&&t.trim().length>0,c=t.filter(s).map((t=>t.trim()));if(0===c.length)return void this.removeAttribute("exportparts");const l=new Set;for(let t of null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==o?o:[]){const e=null!==(i=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==i?i:[],o=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...e,...o).filter(s).map((t=>t.trim())).forEach((t=>l.add(t)))}if(0===l.size)return void this.removeAttribute("exportparts");const f=[...l.values()].flatMap((t=>c.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}Zr=Hr,zr([N()],_r.prototype,"exportpartsPrefix",void 0),zr([Ar([])],_r.prototype,"exportpartsPrefixes",void 0),zr([N()],_r.prototype,"customStylesheet",void 0);const Gr=be.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");bt`
|
|
128
|
+
.highlight-html-match {
|
|
129
|
+
background: ${Gr};
|
|
130
|
+
}
|
|
131
|
+
`;const Vr=bt`
|
|
132
|
+
.ft-no-text-select {
|
|
133
|
+
-webkit-touch-callout: none;
|
|
134
|
+
-webkit-user-select: none;
|
|
135
|
+
-khtml-user-select: none;
|
|
136
|
+
-moz-user-select: none;
|
|
137
|
+
-ms-user-select: none;
|
|
138
|
+
user-select: none;
|
|
139
|
+
}
|
|
140
|
+
`;bt`
|
|
141
|
+
.ft-word-wrap {
|
|
142
|
+
white-space: normal;
|
|
143
|
+
word-wrap: break-word;
|
|
144
|
+
-ms-word-break: break-all;
|
|
145
|
+
word-break: break-all;
|
|
146
|
+
word-break: break-word;
|
|
147
|
+
-ms-hyphens: auto;
|
|
148
|
+
-moz-hyphens: auto;
|
|
149
|
+
-webkit-hyphens: auto;
|
|
150
|
+
hyphens: auto
|
|
151
|
+
}
|
|
152
|
+
`;const qr=bt`
|
|
153
|
+
.ft-safari-ellipsis-fix {
|
|
154
|
+
margin-right: 0;
|
|
155
|
+
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.ft-safari-ellipsis-fix:after {
|
|
159
|
+
content: "\\0000a0";
|
|
160
|
+
display: inline-block;
|
|
161
|
+
width: 0;
|
|
162
|
+
}
|
|
163
|
+
`;class Yr{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,r;t=this.resolvePluralKey(t,e);let i=null!==(r=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==r?r:"";return e.forEach(((t,e)=>i=i.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),i}resolvePluralKey(t,e){for(let o of e)if("number"==typeof o){const e=`${String(t)}[\\=${o}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const o=o=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(o):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(o):t.toLocaleString(o);try{return o(document.documentElement.lang)}catch(t){return o()}}}class Jr{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter((e=>e.type!==t.type))),this.queue.push(t)}consume(t){const e=this.queue.find((e=>e.type===t));return e&&(this.queue=this.queue.filter((t=>t!==e))),e}}function Xr(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Qr,ti,ei;const oi=Symbol("internalReduxEventsUnsubscribers"),ri=Symbol("internalStoresUnsubscribers"),ii=Symbol("internalStores");class ni extends _r{constructor(){super(...arguments),this[Qr]=new Map,this[ti]=new Map,this[ei]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[ii].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ii].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[ii].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:Xr(t)?t.name:void 0)&&void 0!==o?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[ii].delete(e)}setupStore(t,e){this[ii].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[ii].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,e)=>{const o=this.constructor.getPropertyOptions(e);if(!(null==o?void 0:o.attribute)||!this.hasAttribute("string"==typeof(null==o?void 0:o.attribute)?o.attribute:e)){const o=this.getStore(t.store);o&&(t.store?this[ri].has(t.store):this[ri].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[ri].set(t,e.subscribe((()=>this.updateFromStores()))),Xr(e)&&e.eventBus&&(null===(o=this.reduxConstructor.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const r=t=>this[o](t);e.eventBus.addEventListener(t.eventName,r),this[oi].push((()=>e.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[ri].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[oi].forEach((t=>t())),this[oi]=[]}unsubscribeFromStore(t){this[ri].has(t)&&this[ri].get(t)(),this[ri].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}Qr=ri,ti=ii,ei=oi,ni.reduxProperties=new Map,ni.reduxReactiveProperties=new Set,ni.reduxEventListeners=new Map,window.ftReduxStores||(window.ftReduxStores={});class ai{static get(t){var e;const o="string"==typeof t?t:t.name,r="string"==typeof t?void 0:t,i=window.ftReduxStores[o];if(Xr(i))return i;if(null==r)return;const n=Sr({...r,reducers:null!==(e=r.reducers)&&void 0!==e?e:{}}),a=xr({reducer:(t,e)=>{var o;switch(e.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(o=e.overwrites)&&void 0!==o?o:{}};default:return n.reducer(t,e)}}});return window.ftReduxStores[r.name]=new ai(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Jr,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const r=e,i=t[r];return i?(...t)=>{const e=i(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[r]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const si=Symbol("elementInternals");var ci,li,fi;const pi=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(fi=null===(li=null===(ci=window.safari)||void 0===ci?void 0:ci.pushNotification)||void 0===li?void 0:li.toString())&&void 0!==fi?fi:""),ui=be.extend("--ft-ripple-color","",Pr.colorContent),hi={color:ui,backgroundColor:be.extend("--ft-ripple-background-color","",ui),opacityContentOnSurfacePressed:be.external(Pr.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:be.external(Pr.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:be.external(Pr.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:be.external(Pr.opacityContentOnSurfaceSelected,"Design system"),borderRadius:be.create("--ft-ripple-border-radius","","SIZE","0px")},di=be.extend("--ft-ripple-color","",Pr.colorPrimary),yi=di,bi=be.extend("--ft-ripple-background-color","",di),gi=be.extend("--ft-ripple-color","",Pr.colorSecondary),mi=gi,vi=be.extend("--ft-ripple-background-color","",gi),xi=bt`
|
|
164
|
+
:host {
|
|
165
|
+
display: contents;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.ft-ripple {
|
|
169
|
+
position: absolute;
|
|
170
|
+
inset: 0;
|
|
171
|
+
pointer-events: none;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
175
|
+
overflow: hidden;
|
|
176
|
+
border-radius: ${hi.borderRadius};
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.ft-ripple .ft-ripple--background,
|
|
180
|
+
.ft-ripple .ft-ripple--effect {
|
|
181
|
+
position: absolute;
|
|
182
|
+
opacity: 0;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.ft-ripple .ft-ripple--effect {
|
|
186
|
+
aspect-ratio: 1;
|
|
187
|
+
width: auto;
|
|
188
|
+
height: auto;
|
|
189
|
+
min-width: 170%;
|
|
190
|
+
min-height: 170%;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.ft-ripple .ft-ripple--background{
|
|
194
|
+
width: 100%;
|
|
195
|
+
height: 100%;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
|
|
199
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
200
|
+
aspect-ratio: 1;
|
|
201
|
+
width: auto;
|
|
202
|
+
height: auto;
|
|
203
|
+
max-width: unset;
|
|
204
|
+
max-height: unset;
|
|
205
|
+
min-width: 100%;
|
|
206
|
+
min-height: 100%;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.ft-ripple .ft-ripple--background {
|
|
210
|
+
background-color: ${hi.backgroundColor};
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.ft-ripple .ft-ripple--effect {
|
|
214
|
+
background-color: ${hi.color};
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
218
|
+
background-color: ${vi};
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
222
|
+
background-color: ${mi};
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
226
|
+
background-color: ${bi};
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
230
|
+
background-color: ${yi};
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.ft-ripple .ft-ripple--background {
|
|
234
|
+
top: 0;
|
|
235
|
+
left: 0;
|
|
236
|
+
transition: opacity 75ms linear;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.ft-ripple .ft-ripple--effect,
|
|
240
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
241
|
+
border-radius: 50%;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.ft-ripple .ft-ripple--effect {
|
|
245
|
+
transform: translate(-50%, -50%) scale(0.15);
|
|
246
|
+
transition: transform 300ms ease, opacity 75ms linear;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
|
|
250
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
251
|
+
left: 50%;
|
|
252
|
+
top: 50%;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
256
|
+
transform: translate(-50%, -50%);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
260
|
+
opacity: ${hi.opacityContentOnSurfaceHover};
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
264
|
+
opacity: ${hi.opacityContentOnSurfaceSelected};
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
268
|
+
opacity: ${hi.opacityContentOnSurfaceFocused};
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
272
|
+
opacity: ${hi.opacityContentOnSurfacePressed};
|
|
273
|
+
transform: translate(-50%, -50%) scale(1);
|
|
274
|
+
}
|
|
275
|
+
`;const Oi=be.extend("--ft-typography-font-family","",Pr.titleFont),wi=be.extend("--ft-typography-font-family","",Pr.contentFont),Si={fontFamily:wi,fontSize:be.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:be.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:be.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:be.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:be.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Ni=be.extend("--ft-typography-title-font-family","",Oi),Ci=be.extend("--ft-typography-title-font-size","",Si.fontSize,"20px"),Ei=be.extend("--ft-typography-title-font-weight","",Si.fontWeight,"normal"),Ri=be.extend("--ft-typography-title-letter-spacing","",Si.letterSpacing,"0.15px"),$i=be.extend("--ft-typography-title-line-height","",Si.lineHeight,"1.2"),Ui=be.extend("--ft-typography-title-text-transform","",Si.textTransform,"inherit"),ki=be.extend("--ft-typography-title-dense-font-family","",Oi),Ii=be.extend("--ft-typography-title-dense-font-size","",Si.fontSize,"14px"),Li=be.extend("--ft-typography-title-dense-font-weight","",Si.fontWeight,"normal"),Wi=be.extend("--ft-typography-title-dense-letter-spacing","",Si.letterSpacing,"0.105px"),Fi=be.extend("--ft-typography-title-dense-line-height","",Si.lineHeight,"1.7"),Mi=be.extend("--ft-typography-title-dense-text-transform","",Si.textTransform,"inherit"),ji=be.extend("--ft-typography-subtitle1-font-family","",wi),Ki=be.extend("--ft-typography-subtitle1-font-size","",Si.fontSize,"16px"),Ai=be.extend("--ft-typography-subtitle1-font-weight","",Si.fontWeight,"600"),Pi=be.extend("--ft-typography-subtitle1-letter-spacing","",Si.letterSpacing,"0.144px"),Bi=be.extend("--ft-typography-subtitle1-line-height","",Si.lineHeight,"1.5"),Zi=be.extend("--ft-typography-subtitle1-text-transform","",Si.textTransform,"inherit"),zi=be.extend("--ft-typography-subtitle2-font-family","",wi),Di=be.extend("--ft-typography-subtitle2-font-size","",Si.fontSize,"14px"),Ti=be.extend("--ft-typography-subtitle2-font-weight","",Si.fontWeight,"normal"),Hi=be.extend("--ft-typography-subtitle2-letter-spacing","",Si.letterSpacing,"0.098px"),_i=be.extend("--ft-typography-subtitle2-line-height","",Si.lineHeight,"1.7"),Gi=be.extend("--ft-typography-subtitle2-text-transform","",Si.textTransform,"inherit"),Vi=be.extend("--ft-typography-body1-font-family","",wi),qi=be.extend("--ft-typography-body1-font-size","",Si.fontSize,"16px"),Yi=be.extend("--ft-typography-body1-font-weight","",Si.fontWeight,"normal"),Ji=be.extend("--ft-typography-body1-letter-spacing","",Si.letterSpacing,"0.496px"),Xi=be.extend("--ft-typography-body1-line-height","",Si.lineHeight,"1.5"),Qi=be.extend("--ft-typography-body1-text-transform","",Si.textTransform,"inherit"),tn=be.extend("--ft-typography-body2-font-family","",wi),en=be.extend("--ft-typography-body2-font-size","",Si.fontSize,"14px"),on=be.extend("--ft-typography-body2-font-weight","",Si.fontWeight,"normal"),rn=be.extend("--ft-typography-body2-letter-spacing","",Si.letterSpacing,"0.252px"),nn=be.extend("--ft-typography-body2-line-height","",Si.lineHeight,"1.4"),an=be.extend("--ft-typography-body2-text-transform","",Si.textTransform,"inherit"),sn=be.extend("--ft-typography-caption-font-family","",wi),cn=be.extend("--ft-typography-caption-font-size","",Si.fontSize,"12px"),ln=be.extend("--ft-typography-caption-font-weight","",Si.fontWeight,"normal"),fn=be.extend("--ft-typography-caption-letter-spacing","",Si.letterSpacing,"0.396px"),pn=be.extend("--ft-typography-caption-line-height","",Si.lineHeight,"1.33"),un=be.extend("--ft-typography-caption-text-transform","",Si.textTransform,"inherit"),hn=be.extend("--ft-typography-breadcrumb-font-family","",wi),dn=be.extend("--ft-typography-breadcrumb-font-size","",Si.fontSize,"10px"),yn=be.extend("--ft-typography-breadcrumb-font-weight","",Si.fontWeight,"normal"),bn=be.extend("--ft-typography-breadcrumb-letter-spacing","",Si.letterSpacing,"0.33px"),gn=be.extend("--ft-typography-breadcrumb-line-height","",Si.lineHeight,"1.6"),mn=be.extend("--ft-typography-breadcrumb-text-transform","",Si.textTransform,"inherit"),vn=be.extend("--ft-typography-overline-font-family","",wi),xn=be.extend("--ft-typography-overline-font-size","",Si.fontSize,"10px"),On=be.extend("--ft-typography-overline-font-weight","",Si.fontWeight,"normal"),wn=be.extend("--ft-typography-overline-letter-spacing","",Si.letterSpacing,"1.5px"),Sn=be.extend("--ft-typography-overline-line-height","",Si.lineHeight,"1.6"),Nn=be.extend("--ft-typography-overline-text-transform","",Si.textTransform,"uppercase"),Cn={fontFamily:be.extend("--ft-typography-button-font-family","",wi),fontSize:be.extend("--ft-typography-button-font-size","",Si.fontSize,"14px"),fontWeight:be.extend("--ft-typography-button-font-weight","",Si.fontWeight,"600"),letterSpacing:be.extend("--ft-typography-button-letter-spacing","",Si.letterSpacing,"1.246px"),lineHeight:be.extend("--ft-typography-button-line-height","",Si.lineHeight,"1.15"),textTransform:be.extend("--ft-typography-button-text-transform","",Si.textTransform,"uppercase")},En=bt`
|
|
276
|
+
.ft-typography--title {
|
|
277
|
+
font-family: ${Ni};
|
|
278
|
+
font-size: ${Ci};
|
|
279
|
+
font-weight: ${Ei};
|
|
280
|
+
letter-spacing: ${Ri};
|
|
281
|
+
line-height: ${$i};
|
|
282
|
+
text-transform: ${Ui};
|
|
283
|
+
}
|
|
284
|
+
`,Rn=bt`
|
|
285
|
+
.ft-typography--title-dense {
|
|
286
|
+
font-family: ${ki};
|
|
287
|
+
font-size: ${Ii};
|
|
288
|
+
font-weight: ${Li};
|
|
289
|
+
letter-spacing: ${Wi};
|
|
290
|
+
line-height: ${Fi};
|
|
291
|
+
text-transform: ${Mi};
|
|
292
|
+
}
|
|
293
|
+
`,$n=bt`
|
|
294
|
+
.ft-typography--subtitle1 {
|
|
295
|
+
font-family: ${ji};
|
|
296
|
+
font-size: ${Ki};
|
|
297
|
+
font-weight: ${Ai};
|
|
298
|
+
letter-spacing: ${Pi};
|
|
299
|
+
line-height: ${Bi};
|
|
300
|
+
text-transform: ${Zi};
|
|
301
|
+
}
|
|
302
|
+
`,Un=bt`
|
|
303
|
+
.ft-typography--subtitle2 {
|
|
304
|
+
font-family: ${zi};
|
|
305
|
+
font-size: ${Di};
|
|
306
|
+
font-weight: ${Ti};
|
|
307
|
+
letter-spacing: ${Hi};
|
|
308
|
+
line-height: ${_i};
|
|
309
|
+
text-transform: ${Gi};
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
`,kn=bt`
|
|
313
|
+
.ft-typography--body1 {
|
|
314
|
+
font-family: ${Vi};
|
|
315
|
+
font-size: ${qi};
|
|
316
|
+
font-weight: ${Yi};
|
|
317
|
+
letter-spacing: ${Ji};
|
|
318
|
+
line-height: ${Xi};
|
|
319
|
+
text-transform: ${Qi};
|
|
320
|
+
}
|
|
321
|
+
`,In=bt`
|
|
322
|
+
.ft-typography--body2 {
|
|
323
|
+
font-family: ${tn};
|
|
324
|
+
font-size: ${en};
|
|
325
|
+
font-weight: ${on};
|
|
326
|
+
letter-spacing: ${rn};
|
|
327
|
+
line-height: ${nn};
|
|
328
|
+
text-transform: ${an};
|
|
329
|
+
}
|
|
330
|
+
`,Ln=bt`
|
|
331
|
+
.ft-typography--caption {
|
|
332
|
+
font-family: ${sn};
|
|
333
|
+
font-size: ${cn};
|
|
334
|
+
font-weight: ${ln};
|
|
335
|
+
letter-spacing: ${fn};
|
|
336
|
+
line-height: ${pn};
|
|
337
|
+
text-transform: ${un};
|
|
338
|
+
}
|
|
339
|
+
`,Wn=bt`
|
|
340
|
+
.ft-typography--breadcrumb {
|
|
341
|
+
font-family: ${hn};
|
|
342
|
+
font-size: ${dn};
|
|
343
|
+
font-weight: ${yn};
|
|
344
|
+
letter-spacing: ${bn};
|
|
345
|
+
line-height: ${gn};
|
|
346
|
+
text-transform: ${mn};
|
|
347
|
+
}
|
|
348
|
+
`,Fn=bt`
|
|
349
|
+
.ft-typography--overline {
|
|
350
|
+
font-family: ${vn};
|
|
351
|
+
font-size: ${xn};
|
|
352
|
+
font-weight: ${On};
|
|
353
|
+
letter-spacing: ${wn};
|
|
354
|
+
line-height: ${Sn};
|
|
355
|
+
text-transform: ${Nn};
|
|
356
|
+
}
|
|
357
|
+
`,Mn=bt`
|
|
358
|
+
.ft-typography--button {
|
|
359
|
+
font-family: ${Cn.fontFamily};
|
|
360
|
+
font-size: ${Cn.fontSize};
|
|
361
|
+
font-weight: ${Cn.fontWeight};
|
|
362
|
+
letter-spacing: ${Cn.letterSpacing};
|
|
363
|
+
line-height: ${Cn.lineHeight};
|
|
364
|
+
text-transform: ${Cn.textTransform};
|
|
365
|
+
}
|
|
366
|
+
`,jn=bt`
|
|
367
|
+
.ft-typography {
|
|
368
|
+
vertical-align: inherit;
|
|
369
|
+
}
|
|
370
|
+
`,Kn=[Object.keys(ve).map((t=>function(t){const e=ve[t];return bt`
|
|
371
|
+
.ft-typography--${yt(t)} {
|
|
372
|
+
font-family: ${e.fontFamily};
|
|
373
|
+
font-size: ${e.fontSize};
|
|
374
|
+
font-weight: ${e.fontWeight};
|
|
375
|
+
letter-spacing: ${e.letterSpacing};
|
|
376
|
+
line-height: ${e.lineHeight};
|
|
377
|
+
text-transform: ${e.textCase};
|
|
378
|
+
}
|
|
379
|
+
`}(t)))],An={color:be.extend("--ft-loader-color","",Pr.colorPrimary),size:be.create("--ft-loader-size","","SIZE","80px")},Pn=bt`
|
|
380
|
+
:host {
|
|
381
|
+
line-height: 0;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.ft-loader {
|
|
385
|
+
display: inline-block;
|
|
386
|
+
position: relative;
|
|
387
|
+
|
|
388
|
+
width: ${An.size};
|
|
389
|
+
height: ${An.size};
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.ft-loader div {
|
|
393
|
+
position: absolute;
|
|
394
|
+
top: 37.5%;
|
|
395
|
+
width: 25%;
|
|
396
|
+
height: 25%;
|
|
397
|
+
border-radius: 50%;
|
|
398
|
+
background: ${An.color};
|
|
399
|
+
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.ft-loader div:nth-child(1) {
|
|
403
|
+
left: 2.5%;
|
|
404
|
+
animation: appear 0.6s infinite;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
.ft-loader div:nth-child(2) {
|
|
408
|
+
left: 2.5%;
|
|
409
|
+
animation: move 0.6s infinite;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.ft-loader div:nth-child(3) {
|
|
413
|
+
left: 37.5%;
|
|
414
|
+
animation: move 0.6s infinite;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.ft-loader div:nth-child(4) {
|
|
418
|
+
left: 72.5%;
|
|
419
|
+
animation: disappear 0.6s infinite;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
@keyframes appear {
|
|
423
|
+
0% {
|
|
424
|
+
transform: scale(0);
|
|
425
|
+
}
|
|
426
|
+
100% {
|
|
427
|
+
transform: scale(1);
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
@keyframes disappear {
|
|
432
|
+
0% {
|
|
433
|
+
transform: scale(1);
|
|
434
|
+
}
|
|
435
|
+
100% {
|
|
436
|
+
transform: scale(0);
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
@keyframes move {
|
|
441
|
+
0% {
|
|
442
|
+
transform: translate(0, 0);
|
|
443
|
+
}
|
|
444
|
+
100% {
|
|
445
|
+
transform: translate(calc(0.35 * ${An.size}), 0);
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
`,Bn={size:be.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:be.extend("--ft-icon-fluid-topics-font-family","",be.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:be.extend("--ft-icon-file-format-font-family","",be.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:be.extend("--ft-icon-material-font-family","",be.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:be.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Zn=bt`
|
|
449
|
+
:host, i.ft-icon {
|
|
450
|
+
display: inline-flex;
|
|
451
|
+
align-items: center;
|
|
452
|
+
flex-shrink: 0;
|
|
453
|
+
flex-grow: 0;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
:host {
|
|
457
|
+
width: ${Bn.size};
|
|
458
|
+
height: ${Bn.size};
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
i.ft-icon {
|
|
462
|
+
width: 100%;
|
|
463
|
+
height: 100%;
|
|
464
|
+
font-size: ${Bn.size};
|
|
465
|
+
line-height: 1;
|
|
466
|
+
font-weight: normal;
|
|
467
|
+
text-transform: none;
|
|
468
|
+
font-style: normal;
|
|
469
|
+
font-variant: normal;
|
|
470
|
+
speak: none;
|
|
471
|
+
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
472
|
+
text-rendering: auto;
|
|
473
|
+
-webkit-font-smoothing: antialiased;
|
|
474
|
+
-moz-osx-font-smoothing: grayscale;
|
|
475
|
+
vertical-align: ${Bn.verticalAlign};
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
i.ft-icon.ft-icon--fluid-topics {
|
|
479
|
+
font-family: ${Bn.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
480
|
+
|
|
481
|
+
/* Ugly fix because font is broken */
|
|
482
|
+
font-size: calc(0.75 * ${Bn.size});
|
|
483
|
+
line-height: ${Bn.size};
|
|
484
|
+
position: relative;
|
|
485
|
+
top: -4%;
|
|
486
|
+
justify-content: center;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
.ft-icon--file-format {
|
|
490
|
+
font-family: ${Bn.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.ft-icon--material {
|
|
494
|
+
font-family: ${Bn.materialFontFamily}, "Material Icons", sans-serif;
|
|
495
|
+
}
|
|
496
|
+
`,zn=be.extend("--ft-button-color","",Pr.colorPrimary),Dn={backgroundColor:be.extend("--ft-button-background-color","",Pr.colorSurface),borderRadius:be.extend("--ft-button-border-radius","",Pr.borderRadiusL),color:zn,fontSize:be.extend("--ft-button-font-size","",Cn.fontSize),iconSize:be.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:be.extend("--ft-button-ripple-color","",zn),verticalPadding:be.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:be.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:be.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:be.external(Pr.colorOpacityDisabled,"Design system")},Tn=be.extend("--ft-button-primary-color","",be.extend("--ft-button-color","",Pr.colorOnPrimary)),Hn={backgroundColor:be.extend("--ft-button-primary-background-color","",be.extend("--ft-button-background-color","",Pr.colorPrimary)),color:Tn,rippleColor:be.extend("--ft-button-primary-ripple-color","",Tn)},_n=be.extend("--ft-button-dense-border-radius","",be.extend("--ft-button-border-radius","",Pr.borderRadiusM)),Gn=be.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Vn=be.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),qn=be.create("--ft-button-dense-icon-padding","","SIZE","4px"),Yn=[bt`
|
|
497
|
+
:host {
|
|
498
|
+
display: inline-block;
|
|
499
|
+
max-width: 100%;
|
|
500
|
+
pointer-events: none;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
button {
|
|
504
|
+
box-shadow: 0px 0px 0px transparent;
|
|
505
|
+
border: 0px solid transparent;
|
|
506
|
+
text-shadow: 0px 0px 0px transparent;
|
|
507
|
+
font-size: ${Dn.fontSize};
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
button:hover {
|
|
511
|
+
box-shadow: 0px 0px 0px transparent;
|
|
512
|
+
border: 0px solid transparent;
|
|
513
|
+
text-shadow: 0px 0px 0px transparent;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
button:active {
|
|
517
|
+
outline: none;
|
|
518
|
+
border: none;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
button:focus {
|
|
522
|
+
outline: 0;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
.ft-button {
|
|
526
|
+
position: relative;
|
|
527
|
+
display: flex;
|
|
528
|
+
justify-content: center;
|
|
529
|
+
align-items: center;
|
|
530
|
+
width: 100%;
|
|
531
|
+
overflow: hidden;
|
|
532
|
+
box-sizing: border-box;
|
|
533
|
+
border: none;
|
|
534
|
+
pointer-events: auto;
|
|
535
|
+
|
|
536
|
+
--ft-button-internal-line-height: max(calc(${Dn.fontSize} + 2px), ${Dn.iconSize});
|
|
537
|
+
--ft-button-internal-color: ${Dn.color};
|
|
538
|
+
${ge(Bn.size,Dn.iconSize)};
|
|
539
|
+
${ge(hi.color,Dn.rippleColor)};
|
|
540
|
+
|
|
541
|
+
border-radius: ${Dn.borderRadius};
|
|
542
|
+
padding: ${Dn.verticalPadding} ${Dn.horizontalPadding};
|
|
543
|
+
background-color: ${Dn.backgroundColor};
|
|
544
|
+
color: var(--ft-button-internal-color);
|
|
545
|
+
-webkit-mask-image: radial-gradient(white, black);
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
.ft-button.ft-button--outlined {
|
|
549
|
+
border: 1px solid var(--ft-button-internal-color);
|
|
550
|
+
padding: calc(${Dn.verticalPadding} - 1px) calc(${Dn.horizontalPadding} - 1px);
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
.ft-button.ft-button--dense {
|
|
554
|
+
padding: ${Gn} ${Vn};
|
|
555
|
+
border-radius: ${_n};
|
|
556
|
+
gap: ${qn};
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
.ft-button.ft-button--dense.ft-button--outlined {
|
|
560
|
+
padding: calc(${Gn} - 1px) calc(${Vn} - 1px);
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
.ft-button:not([disabled]):hover {
|
|
564
|
+
cursor: pointer;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
.ft-button--round {
|
|
568
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Dn.verticalPadding});
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
.ft-button--round.ft-button--dense {
|
|
572
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Gn});
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
.ft-button[disabled] {
|
|
576
|
+
filter: grayscale(1);
|
|
577
|
+
opacity: ${Dn.opacityDisabled};
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
.ft-button.ft-button--primary {
|
|
581
|
+
background-color: ${Hn.backgroundColor};
|
|
582
|
+
--ft-button-internal-color: ${Hn.color};
|
|
583
|
+
${ge(hi.color,Hn.rippleColor)};
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
.ft-button:focus {
|
|
587
|
+
outline: none;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
.ft-button--label {
|
|
591
|
+
position: relative;
|
|
592
|
+
overflow: hidden;
|
|
593
|
+
white-space: nowrap;
|
|
594
|
+
text-overflow: ellipsis;
|
|
595
|
+
display: block;
|
|
596
|
+
margin: 0 ${Dn.iconPadding};
|
|
597
|
+
${ge(Cn.fontSize,"1em")};
|
|
598
|
+
${ge(Cn.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
.ft-button--dense .ft-button--label {
|
|
602
|
+
margin: 0 ${qn};
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
.ft-button--label[hidden] {
|
|
606
|
+
display: none;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
ft-icon {
|
|
610
|
+
flex-shrink: 0;
|
|
611
|
+
position: relative;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
.ft-button--label[hidden] + ft-icon {
|
|
615
|
+
margin: 0 calc(${Dn.horizontalPadding} * -1);
|
|
616
|
+
padding: 0 ${Dn.verticalPadding};
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
620
|
+
margin: 0 calc(${Vn} * -1);
|
|
621
|
+
padding: 0 ${Gn};
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
625
|
+
.ft-button:not(.ft-button--trailing-icon) ft-loader {
|
|
626
|
+
order: -1;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
ft-loader {
|
|
630
|
+
${ge(An.size,Dn.iconSize)};
|
|
631
|
+
${ge(An.color,"var(--ft-button-internal-color)")};
|
|
632
|
+
}
|
|
633
|
+
`,Vr],Jn=1,Xn=2,Qn=t=>(...e)=>({_$litDirective$:t,values:e});let ta=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
|
|
634
|
+
/**
|
|
635
|
+
* @license
|
|
636
|
+
* Copyright 2018 Google LLC
|
|
637
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
638
|
+
*/const ea=Qn(class extends ta{constructor(t){if(super(t),t.type!==Jn||"class"!==t.name||t.strings?.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]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(e)}const o=t.element.classList;for(const t of this.it)t in e||(o.remove(t),this.it.delete(t));for(const t in e){const r=!!e[t];r===this.it.has(t)||this.st?.has(t)||(r?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return Y}});var oa=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ra extends _r{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.originX=0,this.originY=0,this.debouncer=new Mr(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new Mr(10),this.moveRipple=t=>{var e,o;let{x:r,y:i}=this.getCoordinates(t),n=null!==(o=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==o?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=r?r-n.x:n.width/2),this.originY=Math.round(null!=i?i-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!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 Xt`
|
|
639
|
+
<style>
|
|
640
|
+
.ft-ripple .ft-ripple--effect {
|
|
641
|
+
left: ${this.originX}px;
|
|
642
|
+
top: ${this.originY}px;
|
|
643
|
+
}
|
|
644
|
+
</style>
|
|
645
|
+
<div class="${ea(t)}">
|
|
646
|
+
<div class="ft-ripple--background"></div>
|
|
647
|
+
<div class="ft-ripple--effect"></div>
|
|
648
|
+
</div>
|
|
649
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(o=this.target)||void 0===o||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const o=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;o&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:o)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},o=e("mouseup","contextmenu"),r=e("touchend","touchcancel"),i=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)},n={passive:!0};t.addEventListener("mouseover",this.startHover,n),t.addEventListener("mousemove",this.moveRipple,n),t.addEventListener("mouseleave",this.endHover,n),t.addEventListener("mousedown",o,n),t.addEventListener("touchstart",r,n),t.addEventListener("touchmove",this.moveRipple,n),t.addEventListener("keydown",i,n),t.addEventListener("focus",this.startFocus,n),t.addEventListener("blur",this.endFocus,n),t.addEventListener("focusin",this.startFocus,n),t.addEventListener("focusout",this.endFocus,n),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,n),t.removeEventListener("mousemove",this.moveRipple,n),t.removeEventListener("mouseleave",this.endHover,n),t.removeEventListener("mousedown",o,n),t.removeEventListener("touchstart",r,n),t.removeEventListener("touchmove",this.moveRipple,n),t.removeEventListener("keydown",i,n),t.removeEventListener("focus",this.startFocus,n),t.removeEventListener("blur",this.endFocus,n),t.removeEventListener("focusin",this.startFocus,n),t.removeEventListener("focusout",this.endFocus,n),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,o=t;let r,i;return null!=e.x?({x:r,y:i}=e):null!=o.touches&&(r=o.touches[0].clientX,i=o.touches[0].clientY),{x:r,y:i}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}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.endRipple()}}ra.elementDefinitions={},ra.styles=xi,oa([N({type:Boolean})],ra.prototype,"primary",void 0),oa([N({type:Boolean})],ra.prototype,"secondary",void 0),oa([N({type:Boolean})],ra.prototype,"unbounded",void 0),oa([N({type:Boolean})],ra.prototype,"activated",void 0),oa([N({type:Boolean})],ra.prototype,"selected",void 0),oa([N({type:Boolean})],ra.prototype,"disabled",void 0),oa([C()],ra.prototype,"hovered",void 0),oa([C()],ra.prototype,"focused",void 0),oa([C()],ra.prototype,"pressed",void 0),oa([C()],ra.prototype,"rippling",void 0),oa([C()],ra.prototype,"originX",void 0),oa([C()],ra.prototype,"originY",void 0),oa([$(".ft-ripple")],ra.prototype,"ripple",void 0),oa([$(".ft-ripple--effect")],ra.prototype,"rippleEffect",void 0),Kr("ft-ripple")(ra);
|
|
650
|
+
/**
|
|
651
|
+
* @license
|
|
652
|
+
* Copyright 2020 Google LLC
|
|
653
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
654
|
+
*/
|
|
655
|
+
const ia=Symbol.for(""),na=t=>{if(t?.r===ia)return t?._$litStatic$},aa=t=>({_$litStatic$:t,r:ia}),sa=new Map,ca=(t=>(e,...o)=>{const r=o.length;let i,n;const a=[],s=[];let c,l=0,f=!1;for(;l<r;){for(c=e[l];l<r&&void 0!==(n=o[l],i=na(n));)c+=i+e[++l],f=!0;l!==r&&s.push(n),a.push(c),l++}if(l===r&&a.push(e[r]),f){const t=a.join("$$lit$$");void 0===(e=sa.get(t))&&(a.raw=a,sa.set(t,e=a)),o=s}return t(e,...o)})(q);var la;!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",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(la||(la={}));var fa=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class pa extends _r{constructor(){super(...arguments),this.variant=la.body1}render(){return this.element?ca`
|
|
656
|
+
<${aa(this.element)}
|
|
657
|
+
class="ft-typography ft-typography--${this.variant}">
|
|
658
|
+
<slot></slot>
|
|
659
|
+
</${aa(this.element)}>
|
|
660
|
+
`:ca`
|
|
661
|
+
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
662
|
+
`}}pa.styles=[En,Rn,$n,Un,kn,In,Ln,Wn,Fn,Mn,jn,...Kn],fa([N()],pa.prototype,"element",void 0),fa([N()],pa.prototype,"variant",void 0),Kr("ft-typography")(pa);const ua=be.create("--ft-tooltip-distance","","SIZE","4px"),ha=be.create("--ft-tooltip-color","","COLOR","#FFFFFF"),da=be.create("--ft-tooltip-background-color","","COLOR","#666666"),ya=be.create("--ft-tooltip-z-index","","NUMBER","100"),ba=be.external(Pr.borderRadiusS,"Design system"),ga=be.create("--ft-tooltip-max-width","","SIZE","150px"),ma=bt`
|
|
663
|
+
.ft-tooltip--container {
|
|
664
|
+
display: block;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
.ft-tooltip--inline {
|
|
668
|
+
display: inline-block;
|
|
669
|
+
max-width: 100%;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
.ft-tooltip {
|
|
673
|
+
position: fixed;
|
|
674
|
+
box-sizing: border-box;
|
|
675
|
+
overflow: hidden;
|
|
676
|
+
width: max-content;
|
|
677
|
+
max-width: ${ga};
|
|
678
|
+
text-align: center;
|
|
679
|
+
padding: ${ua};
|
|
680
|
+
z-index: ${ya};
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
.ft-tooltip--content {
|
|
684
|
+
padding: 4px 8px;
|
|
685
|
+
border-radius: ${ba};
|
|
686
|
+
background-color: ${da};
|
|
687
|
+
color: ${ha};
|
|
688
|
+
position: relative;
|
|
689
|
+
word-break: break-word;
|
|
690
|
+
}
|
|
691
|
+
`,va=["start","end"],xa=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+va[0],e+"-"+va[1])),[]),Oa=Math.min,wa=Math.max,Sa=Math.round,Na=t=>({x:t,y:t}),Ca={left:"right",right:"left",bottom:"top",top:"bottom"},Ea={start:"end",end:"start"};function Ra(t,e,o){return wa(t,Oa(e,o))}function $a(t,e){return"function"==typeof t?t(e):t}function Ua(t){return t.split("-")[0]}function ka(t){return t.split("-")[1]}function Ia(t){return"x"===t?"y":"x"}function La(t){return"y"===t?"height":"width"}function Wa(t){return["top","bottom"].includes(Ua(t))?"y":"x"}function Fa(t){return Ia(Wa(t))}function Ma(t){return t.replace(/left|right|bottom|top/g,(t=>Ca[t]))}function ja(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Ka(t,e,o){let{reference:r,floating:i}=t;const n=Wa(e),a=Fa(e),s=La(a),c=Ua(e),l="y"===n,f=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,u=r[s]/2-i[s]/2;let h;switch(c){case"top":h={x:f,y:r.y-i.height};break;case"bottom":h={x:f,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:p};break;case"left":h={x:r.x-i.width,y:p};break;default:h={x:r.x,y:r.y}}switch(ka(e)){case"start":h[a]-=u*(o&&l?-1:1);break;case"end":h[a]+=u*(o&&l?-1:1)}return h}async function Aa(t,e){var o;void 0===e&&(e={});const{x:r,y:i,platform:n,rects:a,elements:s,strategy:c}=t,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:u=!1,padding:h=0}=$a(e,t),d=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(h),y=s[u?"floating"===p?"reference":"floating":p],b=ja(await n.getClippingRect({element:null==(o=await(null==n.isElement?void 0:n.isElement(y)))||o?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:l,rootBoundary:f,strategy:c})),g="floating"===p?{...a.floating,x:r,y:i}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),v=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},x=ja(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:g,offsetParent:m,strategy:c}):g);return{top:(b.top-x.top+d.top)/v.y,bottom:(x.bottom-b.bottom+d.bottom)/v.y,left:(b.left-x.left+d.left)/v.x,right:(x.right-b.right+d.right)/v.x}}function Pa(t,e,o){return(t?[...o.filter((e=>ka(e)===t)),...o.filter((e=>ka(e)!==t))]:o.filter((t=>Ua(t)===t))).filter((o=>!t||(ka(o)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>Ea[t]))}(o)!==o)))}const Ba=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,r,i;const{rects:n,middlewareData:a,placement:s,platform:c,elements:l}=e,{crossAxis:f=!1,alignment:p,allowedPlacements:u=xa,autoAlignment:h=!0,...d}=$a(t,e),y=void 0!==p||u===xa?Pa(p||null,h,u):u,b=await Aa(e,d),g=(null==(o=a.autoPlacement)?void 0:o.index)||0,m=y[g];if(null==m)return{};const v=function(t,e,o){void 0===o&&(o=!1);const r=ka(t),i=Fa(t),n=La(i);let a="x"===i?r===(o?"end":"start")?"right":"left":"start"===r?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=Ma(a)),[a,Ma(a)]}(m,n,await(null==c.isRTL?void 0:c.isRTL(l.floating)));if(s!==m)return{reset:{placement:y[0]}};const x=[b[Ua(m)],b[v[0]],b[v[1]]],O=[...(null==(r=a.autoPlacement)?void 0:r.overflows)||[],{placement:m,overflows:x}],w=y[g+1];if(w)return{data:{index:g+1,overflows:O},reset:{placement:w}};const S=O.map((t=>{const e=ka(t.placement);return[t.placement,e&&f?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),N=S.filter((t=>t[2].slice(0,ka(t[0])?2:3).every((t=>t<=0)))),C=(null==(i=N[0])?void 0:i[0])||S[0][0];return C!==s?{data:{index:g+1,overflows:O},reset:{placement:C}}:{}}}};function Za(t){return Ta(t)?(t.nodeName||"").toLowerCase():"#document"}function za(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Da(t){var e;return null==(e=(Ta(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Ta(t){return t instanceof Node||t instanceof za(t).Node}function Ha(t){return t instanceof Element||t instanceof za(t).Element}function _a(t){return t instanceof HTMLElement||t instanceof za(t).HTMLElement}function Ga(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof za(t).ShadowRoot)}function Va(t){const{overflow:e,overflowX:o,overflowY:r,display:i}=Qa(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+o)&&!["inline","contents"].includes(i)}function qa(t){return["table","td","th"].includes(Za(t))}function Ya(t){const e=Ja(),o=Qa(t);return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function Ja(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Xa(t){return["html","body","#document"].includes(Za(t))}function Qa(t){return za(t).getComputedStyle(t)}function ts(t){return Ha(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function es(t){if("html"===Za(t))return t;const e=t.assignedSlot||t.parentNode||Ga(t)&&t.host||Da(t);return Ga(e)?e.host:e}function os(t){const e=es(t);return Xa(e)?t.ownerDocument?t.ownerDocument.body:t.body:_a(e)&&Va(e)?e:os(e)}function rs(t,e,o){var r;void 0===e&&(e=[]),void 0===o&&(o=!0);const i=os(t),n=i===(null==(r=t.ownerDocument)?void 0:r.body),a=za(i);return n?e.concat(a,a.visualViewport||[],Va(i)?i:[],a.frameElement&&o?rs(a.frameElement):[]):e.concat(i,rs(i,[],o))}function is(t){const e=Qa(t);let o=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=_a(t),n=i?t.offsetWidth:o,a=i?t.offsetHeight:r,s=Sa(o)!==n||Sa(r)!==a;return s&&(o=n,r=a),{width:o,height:r,$:s}}function ns(t){return Ha(t)?t:t.contextElement}function as(t){const e=ns(t);if(!_a(e))return Na(1);const o=e.getBoundingClientRect(),{width:r,height:i,$:n}=is(e);let a=(n?Sa(o.width):o.width)/r,s=(n?Sa(o.height):o.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const ss=Na(0);function cs(t){const e=za(t);return Ja()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:ss}function ls(t,e,o,r){void 0===e&&(e=!1),void 0===o&&(o=!1);const i=t.getBoundingClientRect(),n=ns(t);let a=Na(1);e&&(r?Ha(r)&&(a=as(r)):a=as(t));const s=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==za(t))&&e}(n,o,r)?cs(n):Na(0);let c=(i.left+s.x)/a.x,l=(i.top+s.y)/a.y,f=i.width/a.x,p=i.height/a.y;if(n){const t=za(n),e=r&&Ha(r)?za(r):r;let o=t.frameElement;for(;o&&r&&e!==t;){const t=as(o),e=o.getBoundingClientRect(),r=Qa(o),i=e.left+(o.clientLeft+parseFloat(r.paddingLeft))*t.x,n=e.top+(o.clientTop+parseFloat(r.paddingTop))*t.y;c*=t.x,l*=t.y,f*=t.x,p*=t.y,c+=i,l+=n,o=za(o).frameElement}}return ja({width:f,height:p,x:c,y:l})}function fs(t){return ls(Da(t)).left+ts(t).scrollLeft}function ps(t,e,o){let r;if("viewport"===e)r=function(t,e){const o=za(t),r=Da(t),i=o.visualViewport;let n=r.clientWidth,a=r.clientHeight,s=0,c=0;if(i){n=i.width,a=i.height;const t=Ja();(!t||t&&"fixed"===e)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:n,height:a,x:s,y:c}}(t,o);else if("document"===e)r=function(t){const e=Da(t),o=ts(t),r=t.ownerDocument.body,i=wa(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),n=wa(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let a=-o.scrollLeft+fs(t);const s=-o.scrollTop;return"rtl"===Qa(r).direction&&(a+=wa(e.clientWidth,r.clientWidth)-i),{width:i,height:n,x:a,y:s}}(Da(t));else if(Ha(e))r=function(t,e){const o=ls(t,!0,"fixed"===e),r=o.top+t.clientTop,i=o.left+t.clientLeft,n=_a(t)?as(t):Na(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:i*n.x,y:r*n.y}}(e,o);else{const o=cs(t);r={...e,x:e.x-o.x,y:e.y-o.y}}return ja(r)}function us(t,e){const o=es(t);return!(o===e||!Ha(o)||Xa(o))&&("fixed"===Qa(o).position||us(o,e))}function hs(t,e,o){const r=_a(e),i=Da(e),n="fixed"===o,a=ls(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const c=Na(0);if(r||!r&&!n)if(("body"!==Za(e)||Va(i))&&(s=ts(e)),r){const t=ls(e,!0,n,e);c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}else i&&(c.x=fs(i));return{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function ds(t,e){return _a(t)&&"fixed"!==Qa(t).position?e?e(t):t.offsetParent:null}function ys(t,e){const o=za(t);if(!_a(t))return o;let r=ds(t,e);for(;r&&qa(r)&&"static"===Qa(r).position;)r=ds(r,e);return r&&("html"===Za(r)||"body"===Za(r)&&"static"===Qa(r).position&&!Ya(r))?o:r||function(t){let e=es(t);for(;_a(e)&&!Xa(e);){if(Ya(e))return e;e=es(e)}return null}(t)||o}const bs={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:r}=t;const i=_a(o),n=Da(o);if(o===n)return e;let a={scrollLeft:0,scrollTop:0},s=Na(1);const c=Na(0);if((i||!i&&"fixed"!==r)&&(("body"!==Za(o)||Va(n))&&(a=ts(o)),_a(o))){const t=ls(o);s=as(o),c.x=t.x+o.clientLeft,c.y=t.y+o.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+c.x,y:e.y*s.y-a.scrollTop*s.y+c.y}},getDocumentElement:Da,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:r,strategy:i}=t;const n="clippingAncestors"===o?function(t,e){const o=e.get(t);if(o)return o;let r=rs(t,[],!1).filter((t=>Ha(t)&&"body"!==Za(t))),i=null;const n="fixed"===Qa(t).position;let a=n?es(t):t;for(;Ha(a)&&!Xa(a);){const e=Qa(a),o=Ya(a);o||"fixed"!==e.position||(i=null),(n?!o&&!i:!o&&"static"===e.position&&i&&["absolute","fixed"].includes(i.position)||Va(a)&&!o&&us(t,a))?r=r.filter((t=>t!==a)):i=e,a=es(a)}return e.set(t,r),r}(e,this._c):[].concat(o),a=[...n,r],s=a[0],c=a.reduce(((t,o)=>{const r=ps(e,o,i);return t.top=wa(r.top,t.top),t.right=Oa(r.right,t.right),t.bottom=Oa(r.bottom,t.bottom),t.left=wa(r.left,t.left),t}),ps(e,s,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:ys,getElementRects:async function(t){let{reference:e,floating:o,strategy:r}=t;const i=this.getOffsetParent||ys,n=this.getDimensions;return{reference:hs(e,await i(o),r),floating:{x:0,y:0,...await n(o)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return is(t)},getScale:as,isElement:Ha,isRTL:function(t){return"rtl"===Qa(t).direction}},gs=(t,e,o)=>{const r=new Map,i={platform:bs,...o},n={...i.platform,_c:r};return(async(t,e,o)=>{const{placement:r="bottom",strategy:i="absolute",middleware:n=[],platform:a}=o,s=n.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(e));let l=await a.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:p}=Ka(l,r,c),u=r,h={},d=0;for(let o=0;o<s.length;o++){const{name:n,fn:y}=s[o],{x:b,y:g,data:m,reset:v}=await y({x:f,y:p,initialPlacement:r,placement:u,strategy:i,middlewareData:h,rects:l,platform:a,elements:{reference:t,floating:e}});f=null!=b?b:f,p=null!=g?g:p,h={...h,[n]:{...h[n],...m}},v&&d<=50&&(d++,"object"==typeof v&&(v.placement&&(u=v.placement),v.rects&&(l=!0===v.rects?await a.getElementRects({reference:t,floating:e,strategy:i}):v.rects),({x:f,y:p}=Ka(l,u,c))),o=-1)}return{x:f,y:p,placement:u,strategy:i,middlewareData:h}})(t,e,{...i,platform:n})};function ms(t){return function(t){for(let e=t;e;e=vs(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=vs(t);e;e=vs(e)){if(!(e instanceof Element))continue;const t=getComputedStyle(e);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return e;if("BODY"===e.tagName)return e}}return null}(t)}function vs(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}var xs=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Os extends _r{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new Mr,this.revealDebouncer=new Mr}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Xt`
|
|
692
|
+
<div part="container"
|
|
693
|
+
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
694
|
+
@mouseenter=${this.onHover}
|
|
695
|
+
@mouseleave=${this.onOut}
|
|
696
|
+
@focusin=${this.onHover}
|
|
697
|
+
@focusout=${this.onOut}
|
|
698
|
+
@touchstart=${this.onTouch}>
|
|
699
|
+
<slot part="slot" @click=${this.onClick}></slot>
|
|
700
|
+
<div part="tooltip" role="tooltip" inert
|
|
701
|
+
class="ft-tooltip ft-tooltip--${this.validPosition}"
|
|
702
|
+
?hidden=${!this.visible}>
|
|
703
|
+
<div part="tooltip-content" class="ft-tooltip--content">
|
|
704
|
+
<slot name="text"></slot>
|
|
705
|
+
<ft-typography variant="caption" ?hidden=${!this.text}>${this.text}</ft-typography>
|
|
706
|
+
</div>
|
|
707
|
+
</div>
|
|
708
|
+
</div>
|
|
709
|
+
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,null!=t&&await 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.validPosition){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(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",gs(this.slottedElement,this.tooltip,{platform:{...bs,getOffsetParent:t=>bs.getOffsetParent(t,ms)},middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:r,placement:i}=e,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...c}=$a(t,e),l={x:o,y:r},f=await Aa(e,c),p=Wa(Ua(i)),u=Ia(p);let h=l[u],d=l[p];if(n){const t="y"===u?"bottom":"right";h=Ra(h+f["y"===u?"top":"left"],h,h-f[t])}if(a){const t="y"===p?"bottom":"right";d=Ra(d+f["y"===p?"top":"left"],d,d-f[t])}const y=s.fn({...e,[u]:h,[p]:d});return{...y,data:{x:y.x-o,y:y.y-r}}}}),Ba({allowedPlacements:[this.position]})]}).then((({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}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())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}Os.elementDefinitions={"ft-typography":pa},Os.styles=ma,xs([N()],Os.prototype,"text",void 0),xs([N({type:Boolean})],Os.prototype,"manual",void 0),xs([N({type:Boolean})],Os.prototype,"inline",void 0),xs([N({type:Number})],Os.prototype,"delay",void 0),xs([N()],Os.prototype,"position",void 0),xs([function(t){return(e,o)=>{const{slot:r}=t??{},i="slot"+(r?`[name=${r}]`:":not([name])");return R(0,0,{get(){const e=this.renderRoot?.querySelector(i);return e?.assignedNodes(t)??[]}})}}()],Os.prototype,"slotNodes",void 0),xs([$(".ft-tooltip--container")],Os.prototype,"container",void 0),xs([$(".ft-tooltip")],Os.prototype,"tooltip",void 0),xs([$(".ft-tooltip--content")],Os.prototype,"tooltipContent",void 0),xs([C()],Os.prototype,"visible",void 0),xs([E({passive:!0})],Os.prototype,"onTouch",null),xs([E({passive:!0})],Os.prototype,"onHover",null),xs([E({passive:!0})],Os.prototype,"onOut",null),xs([E({passive:!0})],Os.prototype,"onClick",null),Kr("ft-tooltip")(Os);
|
|
710
|
+
/**
|
|
711
|
+
* @license
|
|
712
|
+
* Copyright 2017 Google LLC
|
|
713
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
714
|
+
*/
|
|
715
|
+
class ws extends ta{constructor(t){if(super(t),this.et=J,t.type!==Xn)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===J||null==t)return this.vt=void 0,this.et=t;if(t===Y)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}ws.directiveName="unsafeHTML",ws.resultType=1;const Ss=Qn(ws);var Ns,Cs,Es;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK="",t.CLONE=""}(Ns||(Ns={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(Cs||(Cs={})),new Map([...["abw"].map((t=>[t,Cs.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,Cs.AUDIO])),...["avi"].map((t=>[t,Cs.AVI])),...["chm","xhs"].map((t=>[t,Cs.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,Cs.CODE])),...["csv"].map((t=>[t,Cs.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Cs.DITA])),...["epub"].map((t=>[t,Cs.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Cs.EXCEL])),...["flac"].map((t=>[t,Cs.FLAC])),...["gif"].map((t=>[t,Cs.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Cs.GZIP])),...["html","htm","xhtml"].map((t=>[t,Cs.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,Cs.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Cs.JPEG])),...["json"].map((t=>[t,Cs.JSON])),...["m4a","m4p"].map((t=>[t,Cs.M4A])),...["mov","qt"].map((t=>[t,Cs.MOV])),...["mp3"].map((t=>[t,Cs.MP3])),...["mp4","m4v"].map((t=>[t,Cs.MP4])),...["ogg","oga"].map((t=>[t,Cs.OGG])),...["pdf","ps"].map((t=>[t,Cs.PDF])),...["png"].map((t=>[t,Cs.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Cs.POWERPOINT])),...["rar"].map((t=>[t,Cs.RAR])),...["stp"].map((t=>[t,Cs.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Cs.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,Cs.VIDEO])),...["wav"].map((t=>[t,Cs.WAV])),...["wma"].map((t=>[t,Cs.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Cs.WORD])),...["xml","xsl","rdf"].map((t=>[t,Cs.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Cs.YAML])),...["zip"].map((t=>[t,Cs.ZIP]))]),Cs.ABW,Cs.AUDIO,Cs.AVI,Cs.CHM,Cs.CODE,Cs.CSV,Cs.DITA,Cs.EPUB,Cs.EXCEL,Cs.FLAC,Cs.GIF,Cs.GZIP,Cs.HTML,Cs.IMAGE,Cs.JPEG,Cs.JSON,Cs.M4A,Cs.MOV,Cs.MP3,Cs.MP4,Cs.OGG,Cs.PDF,Cs.PNG,Cs.POWERPOINT,Cs.RAR,Cs.STP,Cs.TEXT,Cs.UNKNOWN,Cs.VIDEO,Cs.WAV,Cs.WMA,Cs.WORD,Cs.XML,Cs.YAML,Cs.ZIP,function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Es||(Es={}));var Rs=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class $s extends _r{constructor(){super(...arguments),this.resolvedIcon=te}render(){const t=this.variant&&Object.values(Es).includes(this.variant)?this.variant:Es.fluid_topics,e=t!==Es.material||!!this.value;return Xt`
|
|
716
|
+
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
717
|
+
${Ss(this.resolvedIcon)}
|
|
718
|
+
<slot ?hidden=${e}></slot>
|
|
719
|
+
</i>
|
|
720
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case Es.file_format:this.resolvedIcon=null!==(t=Cs[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Es.material:this.resolvedIcon=this.value||te;break;default:this.resolvedIcon=null!==(e=Ns[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}$s.elementDefinitions={},$s.styles=Zn,Rs([N()],$s.prototype,"variant",void 0),Rs([N()],$s.prototype,"value",void 0),Rs([C()],$s.prototype,"resolvedIcon",void 0),Rs([$("slot")],$s.prototype,"slottedContent",void 0),Kr("ft-icon")($s);class Us extends _r{render(){return Xt`
|
|
721
|
+
<div class="ft-loader">
|
|
722
|
+
<div></div>
|
|
723
|
+
<div></div>
|
|
724
|
+
<div></div>
|
|
725
|
+
<div></div>
|
|
726
|
+
</div>
|
|
727
|
+
`}}Us.styles=Pn,Kr("ft-loader")(Us);var ks=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Is extends(function(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[si].form}constructor(...t){super(t),this[si]=this.attachInternals(),this[si].role=e}setFormValue(t){this[si].setFormValue(t)}}}(_r,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(e=this.form)||void 0===e||e.requestSubmit())}}render(){return this.addTooltipIfNeeded(Xt`
|
|
728
|
+
<button part="button"
|
|
729
|
+
class="${ea(this.buttonClasses)}"
|
|
730
|
+
aria-label="${this.getLabel()}"
|
|
731
|
+
?disabled=${this.isDisabled()}>
|
|
732
|
+
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
733
|
+
<ft-typography part="label"
|
|
734
|
+
variant=${this.typographyVariant}
|
|
735
|
+
element="span"
|
|
736
|
+
class="ft-button--label ${pi?"ft-safari-ellipsis-fix":""}"
|
|
737
|
+
?hidden=${!this.hasTextContent()}>
|
|
738
|
+
<slot @slotchange=${this.onSlotchange}></slot>
|
|
739
|
+
</ft-typography>
|
|
740
|
+
${this.resolveIcon()}
|
|
741
|
+
</button>
|
|
742
|
+
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?Xt`
|
|
743
|
+
<ft-tooltip part="tooltip"
|
|
744
|
+
text="${this.getLabel()}"
|
|
745
|
+
position="${this.tooltipPosition}">
|
|
746
|
+
${t}
|
|
747
|
+
</ft-tooltip>
|
|
748
|
+
`:t}resolveIcon(){return this.loading?Xt`
|
|
749
|
+
<ft-loader part="loader icon"></ft-loader> `:this.icon?Xt`
|
|
750
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:te}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Is.elementDefinitions={"ft-ripple":ra,"ft-tooltip":Os,"ft-typography":pa,"ft-icon":$s,"ft-loader":Us},ks([N({type:String,reflect:!0})],Is.prototype,"role",void 0),ks([N()],Is.prototype,"type",void 0),ks([N({type:Boolean})],Is.prototype,"disabled",void 0),ks([N()],Is.prototype,"label",void 0),ks([N()],Is.prototype,"icon",void 0),ks([N()],Is.prototype,"iconVariant",void 0),ks([N({type:Boolean})],Is.prototype,"trailingIcon",void 0),ks([N({type:Boolean})],Is.prototype,"loading",void 0),ks([N()],Is.prototype,"tooltipPosition",void 0),ks([N({type:Boolean})],Is.prototype,"hideTooltip",void 0),ks([N({type:Boolean})],Is.prototype,"forceTooltip",void 0),ks([$(".ft-button")],Is.prototype,"button",void 0),ks([$(".ft-button--label slot")],Is.prototype,"slottedContent",void 0);var Ls=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ws extends Is{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"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-no-text-select":!0}}get typographyVariant(){return"button"}}Ws.styles=[qr,Yn],Ls([N({type:Boolean})],Ws.prototype,"primary",void 0),Ls([N({type:Boolean})],Ws.prototype,"outlined",void 0),Ls([N({type:Boolean})],Ws.prototype,"dense",void 0),Ls([N({type:Boolean})],Ws.prototype,"round",void 0);const Fs=[bt`
|
|
751
|
+
:host {
|
|
752
|
+
display: inline-block;
|
|
753
|
+
max-width: 100%;
|
|
754
|
+
pointer-events: none;
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
/** Remove default button styles **/
|
|
758
|
+
|
|
759
|
+
button {
|
|
760
|
+
box-shadow: 0 0 0 transparent;
|
|
761
|
+
border: 0 solid transparent;
|
|
762
|
+
text-shadow: 0 0 0 transparent;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
button:hover {
|
|
766
|
+
box-shadow: 0 0 0 transparent;
|
|
767
|
+
text-shadow: 0 0 0 transparent;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
button:active {
|
|
771
|
+
outline: none;
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
button:focus {
|
|
775
|
+
outline: 0;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
/** Base styles **/
|
|
779
|
+
|
|
780
|
+
.ft-button {
|
|
781
|
+
position: relative;
|
|
782
|
+
display: flex;
|
|
783
|
+
justify-content: center;
|
|
784
|
+
align-items: center;
|
|
785
|
+
width: 100%;
|
|
786
|
+
overflow: hidden;
|
|
787
|
+
box-sizing: border-box;
|
|
788
|
+
pointer-events: auto;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
.ft-button:not([disabled]):hover {
|
|
792
|
+
cursor: pointer;
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
.ft-button:focus {
|
|
796
|
+
outline: none;
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
.ft-button:focus-visible {
|
|
800
|
+
outline-color: ${Oe.focusFocusRingColor};
|
|
801
|
+
outline-style: solid;
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
ft-icon {
|
|
805
|
+
flex-shrink: 0;
|
|
806
|
+
position: relative;
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
810
|
+
.ft-button:not(.ft-button--trailing-icon) ft-loader {
|
|
811
|
+
order: -1;
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
.ft-button--label {
|
|
815
|
+
position: relative;
|
|
816
|
+
overflow: hidden;
|
|
817
|
+
white-space: nowrap;
|
|
818
|
+
text-overflow: ellipsis;
|
|
819
|
+
display: block;
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
.ft-button--label[hidden] {
|
|
823
|
+
display: none;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
/** Primary styles **/
|
|
827
|
+
|
|
828
|
+
.ft-button--primary {
|
|
829
|
+
${ge(An.color,Oe.primaryIconColor)};
|
|
830
|
+
|
|
831
|
+
${ge(hi.color,Oe.primaryStateLayerColor)};
|
|
832
|
+
${ge(hi.opacityContentOnSurfaceHover,Oe.primaryStateLayerOpacityHover)};
|
|
833
|
+
${ge(hi.opacityContentOnSurfaceFocused,Oe.primaryStateLayerOpacityFocus)};
|
|
834
|
+
${ge(hi.opacityContentOnSurfaceSelected,Oe.primaryStateLayerOpacityActive)};
|
|
835
|
+
${ge(hi.opacityContentOnSurfacePressed,Oe.primaryStateLayerOpacityActive)};
|
|
836
|
+
|
|
837
|
+
background-color: ${Oe.primaryBackgroundColor};
|
|
838
|
+
color: ${Oe.primaryColor};
|
|
839
|
+
border-style: none;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
.ft-button--primary[disabled] {
|
|
843
|
+
opacity: ${Oe.primaryComponentOpacityDisabled};
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
.ft-button--primary ft-icon {
|
|
847
|
+
color: ${Oe.primaryIconColor};
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
/** Secondary styles **/
|
|
851
|
+
|
|
852
|
+
.ft-button--secondary {
|
|
853
|
+
${ge(An.color,Oe.secondaryIconColor)};
|
|
854
|
+
|
|
855
|
+
${ge(hi.color,Oe.secondaryStateLayerColor)};
|
|
856
|
+
${ge(hi.opacityContentOnSurfaceHover,Oe.secondaryStateLayerOpacityHover)};
|
|
857
|
+
${ge(hi.opacityContentOnSurfaceFocused,Oe.secondaryStateLayerOpacityFocus)};
|
|
858
|
+
${ge(hi.opacityContentOnSurfaceSelected,Oe.secondaryStateLayerOpacityActive)};
|
|
859
|
+
${ge(hi.opacityContentOnSurfacePressed,Oe.secondaryStateLayerOpacityActive)};
|
|
860
|
+
|
|
861
|
+
background-color: ${Oe.secondaryBackgroundColor};
|
|
862
|
+
color: ${Oe.secondaryColor};
|
|
863
|
+
border-color: ${Oe.secondaryBorderColor};
|
|
864
|
+
border-style: solid;
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
.ft-button--secondary[disabled] {
|
|
868
|
+
opacity: ${Oe.secondaryComponentOpacityDisabled};
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
.ft-button--secondary ft-icon {
|
|
872
|
+
color: ${Oe.secondaryIconColor};
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
/** Tertiary styles **/
|
|
876
|
+
|
|
877
|
+
.ft-button--tertiary {
|
|
878
|
+
${ge(An.color,Oe.tertiaryIconColor)};
|
|
879
|
+
|
|
880
|
+
${ge(hi.color,Oe.tertiaryStateLayerColor)};
|
|
881
|
+
${ge(hi.opacityContentOnSurfaceHover,Oe.tertiaryStateLayerOpacityHover)};
|
|
882
|
+
${ge(hi.opacityContentOnSurfaceFocused,Oe.tertiaryStateLayerOpacityFocus)};
|
|
883
|
+
${ge(hi.opacityContentOnSurfaceSelected,Oe.tertiaryStateLayerOpacityActive)};
|
|
884
|
+
${ge(hi.opacityContentOnSurfacePressed,Oe.tertiaryStateLayerOpacityActive)};
|
|
885
|
+
|
|
886
|
+
background-color: ${Oe.tertiaryBackgroundColor};
|
|
887
|
+
color: ${Oe.tertiaryColor};
|
|
888
|
+
border-style: none;
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
.ft-button--tertiary[disabled] {
|
|
892
|
+
opacity: ${Oe.tertiaryComponentOpacityDisabled};
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
.ft-button--tertiary ft-icon {
|
|
896
|
+
color: ${Oe.tertiaryIconColor};
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
/** Neutral styles **/
|
|
900
|
+
|
|
901
|
+
.ft-button--neutral {
|
|
902
|
+
${ge(An.color,Oe.neutralIconColor)};
|
|
903
|
+
|
|
904
|
+
${ge(hi.backgroundColor,Oe.neutralStateLayerColor)};
|
|
905
|
+
${ge(hi.opacityContentOnSurfaceHover,Oe.neutralStateLayerOpacityHover)};
|
|
906
|
+
${ge(hi.opacityContentOnSurfaceFocused,Oe.neutralStateLayerOpacityFocus)};
|
|
907
|
+
${ge(hi.opacityContentOnSurfaceSelected,Oe.neutralStateLayerOpacityActive)};
|
|
908
|
+
${ge(hi.opacityContentOnSurfacePressed,Oe.neutralStateLayerOpacityActive)};
|
|
909
|
+
|
|
910
|
+
background-color: ${Oe.neutralBackgroundColor};
|
|
911
|
+
color: ${Oe.neutralColor};
|
|
912
|
+
border-style: none;
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
.ft-button--neutral[disabled] {
|
|
916
|
+
opacity: ${Oe.neutralComponentOpacityDisabled};
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
.ft-button--neutral ft-icon {
|
|
920
|
+
color: ${Oe.neutralIconColor};
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
/** Large styles **/
|
|
924
|
+
|
|
925
|
+
.ft-button--large {
|
|
926
|
+
${ge(Bn.size,Oe.largeIconSize)};
|
|
927
|
+
${ge(An.size,Oe.largeIconSize)};
|
|
928
|
+
|
|
929
|
+
height: ${Oe.largeHeight};
|
|
930
|
+
padding: 0 ${Oe.largeHorizontalPadding};
|
|
931
|
+
gap: ${Oe.largeGap};
|
|
932
|
+
border-radius: ${Oe.largeBorderRadius};
|
|
933
|
+
border-width: ${Oe.largeBorderWidth};
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
.ft-button--large:focus-visible {
|
|
937
|
+
outline-width: ${Oe.largeFocusOutlineWidth};
|
|
938
|
+
outline-offset: ${Oe.largeFocusOutlineOffset};
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
.ft-button--large.ft-button--icon-only {
|
|
942
|
+
width: ${Oe.largeIconOnlyWidth};
|
|
943
|
+
padding: unset;
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
/** Small styles **/
|
|
947
|
+
|
|
948
|
+
.ft-button--small {
|
|
949
|
+
${ge(Bn.size,Oe.smallIconSize)};
|
|
950
|
+
${ge(An.size,Oe.smallIconSize)};
|
|
951
|
+
|
|
952
|
+
height: ${Oe.smallHeight};
|
|
953
|
+
padding: 0 ${Oe.smallHorizontalPadding};
|
|
954
|
+
gap: ${Oe.smallGap};
|
|
955
|
+
border-radius: ${Oe.smallBorderRadius};
|
|
956
|
+
border-width: ${Oe.smallBorderWidth};
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
.ft-button--small:focus-visible {
|
|
960
|
+
outline-width: ${Oe.smallFocusOutlineWidth};
|
|
961
|
+
outline-offset: ${Oe.smallFocusOutlineOffset};
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
.ft-button--small.ft-button--icon-only {
|
|
965
|
+
width: ${Oe.smallIconOnlyWidth};
|
|
966
|
+
padding: unset;
|
|
967
|
+
}
|
|
968
|
+
`,Vr];var Ms=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class js extends Is{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?la.caption1medium:la.body2medium}}js.styles=[qr,Fs],Ms([N({type:Boolean})],js.prototype,"primary",void 0),Ms([N({type:Boolean})],js.prototype,"secondary",void 0),Ms([N({type:Boolean})],js.prototype,"tertiary",void 0),Ms([N({type:Boolean})],js.prototype,"neutral",void 0),Ms([N({type:Boolean})],js.prototype,"small",void 0),Kr("ft-button")(Ws),Kr("ftds-button")(js);const Ks={spacing:be.create("--ft-copy-block-spacing","","SIZE","12px 48px 12px 12px"),borderRadius:be.extend("--ft-copy-block-border-radius","",we.borderRadiusS),borderStyle:be.create("--ft-copy-block-border-style","","BORDER-STYLE","solid"),borderColor:be.extend("--ft-copy-block-border-color","",we.colorOutline),borderWidth:be.create("--ft-copy-block-border-width","","SIZE","1px"),backgroundColor:be.extend("--ft-copy-block-background-color","",we.colorSurface),buttonHeight:be.create("--ft-copy-block-button-height","","SIZE","unset")},As=bt`
|
|
969
|
+
:host {
|
|
970
|
+
display: block;
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
[part="container"] {
|
|
974
|
+
position: relative;
|
|
975
|
+
border-radius: ${Ks.borderRadius};
|
|
976
|
+
border-style: ${Ks.borderStyle};
|
|
977
|
+
border-color: ${Ks.borderColor};
|
|
978
|
+
border-width: ${Ks.borderWidth};
|
|
979
|
+
background-color: ${Ks.backgroundColor};
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
[part="button-container"] {
|
|
983
|
+
position: absolute;
|
|
984
|
+
right: 0;
|
|
985
|
+
top: 0;
|
|
986
|
+
height: ${Ks.buttonHeight}
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
[part="content"] {
|
|
990
|
+
overflow-x: auto;
|
|
991
|
+
margin: ${Ks.spacing};
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
[part="tooltip"] {
|
|
995
|
+
display: block;
|
|
996
|
+
height: ${Ks.buttonHeight}
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
[part="tooltip"]::part(container) {
|
|
1000
|
+
height: ${Ks.buttonHeight}
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
[part="button"] {
|
|
1004
|
+
height: ${Ks.buttonHeight}
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
[part="button"]::part(button) {
|
|
1008
|
+
height: ${Ks.buttonHeight}
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
`,Ps=bt`
|
|
1012
|
+
`,Bs=bt`
|
|
1013
|
+
`,Zs=ai.get({name:"ft-app-info",reducers:{setBaseUrl:(t,e)=>{t.baseUrl=e.payload},setApiIntegrationIdentifier:(t,e)=>{t.apiIntegrationIdentifier=e.payload},setUiLocale:(t,e)=>{t.uiLocale=e.payload},setAvailableUiLocales:(t,e)=>{t.availableUiLocales=e.payload},setMetadataDescriptors:(t,e)=>{t.metadataDescriptors=e.payload},setEditorMode:(t,e)=>{t.editorMode=e.payload},setNoCustom:(t,e)=>{t.noCustom=e.payload},setNoCustomComponent:(t,e)=>{t.noCustomComponent=e.payload},setSession:(t,e)=>{t.session=e.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataDescriptors:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class zs{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=Zs.getState(),r=null!=t?t:o;if(e&&r&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,r,!0)}static get(t){var e;return null!=t?zs.build(t):null!==(e=zs.API)&&void 0!==e?e:zs.API=zs.build()}static await(t){return new Promise((e=>{let o=zs.get(t);if(o)e(o);else{const r=Zs.subscribe((()=>{o=zs.get(t),o&&(r(),e(o))}))}}))}}var Ds;const Ts=Symbol("clearAfterUnitTest");class Hs{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new Fr,this.listeners={},this.currentUiLocale="",this[Ds]=()=>{this.defaultMessages={},this.cache=new Fr,this.listeners={}},this.currentUiLocale=Zs.getState().uiLocale,Zs.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Zs.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){const r={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};jr(this.defaultMessages[t],r)||(this.defaultMessages[t]=r,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var r,i,n;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(i=null===(r=this.cache.getNow(t))||void 0===r?void 0:r.messages)&&void 0!==i?i:{};return new Yr(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},a).resolve(e,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>{return(e=0,new Promise((t=>setTimeout(t,e)))).then((()=>t())).catch((()=>null));var e})))}}Ds=Ts,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Hs((async(t,e)=>(await zs.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Hs((async(t,e)=>(await zs.await()).getCustomMessageContext(t,e))));const _s=window.FluidTopicsI18nService,Gs=window.FluidTopicsCustomI18nService;var Vs=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class qs extends _r{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.metadataDescriptors=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>zs.get(),this.cache=new Fr,this.cleanSessionDebouncer=new Mr}render(){return Xt`
|
|
1014
|
+
<slot></slot>
|
|
1015
|
+
`}update(t){super.update(t),t.has("baseUrl")&&Zs.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Zs.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Zs.actions.setUiLocale(this.uiLocale),t.has("metadataDescriptors")&&Zs.actions.setMetadataDescriptors(this.metadataDescriptors),t.has("noCustom")&&Zs.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Zs.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Zs.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Zs.actions.setSession(this.session),t.has("availableUiLocales")&&Zs.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>_s.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const e=await t.getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),e.idleTimeoutInMillis),e}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))),null==this.metadataDescriptors&&(this.metadataDescriptors=await this.cache.get("metadataDescriptors",(()=>t.getMetadataDescriptors()))))}}qs.elementDefinitions={},qs.styles=Bs,Vs([N()],qs.prototype,"baseUrl",void 0),Vs([N()],qs.prototype,"apiIntegrationIdentifier",void 0),Vs([N()],qs.prototype,"uiLocale",void 0),Vs([Ar([])],qs.prototype,"availableUiLocales",void 0),Vs([Ar([])],qs.prototype,"metadataDescriptors",void 0),Vs([N({type:Boolean})],qs.prototype,"editorMode",void 0),Vs([N({type:Boolean})],qs.prototype,"noCustom",void 0),Vs([N({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],qs.prototype,"noCustomComponent",void 0),Vs([N({type:Boolean})],qs.prototype,"withManualResources",void 0),Vs([Ar([])],qs.prototype,"messageContexts",void 0),Vs([Ar(void 0)],qs.prototype,"session",void 0),Vs([N({type:Object})],qs.prototype,"apiProvider",void 0);class Ys{async listMySearches(){var t;return(null===(t=Zs.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await zs.await()).listMySearches(Zs.getState().session.profile.userId):[]}}const Js=new Fr;class Xs{async listMyBookmarks(){return Js.get("bookmarks",(async()=>(await zs.await()).listMyBookmarks(Zs.getState().session.profile.userId)))}clearCache(){Js.clear("bookmarks")}}const Qs=ai.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=Zs.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Xs,Zs.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=Zs.getState();jr(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){Qs.actions.savedSearches(void 0)}clearMyBookmarks(){Qs.actions.bookmarks(void 0)}async reloadMySearches(){const t=new Ys,e=await t.listMySearches();Qs.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;Qs.actions.bookmarks(e)}}},Kr("ft-app-context")(qs);var tc=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const ec=Symbol("i18nProperties"),oc=Symbol("i18nUnsubs");function rc(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Gs:_s}i18n(t,e,...o){var r;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const i=null!==(r=t.args)&&void 0!==r?r:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...i)}onI18nUpdate(t){var e;null===(e=this[ec])||void 0===e||e.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[ec])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[ec]&&new Set([...this[ec].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[oc].has(t)||this[oc].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages(t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[oc].forEach((t=>t())),this[oc].clear()}}return e=oc,tc([N({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class ic extends(rc(_r)){}class nc extends(rc(ni)){}var ac=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class sc extends nc{constructor(){super(),this.editorMode=!1,this.addStore(Zs)}render(){return this.key&&this.context?Xt`
|
|
1016
|
+
<span class="ft-i18n">
|
|
1017
|
+
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
1018
|
+
</span>
|
|
1019
|
+
`:this.editorMode?"Select a context and a label key.":te}update(t){var e;super.update(t),this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(e=this.defaultMessage)&&void 0!==e?e:""})}}sc.elementDefinitions={},sc.styles=Ps,ac([(t=>{const e=null!=t?t:{};return(t,o)=>{var r;const i={hasChanged:(t,e)=>!jr(t,e),attribute:!1,...e};N(i)(t,o);const n=t.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(o,{selector:null!==(r=e.selector)&&void 0!==r?r:t=>t[o],store:e.store})}})()],sc.prototype,"editorMode",void 0),ac([N()],sc.prototype,"context",void 0),ac([N()],sc.prototype,"key",void 0),ac([Ar([])],sc.prototype,"args",void 0),ac([N()],sc.prototype,"defaultMessage",void 0);class cc{static build(t){return new cc(t)}static fromGwt(t){return new cc(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const o=e;return t=>({context:this.name,key:o,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>_s.resolveMessage(this.name,e,...t)})}}Kr("ft-i18n")(sc);const lc=cc.build("copyBlockComponent"),fc={tooltipMessage:"Copy to clipboard",copySuccessMessage:"Copied!"};var pc,uc=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class hc extends ic{constructor(){super(),this.addI18nContext(lc,fc)}render(){return Xt`
|
|
1020
|
+
<div part="container">
|
|
1021
|
+
${navigator.clipboard?Xt`
|
|
1022
|
+
<div part="button-container">
|
|
1023
|
+
<ft-tooltip part="tooltip" text=${lc.messages.tooltipMessage()} position="bottom" exportpartsPrefix="tooltip">
|
|
1024
|
+
<ft-button icon="CLONE" part="button" exportpartsPrefix="button" @click=${this.copyContents}></ft-button>
|
|
1025
|
+
</ft-tooltip>
|
|
1026
|
+
</div>
|
|
1027
|
+
`:te}
|
|
1028
|
+
|
|
1029
|
+
<div part="content">
|
|
1030
|
+
<slot></slot>
|
|
1031
|
+
</div>
|
|
1032
|
+
</div>
|
|
1033
|
+
`}async copyContents(){try{await navigator.clipboard.writeText(this.shadowRoot.host.innerText),this.tooltip.manual=!0,this.tooltip.text=lc.messages.copySuccessMessage(),await this.tooltip.show(1e3),this.tooltip.text=lc.messages.tooltipMessage(),this.tooltip.manual=!1}catch{console.log("Failed to copy to clipboard")}}}hc.elementDefinitions={"ft-button":Ws,"ft-tooltip":Os},hc.styles=As,uc([$("[part='tooltip']")],hc.prototype,"tooltip",void 0),(pc="ft-copy-block",t=>{window.customElements.get(pc)||window.customElements.define(pc,t)})(hc),t.FtCopyBlock=hc,t.FtCopyBlockCssVariables=Ks,t.styles=As}({});
|