@fluid-topics/ft-search-selected-facets 1.0.59 → 1.0.60
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.
|
@@ -14,54 +14,54 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
16
|
*/
|
|
17
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,n=window.customElements,o=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,o){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(o))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=o.prototype.attributeChangedCallback,l=new Set(o.observedAttributes||[]);h(o,l,a);const c={elementClass:o,connectedCallback:o.prototype.connectedCallback,disconnectedCallback:o.prototype.disconnectedCallback,adoptedCallback:o.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:o.formAssociated,formAssociatedCallback:o.prototype.formAssociatedCallback,formDisabledCallback:o.prototype.formDisabledCallback,formResetCallback:o.prototype.formResetCallback,formStateRestoreCallback:o.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(o,c);let u=i.call(n,t);u||(u=f(t),e.call(n,t,u)),this===window.customElements&&(s.set(o,c),c.standInClass=u);const p=this._awaitingUpgrade.get(t);if(p){this._awaitingUpgrade.delete(t);for(const t of p)r.delete(t),d(t,c,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(o),this._whenDefinedPromises.delete(t)),o}upgrade(){b.push(this),n.upgrade.apply(n,arguments),b.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let n=this._awaitingUpgrade.get(e);n||this._awaitingUpgrade.set(e,n=new Set),i?n.add(t):n.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),o.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,u=t=>{let e=t.getRootNode();if(!c(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},f=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const n=u(i)||window.customElements,o=n._getDefinition(e);return o?d(i,o):r.set(i,n),i}connectedCallback(){const t=o.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=o.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=o.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=o.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=o.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=o.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=o.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,e,i)=>{if(0===e.size||void 0===i)return;const n=t.prototype.setAttribute;n&&(t.prototype.setAttribute=function(t,o){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r,o),i.call(this,r,t,o)}else n.call(this,r,o)});const o=t.prototype.removeAttribute;o&&(t.prototype.removeAttribute=function(t){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n),i.call(this,n,t,null)}else o.call(this,n)})},p=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):p(i)},d=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),o.set(t,e),l=t;try{new e.elementClass}catch(t){p(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const y=(t,e,i=void 0)=>{const n=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=n.apply(i||this,arguments);return void 0!==t&&a.set(t,this),b.pop(),t}};y(ShadowRoot,"createElement",document),y(ShadowRoot,"importNode",document),y(Element,"insertAdjacentHTML");const g=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){b.push(this),i.set.call(this,t),b.pop()}})};if(g(Element,"innerHTML"),g(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const n=e.call(this,...i);return t.set(n,this),n},i.forEach((e=>{const i=window.ElementInternals.prototype,n=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==o.get(i).formAssociated)throw new DOMException(`Failed to execute ${n} on 'ElementInternals': The target element is not a form-associated custom element.`);n?.call(this,...e)}}));class n extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const n=t.getAttribute("name"),o=e.get(n)||[];this[+i]=t,o.push(t),e.set(n,o)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new n(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=o.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(qo){const t=window.customElements.define;window.customElements.define=(e,i,n)=>{if(null!==i)try{t.bind(window.customElements)(e,i,n)}catch(t){console.info(e,i,n,t)}}}class e extends Error{constructor(t,e,i){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=i}}class i extends Promise{constructor(t){super(((i,n)=>t((t=>{this.isCanceled?n(new e("Promise has been canceled",t)):i(t)}),(t=>{this.isCanceled?n(new e("Promise has been canceled",void 0,t)):n(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class n{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 i&&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,n){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const o=(t=>new i(((e,i)=>t.then(e).catch(i))))(e());return this.content[t]=o,o.then((e=>(this.content[t]=e,null!=n&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),n)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class o{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 i=[...this.callbacks];this.callbacks=[];const n=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,o=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void n(t)}o(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,r=window.customElements,i=new WeakMap,n=new WeakMap,a=new WeakMap,l=new WeakMap;let s;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 l=i.prototype.attributeChangedCallback,s=new Set(i.observedAttributes||[]);h(i,s,l);const c={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:s};this._definitionsByTag.set(t,c),this._definitionsByClass.set(i,c);let f=e.call(r,t);f||(f=p(t),o.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),u(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){g.push(this),r.upgrade.apply(r,arguments),g.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let r=this._awaitingUpgrade.get(o);r||this._awaitingUpgrade.set(o,r=new Set),e?r.add(t):r.delete(t)}},window.HTMLElement=function(){let o=s;if(o)return s=void 0,o;const e=a.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),i.set(o,e),o},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,f=t=>{let o=t.getRootNode();if(!c(o)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),c(o)||(o=l.get(o)?.getRootNode()||document)}return o.customElements},p=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const r=f(e)||window.customElements,i=r._getDefinition(o);return i?u(e,i):n.set(e,r),e}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!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)}},h=(t,o,e)=>{if(0===o.size||void 0===e)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const n=t.toLowerCase();if(o.has(n)){const t=this.getAttribute(n);r.call(this,n,i),e.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(o.has(r)){const t=this.getAttribute(r);i.call(this,r),e.call(this,r,t,null)}else i.call(this,r)})},d=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t||"HTMLElement"===e?.prototype?.constructor?.name?Object.setPrototypeOf(o,window.HTMLElement):d(e)},u=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),i.set(t,o),s=t;try{new o.elementClass}catch(t){d(o.elementClass),new o.elementClass}o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=y.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let g=[document];const b=(t,o,e=void 0)=>{const r=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){g.push(this);const t=r.apply(e||this,arguments);return void 0!==t&&l.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){g.push(this),e.set.call(this,t),g.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,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const r=o.call(this,...e);return t.set(r,this),r},e.forEach((o=>{const e=window.ElementInternals.prototype,r=e[o];e[o]=function(...o){const e=t.get(this);if(!0!==i.get(e).formAssociated)throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`);r?.call(this,...o)}}));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 o=new Map;t.forEach(((t,e)=>{const r=t.getAttribute("name"),i=o.get(r)||[];this[+e]=t,i.push(t),o.set(r,i)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=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,[]),o=[];for(const e of t){const t=i.get(e);t&&!0!==t.formAssociated||o.push(e)}return new n(o)}})}}try{window.customElements.define("custom-element",null)}catch(Qi){const t=window.customElements.define;window.customElements.define=(o,e,r)=>{if(null!==e)try{t.bind(window.customElements)(o,e,r)}catch(t){console.info(o,e,r,t)}}}class o extends Error{constructor(t,o,e){super(t),this.canceledPromiseResult=o,this.canceledPromiseError=e}}class e extends Promise{constructor(t){super(((e,r)=>t((t=>{this.isCanceled?r(new o("Promise has been canceled",t)):e(t)}),(t=>{this.isCanceled?r(new o("Promise has been canceled",void 0,t)):r(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class r{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,o){this.loaders[t]=o,this.finalContent.delete(t)}registerFinal(t,o){this.loaders[t]=o,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 e&&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,o){this.forceClear(t),this.register(t,(async()=>o)),this.content[t]=o}setFinal(t,o){this.forceClear(t),this.registerFinal(t,(async()=>o)),this.content[t]=o}async get(t,o,r){if(void 0===this.content[t]){if(null==(o=null!=o?o:this.loaders[t]))throw new Error("Unknown cache key "+t);const i=(t=>new e(((o,e)=>t.then(o).catch(e))))(o());return this.content[t]=i,i.then((o=>(this.content[t]=o,null!=r&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),r)),o)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class i{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,o)=>{this.resolvePromise=t,this.rejectPromise=o}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,o;const e=[...this.callbacks];this.callbacks=[];const r=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,i=null!==(o=this.resolvePromise)&&void 0!==o?o:()=>null;this.clearPromise();for(let t of e)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}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
21
21
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
-
*/const
|
|
22
|
+
*/const n=(t,o)=>"method"===o.kind&&o.descriptor&&!("value"in o.descriptor)?{...o,finisher(e){e.createProperty(o.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:o.key,initializer(){"function"==typeof o.initializer&&(this[o.key]=o.initializer.call(this))},finisher(e){e.createProperty(o.key,t)}};function a(t){return(o,e)=>void 0!==e?((t,o,e)=>{o.constructor.createProperty(e,t)})(t,o,e):n(t,o)
|
|
23
23
|
/**
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2017 Google LLC
|
|
26
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
-
*/}function
|
|
27
|
+
*/}function l(t){return a({...t,state:!0})}
|
|
28
28
|
/**
|
|
29
29
|
* @license
|
|
30
30
|
* Copyright 2017 Google LLC
|
|
31
31
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
32
|
-
*/const
|
|
32
|
+
*/const s=({finisher:t,descriptor:o})=>(e,r)=>{var i;if(void 0===r){const r=null!==(i=e.originalKey)&&void 0!==i?i:e.key,n=null!=o?{kind:"method",placement:"prototype",key:r,descriptor:o(e.key)}:{...e,key:r};return null!=t&&(n.finisher=function(o){t(o,r)}),n}{const i=e.constructor;void 0!==o&&Object.defineProperty(e,r,o(r)),null==t||t(i,r)}}
|
|
33
33
|
/**
|
|
34
34
|
* @license
|
|
35
35
|
* Copyright 2017 Google LLC
|
|
36
36
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
37
|
-
*/;function c(t,
|
|
37
|
+
*/;function c(t,o){return s({descriptor:e=>{const r={get(){var o,e;return null!==(e=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(t))&&void 0!==e?e:null},enumerable:!0,configurable:!0};if(o){const o="symbol"==typeof e?Symbol():"__"+e;r.get=function(){var e,r;return void 0===this[o]&&(this[o]=null!==(r=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==r?r:null),this[o]}}return r}})}
|
|
38
38
|
/**
|
|
39
39
|
* @license
|
|
40
40
|
* Copyright 2021 Google LLC
|
|
41
41
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
42
|
-
*/var
|
|
42
|
+
*/var f;const p=null!=(null===(f=window.HTMLSlotElement)||void 0===f?void 0:f.prototype.assignedElements)?(t,o)=>t.assignedElements(o):(t,o)=>t.assignedNodes(o).filter((t=>t.nodeType===Node.ELEMENT_NODE));function h(t,o){return t.flatMap((t=>[t,...h(o(t),o)]))}function d(t,o){try{return function(t,o){if(t===o)return!0;if(t&&o&&"object"==typeof t&&"object"==typeof o){if(t.constructor!==o.constructor)return!1;var e,r,i;if(Array.isArray(t)){if((e=t.length)!=o.length)return!1;for(r=e;0!=r--;)if(!d(t[r],o[r]))return!1;return!0}if(t instanceof Map&&o instanceof Map){if(t.size!==o.size)return!1;for(r of t.entries())if(!o.has(r[0]))return!1;for(r of t.entries())if(!d(r[1],o.get(r[0])))return!1;return!0}if(t instanceof Set&&o instanceof Set){if(t.size!==o.size)return!1;for(r of t.entries())if(!o.has(r[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if((e=(i=Object.keys(t)).length)!==Object.keys(o).length)return!1;for(r=e;0!=r--;)if(!Object.prototype.hasOwnProperty.call(o,i[r]))return!1;for(r=e;0!=r--;){var n=i[r];if(!d(t[n],o[n]))return!1}return!0}return t!=t&&o!=o}(t,o)}catch(t){return!1}}const u=t=>o=>{window.customElements.get(t)||window.customElements.define(t,o)};function y(t,o){const e=()=>JSON.parse(JSON.stringify(t));return a({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,o)=>!d(t,o),...null!=o?o:{}})}
|
|
43
43
|
/**
|
|
44
44
|
* @license
|
|
45
45
|
* Copyright 2019 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
|
-
*/const
|
|
47
|
+
*/const g=window,b=g.ShadowRoot&&(void 0===g.ShadyCSS||g.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,m=Symbol(),v=new WeakMap;let x=class{constructor(t,o,e){if(this._$cssResult$=!0,e!==m)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=o}get styleSheet(){let t=this.o;const o=this.t;if(b&&void 0===t){const e=void 0!==o&&1===o.length;e&&(t=v.get(o)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&v.set(o,t))}return t}toString(){return this.cssText}};const O=t=>new x("string"==typeof t?t:t+"",void 0,m),w=(t,...o)=>{const e=1===t.length?t[0]:o.reduce(((o,e,r)=>o+(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.")})(e)+t[r+1]),t[0]);return new x(e,t,m)},S=(t,o)=>{b?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),r=g.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}))},N=b?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let o="";for(const e of t.cssRules)o+=e.cssText;return O(o)})(t):t
|
|
48
48
|
/**
|
|
49
49
|
* @license
|
|
50
50
|
* Copyright 2017 Google LLC
|
|
51
51
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
52
|
-
*/;var
|
|
52
|
+
*/;var C;const $=window,E=$.trustedTypes,R=E?E.emptyScript:"",k=$.reactiveElementPolyfillSupport,I={toAttribute(t,o){switch(o){case Boolean:t=t?R:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,o){let e=t;switch(o){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},U=(t,o)=>o!==t&&(o==o||t==t),L={attribute:!0,type:String,converter:I,reflect:!1,hasChanged:U};let W=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var o;this.finalize(),(null!==(o=this.h)&&void 0!==o?o:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((o,e)=>{const r=this._$Ep(e,o);void 0!==r&&(this._$Ev.set(r,e),t.push(r))})),t}static createProperty(t,o=L){if(o.state&&(o.attribute=!1),this.finalize(),this.elementProperties.set(t,o),!o.noAccessor&&!this.prototype.hasOwnProperty(t)){const e="symbol"==typeof t?Symbol():"__"+t,r=this.getPropertyDescriptor(t,e,o);void 0!==r&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,o,e){return{get(){return this[o]},set(r){const i=this[t];this[o]=r,this.requestUpdate(t,i,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||L}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,o=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const e of o)this.createProperty(e,t[e])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const o=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)o.unshift(N(t))}else void 0!==t&&o.push(N(t));return o}static _$Ep(t,o){const e=o.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var o,e;(null!==(o=this._$ES)&&void 0!==o?o:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(e=t.hostConnected)||void 0===e||e.call(t))}removeController(t){var o;null===(o=this._$ES)||void 0===o||o.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,o)=>{this.hasOwnProperty(o)&&(this._$Ei.set(o,this[o]),delete this[o])}))}createRenderRoot(){var t;const o=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return S(o,this.constructor.elementStyles),o}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var o;return null===(o=t.hostConnected)||void 0===o?void 0:o.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var o;return null===(o=t.hostDisconnected)||void 0===o?void 0:o.call(t)}))}attributeChangedCallback(t,o,e){this._$AK(t,e)}_$EO(t,o,e=L){var r;const i=this.constructor._$Ep(t,e);if(void 0!==i&&!0===e.reflect){const n=(void 0!==(null===(r=e.converter)||void 0===r?void 0:r.toAttribute)?e.converter:I).toAttribute(o,e.type);this._$El=t,null==n?this.removeAttribute(i):this.setAttribute(i,n),this._$El=null}}_$AK(t,o){var e;const r=this.constructor,i=r._$Ev.get(t);if(void 0!==i&&this._$El!==i){const t=r.getPropertyOptions(i),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(e=t.converter)||void 0===e?void 0:e.fromAttribute)?t.converter:I;this._$El=i,this[i]=n.fromAttribute(o,t.type),this._$El=null}}requestUpdate(t,o,e){let r=!0;void 0!==t&&(((e=e||this.constructor.getPropertyOptions(t)).hasChanged||U)(this[t],o)?(this._$AL.has(t)||this._$AL.set(t,o),!0===e.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,e))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,o)=>this[o]=t)),this._$Ei=void 0);let o=!1;const e=this._$AL;try{o=this.shouldUpdate(e),o?(this.willUpdate(e),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var o;return null===(o=t.hostUpdate)||void 0===o?void 0:o.call(t)})),this.update(e)):this._$Ek()}catch(t){throw o=!1,this._$Ek(),t}o&&this._$AE(e)}willUpdate(t){}_$AE(t){var o;null===(o=this._$ES)||void 0===o||o.forEach((t=>{var o;return null===(o=t.hostUpdated)||void 0===o?void 0:o.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,o)=>this._$EO(o,this[o],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};
|
|
53
53
|
/**
|
|
54
54
|
* @license
|
|
55
55
|
* Copyright 2017 Google LLC
|
|
56
56
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
57
57
|
*/
|
|
58
|
-
var
|
|
58
|
+
var j;W.finalized=!0,W.elementProperties=new Map,W.elementStyles=[],W.shadowRootOptions={mode:"open"},null==k||k({ReactiveElement:W}),(null!==(C=$.reactiveElementVersions)&&void 0!==C?C:$.reactiveElementVersions=[]).push("1.6.1");const K=window,z=K.trustedTypes,F=z?z.createPolicy("lit-html",{createHTML:t=>t}):void 0,Z="$lit$",A=`lit$${(Math.random()+"").slice(9)}$`,B="?"+A,M=`<${B}>`,D=document,P=()=>D.createComment(""),H=t=>null===t||"object"!=typeof t&&"function"!=typeof t,T=Array.isArray,_=t=>T(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),G="[ \t\n\f\r]",V=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,q=/-->/g,Y=/>/g,J=RegExp(`>|${G}(?:([^\\s"'>=/]+)(${G}*=${G}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),X=/'/g,Q=/"/g,tt=/^(?:script|style|textarea|title)$/i,ot=(t=>(o,...e)=>({_$litType$:t,strings:o,values:e}))(1),et=Symbol.for("lit-noChange"),rt=Symbol.for("lit-nothing"),it=new WeakMap,nt=D.createTreeWalker(D,129,null,!1),at=(t,o)=>{const e=t.length-1,r=[];let i,n=2===o?"<svg>":"",a=V;for(let o=0;o<e;o++){const e=t[o];let l,s,c=-1,f=0;for(;f<e.length&&(a.lastIndex=f,s=a.exec(e),null!==s);)f=a.lastIndex,a===V?"!--"===s[1]?a=q:void 0!==s[1]?a=Y:void 0!==s[2]?(tt.test(s[2])&&(i=RegExp("</"+s[2],"g")),a=J):void 0!==s[3]&&(a=J):a===J?">"===s[0]?(a=null!=i?i:V,c=-1):void 0===s[1]?c=-2:(c=a.lastIndex-s[2].length,l=s[1],a=void 0===s[3]?J:'"'===s[3]?Q:X):a===Q||a===X?a=J:a===q||a===Y?a=V:(a=J,i=void 0);const p=a===J&&t[o+1].startsWith("/>")?" ":"";n+=a===V?e+M:c>=0?(r.push(l),e.slice(0,c)+Z+e.slice(c)+A+p):e+A+(-2===c?(r.push(void 0),o):p)}const l=n+(t[e]||"<?>")+(2===o?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==F?F.createHTML(l):l,r]};class lt{constructor({strings:t,_$litType$:o},e){let r;this.parts=[];let i=0,n=0;const a=t.length-1,l=this.parts,[s,c]=at(t,o);if(this.el=lt.createElement(s,e),nt.currentNode=this.el.content,2===o){const t=this.el.content,o=t.firstChild;o.remove(),t.append(...o.childNodes)}for(;null!==(r=nt.nextNode())&&l.length<a;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const o of r.getAttributeNames())if(o.endsWith(Z)||o.startsWith(A)){const e=c[n++];if(t.push(o),void 0!==e){const t=r.getAttribute(e.toLowerCase()+Z).split(A),o=/([.?@])?(.*)/.exec(e);l.push({type:1,index:i,name:o[2],strings:t,ctor:"."===o[1]?ht:"?"===o[1]?ut:"@"===o[1]?yt:pt})}else l.push({type:6,index:i})}for(const o of t)r.removeAttribute(o)}if(tt.test(r.tagName)){const t=r.textContent.split(A),o=t.length-1;if(o>0){r.textContent=z?z.emptyScript:"";for(let e=0;e<o;e++)r.append(t[e],P()),nt.nextNode(),l.push({type:2,index:++i});r.append(t[o],P())}}}else if(8===r.nodeType)if(r.data===B)l.push({type:2,index:i});else{let t=-1;for(;-1!==(t=r.data.indexOf(A,t+1));)l.push({type:7,index:i}),t+=A.length-1}i++}}static createElement(t,o){const e=D.createElement("template");return e.innerHTML=t,e}}function st(t,o,e=t,r){var i,n,a,l;if(o===et)return o;let s=void 0!==r?null===(i=e._$Co)||void 0===i?void 0:i[r]:e._$Cl;const c=H(o)?void 0:o._$litDirective$;return(null==s?void 0:s.constructor)!==c&&(null===(n=null==s?void 0:s._$AO)||void 0===n||n.call(s,!1),void 0===c?s=void 0:(s=new c(t),s._$AT(t,e,r)),void 0!==r?(null!==(a=(l=e)._$Co)&&void 0!==a?a:l._$Co=[])[r]=s:e._$Cl=s),void 0!==s&&(o=st(t,s._$AS(t,o.values),s,r)),o}let ct=class{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var o;const{el:{content:e},parts:r}=this._$AD,i=(null!==(o=null==t?void 0:t.creationScope)&&void 0!==o?o:D).importNode(e,!0);nt.currentNode=i;let n=nt.nextNode(),a=0,l=0,s=r[0];for(;void 0!==s;){if(a===s.index){let o;2===s.type?o=new ft(n,n.nextSibling,this,t):1===s.type?o=new s.ctor(n,s.name,s.strings,this,t):6===s.type&&(o=new gt(n,this,t)),this._$AV.push(o),s=r[++l]}a!==(null==s?void 0:s.index)&&(n=nt.nextNode(),a++)}return i}v(t){let o=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,o),o+=e.strings.length-2):e._$AI(t[o])),o++}},ft=class t{constructor(t,o,e,r){var i;this.type=2,this._$AH=rt,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=e,this.options=r,this._$Cp=null===(i=null==r?void 0:r.isConnected)||void 0===i||i}get _$AU(){var t,o;return null!==(o=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==o?o:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===(null==t?void 0:t.nodeType)&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=st(this,t,o),H(t)?t===rt||null==t||""===t?(this._$AH!==rt&&this._$AR(),this._$AH=rt):t!==this._$AH&&t!==et&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):_(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!==rt&&H(this._$AH)?this._$AA.nextSibling.data=t:this.$(D.createTextNode(t)),this._$AH=t}g(t){var o;const{values:e,_$litType$:r}=t,i="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=lt.createElement(r.h,this.options)),r);if((null===(o=this._$AH)||void 0===o?void 0:o._$AD)===i)this._$AH.v(e);else{const t=new ct(i,this),o=t.u(this.options);t.v(e),this.$(o),this._$AH=t}}_$AC(t){let o=it.get(t.strings);return void 0===o&&it.set(t.strings,o=new lt(t)),o}T(o){T(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,i=0;for(const n of o)i===e.length?e.push(r=new t(this.k(P()),this.k(P()),this,this.options)):r=e[i],r._$AI(n),i++;i<e.length&&(this._$AR(r&&r._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,o){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){var o;void 0===this._$AM&&(this._$Cp=t,null===(o=this._$AP)||void 0===o||o.call(this,t))}},pt=class{constructor(t,o,e,r,i){this.type=1,this._$AH=rt,this._$AN=void 0,this.element=t,this.name=o,this._$AM=r,this.options=i,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=rt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,o=this,e,r){const i=this.strings;let n=!1;if(void 0===i)t=st(this,t,o,0),n=!H(t)||t!==this._$AH&&t!==et,n&&(this._$AH=t);else{const r=t;let a,l;for(t=i[0],a=0;a<i.length-1;a++)l=st(this,r[e+a],o,a),l===et&&(l=this._$AH[a]),n||(n=!H(l)||l!==this._$AH[a]),l===rt?t=rt:t!==rt&&(t+=(null!=l?l:"")+i[a+1]),this._$AH[a]=l}n&&!r&&this.j(t)}j(t){t===rt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}},ht=class extends pt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===rt?void 0:t}};const dt=z?z.emptyScript:"";let ut=class extends pt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==rt?this.element.setAttribute(this.name,dt):this.element.removeAttribute(this.name)}},yt=class extends pt{constructor(t,o,e,r,i){super(t,o,e,r,i),this.type=5}_$AI(t,o=this){var e;if((t=null!==(e=st(this,t,o,0))&&void 0!==e?e:rt)===et)return;const r=this._$AH,i=t===rt&&r!==rt||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==rt&&(r===rt||i);i&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var o,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(o=this.options)||void 0===o?void 0:o.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}},gt=class{constructor(t,o,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){st(this,t)}};const bt={O:Z,P:A,A:B,C:1,M:at,L:ct,D:_,R:st,I:ft,V:pt,H:ut,N:yt,U:ht,F:gt},mt=K.litHtmlPolyfillSupport;null==mt||mt(lt,ft),(null!==(j=K.litHtmlVersions)&&void 0!==j?j:K.litHtmlVersions=[]).push("2.7.3");
|
|
59
59
|
/**
|
|
60
60
|
* @license
|
|
61
61
|
* Copyright 2017 Google LLC
|
|
62
62
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
63
63
|
*/
|
|
64
|
-
var mt,xt;let wt=class extends U{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var n,o;const r=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:e;let s=r._$litPart$;if(void 0===s){const t=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;r._$litPart$=s=new ut(e.insertBefore(W(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return it}};wt.finalized=!0,wt._$litElement$=!0,null===(mt=globalThis.litElementHydrateSupport)||void 0===mt||mt.call(globalThis,{LitElement:wt});const $t=globalThis.litElementPolyfillSupport;null==$t||$t({LitElement:wt}),(null!==(xt=globalThis.litElementVersions)&&void 0!==xt?xt:globalThis.litElementVersions=[]).push("3.3.2");class Ot{static create(t,e,i){let n=t=>w(null!=t?t:i),o=$`var(${w(t)}, ${n(i)})`;return o.name=t,o.category=e,o.defaultValue=i,o.defaultCssValue=n,o.get=e=>$`var(${w(t)}, ${n(e)})`,o.breadcrumb=()=>[],o.lastResortDefaultValue=()=>i,o}static extend(t,e,i){let n=t=>e.get(null!=t?t:i),o=$`var(${w(t)}, ${n(i)})`;return o.name=t,o.category=e.category,o.fallbackVariable=e,o.defaultValue=i,o.defaultCssValue=n,o.get=e=>$`var(${w(t)}, ${n(e)})`,o.breadcrumb=()=>[e.name,...e.breadcrumb()],o.lastResortDefaultValue=()=>i,o}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):w(null!=e?e:t.defaultValue),n=$`var(${w(t.name)}, ${i(t.defaultValue)})`;return n.name=t.name,n.category=t.category,n.fallbackVariable=t.fallbackVariable,n.defaultValue=t.defaultValue,n.context=e,n.defaultCssValue=i,n.get=e=>$`var(${w(t.name)}, ${i(e)})`,n.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},n}}function St(t,e){return w(`${t.name}: ${e}`)}const kt={colorPrimary:Ot.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:Ot.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:Ot.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:Ot.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:Ot.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:Ot.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:Ot.create("--ft-color-error","COLOR","#B00020"),colorOutline:Ot.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:Ot.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:Ot.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:Ot.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:Ot.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:Ot.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:Ot.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:Ot.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:Ot.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:Ot.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:Ot.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:Ot.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:Ot.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:Ot.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:Ot.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:Ot.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:Ot.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:Ot.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:Ot.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:Ot.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:Ot.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:Ot.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:Ot.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:Ot.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:Ot.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:Ot.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:Ot.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:Ot.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:Ot.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:Ot.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:Ot.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:Ot.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:Ot.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:Ot.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:Ot.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:Ot.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:Ot.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:Ot.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:Ot.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:Ot.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:Ot.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:Ot.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:Ot.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:Ot.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:Ot.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:Ot.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:Ot.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:Ot.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:Ot.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:Ot.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:Ot.create("--ft-border-radius-XL","SIZE","16px"),titleFont:Ot.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:Ot.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:Ot.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:Ot.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class Et extends wt{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return O(i,t.elementStyles),i}}var jt,Ct=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const Nt=Symbol("constructorPrototype"),Rt=Symbol("constructorName"),Mt=Symbol("exportpartsDebouncer");class At extends Et{constructor(){super(),this[jt]=new o(5),this[Rt]=this.constructor.name,this[Nt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Rt]&&Object.setPrototypeOf(this,this[Nt])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Mt].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,n,o,r,s;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(o=null===(n=t.getAttribute("part"))||void 0===n?void 0:n.split(" "))&&void 0!==o?o:[],i=null!==(s=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const u=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...u].join(", "))}}jt=Mt,Ct([s()],At.prototype,"exportpartsPrefix",void 0),Ct([v([])],At.prototype,"exportpartsPrefixes",void 0),Ct([s()],At.prototype,"customStylesheet",void 0);const Ut=$`
|
|
64
|
+
var vt,xt;let Ot=class extends W{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,o;const e=super.createRenderRoot();return null!==(t=(o=this.renderOptions).renderBefore)&&void 0!==t||(o.renderBefore=e.firstChild),e}update(t){const o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,o,e)=>{var r,i;const n=null!==(r=null==e?void 0:e.renderBefore)&&void 0!==r?r:o;let a=n._$litPart$;if(void 0===a){const t=null!==(i=null==e?void 0:e.renderBefore)&&void 0!==i?i:null;n._$litPart$=a=new ft(o.insertBefore(P(),t),t,void 0,null!=e?e:{})}return a._$AI(t),a})(o,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return et}};Ot.finalized=!0,Ot._$litElement$=!0,null===(vt=globalThis.litElementHydrateSupport)||void 0===vt||vt.call(globalThis,{LitElement:Ot});const wt=globalThis.litElementPolyfillSupport;null==wt||wt({LitElement:Ot}),(null!==(xt=globalThis.litElementVersions)&&void 0!==xt?xt:globalThis.litElementVersions=[]).push("3.3.2");const St=t=>"string"==typeof t?O(t):t;class Nt{static create(t,o,e,r){const i=t=>St(null!=t?t:r),n=w`var(${St(t)}, ${i(r)})`;return n.name=t,n.description=t,n.category=e,n.defaultValue=r,n.defaultCssValue=i,n.get=o=>w`var(${St(t)}, ${i(o)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>r,n}static extend(t,o,e,r){const i=t=>e.get(null!=t?t:r),n=w`var(${St(t)}, ${i(r)})`;return n.name=t,n.description=o,n.category=e.category,n.fallbackVariable=e,n.defaultValue=r,n.defaultCssValue=i,n.get=o=>w`var(${St(t)}, ${i(o)})`,n.breadcrumb=()=>[e.name,...e.breadcrumb()],n.lastResortDefaultValue=()=>null!=r?r:e.lastResortDefaultValue(),n}static external(t,o){const e=o=>t.fallbackVariable?t.fallbackVariable.get(null!=o?o:t.defaultValue):St(null!=o?o:t.lastResortDefaultValue()),r=w`var(${St(t.name)}, ${e(t.defaultValue)})`;return r.name=t.name,r.category=t.category,r.fallbackVariable=t.fallbackVariable,r.defaultValue=t.defaultValue,r.context=o,r.defaultCssValue=e,r.get=o=>w`var(${St(t.name)}, ${e(o)})`,r.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],r.lastResortDefaultValue=()=>t.lastResortDefaultValue(),r}}function Ct(t,o){return St(`${t.name}: ${o}`)}const $t={colorWhite:Nt.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:Nt.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:Nt.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:Nt.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:Nt.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:Nt.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:Nt.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:Nt.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:Nt.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:Nt.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:Nt.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:Nt.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:Nt.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:Nt.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:Nt.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:Nt.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:Nt.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:Nt.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:Nt.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:Nt.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:Nt.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:Nt.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:Nt.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:Nt.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:Nt.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:Nt.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:Nt.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:Nt.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:Nt.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:Nt.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:Nt.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:Nt.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:Nt.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:Nt.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:Nt.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:Nt.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:Nt.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:Nt.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:Nt.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:Nt.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:Nt.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:Nt.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:Nt.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:Nt.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:Nt.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:Nt.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:Nt.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:Nt.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:Nt.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:Nt.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:Nt.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:Nt.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:Nt.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:Nt.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:Nt.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:Nt.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:Nt.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:Nt.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:Nt.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:Nt.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:Nt.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:Nt.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:Nt.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:Nt.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:Nt.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:Nt.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:Nt.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:Nt.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:Nt.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:Nt.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:Nt.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:Nt.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:Nt.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:Nt.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:Nt.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:Nt.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:Nt.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:Nt.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:Nt.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:Nt.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:Nt.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:Nt.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:Nt.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:Nt.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:Nt.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:Nt.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:Nt.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:Nt.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:Nt.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:Nt.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:Nt.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:Nt.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:Nt.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:Nt.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:Nt.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:Nt.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:Nt.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:Nt.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:Nt.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:Nt.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:Nt.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:Nt.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:Nt.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:Nt.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:Nt.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:Nt.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:Nt.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:Nt.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:Nt.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:Nt.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:Nt.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:Nt.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:Nt.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:Nt.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:Nt.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:Nt.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:Nt.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:Nt.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:Nt.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:Nt.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:Nt.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:Nt.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:Nt.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:Nt.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:Nt.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:Nt.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:Nt.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:Nt.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:Nt.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:Nt.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:Nt.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:Nt.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:Nt.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:Nt.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:Nt.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:Nt.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:Nt.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:Nt.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:Nt.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:Nt.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:Nt.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:Nt.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:Nt.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:Nt.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:Nt.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:Nt.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:Nt.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:Nt.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:Nt.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:Nt.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:Nt.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:Nt.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:Nt.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:Nt.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:Nt.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:Nt.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:Nt.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:Nt.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:Nt.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:Nt.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:Nt.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:Nt.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:Nt.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:Nt.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:Nt.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:Nt.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:Nt.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:Nt.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:Nt.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:Nt.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:Nt.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:Nt.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:Nt.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:Nt.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:Nt.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:Nt.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:Nt.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:Nt.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:Nt.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:Nt.create("--ft-icon-size-6","","SIZE","48px"),opacity0:Nt.create("--ft-opacity-0","","NUMBER","0"),opacity8:Nt.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:Nt.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:Nt.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:Nt.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:Nt.create("--ft-opacity-80","","NUMBER","0.8")},Et={display:{fontFamily:Nt.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:Nt.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:Nt.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:Nt.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:Nt.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Nt.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Nt.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:Nt.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:Nt.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:Nt.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:Nt.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:Nt.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:Nt.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:Nt.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Nt.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Nt.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:Nt.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:Nt.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:Nt.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:Nt.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:Nt.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:Nt.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:Nt.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Nt.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Nt.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:Nt.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:Nt.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:Nt.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:Nt.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:Nt.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:Nt.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:Nt.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:Nt.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Nt.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:Nt.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:Nt.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:Nt.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Nt.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:Nt.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:Nt.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:Nt.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Nt.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Nt.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Nt.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:Nt.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:Nt.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Nt.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Nt.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:Nt.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:Nt.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Nt.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Nt.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Nt.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:Nt.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:Nt.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Nt.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Nt.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:Nt.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:Nt.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Nt.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Nt.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Nt.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:Nt.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:Nt.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Nt.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:Nt.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:Nt.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:Nt.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Nt.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Nt.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Nt.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:Nt.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:Nt.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Nt.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Nt.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:Nt.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Nt.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Nt.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Nt.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Nt.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:Nt.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:Nt.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Nt.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Nt.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:Nt.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Nt.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Nt.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Nt.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Nt.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:Nt.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:Nt.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Nt.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Nt.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:Nt.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Nt.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:Nt.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Nt.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Nt.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Nt.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:Nt.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Nt.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Nt.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:Nt.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Nt.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:Nt.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Nt.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Nt.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Nt.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:Nt.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Nt.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Nt.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:Nt.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:Nt.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:Nt.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Nt.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Nt.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Nt.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:Nt.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Nt.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Nt.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:Nt.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Nt.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:Nt.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Nt.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Nt.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Nt.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:Nt.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Nt.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Nt.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:Nt.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Nt.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:Nt.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Nt.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Nt.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Nt.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:Nt.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Nt.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Nt.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:Nt.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Nt.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:Nt.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Nt.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Nt.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Nt.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:Nt.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Nt.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Nt.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:Nt.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Nt.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:Nt.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Nt.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Nt.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Nt.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:Nt.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Nt.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Nt.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:Nt.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Nt.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:Nt.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Nt.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Nt.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Nt.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:Nt.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Nt.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Nt.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:Nt.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Nt.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:Nt.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Nt.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Nt.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Nt.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:Nt.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Nt.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Nt.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:Nt.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:Nt.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:Nt.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Nt.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Nt.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Nt.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:Nt.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Nt.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Nt.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:Nt.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:Nt.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:Nt.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Nt.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Nt.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Nt.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:Nt.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Nt.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Nt.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:Nt.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:Nt.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:Nt.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Nt.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Nt.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Nt.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},Rt={backgroundActionPrimary:Nt.extend("--ft-background-action-primary","Used as backgorund of primary action components.",$t.colorBrand0),backgroundErrorPrimary:Nt.extend("--ft-background-error-primary","Used as background of error components.",$t.colorRed0),backgroundErrorSubtle:Nt.extend("--ft-background-error-subtle","Used as background of subtle error components.",$t.colorRed10),backgroundInfoPrimary:Nt.extend("--ft-background-info-primary","Used as background of information components.",$t.colorCyan200),backgroundInfoSubtle:Nt.extend("--ft-background-info-subtle","Used as background of subtle information components.",$t.colorCyan10),backgroundWarningPrimary:Nt.extend("--ft-background-warning-primary","Used as background of warning components.",$t.colorOrange300),backgroundWarningSubtle:Nt.extend("--ft-background-warning-subtle","Used as background of subtle information components.",$t.colorOrange10),backgroundSuccessPrimary:Nt.extend("--ft-background-success-primary","Used as background of success components.",$t.colorGreen200),backgroundSuccessSubtle:Nt.extend("--ft-background-success-subtle","Used as background of subtle success components.",$t.colorGreen10),backgroundGlobalSurface:Nt.extend("--ft-background-global-surface","Used as app background.",$t.colorWhite),backgroundGlobalOnSurface:Nt.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",$t.colorGray10),backgroundGlobalOnSurfaceDark:Nt.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",$t.colorGray30),contentActionPrimary:Nt.extend("--ft-content-action-primary","Used on label of primary action on light surface.",$t.colorBrand0),contentWarningPrimary:Nt.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",$t.colorOrange300),contentWarningIconOnly:Nt.extend("--ft-content-warning-icon-only","Used on warning status icons alone",$t.colorOrange0),contentErrorPrimary:Nt.extend("--ft-content-error-primary","Used on label of error messages on light surface.",$t.colorRed0),contentErrorIconOnly:Nt.extend("--ft-content-error-icon-only","Used on error status icons alone",$t.colorRed0),contentInfoPrimary:Nt.extend("--ft-content-info-primary","Used on label of information messages on light surface.",$t.colorCyan200),contentInfoIconOnly:Nt.extend("--ft-content-info-icon-only","Used on info status icons alone",$t.colorCyan0),contentSuccessIconOnly:Nt.extend("--ft-content-success-icon-only","Used on success status icons alone",$t.colorGreen0),contentSuccessPrimary:Nt.extend("--ft-content-success-primary","Used on label of success messages on light surface.",$t.colorGreen200),contentGlobalPrimary:Nt.extend("--ft-content-global-primary","Used for main content on the page.",$t.colorGray500),contentGlobalSecondary:Nt.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",$t.colorGray200),contentGlobalSubtle:Nt.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",$t.colorGray0),contentGlobalOnColor:Nt.extend("--ft-content-global-on-color","Used for content on a dominant color.",$t.colorWhite),borderActionPrimary:Nt.extend("--ft-border-action-primary","Used as border for primary action components.",$t.colorBrand0),borderActionFocusRing:Nt.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",$t.colorCyan0),borderWarningPrimary:Nt.extend("--ft-border-warning-primary","Used as border for warning components.",$t.colorOrange30),borderSuccessPrimary:Nt.extend("--ft-border-success-primary","Used as border for success components.",$t.colorGreen30),borderErrorPrimary:Nt.extend("--ft-border-error-primary","Used as border for error components.",$t.colorRed30),borderInfoPrimary:Nt.extend("--ft-border-info-primary","Used as border for information components.",$t.colorCyan30),borderGlobalSubtle:Nt.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",$t.colorGray30),borderGlobalPrimary:Nt.extend("--ft-border-global-primary","Used as border for element like input.",$t.colorGray50),borderInputPrimary:Nt.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",$t.colorGray80)},kt={largeHeight:Nt.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:Nt.extend("--ft-button-large-horizontal-padding","",$t.spacing4),largeGap:Nt.extend("--ft-button-large-gap","",$t.spacing2),largeBorderRadius:Nt.extend("--ft-button-large-border-radius","",$t.borderRadiusS),largeIconSize:Nt.extend("--ft-button-large-icon-size","",$t.iconSize3),largeBorderWidth:Nt.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:Nt.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:Nt.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:Nt.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:Nt.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:Nt.extend("--ft-button-small-horizontal-padding","",$t.spacing3),smallGap:Nt.extend("--ft-button-small-gap","",$t.spacing2),smallBorderRadius:Nt.extend("--ft-button-small-border-radius","",$t.borderRadiusS),smallIconSize:Nt.extend("--ft-button-small-icon-size","",$t.iconSize2),smallBorderWidth:Nt.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:Nt.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:Nt.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:Nt.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:Nt.extend("--ft-button-primary-background-color","",Rt.backgroundActionPrimary),primaryColor:Nt.extend("--ft-button-primary-color","",Rt.contentGlobalOnColor),primaryIconColor:Nt.extend("--ft-button-primary-icon-color","",Rt.contentGlobalOnColor),primaryStateLayerColor:Nt.extend("--ft-button-primary-state-layer-color","",Rt.contentGlobalOnColor),primaryStateLayerOpacityHover:Nt.extend("--ft-button-primary-state-layer-opacity-hover","",$t.opacity16),primaryStateLayerOpacityFocus:Nt.extend("--ft-button-primary-state-layer-opacity-focus","",$t.opacity16),primaryStateLayerOpacityActive:Nt.extend("--ft-button-primary-state-layer-opacity-active","",$t.opacity24),primaryComponentOpacityDisabled:Nt.extend("--ft-button-primary-component-opacity-disabled","",$t.opacity40),focusFocusRingColor:Nt.extend("--ft-button-focus-focus-ring-color","",Rt.borderActionFocusRing),tertiaryBackgroundColor:Nt.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:Nt.extend("--ft-button-tertiary-color","",Rt.contentActionPrimary),tertiaryIconColor:Nt.extend("--ft-button-tertiary-icon-color","",Rt.contentActionPrimary),tertiaryStateLayerColor:Nt.extend("--ft-button-tertiary-state-layer-color","",Rt.contentActionPrimary),tertiaryStateLayerOpacityHover:Nt.extend("--ft-button-tertiary-state-layer-opacity-hover","",$t.opacity8),tertiaryStateLayerOpacityFocus:Nt.extend("--ft-button-tertiary-state-layer-opacity-focus","",$t.opacity8),tertiaryStateLayerOpacityActive:Nt.extend("--ft-button-tertiary-state-layer-opacity-active","",$t.opacity16),tertiaryComponentOpacityDisabled:Nt.extend("--ft-button-tertiary-component-opacity-disabled","",$t.opacity40),secondaryBackgroundColor:Nt.extend("--ft-button-secondary-background-color","",$t.colorWhite),secondaryColor:Nt.extend("--ft-button-secondary-color","",Rt.contentActionPrimary),secondaryIconColor:Nt.extend("--ft-button-secondary-icon-color","",Rt.contentActionPrimary),secondaryStateLayerColor:Nt.extend("--ft-button-secondary-state-layer-color","",Rt.contentActionPrimary),secondaryStateLayerOpacityHover:Nt.extend("--ft-button-secondary-state-layer-opacity-hover","",$t.opacity8),secondaryStateLayerOpacityFocus:Nt.extend("--ft-button-secondary-state-layer-opacity-focus","",$t.opacity8),secondaryStateLayerOpacityActive:Nt.extend("--ft-button-secondary-state-layer-opacity-active","",$t.opacity16),secondaryComponentOpacityDisabled:Nt.extend("--ft-button-secondary-component-opacity-disabled","",$t.opacity40),secondaryBorderColor:Nt.extend("--ft-button-secondary-border-color","",Rt.borderActionPrimary),neutralBackgroundColor:Nt.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:Nt.extend("--ft-button-neutral-icon-color","",Rt.contentGlobalSecondary),neutralColor:Nt.extend("--ft-button-neutral-color","",Rt.contentGlobalSecondary),neutralStateLayerColor:Nt.extend("--ft-button-neutral-state-layer-color","",Rt.contentGlobalSecondary),neutralStateLayerOpacityHover:Nt.extend("--ft-button-neutral-state-layer-opacity-hover","",$t.opacity8),neutralStateLayerOpacityFocus:Nt.extend("--ft-button-neutral-state-layer-opacity-focus","",$t.opacity8),neutralStateLayerOpacityActive:Nt.extend("--ft-button-neutral-state-layer-opacity-active","",$t.opacity16),neutralComponentOpacityDisabled:Nt.extend("--ft-button-neutral-component-opacity-disabled","",$t.opacity40)};Nt.extend("--ft-tabs-top-left-border-radius","",$t.borderRadiusS),Nt.extend("--ft-tabs-top-right-border-radius","",$t.borderRadiusS),Nt.extend("--ft-tabs-label-horizontal-padding","",$t.spacing4),Nt.extend("--ft-tabs-label-vertical-padding","",$t.spacing3),Nt.extend("--ft-tabs-label-gap","",$t.spacing1),Nt.extend("--ft-switch-group-horizontal-padding","",$t.spacing1),Nt.extend("--ft-switch-group-vertical-padding","",$t.spacing1),Nt.extend("--ft-switch-group-gap","",$t.spacing1),Nt.extend("--ft-switch-group-background-color","",Rt.backgroundGlobalSurface),Nt.extend("--ft-switch-group-border-color","",Rt.borderGlobalSubtle),Nt.create("--ft-switch-group-border-radius","","SIZE","6px"),Nt.extend("--ft-switch-label-horizontal-padding","",$t.spacing2),Nt.extend("--ft-switch-label-vertical-padding","",$t.spacing1),Nt.extend("--ft-switch-icon-horizontal-padding","",$t.spacing1),Nt.extend("--ft-switch-icon-vertical-padding","",$t.spacing1),Nt.create("--ft-switch-focus-outline-width","","SIZE","2px"),Nt.extend("--ft-switch-focus-focus-ring-color","",Rt.borderActionFocusRing),Nt.extend("--ft-switch-option-border-radius","",$t.borderRadiusS),Nt.extend("--ft-switch-off-state-layer-opacity-hover","",$t.opacity8),Nt.extend("--ft-switch-off-state-layer-opacity-focus","",$t.opacity8),Nt.extend("--ft-switch-off-state-layer-opacity-active","",$t.opacity16),Nt.extend("--ft-switch-off-component-opacity-disabled","",$t.opacity40),Nt.extend("--ft-switch-off-color","",Rt.contentGlobalSubtle),Nt.extend("--ft-switch-off-state-layer-color","",Rt.contentGlobalSubtle),Nt.extend("--ft-chart-1-light","for area color charts",$t.colorBrand40),Nt.extend("--ft-chart-1-base","for line charts",$t.colorBrand0),Nt.extend("--ft-chart-2-light","for area color charts",$t.colorYellow60),Nt.extend("--ft-chart-2-base","for line charts",$t.colorYellow100),Nt.extend("--ft-chart-3-light","",$t.colorUltramarine40),Nt.extend("--ft-chart-3-base","",$t.colorUltramarine70),Nt.extend("--ft-chart-4-light","",$t.colorCyan50),Nt.extend("--ft-chart-4-base","",$t.colorCyan100),Nt.extend("--ft-chart-5-light","",$t.colorRed40),Nt.extend("--ft-chart-5-base","",$t.colorRed60),Nt.extend("--ft-chart-6-light","",$t.colorGreen40),Nt.extend("--ft-chart-6-base","",$t.colorGreen70),Nt.extend("--ft-chart-7-light","",$t.colorOrange70),Nt.extend("--ft-chart-7-base","",$t.colorOrange100),Nt.extend("--ft-chart-8-light","",$t.colorAvocado70),Nt.extend("--ft-chart-8-base","",$t.colorAvocado200),Nt.extend("--ft-chart-9-light","",$t.colorBrown50),Nt.extend("--ft-chart-9-base","",$t.colorBrown200),Nt.extend("--ft-chart-10-light","",$t.colorGray50),Nt.extend("--ft-chart-10-base","",$t.colorGray80),Nt.extend("--ft-chart-monochrome-10","",$t.colorBrand10),Nt.extend("--ft-chart-monochrome-20","",$t.colorBrand20),Nt.extend("--ft-chart-monochrome-30","",$t.colorBrand40),Nt.extend("--ft-chart-monochrome-40","",$t.colorBrand60),Nt.extend("--ft-chart-monochrome-50","",$t.colorBrand0),Nt.extend("--ft-chart-monochrome-60","",$t.colorBrand200),Nt.extend("--ft-chip-large-horizontal-padding","",$t.spacing4),Nt.extend("--ft-chip-large-vertical-padding","",$t.spacing2),Nt.extend("--ft-chip-large-gap","",$t.spacing1),Nt.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),Nt.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),Nt.extend("--ft-chip-large-border-radius","",$t.borderRadiusPill),Nt.create("--ft-chip-large-border-width","","SIZE","1px"),Nt.extend("--ft-chip-large-icon-size","",$t.iconSize3),Nt.extend("--ft-chip-medium-horizontal-padding","",$t.spacing3),Nt.extend("--ft-chip-medium-vertical-padding","",$t.spacing1),Nt.extend("--ft-chip-medium-gap","",$t.spacing1),Nt.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),Nt.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),Nt.extend("--ft-chip-medium-border-radius","",$t.borderRadiusPill),Nt.create("--ft-chip-medium-border-width","","SIZE","1px"),Nt.extend("--ft-chip-medium-icon-size","",$t.iconSize2),Nt.extend("--ft-chip-small-horizontal-padding","",$t.spacing2),Nt.extend("--ft-chip-small-vertical-padding","",$t.spacing05),Nt.extend("--ft-chip-small-gap","",$t.spacing1),Nt.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),Nt.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),Nt.extend("--ft-chip-small-border-radius","",$t.borderRadiusPill),Nt.create("--ft-chip-small-border-width","","SIZE","1px"),Nt.extend("--ft-chip-small-icon-size","",$t.iconSize1),Nt.extend("--ft-chip-neutral-background-color","",Rt.backgroundGlobalOnSurface),Nt.extend("--ft-chip-neutral-color","",Rt.contentGlobalPrimary),Nt.extend("--ft-chip-neutral-border-color","",Rt.borderGlobalSubtle),Nt.extend("--ft-chip-info-background-color","",Rt.backgroundInfoSubtle),Nt.extend("--ft-chip-info-color","",Rt.contentInfoPrimary),Nt.extend("--ft-chip-info-border-color","",Rt.borderInfoPrimary),Nt.extend("--ft-chip-success-background-color","",Rt.backgroundSuccessSubtle),Nt.extend("--ft-chip-success-color","",Rt.contentSuccessPrimary),Nt.extend("--ft-chip-success-border-color","",Rt.borderSuccessPrimary),Nt.extend("--ft-chip-warning-background-color","",Rt.backgroundWarningSubtle),Nt.extend("--ft-chip-warning-color","",Rt.contentWarningPrimary),Nt.extend("--ft-chip-warning-border-color","",Rt.borderWarningPrimary),Nt.extend("--ft-chip-error-background-color","",Rt.backgroundErrorSubtle),Nt.extend("--ft-chip-error-color","",Rt.contentErrorPrimary),Nt.extend("--ft-chip-error-border-color","",Rt.borderErrorPrimary),Nt.create("--ft-notice-border-width","","SIZE","1px"),Nt.extend("--ft-notice-horizontal-padding","",$t.spacing2),Nt.extend("--ft-notice-vertical-padding","",$t.spacing1),Nt.extend("--ft-notice-border-radius","",$t.borderRadiusS),Nt.extend("--ft-notice-gap","",$t.spacing2),Nt.extend("--ft-notice-icon-size","",$t.iconSize3),Nt.extend("--ft-notice-info-background-color","",Rt.backgroundInfoSubtle),Nt.extend("--ft-notice-info-border-color","",Rt.borderInfoPrimary),Nt.extend("--ft-notice-info-color","",Rt.contentInfoPrimary),Nt.extend("--ft-notice-warning-background-color","",Rt.backgroundWarningSubtle),Nt.extend("--ft-notice-warning-border-color","",Rt.borderWarningPrimary),Nt.extend("--ft-notice-warning-color","",Rt.contentWarningPrimary),Nt.extend("--ft-checkbox-label-color","",Rt.contentGlobalPrimary),Nt.extend("--ft-checkbox-checked-background-color","",Rt.contentActionPrimary),Nt.extend("--ft-checkbox-checked-state-layer-color","",Rt.contentActionPrimary),Nt.extend("--ft-checkbox-checked-color","",Rt.contentGlobalOnColor),Nt.extend("--ft-checkbox-checked-state-layer-opacity-hover","",$t.opacity16),Nt.extend("--ft-checkbox-checked-state-layer-opacity-focus","",$t.opacity16),Nt.extend("--ft-checkbox-checked-state-layer-opacity-active","",$t.opacity24),Nt.extend("--ft-checkbox-checked-component-opacity-disabled","",$t.opacity40),Nt.extend("--ft-checkbox-unchecked-border-color","",$t.colorGray80),Nt.extend("--ft-checkbox-unchecked-state-layer-color","",$t.colorGray80),Nt.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",$t.opacity16),Nt.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",$t.opacity16),Nt.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",$t.opacity24),Nt.extend("--ft-checkbox-unchecked-component-opacity-disabled","",$t.opacity40),Nt.extend("--ft-checkbox-focus-focus-ring-color","",Rt.borderActionFocusRing),Nt.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),Nt.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),Nt.extend("--ft-checkbox-gap","",$t.spacing3),Nt.extend("--ft-toggle-off-state-layer-opacity-hover","",$t.opacity16),Nt.extend("--ft-toggle-off-state-layer-opacity-focus","",$t.opacity16),Nt.extend("--ft-toggle-off-state-layer-opacity-active","",$t.opacity24),Nt.extend("--ft-toggle-off-component-opacity-disabled","",$t.opacity40),Nt.extend("--ft-toggle-off-background-color","",Rt.contentGlobalSubtle),Nt.extend("--ft-toggle-off-icon-color","",Rt.contentGlobalSubtle),Nt.extend("--ft-toggle-off-state-layer-color","",Rt.contentGlobalSubtle),Nt.extend("--ft-toggle-on-state-layer-opacity-hover","",$t.opacity16),Nt.extend("--ft-toggle-on-state-layer-opacity-focus","",$t.opacity16),Nt.extend("--ft-toggle-on-state-layer-opacity-active","",$t.opacity24),Nt.extend("--ft-toggle-on-component-opacity-disabled","",$t.opacity40),Nt.extend("--ft-toggle-on-background-color","",Rt.contentActionPrimary),Nt.extend("--ft-toggle-on-icon-color","",Rt.contentActionPrimary),Nt.extend("--ft-toggle-on-state-layer-color","",Rt.contentActionPrimary),Nt.extend("--ft-toggle-label-color","",Rt.contentGlobalPrimary),Nt.extend("--ft-toggle-focus-focus-ring-color","",Rt.borderActionFocusRing),Nt.extend("--ft-toggle-gap","",$t.spacing3),Nt.extend("--ft-radio-label-color","",Rt.contentGlobalPrimary),Nt.extend("--ft-radio-selected-color","",Rt.contentActionPrimary),Nt.extend("--ft-radio-selected-state-layer-color","",Rt.contentActionPrimary),Nt.extend("--ft-radio-selected-state-layer-opacity-hover","",$t.opacity16),Nt.extend("--ft-radio-selected-state-layer-opacity-focus","",$t.opacity16),Nt.extend("--ft-radio-selected-state-layer-opacity-active","",$t.opacity24),Nt.extend("--ft-radio-selected-component-opacity-disabled","",$t.opacity40),Nt.extend("--ft-radio-unselected-state-layer-color","",$t.colorGray80),Nt.extend("--ft-radio-unselected-state-layer-opacity-hover","",$t.opacity16),Nt.extend("--ft-radio-unselected-state-layer-opacity-focus","",$t.opacity16),Nt.extend("--ft-radio-unselected-state-layer-opacity-active","",$t.opacity24),Nt.extend("--ft-radio-unselected-component-opacity-disabled","",$t.opacity40),Nt.extend("--ft-radio-focus-focus-ring-color","",Rt.borderActionFocusRing),Nt.create("--ft-radio-focus-outline-offset","","SIZE","3px"),Nt.create("--ft-radio-focus-outline-width","","SIZE","2px"),Nt.extend("--ft-radio-gap","",$t.spacing3),Nt.extend("--ft-notification-icon-size","",$t.iconSize4),Nt.extend("--ft-notification-horizontal-padding","",$t.spacing4),Nt.extend("--ft-notification-vertical-padding","",$t.spacing4),Nt.extend("--ft-notification-info-background-color","",Rt.backgroundInfoSubtle),Nt.extend("--ft-notification-info-color","",Rt.contentInfoPrimary),Nt.extend("--ft-notification-info-border-color","",Rt.borderInfoPrimary),Nt.extend("--ft-notification-success-background-color","",Rt.backgroundSuccessSubtle),Nt.extend("--ft-notification-success-color","",Rt.contentSuccessPrimary),Nt.extend("--ft-notification-success-border-color","",Rt.borderSuccessPrimary),Nt.extend("--ft-notification-warning-background-color","",Rt.backgroundWarningSubtle),Nt.extend("--ft-notification-warning-color","",Rt.contentWarningPrimary),Nt.extend("--ft-notification-warning-border-color","",Rt.borderWarningPrimary),Nt.extend("--ft-notification-error-background-color","",Rt.backgroundErrorSubtle),Nt.extend("--ft-notification-error-color","",Rt.contentErrorPrimary),Nt.extend("--ft-notification-error-border-color","",Rt.borderErrorPrimary),Nt.extend("--ft-notification-border-radius","",$t.borderRadiusPill),Nt.create("--ft-notification-border-width","","SIZE","1px"),Nt.extend("--ft-notification-gap-leading","",$t.spacing2),Nt.extend("--ft-notification-gap-trailing","",$t.spacing8);const It={colorPrimary:Nt.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:Nt.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:Nt.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:Nt.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:Nt.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:Nt.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:Nt.create("--ft-color-error","","COLOR","#B00020"),colorOutline:Nt.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:Nt.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:Nt.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:Nt.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:Nt.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:Nt.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:Nt.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:Nt.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:Nt.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:Nt.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:Nt.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:Nt.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:Nt.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:Nt.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:Nt.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:Nt.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:Nt.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:Nt.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:Nt.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:Nt.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:Nt.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:Nt.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:Nt.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:Nt.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:Nt.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:Nt.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:Nt.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:Nt.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:Nt.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:Nt.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:Nt.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:Nt.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:Nt.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:Nt.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:Nt.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:Nt.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:Nt.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:Nt.create("--ft-elevation-00","","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:Nt.create("--ft-elevation-01","","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:Nt.create("--ft-elevation-02","","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:Nt.create("--ft-elevation-03","","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:Nt.create("--ft-elevation-04","","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:Nt.create("--ft-elevation-06","","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:Nt.create("--ft-elevation-08","","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:Nt.create("--ft-elevation-12","","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:Nt.create("--ft-elevation-16","","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:Nt.create("--ft-elevation-24","","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:Nt.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:Nt.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:Nt.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:Nt.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:Nt.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:Nt.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:Nt.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:Nt.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};class Ut extends Ot{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([o,e])=>t.registry.define(o,e))));const o={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(o);return S(e,t.elementStyles),e}}var Lt,Wt=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};const jt=Symbol("constructorPrototype"),Kt=Symbol("constructorName"),zt=Symbol("exportpartsDebouncer");class Ft extends Ut{constructor(){super(),this[Lt]=new i(5),this[Kt]=this.constructor.name,this[jt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Kt]&&Object.setPrototypeOf(this,this[jt])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var o,e;if((null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[zt].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var o,e,r,i,n,a;const l=t=>null!=t&&t.trim().length>0,s=t.filter(l).map((t=>t.trim()));if(0===s.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const o=null!==(i=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==i?i:[],e=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(...o,...e).filter(l).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const f=[...c.values()].flatMap((t=>s.map((o=>`${t}:${o}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}Lt=zt,Wt([a()],Ft.prototype,"exportpartsPrefix",void 0),Wt([y([])],Ft.prototype,"exportpartsPrefixes",void 0),Wt([a()],Ft.prototype,"customStylesheet",void 0);const Zt=w`
|
|
65
65
|
.ft-no-text-select {
|
|
66
66
|
-webkit-touch-callout: none;
|
|
67
67
|
-webkit-user-select: none;
|
|
@@ -70,7 +70,7 @@ var mt,xt;let wt=class extends U{constructor(){super(...arguments),this.renderOp
|
|
|
70
70
|
-ms-user-select: none;
|
|
71
71
|
user-select: none;
|
|
72
72
|
}
|
|
73
|
-
|
|
73
|
+
`;w`
|
|
74
74
|
.ft-word-wrap {
|
|
75
75
|
white-space: normal;
|
|
76
76
|
word-wrap: break-word;
|
|
@@ -82,7 +82,7 @@ var mt,xt;let wt=class extends U{constructor(){super(...arguments),this.renderOp
|
|
|
82
82
|
-webkit-hyphens: auto;
|
|
83
83
|
hyphens: auto
|
|
84
84
|
}
|
|
85
|
-
`;const
|
|
85
|
+
`;const At=w`
|
|
86
86
|
.ft-safari-ellipsis-fix {
|
|
87
87
|
margin-right: 0;
|
|
88
88
|
|
|
@@ -93,36 +93,36 @@ var mt,xt;let wt=class extends U{constructor(){super(...arguments),this.renderOp
|
|
|
93
93
|
display: inline-block;
|
|
94
94
|
width: 0;
|
|
95
95
|
}
|
|
96
|
-
`;class Ft{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,n;t=this.resolvePluralKey(t,e);let o=null!==(n=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==n?n:"";return e.forEach(((t,e)=>o=o.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),o}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${String(t)}[\\=${i}]`;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 i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}function It(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var zt,Tt,Lt;const Bt=Symbol("internalReduxEventsUnsubscribers"),_t=Symbol("internalStoresUnsubscribers"),Dt=Symbol("internalStores");class Wt extends At{constructor(){super(...arguments),this[zt]=new Map,this[Tt]=new Map,this[Lt]=[]}update(t){var e;super.update(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[Dt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Dt].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Dt].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:It(t)?t.name:void 0)&&void 0!==i?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[Dt].delete(e)}setupStore(t,e){this[Dt].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Dt].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(t.store?this[_t].has(t.store):this[_t].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[_t].set(t,e.subscribe((()=>this.updateFromStores()))),It(e)&&e.eventBus&&(null===(i=this.reduxEventListeners)||void 0===i||i.forEach(((t,i)=>{if("function"==typeof this[i]&&(!t.store||e.name===t.store)){const n=t=>this[i](t);e.eventBus.addEventListener(t.eventName,n),this[Bt].push((()=>e.eventBus.removeEventListener(t.eventName,n)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[_t].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Bt].forEach((t=>t())),this[Bt]=[]}unsubscribeFromStore(t){this[_t].has(t)&&this[_t].get(t)(),this[_t].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function Kt(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+t+(i.length?" "+i.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ht(t){return!!t&&!!t[Me]}function Zt(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 i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return i===Object||"function"==typeof i&&Function.toString.call(i)===Ae}(t)||Array.isArray(t)||!!t[Re]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Re])||Yt(t)||Qt(t))}function Vt(t,e,i){void 0===i&&(i=!1),0===qt(t)?(i?Object.keys:Ue)(t).forEach((function(n){i&&"symbol"==typeof n||e(n,t[n],t)})):t.forEach((function(i,n){return e(n,i,t)}))}function qt(t){var e=t[Me];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Yt(t)?2:Qt(t)?3:0}function Jt(t,e){return 2===qt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Xt(t,e,i){var n=qt(t);2===n?t.set(e,i):3===n?t.add(i):t[e]=i}function Gt(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function Yt(t){return Ee&&t instanceof Map}function Qt(t){return je&&t instanceof Set}function te(t){return t.o||t.t}function ee(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Pe(t);delete e[Me];for(var i=Ue(e),n=0;n<i.length;n++){var o=i[n],r=e[o];!1===r.writable&&(r.writable=!0,r.configurable=!0),(r.get||r.set)&&(e[o]={configurable:!0,writable:!0,enumerable:r.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function ie(t,e){return void 0===e&&(e=!1),oe(t)||Ht(t)||!Zt(t)||(qt(t)>1&&(t.set=t.add=t.clear=t.delete=ne),Object.freeze(t),e&&Vt(t,(function(t,e){return ie(e,!0)}),!0)),t}function ne(){Kt(2)}function oe(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function re(t){var e=Fe[t];return e||Kt(18,t),e}function se(){return Se}function ae(t,e){e&&(re("Patches"),t.u=[],t.s=[],t.v=e)}function le(t){ce(t),t.p.forEach(fe),t.p=null}function ce(t){t===Se&&(Se=t.l)}function ue(t){return Se={p:[],l:Se,h:t,m:!0,_:0}}function fe(t){var e=t[Me];0===e.i||1===e.i?e.j():e.g=!0}function he(t,e){e._=e.p.length;var i=e.p[0],n=void 0!==t&&t!==i;return e.h.O||re("ES5").S(e,t,n),n?(i[Me].P&&(le(e),Kt(4)),Zt(t)&&(t=pe(e,t),e.l||ve(e,t)),e.u&&re("Patches").M(i[Me].t,t,e.u,e.s)):t=pe(e,i,[]),le(e),e.u&&e.v(e.u,e.s),t!==Ne?t:void 0}function pe(t,e,i){if(oe(e))return e;var n=e[Me];if(!n)return Vt(e,(function(o,r){return de(t,n,e,o,r,i)}),!0),e;if(n.A!==t)return e;if(!n.P)return ve(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=4===n.i||5===n.i?n.o=ee(n.k):n.o,r=o,s=!1;3===n.i&&(r=new Set(o),o.clear(),s=!0),Vt(r,(function(e,r){return de(t,n,o,e,r,i,s)})),ve(t,o,!1),i&&t.u&&re("Patches").N(n,i,t.u,t.s)}return n.o}function de(t,e,i,n,o,r,s){if(Ht(o)){var a=pe(t,o,r&&e&&3!==e.i&&!Jt(e.R,n)?r.concat(n):void 0);if(Xt(i,n,a),!Ht(a))return;t.m=!1}else s&&i.add(o);if(Zt(o)&&!oe(o)){if(!t.h.D&&t._<1)return;pe(t,o),e&&e.A.l||ve(t,o)}}function ve(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&ie(e,i)}function be(t,e){var i=t[Me];return(i?te(i):t)[e]}function ye(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var n=Object.getOwnPropertyDescriptor(i,e);if(n)return n;i=Object.getPrototypeOf(i)}}function ge(t){t.P||(t.P=!0,t.l&&ge(t.l))}function me(t){t.o||(t.o=ee(t.t))}function xe(t,e,i){var n=Yt(e)?re("MapSet").F(e,i):Qt(e)?re("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),n={i:i?1:0,A:e?e.A:se(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},o=n,r=Ie;i&&(o=[n],r=ze);var s=Proxy.revocable(o,r),a=s.revoke,l=s.proxy;return n.k=l,n.j=a,l}(e,i):re("ES5").J(e,i);return(i?i.A:se()).p.push(n),n}function we(t){return Ht(t)||Kt(22,t),function t(e){if(!Zt(e))return e;var i,n=e[Me],o=qt(e);if(n){if(!n.P&&(n.i<4||!re("ES5").K(n)))return n.t;n.I=!0,i=$e(e,o),n.I=!1}else i=$e(e,o);return Vt(i,(function(e,o){n&&function(t,e){return 2===qt(t)?t.get(e):t[e]}(n.t,e)===o||Xt(i,e,t(o))})),3===o?new Set(i):i}(t)}function $e(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ee(t)}zt=_t,Tt=Dt,Lt=Bt;var Oe,Se,ke="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Ee="undefined"!=typeof Map,je="undefined"!=typeof Set,Ce="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Ne=ke?Symbol.for("immer-nothing"):((Oe={})["immer-nothing"]=!0,Oe),Re=ke?Symbol.for("immer-draftable"):"__$immer_draftable",Me=ke?Symbol.for("immer-state"):"__$immer_state",Ae=""+Object.prototype.constructor,Ue="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Pe=Object.getOwnPropertyDescriptors||function(t){var e={};return Ue(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},Fe={},Ie={get:function(t,e){if(e===Me)return t;var i=te(t);if(!Jt(i,e))return function(t,e,i){var n,o=ye(e,i);return o?"value"in o?o.value:null===(n=o.get)||void 0===n?void 0:n.call(t.k):void 0}(t,i,e);var n=i[e];return t.I||!Zt(n)?n:n===be(t.t,e)?(me(t),t.o[e]=xe(t.A.h,n,t)):n},has:function(t,e){return e in te(t)},ownKeys:function(t){return Reflect.ownKeys(te(t))},set:function(t,e,i){var n=ye(te(t),e);if(null==n?void 0:n.set)return n.set.call(t.k,i),!0;if(!t.P){var o=be(te(t),e),r=null==o?void 0:o[Me];if(r&&r.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(Gt(i,o)&&(void 0!==i||Jt(t.t,e)))return!0;me(t),ge(t)}return t.o[e]===i&&(void 0!==i||e in t.o)||Number.isNaN(i)&&Number.isNaN(t.o[e])||(t.o[e]=i,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==be(t.t,e)||e in t.t?(t.R[e]=!1,me(t),ge(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=te(t),n=Reflect.getOwnPropertyDescriptor(i,e);return n?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:n.enumerable,value:i[e]}:n},defineProperty:function(){Kt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Kt(12)}},ze={};Vt(Ie,(function(t,e){ze[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),ze.deleteProperty=function(t,e){return ze.set.call(this,t,e,void 0)},ze.set=function(t,e,i){return Ie.set.call(this,t[0],e,i,t[0])};var Te=function(){function t(t){var e=this;this.O=Ce,this.D=!0,this.produce=function(t,i,n){if("function"==typeof t&&"function"!=typeof i){var o=i;i=t;var r=e;return function(t){var e=this;void 0===t&&(t=o);for(var n=arguments.length,s=Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];return r.produce(t,(function(t){var n;return(n=i).call.apply(n,[e,t].concat(s))}))}}var s;if("function"!=typeof i&&Kt(6),void 0!==n&&"function"!=typeof n&&Kt(7),Zt(t)){var a=ue(e),l=xe(e,t,void 0),c=!0;try{s=i(l),c=!1}finally{c?le(a):ce(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return ae(a,n),he(t,a)}),(function(t){throw le(a),t})):(ae(a,n),he(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=i(t))&&(s=t),s===Ne&&(s=void 0),e.D&&ie(s,!0),n){var u=[],f=[];re("Patches").M(t,s,u,f),n(u,f)}return s}Kt(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(o))}))};var n,o,r=e.produce(t,i,(function(t,e){n=t,o=e}));return"undefined"!=typeof Promise&&r instanceof Promise?r.then((function(t){return[t,n,o]})):[r,n,o]},"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){Zt(t)||Kt(8),Ht(t)&&(t=we(t));var e=ue(this),i=xe(this,t,void 0);return i[Me].C=!0,ce(e),i},e.finishDraft=function(t,e){var i=(t&&t[Me]).A;return ae(i,e),he(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Ce&&Kt(20),this.O=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var n=e[i];if(0===n.path.length&&"replace"===n.op){t=n.value;break}}i>-1&&(e=e.slice(i+1));var o=re("Patches").$;return Ht(t)?o(t,e):this.produce(t,(function(t){return o(t,e)}))},t}(),Le=new Te,Be=Le.produce;function _e(t){return _e="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},_e(t)}function De(t){var e=function(t,e){if("object"!==_e(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!==_e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===_e(e)?e:String(e)}function We(t,e,i){return(e=De(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Ke(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function He(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ke(Object(i),!0).forEach((function(e){We(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ke(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Ze(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. "}Le.produceWithPatches.bind(Le),Le.setAutoFreeze.bind(Le),Le.setUseProxies.bind(Le),Le.applyPatches.bind(Le),Le.createDraft.bind(Le),Le.finishDraft.bind(Le);var Ve="function"==typeof Symbol&&Symbol.observable||"@@observable",qe=function(){return Math.random().toString(36).substring(7).split("").join(".")},Je={INIT:"@@redux/INIT"+qe(),REPLACE:"@@redux/REPLACE"+qe(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+qe()}};function Xe(t,e,i){var n;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(Ze(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(Ze(1));return i(Xe)(t,e)}if("function"!=typeof t)throw new Error(Ze(2));var o=t,r=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function u(){if(l)throw new Error(Ze(3));return r}function f(t){if("function"!=typeof t)throw new Error(Ze(4));if(l)throw new Error(Ze(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(Ze(6));e=!1,c();var i=a.indexOf(t);a.splice(i,1),s=null}}}function h(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(Ze(7));if(void 0===t.type)throw new Error(Ze(8));if(l)throw new Error(Ze(9));try{l=!0,r=o(r,t)}finally{l=!1}for(var e=s=a,i=0;i<e.length;i++){(0,e[i])()}return t}return h({type:Je.INIT}),(n={dispatch:h,subscribe:f,getState:u,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Ze(10));o=t,h({type:Je.REPLACE})}})[Ve]=function(){var t,e=f;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Ze(11));function i(){t.next&&t.next(u())}return i(),{unsubscribe:e(i)}}})[Ve]=function(){return this},t},n}function Ge(t){for(var e=Object.keys(t),i={},n=0;n<e.length;n++){var o=e[n];"function"==typeof t[o]&&(i[o]=t[o])}var r,s=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:Je.INIT}))throw new Error(Ze(12));if(void 0===i(void 0,{type:Je.PROBE_UNKNOWN_ACTION()}))throw new Error(Ze(13))}))}(i)}catch(t){r=t}return function(t,e){if(void 0===t&&(t={}),r)throw r;for(var n=!1,o={},a=0;a<s.length;a++){var l=s[a],c=i[l],u=t[l],f=c(u,e);if(void 0===f)throw e&&e.type,new Error(Ze(14));o[l]=f,n=n||f!==u}return(n=n||s.length!==Object.keys(t).length)?o:t}}function Ye(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];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 Qe(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),n=function(){throw new Error(Ze(15))},o={getState:i.getState,dispatch:function(){return n.apply(void 0,arguments)}},r=e.map((function(t){return t(o)}));return n=Ye.apply(void 0,r)(i.dispatch),He(He({},i),{},{dispatch:n})}}}function ti(t){return function(e){var i=e.dispatch,n=e.getState;return function(e){return function(o){return"function"==typeof o?o(i,n,t):e(o)}}}}var ei=ti();ei.withExtraArgument=ti;var ii,ni=ei,oi=(ii=function(t,e){return ii=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},ii(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 i(){this.constructor=t}ii(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),ri=function(t,e){var i,n,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,n&&(o=2&r[0]?n.return:r[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,n=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=e.call(t,s)}catch(t){r=[6,t],n=0}finally{i=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},si=function(t,e){for(var i=0,n=e.length,o=t.length;i<n;i++,o++)t[o]=e[i];return t},ai=Object.defineProperty,li=Object.defineProperties,ci=Object.getOwnPropertyDescriptors,ui=Object.getOwnPropertySymbols,fi=Object.prototype.hasOwnProperty,hi=Object.prototype.propertyIsEnumerable,pi=function(t,e,i){return e in t?ai(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},di=function(t,e){for(var i in e||(e={}))fi.call(e,i)&&pi(t,i,e[i]);if(ui)for(var n=0,o=ui(e);n<o.length;n++){i=o[n];hi.call(e,i)&&pi(t,i,e[i])}return t},vi=function(t,e){return li(t,ci(e))},bi="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Ye:Ye.apply(null,arguments)};var yi=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=t.apply(this,i)||this;return Object.setPrototypeOf(o,e.prototype),o}return oi(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,si([void 0],t[0].concat(this)))):new(e.bind.apply(e,si([void 0],t.concat(this))))},e}(Array),gi=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=t.apply(this,i)||this;return Object.setPrototypeOf(o,e.prototype),o}return oi(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,si([void 0],t[0].concat(this)))):new(e.bind.apply(e,si([void 0],t.concat(this))))},e}(Array);function mi(t){return Zt(t)?Be(t,(function(){})):t}function xi(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var n=new yi;i&&(!function(t){return"boolean"==typeof t}(i)?n.push(ni.withExtraArgument(i.extraArgument)):n.push(ni));return n}(t)}}function wi(t){var e,i=xi(),n=t||{},o=n.reducer,r=void 0===o?void 0:o,s=n.middleware,a=void 0===s?i():s,l=n.devTools,c=void 0===l||l,u=n.preloadedState,f=void 0===u?void 0:u,h=n.enhancers,p=void 0===h?void 0:h;if("function"==typeof r)e=r;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var i=e;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return e===i}(r))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=Ge(r)}var d=a;"function"==typeof d&&(d=d(i));var v=Qe.apply(void 0,d),b=Ye;c&&(b=bi(di({trace:!1},"object"==typeof c&&c)));var y=new gi(v),g=y;return Array.isArray(p)?g=si([v],p):"function"==typeof p&&(g=p(y)),Xe(e,f,b.apply(void 0,g))}function $i(t,e){function i(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var o=e.apply(void 0,i);if(!o)throw new Error("prepareAction did not return an object");return di(di({type:t,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:t,payload:i[0]}}return i.toString=function(){return""+t},i.type=t,i.match=function(e){return e.type===t},i}function Oi(t){var e,i={},n=[],o={addCase:function(t,e){var n="string"==typeof t?t:t.type;if(n in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[n]=e,o},addMatcher:function(t,e){return n.push({matcher:t,reducer:e}),o},addDefaultCase:function(t){return e=t,o}};return t(o),[i,n,e]}function Si(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,n="function"==typeof t.initialState?t.initialState:mi(t.initialState),o=t.reducers||{},r=Object.keys(o),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?Oi(t.extraReducers):[t.extraReducers],i=e[0],o=void 0===i?{}:i,r=e[1],s=void 0===r?[]:r,l=e[2],c=void 0===l?void 0:l,u=di(di({},o),a);return function(t,e,i,n){void 0===i&&(i=[]);var o,r="function"==typeof e?Oi(e):[e,i,n],s=r[0],a=r[1],l=r[2];if(function(t){return"function"==typeof t}(t))o=function(){return mi(t())};else{var c=mi(t);o=function(){return c}}function u(t,e){void 0===t&&(t=o());var i=si([s[e.type]],a.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===i.filter((function(t){return!!t})).length&&(i=[l]),i.reduce((function(t,i){if(i){var n;if(Ht(t))return void 0===(n=i(t,e))?t:n;if(Zt(t))return Be(t,(function(t){return i(t,e)}));if(void 0===(n=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}return t}),t)}return u.getInitialState=o,u}(n,(function(t){for(var e in u)t.addCase(e,u[e]);for(var i=0,n=s;i<n.length;i++){var o=n[i];t.addMatcher(o.matcher,o.reducer)}c&&t.addDefaultCase(c)}))}return r.forEach((function(t){var i,n,r=o[t],c=e+"/"+t;"reducer"in r?(i=r.reducer,n=r.prepare):i=r,s[t]=i,a[c]=i,l[t]=n?$i(c,n):$i(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:s,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var ki=["name","message","stack","code"],Ei=function(t,e){this.payload=t,this.meta=e},ji=function(t,e){this.payload=t,this.meta=e},Ci=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,n=ki;i<n.length;i++){var o=n[i];"string"==typeof t[o]&&(e[o]=t[o])}return e}return{message:String(t)}};function Ni(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,i){var n=$i(t+"/fulfilled",(function(t,e,i,n){return{payload:t,meta:vi(di({},n||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),o=$i(t+"/pending",(function(t,e,i){return{payload:void 0,meta:vi(di({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),r=$i(t+"/rejected",(function(t,e,n,o,r){return{payload:o,error:(i&&i.serializeError||Ci)(t||"Rejected"),meta:vi(di({},r||{}),{arg:n,requestId:e,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),s="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(a,l,c){var u,f=(null==i?void 0:i.idGenerator)?i.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",i=t;i--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),h=new s;function p(t){u=t,h.abort()}var d=function(){return s=this,d=null,v=function(){var s,d,v,b,y,g;return ri(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),b=null==(s=null==i?void 0:i.condition)?void 0:s.call(i,t,{getState:l,extra:c}),null===(x=b)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,b];case 1:b=m.sent(),m.label=2;case 2:if(!1===b||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return y=new Promise((function(t,e){return h.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:u||"Aborted"})}))})),a(o(f,t,null==(d=null==i?void 0:i.getPendingMeta)?void 0:d.call(i,{requestId:f,arg:t},{getState:l,extra:c}))),[4,Promise.race([y,Promise.resolve(e(t,{dispatch:a,getState:l,extra:c,requestId:f,signal:h.signal,abort:p,rejectWithValue:function(t,e){return new Ei(t,e)},fulfillWithValue:function(t,e){return new ji(t,e)}})).then((function(e){if(e instanceof Ei)throw e;return e instanceof ji?n(e.payload,f,t,e.meta):n(e,f,t)}))])];case 3:return v=m.sent(),[3,5];case 4:return g=m.sent(),v=g instanceof Ei?r(null,f,t,g.payload,g.meta):r(g,f,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&r.match(v)&&v.meta.condition||a(v),[2,v]}var x}))},new Promise((function(t,e){var i=function(t){try{o(v.next(t))}catch(t){e(t)}},n=function(t){try{o(v.throw(t))}catch(t){e(t)}},o=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,n)};o((v=v.apply(s,d)).next())}));var s,d,v}();return Object.assign(d,{abort:p,requestId:f,arg:t,unwrap:function(){return d.then(Ni)}})}}),{pending:o,rejected:r,fulfilled:n,typePrefix:t})}t.withTypes=function(){return t}}();var Ri="listenerMiddleware";$i(Ri+"/add"),$i(Ri+"/removeAll"),$i(Ri+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=o[t];return i?i.enumerable=e:o[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[Me];return Ie.get(e,t)},set:function(e){var i=this[Me];Ie.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var o=t[e][Me];if(!o.P)switch(o.i){case 5:n(o)&&ge(o);break;case 4:i(o)&&ge(o)}}}function i(t){for(var e=t.t,i=t.k,n=Ue(i),o=n.length-1;o>=0;o--){var r=n[o];if(r!==Me){var s=e[r];if(void 0===s&&!Jt(e,r))return!0;var a=i[r],l=a&&a[Me];if(l?l.t!==s:!Gt(a,s))return!0}}var c=!!e[Me];return n.length!==Ue(e).length+(c?0:1)}function n(t){var e=t.k;if(e.length!==t.t.length)return!0;var i=Object.getOwnPropertyDescriptor(e,e.length-1);if(i&&!i.get)return!0;for(var n=0;n<e.length;n++)if(!e.hasOwnProperty(n))return!0;return!1}var o={};!function(t,e){Fe[t]||(Fe[t]=e)}("ES5",{J:function(e,i){var n=Array.isArray(e),o=function(e,i){if(e){for(var n=Array(i.length),o=0;o<i.length;o++)Object.defineProperty(n,""+o,t(o,!0));return n}var r=Pe(i);delete r[Me];for(var s=Ue(r),a=0;a<s.length;a++){var l=s[a];r[l]=t(l,e||!!r[l].enumerable)}return Object.create(Object.getPrototypeOf(i),r)}(n,e),r={i:n?5:4,A:i?i.A:se(),P:!1,I:!1,R:{},l:i,t:e,k:o,o:null,g:!1,C:!1};return Object.defineProperty(o,Me,{value:r,writable:!0}),o},S:function(t,i,o){o?Ht(i)&&i[Me].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[Me];if(i){var o=i.t,r=i.k,s=i.R,a=i.i;if(4===a)Vt(r,(function(e){e!==Me&&(void 0!==o[e]||Jt(o,e)?s[e]||t(r[e]):(s[e]=!0,ge(i)))})),Vt(o,(function(t){void 0!==r[t]||Jt(r,t)||(s[t]=!1,ge(i))}));else if(5===a){if(n(i)&&(ge(i),s.length=!0),r.length<o.length)for(var l=r.length;l<o.length;l++)s[l]=!1;else for(var c=o.length;c<r.length;c++)s[c]=!0;for(var u=Math.min(r.length,o.length),f=0;f<u;f++)r.hasOwnProperty(f)||(s[f]=!0),void 0===s[f]&&t(r[f])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):n(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Mi{static get(t){var e;const i="string"==typeof t?t:t.name,n="string"==typeof t?void 0:t,o=window.ftReduxStores[i];if(It(o))return o;if(null==n)return;const r=Si({...n,reducers:null!==(e=n.reducers)&&void 0!==e?e:{}}),s=wi({reducer:(t,e)=>{var i;switch(e.type){case"CLEAR_FT_REDUX_STORE":return r.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(i=e.overwrites)&&void 0!==i?i:{}};default:return r.reducer(t,e)}}});return window.ftReduxStores[n.name]=new Mi(r,s)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,i)=>{const n=e,o=t[n];return o?(...t)=>{const e=o(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[n]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const Ai=t=>{const e=null!=t?t:{};return(t,i)=>{var n;const o={hasChanged:(t,e)=>!p(t,e),attribute:!1,...e};s(o)(t,i);const r=t;r.reduxProperties=r.reduxProperties||new Map,r.reduxProperties.set(i,{selector:null!==(n=e.selector)&&void 0!==n?n:t=>t[i],store:e.store})}},Ui=Symbol("elementInternals");var Pi,Fi,Ii;const zi=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Ii=null===(Fi=null===(Pi=window.safari)||void 0===Pi?void 0:Pi.pushNotification)||void 0===Fi?void 0:Fi.toString())&&void 0!==Ii?Ii:""),Ti=1,Li=2,Bi=t=>(...e)=>({_$litDirective$:t,values:e});
|
|
96
|
+
`;class Bt{constructor(t,o){this.defaultLabels=t,this.labels=o}resolve(t,...o){var e,r;t=this.resolvePluralKey(t,o);let i=null!==(r=null!==(e=this.labels[t])&&void 0!==e?e:this.defaultLabels[t])&&void 0!==r?r:"";return o.forEach(((t,o)=>i=i.replace(new RegExp(`\\{${o}([^}]*)\\}`,"g"),((o,e)=>this.formatValue(t,e))))),i}resolvePluralKey(t,o){for(let e of o)if("number"==typeof e){const o=`${String(t)}[\\=${e}]`;if(o in this.labels||o in this.defaultLabels)return o}return t}formatValue(t,o){return t instanceof Date?this.formatDate(t,o):null!=t?t:""}formatDate(t,o){const e=e=>(null==o?void 0:o.includes("date"))?t.toLocaleDateString(e):(null==o?void 0:o.includes("time"))?t.toLocaleTimeString(e):t.toLocaleString(e);try{return e(document.documentElement.lang)}catch(t){return e()}}}function Mt(t){var o;return null!==(o=null==t?void 0:t.isFtReduxStore)&&void 0!==o&&o}var Dt,Pt,Ht;const Tt=Symbol("internalReduxEventsUnsubscribers"),_t=Symbol("internalStoresUnsubscribers"),Gt=Symbol("internalStores");class Vt extends Ft{constructor(){super(...arguments),this[Dt]=new Map,this[Pt]=new Map,this[Ht]=[]}update(t){var o;super.update(t),(null===(o=this.reduxReactiveProperties)||void 0===o?void 0:o.some((o=>t.has(o))))&&this.updateFromStores()}getUnnamedStore(){if(this[Gt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Gt].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Gt].get(t)}addStore(t,o){var e;o=null!==(e=null!=o?o:Mt(t)?t.name:void 0)&&void 0!==e?e:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,t)}removeStore(t){const o="string"==typeof t?t:t.name;this.unsubscribeFromStore(o),this[Gt].delete(o)}setupStore(t,o){this[Gt].set(t,o),this.subscribeToStore(t,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Gt].forEach(((t,o)=>this.subscribeToStore(o,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,o)=>{const e=this.constructor.getPropertyOptions(o);if(!(null==e?void 0:e.attribute)||!this.hasAttribute("string"==typeof(null==e?void 0:e.attribute)?e.attribute:o)){const e=this.getStore(t.store);e&&(t.store?this[_t].has(t.store):this[_t].size>0)&&(this[o]=t.selector(e.getState(),this))}}))}subscribeToStore(t,o){var e;this[_t].set(t,o.subscribe((()=>this.updateFromStores()))),Mt(o)&&o.eventBus&&(null===(e=this.reduxEventListeners)||void 0===e||e.forEach(((t,e)=>{if("function"==typeof this[e]&&(!t.store||o.name===t.store)){const r=t=>this[e](t);o.eventBus.addEventListener(t.eventName,r),this[Tt].push((()=>o.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[_t].forEach(((t,o)=>this.unsubscribeFromStore(o))),this[Tt].forEach((t=>t())),this[Tt]=[]}unsubscribeFromStore(t){this[_t].has(t)&&this[_t].get(t)(),this[_t].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function qt(t){for(var o=arguments.length,e=Array(o>1?o-1:0),r=1;r<o;r++)e[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(e.length?" "+e.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Yt(t){return!!t&&!!t[Fo]}function Jt(t){var o;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var o=Object.getPrototypeOf(t);if(null===o)return!0;var e=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return e===Object||"function"==typeof e&&Function.toString.call(e)===Zo}(t)||Array.isArray(t)||!!t[zo]||!!(null===(o=t.constructor)||void 0===o?void 0:o[zo])||ro(t)||io(t))}function Xt(t,o,e){void 0===e&&(e=!1),0===Qt(t)?(e?Object.keys:Ao)(t).forEach((function(r){e&&"symbol"==typeof r||o(r,t[r],t)})):t.forEach((function(e,r){return o(r,e,t)}))}function Qt(t){var o=t[Fo];return o?o.i>3?o.i-4:o.i:Array.isArray(t)?1:ro(t)?2:io(t)?3:0}function to(t,o){return 2===Qt(t)?t.has(o):Object.prototype.hasOwnProperty.call(t,o)}function oo(t,o,e){var r=Qt(t);2===r?t.set(o,e):3===r?t.add(e):t[o]=e}function eo(t,o){return t===o?0!==t||1/t==1/o:t!=t&&o!=o}function ro(t){return Lo&&t instanceof Map}function io(t){return Wo&&t instanceof Set}function no(t){return t.o||t.t}function ao(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var o=Bo(t);delete o[Fo];for(var e=Ao(o),r=0;r<e.length;r++){var i=e[r],n=o[i];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(o[i]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),o)}function lo(t,o){return void 0===o&&(o=!1),co(t)||Yt(t)||!Jt(t)||(Qt(t)>1&&(t.set=t.add=t.clear=t.delete=so),Object.freeze(t),o&&Xt(t,(function(t,o){return lo(o,!0)}),!0)),t}function so(){qt(2)}function co(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function fo(t){var o=Mo[t];return o||qt(18,t),o}function po(){return Io}function ho(t,o){o&&(fo("Patches"),t.u=[],t.s=[],t.v=o)}function uo(t){yo(t),t.p.forEach(bo),t.p=null}function yo(t){t===Io&&(Io=t.l)}function go(t){return Io={p:[],l:Io,h:t,m:!0,_:0}}function bo(t){var o=t[Fo];0===o.i||1===o.i?o.j():o.g=!0}function mo(t,o){o._=o.p.length;var e=o.p[0],r=void 0!==t&&t!==e;return o.h.O||fo("ES5").S(o,t,r),r?(e[Fo].P&&(uo(o),qt(4)),Jt(t)&&(t=vo(o,t),o.l||Oo(o,t)),o.u&&fo("Patches").M(e[Fo].t,t,o.u,o.s)):t=vo(o,e,[]),uo(o),o.u&&o.v(o.u,o.s),t!==Ko?t:void 0}function vo(t,o,e){if(co(o))return o;var r=o[Fo];if(!r)return Xt(o,(function(i,n){return xo(t,r,o,i,n,e)}),!0),o;if(r.A!==t)return o;if(!r.P)return Oo(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=ao(r.k):r.o,n=i,a=!1;3===r.i&&(n=new Set(i),i.clear(),a=!0),Xt(n,(function(o,n){return xo(t,r,i,o,n,e,a)})),Oo(t,i,!1),e&&t.u&&fo("Patches").N(r,e,t.u,t.s)}return r.o}function xo(t,o,e,r,i,n,a){if(Yt(i)){var l=vo(t,i,n&&o&&3!==o.i&&!to(o.R,r)?n.concat(r):void 0);if(oo(e,r,l),!Yt(l))return;t.m=!1}else a&&e.add(i);if(Jt(i)&&!co(i)){if(!t.h.D&&t._<1)return;vo(t,i),o&&o.A.l||Oo(t,i)}}function Oo(t,o,e){void 0===e&&(e=!1),!t.l&&t.h.D&&t.m&&lo(o,e)}function wo(t,o){var e=t[Fo];return(e?no(e):t)[o]}function So(t,o){if(o in t)for(var e=Object.getPrototypeOf(t);e;){var r=Object.getOwnPropertyDescriptor(e,o);if(r)return r;e=Object.getPrototypeOf(e)}}function No(t){t.P||(t.P=!0,t.l&&No(t.l))}function Co(t){t.o||(t.o=ao(t.t))}function $o(t,o,e){var r=ro(o)?fo("MapSet").F(o,e):io(o)?fo("MapSet").T(o,e):t.O?function(t,o){var e=Array.isArray(t),r={i:e?1:0,A:o?o.A:po(),P:!1,I:!1,R:{},l:o,t,k:null,o:null,j:null,C:!1},i=r,n=Do;e&&(i=[r],n=Po);var a=Proxy.revocable(i,n),l=a.revoke,s=a.proxy;return r.k=s,r.j=l,s}(o,e):fo("ES5").J(o,e);return(e?e.A:po()).p.push(r),r}function Eo(t){return Yt(t)||qt(22,t),function t(o){if(!Jt(o))return o;var e,r=o[Fo],i=Qt(o);if(r){if(!r.P&&(r.i<4||!fo("ES5").K(r)))return r.t;r.I=!0,e=Ro(o,i),r.I=!1}else e=Ro(o,i);return Xt(e,(function(o,i){r&&function(t,o){return 2===Qt(t)?t.get(o):t[o]}(r.t,o)===i||oo(e,o,t(i))})),3===i?new Set(e):e}(t)}function Ro(t,o){switch(o){case 2:return new Map(t);case 3:return Array.from(t)}return ao(t)}Dt=_t,Pt=Gt,Ht=Tt;var ko,Io,Uo="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Lo="undefined"!=typeof Map,Wo="undefined"!=typeof Set,jo="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Ko=Uo?Symbol.for("immer-nothing"):((ko={})["immer-nothing"]=!0,ko),zo=Uo?Symbol.for("immer-draftable"):"__$immer_draftable",Fo=Uo?Symbol.for("immer-state"):"__$immer_state",Zo=""+Object.prototype.constructor,Ao="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Bo=Object.getOwnPropertyDescriptors||function(t){var o={};return Ao(t).forEach((function(e){o[e]=Object.getOwnPropertyDescriptor(t,e)})),o},Mo={},Do={get:function(t,o){if(o===Fo)return t;var e=no(t);if(!to(e,o))return function(t,o,e){var r,i=So(o,e);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(t.k):void 0}(t,e,o);var r=e[o];return t.I||!Jt(r)?r:r===wo(t.t,o)?(Co(t),t.o[o]=$o(t.A.h,r,t)):r},has:function(t,o){return o in no(t)},ownKeys:function(t){return Reflect.ownKeys(no(t))},set:function(t,o,e){var r=So(no(t),o);if(null==r?void 0:r.set)return r.set.call(t.k,e),!0;if(!t.P){var i=wo(no(t),o),n=null==i?void 0:i[Fo];if(n&&n.t===e)return t.o[o]=e,t.R[o]=!1,!0;if(eo(e,i)&&(void 0!==e||to(t.t,o)))return!0;Co(t),No(t)}return t.o[o]===e&&(void 0!==e||o in t.o)||Number.isNaN(e)&&Number.isNaN(t.o[o])||(t.o[o]=e,t.R[o]=!0),!0},deleteProperty:function(t,o){return void 0!==wo(t.t,o)||o in t.t?(t.R[o]=!1,Co(t),No(t)):delete t.R[o],t.o&&delete t.o[o],!0},getOwnPropertyDescriptor:function(t,o){var e=no(t),r=Reflect.getOwnPropertyDescriptor(e,o);return r?{writable:!0,configurable:1!==t.i||"length"!==o,enumerable:r.enumerable,value:e[o]}:r},defineProperty:function(){qt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){qt(12)}},Po={};Xt(Do,(function(t,o){Po[t]=function(){return arguments[0]=arguments[0][0],o.apply(this,arguments)}})),Po.deleteProperty=function(t,o){return Po.set.call(this,t,o,void 0)},Po.set=function(t,o,e){return Do.set.call(this,t[0],o,e,t[0])};var Ho=function(){function t(t){var o=this;this.O=jo,this.D=!0,this.produce=function(t,e,r){if("function"==typeof t&&"function"!=typeof e){var i=e;e=t;var n=o;return function(t){var o=this;void 0===t&&(t=i);for(var r=arguments.length,a=Array(r>1?r-1:0),l=1;l<r;l++)a[l-1]=arguments[l];return n.produce(t,(function(t){var r;return(r=e).call.apply(r,[o,t].concat(a))}))}}var a;if("function"!=typeof e&&qt(6),void 0!==r&&"function"!=typeof r&&qt(7),Jt(t)){var l=go(o),s=$o(o,t,void 0),c=!0;try{a=e(s),c=!1}finally{c?uo(l):yo(l)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return ho(l,r),mo(t,l)}),(function(t){throw uo(l),t})):(ho(l,r),mo(a,l))}if(!t||"object"!=typeof t){if(void 0===(a=e(t))&&(a=t),a===Ko&&(a=void 0),o.D&&lo(a,!0),r){var f=[],p=[];fo("Patches").M(t,a,f,p),r(f,p)}return a}qt(21,t)},this.produceWithPatches=function(t,e){if("function"==typeof t)return function(e){for(var r=arguments.length,i=Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return o.produceWithPatches(e,(function(o){return t.apply(void 0,[o].concat(i))}))};var r,i,n=o.produce(t,e,(function(t,o){r=t,i=o}));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 o=t.prototype;return o.createDraft=function(t){Jt(t)||qt(8),Yt(t)&&(t=Eo(t));var o=go(this),e=$o(this,t,void 0);return e[Fo].C=!0,yo(o),e},o.finishDraft=function(t,o){var e=(t&&t[Fo]).A;return ho(e,o),mo(void 0,e)},o.setAutoFreeze=function(t){this.D=t},o.setUseProxies=function(t){t&&!jo&&qt(20),this.O=t},o.applyPatches=function(t,o){var e;for(e=o.length-1;e>=0;e--){var r=o[e];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}e>-1&&(o=o.slice(e+1));var i=fo("Patches").$;return Yt(t)?i(t,o):this.produce(t,(function(t){return i(t,o)}))},t}(),To=new Ho,_o=To.produce;function Go(t){return Go="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},Go(t)}function Vo(t){var o=function(t,o){if("object"!==Go(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,o||"default");if("object"!==Go(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(t)}(t,"string");return"symbol"===Go(o)?o:String(o)}function qo(t,o,e){return(o=Vo(o))in t?Object.defineProperty(t,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[o]=e,t}function Yo(t,o){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);o&&(r=r.filter((function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),e.push.apply(e,r)}return e}function Jo(t){for(var o=1;o<arguments.length;o++){var e=null!=arguments[o]?arguments[o]:{};o%2?Yo(Object(e),!0).forEach((function(o){qo(t,o,e[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Yo(Object(e)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))}))}return t}function Xo(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. "}To.produceWithPatches.bind(To),To.setAutoFreeze.bind(To),To.setUseProxies.bind(To),To.applyPatches.bind(To),To.createDraft.bind(To),To.finishDraft.bind(To);var Qo="function"==typeof Symbol&&Symbol.observable||"@@observable",te=function(){return Math.random().toString(36).substring(7).split("").join(".")},oe={INIT:"@@redux/INIT"+te(),REPLACE:"@@redux/REPLACE"+te(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+te()}};function ee(t,o,e){var r;if("function"==typeof o&&"function"==typeof e||"function"==typeof e&&"function"==typeof arguments[3])throw new Error(Xo(0));if("function"==typeof o&&void 0===e&&(e=o,o=void 0),void 0!==e){if("function"!=typeof e)throw new Error(Xo(1));return e(ee)(t,o)}if("function"!=typeof t)throw new Error(Xo(2));var i=t,n=o,a=[],l=a,s=!1;function c(){l===a&&(l=a.slice())}function f(){if(s)throw new Error(Xo(3));return n}function p(t){if("function"!=typeof t)throw new Error(Xo(4));if(s)throw new Error(Xo(5));var o=!0;return c(),l.push(t),function(){if(o){if(s)throw new Error(Xo(6));o=!1,c();var e=l.indexOf(t);l.splice(e,1),a=null}}}function h(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var o=t;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return Object.getPrototypeOf(t)===o}(t))throw new Error(Xo(7));if(void 0===t.type)throw new Error(Xo(8));if(s)throw new Error(Xo(9));try{s=!0,n=i(n,t)}finally{s=!1}for(var o=a=l,e=0;e<o.length;e++){(0,o[e])()}return t}return h({type:oe.INIT}),(r={dispatch:h,subscribe:p,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Xo(10));i=t,h({type:oe.REPLACE})}})[Qo]=function(){var t,o=p;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Xo(11));function e(){t.next&&t.next(f())}return e(),{unsubscribe:o(e)}}})[Qo]=function(){return this},t},r}function re(t){for(var o=Object.keys(t),e={},r=0;r<o.length;r++){var i=o[r];"function"==typeof t[i]&&(e[i]=t[i])}var n,a=Object.keys(e);try{!function(t){Object.keys(t).forEach((function(o){var e=t[o];if(void 0===e(void 0,{type:oe.INIT}))throw new Error(Xo(12));if(void 0===e(void 0,{type:oe.PROBE_UNKNOWN_ACTION()}))throw new Error(Xo(13))}))}(e)}catch(t){n=t}return function(t,o){if(void 0===t&&(t={}),n)throw n;for(var r=!1,i={},l=0;l<a.length;l++){var s=a[l],c=e[s],f=t[s],p=c(f,o);if(void 0===p)throw o&&o.type,new Error(Xo(14));i[s]=p,r=r||p!==f}return(r=r||a.length!==Object.keys(t).length)?i:t}}function ie(){for(var t=arguments.length,o=new Array(t),e=0;e<t;e++)o[e]=arguments[e];return 0===o.length?function(t){return t}:1===o.length?o[0]:o.reduce((function(t,o){return function(){return t(o.apply(void 0,arguments))}}))}function ne(){for(var t=arguments.length,o=new Array(t),e=0;e<t;e++)o[e]=arguments[e];return function(t){return function(){var e=t.apply(void 0,arguments),r=function(){throw new Error(Xo(15))},i={getState:e.getState,dispatch:function(){return r.apply(void 0,arguments)}},n=o.map((function(t){return t(i)}));return r=ie.apply(void 0,n)(e.dispatch),Jo(Jo({},e),{},{dispatch:r})}}}function ae(t){return function(o){var e=o.dispatch,r=o.getState;return function(o){return function(i){return"function"==typeof i?i(e,r,t):o(i)}}}}var le=ae();le.withExtraArgument=ae;var se,ce=le,fe=(se=function(t,o){return se=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(t[e]=o[e])},se(t,o)},function(t,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function e(){this.constructor=t}se(t,o),t.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)}),pe=function(t,o){var e,r,i,n,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return n={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function l(n){return function(l){return function(n){if(e)throw new TypeError("Generator is already executing.");for(;a;)try{if(e=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=o.call(t,a)}catch(t){n=[6,t],r=0}finally{e=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,l])}}},he=function(t,o){for(var e=0,r=o.length,i=t.length;e<r;e++,i++)t[i]=o[e];return t},de=Object.defineProperty,ue=Object.defineProperties,ye=Object.getOwnPropertyDescriptors,ge=Object.getOwnPropertySymbols,be=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable,ve=function(t,o,e){return o in t?de(t,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[o]=e},xe=function(t,o){for(var e in o||(o={}))be.call(o,e)&&ve(t,e,o[e]);if(ge)for(var r=0,i=ge(o);r<i.length;r++){e=i[r];me.call(o,e)&&ve(t,e,o[e])}return t},Oe=function(t,o){return ue(t,ye(o))},we="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?ie:ie.apply(null,arguments)};var Se=function(t){function o(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var i=t.apply(this,e)||this;return Object.setPrototypeOf(i,o.prototype),i}return fe(o,t),Object.defineProperty(o,Symbol.species,{get:function(){return o},enumerable:!1,configurable:!0}),o.prototype.concat=function(){for(var o=[],e=0;e<arguments.length;e++)o[e]=arguments[e];return t.prototype.concat.apply(this,o)},o.prototype.prepend=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length&&Array.isArray(t[0])?new(o.bind.apply(o,he([void 0],t[0].concat(this)))):new(o.bind.apply(o,he([void 0],t.concat(this))))},o}(Array),Ne=function(t){function o(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var i=t.apply(this,e)||this;return Object.setPrototypeOf(i,o.prototype),i}return fe(o,t),Object.defineProperty(o,Symbol.species,{get:function(){return o},enumerable:!1,configurable:!0}),o.prototype.concat=function(){for(var o=[],e=0;e<arguments.length;e++)o[e]=arguments[e];return t.prototype.concat.apply(this,o)},o.prototype.prepend=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length&&Array.isArray(t[0])?new(o.bind.apply(o,he([void 0],t[0].concat(this)))):new(o.bind.apply(o,he([void 0],t.concat(this))))},o}(Array);function Ce(t){return Jt(t)?_o(t,(function(){})):t}function $e(){return function(t){return function(t){void 0===t&&(t={});var o=t.thunk,e=void 0===o||o;t.immutableCheck,t.serializableCheck;var r=new Se;e&&(!function(t){return"boolean"==typeof t}(e)?r.push(ce.withExtraArgument(e.extraArgument)):r.push(ce));return r}(t)}}function Ee(t){var o,e=$e(),r=t||{},i=r.reducer,n=void 0===i?void 0:i,a=r.middleware,l=void 0===a?e():a,s=r.devTools,c=void 0===s||s,f=r.preloadedState,p=void 0===f?void 0:f,h=r.enhancers,d=void 0===h?void 0:h;if("function"==typeof n)o=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var o=Object.getPrototypeOf(t);if(null===o)return!0;for(var e=o;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return o===e}(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');o=re(n)}var u=l;"function"==typeof u&&(u=u(e));var y=ne.apply(void 0,u),g=ie;c&&(g=we(xe({trace:!1},"object"==typeof c&&c)));var b=new Ne(y),m=b;return Array.isArray(d)?m=he([y],d):"function"==typeof d&&(m=d(b)),ee(o,p,g.apply(void 0,m))}function Re(t,o){function e(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(o){var i=o.apply(void 0,e);if(!i)throw new Error("prepareAction did not return an object");return xe(xe({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:e[0]}}return e.toString=function(){return""+t},e.type=t,e.match=function(o){return o.type===t},e}function ke(t){var o,e={},r=[],i={addCase:function(t,o){var r="string"==typeof t?t:t.type;if(r in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[r]=o,i},addMatcher:function(t,o){return r.push({matcher:t,reducer:o}),i},addDefaultCase:function(t){return o=t,i}};return t(i),[e,r,o]}function Ie(t){var o=t.name;if(!o)throw new Error("`name` is a required option for createSlice");var e,r="function"==typeof t.initialState?t.initialState:Ce(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},l={},s={};function c(){var o="function"==typeof t.extraReducers?ke(t.extraReducers):[t.extraReducers],e=o[0],i=void 0===e?{}:e,n=o[1],a=void 0===n?[]:n,s=o[2],c=void 0===s?void 0:s,f=xe(xe({},i),l);return function(t,o,e,r){void 0===e&&(e=[]);var i,n="function"==typeof o?ke(o):[o,e,r],a=n[0],l=n[1],s=n[2];if(function(t){return"function"==typeof t}(t))i=function(){return Ce(t())};else{var c=Ce(t);i=function(){return c}}function f(t,o){void 0===t&&(t=i());var e=he([a[o.type]],l.filter((function(t){return(0,t.matcher)(o)})).map((function(t){return t.reducer})));return 0===e.filter((function(t){return!!t})).length&&(e=[s]),e.reduce((function(t,e){if(e){var r;if(Yt(t))return void 0===(r=e(t,o))?t:r;if(Jt(t))return _o(t,(function(t){return e(t,o)}));if(void 0===(r=e(t,o))){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 o in f)t.addCase(o,f[o]);for(var e=0,r=a;e<r.length;e++){var i=r[e];t.addMatcher(i.matcher,i.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var e,r,n=i[t],c=o+"/"+t;"reducer"in n?(e=n.reducer,r=n.prepare):e=n,a[t]=e,l[c]=e,s[t]=r?Re(c,r):Re(c)})),{name:o,reducer:function(t,o){return e||(e=c()),e(t,o)},actions:s,caseReducers:a,getInitialState:function(){return e||(e=c()),e.getInitialState()}}}var Ue=["name","message","stack","code"],Le=function(t,o){this.payload=t,this.meta=o},We=function(t,o){this.payload=t,this.meta=o},je=function(t){if("object"==typeof t&&null!==t){for(var o={},e=0,r=Ue;e<r.length;e++){var i=r[e];"string"==typeof t[i]&&(o[i]=t[i])}return o}return{message:String(t)}};function Ke(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,o,e){var r=Re(t+"/fulfilled",(function(t,o,e,r){return{payload:t,meta:Oe(xe({},r||{}),{arg:e,requestId:o,requestStatus:"fulfilled"})}})),i=Re(t+"/pending",(function(t,o,e){return{payload:void 0,meta:Oe(xe({},e||{}),{arg:o,requestId:t,requestStatus:"pending"})}})),n=Re(t+"/rejected",(function(t,o,r,i,n){return{payload:i,error:(e&&e.serializeError||je)(t||"Rejected"),meta:Oe(xe({},n||{}),{arg:r,requestId:o,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(l,s,c){var f,p=(null==e?void 0:e.idGenerator)?e.idGenerator(t):function(t){void 0===t&&(t=21);for(var o="",e=t;e--;)o+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return o}(),h=new a;function d(t){f=t,h.abort()}var u=function(){return a=this,u=null,y=function(){var a,u,y,g,b,m;return pe(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),g=null==(a=null==e?void 0:e.condition)?void 0:a.call(e,t,{getState:s,extra:c}),null===(x=g)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,g];case 1:g=v.sent(),v.label=2;case 2:if(!1===g||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,o){return h.signal.addEventListener("abort",(function(){return o({name:"AbortError",message:f||"Aborted"})}))})),l(i(p,t,null==(u=null==e?void 0:e.getPendingMeta)?void 0:u.call(e,{requestId:p,arg:t},{getState:s,extra:c}))),[4,Promise.race([b,Promise.resolve(o(t,{dispatch:l,getState:s,extra:c,requestId:p,signal:h.signal,abort:d,rejectWithValue:function(t,o){return new Le(t,o)},fulfillWithValue:function(t,o){return new We(t,o)}})).then((function(o){if(o instanceof Le)throw o;return o instanceof We?r(o.payload,p,t,o.meta):r(o,p,t)}))])];case 3:return y=v.sent(),[3,5];case 4:return m=v.sent(),y=m instanceof Le?n(null,p,t,m.payload,m.meta):n(m,p,t),[3,5];case 5:return e&&!e.dispatchConditionRejection&&n.match(y)&&y.meta.condition||l(y),[2,y]}var x}))},new Promise((function(t,o){var e=function(t){try{i(y.next(t))}catch(t){o(t)}},r=function(t){try{i(y.throw(t))}catch(t){o(t)}},i=function(o){return o.done?t(o.value):Promise.resolve(o.value).then(e,r)};i((y=y.apply(a,u)).next())}));var a,u,y}();return Object.assign(u,{abort:d,requestId:p,arg:t,unwrap:function(){return u.then(Ke)}})}}),{pending:i,rejected:n,fulfilled:r,typePrefix:t})}t.withTypes=function(){return t}}();var ze="listenerMiddleware";Re(ze+"/add"),Re(ze+"/removeAll"),Re(ze+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,o){var e=i[t];return e?e.enumerable=o:i[t]=e={configurable:!0,enumerable:o,get:function(){var o=this[Fo];return Do.get(o,t)},set:function(o){var e=this[Fo];Do.set(e,t,o)}},e}function o(t){for(var o=t.length-1;o>=0;o--){var i=t[o][Fo];if(!i.P)switch(i.i){case 5:r(i)&&No(i);break;case 4:e(i)&&No(i)}}}function e(t){for(var o=t.t,e=t.k,r=Ao(e),i=r.length-1;i>=0;i--){var n=r[i];if(n!==Fo){var a=o[n];if(void 0===a&&!to(o,n))return!0;var l=e[n],s=l&&l[Fo];if(s?s.t!==a:!eo(l,a))return!0}}var c=!!o[Fo];return r.length!==Ao(o).length+(c?0:1)}function r(t){var o=t.k;if(o.length!==t.t.length)return!0;var e=Object.getOwnPropertyDescriptor(o,o.length-1);if(e&&!e.get)return!0;for(var r=0;r<o.length;r++)if(!o.hasOwnProperty(r))return!0;return!1}var i={};!function(t,o){Mo[t]||(Mo[t]=o)}("ES5",{J:function(o,e){var r=Array.isArray(o),i=function(o,e){if(o){for(var r=Array(e.length),i=0;i<e.length;i++)Object.defineProperty(r,""+i,t(i,!0));return r}var n=Bo(e);delete n[Fo];for(var a=Ao(n),l=0;l<a.length;l++){var s=a[l];n[s]=t(s,o||!!n[s].enumerable)}return Object.create(Object.getPrototypeOf(e),n)}(r,o),n={i:r?5:4,A:e?e.A:po(),P:!1,I:!1,R:{},l:e,t:o,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,Fo,{value:n,writable:!0}),i},S:function(t,e,i){i?Yt(e)&&e[Fo].A===t&&o(t.p):(t.u&&function t(o){if(o&&"object"==typeof o){var e=o[Fo];if(e){var i=e.t,n=e.k,a=e.R,l=e.i;if(4===l)Xt(n,(function(o){o!==Fo&&(void 0!==i[o]||to(i,o)?a[o]||t(n[o]):(a[o]=!0,No(e)))})),Xt(i,(function(t){void 0!==n[t]||to(n,t)||(a[t]=!1,No(e))}));else if(5===l){if(r(e)&&(No(e),a.length=!0),n.length<i.length)for(var s=n.length;s<i.length;s++)a[s]=!1;else for(var c=i.length;c<n.length;c++)a[c]=!0;for(var f=Math.min(n.length,i.length),p=0;p<f;p++)n.hasOwnProperty(p)||(a[p]=!0),void 0===a[p]&&t(n[p])}}}}(t.p[0]),o(t.p))},K:function(t){return 4===t.i?e(t):r(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Fe{static get(t){var o;const e="string"==typeof t?t:t.name,r="string"==typeof t?void 0:t,i=window.ftReduxStores[e];if(Mt(i))return i;if(null==r)return;const n=Ie({...r,reducers:null!==(o=r.reducers)&&void 0!==o?o:{}}),a=Ee({reducer:(t,o)=>{var e;switch(o.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(e=o.overwrites)&&void 0!==e?e:{}};default:return n.reducer(t,o)}}});return window.ftReduxStores[r.name]=new Fe(n,a)}constructor(t,o){this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.actions=new Proxy(this.reduxSlice.actions,{get:(t,o,e)=>{const r=o,i=t[r];return i?(...t)=>{const o=i(...t);return this.reduxStore.dispatch(o),o}:t=>{this.setState({[r]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const Ze=t=>{const o=null!=t?t:{};return(t,e)=>{var r;const i={hasChanged:(t,o)=>!d(t,o),attribute:!1,...o};a(i)(t,e);const n=t;n.reduxProperties=n.reduxProperties||new Map,n.reduxProperties.set(e,{selector:null!==(r=o.selector)&&void 0!==r?r:t=>t[e],store:o.store})}},Ae=Symbol("elementInternals");var Be,Me,De;const Pe=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(De=null===(Me=null===(Be=window.safari)||void 0===Be?void 0:Be.pushNotification)||void 0===Me?void 0:Me.toString())&&void 0!==De?De:""),He=1,Te=2,_e=t=>(...o)=>({_$litDirective$:t,values:o});
|
|
97
97
|
/**
|
|
98
98
|
* @license
|
|
99
99
|
* Copyright 2017 Google LLC
|
|
100
100
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
101
|
-
*/class
|
|
101
|
+
*/class Ge{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,e){this._$Ct=t,this._$AM=o,this._$Ci=e}_$AS(t,o){return this.update(t,o)}update(t,o){return this.render(...o)}}
|
|
102
102
|
/**
|
|
103
103
|
* @license
|
|
104
104
|
* Copyright 2020 Google LLC
|
|
105
105
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
106
|
-
*/const{I:
|
|
106
|
+
*/const{I:Ve}=bt,qe=()=>document.createComment(""),Ye=(t,o,e)=>{var r;const i=t._$AA.parentNode,n=void 0===o?t._$AB:o._$AA;if(void 0===e){const o=i.insertBefore(qe(),n),r=i.insertBefore(qe(),n);e=new Ve(o,r,t,t.options)}else{const o=e._$AB.nextSibling,a=e._$AM,l=a!==t;if(l){let o;null===(r=e._$AQ)||void 0===r||r.call(e,t),e._$AM=t,void 0!==e._$AP&&(o=t._$AU)!==a._$AU&&e._$AP(o)}if(o!==n||l){let t=e._$AA;for(;t!==o;){const o=t.nextSibling;i.insertBefore(t,n),t=o}}}return e},Je=(t,o,e=t)=>(t._$AI(o,e),t),Xe={},Qe=t=>{var o;null===(o=t._$AP)||void 0===o||o.call(t,!1,!0);let e=t._$AA;const r=t._$AB.nextSibling;for(;e!==r;){const t=e.nextSibling;e.remove(),e=t}},tr=(t,o,e)=>{const r=new Map;for(let i=o;i<=e;i++)r.set(t[i],i);return r},or=_e(class extends Ge{constructor(t){if(super(t),t.type!==Te)throw Error("repeat() can only be used in text expressions")}dt(t,o,e){let r;void 0===e?e=o:void 0!==o&&(r=o);const i=[],n=[];let a=0;for(const o of t)i[a]=r?r(o,a):a,n[a]=e(o,a),a++;return{values:n,keys:i}}render(t,o,e){return this.dt(t,o,e).values}update(t,[o,e,r]){var i;const n=(t=>t._$AH)(t),{values:a,keys:l}=this.dt(o,e,r);if(!Array.isArray(n))return this.ht=l,a;const s=null!==(i=this.ht)&&void 0!==i?i:this.ht=[],c=[];let f,p,h=0,d=n.length-1,u=0,y=a.length-1;for(;h<=d&&u<=y;)if(null===n[h])h++;else if(null===n[d])d--;else if(s[h]===l[u])c[u]=Je(n[h],a[u]),h++,u++;else if(s[d]===l[y])c[y]=Je(n[d],a[y]),d--,y--;else if(s[h]===l[y])c[y]=Je(n[h],a[y]),Ye(t,c[y+1],n[h]),h++,y--;else if(s[d]===l[u])c[u]=Je(n[d],a[u]),Ye(t,n[h],n[d]),d--,u++;else if(void 0===f&&(f=tr(l,u,y),p=tr(s,h,d)),f.has(s[h]))if(f.has(s[d])){const o=p.get(l[u]),e=void 0!==o?n[o]:null;if(null===e){const o=Ye(t,n[h]);Je(o,a[u]),c[u]=o}else c[u]=Je(e,a[u]),Ye(t,n[h],e),n[o]=null;u++}else Qe(n[d]),d--;else Qe(n[h]),h++;for(;u<=y;){const o=Ye(t,c[y+1]);Je(o,a[u]),c[u++]=o}for(;h<=d;){const t=n[h++];null!==t&&Qe(t)}return this.ht=l,((t,o=Xe)=>{t._$AH=o})(t,c),et}}),er={spacing:Nt.create("--ft-search-selected-facets-spacing","","SIZE","8px")},rr=w`
|
|
107
107
|
.ft-search-selected-facets--container {
|
|
108
108
|
display: flex;
|
|
109
109
|
flex-wrap: wrap;
|
|
110
|
-
gap: ${
|
|
110
|
+
gap: ${er.spacing};
|
|
111
111
|
}
|
|
112
|
-
`,
|
|
113
|
-
`,
|
|
112
|
+
`,ir=w`
|
|
113
|
+
`,nr=Fe.get({name:"ft-app-info",reducers:{setBaseUrl:(t,o)=>{t.baseUrl=o.payload},setApiIntegrationIdentifier:(t,o)=>{t.apiIntegrationIdentifier=o.payload},setUiLocale:(t,o)=>{t.uiLocale=o.payload},setAvailableUiLocales:(t,o)=>{t.availableUiLocales=o.payload},setEditorMode:(t,o)=>{t.editorMode=o.payload},setNoCustom:(t,o)=>{t.noCustom=o.payload},setNoCustomComponent:(t,o)=>{t.noCustomComponent=o.payload},setSession:(t,o)=>{t.session=o.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});
|
|
114
114
|
/**
|
|
115
115
|
* @license
|
|
116
116
|
* Copyright 2017 Google LLC
|
|
117
117
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
118
|
-
*/class
|
|
118
|
+
*/class ar{static build(t){const{baseUrl:o,apiIntegrationIdentifier:e}=nr.getState(),r=null!=t?t:e;if(o&&r&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,r,!0)}static get(t){var o;return null!=t?ar.build(t):null!==(o=ar.API)&&void 0!==o?o:ar.API=ar.build()}static await(t){return new Promise((o=>{let e=ar.get(t);if(e)o(e);else{const r=nr.subscribe((()=>{e=ar.get(t),e&&(r(),o(e))}))}}))}}var lr;const sr=Symbol("clearAfterUnitTest");class cr{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new r,this.listeners={},this.currentUiLocale="",this[lr]=()=>{this.defaultMessages={},this.cache=new r,this.listeners={}},this.currentUiLocale=nr.getState().uiLocale,nr.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=nr.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const o=t.name.toLowerCase();this.cache.setFinal(o,t),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,o){var e;if(t=t.toLowerCase(),Object.keys(o).length>0){const r={...null!==(e=this.defaultMessages[t])&&void 0!==e?e:{},...o};d(this.defaultMessages[t],r)||(this.defaultMessages[t]=r,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,o,...e){var r,i,n;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(i=null===(r=this.cache.getNow(t))||void 0===r?void 0:r.messages)&&void 0!==i?i:{};return new Bt(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},a).resolve(o,...e)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,o){var e;return t=t.toLowerCase(),this.listeners[t]=null!==(e=this.listeners[t])&&void 0!==e?e:new Set,this.listeners[t].add(o),()=>{var e;return null===(e=this.listeners[t])||void 0===e?void 0:e.delete(o)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>{return(o=0,new Promise((t=>setTimeout(t,o)))).then((()=>t())).catch((()=>null));var o})))}}lr=sr,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new cr((async(t,o)=>(await ar.await()).getFluidTopicsMessageContext(t,o)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new cr((async(t,o)=>(await ar.await()).getCustomMessageContext(t,o))));const fr=window.FluidTopicsI18nService;var pr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class hr extends Ft{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>ar.get(),this.cache=new r,this.cleanSessionDebouncer=new i}render(){return ot`
|
|
119
119
|
<slot></slot>
|
|
120
|
-
`}update(t){super.update(t),t.has("baseUrl")&&
|
|
120
|
+
`}update(t){super.update(t),t.has("baseUrl")&&nr.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&nr.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&nr.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&nr.actions.setNoCustom(this.noCustom),t.has("editorMode")&&nr.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&nr.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&nr.actions.setSession(this.session),t.has("availableUiLocales")&&nr.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>fr.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const o=await t.getCurrentSession();return o.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),o.idleTimeoutInMillis),o}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}hr.elementDefinitions={},hr.styles=ir,pr([a()],hr.prototype,"baseUrl",void 0),pr([a()],hr.prototype,"apiIntegrationIdentifier",void 0),pr([a()],hr.prototype,"uiLocale",void 0),pr([y([])],hr.prototype,"availableUiLocales",void 0),pr([a({type:Boolean})],hr.prototype,"editorMode",void 0),pr([a({type:Boolean})],hr.prototype,"noCustom",void 0),pr([a({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],hr.prototype,"noCustomComponent",void 0),pr([a({type:Boolean})],hr.prototype,"withManualResources",void 0),pr([y([])],hr.prototype,"messageContexts",void 0),pr([y(void 0)],hr.prototype,"session",void 0),pr([a({type:Object})],hr.prototype,"apiProvider",void 0);class dr{async listMySearches(){var t;return(null===(t=nr.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await ar.await()).listMySearches(nr.getState().session.profile.userId):[]}}const ur=new r;class yr{async listMyBookmarks(){return ur.get("bookmarks",(async()=>(await ar.await()).listMyBookmarks(nr.getState().session.profile.userId)))}clearCache(){ur.clear("bookmarks")}}const gr=Fe.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=nr.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new yr,nr.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:o}=nr.getState();d(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==o?void 0:o.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){gr.actions.savedSearches(void 0)}clearMyBookmarks(){gr.actions.bookmarks(void 0)}async reloadMySearches(){const t=new dr,o=await t.listMySearches();gr.actions.savedSearches(o)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const o=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;gr.actions.bookmarks(o)}}},u("ft-app-context")(hr);class br extends Event{constructor(){super(br.eventName)}}br.eventName="search-context-clear-all-filters";var mr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class vr extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const xr=Symbol("registerInterval");class Or extends(function(t){var o;class e extends t{constructor(){super(...arguments),this[o]=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[xr]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[xr]):this.dispatchEvent(new vr)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return o=xr,mr([l()],e.prototype,"stateManager",void 0),e}(Vt)){}
|
|
121
121
|
/**
|
|
122
122
|
* @license
|
|
123
123
|
* Copyright 2018 Google LLC
|
|
124
124
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
125
|
-
*/const
|
|
125
|
+
*/const wr=_e(class extends Ge{constructor(t){var o;if(super(t),t.type!==He||"class"!==t.name||(null===(o=t.strings)||void 0===o?void 0:o.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((o=>t[o])).join(" ")+" "}update(t,[o]){var e,r;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in o)o[t]&&!(null===(e=this.nt)||void 0===e?void 0:e.has(t))&&this.it.add(t);return this.render(o)}const i=t.element.classList;this.it.forEach((t=>{t in o||(i.remove(t),this.it.delete(t))}));for(const t in o){const e=!!o[t];e===this.it.has(t)||(null===(r=this.nt)||void 0===r?void 0:r.has(t))||(e?(i.add(t),this.it.add(t)):(i.remove(t),this.it.delete(t)))}return et}}),Sr=Nt.extend("--ft-ripple-color","",It.colorContent),Nr={color:Sr,backgroundColor:Nt.extend("--ft-ripple-background-color","",Sr),opacityContentOnSurfacePressed:Nt.external(It.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Nt.external(It.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Nt.external(It.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Nt.external(It.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Nt.create("--ft-ripple-border-radius","","SIZE","0px")},Cr=Nt.extend("--ft-ripple-color","",It.colorPrimary),$r=Cr,Er=Nt.extend("--ft-ripple-background-color","",Cr),Rr=Nt.extend("--ft-ripple-color","",It.colorSecondary),kr=Rr,Ir=Nt.extend("--ft-ripple-background-color","",Rr),Ur=w`
|
|
126
126
|
:host {
|
|
127
127
|
display: contents;
|
|
128
128
|
}
|
|
@@ -135,7 +135,7 @@ var mt,xt;let wt=class extends U{constructor(){super(...arguments),this.renderOp
|
|
|
135
135
|
|
|
136
136
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
137
137
|
overflow: hidden;
|
|
138
|
-
border-radius: ${
|
|
138
|
+
border-radius: ${Nr.borderRadius};
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
.ft-ripple .ft-ripple--background,
|
|
@@ -169,27 +169,27 @@ var mt,xt;let wt=class extends U{constructor(){super(...arguments),this.renderOp
|
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
.ft-ripple .ft-ripple--background {
|
|
172
|
-
background-color: ${
|
|
172
|
+
background-color: ${Nr.backgroundColor};
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
.ft-ripple .ft-ripple--effect {
|
|
176
|
-
background-color: ${
|
|
176
|
+
background-color: ${Nr.color};
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
180
|
-
background-color: ${
|
|
180
|
+
background-color: ${Ir};
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
184
|
-
background-color: ${
|
|
184
|
+
background-color: ${kr};
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
188
|
-
background-color: ${
|
|
188
|
+
background-color: ${Er};
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
192
|
-
background-color: ${
|
|
192
|
+
background-color: ${$r};
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
.ft-ripple .ft-ripple--background {
|
|
@@ -219,147 +219,154 @@ var mt,xt;let wt=class extends U{constructor(){super(...arguments),this.renderOp
|
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
222
|
-
opacity: ${
|
|
222
|
+
opacity: ${Nr.opacityContentOnSurfaceHover};
|
|
223
223
|
}
|
|
224
224
|
|
|
225
225
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
226
|
-
opacity: ${
|
|
226
|
+
opacity: ${Nr.opacityContentOnSurfaceSelected};
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
230
|
-
opacity: ${
|
|
230
|
+
opacity: ${Nr.opacityContentOnSurfaceFocused};
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
234
|
-
opacity: ${
|
|
234
|
+
opacity: ${Nr.opacityContentOnSurfacePressed};
|
|
235
235
|
transform: translate(-50%, -50%) scale(1);
|
|
236
236
|
}
|
|
237
|
-
`;var
|
|
237
|
+
`;var Lr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Wr extends Ft{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 i(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new i(10),this.moveRipple=t=>{var o,e;let{x:r,y:i}=this.getCoordinates(t),n=null!==(e=null===(o=this.ripple)||void 0===o?void 0:o.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=r?r-n.x:n.width/2),this.originY=Math.round(null!=i?i-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return ot`
|
|
238
238
|
<style>
|
|
239
239
|
.ft-ripple .ft-ripple--effect {
|
|
240
240
|
left: ${this.originX}px;
|
|
241
241
|
top: ${this.originY}px;
|
|
242
242
|
}
|
|
243
243
|
</style>
|
|
244
|
-
<div class="${
|
|
244
|
+
<div class="${wr(t)}">
|
|
245
245
|
<div class="ft-ripple--background"></div>
|
|
246
246
|
<div class="ft-ripple--effect"></div>
|
|
247
247
|
</div>
|
|
248
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e
|
|
248
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(o=this.target)||void 0===o||o.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,o;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(o=this.target)&&void 0!==o?o:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const o=(...t)=>o=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(o)},e=o("mouseup","contextmenu"),r=o("touchend","touchcancel"),i=t=>{["Enter"," "].includes(t.key)&&o("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",r),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",i),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",r),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",i),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const o=t,e=t;let r,i;return null!=o.x?({x:r,y:i}=o):null!=e.touches&&(r=e.touches[0].clientX,i=e.touches[0].clientY),{x:r,y:i}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Wr.elementDefinitions={},Wr.styles=Ur,Lr([a({type:Boolean})],Wr.prototype,"primary",void 0),Lr([a({type:Boolean})],Wr.prototype,"secondary",void 0),Lr([a({type:Boolean})],Wr.prototype,"unbounded",void 0),Lr([a({type:Boolean})],Wr.prototype,"activated",void 0),Lr([a({type:Boolean})],Wr.prototype,"selected",void 0),Lr([a({type:Boolean})],Wr.prototype,"disabled",void 0),Lr([l()],Wr.prototype,"hovered",void 0),Lr([l()],Wr.prototype,"focused",void 0),Lr([l()],Wr.prototype,"pressed",void 0),Lr([l()],Wr.prototype,"rippling",void 0),Lr([l()],Wr.prototype,"originX",void 0),Lr([l()],Wr.prototype,"originY",void 0),Lr([c(".ft-ripple")],Wr.prototype,"ripple",void 0),Lr([c(".ft-ripple--effect")],Wr.prototype,"rippleEffect",void 0),u("ft-ripple")(Wr);
|
|
249
249
|
/**
|
|
250
250
|
* @license
|
|
251
251
|
* Copyright 2020 Google LLC
|
|
252
252
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
253
253
|
*/
|
|
254
|
-
const
|
|
254
|
+
const jr=Symbol.for(""),Kr=t=>{if((null==t?void 0:t.r)===jr)return null==t?void 0:t._$litStatic$},zr=t=>({_$litStatic$:t,r:jr}),Fr=new Map,Zr=(t=>(o,...e)=>{const r=e.length;let i,n;const a=[],l=[];let s,c=0,f=!1;for(;c<r;){for(s=o[c];c<r&&void 0!==(n=e[c],i=Kr(n));)s+=i+o[++c],f=!0;c!==r&&l.push(n),a.push(s),c++}if(c===r&&a.push(o[r]),f){const t=a.join("$$lit$$");void 0===(o=Fr.get(t))&&(a.raw=a,Fr.set(t,o=a)),e=l}return t(o,...e)})(ot);var Ar;!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"}(Ar||(Ar={}));const Br=Nt.extend("--ft-typography-font-family","",It.titleFont),Mr=Nt.extend("--ft-typography-font-family","",It.contentFont),Dr={fontFamily:Mr,fontSize:Nt.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Nt.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Nt.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Nt.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Nt.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Pr=Nt.extend("--ft-typography-title-font-family","",Br),Hr=Nt.extend("--ft-typography-title-font-size","",Dr.fontSize,"20px"),Tr=Nt.extend("--ft-typography-title-font-weight","",Dr.fontWeight,"normal"),_r=Nt.extend("--ft-typography-title-letter-spacing","",Dr.letterSpacing,"0.15px"),Gr=Nt.extend("--ft-typography-title-line-height","",Dr.lineHeight,"1.2"),Vr=Nt.extend("--ft-typography-title-text-transform","",Dr.textTransform,"inherit"),qr=Nt.extend("--ft-typography-title-dense-font-family","",Br),Yr=Nt.extend("--ft-typography-title-dense-font-size","",Dr.fontSize,"14px"),Jr=Nt.extend("--ft-typography-title-dense-font-weight","",Dr.fontWeight,"normal"),Xr=Nt.extend("--ft-typography-title-dense-letter-spacing","",Dr.letterSpacing,"0.105px"),Qr=Nt.extend("--ft-typography-title-dense-line-height","",Dr.lineHeight,"1.7"),ti=Nt.extend("--ft-typography-title-dense-text-transform","",Dr.textTransform,"inherit"),oi=Nt.extend("--ft-typography-subtitle1-font-family","",Mr),ei=Nt.extend("--ft-typography-subtitle1-font-size","",Dr.fontSize,"16px"),ri=Nt.extend("--ft-typography-subtitle1-font-weight","",Dr.fontWeight,"600"),ii=Nt.extend("--ft-typography-subtitle1-letter-spacing","",Dr.letterSpacing,"0.144px"),ni=Nt.extend("--ft-typography-subtitle1-line-height","",Dr.lineHeight,"1.5"),ai=Nt.extend("--ft-typography-subtitle1-text-transform","",Dr.textTransform,"inherit"),li=Nt.extend("--ft-typography-subtitle2-font-family","",Mr),si=Nt.extend("--ft-typography-subtitle2-font-size","",Dr.fontSize,"14px"),ci=Nt.extend("--ft-typography-subtitle2-font-weight","",Dr.fontWeight,"normal"),fi=Nt.extend("--ft-typography-subtitle2-letter-spacing","",Dr.letterSpacing,"0.098px"),pi=Nt.extend("--ft-typography-subtitle2-line-height","",Dr.lineHeight,"1.7"),hi=Nt.extend("--ft-typography-subtitle2-text-transform","",Dr.textTransform,"inherit"),di=Nt.extend("--ft-typography-body1-font-family","",Mr),ui=Nt.extend("--ft-typography-body1-font-size","",Dr.fontSize,"16px"),yi=Nt.extend("--ft-typography-body1-font-weight","",Dr.fontWeight,"normal"),gi=Nt.extend("--ft-typography-body1-letter-spacing","",Dr.letterSpacing,"0.496px"),bi=Nt.extend("--ft-typography-body1-line-height","",Dr.lineHeight,"1.5"),mi=Nt.extend("--ft-typography-body1-text-transform","",Dr.textTransform,"inherit"),vi={fontFamily:Nt.extend("--ft-typography-body2-font-family","",Mr),fontSize:Nt.extend("--ft-typography-body2-font-size","",Dr.fontSize,"14px"),fontWeight:Nt.extend("--ft-typography-body2-font-weight","",Dr.fontWeight,"normal"),letterSpacing:Nt.extend("--ft-typography-body2-letter-spacing","",Dr.letterSpacing,"0.252px"),lineHeight:Nt.extend("--ft-typography-body2-line-height","",Dr.lineHeight,"1.4"),textTransform:Nt.extend("--ft-typography-body2-text-transform","",Dr.textTransform,"inherit")},xi=Nt.extend("--ft-typography-caption-font-family","",Mr),Oi=Nt.extend("--ft-typography-caption-font-size","",Dr.fontSize,"12px"),wi=Nt.extend("--ft-typography-caption-font-weight","",Dr.fontWeight,"normal"),Si=Nt.extend("--ft-typography-caption-letter-spacing","",Dr.letterSpacing,"0.396px"),Ni=Nt.extend("--ft-typography-caption-line-height","",Dr.lineHeight,"1.33"),Ci=Nt.extend("--ft-typography-caption-text-transform","",Dr.textTransform,"inherit"),$i=Nt.extend("--ft-typography-breadcrumb-font-family","",Mr),Ei=Nt.extend("--ft-typography-breadcrumb-font-size","",Dr.fontSize,"10px"),Ri=Nt.extend("--ft-typography-breadcrumb-font-weight","",Dr.fontWeight,"normal"),ki=Nt.extend("--ft-typography-breadcrumb-letter-spacing","",Dr.letterSpacing,"0.33px"),Ii=Nt.extend("--ft-typography-breadcrumb-line-height","",Dr.lineHeight,"1.6"),Ui=Nt.extend("--ft-typography-breadcrumb-text-transform","",Dr.textTransform,"inherit"),Li=Nt.extend("--ft-typography-overline-font-family","",Mr),Wi=Nt.extend("--ft-typography-overline-font-size","",Dr.fontSize,"10px"),ji=Nt.extend("--ft-typography-overline-font-weight","",Dr.fontWeight,"normal"),Ki=Nt.extend("--ft-typography-overline-letter-spacing","",Dr.letterSpacing,"1.5px"),zi=Nt.extend("--ft-typography-overline-line-height","",Dr.lineHeight,"1.6"),Fi=Nt.extend("--ft-typography-overline-text-transform","",Dr.textTransform,"uppercase"),Zi={fontFamily:Nt.extend("--ft-typography-button-font-family","",Mr),fontSize:Nt.extend("--ft-typography-button-font-size","",Dr.fontSize,"14px"),fontWeight:Nt.extend("--ft-typography-button-font-weight","",Dr.fontWeight,"600"),letterSpacing:Nt.extend("--ft-typography-button-letter-spacing","",Dr.letterSpacing,"1.246px"),lineHeight:Nt.extend("--ft-typography-button-line-height","",Dr.lineHeight,"1.15"),textTransform:Nt.extend("--ft-typography-button-text-transform","",Dr.textTransform,"uppercase")},Ai=w`
|
|
255
255
|
.ft-typography--title {
|
|
256
|
-
font-family: ${
|
|
257
|
-
font-size: ${
|
|
258
|
-
font-weight: ${
|
|
259
|
-
letter-spacing: ${
|
|
260
|
-
line-height: ${
|
|
261
|
-
text-transform: ${
|
|
262
|
-
}
|
|
263
|
-
`,
|
|
256
|
+
font-family: ${Pr};
|
|
257
|
+
font-size: ${Hr};
|
|
258
|
+
font-weight: ${Tr};
|
|
259
|
+
letter-spacing: ${_r};
|
|
260
|
+
line-height: ${Gr};
|
|
261
|
+
text-transform: ${Vr};
|
|
262
|
+
}
|
|
263
|
+
`,Bi=w`
|
|
264
264
|
.ft-typography--title-dense {
|
|
265
|
-
font-family: ${
|
|
266
|
-
font-size: ${
|
|
267
|
-
font-weight: ${
|
|
268
|
-
letter-spacing: ${
|
|
269
|
-
line-height: ${
|
|
270
|
-
text-transform: ${
|
|
271
|
-
}
|
|
272
|
-
`,
|
|
265
|
+
font-family: ${qr};
|
|
266
|
+
font-size: ${Yr};
|
|
267
|
+
font-weight: ${Jr};
|
|
268
|
+
letter-spacing: ${Xr};
|
|
269
|
+
line-height: ${Qr};
|
|
270
|
+
text-transform: ${ti};
|
|
271
|
+
}
|
|
272
|
+
`,Mi=w`
|
|
273
273
|
.ft-typography--subtitle1 {
|
|
274
|
-
font-family: ${
|
|
275
|
-
font-size: ${
|
|
276
|
-
font-weight: ${
|
|
277
|
-
letter-spacing: ${
|
|
278
|
-
line-height: ${
|
|
279
|
-
text-transform: ${
|
|
280
|
-
}
|
|
281
|
-
`,
|
|
274
|
+
font-family: ${oi};
|
|
275
|
+
font-size: ${ei};
|
|
276
|
+
font-weight: ${ri};
|
|
277
|
+
letter-spacing: ${ii};
|
|
278
|
+
line-height: ${ni};
|
|
279
|
+
text-transform: ${ai};
|
|
280
|
+
}
|
|
281
|
+
`,Di=w`
|
|
282
282
|
.ft-typography--subtitle2 {
|
|
283
|
-
font-family: ${
|
|
284
|
-
font-size: ${
|
|
285
|
-
font-weight: ${
|
|
286
|
-
letter-spacing: ${
|
|
287
|
-
line-height: ${
|
|
288
|
-
text-transform: ${
|
|
283
|
+
font-family: ${li};
|
|
284
|
+
font-size: ${si};
|
|
285
|
+
font-weight: ${ci};
|
|
286
|
+
letter-spacing: ${fi};
|
|
287
|
+
line-height: ${pi};
|
|
288
|
+
text-transform: ${hi};
|
|
289
289
|
}
|
|
290
290
|
|
|
291
|
-
`,
|
|
291
|
+
`,Pi=w`
|
|
292
292
|
.ft-typography--body1 {
|
|
293
|
-
font-family: ${
|
|
294
|
-
font-size: ${
|
|
295
|
-
font-weight: ${
|
|
296
|
-
letter-spacing: ${
|
|
297
|
-
line-height: ${
|
|
298
|
-
text-transform: ${
|
|
299
|
-
}
|
|
300
|
-
`,
|
|
293
|
+
font-family: ${di};
|
|
294
|
+
font-size: ${ui};
|
|
295
|
+
font-weight: ${yi};
|
|
296
|
+
letter-spacing: ${gi};
|
|
297
|
+
line-height: ${bi};
|
|
298
|
+
text-transform: ${mi};
|
|
299
|
+
}
|
|
300
|
+
`,Hi=w`
|
|
301
301
|
.ft-typography--body2 {
|
|
302
|
-
font-family: ${
|
|
303
|
-
font-size: ${
|
|
304
|
-
font-weight: ${
|
|
305
|
-
letter-spacing: ${
|
|
306
|
-
line-height: ${
|
|
307
|
-
text-transform: ${
|
|
308
|
-
}
|
|
309
|
-
`,
|
|
302
|
+
font-family: ${vi.fontFamily};
|
|
303
|
+
font-size: ${vi.fontSize};
|
|
304
|
+
font-weight: ${vi.fontWeight};
|
|
305
|
+
letter-spacing: ${vi.letterSpacing};
|
|
306
|
+
line-height: ${vi.lineHeight};
|
|
307
|
+
text-transform: ${vi.textTransform};
|
|
308
|
+
}
|
|
309
|
+
`,Ti=w`
|
|
310
310
|
.ft-typography--caption {
|
|
311
|
-
font-family: ${
|
|
312
|
-
font-size: ${
|
|
313
|
-
font-weight: ${
|
|
314
|
-
letter-spacing: ${
|
|
315
|
-
line-height: ${
|
|
316
|
-
text-transform: ${
|
|
317
|
-
}
|
|
318
|
-
`,
|
|
311
|
+
font-family: ${xi};
|
|
312
|
+
font-size: ${Oi};
|
|
313
|
+
font-weight: ${wi};
|
|
314
|
+
letter-spacing: ${Si};
|
|
315
|
+
line-height: ${Ni};
|
|
316
|
+
text-transform: ${Ci};
|
|
317
|
+
}
|
|
318
|
+
`,_i=w`
|
|
319
319
|
.ft-typography--breadcrumb {
|
|
320
|
-
font-family: ${$
|
|
321
|
-
font-size: ${
|
|
322
|
-
font-weight: ${
|
|
323
|
-
letter-spacing: ${
|
|
324
|
-
line-height: ${
|
|
325
|
-
text-transform: ${
|
|
326
|
-
}
|
|
327
|
-
`,
|
|
320
|
+
font-family: ${$i};
|
|
321
|
+
font-size: ${Ei};
|
|
322
|
+
font-weight: ${Ri};
|
|
323
|
+
letter-spacing: ${ki};
|
|
324
|
+
line-height: ${Ii};
|
|
325
|
+
text-transform: ${Ui};
|
|
326
|
+
}
|
|
327
|
+
`,Gi=w`
|
|
328
328
|
.ft-typography--overline {
|
|
329
|
-
font-family: ${
|
|
330
|
-
font-size: ${
|
|
331
|
-
font-weight: ${
|
|
332
|
-
letter-spacing: ${
|
|
333
|
-
line-height: ${
|
|
334
|
-
text-transform: ${
|
|
335
|
-
}
|
|
336
|
-
`,
|
|
329
|
+
font-family: ${Li};
|
|
330
|
+
font-size: ${Wi};
|
|
331
|
+
font-weight: ${ji};
|
|
332
|
+
letter-spacing: ${Ki};
|
|
333
|
+
line-height: ${zi};
|
|
334
|
+
text-transform: ${Fi};
|
|
335
|
+
}
|
|
336
|
+
`,Vi=w`
|
|
337
337
|
.ft-typography--button {
|
|
338
|
-
font-family: ${
|
|
339
|
-
font-size: ${
|
|
340
|
-
font-weight: ${
|
|
341
|
-
letter-spacing: ${
|
|
342
|
-
line-height: ${
|
|
343
|
-
text-transform: ${
|
|
344
|
-
}
|
|
345
|
-
`,
|
|
338
|
+
font-family: ${Zi.fontFamily};
|
|
339
|
+
font-size: ${Zi.fontSize};
|
|
340
|
+
font-weight: ${Zi.fontWeight};
|
|
341
|
+
letter-spacing: ${Zi.letterSpacing};
|
|
342
|
+
line-height: ${Zi.lineHeight};
|
|
343
|
+
text-transform: ${Zi.textTransform};
|
|
344
|
+
}
|
|
345
|
+
`,qi=w`
|
|
346
346
|
.ft-typography {
|
|
347
347
|
vertical-align: inherit;
|
|
348
348
|
}
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
349
|
+
`,Yi=[Object.keys(Et).map((t=>function(t){const o=Et[t];return w`
|
|
350
|
+
font-family: ${o.fontFamily};
|
|
351
|
+
font-size: ${o.fontSize};
|
|
352
|
+
font-weight: ${o.fontWeight};
|
|
353
|
+
letter-spacing: ${o.letterSpacing};
|
|
354
|
+
line-height: ${o.lineHeight};
|
|
355
|
+
text-transform: ${o.textCase};
|
|
356
|
+
`}(t)))];var Ji=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Xi extends Ft{constructor(){super(...arguments),this.variant=Ar.body1}render(){return this.element?Zr`
|
|
357
|
+
<${zr(this.element)}
|
|
358
|
+
class="ft-typography ft-typography--${this.variant}">
|
|
352
359
|
<slot></slot>
|
|
353
|
-
</${
|
|
354
|
-
`:
|
|
360
|
+
</${zr(this.element)}>
|
|
361
|
+
`:Zr`
|
|
355
362
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
356
|
-
`}}
|
|
363
|
+
`}}Xi.styles=[Ai,Bi,Mi,Di,Pi,Hi,Ti,_i,Gi,Vi,qi,...Yi],Ji([a()],Xi.prototype,"element",void 0),Ji([a()],Xi.prototype,"variant",void 0),u("ft-typography")(Xi);
|
|
357
364
|
/**
|
|
358
365
|
* @license
|
|
359
366
|
* Copyright 2017 Google LLC
|
|
360
367
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
361
368
|
*/
|
|
362
|
-
class
|
|
369
|
+
class Qi extends Ge{constructor(t){if(super(t),this.et=rt,t.type!==Te)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===rt||null==t)return this.ft=void 0,this.et=t;if(t===et)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const o=[t];return o.raw=o,this.ft={_$litType$:this.constructor.resultType,strings:o,values:[]}}}Qi.directiveName="unsafeHTML",Qi.resultType=1;const tn=_e(Qi);var on,en;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(on||(on={})),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=""}(en||(en={})),new Map([...["abw"].map((t=>[t,en.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,en.AUDIO])),...["avi"].map((t=>[t,en.AVI])),...["chm","xhs"].map((t=>[t,en.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,en.CODE])),...["csv"].map((t=>[t,en.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,en.DITA])),...["epub"].map((t=>[t,en.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,en.EXCEL])),...["flac"].map((t=>[t,en.FLAC])),...["gif"].map((t=>[t,en.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,en.GZIP])),...["html","htm","xhtml"].map((t=>[t,en.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,en.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,en.JPEG])),...["json"].map((t=>[t,en.JSON])),...["m4a","m4p"].map((t=>[t,en.M4A])),...["mov","qt"].map((t=>[t,en.MOV])),...["mp3"].map((t=>[t,en.MP3])),...["mp4","m4v"].map((t=>[t,en.MP4])),...["ogg","oga"].map((t=>[t,en.OGG])),...["pdf","ps"].map((t=>[t,en.PDF])),...["png"].map((t=>[t,en.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,en.POWERPOINT])),...["rar"].map((t=>[t,en.RAR])),...["stp"].map((t=>[t,en.STP])),...["txt","rtf","md","mdown"].map((t=>[t,en.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,en.VIDEO])),...["wav"].map((t=>[t,en.WAV])),...["wma"].map((t=>[t,en.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,en.WORD])),...["xml","xsl","rdf"].map((t=>[t,en.XML])),...["yaml","yml","x-yaml"].map((t=>[t,en.YAML])),...["zip"].map((t=>[t,en.ZIP]))]);const rn={size:Nt.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Nt.extend("--ft-icon-fluid-topics-font-family","",Nt.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Nt.extend("--ft-icon-file-format-font-family","",Nt.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Nt.extend("--ft-icon-material-font-family","",Nt.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Nt.create("--ft-icon-vertical-align","","UNKNOWN","unset")},nn=w`
|
|
363
370
|
:host, i.ft-icon {
|
|
364
371
|
display: inline-flex;
|
|
365
372
|
align-items: center;
|
|
@@ -368,14 +375,14 @@ class qo extends _i{constructor(t){if(super(t),this.et=nt,t.type!==Li)throw Erro
|
|
|
368
375
|
}
|
|
369
376
|
|
|
370
377
|
:host {
|
|
371
|
-
width: ${
|
|
372
|
-
height: ${
|
|
378
|
+
width: ${rn.size};
|
|
379
|
+
height: ${rn.size};
|
|
373
380
|
}
|
|
374
381
|
|
|
375
382
|
i.ft-icon {
|
|
376
383
|
width: 100%;
|
|
377
384
|
height: 100%;
|
|
378
|
-
font-size: ${
|
|
385
|
+
font-size: ${rn.size};
|
|
379
386
|
line-height: 1;
|
|
380
387
|
font-weight: normal;
|
|
381
388
|
text-transform: none;
|
|
@@ -386,86 +393,33 @@ class qo extends _i{constructor(t){if(super(t),this.et=nt,t.type!==Li)throw Erro
|
|
|
386
393
|
text-rendering: auto;
|
|
387
394
|
-webkit-font-smoothing: antialiased;
|
|
388
395
|
-moz-osx-font-smoothing: grayscale;
|
|
389
|
-
vertical-align: ${
|
|
396
|
+
vertical-align: ${rn.verticalAlign};
|
|
390
397
|
}
|
|
391
398
|
|
|
392
399
|
i.ft-icon.ft-icon--fluid-topics {
|
|
393
|
-
font-family: ${
|
|
400
|
+
font-family: ${rn.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
394
401
|
|
|
395
402
|
/* Ugly fix because font is broken */
|
|
396
|
-
font-size: calc(0.75 * ${
|
|
397
|
-
line-height: ${
|
|
403
|
+
font-size: calc(0.75 * ${rn.size});
|
|
404
|
+
line-height: ${rn.size};
|
|
398
405
|
position: relative;
|
|
399
406
|
top: -4%;
|
|
400
407
|
justify-content: center;
|
|
401
408
|
}
|
|
402
409
|
|
|
403
410
|
.ft-icon--file-format {
|
|
404
|
-
font-family: ${
|
|
411
|
+
font-family: ${rn.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
405
412
|
}
|
|
406
413
|
|
|
407
414
|
.ft-icon--material {
|
|
408
|
-
font-family: ${
|
|
415
|
+
font-family: ${rn.materialFontFamily}, "Material Icons", sans-serif;
|
|
409
416
|
}
|
|
410
|
-
`;var
|
|
417
|
+
`;var an;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(an||(an={}));var ln=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class sn extends Ft{constructor(){super(...arguments),this.resolvedIcon=rt}render(){const t=this.variant&&Object.values(an).includes(this.variant)?this.variant:an.fluid_topics,o=t!==an.material||!!this.value;return ot`
|
|
411
418
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
412
|
-
${
|
|
413
|
-
<slot ?hidden=${
|
|
419
|
+
${tn(this.resolvedIcon)}
|
|
420
|
+
<slot ?hidden=${o}></slot>
|
|
414
421
|
</i>
|
|
415
|
-
`}get textContent(){var t,
|
|
416
|
-
.ft-tooltip--container {
|
|
417
|
-
display: block;
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
.ft-tooltip--inline {
|
|
421
|
-
display: inline-block;
|
|
422
|
-
max-width: 100%;
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
.ft-tooltip {
|
|
426
|
-
position: absolute;
|
|
427
|
-
box-sizing: border-box;
|
|
428
|
-
overflow: hidden;
|
|
429
|
-
width: max-content;
|
|
430
|
-
max-width: ${lr};
|
|
431
|
-
text-align: center;
|
|
432
|
-
padding: ${nr};
|
|
433
|
-
z-index: ${sr};
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
.ft-tooltip--content {
|
|
437
|
-
padding: 4px 8px;
|
|
438
|
-
border-radius: ${ar};
|
|
439
|
-
background-color: ${rr};
|
|
440
|
-
color: ${or};
|
|
441
|
-
position: relative;
|
|
442
|
-
word-break: break-word;
|
|
443
|
-
}
|
|
444
|
-
`;var ur=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class fr extends At{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 o,this.revealDebouncer=new o}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return et`
|
|
445
|
-
<div part="container"
|
|
446
|
-
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
447
|
-
@mouseenter=${this.onHover}
|
|
448
|
-
@mouseleave=${this.onOut}
|
|
449
|
-
@focusin=${this.onHover}
|
|
450
|
-
@focusout=${this.onOut}
|
|
451
|
-
@touchstart=${this.onTouch}>
|
|
452
|
-
<slot></slot>
|
|
453
|
-
<div part="tooltip" role="tooltip" inert
|
|
454
|
-
class="ft-tooltip ft-tooltip--${this.validPosition}"
|
|
455
|
-
?hidden=${!this.visible}>
|
|
456
|
-
<div part="tooltip-content" class="ft-tooltip--content">
|
|
457
|
-
<slot name="text"></slot>
|
|
458
|
-
<ft-typography variant="caption" ?hidden=${!this.text}>${this.text}</ft-typography>
|
|
459
|
-
</div>
|
|
460
|
-
</div>
|
|
461
|
-
</div>
|
|
462
|
-
`}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()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.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();const t=this.slottedElement;if(this.tooltip&&t){const e=this.tooltip.offsetWidth,i=this.tooltip.offsetHeight,n=(t.offsetHeight-i)/2,o=(t.offsetWidth-e)/2;let r=0,s=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":s=t.offsetTop-i-this.tooltip.offsetTop,r=t.offsetLeft+o-this.tooltip.offsetLeft;break;case"bottom":s=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,r=t.offsetLeft+o-this.tooltip.offsetLeft;break;case"left":s=t.offsetTop+n-this.tooltip.offsetTop,r=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":s=t.offsetTop+n-this.tooltip.offsetTop,r=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const a=this.tooltip.style;a.left=r+"px",a.top=s+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,u=l.x+l.width-window.innerWidth;a.left=r+Math.round(this.correctOutOfWindowPixels(c,u))+"px";let f=-l.y,h=l.y+l.height-window.innerHeight;a.top=s+Math.round(this.correctOutOfWindowPixels(f,h))+"px",a.maxWidth=`max(${t.offsetWidth}px, ${lr})`}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())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}fr.elementDefinitions={"ft-typography":Vo},fr.styles=cr,ur([s()],fr.prototype,"text",void 0),ur([s({type:Boolean})],fr.prototype,"manual",void 0),ur([s({type:Boolean})],fr.prototype,"inline",void 0),ur([s({type:Number})],fr.prototype,"delay",void 0),ur([s()],fr.prototype,"position",void 0),ur([
|
|
463
|
-
/**
|
|
464
|
-
* @license
|
|
465
|
-
* Copyright 2017 Google LLC
|
|
466
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
467
|
-
*/
|
|
468
|
-
function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return l({descriptor:n=>({get(){var n;const o="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(n=this.renderRoot)||void 0===n?void 0:n.querySelector(o),s=null!=r?f(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}({slot:o,flatten:e,selector:i}):l({descriptor:t=>({get(){var t,e;const i="slot"+(o?`[name=${o}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==r?void 0:r.assignedNodes(n))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],fr.prototype,"slotNodes",void 0),ur([c(".ft-tooltip--container")],fr.prototype,"container",void 0),ur([c(".ft-tooltip")],fr.prototype,"tooltip",void 0),ur([c(".ft-tooltip--content")],fr.prototype,"tooltipContent",void 0),ur([a()],fr.prototype,"visible",void 0),d("ft-tooltip")(fr);const hr={color:Ot.extend("--ft-loader-color",kt.colorPrimary),size:Ot.create("--ft-loader-size","SIZE","80px")},pr=$`
|
|
422
|
+
`}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let e=this.value||this.textContent;switch(this.variant){case an.file_format:this.resolvedIcon=null!==(t=en[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case an.material:this.resolvedIcon=this.value||rt;break;default:this.resolvedIcon=null!==(o=on[e.replace("-","_").toUpperCase()])&&void 0!==o?o:e}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}sn.elementDefinitions={},sn.styles=nn,ln([a()],sn.prototype,"variant",void 0),ln([a()],sn.prototype,"value",void 0),ln([l()],sn.prototype,"resolvedIcon",void 0),ln([c("slot")],sn.prototype,"slottedContent",void 0),u("ft-icon")(sn);const cn={color:Nt.extend("--ft-loader-color","",It.colorPrimary),size:Nt.create("--ft-loader-size","","SIZE","80px")},fn=w`
|
|
469
423
|
:host {
|
|
470
424
|
line-height: 0;
|
|
471
425
|
}
|
|
@@ -474,8 +428,8 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
474
428
|
display: inline-block;
|
|
475
429
|
position: relative;
|
|
476
430
|
|
|
477
|
-
width: ${
|
|
478
|
-
height: ${
|
|
431
|
+
width: ${cn.size};
|
|
432
|
+
height: ${cn.size};
|
|
479
433
|
}
|
|
480
434
|
|
|
481
435
|
.ft-loader div {
|
|
@@ -484,7 +438,7 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
484
438
|
width: 25%;
|
|
485
439
|
height: 25%;
|
|
486
440
|
border-radius: 50%;
|
|
487
|
-
background: ${
|
|
441
|
+
background: ${cn.color};
|
|
488
442
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
489
443
|
}
|
|
490
444
|
|
|
@@ -531,17 +485,10 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
531
485
|
transform: translate(0, 0);
|
|
532
486
|
}
|
|
533
487
|
100% {
|
|
534
|
-
transform: translate(calc(0.35 * ${
|
|
488
|
+
transform: translate(calc(0.35 * ${cn.size}), 0);
|
|
535
489
|
}
|
|
536
490
|
}
|
|
537
|
-
|
|
538
|
-
<div class="ft-loader">
|
|
539
|
-
<div></div>
|
|
540
|
-
<div></div>
|
|
541
|
-
<div></div>
|
|
542
|
-
<div></div>
|
|
543
|
-
</div>
|
|
544
|
-
`}}dr.styles=pr,d("ft-loader")(dr);const vr=Ot.extend("--ft-button-color",kt.colorPrimary),br={backgroundColor:Ot.extend("--ft-button-background-color",kt.colorSurface),borderRadius:Ot.extend("--ft-button-border-radius",kt.borderRadiusL),color:vr,fontSize:Ot.extend("--ft-button-font-size",Po.fontSize),iconSize:Ot.create("--ft-button-icon-size","SIZE","24px"),rippleColor:Ot.extend("--ft-button-ripple-color",vr),verticalPadding:Ot.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:Ot.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:Ot.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:Ot.external(kt.colorOpacityDisabled,"Design system")},yr=Ot.extend("--ft-button-primary-color",Ot.extend("--ft-button-color",kt.colorOnPrimary)),gr={backgroundColor:Ot.extend("--ft-button-primary-background-color",Ot.extend("--ft-button-background-color",kt.colorPrimary)),color:yr,rippleColor:Ot.extend("--ft-button-primary-ripple-color",yr)},mr=Ot.extend("--ft-button-dense-border-radius",Ot.extend("--ft-button-border-radius",kt.borderRadiusM)),xr=Ot.create("--ft-button-dense-vertical-padding","SIZE","2px"),wr=Ot.create("--ft-button-dense-horizontal-padding","SIZE","4px"),$r=Ot.create("--ft-button-dense-icon-padding","SIZE","4px"),Or=[$`
|
|
491
|
+
`,pn=Nt.extend("--ft-button-color","",It.colorPrimary),hn={backgroundColor:Nt.extend("--ft-button-background-color","",It.colorSurface),borderRadius:Nt.extend("--ft-button-border-radius","",It.borderRadiusL),color:pn,fontSize:Nt.extend("--ft-button-font-size","",Zi.fontSize),iconSize:Nt.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:Nt.extend("--ft-button-ripple-color","",pn),verticalPadding:Nt.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:Nt.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:Nt.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:Nt.external(It.colorOpacityDisabled,"Design system")},dn=Nt.extend("--ft-button-primary-color","",Nt.extend("--ft-button-color","",It.colorOnPrimary)),un={backgroundColor:Nt.extend("--ft-button-primary-background-color","",Nt.extend("--ft-button-background-color","",It.colorPrimary)),color:dn,rippleColor:Nt.extend("--ft-button-primary-ripple-color","",dn)},yn=Nt.extend("--ft-button-dense-border-radius","",Nt.extend("--ft-button-border-radius","",It.borderRadiusM)),gn=Nt.create("--ft-button-dense-vertical-padding","","SIZE","2px"),bn=Nt.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),mn=Nt.create("--ft-button-dense-icon-padding","","SIZE","4px"),vn=[w`
|
|
545
492
|
:host {
|
|
546
493
|
display: inline-block;
|
|
547
494
|
max-width: 100%;
|
|
@@ -552,7 +499,7 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
552
499
|
box-shadow: 0px 0px 0px transparent;
|
|
553
500
|
border: 0px solid transparent;
|
|
554
501
|
text-shadow: 0px 0px 0px transparent;
|
|
555
|
-
font-size: ${
|
|
502
|
+
font-size: ${hn.fontSize};
|
|
556
503
|
}
|
|
557
504
|
|
|
558
505
|
button:hover {
|
|
@@ -581,31 +528,31 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
581
528
|
border: none;
|
|
582
529
|
pointer-events: auto;
|
|
583
530
|
|
|
584
|
-
--ft-button-internal-line-height: max(calc(${
|
|
585
|
-
--ft-button-internal-color: ${
|
|
586
|
-
${
|
|
587
|
-
${
|
|
531
|
+
--ft-button-internal-line-height: max(calc(${hn.fontSize} + 2px), ${hn.iconSize});
|
|
532
|
+
--ft-button-internal-color: ${hn.color};
|
|
533
|
+
${Ct(rn.size,hn.iconSize)};
|
|
534
|
+
${Ct(Nr.color,hn.rippleColor)};
|
|
588
535
|
|
|
589
|
-
border-radius: ${
|
|
590
|
-
padding: ${
|
|
591
|
-
background-color: ${
|
|
536
|
+
border-radius: ${hn.borderRadius};
|
|
537
|
+
padding: ${hn.verticalPadding} ${hn.horizontalPadding};
|
|
538
|
+
background-color: ${hn.backgroundColor};
|
|
592
539
|
color: var(--ft-button-internal-color);
|
|
593
540
|
-webkit-mask-image: radial-gradient(white, black);
|
|
594
541
|
}
|
|
595
542
|
|
|
596
543
|
.ft-button.ft-button--outlined {
|
|
597
544
|
border: 1px solid var(--ft-button-internal-color);
|
|
598
|
-
padding: calc(${
|
|
545
|
+
padding: calc(${hn.verticalPadding} - 1px) calc(${hn.horizontalPadding} - 1px);
|
|
599
546
|
}
|
|
600
547
|
|
|
601
548
|
.ft-button.ft-button--dense {
|
|
602
|
-
padding: ${
|
|
603
|
-
border-radius: ${
|
|
604
|
-
gap: ${
|
|
549
|
+
padding: ${gn} ${bn};
|
|
550
|
+
border-radius: ${yn};
|
|
551
|
+
gap: ${mn};
|
|
605
552
|
}
|
|
606
553
|
|
|
607
554
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
608
|
-
padding: calc(${
|
|
555
|
+
padding: calc(${gn} - 1px) calc(${bn} - 1px);
|
|
609
556
|
}
|
|
610
557
|
|
|
611
558
|
.ft-button:not([disabled]):hover {
|
|
@@ -613,22 +560,22 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
613
560
|
}
|
|
614
561
|
|
|
615
562
|
.ft-button--round {
|
|
616
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
563
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${hn.verticalPadding});
|
|
617
564
|
}
|
|
618
565
|
|
|
619
566
|
.ft-button--round.ft-button--dense {
|
|
620
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
567
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${gn});
|
|
621
568
|
}
|
|
622
569
|
|
|
623
570
|
.ft-button[disabled] {
|
|
624
571
|
filter: grayscale(1);
|
|
625
|
-
opacity: ${
|
|
572
|
+
opacity: ${hn.opacityDisabled};
|
|
626
573
|
}
|
|
627
574
|
|
|
628
575
|
.ft-button.ft-button--primary {
|
|
629
|
-
background-color: ${
|
|
630
|
-
--ft-button-internal-color: ${
|
|
631
|
-
${
|
|
576
|
+
background-color: ${un.backgroundColor};
|
|
577
|
+
--ft-button-internal-color: ${un.color};
|
|
578
|
+
${Ct(Nr.color,un.rippleColor)};
|
|
632
579
|
}
|
|
633
580
|
|
|
634
581
|
.ft-button:focus {
|
|
@@ -641,13 +588,13 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
641
588
|
white-space: nowrap;
|
|
642
589
|
text-overflow: ellipsis;
|
|
643
590
|
display: block;
|
|
644
|
-
margin: 0 ${
|
|
645
|
-
${
|
|
646
|
-
${
|
|
591
|
+
margin: 0 ${hn.iconPadding};
|
|
592
|
+
${Ct(Zi.fontSize,"1em")};
|
|
593
|
+
${Ct(Zi.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
647
594
|
}
|
|
648
595
|
|
|
649
596
|
.ft-button--dense .ft-button--label {
|
|
650
|
-
margin: 0 ${
|
|
597
|
+
margin: 0 ${mn};
|
|
651
598
|
}
|
|
652
599
|
|
|
653
600
|
.ft-button--label[hidden] {
|
|
@@ -660,13 +607,13 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
660
607
|
}
|
|
661
608
|
|
|
662
609
|
.ft-button--label[hidden] + ft-icon {
|
|
663
|
-
margin: 0 calc(${
|
|
664
|
-
padding: 0 ${
|
|
610
|
+
margin: 0 calc(${hn.horizontalPadding} * -1);
|
|
611
|
+
padding: 0 ${hn.verticalPadding};
|
|
665
612
|
}
|
|
666
613
|
|
|
667
614
|
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
668
|
-
margin: 0 calc(${
|
|
669
|
-
padding: 0 ${
|
|
615
|
+
margin: 0 calc(${bn} * -1);
|
|
616
|
+
padding: 0 ${gn};
|
|
670
617
|
}
|
|
671
618
|
|
|
672
619
|
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
@@ -675,33 +622,311 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
675
622
|
}
|
|
676
623
|
|
|
677
624
|
ft-loader {
|
|
678
|
-
${
|
|
679
|
-
${
|
|
625
|
+
${Ct(cn.size,hn.iconSize)};
|
|
626
|
+
${Ct(cn.color,"var(--ft-button-internal-color)")};
|
|
680
627
|
}
|
|
681
|
-
`,
|
|
628
|
+
`,Zt],xn=Nt.create("--ft-tooltip-distance","","SIZE","4px"),On=Nt.create("--ft-tooltip-color","","COLOR","#FFFFFF"),wn=Nt.create("--ft-tooltip-background-color","","COLOR","#666666"),Sn=Nt.create("--ft-tooltip-z-index","","NUMBER","100"),Nn=Nt.external(It.borderRadiusS,"Design system"),Cn=Nt.create("--ft-tooltip-max-width","","SIZE","150px"),$n=w`
|
|
629
|
+
.ft-tooltip--container {
|
|
630
|
+
display: block;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
.ft-tooltip--inline {
|
|
634
|
+
display: inline-block;
|
|
635
|
+
max-width: 100%;
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
.ft-tooltip {
|
|
639
|
+
position: absolute;
|
|
640
|
+
box-sizing: border-box;
|
|
641
|
+
overflow: hidden;
|
|
642
|
+
width: max-content;
|
|
643
|
+
max-width: ${Cn};
|
|
644
|
+
text-align: center;
|
|
645
|
+
padding: ${xn};
|
|
646
|
+
z-index: ${Sn};
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
.ft-tooltip--content {
|
|
650
|
+
padding: 4px 8px;
|
|
651
|
+
border-radius: ${Nn};
|
|
652
|
+
background-color: ${wn};
|
|
653
|
+
color: ${On};
|
|
654
|
+
position: relative;
|
|
655
|
+
word-break: break-word;
|
|
656
|
+
}
|
|
657
|
+
`;var En=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Rn extends Ft{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 i,this.revealDebouncer=new i}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return ot`
|
|
658
|
+
<div part="container"
|
|
659
|
+
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
660
|
+
@mouseenter=${this.onHover}
|
|
661
|
+
@mouseleave=${this.onOut}
|
|
662
|
+
@focusin=${this.onHover}
|
|
663
|
+
@focusout=${this.onOut}
|
|
664
|
+
@touchstart=${this.onTouch}>
|
|
665
|
+
<slot></slot>
|
|
666
|
+
<div part="tooltip" role="tooltip" inert
|
|
667
|
+
class="ft-tooltip ft-tooltip--${this.validPosition}"
|
|
668
|
+
?hidden=${!this.visible}>
|
|
669
|
+
<div part="tooltip-content" class="ft-tooltip--content">
|
|
670
|
+
<slot name="text"></slot>
|
|
671
|
+
<ft-typography variant="caption" ?hidden=${!this.text}>${this.text}</ft-typography>
|
|
672
|
+
</div>
|
|
673
|
+
</div>
|
|
674
|
+
</div>
|
|
675
|
+
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.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();const t=this.slottedElement;if(this.tooltip&&t){const o=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,r=(t.offsetHeight-e)/2,i=(t.offsetWidth-o)/2;let n=0,a=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":a=t.offsetTop-e-this.tooltip.offsetTop,n=t.offsetLeft+i-this.tooltip.offsetLeft;break;case"bottom":a=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+i-this.tooltip.offsetLeft;break;case"left":a=t.offsetTop+r-this.tooltip.offsetTop,n=t.offsetLeft-o-this.tooltip.offsetLeft;break;case"right":a=t.offsetTop+r-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const l=this.tooltip.style;l.left=n+"px",l.top=a+"px";const s=this.tooltip.getBoundingClientRect();let c=-s.x,f=s.x+s.width-window.innerWidth;l.left=n+Math.round(this.correctOutOfWindowPixels(c,f))+"px";let p=-s.y,h=s.y+s.height-window.innerHeight;l.top=a+Math.round(this.correctOutOfWindowPixels(p,h))+"px",l.maxWidth=`max(${t.offsetWidth}px, ${Cn})`}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())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}Rn.elementDefinitions={"ft-typography":Xi},Rn.styles=$n,En([a()],Rn.prototype,"text",void 0),En([a({type:Boolean})],Rn.prototype,"manual",void 0),En([a({type:Boolean})],Rn.prototype,"inline",void 0),En([a({type:Number})],Rn.prototype,"delay",void 0),En([a()],Rn.prototype,"position",void 0),En([
|
|
676
|
+
/**
|
|
677
|
+
* @license
|
|
678
|
+
* Copyright 2017 Google LLC
|
|
679
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
680
|
+
*/
|
|
681
|
+
function(t,o,e){let r,i=t;return"object"==typeof t?(i=t.slot,r=t):r={flatten:o},e?function(t){const{slot:o,selector:e}=null!=t?t:{};return s({descriptor:r=>({get(){var r;const i="slot"+(o?`[name=${o}]`:":not([name])"),n=null===(r=this.renderRoot)||void 0===r?void 0:r.querySelector(i),a=null!=n?p(n,t):[];return e?a.filter((t=>t.matches(e))):a},enumerable:!0,configurable:!0})})}({slot:i,flatten:o,selector:e}):s({descriptor:t=>({get(){var t,o;const e="slot"+(i?`[name=${i}]`:":not([name])"),n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e);return null!==(o=null==n?void 0:n.assignedNodes(r))&&void 0!==o?o:[]},enumerable:!0,configurable:!0})})}("",!0)],Rn.prototype,"slotNodes",void 0),En([c(".ft-tooltip--container")],Rn.prototype,"container",void 0),En([c(".ft-tooltip")],Rn.prototype,"tooltip",void 0),En([c(".ft-tooltip--content")],Rn.prototype,"tooltipContent",void 0),En([l()],Rn.prototype,"visible",void 0),u("ft-tooltip")(Rn);class kn extends Ft{render(){return ot`
|
|
682
|
+
<div class="ft-loader">
|
|
683
|
+
<div></div>
|
|
684
|
+
<div></div>
|
|
685
|
+
<div></div>
|
|
686
|
+
<div></div>
|
|
687
|
+
</div>
|
|
688
|
+
`}}kn.styles=fn,u("ft-loader")(kn);var In=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Un extends(function(t,o){return class extends t{static get formAssociated(){return!0}get form(){return this[Ae].form}constructor(...t){super(t),this[Ae]=this.attachInternals(),this[Ae].role=o}setFormValue(t){this[Ae].setFormValue(t)}}}(Ft,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(o=this.form)||void 0===o||o.requestSubmit())}}render(){return this.addTooltipIfNeeded(ot`
|
|
682
689
|
<button part="button"
|
|
683
|
-
class="${
|
|
690
|
+
class="${wr(this.buttonClasses)}"
|
|
684
691
|
aria-label="${this.getLabel()}"
|
|
685
692
|
?disabled=${this.isDisabled()}>
|
|
686
693
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
687
694
|
<ft-typography part="label"
|
|
688
|
-
variant
|
|
695
|
+
variant=${this.typographyVariant}
|
|
689
696
|
element="span"
|
|
690
|
-
class="ft-button--label ${
|
|
697
|
+
class="ft-button--label ${Pe?"ft-safari-ellipsis-fix":""}"
|
|
691
698
|
?hidden=${!this.hasTextContent()}>
|
|
692
699
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
693
700
|
</ft-typography>
|
|
694
701
|
${this.resolveIcon()}
|
|
695
702
|
</button>
|
|
696
|
-
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?
|
|
703
|
+
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?ot`
|
|
697
704
|
<ft-tooltip part="tooltip"
|
|
698
705
|
text="${this.getLabel()}"
|
|
699
706
|
position="${this.tooltipPosition}">
|
|
700
707
|
${t}
|
|
701
708
|
</ft-tooltip>
|
|
702
|
-
`:t}resolveIcon(){return this.loading?
|
|
703
|
-
<ft-loader part="loader icon"></ft-loader> `:this.icon?
|
|
704
|
-
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:
|
|
709
|
+
`:t}resolveIcon(){return this.loading?ot`
|
|
710
|
+
<ft-loader part="loader icon"></ft-loader> `:this.icon?ot`
|
|
711
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:rt}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Un.elementDefinitions={"ft-ripple":Wr,"ft-tooltip":Rn,"ft-typography":Xi,"ft-icon":sn,"ft-loader":kn},In([a({type:String,reflect:!0})],Un.prototype,"role",void 0),In([a()],Un.prototype,"type",void 0),In([a({type:Boolean})],Un.prototype,"disabled",void 0),In([a()],Un.prototype,"label",void 0),In([a()],Un.prototype,"icon",void 0),In([a()],Un.prototype,"iconVariant",void 0),In([a({type:Boolean})],Un.prototype,"trailingIcon",void 0),In([a({type:Boolean})],Un.prototype,"loading",void 0),In([a()],Un.prototype,"tooltipPosition",void 0),In([a({type:Boolean})],Un.prototype,"hideTooltip",void 0),In([a({type:Boolean})],Un.prototype,"forceTooltip",void 0),In([c(".ft-button")],Un.prototype,"button",void 0),In([c(".ft-button--label slot")],Un.prototype,"slottedContent",void 0);var Ln=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Wn extends Un{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!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"}}Wn.styles=[At,vn],Ln([a({type:Boolean})],Wn.prototype,"primary",void 0),Ln([a({type:Boolean})],Wn.prototype,"outlined",void 0),Ln([a({type:Boolean})],Wn.prototype,"disabled",void 0),Ln([a({type:Boolean})],Wn.prototype,"dense",void 0),Ln([a({type:Boolean})],Wn.prototype,"round",void 0);const jn=[w`
|
|
712
|
+
:host {
|
|
713
|
+
display: inline-block;
|
|
714
|
+
max-width: 100%;
|
|
715
|
+
pointer-events: none;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
/** Remove default button styles **/
|
|
719
|
+
|
|
720
|
+
button {
|
|
721
|
+
box-shadow: 0 0 0 transparent;
|
|
722
|
+
border: 0 solid transparent;
|
|
723
|
+
text-shadow: 0 0 0 transparent;
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
button:hover {
|
|
727
|
+
box-shadow: 0 0 0 transparent;
|
|
728
|
+
text-shadow: 0 0 0 transparent;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
button:active {
|
|
732
|
+
outline: none;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
button:focus {
|
|
736
|
+
outline: 0;
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
/** Base styles **/
|
|
740
|
+
|
|
741
|
+
.ft-button {
|
|
742
|
+
position: relative;
|
|
743
|
+
display: flex;
|
|
744
|
+
justify-content: center;
|
|
745
|
+
align-items: center;
|
|
746
|
+
width: 100%;
|
|
747
|
+
overflow: hidden;
|
|
748
|
+
box-sizing: border-box;
|
|
749
|
+
pointer-events: auto;
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
.ft-button:not([disabled]):hover {
|
|
753
|
+
cursor: pointer;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
.ft-button:focus {
|
|
757
|
+
outline: none;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
.ft-button:focus-visible {
|
|
761
|
+
outline-color: ${kt.focusFocusRingColor};
|
|
762
|
+
outline-style: solid;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
ft-icon {
|
|
766
|
+
flex-shrink: 0;
|
|
767
|
+
position: relative;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
771
|
+
.ft-button:not(.ft-button--trailing-icon) ft-loader {
|
|
772
|
+
order: -1;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
.ft-button--label {
|
|
776
|
+
position: relative;
|
|
777
|
+
overflow: hidden;
|
|
778
|
+
white-space: nowrap;
|
|
779
|
+
text-overflow: ellipsis;
|
|
780
|
+
display: block;
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
.ft-button--label[hidden] {
|
|
784
|
+
display: none;
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
/** Primary styles **/
|
|
788
|
+
|
|
789
|
+
.ft-button--primary {
|
|
790
|
+
${Ct(cn.color,kt.primaryIconColor)};
|
|
791
|
+
|
|
792
|
+
${Ct(Nr.color,kt.primaryStateLayerColor)};
|
|
793
|
+
${Ct(Nr.opacityContentOnSurfaceHover,kt.primaryStateLayerOpacityHover)};
|
|
794
|
+
${Ct(Nr.opacityContentOnSurfaceFocused,kt.primaryStateLayerOpacityFocus)};
|
|
795
|
+
${Ct(Nr.opacityContentOnSurfaceSelected,kt.primaryStateLayerOpacityActive)};
|
|
796
|
+
${Ct(Nr.opacityContentOnSurfacePressed,kt.primaryStateLayerOpacityActive)};
|
|
797
|
+
|
|
798
|
+
background-color: ${kt.primaryBackgroundColor};
|
|
799
|
+
color: ${kt.primaryColor};
|
|
800
|
+
border-style: none;
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
.ft-button--primary[disabled] {
|
|
804
|
+
opacity: ${kt.primaryComponentOpacityDisabled};
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
.ft-button--primary ft-icon {
|
|
808
|
+
color: ${kt.primaryIconColor};
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
/** Secondary styles **/
|
|
812
|
+
|
|
813
|
+
.ft-button--secondary {
|
|
814
|
+
${Ct(cn.color,kt.secondaryIconColor)};
|
|
815
|
+
|
|
816
|
+
${Ct(Nr.color,kt.secondaryStateLayerColor)};
|
|
817
|
+
${Ct(Nr.opacityContentOnSurfaceHover,kt.secondaryStateLayerOpacityHover)};
|
|
818
|
+
${Ct(Nr.opacityContentOnSurfaceFocused,kt.secondaryStateLayerOpacityFocus)};
|
|
819
|
+
${Ct(Nr.opacityContentOnSurfaceSelected,kt.secondaryStateLayerOpacityActive)};
|
|
820
|
+
${Ct(Nr.opacityContentOnSurfacePressed,kt.secondaryStateLayerOpacityActive)};
|
|
821
|
+
|
|
822
|
+
background-color: ${kt.secondaryBackgroundColor};
|
|
823
|
+
color: ${kt.secondaryColor};
|
|
824
|
+
border-color: ${kt.secondaryBorderColor};
|
|
825
|
+
border-style: solid;
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
.ft-button--secondary[disabled] {
|
|
829
|
+
opacity: ${kt.secondaryComponentOpacityDisabled};
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
.ft-button--secondary ft-icon {
|
|
833
|
+
color: ${kt.secondaryIconColor};
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
/** Tertiary styles **/
|
|
837
|
+
|
|
838
|
+
.ft-button--tertiary {
|
|
839
|
+
${Ct(cn.color,kt.tertiaryIconColor)};
|
|
840
|
+
|
|
841
|
+
${Ct(Nr.color,kt.tertiaryStateLayerColor)};
|
|
842
|
+
${Ct(Nr.opacityContentOnSurfaceHover,kt.tertiaryStateLayerOpacityHover)};
|
|
843
|
+
${Ct(Nr.opacityContentOnSurfaceFocused,kt.tertiaryStateLayerOpacityFocus)};
|
|
844
|
+
${Ct(Nr.opacityContentOnSurfaceSelected,kt.tertiaryStateLayerOpacityActive)};
|
|
845
|
+
${Ct(Nr.opacityContentOnSurfacePressed,kt.tertiaryStateLayerOpacityActive)};
|
|
846
|
+
|
|
847
|
+
background-color: ${kt.tertiaryBackgroundColor};
|
|
848
|
+
color: ${kt.tertiaryColor};
|
|
849
|
+
border-style: none;
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
.ft-button--tertiary[disabled] {
|
|
853
|
+
opacity: ${kt.tertiaryComponentOpacityDisabled};
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
.ft-button--tertiary ft-icon {
|
|
857
|
+
color: ${kt.tertiaryIconColor};
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
/** Neutral styles **/
|
|
861
|
+
|
|
862
|
+
.ft-button--neutral {
|
|
863
|
+
${Ct(cn.color,kt.neutralIconColor)};
|
|
864
|
+
|
|
865
|
+
${Ct(Nr.backgroundColor,kt.neutralStateLayerColor)};
|
|
866
|
+
${Ct(Nr.opacityContentOnSurfaceHover,kt.neutralStateLayerOpacityHover)};
|
|
867
|
+
${Ct(Nr.opacityContentOnSurfaceFocused,kt.neutralStateLayerOpacityFocus)};
|
|
868
|
+
${Ct(Nr.opacityContentOnSurfaceSelected,kt.neutralStateLayerOpacityActive)};
|
|
869
|
+
${Ct(Nr.opacityContentOnSurfacePressed,kt.neutralStateLayerOpacityActive)};
|
|
870
|
+
|
|
871
|
+
background-color: ${kt.neutralBackgroundColor};
|
|
872
|
+
color: ${kt.neutralColor};
|
|
873
|
+
border-style: none;
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
.ft-button--neutral[disabled] {
|
|
877
|
+
opacity: ${kt.neutralComponentOpacityDisabled};
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
.ft-button--neutral ft-icon {
|
|
881
|
+
color: ${kt.neutralIconColor};
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
/** Large styles **/
|
|
885
|
+
|
|
886
|
+
.ft-button--large {
|
|
887
|
+
${Ct(rn.size,kt.largeIconSize)};
|
|
888
|
+
${Ct(cn.size,kt.largeIconSize)};
|
|
889
|
+
|
|
890
|
+
height: ${kt.largeHeight};
|
|
891
|
+
padding: 0 ${kt.largeHorizontalPadding};
|
|
892
|
+
gap: ${kt.largeGap};
|
|
893
|
+
border-radius: ${kt.largeBorderRadius};
|
|
894
|
+
border-width: ${kt.largeBorderWidth};
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
.ft-button--large:focus-visible {
|
|
898
|
+
outline-width: ${kt.largeFocusOutlineWidth};
|
|
899
|
+
outline-offset: ${kt.largeFocusOutlineOffset};
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
.ft-button--large.ft-button--icon-only {
|
|
903
|
+
width: ${kt.largeIconOnlyWidth};
|
|
904
|
+
padding: unset;
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
/** Small styles **/
|
|
908
|
+
|
|
909
|
+
.ft-button--small {
|
|
910
|
+
${Ct(rn.size,kt.smallIconSize)};
|
|
911
|
+
${Ct(cn.size,kt.smallIconSize)};
|
|
912
|
+
|
|
913
|
+
height: ${kt.smallHeight};
|
|
914
|
+
padding: 0 ${kt.smallHorizontalPadding};
|
|
915
|
+
gap: ${kt.smallGap};
|
|
916
|
+
border-radius: ${kt.smallBorderRadius};
|
|
917
|
+
border-width: ${kt.smallBorderWidth};
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
.ft-button--small:focus-visible {
|
|
921
|
+
outline-width: ${kt.smallFocusOutlineWidth};
|
|
922
|
+
outline-offset: ${kt.smallFocusOutlineOffset};
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
.ft-button--small.ft-button--icon-only {
|
|
926
|
+
width: ${kt.smallIconOnlyWidth};
|
|
927
|
+
padding: unset;
|
|
928
|
+
}
|
|
929
|
+
`,Zt];var Kn=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class zn extends Un{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?Ar.caption1medium:Ar.body2medium}}zn.styles=[At,jn],Kn([a({type:Boolean})],zn.prototype,"primary",void 0),Kn([a({type:Boolean})],zn.prototype,"secondary",void 0),Kn([a({type:Boolean})],zn.prototype,"tertiary",void 0),Kn([a({type:Boolean})],zn.prototype,"neutral",void 0),Kn([a({type:Boolean})],zn.prototype,"small",void 0),u("ft-button")(Wn),u("ftds-button")(zn);const Fn=Nt.extend("--ft-chip-color","",It.colorOnSurface),Zn={backgroundColor:Nt.extend("--ft-chip-background-color","",It.colorSurface),color:Fn,fontSize:Nt.extend("--ft-chip-font-size","",vi.fontSize),iconSize:Nt.create("--ft-chip-icon-size","","SIZE","18px"),rippleColor:Nt.extend("--ft-chip-ripple-color","",Fn),horizontalPadding:Nt.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:Nt.create("--ft-chip-vertical-padding","","SIZE","6px"),colorOutline:Nt.external(It.colorOutline,"Design system"),opacityDisabled:Nt.external(It.colorOpacityDisabled,"Design system")},An=Nt.extend("--ft-chip-highlighted-color","",Nt.extend("--ft-chip-color","",It.colorOnPrimary)),Bn={backgroundColor:Nt.extend("--ft-chip-highlighted-background-color","",Nt.extend("--ft-chip-background-color","",It.colorPrimary)),color:An,rippleColor:Nt.extend("--ft-chip-highlighted-ripple-color","",An)},Mn=Nt.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),Dn=Nt.create("--ft-chip-dense-vertical-padding","","SIZE","4px"),Pn=[Zt,w`
|
|
705
930
|
:host {
|
|
706
931
|
display: inline-block;
|
|
707
932
|
max-width: 100%;
|
|
@@ -717,20 +942,20 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
717
942
|
box-sizing: border-box;
|
|
718
943
|
pointer-events: auto;
|
|
719
944
|
|
|
720
|
-
--ft-chip-internal-font-size: ${
|
|
945
|
+
--ft-chip-internal-font-size: ${Zn.fontSize};
|
|
721
946
|
--ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
722
|
-
${
|
|
723
|
-
--ft-chip-internal-vertical-padding: ${
|
|
724
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
947
|
+
${Ct(rn.size,Zn.iconSize)};
|
|
948
|
+
--ft-chip-internal-vertical-padding: ${Zn.verticalPadding};
|
|
949
|
+
--ft-chip-internal-horizontal-padding: ${Zn.horizontalPadding};
|
|
725
950
|
--ft-chip-internal-icon-padding: 3px;
|
|
726
|
-
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${
|
|
951
|
+
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${Zn.iconSize});
|
|
727
952
|
|
|
728
|
-
border: 1px solid ${
|
|
729
|
-
color: ${
|
|
730
|
-
${
|
|
953
|
+
border: 1px solid ${Zn.colorOutline};
|
|
954
|
+
color: ${Zn.color};
|
|
955
|
+
${Ct(Nr.color,Zn.rippleColor)};
|
|
731
956
|
border-radius: calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding));
|
|
732
957
|
padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
|
|
733
|
-
background-color: ${
|
|
958
|
+
background-color: ${Zn.backgroundColor};
|
|
734
959
|
line-height: var(--ft-chip-internal-content-height);
|
|
735
960
|
}
|
|
736
961
|
|
|
@@ -740,8 +965,8 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
740
965
|
|
|
741
966
|
.ft-chip--dense {
|
|
742
967
|
--ft-chip-internal-icon-padding: 3px;
|
|
743
|
-
--ft-chip-internal-vertical-padding: ${
|
|
744
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
968
|
+
--ft-chip-internal-vertical-padding: ${Dn};
|
|
969
|
+
--ft-chip-internal-horizontal-padding: ${Mn};
|
|
745
970
|
--ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
746
971
|
}
|
|
747
972
|
|
|
@@ -753,15 +978,15 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
753
978
|
cursor: default;
|
|
754
979
|
pointer-events: none;
|
|
755
980
|
filter: grayscale(1);
|
|
756
|
-
opacity: ${
|
|
981
|
+
opacity: ${Zn.opacityDisabled};
|
|
757
982
|
}
|
|
758
983
|
|
|
759
984
|
.ft-chip--highlighted {
|
|
760
985
|
border: none;
|
|
761
986
|
padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
|
|
762
|
-
background-color: ${
|
|
763
|
-
${
|
|
764
|
-
color: ${
|
|
987
|
+
background-color: ${Bn.backgroundColor};
|
|
988
|
+
${Ct(Nr.color,Bn.rippleColor)};
|
|
989
|
+
color: ${Bn.color};
|
|
765
990
|
}
|
|
766
991
|
|
|
767
992
|
.ft-chip--clickable {
|
|
@@ -791,9 +1016,9 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
791
1016
|
}
|
|
792
1017
|
|
|
793
1018
|
.ft-chip--icon-button {
|
|
794
|
-
${
|
|
795
|
-
${
|
|
796
|
-
${
|
|
1019
|
+
${Ct(hn.iconSize,Zn.iconSize)};
|
|
1020
|
+
${Ct(hn.horizontalPadding,"var(--ft-chip-internal-icon-padding)")};
|
|
1021
|
+
${Ct(hn.verticalPadding,"var(--ft-chip-internal-icon-padding)")};
|
|
797
1022
|
margin: calc((-1) * var(--ft-chip-internal-icon-padding));
|
|
798
1023
|
}
|
|
799
1024
|
|
|
@@ -801,8 +1026,8 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
801
1026
|
vertical-align: bottom;
|
|
802
1027
|
display: block;
|
|
803
1028
|
margin: 0 var(--ft-chip-internal-horizontal-padding);
|
|
804
|
-
${
|
|
805
|
-
${
|
|
1029
|
+
${Ct(vi.fontSize,"var(--ft-chip-internal-font-size)")};
|
|
1030
|
+
${Ct(vi.lineHeight,"var(--ft-chip-internal-content-height)")};
|
|
806
1031
|
}
|
|
807
1032
|
|
|
808
1033
|
.ft-chip--safari-fix .ft-chip--label {
|
|
@@ -838,8 +1063,8 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
838
1063
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
|
|
839
1064
|
order: -1;
|
|
840
1065
|
}
|
|
841
|
-
`];var
|
|
842
|
-
<div class="${
|
|
1066
|
+
`];var Hn=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Tn extends CustomEvent{constructor(){super("icon-click")}}class _n extends Ft{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.icon=void 0,this.trailingIcon=!1}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Pe};return ot`
|
|
1067
|
+
<div class="${wr(t)}"
|
|
843
1068
|
aria-label="${this.getLabel()}"
|
|
844
1069
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
845
1070
|
@keyup=${this.onKeyUp}>
|
|
@@ -849,7 +1074,7 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
849
1074
|
</ft-typography>
|
|
850
1075
|
${this.internalIcon?this.renderIcon():null}
|
|
851
1076
|
</div>
|
|
852
|
-
`}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?
|
|
1077
|
+
`}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?ot`
|
|
853
1078
|
<ft-button round
|
|
854
1079
|
class="ft-chip--icon-button"
|
|
855
1080
|
@click=${this.onIconClick}
|
|
@@ -857,30 +1082,30 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
857
1082
|
icon="${this.internalIcon}"
|
|
858
1083
|
label="${this.iconLabel}"
|
|
859
1084
|
></ft-button>
|
|
860
|
-
`:
|
|
1085
|
+
`:ot`
|
|
861
1086
|
<div class="ft-chip--icon-container ft-no-text-select">
|
|
862
1087
|
<ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}"></ft-icon>
|
|
863
1088
|
</div>
|
|
864
|
-
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new
|
|
1089
|
+
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Tn))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Tn))}getLabel(){return this.label||this.textContent}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}_n.elementDefinitions={"ft-ripple":Wr,"ft-typography":Xi,"ft-icon":sn,"ft-button":Wn},_n.styles=Pn,Hn([a({type:Boolean})],_n.prototype,"highlighted",void 0),Hn([a({type:Boolean})],_n.prototype,"removable",void 0),Hn([a({type:Boolean})],_n.prototype,"disabled",void 0),Hn([a({type:Boolean})],_n.prototype,"clickable",void 0),Hn([a({type:Boolean})],_n.prototype,"iconClickable",void 0),Hn([a({type:Boolean})],_n.prototype,"dense",void 0),Hn([a({type:Boolean})],_n.prototype,"multiLine",void 0),Hn([a()],_n.prototype,"label",void 0),Hn([a()],_n.prototype,"iconLabel",void 0),Hn([a()],_n.prototype,"icon",void 0),Hn([a()],_n.prototype,"iconVariant",void 0),Hn([a({type:Boolean})],_n.prototype,"trailingIcon",void 0),Hn([c("ft-typography slot")],_n.prototype,"slottedContent",void 0),u("ft-chip")(_n);var Gn=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Vn extends Or{constructor(){super(),this.editorMode=!1,this.addStore(nr)}render(){return this.editorMode?this.renderDummyFacet():null==this.facets||0===this.facets.length?rt:ot`
|
|
865
1090
|
|
|
866
1091
|
<div class="ft-search-selected-facets--container">
|
|
867
|
-
${
|
|
1092
|
+
${or(this.facets,(t=>t.key),(t=>{const o=this.getSelectedValues(t);return or(o,(o=>t.key+"-"+o),(e=>this.renderFacet(t.key,t.label,o,e)))}))}
|
|
868
1093
|
</div>
|
|
869
|
-
`}renderDummyFacet(){return
|
|
1094
|
+
`}renderDummyFacet(){return ot`
|
|
870
1095
|
|
|
871
1096
|
<div class="ft-search-selected-facets--container">
|
|
872
1097
|
${[this.renderFacet("placeholder","placeholder",["value1","value2","value3"],"value1"),this.renderFacet("placeholder","placeholder",["value1","value2","value3"],"value2"),this.renderFacet("placeholder","placeholder",["value1","value2","value3"],"value3")]}
|
|
873
|
-
</div>`}renderFacet(t,e,
|
|
874
|
-
<ft-tooltip inline text="${
|
|
875
|
-
part="tooltips tooltip-${
|
|
1098
|
+
</div>`}renderFacet(t,o,e,r){let i=o+": "+this.getBreadcrumbFromValue(r);const n=t.replace(":","-");return ot`
|
|
1099
|
+
<ft-tooltip inline text="${i}"
|
|
1100
|
+
part="tooltips tooltip-${n}">
|
|
876
1101
|
<ft-chip
|
|
877
|
-
part="ft-search-selected-facets ft-search-selected-facet-${
|
|
1102
|
+
part="ft-search-selected-facets ft-search-selected-facet-${n}"
|
|
878
1103
|
removable
|
|
879
|
-
label="${
|
|
880
|
-
@icon-click=${()=>{var
|
|
1104
|
+
label="${i}"
|
|
1105
|
+
@icon-click=${()=>{var o;return null===(o=this.stateManager)||void 0===o?void 0:o.setFilter(t,e.filter((t=>t!==r)))}}
|
|
881
1106
|
data-key="${t}"
|
|
882
|
-
data-value="${
|
|
883
|
-
${this.getLabelFromValue(
|
|
1107
|
+
data-value="${r}">
|
|
1108
|
+
${this.getLabelFromValue(r)}
|
|
884
1109
|
</ft-chip>
|
|
885
1110
|
</ft-tooltip>
|
|
886
|
-
`}getSelectedValues(t){return h(t.rootNodes,(t=>t.selected?[]:t.childNodes)).filter((t=>t.selected)).map((t=>t.value))}getLabelFromValue(t){return this.unquote(t).split("|").pop()}getBreadcrumbFromValue(t){return this.unquote(t).split("|").join(" > ")}quote(t){return`"${t}"`}unquote(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}}
|
|
1111
|
+
`}getSelectedValues(t){return h(t.rootNodes,(t=>t.selected?[]:t.childNodes)).filter((t=>t.selected)).map((t=>t.value))}getLabelFromValue(t){return this.unquote(t).split("|").pop()}getBreadcrumbFromValue(t){return this.unquote(t).split("|").join(" > ")}quote(t){return`"${t}"`}unquote(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}}Vn.elementDefinitions={"ft-chip":_n,"ft-tooltip":Rn},Vn.styles=rr,Gn([Ze({store:"search"})],Vn.prototype,"facets",void 0),Gn([Ze({store:nr.name})],Vn.prototype,"editorMode",void 0),u("ft-search-selected-facets")(Vn),t.FtSearchSelectedFacets=Vn,t.FtSearchSelectedFacetsCssVariables=er,t.styles=rr}({});
|