@fluid-topics/ft-reader-search-in-document 1.1.70 → 1.1.72
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/build/ft-reader-search-in-document.light.js +400 -388
- package/build/ft-reader-search-in-document.min.js +596 -532
- package/package.json +14 -14
|
@@ -1,147 +1,13 @@
|
|
|
1
|
-
!function(t){
|
|
2
|
-
|
|
3
|
-
* @license
|
|
4
|
-
|
|
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 l;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,l=new Set(i.observedAttributes||[]);u(i,l,s);const c={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:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(i,c);let f=o.call(r,t);f||(f=h(t),e.call(r,t,f)),this===window.customElements&&(a.set(i,c),c.standInClass=f);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),p(t,c,!0)}const g=this._whenDefinedPromises.get(t);return void 0!==g&&(g.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){y.push(this),r.upgrade.apply(r,arguments),y.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=l;if(e)return l=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 c=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!c(e)){const t=y[y.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},h=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?p(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)})},d=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):d(o)},p=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),i.set(t,e),l=t;try{new e.elementClass}catch(t){d(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)},g=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=g.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let y=[document];const b=(t,e,o=void 0)=>{const r=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){y.push(this);const t=r.apply(o||this,arguments);return void 0!==t&&s.set(t,this),y.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,e)=>{const o=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...o,set(t){y.push(this),o.set.call(this,t),y.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(ec){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
|
-
*/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
|
|
21
|
-
/**
|
|
22
|
-
* @license
|
|
23
|
-
* Copyright 2017 Google LLC
|
|
24
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
25
|
-
*/,{is:s,defineProperty:l,getOwnPropertyDescriptor:c,getOwnPropertyNames:f,getOwnPropertySymbols:h,getPrototypeOf:u}=Object,d=globalThis,p=d.trustedTypes,g=p?p.emptyScript:"",y=d.reactiveElementPolyfillSupport,b=(t,e)=>t,m={toAttribute(t,e){switch(e){case Boolean:t=t?g:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let 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"),d.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&&l(this.prototype,t,r)}}static getPropertyDescriptor(t,e,o){const{get:r,set:i}=c(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(b("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(b("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(b("properties"))){const t=this.properties,e=[...f(t),...h(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[b("elementProperties")]=new Map,O[b("finalized")]=new Map,y?.({ReactiveElement:O}),(d.reactiveElementVersions??=[]).push("2.0.2");
|
|
26
|
-
/**
|
|
27
|
-
* @license
|
|
28
|
-
* Copyright 2017 Google LLC
|
|
29
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
30
|
-
*/
|
|
31
|
-
const w=globalThis,S=w.trustedTypes,C=S?S.createPolicy("lit-html",{createHTML:t=>t}):void 0,N="$lit$",E=`lit$${(Math.random()+"").slice(9)}$`,R="?"+E,$=`<${R}>`,I=document,k=()=>I.createComment(""),L=t=>null===t||"object"!=typeof t&&"function"!=typeof t,U=Array.isArray,W=t=>U(t)||"function"==typeof t?.[Symbol.iterator],A="[ \t\n\f\r]",B=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,F=/-->/g,z=/>/g,P=RegExp(`>|${A}(?:([^\\s"'>=/]+)(${A}*=${A}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),_=/'/g,j=/"/g,M=/^(?:script|style|textarea|title)$/i,D=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),T=Symbol.for("lit-noChange"),K=Symbol.for("lit-nothing"),Z=new WeakMap,H=I.createTreeWalker(I,129);function G(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==C?C.createHTML(e):e}const V=(t,e)=>{const o=t.length-1,r=[];let i,n=2===e?"<svg>":"",a=B;for(let e=0;e<o;e++){const o=t[e];let s,l,c=-1,f=0;for(;f<o.length&&(a.lastIndex=f,l=a.exec(o),null!==l);)f=a.lastIndex,a===B?"!--"===l[1]?a=F:void 0!==l[1]?a=z:void 0!==l[2]?(M.test(l[2])&&(i=RegExp("</"+l[2],"g")),a=P):void 0!==l[3]&&(a=P):a===P?">"===l[0]?(a=i??B,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?P:'"'===l[3]?j:_):a===j||a===_?a=P:a===F||a===z?a=B:(a=P,i=void 0);const h=a===P&&t[e+1].startsWith("/>")?" ":"";n+=a===B?o+$:c>=0?(r.push(s),o.slice(0,c)+N+o.slice(c)+E+h):o+E+(-2===c?e:h)}return[G(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),r]};let q=class t{constructor({strings:e,_$litType$:o},r){let i;this.parts=[];let n=0,a=0;const s=e.length-1,l=this.parts,[c,f]=V(e,o);if(this.el=t.createElement(c,r),H.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=H.nextNode())&&l.length<s;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(N)){const e=f[a++],o=i.getAttribute(t).split(E),r=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:r[2],strings:o,ctor:"."===r[1]?tt:"?"===r[1]?et:"@"===r[1]?ot:X}),i.removeAttribute(t)}else t.startsWith(E)&&(l.push({type:6,index:n}),i.removeAttribute(t));if(M.test(i.tagName)){const t=i.textContent.split(E),e=t.length-1;if(e>0){i.textContent=S?S.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],k()),H.nextNode(),l.push({type:2,index:++n});i.append(t[e],k())}}}else if(8===i.nodeType)if(i.data===R)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=i.data.indexOf(E,t+1));)l.push({type:7,index:n}),t+=E.length-1}n++}}static createElement(t,e){const o=I.createElement("template");return o.innerHTML=t,o}};function Y(t,e,o=t,r){if(e===T)return e;let i=void 0!==r?o._$Co?.[r]:o._$Cl;const n=L(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=Y(t,i._$AS(t,e.values),i,r)),e}let J=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??I).importNode(e,!0);H.currentNode=r;let i=H.nextNode(),n=0,a=0,s=o[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new Q(i,i.nextSibling,this,t):1===s.type?e=new s.ctor(i,s.name,s.strings,this,t):6===s.type&&(e=new rt(i,this,t)),this._$AV.push(e),s=o[++a]}n!==s?.index&&(i=H.nextNode(),n++)}return H.currentNode=I,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++}},Q=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,r){this.type=2,this._$AH=K,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=Y(this,t,e),L(t)?t===K||null==t||""===t?(this._$AH!==K&&this._$AR(),this._$AH=K):t!==this._$AH&&t!==T&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):W(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!==K&&L(this._$AH)?this._$AA.nextSibling.data=t:this.$(I.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=q.createElement(G(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new J(r,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=Z.get(t.strings);return void 0===e&&Z.set(t.strings,e=new q(t)),e}T(e){U(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(k()),this.k(k()),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))}},X=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,i){this.type=1,this._$AH=K,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=K}_$AI(t,e=this,o,r){const i=this.strings;let n=!1;if(void 0===i)t=Y(this,t,e,0),n=!L(t)||t!==this._$AH&&t!==T,n&&(this._$AH=t);else{const r=t;let a,s;for(t=i[0],a=0;a<i.length-1;a++)s=Y(this,r[o+a],e,a),s===T&&(s=this._$AH[a]),n||=!L(s)||s!==this._$AH[a],s===K?t=K:t!==K&&(t+=(s??"")+i[a+1]),this._$AH[a]=s}n&&!r&&this.O(t)}O(t){t===K?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},tt=class extends X{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===K?void 0:t}},et=class extends X{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==K)}},ot=class extends X{constructor(t,e,o,r,i){super(t,e,o,r,i),this.type=5}_$AI(t,e=this){if((t=Y(this,t,e,0)??K)===T)return;const o=this._$AH,r=t===K&&o!==K||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,i=t!==K&&(o===K||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)}},rt=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){Y(this,t)}};const it={j:N,P:E,A:R,C:1,M:V,L:J,R:W,V:Y,D:Q,I:X,H:et,N:ot,U:tt,B:rt},nt=w.litHtmlPolyfillSupport;nt?.(q,Q),(w.litHtmlVersions??=[]).push("3.1.0");
|
|
32
|
-
/**
|
|
33
|
-
* @license
|
|
34
|
-
* Copyright 2019 Google LLC
|
|
35
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
36
|
-
*/
|
|
37
|
-
const at=globalThis,st=at.ShadowRoot&&(void 0===at.ShadyCSS||at.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,lt=Symbol(),ct=new WeakMap;let ft=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==lt)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(st&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=ct.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&ct.set(e,t))}return t}toString(){return this.cssText}};const ht=t=>new ft("string"==typeof t?t:t+"",void 0,lt),ut=(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 ft(o,t,lt)},dt=(t,e)=>{if(st)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),r=at.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}},pt=st?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return ht(e)})(t):t
|
|
38
|
-
/**
|
|
39
|
-
* @license
|
|
40
|
-
* Copyright 2017 Google LLC
|
|
41
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
42
|
-
*/,{is:gt,defineProperty:yt,getOwnPropertyDescriptor:bt,getOwnPropertyNames:mt,getOwnPropertySymbols:vt,getPrototypeOf:xt}=Object,Ot=globalThis,wt=Ot.trustedTypes,St=wt?wt.emptyScript:"",Ct=Ot.reactiveElementPolyfillSupport,Nt=(t,e)=>t,Et={toAttribute(t,e){switch(e){case Boolean:t=t?St: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}},Rt=(t,e)=>!gt(t,e),$t={attribute:!0,type:String,converter:Et,reflect:!1,hasChanged:Rt};Symbol.metadata??=Symbol("metadata"),Ot.litPropertyMetadata??=new WeakMap;let It=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=$t){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&&yt(this.prototype,t,r)}}static getPropertyDescriptor(t,e,o){const{get:r,set:i}=bt(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)??$t}static _$Ei(){if(this.hasOwnProperty(Nt("elementProperties")))return;const t=xt(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Nt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Nt("properties"))){const t=this.properties,e=[...mt(t),...vt(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(pt(t))}else void 0!==t&&e.push(pt(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 dt(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:Et).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:Et;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??Rt)(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){}};It.elementStyles=[],It.shadowRootOptions={mode:"open"},It[Nt("elementProperties")]=new Map,It[Nt("finalized")]=new Map,Ct?.({ReactiveElement:It}),(Ot.reactiveElementVersions??=[]).push("2.0.2");
|
|
43
|
-
/**
|
|
44
|
-
* @license
|
|
45
|
-
* Copyright 2017 Google LLC
|
|
46
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
|
-
*/
|
|
48
|
-
const kt=globalThis,Lt=kt.trustedTypes,Ut=Lt?Lt.createPolicy("lit-html",{createHTML:t=>t}):void 0,Wt="$lit$",At=`lit$${(Math.random()+"").slice(9)}$`,Bt="?"+At,Ft=`<${Bt}>`,zt=document,Pt=()=>zt.createComment(""),_t=t=>null===t||"object"!=typeof t&&"function"!=typeof t,jt=Array.isArray,Mt=t=>jt(t)||"function"==typeof t?.[Symbol.iterator],Dt="[ \t\n\f\r]",Tt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Kt=/-->/g,Zt=/>/g,Ht=RegExp(`>|${Dt}(?:([^\\s"'>=/]+)(${Dt}*=${Dt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Gt=/'/g,Vt=/"/g,qt=/^(?:script|style|textarea|title)$/i,Yt=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),Jt=Yt(1),Qt=Yt(2),Xt=Symbol.for("lit-noChange"),te=Symbol.for("lit-nothing"),ee=new WeakMap,oe=zt.createTreeWalker(zt,129);function re(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Ut?Ut.createHTML(e):e}const ie=(t,e)=>{const o=t.length-1,r=[];let i,n=2===e?"<svg>":"",a=Tt;for(let e=0;e<o;e++){const o=t[e];let s,l,c=-1,f=0;for(;f<o.length&&(a.lastIndex=f,l=a.exec(o),null!==l);)f=a.lastIndex,a===Tt?"!--"===l[1]?a=Kt:void 0!==l[1]?a=Zt:void 0!==l[2]?(qt.test(l[2])&&(i=RegExp("</"+l[2],"g")),a=Ht):void 0!==l[3]&&(a=Ht):a===Ht?">"===l[0]?(a=i??Tt,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?Ht:'"'===l[3]?Vt:Gt):a===Vt||a===Gt?a=Ht:a===Kt||a===Zt?a=Tt:(a=Ht,i=void 0);const h=a===Ht&&t[e+1].startsWith("/>")?" ":"";n+=a===Tt?o+Ft:c>=0?(r.push(s),o.slice(0,c)+Wt+o.slice(c)+At+h):o+At+(-2===c?e:h)}return[re(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),r]};class ne{constructor({strings:t,_$litType$:e},o){let r;this.parts=[];let i=0,n=0;const a=t.length-1,s=this.parts,[l,c]=ie(t,e);if(this.el=ne.createElement(l,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(Wt)){const e=c[n++],o=r.getAttribute(t).split(At),a=/([.?@])?(.*)/.exec(e);s.push({type:1,index:i,name:a[2],strings:o,ctor:"."===a[1]?fe:"?"===a[1]?he:"@"===a[1]?ue:ce}),r.removeAttribute(t)}else t.startsWith(At)&&(s.push({type:6,index:i}),r.removeAttribute(t));if(qt.test(r.tagName)){const t=r.textContent.split(At),e=t.length-1;if(e>0){r.textContent=Lt?Lt.emptyScript:"";for(let o=0;o<e;o++)r.append(t[o],Pt()),oe.nextNode(),s.push({type:2,index:++i});r.append(t[e],Pt())}}}else if(8===r.nodeType)if(r.data===Bt)s.push({type:2,index:i});else{let t=-1;for(;-1!==(t=r.data.indexOf(At,t+1));)s.push({type:7,index:i}),t+=At.length-1}i++}}static createElement(t,e){const o=zt.createElement("template");return o.innerHTML=t,o}}function ae(t,e,o=t,r){if(e===Xt)return e;let i=void 0!==r?o._$Co?.[r]:o._$Cl;const n=_t(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=ae(t,i._$AS(t,e.values),i,r)),e}let se=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??zt).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 le(i,i.nextSibling,this,t):1===s.type?e=new s.ctor(i,s.name,s.strings,this,t):6===s.type&&(e=new de(i,this,t)),this._$AV.push(e),s=o[++a]}n!==s?.index&&(i=oe.nextNode(),n++)}return oe.currentNode=zt,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++}},le=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=ae(this,t,e),_t(t)?t===te||null==t||""===t?(this._$AH!==te&&this._$AR(),this._$AH=te):t!==this._$AH&&t!==Xt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):Mt(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&&_t(this._$AH)?this._$AA.nextSibling.data=t:this.$(zt.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=ne.createElement(re(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new se(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 ne(t)),e}T(e){jt(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(Pt()),this.k(Pt()),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))}},ce=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=ae(this,t,e,0),n=!_t(t)||t!==this._$AH&&t!==Xt,n&&(this._$AH=t);else{const r=t;let a,s;for(t=i[0],a=0;a<i.length-1;a++)s=ae(this,r[o+a],e,a),s===Xt&&(s=this._$AH[a]),n||=!_t(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??"")}},fe=class extends ce{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===te?void 0:t}},he=class extends ce{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==te)}},ue=class extends ce{constructor(t,e,o,r,i){super(t,e,o,r,i),this.type=5}_$AI(t,e=this){if((t=ae(this,t,e,0)??te)===Xt)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)}},de=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){ae(this,t)}};const pe={j:Wt,P:At,A:Bt,C:1,M:ie,L:se,R:Mt,V:ae,D:le,I:ce,H:he,N:ue,U:fe,B:de},ge=kt.litHtmlPolyfillSupport;ge?.(ne,le),(kt.litHtmlVersions??=[]).push("3.1.0");const ye=(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 le(e.insertBefore(Pt(),t),t,void 0,o??{})}return i._$AI(t),i
|
|
49
|
-
/**
|
|
50
|
-
* @license
|
|
51
|
-
* Copyright 2017 Google LLC
|
|
52
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
|
-
*/};let be=class extends It{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=ye(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Xt}};be._$litElement$=!0,be.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:be});const me=globalThis.litElementPolyfillSupport;me?.({LitElement:be});(globalThis.litElementVersions??=[]).push("4.0.2");var ve=Object.freeze({__proto__:null,CSSResult:ft,LitElement:be,ReactiveElement:It,_$LE:{_$AK:(t,e,o)=>{t._$AK(e,o)},_$AL:t=>t._$AL},_$LH:pe,adoptStyles:dt,css:ut,defaultConverter:Et,getCompatibleStyle:pt,html:Jt,isServer:!1,noChange:Xt,notEqual:Rt,nothing:te,render:ye,supportsAdoptingStyleSheets:st,svg:Qt,unsafeCSS:ht});
|
|
54
|
-
/**
|
|
55
|
-
* @license
|
|
56
|
-
* Copyright 2017 Google LLC
|
|
57
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
58
|
-
*/const xe=t=>(e,o)=>{void 0!==o?o.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)}
|
|
59
|
-
/**
|
|
60
|
-
* @license
|
|
61
|
-
* Copyright 2017 Google LLC
|
|
62
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
63
|
-
*/,Oe={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:v},we=(t=Oe,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 Se(t){return(e,o)=>"object"==typeof o?we(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)
|
|
64
|
-
/**
|
|
65
|
-
* @license
|
|
66
|
-
* Copyright 2017 Google LLC
|
|
67
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
68
|
-
*/}function Ce(t){return Se({...t,state:!0,attribute:!1})}
|
|
69
|
-
/**
|
|
70
|
-
* @license
|
|
71
|
-
* Copyright 2017 Google LLC
|
|
72
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
73
|
-
*/function Ne(t){return(e,o)=>{const r="function"==typeof e?e:e[o];Object.assign(r,t)}}
|
|
74
|
-
/**
|
|
75
|
-
* @license
|
|
76
|
-
* Copyright 2017 Google LLC
|
|
77
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
78
|
-
*/const Ee=(t,e,o)=>(o.configurable=!0,o.enumerable=!0,o)
|
|
79
|
-
/**
|
|
80
|
-
* @license
|
|
81
|
-
* Copyright 2017 Google LLC
|
|
82
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
83
|
-
*/;function Re(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 Ee(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 Ee(0,0,{get(){return n(this)}})}}
|
|
84
|
-
/**
|
|
85
|
-
* @license
|
|
86
|
-
* Copyright 2017 Google LLC
|
|
87
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
88
|
-
*/let $e;
|
|
89
|
-
/**
|
|
90
|
-
* @license
|
|
91
|
-
* Copyright 2017 Google LLC
|
|
92
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
93
|
-
*/
|
|
94
|
-
function Ie(t){return(e,o)=>{const{slot:r}=t??{},i="slot"+(r?`[name=${r}]`:":not([name])");return Ee(0,0,{get(){const e=this.renderRoot?.querySelector(i);return e?.assignedNodes(t)??[]}})}}var ke=Object.freeze({__proto__:null,customElement:xe,eventOptions:Ne,property:Se,query:Re,queryAll:function(t){return(e,o)=>Ee(0,0,{get(){return(this.renderRoot??($e??=document.createDocumentFragment())).querySelectorAll(t)}})
|
|
95
|
-
/**
|
|
96
|
-
* @license
|
|
97
|
-
* Copyright 2017 Google LLC
|
|
98
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
99
|
-
*/},queryAssignedElements:
|
|
100
|
-
/**
|
|
101
|
-
* @license
|
|
102
|
-
* Copyright 2021 Google LLC
|
|
103
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
104
|
-
*/
|
|
105
|
-
function(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=${r}]`:":not([name])");return Ee(0,0,{get(){const e=this.renderRoot?.querySelector(n),o=e?.assignedElements(t)??[];return void 0===i?o:o.filter((t=>t.matches(i)))}})}},queryAssignedNodes:Ie,queryAsync:function(t){return(e,o)=>Ee(0,0,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})},standardProperty:we,state:Ce});
|
|
106
|
-
/**
|
|
107
|
-
* @license
|
|
108
|
-
* Copyright 2017 Google LLC
|
|
109
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
110
|
-
*/const Le=1,Ue=2,We=t=>(...e)=>({_$litDirective$:t,values:e});let Ae=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)}};
|
|
111
|
-
/**
|
|
112
|
-
* @license
|
|
113
|
-
* Copyright 2020 Google LLC
|
|
114
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
115
|
-
*/const{D:Be}=it,Fe=()=>document.createComment(""),ze=(t,e,o)=>{const r=t._$AA.parentNode,i=void 0===e?t._$AB:e._$AA;if(void 0===o){const e=r.insertBefore(Fe(),i),n=r.insertBefore(Fe(),i);o=new Be(e,n,t,t.options)}else{const e=o._$AB.nextSibling,n=o._$AM,a=n!==t;if(a){let e;o._$AQ?.(t),o._$AM=t,void 0!==o._$AP&&(e=t._$AU)!==n._$AU&&o._$AP(e)}if(e!==i||a){let t=o._$AA;for(;t!==e;){const e=t.nextSibling;r.insertBefore(t,i),t=e}}}return o},Pe=(t,e,o=t)=>(t._$AI(e,o),t),_e={},je=t=>{t._$AP?.(!1,!0);let e=t._$AA;const o=t._$AB.nextSibling;for(;e!==o;){const t=e.nextSibling;e.remove(),e=t}},Me=(t,e,o)=>{const r=new Map;for(let i=e;i<=o;i++)r.set(t[i],i);return r},De=We(class extends Ae{constructor(t){if(super(t),t.type!==Ue)throw Error("repeat() can only be used in text expressions")}ht(t,e,o){let r;void 0===o?o=e:void 0!==e&&(r=e);const i=[],n=[];let a=0;for(const e of t)i[a]=r?r(e,a):a,n[a]=o(e,a),a++;return{values:n,keys:i}}render(t,e,o){return this.ht(t,e,o).values}update(t,[e,o,r]){const i=(t=>t._$AH)(t),{values:n,keys:a}=this.ht(e,o,r);if(!Array.isArray(i))return this.dt=a,n;const s=this.dt??=[],l=[];let c,f,h=0,u=i.length-1,d=0,p=n.length-1;for(;h<=u&&d<=p;)if(null===i[h])h++;else if(null===i[u])u--;else if(s[h]===a[d])l[d]=Pe(i[h],n[d]),h++,d++;else if(s[u]===a[p])l[p]=Pe(i[u],n[p]),u--,p--;else if(s[h]===a[p])l[p]=Pe(i[h],n[p]),ze(t,l[p+1],i[h]),h++,p--;else if(s[u]===a[d])l[d]=Pe(i[u],n[d]),ze(t,i[h],i[u]),u--,d++;else if(void 0===c&&(c=Me(a,d,p),f=Me(s,h,u)),c.has(s[h]))if(c.has(s[u])){const e=f.get(a[d]),o=void 0!==e?i[e]:null;if(null===o){const e=ze(t,i[h]);Pe(e,n[d]),l[d]=e}else l[d]=Pe(o,n[d]),ze(t,i[h],o),i[e]=null;d++}else je(i[u]),u--;else je(i[h]),h++;for(;d<=p;){const e=ze(t,l[p+1]);Pe(e,n[d]),l[d++]=e}for(;h<=u;){const t=i[h++];null!==t&&je(t)}return this.dt=a,((t,e=_e)=>{t._$AH=e})(t,l),T}});
|
|
116
|
-
/**
|
|
117
|
-
* @license
|
|
118
|
-
* Copyright 2017 Google LLC
|
|
119
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
120
|
-
*/var Te=Object.freeze({__proto__:null,repeat:De});
|
|
121
|
-
/**
|
|
122
|
-
* @license
|
|
123
|
-
* Copyright 2018 Google LLC
|
|
124
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
125
|
-
*/const Ke=We(class extends Ae{constructor(t){if(super(t),t.type!==Le||"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 T}});var Ze=Object.freeze({__proto__:null,classMap:Ke});
|
|
126
|
-
/**
|
|
127
|
-
* @license
|
|
128
|
-
* Copyright 2018 Google LLC
|
|
129
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
130
|
-
*/const He="important",Ge=" !"+He,Ve=We(class extends Ae{constructor(t){if(super(t),t.type!==Le||"style"!==t.name||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,o)=>{const r=t[o];return null==r?e:e+`${o=o.includes("-")?o:o.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`}),"")}update(t,[e]){const{style:o}=t.element;if(void 0===this.ut)return this.ut=new Set(Object.keys(e)),this.render(e);for(const t of this.ut)null==e[t]&&(this.ut.delete(t),t.includes("-")?o.removeProperty(t):o[t]=null);for(const t in e){const r=e[t];if(null!=r){this.ut.add(t);const e="string"==typeof r&&r.endsWith(Ge);t.includes("-")||e?o.setProperty(t,e?r.slice(0,-11):r,e?He:""):o[t]=r}}return T}});var qe=Object.freeze({__proto__:null,styleMap:Ve});
|
|
131
|
-
/**
|
|
132
|
-
* @license
|
|
133
|
-
* Copyright 2017 Google LLC
|
|
134
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
135
|
-
*/let Ye=class extends Ae{constructor(t){if(super(t),this.et=K,t.type!==Ue)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===K||null==t)return this.vt=void 0,this.et=t;if(t===T)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:[]}}};Ye.directiveName="unsafeHTML",Ye.resultType=1;const Je=We(Ye);var Qe=Object.freeze({__proto__:null,UnsafeHTMLDirective:Ye,unsafeHTML:Je});class Xe extends Error{constructor(t,e,o){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=o}}class to extends Promise{constructor(t){super(((e,o)=>t((t=>{this.isCanceled?o(new Xe("Promise has been canceled",t)):e(t)}),(t=>{this.isCanceled?o(new Xe("Promise has been canceled",void 0,t)):o(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}const eo=t=>new to(((e,o)=>t.then(e).catch(o)));var oo=Object.freeze({__proto__:null,CancelablePromise:to,CanceledPromiseError:Xe,cancelable:eo});class ro{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 to&&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=eo(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)}}var io=Object.freeze({__proto__:null,CacheRegistry:ro});class no{constructor(t,e,o,r){this.allResults=t,this.selectedResult=e,this.clusteringMetadata=o,this.metadataDescriptors=r}static extractResultMetadata(t,e){var o,r;let i=(null!==(r=null!==(o=null==t?void 0:t.map)&&void 0!==o?o:null==t?void 0:t.document)&&void 0!==r?r:null==t?void 0:t.topic).metadata.map((t=>no.flattenMetadata(t)));return null==e?i:i.find((t=>t.key===e))}static flattenMetadata(t){if(t.hierarchicalValues){const e=[],o=[];return t.hierarchicalValues.forEach((t=>{e.push(t.join(" > ")),t.length>2?o.push(`... > ${t[t.length-1]}`):o.push(t.join(" > "))})),{key:t.key,label:t.label,value:e.join(", "),displayValue:o.join(", ")}}{const e=t.values.join(", ");return{key:t.key,label:t.label,value:e,displayValue:e}}}computeClustersItemsForMetadata(t,e,o="No value"){var r,i;let n=no.extractResultMetadata(this.selectedResult,t),a=null!==(r=null==n?void 0:n.label)&&void 0!==r?r:null===(i=this.getMetadataDescriptor(t))||void 0===i?void 0:i.label;const s=this.allResults.map((e=>no.extractResultMetadata(e,t))).map((e=>null!=e?e:{key:t,label:a,value:void 0,displayValue:o})).filter((t=>t.value!=(null==n?void 0:n.value))).filter(((t,e,o)=>o.findIndex((e=>e.value===t.value))===e));return s.map((e=>({result:this.findBestResultForMetadataValue(t,e.value),metadata:e}))).sort(((o,r)=>this.compareMetadata(o.metadata.value,r.metadata.value,t,e)))}compareMetadata(t,e,o,r){if(null==t)return-1;if(null==e)return 1;let i=this.getMetadataDescriptor(o),n=(null==i?void 0:i.sortRule)||"NONE",a=(null==i?void 0:i.reverseSort)||!1;if("ALPHABET"==n||"VERSION"==n){let o=t.localeCompare(e,r,{numeric:!0});return a?-1*o:o}return 0}getMetadataDescriptor(t){return this.metadataDescriptors.find((e=>t==e.key))}findBestResultForMetadataValue(t,e){const o=this.allResults.filter((o=>{var r;return(null===(r=no.extractResultMetadata(o,t))||void 0===r?void 0:r.value)==e}));let r,i=no.extractResultMetadata(this.selectedResult).filter((t=>this.clusteringMetadata.has(t.key))),n=[...i.filter((e=>e.key!==t))],a=-1;for(let t of o){let e=this.countMatchingMetadata(t,n);if(e>a&&(a=e,r=t,e===n.length))break}return r}countMatchingMetadata(t,e){return no.extractResultMetadata(t).filter((t=>e.some((e=>e.key===t.key&&e.value===t.value)))).length}}var ao=Object.freeze({__proto__:null,ClusteringHelper:no});class so{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}}var lo=Object.freeze({__proto__:null,Debouncer:so});const co=t=>new Promise((e=>setTimeout(e,t)));async function fo(t,e=10,o=2e4){let r,i,n=await t();for(r=i=performance.now();null==n&&(!o||i-r<o);)await co(e),n=await t(),i=performance.now();if(null==n)throw new Error("Timeout exceeded");return n}function ho(t){return t.match(/^\d{4}-\d{2}-\d{2}$/)&&(t=t.replace(/-/g,"/")),t=t.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,((t,e,o,r)=>e+o+":"+r)),new Date(t)}function uo(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(!uo(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(!uo(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(!uo(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}var po=Object.freeze({__proto__:null,dateReviver:function(...t){return function(e,o){return t.includes(e)?ho(o):o}},deepEqual:uo,delay:co,eventPathContainsMatchingElement:function(t,e,o=window.document.body){if(e.length>0){const r=t.composedPath();for(let t of r){if(t===o)return!1;if(t.matches&&e.some((e=>t.matches(e))))return!0}}return!1},flatDeep:function t(e,o){return e.flatMap((e=>[e,...t(o(e),o)]))},last:function(t){return t[t.length-1]},minmax:function(t,e,o){return Math.min(Math.max(t,e),o)},parseDate:ho,waitFor:fo,waitUntil:async function(t,e=10,o=2e4){await fo((async()=>await t()||void 0),e,o)}});const go=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function yo(t,e){const o=()=>JSON.parse(JSON.stringify(t));return Se({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)=>!uo(t,e),...null!=e?e:{}})}function bo(t){return!isNaN(parseFloat(t))}var mo=Object.freeze({__proto__:null,customElement:go,isNumber:bo,jsonProperty:yo,optionalNumberProperty:function(t){return Se({type:Object,converter:{fromAttribute:t=>{if(null!=t)return bo(t)?+t:void 0},toAttribute:t=>null==t?void 0:""+t},...null!=t?t:{}})}});const vo=t=>"string"==typeof t?ht(t):t;class xo{static create(t,e,o,r){const i=t=>vo(null!=t?t:r),n=ut`var(${vo(t)}, ${i(r)})`;return n.name=t,n.description=e,n.category=o,n.defaultValue=r,n.defaultCssValue=i,n.get=e=>ut`var(${vo(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=ut`var(${vo(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=>ut`var(${vo(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):vo(null!=e?e:t.lastResortDefaultValue()),r=ut`var(${vo(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=>ut`var(${vo(t.name)}, ${o(e)})`,r.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],r.lastResortDefaultValue=()=>t.lastResortDefaultValue(),r}}function Oo(t,e){return vo(`${t.name}: ${e}`)}const wo={colorWhite:xo.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:xo.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:xo.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:xo.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:xo.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:xo.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:xo.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:xo.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:xo.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:xo.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:xo.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:xo.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:xo.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:xo.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:xo.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:xo.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:xo.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:xo.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:xo.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:xo.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:xo.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:xo.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:xo.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:xo.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:xo.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:xo.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:xo.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:xo.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:xo.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:xo.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:xo.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:xo.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:xo.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:xo.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:xo.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:xo.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:xo.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:xo.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:xo.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:xo.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:xo.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:xo.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:xo.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:xo.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:xo.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:xo.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:xo.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:xo.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:xo.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:xo.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:xo.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:xo.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:xo.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:xo.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:xo.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:xo.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:xo.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:xo.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:xo.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:xo.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:xo.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:xo.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:xo.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:xo.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:xo.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:xo.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:xo.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:xo.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:xo.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:xo.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:xo.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:xo.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:xo.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:xo.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:xo.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:xo.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:xo.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:xo.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:xo.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:xo.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:xo.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:xo.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:xo.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:xo.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:xo.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:xo.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:xo.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:xo.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:xo.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:xo.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:xo.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:xo.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:xo.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:xo.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:xo.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:xo.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:xo.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:xo.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:xo.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:xo.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:xo.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:xo.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:xo.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:xo.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:xo.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:xo.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:xo.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:xo.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:xo.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:xo.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:xo.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:xo.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:xo.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:xo.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:xo.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:xo.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:xo.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:xo.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:xo.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:xo.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:xo.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:xo.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:xo.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:xo.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:xo.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:xo.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:xo.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:xo.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:xo.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:xo.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:xo.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:xo.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:xo.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:xo.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:xo.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:xo.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:xo.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:xo.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:xo.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:xo.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:xo.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:xo.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:xo.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:xo.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:xo.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:xo.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:xo.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:xo.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:xo.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:xo.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:xo.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:xo.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:xo.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:xo.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:xo.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:xo.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:xo.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:xo.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:xo.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:xo.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:xo.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:xo.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:xo.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:xo.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:xo.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:xo.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:xo.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:xo.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:xo.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:xo.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:xo.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:xo.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:xo.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:xo.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:xo.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:xo.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:xo.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:xo.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:xo.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:xo.create("--ft-icon-size-6","","SIZE","48px"),opacity0:xo.create("--ft-opacity-0","","NUMBER","0"),opacity8:xo.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:xo.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:xo.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:xo.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:xo.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:xo.create("--ft-shadow-elevation-01","","SHADOW","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)"),shadowElevation02:xo.create("--ft-shadow-elevation-02","","SHADOW","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)"),shadowElevation03:xo.create("--ft-shadow-elevation-03","","SHADOW","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)"),shadowElevation04:xo.create("--ft-shadow-elevation-04","","SHADOW","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)"),shadowElevation06:xo.create("--ft-shadow-elevation-06","","SHADOW","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)"),shadowElevation08:xo.create("--ft-shadow-elevation-08","","SHADOW","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)"),shadowElevation12:xo.create("--ft-shadow-elevation-12","","SHADOW","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)"),shadowElevation16:xo.create("--ft-shadow-elevation-16","","SHADOW","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)"),shadowElevation24:xo.create("--ft-shadow-elevation-24","","SHADOW","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)")},So={fontFamily:xo.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:xo.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:xo.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:xo.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-display-textCase","","UNKNOWN","none")},Co={fontFamily:xo.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:xo.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:xo.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:xo.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},No={fontFamily:xo.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:xo.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:xo.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:xo.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},Eo={fontFamily:xo.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:xo.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:xo.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:xo.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},Ro={fontFamily:xo.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:xo.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:xo.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:xo.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:xo.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},$o={fontFamily:xo.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:xo.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:xo.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:xo.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},Io={fontFamily:xo.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:xo.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:xo.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:xo.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},ko={fontFamily:xo.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:xo.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:xo.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:xo.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:xo.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},Lo={fontFamily:xo.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:xo.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:xo.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:xo.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},Uo={fontFamily:xo.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:xo.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:xo.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:xo.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:xo.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:xo.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},Wo={fontFamily:xo.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:xo.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:xo.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:xo.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},Ao={fontFamily:xo.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:xo.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:xo.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:xo.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:xo.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},Bo={fontFamily:xo.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:xo.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:xo.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:xo.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:xo.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},Fo={fontFamily:xo.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:xo.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:xo.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:xo.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:xo.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:xo.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},zo={fontFamily:xo.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:xo.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:xo.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:xo.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:xo.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},Po={fontFamily:xo.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:xo.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:xo.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:xo.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:xo.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},_o={fontFamily:xo.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:xo.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:xo.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:xo.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:xo.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:xo.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},jo={fontFamily:xo.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:xo.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},Mo={fontFamily:xo.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:xo.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},Do={fontFamily:xo.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:xo.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:xo.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},To={fontFamily:xo.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:xo.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},Ko={fontFamily:xo.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:xo.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},Zo={fontFamily:xo.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:xo.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:xo.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},Ho={fontFamily:xo.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:xo.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},Go={fontFamily:xo.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:xo.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},Vo={fontFamily:xo.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:xo.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:xo.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},qo={display:So,"title-1":Co,"title-2":No,"title-3":Eo,"body-1-regular":Ro,"body-1-medium":$o,"body-1-semibold":Io,"body-2-regular":ko,"body-2-medium":Lo,"body-2-medium-underline":Uo,"body-2-semibold":Wo,"label-1-medium":Ao,"label-1-semibold":Bo,"label-1-bold":Fo,"label-2-medium":zo,"label-2-semibold":Po,"label-2-bold":_o,"caption-1-medium":jo,"caption-1-semibold":Mo,"caption-1-bold":Do,"caption-2-medium":To,"caption-2-semibold":Ko,"caption-2-bold":Zo,"caption-3-medium":Ho,"caption-3-semibold":Go,"caption-3-bold":Vo},Yo={backgroundActionPrimary:xo.extend("--ft-background-action-primary","Used as backgorund of primary action components.",wo.colorBrand0),backgroundErrorSubtle:xo.extend("--ft-background-error-subtle","Used as background of subtle error components.",wo.colorRed10),backgroundInfoSubtle:xo.extend("--ft-background-info-subtle","Used as background of subtle information components.",wo.colorCyan10),backgroundWarningSubtle:xo.extend("--ft-background-warning-subtle","Used as background of subtle information components.",wo.colorOrange10),backgroundSuccessSubtle:xo.extend("--ft-background-success-subtle","Used as background of subtle success components.",wo.colorGreen10),backgroundGlobalSurface:xo.extend("--ft-background-global-surface","Used as app background.",wo.colorWhite),backgroundGlobalOnSurface:xo.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",wo.colorGray10),backgroundGlobalOnSurfaceDark:xo.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",wo.colorGray30),contentActionPrimary:xo.extend("--ft-content-action-primary","Used on label of primary action on light surface.",wo.colorBrand0),contentWarningPrimary:xo.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",wo.colorOrange200),contentWarningIconOnly:xo.extend("--ft-content-warning-icon-only","Used on warning status icons alone",wo.colorOrange0),contentErrorPrimary:xo.extend("--ft-content-error-primary","Used on label of error messages on light surface.",wo.colorRed0),contentErrorIconOnly:xo.extend("--ft-content-error-icon-only","Used on error status icons alone",wo.colorRed70),contentInfoPrimary:xo.extend("--ft-content-info-primary","Used on label of information messages on light surface.",wo.colorCyan200),contentInfoIconOnly:xo.extend("--ft-content-info-icon-only","Used on info status icons alone",wo.colorCyan0),contentSuccessPrimary:xo.extend("--ft-content-success-primary","Used on label of success messages on light surface.",wo.colorGreen200),contentSuccessIconOnly:xo.extend("--ft-content-success-icon-only","Used on success status icons alone",wo.colorGreen0),contentGlobalPrimary:xo.extend("--ft-content-global-primary","Used for main content on the page.",wo.colorGray500),contentGlobalSecondary:xo.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",wo.colorGray200),contentGlobalSubtle:xo.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",wo.colorGray0),contentGlobalOnColor:xo.extend("--ft-content-global-on-color","Used for content on a dominant color.",wo.colorWhite),borderActionPrimary:xo.extend("--ft-border-action-primary","Used as border for primary action components.",wo.colorBrand0),borderActionFocusRing:xo.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",wo.colorCyan0),borderWarningPrimary:xo.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",wo.colorOrange200),borderWarningSubtle:xo.extend("--ft-border-warning-subtle","Used as border for warning components.",wo.colorOrange30),borderSuccessPrimary:xo.extend("--ft-border-success-primary","Used as border for success buttons.",wo.colorGreen200),borderSuccessSubtle:xo.extend("--ft-border-success-subtle","Used as border for success components.",wo.colorGreen30),borderErrorPrimary:xo.extend("--ft-border-error-primary","Used as border for text fields in error states.",wo.colorRed0),borderErrorSubtle:xo.extend("--ft-border-error-subtle","Used as border for error components.",wo.colorRed30),borderInfoPrimary:xo.extend("--ft-border-info-primary","Used as border for buttons in info color.",wo.colorCyan200),borderInfoSubtle:xo.extend("--ft-border-info-subtle","Used as border for information components.",wo.colorCyan30),borderGlobalPrimary:xo.extend("--ft-border-global-primary","Used as border for element like input.",wo.colorGray50),borderGlobalSubtle:xo.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",wo.colorGray30),borderInputPrimary:xo.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",wo.colorGray80)},Jo={largeHeight:xo.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:xo.extend("--ft-button-large-horizontal-padding","",wo.spacing4),largeGap:xo.extend("--ft-button-large-gap","",wo.spacing2),largeBorderRadius:xo.extend("--ft-button-large-border-radius","",wo.borderRadiusS),largeIconSize:xo.extend("--ft-button-large-icon-size","",wo.iconSize3),largeBorderWidth:xo.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:xo.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:xo.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:xo.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:xo.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:xo.extend("--ft-button-small-horizontal-padding","",wo.spacing3),smallGap:xo.extend("--ft-button-small-gap","",wo.spacing2),smallBorderRadius:xo.extend("--ft-button-small-border-radius","",wo.borderRadiusS),smallIconSize:xo.extend("--ft-button-small-icon-size","",wo.iconSize2),smallBorderWidth:xo.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:xo.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:xo.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:xo.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:xo.extend("--ft-button-primary-background-color","",Yo.backgroundActionPrimary),primaryColor:xo.extend("--ft-button-primary-color","",Yo.contentGlobalOnColor),primaryIconColor:xo.extend("--ft-button-primary-icon-color","",Yo.contentGlobalOnColor),primaryStateLayerColor:xo.extend("--ft-button-primary-state-layer-color","",Yo.contentGlobalOnColor),primaryHoverStateLayerOpacity:xo.extend("--ft-button-primary-hover-state-layer-opacity","",wo.opacity16),primaryFocusStateLayerOpacity:xo.extend("--ft-button-primary-focus-state-layer-opacity","",wo.opacity16),primaryActiveStateLayerOpacity:xo.extend("--ft-button-primary-active-state-layer-opacity","",wo.opacity24),primaryDisabledComponentOpacity:xo.extend("--ft-button-primary-disabled-component-opacity","",wo.opacity40),focusFocusRingColor:xo.extend("--ft-button-focus-focus-ring-color","",Yo.borderActionFocusRing),tertiaryBackgroundColor:xo.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:xo.extend("--ft-button-tertiary-color","",Yo.contentActionPrimary),tertiaryIconColor:xo.extend("--ft-button-tertiary-icon-color","",Yo.contentActionPrimary),tertiaryStateLayerColor:xo.extend("--ft-button-tertiary-state-layer-color","",Yo.contentActionPrimary),tertiaryHoverStateLayerOpacity:xo.extend("--ft-button-tertiary-hover-state-layer-opacity","",wo.opacity8),tertiaryFocusStateLayerOpacity:xo.extend("--ft-button-tertiary-focus-state-layer-opacity","",wo.opacity8),tertiaryActiveStateLayerOpacity:xo.extend("--ft-button-tertiary-active-state-layer-opacity","",wo.opacity16),tertiaryDisabledComponentOpacity:xo.extend("--ft-button-tertiary-disabled-component-opacity","",wo.opacity40),secondaryBackgroundColor:xo.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:xo.extend("--ft-button-secondary-color","",Yo.contentActionPrimary),secondaryIconColor:xo.extend("--ft-button-secondary-icon-color","",Yo.contentActionPrimary),secondaryStateLayerColor:xo.extend("--ft-button-secondary-state-layer-color","",Yo.contentActionPrimary),secondaryHoverStateLayerOpacity:xo.extend("--ft-button-secondary-hover-state-layer-opacity","",wo.opacity8),secondaryFocusStateLayerOpacity:xo.extend("--ft-button-secondary-focus-state-layer-opacity","",wo.opacity8),secondaryActiveStateLayerOpacity:xo.extend("--ft-button-secondary-active-state-layer-opacity","",wo.opacity16),secondaryDisabledComponentOpacity:xo.extend("--ft-button-secondary-disabled-component-opacity","",wo.opacity40),secondaryBorderColor:xo.extend("--ft-button-secondary-border-color","",Yo.borderActionPrimary),neutralBackgroundColor:xo.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:xo.extend("--ft-button-neutral-icon-color","",Yo.contentGlobalSecondary),neutralColor:xo.extend("--ft-button-neutral-color","",Yo.contentGlobalSecondary),neutralStateLayerColor:xo.extend("--ft-button-neutral-state-layer-color","",Yo.contentGlobalSecondary),neutralHoverStateLayerOpacity:xo.extend("--ft-button-neutral-hover-state-layer-opacity","",wo.opacity8),neutralFocusStateLayerOpacity:xo.extend("--ft-button-neutral-focus-state-layer-opacity","",wo.opacity8),neutralActiveStateLayerOpacity:xo.extend("--ft-button-neutral-active-state-layer-opacity","",wo.opacity16),neutralDisabledComponentOpacity:xo.extend("--ft-button-neutral-disabled-component-opacity","",wo.opacity40)},Qo={iconSize:xo.extend("--ft-banner-icon-size","",wo.iconSize5),borderWidth:xo.create("--ft-banner-border-width","","SIZE","1px"),horizontalPadding:xo.extend("--ft-banner-horizontal-padding","",wo.spacing6),verticalPadding:xo.extend("--ft-banner-vertical-padding","",wo.spacing6),horizontalSideGap:xo.extend("--ft-banner-horizontal-side-gap","",wo.spacing6),horizontalMobileGap:xo.extend("--ft-banner-horizontal-mobile-gap","",wo.spacing4),verticalMobileGap:xo.extend("--ft-banner-vertical-mobile-gap","",wo.spacing6),horizontalMiddleGap:xo.extend("--ft-banner-horizontal-middle-gap","",wo.spacing20),infoBackgroundColor:xo.extend("--ft-banner-info-background-color","",Yo.backgroundInfoSubtle),infoColor:xo.extend("--ft-banner-info-color","",Yo.contentInfoPrimary),infoIconColor:xo.extend("--ft-banner-info-icon-color","",Yo.contentInfoIconOnly)},Xo={horizontalGap:xo.extend("--ft-breadcrumb-horizontal-gap","",wo.spacing1),verticalGap:xo.extend("--ft-breadcrumb-vertical-gap","",wo.spacing2),currentElementColor:xo.extend("--ft-breadcrumb-current-element-color","",Yo.contentGlobalPrimary),iconColor:xo.extend("--ft-breadcrumb-icon-color","",Yo.contentGlobalSubtle)},tr={horizontalPadding:xo.extend("--ft-page-header-horizontal-padding","",wo.spacing12),horizontalGap:xo.extend("--ft-page-header-horizontal-gap","",wo.spacing4),verticalGap:xo.extend("--ft-page-header-vertical-gap","",wo.spacing2),classicVerticalPadding:xo.extend("--ft-page-header-classic-vertical-padding","",wo.spacing6),multilineVerticalPadding:xo.extend("--ft-page-header-multiline-vertical-padding","",wo.spacing4),inlineVerticalPadding:xo.extend("--ft-page-header-inline-vertical-padding","",wo.spacing2),backgroundColor:xo.extend("--ft-page-header-background-color","",wo.colorWhite),bottomBorderColor:xo.extend("--ft-page-header-bottom-border-color","",Yo.borderGlobalSubtle),titleColor:xo.extend("--ft-page-header-title-color","",Yo.contentGlobalPrimary),subtitleColor:xo.extend("--ft-page-header-subtitle-color","",Yo.contentGlobalSecondary)},er={smallContainerWidth:xo.create("--ft-modal-small-container-width","","SIZE","600px"),largeContainerWidth:xo.create("--ft-modal-large-container-width","","SIZE","900px"),overlayBackgroundColor:xo.extend("--ft-modal-overlay-background-color","",wo.colorGray700),overlayOpacity:xo.extend("--ft-modal-overlay-opacity","",wo.opacity40),shadow:xo.extend("--ft-modal-shadow","",wo.shadowElevation03),bodyBackgroundColor:xo.extend("--ft-modal-body-background-color","",wo.colorWhite),bodyColor:xo.extend("--ft-modal-body-color","",Yo.contentGlobalPrimary),bodyHorizontalPadding:xo.extend("--ft-modal-body-horizontal-padding","",wo.spacing6),bodyVerticalPadding:xo.extend("--ft-modal-body-vertical-padding","",wo.spacing6),bodyVerticalGap:xo.extend("--ft-modal-body-vertical-gap","",wo.spacing6),containerMargin:xo.extend("--ft-modal-container-margin","",wo.spacing3),headerBackgroundColor:xo.extend("--ft-modal-header-background-color","",Yo.backgroundGlobalOnSurface),headerBorderColor:xo.extend("--ft-modal-header-border-color","",Yo.borderGlobalSubtle),headerColor:xo.extend("--ft-modal-header-color","",Yo.contentGlobalPrimary),headerTrailingIconColor:xo.extend("--ft-modal-header-trailing-icon-color","",Yo.contentGlobalSecondary),headerVerticalPadding:xo.extend("--ft-modal-header-vertical-padding","",wo.spacing1),headerRightPadding:xo.extend("--ft-modal-header-right-padding","",wo.spacing1),headerLeftPadding:xo.extend("--ft-modal-header-left-padding","",wo.spacing6),headerGap:xo.extend("--ft-modal-header-gap","",wo.spacing2),headerBorderBottom:xo.create("--ft-modal-header-border-bottom","","SIZE","1px"),borderRadius:xo.extend("--ft-modal-border-radius","",wo.borderRadiusM)},or={overlayOpacity:xo.extend("--ft-drawer-overlay-opacity","",wo.opacity40),shadow:xo.extend("--ft-drawer-shadow","",wo.shadowElevation03),bodyColor:xo.extend("--ft-drawer-body-color","",Yo.contentGlobalPrimary),bodyHorizontalPadding:xo.extend("--ft-drawer-body-horizontal-padding","",wo.spacing6),bodyVerticalPadding:xo.extend("--ft-drawer-body-vertical-padding","",wo.spacing6),bodyGap:xo.extend("--ft-drawer-body-gap","",wo.spacing6),bodyBackgroundColor:xo.extend("--ft-drawer-body-background-color","",wo.colorWhite),headerBackgroundColor:xo.extend("--ft-drawer-header-background-color","",Yo.backgroundGlobalOnSurface),headerBorderColor:xo.extend("--ft-drawer-header-border-color","",Yo.borderGlobalSubtle),headerColor:xo.extend("--ft-drawer-header-color","",Yo.contentGlobalPrimary),headerTrailingIconColor:xo.extend("--ft-drawer-header-trailing-icon-color","",Yo.contentGlobalSecondary),headerHeight:xo.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:xo.extend("--ft-drawer-header-horizontal-padding","",wo.spacing2),headerBorderWidth:xo.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:xo.extend("--ft-drawer-header-gap","",wo.spacing3),buttonsBarBackgroundColor:xo.extend("--ft-drawer-buttons-bar-background-color","",Yo.backgroundGlobalOnSurface),buttonsBarBorderColor:xo.extend("--ft-drawer-buttons-bar-border-color","",Yo.borderGlobalSubtle),buttonsBarColor:xo.extend("--ft-drawer-buttons-bar-color","",Yo.contentGlobalPrimary),buttonsBarHorizontalPadding:xo.extend("--ft-drawer-buttons-bar-horizontal-padding","",wo.spacing4),buttonsBarVerticalPadding:xo.extend("--ft-drawer-buttons-bar-vertical-padding","",wo.spacing4),buttonsBarGap:xo.extend("--ft-drawer-buttons-bar-gap","",wo.spacing3),buttonsBarBorderWidth:xo.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:xo.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:xo.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:xo.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:xo.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:xo.extend("--ft-drawer-overlay-background-color","",wo.colorGray700)},rr={fieldHorizontalPadding:xo.extend("--ft-text-input-field-horizontal-padding","",wo.spacing4),fieldHorizontalGap:xo.extend("--ft-text-input-field-horizontal-gap","",wo.spacing3),fieldVerticalGap:xo.extend("--ft-text-input-field-vertical-gap","",wo.spacing05),fieldIconSize:xo.extend("--ft-text-input-field-icon-size","",wo.iconSize3),fieldHeight:xo.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:xo.extend("--ft-text-input-helper-horizontal-padding","",wo.spacing4),helperHorizontalGap:xo.extend("--ft-text-input-helper-horizontal-gap","",wo.spacing1),helperIconSize:xo.extend("--ft-text-input-helper-icon-size","",wo.iconSize2),borderRadius:xo.extend("--ft-text-input-border-radius","",wo.borderRadiusM),backgroundColor:xo.extend("--ft-text-input-background-color","",wo.colorWhite),contentValueColor:xo.extend("--ft-text-input-content-value-color","",Yo.contentGlobalPrimary),trailingIconColor:xo.extend("--ft-text-input-trailing-icon-color","",Yo.contentGlobalSubtle),labelColor:xo.extend("--ft-text-input-label-color","",Yo.contentGlobalSubtle),defaultBorderColor:xo.extend("--ft-text-input-default-border-color","",Yo.borderInputPrimary),defaultHelperTextColor:xo.extend("--ft-text-input-default-helper-text-color","",Yo.contentGlobalSubtle),defaultBorderWidth:xo.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:xo.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:xo.extend("--ft-text-input-error-border-color","",Yo.borderErrorPrimary),errorHelperTextColor:xo.extend("--ft-text-input-error-helper-text-color","",Yo.contentErrorPrimary),errorHelperIconColor:xo.extend("--ft-text-input-error-helper-icon-color","",Yo.contentErrorIconOnly),warningBorderWidth:xo.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:xo.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:xo.extend("--ft-text-input-focus-focus-ring-color","",Yo.borderActionFocusRing),focusOutlineOffset:xo.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:xo.extend("--ft-text-input-disabled-component-opacity","",wo.opacity40)},ir={backgroundColor:xo.extend("--ft-text-area-background-color","",wo.colorWhite),contentValueColor:xo.extend("--ft-text-area-content-value-color","",Yo.contentGlobalPrimary),labelColor:xo.extend("--ft-text-area-label-color","",Yo.contentGlobalSubtle),defaultBorderColor:xo.extend("--ft-text-area-default-border-color","",Yo.borderInputPrimary),defaultHelperTextColor:xo.extend("--ft-text-area-default-helper-text-color","",Yo.contentGlobalSubtle),defaultBorderWidth:xo.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:xo.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:xo.extend("--ft-text-area-error-border-color","",Yo.borderErrorPrimary),errorHelperTextColor:xo.extend("--ft-text-area-error-helper-text-color","",Yo.contentErrorPrimary),errorHelperIconColor:xo.extend("--ft-text-area-error-helper-icon-color","",Yo.contentErrorIconOnly),focusFocusRingColor:xo.extend("--ft-text-area-focus-focus-ring-color","",Yo.borderActionFocusRing),focusOutlineWidth:xo.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:xo.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:xo.extend("--ft-text-area-disabled-component-opacity","",wo.opacity40),fieldHorizontalLeftPadding:xo.extend("--ft-text-area-field-horizontal-left-padding","",wo.spacing4),fieldHorizontalGap:xo.extend("--ft-text-area-field-horizontal-gap","",wo.spacing3),fieldVerticalGap:xo.extend("--ft-text-area-field-vertical-gap","",wo.spacing05),fieldMinHeight:xo.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:xo.extend("--ft-text-area-helper-horizontal-padding","",wo.spacing4),helperHorizontalGap:xo.extend("--ft-text-area-helper-horizontal-gap","",wo.spacing1),helperIconSize:xo.extend("--ft-text-area-helper-icon-size","",wo.iconSize2),borderRadius:xo.extend("--ft-text-area-border-radius","",wo.borderRadiusM)},nr={height:xo.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:xo.extend("--ft-floating-menu-horizontal-padding","",wo.spacing4),offIconColor:xo.extend("--ft-floating-menu-off-icon-color","",Yo.contentGlobalPrimary),offColor:xo.extend("--ft-floating-menu-off-color","",Yo.contentGlobalPrimary),onColor:xo.extend("--ft-floating-menu-on-color","",Yo.contentActionPrimary),onStateLayerColor:xo.extend("--ft-floating-menu-on-state-layer-color","",Yo.contentActionPrimary),gap:xo.extend("--ft-floating-menu-gap","",wo.spacing3),focusFocusRingColor:xo.extend("--ft-floating-menu-focus-focus-ring-color","",Yo.borderActionFocusRing),focusOutlineWidth:xo.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:xo.extend("--ft-floating-menu-focus-state-layer-opacity","",wo.opacity8),hoverStateLayerOpacity:xo.extend("--ft-floating-menu-hover-state-layer-opacity","",wo.opacity8),activeStateLayerOpacity:xo.extend("--ft-floating-menu-active-state-layer-opacity","",wo.opacity16),disabledComponentOpacity:xo.extend("--ft-floating-menu-disabled-component-opacity","",wo.opacity40),iconSize:xo.extend("--ft-floating-menu-icon-size","",wo.iconSize3),backgroundColor:xo.extend("--ft-floating-menu-background-color","",Yo.backgroundGlobalOnSurface)},ar={fieldHorizontalPadding:xo.extend("--ft-combobox-single-select-field-horizontal-padding","",wo.spacing4),fieldHorizontalGap:xo.extend("--ft-combobox-single-select-field-horizontal-gap","",wo.spacing3),fieldVerticalGap:xo.extend("--ft-combobox-single-select-field-vertical-gap","",wo.spacing05),fieldIconSize:xo.extend("--ft-combobox-single-select-field-icon-size","",wo.iconSize3),fieldHeight:xo.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:xo.extend("--ft-combobox-single-select-helper-horizontal-padding","",wo.spacing4),helperHorizontalGap:xo.extend("--ft-combobox-single-select-helper-horizontal-gap","",wo.spacing1),helperVerticalGap:xo.extend("--ft-combobox-single-select-helper-vertical-gap","",wo.spacing1),helperIconSize:xo.extend("--ft-combobox-single-select-helper-icon-size","",wo.iconSize2),menuVerticalGap:xo.extend("--ft-combobox-single-select-menu-vertical-gap","",wo.spacing2),borderRadius:xo.extend("--ft-combobox-single-select-border-radius","",wo.borderRadiusM),backgroundColor:xo.extend("--ft-combobox-single-select-background-color","",wo.colorWhite),labelColor:xo.extend("--ft-combobox-single-select-label-color","",Yo.contentGlobalSubtle),contentValueColor:xo.extend("--ft-combobox-single-select-content-value-color","",Yo.contentGlobalPrimary),trailingIconColor:xo.extend("--ft-combobox-single-select-trailing-icon-color","",Yo.contentGlobalSubtle),defaultBorderColor:xo.extend("--ft-combobox-single-select-default-border-color","",Yo.borderInputPrimary),defaultHelperTextColor:xo.extend("--ft-combobox-single-select-default-helper-text-color","",Yo.contentGlobalSubtle),defaultBorderWidth:xo.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:xo.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:xo.extend("--ft-combobox-single-select-error-border-color","",Yo.borderErrorPrimary),errorHelperTextColor:xo.extend("--ft-combobox-single-select-error-helper-text-color","",Yo.contentErrorPrimary),warningBorderWidth:xo.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:xo.extend("--ft-combobox-single-select-warning-border-color","",Yo.borderWarningPrimary),warningHelperTextColor:xo.extend("--ft-combobox-single-select-warning-helper-text-color","",Yo.contentWarningPrimary),warningHelperIconColor:xo.extend("--ft-combobox-single-select-warning-helper-icon-color","",Yo.contentWarningIconOnly),focusOutlineWidth:xo.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:xo.extend("--ft-combobox-single-select-focus-focus-ring-color","",Yo.borderActionFocusRing),focusOutlineOffset:xo.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:xo.extend("--ft-combobox-single-select-disabled-component-opacity","",wo.opacity40)},sr={backgroundColor:xo.extend("--ft-combobox-multi-select-background-color","",wo.colorWhite),labelColor:xo.extend("--ft-combobox-multi-select-label-color","",Yo.contentGlobalSubtle),trailingIconColor:xo.extend("--ft-combobox-multi-select-trailing-icon-color","",Yo.contentGlobalSubtle),defaultBorderColor:xo.extend("--ft-combobox-multi-select-default-border-color","",Yo.borderInputPrimary),defaultHelperTextColor:xo.extend("--ft-combobox-multi-select-default-helper-text-color","",Yo.contentGlobalSubtle),defaultBorderWidth:xo.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:xo.extend("--ft-combobox-multi-select-error-border-color","",Yo.borderErrorPrimary),errorHelperTextColor:xo.extend("--ft-combobox-multi-select-error-helper-text-color","",Yo.contentErrorPrimary),errorHelperIcon:xo.extend("--ft-combobox-multi-select-error-helper-icon","",Yo.contentErrorIconOnly),errorBorderWidth:xo.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:xo.extend("--ft-combobox-multi-select-warning-border-color","",Yo.borderWarningPrimary),warningHelperTextColor:xo.extend("--ft-combobox-multi-select-warning-helper-text-color","",Yo.contentWarningPrimary),warningHelperIconColor:xo.extend("--ft-combobox-multi-select-warning-helper-icon-color","",Yo.contentWarningIconOnly),warningBorderWidth:xo.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:xo.extend("--ft-combobox-multi-select-focus-focus-ring-color","",Yo.borderActionFocusRing),focusOutlineWidth:xo.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:xo.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:xo.extend("--ft-combobox-multi-select-disabled-component-opacity","",wo.opacity40),helperHorizontalPadding:xo.extend("--ft-combobox-multi-select-helper-horizontal-padding","",wo.spacing4),helperHorizontalGap:xo.extend("--ft-combobox-multi-select-helper-horizontal-gap","",wo.spacing1),helperVerticalGap:xo.extend("--ft-combobox-multi-select-helper-vertical-gap","",wo.spacing1),helperIconSize:xo.extend("--ft-combobox-multi-select-helper-icon-size","",wo.iconSize2),fieldHorizontalPadding:xo.extend("--ft-combobox-multi-select-field-horizontal-padding","",wo.spacing4),fieldHorizontalGap:xo.extend("--ft-combobox-multi-select-field-horizontal-gap","",wo.spacing3),fieldVerticalGap:xo.extend("--ft-combobox-multi-select-field-vertical-gap","",wo.spacing05),fieldIconSize:xo.extend("--ft-combobox-multi-select-field-icon-size","",wo.iconSize3),fieldMaxHeight:xo.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:xo.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",wo.spacing1),contentValuesVerticalGap:xo.extend("--ft-combobox-multi-select-content-values-vertical-gap","",wo.spacing1),borderRadius:xo.extend("--ft-combobox-multi-select-border-radius","",wo.borderRadiusM)},lr={backgroundColor:xo.extend("--ft-popover-background-color","",Yo.backgroundGlobalOnSurface),horizontalPadding:xo.extend("--ft-popover-horizontal-padding","",wo.spacing6),verticalPadding:xo.extend("--ft-popover-vertical-padding","",wo.spacing6),iconColor:xo.extend("--ft-popover-icon-color","",Yo.contentGlobalSecondary),iconSize:xo.extend("--ft-popover-icon-size","",wo.iconSize2),titleColor:xo.extend("--ft-popover-title-color","",Yo.contentGlobalPrimary),bodyColor:xo.extend("--ft-popover-body-color","",Yo.contentGlobalSecondary),linkColor:xo.extend("--ft-popover-link-color","",Yo.contentActionPrimary),gap:xo.extend("--ft-popover-gap","",wo.spacing3),borderRadius:xo.extend("--ft-popover-border-radius","",wo.borderRadiusM),shadow:xo.extend("--ft-popover-shadow","",wo.shadowElevation02)},cr={topLeftBorderRadius:xo.extend("--ft-tabs-top-left-border-radius","",wo.borderRadiusS),topRightBorderRadius:xo.extend("--ft-tabs-top-right-border-radius","",wo.borderRadiusS),labelHorizontalPadding:xo.extend("--ft-tabs-label-horizontal-padding","",wo.spacing4),labelVerticalPadding:xo.extend("--ft-tabs-label-vertical-padding","",wo.spacing3),labelGap:xo.extend("--ft-tabs-label-gap","",wo.spacing1),offHoverStateLayerOpacity:xo.extend("--ft-tabs-off-hover-state-layer-opacity","",wo.opacity8),offFocusStateLayerOpacity:xo.extend("--ft-tabs-off-focus-state-layer-opacity","",wo.opacity8),offActiveStateLayerOpacity:xo.extend("--ft-tabs-off-active-state-layer-opacity","",wo.opacity16),offDisabledComponentOpacity:xo.extend("--ft-tabs-off-disabled-component-opacity","",wo.opacity40),offColor:xo.extend("--ft-tabs-off-color","",Yo.contentGlobalSubtle),offStateLayerColor:xo.extend("--ft-tabs-off-state-layer-color","",Yo.contentGlobalSubtle),onHoverStateLayerOpacity:xo.extend("--ft-tabs-on-hover-state-layer-opacity","",wo.opacity8),onFocusStateLayerOpacity:xo.extend("--ft-tabs-on-focus-state-layer-opacity","",wo.opacity8),onActiveStateLayerOpacity:xo.extend("--ft-tabs-on-active-state-layer-opacity","",wo.opacity16),onDisabledComponentOpacity:xo.extend("--ft-tabs-on-disabled-component-opacity","",wo.opacity40),onColor:xo.extend("--ft-tabs-on-color","",Yo.contentActionPrimary),onStateLayerColor:xo.extend("--ft-tabs-on-state-layer-color","",Yo.contentActionPrimary),iconHorizontalPadding:xo.extend("--ft-tabs-icon-horizontal-padding","",wo.spacing1),iconVerticalPadding:xo.extend("--ft-tabs-icon-vertical-padding","",wo.spacing4),focusOutlineWidth:xo.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:xo.extend("--ft-tabs-focus-focus-ring-color","",Yo.borderActionFocusRing)},fr={hoverStateLayerOpacity:xo.extend("--ft-collapsible-hover-state-layer-opacity","",wo.opacity8),focusStateLayerOpacity:xo.extend("--ft-collapsible-focus-state-layer-opacity","",wo.opacity8),focusOutlineWidth:xo.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:xo.extend("--ft-collapsible-focus-focus-ring-color","",Yo.borderActionFocusRing),activeStateLayerOpacity:xo.extend("--ft-collapsible-active-state-layer-opacity","",wo.opacity16),disabledComponentOpacity:xo.extend("--ft-collapsible-disabled-component-opacity","",wo.opacity40),horizontalPadding:xo.extend("--ft-collapsible-horizontal-padding","",wo.spacing4),verticalPadding:xo.extend("--ft-collapsible-vertical-padding","",wo.spacing3),color:xo.extend("--ft-collapsible-color","",Yo.contentGlobalPrimary),stateLayerColor:xo.extend("--ft-collapsible-state-layer-color","",Yo.contentGlobalPrimary),backgroundColor:xo.extend("--ft-collapsible-background-color","",Yo.backgroundGlobalOnSurface),borderColor:xo.extend("--ft-collapsible-border-color","",Yo.borderGlobalSubtle),iconSize:xo.extend("--ft-collapsible-icon-size","",wo.iconSize3)},hr={groupHorizontalPadding:xo.extend("--ft-switch-group-horizontal-padding","",wo.spacing1),groupVerticalPadding:xo.extend("--ft-switch-group-vertical-padding","",wo.spacing1),groupGap:xo.extend("--ft-switch-group-gap","",wo.spacing1),groupBackgroundColor:xo.extend("--ft-switch-group-background-color","",Yo.backgroundGlobalSurface),groupBorderColor:xo.extend("--ft-switch-group-border-color","",Yo.borderGlobalSubtle),groupBorderRadius:xo.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:xo.extend("--ft-switch-label-horizontal-padding","",wo.spacing2),labelVerticalPadding:xo.extend("--ft-switch-label-vertical-padding","",wo.spacing1),offHoverStateLayerOpacity:xo.extend("--ft-switch-off-hover-state-layer-opacity","",wo.opacity8),offFocusStateLayerOpacity:xo.extend("--ft-switch-off-focus-state-layer-opacity","",wo.opacity8),offActiveStateLayerOpacity:xo.extend("--ft-switch-off-active-state-layer-opacity","",wo.opacity16),offDisabledComponentOpacity:xo.extend("--ft-switch-off-disabled-component-opacity","",wo.opacity40),offColor:xo.extend("--ft-switch-off-color","",Yo.contentGlobalSubtle),offStateLayerColor:xo.extend("--ft-switch-off-state-layer-color","",Yo.contentGlobalSubtle),onHoverStateLayerOpacity:xo.extend("--ft-switch-on-hover-state-layer-opacity","",wo.opacity8),onFocusStateLayerOpacity:xo.extend("--ft-switch-on-focus-state-layer-opacity","",wo.opacity8),onActiveStateLayerOpacity:xo.extend("--ft-switch-on-active-state-layer-opacity","",wo.opacity16),onDisabledComponentOpacity:xo.extend("--ft-switch-on-disabled-component-opacity","",wo.opacity40),onColor:xo.extend("--ft-switch-on-color","",Yo.contentActionPrimary),onStateLayerColor:xo.extend("--ft-switch-on-state-layer-color","",Yo.contentActionPrimary),iconHorizontalPadding:xo.extend("--ft-switch-icon-horizontal-padding","",wo.spacing1),iconVerticalPadding:xo.extend("--ft-switch-icon-vertical-padding","",wo.spacing1),focusOutlineWidth:xo.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:xo.extend("--ft-switch-focus-focus-ring-color","",Yo.borderActionFocusRing),optionBorderRadius:xo.extend("--ft-switch-option-border-radius","",wo.borderRadiusS)},ur={color1Light:xo.extend("--ft-chart-1-light","for area color charts",wo.colorBrand40),color1Base:xo.extend("--ft-chart-1-base","for line charts",wo.colorBrand0),color2Light:xo.extend("--ft-chart-2-light","for area color charts",wo.colorYellow60),color2Base:xo.extend("--ft-chart-2-base","for line charts",wo.colorYellow100),color3Light:xo.extend("--ft-chart-3-light","",wo.colorUltramarine40),color3Base:xo.extend("--ft-chart-3-base","",wo.colorUltramarine70),color4Light:xo.extend("--ft-chart-4-light","",wo.colorCyan50),color4Base:xo.extend("--ft-chart-4-base","",wo.colorCyan100),color5Light:xo.extend("--ft-chart-5-light","",wo.colorRed40),color5Base:xo.extend("--ft-chart-5-base","",wo.colorRed60),color6Light:xo.extend("--ft-chart-6-light","",wo.colorGreen40),color6Base:xo.extend("--ft-chart-6-base","",wo.colorGreen70),color7Light:xo.extend("--ft-chart-7-light","",wo.colorOrange70),color7Base:xo.extend("--ft-chart-7-base","",wo.colorOrange100),color8Light:xo.extend("--ft-chart-8-light","",wo.colorAvocado70),color8Base:xo.extend("--ft-chart-8-base","",wo.colorAvocado200),color9Light:xo.extend("--ft-chart-9-light","",wo.colorBrown50),color9Base:xo.extend("--ft-chart-9-base","",wo.colorBrown200),color10Light:xo.extend("--ft-chart-10-light","",wo.colorGray50),color10Base:xo.extend("--ft-chart-10-base","",wo.colorGray80),monochrome10:xo.extend("--ft-chart-monochrome-10","",wo.colorBrand10),monochrome20:xo.extend("--ft-chart-monochrome-20","",wo.colorBrand20),monochrome30:xo.extend("--ft-chart-monochrome-30","",wo.colorBrand40),monochrome40:xo.extend("--ft-chart-monochrome-40","",wo.colorBrand60),monochrome50:xo.extend("--ft-chart-monochrome-50","",wo.colorBrand0),monochrome60:xo.extend("--ft-chart-monochrome-60","",wo.colorBrand200)},dr={largeHorizontalPadding:xo.extend("--ft-chip-large-horizontal-padding","",wo.spacing4),largeVerticalPadding:xo.extend("--ft-chip-large-vertical-padding","",wo.spacing2),largeGap:xo.extend("--ft-chip-large-gap","",wo.spacing1),largeFocusOutlineOffset:xo.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:xo.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:xo.extend("--ft-chip-large-border-radius","",wo.borderRadiusPill),largeBorderWidth:xo.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:xo.extend("--ft-chip-large-icon-size","",wo.iconSize3),mediumHorizontalPadding:xo.extend("--ft-chip-medium-horizontal-padding","",wo.spacing3),mediumVerticalPadding:xo.extend("--ft-chip-medium-vertical-padding","",wo.spacing1),mediumGap:xo.extend("--ft-chip-medium-gap","",wo.spacing1),mediumFocusOutlineOffset:xo.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:xo.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:xo.extend("--ft-chip-medium-border-radius","",wo.borderRadiusPill),mediumBorderWidth:xo.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:xo.extend("--ft-chip-medium-icon-size","",wo.iconSize2),smallHorizontalPadding:xo.extend("--ft-chip-small-horizontal-padding","",wo.spacing2),smallVerticalPadding:xo.extend("--ft-chip-small-vertical-padding","",wo.spacing05),smallGap:xo.extend("--ft-chip-small-gap","",wo.spacing1),smallFocusOutlineOffset:xo.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:xo.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:xo.extend("--ft-chip-small-border-radius","",wo.borderRadiusPill),smallBorderWidth:xo.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:xo.extend("--ft-chip-small-icon-size","",wo.iconSize1),neutralBackgroundColor:xo.extend("--ft-chip-neutral-background-color","",Yo.backgroundGlobalOnSurface),neutralColor:xo.extend("--ft-chip-neutral-color","",Yo.contentGlobalPrimary),neutralIconColor:xo.extend("--ft-chip-neutral-icon-color","",Yo.contentGlobalPrimary),neutralBorderColor:xo.extend("--ft-chip-neutral-border-color","",Yo.borderGlobalSubtle),infoBackgroundColor:xo.extend("--ft-chip-info-background-color","",Yo.backgroundInfoSubtle),infoColor:xo.extend("--ft-chip-info-color","",Yo.contentInfoPrimary),infoIconColor:xo.extend("--ft-chip-info-icon-color","",Yo.contentInfoIconOnly),infoBorderColor:xo.extend("--ft-chip-info-border-color","",Yo.borderInfoSubtle),successBackgroundColor:xo.extend("--ft-chip-success-background-color","",Yo.backgroundSuccessSubtle),successColor:xo.extend("--ft-chip-success-color","",Yo.contentSuccessPrimary),successIconColor:xo.extend("--ft-chip-success-icon-color","",Yo.contentSuccessIconOnly),successBorderColor:xo.extend("--ft-chip-success-border-color","",Yo.borderSuccessSubtle),warningBackgroundColor:xo.extend("--ft-chip-warning-background-color","",Yo.backgroundWarningSubtle),warningColor:xo.extend("--ft-chip-warning-color","",Yo.contentWarningPrimary),warningIconColor:xo.extend("--ft-chip-warning-icon-color","",Yo.contentWarningIconOnly),warningBorderColor:xo.extend("--ft-chip-warning-border-color","",Yo.borderWarningSubtle),errorBackgroundColor:xo.extend("--ft-chip-error-background-color","",Yo.backgroundErrorSubtle),errorColor:xo.extend("--ft-chip-error-color","",Yo.contentErrorPrimary),errorIconColor:xo.extend("--ft-chip-error-icon-color","",Yo.contentErrorIconOnly),errorBorderColor:xo.extend("--ft-chip-error-border-color","",Yo.borderErrorSubtle)},pr={infoBorderColor:xo.extend("--ft-border-info-border-color","",Yo.borderInfoSubtle)},gr={borderWidth:xo.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:xo.extend("--ft-notice-horizontal-padding","",wo.spacing2),verticalPadding:xo.extend("--ft-notice-vertical-padding","",wo.spacing1),borderRadius:xo.extend("--ft-notice-border-radius","",wo.borderRadiusS),gap:xo.extend("--ft-notice-gap","",wo.spacing2),iconSize:xo.extend("--ft-notice-icon-size","",wo.iconSize3),infoBackgroundColor:xo.extend("--ft-notice-info-background-color","",Yo.backgroundInfoSubtle),infoBorderColor:xo.extend("--ft-notice-info-border-color","",Yo.borderInfoSubtle),infoColor:xo.extend("--ft-notice-info-color","",Yo.contentInfoPrimary),infoIconColor:xo.extend("--ft-notice-info-icon-color","",Yo.contentInfoIconOnly),warningBackgroundColor:xo.extend("--ft-notice-warning-background-color","",Yo.backgroundWarningSubtle),warningBorderColor:xo.extend("--ft-notice-warning-border-color","",Yo.borderWarningSubtle),warningColor:xo.extend("--ft-notice-warning-color","",Yo.contentWarningPrimary),warningIconColor:xo.extend("--ft-notice-warning-icon-color","",Yo.contentWarningIconOnly),errorBackgroundColor:xo.extend("--ft-notice-error-background-color","",Yo.backgroundErrorSubtle),errorBorderColor:xo.extend("--ft-notice-error-border-color","",Yo.borderErrorSubtle),errorColor:xo.extend("--ft-notice-error-color","",Yo.contentErrorPrimary),errorIconColor:xo.extend("--ft-notice-error-icon-color","",Yo.contentErrorIconOnly),successBackgroundColor:xo.extend("--ft-notice-success-background-color","",Yo.backgroundSuccessSubtle),successBorderColor:xo.extend("--ft-notice-success-border-color","",Yo.borderSuccessSubtle),successColor:xo.extend("--ft-notice-success-color","",Yo.contentSuccessPrimary),successIconColor:xo.extend("--ft-notice-success-icon-color","",Yo.contentSuccessIconOnly)},yr={color:xo.extend("--ft-checkbox-color","",Yo.contentGlobalPrimary),checkedBackgroundColor:xo.extend("--ft-checkbox-checked-background-color","",Yo.contentActionPrimary),checkedStateLayerColor:xo.extend("--ft-checkbox-checked-state-layer-color","",Yo.contentActionPrimary),checkedIconColor:xo.extend("--ft-checkbox-checked-icon-color","",Yo.contentGlobalOnColor),checkedHoverStateLayerOpacity:xo.extend("--ft-checkbox-checked-hover-state-layer-opacity","",wo.opacity16),checkedFocusStateLayerOpacity:xo.extend("--ft-checkbox-checked-focus-state-layer-opacity","",wo.opacity16),checkedActiveStateLayerOpacity:xo.extend("--ft-checkbox-checked-active-state-layer-opacity","",wo.opacity24),checkedDisabledComponentOpacity:xo.extend("--ft-checkbox-checked-disabled-component-opacity","",wo.opacity40),uncheckedBorderColor:xo.extend("--ft-checkbox-unchecked-border-color","",wo.colorGray80),uncheckedStateLayerColor:xo.extend("--ft-checkbox-unchecked-state-layer-color","",wo.colorGray80),uncheckedHoverStateLayerOpacity:xo.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",wo.opacity16),uncheckedFocusStateLayerOpacity:xo.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",wo.opacity16),uncheckedActiveStateLayerOpacity:xo.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",wo.opacity24),uncheckedDisabledComponentOpacity:xo.extend("--ft-checkbox-unchecked-disabled-component-opacity","",wo.opacity40),focusFocusRingColor:xo.extend("--ft-checkbox-focus-focus-ring-color","",Yo.borderActionFocusRing),focusOutlineOffset:xo.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:xo.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gap:xo.extend("--ft-checkbox-gap","",wo.spacing3)},br={offHoverStateLayerOpacity:xo.extend("--ft-toggle-off-hover-state-layer-opacity","",wo.opacity16),offFocusStateLayerOpacity:xo.extend("--ft-toggle-off-focus-state-layer-opacity","",wo.opacity16),offActiveStateLayerOpacity:xo.extend("--ft-toggle-off-active-state-layer-opacity","",wo.opacity24),offDisabledComponentOpacity:xo.extend("--ft-toggle-off-disabled-component-opacity","",wo.opacity40),offBackgroundColor:xo.extend("--ft-toggle-off-background-color","",Yo.contentGlobalSubtle),offIconColor:xo.extend("--ft-toggle-off-icon-color","",Yo.contentGlobalSubtle),offStateLayerColor:xo.extend("--ft-toggle-off-state-layer-color","",Yo.contentGlobalSubtle),onHoverStateLayerOpacity:xo.extend("--ft-toggle-on-hover-state-layer-opacity","",wo.opacity16),onFocusStateLayerOpacity:xo.extend("--ft-toggle-on-focus-state-layer-opacity","",wo.opacity16),onActiveStateLayerOpacity:xo.extend("--ft-toggle-on-active-state-layer-opacity","",wo.opacity24),onDisabledComponentOpacity:xo.extend("--ft-toggle-on-disabled-component-opacity","",wo.opacity40),onBackgroundColor:xo.extend("--ft-toggle-on-background-color","",Yo.contentActionPrimary),onStateLayerColor:xo.extend("--ft-toggle-on-state-layer-color","",Yo.contentActionPrimary),onIconColor:xo.extend("--ft-toggle-on-icon-color","",Yo.contentActionPrimary),color:xo.extend("--ft-toggle-color","",Yo.contentGlobalPrimary),focusFocusRingColor:xo.extend("--ft-toggle-focus-focus-ring-color","",Yo.borderActionFocusRing),gap:xo.extend("--ft-toggle-gap","",wo.spacing3)},mr={color:xo.extend("--ft-radio-color","",Yo.contentGlobalPrimary),selectedRadioColor:xo.extend("--ft-radio-selected-radio-color","",Yo.contentActionPrimary),selectedStateLayerColor:xo.extend("--ft-radio-selected-state-layer-color","",Yo.contentActionPrimary),selectedHoverStateLayerOpacity:xo.extend("--ft-radio-selected-hover-state-layer-opacity","",wo.opacity16),selectedFocusStateLayerOpacity:xo.extend("--ft-radio-selected-focus-state-layer-opacity","",wo.opacity16),selectedActiveStateLayerOpacity:xo.extend("--ft-radio-selected-active-state-layer-opacity","",wo.opacity24),selectedDisabledComponentOpacity:xo.extend("--ft-radio-selected-disabled-component-opacity","",wo.opacity40),unselectedStateLayerColor:xo.extend("--ft-radio-unselected-state-layer-color","",Yo.borderInputPrimary),unselectedBorderColor:xo.extend("--ft-radio-unselected-border-color","",Yo.borderInputPrimary),unselectedHoverStateLayerOpacity:xo.extend("--ft-radio-unselected-hover-state-layer-opacity","",wo.opacity16),unselectedFocusStateLayerOpacity:xo.extend("--ft-radio-unselected-focus-state-layer-opacity","",wo.opacity16),unselectedActiveStateLayerOpacity:xo.extend("--ft-radio-unselected-active-state-layer-opacity","",wo.opacity24),unselectedDisabledComponentOpacity:xo.extend("--ft-radio-unselected-disabled-component-opacity","",wo.opacity40),focusFocusRingColor:xo.extend("--ft-radio-focus-focus-ring-color","",Yo.borderActionFocusRing),focusOutlineOffset:xo.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:xo.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:xo.extend("--ft-radio-gap","",wo.spacing3)},vr={iconSize:xo.extend("--ft-notification-icon-size","",wo.iconSize4),horizontalPadding:xo.extend("--ft-notification-horizontal-padding","",wo.spacing4),verticalPadding:xo.extend("--ft-notification-vertical-padding","",wo.spacing4),infoBackgroundColor:xo.extend("--ft-notification-info-background-color","",Yo.backgroundInfoSubtle),infoColor:xo.extend("--ft-notification-info-color","",Yo.contentInfoPrimary),infoIconColor:xo.extend("--ft-notification-info-icon-color","",Yo.contentInfoIconOnly),infoBorderColor:xo.extend("--ft-notification-info-border-color","",Yo.borderInfoSubtle),successBackgroundColor:xo.extend("--ft-notification-success-background-color","",Yo.backgroundSuccessSubtle),successColor:xo.extend("--ft-notification-success-color","",Yo.contentSuccessPrimary),successIconColor:xo.extend("--ft-notification-success-icon-color","",Yo.contentSuccessIconOnly),successBorderColor:xo.extend("--ft-notification-success-border-color","",Yo.borderSuccessSubtle),warningBackgroundColor:xo.extend("--ft-notification-warning-background-color","",Yo.backgroundWarningSubtle),warningColor:xo.extend("--ft-notification-warning-color","",Yo.contentWarningPrimary),warningIconColor:xo.extend("--ft-notification-warning-icon-color","",Yo.contentWarningIconOnly),warningBorderColor:xo.extend("--ft-notification-warning-border-color","",Yo.borderWarningSubtle),errorBackgroundColor:xo.extend("--ft-notification-error-background-color","",Yo.backgroundErrorSubtle),errorColor:xo.extend("--ft-notification-error-color","",Yo.contentErrorPrimary),errorIconColor:xo.extend("--ft-notification-error-icon-color","",Yo.contentErrorIconOnly),errorBorderColor:xo.extend("--ft-notification-error-border-color","",Yo.borderErrorSubtle),borderRadius:xo.extend("--ft-notification-border-radius","",wo.borderRadiusPill),borderWidth:xo.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:xo.extend("--ft-notification-leading-gap","",wo.spacing2),trailingGap:xo.extend("--ft-notification-trailing-gap","",wo.spacing8)},xr={horizontalPadding:xo.extend("--ft-tooltip-horizontal-padding","",wo.spacing2),verticalPadding:xo.extend("--ft-tooltip-vertical-padding","",wo.spacing2),borderRadius:xo.extend("--ft-tooltip-border-radius","",wo.borderRadiusS),color:xo.extend("--ft-tooltip-color","",Yo.contentGlobalOnColor),backgroundColor:xo.extend("--ft-tooltip-background-color","",Yo.contentGlobalPrimary),backgroundOpacity:xo.extend("--ft-tooltip-background-opacity","",wo.opacity80),shadow:xo.extend("--ft-tooltip-shadow","",wo.shadowElevation03),maxWidth:xo.create("--ft-tooltip-max-width","","SIZE","256px"),gap:xo.extend("--ft-tooltip-gap","",wo.spacing05)};var Or=Object.freeze({__proto__:null,FtCssVariableFactory:xo,banner:Qo,border:pr,breadcrumb:Xo,button:Jo,chart:ur,checkbox:yr,chip:dr,collapsible:fr,comboboxMultiSelect:sr,comboboxSingleSelect:ar,drawer:or,floatingMenu:nr,foundation:wo,modal:er,notice:gr,notification:vr,pageHeader:tr,popover:lr,radio:mr,semantic:Yo,setVariable:Oo,switch_:hr,tabs:cr,textArea:ir,textInput:rr,toggle:br,tooltip:xr,typographies:qo,typographyBody1Medium:$o,typographyBody1Regular:Ro,typographyBody1Semibold:Io,typographyBody2Medium:Lo,typographyBody2MediumUnderline:Uo,typographyBody2Regular:ko,typographyBody2Semibold:Wo,typographyCaption1Bold:Do,typographyCaption1Medium:jo,typographyCaption1Semibold:Mo,typographyCaption2Bold:Zo,typographyCaption2Medium:To,typographyCaption2Semibold:Ko,typographyCaption3Bold:Vo,typographyCaption3Medium:Ho,typographyCaption3Semibold:Go,typographyDisplay:So,typographyLabel1Bold:Fo,typographyLabel1Medium:Ao,typographyLabel1Semibold:Bo,typographyLabel2Bold:_o,typographyLabel2Medium:zo,typographyLabel2Semibold:Po,typographyTitle1:Co,typographyTitle2:No,typographyTitle3:Eo,typographyVariants:["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","label-1","label-2","caption-1","caption-2","caption-3"]});const wr={colorPrimary:xo.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:xo.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:xo.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:xo.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:xo.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:xo.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:xo.create("--ft-color-error","","COLOR","#B00020"),colorOutline:xo.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:xo.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:xo.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:xo.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:xo.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:xo.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:xo.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:xo.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:xo.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:xo.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:xo.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:xo.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:xo.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:xo.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:xo.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:xo.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:xo.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:xo.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:xo.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:xo.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:xo.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:xo.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:xo.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:xo.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:xo.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:xo.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:xo.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:xo.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:xo.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:xo.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:xo.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:xo.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:xo.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:xo.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:xo.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:xo.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:xo.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:xo.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:xo.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:xo.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:xo.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:xo.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:xo.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:xo.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:xo.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:xo.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:xo.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:xo.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:xo.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:xo.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:xo.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:xo.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:xo.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:xo.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:xo.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var Sr=Object.freeze({__proto__:null,designSystemVariables:wr});class Cr extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}}class Nr extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}}class Er extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}}var Rr=Object.freeze({__proto__:null,FtNotificationEvent:Cr,PostResizeEvent:Er,PreResizeEvent:Nr});const $r=["start","end"],Ir=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+$r[0],e+"-"+$r[1])),[]),kr=Math.min,Lr=Math.max,Ur=Math.round,Wr=t=>({x:t,y:t}),Ar={left:"right",right:"left",bottom:"top",top:"bottom"},Br={start:"end",end:"start"};function Fr(t,e,o){return Lr(t,kr(e,o))}function zr(t,e){return"function"==typeof t?t(e):t}function Pr(t){return t.split("-")[0]}function _r(t){return t.split("-")[1]}function jr(t){return"x"===t?"y":"x"}function Mr(t){return"y"===t?"height":"width"}function Dr(t){return["top","bottom"].includes(Pr(t))?"y":"x"}function Tr(t){return jr(Dr(t))}function Kr(t){return t.replace(/left|right|bottom|top/g,(t=>Ar[t]))}function Zr(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Hr(t,e,o){let{reference:r,floating:i}=t;const n=Dr(e),a=Tr(e),s=Mr(a),l=Pr(e),c="y"===n,f=r.x+r.width/2-i.width/2,h=r.y+r.height/2-i.height/2,u=r[s]/2-i[s]/2;let d;switch(l){case"top":d={x:f,y:r.y-i.height};break;case"bottom":d={x:f,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:h};break;case"left":d={x:r.x-i.width,y:h};break;default:d={x:r.x,y:r.y}}switch(_r(e)){case"start":d[a]-=u*(o&&c?-1:1);break;case"end":d[a]+=u*(o&&c?-1:1)}return d}async function Gr(t,e){var o;void 0===e&&(e={});const{x:r,y:i,platform:n,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:u=!1,padding:d=0}=zr(e,t),p=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}}(d),g=s[u?"floating"===h?"reference":"floating":h],y=Zr(await n.getClippingRect({element:null==(o=await(null==n.isElement?void 0:n.isElement(g)))||o?g:g.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:c,rootBoundary:f,strategy:l})),b="floating"===h?{...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=Zr(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:l}):b);return{top:(y.top-x.top+p.top)/v.y,bottom:(x.bottom-y.bottom+p.bottom)/v.y,left:(y.left-x.left+p.left)/v.x,right:(x.right-y.right+p.right)/v.x}}function Vr(t,e,o){return(t?[...o.filter((e=>_r(e)===t)),...o.filter((e=>_r(e)!==t))]:o.filter((t=>Pr(t)===t))).filter((o=>!t||(_r(o)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>Br[t]))}(o)!==o)))}const qr=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:l,elements:c}=e,{crossAxis:f=!1,alignment:h,allowedPlacements:u=Ir,autoAlignment:d=!0,...p}=zr(t,e),g=void 0!==h||u===Ir?Vr(h||null,d,u):u,y=await Gr(e,p),b=(null==(o=a.autoPlacement)?void 0:o.index)||0,m=g[b];if(null==m)return{};const v=function(t,e,o){void 0===o&&(o=!1);const r=_r(t),i=Tr(t),n=Mr(i);let a="x"===i?r===(o?"end":"start")?"right":"left":"start"===r?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=Kr(a)),[a,Kr(a)]}(m,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==m)return{reset:{placement:g[0]}};const x=[y[Pr(m)],y[v[0]],y[v[1]]],O=[...(null==(r=a.autoPlacement)?void 0:r.overflows)||[],{placement:m,overflows:x}],w=g[b+1];if(w)return{data:{index:b+1,overflows:O},reset:{placement:w}};const S=O.map((t=>{const e=_r(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])),C=S.filter((t=>t[2].slice(0,_r(t[0])?2:3).every((t=>t<=0)))),N=(null==(i=C[0])?void 0:i[0])||S[0][0];return N!==s?{data:{index:b+1,overflows:O},reset:{placement:N}}:{}}}};function Yr(t){return Xr(t)?(t.nodeName||"").toLowerCase():"#document"}function Jr(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Qr(t){var e;return null==(e=(Xr(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Xr(t){return t instanceof Node||t instanceof Jr(t).Node}function ti(t){return t instanceof Element||t instanceof Jr(t).Element}function ei(t){return t instanceof HTMLElement||t instanceof Jr(t).HTMLElement}function oi(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Jr(t).ShadowRoot)}function ri(t){const{overflow:e,overflowX:o,overflowY:r,display:i}=li(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+o)&&!["inline","contents"].includes(i)}function ii(t){return["table","td","th"].includes(Yr(t))}function ni(t){const e=ai(),o=li(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 ai(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function si(t){return["html","body","#document"].includes(Yr(t))}function li(t){return Jr(t).getComputedStyle(t)}function ci(t){return ti(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function fi(t){if("html"===Yr(t))return t;const e=t.assignedSlot||t.parentNode||oi(t)&&t.host||Qr(t);return oi(e)?e.host:e}function hi(t){const e=fi(t);return si(e)?t.ownerDocument?t.ownerDocument.body:t.body:ei(e)&&ri(e)?e:hi(e)}function ui(t,e,o){var r;void 0===e&&(e=[]),void 0===o&&(o=!0);const i=hi(t),n=i===(null==(r=t.ownerDocument)?void 0:r.body),a=Jr(i);return n?e.concat(a,a.visualViewport||[],ri(i)?i:[],a.frameElement&&o?ui(a.frameElement):[]):e.concat(i,ui(i,[],o))}function di(t){const e=li(t);let o=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=ei(t),n=i?t.offsetWidth:o,a=i?t.offsetHeight:r,s=Ur(o)!==n||Ur(r)!==a;return s&&(o=n,r=a),{width:o,height:r,$:s}}function pi(t){return ti(t)?t:t.contextElement}function gi(t){const e=pi(t);if(!ei(e))return Wr(1);const o=e.getBoundingClientRect(),{width:r,height:i,$:n}=di(e);let a=(n?Ur(o.width):o.width)/r,s=(n?Ur(o.height):o.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const yi=Wr(0);function bi(t){const e=Jr(t);return ai()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:yi}function mi(t,e,o,r){void 0===e&&(e=!1),void 0===o&&(o=!1);const i=t.getBoundingClientRect(),n=pi(t);let a=Wr(1);e&&(r?ti(r)&&(a=gi(r)):a=gi(t));const s=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==Jr(t))&&e}(n,o,r)?bi(n):Wr(0);let l=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,f=i.width/a.x,h=i.height/a.y;if(n){const t=Jr(n),e=r&&ti(r)?Jr(r):r;let o=t.frameElement;for(;o&&r&&e!==t;){const t=gi(o),e=o.getBoundingClientRect(),r=li(o),i=e.left+(o.clientLeft+parseFloat(r.paddingLeft))*t.x,n=e.top+(o.clientTop+parseFloat(r.paddingTop))*t.y;l*=t.x,c*=t.y,f*=t.x,h*=t.y,l+=i,c+=n,o=Jr(o).frameElement}}return Zr({width:f,height:h,x:l,y:c})}function vi(t){return mi(Qr(t)).left+ci(t).scrollLeft}function xi(t,e,o){let r;if("viewport"===e)r=function(t,e){const o=Jr(t),r=Qr(t),i=o.visualViewport;let n=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){n=i.width,a=i.height;const t=ai();(!t||t&&"fixed"===e)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:n,height:a,x:s,y:l}}(t,o);else if("document"===e)r=function(t){const e=Qr(t),o=ci(t),r=t.ownerDocument.body,i=Lr(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),n=Lr(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let a=-o.scrollLeft+vi(t);const s=-o.scrollTop;return"rtl"===li(r).direction&&(a+=Lr(e.clientWidth,r.clientWidth)-i),{width:i,height:n,x:a,y:s}}(Qr(t));else if(ti(e))r=function(t,e){const o=mi(t,!0,"fixed"===e),r=o.top+t.clientTop,i=o.left+t.clientLeft,n=ei(t)?gi(t):Wr(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=bi(t);r={...e,x:e.x-o.x,y:e.y-o.y}}return Zr(r)}function Oi(t,e){const o=fi(t);return!(o===e||!ti(o)||si(o))&&("fixed"===li(o).position||Oi(o,e))}function wi(t,e,o){const r=ei(e),i=Qr(e),n="fixed"===o,a=mi(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const l=Wr(0);if(r||!r&&!n)if(("body"!==Yr(e)||ri(i))&&(s=ci(e)),r){const t=mi(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else i&&(l.x=vi(i));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Si(t,e){return ei(t)&&"fixed"!==li(t).position?e?e(t):t.offsetParent:null}function Ci(t,e){const o=Jr(t);if(!ei(t))return o;let r=Si(t,e);for(;r&&ii(r)&&"static"===li(r).position;)r=Si(r,e);return r&&("html"===Yr(r)||"body"===Yr(r)&&"static"===li(r).position&&!ni(r))?o:r||function(t){let e=fi(t);for(;ei(e)&&!si(e);){if(ni(e))return e;e=fi(e)}return null}(t)||o}const Ni={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:r}=t;const i=ei(o),n=Qr(o);if(o===n)return e;let a={scrollLeft:0,scrollTop:0},s=Wr(1);const l=Wr(0);if((i||!i&&"fixed"!==r)&&(("body"!==Yr(o)||ri(n))&&(a=ci(o)),ei(o))){const t=mi(o);s=gi(o),l.x=t.x+o.clientLeft,l.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+l.x,y:e.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:Qr,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=ui(t,[],!1).filter((t=>ti(t)&&"body"!==Yr(t))),i=null;const n="fixed"===li(t).position;let a=n?fi(t):t;for(;ti(a)&&!si(a);){const e=li(a),o=ni(a);o||"fixed"!==e.position||(i=null),(n?!o&&!i:!o&&"static"===e.position&&i&&["absolute","fixed"].includes(i.position)||ri(a)&&!o&&Oi(t,a))?r=r.filter((t=>t!==a)):i=e,a=fi(a)}return e.set(t,r),r}(e,this._c):[].concat(o),r],a=n[0],s=n.reduce(((t,o)=>{const r=xi(e,o,i);return t.top=Lr(r.top,t.top),t.right=kr(r.right,t.right),t.bottom=kr(r.bottom,t.bottom),t.left=Lr(r.left,t.left),t}),xi(e,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Ci,getElementRects:async function(t){let{reference:e,floating:o,strategy:r}=t;const i=this.getOffsetParent||Ci,n=this.getDimensions;return{reference:wi(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 di(t)},getScale:gi,isElement:ti,isRTL:function(t){return"rtl"===li(t).direction}},Ei=(t,e,o)=>{const r=new Map,i={platform:Ni,...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),l=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:h}=Hr(c,r,l),u=r,d={},p=0;for(let o=0;o<s.length;o++){const{name:n,fn:g}=s[o],{x:y,y:b,data:m,reset:v}=await g({x:f,y:h,initialPlacement:r,placement:u,strategy:i,middlewareData:d,rects:c,platform:a,elements:{reference:t,floating:e}});f=null!=y?y:f,h=null!=b?b:h,d={...d,[n]:{...d[n],...m}},v&&p<=50&&(p++,"object"==typeof v&&(v.placement&&(u=v.placement),v.rects&&(c=!0===v.rects?await a.getElementRects({reference:t,floating:e,strategy:i}):v.rects),({x:f,y:h}=Hr(c,u,l))),o=-1)}return{x:f,y:h,placement:u,strategy:i,middlewareData:d}})(t,e,{...i,platform:n})};function Ri(t){return function(t){for(let e=t;e;e=$i(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=$i(t);e;e=$i(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 $i(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}async function Ii(t,e,o){return Ei(t,e,{platform:{...Ni,getOffsetParent:t=>Ni.getOffsetParent(t,Ri)},middleware:[(r={crossAxis:!0},void 0===r&&(r={}),{name:"shift",options:r,async fn(t){const{x:e,y:o,placement:i}=t,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...l}=zr(r,t),c={x:e,y:o},f=await Gr(t,l),h=Dr(Pr(i)),u=jr(h);let d=c[u],p=c[h];if(n){const t="y"===u?"bottom":"right";d=Fr(d+f["y"===u?"top":"left"],d,d-f[t])}if(a){const t="y"===h?"bottom":"right";p=Fr(p+f["y"===h?"top":"left"],p,p-f[t])}const g=s.fn({...t,[u]:d,[h]:p});return{...g,data:{x:g.x-e,y:g.y-o}}}}),qr({allowedPlacements:[o]})]});var r}var ki=Object.freeze({__proto__:null,computeOffsetPosition:Ii});
|
|
136
|
-
/**
|
|
137
|
-
* @license
|
|
138
|
-
* Copyright 2019 Google LLC
|
|
139
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
140
|
-
*/const Li=window,Ui=Li.ShadowRoot&&(void 0===Li.ShadyCSS||Li.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;class Wi extends be{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((t,e)=>{Ui?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),r=Li.litNonce;void 0!==r&&o.setAttribute("nonce",r),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var Ai,Bi=Object.freeze({__proto__:null,ScopedRegistryLitElement:Wi}),Fi=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 zi=Symbol("constructorPrototype"),Pi=Symbol("constructorName"),_i=Symbol("exportpartsDebouncer");class ji extends Wi{constructor(){super(),this.adoptedCustomStyleSheet=new CSSStyleSheet,this.useAdoptedStyleSheets=!0,this[Ai]=new so(5),this[Pi]=this.constructor.name,this[zi]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Pi]&&Object.setPrototypeOf(this,this[zi])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet])}catch(t){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",t)}}updated(t){super.updated(t),this.updateComplete.then((()=>{this.contentAvailableCallback(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()}))}contentAvailableCallback(t){}applyCustomStylesheet(t){var e,o,r;if(this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync(null!==(e=this.customStylesheet)&&void 0!==e?e:"")}catch(t){console.error(t,this.customStylesheet)}}else if((null!==(r=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==r?r:[]).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(){var t,e,o;((null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())||null!==(o=null===(e=this.exportpartsPrefixes)||void 0===e?void 0:e.length)&&void 0!==o&&o)&&this[_i].run((()=>{var t,e;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&(null===(e=this.exportpartsPrefixes)||void 0===e?void 0:e.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,o,r,i,n,a;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=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=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const f=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}Ai=_i,Fi([Se()],ji.prototype,"exportpartsPrefix",void 0),Fi([yo([])],ji.prototype,"exportpartsPrefixes",void 0),Fi([Se()],ji.prototype,"customStylesheet",void 0);var Mi=Object.freeze({__proto__:null,FtLitElement:ji}),Di=Object.freeze({__proto__:null});class Ti{constructor(t,e=!0,o=[],r=5e3){this.ctx=t,this.iframes=e,this.exclude=o,this.iframesTimeout=r}static matches(t,e){const o="string"==typeof e?[e]:e,r=t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;if(r){let e=!1;return o.every((o=>!r.call(t,o)||(e=!0,!1))),e}return!1}getContexts(){let t,e=[];return t=void 0!==this.ctx&&this.ctx?NodeList.prototype.isPrototypeOf(this.ctx)?Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?this.ctx:"string"==typeof this.ctx?Array.prototype.slice.call(document.querySelectorAll(this.ctx)):[this.ctx]:[],t.forEach((t=>{const o=e.filter((e=>e.contains(t))).length>0;-1!==e.indexOf(t)||o||e.push(t)})),e}getIframeContents(t,e,o=(()=>{})){let r;try{const e=t.contentWindow;if(r=e.document,!e||!r)throw new Error("iframe inaccessible")}catch(t){o()}r&&e(r)}isIframeBlank(t){const e="about:blank",o=t.getAttribute("src").trim();return t.contentWindow.location.href===e&&o!==e&&o}observeIframeLoad(t,e,o){let r=!1,i=null;const n=()=>{if(!r){r=!0,clearTimeout(i);try{this.isIframeBlank(t)||(t.removeEventListener("load",n),this.getIframeContents(t,e,o))}catch(t){o()}}};t.addEventListener("load",n),i=setTimeout(n,this.iframesTimeout)}onIframeReady(t,e,o){try{"complete"===t.contentWindow.document.readyState?this.isIframeBlank(t)?this.observeIframeLoad(t,e,o):this.getIframeContents(t,e,o):this.observeIframeLoad(t,e,o)}catch(t){o()}}waitForIframes(t,e){let o=0;this.forEachIframe(t,(()=>!0),(t=>{o++,this.waitForIframes(t.querySelector("html"),(()=>{--o||e()}))}),(t=>{t||e()}))}forEachIframe(t,e,o,r=(()=>{})){let i=t.querySelectorAll("iframe"),n=i.length,a=0;i=Array.prototype.slice.call(i);const s=()=>{--n<=0&&r(a)};n||s(),i.forEach((t=>{Ti.matches(t,this.exclude)?s():this.onIframeReady(t,(r=>{e(t)&&(a++,o(r)),s()}),s)}))}createIterator(t,e,o){return document.createNodeIterator(t,e,o,!1)}createInstanceOnIframe(t){return new Ti(t.querySelector("html"),this.iframes)}compareNodeIframe(t,e,o){if(t.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING){if(null===e)return!0;if(e.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING)return!0}return!1}getIteratorNode(t){const e=t.previousNode();let o;return o=(null===e||t.nextNode())&&t.nextNode(),{prevNode:e,node:o}}checkIframeFilter(t,e,o,r){let i=!1,n=!1;return r.forEach(((t,e)=>{t.val===o&&(i=e,n=t.handled)})),this.compareNodeIframe(t,e,o)?(!1!==i||n?!1===i||n||(r[i].handled=!0):r.push({val:o,handled:!0}),!0):(!1===i&&r.push({val:o,handled:!1}),!1)}handleOpenIframes(t,e,o,r){t.forEach((t=>{t.handled||this.getIframeContents(t.val,(t=>{this.createInstanceOnIframe(t).forEachNode(e,o,r)}))}))}iterateThroughNodes(t,e,o,r,i){const n=this.createIterator(e,t,r);let a,s,l=[],c=[],f=()=>(({prevNode:s,node:a}=this.getIteratorNode(n)),a);for(;f();)this.iframes&&this.forEachIframe(e,(t=>this.checkIframeFilter(a,s,t,l)),(e=>{this.createInstanceOnIframe(e).forEachNode(t,(t=>c.push(t)),r)})),c.push(a);c.forEach((t=>{o(t)})),this.iframes&&this.handleOpenIframes(l,t,o,r),i()}forEachNode(t,e,o,r=(()=>{})){const i=this.getContexts();let n=i.length;n||r(),i.forEach((i=>{const a=()=>{this.iterateThroughNodes(t,i,e,o,(()=>{--n<=0&&r()}))};this.iframes?this.waitForIframes(i,a):a()}))}}const Ki=function(t){const e=new class{constructor(t){this.ctx=t,this.ie=!1;const e=window.navigator.userAgent;(e.indexOf("MSIE")>-1||e.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(t){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},t)}get opt(){return this._opt}get iterator(){return new Ti(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(t,e="debug"){const o=this.opt.log;this.opt.debug&&"object"==typeof o&&"function"==typeof o[e]&&o[e](`mark.js: ${t}`)}escapeStr(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(t){return"disabled"!==this.opt.wildcards&&(t=this.setupWildcardsRegExp(t)),t=this.escapeStr(t),Object.keys(this.opt.synonyms).length&&(t=this.createSynonymsRegExp(t)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),this.opt.diacritics&&(t=this.createDiacriticsRegExp(t)),t=this.createMergedBlanksRegExp(t),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.createJoinersRegExp(t)),"disabled"!==this.opt.wildcards&&(t=this.createWildcardsRegExp(t)),this.createAccuracyRegExp(t)}createSynonymsRegExp(t){const e=this.opt.synonyms,o=this.opt.caseSensitive?"":"i",r=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let i in e)if(e.hasOwnProperty(i)){const n=e[i],a="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(i):this.escapeStr(i),s="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(n):this.escapeStr(n);""!==a&&""!==s&&(t=t.replace(new RegExp(`(${this.escapeStr(a)}|${this.escapeStr(s)})`,`gm${o}`),r+`(${this.processSynomyms(a)}|`+`${this.processSynomyms(s)})`+r))}return t}processSynomyms(t){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),t}setupWildcardsRegExp(t){return(t=t.replace(/(?:\\)*\?/g,(t=>"\\"===t.charAt(0)?"?":""))).replace(/(?:\\)*\*/g,(t=>"\\"===t.charAt(0)?"*":""))}createWildcardsRegExp(t){let e="withSpaces"===this.opt.wildcards;return t.replace(/\u0001/g,e?"[\\S\\s]?":"\\S?").replace(/\u0002/g,e?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(t){return t.replace(/[^(|)\\]/g,((t,e,o)=>{let r=o.charAt(e+1);return/[(|)\\]/.test(r)||""===r?t:t+"\0"}))}createJoinersRegExp(t){let e=[];const o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&e.push(this.escapeStr(o.join(""))),this.opt.ignoreJoiners&&e.push("\\u00ad\\u200b\\u200c\\u200d"),e.length?t.split(/\u0000+/).join(`[${e.join("")}]*`):t}createDiacriticsRegExp(t){const e=this.opt.caseSensitive?"":"i",o=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"];let r=[];return t.split("").forEach((i=>{o.every((o=>{if(-1!==o.indexOf(i)){if(r.indexOf(o)>-1)return!1;t=t.replace(new RegExp(`[${o}]`,`gm${e}`),`[${o}]`),r.push(o)}return!0}))})),t}createMergedBlanksRegExp(t){return t.replace(/[\s]+/gim,"[\\s]+")}createAccuracyRegExp(t){let e=this.opt.accuracy,o="string"==typeof e?e:e.value,r="string"==typeof e?[]:e.limiters,i="";switch(r.forEach((t=>{i+=`|${this.escapeStr(t)}`})),o){case"partially":default:return`()(${t})`;case"complementary":return i="\\s"+(i||this.escapeStr("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿")),`()([^${i}]*${t}[^${i}]*)`;case"exactly":return`(^|\\s${i})(${t})(?=$|\\s${i})`}}getSeparatedKeywords(t){let e=[];return t.forEach((t=>{this.opt.separateWordSearch?t.split(" ").forEach((t=>{t.trim()&&-1===e.indexOf(t)&&e.push(t)})):t.trim()&&-1===e.indexOf(t)&&e.push(t)})),{keywords:e.sort(((t,e)=>e.length-t.length)),length:e.length}}isNumeric(t){return Number(parseFloat(t))==t}checkRanges(t){if(!Array.isArray(t)||"[object Object]"!==Object.prototype.toString.call(t[0]))return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(t),[];const e=[];let o=0;return t.sort(((t,e)=>t.start-e.start)).forEach((t=>{let{start:r,end:i,valid:n}=this.callNoMatchOnInvalidRanges(t,o);n&&(t.start=r,t.length=i-r,e.push(t),o=i)})),e}callNoMatchOnInvalidRanges(t,e){let o,r,i=!1;return t&&void 0!==t.start?(o=parseInt(t.start,10),r=o+parseInt(t.length,10),this.isNumeric(t.start)&&this.isNumeric(t.length)&&r-e>0&&r-o>0?i=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(t)}`),this.opt.noMatch(t))):(this.log(`Ignoring invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)),{start:o,end:r,valid:i}}checkWhitespaceRanges(t,e,o){let r,i=!0,n=o.length,a=e-n,s=parseInt(t.start,10)-a;return s=s>n?n:s,r=s+parseInt(t.length,10),r>n&&(r=n,this.log(`End range automatically set to the max value of ${n}`)),s<0||r-s<0||s>n||r>n?(i=!1,this.log(`Invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)):""===o.substring(s,r).replace(/\s+/g,"")&&(i=!1,this.log("Skipping whitespace only range: "+JSON.stringify(t)),this.opt.noMatch(t)),{start:s,end:r,valid:i}}getTextNodes(t){let e="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,(t=>{o.push({start:e.length,end:(e+=t.textContent).length,node:t})}),(t=>this.matchesExclude(t.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT),(()=>{t({value:e,nodes:o})}))}matchesExclude(t){return Ti.matches(t,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(t,e,o){const r=this.opt.element?this.opt.element:"mark",i=t.splitText(e),n=i.splitText(o-e);let a=document.createElement(r);return a.setAttribute("data-markjs","true"),this.opt.className&&a.setAttribute("class",this.opt.className),a.textContent=i.textContent,i.parentNode.replaceChild(a,i),n}wrapRangeInMappedTextNode(t,e,o,r,i){t.nodes.every(((n,a)=>{const s=t.nodes[a+1];if(void 0===s||s.start>e){if(!r(n.node))return!1;const s=e-n.start,l=(o>n.end?n.end:o)-n.start,c=t.value.substr(0,n.start),f=t.value.substr(l+n.start);if(n.node=this.wrapRangeInTextNode(n.node,s,l),t.value=c+f,t.nodes.forEach(((e,o)=>{o>=a&&(t.nodes[o].start>0&&o!==a&&(t.nodes[o].start-=l),t.nodes[o].end-=l)})),o-=l,i(n.node.previousSibling,n.start),!(o>n.end))return!1;e=n.end}return!0}))}wrapMatches(t,e,o,r,i){const n=0===e?0:e+1;this.getTextNodes((e=>{e.nodes.forEach((e=>{let i;for(e=e.node;null!==(i=t.exec(e.textContent))&&""!==i[n];){if(!o(i[n],e))continue;let a=i.index;if(0!==n)for(let t=1;t<n;t++)a+=i[t].length;e=this.wrapRangeInTextNode(e,a,a+i[n].length),r(e.previousSibling),t.lastIndex=0}})),i()}))}wrapMatchesAcrossElements(t,e,o,r,i){const n=0===e?0:e+1;this.getTextNodes((e=>{let a;for(;null!==(a=t.exec(e.value))&&""!==a[n];){let i=a.index;if(0!==n)for(let t=1;t<n;t++)i+=a[t].length;const s=i+a[n].length;this.wrapRangeInMappedTextNode(e,i,s,(t=>o(a[n],t)),((e,o)=>{t.lastIndex=o,r(e)}))}i()}))}wrapRangeFromIndex(t,e,o,r){this.getTextNodes((i=>{const n=i.value.length;t.forEach(((t,r)=>{let{start:a,end:s,valid:l}=this.checkWhitespaceRanges(t,n,i.value);l&&this.wrapRangeInMappedTextNode(i,a,s,(o=>e(o,t,i.value.substring(a,s),r)),(e=>{o(e,t)}))})),r()}))}unwrapMatches(t){const e=t.parentNode;let o=document.createDocumentFragment();for(;t.firstChild;)o.appendChild(t.removeChild(t.firstChild));e.replaceChild(o,t),this.ie?this.normalizeTextNode(e):e.normalize()}normalizeTextNode(t){if(t){if(3===t.nodeType)for(;t.nextSibling&&3===t.nextSibling.nodeType;)t.nodeValue+=t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);else this.normalizeTextNode(t.firstChild);this.normalizeTextNode(t.nextSibling)}}markRegExp(t,e){this.opt=e,this.log(`Searching with expression "${t}"`);let o=0,r="wrapMatches";this.opt.acrossElements&&(r="wrapMatchesAcrossElements"),this[r](t,this.opt.ignoreGroups,((t,e)=>this.opt.filter(e,t,o)),(t=>{o++,this.opt.each(t)}),(()=>{0===o&&this.opt.noMatch(t),this.opt.done(o)}))}mark(t,e){this.opt=e;let o=0,r="wrapMatches";const{keywords:i,length:n}=this.getSeparatedKeywords("string"==typeof t?[t]:t),a=this.opt.caseSensitive?"":"i",s=t=>{let e=new RegExp(this.createRegExp(t),`gm${a}`),l=0;this.log(`Searching with expression "${e}"`),this[r](e,1,((e,r)=>this.opt.filter(r,t,o,l)),(t=>{l++,o++,this.opt.each(t)}),(()=>{0===l&&this.opt.noMatch(t),i[n-1]===t?this.opt.done(o):s(i[i.indexOf(t)+1])}))};this.opt.acrossElements&&(r="wrapMatchesAcrossElements"),0===n?this.opt.done(o):s(i[0])}markRanges(t,e){this.opt=e;let o=0,r=this.checkRanges(t);r&&r.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(r)),this.wrapRangeFromIndex(r,((t,e,o,r)=>this.opt.filter(t,e,o,r)),((t,e)=>{o++,this.opt.each(t,e)}),(()=>{this.opt.done(o)}))):this.opt.done(o)}unmark(t){this.opt=t;let e=this.opt.element?this.opt.element:"*";e+="[data-markjs]",this.opt.className&&(e+=`.${this.opt.className}`),this.log(`Removal selector "${e}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,(t=>{this.unwrapMatches(t)}),(t=>{const o=Ti.matches(t,e),r=this.matchesExclude(t);return!o||r?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}),this.opt.done)}}(t);return this.mark=(t,o)=>(e.mark(t,o),this),this.markRegExp=(t,o)=>(e.markRegExp(t,o),this),this.markRanges=(t,o)=>(e.markRanges(t,o),this),this.unmark=t=>(e.unmark(t),this),this},Zi=xo.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),Hi=ut`
|
|
1
|
+
"use strict";(()=>{var yp=Object.create;var xn=Object.defineProperty;var gp=Object.getOwnPropertyDescriptor;var bp=Object.getOwnPropertyNames;var xp=Object.getPrototypeOf,vp=Object.prototype.hasOwnProperty;var Sp=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Y=(t,e)=>{for(var r in e)xn(t,r,{get:e[r],enumerable:!0})},Op=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of bp(e))!vp.call(t,i)&&i!==r&&xn(t,i,{get:()=>e[i],enumerable:!(n=gp(e,i))||n.enumerable});return t};var Cp=(t,e,r)=>(r=t!=null?yp(xp(t)):{},Op(e||!t||!t.__esModule?xn(r,"default",{value:t,enumerable:!0}):r,t));var zl=Sp(Hl=>{(function(t){var e=function(r){var n={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};function i(m){return m&&DataView.prototype.isPrototypeOf(m)}if(n.arrayBuffer)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(m){return m&&a.indexOf(Object.prototype.toString.call(m))>-1};function c(m){if(typeof m!="string"&&(m=String(m)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(m))throw new TypeError("Invalid character in header field name");return m.toLowerCase()}function l(m){return typeof m!="string"&&(m=String(m)),m}function u(m){var x={next:function(){var A=m.shift();return{done:A===void 0,value:A}}};return n.iterable&&(x[Symbol.iterator]=function(){return x}),x}function d(m){this.map={},m instanceof d?m.forEach(function(x,A){this.append(A,x)},this):Array.isArray(m)?m.forEach(function(x){this.append(x[0],x[1])},this):m&&Object.getOwnPropertyNames(m).forEach(function(x){this.append(x,m[x])},this)}d.prototype.append=function(m,x){m=c(m),x=l(x);var A=this.map[m];this.map[m]=A?A+", "+x:x},d.prototype.delete=function(m){delete this.map[c(m)]},d.prototype.get=function(m){return m=c(m),this.has(m)?this.map[m]:null},d.prototype.has=function(m){return this.map.hasOwnProperty(c(m))},d.prototype.set=function(m,x){this.map[c(m)]=l(x)},d.prototype.forEach=function(m,x){for(var A in this.map)this.map.hasOwnProperty(A)&&m.call(x,this.map[A],A,this)},d.prototype.keys=function(){var m=[];return this.forEach(function(x,A){m.push(A)}),u(m)},d.prototype.values=function(){var m=[];return this.forEach(function(x){m.push(x)}),u(m)},d.prototype.entries=function(){var m=[];return this.forEach(function(x,A){m.push([A,x])}),u(m)},n.iterable&&(d.prototype[Symbol.iterator]=d.prototype.entries);function h(m){if(m.bodyUsed)return Promise.reject(new TypeError("Already read"));m.bodyUsed=!0}function y(m){return new Promise(function(x,A){m.onload=function(){x(m.result)},m.onerror=function(){A(m.error)}})}function g(m){var x=new FileReader,A=y(x);return x.readAsArrayBuffer(m),A}function b(m){var x=new FileReader,A=y(x);return x.readAsText(m),A}function C(m){for(var x=new Uint8Array(m),A=new Array(x.length),H=0;H<x.length;H++)A[H]=String.fromCharCode(x[H]);return A.join("")}function N(m){if(m.slice)return m.slice(0);var x=new Uint8Array(m.byteLength);return x.set(new Uint8Array(m)),x.buffer}function _(){return this.bodyUsed=!1,this._initBody=function(m){this._bodyInit=m,m?typeof m=="string"?this._bodyText=m:n.blob&&Blob.prototype.isPrototypeOf(m)?this._bodyBlob=m:n.formData&&FormData.prototype.isPrototypeOf(m)?this._bodyFormData=m:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)?this._bodyText=m.toString():n.arrayBuffer&&n.blob&&i(m)?(this._bodyArrayBuffer=N(m.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(m)||s(m))?this._bodyArrayBuffer=N(m):this._bodyText=m=Object.prototype.toString.call(m):this._bodyText="",this.headers.get("content-type")||(typeof m=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var m=h(this);if(m)return m;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(g)}),this.text=function(){var m=h(this);if(m)return m;if(this._bodyBlob)return b(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(C(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},n.formData&&(this.formData=function(){return this.text().then(E)}),this.json=function(){return this.text().then(JSON.parse)},this}var $=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function S(m){var x=m.toUpperCase();return $.indexOf(x)>-1?x:m}function v(m,x){x=x||{};var A=x.body;if(m instanceof v){if(m.bodyUsed)throw new TypeError("Already read");this.url=m.url,this.credentials=m.credentials,x.headers||(this.headers=new d(m.headers)),this.method=m.method,this.mode=m.mode,this.signal=m.signal,!A&&m._bodyInit!=null&&(A=m._bodyInit,m.bodyUsed=!0)}else this.url=String(m);if(this.credentials=x.credentials||this.credentials||"same-origin",(x.headers||!this.headers)&&(this.headers=new d(x.headers)),this.method=S(x.method||this.method||"GET"),this.mode=x.mode||this.mode||null,this.signal=x.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&A)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(A)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})};function E(m){var x=new FormData;return m.trim().split("&").forEach(function(A){if(A){var H=A.split("="),oe=H.shift().replace(/\+/g," "),j=H.join("=").replace(/\+/g," ");x.append(decodeURIComponent(oe),decodeURIComponent(j))}}),x}function M(m){var x=new d,A=m.replace(/\r?\n[\t ]+/g," ");return A.split(/\r?\n/).forEach(function(H){var oe=H.split(":"),j=oe.shift().trim();if(j){var fo=oe.join(":").trim();x.append(j,fo)}}),x}_.call(v.prototype);function D(m,x){x||(x={}),this.type="default",this.status=x.status===void 0?200:x.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in x?x.statusText:"OK",this.headers=new d(x.headers),this.url=x.url||"",this._initBody(m)}_.call(D.prototype),D.prototype.clone=function(){return new D(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},D.error=function(){var m=new D(null,{status:0,statusText:""});return m.type="error",m};var le=[301,302,303,307,308];D.redirect=function(m,x){if(le.indexOf(x)===-1)throw new RangeError("Invalid status code");return new D(null,{status:x,headers:{location:m}})},r.DOMException=t.DOMException;try{new r.DOMException}catch{r.DOMException=function(x,A){this.message=x,this.name=A;var H=Error(x);this.stack=H.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function z(m,x){return new Promise(function(A,H){var oe=new v(m,x);if(oe.signal&&oe.signal.aborted)return H(new r.DOMException("Aborted","AbortError"));var j=new XMLHttpRequest;function fo(){j.abort()}j.onload=function(){var Tr={status:j.status,statusText:j.statusText,headers:M(j.getAllResponseHeaders()||"")};Tr.url="responseURL"in j?j.responseURL:Tr.headers.get("X-Request-URL");var bn="response"in j?j.response:j.responseText;A(new D(bn,Tr))},j.onerror=function(){H(new TypeError("Network request failed"))},j.ontimeout=function(){H(new TypeError("Network request failed"))},j.onabort=function(){H(new r.DOMException("Aborted","AbortError"))},j.open(oe.method,oe.url,!0),oe.credentials==="include"?j.withCredentials=!0:oe.credentials==="omit"&&(j.withCredentials=!1),"responseType"in j&&n.blob&&(j.responseType="blob"),oe.headers.forEach(function(Tr,bn){j.setRequestHeader(bn,Tr)}),oe.signal&&(oe.signal.addEventListener("abort",fo),j.onreadystatechange=function(){j.readyState===4&&oe.signal.removeEventListener("abort",fo)}),j.send(typeof oe._bodyInit>"u"?null:oe._bodyInit)})}return z.polyfill=!0,t.fetch||(t.fetch=z,t.Headers=d,t.Request=v,t.Response=D),r.Headers=d,r.Request=v,r.Response=D,r.fetch=z,Object.defineProperty(r,"__esModule",{value:!0}),r}({})})(typeof self<"u"?self:Hl)});if(!ShadowRoot.prototype.createElement){let t=window.HTMLElement,e=window.customElements.define,r=window.customElements.get,n=window.customElements,i=new WeakMap,a=new WeakMap,s=new WeakMap,c=new WeakMap;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(S,v){if(S=S.toLowerCase(),this._getDefinition(S)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${S}" has already been used with this registry`);if(this._definitionsByClass.get(v)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let E=v.prototype.attributeChangedCallback,M=new Set(v.observedAttributes||[]);y(v,M,E);let D={elementClass:v,connectedCallback:v.prototype.connectedCallback,disconnectedCallback:v.prototype.disconnectedCallback,adoptedCallback:v.prototype.adoptedCallback,attributeChangedCallback:E,formAssociated:v.formAssociated,formAssociatedCallback:v.prototype.formAssociatedCallback,formDisabledCallback:v.prototype.formDisabledCallback,formResetCallback:v.prototype.formResetCallback,formStateRestoreCallback:v.prototype.formStateRestoreCallback,observedAttributes:M};this._definitionsByTag.set(S,D),this._definitionsByClass.set(v,D);let le=r.call(n,S);le||(le=h(S),e.call(n,S,le)),this===window.customElements&&(s.set(v,D),D.standInClass=le);let z=this._awaitingUpgrade.get(S);if(z){this._awaitingUpgrade.delete(S);for(let x of z)a.delete(x),b(x,D,!0)}let m=this._whenDefinedPromises.get(S);return m!==void 0&&(m.resolve(v),this._whenDefinedPromises.delete(S)),v}upgrade(){N.push(this),n.upgrade.apply(n,arguments),N.pop()}get(S){return this._definitionsByTag.get(S)?.elementClass}_getDefinition(S){return this._definitionsByTag.get(S)}whenDefined(S){let v=this._getDefinition(S);if(v!==void 0)return Promise.resolve(v.elementClass);let E=this._whenDefinedPromises.get(S);return E===void 0&&(E={},E.promise=new Promise(M=>E.resolve=M),this._whenDefinedPromises.set(S,E)),E.promise}_upgradeWhenDefined(S,v,E){let M=this._awaitingUpgrade.get(v);M||this._awaitingUpgrade.set(v,M=new Set),E?M.add(S):M.delete(S)}};let l;window.HTMLElement=function(){let v=l;if(v)return l=void 0,v;let E=s.get(this.constructor);if(!E)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return v=Reflect.construct(t,[],E.standInClass),Object.setPrototypeOf(v,this.constructor.prototype),i.set(v,E),v},window.HTMLElement.prototype=t.prototype;let u=S=>S===document||S instanceof ShadowRoot,d=S=>{let v=S.getRootNode();if(!u(v)){let E=N[N.length-1];if(E instanceof CustomElementRegistry)return E;v=E.getRootNode(),u(v)||(v=c.get(v)?.getRootNode()||document)}return v.customElements},h=S=>class{static get formAssociated(){return!0}constructor(){let E=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(E,HTMLElement.prototype);let M=d(E)||window.customElements,D=M._getDefinition(S);return D?b(E,D):a.set(E,M),E}connectedCallback(){let E=i.get(this);E?E.connectedCallback&&E.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,S,!0)}disconnectedCallback(){let E=i.get(this);E?E.disconnectedCallback&&E.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,S,!1)}adoptedCallback(){i.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let E=i.get(this);E&&E.formAssociated&&E?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let E=i.get(this);E?.formAssociated&&E?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let E=i.get(this);E?.formAssociated&&E?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let E=i.get(this);E?.formAssociated&&E?.formStateRestoreCallback?.apply(this,arguments)}},y=(S,v,E)=>{if(v.size===0||E===void 0)return;let M=S.prototype.setAttribute;M&&(S.prototype.setAttribute=function(z,m){let x=z.toLowerCase();if(v.has(x)){let A=this.getAttribute(x);M.call(this,x,m),E.call(this,x,A,m)}else M.call(this,x,m)});let D=S.prototype.removeAttribute;D&&(S.prototype.removeAttribute=function(z){let m=z.toLowerCase();if(v.has(m)){let x=this.getAttribute(m);D.call(this,m),E.call(this,m,x,null)}else D.call(this,m)});let le=S.prototype.toggleAttribute;le&&(S.prototype.toggleAttribute=function(z,m){let x=z.toLowerCase();if(v.has(x)){let A=this.getAttribute(x);le.call(this,x,m);let H=this.getAttribute(x);E.call(this,x,A,H)}else le.call(this,x,m)})},g=S=>{let v=Object.getPrototypeOf(S);if(v!==window.HTMLElement)return v===t?Object.setPrototypeOf(S,window.HTMLElement):g(v)},b=(S,v,E=!1)=>{Object.setPrototypeOf(S,v.elementClass.prototype),i.set(S,v),l=S;try{new v.elementClass}catch{g(v.elementClass),new v.elementClass}v.attributeChangedCallback&&v.observedAttributes.forEach(M=>{S.hasAttribute(M)&&v.attributeChangedCallback.call(S,M,null,S.getAttribute(M))}),E&&v.connectedCallback&&S.isConnected&&v.connectedCallback.call(S)},C=Element.prototype.attachShadow;Element.prototype.attachShadow=function(S){let v=C.apply(this,arguments);return S.customElements&&(v.customElements=S.customElements),v};let N=[document],_=(S,v,E=void 0)=>{let M=(E?Object.getPrototypeOf(E):S.prototype)[v];S.prototype[v]=function(){N.push(this);let D=M.apply(E||this,arguments);return D!==void 0&&c.set(D,this),N.pop(),D}};_(ShadowRoot,"createElement",document),_(ShadowRoot,"importNode",document),_(Element,"insertAdjacentHTML");let $=(S,v)=>{let E=Object.getOwnPropertyDescriptor(S.prototype,v);Object.defineProperty(S.prototype,v,{...E,set(M){N.push(this),E.set.call(this,M),N.pop()}})};if($(Element,"innerHTML"),$(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let S=new WeakMap,v=HTMLElement.prototype.attachInternals,E=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...z){let m=v.call(this,...z);return S.set(m,this),m},E.forEach(z=>{let m=window.ElementInternals.prototype,x=m[z];m[z]=function(...A){let H=S.get(this);if(i.get(H).formAssociated===!0)return x?.call(this,...A);throw new DOMException(`Failed to execute ${x} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class M extends Array{constructor(m){super(...m),this._elements=m}get value(){return this._elements.find(m=>m.checked===!0)?.value||""}}class D{constructor(m){let x=new Map;m.forEach((A,H)=>{let oe=A.getAttribute("name"),j=x.get(oe)||[];this[+H]=A,j.push(A),x.set(oe,j)}),this.length=m.length,x.forEach((A,H)=>{A&&(A.length===1?this[H]=A[0]:this[H]=new M(A))})}namedItem(m){return this[m]}}let le=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let z=le.get.call(this,[]),m=[];for(let x of z){let A=i.get(x);(!A||A.formAssociated===!0)&&m.push(x)}return new D(m)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(r,n,i)=>{if(n!==null)try{e.bind(window.customElements)(r,n,i)}catch(a){console.info(r,n,i,a)}}}var In={};Y(In,{CSSResult:()=>Xt,LitElement:()=>et,ReactiveElement:()=>Fe,_$LE:()=>Gp,_$LH:()=>jp,adoptStyles:()=>No,css:()=>R,defaultConverter:()=>_o,getCompatibleStyle:()=>Br,html:()=>L,isServer:()=>wf,noChange:()=>ut,notEqual:()=>An,nothing:()=>U,render:()=>Tn,supportsAdoptingStyleSheets:()=>Ur,svg:()=>zp,unsafeCSS:()=>$t});var ho=globalThis,yo=ho.ShadowRoot&&(ho.ShadyCSS===void 0||ho.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ja=Symbol(),Xa=new WeakMap,mo=class{constructor(e,r,n){if(this._$cssResult$=!0,n!==Ja)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(yo&&e===void 0){let n=r!==void 0&&r.length===1;n&&(e=Xa.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&Xa.set(r,e))}return e}toString(){return this.cssText}},Qa=t=>new mo(typeof t=="string"?t:t+"",void 0,Ja);var vn=(t,e)=>{if(yo)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let n=document.createElement("style"),i=ho.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)}},go=yo?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let n of e.cssRules)r+=n.cssText;return Qa(r)})(t):t;var{is:Ep,defineProperty:wp,getOwnPropertyDescriptor:Ap,getOwnPropertyNames:Rp,getOwnPropertySymbols:Np,getPrototypeOf:_p}=Object,bo=globalThis,es=bo.trustedTypes,Pp=es?es.emptyScript:"",Tp=bo.reactiveElementPolyfillSupport,Ir=(t,e)=>t,$r={toAttribute(t,e){switch(e){case Boolean:t=t?Pp:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},xo=(t,e)=>!Ep(t,e),ts={attribute:!0,type:String,converter:$r,reflect:!1,hasChanged:xo};Symbol.metadata??=Symbol("metadata"),bo.litPropertyMetadata??=new WeakMap;var Rt=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=ts){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(e,r),!r.noAccessor){let n=Symbol(),i=this.getPropertyDescriptor(e,n,r);i!==void 0&&wp(this.prototype,e,i)}}static getPropertyDescriptor(e,r,n){let{get:i,set:a}=Ap(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return i?.call(this)},set(s){let c=i?.call(this);a.call(this,s),this.requestUpdate(e,c,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??ts}static _$Ei(){if(this.hasOwnProperty(Ir("elementProperties")))return;let e=_p(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Ir("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ir("properties"))){let r=this.properties,n=[...Rp(r),...Np(r)];for(let i of n)this.createProperty(i,r[i])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[n,i]of r)this.elementProperties.set(n,i)}this._$Eh=new Map;for(let[r,n]of this.elementProperties){let i=this._$Eu(r,n);i!==void 0&&this._$Eh.set(i,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let i of n)r.unshift(go(i))}else e!==void 0&&r.push(go(e));return r}static _$Eu(e,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.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(e=>this.enableUpdating=e),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$E_??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$E_?.delete(e)}_$ES(){let e=new Map,r=this.constructor.elementProperties;for(let n of r.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return vn(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$E_?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,r,n){this._$AK(e,n)}_$EO(e,r){let n=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,n);if(i!==void 0&&n.reflect===!0){let a=(n.converter?.toAttribute!==void 0?n.converter:$r).toAttribute(r,n.type);this._$Em=e,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$Em=null}}_$AK(e,r){let n=this.constructor,i=n._$Eh.get(e);if(i!==void 0&&this._$Em!==i){let a=n.getPropertyOptions(i),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:$r;this._$Em=i,this[i]=s.fromAttribute(r,a.type),this._$Em=null}}requestUpdate(e,r,n,i=!1,a){if(e!==void 0){if(n??=this.constructor.getPropertyOptions(e),!(n.hasChanged??xo)(i?a:this[e],r))return;this.C(e,r,n)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,r,n){this._$AL.has(e)||this._$AL.set(e,r),n.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[i,a]of this._$Ep)this[i]=a;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[i,a]of n)a.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.C(i,this[i],a)}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$E_?.forEach(n=>n.hostUpdate?.()),this.update(r)):this._$ET()}catch(n){throw e=!1,this._$ET(),n}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$E_?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(r=>this._$EO(r,this[r])),this._$ET()}updated(e){}firstUpdated(e){}};Rt.elementStyles=[],Rt.shadowRootOptions={mode:"open"},Rt[Ir("elementProperties")]=new Map,Rt[Ir("finalized")]=new Map,Tp?.({ReactiveElement:Rt}),(bo.reactiveElementVersions??=[]).push("2.0.2");var On=globalThis,vo=On.trustedTypes,rs=vo?vo.createPolicy("lit-html",{createHTML:t=>t}):void 0,Cn="$lit$",Je=`lit$${(Math.random()+"").slice(9)}$`,En="?"+Je,Ip=`<${En}>`,Pt=document,So=()=>Pt.createComment(""),kr=t=>t===null||typeof t!="object"&&typeof t!="function",cs=Array.isArray,ls=t=>cs(t)||typeof t?.[Symbol.iterator]=="function",Sn=`[
|
|
2
|
+
\f\r]`,Lr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,os=/-->/g,ns=/>/g,Nt=RegExp(`>|${Sn}(?:([^\\s"'>=/]+)(${Sn}*=${Sn}*(?:[^
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),is=/'/g,as=/"/g,ps=/^(?:script|style|textarea|title)$/i,us=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),ds=us(1),fs=us(2),Re=Symbol.for("lit-noChange"),J=Symbol.for("lit-nothing"),ss=new WeakMap,_t=Pt.createTreeWalker(Pt,129);function hs(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return rs!==void 0?rs.createHTML(e):e}var ms=(t,e)=>{let r=t.length-1,n=[],i,a=e===2?"<svg>":"",s=Lr;for(let c=0;c<r;c++){let l=t[c],u,d,h=-1,y=0;for(;y<l.length&&(s.lastIndex=y,d=s.exec(l),d!==null);)y=s.lastIndex,s===Lr?d[1]==="!--"?s=os:d[1]!==void 0?s=ns:d[2]!==void 0?(ps.test(d[2])&&(i=RegExp("</"+d[2],"g")),s=Nt):d[3]!==void 0&&(s=Nt):s===Nt?d[0]===">"?(s=i??Lr,h=-1):d[1]===void 0?h=-2:(h=s.lastIndex-d[2].length,u=d[1],s=d[3]===void 0?Nt:d[3]==='"'?as:is):s===as||s===is?s=Nt:s===os||s===ns?s=Lr:(s=Nt,i=void 0);let g=s===Nt&&t[c+1].startsWith("/>")?" ":"";a+=s===Lr?l+Ip:h>=0?(n.push(u),l.slice(0,h)+Cn+l.slice(h)+Je+g):l+Je+(h===-2?c:g)}return[hs(t,a+(t[r]||"<?>")+(e===2?"</svg>":"")),n]},Mr=class t{constructor({strings:e,_$litType$:r},n){let i;this.parts=[];let a=0,s=0,c=e.length-1,l=this.parts,[u,d]=ms(e,r);if(this.el=t.createElement(u,n),_t.currentNode=this.el.content,r===2){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(i=_t.nextNode())!==null&&l.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(let h of i.getAttributeNames())if(h.endsWith(Cn)){let y=d[s++],g=i.getAttribute(h).split(Je),b=/([.?@])?(.*)/.exec(y);l.push({type:1,index:a,name:b[2],strings:g,ctor:b[1]==="."?Co:b[1]==="?"?Eo:b[1]==="@"?wo:It}),i.removeAttribute(h)}else h.startsWith(Je)&&(l.push({type:6,index:a}),i.removeAttribute(h));if(ps.test(i.tagName)){let h=i.textContent.split(Je),y=h.length-1;if(y>0){i.textContent=vo?vo.emptyScript:"";for(let g=0;g<y;g++)i.append(h[g],So()),_t.nextNode(),l.push({type:2,index:++a});i.append(h[y],So())}}}else if(i.nodeType===8)if(i.data===En)l.push({type:2,index:a});else{let h=-1;for(;(h=i.data.indexOf(Je,h+1))!==-1;)l.push({type:7,index:a}),h+=Je.length-1}a++}}static createElement(e,r){let n=Pt.createElement("template");return n.innerHTML=e,n}};function Tt(t,e,r=t,n){if(e===Re)return e;let i=n!==void 0?r._$Co?.[n]:r._$Cl,a=kr(e)?void 0:e._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(t),i._$AT(t,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(e=Tt(t,i._$AS(t,e.values),i,n)),e}var Oo=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:n}=this._$AD,i=(e?.creationScope??Pt).importNode(r,!0);_t.currentNode=i;let a=_t.nextNode(),s=0,c=0,l=n[0];for(;l!==void 0;){if(s===l.index){let u;l.type===2?u=new Dr(a,a.nextSibling,this,e):l.type===1?u=new l.ctor(a,l.name,l.strings,this,e):l.type===6&&(u=new Ao(a,this,e)),this._$AV.push(u),l=n[++c]}s!==l?.index&&(a=_t.nextNode(),s++)}return _t.currentNode=Pt,i}p(e){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},Dr=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,i){this.type=2,this._$AH=J,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Tt(this,e,r),kr(e)?e===J||e==null||e===""?(this._$AH!==J&&this._$AR(),this._$AH=J):e!==this._$AH&&e!==Re&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):ls(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==J&&kr(this._$AH)?this._$AA.nextSibling.data=e:this.$(Pt.createTextNode(e)),this._$AH=e}g(e){let{values:r,_$litType$:n}=e,i=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Mr.createElement(hs(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let a=new Oo(i,this),s=a.u(this.options);a.p(r),this.$(s),this._$AH=a}}_$AC(e){let r=ss.get(e.strings);return r===void 0&&ss.set(e.strings,r=new Mr(e)),r}T(e){cs(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let a of e)i===r.length?r.push(n=new t(this.k(So()),this.k(So()),this,this.options)):n=r[i],n._$AI(a),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},It=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,i,a){this.type=1,this._$AH=J,this._$AN=void 0,this.element=e,this.name=r,this._$AM=i,this.options=a,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=J}_$AI(e,r=this,n,i){let a=this.strings,s=!1;if(a===void 0)e=Tt(this,e,r,0),s=!kr(e)||e!==this._$AH&&e!==Re,s&&(this._$AH=e);else{let c=e,l,u;for(e=a[0],l=0;l<a.length-1;l++)u=Tt(this,c[n+l],r,l),u===Re&&(u=this._$AH[l]),s||=!kr(u)||u!==this._$AH[l],u===J?e=J:e!==J&&(e+=(u??"")+a[l+1]),this._$AH[l]=u}s&&!i&&this.O(e)}O(e){e===J?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Co=class extends It{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===J?void 0:e}},Eo=class extends It{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==J)}},wo=class extends It{constructor(e,r,n,i,a){super(e,r,n,i,a),this.type=5}_$AI(e,r=this){if((e=Tt(this,e,r,0)??J)===Re)return;let n=this._$AH,i=e===J&&n!==J||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,a=e!==J&&(n===J||i);i&&this.element.removeEventListener(this.name,this,n),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Ao=class{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){Tt(this,e)}},ys={j:Cn,P:Je,A:En,C:1,M:ms,L:Oo,R:ls,V:Tt,D:Dr,I:It,H:Eo,N:wo,U:Co,B:Ao},$p=On.litHtmlPolyfillSupport;$p?.(Mr,Dr),(On.litHtmlVersions??=[]).push("3.1.0");var Ro=globalThis,Ur=Ro.ShadowRoot&&(Ro.ShadyCSS===void 0||Ro.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,wn=Symbol(),gs=new WeakMap,Xt=class{constructor(e,r,n){if(this._$cssResult$=!0,n!==wn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(Ur&&e===void 0){let n=r!==void 0&&r.length===1;n&&(e=gs.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&gs.set(r,e))}return e}toString(){return this.cssText}},$t=t=>new Xt(typeof t=="string"?t:t+"",void 0,wn),R=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((n,i,a)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[a+1],t[0]);return new Xt(r,t,wn)},No=(t,e)=>{if(Ur)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let n=document.createElement("style"),i=Ro.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)}},Br=Ur?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let n of e.cssRules)r+=n.cssText;return $t(r)})(t):t;var{is:Lp,defineProperty:kp,getOwnPropertyDescriptor:Mp,getOwnPropertyNames:Dp,getOwnPropertySymbols:Up,getPrototypeOf:Bp}=Object,Po=globalThis,bs=Po.trustedTypes,Fp=bs?bs.emptyScript:"",Wp=Po.reactiveElementPolyfillSupport,Fr=(t,e)=>t,_o={toAttribute(t,e){switch(e){case Boolean:t=t?Fp:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},An=(t,e)=>!Lp(t,e),xs={attribute:!0,type:String,converter:_o,reflect:!1,hasChanged:An};Symbol.metadata??=Symbol("metadata"),Po.litPropertyMetadata??=new WeakMap;var Fe=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=xs){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(e,r),!r.noAccessor){let n=Symbol(),i=this.getPropertyDescriptor(e,n,r);i!==void 0&&kp(this.prototype,e,i)}}static getPropertyDescriptor(e,r,n){let{get:i,set:a}=Mp(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return i?.call(this)},set(s){let c=i?.call(this);a.call(this,s),this.requestUpdate(e,c,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??xs}static _$Ei(){if(this.hasOwnProperty(Fr("elementProperties")))return;let e=Bp(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Fr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Fr("properties"))){let r=this.properties,n=[...Dp(r),...Up(r)];for(let i of n)this.createProperty(i,r[i])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[n,i]of r)this.elementProperties.set(n,i)}this._$Eh=new Map;for(let[r,n]of this.elementProperties){let i=this._$Eu(r,n);i!==void 0&&this._$Eh.set(i,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let i of n)r.unshift(Br(i))}else e!==void 0&&r.push(Br(e));return r}static _$Eu(e,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.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(e=>this.enableUpdating=e),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$E_??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$E_?.delete(e)}_$ES(){let e=new Map,r=this.constructor.elementProperties;for(let n of r.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return No(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$E_?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,r,n){this._$AK(e,n)}_$EO(e,r){let n=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,n);if(i!==void 0&&n.reflect===!0){let a=(n.converter?.toAttribute!==void 0?n.converter:_o).toAttribute(r,n.type);this._$Em=e,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$Em=null}}_$AK(e,r){let n=this.constructor,i=n._$Eh.get(e);if(i!==void 0&&this._$Em!==i){let a=n.getPropertyOptions(i),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:_o;this._$Em=i,this[i]=s.fromAttribute(r,a.type),this._$Em=null}}requestUpdate(e,r,n,i=!1,a){if(e!==void 0){if(n??=this.constructor.getPropertyOptions(e),!(n.hasChanged??An)(i?a:this[e],r))return;this.C(e,r,n)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,r,n){this._$AL.has(e)||this._$AL.set(e,r),n.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[i,a]of this._$Ep)this[i]=a;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[i,a]of n)a.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.C(i,this[i],a)}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$E_?.forEach(n=>n.hostUpdate?.()),this.update(r)):this._$ET()}catch(n){throw e=!1,this._$ET(),n}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$E_?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(r=>this._$EO(r,this[r])),this._$ET()}updated(e){}firstUpdated(e){}};Fe.elementStyles=[],Fe.shadowRootOptions={mode:"open"},Fe[Fr("elementProperties")]=new Map,Fe[Fr("finalized")]=new Map,Wp?.({ReactiveElement:Fe}),(Po.reactiveElementVersions??=[]).push("2.0.2");var Nn=globalThis,To=Nn.trustedTypes,vs=To?To.createPolicy("lit-html",{createHTML:t=>t}):void 0,_n="$lit$",Qe=`lit$${(Math.random()+"").slice(9)}$`,Pn="?"+Qe,Hp=`<${Pn}>`,Mt=document,Hr=()=>Mt.createComment(""),zr=t=>t===null||typeof t!="object"&&typeof t!="function",As=Array.isArray,Rs=t=>As(t)||typeof t?.[Symbol.iterator]=="function",Rn=`[
|
|
4
|
+
\f\r]`,Wr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ss=/-->/g,Os=/>/g,Lt=RegExp(`>|${Rn}(?:([^\\s"'>=/]+)(${Rn}*=${Rn}*(?:[^
|
|
5
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Cs=/'/g,Es=/"/g,Ns=/^(?:script|style|textarea|title)$/i,_s=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),L=_s(1),zp=_s(2),ut=Symbol.for("lit-noChange"),U=Symbol.for("lit-nothing"),ws=new WeakMap,kt=Mt.createTreeWalker(Mt,129);function Ps(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return vs!==void 0?vs.createHTML(e):e}var Ts=(t,e)=>{let r=t.length-1,n=[],i,a=e===2?"<svg>":"",s=Wr;for(let c=0;c<r;c++){let l=t[c],u,d,h=-1,y=0;for(;y<l.length&&(s.lastIndex=y,d=s.exec(l),d!==null);)y=s.lastIndex,s===Wr?d[1]==="!--"?s=Ss:d[1]!==void 0?s=Os:d[2]!==void 0?(Ns.test(d[2])&&(i=RegExp("</"+d[2],"g")),s=Lt):d[3]!==void 0&&(s=Lt):s===Lt?d[0]===">"?(s=i??Wr,h=-1):d[1]===void 0?h=-2:(h=s.lastIndex-d[2].length,u=d[1],s=d[3]===void 0?Lt:d[3]==='"'?Es:Cs):s===Es||s===Cs?s=Lt:s===Ss||s===Os?s=Wr:(s=Lt,i=void 0);let g=s===Lt&&t[c+1].startsWith("/>")?" ":"";a+=s===Wr?l+Hp:h>=0?(n.push(u),l.slice(0,h)+_n+l.slice(h)+Qe+g):l+Qe+(h===-2?c:g)}return[Ps(t,a+(t[r]||"<?>")+(e===2?"</svg>":"")),n]},jr=class t{constructor({strings:e,_$litType$:r},n){let i;this.parts=[];let a=0,s=0,c=e.length-1,l=this.parts,[u,d]=Ts(e,r);if(this.el=t.createElement(u,n),kt.currentNode=this.el.content,r===2){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(i=kt.nextNode())!==null&&l.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(let h of i.getAttributeNames())if(h.endsWith(_n)){let y=d[s++],g=i.getAttribute(h).split(Qe),b=/([.?@])?(.*)/.exec(y);l.push({type:1,index:a,name:b[2],strings:g,ctor:b[1]==="."?$o:b[1]==="?"?Lo:b[1]==="@"?ko:Ut}),i.removeAttribute(h)}else h.startsWith(Qe)&&(l.push({type:6,index:a}),i.removeAttribute(h));if(Ns.test(i.tagName)){let h=i.textContent.split(Qe),y=h.length-1;if(y>0){i.textContent=To?To.emptyScript:"";for(let g=0;g<y;g++)i.append(h[g],Hr()),kt.nextNode(),l.push({type:2,index:++a});i.append(h[y],Hr())}}}else if(i.nodeType===8)if(i.data===Pn)l.push({type:2,index:a});else{let h=-1;for(;(h=i.data.indexOf(Qe,h+1))!==-1;)l.push({type:7,index:a}),h+=Qe.length-1}a++}}static createElement(e,r){let n=Mt.createElement("template");return n.innerHTML=e,n}};function Dt(t,e,r=t,n){if(e===ut)return e;let i=n!==void 0?r._$Co?.[n]:r._$Cl,a=zr(e)?void 0:e._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(t),i._$AT(t,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(e=Dt(t,i._$AS(t,e.values),i,n)),e}var Io=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:n}=this._$AD,i=(e?.creationScope??Mt).importNode(r,!0);kt.currentNode=i;let a=kt.nextNode(),s=0,c=0,l=n[0];for(;l!==void 0;){if(s===l.index){let u;l.type===2?u=new Jt(a,a.nextSibling,this,e):l.type===1?u=new l.ctor(a,l.name,l.strings,this,e):l.type===6&&(u=new Mo(a,this,e)),this._$AV.push(u),l=n[++c]}s!==l?.index&&(a=kt.nextNode(),s++)}return kt.currentNode=Mt,i}p(e){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},Jt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,i){this.type=2,this._$AH=U,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Dt(this,e,r),zr(e)?e===U||e==null||e===""?(this._$AH!==U&&this._$AR(),this._$AH=U):e!==this._$AH&&e!==ut&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Rs(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==U&&zr(this._$AH)?this._$AA.nextSibling.data=e:this.$(Mt.createTextNode(e)),this._$AH=e}g(e){let{values:r,_$litType$:n}=e,i=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=jr.createElement(Ps(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let a=new Io(i,this),s=a.u(this.options);a.p(r),this.$(s),this._$AH=a}}_$AC(e){let r=ws.get(e.strings);return r===void 0&&ws.set(e.strings,r=new jr(e)),r}T(e){As(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let a of e)i===r.length?r.push(n=new t(this.k(Hr()),this.k(Hr()),this,this.options)):n=r[i],n._$AI(a),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Ut=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,i,a){this.type=1,this._$AH=U,this._$AN=void 0,this.element=e,this.name=r,this._$AM=i,this.options=a,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=U}_$AI(e,r=this,n,i){let a=this.strings,s=!1;if(a===void 0)e=Dt(this,e,r,0),s=!zr(e)||e!==this._$AH&&e!==ut,s&&(this._$AH=e);else{let c=e,l,u;for(e=a[0],l=0;l<a.length-1;l++)u=Dt(this,c[n+l],r,l),u===ut&&(u=this._$AH[l]),s||=!zr(u)||u!==this._$AH[l],u===U?e=U:e!==U&&(e+=(u??"")+a[l+1]),this._$AH[l]=u}s&&!i&&this.O(e)}O(e){e===U?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},$o=class extends Ut{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===U?void 0:e}},Lo=class extends Ut{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==U)}},ko=class extends Ut{constructor(e,r,n,i,a){super(e,r,n,i,a),this.type=5}_$AI(e,r=this){if((e=Dt(this,e,r,0)??U)===ut)return;let n=this._$AH,i=e===U&&n!==U||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,a=e!==U&&(n===U||i);i&&this.element.removeEventListener(this.name,this,n),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Mo=class{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){Dt(this,e)}},jp={j:_n,P:Qe,A:Pn,C:1,M:Ts,L:Io,R:Rs,V:Dt,D:Jt,I:Ut,H:Lo,N:ko,U:$o,B:Mo},Vp=Nn.litHtmlPolyfillSupport;Vp?.(jr,Jt),(Nn.litHtmlVersions??=[]).push("3.1.0");var Tn=(t,e,r)=>{let n=r?.renderBefore??e,i=n._$litPart$;if(i===void 0){let a=r?.renderBefore??null;n._$litPart$=i=new Jt(e.insertBefore(Hr(),a),a,void 0,r??{})}return i._$AI(t),i};var et=class extends Fe{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Tn(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ut}};et._$litElement$=!0,et.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:et});var Kp=globalThis.litElementPolyfillSupport;Kp?.({LitElement:et});var Gp={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};(globalThis.litElementVersions??=[]).push("4.0.2");var wf=!1;var kn={};Y(kn,{customElement:()=>$n,eventOptions:()=>Qt,property:()=>O,query:()=>se,queryAll:()=>Yp,queryAssignedElements:()=>Jp,queryAssignedNodes:()=>Ln,queryAsync:()=>Xp,standardProperty:()=>Is,state:()=>ie});var $n=t=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};var Zp={attribute:!0,type:String,converter:$r,reflect:!1,hasChanged:xo},Is=(t=Zp,e,r)=>{let{kind:n,metadata:i}=r,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),a.set(r.name,t),n==="accessor"){let{name:s}=r;return{set(c){let l=e.get.call(this);e.set.call(this,c),this.requestUpdate(s,l,t)},init(c){return c!==void 0&&this.C(s,void 0,t),c}}}if(n==="setter"){let{name:s}=r;return function(c){let l=this[s];e.call(this,c),this.requestUpdate(s,l,t)}}throw Error("Unsupported decorator location: "+n)};function O(t){return(e,r)=>typeof r=="object"?Is(t,e,r):((n,i,a)=>{let s=i.hasOwnProperty(a);return i.constructor.createProperty(a,s?{...n,wrapped:!0}:n),s?Object.getOwnPropertyDescriptor(i,a):void 0})(t,e,r)}function ie(t){return O({...t,state:!0,attribute:!1})}function Qt(t){return(e,r)=>{let n=typeof e=="function"?e:e[r];Object.assign(n,t)}}var ke=(t,e,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,r),r);function se(t,e){return(r,n,i)=>{let a=s=>s.renderRoot?.querySelector(t)??null;if(e){let{get:s,set:c}=typeof n=="object"?r:i??(()=>{let l=Symbol();return{get(){return this[l]},set(u){this[l]=u}}})();return ke(r,n,{get(){let l=s.call(this);return l===void 0&&(l=a(this),(l!==null||this.hasUpdated)&&c.call(this,l)),l}})}return ke(r,n,{get(){return a(this)}})}}var qp;function Yp(t){return(e,r)=>ke(e,r,{get(){return(this.renderRoot??(qp??=document.createDocumentFragment())).querySelectorAll(t)}})}function Xp(t){return(e,r)=>ke(e,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})}function Jp(t){return(e,r)=>{let{slot:n,selector:i}=t??{},a="slot"+(n?`[name=${n}]`:":not([name])");return ke(e,r,{get(){let s=this.renderRoot?.querySelector(a),c=s?.assignedElements(t)??[];return i===void 0?c:c.filter(l=>l.matches(i))}})}}function Ln(t){return(e,r)=>{let{slot:n}=t??{},i="slot"+(n?`[name=${n}]`:":not([name])");return ke(e,r,{get(){return this.renderRoot?.querySelector(i)?.assignedNodes(t)??[]}})}}var Mn={};Y(Mn,{repeat:()=>Vr});var dt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ft=t=>(...e)=>({_$litDirective$:t,values:e}),We=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,n){this._$Ct=e,this._$AM=r,this._$Ci=n}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var{D:Qp}=ys;var $s=()=>document.createComment(""),er=(t,e,r)=>{let n=t._$AA.parentNode,i=e===void 0?t._$AB:e._$AA;if(r===void 0){let a=n.insertBefore($s(),i),s=n.insertBefore($s(),i);r=new Qp(a,s,t,t.options)}else{let a=r._$AB.nextSibling,s=r._$AM,c=s!==t;if(c){let l;r._$AQ?.(t),r._$AM=t,r._$AP!==void 0&&(l=t._$AU)!==s._$AU&&r._$AP(l)}if(a!==i||c){let l=r._$AA;for(;l!==a;){let u=l.nextSibling;n.insertBefore(l,i),l=u}}}return r},ht=(t,e,r=t)=>(t._$AI(e,r),t),eu={},Ls=(t,e=eu)=>t._$AH=e,ks=t=>t._$AH,Do=t=>{t._$AP?.(!1,!0);let e=t._$AA,r=t._$AB.nextSibling;for(;e!==r;){let n=e.nextSibling;e.remove(),e=n}};var Ms=(t,e,r)=>{let n=new Map;for(let i=e;i<=r;i++)n.set(t[i],i);return n},Vr=ft(class extends We{constructor(t){if(super(t),t.type!==dt.CHILD)throw Error("repeat() can only be used in text expressions")}ht(t,e,r){let n;r===void 0?r=e:e!==void 0&&(n=e);let i=[],a=[],s=0;for(let c of t)i[s]=n?n(c,s):s,a[s]=r(c,s),s++;return{values:a,keys:i}}render(t,e,r){return this.ht(t,e,r).values}update(t,[e,r,n]){let i=ks(t),{values:a,keys:s}=this.ht(e,r,n);if(!Array.isArray(i))return this.dt=s,a;let c=this.dt??=[],l=[],u,d,h=0,y=i.length-1,g=0,b=a.length-1;for(;h<=y&&g<=b;)if(i[h]===null)h++;else if(i[y]===null)y--;else if(c[h]===s[g])l[g]=ht(i[h],a[g]),h++,g++;else if(c[y]===s[b])l[b]=ht(i[y],a[b]),y--,b--;else if(c[h]===s[b])l[b]=ht(i[h],a[b]),er(t,l[b+1],i[h]),h++,b--;else if(c[y]===s[g])l[g]=ht(i[y],a[g]),er(t,i[h],i[y]),y--,g++;else if(u===void 0&&(u=Ms(s,g,b),d=Ms(c,h,y)),u.has(c[h]))if(u.has(c[y])){let C=d.get(s[g]),N=C!==void 0?i[C]:null;if(N===null){let _=er(t,i[h]);ht(_,a[g]),l[g]=_}else l[g]=ht(N,a[g]),er(t,i[h],N),i[C]=null;g++}else Do(i[y]),y--;else Do(i[h]),h++;for(;g<=b;){let C=er(t,l[b+1]);ht(C,a[g]),l[g++]=C}for(;h<=y;){let C=i[h++];C!==null&&Do(C)}return this.dt=s,Ls(t,l),Re}});var Dn={};Y(Dn,{classMap:()=>tt});var tt=ft(class extends We{constructor(t){if(super(t),t.type!==dt.ATTRIBUTE||t.name!=="class"||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(this.it===void 0){this.it=new Set,t.strings!==void 0&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(let n in e)e[n]&&!this.st?.has(n)&&this.it.add(n);return this.render(e)}let r=t.element.classList;for(let n of this.it)n in e||(r.remove(n),this.it.delete(n));for(let n in e){let i=!!e[n];i===this.it.has(n)||this.st?.has(n)||(i?(r.add(n),this.it.add(n)):(r.remove(n),this.it.delete(n)))}return Re}});var Un={};Y(Un,{styleMap:()=>ru});var Ds="important",tu=" !"+Ds,ru=ft(class extends We{constructor(t){if(super(t),t.type!==dt.ATTRIBUTE||t.name!=="style"||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,r)=>{let n=t[r];return n==null?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}update(t,[e]){let{style:r}=t.element;if(this.ut===void 0)return this.ut=new Set(Object.keys(e)),this.render(e);for(let n of this.ut)e[n]==null&&(this.ut.delete(n),n.includes("-")?r.removeProperty(n):r[n]=null);for(let n in e){let i=e[n];if(i!=null){this.ut.add(n);let a=typeof i=="string"&&i.endsWith(tu);n.includes("-")||a?r.setProperty(n,a?i.slice(0,-11):i,a?Ds:""):r[n]=i}}return Re}});var Bn={};Y(Bn,{UnsafeHTMLDirective:()=>tr,unsafeHTML:()=>Bt});var tr=class extends We{constructor(e){if(super(e),this.et=J,e.type!==dt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===J||e==null)return this.vt=void 0,this.et=e;if(e===Re)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.vt;this.et=e;let r=[e];return r.raw=r,this.vt={_$litType$:this.constructor.resultType,strings:r,values:[]}}};tr.directiveName="unsafeHTML",tr.resultType=1;var Bt=ft(tr);var Wn={};Y(Wn,{CacheRegistry:()=>He});var Fn={};Y(Fn,{CancelablePromise:()=>rr,CanceledPromiseError:()=>mt,cancelable:()=>or});var mt=class extends Error{constructor(e,r,n){super(e),this.canceledPromiseResult=r,this.canceledPromiseError=n}},rr=class extends Promise{constructor(e){super((r,n)=>e(i=>{this.isCanceled?n(new mt("Promise has been canceled",i)):r(i)},i=>{this.isCanceled?n(new mt("Promise has been canceled",void 0,i)):n(i)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},or=t=>new rr((e,r)=>t.then(e).catch(r));var He=class{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(e,r){this.loaders[e]=r,this.finalContent.delete(e)}registerFinal(e,r){this.loaders[e]=r,this.finalContent.add(e)}clearAll(){for(let e in this.content)this.clear(e)}clear(e){this.finalContent.has(e)||this.forceClear(e)}forceClear(e){this.clearClearTimeout(e),this.content[e]instanceof rr&&this.content[e].cancel(),delete this.content[e]}clearClearTimeout(e){this.clearTimeouts[e]!=null&&(window.clearTimeout(this.clearTimeouts[e]),delete this.clearTimeouts[e])}set(e,r){this.forceClear(e),this.register(e,async()=>r),this.content[e]=r}setFinal(e,r){this.forceClear(e),this.registerFinal(e,async()=>r),this.content[e]=r}async get(e,r,n){if(this.content[e]===void 0){if(r=r??this.loaders[e],r==null)throw new Error("Unknown cache key "+e);let i=or(r());return this.content[e]=i,i.then(a=>(this.content[e]=a,n!=null&&(this.clearClearTimeout(e),this.clearTimeouts[e]=window.setTimeout(()=>this.clear(e),n)),a))}if(this.content[e]instanceof Error)throw this.content[e];return this.content[e]}isResolvedValue(e){return e!=null&&!(e instanceof Promise)&&!(e instanceof Error)}getNow(e){if(this.isResolvedValue(this.content[e]))return this.content[e]}has(e){return this.content[e]!=null}resolvedKeys(){return Object.keys(this.content).filter(e=>this.isResolvedValue(this.content[e]))}resolvedValues(){return Object.values(this.content).filter(e=>this.isResolvedValue(e))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}};var zn={};Y(zn,{ClusteringHelper:()=>Hn});var Hn=class t{constructor(e,r,n,i){this.allResults=e,this.selectedResult=r,this.clusteringMetadata=n,this.metadataDescriptors=i}static extractResultMetadata(e,r){var n,i;let a=((i=(n=e?.map)!==null&&n!==void 0?n:e?.document)!==null&&i!==void 0?i:e?.topic).metadata.map(s=>t.flattenMetadata(s));return r==null?a:a.find(s=>s.key===r)}static flattenMetadata(e){if(e.hierarchicalValues){let r=[],n=[];return e.hierarchicalValues.forEach(i=>{r.push(i.join(" > ")),i.length>2?n.push(`... > ${i[i.length-1]}`):n.push(i.join(" > "))}),{key:e.key,label:e.label,value:r.join(", "),displayValue:n.join(", ")}}else{let r=e.values.join(", ");return{key:e.key,label:e.label,value:r,displayValue:r}}}computeClustersItemsForMetadata(e,r,n="No value"){var i,a;let s=t.extractResultMetadata(this.selectedResult,e),c=(i=s?.label)!==null&&i!==void 0?i:(a=this.getMetadataDescriptor(e))===null||a===void 0?void 0:a.label;return this.allResults.map(u=>t.extractResultMetadata(u,e)).map(u=>u??{key:e,label:c,value:void 0,displayValue:n}).filter(u=>u.value!=s?.value).filter((u,d,h)=>h.findIndex(y=>y.value===u.value)===d).map(u=>({result:this.findBestResultForMetadataValue(e,u.value),metadata:u})).sort((u,d)=>this.compareMetadata(u.metadata.value,d.metadata.value,e,r))}compareMetadata(e,r,n,i){if(e==null)return-1;if(r==null)return 1;let a=this.getMetadataDescriptor(n),s=a?.sortRule||"NONE",c=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let l=e.localeCompare(r,i,{numeric:!0});return c?l*-1:l}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(r=>e==r.key)}findBestResultForMetadataValue(e,r){let n=this.allResults.filter(l=>{var u;return((u=t.extractResultMetadata(l,e))===null||u===void 0?void 0:u.value)==r}),a=[...t.extractResultMetadata(this.selectedResult).filter(l=>this.clusteringMetadata.has(l.key)).filter(l=>l.key!==e)],s,c=-1;for(let l of n){let u=this.countMatchingMetadata(l,a);if(u>c&&(c=u,s=l,u===a.length))break}return s}countMatchingMetadata(e,r){return t.extractResultMetadata(e).filter(n=>r.some(i=>i.key===n.key&&i.value===n.value)).length}};var jn={};Y(jn,{Debouncer:()=>pe});var pe=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let n=[...this.callbacks];this.callbacks=[];let i=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(c){i(c);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Kn={};Y(Kn,{customElement:()=>B,isNumber:()=>Ws,jsonProperty:()=>fe,optionalNumberProperty:()=>lu});var Vn={};Y(Vn,{dateReviver:()=>nu,deepEqual:()=>Ie,delay:()=>Uo,eventPathContainsMatchingElement:()=>au,flatDeep:()=>Bs,last:()=>cu,minmax:()=>su,parseDate:()=>Fs,waitFor:()=>Us,waitUntil:()=>ou});var Uo=t=>new Promise(e=>setTimeout(e,t));async function ou(t,e=10,r=2e4){await Us(async()=>await t()||void 0,e,r)}async function Us(t,e=10,r=2e4){let n=await t(),i,a;for(i=a=performance.now();n==null&&(!r||a-i<r);)await Uo(e),n=await t(),a=performance.now();if(n==null)throw new Error("Timeout exceeded");return n}function Bs(t,e){return t.flatMap(r=>[r,...Bs(e(r),e)])}function nu(...t){return function(e,r){return t.includes(e)?Fs(r):r}}function Fs(t){return t.match(/^\d{4}-\d{2}-\d{2}$/)&&(t=t.replace(/-/g,"/")),t=t.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,r,n,i)=>r+n+":"+i),new Date(t)}function iu(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var r,n,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(n=r;n--!==0;)if(!Ie(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!Ie(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(i=Object.keys(t),r=i.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[n]))return!1;for(n=r;n--!==0;){var a=i[n];if(!Ie(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function Ie(t,e){try{return iu(t,e)}catch{return!1}}function au(t,e,r=window.document.body){if(e.length>0){let n=t.composedPath();for(let i of n){if(i===r)return!1;if(i.matches&&e.some(a=>i.matches(a)))return!0}}return!1}function su(t,e,r){return Math.min(Math.max(t,e),r)}function cu(t){return t[t.length-1]}var B=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function fe(t,e){let r=()=>JSON.parse(JSON.stringify(t));return O({type:Object,converter:{fromAttribute:n=>{if(n==null)return r();try{return JSON.parse(n)}catch{return r()}},toAttribute:n=>JSON.stringify(n)},hasChanged:(n,i)=>!Ie(n,i),...e??{}})}function lu(t){return O({type:Object,converter:{fromAttribute:e=>{if(e!=null)return Ws(e)?+e:void 0},toAttribute:e=>e==null?void 0:""+e},...t??{}})}function Ws(t){return!isNaN(parseFloat(t))}var xi={};Y(xi,{designSystemVariables:()=>I});var bi={};Y(bi,{FtCssVariableFactory:()=>o,banner:()=>uu,border:()=>Ru,breadcrumb:()=>du,button:()=>P,chart:()=>wu,checkbox:()=>_u,chip:()=>Au,collapsible:()=>Cu,comboboxMultiSelect:()=>vu,comboboxSingleSelect:()=>xu,drawer:()=>mu,floatingMenu:()=>bu,foundation:()=>p,modal:()=>hu,notice:()=>Nu,notification:()=>Iu,pageHeader:()=>fu,popover:()=>Su,radio:()=>Tu,semantic:()=>f,setVariable:()=>T,switch_:()=>Eu,tabs:()=>Ou,textArea:()=>gu,textInput:()=>yu,toggle:()=>Pu,tooltip:()=>$u,typographies:()=>Kr,typographyBody1Medium:()=>Jn,typographyBody1Regular:()=>Xn,typographyBody1Semibold:()=>Qn,typographyBody2Medium:()=>ti,typographyBody2MediumUnderline:()=>Hs,typographyBody2Regular:()=>ei,typographyBody2Semibold:()=>ri,typographyCaption1Bold:()=>ui,typographyCaption1Medium:()=>li,typographyCaption1Semibold:()=>pi,typographyCaption2Bold:()=>hi,typographyCaption2Medium:()=>di,typographyCaption2Semibold:()=>fi,typographyCaption3Bold:()=>gi,typographyCaption3Medium:()=>mi,typographyCaption3Semibold:()=>yi,typographyDisplay:()=>Gn,typographyLabel1Bold:()=>ii,typographyLabel1Medium:()=>oi,typographyLabel1Semibold:()=>ni,typographyLabel2Bold:()=>ci,typographyLabel2Medium:()=>ai,typographyLabel2Semibold:()=>si,typographyTitle1:()=>Zn,typographyTitle2:()=>qn,typographyTitle3:()=>Yn,typographyVariants:()=>pu});var rt=t=>typeof t=="string"?$t(t):t,o=class{static create(e,r,n,i){let a=c=>rt(c??i),s=R`var(${rt(e)}, ${a(i)})`;return s.name=e,s.description=r,s.category=n,s.defaultValue=i,s.defaultCssValue=a,s.get=c=>R`var(${rt(e)}, ${a(c)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(e,r,n,i){let a=c=>n.get(c??i),s=R`var(${rt(e)}, ${a(i)})`;return s.name=e,s.description=r,s.category=n.category,s.fallbackVariable=n,s.defaultValue=i,s.defaultCssValue=a,s.get=c=>R`var(${rt(e)}, ${a(c)})`,s.breadcrumb=()=>[n.name,...n.breadcrumb()],s.lastResortDefaultValue=()=>i??n.lastResortDefaultValue(),s}static external(e,r){let n=a=>e.fallbackVariable?e.fallbackVariable.get(a??e.defaultValue):rt(a??e.lastResortDefaultValue()),i=R`var(${rt(e.name)}, ${n(e.defaultValue)})`;return i.name=e.name,i.category=e.category,i.fallbackVariable=e.fallbackVariable,i.defaultValue=e.defaultValue,i.context=r,i.defaultCssValue=n,i.get=a=>R`var(${rt(e.name)}, ${n(a)})`,i.breadcrumb=()=>e.fallbackVariable?[e.fallbackVariable.name,...e.fallbackVariable.breadcrumb()]:[],i.lastResortDefaultValue=()=>e.lastResortDefaultValue(),i}};function T(t,e){return rt(`${t.name}: ${e}`)}var p={colorWhite:o.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:o.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:o.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:o.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:o.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:o.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:o.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:o.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:o.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:o.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:o.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:o.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:o.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:o.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:o.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:o.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:o.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:o.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:o.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:o.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:o.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:o.create("--ft-icon-size-6","","SIZE","48px"),opacity0:o.create("--ft-opacity-0","","NUMBER","0"),opacity8:o.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:o.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:o.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:o.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:o.create("--ft-shadow-elevation-01","","SHADOW","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)"),shadowElevation02:o.create("--ft-shadow-elevation-02","","SHADOW","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)"),shadowElevation03:o.create("--ft-shadow-elevation-03","","SHADOW","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)"),shadowElevation04:o.create("--ft-shadow-elevation-04","","SHADOW","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)"),shadowElevation06:o.create("--ft-shadow-elevation-06","","SHADOW","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)"),shadowElevation08:o.create("--ft-shadow-elevation-08","","SHADOW","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)"),shadowElevation12:o.create("--ft-shadow-elevation-12","","SHADOW","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)"),shadowElevation16:o.create("--ft-shadow-elevation-16","","SHADOW","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)"),shadowElevation24:o.create("--ft-shadow-elevation-24","","SHADOW","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)")},Gn={fontFamily:o.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:o.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-display-textCase","","UNKNOWN","none")},Zn={fontFamily:o.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:o.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},qn={fontFamily:o.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:o.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},Yn={fontFamily:o.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:o.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:o.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},Xn={fontFamily:o.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},Jn={fontFamily:o.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},Qn={fontFamily:o.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},ei={fontFamily:o.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},ti={fontFamily:o.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},Hs={fontFamily:o.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:o.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:o.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},ri={fontFamily:o.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},oi={fontFamily:o.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},ni={fontFamily:o.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},ii={fontFamily:o.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},ai={fontFamily:o.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},si={fontFamily:o.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},ci={fontFamily:o.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},li={fontFamily:o.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},pi={fontFamily:o.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},ui={fontFamily:o.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},di={fontFamily:o.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},fi={fontFamily:o.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},hi={fontFamily:o.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},mi={fontFamily:o.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},yi={fontFamily:o.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},gi={fontFamily:o.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},Kr={display:Gn,"title-1":Zn,"title-2":qn,"title-3":Yn,"body-1-regular":Xn,"body-1-medium":Jn,"body-1-semibold":Qn,"body-2-regular":ei,"body-2-medium":ti,"body-2-medium-underline":Hs,"body-2-semibold":ri,"label-1-medium":oi,"label-1-semibold":ni,"label-1-bold":ii,"label-2-medium":ai,"label-2-semibold":si,"label-2-bold":ci,"caption-1-medium":li,"caption-1-semibold":pi,"caption-1-bold":ui,"caption-2-medium":di,"caption-2-semibold":fi,"caption-2-bold":hi,"caption-3-medium":mi,"caption-3-semibold":yi,"caption-3-bold":gi},pu=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","label-1","label-2","caption-1","caption-2","caption-3"];var f={backgroundActionPrimary:o.extend("--ft-background-action-primary","Used as backgorund of primary action components.",p.colorBrand0),backgroundErrorSubtle:o.extend("--ft-background-error-subtle","Used as background of subtle error components.",p.colorRed10),backgroundInfoSubtle:o.extend("--ft-background-info-subtle","Used as background of subtle information components.",p.colorCyan10),backgroundWarningSubtle:o.extend("--ft-background-warning-subtle","Used as background of subtle information components.",p.colorOrange10),backgroundSuccessSubtle:o.extend("--ft-background-success-subtle","Used as background of subtle success components.",p.colorGreen10),backgroundGlobalSurface:o.extend("--ft-background-global-surface","Used as app background.",p.colorWhite),backgroundGlobalOnSurface:o.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",p.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",p.colorGray30),contentActionPrimary:o.extend("--ft-content-action-primary","Used on label of primary action on light surface.",p.colorBrand0),contentWarningPrimary:o.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",p.colorOrange200),contentWarningIconOnly:o.extend("--ft-content-warning-icon-only","Used on warning status icons alone",p.colorOrange0),contentErrorPrimary:o.extend("--ft-content-error-primary","Used on label of error messages on light surface.",p.colorRed0),contentErrorIconOnly:o.extend("--ft-content-error-icon-only","Used on error status icons alone",p.colorRed70),contentInfoPrimary:o.extend("--ft-content-info-primary","Used on label of information messages on light surface.",p.colorCyan200),contentInfoIconOnly:o.extend("--ft-content-info-icon-only","Used on info status icons alone",p.colorCyan0),contentSuccessPrimary:o.extend("--ft-content-success-primary","Used on label of success messages on light surface.",p.colorGreen200),contentSuccessIconOnly:o.extend("--ft-content-success-icon-only","Used on success status icons alone",p.colorGreen0),contentGlobalPrimary:o.extend("--ft-content-global-primary","Used for main content on the page.",p.colorGray500),contentGlobalSecondary:o.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
6
|
+
Also for action icons.`,p.colorGray200),contentGlobalSubtle:o.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",p.colorGray0),contentGlobalOnColor:o.extend("--ft-content-global-on-color","Used for content on a dominant color.",p.colorWhite),borderActionPrimary:o.extend("--ft-border-action-primary","Used as border for primary action components.",p.colorBrand0),borderActionFocusRing:o.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",p.colorCyan0),borderWarningPrimary:o.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",p.colorOrange200),borderWarningSubtle:o.extend("--ft-border-warning-subtle","Used as border for warning components.",p.colorOrange30),borderSuccessPrimary:o.extend("--ft-border-success-primary","Used as border for success buttons.",p.colorGreen200),borderSuccessSubtle:o.extend("--ft-border-success-subtle","Used as border for success components.",p.colorGreen30),borderErrorPrimary:o.extend("--ft-border-error-primary","Used as border for text fields in error states.",p.colorRed0),borderErrorSubtle:o.extend("--ft-border-error-subtle","Used as border for error components.",p.colorRed30),borderInfoPrimary:o.extend("--ft-border-info-primary","Used as border for buttons in info color.",p.colorCyan200),borderInfoSubtle:o.extend("--ft-border-info-subtle","Used as border for information components.",p.colorCyan30),borderGlobalPrimary:o.extend("--ft-border-global-primary","Used as border for element like input.",p.colorGray50),borderGlobalSubtle:o.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",p.colorGray30),borderInputPrimary:o.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",p.colorGray80)};var P={largeHeight:o.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ft-button-large-horizontal-padding","",p.spacing4),largeGap:o.extend("--ft-button-large-gap","",p.spacing2),largeBorderRadius:o.extend("--ft-button-large-border-radius","",p.borderRadiusS),largeIconSize:o.extend("--ft-button-large-icon-size","",p.iconSize3),largeBorderWidth:o.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:o.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:o.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:o.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:o.extend("--ft-button-small-horizontal-padding","",p.spacing3),smallGap:o.extend("--ft-button-small-gap","",p.spacing2),smallBorderRadius:o.extend("--ft-button-small-border-radius","",p.borderRadiusS),smallIconSize:o.extend("--ft-button-small-icon-size","",p.iconSize2),smallBorderWidth:o.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:o.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:o.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:o.extend("--ft-button-primary-background-color","",f.backgroundActionPrimary),primaryColor:o.extend("--ft-button-primary-color","",f.contentGlobalOnColor),primaryIconColor:o.extend("--ft-button-primary-icon-color","",f.contentGlobalOnColor),primaryStateLayerColor:o.extend("--ft-button-primary-state-layer-color","",f.contentGlobalOnColor),primaryHoverStateLayerOpacity:o.extend("--ft-button-primary-hover-state-layer-opacity","",p.opacity16),primaryFocusStateLayerOpacity:o.extend("--ft-button-primary-focus-state-layer-opacity","",p.opacity16),primaryActiveStateLayerOpacity:o.extend("--ft-button-primary-active-state-layer-opacity","",p.opacity24),primaryDisabledComponentOpacity:o.extend("--ft-button-primary-disabled-component-opacity","",p.opacity40),focusFocusRingColor:o.extend("--ft-button-focus-focus-ring-color","",f.borderActionFocusRing),tertiaryBackgroundColor:o.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:o.extend("--ft-button-tertiary-color","",f.contentActionPrimary),tertiaryIconColor:o.extend("--ft-button-tertiary-icon-color","",f.contentActionPrimary),tertiaryStateLayerColor:o.extend("--ft-button-tertiary-state-layer-color","",f.contentActionPrimary),tertiaryHoverStateLayerOpacity:o.extend("--ft-button-tertiary-hover-state-layer-opacity","",p.opacity8),tertiaryFocusStateLayerOpacity:o.extend("--ft-button-tertiary-focus-state-layer-opacity","",p.opacity8),tertiaryActiveStateLayerOpacity:o.extend("--ft-button-tertiary-active-state-layer-opacity","",p.opacity16),tertiaryDisabledComponentOpacity:o.extend("--ft-button-tertiary-disabled-component-opacity","",p.opacity40),secondaryBackgroundColor:o.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:o.extend("--ft-button-secondary-color","",f.contentActionPrimary),secondaryIconColor:o.extend("--ft-button-secondary-icon-color","",f.contentActionPrimary),secondaryStateLayerColor:o.extend("--ft-button-secondary-state-layer-color","",f.contentActionPrimary),secondaryHoverStateLayerOpacity:o.extend("--ft-button-secondary-hover-state-layer-opacity","",p.opacity8),secondaryFocusStateLayerOpacity:o.extend("--ft-button-secondary-focus-state-layer-opacity","",p.opacity8),secondaryActiveStateLayerOpacity:o.extend("--ft-button-secondary-active-state-layer-opacity","",p.opacity16),secondaryDisabledComponentOpacity:o.extend("--ft-button-secondary-disabled-component-opacity","",p.opacity40),secondaryBorderColor:o.extend("--ft-button-secondary-border-color","",f.borderActionPrimary),neutralBackgroundColor:o.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:o.extend("--ft-button-neutral-icon-color","",f.contentGlobalSecondary),neutralColor:o.extend("--ft-button-neutral-color","",f.contentGlobalSecondary),neutralStateLayerColor:o.extend("--ft-button-neutral-state-layer-color","",f.contentGlobalSecondary),neutralHoverStateLayerOpacity:o.extend("--ft-button-neutral-hover-state-layer-opacity","",p.opacity8),neutralFocusStateLayerOpacity:o.extend("--ft-button-neutral-focus-state-layer-opacity","",p.opacity8),neutralActiveStateLayerOpacity:o.extend("--ft-button-neutral-active-state-layer-opacity","",p.opacity16),neutralDisabledComponentOpacity:o.extend("--ft-button-neutral-disabled-component-opacity","",p.opacity40)};var uu={iconSize:o.extend("--ft-banner-icon-size","",p.iconSize5),borderWidth:o.create("--ft-banner-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ft-banner-horizontal-padding","",p.spacing6),verticalPadding:o.extend("--ft-banner-vertical-padding","",p.spacing6),horizontalSideGap:o.extend("--ft-banner-horizontal-side-gap","",p.spacing6),horizontalMobileGap:o.extend("--ft-banner-horizontal-mobile-gap","",p.spacing4),verticalMobileGap:o.extend("--ft-banner-vertical-mobile-gap","",p.spacing6),horizontalMiddleGap:o.extend("--ft-banner-horizontal-middle-gap","",p.spacing20),infoBackgroundColor:o.extend("--ft-banner-info-background-color","",f.backgroundInfoSubtle),infoColor:o.extend("--ft-banner-info-color","",f.contentInfoPrimary),infoIconColor:o.extend("--ft-banner-info-icon-color","",f.contentInfoIconOnly)};var du={horizontalGap:o.extend("--ft-breadcrumb-horizontal-gap","",p.spacing1),verticalGap:o.extend("--ft-breadcrumb-vertical-gap","",p.spacing2),currentElementColor:o.extend("--ft-breadcrumb-current-element-color","",f.contentGlobalPrimary),iconColor:o.extend("--ft-breadcrumb-icon-color","",f.contentGlobalSubtle)};var fu={horizontalPadding:o.extend("--ft-page-header-horizontal-padding","",p.spacing12),horizontalGap:o.extend("--ft-page-header-horizontal-gap","",p.spacing4),verticalGap:o.extend("--ft-page-header-vertical-gap","",p.spacing2),classicVerticalPadding:o.extend("--ft-page-header-classic-vertical-padding","",p.spacing6),multilineVerticalPadding:o.extend("--ft-page-header-multiline-vertical-padding","",p.spacing4),inlineVerticalPadding:o.extend("--ft-page-header-inline-vertical-padding","",p.spacing2),backgroundColor:o.extend("--ft-page-header-background-color","",p.colorWhite),bottomBorderColor:o.extend("--ft-page-header-bottom-border-color","",f.borderGlobalSubtle),titleColor:o.extend("--ft-page-header-title-color","",f.contentGlobalPrimary),subtitleColor:o.extend("--ft-page-header-subtitle-color","",f.contentGlobalSecondary)};var hu={smallContainerWidth:o.create("--ft-modal-small-container-width","","SIZE","600px"),largeContainerWidth:o.create("--ft-modal-large-container-width","","SIZE","900px"),overlayBackgroundColor:o.extend("--ft-modal-overlay-background-color","",p.colorGray700),overlayOpacity:o.extend("--ft-modal-overlay-opacity","",p.opacity40),shadow:o.extend("--ft-modal-shadow","",p.shadowElevation03),bodyBackgroundColor:o.extend("--ft-modal-body-background-color","",p.colorWhite),bodyColor:o.extend("--ft-modal-body-color","",f.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-modal-body-horizontal-padding","",p.spacing6),bodyVerticalPadding:o.extend("--ft-modal-body-vertical-padding","",p.spacing6),bodyVerticalGap:o.extend("--ft-modal-body-vertical-gap","",p.spacing6),containerMargin:o.extend("--ft-modal-container-margin","",p.spacing3),headerBackgroundColor:o.extend("--ft-modal-header-background-color","",f.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-modal-header-border-color","",f.borderGlobalSubtle),headerColor:o.extend("--ft-modal-header-color","",f.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ft-modal-header-trailing-icon-color","",f.contentGlobalSecondary),headerVerticalPadding:o.extend("--ft-modal-header-vertical-padding","",p.spacing1),headerRightPadding:o.extend("--ft-modal-header-right-padding","",p.spacing1),headerLeftPadding:o.extend("--ft-modal-header-left-padding","",p.spacing6),headerGap:o.extend("--ft-modal-header-gap","",p.spacing2),headerBorderBottom:o.create("--ft-modal-header-border-bottom","","SIZE","1px"),borderRadius:o.extend("--ft-modal-border-radius","",p.borderRadiusM)};var mu={overlayOpacity:o.extend("--ft-drawer-overlay-opacity","",p.opacity40),shadow:o.extend("--ft-drawer-shadow","",p.shadowElevation03),bodyColor:o.extend("--ft-drawer-body-color","",f.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-drawer-body-horizontal-padding","",p.spacing6),bodyVerticalPadding:o.extend("--ft-drawer-body-vertical-padding","",p.spacing6),bodyGap:o.extend("--ft-drawer-body-gap","",p.spacing6),bodyBackgroundColor:o.extend("--ft-drawer-body-background-color","",p.colorWhite),headerBackgroundColor:o.extend("--ft-drawer-header-background-color","",f.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-drawer-header-border-color","",f.borderGlobalSubtle),headerColor:o.extend("--ft-drawer-header-color","",f.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ft-drawer-header-trailing-icon-color","",f.contentGlobalSecondary),headerHeight:o.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ft-drawer-header-horizontal-padding","",p.spacing2),headerBorderWidth:o.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ft-drawer-header-gap","",p.spacing3),buttonsBarBackgroundColor:o.extend("--ft-drawer-buttons-bar-background-color","",f.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ft-drawer-buttons-bar-border-color","",f.borderGlobalSubtle),buttonsBarColor:o.extend("--ft-drawer-buttons-bar-color","",f.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ft-drawer-buttons-bar-horizontal-padding","",p.spacing4),buttonsBarVerticalPadding:o.extend("--ft-drawer-buttons-bar-vertical-padding","",p.spacing4),buttonsBarGap:o.extend("--ft-drawer-buttons-bar-gap","",p.spacing3),buttonsBarBorderWidth:o.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:o.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:o.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:o.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:o.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:o.extend("--ft-drawer-overlay-background-color","",p.colorGray700)};var yu={fieldHorizontalPadding:o.extend("--ft-text-input-field-horizontal-padding","",p.spacing4),fieldHorizontalGap:o.extend("--ft-text-input-field-horizontal-gap","",p.spacing3),fieldVerticalGap:o.extend("--ft-text-input-field-vertical-gap","",p.spacing05),fieldIconSize:o.extend("--ft-text-input-field-icon-size","",p.iconSize3),fieldHeight:o.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:o.extend("--ft-text-input-helper-horizontal-padding","",p.spacing4),helperHorizontalGap:o.extend("--ft-text-input-helper-horizontal-gap","",p.spacing1),helperIconSize:o.extend("--ft-text-input-helper-icon-size","",p.iconSize2),borderRadius:o.extend("--ft-text-input-border-radius","",p.borderRadiusM),backgroundColor:o.extend("--ft-text-input-background-color","",p.colorWhite),contentValueColor:o.extend("--ft-text-input-content-value-color","",f.contentGlobalPrimary),trailingIconColor:o.extend("--ft-text-input-trailing-icon-color","",f.contentGlobalSubtle),labelColor:o.extend("--ft-text-input-label-color","",f.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-input-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-input-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-input-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-input-error-helper-text-color","",f.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-input-error-helper-icon-color","",f.contentErrorIconOnly),warningBorderWidth:o.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:o.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-text-input-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:o.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-input-disabled-component-opacity","",p.opacity40)};var gu={backgroundColor:o.extend("--ft-text-area-background-color","",p.colorWhite),contentValueColor:o.extend("--ft-text-area-content-value-color","",f.contentGlobalPrimary),labelColor:o.extend("--ft-text-area-label-color","",f.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-area-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-area-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-area-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-area-error-helper-text-color","",f.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-area-error-helper-icon-color","",f.contentErrorIconOnly),focusFocusRingColor:o.extend("--ft-text-area-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineWidth:o.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-area-disabled-component-opacity","",p.opacity40),fieldHorizontalLeftPadding:o.extend("--ft-text-area-field-horizontal-left-padding","",p.spacing4),fieldHorizontalGap:o.extend("--ft-text-area-field-horizontal-gap","",p.spacing3),fieldVerticalGap:o.extend("--ft-text-area-field-vertical-gap","",p.spacing05),fieldMinHeight:o.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:o.extend("--ft-text-area-helper-horizontal-padding","",p.spacing4),helperHorizontalGap:o.extend("--ft-text-area-helper-horizontal-gap","",p.spacing1),helperIconSize:o.extend("--ft-text-area-helper-icon-size","",p.iconSize2),borderRadius:o.extend("--ft-text-area-border-radius","",p.borderRadiusM)};var bu={height:o.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:o.extend("--ft-floating-menu-horizontal-padding","",p.spacing4),offIconColor:o.extend("--ft-floating-menu-off-icon-color","",f.contentGlobalPrimary),offColor:o.extend("--ft-floating-menu-off-color","",f.contentGlobalPrimary),onColor:o.extend("--ft-floating-menu-on-color","",f.contentActionPrimary),onStateLayerColor:o.extend("--ft-floating-menu-on-state-layer-color","",f.contentActionPrimary),gap:o.extend("--ft-floating-menu-gap","",p.spacing3),focusFocusRingColor:o.extend("--ft-floating-menu-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineWidth:o.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ft-floating-menu-focus-state-layer-opacity","",p.opacity8),hoverStateLayerOpacity:o.extend("--ft-floating-menu-hover-state-layer-opacity","",p.opacity8),activeStateLayerOpacity:o.extend("--ft-floating-menu-active-state-layer-opacity","",p.opacity16),disabledComponentOpacity:o.extend("--ft-floating-menu-disabled-component-opacity","",p.opacity40),iconSize:o.extend("--ft-floating-menu-icon-size","",p.iconSize3),backgroundColor:o.extend("--ft-floating-menu-background-color","",f.backgroundGlobalOnSurface)};var xu={fieldHorizontalPadding:o.extend("--ft-combobox-single-select-field-horizontal-padding","",p.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-single-select-field-horizontal-gap","",p.spacing3),fieldVerticalGap:o.extend("--ft-combobox-single-select-field-vertical-gap","",p.spacing05),fieldIconSize:o.extend("--ft-combobox-single-select-field-icon-size","",p.iconSize3),fieldHeight:o.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:o.extend("--ft-combobox-single-select-helper-horizontal-padding","",p.spacing4),helperHorizontalGap:o.extend("--ft-combobox-single-select-helper-horizontal-gap","",p.spacing1),helperVerticalGap:o.extend("--ft-combobox-single-select-helper-vertical-gap","",p.spacing1),helperIconSize:o.extend("--ft-combobox-single-select-helper-icon-size","",p.iconSize2),menuVerticalGap:o.extend("--ft-combobox-single-select-menu-vertical-gap","",p.spacing2),borderRadius:o.extend("--ft-combobox-single-select-border-radius","",p.borderRadiusM),backgroundColor:o.extend("--ft-combobox-single-select-background-color","",p.colorWhite),labelColor:o.extend("--ft-combobox-single-select-label-color","",f.contentGlobalSubtle),contentValueColor:o.extend("--ft-combobox-single-select-content-value-color","",f.contentGlobalPrimary),trailingIconColor:o.extend("--ft-combobox-single-select-trailing-icon-color","",f.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-single-select-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-single-select-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-combobox-single-select-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-single-select-error-helper-text-color","",f.contentErrorPrimary),warningBorderWidth:o.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-single-select-warning-border-color","",f.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-single-select-warning-helper-text-color","",f.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-single-select-warning-helper-icon-color","",f.contentWarningIconOnly),focusOutlineWidth:o.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-single-select-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:o.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-single-select-disabled-component-opacity","",p.opacity40)};var vu={backgroundColor:o.extend("--ft-combobox-multi-select-background-color","",p.colorWhite),labelColor:o.extend("--ft-combobox-multi-select-label-color","",f.contentGlobalSubtle),trailingIconColor:o.extend("--ft-combobox-multi-select-trailing-icon-color","",f.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-multi-select-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-multi-select-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:o.extend("--ft-combobox-multi-select-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-multi-select-error-helper-text-color","",f.contentErrorPrimary),errorHelperIcon:o.extend("--ft-combobox-multi-select-error-helper-icon","",f.contentErrorIconOnly),errorBorderWidth:o.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-multi-select-warning-border-color","",f.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-multi-select-warning-helper-text-color","",f.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-multi-select-warning-helper-icon-color","",f.contentWarningIconOnly),warningBorderWidth:o.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-multi-select-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineWidth:o.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-multi-select-disabled-component-opacity","",p.opacity40),helperHorizontalPadding:o.extend("--ft-combobox-multi-select-helper-horizontal-padding","",p.spacing4),helperHorizontalGap:o.extend("--ft-combobox-multi-select-helper-horizontal-gap","",p.spacing1),helperVerticalGap:o.extend("--ft-combobox-multi-select-helper-vertical-gap","",p.spacing1),helperIconSize:o.extend("--ft-combobox-multi-select-helper-icon-size","",p.iconSize2),fieldHorizontalPadding:o.extend("--ft-combobox-multi-select-field-horizontal-padding","",p.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-multi-select-field-horizontal-gap","",p.spacing3),fieldVerticalGap:o.extend("--ft-combobox-multi-select-field-vertical-gap","",p.spacing05),fieldIconSize:o.extend("--ft-combobox-multi-select-field-icon-size","",p.iconSize3),fieldMaxHeight:o.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:o.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",p.spacing1),contentValuesVerticalGap:o.extend("--ft-combobox-multi-select-content-values-vertical-gap","",p.spacing1),borderRadius:o.extend("--ft-combobox-multi-select-border-radius","",p.borderRadiusM)};var Su={backgroundColor:o.extend("--ft-popover-background-color","",f.backgroundGlobalOnSurface),horizontalPadding:o.extend("--ft-popover-horizontal-padding","",p.spacing6),verticalPadding:o.extend("--ft-popover-vertical-padding","",p.spacing6),iconColor:o.extend("--ft-popover-icon-color","",f.contentGlobalSecondary),iconSize:o.extend("--ft-popover-icon-size","",p.iconSize2),titleColor:o.extend("--ft-popover-title-color","",f.contentGlobalPrimary),bodyColor:o.extend("--ft-popover-body-color","",f.contentGlobalSecondary),linkColor:o.extend("--ft-popover-link-color","",f.contentActionPrimary),gap:o.extend("--ft-popover-gap","",p.spacing3),borderRadius:o.extend("--ft-popover-border-radius","",p.borderRadiusM),shadow:o.extend("--ft-popover-shadow","",p.shadowElevation02)};var Ou={topLeftBorderRadius:o.extend("--ft-tabs-top-left-border-radius","",p.borderRadiusS),topRightBorderRadius:o.extend("--ft-tabs-top-right-border-radius","",p.borderRadiusS),labelHorizontalPadding:o.extend("--ft-tabs-label-horizontal-padding","",p.spacing4),labelVerticalPadding:o.extend("--ft-tabs-label-vertical-padding","",p.spacing3),labelGap:o.extend("--ft-tabs-label-gap","",p.spacing1),offHoverStateLayerOpacity:o.extend("--ft-tabs-off-hover-state-layer-opacity","",p.opacity8),offFocusStateLayerOpacity:o.extend("--ft-tabs-off-focus-state-layer-opacity","",p.opacity8),offActiveStateLayerOpacity:o.extend("--ft-tabs-off-active-state-layer-opacity","",p.opacity16),offDisabledComponentOpacity:o.extend("--ft-tabs-off-disabled-component-opacity","",p.opacity40),offColor:o.extend("--ft-tabs-off-color","",f.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-tabs-off-state-layer-color","",f.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-tabs-on-hover-state-layer-opacity","",p.opacity8),onFocusStateLayerOpacity:o.extend("--ft-tabs-on-focus-state-layer-opacity","",p.opacity8),onActiveStateLayerOpacity:o.extend("--ft-tabs-on-active-state-layer-opacity","",p.opacity16),onDisabledComponentOpacity:o.extend("--ft-tabs-on-disabled-component-opacity","",p.opacity40),onColor:o.extend("--ft-tabs-on-color","",f.contentActionPrimary),onStateLayerColor:o.extend("--ft-tabs-on-state-layer-color","",f.contentActionPrimary),iconHorizontalPadding:o.extend("--ft-tabs-icon-horizontal-padding","",p.spacing1),iconVerticalPadding:o.extend("--ft-tabs-icon-vertical-padding","",p.spacing4),focusOutlineWidth:o.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-tabs-focus-focus-ring-color","",f.borderActionFocusRing)};var Cu={hoverStateLayerOpacity:o.extend("--ft-collapsible-hover-state-layer-opacity","",p.opacity8),focusStateLayerOpacity:o.extend("--ft-collapsible-focus-state-layer-opacity","",p.opacity8),focusOutlineWidth:o.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ft-collapsible-focus-focus-ring-color","",f.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ft-collapsible-active-state-layer-opacity","",p.opacity16),disabledComponentOpacity:o.extend("--ft-collapsible-disabled-component-opacity","",p.opacity40),horizontalPadding:o.extend("--ft-collapsible-horizontal-padding","",p.spacing4),verticalPadding:o.extend("--ft-collapsible-vertical-padding","",p.spacing3),color:o.extend("--ft-collapsible-color","",f.contentGlobalPrimary),stateLayerColor:o.extend("--ft-collapsible-state-layer-color","",f.contentGlobalPrimary),backgroundColor:o.extend("--ft-collapsible-background-color","",f.backgroundGlobalOnSurface),borderColor:o.extend("--ft-collapsible-border-color","",f.borderGlobalSubtle),iconSize:o.extend("--ft-collapsible-icon-size","",p.iconSize3)};var Eu={groupHorizontalPadding:o.extend("--ft-switch-group-horizontal-padding","",p.spacing1),groupVerticalPadding:o.extend("--ft-switch-group-vertical-padding","",p.spacing1),groupGap:o.extend("--ft-switch-group-gap","",p.spacing1),groupBackgroundColor:o.extend("--ft-switch-group-background-color","",f.backgroundGlobalSurface),groupBorderColor:o.extend("--ft-switch-group-border-color","",f.borderGlobalSubtle),groupBorderRadius:o.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ft-switch-label-horizontal-padding","",p.spacing2),labelVerticalPadding:o.extend("--ft-switch-label-vertical-padding","",p.spacing1),offHoverStateLayerOpacity:o.extend("--ft-switch-off-hover-state-layer-opacity","",p.opacity8),offFocusStateLayerOpacity:o.extend("--ft-switch-off-focus-state-layer-opacity","",p.opacity8),offActiveStateLayerOpacity:o.extend("--ft-switch-off-active-state-layer-opacity","",p.opacity16),offDisabledComponentOpacity:o.extend("--ft-switch-off-disabled-component-opacity","",p.opacity40),offColor:o.extend("--ft-switch-off-color","",f.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-switch-off-state-layer-color","",f.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-switch-on-hover-state-layer-opacity","",p.opacity8),onFocusStateLayerOpacity:o.extend("--ft-switch-on-focus-state-layer-opacity","",p.opacity8),onActiveStateLayerOpacity:o.extend("--ft-switch-on-active-state-layer-opacity","",p.opacity16),onDisabledComponentOpacity:o.extend("--ft-switch-on-disabled-component-opacity","",p.opacity40),onColor:o.extend("--ft-switch-on-color","",f.contentActionPrimary),onStateLayerColor:o.extend("--ft-switch-on-state-layer-color","",f.contentActionPrimary),iconHorizontalPadding:o.extend("--ft-switch-icon-horizontal-padding","",p.spacing1),iconVerticalPadding:o.extend("--ft-switch-icon-vertical-padding","",p.spacing1),focusOutlineWidth:o.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-switch-focus-focus-ring-color","",f.borderActionFocusRing),optionBorderRadius:o.extend("--ft-switch-option-border-radius","",p.borderRadiusS)};var wu={color1Light:o.extend("--ft-chart-1-light","for area color charts",p.colorBrand40),color1Base:o.extend("--ft-chart-1-base","for line charts",p.colorBrand0),color2Light:o.extend("--ft-chart-2-light","for area color charts",p.colorYellow60),color2Base:o.extend("--ft-chart-2-base","for line charts",p.colorYellow100),color3Light:o.extend("--ft-chart-3-light","",p.colorUltramarine40),color3Base:o.extend("--ft-chart-3-base","",p.colorUltramarine70),color4Light:o.extend("--ft-chart-4-light","",p.colorCyan50),color4Base:o.extend("--ft-chart-4-base","",p.colorCyan100),color5Light:o.extend("--ft-chart-5-light","",p.colorRed40),color5Base:o.extend("--ft-chart-5-base","",p.colorRed60),color6Light:o.extend("--ft-chart-6-light","",p.colorGreen40),color6Base:o.extend("--ft-chart-6-base","",p.colorGreen70),color7Light:o.extend("--ft-chart-7-light","",p.colorOrange70),color7Base:o.extend("--ft-chart-7-base","",p.colorOrange100),color8Light:o.extend("--ft-chart-8-light","",p.colorAvocado70),color8Base:o.extend("--ft-chart-8-base","",p.colorAvocado200),color9Light:o.extend("--ft-chart-9-light","",p.colorBrown50),color9Base:o.extend("--ft-chart-9-base","",p.colorBrown200),color10Light:o.extend("--ft-chart-10-light","",p.colorGray50),color10Base:o.extend("--ft-chart-10-base","",p.colorGray80),monochrome10:o.extend("--ft-chart-monochrome-10","",p.colorBrand10),monochrome20:o.extend("--ft-chart-monochrome-20","",p.colorBrand20),monochrome30:o.extend("--ft-chart-monochrome-30","",p.colorBrand40),monochrome40:o.extend("--ft-chart-monochrome-40","",p.colorBrand60),monochrome50:o.extend("--ft-chart-monochrome-50","",p.colorBrand0),monochrome60:o.extend("--ft-chart-monochrome-60","",p.colorBrand200)};var Au={largeHorizontalPadding:o.extend("--ft-chip-large-horizontal-padding","",p.spacing4),largeVerticalPadding:o.extend("--ft-chip-large-vertical-padding","",p.spacing2),largeGap:o.extend("--ft-chip-large-gap","",p.spacing1),largeFocusOutlineOffset:o.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:o.extend("--ft-chip-large-border-radius","",p.borderRadiusPill),largeBorderWidth:o.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ft-chip-large-icon-size","",p.iconSize3),mediumHorizontalPadding:o.extend("--ft-chip-medium-horizontal-padding","",p.spacing3),mediumVerticalPadding:o.extend("--ft-chip-medium-vertical-padding","",p.spacing1),mediumGap:o.extend("--ft-chip-medium-gap","",p.spacing1),mediumFocusOutlineOffset:o.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:o.extend("--ft-chip-medium-border-radius","",p.borderRadiusPill),mediumBorderWidth:o.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ft-chip-medium-icon-size","",p.iconSize2),smallHorizontalPadding:o.extend("--ft-chip-small-horizontal-padding","",p.spacing2),smallVerticalPadding:o.extend("--ft-chip-small-vertical-padding","",p.spacing05),smallGap:o.extend("--ft-chip-small-gap","",p.spacing1),smallFocusOutlineOffset:o.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:o.extend("--ft-chip-small-border-radius","",p.borderRadiusPill),smallBorderWidth:o.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:o.extend("--ft-chip-small-icon-size","",p.iconSize1),neutralBackgroundColor:o.extend("--ft-chip-neutral-background-color","",f.backgroundGlobalOnSurface),neutralColor:o.extend("--ft-chip-neutral-color","",f.contentGlobalPrimary),neutralIconColor:o.extend("--ft-chip-neutral-icon-color","",f.contentGlobalPrimary),neutralBorderColor:o.extend("--ft-chip-neutral-border-color","",f.borderGlobalSubtle),infoBackgroundColor:o.extend("--ft-chip-info-background-color","",f.backgroundInfoSubtle),infoColor:o.extend("--ft-chip-info-color","",f.contentInfoPrimary),infoIconColor:o.extend("--ft-chip-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:o.extend("--ft-chip-info-border-color","",f.borderInfoSubtle),successBackgroundColor:o.extend("--ft-chip-success-background-color","",f.backgroundSuccessSubtle),successColor:o.extend("--ft-chip-success-color","",f.contentSuccessPrimary),successIconColor:o.extend("--ft-chip-success-icon-color","",f.contentSuccessIconOnly),successBorderColor:o.extend("--ft-chip-success-border-color","",f.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-chip-warning-background-color","",f.backgroundWarningSubtle),warningColor:o.extend("--ft-chip-warning-color","",f.contentWarningPrimary),warningIconColor:o.extend("--ft-chip-warning-icon-color","",f.contentWarningIconOnly),warningBorderColor:o.extend("--ft-chip-warning-border-color","",f.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-chip-error-background-color","",f.backgroundErrorSubtle),errorColor:o.extend("--ft-chip-error-color","",f.contentErrorPrimary),errorIconColor:o.extend("--ft-chip-error-icon-color","",f.contentErrorIconOnly),errorBorderColor:o.extend("--ft-chip-error-border-color","",f.borderErrorSubtle)};var Ru={infoBorderColor:o.extend("--ft-border-info-border-color","",f.borderInfoSubtle)};var Nu={borderWidth:o.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ft-notice-horizontal-padding","",p.spacing2),verticalPadding:o.extend("--ft-notice-vertical-padding","",p.spacing1),borderRadius:o.extend("--ft-notice-border-radius","",p.borderRadiusS),gap:o.extend("--ft-notice-gap","",p.spacing2),iconSize:o.extend("--ft-notice-icon-size","",p.iconSize3),infoBackgroundColor:o.extend("--ft-notice-info-background-color","",f.backgroundInfoSubtle),infoBorderColor:o.extend("--ft-notice-info-border-color","",f.borderInfoSubtle),infoColor:o.extend("--ft-notice-info-color","",f.contentInfoPrimary),infoIconColor:o.extend("--ft-notice-info-icon-color","",f.contentInfoIconOnly),warningBackgroundColor:o.extend("--ft-notice-warning-background-color","",f.backgroundWarningSubtle),warningBorderColor:o.extend("--ft-notice-warning-border-color","",f.borderWarningSubtle),warningColor:o.extend("--ft-notice-warning-color","",f.contentWarningPrimary),warningIconColor:o.extend("--ft-notice-warning-icon-color","",f.contentWarningIconOnly),errorBackgroundColor:o.extend("--ft-notice-error-background-color","",f.backgroundErrorSubtle),errorBorderColor:o.extend("--ft-notice-error-border-color","",f.borderErrorSubtle),errorColor:o.extend("--ft-notice-error-color","",f.contentErrorPrimary),errorIconColor:o.extend("--ft-notice-error-icon-color","",f.contentErrorIconOnly),successBackgroundColor:o.extend("--ft-notice-success-background-color","",f.backgroundSuccessSubtle),successBorderColor:o.extend("--ft-notice-success-border-color","",f.borderSuccessSubtle),successColor:o.extend("--ft-notice-success-color","",f.contentSuccessPrimary),successIconColor:o.extend("--ft-notice-success-icon-color","",f.contentSuccessIconOnly)};var _u={color:o.extend("--ft-checkbox-color","",f.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ft-checkbox-checked-background-color","",f.contentActionPrimary),checkedStateLayerColor:o.extend("--ft-checkbox-checked-state-layer-color","",f.contentActionPrimary),checkedIconColor:o.extend("--ft-checkbox-checked-icon-color","",f.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ft-checkbox-checked-hover-state-layer-opacity","",p.opacity16),checkedFocusStateLayerOpacity:o.extend("--ft-checkbox-checked-focus-state-layer-opacity","",p.opacity16),checkedActiveStateLayerOpacity:o.extend("--ft-checkbox-checked-active-state-layer-opacity","",p.opacity24),checkedDisabledComponentOpacity:o.extend("--ft-checkbox-checked-disabled-component-opacity","",p.opacity40),uncheckedBorderColor:o.extend("--ft-checkbox-unchecked-border-color","",p.colorGray80),uncheckedStateLayerColor:o.extend("--ft-checkbox-unchecked-state-layer-color","",p.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",p.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",p.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",p.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ft-checkbox-unchecked-disabled-component-opacity","",p.opacity40),focusFocusRingColor:o.extend("--ft-checkbox-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:o.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gap:o.extend("--ft-checkbox-gap","",p.spacing3)};var Pu={offHoverStateLayerOpacity:o.extend("--ft-toggle-off-hover-state-layer-opacity","",p.opacity16),offFocusStateLayerOpacity:o.extend("--ft-toggle-off-focus-state-layer-opacity","",p.opacity16),offActiveStateLayerOpacity:o.extend("--ft-toggle-off-active-state-layer-opacity","",p.opacity24),offDisabledComponentOpacity:o.extend("--ft-toggle-off-disabled-component-opacity","",p.opacity40),offBackgroundColor:o.extend("--ft-toggle-off-background-color","",f.contentGlobalSubtle),offIconColor:o.extend("--ft-toggle-off-icon-color","",f.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-toggle-off-state-layer-color","",f.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-toggle-on-hover-state-layer-opacity","",p.opacity16),onFocusStateLayerOpacity:o.extend("--ft-toggle-on-focus-state-layer-opacity","",p.opacity16),onActiveStateLayerOpacity:o.extend("--ft-toggle-on-active-state-layer-opacity","",p.opacity24),onDisabledComponentOpacity:o.extend("--ft-toggle-on-disabled-component-opacity","",p.opacity40),onBackgroundColor:o.extend("--ft-toggle-on-background-color","",f.contentActionPrimary),onStateLayerColor:o.extend("--ft-toggle-on-state-layer-color","",f.contentActionPrimary),onIconColor:o.extend("--ft-toggle-on-icon-color","",f.contentActionPrimary),color:o.extend("--ft-toggle-color","",f.contentGlobalPrimary),focusFocusRingColor:o.extend("--ft-toggle-focus-focus-ring-color","",f.borderActionFocusRing),gap:o.extend("--ft-toggle-gap","",p.spacing3)};var Tu={color:o.extend("--ft-radio-color","",f.contentGlobalPrimary),selectedRadioColor:o.extend("--ft-radio-selected-radio-color","",f.contentActionPrimary),selectedStateLayerColor:o.extend("--ft-radio-selected-state-layer-color","",f.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ft-radio-selected-hover-state-layer-opacity","",p.opacity16),selectedFocusStateLayerOpacity:o.extend("--ft-radio-selected-focus-state-layer-opacity","",p.opacity16),selectedActiveStateLayerOpacity:o.extend("--ft-radio-selected-active-state-layer-opacity","",p.opacity24),selectedDisabledComponentOpacity:o.extend("--ft-radio-selected-disabled-component-opacity","",p.opacity40),unselectedStateLayerColor:o.extend("--ft-radio-unselected-state-layer-color","",f.borderInputPrimary),unselectedBorderColor:o.extend("--ft-radio-unselected-border-color","",f.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ft-radio-unselected-hover-state-layer-opacity","",p.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ft-radio-unselected-focus-state-layer-opacity","",p.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ft-radio-unselected-active-state-layer-opacity","",p.opacity24),unselectedDisabledComponentOpacity:o.extend("--ft-radio-unselected-disabled-component-opacity","",p.opacity40),focusFocusRingColor:o.extend("--ft-radio-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:o.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:o.extend("--ft-radio-gap","",p.spacing3)};var Iu={iconSize:o.extend("--ft-notification-icon-size","",p.iconSize4),horizontalPadding:o.extend("--ft-notification-horizontal-padding","",p.spacing4),verticalPadding:o.extend("--ft-notification-vertical-padding","",p.spacing4),infoBackgroundColor:o.extend("--ft-notification-info-background-color","",f.backgroundInfoSubtle),infoColor:o.extend("--ft-notification-info-color","",f.contentInfoPrimary),infoIconColor:o.extend("--ft-notification-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:o.extend("--ft-notification-info-border-color","",f.borderInfoSubtle),successBackgroundColor:o.extend("--ft-notification-success-background-color","",f.backgroundSuccessSubtle),successColor:o.extend("--ft-notification-success-color","",f.contentSuccessPrimary),successIconColor:o.extend("--ft-notification-success-icon-color","",f.contentSuccessIconOnly),successBorderColor:o.extend("--ft-notification-success-border-color","",f.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-notification-warning-background-color","",f.backgroundWarningSubtle),warningColor:o.extend("--ft-notification-warning-color","",f.contentWarningPrimary),warningIconColor:o.extend("--ft-notification-warning-icon-color","",f.contentWarningIconOnly),warningBorderColor:o.extend("--ft-notification-warning-border-color","",f.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-notification-error-background-color","",f.backgroundErrorSubtle),errorColor:o.extend("--ft-notification-error-color","",f.contentErrorPrimary),errorIconColor:o.extend("--ft-notification-error-icon-color","",f.contentErrorIconOnly),errorBorderColor:o.extend("--ft-notification-error-border-color","",f.borderErrorSubtle),borderRadius:o.extend("--ft-notification-border-radius","",p.borderRadiusPill),borderWidth:o.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ft-notification-leading-gap","",p.spacing2),trailingGap:o.extend("--ft-notification-trailing-gap","",p.spacing8)};var $u={horizontalPadding:o.extend("--ft-tooltip-horizontal-padding","",p.spacing2),verticalPadding:o.extend("--ft-tooltip-vertical-padding","",p.spacing2),borderRadius:o.extend("--ft-tooltip-border-radius","",p.borderRadiusS),color:o.extend("--ft-tooltip-color","",f.contentGlobalOnColor),backgroundColor:o.extend("--ft-tooltip-background-color","",f.contentGlobalPrimary),backgroundOpacity:o.extend("--ft-tooltip-background-opacity","",p.opacity80),shadow:o.extend("--ft-tooltip-shadow","",p.shadowElevation03),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ft-tooltip-gap","",p.spacing05)};var I={colorPrimary:o.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:o.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:o.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:o.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:o.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:o.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:o.create("--ft-color-error","","COLOR","#B00020"),colorOutline:o.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:o.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:o.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:o.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:o.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:o.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:o.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:o.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:o.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:o.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:o.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:o.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:o.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:o.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:o.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:o.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:o.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:o.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:o.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:o.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:o.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:o.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:o.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:o.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:o.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:o.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:o.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:o.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:o.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:o.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:o.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:o.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:o.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:o.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:o.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:o.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:o.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:o.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:o.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:o.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:o.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:o.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var Ci={};Y(Ci,{FtNotificationEvent:()=>vi,PostResizeEvent:()=>Oi,PreResizeEvent:()=>Si});var vi=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},Si=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},Oi=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};var ki={};Y(ki,{computeOffsetPosition:()=>Li});var js=["top","right","bottom","left"],zs=["start","end"],wi=js.reduce((t,e)=>t.concat(e,e+"-"+zs[0],e+"-"+zs[1]),[]),Gr=Math.min,yt=Math.max,Zr=Math.round;var ot=t=>({x:t,y:t}),Lu={left:"right",right:"left",bottom:"top",top:"bottom"},ku={start:"end",end:"start"};function Ai(t,e,r){return yt(t,Gr(e,r))}function Bo(t,e){return typeof t=="function"?t(e):t}function nr(t){return t.split("-")[0]}function gt(t){return t.split("-")[1]}function Ri(t){return t==="x"?"y":"x"}function Ni(t){return t==="y"?"height":"width"}function Fo(t){return["top","bottom"].includes(nr(t))?"y":"x"}function _i(t){return Ri(Fo(t))}function Vs(t,e,r){r===void 0&&(r=!1);let n=gt(t),i=_i(t),a=Ni(i),s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=Ei(s)),[s,Ei(s)]}function Ks(t){return t.replace(/start|end/g,e=>ku[e])}function Ei(t){return t.replace(/left|right|bottom|top/g,e=>Lu[e])}function Mu(t){return{top:0,right:0,bottom:0,left:0,...t}}function Gs(t){return typeof t!="number"?Mu(t):{top:t,right:t,bottom:t,left:t}}function Ft(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Zs(t,e,r){let{reference:n,floating:i}=t,a=Fo(e),s=_i(e),c=Ni(s),l=nr(e),u=a==="y",d=n.x+n.width/2-i.width/2,h=n.y+n.height/2-i.height/2,y=n[c]/2-i[c]/2,g;switch(l){case"top":g={x:d,y:n.y-i.height};break;case"bottom":g={x:d,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:h};break;case"left":g={x:n.x-i.width,y:h};break;default:g={x:n.x,y:n.y}}switch(gt(e)){case"start":g[s]-=y*(r&&u?-1:1);break;case"end":g[s]+=y*(r&&u?-1:1);break}return g}var qs=async(t,e,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:s}=r,c=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e)),u=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:d,y:h}=Zs(u,n,l),y=n,g={},b=0;for(let C=0;C<c.length;C++){let{name:N,fn:_}=c[C],{x:$,y:S,data:v,reset:E}=await _({x:d,y:h,initialPlacement:n,placement:y,strategy:i,middlewareData:g,rects:u,platform:s,elements:{reference:t,floating:e}});if(d=$??d,h=S??h,g={...g,[N]:{...g[N],...v}},E&&b<=50){b++,typeof E=="object"&&(E.placement&&(y=E.placement),E.rects&&(u=E.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):E.rects),{x:d,y:h}=Zs(u,y,l)),C=-1;continue}}return{x:d,y:h,placement:y,strategy:i,middlewareData:g}};async function Pi(t,e){var r;e===void 0&&(e={});let{x:n,y:i,platform:a,rects:s,elements:c,strategy:l}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:y=!1,padding:g=0}=Bo(e,t),b=Gs(g),N=c[y?h==="floating"?"reference":"floating":h],_=Ft(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(N)))==null||r?N:N.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:u,rootBoundary:d,strategy:l})),$=h==="floating"?{...s.floating,x:n,y:i}:s.reference,S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),v=await(a.isElement==null?void 0:a.isElement(S))?await(a.getScale==null?void 0:a.getScale(S))||{x:1,y:1}:{x:1,y:1},E=Ft(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:$,offsetParent:S,strategy:l}):$);return{top:(_.top-E.top+b.top)/v.y,bottom:(E.bottom-_.bottom+b.bottom)/v.y,left:(_.left-E.left+b.left)/v.x,right:(E.right-_.right+b.right)/v.x}}function Du(t,e,r){return(t?[...r.filter(i=>gt(i)===t),...r.filter(i=>gt(i)!==t)]:r.filter(i=>nr(i)===i)).filter(i=>t?gt(i)===t||(e?Ks(i)!==i:!1):!0)}var Ti=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,n,i;let{rects:a,middlewareData:s,placement:c,platform:l,elements:u}=e,{crossAxis:d=!1,alignment:h,allowedPlacements:y=wi,autoAlignment:g=!0,...b}=Bo(t,e),C=h!==void 0||y===wi?Du(h||null,g,y):y,N=await Pi(e,b),_=((r=s.autoPlacement)==null?void 0:r.index)||0,$=C[_];if($==null)return{};let S=Vs($,a,await(l.isRTL==null?void 0:l.isRTL(u.floating)));if(c!==$)return{reset:{placement:C[0]}};let v=[N[nr($)],N[S[0]],N[S[1]]],E=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:$,overflows:v}],M=C[_+1];if(M)return{data:{index:_+1,overflows:E},reset:{placement:M}};let D=E.map(m=>{let x=gt(m.placement);return[m.placement,x&&d?m.overflows.slice(0,2).reduce((A,H)=>A+H,0):m.overflows[0],m.overflows]}).sort((m,x)=>m[1]-x[1]),z=((i=D.filter(m=>m[2].slice(0,gt(m[0])?2:3).every(x=>x<=0))[0])==null?void 0:i[0])||D[0][0];return z!==c?{data:{index:_+1,overflows:E},reset:{placement:z}}:{}}}};var Ii=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:n,placement:i}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:N=>{let{x:_,y:$}=N;return{x:_,y:$}}},...l}=Bo(t,e),u={x:r,y:n},d=await Pi(e,l),h=Fo(nr(i)),y=Ri(h),g=u[y],b=u[h];if(a){let N=y==="y"?"top":"left",_=y==="y"?"bottom":"right",$=g+d[N],S=g-d[_];g=Ai($,g,S)}if(s){let N=h==="y"?"top":"left",_=h==="y"?"bottom":"right",$=b+d[N],S=b-d[_];b=Ai($,b,S)}let C=c.fn({...e,[y]:g,[h]:b});return{...C,data:{x:C.x-r,y:C.y-n}}}}};function nt(t){return Xs(t)?(t.nodeName||"").toLowerCase():"#document"}function be(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function it(t){var e;return(e=(Xs(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Xs(t){return t instanceof Node||t instanceof be(t).Node}function ze(t){return t instanceof Element||t instanceof be(t).Element}function Me(t){return t instanceof HTMLElement||t instanceof be(t).HTMLElement}function Ys(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof be(t).ShadowRoot}function ir(t){let{overflow:e,overflowX:r,overflowY:n,display:i}=Ne(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(i)}function Js(t){return["table","td","th"].includes(nt(t))}function Ho(t){let e=zo(),r=Ne(t);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function Qs(t){let e=Wt(t);for(;Me(e)&&!qr(e);){if(Ho(e))return e;e=Wt(e)}return null}function zo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function qr(t){return["html","body","#document"].includes(nt(t))}function Ne(t){return be(t).getComputedStyle(t)}function Yr(t){return ze(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Wt(t){if(nt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Ys(t)&&t.host||it(t);return Ys(e)?e.host:e}function ec(t){let e=Wt(t);return qr(e)?t.ownerDocument?t.ownerDocument.body:t.body:Me(e)&&ir(e)?e:ec(e)}function Wo(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);let i=ec(t),a=i===((n=t.ownerDocument)==null?void 0:n.body),s=be(i);return a?e.concat(s,s.visualViewport||[],ir(i)?i:[],s.frameElement&&r?Wo(s.frameElement):[]):e.concat(i,Wo(i,[],r))}function oc(t){let e=Ne(t),r=parseFloat(e.width)||0,n=parseFloat(e.height)||0,i=Me(t),a=i?t.offsetWidth:r,s=i?t.offsetHeight:n,c=Zr(r)!==a||Zr(n)!==s;return c&&(r=a,n=s),{width:r,height:n,$:c}}function nc(t){return ze(t)?t:t.contextElement}function ar(t){let e=nc(t);if(!Me(e))return ot(1);let r=e.getBoundingClientRect(),{width:n,height:i,$:a}=oc(e),s=(a?Zr(r.width):r.width)/n,c=(a?Zr(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var Uu=ot(0);function ic(t){let e=be(t);return!zo()||!e.visualViewport?Uu:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Bu(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==be(t)?!1:e}function Xr(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);let i=t.getBoundingClientRect(),a=nc(t),s=ot(1);e&&(n?ze(n)&&(s=ar(n)):s=ar(t));let c=Bu(a,r,n)?ic(a):ot(0),l=(i.left+c.x)/s.x,u=(i.top+c.y)/s.y,d=i.width/s.x,h=i.height/s.y;if(a){let y=be(a),g=n&&ze(n)?be(n):n,b=y.frameElement;for(;b&&n&&g!==y;){let C=ar(b),N=b.getBoundingClientRect(),_=Ne(b),$=N.left+(b.clientLeft+parseFloat(_.paddingLeft))*C.x,S=N.top+(b.clientTop+parseFloat(_.paddingTop))*C.y;l*=C.x,u*=C.y,d*=C.x,h*=C.y,l+=$,u+=S,b=be(b).frameElement}}return Ft({width:d,height:h,x:l,y:u})}function Fu(t){let{rect:e,offsetParent:r,strategy:n}=t,i=Me(r),a=it(r);if(r===a)return e;let s={scrollLeft:0,scrollTop:0},c=ot(1),l=ot(0);if((i||!i&&n!=="fixed")&&((nt(r)!=="body"||ir(a))&&(s=Yr(r)),Me(r))){let u=Xr(r);c=ar(r),l.x=u.x+r.clientLeft,l.y=u.y+r.clientTop}return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-s.scrollLeft*c.x+l.x,y:e.y*c.y-s.scrollTop*c.y+l.y}}function Wu(t){return Array.from(t.getClientRects())}function ac(t){return Xr(it(t)).left+Yr(t).scrollLeft}function Hu(t){let e=it(t),r=Yr(t),n=t.ownerDocument.body,i=yt(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),a=yt(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+ac(t),c=-r.scrollTop;return Ne(n).direction==="rtl"&&(s+=yt(e.clientWidth,n.clientWidth)-i),{width:i,height:a,x:s,y:c}}function zu(t,e){let r=be(t),n=it(t),i=r.visualViewport,a=n.clientWidth,s=n.clientHeight,c=0,l=0;if(i){a=i.width,s=i.height;let u=zo();(!u||u&&e==="fixed")&&(c=i.offsetLeft,l=i.offsetTop)}return{width:a,height:s,x:c,y:l}}function ju(t,e){let r=Xr(t,!0,e==="fixed"),n=r.top+t.clientTop,i=r.left+t.clientLeft,a=Me(t)?ar(t):ot(1),s=t.clientWidth*a.x,c=t.clientHeight*a.y,l=i*a.x,u=n*a.y;return{width:s,height:c,x:l,y:u}}function tc(t,e,r){let n;if(e==="viewport")n=zu(t,r);else if(e==="document")n=Hu(it(t));else if(ze(e))n=ju(e,r);else{let i=ic(t);n={...e,x:e.x-i.x,y:e.y-i.y}}return Ft(n)}function sc(t,e){let r=Wt(t);return r===e||!ze(r)||qr(r)?!1:Ne(r).position==="fixed"||sc(r,e)}function Vu(t,e){let r=e.get(t);if(r)return r;let n=Wo(t,[],!1).filter(c=>ze(c)&&nt(c)!=="body"),i=null,a=Ne(t).position==="fixed",s=a?Wt(t):t;for(;ze(s)&&!qr(s);){let c=Ne(s),l=Ho(s);!l&&c.position==="fixed"&&(i=null),(a?!l&&!i:!l&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||ir(s)&&!l&&sc(t,s))?n=n.filter(d=>d!==s):i=c,s=Wt(s)}return e.set(t,n),n}function Ku(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t,s=[...r==="clippingAncestors"?Vu(e,this._c):[].concat(r),n],c=s[0],l=s.reduce((u,d)=>{let h=tc(e,d,i);return u.top=yt(h.top,u.top),u.right=Gr(h.right,u.right),u.bottom=Gr(h.bottom,u.bottom),u.left=yt(h.left,u.left),u},tc(e,c,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Gu(t){return oc(t)}function Zu(t,e,r){let n=Me(e),i=it(e),a=r==="fixed",s=Xr(t,!0,a,e),c={scrollLeft:0,scrollTop:0},l=ot(0);if(n||!n&&!a)if((nt(e)!=="body"||ir(i))&&(c=Yr(e)),n){let u=Xr(e,!0,a,e);l.x=u.x+e.clientLeft,l.y=u.y+e.clientTop}else i&&(l.x=ac(i));return{x:s.left+c.scrollLeft-l.x,y:s.top+c.scrollTop-l.y,width:s.width,height:s.height}}function rc(t,e){return!Me(t)||Ne(t).position==="fixed"?null:e?e(t):t.offsetParent}function cc(t,e){let r=be(t);if(!Me(t))return r;let n=rc(t,e);for(;n&&Js(n)&&Ne(n).position==="static";)n=rc(n,e);return n&&(nt(n)==="html"||nt(n)==="body"&&Ne(n).position==="static"&&!Ho(n))?r:n||Qs(t)||r}var qu=async function(t){let{reference:e,floating:r,strategy:n}=t,i=this.getOffsetParent||cc,a=this.getDimensions;return{reference:Zu(e,await i(r),n),floating:{x:0,y:0,...await a(r)}}};function Yu(t){return Ne(t).direction==="rtl"}var jo={convertOffsetParentRelativeRectToViewportRelativeRect:Fu,getDocumentElement:it,getClippingRect:Ku,getOffsetParent:cc,getElementRects:qu,getClientRects:Wu,getDimensions:Gu,getScale:ar,isElement:ze,isRTL:Yu};var lc=(t,e,r)=>{let n=new Map,i={platform:jo,...r},a={...i.platform,_c:n};return qs(t,e,{...i,platform:a})};function pc(t){return Xu(t)}function $i(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Xu(t){for(let e=t;e;e=$i(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=$i(t);e;e=$i(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||e.tagName==="BODY"))return e}return null}async function Li(t,e,r){return lc(t,e,{platform:{...jo,getOffsetParent:n=>jo.getOffsetParent(n,pc)},middleware:[Ii({crossAxis:!0}),Ti({allowedPlacements:[r]})]})}var Ui={};Y(Ui,{FtLitElement:()=>K});var Mi={};Y(Mi,{ScopedRegistryLitElement:()=>Jr});var Vo=window,Ju=Vo.ShadowRoot&&(Vo.ShadyCSS===void 0||Vo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Cg=Symbol();var uc=(t,e)=>{Ju?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{let n=document.createElement("style"),i=Vo.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)})};var Jr=class extends et{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([i,a])=>e.registry.define(i,a)));let r={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return uc(n,e.elementStyles),n}};var Di=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},hc,dc=Symbol("constructorPrototype"),fc=Symbol("constructorName"),mc=Symbol("exportpartsDebouncer"),K=class extends Jr{constructor(){super(),this.adoptedCustomStyleSheet=new CSSStyleSheet,this.useAdoptedStyleSheets=!0,this[hc]=new pe(5),this[fc]=this.constructor.name,this[dc]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[fc]&&Object.setPrototypeOf(this,this[dc])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet])}catch(e){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",e)}}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}applyCustomStylesheet(e){var r,n,i;if(this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((r=this.customStylesheet)!==null&&r!==void 0?r:"")}catch(a){console.error(a,this.customStylesheet)}}else if(((i=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var e,r,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[mc].run(()=>{var i,a;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var r,n,i,a,s,c;let l=y=>y!=null&&y.trim().length>0,u=e.filter(l).map(y=>y.trim());if(u.length===0){this.removeAttribute("exportparts");return}let d=new Set;for(let y of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let g=(a=(i=y.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&a!==void 0?a:[],b=(c=(s=y.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(C=>C.split(":")[1]))!==null&&c!==void 0?c:[];new Array(...g,...b).filter(l).map(C=>C.trim()).forEach(C=>d.add(C))}if(d.size===0){this.removeAttribute("exportparts");return}let h=[...d.values()].flatMap(y=>u.map(g=>`${y}:${g}--${y}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};hc=mc;Di([O()],K.prototype,"exportpartsPrefix",void 0);Di([fe([])],K.prototype,"exportpartsPrefixes",void 0);Di([O()],K.prototype,"customStylesheet",void 0);var yc={};var Hi={};Y(Hi,{highlightHtml:()=>Wi,highlightHtmlColorCssVariable:()=>gc,highlightHtmlStyles:()=>ed});var Ht=class t{constructor(e,r=!0,n=[],i=5e3){this.ctx=e,this.iframes=r,this.exclude=n,this.iframesTimeout=i}static matches(e,r){let n=typeof r=="string"?[r]:r,i=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(i){let a=!1;return n.every(s=>i.call(e,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,r=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(n=>{let i=r.filter(a=>a.contains(n)).length>0;r.indexOf(n)===-1&&!i&&r.push(n)}),r}getIframeContents(e,r,n=()=>{}){let i;try{let a=e.contentWindow;if(i=a.document,!a||!i)throw new Error("iframe inaccessible")}catch{n()}i&&r(i)}isIframeBlank(e){let r="about:blank",n=e.getAttribute("src").trim();return e.contentWindow.location.href===r&&n!==r&&n}observeIframeLoad(e,r,n){let i=!1,a=null,s=()=>{if(!i){i=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,r,n))}catch{n()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,r,n){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,r,n):this.getIframeContents(e,r,n):this.observeIframeLoad(e,r,n)}catch{n()}}waitForIframes(e,r){let n=0;this.forEachIframe(e,()=>!0,i=>{n++,this.waitForIframes(i.querySelector("html"),()=>{--n||r()})},i=>{i||r()})}forEachIframe(e,r,n,i=()=>{}){let a=e.querySelectorAll("iframe"),s=a.length,c=0;a=Array.prototype.slice.call(a);let l=()=>{--s<=0&&i(c)};s||l(),a.forEach(u=>{t.matches(u,this.exclude)?l():this.onIframeReady(u,d=>{r(u)&&(c++,n(d)),l()},l)})}createIterator(e,r,n){return document.createNodeIterator(e,r,n,!1)}createInstanceOnIframe(e){return new t(e.querySelector("html"),this.iframes)}compareNodeIframe(e,r,n){let i=e.compareDocumentPosition(n),a=Node.DOCUMENT_POSITION_PRECEDING;if(i&a)if(r!==null){let s=r.compareDocumentPosition(n),c=Node.DOCUMENT_POSITION_FOLLOWING;if(s&c)return!0}else return!0;return!1}getIteratorNode(e){let r=e.previousNode(),n;return r===null?n=e.nextNode():n=e.nextNode()&&e.nextNode(),{prevNode:r,node:n}}checkIframeFilter(e,r,n,i){let a=!1,s=!1;return i.forEach((c,l)=>{c.val===n&&(a=l,s=c.handled)}),this.compareNodeIframe(e,r,n)?(a===!1&&!s?i.push({val:n,handled:!0}):a!==!1&&!s&&(i[a].handled=!0),!0):(a===!1&&i.push({val:n,handled:!1}),!1)}handleOpenIframes(e,r,n,i){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(r,n,i)})})}iterateThroughNodes(e,r,n,i,a){let s=this.createIterator(r,e,i),c=[],l=[],u,d,h=()=>({prevNode:d,node:u}=this.getIteratorNode(s),u);for(;h();)this.iframes&&this.forEachIframe(r,y=>this.checkIframeFilter(u,d,y,c),y=>{this.createInstanceOnIframe(y).forEachNode(e,g=>l.push(g),i)}),l.push(u);l.forEach(y=>{n(y)}),this.iframes&&this.handleOpenIframes(c,e,n,i),a()}forEachNode(e,r,n,i=()=>{}){let a=this.getContexts(),s=a.length;s||i(),a.forEach(c=>{let l=()=>{this.iterateThroughNodes(e,c,r,n,()=>{--s<=0&&i()})};this.iframes?this.waitForIframes(c,l):l()})}};var Qr=class{constructor(e){this.ctx=e,this.ie=!1;let r=window.navigator.userAgent;(r.indexOf("MSIE")>-1||r.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},e)}get opt(){return this._opt}get iterator(){return new Ht(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,r="debug"){let n=this.opt.log;this.opt.debug&&typeof n=="object"&&typeof n[r]=="function"&&n[r](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){let r=this.opt.synonyms,n=this.opt.caseSensitive?"":"i",i=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in r)if(r.hasOwnProperty(a)){let s=r[a],c=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);c!==""&&l!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(c)}|${this.escapeStr(l)})`,`gm${n}`),i+`(${this.processSynomyms(c)}|${this.processSynomyms(l)})`+i))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,r=>r.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,r=>r.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let r=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,r?"[\\S\\s]?":"\\S?").replace(/\u0002/g,r?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(r,n,i)=>{let a=i.charAt(n+1);return/[(|)\\]/.test(a)||a===""?r:r+"\0"})}createJoinersRegExp(e){let r=[],n=this.opt.ignorePunctuation;return Array.isArray(n)&&n.length&&r.push(this.escapeStr(n.join(""))),this.opt.ignoreJoiners&&r.push("\\u00ad\\u200b\\u200c\\u200d"),r.length?e.split(/\u0000+/).join(`[${r.join("")}]*`):e}createDiacriticsRegExp(e){let r=this.opt.caseSensitive?"":"i",n=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],i=[];return e.split("").forEach(a=>{n.every(s=>{if(s.indexOf(a)!==-1){if(i.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${r}`),`[${s}]`),i.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let r="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",n=this.opt.accuracy,i=typeof n=="string"?n:n.value,a=typeof n=="string"?[]:n.limiters,s="";switch(a.forEach(c=>{s+=`|${this.escapeStr(c)}`}),i){case"partially":default:return`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(r)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let r=[];return e.forEach(n=>{this.opt.separateWordSearch?n.split(" ").forEach(i=>{i.trim()&&r.indexOf(i)===-1&&r.push(i)}):n.trim()&&r.indexOf(n)===-1&&r.push(n)}),{keywords:r.sort((n,i)=>i.length-n.length),length:r.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];let r=[],n=0;return e.sort((i,a)=>i.start-a.start).forEach(i=>{let{start:a,end:s,valid:c}=this.callNoMatchOnInvalidRanges(i,n);c&&(i.start=a,i.length=s-a,r.push(i),n=s)}),r}callNoMatchOnInvalidRanges(e,r){let n,i,a=!1;return e&&typeof e.start<"u"?(n=parseInt(e.start,10),i=n+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&i-r>0&&i-n>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:n,end:i,valid:a}}checkWhitespaceRanges(e,r,n){let i,a=!0,s=n.length,c=r-s,l=parseInt(e.start,10)-c;return l=l>s?s:l,i=l+parseInt(e.length,10),i>s&&(i=s,this.log(`End range automatically set to the max value of ${s}`)),l<0||i-l<0||l>s||i>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):n.substring(l,i).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:l,end:i,valid:a}}getTextNodes(e){let r="",n=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,i=>{n.push({start:r.length,end:(r+=i.textContent).length,node:i})},i=>this.matchesExclude(i.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:r,nodes:n})})}matchesExclude(e){return Ht.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,r,n){let i=this.opt.element?this.opt.element:"mark",a=e.splitText(r),s=a.splitText(n-r),c=document.createElement(i);return c.setAttribute("data-markjs","true"),this.opt.className&&c.setAttribute("class",this.opt.className),c.textContent=a.textContent,a.parentNode.replaceChild(c,a),s}wrapRangeInMappedTextNode(e,r,n,i,a){e.nodes.every((s,c)=>{let l=e.nodes[c+1];if(typeof l>"u"||l.start>r){if(!i(s.node))return!1;let u=r-s.start,d=(n>s.end?s.end:n)-s.start,h=e.value.substr(0,s.start),y=e.value.substr(d+s.start);if(s.node=this.wrapRangeInTextNode(s.node,u,d),e.value=h+y,e.nodes.forEach((g,b)=>{b>=c&&(e.nodes[b].start>0&&b!==c&&(e.nodes[b].start-=d),e.nodes[b].end-=d)}),n-=d,a(s.node.previousSibling,s.start),n>s.end)r=s.end;else return!1}return!0})}wrapMatches(e,r,n,i,a){let s=r===0?0:r+1;this.getTextNodes(c=>{c.nodes.forEach(l=>{l=l.node;let u;for(;(u=e.exec(l.textContent))!==null&&u[s]!=="";){if(!n(u[s],l))continue;let d=u.index;if(s!==0)for(let h=1;h<s;h++)d+=u[h].length;l=this.wrapRangeInTextNode(l,d,d+u[s].length),i(l.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,r,n,i,a){let s=r===0?0:r+1;this.getTextNodes(c=>{let l;for(;(l=e.exec(c.value))!==null&&l[s]!=="";){let u=l.index;if(s!==0)for(let h=1;h<s;h++)u+=l[h].length;let d=u+l[s].length;this.wrapRangeInMappedTextNode(c,u,d,h=>n(l[s],h),(h,y)=>{e.lastIndex=y,i(h)})}a()})}wrapRangeFromIndex(e,r,n,i){this.getTextNodes(a=>{let s=a.value.length;e.forEach((c,l)=>{let{start:u,end:d,valid:h}=this.checkWhitespaceRanges(c,s,a.value);h&&this.wrapRangeInMappedTextNode(a,u,d,y=>r(y,c,a.value.substring(u,d),l),y=>{n(y,c)})}),i()})}unwrapMatches(e){let r=e.parentNode,n=document.createDocumentFragment();for(;e.firstChild;)n.appendChild(e.removeChild(e.firstChild));r.replaceChild(n,e),this.ie?this.normalizeTextNode(r):r.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,r){this.opt=r,this.log(`Searching with expression "${e}"`);let n=0,i="wrapMatches",a=s=>{n++,this.opt.each(s)};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),this[i](e,this.opt.ignoreGroups,(s,c)=>this.opt.filter(c,s,n),a,()=>{n===0&&this.opt.noMatch(e),this.opt.done(n)})}mark(e,r){this.opt=r;let n=0,i="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),c=this.opt.caseSensitive?"":"i",l=u=>{let d=new RegExp(this.createRegExp(u),`gm${c}`),h=0;this.log(`Searching with expression "${d}"`),this[i](d,1,(y,g)=>this.opt.filter(g,u,n,h),y=>{h++,n++,this.opt.each(y)},()=>{h===0&&this.opt.noMatch(u),a[s-1]===u?this.opt.done(n):l(a[a.indexOf(u)+1])})};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),s===0?this.opt.done(n):l(a[0])}markRanges(e,r){this.opt=r;let n=0,i=this.checkRanges(e);i&&i.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(i)),this.wrapRangeFromIndex(i,(a,s,c,l)=>this.opt.filter(a,s,c,l),(a,s)=>{n++,this.opt.each(a,s)},()=>{this.opt.done(n)})):this.opt.done(n)}unmark(e){this.opt=e;let r=this.opt.element?this.opt.element:"*";r+="[data-markjs]",this.opt.className&&(r+=`.${this.opt.className}`),this.log(`Removal selector "${r}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,n=>{this.unwrapMatches(n)},n=>{let i=Ht.matches(n,r),a=this.matchesExclude(n);return!i||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Bi(t){let e=new Qr(t);return this.mark=(r,n)=>(e.mark(r,n),this),this.markRegExp=(r,n)=>(e.markRegExp(r,n),this),this.markRanges=(r,n)=>(e.markRanges(r,n),this),this.unmark=r=>(e.unmark(r),this),this}var Qu=Bi,gc=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),ed=R`
|
|
141
7
|
.highlight-html-match {
|
|
142
|
-
background: ${
|
|
8
|
+
background: ${gc};
|
|
143
9
|
}
|
|
144
|
-
`,
|
|
10
|
+
`,Fi={className:"highlight-html-match"};function Wi(t,e){var r;let n=t.getAttribute("data-highlight-html-query");if((n??"")!==(e??"")){let i=new Qu(t);i.unmark(Fi),e&&e.trim()&&(i.mark(e.replace(/"[^"]+"/g,""),{...Fi,separateWordSearch:!0}),((r=e.match(/"[^"]+"/g))!==null&&r!==void 0?r:[]).forEach(s=>i.mark(s.replace(/"/g,""),{...Fi,separateWordSearch:!1})))}t.setAttribute("data-highlight-html-query",e??"")}var ji={};Y(ji,{noTextSelect:()=>eo,safariEllipsisFix:()=>to,wordWrap:()=>zi});var eo=R`
|
|
145
11
|
.ft-no-text-select {
|
|
146
12
|
-webkit-touch-callout: none;
|
|
147
13
|
-webkit-user-select: none;
|
|
@@ -150,7 +16,7 @@ function(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=${r}
|
|
|
150
16
|
-ms-user-select: none;
|
|
151
17
|
user-select: none;
|
|
152
18
|
}
|
|
153
|
-
`,
|
|
19
|
+
`,zi=R`
|
|
154
20
|
.ft-word-wrap {
|
|
155
21
|
white-space: normal;
|
|
156
22
|
word-wrap: break-word;
|
|
@@ -162,7 +28,7 @@ function(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=${r}
|
|
|
162
28
|
-webkit-hyphens: auto;
|
|
163
29
|
hyphens: auto
|
|
164
30
|
}
|
|
165
|
-
`,
|
|
31
|
+
`,to=R`
|
|
166
32
|
.ft-safari-ellipsis-fix {
|
|
167
33
|
margin-right: 0;
|
|
168
34
|
|
|
@@ -173,7 +39,7 @@ function(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=${r}
|
|
|
173
39
|
display: inline-block;
|
|
174
40
|
width: 0;
|
|
175
41
|
}
|
|
176
|
-
`;var Xi=Object.freeze({__proto__:null,noTextSelect:Yi,safariEllipsisFix:Qi,wordWrap:Ji}),tn=Object.freeze({__proto__:null});class en{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()}}}var on=Object.freeze({__proto__:null,ParametrizedLabelResolver:en});const rn=t=>{const e=null!=t?t:{};return(t,o)=>{var r;const i={hasChanged:(t,e)=>!uo(t,e),attribute:!1,...e};Se(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})}};class nn{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 an(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var sn,ln,cn;const fn=Symbol("internalReduxEventsUnsubscribers"),hn=Symbol("internalStoresUnsubscribers"),un=Symbol("internalStores");class dn extends ji{constructor(){super(...arguments),this[sn]=new Map,this[ln]=new Map,this[cn]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[un].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[un].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[un].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:an(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[un].delete(e)}setupStore(t,e){this[un].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[un].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[hn].has(t.store):this[hn].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[hn].set(t,e.subscribe((()=>this.updateFromStores()))),an(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[fn].push((()=>e.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[hn].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[fn].forEach((t=>t())),this[fn]=[]}unsubscribeFromStore(t){this[hn].has(t)&&this[hn].get(t)(),this[hn].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function pn(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 gn(t){return!!t&&!!t[ea]}function yn(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)===oa}(t)||Array.isArray(t)||!!t[ta]||!!(null===(e=t.constructor)||void 0===e?void 0:e[ta])||wn(t)||Sn(t))}function bn(t,e,o){void 0===o&&(o=!1),0===mn(t)?(o?Object.keys:ra)(t).forEach((function(r){o&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(o,r){return e(r,o,t)}))}function mn(t){var e=t[ea];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:wn(t)?2:Sn(t)?3:0}function vn(t,e){return 2===mn(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function xn(t,e,o){var r=mn(t);2===r?t.set(e,o):3===r?t.add(o):t[e]=o}function On(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function wn(t){return Yn&&t instanceof Map}function Sn(t){return Jn&&t instanceof Set}function Cn(t){return t.o||t.t}function Nn(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=ia(t);delete e[ea];for(var o=ra(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 En(t,e){return void 0===e&&(e=!1),$n(t)||gn(t)||!yn(t)||(mn(t)>1&&(t.set=t.add=t.clear=t.delete=Rn),Object.freeze(t),e&&bn(t,(function(t,e){return En(e,!0)}),!0)),t}function Rn(){pn(2)}function $n(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function In(t){var e=na[t];return e||pn(18,t),e}function kn(){return Vn}function Ln(t,e){e&&(In("Patches"),t.u=[],t.s=[],t.v=e)}function Un(t){Wn(t),t.p.forEach(Bn),t.p=null}function Wn(t){t===Vn&&(Vn=t.l)}function An(t){return Vn={p:[],l:Vn,h:t,m:!0,_:0}}function Bn(t){var e=t[ea];0===e.i||1===e.i?e.j():e.g=!0}function Fn(t,e){e._=e.p.length;var o=e.p[0],r=void 0!==t&&t!==o;return e.h.O||In("ES5").S(e,t,r),r?(o[ea].P&&(Un(e),pn(4)),yn(t)&&(t=zn(e,t),e.l||_n(e,t)),e.u&&In("Patches").M(o[ea].t,t,e.u,e.s)):t=zn(e,o,[]),Un(e),e.u&&e.v(e.u,e.s),t!==Xn?t:void 0}function zn(t,e,o){if($n(e))return e;var r=e[ea];if(!r)return bn(e,(function(i,n){return Pn(t,r,e,i,n,o)}),!0),e;if(r.A!==t)return e;if(!r.P)return _n(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=Nn(r.k):r.o,n=i,a=!1;3===r.i&&(n=new Set(i),i.clear(),a=!0),bn(n,(function(e,n){return Pn(t,r,i,e,n,o,a)})),_n(t,i,!1),o&&t.u&&In("Patches").N(r,o,t.u,t.s)}return r.o}function Pn(t,e,o,r,i,n,a){if(gn(i)){var s=zn(t,i,n&&e&&3!==e.i&&!vn(e.R,r)?n.concat(r):void 0);if(xn(o,r,s),!gn(s))return;t.m=!1}else a&&o.add(i);if(yn(i)&&!$n(i)){if(!t.h.D&&t._<1)return;zn(t,i),e&&e.A.l||_n(t,i)}}function _n(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&En(e,o)}function jn(t,e){var o=t[ea];return(o?Cn(o):t)[e]}function Mn(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 Dn(t){t.P||(t.P=!0,t.l&&Dn(t.l))}function Tn(t){t.o||(t.o=Nn(t.t))}function Kn(t,e,o){var r=wn(e)?In("MapSet").F(e,o):Sn(e)?In("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),r={i:o?1:0,A:e?e.A:kn(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},i=r,n=aa;o&&(i=[r],n=sa);var a=Proxy.revocable(i,n),s=a.revoke,l=a.proxy;return r.k=l,r.j=s,l}(e,o):In("ES5").J(e,o);return(o?o.A:kn()).p.push(r),r}function Zn(t){return gn(t)||pn(22,t),function t(e){if(!yn(e))return e;var o,r=e[ea],i=mn(e);if(r){if(!r.P&&(r.i<4||!In("ES5").K(r)))return r.t;r.I=!0,o=Hn(e,i),r.I=!1}else o=Hn(e,i);return bn(o,(function(e,i){r&&function(t,e){return 2===mn(t)?t.get(e):t[e]}(r.t,e)===i||xn(o,e,t(i))})),3===i?new Set(o):o}(t)}function Hn(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Nn(t)}sn=hn,ln=un,cn=fn,dn.reduxProperties=new Map,dn.reduxReactiveProperties=new Set,dn.reduxEventListeners=new Map;var Gn,Vn,qn="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Yn="undefined"!=typeof Map,Jn="undefined"!=typeof Set,Qn="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Xn=qn?Symbol.for("immer-nothing"):((Gn={})["immer-nothing"]=!0,Gn),ta=qn?Symbol.for("immer-draftable"):"__$immer_draftable",ea=qn?Symbol.for("immer-state"):"__$immer_state",oa=""+Object.prototype.constructor,ra="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,ia=Object.getOwnPropertyDescriptors||function(t){var e={};return ra(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},na={},aa={get:function(t,e){if(e===ea)return t;var o=Cn(t);if(!vn(o,e))return function(t,e,o){var r,i=Mn(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||!yn(r)?r:r===jn(t.t,e)?(Tn(t),t.o[e]=Kn(t.A.h,r,t)):r},has:function(t,e){return e in Cn(t)},ownKeys:function(t){return Reflect.ownKeys(Cn(t))},set:function(t,e,o){var r=Mn(Cn(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,o),!0;if(!t.P){var i=jn(Cn(t),e),n=null==i?void 0:i[ea];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(On(o,i)&&(void 0!==o||vn(t.t,e)))return!0;Tn(t),Dn(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!==jn(t.t,e)||e in t.t?(t.R[e]=!1,Tn(t),Dn(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Cn(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(){pn(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){pn(12)}},sa={};bn(aa,(function(t,e){sa[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),sa.deleteProperty=function(t,e){return sa.set.call(this,t,e,void 0)},sa.set=function(t,e,o){return aa.set.call(this,t[0],e,o,t[0])};var la=function(){function t(t){var e=this;this.O=Qn,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&&pn(6),void 0!==r&&"function"!=typeof r&&pn(7),yn(t)){var s=An(e),l=Kn(e,t,void 0),c=!0;try{a=o(l),c=!1}finally{c?Un(s):Wn(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return Ln(s,r),Fn(t,s)}),(function(t){throw Un(s),t})):(Ln(s,r),Fn(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===Xn&&(a=void 0),e.D&&En(a,!0),r){var f=[],h=[];In("Patches").M(t,a,f,h),r(f,h)}return a}pn(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){yn(t)||pn(8),gn(t)&&(t=Zn(t));var e=An(this),o=Kn(this,t,void 0);return o[ea].C=!0,Wn(e),o},e.finishDraft=function(t,e){var o=(t&&t[ea]).A;return Ln(o,e),Fn(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Qn&&pn(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=In("Patches").$;return gn(t)?i(t,e):this.produce(t,(function(t){return i(t,e)}))},t}(),ca=new la,fa=ca.produce;function ha(t){return ha="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},ha(t)}function ua(t){var e=function(t,e){if("object"!==ha(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,e||"default");if("object"!==ha(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ha(e)?e:String(e)}function da(t,e,o){return(e=ua(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function pa(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 ga(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?pa(Object(o),!0).forEach((function(e){da(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):pa(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function ya(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. "}ca.produceWithPatches.bind(ca),ca.setAutoFreeze.bind(ca),ca.setUseProxies.bind(ca),ca.applyPatches.bind(ca),ca.createDraft.bind(ca),ca.finishDraft.bind(ca);var ba="function"==typeof Symbol&&Symbol.observable||"@@observable",ma=function(){return Math.random().toString(36).substring(7).split("").join(".")},va={INIT:"@@redux/INIT"+ma(),REPLACE:"@@redux/REPLACE"+ma(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ma()}};function xa(t,e,o){var r;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(ya(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(ya(1));return o(xa)(t,e)}if("function"!=typeof t)throw new Error(ya(2));var i=t,n=e,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function f(){if(l)throw new Error(ya(3));return n}function h(t){if("function"!=typeof t)throw new Error(ya(4));if(l)throw new Error(ya(5));var e=!0;return c(),s.push(t),function(){if(e){if(l)throw new Error(ya(6));e=!1,c();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(ya(7));if(void 0===t.type)throw new Error(ya(8));if(l)throw new Error(ya(9));try{l=!0,n=i(n,t)}finally{l=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return u({type:va.INIT}),(r={dispatch:u,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(ya(10));i=t,u({type:va.REPLACE})}})[ba]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(ya(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[ba]=function(){return this},t},r}function Oa(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:va.INIT}))throw new Error(ya(12));if(void 0===o(void 0,{type:va.PROBE_UNKNOWN_ACTION()}))throw new Error(ya(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 l=a[s],c=o[l],f=t[l],h=c(f,e);if(void 0===h)throw e&&e.type,new Error(ya(14));i[l]=h,r=r||h!==f}return(r=r||a.length!==Object.keys(t).length)?i:t}}function wa(){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 Sa(){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(ya(15))},i={getState:o.getState,dispatch:function(){return r.apply(void 0,arguments)}},n=e.map((function(t){return t(i)}));return r=wa.apply(void 0,n)(o.dispatch),ga(ga({},o),{},{dispatch:r})}}}function Ca(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 Na=Ca();Na.withExtraArgument=Ca;var Ea,Ra=Na,$a=(Ea=function(t,e){return Ea=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])},Ea(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}Ea(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),Ia=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])}}},ka=function(t,e){for(var o=0,r=e.length,i=t.length;o<r;o++,i++)t[i]=e[o];return t},La=Object.defineProperty,Ua=Object.defineProperties,Wa=Object.getOwnPropertyDescriptors,Aa=Object.getOwnPropertySymbols,Ba=Object.prototype.hasOwnProperty,Fa=Object.prototype.propertyIsEnumerable,za=function(t,e,o){return e in t?La(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Pa=function(t,e){for(var o in e||(e={}))Ba.call(e,o)&&za(t,o,e[o]);if(Aa)for(var r=0,i=Aa(e);r<i.length;r++){o=i[r];Fa.call(e,o)&&za(t,o,e[o])}return t},_a=function(t,e){return Ua(t,Wa(e))},ja="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?wa:wa.apply(null,arguments)};var Ma=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 $a(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,ka([void 0],t[0].concat(this)))):new(e.bind.apply(e,ka([void 0],t.concat(this))))},e}(Array),Da=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 $a(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,ka([void 0],t[0].concat(this)))):new(e.bind.apply(e,ka([void 0],t.concat(this))))},e}(Array);function Ta(t){return yn(t)?fa(t,(function(){})):t}function Ka(){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 Ma;o&&(!function(t){return"boolean"==typeof t}(o)?r.push(Ra.withExtraArgument(o.extraArgument)):r.push(Ra));return r}(t)}}function Za(t){var e,o=Ka(),r=t||{},i=r.reducer,n=void 0===i?void 0:i,a=r.middleware,s=void 0===a?o():a,l=r.devTools,c=void 0===l||l,f=r.preloadedState,h=void 0===f?void 0:f,u=r.enhancers,d=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=Oa(n)}var p=s;"function"==typeof p&&(p=p(o));var g=Sa.apply(void 0,p),y=wa;c&&(y=ja(Pa({trace:!1},"object"==typeof c&&c)));var b=new Da(g),m=b;return Array.isArray(d)?m=ka([g],d):"function"==typeof d&&(m=d(b)),xa(e,h,y.apply(void 0,m))}function Ha(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 Pa(Pa({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 Ga(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 Va(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:Ta(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},l={};function c(){var e="function"==typeof t.extraReducers?Ga(t.extraReducers):[t.extraReducers],o=e[0],i=void 0===o?{}:o,n=e[1],a=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,f=Pa(Pa({},i),s);return function(t,e,o,r){void 0===o&&(o=[]);var i,n="function"==typeof e?Ga(e):[e,o,r],a=n[0],s=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))i=function(){return Ta(t())};else{var c=Ta(t);i=function(){return c}}function f(t,e){void 0===t&&(t=i());var o=ka([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=[l]),o.reduce((function(t,o){if(o){var r;if(gn(t))return void 0===(r=o(t,e))?t:r;if(yn(t))return fa(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)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var o,r,n=i[t],c=e+"/"+t;"reducer"in n?(o=n.reducer,r=n.prepare):o=n,a[t]=o,s[c]=o,l[t]=r?Ha(c,r):Ha(c)})),{name:e,reducer:function(t,e){return o||(o=c()),o(t,e)},actions:l,caseReducers:a,getInitialState:function(){return o||(o=c()),o.getInitialState()}}}var qa=["name","message","stack","code"],Ya=function(t,e){this.payload=t,this.meta=e},Ja=function(t,e){this.payload=t,this.meta=e},Qa=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,r=qa;o<r.length;o++){var i=r[o];"string"==typeof t[i]&&(e[i]=t[i])}return e}return{message:String(t)}};function Xa(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=Ha(t+"/fulfilled",(function(t,e,o,r){return{payload:t,meta:_a(Pa({},r||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),i=Ha(t+"/pending",(function(t,e,o){return{payload:void 0,meta:_a(Pa({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Ha(t+"/rejected",(function(t,e,r,i,n){return{payload:i,error:(o&&o.serializeError||Qa)(t||"Rejected"),meta:_a(Pa({},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,l,c){var f,h=(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 d(t){f=t,u.abort()}var p=function(){return a=this,p=null,g=function(){var a,p,g,y,b,m;return Ia(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),y=null==(a=null==o?void 0:o.condition)?void 0:a.call(o,t,{getState:l,extra:c}),null===(x=y)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,y];case 1:y=v.sent(),v.label=2;case 2:if(!1===y||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return u.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(i(h,t,null==(p=null==o?void 0:o.getPendingMeta)?void 0:p.call(o,{requestId:h,arg:t},{getState:l,extra:c}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:l,extra:c,requestId:h,signal:u.signal,abort:d,rejectWithValue:function(t,e){return new Ya(t,e)},fulfillWithValue:function(t,e){return new Ja(t,e)}})).then((function(e){if(e instanceof Ya)throw e;return e instanceof Ja?r(e.payload,h,t,e.meta):r(e,h,t)}))])];case 3:return g=v.sent(),[3,5];case 4:return m=v.sent(),g=m instanceof Ya?n(null,h,t,m.payload,m.meta):n(m,h,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&n.match(g)&&g.meta.condition||s(g),[2,g]}var x}))},new Promise((function(t,e){var o=function(t){try{i(g.next(t))}catch(t){e(t)}},r=function(t){try{i(g.throw(t))}catch(t){e(t)}},i=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,r)};i((g=g.apply(a,p)).next())}));var a,p,g}();return Object.assign(p,{abort:d,requestId:h,arg:t,unwrap:function(){return p.then(Xa)}})}}),{pending:i,rejected:n,fulfilled:r,typePrefix:t})}t.withTypes=function(){return t}}();var ts="listenerMiddleware";Ha(ts+"/add"),Ha(ts+"/removeAll"),Ha(ts+"/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[ea];return aa.get(e,t)},set:function(e){var o=this[ea];aa.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var i=t[e][ea];if(!i.P)switch(i.i){case 5:r(i)&&Dn(i);break;case 4:o(i)&&Dn(i)}}}function o(t){for(var e=t.t,o=t.k,r=ra(o),i=r.length-1;i>=0;i--){var n=r[i];if(n!==ea){var a=e[n];if(void 0===a&&!vn(e,n))return!0;var s=o[n],l=s&&s[ea];if(l?l.t!==a:!On(s,a))return!0}}var c=!!e[ea];return r.length!==ra(e).length+(c?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){na[t]||(na[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=ia(o);delete n[ea];for(var a=ra(n),s=0;s<a.length;s++){var l=a[s];n[l]=t(l,e||!!n[l].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(r,e),n={i:r?5:4,A:o?o.A:kn(),P:!1,I:!1,R:{},l:o,t:e,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,ea,{value:n,writable:!0}),i},S:function(t,o,i){i?gn(o)&&o[ea].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[ea];if(o){var i=o.t,n=o.k,a=o.R,s=o.i;if(4===s)bn(n,(function(e){e!==ea&&(void 0!==i[e]||vn(i,e)?a[e]||t(n[e]):(a[e]=!0,Dn(o)))})),bn(i,(function(t){void 0!==n[t]||vn(n,t)||(a[t]=!1,Dn(o))}));else if(5===s){if(r(o)&&(Dn(o),a.length=!0),n.length<i.length)for(var l=n.length;l<i.length;l++)a[l]=!1;else for(var c=i.length;c<n.length;c++)a[c]=!0;for(var f=Math.min(n.length,i.length),h=0;h<f;h++)n.hasOwnProperty(h)||(a[h]=!0),void 0===a[h]&&t(n[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):r(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class es{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(an(i))return i;if(null==r)return;const n=Va({...r,reducers:null!==(e=r.reducers)&&void 0!==e?e:{}}),a=Za({reducer:(t,e)=>"CLEAR_FT_REDUX_STORE"===e.type?n.getInitialState():"string"==typeof e.type&&e.type.startsWith("DEFAULT_VALUE_SETTER__")?{...t,...e.overwrites}:n.reducer(t,e)});return window.ftReduxStores[r.name]=new es(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new nn,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_VALUE_SETTER__"+Object.keys(t).join("_"),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()}}var os=Object.freeze({__proto__:null,FtCommandQueue:nn,FtLitElementRedux:dn,FtReduxStore:es,clearAllStores:function(){var t;for(let e of Object.values(null!==(t=window.ftReduxStores)&&void 0!==t?t:{}))an(e)&&e.clear()},isFtReduxStore:an,redux:rn,reduxEventListener:t=>(e,o)=>{const r=e.constructor;r.reduxEventListeners=new Map(r.reduxEventListeners),r.reduxEventListeners.set(o,t)},reduxReactive:()=>(t,e)=>{var o;const r=t.constructor;r.reduxReactiveProperties=new Set(r.reduxReactiveProperties),null===(o=r.reduxReactiveProperties)||void 0===o||o.add(e)}});var rs=Object.freeze({__proto__:null,serializeRequest:function(t,e){var o,r,i,n;const a=new URLSearchParams({"content-lang":null!==(o=e.contentLocale)&&void 0!==o?o:"all"});if((null===(r=e.query)||void 0===r?void 0:r.length)>0&&a.append("query",e.query),e.scope&&"DEFAULT"!==e.scope&&a.append("scope",e.scope.toLowerCase()),e.virtualField&&a.append("virtual-field",e.virtualField.toLowerCase()),e.periodFilter){let t=e.periodFilter.period;const o=t?`_${t.from}_${t.to}`:"";a.append("period",e.periodFilter.periodType.toLowerCase()+o)}if((null===(i=e.sort)||void 0===i?void 0:i.length)>0&&"ft:lastEdition"===e.sort[0].key&&a.append("sort","last_update"),(null===(n=e.filters)||void 0===n?void 0:n.length)>0){const t=e.filters.map((t=>{const e=t.values.map((t=>t.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*"))).map((t=>encodeURIComponent(function(t){return`"${t}"`}(t)))).join("_");return`${t.key}~${e}`})).join("*");a.append("filters",t)}return new URL(`${t.replace(/\/+$/,"")}/search?${a.toString()}`).href}});const is=Symbol("elementInternals");function ns(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[is].form}constructor(...t){super(t),this[is]=this.attachInternals(),this[is].role=e}setFormValue(t){this[is].setFormValue(t)}}}var as,ss,ls,cs,fs=Object.freeze({__proto__:null,toFtFormComponent:ns});const hs=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(ls=null===(ss=null===(as=window.safari)||void 0===as?void 0:as.pushNotification)||void 0===ss?void 0:ss.toString())&&void 0!==ls?ls:""),us="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=null!==(cs=window.ftGlobals)&&void 0!==cs?cs:{lit:ve,litDecorators:ke,litRepeat:Te,litClassMap:Ze,litStyleMap:qe,litUnsafeHTML:Qe,wcUtils:{...io,...oo,...ao,...lo,...mo,...Sr,...Rr,...ki,...Or,...Mi,...Di,...po,...qi,...Xi,...tn,...on,...os,...Bi,...rs,...fs,isSafari:hs,isTouchScreen:us}};const ds=xo.extend("--ft-ripple-color","",wr.colorContent),ps={color:ds,backgroundColor:xo.extend("--ft-ripple-background-color","",ds),opacityContentOnSurfacePressed:xo.external(wr.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:xo.external(wr.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:xo.external(wr.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:xo.external(wr.opacityContentOnSurfaceSelected,"Design system"),borderRadius:xo.create("--ft-ripple-border-radius","","SIZE","0px")},gs=xo.extend("--ft-ripple-color","",wr.colorPrimary),ys=gs,bs=xo.extend("--ft-ripple-background-color","",gs),ms=xo.extend("--ft-ripple-color","",wr.colorSecondary),vs=ms,xs=xo.extend("--ft-ripple-background-color","",ms),Os=ut`
|
|
42
|
+
`;var bc={};var Vi={};Y(Vi,{ParametrizedLabelResolver:()=>ro});var ro=class{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var n,i;e=this.resolvePluralKey(e,r);let a=(i=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&i!==void 0?i:"";return r.forEach((s,c)=>a=a.replace(new RegExp(`\\{${c}([^}]*)\\}`,"g"),(l,u)=>this.formatValue(s,u))),a}resolvePluralKey(e,r){for(let n of r)if(typeof n=="number"){let i=`${String(e)}[\\=${n}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}formatValue(e,r){return e instanceof Date?this.formatDate(e,r):e??""}formatDate(e,r){let n=i=>r?.includes("date")?e.toLocaleDateString(i):r?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var ga={};Y(ga,{FtCommandQueue:()=>oo,FtLitElementRedux:()=>xe,FtReduxStore:()=>st,clearAllStores:()=>Bd,isFtReduxStore:()=>zt,redux:()=>G,reduxEventListener:()=>rd,reduxReactive:()=>td});var td=()=>(t,e)=>{var r;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(r=n.reduxReactiveProperties)===null||r===void 0||r.add(e)},G=t=>{let e=t??{};return(r,n)=>{var i;let a={hasChanged:(c,l)=>!Ie(c,l),attribute:!1,...e};O(a)(r,n);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:c=>c[n],store:e.store})}},rd=t=>(e,r)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(r,t)};var oo=class{constructor(){this.queue=[]}add(e,r=!1){r&&(this.queue=this.queue.filter(n=>n.type!==e.type)),this.queue.push(e)}consume(e){let r=this.queue.find(n=>n.type===e);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}};function zt(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var xc,vc,Sc,Ko=Symbol("internalReduxEventsUnsubscribers"),bt=Symbol("internalStoresUnsubscribers"),jt=Symbol("internalStores"),xe=class extends K{constructor(){super(...arguments),this[xc]=new Map,this[vc]=new Map,this[Sc]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(r=>e.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[jt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[jt].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[jt].get(e)}addStore(e,r){var n;r=(n=r??(zt(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(r),this.setupStore(r,e)}removeStore(e){let r=typeof e=="string"?e:e.name;this.unsubscribeFromStore(r),this[jt].delete(r)}setupStore(e,r){this[jt].set(e,r),this.subscribeToStore(e,r),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[jt].forEach((e,r)=>this.subscribeToStore(r,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,r)=>{let n=this.constructor.getPropertyOptions(r);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:r)){let i=this.getStore(e.store);i&&(e.store?this[bt].has(e.store):this[bt].size>0)&&(this[r]=e.selector(i.getState(),this))}})}subscribeToStore(e,r){var n;this[bt].set(e,r.subscribe(()=>this.updateFromStores())),zt(r)&&r.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||r.name===i.store)){let s=c=>this[a](c);r.eventBus.addEventListener(i.eventName,s),this[Ko].push(()=>r.eventBus.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[bt].forEach((e,r)=>this.unsubscribeFromStore(r)),this[Ko].forEach(e=>e()),this[Ko]=[]}unsubscribeFromStore(e){this[bt].has(e)&&this[bt].get(e)(),this[bt].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};xc=bt,vc=jt,Sc=Ko;xe.reduxProperties=new Map;xe.reduxReactiveProperties=new Set;xe.reduxEventListeners=new Map;function $e(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function at(t){return!!t&&!!t[X]}function De(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===pd}(t)||Array.isArray(t)||!!t[Nc]||!!(!((e=t.constructor)===null||e===void 0)&&e[Nc])||ea(t)||ta(t))}function Vt(t,e,r){r===void 0&&(r=!1),lr(t)===0?(r?Object.keys:cr)(t).forEach(function(n){r&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function lr(t){var e=t[X];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ea(t)?2:ta(t)?3:0}function sr(t,e){return lr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function od(t,e){return lr(t)===2?t.get(e):t[e]}function _c(t,e,r){var n=lr(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function Pc(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function ea(t){return cd&&t instanceof Map}function ta(t){return ld&&t instanceof Set}function xt(t){return t.o||t.t}function ra(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=$c(t);delete e[X];for(var r=cr(e),n=0;n<r.length;n++){var i=r[n],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function oa(t,e){return e===void 0&&(e=!1),na(t)||at(t)||!De(t)||(lr(t)>1&&(t.set=t.add=t.clear=t.delete=nd),Object.freeze(t),e&&Vt(t,function(r,n){return oa(n,!0)},!0)),t}function nd(){$e(2)}function na(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function je(t){var e=Qi[t];return e||$e(18,t),e}function id(t,e){Qi[t]||(Qi[t]=e)}function Yi(){return io}function Ki(t,e){e&&(je("Patches"),t.u=[],t.s=[],t.v=e)}function Go(t){Xi(t),t.p.forEach(ad),t.p=null}function Xi(t){t===io&&(io=t.l)}function Oc(t){return io={p:[],l:io,h:t,m:!0,_:0}}function ad(t){var e=t[X];e.i===0||e.i===1?e.j():e.g=!0}function Gi(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||je("ES5").S(e,t,n),n?(r[X].P&&(Go(e),$e(4)),De(t)&&(t=Zo(e,t),e.l||qo(e,t)),e.u&&je("Patches").M(r[X].t,t,e.u,e.s)):t=Zo(e,r,[]),Go(e),e.u&&e.v(e.u,e.s),t!==Ic?t:void 0}function Zo(t,e,r){if(na(e))return e;var n=e[X];if(!n)return Vt(e,function(c,l){return Cc(t,n,e,c,l,r)},!0),e;if(n.A!==t)return e;if(!n.P)return qo(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=ra(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),Vt(a,function(c,l){return Cc(t,n,i,c,l,r,s)}),qo(t,i,!1),r&&t.u&&je("Patches").N(n,r,t.u,t.s)}return n.o}function Cc(t,e,r,n,i,a,s){if(at(i)){var c=Zo(t,i,a&&e&&e.i!==3&&!sr(e.R,n)?a.concat(n):void 0);if(_c(r,n,c),!at(c))return;t.m=!1}else s&&r.add(i);if(De(i)&&!na(i)){if(!t.h.D&&t._<1)return;Zo(t,i),e&&e.A.l||qo(t,i)}}function qo(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&oa(e,r)}function Zi(t,e){var r=t[X];return(r?xt(r):t)[e]}function Ec(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function vt(t){t.P||(t.P=!0,t.l&&vt(t.l))}function qi(t){t.o||(t.o=ra(t.t))}function Ji(t,e,r){var n=ea(e)?je("MapSet").F(e,r):ta(e)?je("MapSet").T(e,r):t.O?function(i,a){var s=Array.isArray(i),c={i:s?1:0,A:a?a.A:Yi(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},l=c,u=ao;s&&(l=[c],u=no);var d=Proxy.revocable(l,u),h=d.revoke,y=d.proxy;return c.k=y,c.j=h,y}(e,r):je("ES5").J(e,r);return(r?r.A:Yi()).p.push(n),n}function sd(t){return at(t)||$e(22,t),function e(r){if(!De(r))return r;var n,i=r[X],a=lr(r);if(i){if(!i.P&&(i.i<4||!je("ES5").K(i)))return i.t;i.I=!0,n=wc(r,a),i.I=!1}else n=wc(r,a);return Vt(n,function(s,c){i&&od(i.t,s)===c||_c(n,s,e(c))}),a===3?new Set(n):n}(t)}function wc(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ra(t)}function Tc(){function t(s,c){var l=a[s];return l?l.enumerable=c:a[s]=l={configurable:!0,enumerable:c,get:function(){var u=this[X];return ao.get(u,s)},set:function(u){var d=this[X];ao.set(d,s,u)}},l}function e(s){for(var c=s.length-1;c>=0;c--){var l=s[c][X];if(!l.P)switch(l.i){case 5:n(l)&&vt(l);break;case 4:r(l)&&vt(l)}}}function r(s){for(var c=s.t,l=s.k,u=cr(l),d=u.length-1;d>=0;d--){var h=u[d];if(h!==X){var y=c[h];if(y===void 0&&!sr(c,h))return!0;var g=l[h],b=g&&g[X];if(b?b.t!==y:!Pc(g,y))return!0}}var C=!!c[X];return u.length!==cr(c).length+(C?0:1)}function n(s){var c=s.k;if(c.length!==s.t.length)return!0;var l=Object.getOwnPropertyDescriptor(c,c.length-1);if(l&&!l.get)return!0;for(var u=0;u<c.length;u++)if(!c.hasOwnProperty(u))return!0;return!1}function i(s){s.g&&$e(3,JSON.stringify(xt(s)))}var a={};id("ES5",{J:function(s,c){var l=Array.isArray(s),u=function(h,y){if(h){for(var g=Array(y.length),b=0;b<y.length;b++)Object.defineProperty(g,""+b,t(b,!0));return g}var C=$c(y);delete C[X];for(var N=cr(C),_=0;_<N.length;_++){var $=N[_];C[$]=t($,h||!!C[$].enumerable)}return Object.create(Object.getPrototypeOf(y),C)}(l,s),d={i:l?5:4,A:c?c.A:Yi(),P:!1,I:!1,R:{},l:c,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,X,{value:d,writable:!0}),u},S:function(s,c,l){l?at(c)&&c[X].A===s&&e(s.p):(s.u&&function u(d){if(d&&typeof d=="object"){var h=d[X];if(h){var y=h.t,g=h.k,b=h.R,C=h.i;if(C===4)Vt(g,function(v){v!==X&&(y[v]!==void 0||sr(y,v)?b[v]||u(g[v]):(b[v]=!0,vt(h)))}),Vt(y,function(v){g[v]!==void 0||sr(g,v)||(b[v]=!1,vt(h))});else if(C===5){if(n(h)&&(vt(h),b.length=!0),g.length<y.length)for(var N=g.length;N<y.length;N++)b[N]=!1;else for(var _=y.length;_<g.length;_++)b[_]=!0;for(var $=Math.min(g.length,y.length),S=0;S<$;S++)g.hasOwnProperty(S)||(b[S]=!0),b[S]===void 0&&u(g[S])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):n(s)}})}var Ac,io,ia=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",cd=typeof Map<"u",ld=typeof Set<"u",Rc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ic=ia?Symbol.for("immer-nothing"):((Ac={})["immer-nothing"]=!0,Ac),Nc=ia?Symbol.for("immer-draftable"):"__$immer_draftable",X=ia?Symbol.for("immer-state"):"__$immer_state";var pd=""+Object.prototype.constructor,cr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,$c=Object.getOwnPropertyDescriptors||function(t){var e={};return cr(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},Qi={},ao={get:function(t,e){if(e===X)return t;var r=xt(t);if(!sr(r,e))return function(i,a,s){var c,l=Ec(a,s);return l?"value"in l?l.value:(c=l.get)===null||c===void 0?void 0:c.call(i.k):void 0}(t,r,e);var n=r[e];return t.I||!De(n)?n:n===Zi(t.t,e)?(qi(t),t.o[e]=Ji(t.A.h,n,t)):n},has:function(t,e){return e in xt(t)},ownKeys:function(t){return Reflect.ownKeys(xt(t))},set:function(t,e,r){var n=Ec(xt(t),e);if(n?.set)return n.set.call(t.k,r),!0;if(!t.P){var i=Zi(xt(t),e),a=i?.[X];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(Pc(r,i)&&(r!==void 0||sr(t.t,e)))return!0;qi(t),vt(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return Zi(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,qi(t),vt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=xt(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){$e(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){$e(12)}},no={};Vt(ao,function(t,e){no[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),no.deleteProperty=function(t,e){return no.set.call(this,t,e,void 0)},no.set=function(t,e,r){return ao.set.call(this,t[0],e,r,t[0])};var ud=function(){function t(r){var n=this;this.O=Rc,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var c=a;a=i;var l=n;return function(C){var N=this;C===void 0&&(C=c);for(var _=arguments.length,$=Array(_>1?_-1:0),S=1;S<_;S++)$[S-1]=arguments[S];return l.produce(C,function(v){var E;return(E=a).call.apply(E,[N,v].concat($))})}}var u;if(typeof a!="function"&&$e(6),s!==void 0&&typeof s!="function"&&$e(7),De(i)){var d=Oc(n),h=Ji(n,i,void 0),y=!0;try{u=a(h),y=!1}finally{y?Go(d):Xi(d)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(C){return Ki(d,s),Gi(C,d)},function(C){throw Go(d),C}):(Ki(d,s),Gi(u,d))}if(!i||typeof i!="object"){if((u=a(i))===void 0&&(u=i),u===Ic&&(u=void 0),n.D&&oa(u,!0),s){var g=[],b=[];je("Patches").M(i,u,g,b),s(g,b)}return u}$e(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(u){for(var d=arguments.length,h=Array(d>1?d-1:0),y=1;y<d;y++)h[y-1]=arguments[y];return n.produceWithPatches(u,function(g){return i.apply(void 0,[g].concat(h))})};var s,c,l=n.produce(i,a,function(u,d){s=u,c=d});return typeof Promise<"u"&&l instanceof Promise?l.then(function(u){return[u,s,c]}):[l,s,c]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){De(r)||$e(8),at(r)&&(r=sd(r));var n=Oc(this),i=Ji(this,r,void 0);return i[X].C=!0,Xi(n),i},e.finishDraft=function(r,n){var i=r&&r[X],a=i.A;return Ki(a,n),Gi(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Rc&&$e(20),this.O=r},e.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(n=n.slice(i+1));var s=je("Patches").$;return at(r)?s(r,n):this.produce(r,function(c){return s(c,n)})},t}(),_e=new ud,dd=_e.produce,Zg=_e.produceWithPatches.bind(_e),qg=_e.setAutoFreeze.bind(_e),Yg=_e.setUseProxies.bind(_e),Xg=_e.applyPatches.bind(_e),Jg=_e.createDraft.bind(_e),Qg=_e.finishDraft.bind(_e),Yo=dd;function St(t){"@babel/helpers - typeof";return St=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},St(t)}function aa(t,e){if(St(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(St(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function sa(t){var e=aa(t,"string");return St(e)==="symbol"?e:String(e)}function ca(t,e,r){return e=sa(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Lc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Xo(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Lc(Object(r),!0).forEach(function(n){ca(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Lc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ue(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. "}var kc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),la=function(){return Math.random().toString(36).substring(7).split("").join(".")},Jo={INIT:"@@redux/INIT"+la(),REPLACE:"@@redux/REPLACE"+la(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+la()}};function fd(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function pa(t,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ue(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ue(1));return r(pa)(t,e)}if(typeof t!="function")throw new Error(ue(2));var i=t,a=e,s=[],c=s,l=!1;function u(){c===s&&(c=s.slice())}function d(){if(l)throw new Error(ue(3));return a}function h(C){if(typeof C!="function")throw new Error(ue(4));if(l)throw new Error(ue(5));var N=!0;return u(),c.push(C),function(){if(N){if(l)throw new Error(ue(6));N=!1,u();var $=c.indexOf(C);c.splice($,1),s=null}}}function y(C){if(!fd(C))throw new Error(ue(7));if(typeof C.type>"u")throw new Error(ue(8));if(l)throw new Error(ue(9));try{l=!0,a=i(a,C)}finally{l=!1}for(var N=s=c,_=0;_<N.length;_++){var $=N[_];$()}return C}function g(C){if(typeof C!="function")throw new Error(ue(10));i=C,y({type:Jo.REPLACE})}function b(){var C,N=h;return C={subscribe:function($){if(typeof $!="object"||$===null)throw new Error(ue(11));function S(){$.next&&$.next(d())}S();var v=N(S);return{unsubscribe:v}}},C[kc]=function(){return this},C}return y({type:Jo.INIT}),n={dispatch:y,subscribe:h,getState:d,replaceReducer:g},n[kc]=b,n}function hd(t){Object.keys(t).forEach(function(e){var r=t[e],n=r(void 0,{type:Jo.INIT});if(typeof n>"u")throw new Error(ue(12));if(typeof r(void 0,{type:Jo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ue(13))})}function Mc(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(r[i]=t[i])}var a=Object.keys(r),s,c;try{hd(r)}catch(l){c=l}return function(u,d){if(u===void 0&&(u={}),c)throw c;if(0)var h;for(var y=!1,g={},b=0;b<a.length;b++){var C=a[b],N=r[C],_=u[C],$=N(_,d);if(typeof $>"u"){var S=d&&d.type;throw new Error(ue(14))}g[C]=$,y=y||$!==_}return y=y||a.length!==Object.keys(u).length,y?g:u}}function pr(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function Dc(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(ue(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=e.map(function(l){return l(s)});return a=pr.apply(void 0,c)(i.dispatch),Xo(Xo({},i),{},{dispatch:a})}}}function Uc(t){var e=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(c){return typeof c=="function"?c(i,a,t):s(c)}}};return e}var Bc=Uc();Bc.withExtraArgument=Uc;var ua=Bc;var jc=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),md=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(u){return function(d){return l([u,d])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){r.label=u[1];break}if(u[0]===6&&r.label<a[1]){r.label=a[1],a=u;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(u);break}a[2]&&r.ops.pop(),r.trys.pop();continue}u=e.call(t,r)}catch(d){u=[6,d],i=0}finally{n=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},ur=function(t,e){for(var r=0,n=e.length,i=t.length;r<n;r++,i++)t[i]=e[r];return t},yd=Object.defineProperty,gd=Object.defineProperties,bd=Object.getOwnPropertyDescriptors,Fc=Object.getOwnPropertySymbols,xd=Object.prototype.hasOwnProperty,vd=Object.prototype.propertyIsEnumerable,Wc=function(t,e,r){return e in t?yd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},Ot=function(t,e){for(var r in e||(e={}))xd.call(e,r)&&Wc(t,r,e[r]);if(Fc)for(var n=0,i=Fc(e);n<i.length;n++){var r=i[n];vd.call(e,r)&&Wc(t,r,e[r])}return t},da=function(t,e){return gd(t,bd(e))},Sd=function(t,e,r){return new Promise(function(n,i){var a=function(l){try{c(r.next(l))}catch(u){i(u)}},s=function(l){try{c(r.throw(l))}catch(u){i(u)}},c=function(l){return l.done?n(l.value):Promise.resolve(l.value).then(a,s)};c((r=r.apply(t,e)).next())})};var Od=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?pr:pr.apply(null,arguments)},gb=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Cd(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}var Ed=function(t){jc(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,ur([void 0],r[0].concat(this)))):new(e.bind.apply(e,ur([void 0],r.concat(this))))},e}(Array),wd=function(t){jc(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,ur([void 0],r[0].concat(this)))):new(e.bind.apply(e,ur([void 0],r.concat(this))))},e}(Array);function ma(t){return De(t)?Yo(t,function(){}):t}function Ad(t){return typeof t=="boolean"}function Rd(){return function(e){return Nd(e)}}function Nd(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,a=t.serializableCheck,s=a===void 0?!0:a,c=new Ed;if(r&&(Ad(r)?c.push(ua):c.push(ua.withExtraArgument(r.extraArgument))),0){if(i)var l;if(s)var u}return c}var fa=!0;function Vc(t){var e=Rd(),r=t||{},n=r.reducer,i=n===void 0?void 0:n,a=r.middleware,s=a===void 0?e():a,c=r.devTools,l=c===void 0?!0:c,u=r.preloadedState,d=u===void 0?void 0:u,h=r.enhancers,y=h===void 0?void 0:h,g;if(typeof i=="function")g=i;else if(Cd(i))g=Mc(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var b=s;if(typeof b=="function"&&(b=b(e),!fa&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!fa&&b.some(function(v){return typeof v!="function"}))throw new Error("each middleware provided to configureStore must be a function");var C=Dc.apply(void 0,b),N=pr;l&&(N=Od(Ot({trace:!fa},typeof l=="object"&&l)));var _=new wd(C),$=_;Array.isArray(y)?$=ur([C],y):typeof y=="function"&&($=y(_));var S=N.apply(void 0,$);return pa(g,d,S)}function Ct(t,e){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var a=e.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return Ot(Ot({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:n[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(n){return n.type===t},r}function Kc(t){var e={},r=[],n,i={addCase:function(a,s){var c=typeof a=="string"?a:a.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=s,i},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return t(i),[e,r,n]}function _d(t){return typeof t=="function"}function Pd(t,e,r,n){r===void 0&&(r=[]);var i=typeof e=="function"?Kc(e):[e,r,n],a=i[0],s=i[1],c=i[2],l;if(_d(t))l=function(){return ma(t())};else{var u=ma(t);l=function(){return u}}function d(h,y){h===void 0&&(h=l());var g=ur([a[y.type]],s.filter(function(b){var C=b.matcher;return C(y)}).map(function(b){var C=b.reducer;return C}));return g.filter(function(b){return!!b}).length===0&&(g=[c]),g.reduce(function(b,C){if(C)if(at(b)){var N=b,_=C(N,y);return _===void 0?b:_}else{if(De(b))return Yo(b,function($){return C($,y)});var _=C(b,y);if(_===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return _}return b},h)}return d.getInitialState=l,d}function Td(t,e){return t+"/"+e}function Gc(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:ma(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},c={};i.forEach(function(d){var h=n[d],y=Td(e,d),g,b;"reducer"in h?(g=h.reducer,b=h.prepare):g=h,a[d]=g,s[y]=g,c[d]=b?Ct(y,b):Ct(y)});function l(){var d=typeof t.extraReducers=="function"?Kc(t.extraReducers):[t.extraReducers],h=d[0],y=h===void 0?{}:h,g=d[1],b=g===void 0?[]:g,C=d[2],N=C===void 0?void 0:C,_=Ot(Ot({},y),s);return Pd(r,function($){for(var S in _)$.addCase(S,_[S]);for(var v=0,E=b;v<E.length;v++){var M=E[v];$.addMatcher(M.matcher,M.reducer)}N&&$.addDefaultCase(N)})}var u;return{name:e,reducer:function(d,h){return u||(u=l()),u(d,h)},actions:c,caseReducers:a,getInitialState:function(){return u||(u=l()),u.getInitialState()}}}var Id="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",$d=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Id[Math.random()*64|0];return e},Ld=["name","message","stack","code"],ha=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),Hc=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),kd=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,n=Ld;r<n.length;r++){var i=n[r];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},Sb=function(){function t(e,r,n){var i=Ct(e+"/fulfilled",function(d,h,y,g){return{payload:d,meta:da(Ot({},g||{}),{arg:y,requestId:h,requestStatus:"fulfilled"})}}),a=Ct(e+"/pending",function(d,h,y){return{payload:void 0,meta:da(Ot({},y||{}),{arg:h,requestId:d,requestStatus:"pending"})}}),s=Ct(e+"/rejected",function(d,h,y,g,b){return{payload:g,error:(n&&n.serializeError||kd)(d||"Rejected"),meta:da(Ot({},b||{}),{arg:y,requestId:h,rejectedWithValue:!!g,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"})}}),c=!1,l=typeof AbortController<"u"?AbortController:function(){function d(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return d.prototype.abort=function(){},d}();function u(d){return function(h,y,g){var b=n?.idGenerator?n.idGenerator(d):$d(),C=new l,N,_=!1;function $(v){N=v,C.abort()}var S=function(){return Sd(this,null,function(){var v,E,M,D,le,z,m;return md(this,function(x){switch(x.label){case 0:return x.trys.push([0,4,,5]),D=(v=n?.condition)==null?void 0:v.call(n,d,{getState:y,extra:g}),Dd(D)?[4,D]:[3,2];case 1:D=x.sent(),x.label=2;case 2:if(D===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return _=!0,le=new Promise(function(A,H){return C.signal.addEventListener("abort",function(){return H({name:"AbortError",message:N||"Aborted"})})}),h(a(b,d,(E=n?.getPendingMeta)==null?void 0:E.call(n,{requestId:b,arg:d},{getState:y,extra:g}))),[4,Promise.race([le,Promise.resolve(r(d,{dispatch:h,getState:y,extra:g,requestId:b,signal:C.signal,abort:$,rejectWithValue:function(A,H){return new ha(A,H)},fulfillWithValue:function(A,H){return new Hc(A,H)}})).then(function(A){if(A instanceof ha)throw A;return A instanceof Hc?i(A.payload,b,d,A.meta):i(A,b,d)})])];case 3:return M=x.sent(),[3,5];case 4:return z=x.sent(),M=z instanceof ha?s(null,b,d,z.payload,z.meta):s(z,b,d),[3,5];case 5:return m=n&&!n.dispatchConditionRejection&&s.match(M)&&M.meta.condition,m||h(M),[2,M]}})})}();return Object.assign(S,{abort:$,requestId:b,arg:d,unwrap:function(){return S.then(Md)}})}}return Object.assign(u,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function Md(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Dd(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Zc="listener",qc="completed",Yc="cancelled",Ob="task-"+Yc,Cb="task-"+qc,Eb=Zc+"-"+Yc,wb=Zc+"-"+qc;var ya="listenerMiddleware";var Ab=Ct(ya+"/add"),Rb=Ct(ya+"/removeAll"),Nb=Ct(ya+"/remove");var zc,_b=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(zc||(zc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Ud=function(t){return function(e){setTimeout(e,t)}},Pb=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Ud(10);Tc();window.ftReduxStores||(window.ftReduxStores={});var st=class t{static get(e){var r;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(zt(a))return a;if(i==null)return;let s=Gc({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),c=Vc({reducer:(l,u)=>u.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...l,...u.overwrites}:s.reducer(l,u)});return window.ftReduxStores[i.name]=new t(s,c)}constructor(e,r){this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new oo,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,i,a)=>{let s=i,c=n[s];return c?(...l)=>{let u=c(...l);return this.reduxStore.dispatch(u),u}:l=>{this.setState({[s]:l})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}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(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function Bd(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))zt(e)&&e.clear()}var ba={};Y(ba,{serializeRequest:()=>Wd});function Fd(t){return`"${t}"`}function Wd(t,e){var r,n,i,a;let s=new URLSearchParams({"content-lang":(r=e.contentLocale)!==null&&r!==void 0?r:"all"});if(((n=e.query)===null||n===void 0?void 0:n.length)>0&&s.append("query",e.query),e.scope&&e.scope!=="DEFAULT"&&s.append("scope",e.scope.toLowerCase()),e.virtualField&&s.append("virtual-field",e.virtualField.toLowerCase()),e.periodFilter){let l=e.periodFilter.period,u=l?`_${l.from}_${l.to}`:"";s.append("period",e.periodFilter.periodType.toLowerCase()+u)}if(((i=e.sort)===null||i===void 0?void 0:i.length)>0&&e.sort[0].key==="ft:lastEdition"&&s.append("sort","last_update"),((a=e.filters)===null||a===void 0?void 0:a.length)>0){let l=e.filters.map(u=>{let d=u.values.map(h=>h.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*")).map(h=>encodeURIComponent(Fd(h))).join("_");return`${u.key}~${d}`}).join("*");s.append("filters",l)}return new URL(`${t.replace(/\/+$/,"")}/search?${s.toString()}`).href}var va={};Y(va,{toFtFormComponent:()=>xa});var Qo=Symbol("elementInternals");function xa(t,e){class r extends t{static get formAssociated(){return!0}get form(){return this[Qo].form}constructor(...i){super(i),this[Qo]=this.attachInternals(),this[Qo].role=e}setFormValue(i){this[Qo].setFormValue(i)}}return r}var Sa,Oa,Ca,Ea,wa=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Ca=(Oa=(Sa=window.safari)===null||Sa===void 0?void 0:Sa.pushNotification)===null||Oa===void 0?void 0:Oa.toString())!==null&&Ca!==void 0?Ca:"")==="[object SafariRemoteNotification]",Hd="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Ea=window.ftGlobals)!==null&&Ea!==void 0?Ea:{lit:In,litDecorators:kn,litRepeat:Mn,litClassMap:Dn,litStyleMap:Un,litUnsafeHTML:Bn,wcUtils:{...Wn,...Fn,...zn,...jn,...Kn,...xi,...Ci,...ki,...bi,...Ui,...yc,...Vn,...Hi,...ji,...bc,...Vi,...ga,...Mi,...ba,...va,isSafari:wa,isTouchScreen:Hd}};var Xc=o.extend("--ft-ripple-color","",I.colorContent),W={color:Xc,backgroundColor:o.extend("--ft-ripple-background-color","",Xc),opacityContentOnSurfacePressed:o.external(I.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.external(I.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.external(I.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.external(I.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.create("--ft-ripple-border-radius","","SIZE","0px")},Jc=o.extend("--ft-ripple-color","",I.colorPrimary),Qc={color:Jc,backgroundColor:o.extend("--ft-ripple-background-color","",Jc)},el=o.extend("--ft-ripple-color","",I.colorSecondary),tl={color:el,backgroundColor:o.extend("--ft-ripple-background-color","",el)},rl=R`
|
|
177
43
|
:host {
|
|
178
44
|
display: contents;
|
|
179
45
|
}
|
|
@@ -186,7 +52,7 @@ function(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=${r}
|
|
|
186
52
|
|
|
187
53
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
188
54
|
overflow: hidden;
|
|
189
|
-
border-radius: ${
|
|
55
|
+
border-radius: ${W.borderRadius};
|
|
190
56
|
}
|
|
191
57
|
|
|
192
58
|
.ft-ripple .ft-ripple--background,
|
|
@@ -220,27 +86,27 @@ function(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=${r}
|
|
|
220
86
|
}
|
|
221
87
|
|
|
222
88
|
.ft-ripple .ft-ripple--background {
|
|
223
|
-
background-color: ${
|
|
89
|
+
background-color: ${W.backgroundColor};
|
|
224
90
|
}
|
|
225
91
|
|
|
226
92
|
.ft-ripple .ft-ripple--effect {
|
|
227
|
-
background-color: ${
|
|
93
|
+
background-color: ${W.color};
|
|
228
94
|
}
|
|
229
95
|
|
|
230
96
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
231
|
-
background-color: ${
|
|
97
|
+
background-color: ${tl.backgroundColor};
|
|
232
98
|
}
|
|
233
99
|
|
|
234
100
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
235
|
-
background-color: ${
|
|
101
|
+
background-color: ${tl.color};
|
|
236
102
|
}
|
|
237
103
|
|
|
238
104
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
239
|
-
background-color: ${
|
|
105
|
+
background-color: ${Qc.backgroundColor};
|
|
240
106
|
}
|
|
241
107
|
|
|
242
108
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
243
|
-
background-color: ${
|
|
109
|
+
background-color: ${Qc.color};
|
|
244
110
|
}
|
|
245
111
|
|
|
246
112
|
.ft-ripple .ft-ripple--background {
|
|
@@ -270,37 +136,37 @@ function(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=${r}
|
|
|
270
136
|
}
|
|
271
137
|
|
|
272
138
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
273
|
-
opacity: ${
|
|
139
|
+
opacity: ${W.opacityContentOnSurfaceHover};
|
|
274
140
|
}
|
|
275
141
|
|
|
276
142
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
277
|
-
opacity: ${
|
|
143
|
+
opacity: ${W.opacityContentOnSurfaceSelected};
|
|
278
144
|
}
|
|
279
145
|
|
|
280
146
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
281
|
-
opacity: ${
|
|
147
|
+
opacity: ${W.opacityContentOnSurfaceFocused};
|
|
282
148
|
}
|
|
283
149
|
|
|
284
150
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
285
|
-
opacity: ${
|
|
151
|
+
opacity: ${W.opacityContentOnSurfacePressed};
|
|
286
152
|
transform: translate(-50%, -50%) scale(1);
|
|
287
153
|
}
|
|
288
|
-
|
|
154
|
+
`;var V={padding:o.create("--ft-card-padding","","SIZE","12px"),borderRadius:o.extend("--ft-card-border-radius","",I.borderRadiusM),borderStyle:o.create("--ft-card-border-style","","UNKNOWN","none"),borderColor:o.extend("--ft-card-border-color","",I.colorOutline),hoverBorderColor:o.extend("--ft-card-hover-border-color","",I.colorPrimary),outlineStyle:o.create("--ft-card-outline-style","","UNKNOWN","solid"),outlineWidth:o.create("--ft-card-outline-width","","SIZE","0"),outlineColor:o.extend("--ft-card-outline-color","",I.colorPrimary),selectedOutlineStyle:o.create("--ft-card-selected-outline-style","","UNKNOWN","solid"),selectedOutlineWidth:o.create("--ft-card-selected-outline-width","","SIZE","2px"),selectedOutlineColor:o.extend("--ft-card-selected-outline-color","",I.colorPrimary),selectedBorderRadius:o.extend("--ft-card-selected-border-radius","",I.borderRadiusM),colorSurface:o.extend("--ft-card-background-color","",I.colorSurface),colorOnSurfaceMedium:o.extend("--ft-card-content-color","",I.colorOnSurfaceMedium),colorOnSurfaceHigh:o.extend("--ft-card-title-color","",I.colorOnSurfaceHigh),elevation02:o.extend("--ft-card-elevation","",I.elevation02),elevation04:o.extend("--ft-card-selected-elevation","",I.elevation04)},ol=R`
|
|
289
155
|
:host {
|
|
290
156
|
display: block;
|
|
291
157
|
}
|
|
292
158
|
|
|
293
159
|
#container {
|
|
294
|
-
padding: ${
|
|
295
|
-
outline-style: ${
|
|
296
|
-
outline-width: ${
|
|
297
|
-
outline-color: ${
|
|
298
|
-
border-color: ${
|
|
299
|
-
border-style: ${
|
|
160
|
+
padding: ${V.padding};
|
|
161
|
+
outline-style: ${V.outlineStyle};
|
|
162
|
+
outline-width: ${V.outlineWidth};
|
|
163
|
+
outline-color: ${V.outlineColor};
|
|
164
|
+
border-color: ${V.borderColor};
|
|
165
|
+
border-style: ${V.borderStyle};
|
|
300
166
|
border-width: 1px;
|
|
301
|
-
border-radius: ${
|
|
302
|
-
${
|
|
303
|
-
box-shadow: ${
|
|
167
|
+
border-radius: ${V.borderRadius};
|
|
168
|
+
${T(W.borderRadius,V.borderRadius)};
|
|
169
|
+
box-shadow: ${V.elevation02};
|
|
304
170
|
position: relative;
|
|
305
171
|
width: 100%;
|
|
306
172
|
height: 100%;
|
|
@@ -312,7 +178,7 @@ function(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=${r}
|
|
|
312
178
|
grid-template-rows: max-content minmax(0, 1fr);
|
|
313
179
|
grid-gap: 8px;
|
|
314
180
|
box-sizing: border-box;
|
|
315
|
-
background-color: ${
|
|
181
|
+
background-color: ${V.colorSurface};
|
|
316
182
|
transition: box-shadow 0.2s linear, color 0.2s linear;
|
|
317
183
|
}
|
|
318
184
|
|
|
@@ -325,12 +191,12 @@ function(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=${r}
|
|
|
325
191
|
}
|
|
326
192
|
|
|
327
193
|
#container.selected {
|
|
328
|
-
outline-style: ${
|
|
329
|
-
outline-width: ${
|
|
330
|
-
outline-color: ${
|
|
331
|
-
border-radius: ${
|
|
332
|
-
${
|
|
333
|
-
box-shadow: ${
|
|
194
|
+
outline-style: ${V.selectedOutlineStyle};
|
|
195
|
+
outline-width: ${V.selectedOutlineWidth};
|
|
196
|
+
outline-color: ${V.selectedOutlineColor};
|
|
197
|
+
border-radius: ${V.selectedBorderRadius};
|
|
198
|
+
${T(W.borderRadius,V.selectedBorderRadius)};
|
|
199
|
+
box-shadow: ${V.elevation04};
|
|
334
200
|
}
|
|
335
201
|
|
|
336
202
|
#container.clickable {
|
|
@@ -338,8 +204,8 @@ function(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=${r}
|
|
|
338
204
|
}
|
|
339
205
|
|
|
340
206
|
#container.clickable:hover {
|
|
341
|
-
box-shadow: ${
|
|
342
|
-
border-color: ${
|
|
207
|
+
box-shadow: ${V.elevation04};
|
|
208
|
+
border-color: ${V.hoverBorderColor};
|
|
343
209
|
}
|
|
344
210
|
|
|
345
211
|
#header {
|
|
@@ -350,124 +216,124 @@ function(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=${r}
|
|
|
350
216
|
text-overflow: ellipsis;
|
|
351
217
|
overflow: hidden;
|
|
352
218
|
word-break: break-word;
|
|
353
|
-
color: ${
|
|
219
|
+
color: ${V.colorOnSurfaceHigh};
|
|
354
220
|
}
|
|
355
221
|
|
|
356
222
|
#content {
|
|
357
223
|
word-break: break-word;
|
|
358
224
|
min-width: 0; /* like with flexbox, some items have a hard time shrinking when necessary */
|
|
359
225
|
grid-area: content;
|
|
360
|
-
color: ${
|
|
226
|
+
color: ${V.colorOnSurfaceMedium};
|
|
361
227
|
}
|
|
362
228
|
|
|
363
229
|
#action {
|
|
364
230
|
grid-area: actions;
|
|
365
231
|
}
|
|
366
|
-
`;
|
|
232
|
+
`;function nl(t){let e=Kr[t];return R`
|
|
233
|
+
.ft-typography--${$t(t)} {
|
|
234
|
+
font-family: ${e.fontFamily};
|
|
235
|
+
font-size: ${e.fontSize};
|
|
236
|
+
font-weight: ${e.fontWeight};
|
|
237
|
+
letter-spacing: ${e.letterSpacing};
|
|
238
|
+
line-height: ${e.lineHeight};
|
|
239
|
+
text-transform: ${e.textCase};
|
|
240
|
+
}
|
|
241
|
+
`}var il=o.extend("--ft-typography-font-family","",I.titleFont),ct=o.extend("--ft-typography-font-family","",I.contentFont),k={fontFamily:ct,fontSize:o.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:o.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:o.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:o.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:o.create("--ft-typography-text-transform","","UNKNOWN","inherit")},dr={fontFamily:o.extend("--ft-typography-title-font-family","",il),fontSize:o.extend("--ft-typography-title-font-size","",k.fontSize,"20px"),fontWeight:o.extend("--ft-typography-title-font-weight","",k.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-letter-spacing","",k.letterSpacing,"0.15px"),lineHeight:o.extend("--ft-typography-title-line-height","",k.lineHeight,"1.2"),textTransform:o.extend("--ft-typography-title-text-transform","",k.textTransform,"inherit")},fr={fontFamily:o.extend("--ft-typography-title-dense-font-family","",il),fontSize:o.extend("--ft-typography-title-dense-font-size","",k.fontSize,"14px"),fontWeight:o.extend("--ft-typography-title-dense-font-weight","",k.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-dense-letter-spacing","",k.letterSpacing,"0.105px"),lineHeight:o.extend("--ft-typography-title-dense-line-height","",k.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-title-dense-text-transform","",k.textTransform,"inherit")},hr={fontFamily:o.extend("--ft-typography-subtitle1-font-family","",ct),fontSize:o.extend("--ft-typography-subtitle1-font-size","",k.fontSize,"16px"),fontWeight:o.extend("--ft-typography-subtitle1-font-weight","",k.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-subtitle1-letter-spacing","",k.letterSpacing,"0.144px"),lineHeight:o.extend("--ft-typography-subtitle1-line-height","",k.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-subtitle1-text-transform","",k.textTransform,"inherit")},mr={fontFamily:o.extend("--ft-typography-subtitle2-font-family","",ct),fontSize:o.extend("--ft-typography-subtitle2-font-size","",k.fontSize,"14px"),fontWeight:o.extend("--ft-typography-subtitle2-font-weight","",k.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-subtitle2-letter-spacing","",k.letterSpacing,"0.098px"),lineHeight:o.extend("--ft-typography-subtitle2-line-height","",k.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-subtitle2-text-transform","",k.textTransform,"inherit")},yr={fontFamily:o.extend("--ft-typography-body1-font-family","",ct),fontSize:o.extend("--ft-typography-body1-font-size","",k.fontSize,"16px"),fontWeight:o.extend("--ft-typography-body1-font-weight","",k.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body1-letter-spacing","",k.letterSpacing,"0.496px"),lineHeight:o.extend("--ft-typography-body1-line-height","",k.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-body1-text-transform","",k.textTransform,"inherit")},gr={fontFamily:o.extend("--ft-typography-body2-font-family","",ct),fontSize:o.extend("--ft-typography-body2-font-size","",k.fontSize,"14px"),fontWeight:o.extend("--ft-typography-body2-font-weight","",k.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body2-letter-spacing","",k.letterSpacing,"0.252px"),lineHeight:o.extend("--ft-typography-body2-line-height","",k.lineHeight,"1.4"),textTransform:o.extend("--ft-typography-body2-text-transform","",k.textTransform,"inherit")},br={fontFamily:o.extend("--ft-typography-caption-font-family","",ct),fontSize:o.extend("--ft-typography-caption-font-size","",k.fontSize,"12px"),fontWeight:o.extend("--ft-typography-caption-font-weight","",k.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-caption-letter-spacing","",k.letterSpacing,"0.396px"),lineHeight:o.extend("--ft-typography-caption-line-height","",k.lineHeight,"1.33"),textTransform:o.extend("--ft-typography-caption-text-transform","",k.textTransform,"inherit")},xr={fontFamily:o.extend("--ft-typography-breadcrumb-font-family","",ct),fontSize:o.extend("--ft-typography-breadcrumb-font-size","",k.fontSize,"10px"),fontWeight:o.extend("--ft-typography-breadcrumb-font-weight","",k.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-breadcrumb-letter-spacing","",k.letterSpacing,"0.33px"),lineHeight:o.extend("--ft-typography-breadcrumb-line-height","",k.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-breadcrumb-text-transform","",k.textTransform,"inherit")},vr={fontFamily:o.extend("--ft-typography-overline-font-family","",ct),fontSize:o.extend("--ft-typography-overline-font-size","",k.fontSize,"10px"),fontWeight:o.extend("--ft-typography-overline-font-weight","",k.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-overline-letter-spacing","",k.letterSpacing,"1.5px"),lineHeight:o.extend("--ft-typography-overline-line-height","",k.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-overline-text-transform","",k.textTransform,"uppercase")},Ve={fontFamily:o.extend("--ft-typography-button-font-family","",ct),fontSize:o.extend("--ft-typography-button-font-size","",k.fontSize,"14px"),fontWeight:o.extend("--ft-typography-button-font-weight","",k.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-button-letter-spacing","",k.letterSpacing,"1.246px"),lineHeight:o.extend("--ft-typography-button-line-height","",k.lineHeight,"1.15"),textTransform:o.extend("--ft-typography-button-text-transform","",k.textTransform,"uppercase")},al=R`
|
|
367
242
|
.ft-typography--title {
|
|
368
|
-
font-family: ${
|
|
369
|
-
font-size: ${
|
|
370
|
-
font-weight: ${
|
|
371
|
-
letter-spacing: ${
|
|
372
|
-
line-height: ${
|
|
373
|
-
text-transform: ${
|
|
374
|
-
}
|
|
375
|
-
`,
|
|
243
|
+
font-family: ${dr.fontFamily};
|
|
244
|
+
font-size: ${dr.fontSize};
|
|
245
|
+
font-weight: ${dr.fontWeight};
|
|
246
|
+
letter-spacing: ${dr.letterSpacing};
|
|
247
|
+
line-height: ${dr.lineHeight};
|
|
248
|
+
text-transform: ${dr.textTransform};
|
|
249
|
+
}
|
|
250
|
+
`,sl=R`
|
|
376
251
|
.ft-typography--title-dense {
|
|
377
|
-
font-family: ${
|
|
378
|
-
font-size: ${
|
|
379
|
-
font-weight: ${
|
|
380
|
-
letter-spacing: ${
|
|
381
|
-
line-height: ${
|
|
382
|
-
text-transform: ${
|
|
383
|
-
}
|
|
384
|
-
`,
|
|
252
|
+
font-family: ${fr.fontFamily};
|
|
253
|
+
font-size: ${fr.fontSize};
|
|
254
|
+
font-weight: ${fr.fontWeight};
|
|
255
|
+
letter-spacing: ${fr.letterSpacing};
|
|
256
|
+
line-height: ${fr.lineHeight};
|
|
257
|
+
text-transform: ${fr.textTransform};
|
|
258
|
+
}
|
|
259
|
+
`,cl=R`
|
|
385
260
|
.ft-typography--subtitle1 {
|
|
386
|
-
font-family: ${
|
|
387
|
-
font-size: ${
|
|
388
|
-
font-weight: ${
|
|
389
|
-
letter-spacing: ${
|
|
390
|
-
line-height: ${
|
|
391
|
-
text-transform: ${
|
|
392
|
-
}
|
|
393
|
-
`,
|
|
261
|
+
font-family: ${hr.fontFamily};
|
|
262
|
+
font-size: ${hr.fontSize};
|
|
263
|
+
font-weight: ${hr.fontWeight};
|
|
264
|
+
letter-spacing: ${hr.letterSpacing};
|
|
265
|
+
line-height: ${hr.lineHeight};
|
|
266
|
+
text-transform: ${hr.textTransform};
|
|
267
|
+
}
|
|
268
|
+
`,ll=R`
|
|
394
269
|
.ft-typography--subtitle2 {
|
|
395
|
-
font-family: ${
|
|
396
|
-
font-size: ${
|
|
397
|
-
font-weight: ${
|
|
398
|
-
letter-spacing: ${
|
|
399
|
-
line-height: ${
|
|
400
|
-
text-transform: ${
|
|
270
|
+
font-family: ${mr.fontFamily};
|
|
271
|
+
font-size: ${mr.fontSize};
|
|
272
|
+
font-weight: ${mr.fontWeight};
|
|
273
|
+
letter-spacing: ${mr.letterSpacing};
|
|
274
|
+
line-height: ${mr.lineHeight};
|
|
275
|
+
text-transform: ${mr.textTransform};
|
|
401
276
|
}
|
|
402
277
|
|
|
403
|
-
`,
|
|
278
|
+
`,pl=R`
|
|
404
279
|
.ft-typography--body1 {
|
|
405
|
-
font-family: ${
|
|
406
|
-
font-size: ${
|
|
407
|
-
font-weight: ${
|
|
408
|
-
letter-spacing: ${
|
|
409
|
-
line-height: ${
|
|
410
|
-
text-transform: ${
|
|
411
|
-
}
|
|
412
|
-
`,
|
|
280
|
+
font-family: ${yr.fontFamily};
|
|
281
|
+
font-size: ${yr.fontSize};
|
|
282
|
+
font-weight: ${yr.fontWeight};
|
|
283
|
+
letter-spacing: ${yr.letterSpacing};
|
|
284
|
+
line-height: ${yr.lineHeight};
|
|
285
|
+
text-transform: ${yr.textTransform};
|
|
286
|
+
}
|
|
287
|
+
`,en=R`
|
|
413
288
|
.ft-typography--body2 {
|
|
414
|
-
font-family: ${
|
|
415
|
-
font-size: ${
|
|
416
|
-
font-weight: ${
|
|
417
|
-
letter-spacing: ${
|
|
418
|
-
line-height: ${
|
|
419
|
-
text-transform: ${
|
|
420
|
-
}
|
|
421
|
-
`,
|
|
289
|
+
font-family: ${gr.fontFamily};
|
|
290
|
+
font-size: ${gr.fontSize};
|
|
291
|
+
font-weight: ${gr.fontWeight};
|
|
292
|
+
letter-spacing: ${gr.letterSpacing};
|
|
293
|
+
line-height: ${gr.lineHeight};
|
|
294
|
+
text-transform: ${gr.textTransform};
|
|
295
|
+
}
|
|
296
|
+
`,ul=R`
|
|
422
297
|
.ft-typography--caption {
|
|
423
|
-
font-family: ${
|
|
424
|
-
font-size: ${
|
|
425
|
-
font-weight: ${
|
|
426
|
-
letter-spacing: ${
|
|
427
|
-
line-height: ${
|
|
428
|
-
text-transform: ${
|
|
429
|
-
}
|
|
430
|
-
`,
|
|
298
|
+
font-family: ${br.fontFamily};
|
|
299
|
+
font-size: ${br.fontSize};
|
|
300
|
+
font-weight: ${br.fontWeight};
|
|
301
|
+
letter-spacing: ${br.letterSpacing};
|
|
302
|
+
line-height: ${br.lineHeight};
|
|
303
|
+
text-transform: ${br.textTransform};
|
|
304
|
+
}
|
|
305
|
+
`,dl=R`
|
|
431
306
|
.ft-typography--breadcrumb {
|
|
432
|
-
font-family: ${
|
|
433
|
-
font-size: ${
|
|
434
|
-
font-weight: ${
|
|
435
|
-
letter-spacing: ${
|
|
436
|
-
line-height: ${
|
|
437
|
-
text-transform: ${
|
|
438
|
-
}
|
|
439
|
-
`,
|
|
307
|
+
font-family: ${xr.fontFamily};
|
|
308
|
+
font-size: ${xr.fontSize};
|
|
309
|
+
font-weight: ${xr.fontWeight};
|
|
310
|
+
letter-spacing: ${xr.letterSpacing};
|
|
311
|
+
line-height: ${xr.lineHeight};
|
|
312
|
+
text-transform: ${xr.textTransform};
|
|
313
|
+
}
|
|
314
|
+
`,fl=R`
|
|
440
315
|
.ft-typography--overline {
|
|
441
|
-
font-family: ${
|
|
442
|
-
font-size: ${
|
|
443
|
-
font-weight: ${
|
|
444
|
-
letter-spacing: ${
|
|
445
|
-
line-height: ${
|
|
446
|
-
text-transform: ${
|
|
447
|
-
}
|
|
448
|
-
`,
|
|
316
|
+
font-family: ${vr.fontFamily};
|
|
317
|
+
font-size: ${vr.fontSize};
|
|
318
|
+
font-weight: ${vr.fontWeight};
|
|
319
|
+
letter-spacing: ${vr.letterSpacing};
|
|
320
|
+
line-height: ${vr.lineHeight};
|
|
321
|
+
text-transform: ${vr.textTransform};
|
|
322
|
+
}
|
|
323
|
+
`,hl=R`
|
|
449
324
|
.ft-typography--button {
|
|
450
|
-
font-family: ${
|
|
451
|
-
font-size: ${
|
|
452
|
-
font-weight: ${
|
|
453
|
-
letter-spacing: ${
|
|
454
|
-
line-height: ${
|
|
455
|
-
text-transform: ${
|
|
456
|
-
}
|
|
457
|
-
`,
|
|
325
|
+
font-family: ${Ve.fontFamily};
|
|
326
|
+
font-size: ${Ve.fontSize};
|
|
327
|
+
font-weight: ${Ve.fontWeight};
|
|
328
|
+
letter-spacing: ${Ve.letterSpacing};
|
|
329
|
+
line-height: ${Ve.lineHeight};
|
|
330
|
+
text-transform: ${Ve.textTransform};
|
|
331
|
+
}
|
|
332
|
+
`,ml=R`
|
|
458
333
|
.ft-typography {
|
|
459
334
|
vertical-align: inherit;
|
|
460
335
|
}
|
|
461
|
-
`,
|
|
462
|
-
.ft-typography--${ht(t)} {
|
|
463
|
-
font-family: ${e.fontFamily};
|
|
464
|
-
font-size: ${e.fontSize};
|
|
465
|
-
font-weight: ${e.fontWeight};
|
|
466
|
-
letter-spacing: ${e.letterSpacing};
|
|
467
|
-
line-height: ${e.lineHeight};
|
|
468
|
-
text-transform: ${e.textCase};
|
|
469
|
-
}
|
|
470
|
-
`}(t)))],jl={color:xo.extend("--ft-loader-color","",wr.colorPrimary),size:xo.create("--ft-loader-size","","SIZE","80px")},Ml=ut`
|
|
336
|
+
`,yl=[Object.keys(Kr).map(t=>nl(t))];var ve={color:o.extend("--ft-loader-color","",I.colorPrimary),size:o.create("--ft-loader-size","","SIZE","80px")},gl=R`
|
|
471
337
|
:host {
|
|
472
338
|
line-height: 0;
|
|
473
339
|
}
|
|
@@ -476,8 +342,8 @@ function(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=${r}
|
|
|
476
342
|
display: inline-block;
|
|
477
343
|
position: relative;
|
|
478
344
|
|
|
479
|
-
width: ${
|
|
480
|
-
height: ${
|
|
345
|
+
width: ${ve.size};
|
|
346
|
+
height: ${ve.size};
|
|
481
347
|
}
|
|
482
348
|
|
|
483
349
|
.ft-loader div {
|
|
@@ -486,7 +352,7 @@ function(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=${r}
|
|
|
486
352
|
width: 25%;
|
|
487
353
|
height: 25%;
|
|
488
354
|
border-radius: 50%;
|
|
489
|
-
background: ${
|
|
355
|
+
background: ${ve.color};
|
|
490
356
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
491
357
|
}
|
|
492
358
|
|
|
@@ -533,10 +399,10 @@ function(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=${r}
|
|
|
533
399
|
transform: translate(0, 0);
|
|
534
400
|
}
|
|
535
401
|
100% {
|
|
536
|
-
transform: translate(calc(0.35 * ${
|
|
402
|
+
transform: translate(calc(0.35 * ${ve.size}), 0);
|
|
537
403
|
}
|
|
538
404
|
}
|
|
539
|
-
|
|
405
|
+
`;var Se={size:o.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:o.extend("--ft-icon-fluid-topics-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:o.extend("--ft-icon-file-format-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:o.extend("--ft-icon-material-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:o.create("--ft-icon-vertical-align","","UNKNOWN","unset")},bl=R`
|
|
540
406
|
:host, i.ft-icon {
|
|
541
407
|
display: inline-flex;
|
|
542
408
|
align-items: center;
|
|
@@ -545,14 +411,14 @@ function(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=${r}
|
|
|
545
411
|
}
|
|
546
412
|
|
|
547
413
|
:host {
|
|
548
|
-
width: ${
|
|
549
|
-
height: ${
|
|
414
|
+
width: ${Se.size};
|
|
415
|
+
height: ${Se.size};
|
|
550
416
|
}
|
|
551
417
|
|
|
552
418
|
i.ft-icon {
|
|
553
419
|
width: 100%;
|
|
554
420
|
height: 100%;
|
|
555
|
-
font-size: ${
|
|
421
|
+
font-size: ${Se.size};
|
|
556
422
|
line-height: 1;
|
|
557
423
|
font-weight: normal;
|
|
558
424
|
text-transform: none;
|
|
@@ -563,28 +429,28 @@ function(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=${r}
|
|
|
563
429
|
text-rendering: auto;
|
|
564
430
|
-webkit-font-smoothing: antialiased;
|
|
565
431
|
-moz-osx-font-smoothing: grayscale;
|
|
566
|
-
vertical-align: ${
|
|
432
|
+
vertical-align: ${Se.verticalAlign};
|
|
567
433
|
}
|
|
568
434
|
|
|
569
435
|
i.ft-icon.ft-icon--fluid-topics {
|
|
570
|
-
font-family: ${
|
|
436
|
+
font-family: ${Se.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
571
437
|
|
|
572
438
|
/* Ugly fix because font is broken */
|
|
573
|
-
font-size: calc(0.75 * ${
|
|
574
|
-
line-height: ${
|
|
439
|
+
font-size: calc(0.75 * ${Se.size});
|
|
440
|
+
line-height: ${Se.size};
|
|
575
441
|
position: relative;
|
|
576
442
|
top: -4%;
|
|
577
443
|
justify-content: center;
|
|
578
444
|
}
|
|
579
445
|
|
|
580
446
|
.ft-icon--file-format {
|
|
581
|
-
font-family: ${
|
|
447
|
+
font-family: ${Se.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
582
448
|
}
|
|
583
449
|
|
|
584
450
|
.ft-icon--material {
|
|
585
|
-
font-family: ${
|
|
451
|
+
font-family: ${Se.materialFontFamily}, "Material Icons", sans-serif;
|
|
586
452
|
}
|
|
587
|
-
|
|
453
|
+
`;var xl=o.extend("--ft-button-color","",I.colorPrimary),te={backgroundColor:o.extend("--ft-button-background-color","",I.colorSurface),borderRadius:o.extend("--ft-button-border-radius","",I.borderRadiusL),color:xl,fontSize:o.extend("--ft-button-font-size","",Ve.fontSize),iconSize:o.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:o.extend("--ft-button-ripple-color","",xl),verticalPadding:o.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:o.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:o.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:o.external(I.colorOpacityDisabled,"Design system")},vl=o.extend("--ft-button-primary-color","",o.extend("--ft-button-color","",I.colorOnPrimary)),Aa={backgroundColor:o.extend("--ft-button-primary-background-color","",o.extend("--ft-button-background-color","",I.colorPrimary)),color:vl,rippleColor:o.extend("--ft-button-primary-ripple-color","",vl)},Ke={borderRadius:o.extend("--ft-button-dense-border-radius","",o.extend("--ft-button-border-radius","",I.borderRadiusM)),verticalPadding:o.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:o.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:o.create("--ft-button-dense-icon-padding","","SIZE","4px")},Sl=[R`
|
|
588
454
|
:host {
|
|
589
455
|
display: inline-block;
|
|
590
456
|
max-width: 100%;
|
|
@@ -595,7 +461,7 @@ function(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=${r}
|
|
|
595
461
|
box-shadow: 0px 0px 0px transparent;
|
|
596
462
|
border: 0px solid transparent;
|
|
597
463
|
text-shadow: 0px 0px 0px transparent;
|
|
598
|
-
font-size: ${
|
|
464
|
+
font-size: ${te.fontSize};
|
|
599
465
|
}
|
|
600
466
|
|
|
601
467
|
button:hover {
|
|
@@ -624,31 +490,31 @@ function(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=${r}
|
|
|
624
490
|
border: none;
|
|
625
491
|
pointer-events: auto;
|
|
626
492
|
|
|
627
|
-
--ft-button-internal-line-height: max(calc(${
|
|
628
|
-
--ft-button-internal-color: ${
|
|
629
|
-
${
|
|
630
|
-
${
|
|
493
|
+
--ft-button-internal-line-height: max(calc(${te.fontSize} + 2px), ${te.iconSize});
|
|
494
|
+
--ft-button-internal-color: ${te.color};
|
|
495
|
+
${T(Se.size,te.iconSize)};
|
|
496
|
+
${T(W.color,te.rippleColor)};
|
|
631
497
|
|
|
632
|
-
border-radius: ${
|
|
633
|
-
padding: ${
|
|
634
|
-
background-color: ${
|
|
498
|
+
border-radius: ${te.borderRadius};
|
|
499
|
+
padding: ${te.verticalPadding} ${te.horizontalPadding};
|
|
500
|
+
background-color: ${te.backgroundColor};
|
|
635
501
|
color: var(--ft-button-internal-color);
|
|
636
502
|
-webkit-mask-image: radial-gradient(white, black);
|
|
637
503
|
}
|
|
638
504
|
|
|
639
505
|
.ft-button.ft-button--outlined {
|
|
640
506
|
border: 1px solid var(--ft-button-internal-color);
|
|
641
|
-
padding: calc(${
|
|
507
|
+
padding: calc(${te.verticalPadding} - 1px) calc(${te.horizontalPadding} - 1px);
|
|
642
508
|
}
|
|
643
509
|
|
|
644
510
|
.ft-button.ft-button--dense {
|
|
645
|
-
padding: ${
|
|
646
|
-
border-radius: ${
|
|
647
|
-
gap: ${
|
|
511
|
+
padding: ${Ke.verticalPadding} ${Ke.horizontalPadding};
|
|
512
|
+
border-radius: ${Ke.borderRadius};
|
|
513
|
+
gap: ${Ke.iconPadding};
|
|
648
514
|
}
|
|
649
515
|
|
|
650
516
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
651
|
-
padding: calc(${
|
|
517
|
+
padding: calc(${Ke.verticalPadding} - 1px) calc(${Ke.horizontalPadding} - 1px);
|
|
652
518
|
}
|
|
653
519
|
|
|
654
520
|
.ft-button:not([disabled]):hover {
|
|
@@ -656,22 +522,22 @@ function(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=${r}
|
|
|
656
522
|
}
|
|
657
523
|
|
|
658
524
|
.ft-button--round {
|
|
659
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
525
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${te.verticalPadding});
|
|
660
526
|
}
|
|
661
527
|
|
|
662
528
|
.ft-button--round.ft-button--dense {
|
|
663
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
529
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Ke.verticalPadding});
|
|
664
530
|
}
|
|
665
531
|
|
|
666
532
|
.ft-button[disabled] {
|
|
667
533
|
filter: grayscale(1);
|
|
668
|
-
opacity: ${
|
|
534
|
+
opacity: ${te.opacityDisabled};
|
|
669
535
|
}
|
|
670
536
|
|
|
671
537
|
.ft-button.ft-button--primary {
|
|
672
|
-
background-color: ${
|
|
673
|
-
--ft-button-internal-color: ${
|
|
674
|
-
${
|
|
538
|
+
background-color: ${Aa.backgroundColor};
|
|
539
|
+
--ft-button-internal-color: ${Aa.color};
|
|
540
|
+
${T(W.color,Aa.rippleColor)};
|
|
675
541
|
}
|
|
676
542
|
|
|
677
543
|
.ft-button:focus {
|
|
@@ -684,68 +550,62 @@ function(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=${r}
|
|
|
684
550
|
white-space: nowrap;
|
|
685
551
|
text-overflow: ellipsis;
|
|
686
552
|
display: block;
|
|
687
|
-
margin: 0 ${
|
|
688
|
-
${
|
|
689
|
-
${
|
|
553
|
+
margin: 0 ${te.iconPadding};
|
|
554
|
+
${T(Ve.fontSize,"1em")};
|
|
555
|
+
${T(Ve.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
690
556
|
}
|
|
691
557
|
|
|
692
558
|
.ft-button--dense .ft-button--label {
|
|
693
|
-
margin: 0 ${
|
|
559
|
+
margin: 0 ${Ke.iconPadding};
|
|
694
560
|
}
|
|
695
561
|
|
|
696
562
|
.ft-button--label[hidden] {
|
|
697
563
|
display: none;
|
|
698
564
|
}
|
|
699
565
|
|
|
700
|
-
|
|
566
|
+
[part="icon"] {
|
|
701
567
|
flex-shrink: 0;
|
|
702
568
|
position: relative;
|
|
703
569
|
}
|
|
704
570
|
|
|
705
|
-
.ft-button--label[hidden] +
|
|
706
|
-
margin: 0 calc(${
|
|
707
|
-
padding: 0 ${
|
|
571
|
+
.ft-button--label[hidden] + [part="icon"] {
|
|
572
|
+
margin: 0 calc(${te.horizontalPadding} * -1);
|
|
573
|
+
padding: 0 ${te.verticalPadding};
|
|
708
574
|
}
|
|
709
575
|
|
|
710
|
-
.ft-button--dense .ft-button--label[hidden] +
|
|
711
|
-
margin: 0 calc(${
|
|
712
|
-
padding: 0 ${
|
|
576
|
+
.ft-button--dense .ft-button--label[hidden] + [part="icon"] {
|
|
577
|
+
margin: 0 calc(${Ke.horizontalPadding} * -1);
|
|
578
|
+
padding: 0 ${Ke.verticalPadding};
|
|
713
579
|
}
|
|
714
580
|
|
|
715
|
-
.ft-button:not(.ft-button--trailing-icon)
|
|
716
|
-
|
|
717
|
-
order: -1;
|
|
581
|
+
.ft-button:not(.ft-button--trailing-icon) [part="label"]{
|
|
582
|
+
order: 2;
|
|
718
583
|
}
|
|
719
584
|
|
|
720
585
|
ft-loader {
|
|
721
|
-
${
|
|
722
|
-
${
|
|
586
|
+
${T(ve.size,te.iconSize)};
|
|
587
|
+
${T(ve.color,"var(--ft-button-internal-color)")};
|
|
723
588
|
}
|
|
724
|
-
`,
|
|
589
|
+
`,eo];var Oe=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Z=class extends K{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 pe(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new pe(10),this.moveRipple=e=>{var r,n;let{x:i,y:a}=this.getCoordinates(e),s=(n=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&n!==void 0?n:{x:0,y:0,width:0,height:0};this.originX=Math.round(i!=null?i-s.x:s.width/2),this.originY=Math.round(a!=null?a-s.y:s.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"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 L`
|
|
725
590
|
<style>
|
|
726
591
|
.ft-ripple .ft-ripple--effect {
|
|
727
592
|
left: ${this.originX}px;
|
|
728
593
|
top: ${this.originY}px;
|
|
729
594
|
}
|
|
730
595
|
</style>
|
|
731
|
-
<div class="${
|
|
596
|
+
<div class="${tt(e)}">
|
|
732
597
|
<div class="ft-ripple--background"></div>
|
|
733
598
|
<div class="ft-ripple--effect"></div>
|
|
734
599
|
</div>
|
|
735
|
-
`}contentAvailableCallback(
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
* Copyright 2020 Google LLC
|
|
739
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
740
|
-
*/
|
|
741
|
-
const ec=Symbol.for(""),oc=t=>{if(t?.r===ec)return t?._$litStatic$},rc=t=>({_$litStatic$:t,r:ec}),ic=new Map,nc=(t=>(e,...o)=>{const r=o.length;let i,n;const a=[],s=[];let l,c=0,f=!1;for(;c<r;){for(l=e[c];c<r&&void 0!==(n=o[c],i=oc(n));)l+=i+e[++c],f=!0;c!==r&&s.push(n),a.push(l),c++}if(c===r&&a.push(e[r]),f){const t=a.join("$$lit$$");void 0===(e=ic.get(t))&&(a.raw=a,ic.set(t,e=a)),o=s}return t(e,...o)})(D);var ac;!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"}(ac||(ac={}));var sc=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 lc extends ji{constructor(){super(...arguments),this.variant=ac.body1}render(){return this.element?nc`
|
|
742
|
-
<${rc(this.element)}
|
|
600
|
+
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,n;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.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 e,r;let n=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;n&&this.setupFor((r=this.target)!==null&&r!==void 0?r:n)}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...c)=>l=>{c.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(l)},n=r("mouseup","contextmenu"),i=r("touchend","touchcancel"),a=c=>{["Enter"," "].includes(c.key)&&r("keyup")(c)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",n,s),e.addEventListener("touchstart",i,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",n,s),e.removeEventListener("touchstart",i,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,n=e,i,a;return r.x!=null?{x:i,y:a}=r:n.touches!=null&&(i=n.touches[0].clientX,a=n.touches[0].clientY),{x:i,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};Z.elementDefinitions={};Z.styles=rl;Oe([O({type:Boolean})],Z.prototype,"primary",void 0);Oe([O({type:Boolean})],Z.prototype,"secondary",void 0);Oe([O({type:Boolean})],Z.prototype,"unbounded",void 0);Oe([O({type:Boolean})],Z.prototype,"activated",void 0);Oe([O({type:Boolean})],Z.prototype,"selected",void 0);Oe([O({type:Boolean})],Z.prototype,"disabled",void 0);Oe([ie()],Z.prototype,"hovered",void 0);Oe([ie()],Z.prototype,"focused",void 0);Oe([ie()],Z.prototype,"pressed",void 0);Oe([ie()],Z.prototype,"rippling",void 0);Oe([ie()],Z.prototype,"originX",void 0);Oe([ie()],Z.prototype,"originY",void 0);Oe([se(".ft-ripple")],Z.prototype,"ripple",void 0);Oe([se(".ft-ripple--effect")],Z.prototype,"rippleEffect",void 0);B("ft-ripple")(Z);var Cl=Symbol.for(""),zd=t=>{if(t?.r===Cl)return t?._$litStatic$},Ra=t=>({_$litStatic$:t,r:Cl});var Ol=new Map,El=t=>(e,...r)=>{let n=r.length,i,a,s=[],c=[],l,u=0,d=!1;for(;u<n;){for(l=e[u];u<n&&(a=r[u],(i=zd(a))!==void 0);)l+=i+e[++u],d=!0;u!==n&&c.push(a),s.push(l),u++}if(u===n&&s.push(e[n]),d){let h=s.join("$$lit$$");(e=Ol.get(h))===void 0&&(s.raw=s,Ol.set(h,e=s)),r=c}return t(e,...r)},Na=El(ds),O0=El(fs);var Kt;(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"})(Kt||(Kt={}));var wl=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Q=class extends K{constructor(){super(...arguments),this.variant=Kt.body1}render(){return this.element?Na`
|
|
601
|
+
<${Ra(this.element)}
|
|
602
|
+
part="text"
|
|
743
603
|
class="ft-typography ft-typography--${this.variant}">
|
|
744
604
|
<slot></slot>
|
|
745
|
-
</${
|
|
746
|
-
`:
|
|
747
|
-
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
748
|
-
`}}
|
|
605
|
+
</${Ra(this.element)}>
|
|
606
|
+
`:Na`
|
|
607
|
+
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
608
|
+
`}};Q.styles=[al,sl,cl,ll,pl,en,ul,dl,fl,hl,ml,...yl];wl([O()],Q.prototype,"element",void 0);wl([O()],Q.prototype,"variant",void 0);B("ft-typography")(Q);var Et={distance:o.create("--ft-tooltip-distance","","SIZE","4px"),color:o.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:o.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:o.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:o.external(I.borderRadiusS,"Design system"),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","150px")},Al=R`
|
|
749
609
|
.ft-tooltip--container {
|
|
750
610
|
display: block;
|
|
751
611
|
}
|
|
@@ -760,21 +620,21 @@ const ec=Symbol.for(""),oc=t=>{if(t?.r===ec)return t?._$litStatic$},rc=t=>({_$li
|
|
|
760
620
|
box-sizing: border-box;
|
|
761
621
|
overflow: hidden;
|
|
762
622
|
width: max-content;
|
|
763
|
-
max-width: ${
|
|
623
|
+
max-width: ${Et.maxWidth};
|
|
764
624
|
text-align: center;
|
|
765
|
-
padding: ${
|
|
766
|
-
z-index: ${
|
|
625
|
+
padding: ${Et.distance};
|
|
626
|
+
z-index: ${Et.zIndex};
|
|
767
627
|
}
|
|
768
628
|
|
|
769
629
|
.ft-tooltip--content {
|
|
770
630
|
padding: 4px 8px;
|
|
771
|
-
border-radius: ${
|
|
772
|
-
background-color: ${
|
|
773
|
-
color: ${
|
|
631
|
+
border-radius: ${Et.borderRadiusS};
|
|
632
|
+
background-color: ${Et.backgroundColor};
|
|
633
|
+
color: ${Et.color};
|
|
774
634
|
position: relative;
|
|
775
635
|
word-break: break-word;
|
|
776
636
|
}
|
|
777
|
-
`;var
|
|
637
|
+
`;var Ce=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},re=class extends K{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 pe,this.revealDebouncer=new pe}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return L`
|
|
778
638
|
<div part="container"
|
|
779
639
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
780
640
|
@mouseenter=${this.onHover}
|
|
@@ -792,42 +652,45 @@ const ec=Symbol.for(""),oc=t=>{if(t?.r===ec)return t?._$litStatic$},rc=t=>({_$li
|
|
|
792
652
|
</div>
|
|
793
653
|
</div>
|
|
794
654
|
</div>
|
|
795
|
-
`}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(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Ii(this.slottedElement,this.tooltip,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))}}pc.elementDefinitions={"ft-typography":lc},pc.styles=fc,dc([Se()],pc.prototype,"text",void 0),dc([Se({type:Boolean})],pc.prototype,"manual",void 0),dc([Se({type:Boolean})],pc.prototype,"inline",void 0),dc([Se({type:Number})],pc.prototype,"delay",void 0),dc([Se()],pc.prototype,"position",void 0),dc([Ie()],pc.prototype,"slotNodes",void 0),dc([Re(".ft-tooltip--container")],pc.prototype,"container",void 0),dc([Re(".ft-tooltip")],pc.prototype,"tooltip",void 0),dc([Re(".ft-tooltip--content")],pc.prototype,"tooltipContent",void 0),dc([Ce()],pc.prototype,"visible",void 0),dc([Ne({passive:!0})],pc.prototype,"onTouch",null),dc([Ne({passive:!0})],pc.prototype,"onHover",null),dc([Ne({passive:!0})],pc.prototype,"onOut",null),dc([Ne({passive:!0})],pc.prototype,"onClick",null),go("ft-tooltip")(pc),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.CHART_BAR_NORMALIZED="",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="",t.OCTAGON_XMARK="",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.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="",t.CLONE_LINK_SIMPLE="",t.CONSUMER="",t.HOURGLASS_HALF="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE=""}(hc||(hc={})),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=""}(uc||(uc={}));const gc=new Map([...["abw"].map((t=>[t,uc.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,uc.AUDIO])),...["avi"].map((t=>[t,uc.AVI])),...["chm","xhs"].map((t=>[t,uc.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,uc.CODE])),...["csv"].map((t=>[t,uc.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,uc.DITA])),...["epub"].map((t=>[t,uc.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,uc.EXCEL])),...["flac"].map((t=>[t,uc.FLAC])),...["gif"].map((t=>[t,uc.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,uc.GZIP])),...["html","htm","xhtml"].map((t=>[t,uc.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map((t=>[t,uc.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,uc.JPEG])),...["json"].map((t=>[t,uc.JSON])),...["m4a","m4p"].map((t=>[t,uc.M4A])),...["mov","qt"].map((t=>[t,uc.MOV])),...["mp3"].map((t=>[t,uc.MP3])),...["mp4","m4v"].map((t=>[t,uc.MP4])),...["ogg","oga"].map((t=>[t,uc.OGG])),...["pdf","ps"].map((t=>[t,uc.PDF])),...["png"].map((t=>[t,uc.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,uc.POWERPOINT])),...["rar"].map((t=>[t,uc.RAR])),...["stp"].map((t=>[t,uc.STP])),...["txt","rtf","md","mdown"].map((t=>[t,uc.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,uc.VIDEO])),...["wav"].map((t=>[t,uc.WAV])),...["wma"].map((t=>[t,uc.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,uc.WORD])),...["xml","xsl","rdf"].map((t=>[t,uc.XML])),...["yaml","yml","x-yaml"].map((t=>[t,uc.YAML])),...["zip"].map((t=>[t,uc.ZIP]))]),yc=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);var bc;uc.ABW,uc.AUDIO,uc.AVI,uc.CHM,uc.CODE,uc.CSV,uc.DITA,uc.EPUB,uc.EXCEL,uc.FLAC,uc.GIF,uc.GZIP,uc.HTML,uc.IMAGE,uc.JPEG,uc.JSON,uc.M4A,uc.MOV,uc.MP3,uc.MP4,uc.OGG,uc.PDF,uc.PNG,uc.POWERPOINT,uc.RAR,uc.STP,uc.TEXT,uc.UNKNOWN,uc.VIDEO,uc.WAV,uc.WMA,uc.WORD,uc.XML,uc.YAML,uc.ZIP,function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(bc||(bc={}));var mc=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 vc extends ji{constructor(){super(...arguments),this.resolvedIcon=te}render(){const t=this.variant&&Object.values(bc).includes(this.variant)?this.variant:bc.fluid_topics,e=t!==bc.material||!!this.value;return Jt`
|
|
796
|
-
<i class="ft-icon ft-icon--${
|
|
797
|
-
${
|
|
798
|
-
<slot ?hidden=${
|
|
655
|
+
`}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Li(this.slottedElement,this.tooltip,this.position).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${r}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",e=>{e.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(e,r){return Math.max(e,Math.min(0,-r))}};re.elementDefinitions={"ft-typography":Q};re.styles=Al;Ce([O()],re.prototype,"text",void 0);Ce([O({type:Boolean})],re.prototype,"manual",void 0);Ce([O({type:Boolean})],re.prototype,"inline",void 0);Ce([O({type:Number})],re.prototype,"delay",void 0);Ce([O()],re.prototype,"position",void 0);Ce([Ln()],re.prototype,"slotNodes",void 0);Ce([se(".ft-tooltip--container")],re.prototype,"container",void 0);Ce([se(".ft-tooltip")],re.prototype,"tooltip",void 0);Ce([se(".ft-tooltip--content")],re.prototype,"tooltipContent",void 0);Ce([ie()],re.prototype,"visible",void 0);Ce([Qt({passive:!0})],re.prototype,"onTouch",null);Ce([Qt({passive:!0})],re.prototype,"onHover",null);Ce([Qt({passive:!0})],re.prototype,"onOut",null);Ce([Qt({passive:!0})],re.prototype,"onClick",null);B("ft-tooltip")(re);var wt;(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.CHART_BAR_NORMALIZED="",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="",t.OCTAGON_XMARK="",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.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="",t.CLONE_LINK_SIMPLE="",t.CONSUMER="",t.HOURGLASS_HALF="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE=""})(wt||(wt={}));var w;(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=""})(w||(w={}));var _a=new Map([...["abw"].map(t=>[t,w.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,w.AUDIO]),...["avi"].map(t=>[t,w.AVI]),...["chm","xhs"].map(t=>[t,w.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,w.CODE]),...["csv"].map(t=>[t,w.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,w.DITA]),...["epub"].map(t=>[t,w.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,w.EXCEL]),...["flac"].map(t=>[t,w.FLAC]),...["gif"].map(t=>[t,w.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,w.GZIP]),...["html","htm","xhtml"].map(t=>[t,w.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,w.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,w.JPEG]),...["json"].map(t=>[t,w.JSON]),...["m4a","m4p"].map(t=>[t,w.M4A]),...["mov","qt"].map(t=>[t,w.MOV]),...["mp3"].map(t=>[t,w.MP3]),...["mp4","m4v"].map(t=>[t,w.MP4]),...["ogg","oga"].map(t=>[t,w.OGG]),...["pdf","ps"].map(t=>[t,w.PDF]),...["png"].map(t=>[t,w.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,w.POWERPOINT]),...["rar"].map(t=>[t,w.RAR]),...["stp"].map(t=>[t,w.STP]),...["txt","rtf","md","mdown"].map(t=>[t,w.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,w.VIDEO]),...["wav"].map(t=>[t,w.WAV]),...["wma"].map(t=>[t,w.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,w.WORD]),...["xml","xsl","rdf"].map(t=>[t,w.XML]),...["yaml","yml","x-yaml"].map(t=>[t,w.YAML]),...["zip"].map(t=>[t,w.ZIP])]),jd=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);function Rl(t,e){var r,n,i,a;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[s,c]=(((r=jd.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(a=(i=(n=_a.get(c))!==null&&n!==void 0?n:_a.get(e))!==null&&i!==void 0?i:_a.get(s))!==null&&a!==void 0?a:w.UNKNOWN}var tv={[w.ABW]:"#91ABC6",[w.AUDIO]:"#1795E3",[w.AVI]:"#E63324",[w.CHM]:"#71C3EB",[w.CODE]:"#71C3EB",[w.CSV]:"#1F7345",[w.DITA]:"#71C3EB",[w.EPUB]:"#85B926",[w.EXCEL]:"#1F7345",[w.FLAC]:"#1795E3",[w.GIF]:"#59B031",[w.GZIP]:"#F8AB36",[w.HTML]:"#71C3EB",[w.IMAGE]:"#59B031",[w.JPEG]:"#59B031",[w.JSON]:"#71C3EB",[w.M4A]:"#1795E3",[w.MOV]:"#E63324",[w.MP3]:"#1795E3",[w.MP4]:"#E63324",[w.OGG]:"#1795E3",[w.PDF]:"#E44948",[w.PNG]:"#59B031",[w.POWERPOINT]:"#B54A2B",[w.RAR]:"#F8AB36",[w.STP]:"#3764B1",[w.TEXT]:"#3162AB",[w.UNKNOWN]:"#999999",[w.VIDEO]:"#E63324",[w.WAV]:"#1795E3",[w.WMA]:"#1795E3",[w.WORD]:"#3162AB",[w.XML]:"#71C3EB",[w.YAML]:"#71C3EB",[w.ZIP]:"#F8AB36"};var Ue;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ue||(Ue={}));var tn=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Ee=class extends K{constructor(){super(...arguments),this.resolvedIcon=U}render(){let e=this.variant&&Object.values(Ue).includes(this.variant)?this.variant:Ue.fluid_topics,r=e!==Ue.material||!!this.value;return L`
|
|
656
|
+
<i class="ft-icon ft-icon--${e}" part="icon icon-${e}">
|
|
657
|
+
${Bt(this.resolvedIcon)}
|
|
658
|
+
<slot ?hidden=${r}></slot>
|
|
799
659
|
</i>
|
|
800
|
-
`}get textContent(){var
|
|
660
|
+
`}get textContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let n=this.value||this.textContent;switch(this.variant){case Ue.file_format:this.resolvedIcon=(e=w[n.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:n;break;case Ue.material:this.resolvedIcon=this.value||U;break;default:this.resolvedIcon=(r=wt[n.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:n;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};Ee.elementDefinitions={};Ee.styles=bl;tn([O()],Ee.prototype,"variant",void 0);tn([O()],Ee.prototype,"value",void 0);tn([ie()],Ee.prototype,"resolvedIcon",void 0);tn([se("slot")],Ee.prototype,"slottedContent",void 0);B("ft-icon")(Ee);var Gt=class extends K{render(){return L`
|
|
801
661
|
<div class="ft-loader">
|
|
802
662
|
<div></div>
|
|
803
663
|
<div></div>
|
|
804
664
|
<div></div>
|
|
805
665
|
<div></div>
|
|
806
666
|
</div>
|
|
807
|
-
`}}
|
|
667
|
+
`}};Gt.styles=gl;B("ft-loader")(Gt);var Pe=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},ae=class extends xa(K,"button"){constructor(){super(),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.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){return this.addTooltipIfNeeded(L`
|
|
808
668
|
<button part="button"
|
|
809
|
-
class="${
|
|
669
|
+
class="${tt(this.buttonClasses)}"
|
|
810
670
|
aria-label="${this.getLabel()}"
|
|
811
671
|
?disabled=${this.isDisabled()}>
|
|
812
672
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
813
673
|
<ft-typography part="label"
|
|
814
674
|
variant=${this.typographyVariant}
|
|
815
675
|
element="span"
|
|
816
|
-
class="ft-button--label ${
|
|
676
|
+
class="ft-button--label ${wa?"ft-safari-ellipsis-fix":""}"
|
|
817
677
|
?hidden=${!this.hasTextContent()}>
|
|
818
678
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
819
679
|
</ft-typography>
|
|
820
680
|
${this.resolveIcon()}
|
|
821
681
|
</button>
|
|
822
|
-
`)}addTooltipIfNeeded(
|
|
682
|
+
`)}addTooltipIfNeeded(e){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?L`
|
|
823
683
|
<ft-tooltip part="tooltip"
|
|
824
684
|
text="${this.getLabel()}"
|
|
825
685
|
position="${this.tooltipPosition}">
|
|
826
|
-
${
|
|
686
|
+
${e}
|
|
827
687
|
</ft-tooltip>
|
|
828
|
-
`:
|
|
829
|
-
<ft-loader part="loader icon"></ft-loader> `:this.icon?
|
|
830
|
-
|
|
688
|
+
`:e}resolveIcon(){return this.loading?L`
|
|
689
|
+
<ft-loader part="loader icon"></ft-loader> `:this.icon?L`
|
|
690
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
691
|
+
`:L`
|
|
692
|
+
<slot part="icon" name="icon"></slot>
|
|
693
|
+
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(e){return e instanceof HTMLSlotElement?e.assignedNodes().map(r=>this.unslotText(r)).join(""):e?.textContent||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};ae.elementDefinitions={"ft-ripple":Z,"ft-tooltip":re,"ft-typography":Q,"ft-icon":Ee,"ft-loader":Gt};Pe([O({type:String,reflect:!0})],ae.prototype,"role",void 0);Pe([O()],ae.prototype,"type",void 0);Pe([O({type:Boolean})],ae.prototype,"disabled",void 0);Pe([O()],ae.prototype,"label",void 0);Pe([O()],ae.prototype,"icon",void 0);Pe([O()],ae.prototype,"iconVariant",void 0);Pe([O({type:Boolean})],ae.prototype,"trailingIcon",void 0);Pe([O({type:Boolean})],ae.prototype,"loading",void 0);Pe([O()],ae.prototype,"tooltipPosition",void 0);Pe([O({type:Boolean})],ae.prototype,"hideTooltip",void 0);Pe([O({type:Boolean})],ae.prototype,"forceTooltip",void 0);Pe([se(".ft-button")],ae.prototype,"button",void 0);Pe([se(".ft-button--label slot")],ae.prototype,"slottedContent",void 0);var rn=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},he=class extends ae{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"}};he.styles=[to,Sl];rn([O({type:Boolean})],he.prototype,"primary",void 0);rn([O({type:Boolean})],he.prototype,"outlined",void 0);rn([O({type:Boolean})],he.prototype,"dense",void 0);rn([O({type:Boolean})],he.prototype,"round",void 0);var Nl=[R`
|
|
831
694
|
:host {
|
|
832
695
|
display: inline-block;
|
|
833
696
|
max-width: 100%;
|
|
@@ -877,7 +740,7 @@ const ec=Symbol.for(""),oc=t=>{if(t?.r===ec)return t?._$litStatic$},rc=t=>({_$li
|
|
|
877
740
|
}
|
|
878
741
|
|
|
879
742
|
.ft-button:focus-visible {
|
|
880
|
-
outline-color: ${
|
|
743
|
+
outline-color: ${P.focusFocusRingColor};
|
|
881
744
|
outline-style: solid;
|
|
882
745
|
}
|
|
883
746
|
|
|
@@ -906,150 +769,150 @@ const ec=Symbol.for(""),oc=t=>{if(t?.r===ec)return t?._$litStatic$},rc=t=>({_$li
|
|
|
906
769
|
/** Primary styles **/
|
|
907
770
|
|
|
908
771
|
.ft-button--primary {
|
|
909
|
-
${
|
|
772
|
+
${T(ve.color,P.primaryIconColor)};
|
|
910
773
|
|
|
911
|
-
${
|
|
912
|
-
${
|
|
913
|
-
${
|
|
914
|
-
${
|
|
915
|
-
${
|
|
774
|
+
${T(W.color,P.primaryStateLayerColor)};
|
|
775
|
+
${T(W.opacityContentOnSurfaceHover,P.primaryHoverStateLayerOpacity)};
|
|
776
|
+
${T(W.opacityContentOnSurfaceFocused,P.primaryFocusStateLayerOpacity)};
|
|
777
|
+
${T(W.opacityContentOnSurfaceSelected,P.primaryActiveStateLayerOpacity)};
|
|
778
|
+
${T(W.opacityContentOnSurfacePressed,P.primaryActiveStateLayerOpacity)};
|
|
916
779
|
|
|
917
|
-
background-color: ${
|
|
918
|
-
color: ${
|
|
780
|
+
background-color: ${P.primaryBackgroundColor};
|
|
781
|
+
color: ${P.primaryColor};
|
|
919
782
|
border-style: none;
|
|
920
783
|
}
|
|
921
784
|
|
|
922
785
|
.ft-button--primary[disabled] {
|
|
923
|
-
opacity: ${
|
|
786
|
+
opacity: ${P.primaryDisabledComponentOpacity};
|
|
924
787
|
}
|
|
925
788
|
|
|
926
789
|
.ft-button--primary ft-icon {
|
|
927
|
-
color: ${
|
|
790
|
+
color: ${P.primaryIconColor};
|
|
928
791
|
}
|
|
929
792
|
|
|
930
793
|
/** Secondary styles **/
|
|
931
794
|
|
|
932
795
|
.ft-button--secondary {
|
|
933
|
-
${
|
|
796
|
+
${T(ve.color,P.secondaryIconColor)};
|
|
934
797
|
|
|
935
|
-
${
|
|
936
|
-
${
|
|
937
|
-
${
|
|
938
|
-
${
|
|
939
|
-
${
|
|
798
|
+
${T(W.color,P.secondaryStateLayerColor)};
|
|
799
|
+
${T(W.opacityContentOnSurfaceHover,P.secondaryHoverStateLayerOpacity)};
|
|
800
|
+
${T(W.opacityContentOnSurfaceFocused,P.secondaryFocusStateLayerOpacity)};
|
|
801
|
+
${T(W.opacityContentOnSurfaceSelected,P.secondaryActiveStateLayerOpacity)};
|
|
802
|
+
${T(W.opacityContentOnSurfacePressed,P.secondaryActiveStateLayerOpacity)};
|
|
940
803
|
|
|
941
|
-
background-color: ${
|
|
942
|
-
color: ${
|
|
943
|
-
border-color: ${
|
|
804
|
+
background-color: ${P.secondaryBackgroundColor};
|
|
805
|
+
color: ${P.secondaryColor};
|
|
806
|
+
border-color: ${P.secondaryBorderColor};
|
|
944
807
|
border-style: solid;
|
|
945
808
|
}
|
|
946
809
|
|
|
947
810
|
.ft-button--secondary[disabled] {
|
|
948
|
-
opacity: ${
|
|
811
|
+
opacity: ${P.secondaryDisabledComponentOpacity};
|
|
949
812
|
}
|
|
950
813
|
|
|
951
814
|
.ft-button--secondary ft-icon {
|
|
952
|
-
color: ${
|
|
815
|
+
color: ${P.secondaryIconColor};
|
|
953
816
|
}
|
|
954
817
|
|
|
955
818
|
/** Tertiary styles **/
|
|
956
819
|
|
|
957
820
|
.ft-button--tertiary {
|
|
958
|
-
${
|
|
821
|
+
${T(ve.color,P.tertiaryIconColor)};
|
|
959
822
|
|
|
960
|
-
${
|
|
961
|
-
${
|
|
962
|
-
${
|
|
963
|
-
${
|
|
964
|
-
${
|
|
823
|
+
${T(W.color,P.tertiaryStateLayerColor)};
|
|
824
|
+
${T(W.opacityContentOnSurfaceHover,P.tertiaryHoverStateLayerOpacity)};
|
|
825
|
+
${T(W.opacityContentOnSurfaceFocused,P.tertiaryFocusStateLayerOpacity)};
|
|
826
|
+
${T(W.opacityContentOnSurfaceSelected,P.tertiaryActiveStateLayerOpacity)};
|
|
827
|
+
${T(W.opacityContentOnSurfacePressed,P.tertiaryActiveStateLayerOpacity)};
|
|
965
828
|
|
|
966
|
-
background-color: ${
|
|
967
|
-
color: ${
|
|
829
|
+
background-color: ${P.tertiaryBackgroundColor};
|
|
830
|
+
color: ${P.tertiaryColor};
|
|
968
831
|
border-style: none;
|
|
969
832
|
}
|
|
970
833
|
|
|
971
834
|
.ft-button--tertiary[disabled] {
|
|
972
|
-
opacity: ${
|
|
835
|
+
opacity: ${P.tertiaryDisabledComponentOpacity};
|
|
973
836
|
}
|
|
974
837
|
|
|
975
838
|
.ft-button--tertiary ft-icon {
|
|
976
|
-
color: ${
|
|
839
|
+
color: ${P.tertiaryIconColor};
|
|
977
840
|
}
|
|
978
841
|
|
|
979
842
|
/** Neutral styles **/
|
|
980
843
|
|
|
981
844
|
.ft-button--neutral {
|
|
982
|
-
${
|
|
845
|
+
${T(ve.color,P.neutralIconColor)};
|
|
983
846
|
|
|
984
|
-
${
|
|
985
|
-
${
|
|
986
|
-
${
|
|
987
|
-
${
|
|
988
|
-
${
|
|
847
|
+
${T(W.backgroundColor,P.neutralStateLayerColor)};
|
|
848
|
+
${T(W.opacityContentOnSurfaceHover,P.neutralHoverStateLayerOpacity)};
|
|
849
|
+
${T(W.opacityContentOnSurfaceFocused,P.neutralFocusStateLayerOpacity)};
|
|
850
|
+
${T(W.opacityContentOnSurfaceSelected,P.neutralActiveStateLayerOpacity)};
|
|
851
|
+
${T(W.opacityContentOnSurfacePressed,P.neutralActiveStateLayerOpacity)};
|
|
989
852
|
|
|
990
|
-
background-color: ${
|
|
991
|
-
color: ${
|
|
853
|
+
background-color: ${P.neutralBackgroundColor};
|
|
854
|
+
color: ${P.neutralColor};
|
|
992
855
|
border-style: none;
|
|
993
856
|
}
|
|
994
857
|
|
|
995
858
|
.ft-button--neutral[disabled] {
|
|
996
|
-
opacity: ${
|
|
859
|
+
opacity: ${P.neutralDisabledComponentOpacity};
|
|
997
860
|
}
|
|
998
861
|
|
|
999
862
|
.ft-button--neutral ft-icon {
|
|
1000
|
-
color: ${
|
|
863
|
+
color: ${P.neutralIconColor};
|
|
1001
864
|
}
|
|
1002
865
|
|
|
1003
866
|
/** Large styles **/
|
|
1004
867
|
|
|
1005
868
|
.ft-button--large {
|
|
1006
|
-
${
|
|
1007
|
-
${
|
|
1008
|
-
|
|
1009
|
-
height: ${
|
|
1010
|
-
padding: 0 ${
|
|
1011
|
-
gap: ${
|
|
1012
|
-
border-radius: ${
|
|
1013
|
-
border-width: ${
|
|
869
|
+
${T(Se.size,P.largeIconSize)};
|
|
870
|
+
${T(ve.size,P.largeIconSize)};
|
|
871
|
+
|
|
872
|
+
height: ${P.largeHeight};
|
|
873
|
+
padding: 0 ${P.largeHorizontalPadding};
|
|
874
|
+
gap: ${P.largeGap};
|
|
875
|
+
border-radius: ${P.largeBorderRadius};
|
|
876
|
+
border-width: ${P.largeBorderWidth};
|
|
1014
877
|
}
|
|
1015
878
|
|
|
1016
879
|
.ft-button--large:focus-visible {
|
|
1017
|
-
outline-width: ${
|
|
1018
|
-
outline-offset: ${
|
|
880
|
+
outline-width: ${P.largeFocusOutlineWidth};
|
|
881
|
+
outline-offset: ${P.largeFocusOutlineOffset};
|
|
1019
882
|
}
|
|
1020
883
|
|
|
1021
884
|
.ft-button--large.ft-button--icon-only {
|
|
1022
|
-
width: ${
|
|
885
|
+
width: ${P.largeIconOnlyWidth};
|
|
1023
886
|
padding: unset;
|
|
1024
887
|
}
|
|
1025
888
|
|
|
1026
889
|
/** Small styles **/
|
|
1027
890
|
|
|
1028
891
|
.ft-button--small {
|
|
1029
|
-
${
|
|
1030
|
-
${
|
|
1031
|
-
|
|
1032
|
-
height: ${
|
|
1033
|
-
padding: 0 ${
|
|
1034
|
-
gap: ${
|
|
1035
|
-
border-radius: ${
|
|
1036
|
-
border-width: ${
|
|
892
|
+
${T(Se.size,P.smallIconSize)};
|
|
893
|
+
${T(ve.size,P.smallIconSize)};
|
|
894
|
+
|
|
895
|
+
height: ${P.smallHeight};
|
|
896
|
+
padding: 0 ${P.smallHorizontalPadding};
|
|
897
|
+
gap: ${P.smallGap};
|
|
898
|
+
border-radius: ${P.smallBorderRadius};
|
|
899
|
+
border-width: ${P.smallBorderWidth};
|
|
1037
900
|
}
|
|
1038
901
|
|
|
1039
902
|
.ft-button--small:focus-visible {
|
|
1040
|
-
outline-width: ${
|
|
1041
|
-
outline-offset: ${
|
|
903
|
+
outline-width: ${P.smallFocusOutlineWidth};
|
|
904
|
+
outline-offset: ${P.smallFocusOutlineOffset};
|
|
1042
905
|
}
|
|
1043
906
|
|
|
1044
907
|
.ft-button--small.ft-button--icon-only {
|
|
1045
|
-
width: ${
|
|
908
|
+
width: ${P.smallIconOnlyWidth};
|
|
1046
909
|
padding: unset;
|
|
1047
910
|
}
|
|
1048
|
-
`,
|
|
911
|
+
`,eo];var so=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Ge=class extends ae{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?Kt.caption1medium:Kt.body2medium}};Ge.styles=[to,Nl];so([O({type:Boolean})],Ge.prototype,"primary",void 0);so([O({type:Boolean})],Ge.prototype,"secondary",void 0);so([O({type:Boolean})],Ge.prototype,"tertiary",void 0);so([O({type:Boolean})],Ge.prototype,"neutral",void 0);so([O({type:Boolean})],Ge.prototype,"small",void 0);B("ft-button")(he);B("ftds-button")(Ge);var q={height:o.create("--ft-search-input-height","","SIZE","38px"),borderRadius:o.extend("--ft-search-input-border-radius","",I.borderRadiusS),desktopFiltersHeight:o.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:o.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:o.extend("--ft-search-input-background-color","",I.colorSurface),colorOnSurface:o.extend("--ft-search-input-color","",I.colorOnSurface),colorOnSurfaceMedium:o.extend("--ft-search-input-placeholder-color","",I.colorOnSurfaceMedium),colorOutline:o.extend("--ft-search-input-outline-color","",I.colorOutline),elevation02:o.extend("--ft-search-input-elevation","",I.elevation02),focusOutlineColor:o.extend("--ft-search-input-focused-outline-color","",I.colorPrimary),buttonColor:o.extend("--ft-search-input-button-color","",I.colorPrimary),buttonRippleColor:o.extend("--ft-search-input-button-ripple-color","",I.colorPrimary)},_l=R`
|
|
1049
912
|
* {
|
|
1050
913
|
box-sizing: border-box;
|
|
1051
|
-
${
|
|
1052
|
-
${
|
|
914
|
+
${T(te.color,q.buttonColor)};
|
|
915
|
+
${T(te.rippleColor,q.buttonRippleColor)};
|
|
1053
916
|
}
|
|
1054
917
|
|
|
1055
918
|
.ft-search-input {
|
|
@@ -1057,11 +920,11 @@ const ec=Symbol.for(""),oc=t=>{if(t?.r===ec)return t?._$litStatic$},rc=t=>({_$li
|
|
|
1057
920
|
display: flex;
|
|
1058
921
|
flex-direction: row;
|
|
1059
922
|
align-items: center;
|
|
1060
|
-
height: ${
|
|
923
|
+
height: ${q.height};
|
|
1061
924
|
|
|
1062
|
-
background: ${
|
|
1063
|
-
border: 1px solid ${
|
|
1064
|
-
border-radius: ${
|
|
925
|
+
background: ${q.colorSurface};
|
|
926
|
+
border: 1px solid ${q.colorOutline};
|
|
927
|
+
border-radius: ${q.borderRadius};
|
|
1065
928
|
}
|
|
1066
929
|
|
|
1067
930
|
.ft-search-input--input-container {
|
|
@@ -1076,11 +939,11 @@ const ec=Symbol.for(""),oc=t=>{if(t?.r===ec)return t?._$litStatic$},rc=t=>({_$li
|
|
|
1076
939
|
width: 100%;
|
|
1077
940
|
display: grid;
|
|
1078
941
|
padding: 0 8px;
|
|
1079
|
-
border-radius: ${
|
|
942
|
+
border-radius: ${q.borderRadius};
|
|
1080
943
|
}
|
|
1081
944
|
|
|
1082
945
|
.ft-search-input--input-container:focus-within .ft-search-input--input-outline {
|
|
1083
|
-
outline: 2px solid ${
|
|
946
|
+
outline: 2px solid ${q.focusOutlineColor};
|
|
1084
947
|
}
|
|
1085
948
|
|
|
1086
949
|
.ft-search-input--input {
|
|
@@ -1088,12 +951,12 @@ const ec=Symbol.for(""),oc=t=>{if(t?.r===ec)return t?._$litStatic$},rc=t=>({_$li
|
|
|
1088
951
|
width: 100%;
|
|
1089
952
|
border: none;
|
|
1090
953
|
background-color: transparent;
|
|
1091
|
-
color: ${
|
|
954
|
+
color: ${q.colorOnSurface};
|
|
1092
955
|
outline: none;
|
|
1093
956
|
}
|
|
1094
957
|
|
|
1095
958
|
.ft-search-input--input::placeholder {
|
|
1096
|
-
color: ${
|
|
959
|
+
color: ${q.colorOnSurfaceMedium};
|
|
1097
960
|
}
|
|
1098
961
|
|
|
1099
962
|
.ft-search-input--actions {
|
|
@@ -1103,13 +966,13 @@ const ec=Symbol.for(""),oc=t=>{if(t?.r===ec)return t?._$litStatic$},rc=t=>({_$li
|
|
|
1103
966
|
align-items: center;
|
|
1104
967
|
height: 100%;
|
|
1105
968
|
|
|
1106
|
-
${
|
|
969
|
+
${T(Et.zIndex,`calc(${q.floatingZIndex} + 1)`)};
|
|
1107
970
|
}
|
|
1108
971
|
|
|
1109
972
|
.ft-search-input > ft-button,
|
|
1110
973
|
.ft-search-input--actions ft-button {
|
|
1111
974
|
flex-shrink: 0;
|
|
1112
|
-
${
|
|
975
|
+
${T(te.backgroundColor,"transparent")};
|
|
1113
976
|
}
|
|
1114
977
|
|
|
1115
978
|
.ft-search-input .ft-search-input--launch-search,
|
|
@@ -1127,17 +990,17 @@ const ec=Symbol.for(""),oc=t=>{if(t?.r===ec)return t?._$litStatic$},rc=t=>({_$li
|
|
|
1127
990
|
|
|
1128
991
|
.ft-search-input--separator {
|
|
1129
992
|
height: 20px;
|
|
1130
|
-
border-right: 1px solid ${
|
|
993
|
+
border-right: 1px solid ${q.colorOutline};
|
|
1131
994
|
}
|
|
1132
|
-
|
|
995
|
+
`;var Pa={highlightBackgroundColor:o.create("--ft-sra-highlight-background-color","","COLOR","transparent")},Pl=R`
|
|
1133
996
|
.kwicmatch {
|
|
1134
997
|
font-weight: 700;
|
|
1135
|
-
background-color: ${
|
|
998
|
+
background-color: ${Pa.highlightBackgroundColor};
|
|
1136
999
|
}
|
|
1137
|
-
|
|
1000
|
+
`;var Ta={highlightBackgroundColor:o.create("--ft-srt-highlight-background-color","","COLOR","transparent")},Tl=R`
|
|
1138
1001
|
.kwicmatch {
|
|
1139
1002
|
font-weight: 700;
|
|
1140
|
-
background-color: ${
|
|
1003
|
+
background-color: ${Ta.highlightBackgroundColor};
|
|
1141
1004
|
}
|
|
1142
1005
|
|
|
1143
1006
|
a {
|
|
@@ -1148,7 +1011,7 @@ const ec=Symbol.for(""),oc=t=>{if(t?.r===ec)return t?._$litStatic$},rc=t=>({_$li
|
|
|
1148
1011
|
a:focus {
|
|
1149
1012
|
outline: revert;
|
|
1150
1013
|
}
|
|
1151
|
-
|
|
1014
|
+
`;var de={searchFieldBackgroundColor:o.extend("--ft-rsid-search-field-background-color","",I.colorSurface),searchFieldBorderColor:o.extend("--ft-rsid-search-field-border-color","",I.colorOutline),searchFieldTextColor:o.extend("--ft-rsid-search-field-text-color","",I.colorOnSurface),searchFieldBorderRadius:o.extend("--ft-rsid-search-field-border-radius","",I.borderRadiusS),searchButtonColor:o.extend("--ft-rsid-search-field-button-color","",I.colorPrimary),resultsNumberColor:o.extend("--ft-rsid-results-number-color","",I.colorOnSurfaceMedium),resultBackgroundColor:o.extend("--ft-rsid-result-background-color","",I.colorSurface),resultBorderColor:o.extend("--ft-rsid-result-border-color","",I.colorOutline),resultBorderRadius:o.extend("--ft-rsid-result-border-radius","",I.borderRadiusS),resultTitleTextColor:o.extend("--ft-rsid-result-title-text-color","",I.colorOnSurface),resultBreadcrumbTextColor:o.extend("--ft-rsid-result-breadcrumb-text-color","",I.colorOnSurfaceMedium),resultContentTextColor:o.extend("--ft-rsid-result-content-text-color","",I.colorOnSurface),resultHighlightBackgroundColor:o.create("--ft-rsid-result-highlight-background-color","","COLOR","#FFF26E"),resultHoverBackgroundColor:o.extend("--ft-rsid-result-hover-background-color","",I.colorPrimary),resultHoverBorderColor:o.extend("--ft-rsid-result-hover-border-color","",I.colorPrimary)},Il=R`
|
|
1152
1015
|
.ft-search-in-doc--container {
|
|
1153
1016
|
display: flex;
|
|
1154
1017
|
flex-direction: column;
|
|
@@ -1156,11 +1019,11 @@ const ec=Symbol.for(""),oc=t=>{if(t?.r===ec)return t?._$litStatic$},rc=t=>({_$li
|
|
|
1156
1019
|
}
|
|
1157
1020
|
|
|
1158
1021
|
ft-search-input {
|
|
1159
|
-
${
|
|
1160
|
-
${
|
|
1161
|
-
${
|
|
1162
|
-
${
|
|
1163
|
-
${
|
|
1022
|
+
${T(q.colorSurface,de.searchFieldBackgroundColor)};
|
|
1023
|
+
${T(q.colorOutline,de.searchFieldBorderColor)};
|
|
1024
|
+
${T(q.colorOnSurface,de.searchFieldTextColor)};
|
|
1025
|
+
${T(q.borderRadius,de.searchFieldBorderRadius)};
|
|
1026
|
+
${T(q.buttonColor,de.searchButtonColor)};
|
|
1164
1027
|
}
|
|
1165
1028
|
|
|
1166
1029
|
ft-search-results-number {
|
|
@@ -1168,41 +1031,41 @@ const ec=Symbol.for(""),oc=t=>{if(t?.r===ec)return t?._$litStatic$},rc=t=>({_$li
|
|
|
1168
1031
|
}
|
|
1169
1032
|
|
|
1170
1033
|
ft-search-results-number, ft-search-results::part(no-results-message) {
|
|
1171
|
-
color: ${
|
|
1034
|
+
color: ${de.resultsNumberColor};
|
|
1172
1035
|
}
|
|
1173
1036
|
|
|
1174
1037
|
ft-search-load-more-button {
|
|
1175
1038
|
margin: auto;
|
|
1176
1039
|
}
|
|
1177
|
-
|
|
1040
|
+
`,$l=R`
|
|
1178
1041
|
ft-card {
|
|
1179
1042
|
margin-bottom: 8px;
|
|
1180
|
-
${
|
|
1181
|
-
${
|
|
1182
|
-
${
|
|
1183
|
-
${
|
|
1184
|
-
${
|
|
1185
|
-
${
|
|
1186
|
-
${
|
|
1043
|
+
${T(V.elevation04,"none")};
|
|
1044
|
+
${T(V.elevation02,"none")};
|
|
1045
|
+
${T(V.borderStyle,"solid")};
|
|
1046
|
+
${T(V.borderRadius,I.borderRadiusS)};
|
|
1047
|
+
${T(V.colorSurface,de.resultBackgroundColor)};
|
|
1048
|
+
${T(V.borderColor,de.resultBorderColor)};
|
|
1049
|
+
${T(V.borderRadius,de.resultBorderRadius)};
|
|
1187
1050
|
}
|
|
1188
1051
|
|
|
1189
1052
|
ft-search-result-title {
|
|
1190
|
-
color: ${
|
|
1191
|
-
${
|
|
1053
|
+
color: ${de.resultTitleTextColor};
|
|
1054
|
+
${T(Ta.highlightBackgroundColor,de.resultHighlightBackgroundColor)};
|
|
1192
1055
|
}
|
|
1193
1056
|
|
|
1194
1057
|
.breadcrumb {
|
|
1195
|
-
color: ${
|
|
1058
|
+
color: ${de.resultBreadcrumbTextColor};
|
|
1196
1059
|
}
|
|
1197
1060
|
|
|
1198
1061
|
ft-search-result-abstract {
|
|
1199
|
-
color: ${
|
|
1200
|
-
${
|
|
1062
|
+
color: ${de.resultContentTextColor};
|
|
1063
|
+
${T(Pa.highlightBackgroundColor,de.resultHighlightBackgroundColor)};
|
|
1201
1064
|
}
|
|
1202
1065
|
|
|
1203
1066
|
ft-card:hover {
|
|
1204
|
-
${
|
|
1205
|
-
${
|
|
1067
|
+
${T(V.hoverBorderColor,de.resultHoverBorderColor)};
|
|
1068
|
+
${T(W.color,de.resultHoverBackgroundColor)};
|
|
1206
1069
|
}
|
|
1207
1070
|
|
|
1208
1071
|
.result-container {
|
|
@@ -1215,38 +1078,38 @@ const ec=Symbol.for(""),oc=t=>{if(t?.r===ec)return t?._$litStatic$},rc=t=>({_$li
|
|
|
1215
1078
|
text-decoration: none;
|
|
1216
1079
|
color: inherit;
|
|
1217
1080
|
}
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1081
|
+
`;var Ll=R`
|
|
1082
|
+
`;var kl=R`
|
|
1083
|
+
`;var Vd="ft-app-info",Kd={},F=st.get({name:Vd,reducers:Kd,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var Zt=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:n}=F.getState(),i=e??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(e){return new Promise(r=>{let n=t.get(e);if(n)r(n);else{let i=F.subscribe(()=>{n=t.get(e),n&&(i(),r(n))})}})}};var Ze=class{constructor(e=!0,r){var n;this.overrideApi=r;let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new He,this.cache=e?i.commonCache:new He}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Zt.get()}get awaitApi(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Zt.await()}clearCache(){this.cache.clearAll()}};var Ml,Gd=Symbol("clearAfterUnitTest"),on=class extends Ze{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ml]=()=>{this.defaultMessages={},this.cache=new He,this.listeners={}},this.currentUiLocale=F.getState().uiLocale,F.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=F.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var n;if(e=e.toLowerCase(),Object.keys(r).length>0){let i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...r};Ie(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}await this.fetchContext(e)}resolveMessage(e,r,...n){var i,a,s;e=e.toLowerCase(),this.fetchContext(e);let c=(a=(i=this.cache.getNow(e))===null||i===void 0?void 0:i.messages)!==null&&a!==void 0?a:{};return new ro((s=this.defaultMessages[e])!==null&&s!==void 0?s:{},c).resolve(r,...n)}async fetchContext(e){if(!this.cache.has(e))try{await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),await this.notify(e)}catch(r){console.error(r)}}subscribe(e,r){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(r),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(e=>this.notify(e)))}async notify(e){this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(r=>Uo(0).then(()=>r()).catch(()=>null)))}};Ml=Gd;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends on{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends on{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Sr=window.FluidTopicsI18nService,Dl=window.FluidTopicsCustomI18nService;var me=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},ne=class extends K{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>Zt.get(),this.messageContexts=[],this.cache=new He,this.cleanSessionDebouncer=new pe}render(){return L`
|
|
1221
1084
|
<slot></slot>
|
|
1222
|
-
`}update(
|
|
1085
|
+
`}update(e){super.update(e),e.has("baseUrl")&&(F.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&F.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&F.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&F.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&F.actions.noCustom(this.noCustom),e.has("editorMode")&&F.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&F.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&F.actions.session(this.session),e.has("availableUiLocales")&&F.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(r=>Sr.addContext(r)),e.has("openExternalDocumentInNewTab")&&F.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&F.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&F.actions.forcedOffline(this.forcedOffline),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(this.session==null&&this.updateSession(),this.availableUiLocales==null&&this.updateUiLocales(),this.metadataConfiguration==null&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};ne.elementDefinitions={};ne.styles=kl;me([O()],ne.prototype,"baseUrl",void 0);me([O()],ne.prototype,"apiIntegrationIdentifier",void 0);me([O()],ne.prototype,"uiLocale",void 0);me([fe(null)],ne.prototype,"availableUiLocales",void 0);me([fe(null)],ne.prototype,"metadataConfiguration",void 0);me([O({type:Boolean})],ne.prototype,"editorMode",void 0);me([O({type:Boolean})],ne.prototype,"noCustom",void 0);me([O({type:Boolean})],ne.prototype,"openExternalDocumentInNewTab",void 0);me([O({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ne.prototype,"noCustomComponent",void 0);me([O({type:Boolean})],ne.prototype,"withManualResources",void 0);me([O({type:Boolean})],ne.prototype,"navigatorOnline",void 0);me([O({type:Boolean})],ne.prototype,"forcedOffline",void 0);me([O({type:Object})],ne.prototype,"apiProvider",void 0);me([fe([])],ne.prototype,"messageContexts",void 0);me([fe(void 0)],ne.prototype,"session",void 0);var nn=class extends Ze{async listMySearches(){let e=F.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var an=class extends Ze{async listMyBookmarks(){let e=F.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Zd="ft-user-assets",sn=st.get({name:Zd,initialState:{savedSearches:void 0,bookmarks:void 0}}),Ia=class{constructor(){this.currentSession=F.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new an,this.savedSearchesService=new nn,F.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=F.getState();Ie((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),sn.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),sn.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();sn.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;sn.actions.bookmarks(r)}}},Ul=new Ia;var $a=class{addCommand(e,r=!1){F.commands.add(e,r)}consumeCommand(e){return F.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new $a;var La=class{highlightHtml(e,r){Wi(e,r)}};window.FluidTopicsHighlightHtmlService=new La;B("ft-app-context")(ne);var qd=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},ka=Symbol("i18nAttributes"),cn=Symbol("i18nProperties"),co=Symbol("i18nUnsubs");function Le(t){var e;class r extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Dl:Sr}i18n(i,a,...s){var c;if(typeof i=="string")return this.i18nService.resolveMessage(i,a,...s);let l=(c=i.args)!==null&&c!==void 0?c:i.argsProvider?i.argsProvider(this):[];return this.i18nService.resolveMessage(i.context,i.key,...l)}onI18nUpdate(i){var a,s;(a=this[ka])===null||a===void 0||a.forEach((c,l)=>{var u;let d=this.getI18nAttributeValue(l);((u=d?.context)===null||u===void 0?void 0:u.toLowerCase())===i.toLowerCase()&&this.updateI18nAttributeMessage(l,d,c)}),(s=this[cn])===null||s===void 0||s.forEach((c,l)=>{c.context.toLowerCase()===i.toLowerCase()&&(this[l]=this.i18n(c))}),setTimeout(()=>this.requestUpdate(),0)}updateI18nAttributeMessage(i,a,s){this[i]={...a,message:this.i18n({context:a.context,key:a.key,...s})}}update(i){var a,s;super.update(i),(a=this[ka])===null||a===void 0||a.forEach((c,l)=>{let u=this.getI18nAttributeValue(l);u?.context&&u.key&&(i.has(l)||c.argsProvider!=null)&&(i.has(l)&&this.addI18nContext(u.context),this.updateI18nAttributeMessage(l,u,c))}),(s=this[cn])===null||s===void 0||s.forEach((c,l)=>{c.argsProvider!=null&&(this[l]=this.i18n(c))})}getI18nAttributeValue(i){return this[i]}connectedCallback(){var i,a,s,c;super.connectedCallback(),new Set([...(a=(i=this[cn])===null||i===void 0?void 0:i.values())!==null&&a!==void 0?a:[],...[...(c=(s=this[ka])===null||s===void 0?void 0:s.keys())!==null&&c!==void 0?c:[]].map(l=>this.getI18nAttributeValue(l))].map(l=>l?.context)).forEach(l=>l&&this.addI18nMessages(l))}addI18nMessages(i,a){i=i.toLowerCase(),this[co].has(i)||this[co].set(i,this.i18nService.subscribe(i,()=>this.onI18nUpdate(i))),this.i18nService.prepareContext(i,a??{})}addI18nContext(i,a){this.addI18nMessages(typeof i=="string"?i:i.name,a)}disconnectedCallback(){super.disconnectedCallback(),this[co].forEach(i=>i()),this[co].clear()}}return e=co,qd([O({type:Boolean})],r.prototype,"useCustomMessageContexts",void 0),r}var Bl=class extends Le(K){},ln=class extends Le(xe){};var lo=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Be=class extends ln{constructor(){super(),this.editorMode=!1,this.addStore(F)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":U:L`
|
|
1223
1086
|
<span class="ft-i18n">
|
|
1224
1087
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
1225
1088
|
</span>
|
|
1226
|
-
|
|
1227
|
-
`,hf={setRequest:(t,e)=>{t.request=e.payload},setRequestQuery:(t,e)=>{t.request.query=e.payload},setRequestContentLocale:(t,e)=>{t.request.contentLocale=e.payload},setPageSize:(t,e)=>{t.request.paging.perPage=e.payload},setPageNumber:(t,e)=>{t.request.paging.page=e.payload},setRequestSort:(t,e)=>{t.request.sort=e.payload},setRequestFilters:(t,e)=>{t.request.filters=e.payload},setRequestFacets:(t,e)=>{t.request.facets=e.payload},setRequestVirtualField:(t,e)=>{t.request.virtualField=e.payload},setRequestScope:(t,e)=>{t.request.scope=e.payload},setRequestClusterSortCriterion:(t,e)=>{t.request.clusterSortCriterions=e.payload},setResults:(t,e)=>{t.results=e.payload},setFacets:(t,e)=>{t.facets=e.payload},setSpellcheck:(t,e)=>{t.spellcheck=e.payload},setLocales:(t,e)=>{t.locales=e.payload},setPaging:(t,e)=>{t.paging=e.payload},setLiveQuery:(t,e)=>{t.liveQuery=e.payload},setSuggestResults:(t,e)=>{t.suggestResults=e.payload},setRequestPeriodFilter:(t,e)=>{t.request.periodFilter=e.payload}};var uf,df,pf,gf,yf,bf,mf,vf,xf,Of,wf,Sf,Cf,Nf,Ef,Rf,$f,If,kf;!function(t){!function(e){var o={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(o.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i=ArrayBuffer.isView||function(t){return t&&r.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function h(t){var e=new FileReader,o=f(e);return e.readAsArrayBuffer(t),o}function u(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function d(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=u(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||i(t))?this._bodyArrayBuffer=u(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,o=f(e);return e.readAsText(t),o}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),r=0;r<e.length;r++)o[r]=String.fromCharCode(e[r]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=n(t),e=a(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},l.prototype.delete=function(t){delete this.map[n(t)]},l.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},l.prototype.set=function(t,e){this.map[n(t)]=a(e)},l.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),s(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),s(t)},o.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var p=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(t,e){var o,r,i=(e=e||{}).body;if(t instanceof g){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(o=e.method||this.method||"GET",r=o.toUpperCase(),p.indexOf(r)>-1?r:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function y(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),r=o.shift().replace(/\+/g," "),i=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}})),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},d.call(g.prototype),d.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];b.redirect=function(t,e){if(-1===m.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(t,r){return new Promise((function(i,n){var a=new g(t,r);if(a.signal&&a.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),r=o.shift().trim();if(r){var i=o.join(":").trim();e.append(r,i)}})),e)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;i(new b(r,o))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=l,t.Request=g,t.Response=b),e.Headers=l,e.Request=g,e.Response=b,e.fetch=v,Object.defineProperty(e,"W",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(uf||(uf={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(df||(df={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(pf||(pf={})),function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT"}(gf||(gf={})),function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"}(yf||(yf={})),function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"}(bf||(bf={})),function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"}(mf||(mf={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(vf||(vf={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(xf||(xf={})),function(t){t.ASC="ASC",t.DESC="DESC"}(Of||(Of={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(wf||(wf={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(Sf||(Sf={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Cf||(Cf={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Nf||(Nf={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Ef||(Ef={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Rf||(Rf={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}($f||($f={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(If||(If={})),function(t){t.VALID="VALID",t.INVALID="INVALID"}(kf||(kf={})),If.PERSONAL_BOOK_SHARE_USER,If.PERSONAL_BOOK_USER,If.HTML_EXPORT_USER,If.PERSONAL_BOOK_USER,If.PDF_EXPORT_USER,If.PERSONAL_BOOK_USER,If.KHUB_ADMIN,If.CONTENT_PUBLISHER,If.ADMIN,If.KHUB_ADMIN,If.USERS_ADMIN,If.PORTAL_ADMIN,If.DEVELOPER,If.BETA_USER,If.DEBUG_USER;class Lf extends Mc{constructor(){super(),this.cache.registerFinal("available-locales",(()=>this.api.getAvailableSearchLocales()))}async launchSearch(t){return this.api.search(t)}async launchSuggest(t){return this.api.getSuggestions(t)}async getAvailableSearchLocales(){return this.cache.get("available-locales")}}class Uf extends Event{constructor(){super(Uf.eventName)}}Uf.eventName="search-context-clear-all-filters";class Wf{static build(t,e){return new Wf((t=>es.get({name:"ft-search-"+t,initialState:{request:{query:"",filters:[],facets:[],sort:[],paging:{page:1,perPage:20}},liveQuery:""},reducers:hf}))(t.trim()||"context"),e)}constructor(t,e){this.store=t,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.searchDebouncer=new so(100),this.suggestDebouncer=new so(300),this.service=null!=e?e:new Lf}async initService(){return this.store.actions.setLocales((await this.service.getAvailableSearchLocales()).contentLocales),this.launchSearch()}setQuery(t){this.store.actions.setRequestQuery(t),this.store.actions.setLiveQuery(t),this.store.actions.setPageNumber(1),this.launchSearch()}setContentLocale(t){let e=this.store.getState().locales,o=this.store.getState().request.contentLocale;if(t!=o){if(e){const r=t=>e.some((e=>e.lang==t));r(t)||(t=r(o)?o:e[0].lang)}this.store.actions.setRequestContentLocale(t),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([]),this.launchSearch()}return t}setPageSize(t){this.store.actions.setPageSize(t),this.launchSearch()}setPageNumber(t){this.store.actions.setPageNumber(t),this.launchSearch()}setSort(t){this.store.actions.setRequestSort(t),this.store.actions.setPageNumber(1),this.launchSearch()}setFilters(t){const e=t.filter((t=>t.values.length>0));this.store.actions.setRequestFilters(e),this.store.actions.setPageNumber(1),e.forEach((t=>{this.facetIds.includes(t.key)||(this.facetIds=[...this.facetIds,t.key])})),this.launchSearch()}setClusterSortCriterion(t){this.store.actions.setRequestClusterSortCriterion(t),this.launchSearch()}setSearchInDocumentTitlesOnly(t){t?(this.store.actions.setRequestVirtualField(Sf.TITLE_ONLY),this.store.actions.setRequestScope($f.DOCUMENTS)):(this.store.actions.setRequestVirtualField(Sf.EVERYWHERE),this.store.actions.setRequestScope($f.DEFAULT)),this.launchSearch()}get searchInDocumentTitlesOnly(){return(t=>t.request.virtualField===Sf.TITLE_ONLY&&t.request.scope===$f.DOCUMENTS)(this.store.getState())}get periodFilter(){return this.store.getState().request.periodFilter}clearAllFilters(){this.setFilters([]),this.store.eventBus.dispatchEvent(new Uf)}addFacet(t){this.facetIds=[...this.facetIds,t],this.launchSearch()}replaceFacet(t,e){let o=this.facetIds.filter((e=>e!=t));e&&o.push(e),this.facetIds=o,this.launchSearch()}get facetIds(){return this.store.getState().request.facets.map((t=>t.id))}set facetIds(t){let e=[...new Set(t)].map((t=>({id:t})));this.store.actions.setRequestFacets(e)}setFilter(t,e){let o=this.store.getState().request.filters,r={key:t,values:e,negative:!1},i=[...o.filter((e=>e.key!==t)),r];this.setFilters(i)}setLiveQuery(t){this.store.actions.setLiveQuery(t),this.launchSuggest()}setRequest(t){this.store.actions.setRequest(t),this.store.actions.setLiveQuery(t.query),this.store.actions.setPageNumber(1),this.launchSearch()}setScope(t){this.store.actions.setRequestScope(t),this.launchSearch()}setIgnoreEmptyQuery(t){this.ignoreEmptyQuery=t,this.launchSearch()}setOpenExternalDocumentInNewTab(t){this.openExternalDocumentInNewTab=t}setPeriodFilter(t){this.store.actions.setRequestPeriodFilter(t),this.store.actions.setPageNumber(1),this.launchSearch()}launchSearch(){return this.searchDebouncer.run((()=>this.fetchSearchData()))}launchSuggest(){return this.suggestDebouncer.run((()=>this.fetchSuggestData()))}async fetchSearchData(){var t,e;try{null===(t=this.cancelableSearch)||void 0===t||t.cancel();let o=this.store.getState().request;if(this.store.actions.setPaging(void 0),this.ignoreEmptyQuery&&0==o.query.length)this.store.actions.setResults(void 0),this.store.actions.setFacets(void 0),this.store.actions.setSpellcheck(void 0);else{this.cancelableSearch=eo(this.service.launchSearch(o));const t=await this.cancelableSearch;if(t.paging.currentPage<=1)this.store.actions.setResults(t.results),this.store.actions.setFacets(t.facets),this.store.actions.setSpellcheck(t.spellcheck);else{let o=(null!==(e=this.store.getState().results)&&void 0!==e?e:[]).concat(t.results);this.store.actions.setResults(o)}this.store.actions.setPaging(t.paging)}}catch(t){t instanceof Xe||!this.errorHandler||this.errorHandler(t)}}async fetchSuggestData(){var t;try{const e=this.store.getState(),o=e.request,r={input:e.liveQuery,filters:o.filters,sort:o.sort,contentLocale:o.contentLocale,scope:o.scope};null===(t=this.cancelableSuggest)||void 0===t||t.cancel(),this.cancelableSuggest=eo(this.service.launchSuggest(r));let i=await this.cancelableSuggest;this.store.actions.setSuggestResults(i.suggestions)}catch(t){t instanceof Xe||!this.errorHandler||this.errorHandler(t)}}clear(){this.store.clear()}}var Af=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 Bf extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const Ff=Symbol("registerInterval");class zf extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Ff]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Ff]):this.dispatchEvent(new Bf)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Ff,Af([Ce()],o.prototype,"stateManager",void 0),o}(dn)){}var Pf,_f=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 jf extends CustomEvent{constructor(t){super("ft-search-load-error",{detail:t})}}class Mf extends CustomEvent{constructor(t){super("ft-search-request-change",{detail:t})}}class Df extends CustomEvent{constructor(t,e,o){super("ft-search-results-change",{detail:{request:t,paging:e,spellcheck:o}})}}class Tf extends dn{get stateManager(){if(null==this._stateManager){const t=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=Wf.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0"),t),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"search")}return this._stateManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.addStore(_c)}render(){return Jt`
|
|
1089
|
+
`}update(e){var r;super.update(e),["context","key","defaultMessage"].some(n=>e.has(n))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Be.elementDefinitions={};Be.styles=Ll;lo([G()],Be.prototype,"editorMode",void 0);lo([O()],Be.prototype,"context",void 0);lo([O()],Be.prototype,"key",void 0);lo([fe([])],Be.prototype,"args",void 0);lo([O()],Be.prototype,"defaultMessage",void 0);var qe=class t{static build(e){return new t(e)}static fromGwt(e){return new t(e)}constructor(e){this.name=e,this.properties=new Proxy({},{get:(r,n)=>{let i=n;return a=>({context:this.name,key:i,args:typeof a=="function"?void 0:a,argsProvider:typeof a=="function"?a:void 0})}}),this.messages=new Proxy({},{get:(r,n)=>(...i)=>Sr.resolveMessage(this.name,n,...i)})}};B("ft-i18n")(Be);var Fl=R`
|
|
1090
|
+
`;var Yd={setRequest:(t,e)=>{t.request=e.payload},setRequestQuery:(t,e)=>{t.request.query=e.payload},setRequestContentLocale:(t,e)=>{t.request.contentLocale=e.payload},setPageSize:(t,e)=>{t.request.paging.perPage=e.payload},setPageNumber:(t,e)=>{t.request.paging.page=e.payload},setRequestSort:(t,e)=>{t.request.sort=e.payload},setRequestFilters:(t,e)=>{t.request.filters=e.payload},setRequestFacets:(t,e)=>{t.request.facets=e.payload},setRequestVirtualField:(t,e)=>{t.request.virtualField=e.payload},setRequestScope:(t,e)=>{t.request.scope=e.payload},setRequestClusterSortCriterion:(t,e)=>{t.request.clusterSortCriterions=e.payload},setResults:(t,e)=>{t.results=e.payload},setFacets:(t,e)=>{t.facets=e.payload},setSpellcheck:(t,e)=>{t.spellcheck=e.payload},setLocales:(t,e)=>{t.locales=e.payload},setPaging:(t,e)=>{t.paging=e.payload},setLiveQuery:(t,e)=>{t.liveQuery=e.payload},setSuggestResults:(t,e)=>{t.suggestResults=e.payload},setRequestPeriodFilter:(t,e)=>{t.request.periodFilter=e.payload}},Wl=t=>st.get({name:"ft-search-"+t,initialState:{request:{query:"",filters:[],facets:[],sort:[],paging:{page:1,perPage:20}},liveQuery:""},reducers:Yd});var xC=Cp(zl(),1);var jl;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(jl||(jl={}));var Vl;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Vl||(Vl={}));var Kl;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(Kl||(Kl={}));var Gl;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT"})(Gl||(Gl={}));var Zl;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Zl||(Zl={}));var ql;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(ql||(ql={}));var Yl;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Yl||(Yl={}));var Xl;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Xl||(Xl={}));var Jl;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Jl||(Jl={}));var Ql;(function(t){t.ASC="ASC",t.DESC="DESC"})(Ql||(Ql={}));var ep;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(ep||(ep={}));var Or;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Or||(Or={}));var tp;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(tp||(tp={}));var pn;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(pn||(pn={}));var rp;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(rp||(rp={}));var Cr;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(Cr||(Cr={}));var Er;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"})(Er||(Er={}));var ce;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"})(ce||(ce={}));var op;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(op||(op={}));var mC={[ce.PERSONAL_BOOK_SHARE_USER]:[ce.PERSONAL_BOOK_USER],[ce.HTML_EXPORT_USER]:[ce.PERSONAL_BOOK_USER],[ce.PDF_EXPORT_USER]:[ce.PERSONAL_BOOK_USER],[ce.KHUB_ADMIN]:[ce.CONTENT_PUBLISHER],[ce.ADMIN]:[ce.KHUB_ADMIN,ce.USERS_ADMIN,ce.PORTAL_ADMIN],[ce.DEVELOPER]:[ce.BETA_USER,ce.DEBUG_USER]};var un=class extends Ze{constructor(){super(),this.cache.registerFinal("available-locales",()=>this.api.getAvailableSearchLocales())}async launchSearch(e){return this.api.search(e)}async launchSuggest(e){return this.api.getSuggestions(e)}async getAvailableSearchLocales(){return this.cache.get("available-locales")}};var Xd=t=>t.request.virtualField===Or.TITLE_ONLY&&t.request.scope===Er.DOCUMENTS,dn=class t extends Event{constructor(){super(t.eventName)}};dn.eventName="search-context-clear-all-filters";var po=class t{static build(e,r){return new t(Wl(e.trim()||"context"),r)}constructor(e,r){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.searchDebouncer=new pe(100),this.suggestDebouncer=new pe(300),this.service=r??new un}async initService(){return this.store.actions.setLocales((await this.service.getAvailableSearchLocales()).contentLocales),this.launchSearch()}setQuery(e){this.store.actions.setRequestQuery(e),this.store.actions.setLiveQuery(e),this.store.actions.setPageNumber(1),this.launchSearch()}setContentLocale(e){let r=this.store.getState().locales,n=this.store.getState().request.contentLocale;if(e!=n){if(r){let i=a=>r.some(s=>s.lang==a);i(e)||(e=i(n)?n:r[0].lang)}this.store.actions.setRequestContentLocale(e),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([]),this.launchSearch()}return e}setPageSize(e){this.store.actions.setPageSize(e),this.launchSearch()}setPageNumber(e){this.store.actions.setPageNumber(e),this.launchSearch()}setSort(e){this.store.actions.setRequestSort(e),this.store.actions.setPageNumber(1),this.launchSearch()}setFilters(e){let r=e.filter(n=>n.values.length>0);this.store.actions.setRequestFilters(r),this.store.actions.setPageNumber(1),r.forEach(n=>{this.facetIds.includes(n.key)||(this.facetIds=[...this.facetIds,n.key])}),this.launchSearch()}setClusterSortCriterion(e){this.store.actions.setRequestClusterSortCriterion(e),this.launchSearch()}setSearchInDocumentTitlesOnly(e){e?(this.store.actions.setRequestVirtualField(Or.TITLE_ONLY),this.store.actions.setRequestScope(Er.DOCUMENTS)):(this.store.actions.setRequestVirtualField(Or.EVERYWHERE),this.store.actions.setRequestScope(Er.DEFAULT)),this.launchSearch()}get searchInDocumentTitlesOnly(){return Xd(this.store.getState())}get periodFilter(){return this.store.getState().request.periodFilter}clearAllFilters(){this.setFilters([]),this.store.eventBus.dispatchEvent(new dn)}addFacet(e){this.facetIds=[...this.facetIds,e],this.launchSearch()}replaceFacet(e,r){let n=this.facetIds.filter(i=>i!=e);r&&n.push(r),this.facetIds=n,this.launchSearch()}get facetIds(){return this.store.getState().request.facets.map(e=>e.id)}set facetIds(e){let n=[...new Set(e)].map(i=>({id:i}));this.store.actions.setRequestFacets(n)}setFilter(e,r){let n=this.store.getState().request.filters,i={key:e,values:r,negative:!1},a=[...n.filter(s=>s.key!==e),i];this.setFilters(a)}setLiveQuery(e){this.store.actions.setLiveQuery(e),this.launchSuggest()}setRequest(e){this.store.actions.setRequest(e),this.store.actions.setLiveQuery(e.query),this.store.actions.setPageNumber(1),this.launchSearch()}setScope(e){this.store.actions.setRequestScope(e),this.launchSearch()}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e,this.launchSearch()}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}setPeriodFilter(e){this.store.actions.setRequestPeriodFilter(e),this.store.actions.setPageNumber(1),this.launchSearch()}launchSearch(){return this.searchDebouncer.run(()=>this.fetchSearchData())}launchSuggest(){return this.suggestDebouncer.run(()=>this.fetchSuggestData())}async fetchSearchData(){var e,r;try{(e=this.cancelableSearch)===null||e===void 0||e.cancel();let n=this.store.getState().request;if(this.store.actions.setPaging(void 0),this.ignoreEmptyQuery&&n.query.length==0)this.store.actions.setResults(void 0),this.store.actions.setFacets(void 0),this.store.actions.setSpellcheck(void 0);else{this.cancelableSearch=or(this.service.launchSearch(n));let i=await this.cancelableSearch;if(i.paging.currentPage<=1)this.store.actions.setResults(i.results),this.store.actions.setFacets(i.facets),this.store.actions.setSpellcheck(i.spellcheck);else{let a=((r=this.store.getState().results)!==null&&r!==void 0?r:[]).concat(i.results);this.store.actions.setResults(a)}this.store.actions.setPaging(i.paging)}}catch(n){!(n instanceof mt)&&this.errorHandler&&this.errorHandler(n)}}async fetchSuggestData(){var e;try{let r=this.store.getState(),n=r.request,i={input:r.liveQuery,filters:n.filters,sort:n.sort,contentLocale:n.contentLocale,scope:n.scope};(e=this.cancelableSuggest)===null||e===void 0||e.cancel(),this.cancelableSuggest=or(this.service.launchSuggest(i));let a=await this.cancelableSuggest;this.store.actions.setSuggestResults(a.suggestions)}catch(r){!(r instanceof mt)&&this.errorHandler&&this.errorHandler(r)}}clear(){this.store.clear()}};var Jd=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Da=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},Ma=Symbol("registerInterval");function Qd(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Ma]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Ma]):this.dispatchEvent(new Da)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Ma,Jd([ie()],r.prototype,"stateManager",void 0),r}var we=class extends Qd(xe){};var ye=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Ua=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e})}},Ba=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e})}},Fa=class extends CustomEvent{constructor(e,r,n){super("ft-search-results-change",{detail:{request:e,paging:r,spellcheck:n}})}},ee=class extends xe{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=po.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),e),this._stateManager.errorHandler=r=>this.handleLoadError(r),this.addStore(this.stateManager.store,"search")}return this._stateManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.addStore(F)}render(){return L`
|
|
1228
1091
|
<slot @register-ft-search-component=${this.registerComponent}></slot>
|
|
1229
|
-
`}update(
|
|
1092
|
+
`}update(e){super.update(e),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.setContentLocale(this.contentLocale),e.has("session")&&this.session&&this.stateManager.initService(),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("periodFilter")&&this.periodFilter!==void 0&&this.stateManager.setPeriodFilter(this.periodFilter)}connectedCallback(){super.connectedCallback(),this.stateManager.setQuery(this.query),this.stateManager.setContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort)}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new Ba(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new Fa(this.request,this.paging,this.autocorrect))}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new Ua(e))}reloadSavedSearches(){Ul.clearMySearches()}clear(){this.stateManager.clear()}};ee.elementDefinitions={};ee.styles=Fl;ye([O()],ee.prototype,"query",void 0);ye([O()],ee.prototype,"contentLocale",void 0);ye([O({type:Number})],ee.prototype,"pageSize",void 0);ye([O({type:Boolean})],ee.prototype,"searchInDocumentTitlesOnly",void 0);ye([O()],ee.prototype,"periodFilter",void 0);ye([O()],ee.prototype,"scope",void 0);ye([O({type:Boolean})],ee.prototype,"ignoreEmptyQuery",void 0);ye([G({store:F.name})],ee.prototype,"openExternalDocumentInNewTab",void 0);ye([fe([])],ee.prototype,"filters",void 0);ye([fe([])],ee.prototype,"sort",void 0);ye([G({store:"search"})],ee.prototype,"request",void 0);ye([G({store:"search"})],ee.prototype,"paging",void 0);ye([G({store:"search",selector:t=>t.spellcheck})],ee.prototype,"autocorrect",void 0);ye([G({store:F.name})],ee.prototype,"session",void 0);ye([O({attribute:!1})],ee.prototype,"searchServiceProvider",void 0);B("ft-search-context")(ee);var np;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(np||(np={}));var ef=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Ha=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Wa=Symbol("registerInterval");function tf(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var i;return(i=this.stateManager)===null||i===void 0?void 0:i.service}connectedCallback(){super.connectedCallback(),this[Wa]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Wa]):this.dispatchEvent(new Ha)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Wa,ef([ie()],r.prototype,"stateManager",void 0),r}var fn=class extends tf(xe){};var ip=R`
|
|
1230
1093
|
|
|
1231
|
-
|
|
1094
|
+
`;var wr=qe.build("searchResultsNumber"),ap={results:"{0} results","results[\\=1]":"1 result"};var rf=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},lt=class extends Le(we){constructor(){super(),this.addI18nContext(wr,ap)}render(){return this.paging==null?U:L`
|
|
1232
1095
|
<ft-typography variant="body1">
|
|
1233
|
-
${
|
|
1096
|
+
${wr.messages.results(this.paging.totalClustersCount)}
|
|
1234
1097
|
</ft-typography>
|
|
1235
|
-
`}}
|
|
1098
|
+
`}};lt.elementDefinitions={"ft-typography":Q};lt.styles=ip;rf([G()],lt.prototype,"paging",void 0);B("ft-search-results-number")(lt);var uo=qe.build("designedSearchInput");var sp=R`
|
|
1236
1099
|
* {
|
|
1237
1100
|
box-sizing: border-box;
|
|
1238
1101
|
}
|
|
1239
1102
|
|
|
1240
1103
|
.ft-search-input-suggestion {
|
|
1241
1104
|
position: absolute;
|
|
1242
|
-
z-index: ${
|
|
1105
|
+
z-index: ${q.floatingZIndex};
|
|
1243
1106
|
top: calc(100% + 2px);
|
|
1244
1107
|
left: -1px;
|
|
1245
1108
|
right: -1px;
|
|
1246
|
-
background: ${
|
|
1247
|
-
border: 1px solid ${
|
|
1248
|
-
border-radius: 0 0 ${
|
|
1249
|
-
box-shadow: ${
|
|
1109
|
+
background: ${q.colorSurface};
|
|
1110
|
+
border: 1px solid ${q.colorOutline};
|
|
1111
|
+
border-radius: 0 0 ${q.borderRadius} ${q.borderRadius};
|
|
1112
|
+
box-shadow: ${q.elevation02};
|
|
1250
1113
|
}
|
|
1251
1114
|
|
|
1252
1115
|
.ft-search-input-suggestion--suggestion {
|
|
@@ -1257,7 +1120,7 @@ const ec=Symbol.for(""),oc=t=>{if(t?.r===ec)return t?._$litStatic$},rc=t=>({_$li
|
|
|
1257
1120
|
padding: 8px;
|
|
1258
1121
|
gap: 8px;
|
|
1259
1122
|
cursor: pointer;
|
|
1260
|
-
color: ${
|
|
1123
|
+
color: ${q.colorOnSurface};
|
|
1261
1124
|
min-height: 44px;
|
|
1262
1125
|
}
|
|
1263
1126
|
|
|
@@ -1274,26 +1137,26 @@ const ec=Symbol.for(""),oc=t=>{if(t?.r===ec)return t?._$litStatic$},rc=t=>({_$li
|
|
|
1274
1137
|
flex-grow: 1;
|
|
1275
1138
|
flex-shrink: 1;
|
|
1276
1139
|
}
|
|
1277
|
-
`;var
|
|
1140
|
+
`;var cp=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},za=class extends CustomEvent{constructor(e){super("suggestion-selected",{detail:e})}},qt=class extends we{render(){return L`
|
|
1278
1141
|
<div class="ft-search-input-suggestion ft-word-wrap"
|
|
1279
1142
|
part="container"
|
|
1280
|
-
@keydown=${
|
|
1281
|
-
${
|
|
1143
|
+
@keydown=${e=>this.onSuggestKeyDown(e)}>
|
|
1144
|
+
${Vr(this.suggestResults||[],e=>e.value,e=>L`
|
|
1282
1145
|
<a href="#"
|
|
1283
1146
|
part="suggestion"
|
|
1284
1147
|
class="ft-search-input-suggestion--suggestion"
|
|
1285
|
-
@keyup=${
|
|
1286
|
-
@click=${
|
|
1148
|
+
@keyup=${r=>this.onSuggestKeyUp(r,e.value)}
|
|
1149
|
+
@click=${r=>this.onSuggestSelected(r,e.value)}>
|
|
1287
1150
|
<ft-ripple></ft-ripple>
|
|
1288
|
-
${this.getIcon(
|
|
1289
|
-
<ft-typography variant="body1">${
|
|
1151
|
+
${this.getIcon(e)}
|
|
1152
|
+
<ft-typography variant="body1">${e.value}</ft-typography>
|
|
1290
1153
|
</a>
|
|
1291
|
-
`)
|
|
1154
|
+
`)}
|
|
1292
1155
|
</div>
|
|
1293
|
-
`}onSuggestKeyDown(
|
|
1294
|
-
<ft-icon .variant="${
|
|
1295
|
-
`}getFocusedSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion:focus-within")}getLastSuggestionElement(){let
|
|
1296
|
-
<div class="${
|
|
1156
|
+
`}onSuggestKeyDown(e){var r,n,i,a,s,c;switch(e.key){case"ArrowUp":(i=(n=(r=this.getFocusedSuggestionElement())===null||r===void 0?void 0:r.previousElementSibling)!==null&&n!==void 0?n:this.getLastSuggestionElement())===null||i===void 0||i.focus(),e.preventDefault(),e.stopPropagation();break;case"ArrowDown":(c=(s=(a=this.getFocusedSuggestionElement())===null||a===void 0?void 0:a.nextElementSibling)!==null&&s!==void 0?s:this.getFirstSuggestionElement())===null||c===void 0||c.focus(),e.preventDefault(),e.stopPropagation();break}}onSuggestKeyUp(e,r){(e.key==="Enter"||e.key===" ")&&this.onSuggestSelected(e,r)}onSuggestSelected(e,r){e.preventDefault(),this.dispatchEvent(new za(r))}getIcon(e){let r=e.type==="DOCUMENT"?Ue.file_format:Ue.fluid_topics,n;switch(e.type){case"MAP":n=e.editorialType==="BOOK"?wt.BOOK:wt.ARTICLE;break;case"DOCUMENT":n=Rl(e.mimeType,e.filenameExtension);break;case"TOPIC":n=wt.TOPICS;break}return L`
|
|
1157
|
+
<ft-icon .variant="${r}" .value="${n}" part="suggestion-icon"></ft-icon>
|
|
1158
|
+
`}getFocusedSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion:focus-within")}getLastSuggestionElement(){let e=this.shadowRoot.querySelectorAll(".ft-search-input-suggestion--suggestion");return e.length>0?e[e.length-1]:null}getFirstSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion")}focusFirstSuggestion(){var e;(e=this.getFirstSuggestionElement())===null||e===void 0||e.focus()}};qt.elementDefinitions={"ft-ripple":Z,"ft-typography":Q,"ft-icon":Ee};qt.styles=[zi,sp];cp([G()],qt.prototype,"suggestResults",void 0);qt=cp([$n("ft-search-input-suggestion")],qt);var Yt=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},ge=class extends Le(we){constructor(){super(),this.liveQuery="",this.forceCloseSuggestion=!1,this.placeholder=uo.messages.placeholder(),this.addI18nContext(uo)}render(){var e,r;let n={"ft-search-input":!0,"ft-search-input--with-suggestions":(r=(e=this.suggestResults)===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r:!1,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion};return L`
|
|
1159
|
+
<div class="${tt(n)}" @focusout=${()=>this.forceCloseSuggestion=!1}>
|
|
1297
1160
|
<div class="ft-search-input--input-container" part="input-container" tabindex="-1">
|
|
1298
1161
|
<div class="ft-search-input--input-outline" part="input-outline">
|
|
1299
1162
|
<input class="ft-search-input--input ft-typography--body2"
|
|
@@ -1301,22 +1164,22 @@ const ec=Symbol.for(""),oc=t=>{if(t?.r===ec)return t?._$litStatic$},rc=t=>({_$li
|
|
|
1301
1164
|
type="text"
|
|
1302
1165
|
placeholder="${this.placeholder}"
|
|
1303
1166
|
.value="${this.liveQuery}"
|
|
1304
|
-
@input=${
|
|
1305
|
-
@keydown=${
|
|
1306
|
-
@keyup=${
|
|
1167
|
+
@input=${i=>this.onInput(i)}
|
|
1168
|
+
@keydown=${i=>this.onSearchBarKeyDown(i)}
|
|
1169
|
+
@keyup=${i=>this.onSearchBarKeyUp(i)}>
|
|
1307
1170
|
</div>
|
|
1308
1171
|
<ft-search-input-suggestion exportpartsPrefix="suggestion"
|
|
1309
1172
|
@suggestion-selected=${this.onSuggestionSelected}
|
|
1310
1173
|
></ft-search-input-suggestion>
|
|
1311
1174
|
</div>
|
|
1312
1175
|
<div class="ft-search-input--actions" part="actions">
|
|
1313
|
-
${this.liveQuery?
|
|
1176
|
+
${this.liveQuery?L`
|
|
1314
1177
|
<ft-button id="clear-button"
|
|
1315
1178
|
class="ft-search-input--clear-query"
|
|
1316
1179
|
part="clear-query"
|
|
1317
1180
|
icon="close"
|
|
1318
1181
|
round dense
|
|
1319
|
-
label="${
|
|
1182
|
+
label="${uo.messages.clearButton()}"
|
|
1320
1183
|
@click=${()=>this.liveQuery=""}
|
|
1321
1184
|
></ft-button>
|
|
1322
1185
|
<div class="ft-search-input--separator"></div>
|
|
@@ -1325,55 +1188,50 @@ const ec=Symbol.for(""),oc=t=>{if(t?.r===ec)return t?._$litStatic$},rc=t=>({_$li
|
|
|
1325
1188
|
part="launch-search-in-input"
|
|
1326
1189
|
icon="search"
|
|
1327
1190
|
round dense
|
|
1328
|
-
label="${
|
|
1191
|
+
label="${uo.messages.searchButton()}"
|
|
1329
1192
|
@click=${()=>this.launchSearch(this.liveQuery)}
|
|
1330
1193
|
></ft-button>
|
|
1331
1194
|
</div>
|
|
1332
1195
|
</div>
|
|
1333
|
-
`}onSearchBarKeyDown(
|
|
1196
|
+
`}onSearchBarKeyDown(e){switch(e.key){case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestion.focusFirstSuggestion();break;case"Backspace":e.stopPropagation();break}}onSearchBarKeyUp(e){switch(e.key){case"Backspace":e.stopPropagation();break;case"Enter":this.launchSearch(this.input.value);break;default:break}}onInput(e){var r;(r=this.stateManager)===null||r===void 0||r.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}launchSearch(e){var r;(r=this.stateManager)===null||r===void 0||r.setQuery(e),this.forceCloseSuggestion=!0,this.dispatchEvent(new CustomEvent("change"))}onSuggestionSelected(e){this.launchSearch(e.detail)}};ge.elementDefinitions={"ft-search-input-suggestion":qt,"ft-button":he};ge.styles=[en,_l];Yt([G()],ge.prototype,"request",void 0);Yt([G()],ge.prototype,"liveQuery",void 0);Yt([G()],ge.prototype,"suggestResults",void 0);Yt([ie()],ge.prototype,"forceCloseSuggestion",void 0);Yt([O({type:String})],ge.prototype,"placeholder",void 0);Yt([se(".ft-search-input--input")],ge.prototype,"input",void 0);Yt([se("ft-search-input-suggestion")],ge.prototype,"suggestion",void 0);B("ft-search-input")(ge);var lp=R`
|
|
1334
1197
|
[part="no-results-message"] {
|
|
1335
1198
|
text-align: center;
|
|
1336
1199
|
padding: 12px;
|
|
1337
1200
|
}
|
|
1338
|
-
|
|
1201
|
+
`;var pp=R`
|
|
1339
1202
|
a {
|
|
1340
1203
|
color: inherit;
|
|
1341
1204
|
text-decoration: inherit;
|
|
1342
1205
|
}
|
|
1343
|
-
`;class
|
|
1206
|
+
`;var hn=class{constructor(e){this.onResultSelected=e,this.registeredComponents=[],this.registeredMetadata=new Set}registerComponent(e){e.setResultStateManager(this),this.registeredComponents.push(e),this.bindComponent(e)}unregisterComponent(e){this.registeredComponents.splice(this.registeredComponents.indexOf(e),1),e.cluster=void 0,e.result=void 0,e.rank=void 0}registerMetadata(e){this.registeredMetadata.add(e)}unregisterMetadata(e){this.registeredMetadata.delete(e)}updateCluster(e,r){this.cluster=e,this.rank=r,this.selectResult(this.cluster.entries[0])}selectResult(e){this.result=e,this.onResultSelected(e),this.registeredComponents.forEach(r=>this.bindComponent(r))}clear(){this.registeredComponents=[]}bindComponent(e){e.cluster=this.cluster,e.result=this.result,e.rank=this.rank}};var Va=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},ja=class extends CustomEvent{constructor(e){super("ft-search-result-cluster-change",{detail:e,bubbles:!0,composed:!0})}},pt=class extends K{constructor(){super(...arguments),this.index=0,this.stateManager=new hn(e=>this.onResultSelected(e))}render(){return L`
|
|
1344
1207
|
<slot @register-ft-search-result-component=${this.registerComponent}></slot>
|
|
1345
|
-
`}onResultSelected(
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
* Copyright 2018 Google LLC
|
|
1349
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
1350
|
-
*/function yh(t){var e,o,r,i,n;return(null!==(i=null!==(o=null===(e=t.map)||void 0===e?void 0:e.openMode)&&void 0!==o?o:null===(r=t.topic)||void 0===r?void 0:r.openMode)&&void 0!==i?i:null===(n=t.document)||void 0===n?void 0:n.openMode)===Nf.EXTERNAL}function bh(t){var e,o,r,i,n;if(yh(t))return null!==(i=null!==(o=null===(e=t.map)||void 0===e?void 0:e.originUrl)&&void 0!==o?o:null===(r=t.topic)||void 0===r?void 0:r.originUrl)&&void 0!==i?i:null===(n=t.document)||void 0===n?void 0:n.originUrl;switch(t.type){case Rf.MAP:return t.map.readerUrl;case Rf.DOCUMENT:return t.document.viewerUrl;case Rf.TOPIC:return t.topic.readerUrl}return""}function mh(t,e){return(t=>t??K)(e&&yh(t)?"_blank":void 0)}class vh extends CustomEvent{constructor(t,e){super("ft-search-result-click",{detail:{result:t,rank:e},bubbles:!0,composed:!0})}}class xh extends gh{render(){var t;return this.result?Jt`
|
|
1351
|
-
<a href="${this.result?bh(this.result):""}" @click=${this.onResultClick} target="${mh(this.result,null===(t=this.stateManager)||void 0===t?void 0:t.openExternalDocumentInNewTab)}">
|
|
1352
|
-
<ft-typography variant="title" part="text">${Je(this.selectTitle(this.result))}</ft-typography>
|
|
1208
|
+
`}onResultSelected(e){this.result=e,this.dispatchEvent(new ja(this.result))}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){this.stateManager.registerComponent(e)}update(e){super.update(e),e.has("cluster")&&this.cluster&&this.stateManager.updateCluster(this.cluster,this.index+1)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.clear()}};pt.elementDefinitions={};pt.styles=pp;Va([O({attribute:!1})],pt.prototype,"cluster",void 0);Va([ie()],pt.prototype,"result",void 0);Va([O()],pt.prototype,"index",void 0);B("ft-search-result-context")(pt);var Ka=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Za=class extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}},Ga=Symbol("registerInterval");function of(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setResultStateManager(i){this.resultStateManager=i}unregisterResultStateManager(){this.resultStateManager&&(this.resultStateManager.unregisterComponent(this),this.resultStateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Ga]=window.setInterval(()=>this.tryToRegisterToResultContext(),50)}tryToRegisterToResultContext(){this.result!=null?window.clearInterval(this[Ga]):this.dispatchEvent(new Za)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterResultStateManager()}}return e=Ga,Ka([O({attribute:!1})],r.prototype,"cluster",void 0),Ka([O({attribute:!1})],r.prototype,"result",void 0),Ka([O({attribute:!1,type:Number})],r.prototype,"rank",void 0),r}var Ar=class extends of(we){};var up=t=>t??J;function dp(t){var e,r,n,i,a;return((i=(r=(e=t.map)===null||e===void 0?void 0:e.openMode)!==null&&r!==void 0?r:(n=t.topic)===null||n===void 0?void 0:n.openMode)!==null&&i!==void 0?i:(a=t.document)===null||a===void 0?void 0:a.openMode)===pn.EXTERNAL}function mn(t){var e,r,n,i,a;if(dp(t))return(i=(r=(e=t.map)===null||e===void 0?void 0:e.originUrl)!==null&&r!==void 0?r:(n=t.topic)===null||n===void 0?void 0:n.originUrl)!==null&&i!==void 0?i:(a=t.document)===null||a===void 0?void 0:a.originUrl;switch(t.type){case Cr.MAP:return t.map.readerUrl;case Cr.DOCUMENT:return t.document.viewerUrl;case Cr.TOPIC:return t.topic.readerUrl}return""}function fp(t,e){return up(e&&dp(t)?"_blank":void 0)}var Rr=class extends CustomEvent{constructor(e,r){super("ft-search-result-click",{detail:{result:e,rank:r},bubbles:!0,composed:!0})}};var Nr=class extends Ar{render(){var e;return this.result?L`
|
|
1209
|
+
<a href="${this.result?mn(this.result):""}" @click=${this.onResultClick} target="${fp(this.result,(e=this.stateManager)===null||e===void 0?void 0:e.openExternalDocumentInNewTab)}">
|
|
1210
|
+
<ft-typography variant="title" part="text">${Bt(this.selectTitle(this.result))}</ft-typography>
|
|
1353
1211
|
</a>
|
|
1354
|
-
`:
|
|
1355
|
-
<ft-typography variant="body1" part="text">${
|
|
1356
|
-
`:
|
|
1212
|
+
`:U}onResultClick(){this.dispatchEvent(new Rr(this.result,this.rank))}selectTitle(e){switch(e.type){case"MAP":return e.map.htmlTitle;case"DOCUMENT":return e.document.htmlTitle;case"TOPIC":return e.topic.htmlTitle}return""}};Nr.elementDefinitions={"ft-typography":Q};Nr.styles=Tl;B("ft-search-result-title")(Nr);var _r=class extends Ar{render(){let e=this.result?this.selectAbstract(this.result):void 0;return e?L`
|
|
1213
|
+
<ft-typography variant="body1" part="text">${Bt(e)}</ft-typography>
|
|
1214
|
+
`:L`
|
|
1357
1215
|
<style>
|
|
1358
1216
|
:host {
|
|
1359
1217
|
display: none !important;
|
|
1360
1218
|
}
|
|
1361
1219
|
</style>
|
|
1362
|
-
`}selectAbstract(
|
|
1220
|
+
`}selectAbstract(e){switch(e.type){case"MAP":return e.map.htmlExcerpt;case"DOCUMENT":return e.document.htmlExcerpt;case"TOPIC":return e.topic.htmlExcerpt}return""}};_r.elementDefinitions={"ft-typography":Q};_r.styles=Pl;B("ft-search-result-abstract")(_r);var Pr=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Te=class extends Le(we){constructor(){super(),this.clusterPolicy="display-first-result",this.displayNoResultsMessage=!1,this.renderResult=()=>L`
|
|
1363
1221
|
<ft-search-result-title></ft-search-result-title>
|
|
1364
1222
|
<ft-search-result-abstract></ft-search-result-abstract>
|
|
1365
|
-
`,this.clusterSortCriterion=[],this.selectedResultByCluster={},this.addI18nContext(
|
|
1366
|
-
<ft-typography part="no-results-message" variant="body1">${
|
|
1367
|
-
`;
|
|
1368
|
-
<ft-search-result-context .cluster=${
|
|
1369
|
-
@ft-search-result-cluster-change="${
|
|
1370
|
-
${this.renderResult(
|
|
1223
|
+
`,this.clusterSortCriterion=[],this.selectedResultByCluster={},this.addI18nContext(wr)}render(){if(this.displayNoResultsMessage&&this.results!=null&&this.results.length==0)return L`
|
|
1224
|
+
<ft-typography part="no-results-message" variant="body1">${wr.messages.results(0)}</ft-typography>
|
|
1225
|
+
`;let e=this.buildClusters();return Vr(e,r=>r.id,(r,n)=>{var i;return L`
|
|
1226
|
+
<ft-search-result-context .cluster=${r} index="${n}"
|
|
1227
|
+
@ft-search-result-cluster-change="${a=>this.onClusterChange(r.id,a.detail)}">
|
|
1228
|
+
${this.renderResult((i=this.selectedResultByCluster[r.id])!==null&&i!==void 0?i:r.entries[0],n)}
|
|
1371
1229
|
</ft-search-result-context>
|
|
1372
|
-
`})
|
|
1373
|
-
<div id="container" part="container" class=${
|
|
1374
|
-
${this.clickable?
|
|
1230
|
+
`})}update(e){var r;super.update(e),(e.has("clusterSortCriterion")||e.has("stateManager")&&this.clusterSortCriterion)&&((r=this.stateManager)===null||r===void 0||r.setClusterSortCriterion(this.clusterSortCriterion))}onClusterChange(e,r){this.selectedResultByCluster[e]=r}buildClusters(){switch(this.clusterPolicy){case"display-all-results":return this.buildAllResultsClusters();default:return this.buildFullClusters()}}buildFullClusters(){var e,r;return(r=(e=this.results)===null||e===void 0?void 0:e.map(n=>({id:this.clusterId(n.entries[0]),entries:n.entries})))!==null&&r!==void 0?r:[]}buildAllResultsClusters(){var e,r;let n=(r=(e=this.results)===null||e===void 0?void 0:e.flatMap(i=>i.entries.map(a=>({id:this.clusterId(a),entries:[a]}))))!==null&&r!==void 0?r:[];return this.request&&this.request.paging.page===1?n.slice(0,this.request.paging.perPage):n}clusterId(e){var r,n,i,a,s;return(a=(n=(r=e.map)===null||r===void 0?void 0:r.mapId)!==null&&n!==void 0?n:(i=e.topic)===null||i===void 0?void 0:i.tocId)!==null&&a!==void 0?a:(s=e.document)===null||s===void 0?void 0:s.documentId}};Te.styles=lp;Pr([O({type:String,attribute:"cluster-policy"})],Te.prototype,"clusterPolicy",void 0);Pr([O({type:Boolean})],Te.prototype,"displayNoResultsMessage",void 0);Pr([O({attribute:!1})],Te.prototype,"renderResult",void 0);Pr([fe([])],Te.prototype,"clusterSortCriterion",void 0);Pr([G()],Te.prototype,"request",void 0);Pr([G()],Te.prototype,"results",void 0);B("ft-search-results")(Te);var yn=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Ye=class extends K{constructor(){super(...arguments),this.title="",this.clickable=!1,this.selected=!1,this.noHeader=!1}render(){let e={selected:this.selected,clickable:this.clickable,"no-header":this.noHeader};return L`
|
|
1231
|
+
<div id="container" part="container" class=${tt(e)}>
|
|
1232
|
+
${this.clickable?L`
|
|
1375
1233
|
<ft-ripple primary ?selected=${this.selected}></ft-ripple>
|
|
1376
|
-
`:
|
|
1234
|
+
`:U}
|
|
1377
1235
|
<div id="header" part="header">
|
|
1378
1236
|
<ft-typography class="title" element="span" variant="title">${this.title}</ft-typography>
|
|
1379
1237
|
<slot name="header"></slot>
|
|
@@ -1387,48 +1245,254 @@ const ec=Symbol.for(""),oc=t=>{if(t?.r===ec)return t?._$litStatic$},rc=t=>({_$li
|
|
|
1387
1245
|
</ft-typography>
|
|
1388
1246
|
</div>
|
|
1389
1247
|
</div>
|
|
1390
|
-
`}}
|
|
1391
|
-
|
|
1248
|
+
`}};Ye.elementDefinitions={"ft-ripple":Z,"ft-typography":Q};Ye.styles=ol;yn([O()],Ye.prototype,"title",void 0);yn([O({type:Boolean})],Ye.prototype,"clickable",void 0);yn([O({type:Boolean})],Ye.prototype,"selected",void 0);yn([O({type:Boolean})],Ye.prototype,"noHeader",void 0);B("ft-card")(Ye);var hp=R`
|
|
1249
|
+
`;var qa=qe.fromGwt("designedActionBlockAriaLabels");var mp=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Xe=class extends Le(we){constructor(){super(),this.currentPage=1,this.isLastPage=!0,this.addI18nContext(qa)}render(){return this.isLastPage?U:L`
|
|
1392
1250
|
<ft-button @click="${this.loadMore}">
|
|
1393
|
-
${
|
|
1251
|
+
${qa.messages.searchPageLoadMore()}
|
|
1394
1252
|
</ft-button>
|
|
1395
|
-
`}loadMore(){var
|
|
1396
|
-
<style> ${
|
|
1397
|
-
<a href="${
|
|
1253
|
+
`}loadMore(){var e;(e=this.stateManager)===null||e===void 0||e.setPageNumber(this.currentPage+1)}};Xe.elementDefinitions={"ft-button":he};Xe.styles=hp;mp([G({store:"search",selector:t=>{var e,r;return(r=(e=t.paging)===null||e===void 0?void 0:e.currentPage)!==null&&r!==void 0?r:1}})],Xe.prototype,"currentPage",void 0);mp([G({store:"search",selector:t=>{var e,r;return(r=(e=t.paging)===null||e===void 0?void 0:e.isLastPage)!==null&&r!==void 0?r:!0}})],Xe.prototype,"isLastPage",void 0);B("ft-search-load-more-button")(Xe);var gn=class extends CustomEvent{constructor(e){super("ft-reader-search-in-document",{composed:!0,bubbles:!0,detail:e})}};var Ya=qe.build("designedReaderSearchInDocument");var At=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Ae=class extends Le(fn){constructor(){super(),this.searchInDocumentQuery="",this.hideResultTitle=!1,this.hideResultBreadcrumb=!1,this.hideResultAbstract=!1,this.hideResultsNumber=!1,this.userHasDoneManualAction=!1,this.uniqueId="search-in-document-"+(""+Math.round(Math.random()*999e3)).padStart(6,"0"),this.addI18nContext(Ya)}get filters(){return[{negative:!1,key:"ft:publicationId",values:[this.map.id]}]}renderResult(e,r){var n;return L`
|
|
1254
|
+
<style> ${$l}</style>
|
|
1255
|
+
<a href="${mn(e)}" @click="${()=>this.onLinkClick(e,r)} }">
|
|
1398
1256
|
<ft-card clickable noheader>
|
|
1399
1257
|
<div class="result-container">
|
|
1400
|
-
${this.hideResultTitle?
|
|
1258
|
+
${this.hideResultTitle?U:L`
|
|
1401
1259
|
<ft-search-result-title></ft-search-result-title>`}
|
|
1402
|
-
${this.hideResultBreadcrumb?
|
|
1403
|
-
<ft-typography class="breadcrumb" variant="caption">${
|
|
1260
|
+
${this.hideResultBreadcrumb?U:L`
|
|
1261
|
+
<ft-typography class="breadcrumb" variant="caption">${(n=e.topic)===null||n===void 0?void 0:n.breadcrumb.join(" > ")}</ft-typography>
|
|
1404
1262
|
`}
|
|
1405
|
-
${this.hideResultAbstract?
|
|
1263
|
+
${this.hideResultAbstract?U:L`
|
|
1406
1264
|
<ft-search-result-abstract></ft-search-result-abstract>
|
|
1407
1265
|
`}
|
|
1408
1266
|
</div>
|
|
1409
1267
|
</ft-card>
|
|
1410
1268
|
</a>
|
|
1411
|
-
`}render(){return this.map?
|
|
1269
|
+
`}render(){return this.map?L`
|
|
1412
1270
|
<ft-search-context id="${this.uniqueId}"
|
|
1413
1271
|
contentLocale="${this.map.lang}"
|
|
1414
1272
|
query="${this.searchInDocumentQuery}"
|
|
1415
1273
|
.filters=${this.filters}
|
|
1416
1274
|
scope="ALL_TOPICS"
|
|
1417
1275
|
ignoreEmptyQuery
|
|
1418
|
-
@ft-search-request-change=${
|
|
1419
|
-
@ft-search-results-change=${
|
|
1276
|
+
@ft-search-request-change=${e=>{var r;return(r=this.stateManager)===null||r===void 0?void 0:r.setSearchInDocumentQuery(e.detail.query)}}
|
|
1277
|
+
@ft-search-results-change=${e=>{var r,n;this.userHasDoneManualAction&&(this.dispatchEvent(new gn({mapId:this.map.id,mapTitle:this.map.title,metadata:(n=(r=this.map)===null||r===void 0?void 0:r.metadata)!==null&&n!==void 0?n:[],query:e.detail.request.query,searchResultsCount:e.detail.paging.totalResultsCount})),this.userHasDoneManualAction=!1)}}>
|
|
1420
1278
|
<div class="ft-search-in-doc--container">
|
|
1421
|
-
<ft-search-input placeholder=${
|
|
1422
|
-
${this.hideResultsNumber?
|
|
1423
|
-
<ft-search-results-number @ft-search-result-click=${
|
|
1279
|
+
<ft-search-input placeholder=${Ya.messages.placeholder()} @change="${()=>this.userHasDoneManualAction=!0}"></ft-search-input>
|
|
1280
|
+
${this.hideResultsNumber?U:L`
|
|
1281
|
+
<ft-search-results-number @ft-search-result-click=${e=>e.stopPropagation()}></ft-search-results-number>
|
|
1424
1282
|
`}
|
|
1425
1283
|
<ft-search-results ?displayNoResultsMessage=${this.hideResultsNumber}
|
|
1426
1284
|
cluster-policy="display-all-results"
|
|
1427
|
-
.renderResult=${(
|
|
1285
|
+
.renderResult=${(e,r)=>this.renderResult(e,r)}>
|
|
1428
1286
|
</ft-search-results>
|
|
1429
1287
|
<slot name="load-more">
|
|
1430
1288
|
<ft-search-load-more-button></ft-search-load-more-button>
|
|
1431
1289
|
</slot>
|
|
1432
1290
|
</div>
|
|
1433
1291
|
</ft-search-context>
|
|
1434
|
-
`:
|
|
1292
|
+
`:U}update(e){super.update(e),e.has("map")&&this.searchContext&&this.searchContext.clear(),["hideResultTitle","hideResultBreadcrumb","hideResultAbstract"].some(r=>e.has(r))&&this.searchResults&&this.searchResults.requestUpdate()}onLinkClick(e,r){this.dispatchEvent(new Rr(e,r))}};Ae.elementDefinitions={"ft-button":he,"ft-typography":Q,"ft-search-context":ee,"ft-search-input":ge,"ft-search-results-number":lt,"ft-search-results":Te,"ft-search-load-more-button":Xe};Ae.styles=Il;At([G()],Ae.prototype,"map",void 0);At([G()],Ae.prototype,"searchInDocumentQuery",void 0);At([se("ft-search-context")],Ae.prototype,"searchContext",void 0);At([se("ft-search-results")],Ae.prototype,"searchResults",void 0);At([O({type:Boolean})],Ae.prototype,"hideResultTitle",void 0);At([O({type:Boolean})],Ae.prototype,"hideResultBreadcrumb",void 0);At([O({type:Boolean})],Ae.prototype,"hideResultAbstract",void 0);At([O({type:Boolean})],Ae.prototype,"hideResultsNumber",void 0);B("ft-reader-search-in-document")(Ae);})();
|
|
1293
|
+
/*! Bundled license information:
|
|
1294
|
+
|
|
1295
|
+
@webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js:
|
|
1296
|
+
(**
|
|
1297
|
+
* @license
|
|
1298
|
+
* Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
|
|
1299
|
+
* This code may only be used under the BSD style license found at
|
|
1300
|
+
* http://polymer.github.io/LICENSE.txt
|
|
1301
|
+
* The complete set of authors may be found at
|
|
1302
|
+
* http://polymer.github.io/AUTHORS.txt
|
|
1303
|
+
* The complete set of contributors may be found at
|
|
1304
|
+
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
1305
|
+
* Code distributed by Google as part of the polymer project is also
|
|
1306
|
+
* subject to an additional IP rights grant found at
|
|
1307
|
+
* http://polymer.github.io/PATENTS.txt
|
|
1308
|
+
*)
|
|
1309
|
+
|
|
1310
|
+
@lit/reactive-element/css-tag.js:
|
|
1311
|
+
(**
|
|
1312
|
+
* @license
|
|
1313
|
+
* Copyright 2019 Google LLC
|
|
1314
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1315
|
+
*)
|
|
1316
|
+
|
|
1317
|
+
@lit/reactive-element/reactive-element.js:
|
|
1318
|
+
(**
|
|
1319
|
+
* @license
|
|
1320
|
+
* Copyright 2017 Google LLC
|
|
1321
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1322
|
+
*)
|
|
1323
|
+
|
|
1324
|
+
lit-html/lit-html.js:
|
|
1325
|
+
(**
|
|
1326
|
+
* @license
|
|
1327
|
+
* Copyright 2017 Google LLC
|
|
1328
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1329
|
+
*)
|
|
1330
|
+
|
|
1331
|
+
@lit/reactive-element/css-tag.js:
|
|
1332
|
+
(**
|
|
1333
|
+
* @license
|
|
1334
|
+
* Copyright 2019 Google LLC
|
|
1335
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1336
|
+
*)
|
|
1337
|
+
|
|
1338
|
+
@lit/reactive-element/reactive-element.js:
|
|
1339
|
+
(**
|
|
1340
|
+
* @license
|
|
1341
|
+
* Copyright 2017 Google LLC
|
|
1342
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1343
|
+
*)
|
|
1344
|
+
|
|
1345
|
+
lit-html/lit-html.js:
|
|
1346
|
+
(**
|
|
1347
|
+
* @license
|
|
1348
|
+
* Copyright 2017 Google LLC
|
|
1349
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1350
|
+
*)
|
|
1351
|
+
|
|
1352
|
+
lit-element/lit-element.js:
|
|
1353
|
+
(**
|
|
1354
|
+
* @license
|
|
1355
|
+
* Copyright 2017 Google LLC
|
|
1356
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1357
|
+
*)
|
|
1358
|
+
|
|
1359
|
+
lit-html/is-server.js:
|
|
1360
|
+
(**
|
|
1361
|
+
* @license
|
|
1362
|
+
* Copyright 2022 Google LLC
|
|
1363
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1364
|
+
*)
|
|
1365
|
+
|
|
1366
|
+
@lit/reactive-element/decorators/custom-element.js:
|
|
1367
|
+
(**
|
|
1368
|
+
* @license
|
|
1369
|
+
* Copyright 2017 Google LLC
|
|
1370
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1371
|
+
*)
|
|
1372
|
+
|
|
1373
|
+
@lit/reactive-element/decorators/property.js:
|
|
1374
|
+
(**
|
|
1375
|
+
* @license
|
|
1376
|
+
* Copyright 2017 Google LLC
|
|
1377
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1378
|
+
*)
|
|
1379
|
+
|
|
1380
|
+
@lit/reactive-element/decorators/state.js:
|
|
1381
|
+
(**
|
|
1382
|
+
* @license
|
|
1383
|
+
* Copyright 2017 Google LLC
|
|
1384
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1385
|
+
*)
|
|
1386
|
+
|
|
1387
|
+
@lit/reactive-element/decorators/event-options.js:
|
|
1388
|
+
(**
|
|
1389
|
+
* @license
|
|
1390
|
+
* Copyright 2017 Google LLC
|
|
1391
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1392
|
+
*)
|
|
1393
|
+
|
|
1394
|
+
@lit/reactive-element/decorators/base.js:
|
|
1395
|
+
(**
|
|
1396
|
+
* @license
|
|
1397
|
+
* Copyright 2017 Google LLC
|
|
1398
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1399
|
+
*)
|
|
1400
|
+
|
|
1401
|
+
@lit/reactive-element/decorators/query.js:
|
|
1402
|
+
(**
|
|
1403
|
+
* @license
|
|
1404
|
+
* Copyright 2017 Google LLC
|
|
1405
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1406
|
+
*)
|
|
1407
|
+
|
|
1408
|
+
@lit/reactive-element/decorators/query-all.js:
|
|
1409
|
+
(**
|
|
1410
|
+
* @license
|
|
1411
|
+
* Copyright 2017 Google LLC
|
|
1412
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1413
|
+
*)
|
|
1414
|
+
|
|
1415
|
+
@lit/reactive-element/decorators/query-async.js:
|
|
1416
|
+
(**
|
|
1417
|
+
* @license
|
|
1418
|
+
* Copyright 2017 Google LLC
|
|
1419
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1420
|
+
*)
|
|
1421
|
+
|
|
1422
|
+
@lit/reactive-element/decorators/query-assigned-elements.js:
|
|
1423
|
+
(**
|
|
1424
|
+
* @license
|
|
1425
|
+
* Copyright 2021 Google LLC
|
|
1426
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1427
|
+
*)
|
|
1428
|
+
|
|
1429
|
+
@lit/reactive-element/decorators/query-assigned-nodes.js:
|
|
1430
|
+
(**
|
|
1431
|
+
* @license
|
|
1432
|
+
* Copyright 2017 Google LLC
|
|
1433
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1434
|
+
*)
|
|
1435
|
+
|
|
1436
|
+
lit-html/directive.js:
|
|
1437
|
+
(**
|
|
1438
|
+
* @license
|
|
1439
|
+
* Copyright 2017 Google LLC
|
|
1440
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1441
|
+
*)
|
|
1442
|
+
|
|
1443
|
+
lit-html/directive-helpers.js:
|
|
1444
|
+
(**
|
|
1445
|
+
* @license
|
|
1446
|
+
* Copyright 2020 Google LLC
|
|
1447
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1448
|
+
*)
|
|
1449
|
+
|
|
1450
|
+
lit-html/directives/repeat.js:
|
|
1451
|
+
(**
|
|
1452
|
+
* @license
|
|
1453
|
+
* Copyright 2017 Google LLC
|
|
1454
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1455
|
+
*)
|
|
1456
|
+
|
|
1457
|
+
lit-html/directives/class-map.js:
|
|
1458
|
+
(**
|
|
1459
|
+
* @license
|
|
1460
|
+
* Copyright 2018 Google LLC
|
|
1461
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1462
|
+
*)
|
|
1463
|
+
|
|
1464
|
+
lit-html/directives/style-map.js:
|
|
1465
|
+
(**
|
|
1466
|
+
* @license
|
|
1467
|
+
* Copyright 2018 Google LLC
|
|
1468
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1469
|
+
*)
|
|
1470
|
+
|
|
1471
|
+
lit-html/directives/unsafe-html.js:
|
|
1472
|
+
(**
|
|
1473
|
+
* @license
|
|
1474
|
+
* Copyright 2017 Google LLC
|
|
1475
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1476
|
+
*)
|
|
1477
|
+
|
|
1478
|
+
@lit/reactive-element/css-tag.js:
|
|
1479
|
+
(**
|
|
1480
|
+
* @license
|
|
1481
|
+
* Copyright 2019 Google LLC
|
|
1482
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1483
|
+
*)
|
|
1484
|
+
|
|
1485
|
+
lit-html/static.js:
|
|
1486
|
+
(**
|
|
1487
|
+
* @license
|
|
1488
|
+
* Copyright 2020 Google LLC
|
|
1489
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1490
|
+
*)
|
|
1491
|
+
|
|
1492
|
+
lit-html/directives/if-defined.js:
|
|
1493
|
+
(**
|
|
1494
|
+
* @license
|
|
1495
|
+
* Copyright 2018 Google LLC
|
|
1496
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1497
|
+
*)
|
|
1498
|
+
*/
|