@fluid-topics/ft-reader-context 1.1.74 → 1.1.75

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,9 +1,9 @@
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=`[
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 d(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)}),d(m)},p.prototype.values=function(){var m=[];return this.forEach(function(v){m.push(v)}),d(m)},p.prototype.entries=function(){var m=[];return this.forEach(function(v,E){m.push([E,v])}),d(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 d=S=>S===document||S instanceof ShadowRoot,p=S=>{let x=S.getRootNode();if(!d(x)){let w=C[C.length-1];if(w instanceof CustomElementRegistry)return w;x=w.getRootNode(),d(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:()=>Vu,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$",de=`lit$${(Math.random()+"").slice(9)}$`,ro="?"+de,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
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=`[
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Wn=/'/g,Hn=/"/g,Vn=/^(?:script|style|textarea|title)$/i,Gn=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),ku=Gn(1),Lu=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],d,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,d=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(d),c.slice(0,h)+to+c.slice(h)+de+y):c+de+(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,[d,p]=qn(e,t);if(this.el=r.createElement(d,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(de),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(de)&&(c.push({type:6,index:a}),i.removeAttribute(h));if(Vn.test(i.tagName)){let h=i.textContent.split(de),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(de,h+1))!==-1;)c.push({type:7,index:a}),h+=de.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 d;c.type===2?d=new Ot(a,a.nextSibling,this,e):c.type===1?d=new c.ctor(a,c.name,c.strings,this,e):c.type===6&&(d=new ir(a,this,e)),this._$AV.push(d),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,d;for(e=a[0],c=0;c<a.length-1;c++)d=Be(this,l[o+c],t,c),d===Z&&(d=this._$AH[c]),s||=!xt(d)||d!==this._$AH[c],d===F?e=F:e!==F&&(e+=(d??"")+a[c+1]),this._$AH[c]=d}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:de,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,ur=ao.trustedTypes,ei=ur?ur.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
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`
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 ui(r,e){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return ei!==void 0?ei.createHTML(e):e}var di=(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],d,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,d=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(d),c.slice(0,h)+so+c.slice(h)+pe+y):c+pe+(h===-2?l:y)}return[ui(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,[d,p]=di(e,t);if(this.el=r.createElement(d,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=ur?ur.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 dr=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 d;c.type===2?d=new ot(a,a.nextSibling,this,e):c.type===1?d=new c.ctor(a,c.name,c.strings,this,e):c.type===6&&(d=new mr(a,this,e)),this._$AV.push(d),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(ui(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(t);else{let a=new dr(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,d;for(e=a[0],c=0;c<a.length-1;c++)d=Ke(this,l[o+c],t,c),d===Se&&(d=this._$AH[c]),s||=!It(d)||d!==this._$AH[c],d===B?e=B:e!==B&&(e+=(d??"")+a[c+1]),this._$AH[c]=d}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:di,L:dr,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 Vu=!1;var po={};U(po,{customElement:()=>ic,eventOptions:()=>cc,property:()=>P,query:()=>lc,queryAll:()=>dc,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(d){this[c]=d}}})();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 uc;function dc(r){return(e,t)=>te(e,t,{get(){return(this.renderRoot??(uc??=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 d=c.nextSibling;o.insertBefore(c,i),c=d}}}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=[],d,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(d===void 0&&(d=gi(s,y,b),p=gi(l,h,g)),d.has(l[h]))if(d.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;return t==null?r.flattenMetadata(a):r.flattenMetadata(a.find(s=>s.key===t))}static flattenMetadata(e){if(Array.isArray(e))return e.map(o=>r.flattenMetadata(o)).filter(o=>o!=null);let t=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!t))if(t){let o=[],i=[];return e.hierarchicalValues.forEach(a=>{o.push(a.join(" > ")),a.length>2?i.push(`... > ${a[a.length-1]}`):i.push(a.join(" > "))}),{key:e.key,label:e.label,value:o.join(", "),displayValue:i.join(", ")}}else{let o=e.values.join(", ");return{key:e.key,label:e.label,value:o,displayValue:o}}}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(d=>r.extractResultMetadata(d,e)).map(d=>d??{key:e,label:l,value:void 0,displayValue:o}).filter(d=>d.value!=s?.value).filter((d,p,h)=>h.findIndex(g=>g.value===d.value)===p).map(d=>({result:this.findBestResultForMetadataValue(e,d.value),metadata:d})).sort((d,p)=>this.compareMetadata(d.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 d;return((d=r.extractResultMetadata(c,e))===null||d===void 0?void 0:d.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 d=this.countMatchingMetadata(c,a);if(d>l&&(l=d,s=c,d===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:()=>u,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 u={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.",u.colorBrand0),backgroundErrorSubtle:n.extend("--ft-background-error-subtle","Used as background of subtle error components.",u.colorRed10),backgroundInfoSubtle:n.extend("--ft-background-info-subtle","Used as background of subtle information components.",u.colorCyan10),backgroundWarningSubtle:n.extend("--ft-background-warning-subtle","Used as background of subtle information components.",u.colorOrange10),backgroundSuccessSubtle:n.extend("--ft-background-success-subtle","Used as background of subtle success components.",u.colorGreen10),backgroundGlobalSurface:n.extend("--ft-background-global-surface","Used as app background.",u.colorWhite),backgroundGlobalOnSurface:n.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",u.colorGray10),backgroundGlobalOnSurfaceDark:n.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",u.colorGray30),contentActionPrimary:n.extend("--ft-content-action-primary","Used on label of primary action on light surface.",u.colorBrand0),contentWarningPrimary:n.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",u.colorOrange200),contentWarningIconOnly:n.extend("--ft-content-warning-icon-only","Used on warning status icons alone",u.colorOrange0),contentErrorPrimary:n.extend("--ft-content-error-primary","Used on label of error messages on light surface.",u.colorRed0),contentErrorIconOnly:n.extend("--ft-content-error-icon-only","Used on error status icons alone",u.colorRed70),contentInfoPrimary:n.extend("--ft-content-info-primary","Used on label of information messages on light surface.",u.colorCyan200),contentInfoIconOnly:n.extend("--ft-content-info-icon-only","Used on info status icons alone",u.colorCyan0),contentSuccessPrimary:n.extend("--ft-content-success-primary","Used on label of success messages on light surface.",u.colorGreen200),contentSuccessIconOnly:n.extend("--ft-content-success-icon-only","Used on success status icons alone",u.colorGreen0),contentGlobalPrimary:n.extend("--ft-content-global-primary","Used for main content on the page.",u.colorGray500),contentGlobalSecondary:n.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
6
+ Also for action icons.`,u.colorGray200),contentGlobalSubtle:n.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",u.colorGray0),contentGlobalOnColor:n.extend("--ft-content-global-on-color","Used for content on a dominant color.",u.colorWhite),borderActionPrimary:n.extend("--ft-border-action-primary","Used as border for primary action components.",u.colorBrand0),borderActionFocusRing:n.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",u.colorCyan0),borderWarningPrimary:n.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",u.colorOrange200),borderWarningSubtle:n.extend("--ft-border-warning-subtle","Used as border for warning components.",u.colorOrange30),borderSuccessPrimary:n.extend("--ft-border-success-primary","Used as border for success buttons.",u.colorGreen200),borderSuccessSubtle:n.extend("--ft-border-success-subtle","Used as border for success components.",u.colorGreen30),borderErrorPrimary:n.extend("--ft-border-error-primary","Used as border for text fields in error states.",u.colorRed0),borderErrorSubtle:n.extend("--ft-border-error-subtle","Used as border for error components.",u.colorRed30),borderInfoPrimary:n.extend("--ft-border-info-primary","Used as border for buttons in info color.",u.colorCyan200),borderInfoSubtle:n.extend("--ft-border-info-subtle","Used as border for information components.",u.colorCyan30),borderGlobalPrimary:n.extend("--ft-border-global-primary","Used as border for element like input.",u.colorGray50),borderGlobalSubtle:n.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",u.colorGray30),borderInputPrimary:n.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",u.colorGray80)};var Pc={largeHeight:n.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:n.extend("--ft-button-large-horizontal-padding","",u.spacing4),largeGap:n.extend("--ft-button-large-gap","",u.spacing2),largeBorderRadius:n.extend("--ft-button-large-border-radius","",u.borderRadiusS),largeIconSize:n.extend("--ft-button-large-icon-size","",u.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","",u.spacing3),smallGap:n.extend("--ft-button-small-gap","",u.spacing2),smallBorderRadius:n.extend("--ft-button-small-border-radius","",u.borderRadiusS),smallIconSize:n.extend("--ft-button-small-icon-size","",u.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","",u.opacity16),primaryFocusStateLayerOpacity:n.extend("--ft-button-primary-focus-state-layer-opacity","",u.opacity16),primaryActiveStateLayerOpacity:n.extend("--ft-button-primary-active-state-layer-opacity","",u.opacity24),primaryDisabledComponentOpacity:n.extend("--ft-button-primary-disabled-component-opacity","",u.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","",u.opacity8),tertiaryFocusStateLayerOpacity:n.extend("--ft-button-tertiary-focus-state-layer-opacity","",u.opacity8),tertiaryActiveStateLayerOpacity:n.extend("--ft-button-tertiary-active-state-layer-opacity","",u.opacity16),tertiaryDisabledComponentOpacity:n.extend("--ft-button-tertiary-disabled-component-opacity","",u.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","",u.opacity8),secondaryFocusStateLayerOpacity:n.extend("--ft-button-secondary-focus-state-layer-opacity","",u.opacity8),secondaryActiveStateLayerOpacity:n.extend("--ft-button-secondary-active-state-layer-opacity","",u.opacity16),secondaryDisabledComponentOpacity:n.extend("--ft-button-secondary-disabled-component-opacity","",u.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","",u.opacity8),neutralFocusStateLayerOpacity:n.extend("--ft-button-neutral-focus-state-layer-opacity","",u.opacity8),neutralActiveStateLayerOpacity:n.extend("--ft-button-neutral-active-state-layer-opacity","",u.opacity16),neutralDisabledComponentOpacity:n.extend("--ft-button-neutral-disabled-component-opacity","",u.opacity40)};var kc={iconSize:n.extend("--ft-banner-icon-size","",u.iconSize5),borderWidth:n.create("--ft-banner-border-width","","SIZE","1px"),horizontalPadding:n.extend("--ft-banner-horizontal-padding","",u.spacing6),verticalPadding:n.extend("--ft-banner-vertical-padding","",u.spacing6),horizontalSideGap:n.extend("--ft-banner-horizontal-side-gap","",u.spacing6),horizontalMobileGap:n.extend("--ft-banner-horizontal-mobile-gap","",u.spacing4),verticalMobileGap:n.extend("--ft-banner-vertical-mobile-gap","",u.spacing6),horizontalMiddleGap:n.extend("--ft-banner-horizontal-middle-gap","",u.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","",u.spacing1),verticalGap:n.extend("--ft-breadcrumb-vertical-gap","",u.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","",u.spacing12),horizontalGap:n.extend("--ft-page-header-horizontal-gap","",u.spacing4),verticalGap:n.extend("--ft-page-header-vertical-gap","",u.spacing2),classicVerticalPadding:n.extend("--ft-page-header-classic-vertical-padding","",u.spacing6),multilineVerticalPadding:n.extend("--ft-page-header-multiline-vertical-padding","",u.spacing4),inlineVerticalPadding:n.extend("--ft-page-header-inline-vertical-padding","",u.spacing2),backgroundColor:n.extend("--ft-page-header-background-color","",u.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","",u.colorGray700),overlayOpacity:n.extend("--ft-modal-overlay-opacity","",u.opacity40),shadow:n.extend("--ft-modal-shadow","",u.shadowElevation03),bodyBackgroundColor:n.extend("--ft-modal-body-background-color","",u.colorWhite),bodyColor:n.extend("--ft-modal-body-color","",f.contentGlobalPrimary),bodyHorizontalPadding:n.extend("--ft-modal-body-horizontal-padding","",u.spacing6),bodyVerticalPadding:n.extend("--ft-modal-body-vertical-padding","",u.spacing6),bodyVerticalGap:n.extend("--ft-modal-body-vertical-gap","",u.spacing6),containerMargin:n.extend("--ft-modal-container-margin","",u.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","",u.spacing1),headerRightPadding:n.extend("--ft-modal-header-right-padding","",u.spacing1),headerLeftPadding:n.extend("--ft-modal-header-left-padding","",u.spacing6),headerGap:n.extend("--ft-modal-header-gap","",u.spacing2),headerBorderBottom:n.create("--ft-modal-header-border-bottom","","SIZE","1px"),borderRadius:n.extend("--ft-modal-border-radius","",u.borderRadiusM)};var Dc={overlayOpacity:n.extend("--ft-drawer-overlay-opacity","",u.opacity40),shadow:n.extend("--ft-drawer-shadow","",u.shadowElevation03),bodyColor:n.extend("--ft-drawer-body-color","",f.contentGlobalPrimary),bodyHorizontalPadding:n.extend("--ft-drawer-body-horizontal-padding","",u.spacing6),bodyVerticalPadding:n.extend("--ft-drawer-body-vertical-padding","",u.spacing6),bodyGap:n.extend("--ft-drawer-body-gap","",u.spacing6),bodyBackgroundColor:n.extend("--ft-drawer-body-background-color","",u.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","",u.spacing2),headerBorderWidth:n.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:n.extend("--ft-drawer-header-gap","",u.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","",u.spacing4),buttonsBarVerticalPadding:n.extend("--ft-drawer-buttons-bar-vertical-padding","",u.spacing4),buttonsBarGap:n.extend("--ft-drawer-buttons-bar-gap","",u.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","",u.colorGray700)};var $c={fieldHorizontalPadding:n.extend("--ft-text-input-field-horizontal-padding","",u.spacing4),fieldHorizontalGap:n.extend("--ft-text-input-field-horizontal-gap","",u.spacing3),fieldVerticalGap:n.extend("--ft-text-input-field-vertical-gap","",u.spacing05),fieldIconSize:n.extend("--ft-text-input-field-icon-size","",u.iconSize3),fieldHeight:n.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:n.extend("--ft-text-input-helper-horizontal-padding","",u.spacing4),helperHorizontalGap:n.extend("--ft-text-input-helper-horizontal-gap","",u.spacing1),helperIconSize:n.extend("--ft-text-input-helper-icon-size","",u.iconSize2),borderRadius:n.extend("--ft-text-input-border-radius","",u.borderRadiusM),backgroundColor:n.extend("--ft-text-input-background-color","",u.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","",u.opacity40)};var Fc={backgroundColor:n.extend("--ft-text-area-background-color","",u.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","",u.opacity40),fieldHorizontalLeftPadding:n.extend("--ft-text-area-field-horizontal-left-padding","",u.spacing4),fieldHorizontalGap:n.extend("--ft-text-area-field-horizontal-gap","",u.spacing3),fieldVerticalGap:n.extend("--ft-text-area-field-vertical-gap","",u.spacing05),fieldMinHeight:n.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:n.extend("--ft-text-area-helper-horizontal-padding","",u.spacing4),helperHorizontalGap:n.extend("--ft-text-area-helper-horizontal-gap","",u.spacing1),helperIconSize:n.extend("--ft-text-area-helper-icon-size","",u.iconSize2),borderRadius:n.extend("--ft-text-area-border-radius","",u.borderRadiusM)};var Bc={height:n.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:n.extend("--ft-floating-menu-horizontal-padding","",u.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","",u.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","",u.opacity8),hoverStateLayerOpacity:n.extend("--ft-floating-menu-hover-state-layer-opacity","",u.opacity8),activeStateLayerOpacity:n.extend("--ft-floating-menu-active-state-layer-opacity","",u.opacity16),disabledComponentOpacity:n.extend("--ft-floating-menu-disabled-component-opacity","",u.opacity40),iconSize:n.extend("--ft-floating-menu-icon-size","",u.iconSize3),backgroundColor:n.extend("--ft-floating-menu-background-color","",f.backgroundGlobalOnSurface)};var Wc={fieldHorizontalPadding:n.extend("--ft-combobox-single-select-field-horizontal-padding","",u.spacing4),fieldHorizontalGap:n.extend("--ft-combobox-single-select-field-horizontal-gap","",u.spacing3),fieldVerticalGap:n.extend("--ft-combobox-single-select-field-vertical-gap","",u.spacing05),fieldIconSize:n.extend("--ft-combobox-single-select-field-icon-size","",u.iconSize3),fieldHeight:n.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:n.extend("--ft-combobox-single-select-helper-horizontal-padding","",u.spacing4),helperHorizontalGap:n.extend("--ft-combobox-single-select-helper-horizontal-gap","",u.spacing1),helperVerticalGap:n.extend("--ft-combobox-single-select-helper-vertical-gap","",u.spacing1),helperIconSize:n.extend("--ft-combobox-single-select-helper-icon-size","",u.iconSize2),menuVerticalGap:n.extend("--ft-combobox-single-select-menu-vertical-gap","",u.spacing2),borderRadius:n.extend("--ft-combobox-single-select-border-radius","",u.borderRadiusM),backgroundColor:n.extend("--ft-combobox-single-select-background-color","",u.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","",u.opacity40)};var Hc={backgroundColor:n.extend("--ft-combobox-multi-select-background-color","",u.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","",u.opacity40),helperHorizontalPadding:n.extend("--ft-combobox-multi-select-helper-horizontal-padding","",u.spacing4),helperHorizontalGap:n.extend("--ft-combobox-multi-select-helper-horizontal-gap","",u.spacing1),helperVerticalGap:n.extend("--ft-combobox-multi-select-helper-vertical-gap","",u.spacing1),helperIconSize:n.extend("--ft-combobox-multi-select-helper-icon-size","",u.iconSize2),fieldHorizontalPadding:n.extend("--ft-combobox-multi-select-field-horizontal-padding","",u.spacing4),fieldHorizontalGap:n.extend("--ft-combobox-multi-select-field-horizontal-gap","",u.spacing3),fieldVerticalGap:n.extend("--ft-combobox-multi-select-field-vertical-gap","",u.spacing05),fieldIconSize:n.extend("--ft-combobox-multi-select-field-icon-size","",u.iconSize3),fieldMaxHeight:n.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:n.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",u.spacing1),contentValuesVerticalGap:n.extend("--ft-combobox-multi-select-content-values-vertical-gap","",u.spacing1),borderRadius:n.extend("--ft-combobox-multi-select-border-radius","",u.borderRadiusM)};var zc={backgroundColor:n.extend("--ft-popover-background-color","",f.backgroundGlobalOnSurface),horizontalPadding:n.extend("--ft-popover-horizontal-padding","",u.spacing6),verticalPadding:n.extend("--ft-popover-vertical-padding","",u.spacing6),iconColor:n.extend("--ft-popover-icon-color","",f.contentGlobalSecondary),iconSize:n.extend("--ft-popover-icon-size","",u.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","",u.spacing3),borderRadius:n.extend("--ft-popover-border-radius","",u.borderRadiusM),shadow:n.extend("--ft-popover-shadow","",u.shadowElevation02)};var jc={topLeftBorderRadius:n.extend("--ft-tabs-top-left-border-radius","",u.borderRadiusS),topRightBorderRadius:n.extend("--ft-tabs-top-right-border-radius","",u.borderRadiusS),labelHorizontalPadding:n.extend("--ft-tabs-label-horizontal-padding","",u.spacing4),labelVerticalPadding:n.extend("--ft-tabs-label-vertical-padding","",u.spacing3),labelGap:n.extend("--ft-tabs-label-gap","",u.spacing1),offHoverStateLayerOpacity:n.extend("--ft-tabs-off-hover-state-layer-opacity","",u.opacity8),offFocusStateLayerOpacity:n.extend("--ft-tabs-off-focus-state-layer-opacity","",u.opacity8),offActiveStateLayerOpacity:n.extend("--ft-tabs-off-active-state-layer-opacity","",u.opacity16),offDisabledComponentOpacity:n.extend("--ft-tabs-off-disabled-component-opacity","",u.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","",u.opacity8),onFocusStateLayerOpacity:n.extend("--ft-tabs-on-focus-state-layer-opacity","",u.opacity8),onActiveStateLayerOpacity:n.extend("--ft-tabs-on-active-state-layer-opacity","",u.opacity16),onDisabledComponentOpacity:n.extend("--ft-tabs-on-disabled-component-opacity","",u.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","",u.spacing1),iconVerticalPadding:n.extend("--ft-tabs-icon-vertical-padding","",u.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","",u.opacity8),focusStateLayerOpacity:n.extend("--ft-collapsible-focus-state-layer-opacity","",u.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","",u.opacity16),disabledComponentOpacity:n.extend("--ft-collapsible-disabled-component-opacity","",u.opacity40),horizontalPadding:n.extend("--ft-collapsible-horizontal-padding","",u.spacing4),verticalPadding:n.extend("--ft-collapsible-vertical-padding","",u.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","",u.iconSize3)};var Vc={groupHorizontalPadding:n.extend("--ft-switch-group-horizontal-padding","",u.spacing1),groupVerticalPadding:n.extend("--ft-switch-group-vertical-padding","",u.spacing1),groupGap:n.extend("--ft-switch-group-gap","",u.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","",u.spacing2),labelVerticalPadding:n.extend("--ft-switch-label-vertical-padding","",u.spacing1),offHoverStateLayerOpacity:n.extend("--ft-switch-off-hover-state-layer-opacity","",u.opacity8),offFocusStateLayerOpacity:n.extend("--ft-switch-off-focus-state-layer-opacity","",u.opacity8),offActiveStateLayerOpacity:n.extend("--ft-switch-off-active-state-layer-opacity","",u.opacity16),offDisabledComponentOpacity:n.extend("--ft-switch-off-disabled-component-opacity","",u.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","",u.opacity8),onFocusStateLayerOpacity:n.extend("--ft-switch-on-focus-state-layer-opacity","",u.opacity8),onActiveStateLayerOpacity:n.extend("--ft-switch-on-active-state-layer-opacity","",u.opacity16),onDisabledComponentOpacity:n.extend("--ft-switch-on-disabled-component-opacity","",u.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","",u.spacing1),iconVerticalPadding:n.extend("--ft-switch-icon-vertical-padding","",u.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","",u.borderRadiusS)};var Gc={color1Light:n.extend("--ft-chart-1-light","for area color charts",u.colorBrand40),color1Base:n.extend("--ft-chart-1-base","for line charts",u.colorBrand0),color2Light:n.extend("--ft-chart-2-light","for area color charts",u.colorYellow60),color2Base:n.extend("--ft-chart-2-base","for line charts",u.colorYellow100),color3Light:n.extend("--ft-chart-3-light","",u.colorUltramarine40),color3Base:n.extend("--ft-chart-3-base","",u.colorUltramarine70),color4Light:n.extend("--ft-chart-4-light","",u.colorCyan50),color4Base:n.extend("--ft-chart-4-base","",u.colorCyan100),color5Light:n.extend("--ft-chart-5-light","",u.colorRed40),color5Base:n.extend("--ft-chart-5-base","",u.colorRed60),color6Light:n.extend("--ft-chart-6-light","",u.colorGreen40),color6Base:n.extend("--ft-chart-6-base","",u.colorGreen70),color7Light:n.extend("--ft-chart-7-light","",u.colorOrange70),color7Base:n.extend("--ft-chart-7-base","",u.colorOrange100),color8Light:n.extend("--ft-chart-8-light","",u.colorAvocado70),color8Base:n.extend("--ft-chart-8-base","",u.colorAvocado200),color9Light:n.extend("--ft-chart-9-light","",u.colorBrown50),color9Base:n.extend("--ft-chart-9-base","",u.colorBrown200),color10Light:n.extend("--ft-chart-10-light","",u.colorGray50),color10Base:n.extend("--ft-chart-10-base","",u.colorGray80),monochrome10:n.extend("--ft-chart-monochrome-10","",u.colorBrand10),monochrome20:n.extend("--ft-chart-monochrome-20","",u.colorBrand20),monochrome30:n.extend("--ft-chart-monochrome-30","",u.colorBrand40),monochrome40:n.extend("--ft-chart-monochrome-40","",u.colorBrand60),monochrome50:n.extend("--ft-chart-monochrome-50","",u.colorBrand0),monochrome60:n.extend("--ft-chart-monochrome-60","",u.colorBrand200)};var Zc={largeHorizontalPadding:n.extend("--ft-chip-large-horizontal-padding","",u.spacing4),largeVerticalPadding:n.extend("--ft-chip-large-vertical-padding","",u.spacing2),largeGap:n.extend("--ft-chip-large-gap","",u.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","",u.borderRadiusPill),largeBorderWidth:n.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:n.extend("--ft-chip-large-icon-size","",u.iconSize3),mediumHorizontalPadding:n.extend("--ft-chip-medium-horizontal-padding","",u.spacing3),mediumVerticalPadding:n.extend("--ft-chip-medium-vertical-padding","",u.spacing1),mediumGap:n.extend("--ft-chip-medium-gap","",u.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","",u.borderRadiusPill),mediumBorderWidth:n.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:n.extend("--ft-chip-medium-icon-size","",u.iconSize2),smallHorizontalPadding:n.extend("--ft-chip-small-horizontal-padding","",u.spacing2),smallVerticalPadding:n.extend("--ft-chip-small-vertical-padding","",u.spacing05),smallGap:n.extend("--ft-chip-small-gap","",u.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","",u.borderRadiusPill),smallBorderWidth:n.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:n.extend("--ft-chip-small-icon-size","",u.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","",u.spacing2),verticalPadding:n.extend("--ft-notice-vertical-padding","",u.spacing1),borderRadius:n.extend("--ft-notice-border-radius","",u.borderRadiusS),gap:n.extend("--ft-notice-gap","",u.spacing2),iconSize:n.extend("--ft-notice-icon-size","",u.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","",u.opacity16),checkedFocusStateLayerOpacity:n.extend("--ft-checkbox-checked-focus-state-layer-opacity","",u.opacity16),checkedActiveStateLayerOpacity:n.extend("--ft-checkbox-checked-active-state-layer-opacity","",u.opacity24),checkedDisabledComponentOpacity:n.extend("--ft-checkbox-checked-disabled-component-opacity","",u.opacity40),uncheckedBorderColor:n.extend("--ft-checkbox-unchecked-border-color","",u.colorGray80),uncheckedStateLayerColor:n.extend("--ft-checkbox-unchecked-state-layer-color","",u.colorGray80),uncheckedHoverStateLayerOpacity:n.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",u.opacity16),uncheckedFocusStateLayerOpacity:n.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",u.opacity16),uncheckedActiveStateLayerOpacity:n.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",u.opacity24),uncheckedDisabledComponentOpacity:n.extend("--ft-checkbox-unchecked-disabled-component-opacity","",u.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","",u.spacing3)};var Xc={offHoverStateLayerOpacity:n.extend("--ft-toggle-off-hover-state-layer-opacity","",u.opacity16),offFocusStateLayerOpacity:n.extend("--ft-toggle-off-focus-state-layer-opacity","",u.opacity16),offActiveStateLayerOpacity:n.extend("--ft-toggle-off-active-state-layer-opacity","",u.opacity24),offDisabledComponentOpacity:n.extend("--ft-toggle-off-disabled-component-opacity","",u.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","",u.opacity16),onFocusStateLayerOpacity:n.extend("--ft-toggle-on-focus-state-layer-opacity","",u.opacity16),onActiveStateLayerOpacity:n.extend("--ft-toggle-on-active-state-layer-opacity","",u.opacity24),onDisabledComponentOpacity:n.extend("--ft-toggle-on-disabled-component-opacity","",u.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","",u.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","",u.opacity16),selectedFocusStateLayerOpacity:n.extend("--ft-radio-selected-focus-state-layer-opacity","",u.opacity16),selectedActiveStateLayerOpacity:n.extend("--ft-radio-selected-active-state-layer-opacity","",u.opacity24),selectedDisabledComponentOpacity:n.extend("--ft-radio-selected-disabled-component-opacity","",u.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","",u.opacity16),unselectedFocusStateLayerOpacity:n.extend("--ft-radio-unselected-focus-state-layer-opacity","",u.opacity16),unselectedActiveStateLayerOpacity:n.extend("--ft-radio-unselected-active-state-layer-opacity","",u.opacity24),unselectedDisabledComponentOpacity:n.extend("--ft-radio-unselected-disabled-component-opacity","",u.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","",u.spacing3)};var el={iconSize:n.extend("--ft-notification-icon-size","",u.iconSize4),horizontalPadding:n.extend("--ft-notification-horizontal-padding","",u.spacing4),verticalPadding:n.extend("--ft-notification-vertical-padding","",u.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","",u.borderRadiusPill),borderWidth:n.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:n.extend("--ft-notification-leading-gap","",u.spacing2),trailingGap:n.extend("--ft-notification-trailing-gap","",u.spacing8)};var tl={horizontalPadding:n.extend("--ft-tooltip-horizontal-padding","",u.spacing2),verticalPadding:n.extend("--ft-tooltip-vertical-padding","",u.spacing2),borderRadius:n.extend("--ft-tooltip-border-radius","",u.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","",u.opacity80),shadow:n.extend("--ft-tooltip-shadow","",u.shadowElevation03),maxWidth:n.create("--ft-tooltip-max-width","","SIZE","256px"),gap:n.extend("--ft-tooltip-gap","",u.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),d=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&&d?-1:1);break;case"end":y[s]+=g*(t&&d?-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)),d=await s.getElementRects({reference:r,floating:e,strategy:i}),{x:p,y:h}=Xi(d,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:d,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&&(d=w.rects===!0?await s.getElementRects({reference:r,floating:e,strategy:i}):w.rects),{x:p,y:h}=Xi(d,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:d="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:d,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:d}=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(d.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),d={x:t,y:o},p=await Mo(e,c),h=vr(ct(i)),g=ko(h),y=d[g],b=d[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 ut(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=ut(o)):s=ut(r));let l=cl(a,t,o)?la(a):me(0),c=(i.left+l.x)/s.x,d=(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=ut(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,d*=O.y,p*=O.x,h*=O.y,c+=N,d+=S,b=G(b).frameElement}}return Ze({width:p,height:h,x:c,y:d})}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 d=$t(t);l=ut(t),c.x=d.x+t.clientLeft,c.y=d.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 ul(r){return Array.from(r.getClientRects())}function ua(r){return $t(ye(r)).left+Dt(r).scrollLeft}function dl(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+ua(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 d=Or();(!d||d&&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)?ut(r):me(1),s=r.clientWidth*a.x,l=r.clientHeight*a.y,c=i*a.x,d=o*a.y;return{width:s,height:l,x:c,y:d}}function ia(r,e,t){let o;if(e==="viewport")o=pl(r,t);else if(e==="document")o=dl(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 da(r,e){let t=qe(r);return t===e||!se(t)||Mt(t)?!1:Y(t).position==="fixed"||da(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&&da(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((d,p)=>{let h=ia(e,p,i);return d.top=Ae(h.top,d.top),d.right=Lt(h.right,d.right),d.bottom=Lt(h.bottom,d.bottom),d.left=Ae(h.left,d.left),d},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 d=$t(e,!0,a,e);c.x=d.x+e.clientLeft,c.y=d.y+e.clientTop}else i&&(c.x=ua(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:ul,getDimensions:gl,getScale:ut,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,d=e.filter(c).map(g=>g.trim());if(d.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=>d.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(d=>{r.matches(d,this.exclude)?c():this.onIframeReady(d,p=>{t(d)&&(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=[],d,p,h=()=>({prevNode:p,node:d}=this.getIteratorNode(s),d);for(;h();)this.iframes&&this.forEachIframe(t,g=>this.checkIframeFilter(d,p,g,l),g=>{this.createInstanceOnIframe(g).forEachNode(e,y=>c.push(y),i)}),c.push(d);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 d=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,d,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 d;for(;(d=e.exec(c.textContent))!==null&&d[s]!=="";){if(!o(d[s],c))continue;let p=d.index;if(s!==0)for(let h=1;h<s;h++)p+=d[h].length;c=this.wrapRangeInTextNode(c,p,p+d[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 d=c.index;if(s!==0)for(let h=1;h<s;h++)d+=c[h].length;let p=d+c[s].length;this.wrapRangeInMappedTextNode(l,d,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:d,end:p,valid:h}=this.checkWhitespaceRanges(l,s,a.value);h&&this.wrapRangeInMappedTextNode(a,d,p,g=>t(g,l,a.value.substring(d,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=d=>{let p=new RegExp(this.createRegExp(d),`gm${l}`),h=0;this.log(`Searching with expression "${p}"`),this[i](p,1,(g,y)=>this.opt.filter(y,d,o,h),g=>{h++,o++,this.opt.each(g)},()=>{h===0&&this.opt.noMatch(d),a[s-1]===d?this.opt.done(o):c(a[a.indexOf(d)+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
7
  .highlight-html-match {
8
8
  background: ${Sa};
9
9
  }
@@ -39,18 +39,18 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:n.extend("--ft-conte
39
39
  display: inline-block;
40
40
  width: 0;
41
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`
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,d)=>this.formatValue(s,d))),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:()=>pu,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 dt(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&&!dt(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,d=Kt;s&&(c=[l],d=zt);var p=Proxy.revocable(c,d),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 d=this[M];return Kt.get(d,s)},set:function(d){var p=this[M];Kt.set(p,s,d)}},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,d=pt(c),p=d.length-1;p>=0;p--){var h=d[p];if(h!==M){var g=l[h];if(g===void 0&&!dt(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 d.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 d=0;d<l.length;d++)if(!l.hasOwnProperty(d))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),d=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:d,o:null,g:!1,C:!1};return Object.defineProperty(d,M,{value:p,writable:!0}),d},S:function(s,l,c){c?be(l)&&l[M].A===s&&e(s.p):(s.u&&function d(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||dt(g,x)?b[x]||d(y[x]):(b[x]=!0,Pe(h)))}),Qe(g,function(x){y[x]!==void 0||dt(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&&d(y[S])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?t(s):o(s)}})}var _a,jt,un=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=un?Symbol.for("immer-nothing"):((_a={})["immer-nothing"]=!0,_a),Pa=un?Symbol.for("immer-draftable"):"__$immer_draftable",M=un?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(!dt(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||dt(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 d;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{d=a(h),g=!1}finally{g?Ar(p):tn(p)}return typeof Promise<"u"&&d instanceof Promise?d.then(function(O){return Yo(p,s),Jo(O,p)},function(O){throw Ar(p),O}):(Yo(p,s),Jo(d,p))}if(!i||typeof i!="object"){if((d=a(i))===void 0&&(d=i),d===Ma&&(d=void 0),o.D&&cn(d,!0),s){var y=[],b=[];le("Patches").M(i,d,y,b),s(y,b)}return d}ee(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(d){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(d,function(y){return i.apply(void 0,[y].concat(h))})};var s,l,c=o.produce(i,a,function(d,p){s=d,l=p});return typeof Promise<"u"&&c instanceof Promise?c.then(function(d){return[d,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 dn(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=dn(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 d(){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 d(),l.push(O),function(){if(C){if(c)throw new Error(K(6));C=!1,d();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(d,p){if(d===void 0&&(d={}),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=d[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(d).length,g?y:d}}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(d){return function(p){return c([d,p])}}function c(d){if(o)throw new TypeError("Generator is already executing.");for(;t;)try{if(o=1,i&&(a=d[0]&2?i.return:d[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,d[1])).done)return a;switch(i=0,a&&(d=[d[0]&2,a.value]),d[0]){case 0:case 1:a=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,i=d[1],d=[0];continue;case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){t.label=d[1];break}if(d[0]===6&&t.label<a[1]){t.label=a[1],a=d;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(d);break}a[2]&&t.ops.pop(),t.trys.pop();continue}d=e.call(r,t)}catch(p){d=[6,p],i=0}finally{o=a=0}if(d[0]&5)throw d[1];return{value:d[0]?d[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(d){i(d)}},s=function(c){try{l(t.throw(c))}catch(d){i(d)}},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 eu(){return function(e){return tu(e)}}function tu(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 d}return l}var bn=!0;function qa(r){var e=eu(),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,d=t.preloadedState,p=d===void 0?void 0:d,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 ru(r){return typeof r=="function"}function ou(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(ru(r))c=function(){return xn(r())};else{var d=xn(r);c=function(){return d}}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 nu(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=nu(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 ou(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 d;return{name:e,reducer:function(p,h){return d||(d=c()),d(p,h)},actions:l,caseReducers:a,getInitialState:function(){return d||(d=c()),d.getInitialState()}}}var iu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",au=function(r){r===void 0&&(r=21);for(var e="",t=r;t--;)e+=iu[Math.random()*64|0];return e},su=["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}(),cu=function(r){if(typeof r=="object"&&r!==null){for(var e={},t=0,o=su;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||cu)(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 d(p){return function(h,g,y){var b=o?.idGenerator?o.idGenerator(p):au(),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}),uu(_)?[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(lu)}})}}return Object.assign(d,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return r.withTypes=function(){return r},r}();function lu(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function uu(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)})},du=function(r){return function(e){setTimeout(e,r)}},Xm=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:du(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,d)=>d.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof d.type=="string"&&d.type.startsWith("DEFAULT_VALUE_SETTER__")?{...c,...d.overwrites}:s.reducer(c,d)});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 d=l(...c);return this.reduxStore.dispatch(d),d}: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 pu(){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:()=>hu});function fu(r){return`"${r}"`}function hu(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,d=c?`_${c.from}_${c.to}`:"";s.append("period",e.periodFilter.periodType.toLowerCase()+d)}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(d=>{let p=d.values.map(h=>h.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*")).map(h=>encodeURIComponent(fu(h))).join("_");return`${d.key}~${p}`}).join("*");s.append("filters",c)}return new URL(`${r.replace(/\/+$/,"")}/search?${s.toString()}`).href}var En={};U(En,{toFtFormComponent:()=>mu});var Pr=Symbol("elementInternals");function mu(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,gu=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]",yu="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:gu,isTouchScreen:yu}};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(/^\//,""),d={tocId:i.tocId,contentId:i.contentId,title:i.title,hasRating:i.hasRating,origin:i.origin,prettyUrl:c,depth:t,parentTocId:o,children:[]};this.register(d);let p=this.convertSectionNodes((l=i.pageToc)!==null&&l!==void 0?l:[],t+1,i.tocId),h=this.convertNodes(i.children,t+1,d.tocId);return d.children=[...p,...h],[d]})}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 d={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?d.topics:d.hiddenTopics).push(g),h=(l=(s=e.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&l!==void 0?l:[];return d.breadcrumb.forEach((g,y)=>{p(g,h[y])}),e.tocId&&p(e.tocId,e.pageConfiguration.isVisible),d.topics.push(...this.tocIds((c=e.pageToc)!==null&&c!==void 0?c:[])),d}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 us;(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(us||(us={}));var Lr;(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(Lr||(Lr={}));var ds;(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"})(ds||(ds={}));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 bu={[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||(bu[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 vu="ft-app-info",xu={},I=ve.get({name:vu,reducers:xu,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 ue=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,Su=Symbol("clearAfterUnitTest"),Ur=class extends ue{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=Su;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
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`
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 ue{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 ue{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 Ou="ft-user-assets",$r=ve.get({name:Ou,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 ue{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],d=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:d?.replace(/^r\//,""),prettyUrlDuplicated:(a=s?.duplicatedPrettyUrls.has(d??""))!==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 d;return(d=this.store.getState().configuration)===null||d===void 0?void 0:d.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 d=c.results[0].entries[0].topic.tocId;return await this.navigateToTopic(d),!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},wu=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
47
  ${this.importStyleIfNeeded()}
48
48
  <slot @register-ft-reader-component=${this.registerComponent}></slot>
49
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
50
  <style>
51
51
  @import "${o}"
52
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);})();
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:wu()}})],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
54
  /*! Bundled license information:
55
55
 
56
56
  @webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js: