@fluid-topics/ft-reader-context 1.1.69 → 1.1.71

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.
@@ -1,5 +1,60 @@
1
- !function(t){
2
- /**
1
+ "use strict";(()=>{var Ns=Object.create;var Jr=Object.defineProperty;var Rs=Object.getOwnPropertyDescriptor;var Is=Object.getOwnPropertyNames;var _s=Object.getPrototypeOf,Ts=Object.prototype.hasOwnProperty;var Ps=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),U=(r,e)=>{for(var t in e)Jr(r,t,{get:e[t],enumerable:!0})},ks=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Is(e))!Ts.call(r,i)&&i!==t&&Jr(r,i,{get:()=>e[i],enumerable:!(o=Rs(e,i))||o.enumerable});return r};var Ls=(r,e,t)=>(t=r!=null?Ns(_s(r)):{},ks(e||!r||!r.__esModule?Jr(t,"default",{value:r,enumerable:!0}):t,r));var os=Ps(rs=>{(function(r){var e=function(t){var o={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};function i(m){return m&&DataView.prototype.isPrototypeOf(m)}if(o.arrayBuffer)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(m){return m&&a.indexOf(Object.prototype.toString.call(m))>-1};function l(m){if(typeof m!="string"&&(m=String(m)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(m))throw new TypeError("Invalid character in header field name");return m.toLowerCase()}function c(m){return typeof m!="string"&&(m=String(m)),m}function u(m){var v={next:function(){var E=m.shift();return{done:E===void 0,value:E}}};return o.iterable&&(v[Symbol.iterator]=function(){return v}),v}function p(m){this.map={},m instanceof p?m.forEach(function(v,E){this.append(E,v)},this):Array.isArray(m)?m.forEach(function(v){this.append(v[0],v[1])},this):m&&Object.getOwnPropertyNames(m).forEach(function(v){this.append(v,m[v])},this)}p.prototype.append=function(m,v){m=l(m),v=c(v);var E=this.map[m];this.map[m]=E?E+", "+v:v},p.prototype.delete=function(m){delete this.map[l(m)]},p.prototype.get=function(m){return m=l(m),this.has(m)?this.map[m]:null},p.prototype.has=function(m){return this.map.hasOwnProperty(l(m))},p.prototype.set=function(m,v){this.map[l(m)]=c(v)},p.prototype.forEach=function(m,v){for(var E in this.map)this.map.hasOwnProperty(E)&&m.call(v,this.map[E],E,this)},p.prototype.keys=function(){var m=[];return this.forEach(function(v,E){m.push(E)}),u(m)},p.prototype.values=function(){var m=[];return this.forEach(function(v){m.push(v)}),u(m)},p.prototype.entries=function(){var m=[];return this.forEach(function(v,E){m.push([E,v])}),u(m)},o.iterable&&(p.prototype[Symbol.iterator]=p.prototype.entries);function h(m){if(m.bodyUsed)return Promise.reject(new TypeError("Already read"));m.bodyUsed=!0}function g(m){return new Promise(function(v,E){m.onload=function(){v(m.result)},m.onerror=function(){E(m.error)}})}function y(m){var v=new FileReader,E=g(v);return v.readAsArrayBuffer(m),E}function b(m){var v=new FileReader,E=g(v);return v.readAsText(m),E}function O(m){for(var v=new Uint8Array(m),E=new Array(v.length),T=0;T<v.length;T++)E[T]=String.fromCharCode(v[T]);return E.join("")}function C(m){if(m.slice)return m.slice(0);var v=new Uint8Array(m.byteLength);return v.set(new Uint8Array(m)),v.buffer}function A(){return this.bodyUsed=!1,this._initBody=function(m){this._bodyInit=m,m?typeof m=="string"?this._bodyText=m:o.blob&&Blob.prototype.isPrototypeOf(m)?this._bodyBlob=m:o.formData&&FormData.prototype.isPrototypeOf(m)?this._bodyFormData=m:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)?this._bodyText=m.toString():o.arrayBuffer&&o.blob&&i(m)?(this._bodyArrayBuffer=C(m.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(m)||s(m))?this._bodyArrayBuffer=C(m):this._bodyText=m=Object.prototype.toString.call(m):this._bodyText="",this.headers.get("content-type")||(typeof m=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var m=h(this);if(m)return m;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(y)}),this.text=function(){var m=h(this);if(m)return m;if(this._bodyBlob)return b(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(O(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}var N=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function S(m){var v=m.toUpperCase();return N.indexOf(v)>-1?v:m}function x(m,v){v=v||{};var E=v.body;if(m instanceof x){if(m.bodyUsed)throw new TypeError("Already read");this.url=m.url,this.credentials=m.credentials,v.headers||(this.headers=new p(m.headers)),this.method=m.method,this.mode=m.mode,this.signal=m.signal,!E&&m._bodyInit!=null&&(E=m._bodyInit,m.bodyUsed=!0)}else this.url=String(m);if(this.credentials=v.credentials||this.credentials||"same-origin",(v.headers||!this.headers)&&(this.headers=new p(v.headers)),this.method=S(v.method||this.method||"GET"),this.mode=v.mode||this.mode||null,this.signal=v.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&E)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(E)}x.prototype.clone=function(){return new x(this,{body:this._bodyInit})};function w(m){var v=new FormData;return m.trim().split("&").forEach(function(E){if(E){var T=E.split("="),$=T.shift().replace(/\+/g," "),L=T.join("=").replace(/\+/g," ");v.append(decodeURIComponent($),decodeURIComponent(L))}}),v}function R(m){var v=new p,E=m.replace(/\r?\n[\t ]+/g," ");return E.split(/\r?\n/).forEach(function(T){var $=T.split(":"),L=$.shift().trim();if(L){var Vt=$.join(":").trim();v.append(L,Vt)}}),v}A.call(x.prototype);function _(m,v){v||(v={}),this.type="default",this.status=v.status===void 0?200:v.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in v?v.statusText:"OK",this.headers=new p(v.headers),this.url=v.url||"",this._initBody(m)}A.call(_.prototype),_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},_.error=function(){var m=new _(null,{status:0,statusText:""});return m.type="error",m};var j=[301,302,303,307,308];_.redirect=function(m,v){if(j.indexOf(v)===-1)throw new RangeError("Invalid status code");return new _(null,{status:v,headers:{location:m}})},t.DOMException=r.DOMException;try{new t.DOMException}catch{t.DOMException=function(v,E){this.message=v,this.name=E;var T=Error(v);this.stack=T.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function k(m,v){return new Promise(function(E,T){var $=new x(m,v);if($.signal&&$.signal.aborted)return T(new t.DOMException("Aborted","AbortError"));var L=new XMLHttpRequest;function Vt(){L.abort()}L.onload=function(){var gt={status:L.status,statusText:L.statusText,headers:R(L.getAllResponseHeaders()||"")};gt.url="responseURL"in L?L.responseURL:gt.headers.get("X-Request-URL");var Yr="response"in L?L.response:L.responseText;E(new _(Yr,gt))},L.onerror=function(){T(new TypeError("Network request failed"))},L.ontimeout=function(){T(new TypeError("Network request failed"))},L.onabort=function(){T(new t.DOMException("Aborted","AbortError"))},L.open($.method,$.url,!0),$.credentials==="include"?L.withCredentials=!0:$.credentials==="omit"&&(L.withCredentials=!1),"responseType"in L&&o.blob&&(L.responseType="blob"),$.headers.forEach(function(gt,Yr){L.setRequestHeader(Yr,gt)}),$.signal&&($.signal.addEventListener("abort",Vt),L.onreadystatechange=function(){L.readyState===4&&$.signal.removeEventListener("abort",Vt)}),L.send(typeof $._bodyInit>"u"?null:$._bodyInit)})}return k.polyfill=!0,r.fetch||(r.fetch=k,r.Headers=p,r.Request=x,r.Response=_),t.Headers=p,t.Request=x,t.Response=_,t.fetch=k,Object.defineProperty(t,"__esModule",{value:!0}),t}({})})(typeof self<"u"?self:rs)});if(!ShadowRoot.prototype.createElement){let r=window.HTMLElement,e=window.customElements.define,t=window.customElements.get,o=window.customElements,i=new WeakMap,a=new WeakMap,s=new WeakMap,l=new WeakMap;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(S,x){if(S=S.toLowerCase(),this._getDefinition(S)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${S}" has already been used with this registry`);if(this._definitionsByClass.get(x)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let w=x.prototype.attributeChangedCallback,R=new Set(x.observedAttributes||[]);g(x,R,w);let _={elementClass:x,connectedCallback:x.prototype.connectedCallback,disconnectedCallback:x.prototype.disconnectedCallback,adoptedCallback:x.prototype.adoptedCallback,attributeChangedCallback:w,formAssociated:x.formAssociated,formAssociatedCallback:x.prototype.formAssociatedCallback,formDisabledCallback:x.prototype.formDisabledCallback,formResetCallback:x.prototype.formResetCallback,formStateRestoreCallback:x.prototype.formStateRestoreCallback,observedAttributes:R};this._definitionsByTag.set(S,_),this._definitionsByClass.set(x,_);let j=t.call(o,S);j||(j=h(S),e.call(o,S,j)),this===window.customElements&&(s.set(x,_),_.standInClass=j);let k=this._awaitingUpgrade.get(S);if(k){this._awaitingUpgrade.delete(S);for(let v of k)a.delete(v),b(v,_,!0)}let m=this._whenDefinedPromises.get(S);return m!==void 0&&(m.resolve(x),this._whenDefinedPromises.delete(S)),x}upgrade(){C.push(this),o.upgrade.apply(o,arguments),C.pop()}get(S){return this._definitionsByTag.get(S)?.elementClass}_getDefinition(S){return this._definitionsByTag.get(S)}whenDefined(S){let x=this._getDefinition(S);if(x!==void 0)return Promise.resolve(x.elementClass);let w=this._whenDefinedPromises.get(S);return w===void 0&&(w={},w.promise=new Promise(R=>w.resolve=R),this._whenDefinedPromises.set(S,w)),w.promise}_upgradeWhenDefined(S,x,w){let R=this._awaitingUpgrade.get(x);R||this._awaitingUpgrade.set(x,R=new Set),w?R.add(S):R.delete(S)}};let c;window.HTMLElement=function(){let x=c;if(x)return c=void 0,x;let w=s.get(this.constructor);if(!w)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return x=Reflect.construct(r,[],w.standInClass),Object.setPrototypeOf(x,this.constructor.prototype),i.set(x,w),x},window.HTMLElement.prototype=r.prototype;let u=S=>S===document||S instanceof ShadowRoot,p=S=>{let x=S.getRootNode();if(!u(x)){let w=C[C.length-1];if(w instanceof CustomElementRegistry)return w;x=w.getRootNode(),u(x)||(x=l.get(x)?.getRootNode()||document)}return x.customElements},h=S=>class{static get formAssociated(){return!0}constructor(){let w=Reflect.construct(r,[],this.constructor);Object.setPrototypeOf(w,HTMLElement.prototype);let R=p(w)||window.customElements,_=R._getDefinition(S);return _?b(w,_):a.set(w,R),w}connectedCallback(){let w=i.get(this);w?w.connectedCallback&&w.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,S,!0)}disconnectedCallback(){let w=i.get(this);w?w.disconnectedCallback&&w.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,S,!1)}adoptedCallback(){i.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let w=i.get(this);w&&w.formAssociated&&w?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let w=i.get(this);w?.formAssociated&&w?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let w=i.get(this);w?.formAssociated&&w?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let w=i.get(this);w?.formAssociated&&w?.formStateRestoreCallback?.apply(this,arguments)}},g=(S,x,w)=>{if(x.size===0||w===void 0)return;let R=S.prototype.setAttribute;R&&(S.prototype.setAttribute=function(k,m){let v=k.toLowerCase();if(x.has(v)){let E=this.getAttribute(v);R.call(this,v,m),w.call(this,v,E,m)}else R.call(this,v,m)});let _=S.prototype.removeAttribute;_&&(S.prototype.removeAttribute=function(k){let m=k.toLowerCase();if(x.has(m)){let v=this.getAttribute(m);_.call(this,m),w.call(this,m,v,null)}else _.call(this,m)});let j=S.prototype.toggleAttribute;j&&(S.prototype.toggleAttribute=function(k,m){let v=k.toLowerCase();if(x.has(v)){let E=this.getAttribute(v);j.call(this,v,m);let T=this.getAttribute(v);w.call(this,v,E,T)}else j.call(this,v,m)})},y=S=>{let x=Object.getPrototypeOf(S);if(x!==window.HTMLElement)return x===r?Object.setPrototypeOf(S,window.HTMLElement):y(x)},b=(S,x,w=!1)=>{Object.setPrototypeOf(S,x.elementClass.prototype),i.set(S,x),c=S;try{new x.elementClass}catch{y(x.elementClass),new x.elementClass}x.attributeChangedCallback&&x.observedAttributes.forEach(R=>{S.hasAttribute(R)&&x.attributeChangedCallback.call(S,R,null,S.getAttribute(R))}),w&&x.connectedCallback&&S.isConnected&&x.connectedCallback.call(S)},O=Element.prototype.attachShadow;Element.prototype.attachShadow=function(S){let x=O.apply(this,arguments);return S.customElements&&(x.customElements=S.customElements),x};let C=[document],A=(S,x,w=void 0)=>{let R=(w?Object.getPrototypeOf(w):S.prototype)[x];S.prototype[x]=function(){C.push(this);let _=R.apply(w||this,arguments);return _!==void 0&&l.set(_,this),C.pop(),_}};A(ShadowRoot,"createElement",document),A(ShadowRoot,"importNode",document),A(Element,"insertAdjacentHTML");let N=(S,x)=>{let w=Object.getOwnPropertyDescriptor(S.prototype,x);Object.defineProperty(S.prototype,x,{...w,set(R){C.push(this),w.set.call(this,R),C.pop()}})};if(N(Element,"innerHTML"),N(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let S=new WeakMap,x=HTMLElement.prototype.attachInternals,w=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...k){let m=x.call(this,...k);return S.set(m,this),m},w.forEach(k=>{let m=window.ElementInternals.prototype,v=m[k];m[k]=function(...E){let T=S.get(this);if(i.get(T).formAssociated===!0)return v?.call(this,...E);throw new DOMException(`Failed to execute ${v} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class R extends Array{constructor(m){super(...m),this._elements=m}get value(){return this._elements.find(m=>m.checked===!0)?.value||""}}class _{constructor(m){let v=new Map;m.forEach((E,T)=>{let $=E.getAttribute("name"),L=v.get($)||[];this[+T]=E,L.push(E),v.set($,L)}),this.length=m.length,v.forEach((E,T)=>{E&&(E.length===1?this[T]=E[0]:this[T]=new R(E))})}namedItem(m){return this[m]}}let j=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let k=j.get.call(this,[]),m=[];for(let v of k){let E=i.get(v);(!E||E.formAssociated===!0)&&m.push(v)}return new _(m)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(t,o,i)=>{if(o!==null)try{e.bind(window.customElements)(t,o,i)}catch(a){console.info(t,o,i,a)}}}var uo={};U(uo,{CSSResult:()=>rt,LitElement:()=>fe,ReactiveElement:()=>ne,_$LE:()=>nc,_$LH:()=>tc,adoptStyles:()=>sr,css:()=>H,defaultConverter:()=>cr,getCompatibleStyle:()=>Ct,html:()=>nt,isServer:()=>Vd,noChange:()=>Se,notEqual:()=>no,nothing:()=>B,render:()=>lo,supportsAdoptingStyleSheets:()=>wt,svg:()=>ec,unsafeCSS:()=>Et});var Gt=globalThis,qt=Gt.ShadowRoot&&(Gt.ShadyCSS===void 0||Gt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ln=Symbol(),kn=new WeakMap,Zt=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==Ln)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(qt&&e===void 0){let o=t!==void 0&&t.length===1;o&&(e=kn.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&kn.set(t,e))}return e}toString(){return this.cssText}},Un=r=>new Zt(typeof r=="string"?r:r+"",void 0,Ln);var Xr=(r,e)=>{if(qt)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let o=document.createElement("style"),i=Gt.litNonce;i!==void 0&&o.setAttribute("nonce",i),o.textContent=t.cssText,r.appendChild(o)}},Yt=qt?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return Un(t)})(r):r;var{is:Us,defineProperty:Ms,getOwnPropertyDescriptor:Ds,getOwnPropertyNames:$s,getOwnPropertySymbols:Fs,getPrototypeOf:Bs}=Object,Jt=globalThis,Mn=Jt.trustedTypes,Ws=Mn?Mn.emptyScript:"",Hs=Jt.reactiveElementPolyfillSupport,yt=(r,e)=>r,bt={toAttribute(r,e){switch(e){case Boolean:r=r?Ws:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},Xt=(r,e)=>!Us(r,e),Dn={attribute:!0,type:String,converter:bt,reflect:!1,hasChanged:Xt};Symbol.metadata??=Symbol("metadata"),Jt.litPropertyMetadata??=new WeakMap;var Me=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Dn){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){let o=Symbol(),i=this.getPropertyDescriptor(e,o,t);i!==void 0&&Ms(this.prototype,e,i)}}static getPropertyDescriptor(e,t,o){let{get:i,set:a}=Ds(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get(){return i?.call(this)},set(s){let l=i?.call(this);a.call(this,s),this.requestUpdate(e,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Dn}static _$Ei(){if(this.hasOwnProperty(yt("elementProperties")))return;let e=Bs(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(yt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(yt("properties"))){let t=this.properties,o=[...$s(t),...Fs(t)];for(let i of o)this.createProperty(i,t[i])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[o,i]of t)this.elementProperties.set(o,i)}this._$Eh=new Map;for(let[t,o]of this.elementProperties){let i=this._$Eu(t,o);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let i of o)t.unshift(Yt(i))}else e!==void 0&&t.push(Yt(e));return t}static _$Eu(e,t){let o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$E_??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$E_?.delete(e)}_$ES(){let e=new Map,t=this.constructor.elementProperties;for(let o of t.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Xr(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$E_?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$EO(e,t){let o=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,o);if(i!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:bt).toAttribute(t,o.type);this._$Em=e,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$Em=null}}_$AK(e,t){let o=this.constructor,i=o._$Eh.get(e);if(i!==void 0&&this._$Em!==i){let a=o.getPropertyOptions(i),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:bt;this._$Em=i,this[i]=s.fromAttribute(t,a.type),this._$Em=null}}requestUpdate(e,t,o,i=!1,a){if(e!==void 0){if(o??=this.constructor.getPropertyOptions(e),!(o.hasChanged??Xt)(i?a:this[e],t))return;this.C(e,t,o)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,t,o){this._$AL.has(e)||this._$AL.set(e,t),o.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[i,a]of this._$Ep)this[i]=a;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[i,a]of o)a.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.C(i,this[i],a)}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$E_?.forEach(o=>o.hostUpdate?.()),this.update(t)):this._$ET()}catch(o){throw e=!1,this._$ET(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$E_?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(t=>this._$EO(t,this[t])),this._$ET()}updated(e){}firstUpdated(e){}};Me.elementStyles=[],Me.shadowRootOptions={mode:"open"},Me[yt("elementProperties")]=new Map,Me[yt("finalized")]=new Map,Hs?.({ReactiveElement:Me}),(Jt.reactiveElementVersions??=[]).push("2.0.2");var eo=globalThis,Qt=eo.trustedTypes,$n=Qt?Qt.createPolicy("lit-html",{createHTML:r=>r}):void 0,to="$lit$",ue=`lit$${(Math.random()+"").slice(9)}$`,ro="?"+ue,zs=`<${ro}>`,Fe=document,er=()=>Fe.createComment(""),xt=r=>r===null||typeof r!="object"&&typeof r!="function",jn=Array.isArray,Kn=r=>jn(r)||typeof r?.[Symbol.iterator]=="function",Qr=`[
2
+ \f\r]`,vt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Fn=/-->/g,Bn=/>/g,De=RegExp(`>|${Qr}(?:([^\\s"'>=/]+)(${Qr}*=${Qr}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Wn=/'/g,Hn=/"/g,Vn=/^(?:script|style|textarea|title)$/i,Gn=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),kd=Gn(1),Ld=Gn(2),Z=Symbol.for("lit-noChange"),F=Symbol.for("lit-nothing"),zn=new WeakMap,$e=Fe.createTreeWalker(Fe,129);function Zn(r,e){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return $n!==void 0?$n.createHTML(e):e}var qn=(r,e)=>{let t=r.length-1,o=[],i,a=e===2?"<svg>":"",s=vt;for(let l=0;l<t;l++){let c=r[l],u,p,h=-1,g=0;for(;g<c.length&&(s.lastIndex=g,p=s.exec(c),p!==null);)g=s.lastIndex,s===vt?p[1]==="!--"?s=Fn:p[1]!==void 0?s=Bn:p[2]!==void 0?(Vn.test(p[2])&&(i=RegExp("</"+p[2],"g")),s=De):p[3]!==void 0&&(s=De):s===De?p[0]===">"?(s=i??vt,h=-1):p[1]===void 0?h=-2:(h=s.lastIndex-p[2].length,u=p[1],s=p[3]===void 0?De:p[3]==='"'?Hn:Wn):s===Hn||s===Wn?s=De:s===Fn||s===Bn?s=vt:(s=De,i=void 0);let y=s===De&&r[l+1].startsWith("/>")?" ":"";a+=s===vt?c+zs:h>=0?(o.push(u),c.slice(0,h)+to+c.slice(h)+ue+y):c+ue+(h===-2?l:y)}return[Zn(r,a+(r[t]||"<?>")+(e===2?"</svg>":"")),o]},St=class r{constructor({strings:e,_$litType$:t},o){let i;this.parts=[];let a=0,s=0,l=e.length-1,c=this.parts,[u,p]=qn(e,t);if(this.el=r.createElement(u,o),$e.currentNode=this.el.content,t===2){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(i=$e.nextNode())!==null&&c.length<l;){if(i.nodeType===1){if(i.hasAttributes())for(let h of i.getAttributeNames())if(h.endsWith(to)){let g=p[s++],y=i.getAttribute(h).split(ue),b=/([.?@])?(.*)/.exec(g);c.push({type:1,index:a,name:b[2],strings:y,ctor:b[1]==="."?rr:b[1]==="?"?or:b[1]==="@"?nr:We}),i.removeAttribute(h)}else h.startsWith(ue)&&(c.push({type:6,index:a}),i.removeAttribute(h));if(Vn.test(i.tagName)){let h=i.textContent.split(ue),g=h.length-1;if(g>0){i.textContent=Qt?Qt.emptyScript:"";for(let y=0;y<g;y++)i.append(h[y],er()),$e.nextNode(),c.push({type:2,index:++a});i.append(h[g],er())}}}else if(i.nodeType===8)if(i.data===ro)c.push({type:2,index:a});else{let h=-1;for(;(h=i.data.indexOf(ue,h+1))!==-1;)c.push({type:7,index:a}),h+=ue.length-1}a++}}static createElement(e,t){let o=Fe.createElement("template");return o.innerHTML=e,o}};function Be(r,e,t=r,o){if(e===Z)return e;let i=o!==void 0?t._$Co?.[o]:t._$Cl,a=xt(e)?void 0:e._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(r),i._$AT(r,t,o)),o!==void 0?(t._$Co??=[])[o]=i:t._$Cl=i),i!==void 0&&(e=Be(r,i._$AS(r,e.values),i,o)),e}var tr=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:o}=this._$AD,i=(e?.creationScope??Fe).importNode(t,!0);$e.currentNode=i;let a=$e.nextNode(),s=0,l=0,c=o[0];for(;c!==void 0;){if(s===c.index){let u;c.type===2?u=new Ot(a,a.nextSibling,this,e):c.type===1?u=new c.ctor(a,c.name,c.strings,this,e):c.type===6&&(u=new ir(a,this,e)),this._$AV.push(u),c=o[++l]}s!==c?.index&&(a=$e.nextNode(),s++)}return $e.currentNode=Fe,i}p(e){let t=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}},Ot=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,o,i){this.type=2,this._$AH=F,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Be(this,e,t),xt(e)?e===F||e==null||e===""?(this._$AH!==F&&this._$AR(),this._$AH=F):e!==this._$AH&&e!==Z&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Kn(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==F&&xt(this._$AH)?this._$AA.nextSibling.data=e:this.$(Fe.createTextNode(e)),this._$AH=e}g(e){let{values:t,_$litType$:o}=e,i=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=St.createElement(Zn(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(t);else{let a=new tr(i,this),s=a.u(this.options);a.p(t),this.$(s),this._$AH=a}}_$AC(e){let t=zn.get(e.strings);return t===void 0&&zn.set(e.strings,t=new St(e)),t}T(e){jn(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,o,i=0;for(let a of e)i===t.length?t.push(o=new r(this.k(er()),this.k(er()),this,this.options)):o=t[i],o._$AI(a),i++;i<t.length&&(this._$AR(o&&o._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let o=e.nextSibling;e.remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},We=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,o,i,a){this.type=1,this._$AH=F,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=a,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=F}_$AI(e,t=this,o,i){let a=this.strings,s=!1;if(a===void 0)e=Be(this,e,t,0),s=!xt(e)||e!==this._$AH&&e!==Z,s&&(this._$AH=e);else{let l=e,c,u;for(e=a[0],c=0;c<a.length-1;c++)u=Be(this,l[o+c],t,c),u===Z&&(u=this._$AH[c]),s||=!xt(u)||u!==this._$AH[c],u===F?e=F:e!==F&&(e+=(u??"")+a[c+1]),this._$AH[c]=u}s&&!i&&this.O(e)}O(e){e===F?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},rr=class extends We{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===F?void 0:e}},or=class extends We{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==F)}},nr=class extends We{constructor(e,t,o,i,a){super(e,t,o,i,a),this.type=5}_$AI(e,t=this){if((e=Be(this,e,t,0)??F)===Z)return;let o=this._$AH,i=e===F&&o!==F||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==F&&(o===F||i);i&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},ir=class{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){Be(this,e)}},Yn={j:to,P:ue,A:ro,C:1,M:qn,L:tr,R:Kn,V:Be,D:Ot,I:We,H:or,N:nr,U:rr,B:ir},js=eo.litHtmlPolyfillSupport;js?.(St,Ot),(eo.litHtmlVersions??=[]).push("3.1.0");var ar=globalThis,wt=ar.ShadowRoot&&(ar.ShadyCSS===void 0||ar.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,oo=Symbol(),Jn=new WeakMap,rt=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==oo)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(wt&&e===void 0){let o=t!==void 0&&t.length===1;o&&(e=Jn.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&Jn.set(t,e))}return e}toString(){return this.cssText}},Et=r=>new rt(typeof r=="string"?r:r+"",void 0,oo),H=(r,...e)=>{let t=r.length===1?r[0]:e.reduce((o,i,a)=>o+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+r[a+1],r[0]);return new rt(t,r,oo)},sr=(r,e)=>{if(wt)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let o=document.createElement("style"),i=ar.litNonce;i!==void 0&&o.setAttribute("nonce",i),o.textContent=t.cssText,r.appendChild(o)}},Ct=wt?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return Et(t)})(r):r;var{is:Ks,defineProperty:Vs,getOwnPropertyDescriptor:Gs,getOwnPropertyNames:Zs,getOwnPropertySymbols:qs,getPrototypeOf:Ys}=Object,lr=globalThis,Xn=lr.trustedTypes,Js=Xn?Xn.emptyScript:"",Xs=lr.reactiveElementPolyfillSupport,At=(r,e)=>r,cr={toAttribute(r,e){switch(e){case Boolean:r=r?Js:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},no=(r,e)=>!Ks(r,e),Qn={attribute:!0,type:String,converter:cr,reflect:!1,hasChanged:no};Symbol.metadata??=Symbol("metadata"),lr.litPropertyMetadata??=new WeakMap;var ne=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Qn){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){let o=Symbol(),i=this.getPropertyDescriptor(e,o,t);i!==void 0&&Vs(this.prototype,e,i)}}static getPropertyDescriptor(e,t,o){let{get:i,set:a}=Gs(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get(){return i?.call(this)},set(s){let l=i?.call(this);a.call(this,s),this.requestUpdate(e,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Qn}static _$Ei(){if(this.hasOwnProperty(At("elementProperties")))return;let e=Ys(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(At("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(At("properties"))){let t=this.properties,o=[...Zs(t),...qs(t)];for(let i of o)this.createProperty(i,t[i])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[o,i]of t)this.elementProperties.set(o,i)}this._$Eh=new Map;for(let[t,o]of this.elementProperties){let i=this._$Eu(t,o);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let i of o)t.unshift(Ct(i))}else e!==void 0&&t.push(Ct(e));return t}static _$Eu(e,t){let o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$E_??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$E_?.delete(e)}_$ES(){let e=new Map,t=this.constructor.elementProperties;for(let o of t.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return sr(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$E_?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$EO(e,t){let o=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,o);if(i!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:cr).toAttribute(t,o.type);this._$Em=e,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$Em=null}}_$AK(e,t){let o=this.constructor,i=o._$Eh.get(e);if(i!==void 0&&this._$Em!==i){let a=o.getPropertyOptions(i),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:cr;this._$Em=i,this[i]=s.fromAttribute(t,a.type),this._$Em=null}}requestUpdate(e,t,o,i=!1,a){if(e!==void 0){if(o??=this.constructor.getPropertyOptions(e),!(o.hasChanged??no)(i?a:this[e],t))return;this.C(e,t,o)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,t,o){this._$AL.has(e)||this._$AL.set(e,t),o.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[i,a]of this._$Ep)this[i]=a;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[i,a]of o)a.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.C(i,this[i],a)}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$E_?.forEach(o=>o.hostUpdate?.()),this.update(t)):this._$ET()}catch(o){throw e=!1,this._$ET(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$E_?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(t=>this._$EO(t,this[t])),this._$ET()}updated(e){}firstUpdated(e){}};ne.elementStyles=[],ne.shadowRootOptions={mode:"open"},ne[At("elementProperties")]=new Map,ne[At("finalized")]=new Map,Xs?.({ReactiveElement:ne}),(lr.reactiveElementVersions??=[]).push("2.0.2");var ao=globalThis,dr=ao.trustedTypes,ei=dr?dr.createPolicy("lit-html",{createHTML:r=>r}):void 0,so="$lit$",pe=`lit$${(Math.random()+"").slice(9)}$`,co="?"+pe,Qs=`<${co}>`,je=document,Rt=()=>je.createComment(""),It=r=>r===null||typeof r!="object"&&typeof r!="function",ai=Array.isArray,si=r=>ai(r)||typeof r?.[Symbol.iterator]=="function",io=`[
4
+ \f\r]`,Nt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ti=/-->/g,ri=/>/g,He=RegExp(`>|${io}(?:([^\\s"'>=/]+)(${io}*=${io}*(?:[^
5
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),oi=/'/g,ni=/"/g,ci=/^(?:script|style|textarea|title)$/i,li=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),nt=li(1),ec=li(2),Se=Symbol.for("lit-noChange"),B=Symbol.for("lit-nothing"),ii=new WeakMap,ze=je.createTreeWalker(je,129);function di(r,e){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return ei!==void 0?ei.createHTML(e):e}var ui=(r,e)=>{let t=r.length-1,o=[],i,a=e===2?"<svg>":"",s=Nt;for(let l=0;l<t;l++){let c=r[l],u,p,h=-1,g=0;for(;g<c.length&&(s.lastIndex=g,p=s.exec(c),p!==null);)g=s.lastIndex,s===Nt?p[1]==="!--"?s=ti:p[1]!==void 0?s=ri:p[2]!==void 0?(ci.test(p[2])&&(i=RegExp("</"+p[2],"g")),s=He):p[3]!==void 0&&(s=He):s===He?p[0]===">"?(s=i??Nt,h=-1):p[1]===void 0?h=-2:(h=s.lastIndex-p[2].length,u=p[1],s=p[3]===void 0?He:p[3]==='"'?ni:oi):s===ni||s===oi?s=He:s===ti||s===ri?s=Nt:(s=He,i=void 0);let y=s===He&&r[l+1].startsWith("/>")?" ":"";a+=s===Nt?c+Qs:h>=0?(o.push(u),c.slice(0,h)+so+c.slice(h)+pe+y):c+pe+(h===-2?l:y)}return[di(r,a+(r[t]||"<?>")+(e===2?"</svg>":"")),o]},_t=class r{constructor({strings:e,_$litType$:t},o){let i;this.parts=[];let a=0,s=0,l=e.length-1,c=this.parts,[u,p]=ui(e,t);if(this.el=r.createElement(u,o),ze.currentNode=this.el.content,t===2){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(i=ze.nextNode())!==null&&c.length<l;){if(i.nodeType===1){if(i.hasAttributes())for(let h of i.getAttributeNames())if(h.endsWith(so)){let g=p[s++],y=i.getAttribute(h).split(pe),b=/([.?@])?(.*)/.exec(g);c.push({type:1,index:a,name:b[2],strings:y,ctor:b[1]==="."?pr:b[1]==="?"?fr:b[1]==="@"?hr:Ve}),i.removeAttribute(h)}else h.startsWith(pe)&&(c.push({type:6,index:a}),i.removeAttribute(h));if(ci.test(i.tagName)){let h=i.textContent.split(pe),g=h.length-1;if(g>0){i.textContent=dr?dr.emptyScript:"";for(let y=0;y<g;y++)i.append(h[y],Rt()),ze.nextNode(),c.push({type:2,index:++a});i.append(h[g],Rt())}}}else if(i.nodeType===8)if(i.data===co)c.push({type:2,index:a});else{let h=-1;for(;(h=i.data.indexOf(pe,h+1))!==-1;)c.push({type:7,index:a}),h+=pe.length-1}a++}}static createElement(e,t){let o=je.createElement("template");return o.innerHTML=e,o}};function Ke(r,e,t=r,o){if(e===Se)return e;let i=o!==void 0?t._$Co?.[o]:t._$Cl,a=It(e)?void 0:e._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(r),i._$AT(r,t,o)),o!==void 0?(t._$Co??=[])[o]=i:t._$Cl=i),i!==void 0&&(e=Ke(r,i._$AS(r,e.values),i,o)),e}var ur=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:o}=this._$AD,i=(e?.creationScope??je).importNode(t,!0);ze.currentNode=i;let a=ze.nextNode(),s=0,l=0,c=o[0];for(;c!==void 0;){if(s===c.index){let u;c.type===2?u=new ot(a,a.nextSibling,this,e):c.type===1?u=new c.ctor(a,c.name,c.strings,this,e):c.type===6&&(u=new mr(a,this,e)),this._$AV.push(u),c=o[++l]}s!==c?.index&&(a=ze.nextNode(),s++)}return ze.currentNode=je,i}p(e){let t=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}},ot=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,o,i){this.type=2,this._$AH=B,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Ke(this,e,t),It(e)?e===B||e==null||e===""?(this._$AH!==B&&this._$AR(),this._$AH=B):e!==this._$AH&&e!==Se&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):si(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==B&&It(this._$AH)?this._$AA.nextSibling.data=e:this.$(je.createTextNode(e)),this._$AH=e}g(e){let{values:t,_$litType$:o}=e,i=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=_t.createElement(di(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(t);else{let a=new ur(i,this),s=a.u(this.options);a.p(t),this.$(s),this._$AH=a}}_$AC(e){let t=ii.get(e.strings);return t===void 0&&ii.set(e.strings,t=new _t(e)),t}T(e){ai(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,o,i=0;for(let a of e)i===t.length?t.push(o=new r(this.k(Rt()),this.k(Rt()),this,this.options)):o=t[i],o._$AI(a),i++;i<t.length&&(this._$AR(o&&o._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let o=e.nextSibling;e.remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Ve=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,o,i,a){this.type=1,this._$AH=B,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=a,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=B}_$AI(e,t=this,o,i){let a=this.strings,s=!1;if(a===void 0)e=Ke(this,e,t,0),s=!It(e)||e!==this._$AH&&e!==Se,s&&(this._$AH=e);else{let l=e,c,u;for(e=a[0],c=0;c<a.length-1;c++)u=Ke(this,l[o+c],t,c),u===Se&&(u=this._$AH[c]),s||=!It(u)||u!==this._$AH[c],u===B?e=B:e!==B&&(e+=(u??"")+a[c+1]),this._$AH[c]=u}s&&!i&&this.O(e)}O(e){e===B?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},pr=class extends Ve{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===B?void 0:e}},fr=class extends Ve{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==B)}},hr=class extends Ve{constructor(e,t,o,i,a){super(e,t,o,i,a),this.type=5}_$AI(e,t=this){if((e=Ke(this,e,t,0)??B)===Se)return;let o=this._$AH,i=e===B&&o!==B||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==B&&(o===B||i);i&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},mr=class{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){Ke(this,e)}},tc={j:so,P:pe,A:co,C:1,M:ui,L:ur,R:si,V:Ke,D:ot,I:Ve,H:fr,N:hr,U:pr,B:mr},rc=ao.litHtmlPolyfillSupport;rc?.(_t,ot),(ao.litHtmlVersions??=[]).push("3.1.0");var lo=(r,e,t)=>{let o=t?.renderBefore??e,i=o._$litPart$;if(i===void 0){let a=t?.renderBefore??null;o._$litPart$=i=new ot(e.insertBefore(Rt(),a),a,void 0,t??{})}return i._$AI(r),i};var fe=class extends ne{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=lo(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Se}};fe._$litElement$=!0,fe.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:fe});var oc=globalThis.litElementPolyfillSupport;oc?.({LitElement:fe});var nc={_$AK:(r,e,t)=>{r._$AK(e,t)},_$AL:r=>r._$AL};(globalThis.litElementVersions??=[]).push("4.0.2");var Vd=!1;var po={};U(po,{customElement:()=>ic,eventOptions:()=>cc,property:()=>P,query:()=>lc,queryAll:()=>uc,queryAssignedElements:()=>fc,queryAssignedNodes:()=>hc,queryAsync:()=>pc,standardProperty:()=>pi,state:()=>sc});var ic=r=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(r,e)}):customElements.define(r,e)};var ac={attribute:!0,type:String,converter:bt,reflect:!1,hasChanged:Xt},pi=(r=ac,e,t)=>{let{kind:o,metadata:i}=t,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),a.set(t.name,r),o==="accessor"){let{name:s}=t;return{set(l){let c=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,c,r)},init(l){return l!==void 0&&this.C(s,void 0,r),l}}}if(o==="setter"){let{name:s}=t;return function(l){let c=this[s];e.call(this,l),this.requestUpdate(s,c,r)}}throw Error("Unsupported decorator location: "+o)};function P(r){return(e,t)=>typeof t=="object"?pi(r,e,t):((o,i,a)=>{let s=i.hasOwnProperty(a);return i.constructor.createProperty(a,s?{...o,wrapped:!0}:o),s?Object.getOwnPropertyDescriptor(i,a):void 0})(r,e,t)}function sc(r){return P({...r,state:!0,attribute:!1})}function cc(r){return(e,t)=>{let o=typeof e=="function"?e:e[t];Object.assign(o,r)}}var te=(r,e,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(r,e,t),t);function lc(r,e){return(t,o,i)=>{let a=s=>s.renderRoot?.querySelector(r)??null;if(e){let{get:s,set:l}=typeof o=="object"?t:i??(()=>{let c=Symbol();return{get(){return this[c]},set(u){this[c]=u}}})();return te(t,o,{get(){let c=s.call(this);return c===void 0&&(c=a(this),(c!==null||this.hasUpdated)&&l.call(this,c)),c}})}return te(t,o,{get(){return a(this)}})}}var dc;function uc(r){return(e,t)=>te(e,t,{get(){return(this.renderRoot??(dc??=document.createDocumentFragment())).querySelectorAll(r)}})}function pc(r){return(e,t)=>te(e,t,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}function fc(r){return(e,t)=>{let{slot:o,selector:i}=r??{},a="slot"+(o?`[name=${o}]`:":not([name])");return te(e,t,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(r)??[];return i===void 0?l:l.filter(c=>c.matches(i))}})}}function hc(r){return(e,t)=>{let{slot:o}=r??{},i="slot"+(o?`[name=${o}]`:":not([name])");return te(e,t,{get(){return this.renderRoot?.querySelector(i)?.assignedNodes(r)??[]}})}}var fo={};U(fo,{repeat:()=>yc});var Oe={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},we=r=>(...e)=>({_$litDirective$:r,values:e}),ie=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,o){this._$Ct=e,this._$AM=t,this._$Ci=o}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};var{D:mc}=Yn;var fi=()=>document.createComment(""),it=(r,e,t)=>{let o=r._$AA.parentNode,i=e===void 0?r._$AB:e._$AA;if(t===void 0){let a=o.insertBefore(fi(),i),s=o.insertBefore(fi(),i);t=new mc(a,s,r,r.options)}else{let a=t._$AB.nextSibling,s=t._$AM,l=s!==r;if(l){let c;t._$AQ?.(r),t._$AM=r,t._$AP!==void 0&&(c=r._$AU)!==s._$AU&&t._$AP(c)}if(a!==i||l){let c=t._$AA;for(;c!==a;){let u=c.nextSibling;o.insertBefore(c,i),c=u}}}return t},Ee=(r,e,t=r)=>(r._$AI(e,t),r),gc={},hi=(r,e=gc)=>r._$AH=e,mi=r=>r._$AH,gr=r=>{r._$AP?.(!1,!0);let e=r._$AA,t=r._$AB.nextSibling;for(;e!==t;){let o=e.nextSibling;e.remove(),e=o}};var gi=(r,e,t)=>{let o=new Map;for(let i=e;i<=t;i++)o.set(r[i],i);return o},yc=we(class extends ie{constructor(r){if(super(r),r.type!==Oe.CHILD)throw Error("repeat() can only be used in text expressions")}ht(r,e,t){let o;t===void 0?t=e:e!==void 0&&(o=e);let i=[],a=[],s=0;for(let l of r)i[s]=o?o(l,s):s,a[s]=t(l,s),s++;return{values:a,keys:i}}render(r,e,t){return this.ht(r,e,t).values}update(r,[e,t,o]){let i=mi(r),{values:a,keys:s}=this.ht(e,t,o);if(!Array.isArray(i))return this.dt=s,a;let l=this.dt??=[],c=[],u,p,h=0,g=i.length-1,y=0,b=a.length-1;for(;h<=g&&y<=b;)if(i[h]===null)h++;else if(i[g]===null)g--;else if(l[h]===s[y])c[y]=Ee(i[h],a[y]),h++,y++;else if(l[g]===s[b])c[b]=Ee(i[g],a[b]),g--,b--;else if(l[h]===s[b])c[b]=Ee(i[h],a[b]),it(r,c[b+1],i[h]),h++,b--;else if(l[g]===s[y])c[y]=Ee(i[g],a[y]),it(r,i[h],i[g]),g--,y++;else if(u===void 0&&(u=gi(s,y,b),p=gi(l,h,g)),u.has(l[h]))if(u.has(l[g])){let O=p.get(s[y]),C=O!==void 0?i[O]:null;if(C===null){let A=it(r,i[h]);Ee(A,a[y]),c[y]=A}else c[y]=Ee(C,a[y]),it(r,i[h],C),i[O]=null;y++}else gr(i[g]),g--;else gr(i[h]),h++;for(;y<=b;){let O=it(r,c[b+1]);Ee(O,a[y]),c[y++]=O}for(;h<=g;){let O=i[h++];O!==null&&gr(O)}return this.dt=s,hi(r,c),Z}});var ho={};U(ho,{classMap:()=>bc});var bc=we(class extends ie{constructor(r){if(super(r),r.type!==Oe.ATTRIBUTE||r.name!=="class"||r.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(e=>r[e]).join(" ")+" "}update(r,[e]){if(this.it===void 0){this.it=new Set,r.strings!==void 0&&(this.st=new Set(r.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(let o in e)e[o]&&!this.st?.has(o)&&this.it.add(o);return this.render(e)}let t=r.element.classList;for(let o of this.it)o in e||(t.remove(o),this.it.delete(o));for(let o in e){let i=!!e[o];i===this.it.has(o)||this.st?.has(o)||(i?(t.add(o),this.it.add(o)):(t.remove(o),this.it.delete(o)))}return Z}});var mo={};U(mo,{styleMap:()=>xc});var yi="important",vc=" !"+yi,xc=we(class extends ie{constructor(r){if(super(r),r.type!==Oe.ATTRIBUTE||r.name!=="style"||r.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce((e,t)=>{let o=r[t];return o==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(r,[e]){let{style:t}=r.element;if(this.ut===void 0)return this.ut=new Set(Object.keys(e)),this.render(e);for(let o of this.ut)e[o]==null&&(this.ut.delete(o),o.includes("-")?t.removeProperty(o):t[o]=null);for(let o in e){let i=e[o];if(i!=null){this.ut.add(o);let a=typeof i=="string"&&i.endsWith(vc);o.includes("-")||a?t.setProperty(o,a?i.slice(0,-11):i,a?yi:""):t[o]=i}}return Z}});var go={};U(go,{UnsafeHTMLDirective:()=>at,unsafeHTML:()=>Sc});var at=class extends ie{constructor(e){if(super(e),this.et=F,e.type!==Oe.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===F||e==null)return this.vt=void 0,this.et=e;if(e===Z)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.vt;this.et=e;let t=[e];return t.raw=t,this.vt={_$litType$:this.constructor.resultType,strings:t,values:[]}}};at.directiveName="unsafeHTML",at.resultType=1;var Sc=we(at);var vo={};U(vo,{CacheRegistry:()=>ae});var bo={};U(bo,{CancelablePromise:()=>st,CanceledPromiseError:()=>Ge,cancelable:()=>yo});var Ge=class extends Error{constructor(e,t,o){super(e),this.canceledPromiseResult=t,this.canceledPromiseError=o}},st=class extends Promise{constructor(e){super((t,o)=>e(i=>{this.isCanceled?o(new Ge("Promise has been canceled",i)):t(i)},i=>{this.isCanceled?o(new Ge("Promise has been canceled",void 0,i)):o(i)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},yo=r=>new st((e,t)=>r.then(e).catch(t));var ae=class{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(e,t){this.loaders[e]=t,this.finalContent.delete(e)}registerFinal(e,t){this.loaders[e]=t,this.finalContent.add(e)}clearAll(){for(let e in this.content)this.clear(e)}clear(e){this.finalContent.has(e)||this.forceClear(e)}forceClear(e){this.clearClearTimeout(e),this.content[e]instanceof st&&this.content[e].cancel(),delete this.content[e]}clearClearTimeout(e){this.clearTimeouts[e]!=null&&(window.clearTimeout(this.clearTimeouts[e]),delete this.clearTimeouts[e])}set(e,t){this.forceClear(e),this.register(e,async()=>t),this.content[e]=t}setFinal(e,t){this.forceClear(e),this.registerFinal(e,async()=>t),this.content[e]=t}async get(e,t,o){if(this.content[e]===void 0){if(t=t??this.loaders[e],t==null)throw new Error("Unknown cache key "+e);let i=yo(t());return this.content[e]=i,i.then(a=>(this.content[e]=a,o!=null&&(this.clearClearTimeout(e),this.clearTimeouts[e]=window.setTimeout(()=>this.clear(e),o)),a))}if(this.content[e]instanceof Error)throw this.content[e];return this.content[e]}isResolvedValue(e){return e!=null&&!(e instanceof Promise)&&!(e instanceof Error)}getNow(e){if(this.isResolvedValue(this.content[e]))return this.content[e]}has(e){return this.content[e]!=null}resolvedKeys(){return Object.keys(this.content).filter(e=>this.isResolvedValue(this.content[e]))}resolvedValues(){return Object.values(this.content).filter(e=>this.isResolvedValue(e))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}};var xo={};U(xo,{ClusteringHelper:()=>Tt});var Tt=class r{constructor(e,t,o,i){this.allResults=e,this.selectedResult=t,this.clusteringMetadata=o,this.metadataDescriptors=i}static extractResultMetadata(e,t){var o,i;let a=((i=(o=e?.map)!==null&&o!==void 0?o:e?.document)!==null&&i!==void 0?i:e?.topic).metadata.map(s=>r.flattenMetadata(s));return t==null?a:a.find(s=>s.key===t)}static flattenMetadata(e){if(e.hierarchicalValues){let t=[],o=[];return e.hierarchicalValues.forEach(i=>{t.push(i.join(" > ")),i.length>2?o.push(`... > ${i[i.length-1]}`):o.push(i.join(" > "))}),{key:e.key,label:e.label,value:t.join(", "),displayValue:o.join(", ")}}else{let t=e.values.join(", ");return{key:e.key,label:e.label,value:t,displayValue:t}}}computeClustersItemsForMetadata(e,t,o="No value"){var i,a;let s=r.extractResultMetadata(this.selectedResult,e),l=(i=s?.label)!==null&&i!==void 0?i:(a=this.getMetadataDescriptor(e))===null||a===void 0?void 0:a.label;return this.allResults.map(u=>r.extractResultMetadata(u,e)).map(u=>u??{key:e,label:l,value:void 0,displayValue:o}).filter(u=>u.value!=s?.value).filter((u,p,h)=>h.findIndex(g=>g.value===u.value)===p).map(u=>({result:this.findBestResultForMetadataValue(e,u.value),metadata:u})).sort((u,p)=>this.compareMetadata(u.metadata.value,p.metadata.value,e,t))}compareMetadata(e,t,o,i){if(e==null)return-1;if(t==null)return 1;let a=this.getMetadataDescriptor(o),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let c=e.localeCompare(t,i,{numeric:!0});return l?c*-1:c}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(t=>e==t.key)}findBestResultForMetadataValue(e,t){let o=this.allResults.filter(c=>{var u;return((u=r.extractResultMetadata(c,e))===null||u===void 0?void 0:u.value)==t}),a=[...r.extractResultMetadata(this.selectedResult).filter(c=>this.clusteringMetadata.has(c.key)).filter(c=>c.key!==e)],s,l=-1;for(let c of o){let u=this.countMatchingMetadata(c,a);if(u>l&&(l=u,s=c,u===a.length))break}return s}countMatchingMetadata(e,t){return r.extractResultMetadata(e).filter(o=>t.some(i=>i.key===o.key&&i.value===o.value)).length}};var So={};U(So,{Debouncer:()=>q});var q=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,t){return this.callbacks=[e],this.debounce(t)}queue(e,t){return this.callbacks.push(e),this.debounce(t)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((t,o)=>{this.resolvePromise=t,this.rejectPromise=o})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,t;let o=[...this.callbacks];this.callbacks=[];let i=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(t=this.resolvePromise)!==null&&t!==void 0?t:()=>null;this.clearPromise();for(let s of o)try{await s()}catch(l){i(l);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var wo={};U(wo,{customElement:()=>kt,isNumber:()=>xi,jsonProperty:()=>Ce,optionalNumberProperty:()=>Rc});var Oo={};U(Oo,{dateReviver:()=>wc,deepEqual:()=>Q,delay:()=>yr,eventPathContainsMatchingElement:()=>Cc,flatDeep:()=>bi,last:()=>Nc,minmax:()=>Ac,parseDate:()=>vi,waitFor:()=>Pt,waitUntil:()=>Oc});var yr=r=>new Promise(e=>setTimeout(e,r));async function Oc(r,e=10,t=2e4){await Pt(async()=>await r()||void 0,e,t)}async function Pt(r,e=10,t=2e4){let o=await r(),i,a;for(i=a=performance.now();o==null&&(!t||a-i<t);)await yr(e),o=await r(),a=performance.now();if(o==null)throw new Error("Timeout exceeded");return o}function bi(r,e){return r.flatMap(t=>[t,...bi(e(t),e)])}function wc(...r){return function(e,t){return r.includes(e)?vi(t):t}}function vi(r){return r.match(/^\d{4}-\d{2}-\d{2}$/)&&(r=r.replace(/-/g,"/")),r=r.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,t,o,i)=>t+o+":"+i),new Date(r)}function Ec(r,e){if(r===e)return!0;if(r&&e&&typeof r=="object"&&typeof e=="object"){if(r.constructor!==e.constructor)return!1;var t,o,i;if(Array.isArray(r)){if(t=r.length,t!=e.length)return!1;for(o=t;o--!==0;)if(!Q(r[o],e[o]))return!1;return!0}if(r instanceof Map&&e instanceof Map){if(r.size!==e.size)return!1;for(o of r.entries())if(!e.has(o[0]))return!1;for(o of r.entries())if(!Q(o[1],e.get(o[0])))return!1;return!0}if(r instanceof Set&&e instanceof Set){if(r.size!==e.size)return!1;for(o of r.entries())if(!e.has(o[0]))return!1;return!0}if(r.constructor===RegExp)return r.source===e.source&&r.flags===e.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===e.valueOf();if(i=Object.keys(r),t=i.length,t!==Object.keys(e).length)return!1;for(o=t;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[o]))return!1;for(o=t;o--!==0;){var a=i[o];if(!Q(r[a],e[a]))return!1}return!0}return r!==r&&e!==e}function Q(r,e){try{return Ec(r,e)}catch{return!1}}function Cc(r,e,t=window.document.body){if(e.length>0){let o=r.composedPath();for(let i of o){if(i===t)return!1;if(i.matches&&e.some(a=>i.matches(a)))return!0}}return!1}function Ac(r,e,t){return Math.min(Math.max(r,e),t)}function Nc(r){return r[r.length-1]}var kt=r=>e=>{window.customElements.get(r)||window.customElements.define(r,e)};function Ce(r,e){let t=()=>JSON.parse(JSON.stringify(r));return P({type:Object,converter:{fromAttribute:o=>{if(o==null)return t();try{return JSON.parse(o)}catch{return t()}},toAttribute:o=>JSON.stringify(o)},hasChanged:(o,i)=>!Q(o,i),...e??{}})}function Rc(r){return P({type:Object,converter:{fromAttribute:e=>{if(e!=null)return xi(e)?+e:void 0},toAttribute:e=>e==null?void 0:""+e},...r??{}})}function xi(r){return!isNaN(parseFloat(r))}var Co={};U(Co,{designSystemVariables:()=>rl});var Eo={};U(Eo,{FtCssVariableFactory:()=>n,banner:()=>kc,border:()=>qc,breadcrumb:()=>Lc,button:()=>Pc,chart:()=>Gc,checkbox:()=>Jc,chip:()=>Zc,collapsible:()=>Kc,comboboxMultiSelect:()=>Hc,comboboxSingleSelect:()=>Wc,drawer:()=>Dc,floatingMenu:()=>Bc,foundation:()=>d,modal:()=>Mc,notice:()=>Yc,notification:()=>el,pageHeader:()=>Uc,popover:()=>zc,radio:()=>Qc,semantic:()=>f,setVariable:()=>Ic,switch_:()=>Vc,tabs:()=>jc,textArea:()=>Fc,textInput:()=>$c,toggle:()=>Xc,tooltip:()=>tl,typographies:()=>_c,typographyBody1Medium:()=>Ai,typographyBody1Regular:()=>Ci,typographyBody1Semibold:()=>Ni,typographyBody2Medium:()=>Ii,typographyBody2MediumUnderline:()=>_i,typographyBody2Regular:()=>Ri,typographyBody2Semibold:()=>Ti,typographyCaption1Bold:()=>Bi,typographyCaption1Medium:()=>$i,typographyCaption1Semibold:()=>Fi,typographyCaption2Bold:()=>zi,typographyCaption2Medium:()=>Wi,typographyCaption2Semibold:()=>Hi,typographyCaption3Bold:()=>Vi,typographyCaption3Medium:()=>ji,typographyCaption3Semibold:()=>Ki,typographyDisplay:()=>Si,typographyLabel1Bold:()=>Li,typographyLabel1Medium:()=>Pi,typographyLabel1Semibold:()=>ki,typographyLabel2Bold:()=>Di,typographyLabel2Medium:()=>Ui,typographyLabel2Semibold:()=>Mi,typographyTitle1:()=>Oi,typographyTitle2:()=>wi,typographyTitle3:()=>Ei,typographyVariants:()=>Tc});var he=r=>typeof r=="string"?Et(r):r,n=class{static create(e,t,o,i){let a=l=>he(l??i),s=H`var(${he(e)}, ${a(i)})`;return s.name=e,s.description=t,s.category=o,s.defaultValue=i,s.defaultCssValue=a,s.get=l=>H`var(${he(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(e,t,o,i){let a=l=>o.get(l??i),s=H`var(${he(e)}, ${a(i)})`;return s.name=e,s.description=t,s.category=o.category,s.fallbackVariable=o,s.defaultValue=i,s.defaultCssValue=a,s.get=l=>H`var(${he(e)}, ${a(l)})`,s.breadcrumb=()=>[o.name,...o.breadcrumb()],s.lastResortDefaultValue=()=>i??o.lastResortDefaultValue(),s}static external(e,t){let o=a=>e.fallbackVariable?e.fallbackVariable.get(a??e.defaultValue):he(a??e.lastResortDefaultValue()),i=H`var(${he(e.name)}, ${o(e.defaultValue)})`;return i.name=e.name,i.category=e.category,i.fallbackVariable=e.fallbackVariable,i.defaultValue=e.defaultValue,i.context=t,i.defaultCssValue=o,i.get=a=>H`var(${he(e.name)}, ${o(a)})`,i.breadcrumb=()=>e.fallbackVariable?[e.fallbackVariable.name,...e.fallbackVariable.breadcrumb()]:[],i.lastResortDefaultValue=()=>e.lastResortDefaultValue(),i}};function Ic(r,e){return he(`${r.name}: ${e}`)}var d={colorWhite:n.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:n.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:n.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:n.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:n.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:n.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:n.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:n.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:n.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:n.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:n.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:n.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:n.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:n.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:n.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:n.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:n.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:n.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:n.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:n.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:n.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:n.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:n.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:n.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:n.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:n.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:n.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:n.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:n.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:n.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:n.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:n.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:n.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:n.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:n.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:n.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:n.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:n.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:n.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:n.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:n.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:n.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:n.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:n.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:n.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:n.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:n.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:n.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:n.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:n.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:n.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:n.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:n.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:n.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:n.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:n.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:n.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:n.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:n.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:n.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:n.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:n.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:n.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:n.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:n.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:n.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:n.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:n.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:n.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:n.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:n.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:n.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:n.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:n.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:n.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:n.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:n.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:n.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:n.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:n.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:n.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:n.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:n.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:n.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:n.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:n.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:n.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:n.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:n.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:n.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:n.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:n.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:n.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:n.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:n.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:n.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:n.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:n.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:n.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:n.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:n.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:n.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:n.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:n.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:n.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:n.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:n.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:n.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:n.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:n.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:n.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:n.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:n.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:n.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:n.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:n.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:n.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:n.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:n.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:n.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:n.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:n.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:n.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:n.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:n.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:n.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:n.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:n.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:n.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:n.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:n.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:n.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:n.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:n.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:n.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:n.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:n.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:n.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:n.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:n.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:n.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:n.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:n.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:n.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:n.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:n.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:n.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:n.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:n.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:n.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:n.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:n.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:n.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:n.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:n.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:n.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:n.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:n.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:n.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:n.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:n.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:n.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:n.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:n.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:n.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:n.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:n.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:n.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:n.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:n.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:n.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:n.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:n.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:n.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:n.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:n.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:n.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:n.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:n.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:n.create("--ft-icon-size-6","","SIZE","48px"),opacity0:n.create("--ft-opacity-0","","NUMBER","0"),opacity8:n.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:n.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:n.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:n.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:n.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:n.create("--ft-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:n.create("--ft-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:n.create("--ft-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:n.create("--ft-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:n.create("--ft-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:n.create("--ft-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:n.create("--ft-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:n.create("--ft-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:n.create("--ft-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},Si={fontFamily:n.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:n.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:n.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:n.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:n.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:n.create("--ft-typography-display-textCase","","UNKNOWN","none")},Oi={fontFamily:n.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:n.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:n.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:n.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:n.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:n.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},wi={fontFamily:n.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:n.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:n.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:n.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:n.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:n.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},Ei={fontFamily:n.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:n.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:n.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:n.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:n.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:n.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},Ci={fontFamily:n.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:n.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:n.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:n.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:n.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:n.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},Ai={fontFamily:n.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:n.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:n.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:n.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:n.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:n.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},Ni={fontFamily:n.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:n.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:n.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:n.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:n.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:n.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},Ri={fontFamily:n.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:n.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:n.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:n.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:n.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:n.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},Ii={fontFamily:n.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:n.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:n.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:n.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:n.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:n.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},_i={fontFamily:n.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:n.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:n.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:n.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:n.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:n.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:n.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},Ti={fontFamily:n.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:n.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:n.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:n.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:n.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:n.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},Pi={fontFamily:n.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:n.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:n.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:n.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:n.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:n.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},ki={fontFamily:n.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:n.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:n.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:n.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:n.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:n.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},Li={fontFamily:n.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:n.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:n.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:n.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:n.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:n.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},Ui={fontFamily:n.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:n.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:n.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:n.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:n.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:n.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},Mi={fontFamily:n.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:n.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:n.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:n.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:n.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:n.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},Di={fontFamily:n.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:n.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:n.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:n.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:n.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:n.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},$i={fontFamily:n.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:n.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:n.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:n.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:n.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:n.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},Fi={fontFamily:n.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:n.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:n.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:n.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:n.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:n.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},Bi={fontFamily:n.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:n.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:n.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:n.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:n.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:n.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},Wi={fontFamily:n.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:n.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:n.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:n.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:n.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:n.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},Hi={fontFamily:n.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:n.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:n.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:n.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:n.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:n.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},zi={fontFamily:n.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:n.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:n.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:n.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:n.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:n.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},ji={fontFamily:n.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:n.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:n.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:n.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:n.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:n.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},Ki={fontFamily:n.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:n.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:n.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:n.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:n.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:n.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},Vi={fontFamily:n.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:n.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:n.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:n.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:n.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:n.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},_c={display:Si,"title-1":Oi,"title-2":wi,"title-3":Ei,"body-1-regular":Ci,"body-1-medium":Ai,"body-1-semibold":Ni,"body-2-regular":Ri,"body-2-medium":Ii,"body-2-medium-underline":_i,"body-2-semibold":Ti,"label-1-medium":Pi,"label-1-semibold":ki,"label-1-bold":Li,"label-2-medium":Ui,"label-2-semibold":Mi,"label-2-bold":Di,"caption-1-medium":$i,"caption-1-semibold":Fi,"caption-1-bold":Bi,"caption-2-medium":Wi,"caption-2-semibold":Hi,"caption-2-bold":zi,"caption-3-medium":ji,"caption-3-semibold":Ki,"caption-3-bold":Vi},Tc=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","label-1","label-2","caption-1","caption-2","caption-3"];var f={backgroundActionPrimary:n.extend("--ft-background-action-primary","Used as backgorund of primary action components.",d.colorBrand0),backgroundErrorSubtle:n.extend("--ft-background-error-subtle","Used as background of subtle error components.",d.colorRed10),backgroundInfoSubtle:n.extend("--ft-background-info-subtle","Used as background of subtle information components.",d.colorCyan10),backgroundWarningSubtle:n.extend("--ft-background-warning-subtle","Used as background of subtle information components.",d.colorOrange10),backgroundSuccessSubtle:n.extend("--ft-background-success-subtle","Used as background of subtle success components.",d.colorGreen10),backgroundGlobalSurface:n.extend("--ft-background-global-surface","Used as app background.",d.colorWhite),backgroundGlobalOnSurface:n.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",d.colorGray10),backgroundGlobalOnSurfaceDark:n.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",d.colorGray30),contentActionPrimary:n.extend("--ft-content-action-primary","Used on label of primary action on light surface.",d.colorBrand0),contentWarningPrimary:n.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",d.colorOrange200),contentWarningIconOnly:n.extend("--ft-content-warning-icon-only","Used on warning status icons alone",d.colorOrange0),contentErrorPrimary:n.extend("--ft-content-error-primary","Used on label of error messages on light surface.",d.colorRed0),contentErrorIconOnly:n.extend("--ft-content-error-icon-only","Used on error status icons alone",d.colorRed70),contentInfoPrimary:n.extend("--ft-content-info-primary","Used on label of information messages on light surface.",d.colorCyan200),contentInfoIconOnly:n.extend("--ft-content-info-icon-only","Used on info status icons alone",d.colorCyan0),contentSuccessPrimary:n.extend("--ft-content-success-primary","Used on label of success messages on light surface.",d.colorGreen200),contentSuccessIconOnly:n.extend("--ft-content-success-icon-only","Used on success status icons alone",d.colorGreen0),contentGlobalPrimary:n.extend("--ft-content-global-primary","Used for main content on the page.",d.colorGray500),contentGlobalSecondary:n.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
6
+ Also for action icons.`,d.colorGray200),contentGlobalSubtle:n.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",d.colorGray0),contentGlobalOnColor:n.extend("--ft-content-global-on-color","Used for content on a dominant color.",d.colorWhite),borderActionPrimary:n.extend("--ft-border-action-primary","Used as border for primary action components.",d.colorBrand0),borderActionFocusRing:n.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",d.colorCyan0),borderWarningPrimary:n.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",d.colorOrange200),borderWarningSubtle:n.extend("--ft-border-warning-subtle","Used as border for warning components.",d.colorOrange30),borderSuccessPrimary:n.extend("--ft-border-success-primary","Used as border for success buttons.",d.colorGreen200),borderSuccessSubtle:n.extend("--ft-border-success-subtle","Used as border for success components.",d.colorGreen30),borderErrorPrimary:n.extend("--ft-border-error-primary","Used as border for text fields in error states.",d.colorRed0),borderErrorSubtle:n.extend("--ft-border-error-subtle","Used as border for error components.",d.colorRed30),borderInfoPrimary:n.extend("--ft-border-info-primary","Used as border for buttons in info color.",d.colorCyan200),borderInfoSubtle:n.extend("--ft-border-info-subtle","Used as border for information components.",d.colorCyan30),borderGlobalPrimary:n.extend("--ft-border-global-primary","Used as border for element like input.",d.colorGray50),borderGlobalSubtle:n.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",d.colorGray30),borderInputPrimary:n.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",d.colorGray80)};var Pc={largeHeight:n.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:n.extend("--ft-button-large-horizontal-padding","",d.spacing4),largeGap:n.extend("--ft-button-large-gap","",d.spacing2),largeBorderRadius:n.extend("--ft-button-large-border-radius","",d.borderRadiusS),largeIconSize:n.extend("--ft-button-large-icon-size","",d.iconSize3),largeBorderWidth:n.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:n.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:n.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:n.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:n.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:n.extend("--ft-button-small-horizontal-padding","",d.spacing3),smallGap:n.extend("--ft-button-small-gap","",d.spacing2),smallBorderRadius:n.extend("--ft-button-small-border-radius","",d.borderRadiusS),smallIconSize:n.extend("--ft-button-small-icon-size","",d.iconSize2),smallBorderWidth:n.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:n.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:n.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:n.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:n.extend("--ft-button-primary-background-color","",f.backgroundActionPrimary),primaryColor:n.extend("--ft-button-primary-color","",f.contentGlobalOnColor),primaryIconColor:n.extend("--ft-button-primary-icon-color","",f.contentGlobalOnColor),primaryStateLayerColor:n.extend("--ft-button-primary-state-layer-color","",f.contentGlobalOnColor),primaryHoverStateLayerOpacity:n.extend("--ft-button-primary-hover-state-layer-opacity","",d.opacity16),primaryFocusStateLayerOpacity:n.extend("--ft-button-primary-focus-state-layer-opacity","",d.opacity16),primaryActiveStateLayerOpacity:n.extend("--ft-button-primary-active-state-layer-opacity","",d.opacity24),primaryDisabledComponentOpacity:n.extend("--ft-button-primary-disabled-component-opacity","",d.opacity40),focusFocusRingColor:n.extend("--ft-button-focus-focus-ring-color","",f.borderActionFocusRing),tertiaryBackgroundColor:n.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:n.extend("--ft-button-tertiary-color","",f.contentActionPrimary),tertiaryIconColor:n.extend("--ft-button-tertiary-icon-color","",f.contentActionPrimary),tertiaryStateLayerColor:n.extend("--ft-button-tertiary-state-layer-color","",f.contentActionPrimary),tertiaryHoverStateLayerOpacity:n.extend("--ft-button-tertiary-hover-state-layer-opacity","",d.opacity8),tertiaryFocusStateLayerOpacity:n.extend("--ft-button-tertiary-focus-state-layer-opacity","",d.opacity8),tertiaryActiveStateLayerOpacity:n.extend("--ft-button-tertiary-active-state-layer-opacity","",d.opacity16),tertiaryDisabledComponentOpacity:n.extend("--ft-button-tertiary-disabled-component-opacity","",d.opacity40),secondaryBackgroundColor:n.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:n.extend("--ft-button-secondary-color","",f.contentActionPrimary),secondaryIconColor:n.extend("--ft-button-secondary-icon-color","",f.contentActionPrimary),secondaryStateLayerColor:n.extend("--ft-button-secondary-state-layer-color","",f.contentActionPrimary),secondaryHoverStateLayerOpacity:n.extend("--ft-button-secondary-hover-state-layer-opacity","",d.opacity8),secondaryFocusStateLayerOpacity:n.extend("--ft-button-secondary-focus-state-layer-opacity","",d.opacity8),secondaryActiveStateLayerOpacity:n.extend("--ft-button-secondary-active-state-layer-opacity","",d.opacity16),secondaryDisabledComponentOpacity:n.extend("--ft-button-secondary-disabled-component-opacity","",d.opacity40),secondaryBorderColor:n.extend("--ft-button-secondary-border-color","",f.borderActionPrimary),neutralBackgroundColor:n.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:n.extend("--ft-button-neutral-icon-color","",f.contentGlobalSecondary),neutralColor:n.extend("--ft-button-neutral-color","",f.contentGlobalSecondary),neutralStateLayerColor:n.extend("--ft-button-neutral-state-layer-color","",f.contentGlobalSecondary),neutralHoverStateLayerOpacity:n.extend("--ft-button-neutral-hover-state-layer-opacity","",d.opacity8),neutralFocusStateLayerOpacity:n.extend("--ft-button-neutral-focus-state-layer-opacity","",d.opacity8),neutralActiveStateLayerOpacity:n.extend("--ft-button-neutral-active-state-layer-opacity","",d.opacity16),neutralDisabledComponentOpacity:n.extend("--ft-button-neutral-disabled-component-opacity","",d.opacity40)};var kc={iconSize:n.extend("--ft-banner-icon-size","",d.iconSize5),borderWidth:n.create("--ft-banner-border-width","","SIZE","1px"),horizontalPadding:n.extend("--ft-banner-horizontal-padding","",d.spacing6),verticalPadding:n.extend("--ft-banner-vertical-padding","",d.spacing6),horizontalSideGap:n.extend("--ft-banner-horizontal-side-gap","",d.spacing6),horizontalMobileGap:n.extend("--ft-banner-horizontal-mobile-gap","",d.spacing4),verticalMobileGap:n.extend("--ft-banner-vertical-mobile-gap","",d.spacing6),horizontalMiddleGap:n.extend("--ft-banner-horizontal-middle-gap","",d.spacing20),infoBackgroundColor:n.extend("--ft-banner-info-background-color","",f.backgroundInfoSubtle),infoColor:n.extend("--ft-banner-info-color","",f.contentInfoPrimary),infoIconColor:n.extend("--ft-banner-info-icon-color","",f.contentInfoIconOnly)};var Lc={horizontalGap:n.extend("--ft-breadcrumb-horizontal-gap","",d.spacing1),verticalGap:n.extend("--ft-breadcrumb-vertical-gap","",d.spacing2),currentElementColor:n.extend("--ft-breadcrumb-current-element-color","",f.contentGlobalPrimary),iconColor:n.extend("--ft-breadcrumb-icon-color","",f.contentGlobalSubtle)};var Uc={horizontalPadding:n.extend("--ft-page-header-horizontal-padding","",d.spacing12),horizontalGap:n.extend("--ft-page-header-horizontal-gap","",d.spacing4),verticalGap:n.extend("--ft-page-header-vertical-gap","",d.spacing2),classicVerticalPadding:n.extend("--ft-page-header-classic-vertical-padding","",d.spacing6),multilineVerticalPadding:n.extend("--ft-page-header-multiline-vertical-padding","",d.spacing4),inlineVerticalPadding:n.extend("--ft-page-header-inline-vertical-padding","",d.spacing2),backgroundColor:n.extend("--ft-page-header-background-color","",d.colorWhite),bottomBorderColor:n.extend("--ft-page-header-bottom-border-color","",f.borderGlobalSubtle),titleColor:n.extend("--ft-page-header-title-color","",f.contentGlobalPrimary),subtitleColor:n.extend("--ft-page-header-subtitle-color","",f.contentGlobalSecondary)};var Mc={smallContainerWidth:n.create("--ft-modal-small-container-width","","SIZE","600px"),largeContainerWidth:n.create("--ft-modal-large-container-width","","SIZE","900px"),overlayBackgroundColor:n.extend("--ft-modal-overlay-background-color","",d.colorGray700),overlayOpacity:n.extend("--ft-modal-overlay-opacity","",d.opacity40),shadow:n.extend("--ft-modal-shadow","",d.shadowElevation03),bodyBackgroundColor:n.extend("--ft-modal-body-background-color","",d.colorWhite),bodyColor:n.extend("--ft-modal-body-color","",f.contentGlobalPrimary),bodyHorizontalPadding:n.extend("--ft-modal-body-horizontal-padding","",d.spacing6),bodyVerticalPadding:n.extend("--ft-modal-body-vertical-padding","",d.spacing6),bodyVerticalGap:n.extend("--ft-modal-body-vertical-gap","",d.spacing6),containerMargin:n.extend("--ft-modal-container-margin","",d.spacing3),headerBackgroundColor:n.extend("--ft-modal-header-background-color","",f.backgroundGlobalOnSurface),headerBorderColor:n.extend("--ft-modal-header-border-color","",f.borderGlobalSubtle),headerColor:n.extend("--ft-modal-header-color","",f.contentGlobalPrimary),headerTrailingIconColor:n.extend("--ft-modal-header-trailing-icon-color","",f.contentGlobalSecondary),headerVerticalPadding:n.extend("--ft-modal-header-vertical-padding","",d.spacing1),headerRightPadding:n.extend("--ft-modal-header-right-padding","",d.spacing1),headerLeftPadding:n.extend("--ft-modal-header-left-padding","",d.spacing6),headerGap:n.extend("--ft-modal-header-gap","",d.spacing2),headerBorderBottom:n.create("--ft-modal-header-border-bottom","","SIZE","1px"),borderRadius:n.extend("--ft-modal-border-radius","",d.borderRadiusM)};var Dc={overlayOpacity:n.extend("--ft-drawer-overlay-opacity","",d.opacity40),shadow:n.extend("--ft-drawer-shadow","",d.shadowElevation03),bodyColor:n.extend("--ft-drawer-body-color","",f.contentGlobalPrimary),bodyHorizontalPadding:n.extend("--ft-drawer-body-horizontal-padding","",d.spacing6),bodyVerticalPadding:n.extend("--ft-drawer-body-vertical-padding","",d.spacing6),bodyGap:n.extend("--ft-drawer-body-gap","",d.spacing6),bodyBackgroundColor:n.extend("--ft-drawer-body-background-color","",d.colorWhite),headerBackgroundColor:n.extend("--ft-drawer-header-background-color","",f.backgroundGlobalOnSurface),headerBorderColor:n.extend("--ft-drawer-header-border-color","",f.borderGlobalSubtle),headerColor:n.extend("--ft-drawer-header-color","",f.contentGlobalPrimary),headerTrailingIconColor:n.extend("--ft-drawer-header-trailing-icon-color","",f.contentGlobalSecondary),headerHeight:n.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:n.extend("--ft-drawer-header-horizontal-padding","",d.spacing2),headerBorderWidth:n.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:n.extend("--ft-drawer-header-gap","",d.spacing3),buttonsBarBackgroundColor:n.extend("--ft-drawer-buttons-bar-background-color","",f.backgroundGlobalOnSurface),buttonsBarBorderColor:n.extend("--ft-drawer-buttons-bar-border-color","",f.borderGlobalSubtle),buttonsBarColor:n.extend("--ft-drawer-buttons-bar-color","",f.contentGlobalPrimary),buttonsBarHorizontalPadding:n.extend("--ft-drawer-buttons-bar-horizontal-padding","",d.spacing4),buttonsBarVerticalPadding:n.extend("--ft-drawer-buttons-bar-vertical-padding","",d.spacing4),buttonsBarGap:n.extend("--ft-drawer-buttons-bar-gap","",d.spacing3),buttonsBarBorderWidth:n.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:n.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:n.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:n.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:n.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:n.extend("--ft-drawer-overlay-background-color","",d.colorGray700)};var $c={fieldHorizontalPadding:n.extend("--ft-text-input-field-horizontal-padding","",d.spacing4),fieldHorizontalGap:n.extend("--ft-text-input-field-horizontal-gap","",d.spacing3),fieldVerticalGap:n.extend("--ft-text-input-field-vertical-gap","",d.spacing05),fieldIconSize:n.extend("--ft-text-input-field-icon-size","",d.iconSize3),fieldHeight:n.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:n.extend("--ft-text-input-helper-horizontal-padding","",d.spacing4),helperHorizontalGap:n.extend("--ft-text-input-helper-horizontal-gap","",d.spacing1),helperIconSize:n.extend("--ft-text-input-helper-icon-size","",d.iconSize2),borderRadius:n.extend("--ft-text-input-border-radius","",d.borderRadiusM),backgroundColor:n.extend("--ft-text-input-background-color","",d.colorWhite),contentValueColor:n.extend("--ft-text-input-content-value-color","",f.contentGlobalPrimary),trailingIconColor:n.extend("--ft-text-input-trailing-icon-color","",f.contentGlobalSubtle),labelColor:n.extend("--ft-text-input-label-color","",f.contentGlobalSubtle),defaultBorderColor:n.extend("--ft-text-input-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:n.extend("--ft-text-input-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:n.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:n.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:n.extend("--ft-text-input-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:n.extend("--ft-text-input-error-helper-text-color","",f.contentErrorPrimary),errorHelperIconColor:n.extend("--ft-text-input-error-helper-icon-color","",f.contentErrorIconOnly),warningBorderWidth:n.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:n.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:n.extend("--ft-text-input-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:n.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:n.extend("--ft-text-input-disabled-component-opacity","",d.opacity40)};var Fc={backgroundColor:n.extend("--ft-text-area-background-color","",d.colorWhite),contentValueColor:n.extend("--ft-text-area-content-value-color","",f.contentGlobalPrimary),labelColor:n.extend("--ft-text-area-label-color","",f.contentGlobalSubtle),defaultBorderColor:n.extend("--ft-text-area-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:n.extend("--ft-text-area-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:n.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:n.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:n.extend("--ft-text-area-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:n.extend("--ft-text-area-error-helper-text-color","",f.contentErrorPrimary),errorHelperIconColor:n.extend("--ft-text-area-error-helper-icon-color","",f.contentErrorIconOnly),focusFocusRingColor:n.extend("--ft-text-area-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineWidth:n.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:n.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:n.extend("--ft-text-area-disabled-component-opacity","",d.opacity40),fieldHorizontalLeftPadding:n.extend("--ft-text-area-field-horizontal-left-padding","",d.spacing4),fieldHorizontalGap:n.extend("--ft-text-area-field-horizontal-gap","",d.spacing3),fieldVerticalGap:n.extend("--ft-text-area-field-vertical-gap","",d.spacing05),fieldMinHeight:n.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:n.extend("--ft-text-area-helper-horizontal-padding","",d.spacing4),helperHorizontalGap:n.extend("--ft-text-area-helper-horizontal-gap","",d.spacing1),helperIconSize:n.extend("--ft-text-area-helper-icon-size","",d.iconSize2),borderRadius:n.extend("--ft-text-area-border-radius","",d.borderRadiusM)};var Bc={height:n.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:n.extend("--ft-floating-menu-horizontal-padding","",d.spacing4),offIconColor:n.extend("--ft-floating-menu-off-icon-color","",f.contentGlobalPrimary),offColor:n.extend("--ft-floating-menu-off-color","",f.contentGlobalPrimary),onColor:n.extend("--ft-floating-menu-on-color","",f.contentActionPrimary),onStateLayerColor:n.extend("--ft-floating-menu-on-state-layer-color","",f.contentActionPrimary),gap:n.extend("--ft-floating-menu-gap","",d.spacing3),focusFocusRingColor:n.extend("--ft-floating-menu-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineWidth:n.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:n.extend("--ft-floating-menu-focus-state-layer-opacity","",d.opacity8),hoverStateLayerOpacity:n.extend("--ft-floating-menu-hover-state-layer-opacity","",d.opacity8),activeStateLayerOpacity:n.extend("--ft-floating-menu-active-state-layer-opacity","",d.opacity16),disabledComponentOpacity:n.extend("--ft-floating-menu-disabled-component-opacity","",d.opacity40),iconSize:n.extend("--ft-floating-menu-icon-size","",d.iconSize3),backgroundColor:n.extend("--ft-floating-menu-background-color","",f.backgroundGlobalOnSurface)};var Wc={fieldHorizontalPadding:n.extend("--ft-combobox-single-select-field-horizontal-padding","",d.spacing4),fieldHorizontalGap:n.extend("--ft-combobox-single-select-field-horizontal-gap","",d.spacing3),fieldVerticalGap:n.extend("--ft-combobox-single-select-field-vertical-gap","",d.spacing05),fieldIconSize:n.extend("--ft-combobox-single-select-field-icon-size","",d.iconSize3),fieldHeight:n.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:n.extend("--ft-combobox-single-select-helper-horizontal-padding","",d.spacing4),helperHorizontalGap:n.extend("--ft-combobox-single-select-helper-horizontal-gap","",d.spacing1),helperVerticalGap:n.extend("--ft-combobox-single-select-helper-vertical-gap","",d.spacing1),helperIconSize:n.extend("--ft-combobox-single-select-helper-icon-size","",d.iconSize2),menuVerticalGap:n.extend("--ft-combobox-single-select-menu-vertical-gap","",d.spacing2),borderRadius:n.extend("--ft-combobox-single-select-border-radius","",d.borderRadiusM),backgroundColor:n.extend("--ft-combobox-single-select-background-color","",d.colorWhite),labelColor:n.extend("--ft-combobox-single-select-label-color","",f.contentGlobalSubtle),contentValueColor:n.extend("--ft-combobox-single-select-content-value-color","",f.contentGlobalPrimary),trailingIconColor:n.extend("--ft-combobox-single-select-trailing-icon-color","",f.contentGlobalSubtle),defaultBorderColor:n.extend("--ft-combobox-single-select-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:n.extend("--ft-combobox-single-select-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:n.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:n.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:n.extend("--ft-combobox-single-select-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:n.extend("--ft-combobox-single-select-error-helper-text-color","",f.contentErrorPrimary),warningBorderWidth:n.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:n.extend("--ft-combobox-single-select-warning-border-color","",f.borderWarningPrimary),warningHelperTextColor:n.extend("--ft-combobox-single-select-warning-helper-text-color","",f.contentWarningPrimary),warningHelperIconColor:n.extend("--ft-combobox-single-select-warning-helper-icon-color","",f.contentWarningIconOnly),focusOutlineWidth:n.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:n.extend("--ft-combobox-single-select-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:n.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:n.extend("--ft-combobox-single-select-disabled-component-opacity","",d.opacity40)};var Hc={backgroundColor:n.extend("--ft-combobox-multi-select-background-color","",d.colorWhite),labelColor:n.extend("--ft-combobox-multi-select-label-color","",f.contentGlobalSubtle),trailingIconColor:n.extend("--ft-combobox-multi-select-trailing-icon-color","",f.contentGlobalSubtle),defaultBorderColor:n.extend("--ft-combobox-multi-select-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:n.extend("--ft-combobox-multi-select-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:n.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:n.extend("--ft-combobox-multi-select-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:n.extend("--ft-combobox-multi-select-error-helper-text-color","",f.contentErrorPrimary),errorHelperIcon:n.extend("--ft-combobox-multi-select-error-helper-icon","",f.contentErrorIconOnly),errorBorderWidth:n.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:n.extend("--ft-combobox-multi-select-warning-border-color","",f.borderWarningPrimary),warningHelperTextColor:n.extend("--ft-combobox-multi-select-warning-helper-text-color","",f.contentWarningPrimary),warningHelperIconColor:n.extend("--ft-combobox-multi-select-warning-helper-icon-color","",f.contentWarningIconOnly),warningBorderWidth:n.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:n.extend("--ft-combobox-multi-select-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineWidth:n.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:n.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:n.extend("--ft-combobox-multi-select-disabled-component-opacity","",d.opacity40),helperHorizontalPadding:n.extend("--ft-combobox-multi-select-helper-horizontal-padding","",d.spacing4),helperHorizontalGap:n.extend("--ft-combobox-multi-select-helper-horizontal-gap","",d.spacing1),helperVerticalGap:n.extend("--ft-combobox-multi-select-helper-vertical-gap","",d.spacing1),helperIconSize:n.extend("--ft-combobox-multi-select-helper-icon-size","",d.iconSize2),fieldHorizontalPadding:n.extend("--ft-combobox-multi-select-field-horizontal-padding","",d.spacing4),fieldHorizontalGap:n.extend("--ft-combobox-multi-select-field-horizontal-gap","",d.spacing3),fieldVerticalGap:n.extend("--ft-combobox-multi-select-field-vertical-gap","",d.spacing05),fieldIconSize:n.extend("--ft-combobox-multi-select-field-icon-size","",d.iconSize3),fieldMaxHeight:n.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:n.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",d.spacing1),contentValuesVerticalGap:n.extend("--ft-combobox-multi-select-content-values-vertical-gap","",d.spacing1),borderRadius:n.extend("--ft-combobox-multi-select-border-radius","",d.borderRadiusM)};var zc={backgroundColor:n.extend("--ft-popover-background-color","",f.backgroundGlobalOnSurface),horizontalPadding:n.extend("--ft-popover-horizontal-padding","",d.spacing6),verticalPadding:n.extend("--ft-popover-vertical-padding","",d.spacing6),iconColor:n.extend("--ft-popover-icon-color","",f.contentGlobalSecondary),iconSize:n.extend("--ft-popover-icon-size","",d.iconSize2),titleColor:n.extend("--ft-popover-title-color","",f.contentGlobalPrimary),bodyColor:n.extend("--ft-popover-body-color","",f.contentGlobalSecondary),linkColor:n.extend("--ft-popover-link-color","",f.contentActionPrimary),gap:n.extend("--ft-popover-gap","",d.spacing3),borderRadius:n.extend("--ft-popover-border-radius","",d.borderRadiusM),shadow:n.extend("--ft-popover-shadow","",d.shadowElevation02)};var jc={topLeftBorderRadius:n.extend("--ft-tabs-top-left-border-radius","",d.borderRadiusS),topRightBorderRadius:n.extend("--ft-tabs-top-right-border-radius","",d.borderRadiusS),labelHorizontalPadding:n.extend("--ft-tabs-label-horizontal-padding","",d.spacing4),labelVerticalPadding:n.extend("--ft-tabs-label-vertical-padding","",d.spacing3),labelGap:n.extend("--ft-tabs-label-gap","",d.spacing1),offHoverStateLayerOpacity:n.extend("--ft-tabs-off-hover-state-layer-opacity","",d.opacity8),offFocusStateLayerOpacity:n.extend("--ft-tabs-off-focus-state-layer-opacity","",d.opacity8),offActiveStateLayerOpacity:n.extend("--ft-tabs-off-active-state-layer-opacity","",d.opacity16),offDisabledComponentOpacity:n.extend("--ft-tabs-off-disabled-component-opacity","",d.opacity40),offColor:n.extend("--ft-tabs-off-color","",f.contentGlobalSubtle),offStateLayerColor:n.extend("--ft-tabs-off-state-layer-color","",f.contentGlobalSubtle),onHoverStateLayerOpacity:n.extend("--ft-tabs-on-hover-state-layer-opacity","",d.opacity8),onFocusStateLayerOpacity:n.extend("--ft-tabs-on-focus-state-layer-opacity","",d.opacity8),onActiveStateLayerOpacity:n.extend("--ft-tabs-on-active-state-layer-opacity","",d.opacity16),onDisabledComponentOpacity:n.extend("--ft-tabs-on-disabled-component-opacity","",d.opacity40),onColor:n.extend("--ft-tabs-on-color","",f.contentActionPrimary),onStateLayerColor:n.extend("--ft-tabs-on-state-layer-color","",f.contentActionPrimary),iconHorizontalPadding:n.extend("--ft-tabs-icon-horizontal-padding","",d.spacing1),iconVerticalPadding:n.extend("--ft-tabs-icon-vertical-padding","",d.spacing4),focusOutlineWidth:n.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:n.extend("--ft-tabs-focus-focus-ring-color","",f.borderActionFocusRing)};var Kc={hoverStateLayerOpacity:n.extend("--ft-collapsible-hover-state-layer-opacity","",d.opacity8),focusStateLayerOpacity:n.extend("--ft-collapsible-focus-state-layer-opacity","",d.opacity8),focusOutlineWidth:n.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:n.extend("--ft-collapsible-focus-focus-ring-color","",f.borderActionFocusRing),activeStateLayerOpacity:n.extend("--ft-collapsible-active-state-layer-opacity","",d.opacity16),disabledComponentOpacity:n.extend("--ft-collapsible-disabled-component-opacity","",d.opacity40),horizontalPadding:n.extend("--ft-collapsible-horizontal-padding","",d.spacing4),verticalPadding:n.extend("--ft-collapsible-vertical-padding","",d.spacing3),color:n.extend("--ft-collapsible-color","",f.contentGlobalPrimary),stateLayerColor:n.extend("--ft-collapsible-state-layer-color","",f.contentGlobalPrimary),backgroundColor:n.extend("--ft-collapsible-background-color","",f.backgroundGlobalOnSurface),borderColor:n.extend("--ft-collapsible-border-color","",f.borderGlobalSubtle),iconSize:n.extend("--ft-collapsible-icon-size","",d.iconSize3)};var Vc={groupHorizontalPadding:n.extend("--ft-switch-group-horizontal-padding","",d.spacing1),groupVerticalPadding:n.extend("--ft-switch-group-vertical-padding","",d.spacing1),groupGap:n.extend("--ft-switch-group-gap","",d.spacing1),groupBackgroundColor:n.extend("--ft-switch-group-background-color","",f.backgroundGlobalSurface),groupBorderColor:n.extend("--ft-switch-group-border-color","",f.borderGlobalSubtle),groupBorderRadius:n.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:n.extend("--ft-switch-label-horizontal-padding","",d.spacing2),labelVerticalPadding:n.extend("--ft-switch-label-vertical-padding","",d.spacing1),offHoverStateLayerOpacity:n.extend("--ft-switch-off-hover-state-layer-opacity","",d.opacity8),offFocusStateLayerOpacity:n.extend("--ft-switch-off-focus-state-layer-opacity","",d.opacity8),offActiveStateLayerOpacity:n.extend("--ft-switch-off-active-state-layer-opacity","",d.opacity16),offDisabledComponentOpacity:n.extend("--ft-switch-off-disabled-component-opacity","",d.opacity40),offColor:n.extend("--ft-switch-off-color","",f.contentGlobalSubtle),offStateLayerColor:n.extend("--ft-switch-off-state-layer-color","",f.contentGlobalSubtle),onHoverStateLayerOpacity:n.extend("--ft-switch-on-hover-state-layer-opacity","",d.opacity8),onFocusStateLayerOpacity:n.extend("--ft-switch-on-focus-state-layer-opacity","",d.opacity8),onActiveStateLayerOpacity:n.extend("--ft-switch-on-active-state-layer-opacity","",d.opacity16),onDisabledComponentOpacity:n.extend("--ft-switch-on-disabled-component-opacity","",d.opacity40),onColor:n.extend("--ft-switch-on-color","",f.contentActionPrimary),onStateLayerColor:n.extend("--ft-switch-on-state-layer-color","",f.contentActionPrimary),iconHorizontalPadding:n.extend("--ft-switch-icon-horizontal-padding","",d.spacing1),iconVerticalPadding:n.extend("--ft-switch-icon-vertical-padding","",d.spacing1),focusOutlineWidth:n.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:n.extend("--ft-switch-focus-focus-ring-color","",f.borderActionFocusRing),optionBorderRadius:n.extend("--ft-switch-option-border-radius","",d.borderRadiusS)};var Gc={color1Light:n.extend("--ft-chart-1-light","for area color charts",d.colorBrand40),color1Base:n.extend("--ft-chart-1-base","for line charts",d.colorBrand0),color2Light:n.extend("--ft-chart-2-light","for area color charts",d.colorYellow60),color2Base:n.extend("--ft-chart-2-base","for line charts",d.colorYellow100),color3Light:n.extend("--ft-chart-3-light","",d.colorUltramarine40),color3Base:n.extend("--ft-chart-3-base","",d.colorUltramarine70),color4Light:n.extend("--ft-chart-4-light","",d.colorCyan50),color4Base:n.extend("--ft-chart-4-base","",d.colorCyan100),color5Light:n.extend("--ft-chart-5-light","",d.colorRed40),color5Base:n.extend("--ft-chart-5-base","",d.colorRed60),color6Light:n.extend("--ft-chart-6-light","",d.colorGreen40),color6Base:n.extend("--ft-chart-6-base","",d.colorGreen70),color7Light:n.extend("--ft-chart-7-light","",d.colorOrange70),color7Base:n.extend("--ft-chart-7-base","",d.colorOrange100),color8Light:n.extend("--ft-chart-8-light","",d.colorAvocado70),color8Base:n.extend("--ft-chart-8-base","",d.colorAvocado200),color9Light:n.extend("--ft-chart-9-light","",d.colorBrown50),color9Base:n.extend("--ft-chart-9-base","",d.colorBrown200),color10Light:n.extend("--ft-chart-10-light","",d.colorGray50),color10Base:n.extend("--ft-chart-10-base","",d.colorGray80),monochrome10:n.extend("--ft-chart-monochrome-10","",d.colorBrand10),monochrome20:n.extend("--ft-chart-monochrome-20","",d.colorBrand20),monochrome30:n.extend("--ft-chart-monochrome-30","",d.colorBrand40),monochrome40:n.extend("--ft-chart-monochrome-40","",d.colorBrand60),monochrome50:n.extend("--ft-chart-monochrome-50","",d.colorBrand0),monochrome60:n.extend("--ft-chart-monochrome-60","",d.colorBrand200)};var Zc={largeHorizontalPadding:n.extend("--ft-chip-large-horizontal-padding","",d.spacing4),largeVerticalPadding:n.extend("--ft-chip-large-vertical-padding","",d.spacing2),largeGap:n.extend("--ft-chip-large-gap","",d.spacing1),largeFocusOutlineOffset:n.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:n.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:n.extend("--ft-chip-large-border-radius","",d.borderRadiusPill),largeBorderWidth:n.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:n.extend("--ft-chip-large-icon-size","",d.iconSize3),mediumHorizontalPadding:n.extend("--ft-chip-medium-horizontal-padding","",d.spacing3),mediumVerticalPadding:n.extend("--ft-chip-medium-vertical-padding","",d.spacing1),mediumGap:n.extend("--ft-chip-medium-gap","",d.spacing1),mediumFocusOutlineOffset:n.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:n.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:n.extend("--ft-chip-medium-border-radius","",d.borderRadiusPill),mediumBorderWidth:n.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:n.extend("--ft-chip-medium-icon-size","",d.iconSize2),smallHorizontalPadding:n.extend("--ft-chip-small-horizontal-padding","",d.spacing2),smallVerticalPadding:n.extend("--ft-chip-small-vertical-padding","",d.spacing05),smallGap:n.extend("--ft-chip-small-gap","",d.spacing1),smallFocusOutlineOffset:n.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:n.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:n.extend("--ft-chip-small-border-radius","",d.borderRadiusPill),smallBorderWidth:n.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:n.extend("--ft-chip-small-icon-size","",d.iconSize1),neutralBackgroundColor:n.extend("--ft-chip-neutral-background-color","",f.backgroundGlobalOnSurface),neutralColor:n.extend("--ft-chip-neutral-color","",f.contentGlobalPrimary),neutralIconColor:n.extend("--ft-chip-neutral-icon-color","",f.contentGlobalPrimary),neutralBorderColor:n.extend("--ft-chip-neutral-border-color","",f.borderGlobalSubtle),infoBackgroundColor:n.extend("--ft-chip-info-background-color","",f.backgroundInfoSubtle),infoColor:n.extend("--ft-chip-info-color","",f.contentInfoPrimary),infoIconColor:n.extend("--ft-chip-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:n.extend("--ft-chip-info-border-color","",f.borderInfoSubtle),successBackgroundColor:n.extend("--ft-chip-success-background-color","",f.backgroundSuccessSubtle),successColor:n.extend("--ft-chip-success-color","",f.contentSuccessPrimary),successIconColor:n.extend("--ft-chip-success-icon-color","",f.contentSuccessIconOnly),successBorderColor:n.extend("--ft-chip-success-border-color","",f.borderSuccessSubtle),warningBackgroundColor:n.extend("--ft-chip-warning-background-color","",f.backgroundWarningSubtle),warningColor:n.extend("--ft-chip-warning-color","",f.contentWarningPrimary),warningIconColor:n.extend("--ft-chip-warning-icon-color","",f.contentWarningIconOnly),warningBorderColor:n.extend("--ft-chip-warning-border-color","",f.borderWarningSubtle),errorBackgroundColor:n.extend("--ft-chip-error-background-color","",f.backgroundErrorSubtle),errorColor:n.extend("--ft-chip-error-color","",f.contentErrorPrimary),errorIconColor:n.extend("--ft-chip-error-icon-color","",f.contentErrorIconOnly),errorBorderColor:n.extend("--ft-chip-error-border-color","",f.borderErrorSubtle)};var qc={infoBorderColor:n.extend("--ft-border-info-border-color","",f.borderInfoSubtle)};var Yc={borderWidth:n.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:n.extend("--ft-notice-horizontal-padding","",d.spacing2),verticalPadding:n.extend("--ft-notice-vertical-padding","",d.spacing1),borderRadius:n.extend("--ft-notice-border-radius","",d.borderRadiusS),gap:n.extend("--ft-notice-gap","",d.spacing2),iconSize:n.extend("--ft-notice-icon-size","",d.iconSize3),infoBackgroundColor:n.extend("--ft-notice-info-background-color","",f.backgroundInfoSubtle),infoBorderColor:n.extend("--ft-notice-info-border-color","",f.borderInfoSubtle),infoColor:n.extend("--ft-notice-info-color","",f.contentInfoPrimary),infoIconColor:n.extend("--ft-notice-info-icon-color","",f.contentInfoIconOnly),warningBackgroundColor:n.extend("--ft-notice-warning-background-color","",f.backgroundWarningSubtle),warningBorderColor:n.extend("--ft-notice-warning-border-color","",f.borderWarningSubtle),warningColor:n.extend("--ft-notice-warning-color","",f.contentWarningPrimary),warningIconColor:n.extend("--ft-notice-warning-icon-color","",f.contentWarningIconOnly),errorBackgroundColor:n.extend("--ft-notice-error-background-color","",f.backgroundErrorSubtle),errorBorderColor:n.extend("--ft-notice-error-border-color","",f.borderErrorSubtle),errorColor:n.extend("--ft-notice-error-color","",f.contentErrorPrimary),errorIconColor:n.extend("--ft-notice-error-icon-color","",f.contentErrorIconOnly),successBackgroundColor:n.extend("--ft-notice-success-background-color","",f.backgroundSuccessSubtle),successBorderColor:n.extend("--ft-notice-success-border-color","",f.borderSuccessSubtle),successColor:n.extend("--ft-notice-success-color","",f.contentSuccessPrimary),successIconColor:n.extend("--ft-notice-success-icon-color","",f.contentSuccessIconOnly)};var Jc={color:n.extend("--ft-checkbox-color","",f.contentGlobalPrimary),checkedBackgroundColor:n.extend("--ft-checkbox-checked-background-color","",f.contentActionPrimary),checkedStateLayerColor:n.extend("--ft-checkbox-checked-state-layer-color","",f.contentActionPrimary),checkedIconColor:n.extend("--ft-checkbox-checked-icon-color","",f.contentGlobalOnColor),checkedHoverStateLayerOpacity:n.extend("--ft-checkbox-checked-hover-state-layer-opacity","",d.opacity16),checkedFocusStateLayerOpacity:n.extend("--ft-checkbox-checked-focus-state-layer-opacity","",d.opacity16),checkedActiveStateLayerOpacity:n.extend("--ft-checkbox-checked-active-state-layer-opacity","",d.opacity24),checkedDisabledComponentOpacity:n.extend("--ft-checkbox-checked-disabled-component-opacity","",d.opacity40),uncheckedBorderColor:n.extend("--ft-checkbox-unchecked-border-color","",d.colorGray80),uncheckedStateLayerColor:n.extend("--ft-checkbox-unchecked-state-layer-color","",d.colorGray80),uncheckedHoverStateLayerOpacity:n.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",d.opacity16),uncheckedFocusStateLayerOpacity:n.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",d.opacity16),uncheckedActiveStateLayerOpacity:n.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",d.opacity24),uncheckedDisabledComponentOpacity:n.extend("--ft-checkbox-unchecked-disabled-component-opacity","",d.opacity40),focusFocusRingColor:n.extend("--ft-checkbox-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:n.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:n.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gap:n.extend("--ft-checkbox-gap","",d.spacing3)};var Xc={offHoverStateLayerOpacity:n.extend("--ft-toggle-off-hover-state-layer-opacity","",d.opacity16),offFocusStateLayerOpacity:n.extend("--ft-toggle-off-focus-state-layer-opacity","",d.opacity16),offActiveStateLayerOpacity:n.extend("--ft-toggle-off-active-state-layer-opacity","",d.opacity24),offDisabledComponentOpacity:n.extend("--ft-toggle-off-disabled-component-opacity","",d.opacity40),offBackgroundColor:n.extend("--ft-toggle-off-background-color","",f.contentGlobalSubtle),offIconColor:n.extend("--ft-toggle-off-icon-color","",f.contentGlobalSubtle),offStateLayerColor:n.extend("--ft-toggle-off-state-layer-color","",f.contentGlobalSubtle),onHoverStateLayerOpacity:n.extend("--ft-toggle-on-hover-state-layer-opacity","",d.opacity16),onFocusStateLayerOpacity:n.extend("--ft-toggle-on-focus-state-layer-opacity","",d.opacity16),onActiveStateLayerOpacity:n.extend("--ft-toggle-on-active-state-layer-opacity","",d.opacity24),onDisabledComponentOpacity:n.extend("--ft-toggle-on-disabled-component-opacity","",d.opacity40),onBackgroundColor:n.extend("--ft-toggle-on-background-color","",f.contentActionPrimary),onStateLayerColor:n.extend("--ft-toggle-on-state-layer-color","",f.contentActionPrimary),onIconColor:n.extend("--ft-toggle-on-icon-color","",f.contentActionPrimary),color:n.extend("--ft-toggle-color","",f.contentGlobalPrimary),focusFocusRingColor:n.extend("--ft-toggle-focus-focus-ring-color","",f.borderActionFocusRing),gap:n.extend("--ft-toggle-gap","",d.spacing3)};var Qc={color:n.extend("--ft-radio-color","",f.contentGlobalPrimary),selectedRadioColor:n.extend("--ft-radio-selected-radio-color","",f.contentActionPrimary),selectedStateLayerColor:n.extend("--ft-radio-selected-state-layer-color","",f.contentActionPrimary),selectedHoverStateLayerOpacity:n.extend("--ft-radio-selected-hover-state-layer-opacity","",d.opacity16),selectedFocusStateLayerOpacity:n.extend("--ft-radio-selected-focus-state-layer-opacity","",d.opacity16),selectedActiveStateLayerOpacity:n.extend("--ft-radio-selected-active-state-layer-opacity","",d.opacity24),selectedDisabledComponentOpacity:n.extend("--ft-radio-selected-disabled-component-opacity","",d.opacity40),unselectedStateLayerColor:n.extend("--ft-radio-unselected-state-layer-color","",f.borderInputPrimary),unselectedBorderColor:n.extend("--ft-radio-unselected-border-color","",f.borderInputPrimary),unselectedHoverStateLayerOpacity:n.extend("--ft-radio-unselected-hover-state-layer-opacity","",d.opacity16),unselectedFocusStateLayerOpacity:n.extend("--ft-radio-unselected-focus-state-layer-opacity","",d.opacity16),unselectedActiveStateLayerOpacity:n.extend("--ft-radio-unselected-active-state-layer-opacity","",d.opacity24),unselectedDisabledComponentOpacity:n.extend("--ft-radio-unselected-disabled-component-opacity","",d.opacity40),focusFocusRingColor:n.extend("--ft-radio-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:n.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:n.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:n.extend("--ft-radio-gap","",d.spacing3)};var el={iconSize:n.extend("--ft-notification-icon-size","",d.iconSize4),horizontalPadding:n.extend("--ft-notification-horizontal-padding","",d.spacing4),verticalPadding:n.extend("--ft-notification-vertical-padding","",d.spacing4),infoBackgroundColor:n.extend("--ft-notification-info-background-color","",f.backgroundInfoSubtle),infoColor:n.extend("--ft-notification-info-color","",f.contentInfoPrimary),infoIconColor:n.extend("--ft-notification-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:n.extend("--ft-notification-info-border-color","",f.borderInfoSubtle),successBackgroundColor:n.extend("--ft-notification-success-background-color","",f.backgroundSuccessSubtle),successColor:n.extend("--ft-notification-success-color","",f.contentSuccessPrimary),successIconColor:n.extend("--ft-notification-success-icon-color","",f.contentSuccessIconOnly),successBorderColor:n.extend("--ft-notification-success-border-color","",f.borderSuccessSubtle),warningBackgroundColor:n.extend("--ft-notification-warning-background-color","",f.backgroundWarningSubtle),warningColor:n.extend("--ft-notification-warning-color","",f.contentWarningPrimary),warningIconColor:n.extend("--ft-notification-warning-icon-color","",f.contentWarningIconOnly),warningBorderColor:n.extend("--ft-notification-warning-border-color","",f.borderWarningSubtle),errorBackgroundColor:n.extend("--ft-notification-error-background-color","",f.backgroundErrorSubtle),errorColor:n.extend("--ft-notification-error-color","",f.contentErrorPrimary),errorIconColor:n.extend("--ft-notification-error-icon-color","",f.contentErrorIconOnly),errorBorderColor:n.extend("--ft-notification-error-border-color","",f.borderErrorSubtle),borderRadius:n.extend("--ft-notification-border-radius","",d.borderRadiusPill),borderWidth:n.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:n.extend("--ft-notification-leading-gap","",d.spacing2),trailingGap:n.extend("--ft-notification-trailing-gap","",d.spacing8)};var tl={horizontalPadding:n.extend("--ft-tooltip-horizontal-padding","",d.spacing2),verticalPadding:n.extend("--ft-tooltip-vertical-padding","",d.spacing2),borderRadius:n.extend("--ft-tooltip-border-radius","",d.borderRadiusS),color:n.extend("--ft-tooltip-color","",f.contentGlobalOnColor),backgroundColor:n.extend("--ft-tooltip-background-color","",f.contentGlobalPrimary),backgroundOpacity:n.extend("--ft-tooltip-background-opacity","",d.opacity80),shadow:n.extend("--ft-tooltip-shadow","",d.shadowElevation03),maxWidth:n.create("--ft-tooltip-max-width","","SIZE","256px"),gap:n.extend("--ft-tooltip-gap","",d.spacing05)};var rl={colorPrimary:n.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:n.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:n.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:n.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:n.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:n.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:n.create("--ft-color-error","","COLOR","#B00020"),colorOutline:n.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:n.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:n.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:n.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:n.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:n.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:n.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:n.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:n.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:n.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:n.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:n.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:n.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:n.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:n.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:n.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:n.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:n.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:n.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:n.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:n.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:n.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:n.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:n.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:n.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:n.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:n.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:n.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:n.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:n.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:n.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:n.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:n.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:n.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:n.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:n.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:n.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:n.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:n.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:n.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:n.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:n.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:n.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:n.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var Io={};U(Io,{FtNotificationEvent:()=>Ao,PostResizeEvent:()=>Ro,PreResizeEvent:()=>No});var Ao=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},No=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},Ro=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};var Bo={};U(Bo,{computeOffsetPosition:()=>Sl});var Zi=["top","right","bottom","left"],Gi=["start","end"],To=Zi.reduce((r,e)=>r.concat(e,e+"-"+Gi[0],e+"-"+Gi[1]),[]),Lt=Math.min,Ae=Math.max,Ut=Math.round;var me=r=>({x:r,y:r}),ol={left:"right",right:"left",bottom:"top",top:"bottom"},nl={start:"end",end:"start"};function Po(r,e,t){return Ae(r,Lt(e,t))}function br(r,e){return typeof r=="function"?r(e):r}function ct(r){return r.split("-")[0]}function Ne(r){return r.split("-")[1]}function ko(r){return r==="x"?"y":"x"}function Lo(r){return r==="y"?"height":"width"}function vr(r){return["top","bottom"].includes(ct(r))?"y":"x"}function Uo(r){return ko(vr(r))}function qi(r,e,t){t===void 0&&(t=!1);let o=Ne(r),i=Uo(r),a=Lo(i),s=i==="x"?o===(t?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=_o(s)),[s,_o(s)]}function Yi(r){return r.replace(/start|end/g,e=>nl[e])}function _o(r){return r.replace(/left|right|bottom|top/g,e=>ol[e])}function il(r){return{top:0,right:0,bottom:0,left:0,...r}}function Ji(r){return typeof r!="number"?il(r):{top:r,right:r,bottom:r,left:r}}function Ze(r){return{...r,top:r.y,left:r.x,right:r.x+r.width,bottom:r.y+r.height}}function Xi(r,e,t){let{reference:o,floating:i}=r,a=vr(e),s=Uo(e),l=Lo(s),c=ct(e),u=a==="y",p=o.x+o.width/2-i.width/2,h=o.y+o.height/2-i.height/2,g=o[l]/2-i[l]/2,y;switch(c){case"top":y={x:p,y:o.y-i.height};break;case"bottom":y={x:p,y:o.y+o.height};break;case"right":y={x:o.x+o.width,y:h};break;case"left":y={x:o.x-i.width,y:h};break;default:y={x:o.x,y:o.y}}switch(Ne(e)){case"start":y[s]-=g*(t&&u?-1:1);break;case"end":y[s]+=g*(t&&u?-1:1);break}return y}var Qi=async(r,e,t)=>{let{placement:o="bottom",strategy:i="absolute",middleware:a=[],platform:s}=t,l=a.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(e)),u=await s.getElementRects({reference:r,floating:e,strategy:i}),{x:p,y:h}=Xi(u,o,c),g=o,y={},b=0;for(let O=0;O<l.length;O++){let{name:C,fn:A}=l[O],{x:N,y:S,data:x,reset:w}=await A({x:p,y:h,initialPlacement:o,placement:g,strategy:i,middlewareData:y,rects:u,platform:s,elements:{reference:r,floating:e}});if(p=N??p,h=S??h,y={...y,[C]:{...y[C],...x}},w&&b<=50){b++,typeof w=="object"&&(w.placement&&(g=w.placement),w.rects&&(u=w.rects===!0?await s.getElementRects({reference:r,floating:e,strategy:i}):w.rects),{x:p,y:h}=Xi(u,g,c)),O=-1;continue}}return{x:p,y:h,placement:g,strategy:i,middlewareData:y}};async function Mo(r,e){var t;e===void 0&&(e={});let{x:o,y:i,platform:a,rects:s,elements:l,strategy:c}=r,{boundary:u="clippingAncestors",rootBoundary:p="viewport",elementContext:h="floating",altBoundary:g=!1,padding:y=0}=br(e,r),b=Ji(y),C=l[g?h==="floating"?"reference":"floating":h],A=Ze(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(C)))==null||t?C:C.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:u,rootBoundary:p,strategy:c})),N=h==="floating"?{...s.floating,x:o,y:i}:s.reference,S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),x=await(a.isElement==null?void 0:a.isElement(S))?await(a.getScale==null?void 0:a.getScale(S))||{x:1,y:1}:{x:1,y:1},w=Ze(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:N,offsetParent:S,strategy:c}):N);return{top:(A.top-w.top+b.top)/x.y,bottom:(w.bottom-A.bottom+b.bottom)/x.y,left:(A.left-w.left+b.left)/x.x,right:(w.right-A.right+b.right)/x.x}}function al(r,e,t){return(r?[...t.filter(i=>Ne(i)===r),...t.filter(i=>Ne(i)!==r)]:t.filter(i=>ct(i)===i)).filter(i=>r?Ne(i)===r||(e?Yi(i)!==i:!1):!0)}var Do=function(r){return r===void 0&&(r={}),{name:"autoPlacement",options:r,async fn(e){var t,o,i;let{rects:a,middlewareData:s,placement:l,platform:c,elements:u}=e,{crossAxis:p=!1,alignment:h,allowedPlacements:g=To,autoAlignment:y=!0,...b}=br(r,e),O=h!==void 0||g===To?al(h||null,y,g):g,C=await Mo(e,b),A=((t=s.autoPlacement)==null?void 0:t.index)||0,N=O[A];if(N==null)return{};let S=qi(N,a,await(c.isRTL==null?void 0:c.isRTL(u.floating)));if(l!==N)return{reset:{placement:O[0]}};let x=[C[ct(N)],C[S[0]],C[S[1]]],w=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:N,overflows:x}],R=O[A+1];if(R)return{data:{index:A+1,overflows:w},reset:{placement:R}};let _=w.map(m=>{let v=Ne(m.placement);return[m.placement,v&&p?m.overflows.slice(0,2).reduce((E,T)=>E+T,0):m.overflows[0],m.overflows]}).sort((m,v)=>m[1]-v[1]),k=((i=_.filter(m=>m[2].slice(0,Ne(m[0])?2:3).every(v=>v<=0))[0])==null?void 0:i[0])||_[0][0];return k!==l?{data:{index:A+1,overflows:w},reset:{placement:k}}:{}}}};var $o=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(e){let{x:t,y:o,placement:i}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:C=>{let{x:A,y:N}=C;return{x:A,y:N}}},...c}=br(r,e),u={x:t,y:o},p=await Mo(e,c),h=vr(ct(i)),g=ko(h),y=u[g],b=u[h];if(a){let C=g==="y"?"top":"left",A=g==="y"?"bottom":"right",N=y+p[C],S=y-p[A];y=Po(N,y,S)}if(s){let C=h==="y"?"top":"left",A=h==="y"?"bottom":"right",N=b+p[C],S=b-p[A];b=Po(N,b,S)}let O=l.fn({...e,[g]:y,[h]:b});return{...O,data:{x:O.x-t,y:O.y-o}}}}};function ge(r){return ta(r)?(r.nodeName||"").toLowerCase():"#document"}function G(r){var e;return(r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function ye(r){var e;return(e=(ta(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function ta(r){return r instanceof Node||r instanceof G(r).Node}function se(r){return r instanceof Element||r instanceof G(r).Element}function re(r){return r instanceof HTMLElement||r instanceof G(r).HTMLElement}function ea(r){return typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof G(r).ShadowRoot}function lt(r){let{overflow:e,overflowX:t,overflowY:o,display:i}=Y(r);return/auto|scroll|overlay|hidden|clip/.test(e+o+t)&&!["inline","contents"].includes(i)}function ra(r){return["table","td","th"].includes(ge(r))}function Sr(r){let e=Or(),t=Y(r);return t.transform!=="none"||t.perspective!=="none"||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(t.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(t.contain||"").includes(o))}function oa(r){let e=qe(r);for(;re(e)&&!Mt(e);){if(Sr(e))return e;e=qe(e)}return null}function Or(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Mt(r){return["html","body","#document"].includes(ge(r))}function Y(r){return G(r).getComputedStyle(r)}function Dt(r){return se(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.pageXOffset,scrollTop:r.pageYOffset}}function qe(r){if(ge(r)==="html")return r;let e=r.assignedSlot||r.parentNode||ea(r)&&r.host||ye(r);return ea(e)?e.host:e}function na(r){let e=qe(r);return Mt(e)?r.ownerDocument?r.ownerDocument.body:r.body:re(e)&&lt(e)?e:na(e)}function xr(r,e,t){var o;e===void 0&&(e=[]),t===void 0&&(t=!0);let i=na(r),a=i===((o=r.ownerDocument)==null?void 0:o.body),s=G(i);return a?e.concat(s,s.visualViewport||[],lt(i)?i:[],s.frameElement&&t?xr(s.frameElement):[]):e.concat(i,xr(i,[],t))}function sa(r){let e=Y(r),t=parseFloat(e.width)||0,o=parseFloat(e.height)||0,i=re(r),a=i?r.offsetWidth:t,s=i?r.offsetHeight:o,l=Ut(t)!==a||Ut(o)!==s;return l&&(t=a,o=s),{width:t,height:o,$:l}}function ca(r){return se(r)?r:r.contextElement}function dt(r){let e=ca(r);if(!re(e))return me(1);let t=e.getBoundingClientRect(),{width:o,height:i,$:a}=sa(e),s=(a?Ut(t.width):t.width)/o,l=(a?Ut(t.height):t.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var sl=me(0);function la(r){let e=G(r);return!Or()||!e.visualViewport?sl:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function cl(r,e,t){return e===void 0&&(e=!1),!t||e&&t!==G(r)?!1:e}function $t(r,e,t,o){e===void 0&&(e=!1),t===void 0&&(t=!1);let i=r.getBoundingClientRect(),a=ca(r),s=me(1);e&&(o?se(o)&&(s=dt(o)):s=dt(r));let l=cl(a,t,o)?la(a):me(0),c=(i.left+l.x)/s.x,u=(i.top+l.y)/s.y,p=i.width/s.x,h=i.height/s.y;if(a){let g=G(a),y=o&&se(o)?G(o):o,b=g.frameElement;for(;b&&o&&y!==g;){let O=dt(b),C=b.getBoundingClientRect(),A=Y(b),N=C.left+(b.clientLeft+parseFloat(A.paddingLeft))*O.x,S=C.top+(b.clientTop+parseFloat(A.paddingTop))*O.y;c*=O.x,u*=O.y,p*=O.x,h*=O.y,c+=N,u+=S,b=G(b).frameElement}}return Ze({width:p,height:h,x:c,y:u})}function ll(r){let{rect:e,offsetParent:t,strategy:o}=r,i=re(t),a=ye(t);if(t===a)return e;let s={scrollLeft:0,scrollTop:0},l=me(1),c=me(0);if((i||!i&&o!=="fixed")&&((ge(t)!=="body"||lt(a))&&(s=Dt(t)),re(t))){let u=$t(t);l=dt(t),c.x=u.x+t.clientLeft,c.y=u.y+t.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-s.scrollLeft*l.x+c.x,y:e.y*l.y-s.scrollTop*l.y+c.y}}function dl(r){return Array.from(r.getClientRects())}function da(r){return $t(ye(r)).left+Dt(r).scrollLeft}function ul(r){let e=ye(r),t=Dt(r),o=r.ownerDocument.body,i=Ae(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),a=Ae(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight),s=-t.scrollLeft+da(r),l=-t.scrollTop;return Y(o).direction==="rtl"&&(s+=Ae(e.clientWidth,o.clientWidth)-i),{width:i,height:a,x:s,y:l}}function pl(r,e){let t=G(r),o=ye(r),i=t.visualViewport,a=o.clientWidth,s=o.clientHeight,l=0,c=0;if(i){a=i.width,s=i.height;let u=Or();(!u||u&&e==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:a,height:s,x:l,y:c}}function fl(r,e){let t=$t(r,!0,e==="fixed"),o=t.top+r.clientTop,i=t.left+r.clientLeft,a=re(r)?dt(r):me(1),s=r.clientWidth*a.x,l=r.clientHeight*a.y,c=i*a.x,u=o*a.y;return{width:s,height:l,x:c,y:u}}function ia(r,e,t){let o;if(e==="viewport")o=pl(r,t);else if(e==="document")o=ul(ye(r));else if(se(e))o=fl(e,t);else{let i=la(r);o={...e,x:e.x-i.x,y:e.y-i.y}}return Ze(o)}function ua(r,e){let t=qe(r);return t===e||!se(t)||Mt(t)?!1:Y(t).position==="fixed"||ua(t,e)}function hl(r,e){let t=e.get(r);if(t)return t;let o=xr(r,[],!1).filter(l=>se(l)&&ge(l)!=="body"),i=null,a=Y(r).position==="fixed",s=a?qe(r):r;for(;se(s)&&!Mt(s);){let l=Y(s),c=Sr(s);!c&&l.position==="fixed"&&(i=null),(a?!c&&!i:!c&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||lt(s)&&!c&&ua(r,s))?o=o.filter(p=>p!==s):i=l,s=qe(s)}return e.set(r,o),o}function ml(r){let{element:e,boundary:t,rootBoundary:o,strategy:i}=r,s=[...t==="clippingAncestors"?hl(e,this._c):[].concat(t),o],l=s[0],c=s.reduce((u,p)=>{let h=ia(e,p,i);return u.top=Ae(h.top,u.top),u.right=Lt(h.right,u.right),u.bottom=Lt(h.bottom,u.bottom),u.left=Ae(h.left,u.left),u},ia(e,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function gl(r){return sa(r)}function yl(r,e,t){let o=re(e),i=ye(e),a=t==="fixed",s=$t(r,!0,a,e),l={scrollLeft:0,scrollTop:0},c=me(0);if(o||!o&&!a)if((ge(e)!=="body"||lt(i))&&(l=Dt(e)),o){let u=$t(e,!0,a,e);c.x=u.x+e.clientLeft,c.y=u.y+e.clientTop}else i&&(c.x=da(i));return{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function aa(r,e){return!re(r)||Y(r).position==="fixed"?null:e?e(r):r.offsetParent}function pa(r,e){let t=G(r);if(!re(r))return t;let o=aa(r,e);for(;o&&ra(o)&&Y(o).position==="static";)o=aa(o,e);return o&&(ge(o)==="html"||ge(o)==="body"&&Y(o).position==="static"&&!Sr(o))?t:o||oa(r)||t}var bl=async function(r){let{reference:e,floating:t,strategy:o}=r,i=this.getOffsetParent||pa,a=this.getDimensions;return{reference:yl(e,await i(t),o),floating:{x:0,y:0,...await a(t)}}};function vl(r){return Y(r).direction==="rtl"}var wr={convertOffsetParentRelativeRectToViewportRelativeRect:ll,getDocumentElement:ye,getClippingRect:ml,getOffsetParent:pa,getElementRects:bl,getClientRects:dl,getDimensions:gl,getScale:dt,isElement:se,isRTL:vl};var fa=(r,e,t)=>{let o=new Map,i={platform:wr,...t},a={...i.platform,_c:o};return Qi(r,e,{...i,platform:a})};function ha(r){return xl(r)}function Fo(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function xl(r){for(let e=r;e;e=Fo(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Fo(r);e;e=Fo(e)){if(!(e instanceof Element))continue;let t=getComputedStyle(e);if(t.display!=="contents"&&(t.position!=="static"||t.filter!=="none"||e.tagName==="BODY"))return e}return null}async function Sl(r,e,t){return fa(r,e,{platform:{...wr,getOffsetParent:o=>wr.getOffsetParent(o,ha)},middleware:[$o({crossAxis:!0}),Do({allowedPlacements:[t]})]})}var zo={};U(zo,{FtLitElement:()=>ce});var Wo={};U(Wo,{ScopedRegistryLitElement:()=>Ft});var Er=window,Ol=Er.ShadowRoot&&(Er.ShadyCSS===void 0||Er.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Kh=Symbol();var ma=(r,e)=>{Ol?r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{let o=document.createElement("style"),i=Er.litNonce;i!==void 0&&o.setAttribute("nonce",i),o.textContent=t.cssText,r.appendChild(o)})};var Ft=class extends fe{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([i,a])=>e.registry.define(i,a)));let t={...e.shadowRootOptions,customElements:e.registry},o=this.renderOptions.creationScope=this.attachShadow(t);return ma(o,e.elementStyles),o}};var Ho=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},ba,ga=Symbol("constructorPrototype"),ya=Symbol("constructorName"),va=Symbol("exportpartsDebouncer"),ce=class extends Ft{constructor(){super(),this.adoptedCustomStyleSheet=new CSSStyleSheet,this.useAdoptedStyleSheets=!0,this[ba]=new q(5),this[ya]=this.constructor.name,this[ga]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ya]&&Object.setPrototypeOf(this,this[ga])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet])}catch(e){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",e)}}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}applyCustomStylesheet(e){var t,o,i;if(this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((t=this.customStylesheet)!==null&&t!==void 0?t:"")}catch(a){console.error(a,this.customStylesheet)}}else if(((i=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var e,t,o;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(o=(t=this.exportpartsPrefixes)===null||t===void 0?void 0:t.length)!==null&&o!==void 0&&o)&&this[va].run(()=>{var i,a;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var t,o,i,a,s,l;let c=g=>g!=null&&g.trim().length>0,u=e.filter(c).map(g=>g.trim());if(u.length===0){this.removeAttribute("exportparts");return}let p=new Set;for(let g of(o=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("[part],[exportparts]"))!==null&&o!==void 0?o:[]){let y=(a=(i=g.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&a!==void 0?a:[],b=(l=(s=g.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(O=>O.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...y,...b).filter(c).map(O=>O.trim()).forEach(O=>p.add(O))}if(p.size===0){this.removeAttribute("exportparts");return}let h=[...p.values()].flatMap(g=>u.map(y=>`${g}:${y}--${g}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};ba=va;Ho([P()],ce.prototype,"exportpartsPrefix",void 0);Ho([Ce([])],ce.prototype,"exportpartsPrefixes",void 0);Ho([P()],ce.prototype,"customStylesheet",void 0);var xa={};var Go={};U(Go,{highlightHtml:()=>Vo,highlightHtmlColorCssVariable:()=>Sa,highlightHtmlStyles:()=>El});var Ye=class r{constructor(e,t=!0,o=[],i=5e3){this.ctx=e,this.iframes=t,this.exclude=o,this.iframesTimeout=i}static matches(e,t){let o=typeof t=="string"?[t]:t,i=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(i){let a=!1;return o.every(s=>i.call(e,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,t=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(o=>{let i=t.filter(a=>a.contains(o)).length>0;t.indexOf(o)===-1&&!i&&t.push(o)}),t}getIframeContents(e,t,o=()=>{}){let i;try{let a=e.contentWindow;if(i=a.document,!a||!i)throw new Error("iframe inaccessible")}catch{o()}i&&t(i)}isIframeBlank(e){let t="about:blank",o=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&o!==t&&o}observeIframeLoad(e,t,o){let i=!1,a=null,s=()=>{if(!i){i=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,t,o))}catch{o()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,t,o){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,t,o):this.getIframeContents(e,t,o):this.observeIframeLoad(e,t,o)}catch{o()}}waitForIframes(e,t){let o=0;this.forEachIframe(e,()=>!0,i=>{o++,this.waitForIframes(i.querySelector("html"),()=>{--o||t()})},i=>{i||t()})}forEachIframe(e,t,o,i=()=>{}){let a=e.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let c=()=>{--s<=0&&i(l)};s||c(),a.forEach(u=>{r.matches(u,this.exclude)?c():this.onIframeReady(u,p=>{t(u)&&(l++,o(p)),c()},c)})}createIterator(e,t,o){return document.createNodeIterator(e,t,o,!1)}createInstanceOnIframe(e){return new r(e.querySelector("html"),this.iframes)}compareNodeIframe(e,t,o){let i=e.compareDocumentPosition(o),a=Node.DOCUMENT_POSITION_PRECEDING;if(i&a)if(t!==null){let s=t.compareDocumentPosition(o),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(e){let t=e.previousNode(),o;return t===null?o=e.nextNode():o=e.nextNode()&&e.nextNode(),{prevNode:t,node:o}}checkIframeFilter(e,t,o,i){let a=!1,s=!1;return i.forEach((l,c)=>{l.val===o&&(a=c,s=l.handled)}),this.compareNodeIframe(e,t,o)?(a===!1&&!s?i.push({val:o,handled:!0}):a!==!1&&!s&&(i[a].handled=!0),!0):(a===!1&&i.push({val:o,handled:!1}),!1)}handleOpenIframes(e,t,o,i){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(t,o,i)})})}iterateThroughNodes(e,t,o,i,a){let s=this.createIterator(t,e,i),l=[],c=[],u,p,h=()=>({prevNode:p,node:u}=this.getIteratorNode(s),u);for(;h();)this.iframes&&this.forEachIframe(t,g=>this.checkIframeFilter(u,p,g,l),g=>{this.createInstanceOnIframe(g).forEachNode(e,y=>c.push(y),i)}),c.push(u);c.forEach(g=>{o(g)}),this.iframes&&this.handleOpenIframes(l,e,o,i),a()}forEachNode(e,t,o,i=()=>{}){let a=this.getContexts(),s=a.length;s||i(),a.forEach(l=>{let c=()=>{this.iterateThroughNodes(e,l,t,o,()=>{--s<=0&&i()})};this.iframes?this.waitForIframes(l,c):c()})}};var Bt=class{constructor(e){this.ctx=e,this.ie=!1;let t=window.navigator.userAgent;(t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},e)}get opt(){return this._opt}get iterator(){return new Ye(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,t="debug"){let o=this.opt.log;this.opt.debug&&typeof o=="object"&&typeof o[t]=="function"&&o[t](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){let t=this.opt.synonyms,o=this.opt.caseSensitive?"":"i",i=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in t)if(t.hasOwnProperty(a)){let s=t[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),c=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&c!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(c)})`,`gm${o}`),i+`(${this.processSynomyms(l)}|${this.processSynomyms(c)})`+i))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,t=>t.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,t=>t.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let t=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(t,o,i)=>{let a=i.charAt(o+1);return/[(|)\\]/.test(a)||a===""?t:t+"\0"})}createJoinersRegExp(e){let t=[],o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&t.push(this.escapeStr(o.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join(`[${t.join("")}]*`):e}createDiacriticsRegExp(e){let t=this.opt.caseSensitive?"":"i",o=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],i=[];return e.split("").forEach(a=>{o.every(s=>{if(s.indexOf(a)!==-1){if(i.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${t}`),`[${s}]`),i.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",o=this.opt.accuracy,i=typeof o=="string"?o:o.value,a=typeof o=="string"?[]:o.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),i){case"partially":default:return`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(t)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let t=[];return e.forEach(o=>{this.opt.separateWordSearch?o.split(" ").forEach(i=>{i.trim()&&t.indexOf(i)===-1&&t.push(i)}):o.trim()&&t.indexOf(o)===-1&&t.push(o)}),{keywords:t.sort((o,i)=>i.length-o.length),length:t.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];let t=[],o=0;return e.sort((i,a)=>i.start-a.start).forEach(i=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(i,o);l&&(i.start=a,i.length=s-a,t.push(i),o=s)}),t}callNoMatchOnInvalidRanges(e,t){let o,i,a=!1;return e&&typeof e.start<"u"?(o=parseInt(e.start,10),i=o+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&i-t>0&&i-o>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:o,end:i,valid:a}}checkWhitespaceRanges(e,t,o){let i,a=!0,s=o.length,l=t-s,c=parseInt(e.start,10)-l;return c=c>s?s:c,i=c+parseInt(e.length,10),i>s&&(i=s,this.log(`End range automatically set to the max value of ${s}`)),c<0||i-c<0||c>s||i>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):o.substring(c,i).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:c,end:i,valid:a}}getTextNodes(e){let t="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,i=>{o.push({start:t.length,end:(t+=i.textContent).length,node:i})},i=>this.matchesExclude(i.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:t,nodes:o})})}matchesExclude(e){return Ye.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,t,o){let i=this.opt.element?this.opt.element:"mark",a=e.splitText(t),s=a.splitText(o-t),l=document.createElement(i);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=a.textContent,a.parentNode.replaceChild(l,a),s}wrapRangeInMappedTextNode(e,t,o,i,a){e.nodes.every((s,l)=>{let c=e.nodes[l+1];if(typeof c>"u"||c.start>t){if(!i(s.node))return!1;let u=t-s.start,p=(o>s.end?s.end:o)-s.start,h=e.value.substr(0,s.start),g=e.value.substr(p+s.start);if(s.node=this.wrapRangeInTextNode(s.node,u,p),e.value=h+g,e.nodes.forEach((y,b)=>{b>=l&&(e.nodes[b].start>0&&b!==l&&(e.nodes[b].start-=p),e.nodes[b].end-=p)}),o-=p,a(s.node.previousSibling,s.start),o>s.end)t=s.end;else return!1}return!0})}wrapMatches(e,t,o,i,a){let s=t===0?0:t+1;this.getTextNodes(l=>{l.nodes.forEach(c=>{c=c.node;let u;for(;(u=e.exec(c.textContent))!==null&&u[s]!=="";){if(!o(u[s],c))continue;let p=u.index;if(s!==0)for(let h=1;h<s;h++)p+=u[h].length;c=this.wrapRangeInTextNode(c,p,p+u[s].length),i(c.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,t,o,i,a){let s=t===0?0:t+1;this.getTextNodes(l=>{let c;for(;(c=e.exec(l.value))!==null&&c[s]!=="";){let u=c.index;if(s!==0)for(let h=1;h<s;h++)u+=c[h].length;let p=u+c[s].length;this.wrapRangeInMappedTextNode(l,u,p,h=>o(c[s],h),(h,g)=>{e.lastIndex=g,i(h)})}a()})}wrapRangeFromIndex(e,t,o,i){this.getTextNodes(a=>{let s=a.value.length;e.forEach((l,c)=>{let{start:u,end:p,valid:h}=this.checkWhitespaceRanges(l,s,a.value);h&&this.wrapRangeInMappedTextNode(a,u,p,g=>t(g,l,a.value.substring(u,p),c),g=>{o(g,l)})}),i()})}unwrapMatches(e){let t=e.parentNode,o=document.createDocumentFragment();for(;e.firstChild;)o.appendChild(e.removeChild(e.firstChild));t.replaceChild(o,e),this.ie?this.normalizeTextNode(t):t.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,t){this.opt=t,this.log(`Searching with expression "${e}"`);let o=0,i="wrapMatches",a=s=>{o++,this.opt.each(s)};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),this[i](e,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,o),a,()=>{o===0&&this.opt.noMatch(e),this.opt.done(o)})}mark(e,t){this.opt=t;let o=0,i="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),l=this.opt.caseSensitive?"":"i",c=u=>{let p=new RegExp(this.createRegExp(u),`gm${l}`),h=0;this.log(`Searching with expression "${p}"`),this[i](p,1,(g,y)=>this.opt.filter(y,u,o,h),g=>{h++,o++,this.opt.each(g)},()=>{h===0&&this.opt.noMatch(u),a[s-1]===u?this.opt.done(o):c(a[a.indexOf(u)+1])})};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),s===0?this.opt.done(o):c(a[0])}markRanges(e,t){this.opt=t;let o=0,i=this.checkRanges(e);i&&i.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(i)),this.wrapRangeFromIndex(i,(a,s,l,c)=>this.opt.filter(a,s,l,c),(a,s)=>{o++,this.opt.each(a,s)},()=>{this.opt.done(o)})):this.opt.done(o)}unmark(e){this.opt=e;let t=this.opt.element?this.opt.element:"*";t+="[data-markjs]",this.opt.className&&(t+=`.${this.opt.className}`),this.log(`Removal selector "${t}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,o=>{this.unwrapMatches(o)},o=>{let i=Ye.matches(o,t),a=this.matchesExclude(o);return!i||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function jo(r){let e=new Bt(r);return this.mark=(t,o)=>(e.mark(t,o),this),this.markRegExp=(t,o)=>(e.markRegExp(t,o),this),this.markRanges=(t,o)=>(e.markRanges(t,o),this),this.unmark=t=>(e.unmark(t),this),this}var wl=jo,Sa=n.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),El=H`
7
+ .highlight-html-match {
8
+ background: ${Sa};
9
+ }
10
+ `,Ko={className:"highlight-html-match"};function Vo(r,e){var t;let o=r.getAttribute("data-highlight-html-query");if((o??"")!==(e??"")){let i=new wl(r);i.unmark(Ko),e&&e.trim()&&(i.mark(e.replace(/"[^"]+"/g,""),{...Ko,separateWordSearch:!0}),((t=e.match(/"[^"]+"/g))!==null&&t!==void 0?t:[]).forEach(s=>i.mark(s.replace(/"/g,""),{...Ko,separateWordSearch:!1})))}r.setAttribute("data-highlight-html-query",e??"")}var Zo={};U(Zo,{noTextSelect:()=>Cl,safariEllipsisFix:()=>Nl,wordWrap:()=>Al});var Cl=H`
11
+ .ft-no-text-select {
12
+ -webkit-touch-callout: none;
13
+ -webkit-user-select: none;
14
+ -khtml-user-select: none;
15
+ -moz-user-select: none;
16
+ -ms-user-select: none;
17
+ user-select: none;
18
+ }
19
+ `,Al=H`
20
+ .ft-word-wrap {
21
+ white-space: normal;
22
+ word-wrap: break-word;
23
+ -ms-word-break: break-all;
24
+ word-break: break-all;
25
+ word-break: break-word;
26
+ -ms-hyphens: auto;
27
+ -moz-hyphens: auto;
28
+ -webkit-hyphens: auto;
29
+ hyphens: auto
30
+ }
31
+ `,Nl=H`
32
+ .ft-safari-ellipsis-fix {
33
+ margin-right: 0;
34
+
35
+ }
36
+
37
+ .ft-safari-ellipsis-fix:after {
38
+ content: "\\0000a0";
39
+ display: inline-block;
40
+ width: 0;
41
+ }
42
+ `;var Oa={};var qo={};U(qo,{ParametrizedLabelResolver:()=>Wt});var Wt=class{constructor(e,t){this.defaultLabels=e,this.labels=t}resolve(e,...t){var o,i;e=this.resolvePluralKey(e,t);let a=(i=(o=this.labels[e])!==null&&o!==void 0?o:this.defaultLabels[e])!==null&&i!==void 0?i:"";return t.forEach((s,l)=>a=a.replace(new RegExp(`\\{${l}([^}]*)\\}`,"g"),(c,u)=>this.formatValue(s,u))),a}resolvePluralKey(e,t){for(let o of t)if(typeof o=="number"){let i=`${String(e)}[\\=${o}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}formatValue(e,t){return e instanceof Date?this.formatDate(e,t):e??""}formatDate(e,t){let o=i=>t?.includes("date")?e.toLocaleDateString(i):t?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return o(document.documentElement.lang)}catch{return o()}}};var On={};U(On,{FtCommandQueue:()=>Ht,FtLitElementRedux:()=>_e,FtReduxStore:()=>ve,clearAllStores:()=>pd,isFtReduxStore:()=>Je,redux:()=>Re,reduxEventListener:()=>Il,reduxReactive:()=>Rl});var Rl=()=>(r,e)=>{var t;let o=r.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(t=o.reduxReactiveProperties)===null||t===void 0||t.add(e)},Re=r=>{let e=r??{};return(t,o)=>{var i;let a={hasChanged:(l,c)=>!Q(l,c),attribute:!1,...e};P(a)(t,o);let s=t.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(i=e.selector)!==null&&i!==void 0?i:l=>l[o],store:e.store})}},Il=r=>(e,t)=>{let o=e.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(t,r)};var Ht=class{constructor(){this.queue=[]}add(e,t=!1){t&&(this.queue=this.queue.filter(o=>o.type!==e.type)),this.queue.push(e)}consume(e){let t=this.queue.find(o=>o.type===e);return t&&(this.queue=this.queue.filter(o=>o!==t)),t}};function Je(r){var e;return(e=r?.isFtReduxStore)!==null&&e!==void 0?e:!1}var wa,Ea,Ca,Cr=Symbol("internalReduxEventsUnsubscribers"),Ie=Symbol("internalStoresUnsubscribers"),Xe=Symbol("internalStores"),_e=class extends ce{constructor(){super(...arguments),this[wa]=new Map,this[Ea]=new Map,this[Ca]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(t=>e.has(t))&&this.updateFromStores()}getUnnamedStore(){if(this[Xe].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Xe].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[Xe].get(e)}addStore(e,t){var o;t=(o=t??(Je(e)?e.name:void 0))!==null&&o!==void 0?o:"default-store",this.unsubscribeFromStore(t),this.setupStore(t,e)}removeStore(e){let t=typeof e=="string"?e:e.name;this.unsubscribeFromStore(t),this[Xe].delete(t)}setupStore(e,t){this[Xe].set(e,t),this.subscribeToStore(e,t),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Xe].forEach((e,t)=>this.subscribeToStore(t,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,t)=>{let o=this.constructor.getPropertyOptions(t);if(!o?.attribute||!this.hasAttribute(typeof o?.attribute=="string"?o.attribute:t)){let i=this.getStore(e.store);i&&(e.store?this[Ie].has(e.store):this[Ie].size>0)&&(this[t]=e.selector(i.getState(),this))}})}subscribeToStore(e,t){var o;this[Ie].set(e,t.subscribe(()=>this.updateFromStores())),Je(t)&&t.eventBus&&((o=this.reduxConstructor.reduxEventListeners)===null||o===void 0||o.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||t.name===i.store)){let s=l=>this[a](l);t.eventBus.addEventListener(i.eventName,s),this[Cr].push(()=>t.eventBus.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Ie].forEach((e,t)=>this.unsubscribeFromStore(t)),this[Cr].forEach(e=>e()),this[Cr]=[]}unsubscribeFromStore(e){this[Ie].has(e)&&this[Ie].get(e)(),this[Ie].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};wa=Ie,Ea=Xe,Ca=Cr;_e.reduxProperties=new Map;_e.reduxReactiveProperties=new Set;_e.reduxEventListeners=new Map;function ee(r){for(var e=arguments.length,t=Array(e>1?e-1:0),o=1;o<e;o++)t[o-1]=arguments[o];if(0)var i,a;throw Error("[Immer] minified error nr: "+r+(t.length?" "+t.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function be(r){return!!r&&!!r[M]}function oe(r){var e;return!!r&&(function(t){if(!t||typeof t!="object")return!1;var o=Object.getPrototypeOf(t);if(o===null)return!0;var i=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Dl}(r)||Array.isArray(r)||!!r[Pa]||!!(!((e=r.constructor)===null||e===void 0)&&e[Pa])||nn(r)||an(r))}function Qe(r,e,t){t===void 0&&(t=!1),ft(r)===0?(t?Object.keys:pt)(r).forEach(function(o){t&&typeof o=="symbol"||e(o,r[o],r)}):r.forEach(function(o,i){return e(i,o,r)})}function ft(r){var e=r[M];return e?e.i>3?e.i-4:e.i:Array.isArray(r)?1:nn(r)?2:an(r)?3:0}function ut(r,e){return ft(r)===2?r.has(e):Object.prototype.hasOwnProperty.call(r,e)}function _l(r,e){return ft(r)===2?r.get(e):r[e]}function ka(r,e,t){var o=ft(r);o===2?r.set(e,t):o===3?r.add(t):r[e]=t}function La(r,e){return r===e?r!==0||1/r==1/e:r!=r&&e!=e}function nn(r){return Ul&&r instanceof Map}function an(r){return Ml&&r instanceof Set}function Te(r){return r.o||r.t}function sn(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var e=Da(r);delete e[M];for(var t=pt(e),o=0;o<t.length;o++){var i=t[o],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:r[i]})}return Object.create(Object.getPrototypeOf(r),e)}function cn(r,e){return e===void 0&&(e=!1),ln(r)||be(r)||!oe(r)||(ft(r)>1&&(r.set=r.add=r.clear=r.delete=Tl),Object.freeze(r),e&&Qe(r,function(t,o){return cn(o,!0)},!0)),r}function Tl(){ee(2)}function ln(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function le(r){var e=on[r];return e||ee(18,r),e}function Pl(r,e){on[r]||(on[r]=e)}function en(){return jt}function Yo(r,e){e&&(le("Patches"),r.u=[],r.s=[],r.v=e)}function Ar(r){tn(r),r.p.forEach(kl),r.p=null}function tn(r){r===jt&&(jt=r.l)}function Aa(r){return jt={p:[],l:jt,h:r,m:!0,_:0}}function kl(r){var e=r[M];e.i===0||e.i===1?e.j():e.g=!0}function Jo(r,e){e._=e.p.length;var t=e.p[0],o=r!==void 0&&r!==t;return e.h.O||le("ES5").S(e,r,o),o?(t[M].P&&(Ar(e),ee(4)),oe(r)&&(r=Nr(e,r),e.l||Rr(e,r)),e.u&&le("Patches").M(t[M].t,r,e.u,e.s)):r=Nr(e,t,[]),Ar(e),e.u&&e.v(e.u,e.s),r!==Ma?r:void 0}function Nr(r,e,t){if(ln(e))return e;var o=e[M];if(!o)return Qe(e,function(l,c){return Na(r,o,e,l,c,t)},!0),e;if(o.A!==r)return e;if(!o.P)return Rr(r,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var i=o.i===4||o.i===5?o.o=sn(o.k):o.o,a=i,s=!1;o.i===3&&(a=new Set(i),i.clear(),s=!0),Qe(a,function(l,c){return Na(r,o,i,l,c,t,s)}),Rr(r,i,!1),t&&r.u&&le("Patches").N(o,t,r.u,r.s)}return o.o}function Na(r,e,t,o,i,a,s){if(be(i)){var l=Nr(r,i,a&&e&&e.i!==3&&!ut(e.R,o)?a.concat(o):void 0);if(ka(t,o,l),!be(l))return;r.m=!1}else s&&t.add(i);if(oe(i)&&!ln(i)){if(!r.h.D&&r._<1)return;Nr(r,i),e&&e.A.l||Rr(r,i)}}function Rr(r,e,t){t===void 0&&(t=!1),!r.l&&r.h.D&&r.m&&cn(e,t)}function Xo(r,e){var t=r[M];return(t?Te(t):r)[e]}function Ra(r,e){if(e in r)for(var t=Object.getPrototypeOf(r);t;){var o=Object.getOwnPropertyDescriptor(t,e);if(o)return o;t=Object.getPrototypeOf(t)}}function Pe(r){r.P||(r.P=!0,r.l&&Pe(r.l))}function Qo(r){r.o||(r.o=sn(r.t))}function rn(r,e,t){var o=nn(e)?le("MapSet").F(e,t):an(e)?le("MapSet").T(e,t):r.O?function(i,a){var s=Array.isArray(i),l={i:s?1:0,A:a?a.A:en(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},c=l,u=Kt;s&&(c=[l],u=zt);var p=Proxy.revocable(c,u),h=p.revoke,g=p.proxy;return l.k=g,l.j=h,g}(e,t):le("ES5").J(e,t);return(t?t.A:en()).p.push(o),o}function Ll(r){return be(r)||ee(22,r),function e(t){if(!oe(t))return t;var o,i=t[M],a=ft(t);if(i){if(!i.P&&(i.i<4||!le("ES5").K(i)))return i.t;i.I=!0,o=Ia(t,a),i.I=!1}else o=Ia(t,a);return Qe(o,function(s,l){i&&_l(i.t,s)===l||ka(o,s,e(l))}),a===3?new Set(o):o}(r)}function Ia(r,e){switch(e){case 2:return new Map(r);case 3:return Array.from(r)}return sn(r)}function Ua(){function r(s,l){var c=a[s];return c?c.enumerable=l:a[s]=c={configurable:!0,enumerable:l,get:function(){var u=this[M];return Kt.get(u,s)},set:function(u){var p=this[M];Kt.set(p,s,u)}},c}function e(s){for(var l=s.length-1;l>=0;l--){var c=s[l][M];if(!c.P)switch(c.i){case 5:o(c)&&Pe(c);break;case 4:t(c)&&Pe(c)}}}function t(s){for(var l=s.t,c=s.k,u=pt(c),p=u.length-1;p>=0;p--){var h=u[p];if(h!==M){var g=l[h];if(g===void 0&&!ut(l,h))return!0;var y=c[h],b=y&&y[M];if(b?b.t!==g:!La(y,g))return!0}}var O=!!l[M];return u.length!==pt(l).length+(O?0:1)}function o(s){var l=s.k;if(l.length!==s.t.length)return!0;var c=Object.getOwnPropertyDescriptor(l,l.length-1);if(c&&!c.get)return!0;for(var u=0;u<l.length;u++)if(!l.hasOwnProperty(u))return!0;return!1}function i(s){s.g&&ee(3,JSON.stringify(Te(s)))}var a={};Pl("ES5",{J:function(s,l){var c=Array.isArray(s),u=function(h,g){if(h){for(var y=Array(g.length),b=0;b<g.length;b++)Object.defineProperty(y,""+b,r(b,!0));return y}var O=Da(g);delete O[M];for(var C=pt(O),A=0;A<C.length;A++){var N=C[A];O[N]=r(N,h||!!O[N].enumerable)}return Object.create(Object.getPrototypeOf(g),O)}(c,s),p={i:c?5:4,A:l?l.A:en(),P:!1,I:!1,R:{},l,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,M,{value:p,writable:!0}),u},S:function(s,l,c){c?be(l)&&l[M].A===s&&e(s.p):(s.u&&function u(p){if(p&&typeof p=="object"){var h=p[M];if(h){var g=h.t,y=h.k,b=h.R,O=h.i;if(O===4)Qe(y,function(x){x!==M&&(g[x]!==void 0||ut(g,x)?b[x]||u(y[x]):(b[x]=!0,Pe(h)))}),Qe(g,function(x){y[x]!==void 0||ut(y,x)||(b[x]=!1,Pe(h))});else if(O===5){if(o(h)&&(Pe(h),b.length=!0),y.length<g.length)for(var C=y.length;C<g.length;C++)b[C]=!1;else for(var A=g.length;A<y.length;A++)b[A]=!0;for(var N=Math.min(y.length,g.length),S=0;S<N;S++)y.hasOwnProperty(S)||(b[S]=!0),b[S]===void 0&&u(y[S])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?t(s):o(s)}})}var _a,jt,dn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Ul=typeof Map<"u",Ml=typeof Set<"u",Ta=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ma=dn?Symbol.for("immer-nothing"):((_a={})["immer-nothing"]=!0,_a),Pa=dn?Symbol.for("immer-draftable"):"__$immer_draftable",M=dn?Symbol.for("immer-state"):"__$immer_state";var Dl=""+Object.prototype.constructor,pt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,Da=Object.getOwnPropertyDescriptors||function(r){var e={};return pt(r).forEach(function(t){e[t]=Object.getOwnPropertyDescriptor(r,t)}),e},on={},Kt={get:function(r,e){if(e===M)return r;var t=Te(r);if(!ut(t,e))return function(i,a,s){var l,c=Ra(a,s);return c?"value"in c?c.value:(l=c.get)===null||l===void 0?void 0:l.call(i.k):void 0}(r,t,e);var o=t[e];return r.I||!oe(o)?o:o===Xo(r.t,e)?(Qo(r),r.o[e]=rn(r.A.h,o,r)):o},has:function(r,e){return e in Te(r)},ownKeys:function(r){return Reflect.ownKeys(Te(r))},set:function(r,e,t){var o=Ra(Te(r),e);if(o?.set)return o.set.call(r.k,t),!0;if(!r.P){var i=Xo(Te(r),e),a=i?.[M];if(a&&a.t===t)return r.o[e]=t,r.R[e]=!1,!0;if(La(t,i)&&(t!==void 0||ut(r.t,e)))return!0;Qo(r),Pe(r)}return r.o[e]===t&&(t!==void 0||e in r.o)||Number.isNaN(t)&&Number.isNaN(r.o[e])||(r.o[e]=t,r.R[e]=!0),!0},deleteProperty:function(r,e){return Xo(r.t,e)!==void 0||e in r.t?(r.R[e]=!1,Qo(r),Pe(r)):delete r.R[e],r.o&&delete r.o[e],!0},getOwnPropertyDescriptor:function(r,e){var t=Te(r),o=Reflect.getOwnPropertyDescriptor(t,e);return o&&{writable:!0,configurable:r.i!==1||e!=="length",enumerable:o.enumerable,value:t[e]}},defineProperty:function(){ee(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){ee(12)}},zt={};Qe(Kt,function(r,e){zt[r]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),zt.deleteProperty=function(r,e){return zt.set.call(this,r,e,void 0)},zt.set=function(r,e,t){return Kt.set.call(this,r[0],e,t,r[0])};var $l=function(){function r(t){var o=this;this.O=Ta,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var l=a;a=i;var c=o;return function(O){var C=this;O===void 0&&(O=l);for(var A=arguments.length,N=Array(A>1?A-1:0),S=1;S<A;S++)N[S-1]=arguments[S];return c.produce(O,function(x){var w;return(w=a).call.apply(w,[C,x].concat(N))})}}var u;if(typeof a!="function"&&ee(6),s!==void 0&&typeof s!="function"&&ee(7),oe(i)){var p=Aa(o),h=rn(o,i,void 0),g=!0;try{u=a(h),g=!1}finally{g?Ar(p):tn(p)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(O){return Yo(p,s),Jo(O,p)},function(O){throw Ar(p),O}):(Yo(p,s),Jo(u,p))}if(!i||typeof i!="object"){if((u=a(i))===void 0&&(u=i),u===Ma&&(u=void 0),o.D&&cn(u,!0),s){var y=[],b=[];le("Patches").M(i,u,y,b),s(y,b)}return u}ee(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(u){for(var p=arguments.length,h=Array(p>1?p-1:0),g=1;g<p;g++)h[g-1]=arguments[g];return o.produceWithPatches(u,function(y){return i.apply(void 0,[y].concat(h))})};var s,l,c=o.produce(i,a,function(u,p){s=u,l=p});return typeof Promise<"u"&&c instanceof Promise?c.then(function(u){return[u,s,l]}):[c,s,l]},typeof t?.useProxies=="boolean"&&this.setUseProxies(t.useProxies),typeof t?.autoFreeze=="boolean"&&this.setAutoFreeze(t.autoFreeze)}var e=r.prototype;return e.createDraft=function(t){oe(t)||ee(8),be(t)&&(t=Ll(t));var o=Aa(this),i=rn(this,t,void 0);return i[M].C=!0,tn(o),i},e.finishDraft=function(t,o){var i=t&&t[M],a=i.A;return Yo(a,o),Jo(void 0,a)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Ta&&ee(20),this.O=t},e.applyPatches=function(t,o){var i;for(i=o.length-1;i>=0;i--){var a=o[i];if(a.path.length===0&&a.op==="replace"){t=a.value;break}}i>-1&&(o=o.slice(i+1));var s=le("Patches").$;return be(t)?s(t,o):this.produce(t,function(l){return s(l,o)})},r}(),J=new $l,Fl=J.produce,gm=J.produceWithPatches.bind(J),ym=J.setAutoFreeze.bind(J),bm=J.setUseProxies.bind(J),vm=J.applyPatches.bind(J),xm=J.createDraft.bind(J),Sm=J.finishDraft.bind(J),Ir=Fl;function ke(r){"@babel/helpers - typeof";return ke=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ke(r)}function un(r,e){if(ke(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var o=t.call(r,e||"default");if(ke(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function pn(r){var e=un(r,"string");return ke(e)==="symbol"?e:String(e)}function fn(r,e,t){return e=pn(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function $a(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,o)}return t}function _r(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?$a(Object(t),!0).forEach(function(o){fn(r,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):$a(Object(t)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(t,o))})}return r}function K(r){return"Minified Redux error #"+r+"; visit https://redux.js.org/Errors?code="+r+" for the full message or use the non-minified dev environment for full errors. "}var Fa=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),hn=function(){return Math.random().toString(36).substring(7).split("").join(".")},Tr={INIT:"@@redux/INIT"+hn(),REPLACE:"@@redux/REPLACE"+hn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+hn()}};function Bl(r){if(typeof r!="object"||r===null)return!1;for(var e=r;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(r)===e}function mn(r,e,t){var o;if(typeof e=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(K(0));if(typeof e=="function"&&typeof t>"u"&&(t=e,e=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(K(1));return t(mn)(r,e)}if(typeof r!="function")throw new Error(K(2));var i=r,a=e,s=[],l=s,c=!1;function u(){l===s&&(l=s.slice())}function p(){if(c)throw new Error(K(3));return a}function h(O){if(typeof O!="function")throw new Error(K(4));if(c)throw new Error(K(5));var C=!0;return u(),l.push(O),function(){if(C){if(c)throw new Error(K(6));C=!1,u();var N=l.indexOf(O);l.splice(N,1),s=null}}}function g(O){if(!Bl(O))throw new Error(K(7));if(typeof O.type>"u")throw new Error(K(8));if(c)throw new Error(K(9));try{c=!0,a=i(a,O)}finally{c=!1}for(var C=s=l,A=0;A<C.length;A++){var N=C[A];N()}return O}function y(O){if(typeof O!="function")throw new Error(K(10));i=O,g({type:Tr.REPLACE})}function b(){var O,C=h;return O={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(K(11));function S(){N.next&&N.next(p())}S();var x=C(S);return{unsubscribe:x}}},O[Fa]=function(){return this},O}return g({type:Tr.INIT}),o={dispatch:g,subscribe:h,getState:p,replaceReducer:y},o[Fa]=b,o}function Wl(r){Object.keys(r).forEach(function(e){var t=r[e],o=t(void 0,{type:Tr.INIT});if(typeof o>"u")throw new Error(K(12));if(typeof t(void 0,{type:Tr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(K(13))})}function Ba(r){for(var e=Object.keys(r),t={},o=0;o<e.length;o++){var i=e[o];typeof r[i]=="function"&&(t[i]=r[i])}var a=Object.keys(t),s,l;try{Wl(t)}catch(c){l=c}return function(u,p){if(u===void 0&&(u={}),l)throw l;if(0)var h;for(var g=!1,y={},b=0;b<a.length;b++){var O=a[b],C=t[O],A=u[O],N=C(A,p);if(typeof N>"u"){var S=p&&p.type;throw new Error(K(14))}y[O]=N,g=g||N!==A}return g=g||a.length!==Object.keys(u).length,g?y:u}}function ht(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return e.length===0?function(o){return o}:e.length===1?e[0]:e.reduce(function(o,i){return function(){return o(i.apply(void 0,arguments))}})}function Wa(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return function(o){return function(){var i=o.apply(void 0,arguments),a=function(){throw new Error(K(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(c){return c(s)});return a=ht.apply(void 0,l)(i.dispatch),_r(_r({},i),{},{dispatch:a})}}}function Ha(r){var e=function(o){var i=o.dispatch,a=o.getState;return function(s){return function(l){return typeof l=="function"?l(i,a,r):s(l)}}};return e}var za=Ha();za.withExtraArgument=Ha;var gn=za;var Za=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,i){o.__proto__=i}||function(o,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(o[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function o(){this.constructor=e}e.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)}}(),Hl=function(r,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,i,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(p){return c([u,p])}}function c(u){if(o)throw new TypeError("Generator is already executing.");for(;t;)try{if(o=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,i=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){t.label=u[1];break}if(u[0]===6&&t.label<a[1]){t.label=a[1],a=u;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(u);break}a[2]&&t.ops.pop(),t.trys.pop();continue}u=e.call(r,t)}catch(p){u=[6,p],i=0}finally{o=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},mt=function(r,e){for(var t=0,o=e.length,i=r.length;t<o;t++,i++)r[i]=e[t];return r},zl=Object.defineProperty,jl=Object.defineProperties,Kl=Object.getOwnPropertyDescriptors,ja=Object.getOwnPropertySymbols,Vl=Object.prototype.hasOwnProperty,Gl=Object.prototype.propertyIsEnumerable,Ka=function(r,e,t){return e in r?zl(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t},Le=function(r,e){for(var t in e||(e={}))Vl.call(e,t)&&Ka(r,t,e[t]);if(ja)for(var o=0,i=ja(e);o<i.length;o++){var t=i[o];Gl.call(e,t)&&Ka(r,t,e[t])}return r},yn=function(r,e){return jl(r,Kl(e))},Zl=function(r,e,t){return new Promise(function(o,i){var a=function(c){try{l(t.next(c))}catch(u){i(u)}},s=function(c){try{l(t.throw(c))}catch(u){i(u)}},l=function(c){return c.done?o(c.value):Promise.resolve(c.value).then(a,s)};l((t=t.apply(r,e)).next())})};var ql=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ht:ht.apply(null,arguments)},Fm=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};function Yl(r){if(typeof r!="object"||r===null)return!1;var e=Object.getPrototypeOf(r);if(e===null)return!0;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return e===t}var Jl=function(r){Za(e,r);function e(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var i=r.apply(this,t)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,mt([void 0],t[0].concat(this)))):new(e.bind.apply(e,mt([void 0],t.concat(this))))},e}(Array),Xl=function(r){Za(e,r);function e(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var i=r.apply(this,t)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,mt([void 0],t[0].concat(this)))):new(e.bind.apply(e,mt([void 0],t.concat(this))))},e}(Array);function xn(r){return oe(r)?Ir(r,function(){}):r}function Ql(r){return typeof r=="boolean"}function ed(){return function(e){return td(e)}}function td(r){r===void 0&&(r={});var e=r.thunk,t=e===void 0?!0:e,o=r.immutableCheck,i=o===void 0?!0:o,a=r.serializableCheck,s=a===void 0?!0:a,l=new Jl;if(t&&(Ql(t)?l.push(gn):l.push(gn.withExtraArgument(t.extraArgument))),0){if(i)var c;if(s)var u}return l}var bn=!0;function qa(r){var e=ed(),t=r||{},o=t.reducer,i=o===void 0?void 0:o,a=t.middleware,s=a===void 0?e():a,l=t.devTools,c=l===void 0?!0:l,u=t.preloadedState,p=u===void 0?void 0:u,h=t.enhancers,g=h===void 0?void 0:h,y;if(typeof i=="function")y=i;else if(Yl(i))y=Ba(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var b=s;if(typeof b=="function"&&(b=b(e),!bn&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!bn&&b.some(function(x){return typeof x!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=Wa.apply(void 0,b),C=ht;c&&(C=ql(Le({trace:!bn},typeof c=="object"&&c)));var A=new Xl(O),N=A;Array.isArray(g)?N=mt([O],g):typeof g=="function"&&(N=g(A));var S=C.apply(void 0,N);return mn(y,p,S)}function Ue(r,e){function t(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(e){var a=e.apply(void 0,o);if(!a)throw new Error("prepareAction did not return an object");return Le(Le({type:r,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:r,payload:o[0]}}return t.toString=function(){return""+r},t.type=r,t.match=function(o){return o.type===r},t}function Ya(r){var e={},t=[],o,i={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,i},addMatcher:function(a,s){return t.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return o=a,i}};return r(i),[e,t,o]}function rd(r){return typeof r=="function"}function od(r,e,t,o){t===void 0&&(t=[]);var i=typeof e=="function"?Ya(e):[e,t,o],a=i[0],s=i[1],l=i[2],c;if(rd(r))c=function(){return xn(r())};else{var u=xn(r);c=function(){return u}}function p(h,g){h===void 0&&(h=c());var y=mt([a[g.type]],s.filter(function(b){var O=b.matcher;return O(g)}).map(function(b){var O=b.reducer;return O}));return y.filter(function(b){return!!b}).length===0&&(y=[l]),y.reduce(function(b,O){if(O)if(be(b)){var C=b,A=O(C,g);return A===void 0?b:A}else{if(oe(b))return Ir(b,function(N){return O(N,g)});var A=O(b,g);if(A===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return A}return b},h)}return p.getInitialState=c,p}function nd(r,e){return r+"/"+e}function Ja(r){var e=r.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var t=typeof r.initialState=="function"?r.initialState:xn(r.initialState),o=r.reducers||{},i=Object.keys(o),a={},s={},l={};i.forEach(function(p){var h=o[p],g=nd(e,p),y,b;"reducer"in h?(y=h.reducer,b=h.prepare):y=h,a[p]=y,s[g]=y,l[p]=b?Ue(g,b):Ue(g)});function c(){var p=typeof r.extraReducers=="function"?Ya(r.extraReducers):[r.extraReducers],h=p[0],g=h===void 0?{}:h,y=p[1],b=y===void 0?[]:y,O=p[2],C=O===void 0?void 0:O,A=Le(Le({},g),s);return od(t,function(N){for(var S in A)N.addCase(S,A[S]);for(var x=0,w=b;x<w.length;x++){var R=w[x];N.addMatcher(R.matcher,R.reducer)}C&&N.addDefaultCase(C)})}var u;return{name:e,reducer:function(p,h){return u||(u=c()),u(p,h)},actions:l,caseReducers:a,getInitialState:function(){return u||(u=c()),u.getInitialState()}}}var id="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ad=function(r){r===void 0&&(r=21);for(var e="",t=r;t--;)e+=id[Math.random()*64|0];return e},sd=["name","message","stack","code"],vn=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),Va=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),cd=function(r){if(typeof r=="object"&&r!==null){for(var e={},t=0,o=sd;t<o.length;t++){var i=o[t];typeof r[i]=="string"&&(e[i]=r[i])}return e}return{message:String(r)}},zm=function(){function r(e,t,o){var i=Ue(e+"/fulfilled",function(p,h,g,y){return{payload:p,meta:yn(Le({},y||{}),{arg:g,requestId:h,requestStatus:"fulfilled"})}}),a=Ue(e+"/pending",function(p,h,g){return{payload:void 0,meta:yn(Le({},g||{}),{arg:h,requestId:p,requestStatus:"pending"})}}),s=Ue(e+"/rejected",function(p,h,g,y,b){return{payload:y,error:(o&&o.serializeError||cd)(p||"Rejected"),meta:yn(Le({},b||{}),{arg:g,requestId:h,rejectedWithValue:!!y,requestStatus:"rejected",aborted:p?.name==="AbortError",condition:p?.name==="ConditionError"})}}),l=!1,c=typeof AbortController<"u"?AbortController:function(){function p(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return p.prototype.abort=function(){},p}();function u(p){return function(h,g,y){var b=o?.idGenerator?o.idGenerator(p):ad(),O=new c,C,A=!1;function N(x){C=x,O.abort()}var S=function(){return Zl(this,null,function(){var x,w,R,_,j,k,m;return Hl(this,function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),_=(x=o?.condition)==null?void 0:x.call(o,p,{getState:g,extra:y}),dd(_)?[4,_]:[3,2];case 1:_=v.sent(),v.label=2;case 2:if(_===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return A=!0,j=new Promise(function(E,T){return O.signal.addEventListener("abort",function(){return T({name:"AbortError",message:C||"Aborted"})})}),h(a(b,p,(w=o?.getPendingMeta)==null?void 0:w.call(o,{requestId:b,arg:p},{getState:g,extra:y}))),[4,Promise.race([j,Promise.resolve(t(p,{dispatch:h,getState:g,extra:y,requestId:b,signal:O.signal,abort:N,rejectWithValue:function(E,T){return new vn(E,T)},fulfillWithValue:function(E,T){return new Va(E,T)}})).then(function(E){if(E instanceof vn)throw E;return E instanceof Va?i(E.payload,b,p,E.meta):i(E,b,p)})])];case 3:return R=v.sent(),[3,5];case 4:return k=v.sent(),R=k instanceof vn?s(null,b,p,k.payload,k.meta):s(k,b,p),[3,5];case 5:return m=o&&!o.dispatchConditionRejection&&s.match(R)&&R.meta.condition,m||h(R),[2,R]}})})}();return Object.assign(S,{abort:N,requestId:b,arg:p,unwrap:function(){return S.then(ld)}})}}return Object.assign(u,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return r.withTypes=function(){return r},r}();function ld(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function dd(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var Xa="listener",Qa="completed",es="cancelled",jm="task-"+es,Km="task-"+Qa,Vm=Xa+"-"+es,Gm=Xa+"-"+Qa;var Sn="listenerMiddleware";var Zm=Ue(Sn+"/add"),qm=Ue(Sn+"/removeAll"),Ym=Ue(Sn+"/remove");var Ga,Jm=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(Ga||(Ga=Promise.resolve())).then(r).catch(function(e){return setTimeout(function(){throw e},0)})},ud=function(r){return function(e){setTimeout(e,r)}},Xm=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ud(10);Ua();window.ftReduxStores||(window.ftReduxStores={});var ve=class r{static get(e){var t;let o=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[o];if(Je(a))return a;if(i==null)return;let s=Ja({...i,reducers:(t=i.reducers)!==null&&t!==void 0?t:{}}),l=qa({reducer:(c,u)=>u.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...c,...u.overwrites}:s.reducer(c,u)});return window.ftReduxStores[i.name]=new r(s,l)}constructor(e,t){this.reduxSlice=e,this.reduxStore=t,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Ht,this.actions=new Proxy(this.reduxSlice.actions,{get:(o,i,a)=>{let s=i,l=o[s];return l?(...c)=>{let u=l(...c);return this.reduxStore.dispatch(u),u}:c=>{this.setState({[s]:c})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function pd(){var r;for(let e of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))Je(e)&&e.clear()}var wn={};U(wn,{serializeRequest:()=>hd});function fd(r){return`"${r}"`}function hd(r,e){var t,o,i,a;let s=new URLSearchParams({"content-lang":(t=e.contentLocale)!==null&&t!==void 0?t:"all"});if(((o=e.query)===null||o===void 0?void 0:o.length)>0&&s.append("query",e.query),e.scope&&e.scope!=="DEFAULT"&&s.append("scope",e.scope.toLowerCase()),e.virtualField&&s.append("virtual-field",e.virtualField.toLowerCase()),e.periodFilter){let c=e.periodFilter.period,u=c?`_${c.from}_${c.to}`:"";s.append("period",e.periodFilter.periodType.toLowerCase()+u)}if(((i=e.sort)===null||i===void 0?void 0:i.length)>0&&e.sort[0].key==="ft:lastEdition"&&s.append("sort","last_update"),((a=e.filters)===null||a===void 0?void 0:a.length)>0){let c=e.filters.map(u=>{let p=u.values.map(h=>h.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*")).map(h=>encodeURIComponent(fd(h))).join("_");return`${u.key}~${p}`}).join("*");s.append("filters",c)}return new URL(`${r.replace(/\/+$/,"")}/search?${s.toString()}`).href}var En={};U(En,{toFtFormComponent:()=>md});var Pr=Symbol("elementInternals");function md(r,e){class t extends r{static get formAssociated(){return!0}get form(){return this[Pr].form}constructor(...i){super(i),this[Pr]=this.attachInternals(),this[Pr].role=e}setFormValue(i){this[Pr].setFormValue(i)}}return t}var Cn,An,Nn,Rn,gd=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Nn=(An=(Cn=window.safari)===null||Cn===void 0?void 0:Cn.pushNotification)===null||An===void 0?void 0:An.toString())!==null&&Nn!==void 0?Nn:"")==="[object SafariRemoteNotification]",yd="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Rn=window.ftGlobals)!==null&&Rn!==void 0?Rn:{lit:uo,litDecorators:po,litRepeat:fo,litClassMap:ho,litStyleMap:mo,litUnsafeHTML:go,wcUtils:{...vo,...bo,...xo,...So,...wo,...Co,...Io,...Bo,...Eo,...zo,...xa,...Oo,...Go,...Zo,...Oa,...qo,...On,...Wo,...wn,...En,isSafari:gd,isTouchScreen:yd}};var ts=r=>ve.get({name:"ft-reader-"+r,initialState:{mapId:void 0,visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0}});var In=class{constructor(e){this.paginatedToc=e,this.nodeByTocId={},this.knownPrettyUrls=new Set,this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(e,t,o){return e.flatMap(i=>(i.pageConfiguration&&this.registerPage(this.buildPage(i,o)),i.tocId==null?this.extractPagesToc(i.children,t,o):[{tocId:i.tocId,title:i.title,depth:t,children:this.extractPagesToc(i.children,t+1,i.tocId)}]))}convertNodes(e,t,o){return e.flatMap(i=>{var a,s,l;if(i.tocId==null)return[...this.convertSectionNodes((a=i.pageToc)!==null&&a!==void 0?a:[],t,i.tocId),...this.convertNodes(i.children,t,i.tocId)];let c=(s=i.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),u={tocId:i.tocId,contentId:i.contentId,title:i.title,hasRating:i.hasRating,origin:i.origin,prettyUrl:c,depth:t,parentTocId:o,children:[]};this.register(u);let p=this.convertSectionNodes((l=i.pageToc)!==null&&l!==void 0?l:[],t+1,i.tocId),h=this.convertNodes(i.children,t+1,u.tocId);return u.children=[...p,...h],[u]})}convertSectionNodes(e,t,o){return e.flatMap(i=>{var a;let s=(a=i.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),l={...i,prettyUrl:s,depth:t,parentTocId:o,children:[]};return this.register(l),l.children=this.convertSectionNodes(i.children,t+1,i.tocId),[l]})}buildPage(e,t){var o,i,a,s,l,c;let u={number:this.pages.length+1,title:(o=e.title)!==null&&o!==void 0?o:"",rootTocId:(i=e.tocId)!==null&&i!==void 0?i:"root",toc:((a=e.pageToc)!==null&&a!==void 0?a:[]).map(g=>this.nodeByTocId[g.tocId]),topics:[],hiddenTopics:[],breadcrumb:t?this.buildBreadcrumb(this.nodeByTocId[t]):[]},p=(g,y)=>(y?u.topics:u.hiddenTopics).push(g),h=(l=(s=e.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&l!==void 0?l:[];return u.breadcrumb.forEach((g,y)=>{p(g,h[y])}),e.tocId&&p(e.tocId,e.pageConfiguration.isVisible),u.topics.push(...this.tocIds((c=e.pageToc)!==null&&c!==void 0?c:[])),u}registerPage(e){for(let t of[...e.topics,...e.hiddenTopics])this.pageByTocId[t]||(this.pageByTocId[t]=e);this.pages.push(e)}tocIds(e){return e.flatMap(t=>[t.tocId,...this.tocIds(t.children)])}buildBreadcrumb(e){let t=[e.tocId];for(;e?.parentTocId;)t.unshift(e.parentTocId),e=this.nodeByTocId[e.parentTocId];return t}register(e){e.prettyUrl&&(this.knownPrettyUrls.has(e.prettyUrl)&&this.duplicatedPrettyUrls.add(e.prettyUrl),this.knownPrettyUrls.add(e.prettyUrl)),this.nodeByTocId[e.tocId]=e}},kr=class{convertPaginatedToc(e){return new In(e).build()}};var zg=Ls(os(),1);var ns;(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(ns||(ns={}));var is;(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(is||(is={}));var as;(function(r){r.THIRD_PARTY="THIRD_PARTY",r.OFF_THE_GRID="OFF_THE_GRID",r.CONTENT_PACKAGER="CONTENT_PACKAGER",r.PAGES="PAGES",r.DESIGNED_READER="DESIGNED_READER"})(as||(as={}));var ss;(function(r){r.HOMEPAGE="HOMEPAGE",r.CUSTOM="CUSTOM",r.READER="READER",r.TOPIC_TEMPLATE="TOPIC_TEMPLATE",r.SEARCH="SEARCH",r.SEARCH_RESULT="SEARCH_RESULT"})(ss||(ss={}));var cs;(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(cs||(cs={}));var ls;(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(ls||(ls={}));var ds;(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(ds||(ds={}));var Lr;(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(Lr||(Lr={}));var us;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR",r.CUSTOM="CUSTOM"})(us||(us={}));var ps;(function(r){r.ASC="ASC",r.DESC="DESC"})(ps||(ps={}));var fs;(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(fs||(fs={}));var hs;(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(hs||(hs={}));var ms;(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK"})(ms||(ms={}));var gs;(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(gs||(gs={}));var ys;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK"})(ys||(ys={}));var bs;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC"})(bs||(bs={}));var vs;(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS"})(vs||(vs={}));var D;(function(r){r.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",r.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",r.HTML_EXPORT_USER="HTML_EXPORT_USER",r.PDF_EXPORT_USER="PDF_EXPORT_USER",r.SAVED_SEARCH_USER="SAVED_SEARCH_USER",r.COLLECTION_USER="COLLECTION_USER",r.OFFLINE_USER="OFFLINE_USER",r.ANALYTICS_USER="ANALYTICS_USER",r.BETA_USER="BETA_USER",r.DEBUG_USER="DEBUG_USER",r.PRINT_USER="PRINT_USER",r.RATING_USER="RATING_USER",r.FEEDBACK_USER="FEEDBACK_USER",r.GENERATIVE_AI_USER="GENERATIVE_AI_USER",r.CONTENT_PUBLISHER="CONTENT_PUBLISHER",r.KHUB_ADMIN="KHUB_ADMIN",r.USERS_ADMIN="USERS_ADMIN",r.PORTAL_ADMIN="PORTAL_ADMIN",r.ADMIN="ADMIN",r.DEVELOPER="DEVELOPER"})(D||(D={}));var xs;(function(r){r.VALID="VALID",r.INVALID="INVALID"})(xs||(xs={}));var bd={[D.PERSONAL_BOOK_SHARE_USER]:[D.PERSONAL_BOOK_USER],[D.HTML_EXPORT_USER]:[D.PERSONAL_BOOK_USER],[D.PDF_EXPORT_USER]:[D.PERSONAL_BOOK_USER],[D.KHUB_ADMIN]:[D.CONTENT_PUBLISHER],[D.ADMIN]:[D.KHUB_ADMIN,D.USERS_ADMIN,D.PORTAL_ADMIN],[D.DEVELOPER]:[D.BETA_USER,D.DEBUG_USER]};function Ss(r,e){return r===e||(bd[r]??[]).some(t=>Ss(t,e))}function et(r,e){return r==null?!1:(Array.isArray(r)?r:Array.isArray(r.roles)?r.roles:Array.isArray(r.profile?.roles)?r.profile.roles:[]).some(o=>Ss(o,e))}var xe;(function(r){r.FEEDBACK="FEEDBACK",r.RATING="RATING",r.PRINT="PRINT",r.BOOKMARK="BOOKMARK",r.COLLECTIONS="COLLECTIONS",r.PERSONAL_BOOKS="PERSONAL_BOOKS"})(xe||(xe={}));var Os=H`
43
+ `;var vd="ft-app-info",xd={},I=ve.get({name:vd,reducers:xd,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var tt=class r{static get(e){let{baseUrl:t,apiIntegrationIdentifier:o}=I.getState(),i=e??o;if(t&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(t,i,!0)}static await(e){return new Promise(t=>{let o=r.get(e);if(o)t(o);else{let i=I.subscribe(()=>{o=r.get(e),o&&(i(),t(o))})}})}};var de=class{constructor(e=!0,t){var o;this.overrideApi=t;let i=this.constructor;i.commonCache=(o=i.commonCache)!==null&&o!==void 0?o:new ae,this.cache=e?i.commonCache:new ae}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:tt.get()}get awaitApi(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:tt.await()}clearCache(){this.cache.clearAll()}};var ws,Sd=Symbol("clearAfterUnitTest"),Ur=class extends de{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[ws]=()=>{this.defaultMessages={},this.cache=new ae,this.listeners={}},this.currentUiLocale=I.getState().uiLocale,I.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=I.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let t=e.name.toLowerCase();this.cache.setFinal(t,e),this.notify(t)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,t){var o;if(e=e.toLowerCase(),Object.keys(t).length>0){let i={...(o=this.defaultMessages[e])!==null&&o!==void 0?o:{},...t};Q(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}await this.fetchContext(e)}resolveMessage(e,t,...o){var i,a,s;e=e.toLowerCase(),this.fetchContext(e);let l=(a=(i=this.cache.getNow(e))===null||i===void 0?void 0:i.messages)!==null&&a!==void 0?a:{};return new Wt((s=this.defaultMessages[e])!==null&&s!==void 0?s:{},l).resolve(t,...o)}async fetchContext(e){if(!this.cache.has(e))try{await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),await this.notify(e)}catch(t){console.error(t)}}subscribe(e,t){var o;return e=e.toLowerCase(),this.listeners[e]=(o=this.listeners[e])!==null&&o!==void 0?o:new Set,this.listeners[e].add(t),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(t)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(e=>this.notify(e)))}async notify(e){this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(t=>yr(0).then(()=>t()).catch(()=>null)))}};ws=Sd;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Ur{constructor(){super(async(r,e)=>(await this.awaitApi).getFluidTopicsMessageContext(r,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Ur{constructor(){super(async(r,e)=>(await this.awaitApi).getCustomMessageContext(r,e))}});var Es=window.FluidTopicsI18nService,ly=window.FluidTopicsCustomI18nService;var V=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},W=class extends ce{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>tt.get(),this.messageContexts=[],this.cache=new ae,this.cleanSessionDebouncer=new q}render(){return nt`
44
+ <slot></slot>
45
+ `}update(e){super.update(e),e.has("baseUrl")&&(I.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&I.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&I.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&I.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&I.actions.noCustom(this.noCustom),e.has("editorMode")&&I.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&I.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&I.actions.session(this.session),e.has("availableUiLocales")&&I.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(t=>Es.addContext(t)),e.has("openExternalDocumentInNewTab")&&I.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&I.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&I.actions.forcedOffline(this.forcedOffline),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(this.session==null&&this.updateSession(),this.availableUiLocales==null&&this.updateUiLocales(),this.metadataConfiguration==null&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};W.elementDefinitions={};W.styles=Os;V([P()],W.prototype,"baseUrl",void 0);V([P()],W.prototype,"apiIntegrationIdentifier",void 0);V([P()],W.prototype,"uiLocale",void 0);V([Ce(null)],W.prototype,"availableUiLocales",void 0);V([Ce(null)],W.prototype,"metadataConfiguration",void 0);V([P({type:Boolean})],W.prototype,"editorMode",void 0);V([P({type:Boolean})],W.prototype,"noCustom",void 0);V([P({type:Boolean})],W.prototype,"openExternalDocumentInNewTab",void 0);V([P({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],W.prototype,"noCustomComponent",void 0);V([P({type:Boolean})],W.prototype,"withManualResources",void 0);V([P({type:Boolean})],W.prototype,"navigatorOnline",void 0);V([P({type:Boolean})],W.prototype,"forcedOffline",void 0);V([P({type:Object})],W.prototype,"apiProvider",void 0);V([Ce([])],W.prototype,"messageContexts",void 0);V([Ce(void 0)],W.prototype,"session",void 0);var Mr=class extends de{async listMySearches(){let e=I.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Dr=class extends de{async listMyBookmarks(){let e=I.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Od="ft-user-assets",$r=ve.get({name:Od,initialState:{savedSearches:void 0,bookmarks:void 0}}),_n=class{constructor(){this.currentSession=I.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Dr,this.savedSearchesService=new Mr,I.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:t}=I.getState();Q((e=this.currentSession)===null||e===void 0?void 0:e.profile,t?.profile)||(this.currentSession=t,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),$r.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),$r.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();$r.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let t=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;$r.actions.bookmarks(t)}}},Cs=new _n;var Tn=class{addCommand(e,t=!1){I.commands.add(e,t)}consumeCommand(e){return I.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Tn;var Pn=class{highlightHtml(e,t){Vo(e,t)}};window.FluidTopicsHighlightHtmlService=new Pn;kt("ft-app-context")(W);var Fr=class extends de{get mapId(){return this._mapId}set mapId(e){e!==this._mapId&&this.clear(),this._mapId=e}constructor(e,t,o){super(!1,t),this.converter=e,this._mapId=o,this.initCache()}async withMapId(e){return this._mapId?e(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(e=>this.fetchMap(e))),this.cache.register("enrichedToc",()=>this.withMapId(e=>this.fetchPages(e).then(t=>this.converter.convertPaginatedToc(t)))),this.cache.register("ratingSummary",()=>{var e,t;return et((t=(e=I.getState().session)===null||e===void 0?void 0:e.profile.roles)!==null&&t!==void 0?t:[],"RATING_USER")?this.withMapId(i=>this.fetchMapRating(i)):Promise.resolve()})}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getMapNow(){return this.cache.getNow("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(e){return(await this.getEnrichedToc()).nodeByTocId[e]}getTocNodeNow(e){var t;return(t=this.enrichedToc)===null||t===void 0?void 0:t.nodeByTocId[e]}async getPage(e){let t=await this.getEnrichedToc();return t.pages[e-1]||t.pages[0]}async getPageByTocId(e){let t=await this.getEnrichedToc();return t.pageByTocId[e]||t.pages[0]}getTopicInfo(e){return this.cache.get("topic-"+e.tocId,()=>this.fetchTopicMetadata(e))}getTopicContent(e){return this.cache.get("topic-content-"+e.tocId,()=>this.fetchTopicHTMLContent(e))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}getRelativesForDocument(e,t){return this.cache.get("document-relatives-"+e+"-"+t.join("-"),()=>this.fetchRelativesForDocument(e,t))}getRelativesForTopicInMap(e,t,o){return this.cache.get("topic-relatives-"+[e,t,...o].join("-"),()=>this.fetchRelativesForTopicInMap(e,t,o))}getAttachmentDownloadLink(e){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(e).content}?download=true`)}getLink(e,t,o){let i=this.getNavigationData(e,t,o),a=this.getReaderLinkPrefix()+(i.prettyUrl?i.prettyUrl:`${i.mapId}/${i.tocId}`),s=new URL(a,this.api.tenantBaseUrl);return i.page!=null&&s.searchParams.set("page",`${i.page}`),i.prettyUrlDuplicated&&s.searchParams.set("tocId",i.tocId),i.section!=null&&s.searchParams.set("section",i.section),s.href}getNavigationData(e,t,o){var i,a;e=e||"root";let s=this.enrichedToc,l=s?.pageByTocId[e],c=s?.nodeByTocId[e],u=c?.prettyUrl;return{mapId:this.mapId,tocId:e,topicTitle:(i=c?.title)!==null&&i!==void 0?i:"",page:t&&l&&l.number!==t?t:void 0,prettyUrl:u?.replace(/^r\//,""),prettyUrlDuplicated:(a=s?.duplicatedPrettyUrls.has(u??""))!==null&&a!==void 0?a:!1,section:o}}async getAccurateNavigationData(e,t,o){return await this.getEnrichedToc(),this.getNavigationData(e,t,o)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(e=>e?.publication)}getTopicRating(e){return this.getRatingSummary().then(t=>{var o;return t?{type:t.topics.type,rating:(o=t.topics)===null||o===void 0?void 0:o.ratings.find(i=>i.tocId===e)}:void 0})}rateMap(e,t){return this.makeRateMapRequest(e,t).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(e,t){return this.makeMapFeedbackRequest(e,t)}rateTopic(e,t,o){return this.makeRateTopicRequest(e,t,o).then(()=>this.clearRatingIfNecessary())}unrateTopic(e){return this.makeUnrateTopicRequest(e).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let e=I.getState().session;e?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(e,t,o){return this.makeTopicFeedbackRequest(e,t,o)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(e){let t=this.getTocNodeNow(e),o=[{tocId:t.tocId,title:t.title}],i=this.getTocNodeNow(t.parentTocId);for(;i;)o.unshift({tocId:i.tocId,title:i.title}),i=this.getTocNodeNow(i.parentTocId);return o}isFeatureAccessible(e,{session:t,ratingType:o}){var i;if(!this.isFeatureAvailable(e))return!1;switch(e){case xe.FEEDBACK:return et(t??[],D.FEEDBACK_USER);case xe.RATING:return et(t??[],D.RATING_USER)&&o!=null&&o!==Lr.NO_RATING;case xe.PRINT:return et(t??[],D.PRINT_USER);case xe.BOOKMARK:return!!t?.sessionAuthenticated;case xe.COLLECTIONS:return et(t??[],D.COLLECTION_USER);case xe.PERSONAL_BOOKS:return et(t??[],D.PERSONAL_BOOK_USER)&&!(!((i=this.getMapNow())===null||i===void 0)&&i.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var Br=class r extends Fr{static async build(e){return new r(new kr,void 0,e)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(e){let t=await this.api.getMap(e);return this.fingerprint=t.fingerprint,t}fetchMapRating(e){return this.api.getMapRating(e)}async fetchPages(e){return await this.getMap(),this.api.getPages(e,this.fingerprint)}fetchTopicHTMLContent(e){return this.api.getTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(e){return this.api.getTopic(this.mapId,e.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(e,t){return this.api.search({query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",filters:[{negative:!1,values:t,key:e}],sort:[],facets:[]})}fetchRelativesForTopicInMap(e,t,o){return this.api.search({query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",filters:[{negative:!1,values:o,key:t},{negative:!1,values:[e],key:"ft:publicationId"}],sort:[],facets:[]})}makeMapFeedbackRequest(e,t){return this.api.sendMapFeedback(this.mapId,e,t)}makeRateMapRequest(e,t){return this.api.rateMap(this.mapId,e,t)}makeRateTopicRequest(e,t,o){return this.api.rateTopic(this.mapId,e,t,o)}makeTopicFeedbackRequest(e,t,o){return this.api.sendTopicFeedback(this.mapId,e,t,o)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(e){return this.api.unrateTopic(this.mapId,e)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(e){return!0}};var Wr=class r{static build(e,t){return new r(ts(e.trim()||"context"),t??Br.build)}constructor(e,t,o){this.store=e,this.clusteringHelperProvider=o,this.metadataForSwitchToRelatives=new Set,this.loadDebouncer=new q(10),this.initService(t)}async initService(e){return this.service=await e(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(e){e!==this.store.getState().mapId&&(this.store.actions.mapId(e),this.service&&(this.service.mapId=e),await this.reload())}setVisibleTopics(e){this.store.actions.visibleTopics(e)}async awaitService(){return Pt(()=>this.service)}async navigateToTopic(e,t,o){let i=await this.awaitService(),a=await(o!=null?i.getPage(o):i.getPageByTocId(e??"root"));this.store.actions.currentPage(a),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(e,a),section:t})}resolveValidNonRootTocId(e,t){var o,i,a;let s=(o=e==="root"?void 0:e)!==null&&o!==void 0?o:t.rootTocId;return t.topics.includes(s)?s:(a=(i=t.topics[0])!==null&&i!==void 0?i:t.hiddenTopics[0])!==null&&a!==void 0?a:"root"}async navigateToPage(e){let o=await(await this.awaitService()).getPage(e);this.store.actions.currentPage(o)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var e;!((e=this.service)===null||e===void 0)&&e.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData())}clear(){var e;this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),(e=this.service)===null||e===void 0||e.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var e,t,o,i,a;try{await Promise.all([(e=this.service)===null||e===void 0?void 0:e.getConfiguration().then(s=>this.store.actions.configuration(s)),(t=this.service)===null||t===void 0?void 0:t.getMap().then(s=>this.store.actions.map(s)),(o=this.service)===null||o===void 0?void 0:o.getToc().then(s=>this.store.actions.toc(s)),(i=this.service)===null||i===void 0?void 0:i.getPagesToc().then(s=>this.store.actions.pagesToc(s)),(a=this.service)===null||a===void 0?void 0:a.getPaginationConfiguration().then(s=>this.store.actions.paginationConfiguration(s))]).then(()=>{this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives()})}catch(s){this.errorHandler&&!(s instanceof Ge)&&this.errorHandler(s)}}fetchRelatives(){var e,t,o;let i=(e=this.store.getState().map)===null||e===void 0?void 0:e.metadata.filter(a=>{var s;return a.key==((s=this.store.getState().configuration)===null||s===void 0?void 0:s.relativePivotMetadata)}).flatMap(a=>a.values);i!==void 0&&i.length>0?(t=this.service)===null||t===void 0||t.getRelativesForDocument((o=this.store.getState().configuration)===null||o===void 0?void 0:o.relativePivotMetadata,i).then(a=>{let s=a.results.flatMap(l=>l.entries);this.store.actions.relatives(s),this.updateClusteringHelper()}):this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.eventBus.dispatchEvent(new CustomEvent("clustering-helper-created"))}createClusteringHelper(){var e,t;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let o=this.store.getState().relatives;if(o){let i=o.find(s=>{var l;return((l=s.map)===null||l===void 0?void 0:l.mapId)==this.store.getState().mapId}),a=(t=(e=I.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&t!==void 0?t:[];return new Tt(o,i,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(e){var t,o,i;let a=await Pt(()=>{var u;return(u=this.store.getState().configuration)===null||u===void 0?void 0:u.relativeTopicPivotMetadata}),s=this.store.getState().mapId,c=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[e]);if(!((i=(o=(t=c?.results)===null||t===void 0?void 0:t[0])===null||o===void 0?void 0:o.entries)===null||i===void 0)&&i[0]){let u=c.results[0].entries[0].topic.tocId;return await this.navigateToTopic(u),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(e){this.store.actions.searchInDocumentQuery(e)}registerMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.add(e),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.delete(e),this.updateClusteringHelper()}};var pb={},As=H`
46
+ `;var Hr=class extends CustomEvent{constructor(e,t){super("ft-reader-map-loaded",{detail:{map:e,toc:t}})}},zr=class extends CustomEvent{constructor(e,t){super("ft-reader-visible-topics-change",{detail:{visibleTopics:t}})}},jr=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},Kr=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},Vr=class extends Event{constructor(){super("ft-reader-map-not-found")}},Gr=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},Zr=class extends Event{constructor(){super("ft-reader-map-forbidden")}},qr=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var X=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},wd=r=>e=>+(e??"NaN")>0?+e:r,z=class extends _e{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new q(5),this.navigationDebouncer=new q(10),this.mapLoadedEventDebouncer=new q(50),this.addStore(I)}render(){return nt`
47
+ ${this.importStyleIfNeeded()}
48
+ <slot @register-ft-reader-component=${this.registerComponent}></slot>
49
+ `}importStyleIfNeeded(){var e,t;let o=(e=this.stateManager.service)===null||e===void 0?void 0:e.themeStylesheet();return!o||window.location.href.startsWith((t=this.baseUrl)!==null&&t!==void 0?t:"")?B:nt`
50
+ <style>
51
+ @import "${o}"
52
+ </style>
53
+ `}get stateManager(){return this._stateManager==null&&(this._stateManager=Wr.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=e=>this.handleLoadError(e),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(e=>{let t=e.fontsStylesheet();if(t&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${t}"]`)){let o=document.createElement("link");o.setAttribute("rel","stylesheet"),o.setAttribute("href",t),document.head.append(o)}})}update(e){super.update(e),e.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),e.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),e.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(t=>e.has(t))&&this.mapId&&this.navigateToTarget()}contentAvailableCallback(e){var t;if(super.contentAvailableCallback(e),(e.has("map")||e.has("toc"))&&this.sendLoadedEventIfLoaded(),e.has("scrollTarget")&&((t=this.scrollTarget)===null||t===void 0?void 0:t.tocId)==null){let o=e.get("scrollTarget");o?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>{var i;return this.stateManager.service.getAccurateNavigationData(o.tocId,(i=this.currentPage)===null||i===void 0?void 0:i.number,o.section).then(a=>this.dispatchEvent(new jr(a)))})}e.has("visibleTopics")&&Promise.all(this.visibleTopics.map(o=>{var i;return this.stateManager.service.getAccurateNavigationData(o,(i=this.currentPage)===null||i===void 0?void 0:i.number)})).then(o=>{let i=o.filter(a=>a!=null&&a.topicTitle!=="").map(a=>{var s;return{tocId:a.tocId,title:a.topicTitle,page:a.page,prettyUrl:a.prettyUrl,prettyUrlDuplicated:a.prettyUrlDuplicated,breadcrumb:(s=this.stateManager.service)===null||s===void 0?void 0:s.buildBreadcrumb(a.tocId)}});this.dispatchEvent(new zr(this.map,i))})}clear(){this.stateManager.clear()}async reload(){this.clear(),await this.navigateToTarget()}async navigateToTarget(){await this.stateManager.load(),await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new qr),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot):this.lastNotifiedNotFoundRelative=void 0:this.tocId!=null?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):this.page!=null&&await this.stateManager.navigateToPage(this.page)})}registerComponent(e){e.stopPropagation();let t=e.composedPath()[0];this.register(t)}register(e){e.setReaderStateManager(this.stateManager)}handleLoadError(e){let t=e;t.status===401?this.dispatchEvent(new Gr):t.status===403?this.dispatchEvent(new Zr):t.status===404?this.dispatchEvent(new Vr):this.dispatchEvent(new Kr(e))}reloadBookmarks(){Cs.reloadBookmarks()}async reloadRating(){var e,t;await((e=this.stateManager.service)===null||e===void 0?void 0:e.reloadRating()),(t=this.stateManager.store)===null||t===void 0||t.eventBus.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new Hr(this.map,this.toc))})}};z.styles=As;X([Re({store:I.name})],z.prototype,"baseUrl",void 0);X([P()],z.prototype,"mapId",void 0);X([P()],z.prototype,"tocId",void 0);X([P()],z.prototype,"section",void 0);X([P()],z.prototype,"topicPivot",void 0);X([P()],z.prototype,"searchInDocumentQuery",void 0);X([P({type:Number,converter:{fromAttribute:wd()}})],z.prototype,"page",void 0);X([Re({store:"reader"})],z.prototype,"map",void 0);X([Re({store:"reader"})],z.prototype,"toc",void 0);X([Re({store:"reader"})],z.prototype,"visibleTopics",void 0);X([Re({store:"reader"})],z.prototype,"currentPage",void 0);X([Re({store:"reader"})],z.prototype,"scrollTarget",void 0);X([P({attribute:!1})],z.prototype,"readerServiceProvider",void 0);kt("ft-reader-context")(z);})();
54
+ /*! Bundled license information:
55
+
56
+ @webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js:
57
+ (**
3
58
  * @license
4
59
  * Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
5
60
  * This code may only be used under the BSD style license found at
@@ -11,179 +66,180 @@
11
66
  * Code distributed by Google as part of the polymer project is also
12
67
  * subject to an additional IP rights grant found at
13
68
  * http://polymer.github.io/PATENTS.txt
14
- */
15
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,o=window.customElements.get,r=window.customElements,i=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let c;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,i){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=i.prototype.attributeChangedCallback,c=new Set(i.observedAttributes||[]);h(i,c,s);const l={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:c};this._definitionsByTag.set(t,l),this._definitionsByClass.set(i,l);let f=o.call(r,t);f||(f=u(t),e.call(r,t,f)),this===window.customElements&&(a.set(i,l),l.standInClass=f);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),p(t,l,!0)}const g=this._whenDefinedPromises.get(t);return void 0!==g&&(g.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){y.push(this),r.upgrade.apply(r,arguments),y.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let o=this._whenDefinedPromises.get(t);return void 0===o&&(o={},o.promise=new Promise((t=>o.resolve=t)),this._whenDefinedPromises.set(t,o)),o.promise}_upgradeWhenDefined(t,e,o){let r=this._awaitingUpgrade.get(e);r||this._awaitingUpgrade.set(e,r=new Set),o?r.add(t):r.delete(t)}},window.HTMLElement=function(){let e=c;if(e)return c=void 0,e;const o=a.get(this.constructor);if(!o)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],o.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),i.set(e,o),e},window.HTMLElement.prototype=t.prototype;const l=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!l(e)){const t=y[y.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),l(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},u=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const r=f(o)||window.customElements,i=r._getDefinition(e);return i?p(o,i):n.set(o,r),o}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=i.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,e,o)=>{if(0===e.size||void 0===o)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);r.call(this,n,i),o.call(this,n,t,i)}else r.call(this,n,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);i.call(this,r),o.call(this,r,t,null)}else i.call(this,r)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,r){const i=t.toLowerCase();if(e.has(i)){const t=this.getAttribute(i);n.call(this,i,r);const e=this.getAttribute(i);o.call(this,i,t,e)}else n.call(this,i,r)})},d=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):d(o)},p=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),i.set(t,e),c=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.attributeChangedCallback&&e.observedAttributes.forEach((o=>{t.hasAttribute(o)&&e.attributeChangedCallback.call(t,o,null,t.getAttribute(o))})),o&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},g=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=g.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let y=[document];const b=(t,e,o=void 0)=>{const r=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){y.push(this);const t=r.apply(o||this,arguments);return void 0!==t&&s.set(t,this),y.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,e)=>{const o=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...o,set(t){y.push(this),o.set.call(this,t),y.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,o=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...o){const r=e.call(this,...o);return t.set(r,this),r},o.forEach((e=>{const o=window.ElementInternals.prototype,r=o[e];o[e]=function(...e){const o=t.get(this);if(!0===i.get(o).formAssociated)return r?.call(this,...e);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,o)=>{const r=t.getAttribute("name"),i=e.get(r)||[];this[+o]=t,i.push(t),e.set(r,i)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new r(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),e=[];for(const o of t){const t=i.get(o);t&&!0!==t.formAssociated||e.push(o)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(Ci){const t=window.customElements.define;window.customElements.define=(e,o,r)=>{if(null!==o)try{t.bind(window.customElements)(e,o,r)}catch(t){console.info(e,o,r,t)}}}
16
- /**
69
+ *)
70
+
71
+ @lit/reactive-element/css-tag.js:
72
+ (**
17
73
  * @license
18
74
  * Copyright 2019 Google LLC
19
75
  * SPDX-License-Identifier: BSD-3-Clause
20
- */const e=globalThis,o=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),i=new WeakMap;const n=t=>new class{constructor(t,e,o){if(this._$cssResult$=!0,o!==r)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(o&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=i.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&i.set(e,t))}return t}toString(){return this.cssText}}("string"==typeof t?t:t+"",void 0,r),a=o?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return n(e)})(t):t
21
- /**
76
+ *)
77
+
78
+ @lit/reactive-element/reactive-element.js:
79
+ (**
22
80
  * @license
23
81
  * Copyright 2017 Google LLC
24
82
  * SPDX-License-Identifier: BSD-3-Clause
25
- */,{is:s,defineProperty:c,getOwnPropertyDescriptor:l,getOwnPropertyNames:f,getOwnPropertySymbols:u,getPrototypeOf:h}=Object,d=globalThis,p=d.trustedTypes,g=p?p.emptyScript:"",y=d.reactiveElementPolyfillSupport,b=(t,e)=>t,m={toAttribute(t,e){switch(e){case Boolean:t=t?g:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},v=(t,e)=>!s(t,e),O={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:v};Symbol.metadata??=Symbol("metadata"),d.litPropertyMetadata??=new WeakMap;let w=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=O){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),r=this.getPropertyDescriptor(t,o,e);void 0!==r&&c(this.prototype,t,r)}}static getPropertyDescriptor(t,e,o){const{get:r,set:i}=l(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return r?.call(this)},set(e){const n=r?.call(this);i.call(this,e),this.requestUpdate(t,n,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??O}static _$Ei(){if(this.hasOwnProperty(b("elementProperties")))return;const t=h(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(b("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(b("properties"))){const t=this.properties,e=[...f(t),...u(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(a(t))}else void 0!==t&&e.push(a(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,r)=>{if(o)t.adoptedStyleSheets=r.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of r){const r=document.createElement("style"),i=e.litNonce;void 0!==i&&r.setAttribute("nonce",i),r.textContent=o.cssText,t.appendChild(r)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){const o=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,o);if(void 0!==r&&!0===o.reflect){const i=(void 0!==o.converter?.toAttribute?o.converter:m).toAttribute(e,o.type);this._$Em=t,null==i?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(t,e){const o=this.constructor,r=o._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=o.getPropertyOptions(r),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:m;this._$Em=r,this[r]=i.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o,r=!1,i){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??v)(r?i:this[t],e))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};w.elementStyles=[],w.shadowRootOptions={mode:"open"},w[b("elementProperties")]=new Map,w[b("finalized")]=new Map,y?.({ReactiveElement:w}),(d.reactiveElementVersions??=[]).push("2.0.2");
26
- /**
83
+ *)
84
+
85
+ lit-html/lit-html.js:
86
+ (**
27
87
  * @license
28
88
  * Copyright 2017 Google LLC
29
89
  * SPDX-License-Identifier: BSD-3-Clause
30
- */
31
- const S=globalThis,x=S.trustedTypes,C=x?x.createPolicy("lit-html",{createHTML:t=>t}):void 0,N="$lit$",E=`lit$${(Math.random()+"").slice(9)}$`,R="?"+E,I=`<${R}>`,L=document,U=()=>L.createComment(""),k=t=>null===t||"object"!=typeof t&&"function"!=typeof t,W=Array.isArray,A=t=>W(t)||"function"==typeof t?.[Symbol.iterator],B="[ \t\n\f\r]",P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,F=/-->/g,_=/>/g,T=RegExp(`>|${B}(?:([^\\s"'>=/]+)(${B}*=${B}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),D=/'/g,M=/"/g,z=/^(?:script|style|textarea|title)$/i,K=Symbol.for("lit-noChange"),j=Symbol.for("lit-nothing"),H=new WeakMap,Z=L.createTreeWalker(L,129);function $(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==C?C.createHTML(e):e}const G=(t,e)=>{const o=t.length-1,r=[];let i,n=2===e?"<svg>":"",a=P;for(let e=0;e<o;e++){const o=t[e];let s,c,l=-1,f=0;for(;f<o.length&&(a.lastIndex=f,c=a.exec(o),null!==c);)f=a.lastIndex,a===P?"!--"===c[1]?a=F:void 0!==c[1]?a=_:void 0!==c[2]?(z.test(c[2])&&(i=RegExp("</"+c[2],"g")),a=T):void 0!==c[3]&&(a=T):a===T?">"===c[0]?(a=i??P,l=-1):void 0===c[1]?l=-2:(l=a.lastIndex-c[2].length,s=c[1],a=void 0===c[3]?T:'"'===c[3]?M:D):a===M||a===D?a=T:a===F||a===_?a=P:(a=T,i=void 0);const u=a===T&&t[e+1].startsWith("/>")?" ":"";n+=a===P?o+I:l>=0?(r.push(s),o.slice(0,l)+N+o.slice(l)+E+u):o+E+(-2===l?e:u)}return[$(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),r]};let V=class t{constructor({strings:e,_$litType$:o},r){let i;this.parts=[];let n=0,a=0;const s=e.length-1,c=this.parts,[l,f]=G(e,o);if(this.el=t.createElement(l,r),Z.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=Z.nextNode())&&c.length<s;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(N)){const e=f[a++],o=i.getAttribute(t).split(E),r=/([.?@])?(.*)/.exec(e);c.push({type:1,index:n,name:r[2],strings:o,ctor:"."===r[1]?Q:"?"===r[1]?tt:"@"===r[1]?et:X}),i.removeAttribute(t)}else t.startsWith(E)&&(c.push({type:6,index:n}),i.removeAttribute(t));if(z.test(i.tagName)){const t=i.textContent.split(E),e=t.length-1;if(e>0){i.textContent=x?x.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],U()),Z.nextNode(),c.push({type:2,index:++n});i.append(t[e],U())}}}else if(8===i.nodeType)if(i.data===R)c.push({type:2,index:n});else{let t=-1;for(;-1!==(t=i.data.indexOf(E,t+1));)c.push({type:7,index:n}),t+=E.length-1}n++}}static createElement(t,e){const o=L.createElement("template");return o.innerHTML=t,o}};function q(t,e,o=t,r){if(e===K)return e;let i=void 0!==r?o._$Co?.[r]:o._$Cl;const n=k(e)?void 0:e._$litDirective$;return i?.constructor!==n&&(i?._$AO?.(!1),void 0===n?i=void 0:(i=new n(t),i._$AT(t,o,r)),void 0!==r?(o._$Co??=[])[r]=i:o._$Cl=i),void 0!==i&&(e=q(t,i._$AS(t,e.values),i,r)),e}let Y=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,r=(t?.creationScope??L).importNode(e,!0);Z.currentNode=r;let i=Z.nextNode(),n=0,a=0,s=o[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new J(i,i.nextSibling,this,t):1===s.type?e=new s.ctor(i,s.name,s.strings,this,t):6===s.type&&(e=new ot(i,this,t)),this._$AV.push(e),s=o[++a]}n!==s?.index&&(i=Z.nextNode(),n++)}return Z.currentNode=L,r}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},J=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,r){this.type=2,this._$AH=j,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=q(this,t,e),k(t)?t===j||null==t||""===t?(this._$AH!==j&&this._$AR(),this._$AH=j):t!==this._$AH&&t!==K&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):A(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==j&&k(this._$AH)?this._$AA.nextSibling.data=t:this.$(L.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=V.createElement($(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new Y(r,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=H.get(t.strings);return void 0===e&&H.set(t.strings,e=new V(t)),e}T(e){W(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let r,i=0;for(const n of e)i===o.length?o.push(r=new t(this.k(U()),this.k(U()),this,this.options)):r=o[i],r._$AI(n),i++;i<o.length&&(this._$AR(r&&r._$AB.nextSibling,i),o.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},X=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,i){this.type=1,this._$AH=j,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=j}_$AI(t,e=this,o,r){const i=this.strings;let n=!1;if(void 0===i)t=q(this,t,e,0),n=!k(t)||t!==this._$AH&&t!==K,n&&(this._$AH=t);else{const r=t;let a,s;for(t=i[0],a=0;a<i.length-1;a++)s=q(this,r[o+a],e,a),s===K&&(s=this._$AH[a]),n||=!k(s)||s!==this._$AH[a],s===j?t=j:t!==j&&(t+=(s??"")+i[a+1]),this._$AH[a]=s}n&&!r&&this.O(t)}O(t){t===j?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Q=class extends X{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===j?void 0:t}},tt=class extends X{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==j)}},et=class extends X{constructor(t,e,o,r,i){super(t,e,o,r,i),this.type=5}_$AI(t,e=this){if((t=q(this,t,e,0)??j)===K)return;const o=this._$AH,r=t===j&&o!==j||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,i=t!==j&&(o===j||r);r&&this.element.removeEventListener(this.name,this,o),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},ot=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){q(this,t)}};const rt={j:N,P:E,A:R,C:1,M:G,L:Y,R:A,V:q,D:J,I:X,H:tt,N:et,U:Q,B:ot},it=S.litHtmlPolyfillSupport;it?.(V,J),(S.litHtmlVersions??=[]).push("3.1.0");
32
- /**
90
+ *)
91
+
92
+ @lit/reactive-element/css-tag.js:
93
+ (**
33
94
  * @license
34
95
  * Copyright 2019 Google LLC
35
96
  * SPDX-License-Identifier: BSD-3-Clause
36
- */
37
- const nt=globalThis,at=nt.ShadowRoot&&(void 0===nt.ShadyCSS||nt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,st=Symbol(),ct=new WeakMap;let lt=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==st)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(at&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=ct.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&ct.set(e,t))}return t}toString(){return this.cssText}};const ft=t=>new lt("string"==typeof t?t:t+"",void 0,st),ut=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,o,r)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+t[r+1]),t[0]);return new lt(o,t,st)},ht=(t,e)=>{if(at)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),r=nt.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}},dt=at?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return ft(e)})(t):t
38
- /**
97
+ *)
98
+
99
+ @lit/reactive-element/reactive-element.js:
100
+ (**
39
101
  * @license
40
102
  * Copyright 2017 Google LLC
41
103
  * SPDX-License-Identifier: BSD-3-Clause
42
- */,{is:pt,defineProperty:gt,getOwnPropertyDescriptor:yt,getOwnPropertyNames:bt,getOwnPropertySymbols:mt,getPrototypeOf:vt}=Object,Ot=globalThis,wt=Ot.trustedTypes,St=wt?wt.emptyScript:"",xt=Ot.reactiveElementPolyfillSupport,Ct=(t,e)=>t,Nt={toAttribute(t,e){switch(e){case Boolean:t=t?St:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},Et=(t,e)=>!pt(t,e),Rt={attribute:!0,type:String,converter:Nt,reflect:!1,hasChanged:Et};Symbol.metadata??=Symbol("metadata"),Ot.litPropertyMetadata??=new WeakMap;let It=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Rt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),r=this.getPropertyDescriptor(t,o,e);void 0!==r&&gt(this.prototype,t,r)}}static getPropertyDescriptor(t,e,o){const{get:r,set:i}=yt(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return r?.call(this)},set(e){const n=r?.call(this);i.call(this,e),this.requestUpdate(t,n,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Rt}static _$Ei(){if(this.hasOwnProperty(Ct("elementProperties")))return;const t=vt(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Ct("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ct("properties"))){const t=this.properties,e=[...bt(t),...mt(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(dt(t))}else void 0!==t&&e.push(dt(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ht(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){const o=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,o);if(void 0!==r&&!0===o.reflect){const i=(void 0!==o.converter?.toAttribute?o.converter:Nt).toAttribute(e,o.type);this._$Em=t,null==i?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(t,e){const o=this.constructor,r=o._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=o.getPropertyOptions(r),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:Nt;this._$Em=r,this[r]=i.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o,r=!1,i){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??Et)(r?i:this[t],e))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};It.elementStyles=[],It.shadowRootOptions={mode:"open"},It[Ct("elementProperties")]=new Map,It[Ct("finalized")]=new Map,xt?.({ReactiveElement:It}),(Ot.reactiveElementVersions??=[]).push("2.0.2");
43
- /**
104
+ *)
105
+
106
+ lit-html/lit-html.js:
107
+ (**
44
108
  * @license
45
109
  * Copyright 2017 Google LLC
46
110
  * SPDX-License-Identifier: BSD-3-Clause
47
- */
48
- const Lt=globalThis,Ut=Lt.trustedTypes,kt=Ut?Ut.createPolicy("lit-html",{createHTML:t=>t}):void 0,Wt="$lit$",At=`lit$${(Math.random()+"").slice(9)}$`,Bt="?"+At,Pt=`<${Bt}>`,Ft=document,_t=()=>Ft.createComment(""),Tt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Dt=Array.isArray,Mt=t=>Dt(t)||"function"==typeof t?.[Symbol.iterator],zt="[ \t\n\f\r]",Kt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,jt=/-->/g,Ht=/>/g,Zt=RegExp(`>|${zt}(?:([^\\s"'>=/]+)(${zt}*=${zt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),$t=/'/g,Gt=/"/g,Vt=/^(?:script|style|textarea|title)$/i,qt=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),Yt=qt(1),Jt=qt(2),Xt=Symbol.for("lit-noChange"),Qt=Symbol.for("lit-nothing"),te=new WeakMap,ee=Ft.createTreeWalker(Ft,129);function oe(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==kt?kt.createHTML(e):e}const re=(t,e)=>{const o=t.length-1,r=[];let i,n=2===e?"<svg>":"",a=Kt;for(let e=0;e<o;e++){const o=t[e];let s,c,l=-1,f=0;for(;f<o.length&&(a.lastIndex=f,c=a.exec(o),null!==c);)f=a.lastIndex,a===Kt?"!--"===c[1]?a=jt:void 0!==c[1]?a=Ht:void 0!==c[2]?(Vt.test(c[2])&&(i=RegExp("</"+c[2],"g")),a=Zt):void 0!==c[3]&&(a=Zt):a===Zt?">"===c[0]?(a=i??Kt,l=-1):void 0===c[1]?l=-2:(l=a.lastIndex-c[2].length,s=c[1],a=void 0===c[3]?Zt:'"'===c[3]?Gt:$t):a===Gt||a===$t?a=Zt:a===jt||a===Ht?a=Kt:(a=Zt,i=void 0);const u=a===Zt&&t[e+1].startsWith("/>")?" ":"";n+=a===Kt?o+Pt:l>=0?(r.push(s),o.slice(0,l)+Wt+o.slice(l)+At+u):o+At+(-2===l?e:u)}return[oe(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),r]};class ie{constructor({strings:t,_$litType$:e},o){let r;this.parts=[];let i=0,n=0;const a=t.length-1,s=this.parts,[c,l]=re(t,e);if(this.el=ie.createElement(c,o),ee.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=ee.nextNode())&&s.length<a;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(Wt)){const e=l[n++],o=r.getAttribute(t).split(At),a=/([.?@])?(.*)/.exec(e);s.push({type:1,index:i,name:a[2],strings:o,ctor:"."===a[1]?le:"?"===a[1]?fe:"@"===a[1]?ue:ce}),r.removeAttribute(t)}else t.startsWith(At)&&(s.push({type:6,index:i}),r.removeAttribute(t));if(Vt.test(r.tagName)){const t=r.textContent.split(At),e=t.length-1;if(e>0){r.textContent=Ut?Ut.emptyScript:"";for(let o=0;o<e;o++)r.append(t[o],_t()),ee.nextNode(),s.push({type:2,index:++i});r.append(t[e],_t())}}}else if(8===r.nodeType)if(r.data===Bt)s.push({type:2,index:i});else{let t=-1;for(;-1!==(t=r.data.indexOf(At,t+1));)s.push({type:7,index:i}),t+=At.length-1}i++}}static createElement(t,e){const o=Ft.createElement("template");return o.innerHTML=t,o}}function ne(t,e,o=t,r){if(e===Xt)return e;let i=void 0!==r?o._$Co?.[r]:o._$Cl;const n=Tt(e)?void 0:e._$litDirective$;return i?.constructor!==n&&(i?._$AO?.(!1),void 0===n?i=void 0:(i=new n(t),i._$AT(t,o,r)),void 0!==r?(o._$Co??=[])[r]=i:o._$Cl=i),void 0!==i&&(e=ne(t,i._$AS(t,e.values),i,r)),e}let ae=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,r=(t?.creationScope??Ft).importNode(e,!0);ee.currentNode=r;let i=ee.nextNode(),n=0,a=0,s=o[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new se(i,i.nextSibling,this,t):1===s.type?e=new s.ctor(i,s.name,s.strings,this,t):6===s.type&&(e=new he(i,this,t)),this._$AV.push(e),s=o[++a]}n!==s?.index&&(i=ee.nextNode(),n++)}return ee.currentNode=Ft,r}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},se=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,r){this.type=2,this._$AH=Qt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ne(this,t,e),Tt(t)?t===Qt||null==t||""===t?(this._$AH!==Qt&&this._$AR(),this._$AH=Qt):t!==this._$AH&&t!==Xt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):Mt(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==Qt&&Tt(this._$AH)?this._$AA.nextSibling.data=t:this.$(Ft.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=ie.createElement(oe(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new ae(r,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=te.get(t.strings);return void 0===e&&te.set(t.strings,e=new ie(t)),e}T(e){Dt(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let r,i=0;for(const n of e)i===o.length?o.push(r=new t(this.k(_t()),this.k(_t()),this,this.options)):r=o[i],r._$AI(n),i++;i<o.length&&(this._$AR(r&&r._$AB.nextSibling,i),o.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},ce=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,i){this.type=1,this._$AH=Qt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=Qt}_$AI(t,e=this,o,r){const i=this.strings;let n=!1;if(void 0===i)t=ne(this,t,e,0),n=!Tt(t)||t!==this._$AH&&t!==Xt,n&&(this._$AH=t);else{const r=t;let a,s;for(t=i[0],a=0;a<i.length-1;a++)s=ne(this,r[o+a],e,a),s===Xt&&(s=this._$AH[a]),n||=!Tt(s)||s!==this._$AH[a],s===Qt?t=Qt:t!==Qt&&(t+=(s??"")+i[a+1]),this._$AH[a]=s}n&&!r&&this.O(t)}O(t){t===Qt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},le=class extends ce{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===Qt?void 0:t}},fe=class extends ce{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==Qt)}},ue=class extends ce{constructor(t,e,o,r,i){super(t,e,o,r,i),this.type=5}_$AI(t,e=this){if((t=ne(this,t,e,0)??Qt)===Xt)return;const o=this._$AH,r=t===Qt&&o!==Qt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,i=t!==Qt&&(o===Qt||r);r&&this.element.removeEventListener(this.name,this,o),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},he=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){ne(this,t)}};const de={j:Wt,P:At,A:Bt,C:1,M:re,L:ae,R:Mt,V:ne,D:se,I:ce,H:fe,N:ue,U:le,B:he},pe=Lt.litHtmlPolyfillSupport;pe?.(ie,se),(Lt.litHtmlVersions??=[]).push("3.1.0");const ge=(t,e,o)=>{const r=o?.renderBefore??e;let i=r._$litPart$;if(void 0===i){const t=o?.renderBefore??null;r._$litPart$=i=new se(e.insertBefore(_t(),t),t,void 0,o??{})}return i._$AI(t),i
49
- /**
111
+ *)
112
+
113
+ lit-element/lit-element.js:
114
+ (**
50
115
  * @license
51
116
  * Copyright 2017 Google LLC
52
117
  * SPDX-License-Identifier: BSD-3-Clause
53
- */};let ye=class extends It{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ge(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Xt}};ye._$litElement$=!0,ye.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:ye});const be=globalThis.litElementPolyfillSupport;be?.({LitElement:ye});(globalThis.litElementVersions??=[]).push("4.0.2");var me=Object.freeze({__proto__:null,CSSResult:lt,LitElement:ye,ReactiveElement:It,_$LE:{_$AK:(t,e,o)=>{t._$AK(e,o)},_$AL:t=>t._$AL},_$LH:de,adoptStyles:ht,css:ut,defaultConverter:Nt,getCompatibleStyle:dt,html:Yt,isServer:!1,noChange:Xt,notEqual:Et,nothing:Qt,render:ge,supportsAdoptingStyleSheets:at,svg:Jt,unsafeCSS:ft});
54
- /**
118
+ *)
119
+
120
+ lit-html/is-server.js:
121
+ (**
122
+ * @license
123
+ * Copyright 2022 Google LLC
124
+ * SPDX-License-Identifier: BSD-3-Clause
125
+ *)
126
+
127
+ @lit/reactive-element/decorators/custom-element.js:
128
+ (**
55
129
  * @license
56
130
  * Copyright 2017 Google LLC
57
131
  * SPDX-License-Identifier: BSD-3-Clause
58
- */const ve={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:v},Oe=(t=ve,e,o)=>{const{kind:r,metadata:i}=o;let n=globalThis.litPropertyMetadata.get(i);if(void 0===n&&globalThis.litPropertyMetadata.set(i,n=new Map),n.set(o.name,t),"accessor"===r){const{name:r}=o;return{set(o){const i=e.get.call(this);e.set.call(this,o),this.requestUpdate(r,i,t)},init(e){return void 0!==e&&this.C(r,void 0,t),e}}}if("setter"===r){const{name:r}=o;return function(o){const i=this[r];e.call(this,o),this.requestUpdate(r,i,t)}}throw Error("Unsupported decorator location: "+r)};
59
- /**
132
+ *)
133
+
134
+ @lit/reactive-element/decorators/property.js:
135
+ (**
60
136
  * @license
61
137
  * Copyright 2017 Google LLC
62
138
  * SPDX-License-Identifier: BSD-3-Clause
63
- */function we(t){return(e,o)=>"object"==typeof o?Oe(t,e,o):((t,e,o)=>{const r=e.hasOwnProperty(o);return e.constructor.createProperty(o,r?{...t,wrapped:!0}:t),r?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)
64
- /**
139
+ *)
140
+
141
+ @lit/reactive-element/decorators/state.js:
142
+ (**
65
143
  * @license
66
144
  * Copyright 2017 Google LLC
67
145
  * SPDX-License-Identifier: BSD-3-Clause
68
- */}
69
- /**
146
+ *)
147
+
148
+ @lit/reactive-element/decorators/event-options.js:
149
+ (**
70
150
  * @license
71
151
  * Copyright 2017 Google LLC
72
152
  * SPDX-License-Identifier: BSD-3-Clause
73
- */
74
- const Se=(t,e,o)=>(o.configurable=!0,o.enumerable=!0,o)
75
- /**
153
+ *)
154
+
155
+ @lit/reactive-element/decorators/base.js:
156
+ (**
76
157
  * @license
77
158
  * Copyright 2017 Google LLC
78
159
  * SPDX-License-Identifier: BSD-3-Clause
79
- */;
80
- /**
160
+ *)
161
+
162
+ @lit/reactive-element/decorators/query.js:
163
+ (**
81
164
  * @license
82
165
  * Copyright 2017 Google LLC
83
166
  * SPDX-License-Identifier: BSD-3-Clause
84
- */
85
- let xe;var Ce=Object.freeze({__proto__:null,customElement:t=>(e,o)=>{void 0!==o?o.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)},eventOptions:
86
- /**
167
+ *)
168
+
169
+ @lit/reactive-element/decorators/query-all.js:
170
+ (**
87
171
  * @license
88
172
  * Copyright 2017 Google LLC
89
173
  * SPDX-License-Identifier: BSD-3-Clause
90
- */
91
- function(t){return(e,o)=>{const r="function"==typeof e?e:e[o];Object.assign(r,t)}},property:we,query:function(t,e){return(o,r,i)=>{const n=e=>e.renderRoot?.querySelector(t)??null;if(e){const{get:t,set:e}="object"==typeof r?o:i??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return Se(0,0,{get(){let o=t.call(this);return void 0===o&&(o=n(this),(null!==o||this.hasUpdated)&&e.call(this,o)),o}})}return Se(0,0,{get(){return n(this)}})}},queryAll:function(t){return(e,o)=>Se(0,0,{get(){return(this.renderRoot??(xe??=document.createDocumentFragment())).querySelectorAll(t)}})
92
- /**
174
+ *)
175
+
176
+ @lit/reactive-element/decorators/query-async.js:
177
+ (**
93
178
  * @license
94
179
  * Copyright 2017 Google LLC
95
180
  * SPDX-License-Identifier: BSD-3-Clause
96
- */},queryAssignedElements:
97
- /**
181
+ *)
182
+
183
+ @lit/reactive-element/decorators/query-assigned-elements.js:
184
+ (**
98
185
  * @license
99
186
  * Copyright 2021 Google LLC
100
187
  * SPDX-License-Identifier: BSD-3-Clause
101
- */
102
- function(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=${r}]`:":not([name])");return Se(0,0,{get(){const e=this.renderRoot?.querySelector(n),o=e?.assignedElements(t)??[];return void 0===i?o:o.filter((t=>t.matches(i)))}})}}
103
- /**
188
+ *)
189
+
190
+ @lit/reactive-element/decorators/query-assigned-nodes.js:
191
+ (**
104
192
  * @license
105
193
  * Copyright 2017 Google LLC
106
194
  * SPDX-License-Identifier: BSD-3-Clause
107
- */,queryAssignedNodes:function(t){return(e,o)=>{const{slot:r}=t??{},i="slot"+(r?`[name=${r}]`:":not([name])");return Se(0,0,{get(){const e=this.renderRoot?.querySelector(i);return e?.assignedNodes(t)??[]}})}},queryAsync:function(t){return(e,o)=>Se(0,0,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})},standardProperty:Oe,state:function(t){return we({...t,state:!0,attribute:!1})}});
108
- /**
195
+ *)
196
+
197
+ lit-html/directive.js:
198
+ (**
109
199
  * @license
110
200
  * Copyright 2017 Google LLC
111
201
  * SPDX-License-Identifier: BSD-3-Clause
112
- */const Ne=1,Ee=2,Re=t=>(...e)=>({_$litDirective$:t,values:e});let Ie=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
113
- /**
202
+ *)
203
+
204
+ lit-html/directive-helpers.js:
205
+ (**
114
206
  * @license
115
207
  * Copyright 2020 Google LLC
116
208
  * SPDX-License-Identifier: BSD-3-Clause
117
- */const{D:Le}=rt,Ue=()=>document.createComment(""),ke=(t,e,o)=>{const r=t._$AA.parentNode,i=void 0===e?t._$AB:e._$AA;if(void 0===o){const e=r.insertBefore(Ue(),i),n=r.insertBefore(Ue(),i);o=new Le(e,n,t,t.options)}else{const e=o._$AB.nextSibling,n=o._$AM,a=n!==t;if(a){let e;o._$AQ?.(t),o._$AM=t,void 0!==o._$AP&&(e=t._$AU)!==n._$AU&&o._$AP(e)}if(e!==i||a){let t=o._$AA;for(;t!==e;){const e=t.nextSibling;r.insertBefore(t,i),t=e}}}return o},We=(t,e,o=t)=>(t._$AI(e,o),t),Ae={},Be=t=>{t._$AP?.(!1,!0);let e=t._$AA;const o=t._$AB.nextSibling;for(;e!==o;){const t=e.nextSibling;e.remove(),e=t}},Pe=(t,e,o)=>{const r=new Map;for(let i=e;i<=o;i++)r.set(t[i],i);return r},Fe=Re(class extends Ie{constructor(t){if(super(t),t.type!==Ee)throw Error("repeat() can only be used in text expressions")}ht(t,e,o){let r;void 0===o?o=e:void 0!==e&&(r=e);const i=[],n=[];let a=0;for(const e of t)i[a]=r?r(e,a):a,n[a]=o(e,a),a++;return{values:n,keys:i}}render(t,e,o){return this.ht(t,e,o).values}update(t,[e,o,r]){const i=(t=>t._$AH)(t),{values:n,keys:a}=this.ht(e,o,r);if(!Array.isArray(i))return this.dt=a,n;const s=this.dt??=[],c=[];let l,f,u=0,h=i.length-1,d=0,p=n.length-1;for(;u<=h&&d<=p;)if(null===i[u])u++;else if(null===i[h])h--;else if(s[u]===a[d])c[d]=We(i[u],n[d]),u++,d++;else if(s[h]===a[p])c[p]=We(i[h],n[p]),h--,p--;else if(s[u]===a[p])c[p]=We(i[u],n[p]),ke(t,c[p+1],i[u]),u++,p--;else if(s[h]===a[d])c[d]=We(i[h],n[d]),ke(t,i[u],i[h]),h--,d++;else if(void 0===l&&(l=Pe(a,d,p),f=Pe(s,u,h)),l.has(s[u]))if(l.has(s[h])){const e=f.get(a[d]),o=void 0!==e?i[e]:null;if(null===o){const e=ke(t,i[u]);We(e,n[d]),c[d]=e}else c[d]=We(o,n[d]),ke(t,i[u],o),i[e]=null;d++}else Be(i[h]),h--;else Be(i[u]),u++;for(;d<=p;){const e=ke(t,c[p+1]);We(e,n[d]),c[d++]=e}for(;u<=h;){const t=i[u++];null!==t&&Be(t)}return this.dt=a,((t,e=Ae)=>{t._$AH=e})(t,c),K}});
118
- /**
209
+ *)
210
+
211
+ lit-html/directives/repeat.js:
212
+ (**
119
213
  * @license
120
214
  * Copyright 2017 Google LLC
121
215
  * SPDX-License-Identifier: BSD-3-Clause
122
- */var _e=Object.freeze({__proto__:null,repeat:Fe});
123
- /**
216
+ *)
217
+
218
+ lit-html/directives/class-map.js:
219
+ (**
124
220
  * @license
125
221
  * Copyright 2018 Google LLC
126
222
  * SPDX-License-Identifier: BSD-3-Clause
127
- */const Te=Re(class extends Ie{constructor(t){if(super(t),t.type!==Ne||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(e)}const o=t.element.classList;for(const t of this.it)t in e||(o.remove(t),this.it.delete(t));for(const t in e){const r=!!e[t];r===this.it.has(t)||this.st?.has(t)||(r?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return K}});var De=Object.freeze({__proto__:null,classMap:Te});
128
- /**
223
+ *)
224
+
225
+ lit-html/directives/style-map.js:
226
+ (**
129
227
  * @license
130
228
  * Copyright 2018 Google LLC
131
229
  * SPDX-License-Identifier: BSD-3-Clause
132
- */const Me="important",ze=" !"+Me,Ke=Re(class extends Ie{constructor(t){if(super(t),t.type!==Ne||"style"!==t.name||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,o)=>{const r=t[o];return null==r?e:e+`${o=o.includes("-")?o:o.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`}),"")}update(t,[e]){const{style:o}=t.element;if(void 0===this.ut)return this.ut=new Set(Object.keys(e)),this.render(e);for(const t of this.ut)null==e[t]&&(this.ut.delete(t),t.includes("-")?o.removeProperty(t):o[t]=null);for(const t in e){const r=e[t];if(null!=r){this.ut.add(t);const e="string"==typeof r&&r.endsWith(ze);t.includes("-")||e?o.setProperty(t,e?r.slice(0,-11):r,e?Me:""):o[t]=r}}return K}});var je=Object.freeze({__proto__:null,styleMap:Ke});
133
- /**
230
+ *)
231
+
232
+ lit-html/directives/unsafe-html.js:
233
+ (**
134
234
  * @license
135
235
  * Copyright 2017 Google LLC
136
236
  * SPDX-License-Identifier: BSD-3-Clause
137
- */let He=class extends Ie{constructor(t){if(super(t),this.et=j,t.type!==Ee)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===j||null==t)return this.vt=void 0,this.et=t;if(t===K)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}};He.directiveName="unsafeHTML",He.resultType=1;const Ze=Re(He);var $e=Object.freeze({__proto__:null,UnsafeHTMLDirective:He,unsafeHTML:Ze});class Ge extends Error{constructor(t,e,o){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=o}}class Ve extends Promise{constructor(t){super(((e,o)=>t((t=>{this.isCanceled?o(new Ge("Promise has been canceled",t)):e(t)}),(t=>{this.isCanceled?o(new Ge("Promise has been canceled",void 0,t)):o(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}const qe=t=>new Ve(((e,o)=>t.then(e).catch(o)));var Ye=Object.freeze({__proto__:null,CancelablePromise:Ve,CanceledPromiseError:Ge,cancelable:qe});class Je{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 Ve&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,o){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const r=qe(e());return this.content[t]=r,r.then((e=>(this.content[t]=e,null!=o&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),o)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}var Xe=Object.freeze({__proto__:null,CacheRegistry:Je});class Qe{constructor(t,e,o,r){this.allResults=t,this.selectedResult=e,this.clusteringMetadata=o,this.metadataDescriptors=r}static extractResultMetadata(t,e){var o,r;let i=(null!==(r=null!==(o=null==t?void 0:t.map)&&void 0!==o?o:null==t?void 0:t.document)&&void 0!==r?r:null==t?void 0:t.topic).metadata.map((t=>Qe.flattenMetadata(t)));return null==e?i:i.find((t=>t.key===e))}static flattenMetadata(t){if(t.hierarchicalValues){const e=[],o=[];return t.hierarchicalValues.forEach((t=>{e.push(t.join(" > ")),t.length>2?o.push(`... > ${t[t.length-1]}`):o.push(t.join(" > "))})),{key:t.key,label:t.label,value:e.join(", "),displayValue:o.join(", ")}}{const e=t.values.join(", ");return{key:t.key,label:t.label,value:e,displayValue:e}}}computeClustersItemsForMetadata(t,e,o="No value"){var r,i;let n=Qe.extractResultMetadata(this.selectedResult,t),a=null!==(r=null==n?void 0:n.label)&&void 0!==r?r:null===(i=this.getMetadataDescriptor(t))||void 0===i?void 0:i.label;const s=this.allResults.map((e=>Qe.extractResultMetadata(e,t))).map((e=>null!=e?e:{key:t,label:a,value:void 0,displayValue:o})).filter((t=>t.value!=(null==n?void 0:n.value))).filter(((t,e,o)=>o.findIndex((e=>e.value===t.value))===e));return s.map((e=>({result:this.findBestResultForMetadataValue(t,e.value),metadata:e}))).sort(((o,r)=>this.compareMetadata(o.metadata.value,r.metadata.value,t,e)))}compareMetadata(t,e,o,r){if(null==t)return-1;if(null==e)return 1;let i=this.getMetadataDescriptor(o),n=(null==i?void 0:i.sortRule)||"NONE",a=(null==i?void 0:i.reverseSort)||!1;if("ALPHABET"==n||"VERSION"==n){let o=t.localeCompare(e,r,{numeric:!0});return a?-1*o:o}return 0}getMetadataDescriptor(t){return this.metadataDescriptors.find((e=>t==e.key))}findBestResultForMetadataValue(t,e){const o=this.allResults.filter((o=>{var r;return(null===(r=Qe.extractResultMetadata(o,t))||void 0===r?void 0:r.value)==e}));let r,i=Qe.extractResultMetadata(this.selectedResult).filter((t=>this.clusteringMetadata.has(t.key))),n=[...i.filter((e=>e.key!==t))],a=-1;for(let t of o){let e=this.countMatchingMetadata(t,n);if(e>a&&(a=e,r=t,e===n.length))break}return r}countMatchingMetadata(t,e){return Qe.extractResultMetadata(t).filter((t=>e.some((e=>e.key===t.key&&e.value===t.value)))).length}}var to=Object.freeze({__proto__:null,ClusteringHelper:Qe});class eo{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const o=[...this.callbacks];this.callbacks=[];const r=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,i=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of o)try{await t()}catch(t){return void r(t)}i(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}var oo=Object.freeze({__proto__:null,Debouncer:eo});const ro=t=>new Promise((e=>setTimeout(e,t)));async function io(t,e=10,o=2e4){let r,i,n=await t();for(r=i=performance.now();null==n&&(!o||i-r<o);)await ro(e),n=await t(),i=performance.now();if(null==n)throw new Error("Timeout exceeded");return n}function no(t){return t.match(/^\d{4}-\d{2}-\d{2}$/)&&(t=t.replace(/-/g,"/")),t=t.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,((t,e,o,r)=>e+o+":"+r)),new Date(t)}function ao(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var o,r,i;if(Array.isArray(t)){if((o=t.length)!=e.length)return!1;for(r=o;0!=r--;)if(!ao(t[r],e[r]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;for(r of t.entries())if(!ao(r[1],e.get(r[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((o=(i=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(r=o;0!=r--;)if(!Object.prototype.hasOwnProperty.call(e,i[r]))return!1;for(r=o;0!=r--;){var n=i[r];if(!ao(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}var so=Object.freeze({__proto__:null,dateReviver:function(...t){return function(e,o){return t.includes(e)?no(o):o}},deepEqual:ao,delay:ro,eventPathContainsMatchingElement:function(t,e,o=window.document.body){if(e.length>0){const r=t.composedPath();for(let t of r){if(t===o)return!1;if(t.matches&&e.some((e=>t.matches(e))))return!0}}return!1},flatDeep:function t(e,o){return e.flatMap((e=>[e,...t(o(e),o)]))},last:function(t){return t[t.length-1]},minmax:function(t,e,o){return Math.min(Math.max(t,e),o)},parseDate:no,waitFor:io,waitUntil:async function(t,e=10,o=2e4){await io((async()=>await t()||void 0),e,o)}});const co=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function lo(t,e){const o=()=>JSON.parse(JSON.stringify(t));return we({type:Object,converter:{fromAttribute:t=>{if(null==t)return o();try{return JSON.parse(t)}catch{return o()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!ao(t,e),...null!=e?e:{}})}function fo(t){return!isNaN(parseFloat(t))}var uo=Object.freeze({__proto__:null,customElement:co,isNumber:fo,jsonProperty:lo,optionalNumberProperty:function(t){return we({type:Object,converter:{fromAttribute:t=>{if(null!=t)return fo(t)?+t:void 0},toAttribute:t=>null==t?void 0:""+t},...null!=t?t:{}})}});const ho=t=>"string"==typeof t?ft(t):t;class po{static create(t,e,o,r){const i=t=>ho(null!=t?t:r),n=ut`var(${ho(t)}, ${i(r)})`;return n.name=t,n.description=e,n.category=o,n.defaultValue=r,n.defaultCssValue=i,n.get=e=>ut`var(${ho(t)}, ${i(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>r,n}static extend(t,e,o,r){const i=t=>o.get(null!=t?t:r),n=ut`var(${ho(t)}, ${i(r)})`;return n.name=t,n.description=e,n.category=o.category,n.fallbackVariable=o,n.defaultValue=r,n.defaultCssValue=i,n.get=e=>ut`var(${ho(t)}, ${i(e)})`,n.breadcrumb=()=>[o.name,...o.breadcrumb()],n.lastResortDefaultValue=()=>null!=r?r:o.lastResortDefaultValue(),n}static external(t,e){const o=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):ho(null!=e?e:t.lastResortDefaultValue()),r=ut`var(${ho(t.name)}, ${o(t.defaultValue)})`;return r.name=t.name,r.category=t.category,r.fallbackVariable=t.fallbackVariable,r.defaultValue=t.defaultValue,r.context=e,r.defaultCssValue=o,r.get=e=>ut`var(${ho(t.name)}, ${o(e)})`,r.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],r.lastResortDefaultValue=()=>t.lastResortDefaultValue(),r}}const go={colorWhite:po.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:po.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:po.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:po.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:po.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:po.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:po.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:po.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:po.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:po.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:po.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:po.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:po.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:po.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:po.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:po.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:po.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:po.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:po.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:po.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:po.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:po.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:po.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:po.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:po.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:po.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:po.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:po.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:po.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:po.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:po.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:po.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:po.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:po.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:po.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:po.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:po.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:po.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:po.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:po.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:po.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:po.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:po.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:po.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:po.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:po.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:po.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:po.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:po.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:po.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:po.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:po.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:po.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:po.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:po.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:po.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:po.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:po.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:po.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:po.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:po.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:po.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:po.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:po.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:po.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:po.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:po.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:po.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:po.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:po.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:po.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:po.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:po.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:po.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:po.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:po.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:po.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:po.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:po.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:po.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:po.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:po.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:po.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:po.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:po.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:po.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:po.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:po.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:po.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:po.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:po.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:po.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:po.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:po.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:po.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:po.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:po.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:po.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:po.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:po.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:po.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:po.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:po.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:po.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:po.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:po.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:po.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:po.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:po.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:po.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:po.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:po.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:po.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:po.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:po.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:po.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:po.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:po.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:po.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:po.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:po.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:po.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:po.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:po.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:po.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:po.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:po.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:po.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:po.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:po.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:po.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:po.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:po.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:po.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:po.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:po.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:po.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:po.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:po.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:po.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:po.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:po.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:po.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:po.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:po.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:po.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:po.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:po.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:po.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:po.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:po.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:po.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:po.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:po.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:po.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:po.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:po.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:po.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:po.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:po.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:po.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:po.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:po.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:po.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:po.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:po.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:po.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:po.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:po.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:po.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:po.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:po.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:po.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:po.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:po.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:po.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:po.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:po.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:po.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:po.create("--ft-icon-size-6","","SIZE","48px"),opacity0:po.create("--ft-opacity-0","","NUMBER","0"),opacity8:po.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:po.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:po.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:po.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:po.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:po.create("--ft-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:po.create("--ft-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:po.create("--ft-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:po.create("--ft-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:po.create("--ft-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:po.create("--ft-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:po.create("--ft-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:po.create("--ft-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:po.create("--ft-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},yo={fontFamily:po.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:po.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:po.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:po.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:po.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:po.create("--ft-typography-display-textCase","","UNKNOWN","none")},bo={fontFamily:po.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:po.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:po.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:po.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:po.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:po.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},mo={fontFamily:po.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:po.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:po.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:po.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:po.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:po.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},vo={fontFamily:po.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:po.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:po.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:po.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:po.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:po.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},Oo={fontFamily:po.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:po.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:po.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:po.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:po.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:po.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},wo={fontFamily:po.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:po.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:po.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:po.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:po.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:po.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},So={fontFamily:po.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:po.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:po.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:po.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:po.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:po.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},xo={fontFamily:po.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:po.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:po.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:po.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:po.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:po.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},Co={fontFamily:po.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:po.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:po.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:po.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:po.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:po.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},No={fontFamily:po.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:po.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:po.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:po.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:po.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:po.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:po.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},Eo={fontFamily:po.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:po.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:po.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:po.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:po.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:po.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},Ro={fontFamily:po.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:po.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:po.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:po.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:po.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:po.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},Io={fontFamily:po.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:po.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:po.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:po.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:po.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:po.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},Lo={fontFamily:po.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:po.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:po.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:po.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:po.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:po.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},Uo={fontFamily:po.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:po.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:po.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:po.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:po.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:po.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},ko={fontFamily:po.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:po.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:po.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:po.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:po.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:po.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},Wo={fontFamily:po.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:po.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:po.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:po.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:po.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:po.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},Ao={fontFamily:po.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:po.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:po.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:po.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:po.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:po.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},Bo={fontFamily:po.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:po.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:po.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:po.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:po.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:po.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},Po={fontFamily:po.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:po.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:po.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:po.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:po.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:po.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},Fo={fontFamily:po.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:po.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:po.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:po.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:po.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:po.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},_o={fontFamily:po.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:po.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:po.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:po.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:po.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:po.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},To={fontFamily:po.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:po.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:po.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:po.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:po.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:po.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},Do={fontFamily:po.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:po.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:po.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:po.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:po.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:po.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},Mo={fontFamily:po.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:po.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:po.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:po.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:po.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:po.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},zo={fontFamily:po.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:po.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:po.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:po.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:po.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:po.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},Ko={display:yo,"title-1":bo,"title-2":mo,"title-3":vo,"body-1-regular":Oo,"body-1-medium":wo,"body-1-semibold":So,"body-2-regular":xo,"body-2-medium":Co,"body-2-medium-underline":No,"body-2-semibold":Eo,"label-1-medium":Ro,"label-1-semibold":Io,"label-1-bold":Lo,"label-2-medium":Uo,"label-2-semibold":ko,"label-2-bold":Wo,"caption-1-medium":Ao,"caption-1-semibold":Bo,"caption-1-bold":Po,"caption-2-medium":Fo,"caption-2-semibold":_o,"caption-2-bold":To,"caption-3-medium":Do,"caption-3-semibold":Mo,"caption-3-bold":zo},jo={backgroundActionPrimary:po.extend("--ft-background-action-primary","Used as backgorund of primary action components.",go.colorBrand0),backgroundErrorSubtle:po.extend("--ft-background-error-subtle","Used as background of subtle error components.",go.colorRed10),backgroundInfoSubtle:po.extend("--ft-background-info-subtle","Used as background of subtle information components.",go.colorCyan10),backgroundWarningSubtle:po.extend("--ft-background-warning-subtle","Used as background of subtle information components.",go.colorOrange10),backgroundSuccessSubtle:po.extend("--ft-background-success-subtle","Used as background of subtle success components.",go.colorGreen10),backgroundGlobalSurface:po.extend("--ft-background-global-surface","Used as app background.",go.colorWhite),backgroundGlobalOnSurface:po.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",go.colorGray10),backgroundGlobalOnSurfaceDark:po.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",go.colorGray30),contentActionPrimary:po.extend("--ft-content-action-primary","Used on label of primary action on light surface.",go.colorBrand0),contentWarningPrimary:po.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",go.colorOrange200),contentWarningIconOnly:po.extend("--ft-content-warning-icon-only","Used on warning status icons alone",go.colorOrange0),contentErrorPrimary:po.extend("--ft-content-error-primary","Used on label of error messages on light surface.",go.colorRed0),contentErrorIconOnly:po.extend("--ft-content-error-icon-only","Used on error status icons alone",go.colorRed70),contentInfoPrimary:po.extend("--ft-content-info-primary","Used on label of information messages on light surface.",go.colorCyan200),contentInfoIconOnly:po.extend("--ft-content-info-icon-only","Used on info status icons alone",go.colorCyan0),contentSuccessPrimary:po.extend("--ft-content-success-primary","Used on label of success messages on light surface.",go.colorGreen200),contentSuccessIconOnly:po.extend("--ft-content-success-icon-only","Used on success status icons alone",go.colorGreen0),contentGlobalPrimary:po.extend("--ft-content-global-primary","Used for main content on the page.",go.colorGray500),contentGlobalSecondary:po.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",go.colorGray200),contentGlobalSubtle:po.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",go.colorGray0),contentGlobalOnColor:po.extend("--ft-content-global-on-color","Used for content on a dominant color.",go.colorWhite),borderActionPrimary:po.extend("--ft-border-action-primary","Used as border for primary action components.",go.colorBrand0),borderActionFocusRing:po.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",go.colorCyan0),borderWarningPrimary:po.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",go.colorOrange200),borderWarningSubtle:po.extend("--ft-border-warning-subtle","Used as border for warning components.",go.colorOrange30),borderSuccessPrimary:po.extend("--ft-border-success-primary","Used as border for success buttons.",go.colorGreen200),borderSuccessSubtle:po.extend("--ft-border-success-subtle","Used as border for success components.",go.colorGreen30),borderErrorPrimary:po.extend("--ft-border-error-primary","Used as border for text fields in error states.",go.colorRed0),borderErrorSubtle:po.extend("--ft-border-error-subtle","Used as border for error components.",go.colorRed30),borderInfoPrimary:po.extend("--ft-border-info-primary","Used as border for buttons in info color.",go.colorCyan200),borderInfoSubtle:po.extend("--ft-border-info-subtle","Used as border for information components.",go.colorCyan30),borderGlobalPrimary:po.extend("--ft-border-global-primary","Used as border for element like input.",go.colorGray50),borderGlobalSubtle:po.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",go.colorGray30),borderInputPrimary:po.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",go.colorGray80)},Ho={largeHeight:po.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:po.extend("--ft-button-large-horizontal-padding","",go.spacing4),largeGap:po.extend("--ft-button-large-gap","",go.spacing2),largeBorderRadius:po.extend("--ft-button-large-border-radius","",go.borderRadiusS),largeIconSize:po.extend("--ft-button-large-icon-size","",go.iconSize3),largeBorderWidth:po.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:po.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:po.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:po.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:po.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:po.extend("--ft-button-small-horizontal-padding","",go.spacing3),smallGap:po.extend("--ft-button-small-gap","",go.spacing2),smallBorderRadius:po.extend("--ft-button-small-border-radius","",go.borderRadiusS),smallIconSize:po.extend("--ft-button-small-icon-size","",go.iconSize2),smallBorderWidth:po.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:po.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:po.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:po.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:po.extend("--ft-button-primary-background-color","",jo.backgroundActionPrimary),primaryColor:po.extend("--ft-button-primary-color","",jo.contentGlobalOnColor),primaryIconColor:po.extend("--ft-button-primary-icon-color","",jo.contentGlobalOnColor),primaryStateLayerColor:po.extend("--ft-button-primary-state-layer-color","",jo.contentGlobalOnColor),primaryHoverStateLayerOpacity:po.extend("--ft-button-primary-hover-state-layer-opacity","",go.opacity16),primaryFocusStateLayerOpacity:po.extend("--ft-button-primary-focus-state-layer-opacity","",go.opacity16),primaryActiveStateLayerOpacity:po.extend("--ft-button-primary-active-state-layer-opacity","",go.opacity24),primaryDisabledComponentOpacity:po.extend("--ft-button-primary-disabled-component-opacity","",go.opacity40),focusFocusRingColor:po.extend("--ft-button-focus-focus-ring-color","",jo.borderActionFocusRing),tertiaryBackgroundColor:po.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:po.extend("--ft-button-tertiary-color","",jo.contentActionPrimary),tertiaryIconColor:po.extend("--ft-button-tertiary-icon-color","",jo.contentActionPrimary),tertiaryStateLayerColor:po.extend("--ft-button-tertiary-state-layer-color","",jo.contentActionPrimary),tertiaryHoverStateLayerOpacity:po.extend("--ft-button-tertiary-hover-state-layer-opacity","",go.opacity8),tertiaryFocusStateLayerOpacity:po.extend("--ft-button-tertiary-focus-state-layer-opacity","",go.opacity8),tertiaryActiveStateLayerOpacity:po.extend("--ft-button-tertiary-active-state-layer-opacity","",go.opacity16),tertiaryDisabledComponentOpacity:po.extend("--ft-button-tertiary-disabled-component-opacity","",go.opacity40),secondaryBackgroundColor:po.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:po.extend("--ft-button-secondary-color","",jo.contentActionPrimary),secondaryIconColor:po.extend("--ft-button-secondary-icon-color","",jo.contentActionPrimary),secondaryStateLayerColor:po.extend("--ft-button-secondary-state-layer-color","",jo.contentActionPrimary),secondaryHoverStateLayerOpacity:po.extend("--ft-button-secondary-hover-state-layer-opacity","",go.opacity8),secondaryFocusStateLayerOpacity:po.extend("--ft-button-secondary-focus-state-layer-opacity","",go.opacity8),secondaryActiveStateLayerOpacity:po.extend("--ft-button-secondary-active-state-layer-opacity","",go.opacity16),secondaryDisabledComponentOpacity:po.extend("--ft-button-secondary-disabled-component-opacity","",go.opacity40),secondaryBorderColor:po.extend("--ft-button-secondary-border-color","",jo.borderActionPrimary),neutralBackgroundColor:po.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:po.extend("--ft-button-neutral-icon-color","",jo.contentGlobalSecondary),neutralColor:po.extend("--ft-button-neutral-color","",jo.contentGlobalSecondary),neutralStateLayerColor:po.extend("--ft-button-neutral-state-layer-color","",jo.contentGlobalSecondary),neutralHoverStateLayerOpacity:po.extend("--ft-button-neutral-hover-state-layer-opacity","",go.opacity8),neutralFocusStateLayerOpacity:po.extend("--ft-button-neutral-focus-state-layer-opacity","",go.opacity8),neutralActiveStateLayerOpacity:po.extend("--ft-button-neutral-active-state-layer-opacity","",go.opacity16),neutralDisabledComponentOpacity:po.extend("--ft-button-neutral-disabled-component-opacity","",go.opacity40)},Zo={iconSize:po.extend("--ft-banner-icon-size","",go.iconSize5),borderWidth:po.create("--ft-banner-border-width","","SIZE","1px"),horizontalPadding:po.extend("--ft-banner-horizontal-padding","",go.spacing6),verticalPadding:po.extend("--ft-banner-vertical-padding","",go.spacing6),horizontalSideGap:po.extend("--ft-banner-horizontal-side-gap","",go.spacing6),horizontalMobileGap:po.extend("--ft-banner-horizontal-mobile-gap","",go.spacing4),verticalMobileGap:po.extend("--ft-banner-vertical-mobile-gap","",go.spacing6),horizontalMiddleGap:po.extend("--ft-banner-horizontal-middle-gap","",go.spacing20),infoBackgroundColor:po.extend("--ft-banner-info-background-color","",jo.backgroundInfoSubtle),infoColor:po.extend("--ft-banner-info-color","",jo.contentInfoPrimary),infoIconColor:po.extend("--ft-banner-info-icon-color","",jo.contentInfoIconOnly)},$o={horizontalGap:po.extend("--ft-breadcrumb-horizontal-gap","",go.spacing1),verticalGap:po.extend("--ft-breadcrumb-vertical-gap","",go.spacing2),currentElementColor:po.extend("--ft-breadcrumb-current-element-color","",jo.contentGlobalPrimary),iconColor:po.extend("--ft-breadcrumb-icon-color","",jo.contentGlobalSubtle)},Go={horizontalPadding:po.extend("--ft-page-header-horizontal-padding","",go.spacing12),horizontalGap:po.extend("--ft-page-header-horizontal-gap","",go.spacing4),verticalGap:po.extend("--ft-page-header-vertical-gap","",go.spacing2),classicVerticalPadding:po.extend("--ft-page-header-classic-vertical-padding","",go.spacing6),multilineVerticalPadding:po.extend("--ft-page-header-multiline-vertical-padding","",go.spacing4),inlineVerticalPadding:po.extend("--ft-page-header-inline-vertical-padding","",go.spacing2),backgroundColor:po.extend("--ft-page-header-background-color","",go.colorWhite),bottomBorderColor:po.extend("--ft-page-header-bottom-border-color","",jo.borderGlobalSubtle),titleColor:po.extend("--ft-page-header-title-color","",jo.contentGlobalPrimary),subtitleColor:po.extend("--ft-page-header-subtitle-color","",jo.contentGlobalSecondary)},Vo={smallContainerWidth:po.create("--ft-modal-small-container-width","","SIZE","600px"),largeContainerWidth:po.create("--ft-modal-large-container-width","","SIZE","900px"),overlayBackgroundColor:po.extend("--ft-modal-overlay-background-color","",go.colorGray700),overlayOpacity:po.extend("--ft-modal-overlay-opacity","",go.opacity40),shadow:po.extend("--ft-modal-shadow","",go.shadowElevation03),bodyBackgroundColor:po.extend("--ft-modal-body-background-color","",go.colorWhite),bodyColor:po.extend("--ft-modal-body-color","",jo.contentGlobalPrimary),bodyHorizontalPadding:po.extend("--ft-modal-body-horizontal-padding","",go.spacing6),bodyVerticalPadding:po.extend("--ft-modal-body-vertical-padding","",go.spacing6),bodyVerticalGap:po.extend("--ft-modal-body-vertical-gap","",go.spacing6),containerMargin:po.extend("--ft-modal-container-margin","",go.spacing3),headerBackgroundColor:po.extend("--ft-modal-header-background-color","",jo.backgroundGlobalOnSurface),headerBorderColor:po.extend("--ft-modal-header-border-color","",jo.borderGlobalSubtle),headerColor:po.extend("--ft-modal-header-color","",jo.contentGlobalPrimary),headerTrailingIconColor:po.extend("--ft-modal-header-trailing-icon-color","",jo.contentGlobalSecondary),headerVerticalPadding:po.extend("--ft-modal-header-vertical-padding","",go.spacing1),headerRightPadding:po.extend("--ft-modal-header-right-padding","",go.spacing1),headerLeftPadding:po.extend("--ft-modal-header-left-padding","",go.spacing6),headerGap:po.extend("--ft-modal-header-gap","",go.spacing2),headerBorderBottom:po.create("--ft-modal-header-border-bottom","","SIZE","1px"),borderRadius:po.extend("--ft-modal-border-radius","",go.borderRadiusM)},qo={overlayOpacity:po.extend("--ft-drawer-overlay-opacity","",go.opacity40),shadow:po.extend("--ft-drawer-shadow","",go.shadowElevation03),bodyColor:po.extend("--ft-drawer-body-color","",jo.contentGlobalPrimary),bodyHorizontalPadding:po.extend("--ft-drawer-body-horizontal-padding","",go.spacing6),bodyVerticalPadding:po.extend("--ft-drawer-body-vertical-padding","",go.spacing6),bodyGap:po.extend("--ft-drawer-body-gap","",go.spacing6),bodyBackgroundColor:po.extend("--ft-drawer-body-background-color","",go.colorWhite),headerBackgroundColor:po.extend("--ft-drawer-header-background-color","",jo.backgroundGlobalOnSurface),headerBorderColor:po.extend("--ft-drawer-header-border-color","",jo.borderGlobalSubtle),headerColor:po.extend("--ft-drawer-header-color","",jo.contentGlobalPrimary),headerTrailingIconColor:po.extend("--ft-drawer-header-trailing-icon-color","",jo.contentGlobalSecondary),headerHeight:po.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:po.extend("--ft-drawer-header-horizontal-padding","",go.spacing2),headerBorderWidth:po.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:po.extend("--ft-drawer-header-gap","",go.spacing3),buttonsBarBackgroundColor:po.extend("--ft-drawer-buttons-bar-background-color","",jo.backgroundGlobalOnSurface),buttonsBarBorderColor:po.extend("--ft-drawer-buttons-bar-border-color","",jo.borderGlobalSubtle),buttonsBarColor:po.extend("--ft-drawer-buttons-bar-color","",jo.contentGlobalPrimary),buttonsBarHorizontalPadding:po.extend("--ft-drawer-buttons-bar-horizontal-padding","",go.spacing4),buttonsBarVerticalPadding:po.extend("--ft-drawer-buttons-bar-vertical-padding","",go.spacing4),buttonsBarGap:po.extend("--ft-drawer-buttons-bar-gap","",go.spacing3),buttonsBarBorderWidth:po.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:po.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:po.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:po.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:po.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:po.extend("--ft-drawer-overlay-background-color","",go.colorGray700)},Yo={fieldHorizontalPadding:po.extend("--ft-text-input-field-horizontal-padding","",go.spacing4),fieldHorizontalGap:po.extend("--ft-text-input-field-horizontal-gap","",go.spacing3),fieldVerticalGap:po.extend("--ft-text-input-field-vertical-gap","",go.spacing05),fieldIconSize:po.extend("--ft-text-input-field-icon-size","",go.iconSize3),fieldHeight:po.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:po.extend("--ft-text-input-helper-horizontal-padding","",go.spacing4),helperHorizontalGap:po.extend("--ft-text-input-helper-horizontal-gap","",go.spacing1),helperIconSize:po.extend("--ft-text-input-helper-icon-size","",go.iconSize2),borderRadius:po.extend("--ft-text-input-border-radius","",go.borderRadiusM),backgroundColor:po.extend("--ft-text-input-background-color","",go.colorWhite),contentValueColor:po.extend("--ft-text-input-content-value-color","",jo.contentGlobalPrimary),trailingIconColor:po.extend("--ft-text-input-trailing-icon-color","",jo.contentGlobalSubtle),labelColor:po.extend("--ft-text-input-label-color","",jo.contentGlobalSubtle),defaultBorderColor:po.extend("--ft-text-input-default-border-color","",jo.borderInputPrimary),defaultHelperTextColor:po.extend("--ft-text-input-default-helper-text-color","",jo.contentGlobalSubtle),defaultBorderWidth:po.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:po.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:po.extend("--ft-text-input-error-border-color","",jo.borderErrorPrimary),errorHelperTextColor:po.extend("--ft-text-input-error-helper-text-color","",jo.contentErrorPrimary),errorHelperIconColor:po.extend("--ft-text-input-error-helper-icon-color","",jo.contentErrorIconOnly),warningBorderWidth:po.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:po.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:po.extend("--ft-text-input-focus-focus-ring-color","",jo.borderActionFocusRing),focusOutlineOffset:po.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:po.extend("--ft-text-input-disabled-component-opacity","",go.opacity40)},Jo={backgroundColor:po.extend("--ft-text-area-background-color","",go.colorWhite),contentValueColor:po.extend("--ft-text-area-content-value-color","",jo.contentGlobalPrimary),labelColor:po.extend("--ft-text-area-label-color","",jo.contentGlobalSubtle),defaultBorderColor:po.extend("--ft-text-area-default-border-color","",jo.borderInputPrimary),defaultHelperTextColor:po.extend("--ft-text-area-default-helper-text-color","",jo.contentGlobalSubtle),defaultBorderWidth:po.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:po.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:po.extend("--ft-text-area-error-border-color","",jo.borderErrorPrimary),errorHelperTextColor:po.extend("--ft-text-area-error-helper-text-color","",jo.contentErrorPrimary),errorHelperIconColor:po.extend("--ft-text-area-error-helper-icon-color","",jo.contentErrorIconOnly),focusFocusRingColor:po.extend("--ft-text-area-focus-focus-ring-color","",jo.borderActionFocusRing),focusOutlineWidth:po.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:po.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:po.extend("--ft-text-area-disabled-component-opacity","",go.opacity40),fieldHorizontalLeftPadding:po.extend("--ft-text-area-field-horizontal-left-padding","",go.spacing4),fieldHorizontalGap:po.extend("--ft-text-area-field-horizontal-gap","",go.spacing3),fieldVerticalGap:po.extend("--ft-text-area-field-vertical-gap","",go.spacing05),fieldMinHeight:po.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:po.extend("--ft-text-area-helper-horizontal-padding","",go.spacing4),helperHorizontalGap:po.extend("--ft-text-area-helper-horizontal-gap","",go.spacing1),helperIconSize:po.extend("--ft-text-area-helper-icon-size","",go.iconSize2),borderRadius:po.extend("--ft-text-area-border-radius","",go.borderRadiusM)},Xo={height:po.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:po.extend("--ft-floating-menu-horizontal-padding","",go.spacing4),offIconColor:po.extend("--ft-floating-menu-off-icon-color","",jo.contentGlobalPrimary),offColor:po.extend("--ft-floating-menu-off-color","",jo.contentGlobalPrimary),onColor:po.extend("--ft-floating-menu-on-color","",jo.contentActionPrimary),onStateLayerColor:po.extend("--ft-floating-menu-on-state-layer-color","",jo.contentActionPrimary),gap:po.extend("--ft-floating-menu-gap","",go.spacing3),focusFocusRingColor:po.extend("--ft-floating-menu-focus-focus-ring-color","",jo.borderActionFocusRing),focusOutlineWidth:po.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:po.extend("--ft-floating-menu-focus-state-layer-opacity","",go.opacity8),hoverStateLayerOpacity:po.extend("--ft-floating-menu-hover-state-layer-opacity","",go.opacity8),activeStateLayerOpacity:po.extend("--ft-floating-menu-active-state-layer-opacity","",go.opacity16),disabledComponentOpacity:po.extend("--ft-floating-menu-disabled-component-opacity","",go.opacity40),iconSize:po.extend("--ft-floating-menu-icon-size","",go.iconSize3),backgroundColor:po.extend("--ft-floating-menu-background-color","",jo.backgroundGlobalOnSurface)},Qo={fieldHorizontalPadding:po.extend("--ft-combobox-single-select-field-horizontal-padding","",go.spacing4),fieldHorizontalGap:po.extend("--ft-combobox-single-select-field-horizontal-gap","",go.spacing3),fieldVerticalGap:po.extend("--ft-combobox-single-select-field-vertical-gap","",go.spacing05),fieldIconSize:po.extend("--ft-combobox-single-select-field-icon-size","",go.iconSize3),fieldHeight:po.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:po.extend("--ft-combobox-single-select-helper-horizontal-padding","",go.spacing4),helperHorizontalGap:po.extend("--ft-combobox-single-select-helper-horizontal-gap","",go.spacing1),helperVerticalGap:po.extend("--ft-combobox-single-select-helper-vertical-gap","",go.spacing1),helperIconSize:po.extend("--ft-combobox-single-select-helper-icon-size","",go.iconSize2),menuVerticalGap:po.extend("--ft-combobox-single-select-menu-vertical-gap","",go.spacing2),borderRadius:po.extend("--ft-combobox-single-select-border-radius","",go.borderRadiusM),backgroundColor:po.extend("--ft-combobox-single-select-background-color","",go.colorWhite),labelColor:po.extend("--ft-combobox-single-select-label-color","",jo.contentGlobalSubtle),contentValueColor:po.extend("--ft-combobox-single-select-content-value-color","",jo.contentGlobalPrimary),trailingIconColor:po.extend("--ft-combobox-single-select-trailing-icon-color","",jo.contentGlobalSubtle),defaultBorderColor:po.extend("--ft-combobox-single-select-default-border-color","",jo.borderInputPrimary),defaultHelperTextColor:po.extend("--ft-combobox-single-select-default-helper-text-color","",jo.contentGlobalSubtle),defaultBorderWidth:po.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:po.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:po.extend("--ft-combobox-single-select-error-border-color","",jo.borderErrorPrimary),errorHelperTextColor:po.extend("--ft-combobox-single-select-error-helper-text-color","",jo.contentErrorPrimary),warningBorderWidth:po.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:po.extend("--ft-combobox-single-select-warning-border-color","",jo.borderWarningPrimary),warningHelperTextColor:po.extend("--ft-combobox-single-select-warning-helper-text-color","",jo.contentWarningPrimary),warningHelperIconColor:po.extend("--ft-combobox-single-select-warning-helper-icon-color","",jo.contentWarningIconOnly),focusOutlineWidth:po.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:po.extend("--ft-combobox-single-select-focus-focus-ring-color","",jo.borderActionFocusRing),focusOutlineOffset:po.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:po.extend("--ft-combobox-single-select-disabled-component-opacity","",go.opacity40)},tr={backgroundColor:po.extend("--ft-combobox-multi-select-background-color","",go.colorWhite),labelColor:po.extend("--ft-combobox-multi-select-label-color","",jo.contentGlobalSubtle),trailingIconColor:po.extend("--ft-combobox-multi-select-trailing-icon-color","",jo.contentGlobalSubtle),defaultBorderColor:po.extend("--ft-combobox-multi-select-default-border-color","",jo.borderInputPrimary),defaultHelperTextColor:po.extend("--ft-combobox-multi-select-default-helper-text-color","",jo.contentGlobalSubtle),defaultBorderWidth:po.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:po.extend("--ft-combobox-multi-select-error-border-color","",jo.borderErrorPrimary),errorHelperTextColor:po.extend("--ft-combobox-multi-select-error-helper-text-color","",jo.contentErrorPrimary),errorHelperIcon:po.extend("--ft-combobox-multi-select-error-helper-icon","",jo.contentErrorIconOnly),errorBorderWidth:po.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:po.extend("--ft-combobox-multi-select-warning-border-color","",jo.borderWarningPrimary),warningHelperTextColor:po.extend("--ft-combobox-multi-select-warning-helper-text-color","",jo.contentWarningPrimary),warningHelperIconColor:po.extend("--ft-combobox-multi-select-warning-helper-icon-color","",jo.contentWarningIconOnly),warningBorderWidth:po.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:po.extend("--ft-combobox-multi-select-focus-focus-ring-color","",jo.borderActionFocusRing),focusOutlineWidth:po.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:po.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:po.extend("--ft-combobox-multi-select-disabled-component-opacity","",go.opacity40),helperHorizontalPadding:po.extend("--ft-combobox-multi-select-helper-horizontal-padding","",go.spacing4),helperHorizontalGap:po.extend("--ft-combobox-multi-select-helper-horizontal-gap","",go.spacing1),helperVerticalGap:po.extend("--ft-combobox-multi-select-helper-vertical-gap","",go.spacing1),helperIconSize:po.extend("--ft-combobox-multi-select-helper-icon-size","",go.iconSize2),fieldHorizontalPadding:po.extend("--ft-combobox-multi-select-field-horizontal-padding","",go.spacing4),fieldHorizontalGap:po.extend("--ft-combobox-multi-select-field-horizontal-gap","",go.spacing3),fieldVerticalGap:po.extend("--ft-combobox-multi-select-field-vertical-gap","",go.spacing05),fieldIconSize:po.extend("--ft-combobox-multi-select-field-icon-size","",go.iconSize3),fieldMaxHeight:po.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:po.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",go.spacing1),contentValuesVerticalGap:po.extend("--ft-combobox-multi-select-content-values-vertical-gap","",go.spacing1),borderRadius:po.extend("--ft-combobox-multi-select-border-radius","",go.borderRadiusM)},er={backgroundColor:po.extend("--ft-popover-background-color","",jo.backgroundGlobalOnSurface),horizontalPadding:po.extend("--ft-popover-horizontal-padding","",go.spacing6),verticalPadding:po.extend("--ft-popover-vertical-padding","",go.spacing6),iconColor:po.extend("--ft-popover-icon-color","",jo.contentGlobalSecondary),iconSize:po.extend("--ft-popover-icon-size","",go.iconSize2),titleColor:po.extend("--ft-popover-title-color","",jo.contentGlobalPrimary),bodyColor:po.extend("--ft-popover-body-color","",jo.contentGlobalSecondary),linkColor:po.extend("--ft-popover-link-color","",jo.contentActionPrimary),gap:po.extend("--ft-popover-gap","",go.spacing3),borderRadius:po.extend("--ft-popover-border-radius","",go.borderRadiusM),shadow:po.extend("--ft-popover-shadow","",go.shadowElevation02)},or={topLeftBorderRadius:po.extend("--ft-tabs-top-left-border-radius","",go.borderRadiusS),topRightBorderRadius:po.extend("--ft-tabs-top-right-border-radius","",go.borderRadiusS),labelHorizontalPadding:po.extend("--ft-tabs-label-horizontal-padding","",go.spacing4),labelVerticalPadding:po.extend("--ft-tabs-label-vertical-padding","",go.spacing3),labelGap:po.extend("--ft-tabs-label-gap","",go.spacing1),offHoverStateLayerOpacity:po.extend("--ft-tabs-off-hover-state-layer-opacity","",go.opacity8),offFocusStateLayerOpacity:po.extend("--ft-tabs-off-focus-state-layer-opacity","",go.opacity8),offActiveStateLayerOpacity:po.extend("--ft-tabs-off-active-state-layer-opacity","",go.opacity16),offDisabledComponentOpacity:po.extend("--ft-tabs-off-disabled-component-opacity","",go.opacity40),offColor:po.extend("--ft-tabs-off-color","",jo.contentGlobalSubtle),offStateLayerColor:po.extend("--ft-tabs-off-state-layer-color","",jo.contentGlobalSubtle),onHoverStateLayerOpacity:po.extend("--ft-tabs-on-hover-state-layer-opacity","",go.opacity8),onFocusStateLayerOpacity:po.extend("--ft-tabs-on-focus-state-layer-opacity","",go.opacity8),onActiveStateLayerOpacity:po.extend("--ft-tabs-on-active-state-layer-opacity","",go.opacity16),onDisabledComponentOpacity:po.extend("--ft-tabs-on-disabled-component-opacity","",go.opacity40),onColor:po.extend("--ft-tabs-on-color","",jo.contentActionPrimary),onStateLayerColor:po.extend("--ft-tabs-on-state-layer-color","",jo.contentActionPrimary),iconHorizontalPadding:po.extend("--ft-tabs-icon-horizontal-padding","",go.spacing1),iconVerticalPadding:po.extend("--ft-tabs-icon-vertical-padding","",go.spacing4),focusOutlineWidth:po.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:po.extend("--ft-tabs-focus-focus-ring-color","",jo.borderActionFocusRing)},rr={hoverStateLayerOpacity:po.extend("--ft-collapsible-hover-state-layer-opacity","",go.opacity8),focusStateLayerOpacity:po.extend("--ft-collapsible-focus-state-layer-opacity","",go.opacity8),focusOutlineWidth:po.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:po.extend("--ft-collapsible-focus-focus-ring-color","",jo.borderActionFocusRing),activeStateLayerOpacity:po.extend("--ft-collapsible-active-state-layer-opacity","",go.opacity16),disabledComponentOpacity:po.extend("--ft-collapsible-disabled-component-opacity","",go.opacity40),horizontalPadding:po.extend("--ft-collapsible-horizontal-padding","",go.spacing4),verticalPadding:po.extend("--ft-collapsible-vertical-padding","",go.spacing3),color:po.extend("--ft-collapsible-color","",jo.contentGlobalPrimary),stateLayerColor:po.extend("--ft-collapsible-state-layer-color","",jo.contentGlobalPrimary),backgroundColor:po.extend("--ft-collapsible-background-color","",jo.backgroundGlobalOnSurface),borderColor:po.extend("--ft-collapsible-border-color","",jo.borderGlobalSubtle),iconSize:po.extend("--ft-collapsible-icon-size","",go.iconSize3)},ir={groupHorizontalPadding:po.extend("--ft-switch-group-horizontal-padding","",go.spacing1),groupVerticalPadding:po.extend("--ft-switch-group-vertical-padding","",go.spacing1),groupGap:po.extend("--ft-switch-group-gap","",go.spacing1),groupBackgroundColor:po.extend("--ft-switch-group-background-color","",jo.backgroundGlobalSurface),groupBorderColor:po.extend("--ft-switch-group-border-color","",jo.borderGlobalSubtle),groupBorderRadius:po.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:po.extend("--ft-switch-label-horizontal-padding","",go.spacing2),labelVerticalPadding:po.extend("--ft-switch-label-vertical-padding","",go.spacing1),offHoverStateLayerOpacity:po.extend("--ft-switch-off-hover-state-layer-opacity","",go.opacity8),offFocusStateLayerOpacity:po.extend("--ft-switch-off-focus-state-layer-opacity","",go.opacity8),offActiveStateLayerOpacity:po.extend("--ft-switch-off-active-state-layer-opacity","",go.opacity16),offDisabledComponentOpacity:po.extend("--ft-switch-off-disabled-component-opacity","",go.opacity40),offColor:po.extend("--ft-switch-off-color","",jo.contentGlobalSubtle),offStateLayerColor:po.extend("--ft-switch-off-state-layer-color","",jo.contentGlobalSubtle),onHoverStateLayerOpacity:po.extend("--ft-switch-on-hover-state-layer-opacity","",go.opacity8),onFocusStateLayerOpacity:po.extend("--ft-switch-on-focus-state-layer-opacity","",go.opacity8),onActiveStateLayerOpacity:po.extend("--ft-switch-on-active-state-layer-opacity","",go.opacity16),onDisabledComponentOpacity:po.extend("--ft-switch-on-disabled-component-opacity","",go.opacity40),onColor:po.extend("--ft-switch-on-color","",jo.contentActionPrimary),onStateLayerColor:po.extend("--ft-switch-on-state-layer-color","",jo.contentActionPrimary),iconHorizontalPadding:po.extend("--ft-switch-icon-horizontal-padding","",go.spacing1),iconVerticalPadding:po.extend("--ft-switch-icon-vertical-padding","",go.spacing1),focusOutlineWidth:po.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:po.extend("--ft-switch-focus-focus-ring-color","",jo.borderActionFocusRing),optionBorderRadius:po.extend("--ft-switch-option-border-radius","",go.borderRadiusS)},nr={color1Light:po.extend("--ft-chart-1-light","for area color charts",go.colorBrand40),color1Base:po.extend("--ft-chart-1-base","for line charts",go.colorBrand0),color2Light:po.extend("--ft-chart-2-light","for area color charts",go.colorYellow60),color2Base:po.extend("--ft-chart-2-base","for line charts",go.colorYellow100),color3Light:po.extend("--ft-chart-3-light","",go.colorUltramarine40),color3Base:po.extend("--ft-chart-3-base","",go.colorUltramarine70),color4Light:po.extend("--ft-chart-4-light","",go.colorCyan50),color4Base:po.extend("--ft-chart-4-base","",go.colorCyan100),color5Light:po.extend("--ft-chart-5-light","",go.colorRed40),color5Base:po.extend("--ft-chart-5-base","",go.colorRed60),color6Light:po.extend("--ft-chart-6-light","",go.colorGreen40),color6Base:po.extend("--ft-chart-6-base","",go.colorGreen70),color7Light:po.extend("--ft-chart-7-light","",go.colorOrange70),color7Base:po.extend("--ft-chart-7-base","",go.colorOrange100),color8Light:po.extend("--ft-chart-8-light","",go.colorAvocado70),color8Base:po.extend("--ft-chart-8-base","",go.colorAvocado200),color9Light:po.extend("--ft-chart-9-light","",go.colorBrown50),color9Base:po.extend("--ft-chart-9-base","",go.colorBrown200),color10Light:po.extend("--ft-chart-10-light","",go.colorGray50),color10Base:po.extend("--ft-chart-10-base","",go.colorGray80),monochrome10:po.extend("--ft-chart-monochrome-10","",go.colorBrand10),monochrome20:po.extend("--ft-chart-monochrome-20","",go.colorBrand20),monochrome30:po.extend("--ft-chart-monochrome-30","",go.colorBrand40),monochrome40:po.extend("--ft-chart-monochrome-40","",go.colorBrand60),monochrome50:po.extend("--ft-chart-monochrome-50","",go.colorBrand0),monochrome60:po.extend("--ft-chart-monochrome-60","",go.colorBrand200)},ar={largeHorizontalPadding:po.extend("--ft-chip-large-horizontal-padding","",go.spacing4),largeVerticalPadding:po.extend("--ft-chip-large-vertical-padding","",go.spacing2),largeGap:po.extend("--ft-chip-large-gap","",go.spacing1),largeFocusOutlineOffset:po.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:po.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:po.extend("--ft-chip-large-border-radius","",go.borderRadiusPill),largeBorderWidth:po.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:po.extend("--ft-chip-large-icon-size","",go.iconSize3),mediumHorizontalPadding:po.extend("--ft-chip-medium-horizontal-padding","",go.spacing3),mediumVerticalPadding:po.extend("--ft-chip-medium-vertical-padding","",go.spacing1),mediumGap:po.extend("--ft-chip-medium-gap","",go.spacing1),mediumFocusOutlineOffset:po.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:po.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:po.extend("--ft-chip-medium-border-radius","",go.borderRadiusPill),mediumBorderWidth:po.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:po.extend("--ft-chip-medium-icon-size","",go.iconSize2),smallHorizontalPadding:po.extend("--ft-chip-small-horizontal-padding","",go.spacing2),smallVerticalPadding:po.extend("--ft-chip-small-vertical-padding","",go.spacing05),smallGap:po.extend("--ft-chip-small-gap","",go.spacing1),smallFocusOutlineOffset:po.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:po.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:po.extend("--ft-chip-small-border-radius","",go.borderRadiusPill),smallBorderWidth:po.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:po.extend("--ft-chip-small-icon-size","",go.iconSize1),neutralBackgroundColor:po.extend("--ft-chip-neutral-background-color","",jo.backgroundGlobalOnSurface),neutralColor:po.extend("--ft-chip-neutral-color","",jo.contentGlobalPrimary),neutralIconColor:po.extend("--ft-chip-neutral-icon-color","",jo.contentGlobalPrimary),neutralBorderColor:po.extend("--ft-chip-neutral-border-color","",jo.borderGlobalSubtle),infoBackgroundColor:po.extend("--ft-chip-info-background-color","",jo.backgroundInfoSubtle),infoColor:po.extend("--ft-chip-info-color","",jo.contentInfoPrimary),infoIconColor:po.extend("--ft-chip-info-icon-color","",jo.contentInfoIconOnly),infoBorderColor:po.extend("--ft-chip-info-border-color","",jo.borderInfoSubtle),successBackgroundColor:po.extend("--ft-chip-success-background-color","",jo.backgroundSuccessSubtle),successColor:po.extend("--ft-chip-success-color","",jo.contentSuccessPrimary),successIconColor:po.extend("--ft-chip-success-icon-color","",jo.contentSuccessIconOnly),successBorderColor:po.extend("--ft-chip-success-border-color","",jo.borderSuccessSubtle),warningBackgroundColor:po.extend("--ft-chip-warning-background-color","",jo.backgroundWarningSubtle),warningColor:po.extend("--ft-chip-warning-color","",jo.contentWarningPrimary),warningIconColor:po.extend("--ft-chip-warning-icon-color","",jo.contentWarningIconOnly),warningBorderColor:po.extend("--ft-chip-warning-border-color","",jo.borderWarningSubtle),errorBackgroundColor:po.extend("--ft-chip-error-background-color","",jo.backgroundErrorSubtle),errorColor:po.extend("--ft-chip-error-color","",jo.contentErrorPrimary),errorIconColor:po.extend("--ft-chip-error-icon-color","",jo.contentErrorIconOnly),errorBorderColor:po.extend("--ft-chip-error-border-color","",jo.borderErrorSubtle)},sr={infoBorderColor:po.extend("--ft-border-info-border-color","",jo.borderInfoSubtle)},cr={borderWidth:po.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:po.extend("--ft-notice-horizontal-padding","",go.spacing2),verticalPadding:po.extend("--ft-notice-vertical-padding","",go.spacing1),borderRadius:po.extend("--ft-notice-border-radius","",go.borderRadiusS),gap:po.extend("--ft-notice-gap","",go.spacing2),iconSize:po.extend("--ft-notice-icon-size","",go.iconSize3),infoBackgroundColor:po.extend("--ft-notice-info-background-color","",jo.backgroundInfoSubtle),infoBorderColor:po.extend("--ft-notice-info-border-color","",jo.borderInfoSubtle),infoColor:po.extend("--ft-notice-info-color","",jo.contentInfoPrimary),infoIconColor:po.extend("--ft-notice-info-icon-color","",jo.contentInfoIconOnly),warningBackgroundColor:po.extend("--ft-notice-warning-background-color","",jo.backgroundWarningSubtle),warningBorderColor:po.extend("--ft-notice-warning-border-color","",jo.borderWarningSubtle),warningColor:po.extend("--ft-notice-warning-color","",jo.contentWarningPrimary),warningIconColor:po.extend("--ft-notice-warning-icon-color","",jo.contentWarningIconOnly),errorBackgroundColor:po.extend("--ft-notice-error-background-color","",jo.backgroundErrorSubtle),errorBorderColor:po.extend("--ft-notice-error-border-color","",jo.borderErrorSubtle),errorColor:po.extend("--ft-notice-error-color","",jo.contentErrorPrimary),errorIconColor:po.extend("--ft-notice-error-icon-color","",jo.contentErrorIconOnly),successBackgroundColor:po.extend("--ft-notice-success-background-color","",jo.backgroundSuccessSubtle),successBorderColor:po.extend("--ft-notice-success-border-color","",jo.borderSuccessSubtle),successColor:po.extend("--ft-notice-success-color","",jo.contentSuccessPrimary),successIconColor:po.extend("--ft-notice-success-icon-color","",jo.contentSuccessIconOnly)},lr={color:po.extend("--ft-checkbox-color","",jo.contentGlobalPrimary),checkedBackgroundColor:po.extend("--ft-checkbox-checked-background-color","",jo.contentActionPrimary),checkedStateLayerColor:po.extend("--ft-checkbox-checked-state-layer-color","",jo.contentActionPrimary),checkedIconColor:po.extend("--ft-checkbox-checked-icon-color","",jo.contentGlobalOnColor),checkedHoverStateLayerOpacity:po.extend("--ft-checkbox-checked-hover-state-layer-opacity","",go.opacity16),checkedFocusStateLayerOpacity:po.extend("--ft-checkbox-checked-focus-state-layer-opacity","",go.opacity16),checkedActiveStateLayerOpacity:po.extend("--ft-checkbox-checked-active-state-layer-opacity","",go.opacity24),checkedDisabledComponentOpacity:po.extend("--ft-checkbox-checked-disabled-component-opacity","",go.opacity40),uncheckedBorderColor:po.extend("--ft-checkbox-unchecked-border-color","",go.colorGray80),uncheckedStateLayerColor:po.extend("--ft-checkbox-unchecked-state-layer-color","",go.colorGray80),uncheckedHoverStateLayerOpacity:po.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",go.opacity16),uncheckedFocusStateLayerOpacity:po.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",go.opacity16),uncheckedActiveStateLayerOpacity:po.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",go.opacity24),uncheckedDisabledComponentOpacity:po.extend("--ft-checkbox-unchecked-disabled-component-opacity","",go.opacity40),focusFocusRingColor:po.extend("--ft-checkbox-focus-focus-ring-color","",jo.borderActionFocusRing),focusOutlineOffset:po.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:po.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gap:po.extend("--ft-checkbox-gap","",go.spacing3)},fr={offHoverStateLayerOpacity:po.extend("--ft-toggle-off-hover-state-layer-opacity","",go.opacity16),offFocusStateLayerOpacity:po.extend("--ft-toggle-off-focus-state-layer-opacity","",go.opacity16),offActiveStateLayerOpacity:po.extend("--ft-toggle-off-active-state-layer-opacity","",go.opacity24),offDisabledComponentOpacity:po.extend("--ft-toggle-off-disabled-component-opacity","",go.opacity40),offBackgroundColor:po.extend("--ft-toggle-off-background-color","",jo.contentGlobalSubtle),offIconColor:po.extend("--ft-toggle-off-icon-color","",jo.contentGlobalSubtle),offStateLayerColor:po.extend("--ft-toggle-off-state-layer-color","",jo.contentGlobalSubtle),onHoverStateLayerOpacity:po.extend("--ft-toggle-on-hover-state-layer-opacity","",go.opacity16),onFocusStateLayerOpacity:po.extend("--ft-toggle-on-focus-state-layer-opacity","",go.opacity16),onActiveStateLayerOpacity:po.extend("--ft-toggle-on-active-state-layer-opacity","",go.opacity24),onDisabledComponentOpacity:po.extend("--ft-toggle-on-disabled-component-opacity","",go.opacity40),onBackgroundColor:po.extend("--ft-toggle-on-background-color","",jo.contentActionPrimary),onStateLayerColor:po.extend("--ft-toggle-on-state-layer-color","",jo.contentActionPrimary),onIconColor:po.extend("--ft-toggle-on-icon-color","",jo.contentActionPrimary),color:po.extend("--ft-toggle-color","",jo.contentGlobalPrimary),focusFocusRingColor:po.extend("--ft-toggle-focus-focus-ring-color","",jo.borderActionFocusRing),gap:po.extend("--ft-toggle-gap","",go.spacing3)},ur={color:po.extend("--ft-radio-color","",jo.contentGlobalPrimary),selectedRadioColor:po.extend("--ft-radio-selected-radio-color","",jo.contentActionPrimary),selectedStateLayerColor:po.extend("--ft-radio-selected-state-layer-color","",jo.contentActionPrimary),selectedHoverStateLayerOpacity:po.extend("--ft-radio-selected-hover-state-layer-opacity","",go.opacity16),selectedFocusStateLayerOpacity:po.extend("--ft-radio-selected-focus-state-layer-opacity","",go.opacity16),selectedActiveStateLayerOpacity:po.extend("--ft-radio-selected-active-state-layer-opacity","",go.opacity24),selectedDisabledComponentOpacity:po.extend("--ft-radio-selected-disabled-component-opacity","",go.opacity40),unselectedStateLayerColor:po.extend("--ft-radio-unselected-state-layer-color","",jo.borderInputPrimary),unselectedBorderColor:po.extend("--ft-radio-unselected-border-color","",jo.borderInputPrimary),unselectedHoverStateLayerOpacity:po.extend("--ft-radio-unselected-hover-state-layer-opacity","",go.opacity16),unselectedFocusStateLayerOpacity:po.extend("--ft-radio-unselected-focus-state-layer-opacity","",go.opacity16),unselectedActiveStateLayerOpacity:po.extend("--ft-radio-unselected-active-state-layer-opacity","",go.opacity24),unselectedDisabledComponentOpacity:po.extend("--ft-radio-unselected-disabled-component-opacity","",go.opacity40),focusFocusRingColor:po.extend("--ft-radio-focus-focus-ring-color","",jo.borderActionFocusRing),focusOutlineOffset:po.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:po.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:po.extend("--ft-radio-gap","",go.spacing3)},hr={iconSize:po.extend("--ft-notification-icon-size","",go.iconSize4),horizontalPadding:po.extend("--ft-notification-horizontal-padding","",go.spacing4),verticalPadding:po.extend("--ft-notification-vertical-padding","",go.spacing4),infoBackgroundColor:po.extend("--ft-notification-info-background-color","",jo.backgroundInfoSubtle),infoColor:po.extend("--ft-notification-info-color","",jo.contentInfoPrimary),infoIconColor:po.extend("--ft-notification-info-icon-color","",jo.contentInfoIconOnly),infoBorderColor:po.extend("--ft-notification-info-border-color","",jo.borderInfoSubtle),successBackgroundColor:po.extend("--ft-notification-success-background-color","",jo.backgroundSuccessSubtle),successColor:po.extend("--ft-notification-success-color","",jo.contentSuccessPrimary),successIconColor:po.extend("--ft-notification-success-icon-color","",jo.contentSuccessIconOnly),successBorderColor:po.extend("--ft-notification-success-border-color","",jo.borderSuccessSubtle),warningBackgroundColor:po.extend("--ft-notification-warning-background-color","",jo.backgroundWarningSubtle),warningColor:po.extend("--ft-notification-warning-color","",jo.contentWarningPrimary),warningIconColor:po.extend("--ft-notification-warning-icon-color","",jo.contentWarningIconOnly),warningBorderColor:po.extend("--ft-notification-warning-border-color","",jo.borderWarningSubtle),errorBackgroundColor:po.extend("--ft-notification-error-background-color","",jo.backgroundErrorSubtle),errorColor:po.extend("--ft-notification-error-color","",jo.contentErrorPrimary),errorIconColor:po.extend("--ft-notification-error-icon-color","",jo.contentErrorIconOnly),errorBorderColor:po.extend("--ft-notification-error-border-color","",jo.borderErrorSubtle),borderRadius:po.extend("--ft-notification-border-radius","",go.borderRadiusPill),borderWidth:po.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:po.extend("--ft-notification-leading-gap","",go.spacing2),trailingGap:po.extend("--ft-notification-trailing-gap","",go.spacing8)},dr={horizontalPadding:po.extend("--ft-tooltip-horizontal-padding","",go.spacing2),verticalPadding:po.extend("--ft-tooltip-vertical-padding","",go.spacing2),borderRadius:po.extend("--ft-tooltip-border-radius","",go.borderRadiusS),color:po.extend("--ft-tooltip-color","",jo.contentGlobalOnColor),backgroundColor:po.extend("--ft-tooltip-background-color","",jo.contentGlobalPrimary),backgroundOpacity:po.extend("--ft-tooltip-background-opacity","",go.opacity80),shadow:po.extend("--ft-tooltip-shadow","",go.shadowElevation03),maxWidth:po.create("--ft-tooltip-max-width","","SIZE","256px"),gap:po.extend("--ft-tooltip-gap","",go.spacing05)};var pr=Object.freeze({__proto__:null,FtCssVariableFactory:po,banner:Zo,border:sr,breadcrumb:$o,button:Ho,chart:nr,checkbox:lr,chip:ar,collapsible:rr,comboboxMultiSelect:tr,comboboxSingleSelect:Qo,drawer:qo,floatingMenu:Xo,foundation:go,modal:Vo,notice:cr,notification:hr,pageHeader:Go,popover:er,radio:ur,semantic:jo,setVariable:function(t,e){return ho(`${t.name}: ${e}`)},switch_:ir,tabs:or,textArea:Jo,textInput:Yo,toggle:fr,tooltip:dr,typographies:Ko,typographyBody1Medium:wo,typographyBody1Regular:Oo,typographyBody1Semibold:So,typographyBody2Medium:Co,typographyBody2MediumUnderline:No,typographyBody2Regular:xo,typographyBody2Semibold:Eo,typographyCaption1Bold:Po,typographyCaption1Medium:Ao,typographyCaption1Semibold:Bo,typographyCaption2Bold:To,typographyCaption2Medium:Fo,typographyCaption2Semibold:_o,typographyCaption3Bold:zo,typographyCaption3Medium:Do,typographyCaption3Semibold:Mo,typographyDisplay:yo,typographyLabel1Bold:Lo,typographyLabel1Medium:Ro,typographyLabel1Semibold:Io,typographyLabel2Bold:Wo,typographyLabel2Medium:Uo,typographyLabel2Semibold:ko,typographyTitle1:bo,typographyTitle2:mo,typographyTitle3:vo,typographyVariants:["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","label-1","label-2","caption-1","caption-2","caption-3"]});const gr={colorPrimary:po.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:po.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:po.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:po.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:po.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:po.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:po.create("--ft-color-error","","COLOR","#B00020"),colorOutline:po.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:po.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:po.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:po.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:po.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:po.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:po.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:po.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:po.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:po.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:po.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:po.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:po.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:po.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:po.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:po.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:po.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:po.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:po.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:po.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:po.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:po.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:po.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:po.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:po.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:po.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:po.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:po.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:po.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:po.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:po.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:po.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:po.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:po.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:po.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:po.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:po.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:po.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:po.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:po.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:po.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:po.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:po.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:po.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:po.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:po.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:po.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:po.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:po.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:po.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:po.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:po.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:po.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:po.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:po.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var yr=Object.freeze({__proto__:null,designSystemVariables:gr});class br extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}}class mr extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}}class vr extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}}var Or=Object.freeze({__proto__:null,FtNotificationEvent:br,PostResizeEvent:vr,PreResizeEvent:mr});const wr=["start","end"],Sr=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+wr[0],e+"-"+wr[1])),[]),xr=Math.min,Cr=Math.max,Nr=Math.round,Er=t=>({x:t,y:t}),Rr={left:"right",right:"left",bottom:"top",top:"bottom"},Ir={start:"end",end:"start"};function Lr(t,e,o){return Cr(t,xr(e,o))}function Ur(t,e){return"function"==typeof t?t(e):t}function kr(t){return t.split("-")[0]}function Wr(t){return t.split("-")[1]}function Ar(t){return"x"===t?"y":"x"}function Br(t){return"y"===t?"height":"width"}function Pr(t){return["top","bottom"].includes(kr(t))?"y":"x"}function Fr(t){return Ar(Pr(t))}function _r(t){return t.replace(/left|right|bottom|top/g,(t=>Rr[t]))}function Tr(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Dr(t,e,o){let{reference:r,floating:i}=t;const n=Pr(e),a=Fr(e),s=Br(a),c=kr(e),l="y"===n,f=r.x+r.width/2-i.width/2,u=r.y+r.height/2-i.height/2,h=r[s]/2-i[s]/2;let d;switch(c){case"top":d={x:f,y:r.y-i.height};break;case"bottom":d={x:f,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:u};break;case"left":d={x:r.x-i.width,y:u};break;default:d={x:r.x,y:r.y}}switch(Wr(e)){case"start":d[a]-=h*(o&&l?-1:1);break;case"end":d[a]+=h*(o&&l?-1:1)}return d}async function Mr(t,e){var o;void 0===e&&(e={});const{x:r,y:i,platform:n,rects:a,elements:s,strategy:c}=t,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:h=!1,padding:d=0}=Ur(e,t),p=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(d),g=s[h?"floating"===u?"reference":"floating":u],y=Tr(await n.getClippingRect({element:null==(o=await(null==n.isElement?void 0:n.isElement(g)))||o?g:g.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:l,rootBoundary:f,strategy:c})),b="floating"===u?{...a.floating,x:r,y:i}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),v=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},O=Tr(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:c}):b);return{top:(y.top-O.top+p.top)/v.y,bottom:(O.bottom-y.bottom+p.bottom)/v.y,left:(y.left-O.left+p.left)/v.x,right:(O.right-y.right+p.right)/v.x}}function zr(t,e,o){return(t?[...o.filter((e=>Wr(e)===t)),...o.filter((e=>Wr(e)!==t))]:o.filter((t=>kr(t)===t))).filter((o=>!t||(Wr(o)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>Ir[t]))}(o)!==o)))}const Kr=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,r,i;const{rects:n,middlewareData:a,placement:s,platform:c,elements:l}=e,{crossAxis:f=!1,alignment:u,allowedPlacements:h=Sr,autoAlignment:d=!0,...p}=Ur(t,e),g=void 0!==u||h===Sr?zr(u||null,d,h):h,y=await Mr(e,p),b=(null==(o=a.autoPlacement)?void 0:o.index)||0,m=g[b];if(null==m)return{};const v=function(t,e,o){void 0===o&&(o=!1);const r=Wr(t),i=Fr(t),n=Br(i);let a="x"===i?r===(o?"end":"start")?"right":"left":"start"===r?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=_r(a)),[a,_r(a)]}(m,n,await(null==c.isRTL?void 0:c.isRTL(l.floating)));if(s!==m)return{reset:{placement:g[0]}};const O=[y[kr(m)],y[v[0]],y[v[1]]],w=[...(null==(r=a.autoPlacement)?void 0:r.overflows)||[],{placement:m,overflows:O}],S=g[b+1];if(S)return{data:{index:b+1,overflows:w},reset:{placement:S}};const x=w.map((t=>{const e=Wr(t.placement);return[t.placement,e&&f?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),C=x.filter((t=>t[2].slice(0,Wr(t[0])?2:3).every((t=>t<=0)))),N=(null==(i=C[0])?void 0:i[0])||x[0][0];return N!==s?{data:{index:b+1,overflows:w},reset:{placement:N}}:{}}}};function jr(t){return $r(t)?(t.nodeName||"").toLowerCase():"#document"}function Hr(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Zr(t){var e;return null==(e=($r(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function $r(t){return t instanceof Node||t instanceof Hr(t).Node}function Gr(t){return t instanceof Element||t instanceof Hr(t).Element}function Vr(t){return t instanceof HTMLElement||t instanceof Hr(t).HTMLElement}function qr(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Hr(t).ShadowRoot)}function Yr(t){const{overflow:e,overflowX:o,overflowY:r,display:i}=ei(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+o)&&!["inline","contents"].includes(i)}function Jr(t){return["table","td","th"].includes(jr(t))}function Xr(t){const e=Qr(),o=ei(t);return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function Qr(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function ti(t){return["html","body","#document"].includes(jr(t))}function ei(t){return Hr(t).getComputedStyle(t)}function oi(t){return Gr(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ri(t){if("html"===jr(t))return t;const e=t.assignedSlot||t.parentNode||qr(t)&&t.host||Zr(t);return qr(e)?e.host:e}function ii(t){const e=ri(t);return ti(e)?t.ownerDocument?t.ownerDocument.body:t.body:Vr(e)&&Yr(e)?e:ii(e)}function ni(t,e,o){var r;void 0===e&&(e=[]),void 0===o&&(o=!0);const i=ii(t),n=i===(null==(r=t.ownerDocument)?void 0:r.body),a=Hr(i);return n?e.concat(a,a.visualViewport||[],Yr(i)?i:[],a.frameElement&&o?ni(a.frameElement):[]):e.concat(i,ni(i,[],o))}function ai(t){const e=ei(t);let o=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=Vr(t),n=i?t.offsetWidth:o,a=i?t.offsetHeight:r,s=Nr(o)!==n||Nr(r)!==a;return s&&(o=n,r=a),{width:o,height:r,$:s}}function si(t){return Gr(t)?t:t.contextElement}function ci(t){const e=si(t);if(!Vr(e))return Er(1);const o=e.getBoundingClientRect(),{width:r,height:i,$:n}=ai(e);let a=(n?Nr(o.width):o.width)/r,s=(n?Nr(o.height):o.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const li=Er(0);function fi(t){const e=Hr(t);return Qr()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:li}function ui(t,e,o,r){void 0===e&&(e=!1),void 0===o&&(o=!1);const i=t.getBoundingClientRect(),n=si(t);let a=Er(1);e&&(r?Gr(r)&&(a=ci(r)):a=ci(t));const s=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==Hr(t))&&e}(n,o,r)?fi(n):Er(0);let c=(i.left+s.x)/a.x,l=(i.top+s.y)/a.y,f=i.width/a.x,u=i.height/a.y;if(n){const t=Hr(n),e=r&&Gr(r)?Hr(r):r;let o=t.frameElement;for(;o&&r&&e!==t;){const t=ci(o),e=o.getBoundingClientRect(),r=ei(o),i=e.left+(o.clientLeft+parseFloat(r.paddingLeft))*t.x,n=e.top+(o.clientTop+parseFloat(r.paddingTop))*t.y;c*=t.x,l*=t.y,f*=t.x,u*=t.y,c+=i,l+=n,o=Hr(o).frameElement}}return Tr({width:f,height:u,x:c,y:l})}function hi(t){return ui(Zr(t)).left+oi(t).scrollLeft}function di(t,e,o){let r;if("viewport"===e)r=function(t,e){const o=Hr(t),r=Zr(t),i=o.visualViewport;let n=r.clientWidth,a=r.clientHeight,s=0,c=0;if(i){n=i.width,a=i.height;const t=Qr();(!t||t&&"fixed"===e)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:n,height:a,x:s,y:c}}(t,o);else if("document"===e)r=function(t){const e=Zr(t),o=oi(t),r=t.ownerDocument.body,i=Cr(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),n=Cr(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let a=-o.scrollLeft+hi(t);const s=-o.scrollTop;return"rtl"===ei(r).direction&&(a+=Cr(e.clientWidth,r.clientWidth)-i),{width:i,height:n,x:a,y:s}}(Zr(t));else if(Gr(e))r=function(t,e){const o=ui(t,!0,"fixed"===e),r=o.top+t.clientTop,i=o.left+t.clientLeft,n=Vr(t)?ci(t):Er(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:i*n.x,y:r*n.y}}(e,o);else{const o=fi(t);r={...e,x:e.x-o.x,y:e.y-o.y}}return Tr(r)}function pi(t,e){const o=ri(t);return!(o===e||!Gr(o)||ti(o))&&("fixed"===ei(o).position||pi(o,e))}function gi(t,e,o){const r=Vr(e),i=Zr(e),n="fixed"===o,a=ui(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const c=Er(0);if(r||!r&&!n)if(("body"!==jr(e)||Yr(i))&&(s=oi(e)),r){const t=ui(e,!0,n,e);c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}else i&&(c.x=hi(i));return{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function yi(t,e){return Vr(t)&&"fixed"!==ei(t).position?e?e(t):t.offsetParent:null}function bi(t,e){const o=Hr(t);if(!Vr(t))return o;let r=yi(t,e);for(;r&&Jr(r)&&"static"===ei(r).position;)r=yi(r,e);return r&&("html"===jr(r)||"body"===jr(r)&&"static"===ei(r).position&&!Xr(r))?o:r||function(t){let e=ri(t);for(;Vr(e)&&!ti(e);){if(Xr(e))return e;e=ri(e)}return null}(t)||o}const mi={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:r}=t;const i=Vr(o),n=Zr(o);if(o===n)return e;let a={scrollLeft:0,scrollTop:0},s=Er(1);const c=Er(0);if((i||!i&&"fixed"!==r)&&(("body"!==jr(o)||Yr(n))&&(a=oi(o)),Vr(o))){const t=ui(o);s=ci(o),c.x=t.x+o.clientLeft,c.y=t.y+o.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+c.x,y:e.y*s.y-a.scrollTop*s.y+c.y}},getDocumentElement:Zr,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:r,strategy:i}=t;const n=[..."clippingAncestors"===o?function(t,e){const o=e.get(t);if(o)return o;let r=ni(t,[],!1).filter((t=>Gr(t)&&"body"!==jr(t))),i=null;const n="fixed"===ei(t).position;let a=n?ri(t):t;for(;Gr(a)&&!ti(a);){const e=ei(a),o=Xr(a);o||"fixed"!==e.position||(i=null),(n?!o&&!i:!o&&"static"===e.position&&i&&["absolute","fixed"].includes(i.position)||Yr(a)&&!o&&pi(t,a))?r=r.filter((t=>t!==a)):i=e,a=ri(a)}return e.set(t,r),r}(e,this._c):[].concat(o),r],a=n[0],s=n.reduce(((t,o)=>{const r=di(e,o,i);return t.top=Cr(r.top,t.top),t.right=xr(r.right,t.right),t.bottom=xr(r.bottom,t.bottom),t.left=Cr(r.left,t.left),t}),di(e,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:bi,getElementRects:async function(t){let{reference:e,floating:o,strategy:r}=t;const i=this.getOffsetParent||bi,n=this.getDimensions;return{reference:gi(e,await i(o),r),floating:{x:0,y:0,...await n(o)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return ai(t)},getScale:ci,isElement:Gr,isRTL:function(t){return"rtl"===ei(t).direction}},vi=(t,e,o)=>{const r=new Map,i={platform:mi,...o},n={...i.platform,_c:r};return(async(t,e,o)=>{const{placement:r="bottom",strategy:i="absolute",middleware:n=[],platform:a}=o,s=n.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(e));let l=await a.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:u}=Dr(l,r,c),h=r,d={},p=0;for(let o=0;o<s.length;o++){const{name:n,fn:g}=s[o],{x:y,y:b,data:m,reset:v}=await g({x:f,y:u,initialPlacement:r,placement:h,strategy:i,middlewareData:d,rects:l,platform:a,elements:{reference:t,floating:e}});f=null!=y?y:f,u=null!=b?b:u,d={...d,[n]:{...d[n],...m}},v&&p<=50&&(p++,"object"==typeof v&&(v.placement&&(h=v.placement),v.rects&&(l=!0===v.rects?await a.getElementRects({reference:t,floating:e,strategy:i}):v.rects),({x:f,y:u}=Dr(l,h,c))),o=-1)}return{x:f,y:u,placement:h,strategy:i,middlewareData:d}})(t,e,{...i,platform:n})};function Oi(t){return function(t){for(let e=t;e;e=wi(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=wi(t);e;e=wi(e)){if(!(e instanceof Element))continue;const t=getComputedStyle(e);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return e;if("BODY"===e.tagName)return e}}return null}(t)}function wi(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}var Si=Object.freeze({__proto__:null,computeOffsetPosition:async function(t,e,o){return vi(t,e,{platform:{...mi,getOffsetParent:t=>mi.getOffsetParent(t,Oi)},middleware:[(r={crossAxis:!0},void 0===r&&(r={}),{name:"shift",options:r,async fn(t){const{x:e,y:o,placement:i}=t,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...c}=Ur(r,t),l={x:e,y:o},f=await Mr(t,c),u=Pr(kr(i)),h=Ar(u);let d=l[h],p=l[u];if(n){const t="y"===h?"bottom":"right";d=Lr(d+f["y"===h?"top":"left"],d,d-f[t])}if(a){const t="y"===u?"bottom":"right";p=Lr(p+f["y"===u?"top":"left"],p,p-f[t])}const g=s.fn({...t,[h]:d,[u]:p});return{...g,data:{x:g.x-e,y:g.y-o}}}}),Kr({allowedPlacements:[o]})]});var r}});
138
- /**
237
+ *)
238
+
239
+ @lit/reactive-element/css-tag.js:
240
+ (**
139
241
  * @license
140
242
  * Copyright 2019 Google LLC
141
243
  * SPDX-License-Identifier: BSD-3-Clause
142
- */const xi=window,Ci=xi.ShadowRoot&&(void 0===xi.ShadyCSS||xi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;class Ni extends ye{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,o])=>t.registry.define(e,o))));const e={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{Ci?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),r=xi.litNonce;void 0!==r&&o.setAttribute("nonce",r),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var Ei,Ri=Object.freeze({__proto__:null,ScopedRegistryLitElement:Ni}),Ii=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Li=Symbol("constructorPrototype"),Ui=Symbol("constructorName"),ki=Symbol("exportpartsDebouncer");class Wi extends Ni{constructor(){super(),this.adoptedCustomStyleSheet=new CSSStyleSheet,this.useAdoptedStyleSheets=!0,this[Ei]=new eo(5),this[Ui]=this.constructor.name,this[Li]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ui]&&Object.setPrototypeOf(this,this[Li])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet])}catch(t){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",t)}}updated(t){super.updated(t),this.updateComplete.then((()=>{this.contentAvailableCallback(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()}))}contentAvailableCallback(t){}applyCustomStylesheet(t){var e,o,r;if(this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync(null!==(e=this.customStylesheet)&&void 0!==e?e:"")}catch(t){console.error(t,this.customStylesheet)}}else if((null!==(r=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==r?r:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){var t,e,o;((null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())||null!==(o=null===(e=this.exportpartsPrefixes)||void 0===e?void 0:e.length)&&void 0!==o&&o)&&this[ki].run((()=>{var t,e;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&(null===(e=this.exportpartsPrefixes)||void 0===e?void 0:e.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,o,r,i,n,a;const s=t=>null!=t&&t.trim().length>0,c=t.filter(s).map((t=>t.trim()));if(0===c.length)return void this.removeAttribute("exportparts");const l=new Set;for(let t of null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==o?o:[]){const e=null!==(i=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==i?i:[],o=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...e,...o).filter(s).map((t=>t.trim())).forEach((t=>l.add(t)))}if(0===l.size)return void this.removeAttribute("exportparts");const f=[...l.values()].flatMap((t=>c.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}Ei=ki,Ii([we()],Wi.prototype,"exportpartsPrefix",void 0),Ii([lo([])],Wi.prototype,"exportpartsPrefixes",void 0),Ii([we()],Wi.prototype,"customStylesheet",void 0);var Ai=Object.freeze({__proto__:null,FtLitElement:Wi}),Bi=Object.freeze({__proto__:null});class Pi{constructor(t,e=!0,o=[],r=5e3){this.ctx=t,this.iframes=e,this.exclude=o,this.iframesTimeout=r}static matches(t,e){const o="string"==typeof e?[e]:e,r=t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;if(r){let e=!1;return o.every((o=>!r.call(t,o)||(e=!0,!1))),e}return!1}getContexts(){let t,e=[];return t=void 0!==this.ctx&&this.ctx?NodeList.prototype.isPrototypeOf(this.ctx)?Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?this.ctx:"string"==typeof this.ctx?Array.prototype.slice.call(document.querySelectorAll(this.ctx)):[this.ctx]:[],t.forEach((t=>{const o=e.filter((e=>e.contains(t))).length>0;-1!==e.indexOf(t)||o||e.push(t)})),e}getIframeContents(t,e,o=(()=>{})){let r;try{const e=t.contentWindow;if(r=e.document,!e||!r)throw new Error("iframe inaccessible")}catch(t){o()}r&&e(r)}isIframeBlank(t){const e="about:blank",o=t.getAttribute("src").trim();return t.contentWindow.location.href===e&&o!==e&&o}observeIframeLoad(t,e,o){let r=!1,i=null;const n=()=>{if(!r){r=!0,clearTimeout(i);try{this.isIframeBlank(t)||(t.removeEventListener("load",n),this.getIframeContents(t,e,o))}catch(t){o()}}};t.addEventListener("load",n),i=setTimeout(n,this.iframesTimeout)}onIframeReady(t,e,o){try{"complete"===t.contentWindow.document.readyState?this.isIframeBlank(t)?this.observeIframeLoad(t,e,o):this.getIframeContents(t,e,o):this.observeIframeLoad(t,e,o)}catch(t){o()}}waitForIframes(t,e){let o=0;this.forEachIframe(t,(()=>!0),(t=>{o++,this.waitForIframes(t.querySelector("html"),(()=>{--o||e()}))}),(t=>{t||e()}))}forEachIframe(t,e,o,r=(()=>{})){let i=t.querySelectorAll("iframe"),n=i.length,a=0;i=Array.prototype.slice.call(i);const s=()=>{--n<=0&&r(a)};n||s(),i.forEach((t=>{Pi.matches(t,this.exclude)?s():this.onIframeReady(t,(r=>{e(t)&&(a++,o(r)),s()}),s)}))}createIterator(t,e,o){return document.createNodeIterator(t,e,o,!1)}createInstanceOnIframe(t){return new Pi(t.querySelector("html"),this.iframes)}compareNodeIframe(t,e,o){if(t.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING){if(null===e)return!0;if(e.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING)return!0}return!1}getIteratorNode(t){const e=t.previousNode();let o;return o=(null===e||t.nextNode())&&t.nextNode(),{prevNode:e,node:o}}checkIframeFilter(t,e,o,r){let i=!1,n=!1;return r.forEach(((t,e)=>{t.val===o&&(i=e,n=t.handled)})),this.compareNodeIframe(t,e,o)?(!1!==i||n?!1===i||n||(r[i].handled=!0):r.push({val:o,handled:!0}),!0):(!1===i&&r.push({val:o,handled:!1}),!1)}handleOpenIframes(t,e,o,r){t.forEach((t=>{t.handled||this.getIframeContents(t.val,(t=>{this.createInstanceOnIframe(t).forEachNode(e,o,r)}))}))}iterateThroughNodes(t,e,o,r,i){const n=this.createIterator(e,t,r);let a,s,c=[],l=[],f=()=>(({prevNode:s,node:a}=this.getIteratorNode(n)),a);for(;f();)this.iframes&&this.forEachIframe(e,(t=>this.checkIframeFilter(a,s,t,c)),(e=>{this.createInstanceOnIframe(e).forEachNode(t,(t=>l.push(t)),r)})),l.push(a);l.forEach((t=>{o(t)})),this.iframes&&this.handleOpenIframes(c,t,o,r),i()}forEachNode(t,e,o,r=(()=>{})){const i=this.getContexts();let n=i.length;n||r(),i.forEach((i=>{const a=()=>{this.iterateThroughNodes(t,i,e,o,(()=>{--n<=0&&r()}))};this.iframes?this.waitForIframes(i,a):a()}))}}const Fi=function(t){const e=new class{constructor(t){this.ctx=t,this.ie=!1;const e=window.navigator.userAgent;(e.indexOf("MSIE")>-1||e.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(t){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},t)}get opt(){return this._opt}get iterator(){return new Pi(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(t,e="debug"){const o=this.opt.log;this.opt.debug&&"object"==typeof o&&"function"==typeof o[e]&&o[e](`mark.js: ${t}`)}escapeStr(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(t){return"disabled"!==this.opt.wildcards&&(t=this.setupWildcardsRegExp(t)),t=this.escapeStr(t),Object.keys(this.opt.synonyms).length&&(t=this.createSynonymsRegExp(t)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),this.opt.diacritics&&(t=this.createDiacriticsRegExp(t)),t=this.createMergedBlanksRegExp(t),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.createJoinersRegExp(t)),"disabled"!==this.opt.wildcards&&(t=this.createWildcardsRegExp(t)),this.createAccuracyRegExp(t)}createSynonymsRegExp(t){const e=this.opt.synonyms,o=this.opt.caseSensitive?"":"i",r=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let i in e)if(e.hasOwnProperty(i)){const n=e[i],a="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(i):this.escapeStr(i),s="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(n):this.escapeStr(n);""!==a&&""!==s&&(t=t.replace(new RegExp(`(${this.escapeStr(a)}|${this.escapeStr(s)})`,`gm${o}`),r+`(${this.processSynomyms(a)}|`+`${this.processSynomyms(s)})`+r))}return t}processSynomyms(t){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),t}setupWildcardsRegExp(t){return(t=t.replace(/(?:\\)*\?/g,(t=>"\\"===t.charAt(0)?"?":""))).replace(/(?:\\)*\*/g,(t=>"\\"===t.charAt(0)?"*":""))}createWildcardsRegExp(t){let e="withSpaces"===this.opt.wildcards;return t.replace(/\u0001/g,e?"[\\S\\s]?":"\\S?").replace(/\u0002/g,e?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(t){return t.replace(/[^(|)\\]/g,((t,e,o)=>{let r=o.charAt(e+1);return/[(|)\\]/.test(r)||""===r?t:t+"\0"}))}createJoinersRegExp(t){let e=[];const o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&e.push(this.escapeStr(o.join(""))),this.opt.ignoreJoiners&&e.push("\\u00ad\\u200b\\u200c\\u200d"),e.length?t.split(/\u0000+/).join(`[${e.join("")}]*`):t}createDiacriticsRegExp(t){const e=this.opt.caseSensitive?"":"i",o=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"];let r=[];return t.split("").forEach((i=>{o.every((o=>{if(-1!==o.indexOf(i)){if(r.indexOf(o)>-1)return!1;t=t.replace(new RegExp(`[${o}]`,`gm${e}`),`[${o}]`),r.push(o)}return!0}))})),t}createMergedBlanksRegExp(t){return t.replace(/[\s]+/gim,"[\\s]+")}createAccuracyRegExp(t){let e=this.opt.accuracy,o="string"==typeof e?e:e.value,r="string"==typeof e?[]:e.limiters,i="";switch(r.forEach((t=>{i+=`|${this.escapeStr(t)}`})),o){case"partially":default:return`()(${t})`;case"complementary":return i="\\s"+(i||this.escapeStr("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿")),`()([^${i}]*${t}[^${i}]*)`;case"exactly":return`(^|\\s${i})(${t})(?=$|\\s${i})`}}getSeparatedKeywords(t){let e=[];return t.forEach((t=>{this.opt.separateWordSearch?t.split(" ").forEach((t=>{t.trim()&&-1===e.indexOf(t)&&e.push(t)})):t.trim()&&-1===e.indexOf(t)&&e.push(t)})),{keywords:e.sort(((t,e)=>e.length-t.length)),length:e.length}}isNumeric(t){return Number(parseFloat(t))==t}checkRanges(t){if(!Array.isArray(t)||"[object Object]"!==Object.prototype.toString.call(t[0]))return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(t),[];const e=[];let o=0;return t.sort(((t,e)=>t.start-e.start)).forEach((t=>{let{start:r,end:i,valid:n}=this.callNoMatchOnInvalidRanges(t,o);n&&(t.start=r,t.length=i-r,e.push(t),o=i)})),e}callNoMatchOnInvalidRanges(t,e){let o,r,i=!1;return t&&void 0!==t.start?(o=parseInt(t.start,10),r=o+parseInt(t.length,10),this.isNumeric(t.start)&&this.isNumeric(t.length)&&r-e>0&&r-o>0?i=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(t)}`),this.opt.noMatch(t))):(this.log(`Ignoring invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)),{start:o,end:r,valid:i}}checkWhitespaceRanges(t,e,o){let r,i=!0,n=o.length,a=e-n,s=parseInt(t.start,10)-a;return s=s>n?n:s,r=s+parseInt(t.length,10),r>n&&(r=n,this.log(`End range automatically set to the max value of ${n}`)),s<0||r-s<0||s>n||r>n?(i=!1,this.log(`Invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)):""===o.substring(s,r).replace(/\s+/g,"")&&(i=!1,this.log("Skipping whitespace only range: "+JSON.stringify(t)),this.opt.noMatch(t)),{start:s,end:r,valid:i}}getTextNodes(t){let e="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,(t=>{o.push({start:e.length,end:(e+=t.textContent).length,node:t})}),(t=>this.matchesExclude(t.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT),(()=>{t({value:e,nodes:o})}))}matchesExclude(t){return Pi.matches(t,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(t,e,o){const r=this.opt.element?this.opt.element:"mark",i=t.splitText(e),n=i.splitText(o-e);let a=document.createElement(r);return a.setAttribute("data-markjs","true"),this.opt.className&&a.setAttribute("class",this.opt.className),a.textContent=i.textContent,i.parentNode.replaceChild(a,i),n}wrapRangeInMappedTextNode(t,e,o,r,i){t.nodes.every(((n,a)=>{const s=t.nodes[a+1];if(void 0===s||s.start>e){if(!r(n.node))return!1;const s=e-n.start,c=(o>n.end?n.end:o)-n.start,l=t.value.substr(0,n.start),f=t.value.substr(c+n.start);if(n.node=this.wrapRangeInTextNode(n.node,s,c),t.value=l+f,t.nodes.forEach(((e,o)=>{o>=a&&(t.nodes[o].start>0&&o!==a&&(t.nodes[o].start-=c),t.nodes[o].end-=c)})),o-=c,i(n.node.previousSibling,n.start),!(o>n.end))return!1;e=n.end}return!0}))}wrapMatches(t,e,o,r,i){const n=0===e?0:e+1;this.getTextNodes((e=>{e.nodes.forEach((e=>{let i;for(e=e.node;null!==(i=t.exec(e.textContent))&&""!==i[n];){if(!o(i[n],e))continue;let a=i.index;if(0!==n)for(let t=1;t<n;t++)a+=i[t].length;e=this.wrapRangeInTextNode(e,a,a+i[n].length),r(e.previousSibling),t.lastIndex=0}})),i()}))}wrapMatchesAcrossElements(t,e,o,r,i){const n=0===e?0:e+1;this.getTextNodes((e=>{let a;for(;null!==(a=t.exec(e.value))&&""!==a[n];){let i=a.index;if(0!==n)for(let t=1;t<n;t++)i+=a[t].length;const s=i+a[n].length;this.wrapRangeInMappedTextNode(e,i,s,(t=>o(a[n],t)),((e,o)=>{t.lastIndex=o,r(e)}))}i()}))}wrapRangeFromIndex(t,e,o,r){this.getTextNodes((i=>{const n=i.value.length;t.forEach(((t,r)=>{let{start:a,end:s,valid:c}=this.checkWhitespaceRanges(t,n,i.value);c&&this.wrapRangeInMappedTextNode(i,a,s,(o=>e(o,t,i.value.substring(a,s),r)),(e=>{o(e,t)}))})),r()}))}unwrapMatches(t){const e=t.parentNode;let o=document.createDocumentFragment();for(;t.firstChild;)o.appendChild(t.removeChild(t.firstChild));e.replaceChild(o,t),this.ie?this.normalizeTextNode(e):e.normalize()}normalizeTextNode(t){if(t){if(3===t.nodeType)for(;t.nextSibling&&3===t.nextSibling.nodeType;)t.nodeValue+=t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);else this.normalizeTextNode(t.firstChild);this.normalizeTextNode(t.nextSibling)}}markRegExp(t,e){this.opt=e,this.log(`Searching with expression "${t}"`);let o=0,r="wrapMatches";this.opt.acrossElements&&(r="wrapMatchesAcrossElements"),this[r](t,this.opt.ignoreGroups,((t,e)=>this.opt.filter(e,t,o)),(t=>{o++,this.opt.each(t)}),(()=>{0===o&&this.opt.noMatch(t),this.opt.done(o)}))}mark(t,e){this.opt=e;let o=0,r="wrapMatches";const{keywords:i,length:n}=this.getSeparatedKeywords("string"==typeof t?[t]:t),a=this.opt.caseSensitive?"":"i",s=t=>{let e=new RegExp(this.createRegExp(t),`gm${a}`),c=0;this.log(`Searching with expression "${e}"`),this[r](e,1,((e,r)=>this.opt.filter(r,t,o,c)),(t=>{c++,o++,this.opt.each(t)}),(()=>{0===c&&this.opt.noMatch(t),i[n-1]===t?this.opt.done(o):s(i[i.indexOf(t)+1])}))};this.opt.acrossElements&&(r="wrapMatchesAcrossElements"),0===n?this.opt.done(o):s(i[0])}markRanges(t,e){this.opt=e;let o=0,r=this.checkRanges(t);r&&r.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(r)),this.wrapRangeFromIndex(r,((t,e,o,r)=>this.opt.filter(t,e,o,r)),((t,e)=>{o++,this.opt.each(t,e)}),(()=>{this.opt.done(o)}))):this.opt.done(o)}unmark(t){this.opt=t;let e=this.opt.element?this.opt.element:"*";e+="[data-markjs]",this.opt.className&&(e+=`.${this.opt.className}`),this.log(`Removal selector "${e}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,(t=>{this.unwrapMatches(t)}),(t=>{const o=Pi.matches(t,e),r=this.matchesExclude(t);return!o||r?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}),this.opt.done)}}(t);return this.mark=(t,o)=>(e.mark(t,o),this),this.markRegExp=(t,o)=>(e.markRegExp(t,o),this),this.markRanges=(t,o)=>(e.markRanges(t,o),this),this.unmark=t=>(e.unmark(t),this),this},_i=po.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),Ti=ut`
143
- .highlight-html-match {
144
- background: ${_i};
145
- }
146
- `,Di={className:"highlight-html-match"};function Mi(t,e){var o;let r=t.getAttribute("data-highlight-html-query");if((null!=r?r:"")!==(null!=e?e:"")){const r=new Fi(t);if(r.unmark(Di),e&&e.trim()){r.mark(e.replace(/"[^"]+"/g,""),{...Di,separateWordSearch:!0});(null!==(o=e.match(/"[^"]+"/g))&&void 0!==o?o:[]).forEach((t=>r.mark(t.replace(/"/g,""),{...Di,separateWordSearch:!1})))}}t.setAttribute("data-highlight-html-query",null!=e?e:"")}var zi=Object.freeze({__proto__:null,highlightHtml:Mi,highlightHtmlColorCssVariable:_i,highlightHtmlStyles:Ti});const Ki=ut`
147
- .ft-no-text-select {
148
- -webkit-touch-callout: none;
149
- -webkit-user-select: none;
150
- -khtml-user-select: none;
151
- -moz-user-select: none;
152
- -ms-user-select: none;
153
- user-select: none;
154
- }
155
- `,ji=ut`
156
- .ft-word-wrap {
157
- white-space: normal;
158
- word-wrap: break-word;
159
- -ms-word-break: break-all;
160
- word-break: break-all;
161
- word-break: break-word;
162
- -ms-hyphens: auto;
163
- -moz-hyphens: auto;
164
- -webkit-hyphens: auto;
165
- hyphens: auto
166
- }
167
- `,Hi=ut`
168
- .ft-safari-ellipsis-fix {
169
- margin-right: 0;
170
-
171
- }
172
-
173
- .ft-safari-ellipsis-fix:after {
174
- content: "\\0000a0";
175
- display: inline-block;
176
- width: 0;
177
- }
178
- `;var Zi=Object.freeze({__proto__:null,noTextSelect:Ki,safariEllipsisFix:Hi,wordWrap:ji}),$i=Object.freeze({__proto__:null});class Gi{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,r;t=this.resolvePluralKey(t,e);let i=null!==(r=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==r?r:"";return e.forEach(((t,e)=>i=i.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),i}resolvePluralKey(t,e){for(let o of e)if("number"==typeof o){const e=`${String(t)}[\\=${o}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const o=o=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(o):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(o):t.toLocaleString(o);try{return o(document.documentElement.lang)}catch(t){return o()}}}var Vi=Object.freeze({__proto__:null,ParametrizedLabelResolver:Gi});const qi=t=>{const e=null!=t?t:{};return(t,o)=>{var r;const i={hasChanged:(t,e)=>!ao(t,e),attribute:!1,...e};we(i)(t,o);const n=t.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(o,{selector:null!==(r=e.selector)&&void 0!==r?r:t=>t[o],store:e.store})}};class Yi{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter((e=>e.type!==t.type))),this.queue.push(t)}consume(t){const e=this.queue.find((e=>e.type===t));return e&&(this.queue=this.queue.filter((t=>t!==e))),e}}function Ji(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Xi,Qi,tn;const en=Symbol("internalReduxEventsUnsubscribers"),on=Symbol("internalStoresUnsubscribers"),rn=Symbol("internalStores");class nn extends Wi{constructor(){super(...arguments),this[Xi]=new Map,this[Qi]=new Map,this[tn]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[rn].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[rn].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[rn].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:Ji(t)?t.name:void 0)&&void 0!==o?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[rn].delete(e)}setupStore(t,e){this[rn].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[rn].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,e)=>{const o=this.constructor.getPropertyOptions(e);if(!(null==o?void 0:o.attribute)||!this.hasAttribute("string"==typeof(null==o?void 0:o.attribute)?o.attribute:e)){const o=this.getStore(t.store);o&&(t.store?this[on].has(t.store):this[on].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[on].set(t,e.subscribe((()=>this.updateFromStores()))),Ji(e)&&e.eventBus&&(null===(o=this.reduxConstructor.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const r=t=>this[o](t);e.eventBus.addEventListener(t.eventName,r),this[en].push((()=>e.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[on].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[en].forEach((t=>t())),this[en]=[]}unsubscribeFromStore(t){this[on].has(t)&&this[on].get(t)(),this[on].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function an(t){for(var e=arguments.length,o=Array(e>1?e-1:0),r=1;r<e;r++)o[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function sn(t){return!!t&&!!t[Gn]}function cn(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var o=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return o===Object||"function"==typeof o&&Function.toString.call(o)===Vn}(t)||Array.isArray(t)||!!t[$n]||!!(null===(e=t.constructor)||void 0===e?void 0:e[$n])||pn(t)||gn(t))}function ln(t,e,o){void 0===o&&(o=!1),0===fn(t)?(o?Object.keys:qn)(t).forEach((function(r){o&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(o,r){return e(r,o,t)}))}function fn(t){var e=t[Gn];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:pn(t)?2:gn(t)?3:0}function un(t,e){return 2===fn(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function hn(t,e,o){var r=fn(t);2===r?t.set(e,o):3===r?t.add(o):t[e]=o}function dn(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function pn(t){return Kn&&t instanceof Map}function gn(t){return jn&&t instanceof Set}function yn(t){return t.o||t.t}function bn(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Yn(t);delete e[Gn];for(var o=qn(e),r=0;r<o.length;r++){var i=o[r],n=e[i];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[i]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function mn(t,e){return void 0===e&&(e=!1),On(t)||sn(t)||!cn(t)||(fn(t)>1&&(t.set=t.add=t.clear=t.delete=vn),Object.freeze(t),e&&ln(t,(function(t,e){return mn(e,!0)}),!0)),t}function vn(){an(2)}function On(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function wn(t){var e=Jn[t];return e||an(18,t),e}function Sn(){return Mn}function xn(t,e){e&&(wn("Patches"),t.u=[],t.s=[],t.v=e)}function Cn(t){Nn(t),t.p.forEach(Rn),t.p=null}function Nn(t){t===Mn&&(Mn=t.l)}function En(t){return Mn={p:[],l:Mn,h:t,m:!0,_:0}}function Rn(t){var e=t[Gn];0===e.i||1===e.i?e.j():e.g=!0}function In(t,e){e._=e.p.length;var o=e.p[0],r=void 0!==t&&t!==o;return e.h.O||wn("ES5").S(e,t,r),r?(o[Gn].P&&(Cn(e),an(4)),cn(t)&&(t=Ln(e,t),e.l||kn(e,t)),e.u&&wn("Patches").M(o[Gn].t,t,e.u,e.s)):t=Ln(e,o,[]),Cn(e),e.u&&e.v(e.u,e.s),t!==Zn?t:void 0}function Ln(t,e,o){if(On(e))return e;var r=e[Gn];if(!r)return ln(e,(function(i,n){return Un(t,r,e,i,n,o)}),!0),e;if(r.A!==t)return e;if(!r.P)return kn(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=bn(r.k):r.o,n=i,a=!1;3===r.i&&(n=new Set(i),i.clear(),a=!0),ln(n,(function(e,n){return Un(t,r,i,e,n,o,a)})),kn(t,i,!1),o&&t.u&&wn("Patches").N(r,o,t.u,t.s)}return r.o}function Un(t,e,o,r,i,n,a){if(sn(i)){var s=Ln(t,i,n&&e&&3!==e.i&&!un(e.R,r)?n.concat(r):void 0);if(hn(o,r,s),!sn(s))return;t.m=!1}else a&&o.add(i);if(cn(i)&&!On(i)){if(!t.h.D&&t._<1)return;Ln(t,i),e&&e.A.l||kn(t,i)}}function kn(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&mn(e,o)}function Wn(t,e){var o=t[Gn];return(o?yn(o):t)[e]}function An(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var r=Object.getOwnPropertyDescriptor(o,e);if(r)return r;o=Object.getPrototypeOf(o)}}function Bn(t){t.P||(t.P=!0,t.l&&Bn(t.l))}function Pn(t){t.o||(t.o=bn(t.t))}function Fn(t,e,o){var r=pn(e)?wn("MapSet").F(e,o):gn(e)?wn("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),r={i:o?1:0,A:e?e.A:Sn(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},i=r,n=Xn;o&&(i=[r],n=Qn);var a=Proxy.revocable(i,n),s=a.revoke,c=a.proxy;return r.k=c,r.j=s,c}(e,o):wn("ES5").J(e,o);return(o?o.A:Sn()).p.push(r),r}function _n(t){return sn(t)||an(22,t),function t(e){if(!cn(e))return e;var o,r=e[Gn],i=fn(e);if(r){if(!r.P&&(r.i<4||!wn("ES5").K(r)))return r.t;r.I=!0,o=Tn(e,i),r.I=!1}else o=Tn(e,i);return ln(o,(function(e,i){r&&function(t,e){return 2===fn(t)?t.get(e):t[e]}(r.t,e)===i||hn(o,e,t(i))})),3===i?new Set(o):o}(t)}function Tn(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return bn(t)}Xi=on,Qi=rn,tn=en,nn.reduxProperties=new Map,nn.reduxReactiveProperties=new Set,nn.reduxEventListeners=new Map;var Dn,Mn,zn="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Kn="undefined"!=typeof Map,jn="undefined"!=typeof Set,Hn="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Zn=zn?Symbol.for("immer-nothing"):((Dn={})["immer-nothing"]=!0,Dn),$n=zn?Symbol.for("immer-draftable"):"__$immer_draftable",Gn=zn?Symbol.for("immer-state"):"__$immer_state",Vn=""+Object.prototype.constructor,qn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Yn=Object.getOwnPropertyDescriptors||function(t){var e={};return qn(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},Jn={},Xn={get:function(t,e){if(e===Gn)return t;var o=yn(t);if(!un(o,e))return function(t,e,o){var r,i=An(e,o);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(t.k):void 0}(t,o,e);var r=o[e];return t.I||!cn(r)?r:r===Wn(t.t,e)?(Pn(t),t.o[e]=Fn(t.A.h,r,t)):r},has:function(t,e){return e in yn(t)},ownKeys:function(t){return Reflect.ownKeys(yn(t))},set:function(t,e,o){var r=An(yn(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,o),!0;if(!t.P){var i=Wn(yn(t),e),n=null==i?void 0:i[Gn];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(dn(o,i)&&(void 0!==o||un(t.t,e)))return!0;Pn(t),Bn(t)}return t.o[e]===o&&(void 0!==o||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==Wn(t.t,e)||e in t.t?(t.R[e]=!1,Pn(t),Bn(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=yn(t),r=Reflect.getOwnPropertyDescriptor(o,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:o[e]}:r},defineProperty:function(){an(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){an(12)}},Qn={};ln(Xn,(function(t,e){Qn[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Qn.deleteProperty=function(t,e){return Qn.set.call(this,t,e,void 0)},Qn.set=function(t,e,o){return Xn.set.call(this,t[0],e,o,t[0])};var ta=function(){function t(t){var e=this;this.O=Hn,this.D=!0,this.produce=function(t,o,r){if("function"==typeof t&&"function"!=typeof o){var i=o;o=t;var n=e;return function(t){var e=this;void 0===t&&(t=i);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var r;return(r=o).call.apply(r,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&an(6),void 0!==r&&"function"!=typeof r&&an(7),cn(t)){var s=En(e),c=Fn(e,t,void 0),l=!0;try{a=o(c),l=!1}finally{l?Cn(s):Nn(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return xn(s,r),In(t,s)}),(function(t){throw Cn(s),t})):(xn(s,r),In(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===Zn&&(a=void 0),e.D&&mn(a,!0),r){var f=[],u=[];wn("Patches").M(t,a,f,u),r(f,u)}return a}an(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var r=arguments.length,i=Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(i))}))};var r,i,n=e.produce(t,o,(function(t,e){r=t,i=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,r,i]})):[n,r,i]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){cn(t)||an(8),sn(t)&&(t=_n(t));var e=En(this),o=Fn(this,t,void 0);return o[Gn].C=!0,Nn(e),o},e.finishDraft=function(t,e){var o=(t&&t[Gn]).A;return xn(o,e),In(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Hn&&an(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var r=e[o];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}o>-1&&(e=e.slice(o+1));var i=wn("Patches").$;return sn(t)?i(t,e):this.produce(t,(function(t){return i(t,e)}))},t}(),ea=new ta,oa=ea.produce;function ra(t){return ra="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},ra(t)}function ia(t){var e=function(t,e){if("object"!==ra(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,e||"default");if("object"!==ra(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ra(e)?e:String(e)}function na(t,e,o){return(e=ia(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function aa(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function sa(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?aa(Object(o),!0).forEach((function(e){na(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):aa(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function ca(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. "}ea.produceWithPatches.bind(ea),ea.setAutoFreeze.bind(ea),ea.setUseProxies.bind(ea),ea.applyPatches.bind(ea),ea.createDraft.bind(ea),ea.finishDraft.bind(ea);var la="function"==typeof Symbol&&Symbol.observable||"@@observable",fa=function(){return Math.random().toString(36).substring(7).split("").join(".")},ua={INIT:"@@redux/INIT"+fa(),REPLACE:"@@redux/REPLACE"+fa(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+fa()}};function ha(t,e,o){var r;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(ca(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(ca(1));return o(ha)(t,e)}if("function"!=typeof t)throw new Error(ca(2));var i=t,n=e,a=[],s=a,c=!1;function l(){s===a&&(s=a.slice())}function f(){if(c)throw new Error(ca(3));return n}function u(t){if("function"!=typeof t)throw new Error(ca(4));if(c)throw new Error(ca(5));var e=!0;return l(),s.push(t),function(){if(e){if(c)throw new Error(ca(6));e=!1,l();var o=s.indexOf(t);s.splice(o,1),a=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(ca(7));if(void 0===t.type)throw new Error(ca(8));if(c)throw new Error(ca(9));try{c=!0,n=i(n,t)}finally{c=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return h({type:ua.INIT}),(r={dispatch:h,subscribe:u,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(ca(10));i=t,h({type:ua.REPLACE})}})[la]=function(){var t,e=u;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(ca(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[la]=function(){return this},t},r}function da(t){for(var e=Object.keys(t),o={},r=0;r<e.length;r++){var i=e[r];"function"==typeof t[i]&&(o[i]=t[i])}var n,a=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:ua.INIT}))throw new Error(ca(12));if(void 0===o(void 0,{type:ua.PROBE_UNKNOWN_ACTION()}))throw new Error(ca(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var r=!1,i={},s=0;s<a.length;s++){var c=a[s],l=o[c],f=t[c],u=l(f,e);if(void 0===u)throw e&&e.type,new Error(ca(14));i[c]=u,r=r||u!==f}return(r=r||a.length!==Object.keys(t).length)?i:t}}function pa(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function ga(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(t){return function(){var o=t.apply(void 0,arguments),r=function(){throw new Error(ca(15))},i={getState:o.getState,dispatch:function(){return r.apply(void 0,arguments)}},n=e.map((function(t){return t(i)}));return r=pa.apply(void 0,n)(o.dispatch),sa(sa({},o),{},{dispatch:r})}}}function ya(t){return function(e){var o=e.dispatch,r=e.getState;return function(e){return function(i){return"function"==typeof i?i(o,r,t):e(i)}}}}var ba=ya();ba.withExtraArgument=ya;var ma,va=ba,Oa=(ma=function(t,e){return ma=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},ma(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}ma(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),wa=function(t,e){var o,r,i,n,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,r&&(i=2&n[0]?r.return:n[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,n[1])).done)return i;switch(r=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,r=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){a.label=n[1];break}if(6===n[0]&&a.label<i[1]){a.label=i[1],i=n;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(n);break}i[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],r=0}finally{o=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},Sa=function(t,e){for(var o=0,r=e.length,i=t.length;o<r;o++,i++)t[i]=e[o];return t},xa=Object.defineProperty,Ca=Object.defineProperties,Na=Object.getOwnPropertyDescriptors,Ea=Object.getOwnPropertySymbols,Ra=Object.prototype.hasOwnProperty,Ia=Object.prototype.propertyIsEnumerable,La=function(t,e,o){return e in t?xa(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Ua=function(t,e){for(var o in e||(e={}))Ra.call(e,o)&&La(t,o,e[o]);if(Ea)for(var r=0,i=Ea(e);r<i.length;r++){o=i[r];Ia.call(e,o)&&La(t,o,e[o])}return t},ka=function(t,e){return Ca(t,Na(e))},Wa="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?pa:pa.apply(null,arguments)};var Aa=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Oa(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Sa([void 0],t[0].concat(this)))):new(e.bind.apply(e,Sa([void 0],t.concat(this))))},e}(Array),Ba=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Oa(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Sa([void 0],t[0].concat(this)))):new(e.bind.apply(e,Sa([void 0],t.concat(this))))},e}(Array);function Pa(t){return cn(t)?oa(t,(function(){})):t}function Fa(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var r=new Aa;o&&(!function(t){return"boolean"==typeof t}(o)?r.push(va.withExtraArgument(o.extraArgument)):r.push(va));return r}(t)}}function _a(t){var e,o=Fa(),r=t||{},i=r.reducer,n=void 0===i?void 0:i,a=r.middleware,s=void 0===a?o():a,c=r.devTools,l=void 0===c||c,f=r.preloadedState,u=void 0===f?void 0:f,h=r.enhancers,d=void 0===h?void 0:h;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var o=e;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return e===o}(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=da(n)}var p=s;"function"==typeof p&&(p=p(o));var g=ga.apply(void 0,p),y=pa;l&&(y=Wa(Ua({trace:!1},"object"==typeof l&&l)));var b=new Ba(g),m=b;return Array.isArray(d)?m=Sa([g],d):"function"==typeof d&&(m=d(b)),ha(e,u,y.apply(void 0,m))}function Ta(t,e){function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(e){var i=e.apply(void 0,o);if(!i)throw new Error("prepareAction did not return an object");return Ua(Ua({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:o[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(e){return e.type===t},o}function Da(t){var e,o={},r=[],i={addCase:function(t,e){var r="string"==typeof t?t:t.type;if(r in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[r]=e,i},addMatcher:function(t,e){return r.push({matcher:t,reducer:e}),i},addDefaultCase:function(t){return e=t,i}};return t(i),[o,r,e]}function Ma(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,r="function"==typeof t.initialState?t.initialState:Pa(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},c={};function l(){var e="function"==typeof t.extraReducers?Da(t.extraReducers):[t.extraReducers],o=e[0],i=void 0===o?{}:o,n=e[1],a=void 0===n?[]:n,c=e[2],l=void 0===c?void 0:c,f=Ua(Ua({},i),s);return function(t,e,o,r){void 0===o&&(o=[]);var i,n="function"==typeof e?Da(e):[e,o,r],a=n[0],s=n[1],c=n[2];if(function(t){return"function"==typeof t}(t))i=function(){return Pa(t())};else{var l=Pa(t);i=function(){return l}}function f(t,e){void 0===t&&(t=i());var o=Sa([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[c]),o.reduce((function(t,o){if(o){var r;if(sn(t))return void 0===(r=o(t,e))?t:r;if(cn(t))return oa(t,(function(t){return o(t,e)}));if(void 0===(r=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return t}),t)}return f.getInitialState=i,f}(r,(function(t){for(var e in f)t.addCase(e,f[e]);for(var o=0,r=a;o<r.length;o++){var i=r[o];t.addMatcher(i.matcher,i.reducer)}l&&t.addDefaultCase(l)}))}return n.forEach((function(t){var o,r,n=i[t],l=e+"/"+t;"reducer"in n?(o=n.reducer,r=n.prepare):o=n,a[t]=o,s[l]=o,c[t]=r?Ta(l,r):Ta(l)})),{name:e,reducer:function(t,e){return o||(o=l()),o(t,e)},actions:c,caseReducers:a,getInitialState:function(){return o||(o=l()),o.getInitialState()}}}var za=["name","message","stack","code"],Ka=function(t,e){this.payload=t,this.meta=e},ja=function(t,e){this.payload=t,this.meta=e},Ha=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,r=za;o<r.length;o++){var i=r[o];"string"==typeof t[i]&&(e[i]=t[i])}return e}return{message:String(t)}};function Za(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,o){var r=Ta(t+"/fulfilled",(function(t,e,o,r){return{payload:t,meta:ka(Ua({},r||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),i=Ta(t+"/pending",(function(t,e,o){return{payload:void 0,meta:ka(Ua({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Ta(t+"/rejected",(function(t,e,r,i,n){return{payload:i,error:(o&&o.serializeError||Ha)(t||"Rejected"),meta:ka(Ua({},n||{}),{arg:r,requestId:e,rejectedWithValue:!!i,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(s,c,l){var f,u=(null==o?void 0:o.idGenerator)?o.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",o=t;o--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),h=new a;function d(t){f=t,h.abort()}var p=function(){return a=this,p=null,g=function(){var a,p,g,y,b,m;return wa(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),y=null==(a=null==o?void 0:o.condition)?void 0:a.call(o,t,{getState:c,extra:l}),null===(O=y)||"object"!=typeof O||"function"!=typeof O.then?[3,2]:[4,y];case 1:y=v.sent(),v.label=2;case 2:if(!1===y||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return h.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(i(u,t,null==(p=null==o?void 0:o.getPendingMeta)?void 0:p.call(o,{requestId:u,arg:t},{getState:c,extra:l}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:c,extra:l,requestId:u,signal:h.signal,abort:d,rejectWithValue:function(t,e){return new Ka(t,e)},fulfillWithValue:function(t,e){return new ja(t,e)}})).then((function(e){if(e instanceof Ka)throw e;return e instanceof ja?r(e.payload,u,t,e.meta):r(e,u,t)}))])];case 3:return g=v.sent(),[3,5];case 4:return m=v.sent(),g=m instanceof Ka?n(null,u,t,m.payload,m.meta):n(m,u,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&n.match(g)&&g.meta.condition||s(g),[2,g]}var O}))},new Promise((function(t,e){var o=function(t){try{i(g.next(t))}catch(t){e(t)}},r=function(t){try{i(g.throw(t))}catch(t){e(t)}},i=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,r)};i((g=g.apply(a,p)).next())}));var a,p,g}();return Object.assign(p,{abort:d,requestId:u,arg:t,unwrap:function(){return p.then(Za)}})}}),{pending:i,rejected:n,fulfilled:r,typePrefix:t})}t.withTypes=function(){return t}}();var $a="listenerMiddleware";Ta($a+"/add"),Ta($a+"/removeAll"),Ta($a+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=i[t];return o?o.enumerable=e:i[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[Gn];return Xn.get(e,t)},set:function(e){var o=this[Gn];Xn.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var i=t[e][Gn];if(!i.P)switch(i.i){case 5:r(i)&&Bn(i);break;case 4:o(i)&&Bn(i)}}}function o(t){for(var e=t.t,o=t.k,r=qn(o),i=r.length-1;i>=0;i--){var n=r[i];if(n!==Gn){var a=e[n];if(void 0===a&&!un(e,n))return!0;var s=o[n],c=s&&s[Gn];if(c?c.t!==a:!dn(s,a))return!0}}var l=!!e[Gn];return r.length!==qn(e).length+(l?0:1)}function r(t){var e=t.k;if(e.length!==t.t.length)return!0;var o=Object.getOwnPropertyDescriptor(e,e.length-1);if(o&&!o.get)return!0;for(var r=0;r<e.length;r++)if(!e.hasOwnProperty(r))return!0;return!1}var i={};!function(t,e){Jn[t]||(Jn[t]=e)}("ES5",{J:function(e,o){var r=Array.isArray(e),i=function(e,o){if(e){for(var r=Array(o.length),i=0;i<o.length;i++)Object.defineProperty(r,""+i,t(i,!0));return r}var n=Yn(o);delete n[Gn];for(var a=qn(n),s=0;s<a.length;s++){var c=a[s];n[c]=t(c,e||!!n[c].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(r,e),n={i:r?5:4,A:o?o.A:Sn(),P:!1,I:!1,R:{},l:o,t:e,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,Gn,{value:n,writable:!0}),i},S:function(t,o,i){i?sn(o)&&o[Gn].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[Gn];if(o){var i=o.t,n=o.k,a=o.R,s=o.i;if(4===s)ln(n,(function(e){e!==Gn&&(void 0!==i[e]||un(i,e)?a[e]||t(n[e]):(a[e]=!0,Bn(o)))})),ln(i,(function(t){void 0!==n[t]||un(n,t)||(a[t]=!1,Bn(o))}));else if(5===s){if(r(o)&&(Bn(o),a.length=!0),n.length<i.length)for(var c=n.length;c<i.length;c++)a[c]=!1;else for(var l=i.length;l<n.length;l++)a[l]=!0;for(var f=Math.min(n.length,i.length),u=0;u<f;u++)n.hasOwnProperty(u)||(a[u]=!0),void 0===a[u]&&t(n[u])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):r(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Ga{static get(t){var e;const o="string"==typeof t?t:t.name,r="string"==typeof t?void 0:t,i=window.ftReduxStores[o];if(Ji(i))return i;if(null==r)return;const n=Ma({...r,reducers:null!==(e=r.reducers)&&void 0!==e?e:{}}),a=_a({reducer:(t,e)=>"CLEAR_FT_REDUX_STORE"===e.type?n.getInitialState():"string"==typeof e.type&&e.type.startsWith("DEFAULT_VALUE_SETTER__")?{...t,...e.overwrites}:n.reducer(t,e)});return window.ftReduxStores[r.name]=new Ga(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Yi,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const r=e,i=t[r];return i?(...t)=>{const e=i(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[r]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}var Va=Object.freeze({__proto__:null,FtCommandQueue:Yi,FtLitElementRedux:nn,FtReduxStore:Ga,clearAllStores:function(){var t;for(let e of Object.values(null!==(t=window.ftReduxStores)&&void 0!==t?t:{}))Ji(e)&&e.clear()},isFtReduxStore:Ji,redux:qi,reduxEventListener:t=>(e,o)=>{const r=e.constructor;r.reduxEventListeners=new Map(r.reduxEventListeners),r.reduxEventListeners.set(o,t)},reduxReactive:()=>(t,e)=>{var o;const r=t.constructor;r.reduxReactiveProperties=new Set(r.reduxReactiveProperties),null===(o=r.reduxReactiveProperties)||void 0===o||o.add(e)}});var qa=Object.freeze({__proto__:null,serializeRequest:function(t,e){var o,r,i,n;const a=new URLSearchParams({"content-lang":null!==(o=e.contentLocale)&&void 0!==o?o:"all"});if((null===(r=e.query)||void 0===r?void 0:r.length)>0&&a.append("query",e.query),e.scope&&"DEFAULT"!==e.scope&&a.append("scope",e.scope.toLowerCase()),e.virtualField&&a.append("virtual-field",e.virtualField.toLowerCase()),e.periodFilter){let t=e.periodFilter.period;const o=t?`_${t.from}_${t.to}`:"";a.append("period",e.periodFilter.periodType.toLowerCase()+o)}if((null===(i=e.sort)||void 0===i?void 0:i.length)>0&&"ft:lastEdition"===e.sort[0].key&&a.append("sort","last_update"),(null===(n=e.filters)||void 0===n?void 0:n.length)>0){const t=e.filters.map((t=>{const e=t.values.map((t=>t.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*"))).map((t=>encodeURIComponent(function(t){return`"${t}"`}(t)))).join("_");return`${t.key}~${e}`})).join("*");a.append("filters",t)}return new URL(`${t.replace(/\/+$/,"")}/search?${a.toString()}`).href}});const Ya=Symbol("elementInternals");var Ja,Xa,Qa,ts,es=Object.freeze({__proto__:null,toFtFormComponent:function(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Ya].form}constructor(...t){super(t),this[Ya]=this.attachInternals(),this[Ya].role=e}setFormValue(t){this[Ya].setFormValue(t)}}}});const os=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Qa=null===(Xa=null===(Ja=window.safari)||void 0===Ja?void 0:Ja.pushNotification)||void 0===Xa?void 0:Xa.toString())&&void 0!==Qa?Qa:""),rs="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=null!==(ts=window.ftGlobals)&&void 0!==ts?ts:{lit:me,litDecorators:Ce,litRepeat:_e,litClassMap:De,litStyleMap:je,litUnsafeHTML:$e,wcUtils:{...Xe,...Ye,...to,...oo,...uo,...yr,...Or,...Si,...pr,...Ai,...Bi,...so,...zi,...Zi,...$i,...Vi,...Va,...Ri,...qa,...es,isSafari:os,isTouchScreen:rs}};class is{constructor(t){this.paginatedToc=t,this.nodeByTocId={},this.knownPrettyUrls=new Set,this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,e,o){return t.flatMap((t=>(t.pageConfiguration&&this.registerPage(this.buildPage(t,o)),null==t.tocId?this.extractPagesToc(t.children,e,o):[{tocId:t.tocId,title:t.title,depth:e,children:this.extractPagesToc(t.children,e+1,t.tocId)}])))}convertNodes(t,e,o){return t.flatMap((t=>{var r,i,n;if(null==t.tocId)return[...this.convertSectionNodes(null!==(r=t.pageToc)&&void 0!==r?r:[],e,t.tocId),...this.convertNodes(t.children,e,t.tocId)];let a=null===(i=t.prettyUrl)||void 0===i?void 0:i.replace(/^\//,"");const s={tocId:t.tocId,contentId:t.contentId,title:t.title,hasRating:t.hasRating,origin:t.origin,prettyUrl:a,depth:e,parentTocId:o,children:[]};this.register(s);const c=this.convertSectionNodes(null!==(n=t.pageToc)&&void 0!==n?n:[],e+1,t.tocId),l=this.convertNodes(t.children,e+1,s.tocId);return s.children=[...c,...l],[s]}))}convertSectionNodes(t,e,o){return t.flatMap((t=>{var r;let i=null===(r=t.prettyUrl)||void 0===r?void 0:r.replace(/^\//,"");const n={...t,prettyUrl:i,depth:e,parentTocId:o,children:[]};return this.register(n),n.children=this.convertSectionNodes(t.children,e+1,t.tocId),[n]}))}buildPage(t,e){var o,r,i,n,a,s;const c={number:this.pages.length+1,title:null!==(o=t.title)&&void 0!==o?o:"",rootTocId:null!==(r=t.tocId)&&void 0!==r?r:"root",toc:(null!==(i=t.pageToc)&&void 0!==i?i:[]).map((t=>this.nodeByTocId[t.tocId])),topics:[],hiddenTopics:[],breadcrumb:e?this.buildBreadcrumb(this.nodeByTocId[e]):[]},l=(t,e)=>(e?c.topics:c.hiddenTopics).push(t),f=null!==(a=null===(n=t.pageConfiguration)||void 0===n?void 0:n.parentsVisibility)&&void 0!==a?a:[];return c.breadcrumb.forEach(((t,e)=>{l(t,f[e])})),t.tocId&&l(t.tocId,t.pageConfiguration.isVisible),c.topics.push(...this.tocIds(null!==(s=t.pageToc)&&void 0!==s?s:[])),c}registerPage(t){for(let e of[...t.topics,...t.hiddenTopics])this.pageByTocId[e]||(this.pageByTocId[e]=t);this.pages.push(t)}tocIds(t){return t.flatMap((t=>[t.tocId,...this.tocIds(t.children)]))}buildBreadcrumb(t){const e=[t.tocId];for(;null==t?void 0:t.parentTocId;)e.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return e}register(t){t.prettyUrl&&(this.knownPrettyUrls.has(t.prettyUrl)&&this.duplicatedPrettyUrls.add(t.prettyUrl),this.knownPrettyUrls.add(t.prettyUrl)),this.nodeByTocId[t.tocId]=t}}class ns{convertPaginatedToc(t){return new is(t).build()}}var as,ss,cs,ls,fs,us,hs,ds,ps,gs,ys,bs,ms,vs,Os,ws,Ss,xs;!function(t){!function(e){var o={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(o.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i=ArrayBuffer.isView||function(t){return t&&r.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function c(t){this.map={},t instanceof c?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function l(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function u(t){var e=new FileReader,o=f(e);return e.readAsArrayBuffer(t),o}function h(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function d(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=h(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||i(t))?this._bodyArrayBuffer=h(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(u)}),this.text=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,o=f(e);return e.readAsText(t),o}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),r=0;r<e.length;r++)o[r]=String.fromCharCode(e[r]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(t,e){t=n(t),e=a(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},c.prototype.delete=function(t){delete this.map[n(t)]},c.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},c.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},c.prototype.set=function(t,e){this.map[n(t)]=a(e)},c.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},c.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),s(t)},c.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},c.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),s(t)},o.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var p=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(t,e){var o,r,i=(e=e||{}).body;if(t instanceof g){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new c(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new c(e.headers)),this.method=(o=e.method||this.method||"GET",r=o.toUpperCase(),p.indexOf(r)>-1?r:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function y(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),r=o.shift().replace(/\+/g," "),i=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}})),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new c(e.headers),this.url=e.url||"",this._initBody(t)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},d.call(g.prototype),d.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];b.redirect=function(t,e){if(-1===m.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(t,r){return new Promise((function(i,n){var a=new g(t,r);if(a.signal&&a.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new c,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),r=o.shift().trim();if(r){var i=o.join(":").trim();e.append(r,i)}})),e)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;i(new b(r,o))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",l),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",l)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=c,t.Request=g,t.Response=b),e.Headers=c,e.Request=g,e.Response=b,e.fetch=v,Object.defineProperty(e,"W",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(as||(as={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(ss||(ss={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(cs||(cs={})),function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"}(ls||(ls={})),function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"}(fs||(fs={})),function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"}(us||(us={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(hs||(hs={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(ds||(ds={})),function(t){t.ASC="ASC",t.DESC="DESC"}(ps||(ps={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(gs||(gs={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(ys||(ys={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(bs||(bs={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(ms||(ms={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(vs||(vs={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Os||(Os={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}(ws||(ws={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(Ss||(Ss={})),function(t){t.VALID="VALID",t.INVALID="INVALID"}(xs||(xs={}));const Cs={[Ss.PERSONAL_BOOK_SHARE_USER]:[Ss.PERSONAL_BOOK_USER],[Ss.HTML_EXPORT_USER]:[Ss.PERSONAL_BOOK_USER],[Ss.PDF_EXPORT_USER]:[Ss.PERSONAL_BOOK_USER],[Ss.KHUB_ADMIN]:[Ss.CONTENT_PUBLISHER],[Ss.ADMIN]:[Ss.KHUB_ADMIN,Ss.USERS_ADMIN,Ss.PORTAL_ADMIN],[Ss.DEVELOPER]:[Ss.BETA_USER,Ss.DEBUG_USER]};function Ns(t,e){return t===e||(Cs[t]??[]).some((t=>Ns(t,e)))}function Es(t,e){if(null==t)return!1;return(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some((t=>Ns(t,e)))}var Rs;t.FtReaderFeatures=void 0,(Rs=t.FtReaderFeatures||(t.FtReaderFeatures={})).FEEDBACK="FEEDBACK",Rs.RATING="RATING",Rs.PRINT="PRINT",Rs.BOOKMARK="BOOKMARK",Rs.COLLECTIONS="COLLECTIONS",Rs.PERSONAL_BOOKS="PERSONAL_BOOKS";const Is=ut`
179
- `,Ls=Ga.get({name:"ft-app-info",reducers:{},initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});class Us{static get(t){const{baseUrl:e,apiIntegrationIdentifier:o}=Ls.getState(),r=null!=t?t:o;if(e&&r&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,r,!0)}static await(t){return new Promise((e=>{let o=Us.get(t);if(o)e(o);else{const r=Ls.subscribe((()=>{o=Us.get(t),o&&(r(),e(o))}))}}))}}class ks{constructor(t=!0,e){var o;this.overrideApi=e;let r=this.constructor;r.commonCache=null!==(o=r.commonCache)&&void 0!==o?o:new Je,this.cache=t?r.commonCache:new Je}get api(){var t;return null!==(t=this.overrideApi)&&void 0!==t?t:Us.get()}get awaitApi(){var t;return null!==(t=this.overrideApi)&&void 0!==t?t:Us.await()}clearCache(){this.cache.clearAll()}}var Ws;const As=Symbol("clearAfterUnitTest");class Bs extends ks{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ws]=()=>{this.defaultMessages={},this.cache=new Je,this.listeners={}},this.currentUiLocale=Ls.getState().uiLocale,Ls.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Ls.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){const r={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};ao(this.defaultMessages[t],r)||(this.defaultMessages[t]=r,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var r,i,n;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(i=null===(r=this.cache.getNow(t))||void 0===r?void 0:r.messages)&&void 0!==i?i:{};return new Gi(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},a).resolve(e,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>ro(0).then((()=>t())).catch((()=>null)))))}}Ws=As,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new class extends Bs{constructor(){super((async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e)))}}),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new class extends Bs{constructor(){super((async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e)))}});const Ps=window.FluidTopicsI18nService;var Fs=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class _s extends Wi{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>Us.get(),this.messageContexts=[],this.cache=new Je,this.cleanSessionDebouncer=new eo}render(){return Yt`
180
- <slot></slot>
181
- `}update(t){super.update(t),t.has("baseUrl")&&(Ls.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&Ls.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Ls.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&Ls.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&Ls.actions.noCustom(this.noCustom),t.has("editorMode")&&Ls.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&Ls.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&Ls.actions.session(this.session),t.has("availableUiLocales")&&Ls.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Ps.addContext(t))),t.has("openExternalDocumentInNewTab")&&Ls.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&Ls.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&Ls.actions.forcedOffline(this.forcedOffline),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(null==this.session&&this.updateSession(),null==this.availableUiLocales&&this.updateUiLocales(),null==this.metadataConfiguration&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",(async()=>{const t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),t.idleTimeoutInMillis),t}))}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>this.apiProvider().getAvailableUiLocales()))}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",(()=>this.apiProvider().getMetadataConfiguration()))}}_s.elementDefinitions={},_s.styles=Is,Fs([we()],_s.prototype,"baseUrl",void 0),Fs([we()],_s.prototype,"apiIntegrationIdentifier",void 0),Fs([we()],_s.prototype,"uiLocale",void 0),Fs([lo(null)],_s.prototype,"availableUiLocales",void 0),Fs([lo(null)],_s.prototype,"metadataConfiguration",void 0),Fs([we({type:Boolean})],_s.prototype,"editorMode",void 0),Fs([we({type:Boolean})],_s.prototype,"noCustom",void 0),Fs([we({type:Boolean})],_s.prototype,"openExternalDocumentInNewTab",void 0),Fs([we({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],_s.prototype,"noCustomComponent",void 0),Fs([we({type:Boolean})],_s.prototype,"withManualResources",void 0),Fs([we({type:Boolean})],_s.prototype,"navigatorOnline",void 0),Fs([we({type:Boolean})],_s.prototype,"forcedOffline",void 0),Fs([we({type:Object})],_s.prototype,"apiProvider",void 0),Fs([lo([])],_s.prototype,"messageContexts",void 0),Fs([lo(void 0)],_s.prototype,"session",void 0);class Ts extends ks{async listMySearches(){let t=Ls.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-searches",(async()=>(await this.awaitApi).listMySearches(t.profile.userId)),3e5):[]}}class Ds extends ks{async listMyBookmarks(){let t=Ls.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-bookmarks",(async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId)),3e5):[]}}const Ms=Ga.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const zs=new class{constructor(){this.currentSession=Ls.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ds,this.savedSearchesService=new Ts,Ls.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=Ls.getState();ao(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ms.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ms.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();const t=await this.savedSearchesService.listMySearches();Ms.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;Ms.actions.bookmarks(e)}}};window.FluidTopicsAppInfoStoreService=new class{addCommand(t,e=!1){Ls.commands.add(t,e)}consumeCommand(t){return Ls.commands.consume(t)}};window.FluidTopicsHighlightHtmlService=new class{highlightHtml(t,e){Mi(t,e)}},co("ft-app-context")(_s);class Ks extends ks{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,o){super(!1,e),this.converter=t,this._mapId=o,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",(()=>this.api.getReaderConfiguration())),this.cache.register("map",(()=>this.withMapId((t=>this.fetchMap(t))))),this.cache.register("enrichedToc",(()=>this.withMapId((t=>this.fetchPages(t).then((t=>this.converter.convertPaginatedToc(t))))))),this.cache.register("ratingSummary",(()=>{var t,e;return Es(null!==(e=null===(t=Ls.getState().session)||void 0===t?void 0:t.profile.roles)&&void 0!==e?e:[],"RATING_USER")?this.withMapId((t=>this.fetchMapRating(t))):Promise.resolve()}))}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getMapNow(){return this.cache.getNow("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var e;return null===(e=this.enrichedToc)||void 0===e?void 0:e.nodeByTocId[t]}async getPage(t){const e=await this.getEnrichedToc();return e.pages[t-1]||e.pages[0]}async getPageByTocId(t){const e=await this.getEnrichedToc();return e.pageByTocId[t]||e.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,(()=>this.fetchTopicMetadata(t)))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,(()=>this.fetchTopicHTMLContent(t)))}getAttachments(){return this.cache.get("map-attachments",(()=>this.fetchAttachments()))}getRelativesForDocument(t,e){return this.cache.get("document-relatives-"+t+"-"+e.join("-"),(()=>this.fetchRelativesForDocument(t,e)))}getRelativesForTopicInMap(t,e,o){return this.cache.get("topic-relatives-"+[t,e,...o].join("-"),(()=>this.fetchRelativesForTopicInMap(t,e,o)))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,e,o){const r=this.getNavigationData(t,e,o),i=this.getReaderLinkPrefix()+(r.prettyUrl?r.prettyUrl:`${r.mapId}/${r.tocId}`),n=new URL(i,this.api.tenantBaseUrl);return null!=r.page&&n.searchParams.set("page",`${r.page}`),r.prettyUrlDuplicated&&n.searchParams.set("tocId",r.tocId),null!=r.section&&n.searchParams.set("section",r.section),n.href}getNavigationData(t,e,o){var r,i;t=t||"root";const n=this.enrichedToc,a=null==n?void 0:n.pageByTocId[t],s=null==n?void 0:n.nodeByTocId[t],c=null==s?void 0:s.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:null!==(r=null==s?void 0:s.title)&&void 0!==r?r:"",page:e&&a&&a.number!==e?e:void 0,prettyUrl:null!=c?c.replace(/^r\//,""):void 0,prettyUrlDuplicated:null!==(i=null==n?void 0:n.duplicatedPrettyUrls.has(null!=c?c:""))&&void 0!==i&&i,section:o}}async getAccurateNavigationData(t,e,o){return await this.getEnrichedToc(),this.getNavigationData(t,e,o)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then((t=>null==t?void 0:t.publication))}getTopicRating(t){return this.getRatingSummary().then((e=>{var o;return e?{type:e.topics.type,rating:null===(o=e.topics)||void 0===o?void 0:o.ratings.find((e=>e.tocId===t))}:void 0}))}rateMap(t,e){return this.makeRateMapRequest(t,e).then((()=>this.clearRatingIfNecessary()))}unrateMap(){return this.makeUnrateMapRequest().then((()=>this.clearRatingIfNecessary()))}sendMapFeedback(t,e){return this.makeMapFeedbackRequest(t,e)}rateTopic(t,e,o){return this.makeRateTopicRequest(t,e,o).then((()=>this.clearRatingIfNecessary()))}unrateTopic(t){return this.makeUnrateTopicRequest(t).then((()=>this.clearRatingIfNecessary()))}async clearRatingIfNecessary(){const t=Ls.getState().session;(null==t?void 0:t.sessionAuthenticated)&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,e,o){return this.makeTopicFeedbackRequest(t,e,o)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let e=this.getTocNodeNow(t),o=[{tocId:e.tocId,title:e.title}],r=this.getTocNodeNow(e.parentTocId);for(;r;)o.unshift({tocId:r.tocId,title:r.title}),r=this.getTocNodeNow(r.parentTocId);return o}isFeatureAccessible(e,{session:o,ratingType:r}){var i;if(!this.isFeatureAvailable(e))return!1;switch(e){case t.FtReaderFeatures.FEEDBACK:return Es(null!=o?o:[],Ss.FEEDBACK_USER);case t.FtReaderFeatures.RATING:return Es(null!=o?o:[],Ss.RATING_USER)&&null!=r&&r!==hs.NO_RATING;case t.FtReaderFeatures.PRINT:return Es(null!=o?o:[],Ss.PRINT_USER);case t.FtReaderFeatures.BOOKMARK:return!!(null==o?void 0:o.sessionAuthenticated);case t.FtReaderFeatures.COLLECTIONS:return Es(null!=o?o:[],Ss.COLLECTION_USER);case t.FtReaderFeatures.PERSONAL_BOOKS:return Es(null!=o?o:[],Ss.PERSONAL_BOOK_USER)&&!(null===(i=this.getMapNow())||void 0===i?void 0:i.pbkConfidential);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}}class js extends Ks{static async build(t){return new js(new ns,void 0,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){const e=await this.api.getMap(t);return this.fingerprint=e.fingerprint,e}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch((()=>[]))}fetchRelativesForDocument(t,e){return this.api.search({query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",filters:[{negative:!1,values:e,key:t}],sort:[],facets:[]})}fetchRelativesForTopicInMap(t,e,o){return this.api.search({query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",filters:[{negative:!1,values:o,key:e},{negative:!1,values:[t],key:"ft:publicationId"}],sort:[],facets:[]})}makeMapFeedbackRequest(t,e){return this.api.sendMapFeedback(this.mapId,t,e)}makeRateMapRequest(t,e){return this.api.rateMap(this.mapId,t,e)}makeRateTopicRequest(t,e,o){return this.api.rateTopic(this.mapId,t,e,o)}makeTopicFeedbackRequest(t,e,o){return this.api.sendTopicFeedback(this.mapId,t,e,o)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}}class Hs{static build(t,e){return new Hs((t=>Ga.get({name:"ft-reader-"+t,initialState:{mapId:void 0,visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0}}))(t.trim()||"context"),null!=e?e:js.build)}constructor(t,e,o){this.store=t,this.clusteringHelperProvider=o,this.metadataForSwitchToRelatives=new Set,this.loadDebouncer=new eo(10),this.initService(e)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return io((()=>this.service))}async navigateToTopic(t,e,o){const r=await this.awaitService(),i=await(null!=o?r.getPage(o):r.getPageByTocId(null!=t?t:"root"));this.store.actions.currentPage(i),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,i),section:e})}resolveValidNonRootTocId(t,e){var o,r,i;let n=null!==(o="root"===t?void 0:t)&&void 0!==o?o:e.rootTocId;return e.topics.includes(n)?n:null!==(i=null!==(r=e.topics[0])&&void 0!==r?r:e.hiddenTopics[0])&&void 0!==i?i:"root"}async navigateToPage(t){const e=await this.awaitService();let o=await e.getPage(t);this.store.actions.currentPage(o)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var t;(null===(t=this.service)||void 0===t?void 0:t.mapId)&&null==this.store.getState().map&&await this.loadDebouncer.run((()=>this.fetchData()))}clear(){var t;this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),null===(t=this.service)||void 0===t||t.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var t,e,o,r,i;try{await Promise.all([null===(t=this.service)||void 0===t?void 0:t.getConfiguration().then((t=>this.store.actions.configuration(t))),null===(e=this.service)||void 0===e?void 0:e.getMap().then((t=>this.store.actions.map(t))),null===(o=this.service)||void 0===o?void 0:o.getToc().then((t=>this.store.actions.toc(t))),null===(r=this.service)||void 0===r?void 0:r.getPagesToc().then((t=>this.store.actions.pagesToc(t))),null===(i=this.service)||void 0===i?void 0:i.getPaginationConfiguration().then((t=>this.store.actions.paginationConfiguration(t)))]).then((()=>{this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives()}))}catch(t){!this.errorHandler||t instanceof Ge||this.errorHandler(t)}}fetchRelatives(){var t,e,o;const r=null===(t=this.store.getState().map)||void 0===t?void 0:t.metadata.filter((t=>{var e;return t.key==(null===(e=this.store.getState().configuration)||void 0===e?void 0:e.relativePivotMetadata)})).flatMap((t=>t.values));void 0!==r&&r.length>0?null===(e=this.service)||void 0===e||e.getRelativesForDocument(null===(o=this.store.getState().configuration)||void 0===o?void 0:o.relativePivotMetadata,r).then((t=>{const e=t.results.flatMap((t=>t.entries));this.store.actions.relatives(e),this.updateClusteringHelper()})):this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.eventBus.dispatchEvent(new CustomEvent("clustering-helper-created"))}createClusteringHelper(){var t,e;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let o=this.store.getState().relatives;if(o){let r=o.find((t=>{var e;return(null===(e=t.map)||void 0===e?void 0:e.mapId)==this.store.getState().mapId})),i=null!==(e=null===(t=Ls.getState().metadataConfiguration)||void 0===t?void 0:t.descriptors)&&void 0!==e?e:[];return new Qe(o,r,this.metadataForSwitchToRelatives,i)}}async navigateToRelativeTopicIfFound(t){var e,o,r;const i=await io((()=>{var t;return null===(t=this.store.getState().configuration)||void 0===t?void 0:t.relativeTopicPivotMetadata})),n=this.store.getState().mapId,a=await this.awaitService(),s=await a.getRelativesForTopicInMap(n,i,[t]);if(null===(r=null===(o=null===(e=null==s?void 0:s.results)||void 0===e?void 0:e[0])||void 0===o?void 0:o.entries)||void 0===r?void 0:r[0]){const t=s.results[0].entries[0].topic.tocId;return await this.navigateToTopic(t),!0}return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}registerMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.add(t),null==this.store.getState().relatives?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.delete(t),this.updateClusteringHelper()}}const Zs=ut`
182
- `;class $s extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}}class Gs extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}}class Vs extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}}class qs extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}}class Ys extends Event{constructor(){super("ft-reader-map-not-found")}}class Js extends Event{constructor(){super("ft-reader-map-unauthorized")}}class Xs extends Event{constructor(){super("ft-reader-map-forbidden")}}class Qs extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}}var tc=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ec extends nn{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new eo(5),this.navigationDebouncer=new eo(10),this.mapLoadedEventDebouncer=new eo(50),this.addStore(Ls)}render(){return Yt`
183
- ${this.importStyleIfNeeded()}
184
- <slot @register-ft-reader-component=${this.registerComponent}></slot>
185
- `}importStyleIfNeeded(){var t,e;const o=null===(t=this.stateManager.service)||void 0===t?void 0:t.themeStylesheet();return!o||window.location.href.startsWith(null!==(e=this.baseUrl)&&void 0!==e?e:"")?Qt:Yt`
186
- <style>
187
- @import "${o}"
188
- </style>
189
- `}get stateManager(){return null==this._stateManager&&(this._stateManager=Hs.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then((t=>{const e=t.fontsStylesheet();if(e&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${e}"]`)){const t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),document.head.append(t)}}))}update(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),t.has("searchInDocumentQuery")&&null!=this.searchInDocumentQuery&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some((e=>t.has(e)))&&this.mapId&&this.navigateToTarget()}contentAvailableCallback(t){var e;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.sendLoadedEventIfLoaded(),t.has("scrollTarget")&&null==(null===(e=this.scrollTarget)||void 0===e?void 0:e.tocId)){const e=t.get("scrollTarget");null!=(null==e?void 0:e.tocId)&&this.scrollToTargetDebouncer.run((()=>{var t;return this.stateManager.service.getAccurateNavigationData(e.tocId,null===(t=this.currentPage)||void 0===t?void 0:t.number,e.section).then((t=>this.dispatchEvent(new Vs(t))))}))}t.has("visibleTopics")&&Promise.all(this.visibleTopics.map((t=>{var e;return this.stateManager.service.getAccurateNavigationData(t,null===(e=this.currentPage)||void 0===e?void 0:e.number)}))).then((t=>{let e=t.filter((t=>null!=t&&""!==t.topicTitle)).map((t=>{var e;return{tocId:t.tocId,title:t.topicTitle,page:t.page,prettyUrl:t.prettyUrl,prettyUrlDuplicated:t.prettyUrlDuplicated,breadcrumb:null===(e=this.stateManager.service)||void 0===e?void 0:e.buildBreadcrumb(t.tocId)}}));this.dispatchEvent(new Gs(this.map,e))}))}clear(){this.stateManager.clear()}async reload(){this.clear(),await this.navigateToTarget()}async navigateToTarget(){await this.stateManager.load(),await this.navigationDebouncer.run((async()=>{if(null!=this.topicPivot){await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)||this.lastNotifiedNotFoundRelative===this.mapId+this.topicPivot?this.lastNotifiedNotFoundRelative=void 0:(this.dispatchEvent(new Qs),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot)}else null!=this.tocId?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):null!=this.page&&await this.stateManager.navigateToPage(this.page)}))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.register(e)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){const e=t;401===e.status?this.dispatchEvent(new Js):403===e.status?this.dispatchEvent(new Xs):404===e.status?this.dispatchEvent(new Ys):this.dispatchEvent(new qs(t))}reloadBookmarks(){zs.reloadBookmarks()}async reloadRating(){var t,e;await(null===(t=this.stateManager.service)||void 0===t?void 0:t.reloadRating()),null===(e=this.stateManager.store)||void 0===e||e.eventBus.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run((()=>{this.map&&this.toc&&this.dispatchEvent(new $s(this.map,this.toc))}))}}var oc;ec.styles=Zs,tc([qi({store:Ls.name})],ec.prototype,"baseUrl",void 0),tc([we()],ec.prototype,"mapId",void 0),tc([we()],ec.prototype,"tocId",void 0),tc([we()],ec.prototype,"section",void 0),tc([we()],ec.prototype,"topicPivot",void 0),tc([we()],ec.prototype,"searchInDocumentQuery",void 0),tc([we({type:Number,converter:{fromAttribute:t=>+(null!=t?t:"NaN")>0?+t:oc}})],ec.prototype,"page",void 0),tc([qi({store:"reader"})],ec.prototype,"map",void 0),tc([qi({store:"reader"})],ec.prototype,"toc",void 0),tc([qi({store:"reader"})],ec.prototype,"visibleTopics",void 0),tc([qi({store:"reader"})],ec.prototype,"currentPage",void 0),tc([qi({store:"reader"})],ec.prototype,"scrollTarget",void 0),tc([we({attribute:!1})],ec.prototype,"readerServiceProvider",void 0),co("ft-reader-context")(ec),t.ForbiddenErrorEvent=Xs,t.FtOfficialReaderService=js,t.FtReaderContext=ec,t.FtReaderContextCssVariables={},t.FtReaderConverter=ns,t.FtReaderService=Ks,t.LoadErrorEvent=qs,t.MapLoadedEvent=$s,t.NavigationDoneEvent=Vs,t.NotFoundErrorEvent=Ys,t.TopicRelativeNotFoundEvent=Qs,t.UnauthorizedErrorEvent=Js,t.VisibleTopicsChangeEvent=Gs,t.styles=Zs}({});
244
+ *)
245
+ */