@fluid-topics/ft-reader-feedback 1.2.28 → 1.2.29

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,14 +1,14 @@
1
- "use strict";(()=>{var Ap=Object.create;var vn=Object.defineProperty;var _p=Object.getOwnPropertyDescriptor;var Rp=Object.getOwnPropertyNames;var Tp=Object.getPrototypeOf,Ip=Object.prototype.hasOwnProperty;var Np=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ot=(e,t)=>{for(var r in t)vn(e,r,{get:t[r],enumerable:!0})},Pp=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Rp(t))!Ip.call(e,n)&&n!==r&&vn(e,n,{get:()=>t[n],enumerable:!(i=_p(t,n))||i.enumerable});return e};var Lp=(e,t,r)=>(r=e!=null?Ap(Tp(e)):{},Pp(t||!e||!e.__esModule?vn(r,"default",{value:e,enumerable:!0}):r,e));var ad=Np((Ke,nd)=>{var Di=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Mi=function(){function e(){this.fetch=!1,this.DOMException=Di.DOMException}return e.prototype=Di,new e}();(function(e){var t=function(r){var i=typeof e<"u"&&e||typeof self<"u"&&self||typeof global<"u"&&global||{},n={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};function a(y){return y&&DataView.prototype.isPrototypeOf(y)}if(n.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(y){return y&&s.indexOf(Object.prototype.toString.call(y))>-1};function d(y){if(typeof y!="string"&&(y=String(y)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(y)||y==="")throw new TypeError('Invalid character in header field name: "'+y+'"');return y.toLowerCase()}function p(y){return typeof y!="string"&&(y=String(y)),y}function h(y){var C={next:function(){var D=y.shift();return{done:D===void 0,value:D}}};return n.iterable&&(C[Symbol.iterator]=function(){return C}),C}function f(y){this.map={},y instanceof f?y.forEach(function(C,D){this.append(D,C)},this):Array.isArray(y)?y.forEach(function(C){if(C.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+C.length);this.append(C[0],C[1])},this):y&&Object.getOwnPropertyNames(y).forEach(function(C){this.append(C,y[C])},this)}f.prototype.append=function(y,C){y=d(y),C=p(C);var D=this.map[y];this.map[y]=D?D+", "+C:C},f.prototype.delete=function(y){delete this.map[d(y)]},f.prototype.get=function(y){return y=d(y),this.has(y)?this.map[y]:null},f.prototype.has=function(y){return this.map.hasOwnProperty(d(y))},f.prototype.set=function(y,C){this.map[d(y)]=p(C)},f.prototype.forEach=function(y,C){for(var D in this.map)this.map.hasOwnProperty(D)&&y.call(C,this.map[D],D,this)},f.prototype.keys=function(){var y=[];return this.forEach(function(C,D){y.push(D)}),h(y)},f.prototype.values=function(){var y=[];return this.forEach(function(C){y.push(C)}),h(y)},f.prototype.entries=function(){var y=[];return this.forEach(function(C,D){y.push([D,C])}),h(y)},n.iterable&&(f.prototype[Symbol.iterator]=f.prototype.entries);function m(y){if(!y._noBody){if(y.bodyUsed)return Promise.reject(new TypeError("Already read"));y.bodyUsed=!0}}function v(y){return new Promise(function(C,D){y.onload=function(){C(y.result)},y.onerror=function(){D(y.error)}})}function x(y){var C=new FileReader,D=v(C);return C.readAsArrayBuffer(y),D}function E(y){var C=new FileReader,D=v(C),q=/charset=([A-Za-z0-9_-]+)/.exec(y.type),Q=q?q[1]:"utf-8";return C.readAsText(y,Q),D}function R(y){for(var C=new Uint8Array(y),D=new Array(C.length),q=0;q<C.length;q++)D[q]=String.fromCharCode(C[q]);return D.join("")}function I(y){if(y.slice)return y.slice(0);var C=new Uint8Array(y.byteLength);return C.set(new Uint8Array(y)),C.buffer}function P(){return this.bodyUsed=!1,this._initBody=function(y){this.bodyUsed=this.bodyUsed,this._bodyInit=y,y?typeof y=="string"?this._bodyText=y:n.blob&&Blob.prototype.isPrototypeOf(y)?this._bodyBlob=y:n.formData&&FormData.prototype.isPrototypeOf(y)?this._bodyFormData=y:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)?this._bodyText=y.toString():n.arrayBuffer&&n.blob&&a(y)?(this._bodyArrayBuffer=I(y.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(y)||l(y))?this._bodyArrayBuffer=I(y):this._bodyText=y=Object.prototype.toString.call(y):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof y=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var y=m(this);if(y)return y;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(){if(this._bodyArrayBuffer){var y=m(this);return y||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(n.blob)return this.blob().then(x);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var y=m(this);if(y)return y;if(this._bodyBlob)return E(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(R(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},n.formData&&(this.formData=function(){return this.text().then(L)}),this.json=function(){return this.text().then(JSON.parse)},this}var w=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function O(y){var C=y.toUpperCase();return w.indexOf(C)>-1?C:y}function A(y,C){if(!(this instanceof A))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');C=C||{};var D=C.body;if(y instanceof A){if(y.bodyUsed)throw new TypeError("Already read");this.url=y.url,this.credentials=y.credentials,C.headers||(this.headers=new f(y.headers)),this.method=y.method,this.mode=y.mode,this.signal=y.signal,!D&&y._bodyInit!=null&&(D=y._bodyInit,y.bodyUsed=!0)}else this.url=String(y);if(this.credentials=C.credentials||this.credentials||"same-origin",(C.headers||!this.headers)&&(this.headers=new f(C.headers)),this.method=O(C.method||this.method||"GET"),this.mode=C.mode||this.mode||null,this.signal=C.signal||this.signal||function(){if("AbortController"in i){var V=new AbortController;return V.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&D)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(D),(this.method==="GET"||this.method==="HEAD")&&(C.cache==="no-store"||C.cache==="no-cache")){var q=/([?&])_=[^&]*/;if(q.test(this.url))this.url=this.url.replace(q,"$1_="+new Date().getTime());else{var Q=/\?/;this.url+=(Q.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}A.prototype.clone=function(){return new A(this,{body:this._bodyInit})};function L(y){var C=new FormData;return y.trim().split("&").forEach(function(D){if(D){var q=D.split("="),Q=q.shift().replace(/\+/g," "),V=q.join("=").replace(/\+/g," ");C.append(decodeURIComponent(Q),decodeURIComponent(V))}}),C}function F(y){var C=new f,D=y.replace(/\r?\n[\t ]+/g," ");return D.split("\r").map(function(q){return q.indexOf(`
2
- `)===0?q.substr(1,q.length):q}).forEach(function(q){var Q=q.split(":"),V=Q.shift().trim();if(V){var pe=Q.join(":").trim();try{C.append(V,pe)}catch(so){console.warn("Response "+so.message)}}}),C}P.call(A.prototype);function Z(y,C){if(!(this instanceof Z))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(C||(C={}),this.type="default",this.status=C.status===void 0?200:C.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=C.statusText===void 0?"":""+C.statusText,this.headers=new f(C.headers),this.url=C.url||"",this._initBody(y)}P.call(Z.prototype),Z.prototype.clone=function(){return new Z(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},Z.error=function(){var y=new Z(null,{status:200,statusText:""});return y.ok=!1,y.status=0,y.type="error",y};var K=[301,302,303,307,308];Z.redirect=function(y,C){if(K.indexOf(C)===-1)throw new RangeError("Invalid status code");return new Z(null,{status:C,headers:{location:y}})},r.DOMException=i.DOMException;try{new r.DOMException}catch{r.DOMException=function(C,D){this.message=C,this.name=D;var q=Error(C);this.stack=q.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function U(y,C){return new Promise(function(D,q){var Q=new A(y,C);if(Q.signal&&Q.signal.aborted)return q(new r.DOMException("Aborted","AbortError"));var V=new XMLHttpRequest;function pe(){V.abort()}V.onload=function(){var Tt={statusText:V.statusText,headers:F(V.getAllResponseHeaders()||"")};Q.url.indexOf("file://")===0&&(V.status<200||V.status>599)?Tt.status=200:Tt.status=V.status,Tt.url="responseURL"in V?V.responseURL:Tt.headers.get("X-Request-URL");var er="response"in V?V.response:V.responseText;setTimeout(function(){D(new Z(er,Tt))},0)},V.onerror=function(){setTimeout(function(){q(new TypeError("Network request failed"))},0)},V.ontimeout=function(){setTimeout(function(){q(new TypeError("Network request timed out"))},0)},V.onabort=function(){setTimeout(function(){q(new r.DOMException("Aborted","AbortError"))},0)};function so(Tt){try{return Tt===""&&i.location.href?i.location.href:Tt}catch{return Tt}}if(V.open(Q.method,so(Q.url),!0),Q.credentials==="include"?V.withCredentials=!0:Q.credentials==="omit"&&(V.withCredentials=!1),"responseType"in V&&(n.blob?V.responseType="blob":n.arrayBuffer&&(V.responseType="arraybuffer")),C&&typeof C.headers=="object"&&!(C.headers instanceof f||i.Headers&&C.headers instanceof i.Headers)){var nl=[];Object.getOwnPropertyNames(C.headers).forEach(function(Tt){nl.push(d(Tt)),V.setRequestHeader(Tt,p(C.headers[Tt]))}),Q.headers.forEach(function(Tt,er){nl.indexOf(er)===-1&&V.setRequestHeader(er,Tt)})}else Q.headers.forEach(function(Tt,er){V.setRequestHeader(er,Tt)});Q.signal&&(Q.signal.addEventListener("abort",pe),V.onreadystatechange=function(){V.readyState===4&&Q.signal.removeEventListener("abort",pe)}),V.send(typeof Q._bodyInit>"u"?null:Q._bodyInit)})}return U.polyfill=!0,i.fetch||(i.fetch=U,i.Headers=f,i.Request=A,i.Response=Z),r.Headers=f,r.Request=A,r.Response=Z,r.fetch=U,r}({})})(Mi);Mi.fetch.ponyfill=!0;delete Mi.fetch.polyfill;var qr=Di.fetch?Di:Mi;Ke=qr.fetch;Ke.default=qr.fetch;Ke.fetch=qr.fetch;Ke.Headers=qr.Headers;Ke.Request=qr.Request;Ke.Response=qr.Response;nd.exports=Ke});if(!ShadowRoot.prototype.createElement){let e=window.HTMLElement,t=window.customElements.define,r=window.customElements.get,i=window.customElements,n=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(w,O){if(w=w.toLowerCase(),this._getDefinition(w)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${w}" has already been used with this registry`);if(this._definitionsByClass.get(O)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let A=O.prototype.attributeChangedCallback,L=new Set(O.observedAttributes||[]);m(O,L,A);let F={elementClass:O,connectedCallback:O.prototype.connectedCallback,disconnectedCallback:O.prototype.disconnectedCallback,adoptedCallback:O.prototype.adoptedCallback,attributeChangedCallback:A,formAssociated:O.formAssociated,formAssociatedCallback:O.prototype.formAssociatedCallback,formDisabledCallback:O.prototype.formDisabledCallback,formResetCallback:O.prototype.formResetCallback,formStateRestoreCallback:O.prototype.formStateRestoreCallback,observedAttributes:L};this._definitionsByTag.set(w,F),this._definitionsByClass.set(O,F);let Z=r.call(i,w);Z||(Z=f(w),t.call(i,w,Z)),this===window.customElements&&(s.set(O,F),F.standInClass=Z);let K=this._awaitingUpgrade.get(w);if(K){this._awaitingUpgrade.delete(w);for(let y of K)a.delete(y),x(y,F,!0)}let U=this._whenDefinedPromises.get(w);return U!==void 0&&(U.resolve(O),this._whenDefinedPromises.delete(w)),O}upgrade(){R.push(this),i.upgrade.apply(i,arguments),R.pop()}get(w){return this._definitionsByTag.get(w)?.elementClass}_getDefinition(w){return this._definitionsByTag.get(w)}whenDefined(w){let O=this._getDefinition(w);if(O!==void 0)return Promise.resolve(O.elementClass);let A=this._whenDefinedPromises.get(w);return A===void 0&&(A={},A.promise=new Promise(L=>A.resolve=L),this._whenDefinedPromises.set(w,A)),A.promise}_upgradeWhenDefined(w,O,A){let L=this._awaitingUpgrade.get(O);L||this._awaitingUpgrade.set(O,L=new Set),A?L.add(w):L.delete(w)}};let d;window.HTMLElement=function(){let O=d;if(O)return d=void 0,O;let A=s.get(this.constructor);if(!A)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return O=Reflect.construct(e,[],A.standInClass),Object.setPrototypeOf(O,this.constructor.prototype),n.set(O,A),O},window.HTMLElement.prototype=e.prototype;let p=w=>w===document||w instanceof ShadowRoot,h=w=>{let O=w.getRootNode();if(!p(O)){let A=R[R.length-1];if(A instanceof CustomElementRegistry)return A;O=A.getRootNode(),p(O)||(O=l.get(O)?.getRootNode()||document)}return O.customElements},f=w=>class{static get formAssociated(){return!0}constructor(){let A=Reflect.construct(e,[],this.constructor);Object.setPrototypeOf(A,HTMLElement.prototype);let L=h(A)||window.customElements,F=L._getDefinition(w);return F?x(A,F):a.set(A,L),A}connectedCallback(){let A=n.get(this);A?A.connectedCallback&&A.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,w,!0)}disconnectedCallback(){let A=n.get(this);A?A.disconnectedCallback&&A.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,w,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let A=n.get(this);A&&A.formAssociated&&A?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let A=n.get(this);A?.formAssociated&&A?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let A=n.get(this);A?.formAssociated&&A?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let A=n.get(this);A?.formAssociated&&A?.formStateRestoreCallback?.apply(this,arguments)}},m=(w,O,A)=>{if(O.size===0||A===void 0)return;let L=w.prototype.setAttribute;L&&(w.prototype.setAttribute=function(K,U){let y=K.toLowerCase();if(O.has(y)){let C=this.getAttribute(y);L.call(this,y,U),A.call(this,y,C,U)}else L.call(this,y,U)});let F=w.prototype.removeAttribute;F&&(w.prototype.removeAttribute=function(K){let U=K.toLowerCase();if(O.has(U)){let y=this.getAttribute(U);F.call(this,U),A.call(this,U,y,null)}else F.call(this,U)});let Z=w.prototype.toggleAttribute;Z&&(w.prototype.toggleAttribute=function(K,U){let y=K.toLowerCase();if(O.has(y)){let C=this.getAttribute(y);Z.call(this,y,U);let D=this.getAttribute(y);A.call(this,y,C,D)}else Z.call(this,y,U)})},v=w=>{let O=Object.getPrototypeOf(w);if(O!==window.HTMLElement)return O===e?Object.setPrototypeOf(w,window.HTMLElement):v(O)},x=(w,O,A=!1)=>{Object.setPrototypeOf(w,O.elementClass.prototype),n.set(w,O),d=w;try{new O.elementClass}catch{v(O.elementClass),new O.elementClass}O.attributeChangedCallback&&O.observedAttributes.forEach(L=>{w.hasAttribute(L)&&O.attributeChangedCallback.call(w,L,null,w.getAttribute(L))}),A&&O.connectedCallback&&w.isConnected&&O.connectedCallback.call(w)},E=Element.prototype.attachShadow;Element.prototype.attachShadow=function(w){let O=E.apply(this,arguments);return w.customElements&&(O.customElements=w.customElements),O};let R=[document],I=(w,O,A=void 0)=>{let L=(A?Object.getPrototypeOf(A):w.prototype)[O];w.prototype[O]=function(){R.push(this);let F=L.apply(A||this,arguments);return F!==void 0&&l.set(F,this),R.pop(),F}};I(ShadowRoot,"createElement",document),I(ShadowRoot,"importNode",document),I(Element,"insertAdjacentHTML");let P=(w,O)=>{let A=Object.getOwnPropertyDescriptor(w.prototype,O);Object.defineProperty(w.prototype,O,{...A,set(L){R.push(this),A.set.call(this,L),R.pop()}})};if(P(Element,"innerHTML"),P(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let w=new WeakMap,O=HTMLElement.prototype.attachInternals,A=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...K){let U=O.call(this,...K);return w.set(U,this),U},A.forEach(K=>{let U=window.ElementInternals.prototype,y=U[K];U[K]=function(...C){let D=w.get(this);if(n.get(D).formAssociated===!0)return y?.call(this,...C);throw new DOMException(`Failed to execute ${y} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class L extends Array{constructor(U){super(...U),this._elements=U}get value(){return this._elements.find(U=>U.checked===!0)?.value||""}}class F{constructor(U){let y=new Map;U.forEach((C,D)=>{let q=C.getAttribute("name"),Q=y.get(q)||[];this[+D]=C,Q.push(C),y.set(q,Q)}),this.length=U.length,y.forEach((C,D)=>{C&&(C.length===1?this[D]=C[0]:this[D]=new L(C))})}namedItem(U){return this[U]}}let Z=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let K=Z.get.call(this,[]),U=[];for(let y of K){let C=n.get(y);(!C||C.formAssociated===!0)&&U.push(y)}return new F(U)}})}}try{window.customElements.define("custom-element",null)}catch{let t=window.customElements.define;window.customElements.define=(r,i,n)=>{if(i!==null)try{t.bind(window.customElements)(r,i,n)}catch(a){console.info(r,i,n,a)}}}var Pn={};ot(Pn,{CSSResult:()=>$r,LitElement:()=>Ee,ReactiveElement:()=>ue,_$LE:()=>ou,_$LH:()=>tu,adoptStyles:()=>ci,css:()=>$,defaultConverter:()=>di,getCompatibleStyle:()=>yo,html:()=>k,isServer:()=>zh,noChange:()=>Me,notEqual:()=>An,nothing:()=>W,render:()=>Nn,supportsAdoptingStyleSheets:()=>mo,svg:()=>Qp,unsafeCSS:()=>Oe});var qo=globalThis,Xo=qo.ShadowRoot&&(qo.ShadyCSS===void 0||qo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,sl=Symbol(),al=new WeakMap,Yo=class{constructor(t,r,i){if(this._$cssResult$=!0,i!==sl)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(Xo&&t===void 0){let i=r!==void 0&&r.length===1;i&&(t=al.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&al.set(r,t))}return t}toString(){return this.cssText}},ll=e=>new Yo(typeof e=="string"?e:e+"",void 0,sl);var xn=(e,t)=>{if(Xo)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let i=document.createElement("style"),n=qo.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,e.appendChild(i)}},Jo=Xo?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let i of t.cssRules)r+=i.cssText;return ll(r)})(e):e;var{is:kp,defineProperty:$p,getOwnPropertyDescriptor:Dp,getOwnPropertyNames:Mp,getOwnPropertySymbols:Up,getPrototypeOf:Bp}=Object,Qo=globalThis,cl=Qo.trustedTypes,Fp=cl?cl.emptyScript:"",Wp=Qo.reactiveElementPolyfillSupport,lo=(e,t)=>e,co={toAttribute(e,t){switch(t){case Boolean:e=e?Fp:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},ti=(e,t)=>!kp(e,t),dl={attribute:!0,type:String,converter:co,reflect:!1,hasChanged:ti};Symbol.metadata??=Symbol("metadata"),Qo.litPropertyMetadata??=new WeakMap;var rr=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=dl){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(t,r),!r.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(t,i,r);n!==void 0&&$p(this.prototype,t,n)}}static getPropertyDescriptor(t,r,i){let{get:n,set:a}=Dp(this.prototype,t)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(t,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??dl}static _$Ei(){if(this.hasOwnProperty(lo("elementProperties")))return;let t=Bp(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(lo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(lo("properties"))){let r=this.properties,i=[...Mp(r),...Up(r)];for(let n of i)this.createProperty(n,r[n])}let t=this[Symbol.metadata];if(t!==null){let r=litPropertyMetadata.get(t);if(r!==void 0)for(let[i,n]of r)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[r,i]of this.elementProperties){let n=this._$Eu(r,i);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let i=new Set(t.flat(1/0).reverse());for(let n of i)r.unshift(Jo(n))}else t!==void 0&&r.push(Jo(t));return r}static _$Eu(t,r){let i=r.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$E_??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){let t=new Map,r=this.constructor.elementProperties;for(let i of r.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return xn(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,r,i){this._$AK(t,i)}_$EO(t,r){let i=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,i);if(n!==void 0&&i.reflect===!0){let a=(i.converter?.toAttribute!==void 0?i.converter:co).toAttribute(r,i.type);this._$Em=t,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(t,r){let i=this.constructor,n=i._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let a=i.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:co;this._$Em=n,this[n]=s.fromAttribute(r,a.type),this._$Em=null}}requestUpdate(t,r,i,n=!1,a){if(t!==void 0){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??ti)(n?a:this[t],r))return;this.C(t,r,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,r,i){this._$AL.has(t)||this._$AL.set(t,r),i.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let i=this.constructor.elementProperties;if(i.size>0)for(let[n,a]of i)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],a)}let t=!1,r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),this._$E_?.forEach(i=>i.hostUpdate?.()),this.update(r)):this._$ET()}catch(i){throw t=!1,this._$ET(),i}t&&this._$AE(r)}willUpdate(t){}_$AE(t){this._$E_?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(r=>this._$EO(r,this[r])),this._$ET()}updated(t){}firstUpdated(t){}};rr.elementStyles=[],rr.shadowRootOptions={mode:"open"},rr[lo("elementProperties")]=new Map,rr[lo("finalized")]=new Map,Wp?.({ReactiveElement:rr}),(Qo.reactiveElementVersions??=[]).push("2.0.2");var On=globalThis,ei=On.trustedTypes,pl=ei?ei.createPolicy("lit-html",{createHTML:e=>e}):void 0,Cn="$lit$",Se=`lit$${(Math.random()+"").slice(9)}$`,En="?"+Se,Hp=`<${En}>`,nr=document,ri=()=>nr.createComment(""),uo=e=>e===null||typeof e!="object"&&typeof e!="function",gl=Array.isArray,bl=e=>gl(e)||typeof e?.[Symbol.iterator]=="function",Sn=`[
3
- \f\r]`,po=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ul=/-->/g,fl=/>/g,or=RegExp(`>|${Sn}(?:([^\\s"'>=/]+)(${Sn}*=${Sn}*(?:[^
4
- \f\r"'\`<>=]|("|')|))|$)`,"g"),hl=/'/g,ml=/"/g,vl=/^(?:script|style|textarea|title)$/i,xl=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),Sl=xl(1),Ol=xl(2),Kt=Symbol.for("lit-noChange"),mt=Symbol.for("lit-nothing"),yl=new WeakMap,ir=nr.createTreeWalker(nr,129);function Cl(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return pl!==void 0?pl.createHTML(t):t}var El=(e,t)=>{let r=e.length-1,i=[],n,a=t===2?"<svg>":"",s=po;for(let l=0;l<r;l++){let d=e[l],p,h,f=-1,m=0;for(;m<d.length&&(s.lastIndex=m,h=s.exec(d),h!==null);)m=s.lastIndex,s===po?h[1]==="!--"?s=ul:h[1]!==void 0?s=fl:h[2]!==void 0?(vl.test(h[2])&&(n=RegExp("</"+h[2],"g")),s=or):h[3]!==void 0&&(s=or):s===or?h[0]===">"?(s=n??po,f=-1):h[1]===void 0?f=-2:(f=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?or:h[3]==='"'?ml:hl):s===ml||s===hl?s=or:s===ul||s===fl?s=po:(s=or,n=void 0);let v=s===or&&e[l+1].startsWith("/>")?" ":"";a+=s===po?d+Hp:f>=0?(i.push(p),d.slice(0,f)+Cn+d.slice(f)+Se+v):d+Se+(f===-2?l:v)}return[Cl(e,a+(e[r]||"<?>")+(t===2?"</svg>":"")),i]},fo=class e{constructor({strings:t,_$litType$:r},i){let n;this.parts=[];let a=0,s=0,l=t.length-1,d=this.parts,[p,h]=El(t,r);if(this.el=e.createElement(p,i),ir.currentNode=this.el.content,r===2){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(n=ir.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let f of n.getAttributeNames())if(f.endsWith(Cn)){let m=h[s++],v=n.getAttribute(f).split(Se),x=/([.?@])?(.*)/.exec(m);d.push({type:1,index:a,name:x[2],strings:v,ctor:x[1]==="."?ii:x[1]==="?"?ni:x[1]==="@"?ai:sr}),n.removeAttribute(f)}else f.startsWith(Se)&&(d.push({type:6,index:a}),n.removeAttribute(f));if(vl.test(n.tagName)){let f=n.textContent.split(Se),m=f.length-1;if(m>0){n.textContent=ei?ei.emptyScript:"";for(let v=0;v<m;v++)n.append(f[v],ri()),ir.nextNode(),d.push({type:2,index:++a});n.append(f[m],ri())}}}else if(n.nodeType===8)if(n.data===En)d.push({type:2,index:a});else{let f=-1;for(;(f=n.data.indexOf(Se,f+1))!==-1;)d.push({type:7,index:a}),f+=Se.length-1}a++}}static createElement(t,r){let i=nr.createElement("template");return i.innerHTML=t,i}};function ar(e,t,r=e,i){if(t===Kt)return t;let n=i!==void 0?r._$Co?.[i]:r._$Cl,a=uo(t)?void 0:t._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(e),n._$AT(e,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(t=ar(e,n._$AS(e,t.values),n,i)),t}var oi=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:i}=this._$AD,n=(t?.creationScope??nr).importNode(r,!0);ir.currentNode=n;let a=ir.nextNode(),s=0,l=0,d=i[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new ho(a,a.nextSibling,this,t):d.type===1?p=new d.ctor(a,d.name,d.strings,this,t):d.type===6&&(p=new si(a,this,t)),this._$AV.push(p),d=i[++l]}s!==d?.index&&(a=ir.nextNode(),s++)}return ir.currentNode=nr,n}p(t){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,r),r+=i.strings.length-2):i._$AI(t[r])),r++}},ho=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,i,n){this.type=2,this._$AH=mt,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=ar(this,t,r),uo(t)?t===mt||t==null||t===""?(this._$AH!==mt&&this._$AR(),this._$AH=mt):t!==this._$AH&&t!==Kt&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):bl(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==mt&&uo(this._$AH)?this._$AA.nextSibling.data=t:this.$(nr.createTextNode(t)),this._$AH=t}g(t){let{values:r,_$litType$:i}=t,n=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=fo.createElement(Cl(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new oi(n,this),s=a.u(this.options);a.p(r),this.$(s),this._$AH=a}}_$AC(t){let r=yl.get(t.strings);return r===void 0&&yl.set(t.strings,r=new fo(t)),r}T(t){gl(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let a of t)n===r.length?r.push(i=new e(this.k(ri()),this.k(ri()),this,this.options)):i=r[n],i._$AI(a),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t&&t!==this._$AB;){let i=t.nextSibling;t.remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},sr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,i,n,a){this.type=1,this._$AH=mt,this._$AN=void 0,this.element=t,this.name=r,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=mt}_$AI(t,r=this,i,n){let a=this.strings,s=!1;if(a===void 0)t=ar(this,t,r,0),s=!uo(t)||t!==this._$AH&&t!==Kt,s&&(this._$AH=t);else{let l=t,d,p;for(t=a[0],d=0;d<a.length-1;d++)p=ar(this,l[i+d],r,d),p===Kt&&(p=this._$AH[d]),s||=!uo(p)||p!==this._$AH[d],p===mt?t=mt:t!==mt&&(t+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!n&&this.O(t)}O(t){t===mt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ii=class extends sr{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===mt?void 0:t}},ni=class extends sr{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==mt)}},ai=class extends sr{constructor(t,r,i,n,a){super(t,r,i,n,a),this.type=5}_$AI(t,r=this){if((t=ar(this,t,r,0)??mt)===Kt)return;let i=this._$AH,n=t===mt&&i!==mt||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,a=t!==mt&&(i===mt||n);n&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},si=class{constructor(t,r,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ar(this,t)}},wl={j:Cn,P:Se,A:En,C:1,M:El,L:oi,R:bl,V:ar,D:ho,I:sr,H:ni,N:ai,U:ii,B:si},zp=On.litHtmlPolyfillSupport;zp?.(fo,ho),(On.litHtmlVersions??=[]).push("3.1.0");var li=globalThis,mo=li.ShadowRoot&&(li.ShadyCSS===void 0||li.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,wn=Symbol(),Al=new WeakMap,$r=class{constructor(t,r,i){if(this._$cssResult$=!0,i!==wn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(mo&&t===void 0){let i=r!==void 0&&r.length===1;i&&(t=Al.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Al.set(r,t))}return t}toString(){return this.cssText}},Oe=e=>new $r(typeof e=="string"?e:e+"",void 0,wn),$=(e,...t)=>{let r=e.length===1?e[0]:t.reduce((i,n,a)=>i+(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.")})(n)+e[a+1],e[0]);return new $r(r,e,wn)},ci=(e,t)=>{if(mo)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let i=document.createElement("style"),n=li.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,e.appendChild(i)}},yo=mo?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let i of t.cssRules)r+=i.cssText;return Oe(r)})(e):e;var{is:Vp,defineProperty:jp,getOwnPropertyDescriptor:Gp,getOwnPropertyNames:Kp,getOwnPropertySymbols:Zp,getPrototypeOf:qp}=Object,pi=globalThis,_l=pi.trustedTypes,Yp=_l?_l.emptyScript:"",Xp=pi.reactiveElementPolyfillSupport,go=(e,t)=>e,di={toAttribute(e,t){switch(t){case Boolean:e=e?Yp:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},An=(e,t)=>!Vp(e,t),Rl={attribute:!0,type:String,converter:di,reflect:!1,hasChanged:An};Symbol.metadata??=Symbol("metadata"),pi.litPropertyMetadata??=new WeakMap;var ue=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=Rl){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(t,r),!r.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(t,i,r);n!==void 0&&jp(this.prototype,t,n)}}static getPropertyDescriptor(t,r,i){let{get:n,set:a}=Gp(this.prototype,t)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(t,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Rl}static _$Ei(){if(this.hasOwnProperty(go("elementProperties")))return;let t=qp(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(go("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(go("properties"))){let r=this.properties,i=[...Kp(r),...Zp(r)];for(let n of i)this.createProperty(n,r[n])}let t=this[Symbol.metadata];if(t!==null){let r=litPropertyMetadata.get(t);if(r!==void 0)for(let[i,n]of r)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[r,i]of this.elementProperties){let n=this._$Eu(r,i);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let i=new Set(t.flat(1/0).reverse());for(let n of i)r.unshift(yo(n))}else t!==void 0&&r.push(yo(t));return r}static _$Eu(t,r){let i=r.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$E_??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){let t=new Map,r=this.constructor.elementProperties;for(let i of r.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ci(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,r,i){this._$AK(t,i)}_$EO(t,r){let i=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,i);if(n!==void 0&&i.reflect===!0){let a=(i.converter?.toAttribute!==void 0?i.converter:di).toAttribute(r,i.type);this._$Em=t,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(t,r){let i=this.constructor,n=i._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let a=i.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:di;this._$Em=n,this[n]=s.fromAttribute(r,a.type),this._$Em=null}}requestUpdate(t,r,i,n=!1,a){if(t!==void 0){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??An)(n?a:this[t],r))return;this.C(t,r,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,r,i){this._$AL.has(t)||this._$AL.set(t,r),i.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let i=this.constructor.elementProperties;if(i.size>0)for(let[n,a]of i)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],a)}let t=!1,r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),this._$E_?.forEach(i=>i.hostUpdate?.()),this.update(r)):this._$ET()}catch(i){throw t=!1,this._$ET(),i}t&&this._$AE(r)}willUpdate(t){}_$AE(t){this._$E_?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(r=>this._$EO(r,this[r])),this._$ET()}updated(t){}firstUpdated(t){}};ue.elementStyles=[],ue.shadowRootOptions={mode:"open"},ue[go("elementProperties")]=new Map,ue[go("finalized")]=new Map,Xp?.({ReactiveElement:ue}),(pi.reactiveElementVersions??=[]).push("2.0.2");var Rn=globalThis,ui=Rn.trustedTypes,Tl=ui?ui.createPolicy("lit-html",{createHTML:e=>e}):void 0,Tn="$lit$",Ce=`lit$${(Math.random()+"").slice(9)}$`,In="?"+Ce,Jp=`<${In}>`,dr=document,vo=()=>dr.createComment(""),xo=e=>e===null||typeof e!="object"&&typeof e!="function",$l=Array.isArray,Dl=e=>$l(e)||typeof e?.[Symbol.iterator]=="function",_n=`[
5
- \f\r]`,bo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Il=/-->/g,Nl=/>/g,lr=RegExp(`>|${_n}(?:([^\\s"'>=/]+)(${_n}*=${_n}*(?:[^
6
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Pl=/'/g,Ll=/"/g,Ml=/^(?:script|style|textarea|title)$/i,Ul=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),k=Ul(1),Qp=Ul(2),Me=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),kl=new WeakMap,cr=dr.createTreeWalker(dr,129);function Bl(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Tl!==void 0?Tl.createHTML(t):t}var Fl=(e,t)=>{let r=e.length-1,i=[],n,a=t===2?"<svg>":"",s=bo;for(let l=0;l<r;l++){let d=e[l],p,h,f=-1,m=0;for(;m<d.length&&(s.lastIndex=m,h=s.exec(d),h!==null);)m=s.lastIndex,s===bo?h[1]==="!--"?s=Il:h[1]!==void 0?s=Nl:h[2]!==void 0?(Ml.test(h[2])&&(n=RegExp("</"+h[2],"g")),s=lr):h[3]!==void 0&&(s=lr):s===lr?h[0]===">"?(s=n??bo,f=-1):h[1]===void 0?f=-2:(f=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?lr:h[3]==='"'?Ll:Pl):s===Ll||s===Pl?s=lr:s===Il||s===Nl?s=bo:(s=lr,n=void 0);let v=s===lr&&e[l+1].startsWith("/>")?" ":"";a+=s===bo?d+Jp:f>=0?(i.push(p),d.slice(0,f)+Tn+d.slice(f)+Ce+v):d+Ce+(f===-2?l:v)}return[Bl(e,a+(e[r]||"<?>")+(t===2?"</svg>":"")),i]},So=class e{constructor({strings:t,_$litType$:r},i){let n;this.parts=[];let a=0,s=0,l=t.length-1,d=this.parts,[p,h]=Fl(t,r);if(this.el=e.createElement(p,i),cr.currentNode=this.el.content,r===2){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(n=cr.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let f of n.getAttributeNames())if(f.endsWith(Tn)){let m=h[s++],v=n.getAttribute(f).split(Ce),x=/([.?@])?(.*)/.exec(m);d.push({type:1,index:a,name:x[2],strings:v,ctor:x[1]==="."?hi:x[1]==="?"?mi:x[1]==="@"?yi:ur}),n.removeAttribute(f)}else f.startsWith(Ce)&&(d.push({type:6,index:a}),n.removeAttribute(f));if(Ml.test(n.tagName)){let f=n.textContent.split(Ce),m=f.length-1;if(m>0){n.textContent=ui?ui.emptyScript:"";for(let v=0;v<m;v++)n.append(f[v],vo()),cr.nextNode(),d.push({type:2,index:++a});n.append(f[m],vo())}}}else if(n.nodeType===8)if(n.data===In)d.push({type:2,index:a});else{let f=-1;for(;(f=n.data.indexOf(Ce,f+1))!==-1;)d.push({type:7,index:a}),f+=Ce.length-1}a++}}static createElement(t,r){let i=dr.createElement("template");return i.innerHTML=t,i}};function pr(e,t,r=e,i){if(t===Me)return t;let n=i!==void 0?r._$Co?.[i]:r._$Cl,a=xo(t)?void 0:t._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(e),n._$AT(e,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(t=pr(e,n._$AS(e,t.values),n,i)),t}var fi=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:i}=this._$AD,n=(t?.creationScope??dr).importNode(r,!0);cr.currentNode=n;let a=cr.nextNode(),s=0,l=0,d=i[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new Dr(a,a.nextSibling,this,t):d.type===1?p=new d.ctor(a,d.name,d.strings,this,t):d.type===6&&(p=new gi(a,this,t)),this._$AV.push(p),d=i[++l]}s!==d?.index&&(a=cr.nextNode(),s++)}return cr.currentNode=dr,n}p(t){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,r),r+=i.strings.length-2):i._$AI(t[r])),r++}},Dr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,i,n){this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=pr(this,t,r),xo(t)?t===W||t==null||t===""?(this._$AH!==W&&this._$AR(),this._$AH=W):t!==this._$AH&&t!==Me&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Dl(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==W&&xo(this._$AH)?this._$AA.nextSibling.data=t:this.$(dr.createTextNode(t)),this._$AH=t}g(t){let{values:r,_$litType$:i}=t,n=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=So.createElement(Bl(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new fi(n,this),s=a.u(this.options);a.p(r),this.$(s),this._$AH=a}}_$AC(t){let r=kl.get(t.strings);return r===void 0&&kl.set(t.strings,r=new So(t)),r}T(t){$l(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let a of t)n===r.length?r.push(i=new e(this.k(vo()),this.k(vo()),this,this.options)):i=r[n],i._$AI(a),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t&&t!==this._$AB;){let i=t.nextSibling;t.remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},ur=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,i,n,a){this.type=1,this._$AH=W,this._$AN=void 0,this.element=t,this.name=r,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=W}_$AI(t,r=this,i,n){let a=this.strings,s=!1;if(a===void 0)t=pr(this,t,r,0),s=!xo(t)||t!==this._$AH&&t!==Me,s&&(this._$AH=t);else{let l=t,d,p;for(t=a[0],d=0;d<a.length-1;d++)p=pr(this,l[i+d],r,d),p===Me&&(p=this._$AH[d]),s||=!xo(p)||p!==this._$AH[d],p===W?t=W:t!==W&&(t+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!n&&this.O(t)}O(t){t===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},hi=class extends ur{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===W?void 0:t}},mi=class extends ur{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==W)}},yi=class extends ur{constructor(t,r,i,n,a){super(t,r,i,n,a),this.type=5}_$AI(t,r=this){if((t=pr(this,t,r,0)??W)===Me)return;let i=this._$AH,n=t===W&&i!==W||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,a=t!==W&&(i===W||n);n&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},gi=class{constructor(t,r,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){pr(this,t)}},tu={j:Tn,P:Ce,A:In,C:1,M:Fl,L:fi,R:Dl,V:pr,D:Dr,I:ur,H:mi,N:yi,U:hi,B:gi},eu=Rn.litHtmlPolyfillSupport;eu?.(So,Dr),(Rn.litHtmlVersions??=[]).push("3.1.0");var Nn=(e,t,r)=>{let i=r?.renderBefore??t,n=i._$litPart$;if(n===void 0){let a=r?.renderBefore??null;i._$litPart$=n=new Dr(t.insertBefore(vo(),a),a,void 0,r??{})}return n._$AI(e),n};var Ee=class extends ue{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Nn(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Me}};Ee._$litElement$=!0,Ee.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Ee});var ru=globalThis.litElementPolyfillSupport;ru?.({LitElement:Ee});var ou={_$AK:(e,t,r)=>{e._$AK(t,r)},_$AL:e=>e._$AL};(globalThis.litElementVersions??=[]).push("4.0.2");var zh=!1;var kn={};ot(kn,{customElement:()=>iu,eventOptions:()=>we,property:()=>g,query:()=>X,queryAll:()=>su,queryAssignedElements:()=>Ln,queryAssignedNodes:()=>Oo,queryAsync:()=>lu,standardProperty:()=>Wl,state:()=>H});var iu=e=>(t,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)};var nu={attribute:!0,type:String,converter:co,reflect:!1,hasChanged:ti},Wl=(e=nu,t,r)=>{let{kind:i,metadata:n}=r,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),a.set(r.name,e),i==="accessor"){let{name:s}=r;return{set(l){let d=t.get.call(this);t.set.call(this,l),this.requestUpdate(s,d,e)},init(l){return l!==void 0&&this.C(s,void 0,e),l}}}if(i==="setter"){let{name:s}=r;return function(l){let d=this[s];t.call(this,l),this.requestUpdate(s,d,e)}}throw Error("Unsupported decorator location: "+i)};function g(e){return(t,r)=>typeof r=="object"?Wl(e,t,r):((i,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,s?{...i,wrapped:!0}:i),s?Object.getOwnPropertyDescriptor(n,a):void 0})(e,t,r)}function H(e){return g({...e,state:!0,attribute:!1})}function we(e){return(t,r)=>{let i=typeof t=="function"?t:t[r];Object.assign(i,e)}}var ee=(e,t,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(e,t,r),r);function X(e,t){return(r,i,n)=>{let a=s=>s.renderRoot?.querySelector(e)??null;if(t){let{get:s,set:l}=typeof i=="object"?r:n??(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return ee(r,i,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return ee(r,i,{get(){return a(this)}})}}var au;function su(e){return(t,r)=>ee(t,r,{get(){return(this.renderRoot??(au??=document.createDocumentFragment())).querySelectorAll(e)}})}function lu(e){return(t,r)=>ee(t,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(e)??null}})}function Ln(e){return(t,r)=>{let{slot:i,selector:n}=e??{},a="slot"+(i?`[name=${i}]`:":not([name])");return ee(t,r,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(e)??[];return n===void 0?l:l.filter(d=>d.matches(n))}})}}function Oo(e){return(t,r)=>{let{slot:i}=e??{},n="slot"+(i?`[name=${i}]`:":not([name])");return ee(t,r,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(e)??[]}})}}var Dn={};ot(Dn,{repeat:()=>$n});var Ue={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Be=e=>(...t)=>({_$litDirective$:e,values:t}),fe=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,r,i){this._$Ct=t,this._$AM=r,this._$Ci=i}_$AS(t,r){return this.update(t,r)}update(t,r){return this.render(...r)}};var{D:cu}=wl;var Hl=()=>document.createComment(""),Mr=(e,t,r)=>{let i=e._$AA.parentNode,n=t===void 0?e._$AB:t._$AA;if(r===void 0){let a=i.insertBefore(Hl(),n),s=i.insertBefore(Hl(),n);r=new cu(a,s,e,e.options)}else{let a=r._$AB.nextSibling,s=r._$AM,l=s!==e;if(l){let d;r._$AQ?.(e),r._$AM=e,r._$AP!==void 0&&(d=e._$AU)!==s._$AU&&r._$AP(d)}if(a!==n||l){let d=r._$AA;for(;d!==a;){let p=d.nextSibling;i.insertBefore(d,n),d=p}}}return r},Fe=(e,t,r=e)=>(e._$AI(t,r),e),du={},zl=(e,t=du)=>e._$AH=t,Vl=e=>e._$AH,bi=e=>{e._$AP?.(!1,!0);let t=e._$AA,r=e._$AB.nextSibling;for(;t!==r;){let i=t.nextSibling;t.remove(),t=i}};var jl=(e,t,r)=>{let i=new Map;for(let n=t;n<=r;n++)i.set(e[n],n);return i},$n=Be(class extends fe{constructor(e){if(super(e),e.type!==Ue.CHILD)throw Error("repeat() can only be used in text expressions")}ht(e,t,r){let i;r===void 0?r=t:t!==void 0&&(i=t);let n=[],a=[],s=0;for(let l of e)n[s]=i?i(l,s):s,a[s]=r(l,s),s++;return{values:a,keys:n}}render(e,t,r){return this.ht(e,t,r).values}update(e,[t,r,i]){let n=Vl(e),{values:a,keys:s}=this.ht(t,r,i);if(!Array.isArray(n))return this.dt=s,a;let l=this.dt??=[],d=[],p,h,f=0,m=n.length-1,v=0,x=a.length-1;for(;f<=m&&v<=x;)if(n[f]===null)f++;else if(n[m]===null)m--;else if(l[f]===s[v])d[v]=Fe(n[f],a[v]),f++,v++;else if(l[m]===s[x])d[x]=Fe(n[m],a[x]),m--,x--;else if(l[f]===s[x])d[x]=Fe(n[f],a[x]),Mr(e,d[x+1],n[f]),f++,x--;else if(l[m]===s[v])d[v]=Fe(n[m],a[v]),Mr(e,n[f],n[m]),m--,v++;else if(p===void 0&&(p=jl(s,v,x),h=jl(l,f,m)),p.has(l[f]))if(p.has(l[m])){let E=h.get(s[v]),R=E!==void 0?n[E]:null;if(R===null){let I=Mr(e,n[f]);Fe(I,a[v]),d[v]=I}else d[v]=Fe(R,a[v]),Mr(e,n[f],R),n[E]=null;v++}else bi(n[m]),m--;else bi(n[f]),f++;for(;v<=x;){let E=Mr(e,d[x+1]);Fe(E,a[v]),d[v++]=E}for(;f<=m;){let E=n[f++];E!==null&&bi(E)}return this.dt=s,zl(e,d),Kt}});var Mn={};ot(Mn,{classMap:()=>Rt});var Rt=Be(class extends fe{constructor(e){if(super(e),e.type!==Ue.ATTRIBUTE||e.name!=="class"||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){if(this.it===void 0){this.it=new Set,e.strings!==void 0&&(this.st=new Set(e.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(let i in t)t[i]&&!this.st?.has(i)&&this.it.add(i);return this.render(t)}let r=e.element.classList;for(let i of this.it)i in t||(r.remove(i),this.it.delete(i));for(let i in t){let n=!!t[i];n===this.it.has(i)||this.st?.has(i)||(n?(r.add(i),this.it.add(i)):(r.remove(i),this.it.delete(i)))}return Kt}});var Un={};ot(Un,{styleMap:()=>uu});var Gl="important",pu=" !"+Gl,uu=Be(class extends fe{constructor(e){if(super(e),e.type!==Ue.ATTRIBUTE||e.name!=="style"||e.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(e){return Object.keys(e).reduce((t,r)=>{let i=e[r];return i==null?t:t+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(e,[t]){let{style:r}=e.element;if(this.ut===void 0)return this.ut=new Set(Object.keys(t)),this.render(t);for(let i of this.ut)t[i]==null&&(this.ut.delete(i),i.includes("-")?r.removeProperty(i):r[i]=null);for(let i in t){let n=t[i];if(n!=null){this.ut.add(i);let a=typeof n=="string"&&n.endsWith(pu);i.includes("-")||a?r.setProperty(i,a?n.slice(0,-11):n,a?Gl:""):r[i]=n}}return Kt}});var Fn={};ot(Fn,{UnsafeHTMLDirective:()=>Ur,unsafeHTML:()=>Bn});var Ur=class extends fe{constructor(t){if(super(t),this.et=mt,t.type!==Ue.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===mt||t==null)return this.vt=void 0,this.et=t;if(t===Kt)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;let r=[t];return r.raw=r,this.vt={_$litType$:this.constructor.resultType,strings:r,values:[]}}};Ur.directiveName="unsafeHTML",Ur.resultType=1;var Bn=Be(Ur);var Gn={};ot(Gn,{CacheRegistry:()=>he,ClearCacheEvent:()=>Co});var Hn={};ot(Hn,{CancelablePromise:()=>Br,CanceledPromiseError:()=>fr,cancelable:()=>Wn});var fr=class extends Error{constructor(t,r,i){super(t),this.canceledPromiseResult=r,this.canceledPromiseError=i}},Br=class extends Promise{constructor(t){super((r,i)=>t(n=>{this.isCanceled?i(new fr("Promise has been canceled",n)):r(n)},n=>{this.isCanceled?i(new fr("Promise has been canceled",void 0,n)):i(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Wn=e=>new Br((t,r)=>e.then(t).catch(r));var jn={};ot(jn,{FtNotificationEvent:()=>Ut,PostResizeEvent:()=>Vn,PreResizeEvent:()=>zn,WithEventBus:()=>hr,withEventBus:()=>Kl});var Ut=class extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}},zn=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},Vn=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};function Kl(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}var hr=class extends Kl(Object){};var Co=class extends CustomEvent{constructor(t){super("clear-cache",{detail:{clearedKeys:t}})}},he=class extends hr{constructor(){super(...arguments),this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,r){this.loaders[t]=r,this.finalContent.delete(t)}registerFinal(t,r){this.loaders[t]=r,this.finalContent.add(t)}clearAll(t=!0){let r=[];for(let i in this.content)this.clear(i,!1)!=null&&r.push(i);t&&r.length>0&&this.dispatchEvent(new Co(r))}clear(t,r=!0){if(!this.finalContent.has(t))return this.forceClear(t),r&&this.dispatchEvent(new Co([t])),t}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof Br&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){this.clearTimeouts[t]!=null&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,r){this.forceClear(t),this.register(t,async()=>r),this.content[t]=r}setFinal(t,r){this.forceClear(t),this.registerFinal(t,async()=>r),this.content[t]=r}async get(t,r,i){if(this.content[t]===void 0){if(r=r??this.loaders[t],r==null)throw new Error("Unknown cache key "+t);let n=Wn(r());return this.content[t]=n,n.then(a=>(this.content[t]=a,i!=null&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout(()=>this.clear(t),i)),a))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return t!=null&&!(t instanceof Promise)&&!(t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return this.content[t]!=null}resolvedKeys(){return Object.keys(this.content).filter(t=>this.isResolvedValue(this.content[t]))}resolvedValues(){return Object.values(this.content).filter(t=>this.isResolvedValue(t))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}};var Kn={};ot(Kn,{ClusteringHelper:()=>Eo});var Eo=class e{constructor(t,r,i,n){this.allResults=t,this.selectedResult=r,this.clusteringMetadata=i,this.metadataDescriptors=n}static extractResultMetadata(t){var r,i,n,a,s;let l=((a=(i=(r=t.result)===null||r===void 0?void 0:r.map)!==null&&i!==void 0?i:(n=t.result)===null||n===void 0?void 0:n.document)!==null&&a!==void 0?a:(s=t.result)===null||s===void 0?void 0:s.topic).metadata;return t.key==null?e.flattenMetadata(l,t.hierarchicalValueTruncatingLevel,t.dateFormatter):e.flattenMetadata(l.find(d=>d.key===t.key),t.hierarchicalValueTruncatingLevel,t.dateFormatter)}static flattenMetadata(t,r,i){if(Array.isArray(t))return t.map(a=>e.flattenMetadata(a,r,i)).filter(a=>a!=null);let n=t?.hierarchicalValues!=null&&t.hierarchicalValues.length>0;if(!(t==null||t.values.length==0&&!n))if(n){let a=[],s=[];return t.hierarchicalValues.forEach(l=>{a.push(l.join(" > ")),r&&r>1&&l.length>=r?s.push(`... > ${l[l.length-1]}`):s.push(l.join(" > "))}),{key:t.key,label:t.label,value:a.join(", "),displayValue:s.join(", "),displayTooltipValue:a.join(", ")}}else{let a=t.values.join(", "),s=t.values.map(l=>i?i(l):l).join(", ");return{key:t.key,label:t.label,value:a,displayValue:s,displayTooltipValue:s}}}computeClustersItemsForMetadata(t,r,i="No value",n,a){var s,l;let d=e.extractResultMetadata({result:this.selectedResult,key:t,dateFormatter:a}),p=(s=d?.label)!==null&&s!==void 0?s:(l=this.getMetadataDescriptor(t))===null||l===void 0?void 0:l.label;return this.allResults.map(f=>e.extractResultMetadata({result:f,key:t,hierarchicalValueTruncatingLevel:n,dateFormatter:a})).map(f=>f??{key:t,label:p,value:void 0,displayValue:i}).filter(f=>f.value!=d?.value).filter((f,m,v)=>v.findIndex(x=>x.value===f.value)===m).map(f=>({result:this.findBestResultForMetadataValue(t,f.value),metadata:f})).sort((f,m)=>this.compareMetadata(f.metadata.value,m.metadata.value,t,r))}compareMetadata(t,r,i,n){if(t==null)return-1;if(r==null)return 1;let a=this.getMetadataDescriptor(i),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let d=t.localeCompare(r,n,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(t){return this.metadataDescriptors.find(r=>t==r.key)}findBestResultForMetadataValue(t,r){let i=this.allResults.filter(d=>{var p;return((p=e.extractResultMetadata({result:d,key:t}))===null||p===void 0?void 0:p.value)==r}),a=[...e.extractResultMetadata({result:this.selectedResult}).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==t)],s,l=-1;for(let d of i){let p=this.countMatchingMetadata(d,a);if(p>l&&(l=p,s=d,p===a.length))break}return s}countMatchingMetadata(t,r){return e.extractResultMetadata({result:t}).filter(i=>r.some(n=>n.key===i.key&&n.value===i.value)).length}};var Zn={};ot(Zn,{Debouncer:()=>lt});var lt=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let i=[...this.callbacks];this.callbacks=[];let n=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,a=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let s of i)try{await s()}catch(l){n(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 Jn={};ot(Jn,{customElement:()=>J,isNumber:()=>ql,jsonProperty:()=>me,optionalNumberProperty:()=>gu});var Xn={};ot(Xn,{dateReviver:()=>fu,deepEqual:()=>re,delay:()=>vi,eventPathContainsMatchingElement:()=>mu,flatDeep:()=>Zl,getComposedPathTo:()=>Yn,hasChanged:()=>mr,last:()=>yu,minmax:()=>Ao,parseDate:()=>xi,unslotText:()=>Si,waitFor:()=>wo,waitUntil:()=>qn});var vi=e=>new Promise(t=>setTimeout(t,e));async function qn(e,t=10,r=2e4){await wo(async()=>await e()||void 0,t,r)}async function wo(e,t=10,r=2e4){let i=await e(),n,a;for(n=a=performance.now();i==null&&(!r||a-n<r);)await vi(t),i=await e(),a=performance.now();if(i==null)throw new Error("Timeout exceeded");return i}function Zl(e,t){return e.flatMap(r=>[r,...Zl(t(r),t)])}function fu(...e){return function(t,r){return e.includes(t)?xi(r):r}}function xi(e){return e.match(/^\d{4}-\d{2}-\d{2}$/)&&(e=e.replace(/-/g,"/")),e=e.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(t,r,i,n)=>r+i+":"+n),new Date(e)}function hu(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,i,n;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(i=r;i--!==0;)if(!re(e[i],t[i]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i of e.entries())if(!t.has(i[0]))return!1;for(i of e.entries())if(!re(i[1],t.get(i[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i of e.entries())if(!t.has(i[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let a=s=>Object.keys(s).filter(l=>s[l]!=null);if(n=a(e),r=n.length,r!==a(t).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(i=r;i--!==0;){let s=n[i];if(!re(e[s],t[s]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function re(e,t){try{return hu(e,t)}catch{return!1}}function mr(e,t){return!re(e,t)}function mu(e,t,r=window.document.body){if(t.length>0){let i=e.composedPath();for(let n of i){if(n===r)return!1;if(n.matches&&t.some(a=>n.matches(a)))return!0}}return!1}function Ao(e,t,r){return Math.min(Math.max(e,t),r)}function yu(e){return e[e.length-1]}function Si(e){return e instanceof HTMLSlotElement?e.assignedNodes().map(t=>Si(t)).join(""):e?.textContent||""}function Yn(e){let t=[],r=i=>{i.stopPropagation(),t=i.composedPath()};return e.addEventListener("get-composed-path",r),e.dispatchEvent(new Event("get-composed-path",{composed:!0})),e.removeEventListener("get-composed-path",r),t}var J=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)};function me(e,t){let r=()=>JSON.parse(JSON.stringify(e));return g({type:Object,converter:{fromAttribute:i=>{if(i==null)return r();try{return JSON.parse(i)}catch{return r()}},toAttribute:i=>JSON.stringify(i)},hasChanged:mr,...t??{}})}function gu(e){return g({type:Object,converter:{fromAttribute:t=>{if(t!=null)return ql(t)?+t:void 0},toAttribute:t=>t==null?void 0:""+t},...e??{}})}function ql(e){return!isNaN(parseFloat(e))}var _a={};ot(_a,{designSystemVariables:()=>T});var Aa={};ot(Aa,{DesignSystemFamily:()=>yr,DesignSystemSize:()=>_e,FtCssVariableFactory:()=>o,badge:()=>Cu,banner:()=>Ou,button:()=>b,chart:()=>Bu,checkbox:()=>Hu,chip:()=>xu,chipChoice:()=>vu,collapsible:()=>Mu,comboboxMultiSelect:()=>$u,comboboxSingleSelect:()=>ku,drawer:()=>Tu,floatingMenu:()=>Lu,foundation:()=>c,link:()=>Su,modal:()=>Ru,notice:()=>Wu,notification:()=>ju,pageDesigner:()=>Fu,pageFooter:()=>Au,pageHeader:()=>wu,pageLayout:()=>_u,popover:()=>Du,radio:()=>Vu,reorderableList:()=>Ku,resolveFamilyClass:()=>Ea,resolveSizeClass:()=>wa,semantic:()=>u,setVariable:()=>S,switch_:()=>Uu,tabs:()=>Iu,textArea:()=>Pu,textInput:()=>Nu,titleBreadcrumb:()=>Eu,toggle:()=>zu,tooltip:()=>Gu,typographies:()=>_o,typographyBody1Medium:()=>ia,typographyBody1Regular:()=>oa,typographyBody1Semibold:()=>na,typographyBody2Medium:()=>sa,typographyBody2MediumUnderline:()=>Yl,typographyBody2Regular:()=>aa,typographyBody2Semibold:()=>la,typographyCaption1Bold:()=>ga,typographyCaption1Medium:()=>ma,typographyCaption1Semibold:()=>ya,typographyCaption2Bold:()=>xa,typographyCaption2Medium:()=>ba,typographyCaption2Semibold:()=>va,typographyCaption3Bold:()=>Ca,typographyCaption3Medium:()=>Sa,typographyCaption3Semibold:()=>Oa,typographyDisplay:()=>Qn,typographyLabel1Bold:()=>pa,typographyLabel1Medium:()=>ca,typographyLabel1Semibold:()=>da,typographyLabel2Bold:()=>ha,typographyLabel2Medium:()=>ua,typographyLabel2Semibold:()=>fa,typographyTitle1:()=>ta,typographyTitle2:()=>ea,typographyTitle3:()=>ra,typographyVariants:()=>bu});var Ae=e=>typeof e=="string"?Oe(e):e,o=class{static create(t,r,i,n){let a=l=>Ae(l??n),s=$`var(${Ae(t)}, ${a(n)})`;return s.name=t,s.description=r,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>$`var(${Ae(t)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(t,r,i,n){let a=l=>i.get(l??n),s=$`var(${Ae(t)}, ${a(n)})`;return s.name=t,s.description=r,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>$`var(${Ae(t)}, ${a(l)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(t,r){let i=a=>t.fallbackVariable?t.fallbackVariable.get(a??t.defaultValue):Ae(a??t.lastResortDefaultValue()),n=$`var(${Ae(t.name)}, ${i(t.defaultValue)})`;return n.name=t.name,n.category=t.category,n.fallbackVariable=t.fallbackVariable,n.defaultValue=t.defaultValue,n.context=r,n.defaultCssValue=i,n.get=a=>$`var(${Ae(t.name)}, ${i(a)})`,n.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>t.lastResortDefaultValue(),n}};function S(e,t){return Ae(`${e.name}: ${t}`)}var c={colorWhite:o.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ft-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:o.create("--ft-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:o.create("--ft-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:o.create("--ft-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:o.create("--ft-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:o.create("--ft-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:o.create("--ft-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:o.create("--ft-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:o.create("--ft-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:o.create("--ft-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:o.create("--ft-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:o.create("--ft-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:o.create("--ft-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:o.create("--ft-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:o.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:o.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:o.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:o.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:o.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:o.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:o.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:o.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:o.create("--ft-opacity-0","","NUMBER","0"),opacity8:o.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:o.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ft-opacity-24","","NUMBER","0.24"),opacity32:o.create("--ft-opacity-32","","NUMBER","0.32"),opacity40:o.create("--ft-opacity-40","","NUMBER","0.4"),opacity48:o.create("--ft-opacity-48","","NUMBER","0.48"),opacity80:o.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:o.create("--ft-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:o.create("--ft-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:o.create("--ft-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:o.create("--ft-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:o.create("--ft-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:o.create("--ft-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:o.create("--ft-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:o.create("--ft-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:o.create("--ft-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},Qn={fontFamily:o.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:o.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-display-textCase","","UNKNOWN","none")},ta={fontFamily:o.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:o.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},ea={fontFamily:o.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:o.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},ra={fontFamily:o.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:o.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:o.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},oa={fontFamily:o.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},ia={fontFamily:o.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},na={fontFamily:o.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},aa={fontFamily:o.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},sa={fontFamily:o.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},Yl={fontFamily:o.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:o.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:o.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},la={fontFamily:o.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},ca={fontFamily:o.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},da={fontFamily:o.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},pa={fontFamily:o.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},ua={fontFamily:o.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},fa={fontFamily:o.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},ha={fontFamily:o.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},ma={fontFamily:o.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},ya={fontFamily:o.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},ga={fontFamily:o.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},ba={fontFamily:o.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},va={fontFamily:o.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},xa={fontFamily:o.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},Sa={fontFamily:o.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},Oa={fontFamily:o.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},Ca={fontFamily:o.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},_o={display:Qn,"title-1":ta,"title-2":ea,"title-3":ra,"body-1-regular":oa,"body-1-medium":ia,"body-1-semibold":na,"body-2-regular":aa,"body-2-medium":sa,"body-2-medium-underline":Yl,"body-2-semibold":la,"label-1-medium":ca,"label-1-semibold":da,"label-1-bold":pa,"label-2-medium":ua,"label-2-semibold":fa,"label-2-bold":ha,"caption-1-medium":ma,"caption-1-semibold":ya,"caption-1-bold":ga,"caption-2-medium":ba,"caption-2-semibold":va,"caption-2-bold":xa,"caption-3-medium":Sa,"caption-3-semibold":Oa,"caption-3-bold":Ca},bu=["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 u={backgroundActionPrimary:o.extend("--ft-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:o.extend("--ft-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:o.extend("--ft-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:o.extend("--ft-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:o.extend("--ft-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:o.extend("--ft-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:o.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:o.extend("--ft-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:o.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:o.extend("--ft-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:o.extend("--ft-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:o.extend("--ft-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:o.extend("--ft-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:o.extend("--ft-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:o.extend("--ft-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:o.extend("--ft-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:o.extend("--ft-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:o.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
7
- Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:o.extend("--ft-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:o.extend("--ft-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:o.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:o.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:o.extend("--ft-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:o.extend("--ft-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:o.extend("--ft-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:o.extend("--ft-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:o.extend("--ft-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:o.extend("--ft-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:o.extend("--ft-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:o.extend("--ft-border-global-primary","Used as border for element like input.",c.colorGray50),borderGlobalSubtle:o.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",c.colorGray30),borderInputPrimary:o.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:o.extend("--ft-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)};var b={largeHeight:o.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ft-button-large-horizontal-padding","",c.spacing4),largeGap:o.extend("--ft-button-large-gap","",c.spacing2),largeBorderRadius:o.extend("--ft-button-large-border-radius","",c.borderRadiusS),largeIconSize:o.extend("--ft-button-large-icon-size","",c.iconSize3),largeBorderWidth:o.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:o.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:o.create("--ft-button-large-icon-only-width","","SIZE","40px"),mediumHeight:o.create("--ft-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:o.extend("--ft-button-medium-horizontal-padding","",c.spacing3),mediumGap:o.extend("--ft-button-medium-gap","",c.spacing2),mediumBorderRadius:o.extend("--ft-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:o.extend("--ft-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:o.create("--ft-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:o.create("--ft-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ft-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:o.create("--ft-button-medium-icon-only-width","","SIZE","30px"),smallHeight:o.create("--ft-button-small-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-button-small-horizontal-padding","",c.spacing2),smallGap:o.extend("--ft-button-small-gap","",c.spacing1),smallBorderRadius:o.extend("--ft-button-small-border-radius","",c.borderRadiusS),smallIconSize:o.extend("--ft-button-small-icon-size","",c.iconSize1),smallBorderWidth:o.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:o.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:o.create("--ft-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:o.create("--ft-button-x-small-height","","SIZE","16px"),xSmallIconSize:o.extend("--ft-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:o.create("--ft-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:o.create("--ft-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:o.create("--ft-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:o.extend("--ft-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:o.extend("--ft-button-primary-brand-background-color","",u.backgroundActionPrimary),primaryBrandColor:o.extend("--ft-button-primary-brand-color","",u.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ft-button-primary-brand-icon-color","",u.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ft-button-primary-brand-state-layer-color","",u.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:o.extend("--ft-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:o.extend("--ft-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:o.extend("--ft-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:o.extend("--ft-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-button-focus-focus-ring-color","",u.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ft-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ft-button-tertiary-brand-color","",u.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ft-button-tertiary-brand-icon-color","",u.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ft-button-tertiary-brand-state-layer-color","",u.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:o.extend("--ft-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:o.extend("--ft-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:o.extend("--ft-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:o.extend("--ft-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:o.create("--ft-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:o.extend("--ft-button-tertiary-info-color","",u.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ft-button-tertiary-info-icon-color","",u.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ft-button-tertiary-info-state-layer-color","",u.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:o.extend("--ft-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:o.extend("--ft-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:o.extend("--ft-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:o.extend("--ft-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:o.create("--ft-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:o.extend("--ft-button-tertiary-success-color","",u.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ft-button-tertiary-success-icon-color","",u.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ft-button-tertiary-success-state-layer-color","",u.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:o.extend("--ft-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:o.extend("--ft-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:o.extend("--ft-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:o.extend("--ft-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:o.create("--ft-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:o.extend("--ft-button-tertiary-warning-color","",u.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ft-button-tertiary-warning-icon-color","",u.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ft-button-tertiary-warning-state-layer-color","",u.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:o.extend("--ft-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:o.extend("--ft-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:o.extend("--ft-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:o.extend("--ft-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:o.create("--ft-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:o.extend("--ft-button-tertiary-error-color","",u.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ft-button-tertiary-error-icon-color","",u.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ft-button-tertiary-error-state-layer-color","",u.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:o.extend("--ft-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:o.extend("--ft-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:o.extend("--ft-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:o.extend("--ft-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:o.create("--ft-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:o.extend("--ft-button-tertiary-neutral-icon-color","",u.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ft-button-tertiary-neutral-color","",u.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ft-button-tertiary-neutral-state-layer-color","",u.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:o.extend("--ft-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:o.create("--ft-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:o.extend("--ft-button-secondary-brand-color","",u.contentActionPrimary),secondaryBrandIconColor:o.extend("--ft-button-secondary-brand-icon-color","",u.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ft-button-secondary-brand-state-layer-color","",u.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:o.extend("--ft-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:o.extend("--ft-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:o.extend("--ft-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:o.extend("--ft-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:o.extend("--ft-button-secondary-brand-border-color","",u.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:o.extend("--ft-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:o.extend("--ft-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:o.extend("--ft-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:o.extend("--ft-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:o.create("--ft-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:o.extend("--ft-button-secondary-neutral-color","",u.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ft-button-secondary-neutral-icon-color","",u.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ft-button-secondary-neutral-state-layer-color","",u.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ft-button-secondary-neutral-border-color","",u.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:o.extend("--ft-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:o.extend("--ft-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:o.extend("--ft-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:o.extend("--ft-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:o.create("--ft-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:o.extend("--ft-button-secondary-info-border-color","",u.borderInfoPrimary),secondaryInfoColor:o.extend("--ft-button-secondary-info-color","",u.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ft-button-secondary-info-icon-color","",u.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ft-button-secondary-info-state-layer-color","",u.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:o.extend("--ft-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:o.extend("--ft-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:o.extend("--ft-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:o.extend("--ft-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:o.create("--ft-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:o.extend("--ft-button-secondary-success-border-color","",u.borderSuccessPrimary),secondarySuccessColor:o.extend("--ft-button-secondary-success-color","",u.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ft-button-secondary-success-icon-color","",u.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ft-button-secondary-success-state-layer-color","",u.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:o.extend("--ft-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:o.extend("--ft-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:o.extend("--ft-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:o.extend("--ft-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:o.create("--ft-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:o.extend("--ft-button-secondary-warning-border-color","",u.borderWarningPrimary),secondaryWarningColor:o.extend("--ft-button-secondary-warning-color","",u.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ft-button-secondary-warning-icon-color","",u.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ft-button-secondary-warning-state-layer-color","",u.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:o.extend("--ft-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:o.extend("--ft-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:o.extend("--ft-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:o.extend("--ft-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:o.create("--ft-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:o.extend("--ft-button-secondary-error-border-color","",u.contentErrorPrimary),secondaryErrorColor:o.extend("--ft-button-secondary-error-color","",u.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ft-button-secondary-error-icon-color","",u.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ft-button-secondary-error-state-layer-color","",u.contentErrorPrimary)};var vu={neutralOffHoverStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:o.extend("--ft-chip-choice-neutral-off-focus-focus-ring-color","",u.borderActionFocusRing),neutralOffActiveStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:o.extend("--ft-chip-choice-neutral-off-background-color","",u.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ft-chip-choice-neutral-off-border-color","",u.borderGlobalPrimary),neutralOffColor:o.extend("--ft-chip-choice-neutral-off-color","",u.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ft-chip-choice-neutral-off-state-layer-color","",u.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:o.extend("--ft-chip-choice-neutral-on-focus-focus-ring-color","",u.borderActionFocusRing),neutralOnActiveStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:o.extend("--ft-chip-choice-neutral-on-background-color","",u.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ft-chip-choice-neutral-on-border-color","",u.borderGlobalPrimary),neutralOnColor:o.extend("--ft-chip-choice-neutral-on-color","",u.contentGlobalPrimary),neutralOnIconColor:o.extend("--ft-chip-choice-neutral-on-icon-color","",u.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ft-chip-choice-neutral-on-state-layer-color","",u.contentGlobalPrimary),largeMinHeight:o.create("--ft-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:o.extend("--ft-chip-choice-large-gap","",c.spacing1),largeBorderRadius:o.create("--ft-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ft-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ft-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ft-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:o.extend("--ft-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:o.create("--ft-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ft-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ft-chip-choice-medium-icon-size","",c.iconSize2)};var xu={largeMinHeight:o.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:o.extend("--ft-chip-large-button-right-padding","",c.spacing1),largeGap:o.extend("--ft-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:o.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:o.create("--ft-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ft-chip-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:o.extend("--ft-chip-medium-button-right-padding","",c.spacing05),mediumGap:o.extend("--ft-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:o.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:o.create("--ft-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ft-chip-medium-icon-size","",c.iconSize2),smallMinHeight:o.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:o.extend("--ft-chip-small-button-right-padding","",c.spacing05),smallGap:o.extend("--ft-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:o.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:o.create("--ft-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:o.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:o.extend("--ft-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:o.extend("--ft-chip-neutral-background-color","",u.backgroundGlobalOnSurface),neutralColor:o.extend("--ft-chip-neutral-color","",u.contentGlobalSecondary),neutralIconColor:o.extend("--ft-chip-neutral-icon-color","",u.contentGlobalSecondary),neutralBorderColor:o.extend("--ft-chip-neutral-border-color","",u.borderGlobalSubtle),infoBackgroundColor:o.extend("--ft-chip-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-chip-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-chip-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-chip-info-border-color","",u.borderInfoSubtle),successBackgroundColor:o.extend("--ft-chip-success-background-color","",u.backgroundSuccessSubtle),successColor:o.extend("--ft-chip-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-chip-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:o.extend("--ft-chip-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-chip-warning-background-color","",u.backgroundWarningSubtle),warningColor:o.extend("--ft-chip-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-chip-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:o.extend("--ft-chip-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-chip-error-background-color","",u.backgroundErrorSubtle),errorColor:o.extend("--ft-chip-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-chip-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:o.extend("--ft-chip-error-border-color","",u.borderErrorSubtle)};var Su={brandHoverOpacity:o.extend("--ft-link-brand-hover-opacity","",c.opacity80),brandHoverColor:o.extend("--ft-link-brand-hover-color","",u.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ft-link-brand-focus-focus-ring-color","",u.borderActionFocusRing),brandFocusColor:o.extend("--ft-link-brand-focus-color","",u.contentActionPrimary),brandDefaultColor:o.extend("--ft-link-brand-default-color","",u.contentActionPrimary),brandActiveColor:o.extend("--ft-link-brand-active-color","",u.contentActionPrimary),infoHoverOpacity:o.extend("--ft-link-info-hover-opacity","",c.opacity80),infoHoverColor:o.extend("--ft-link-info-hover-color","",u.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ft-link-info-focus-focus-ring-color","",u.borderActionFocusRing),infoFocusColor:o.extend("--ft-link-info-focus-color","",u.contentInfoPrimary),infoDefaultColor:o.extend("--ft-link-info-default-color","",u.contentInfoPrimary),infoActiveColor:o.extend("--ft-link-info-active-color","",u.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ft-link-neutral-focus-focus-ring-color","",u.borderActionFocusRing),neutralFocusColor:o.extend("--ft-link-neutral-focus-color","",u.contentActionPrimary),neutralDefaultColor:o.extend("--ft-link-neutral-default-color","",u.contentGlobalPrimary),neutralHoverColor:o.extend("--ft-link-neutral-hover-color","",u.contentActionPrimary),neutralActiveColor:o.extend("--ft-link-neutral-active-color","",u.contentActionPrimary),neutralVisitedColor:o.extend("--ft-link-neutral-visited-color","",c.colorBrand100)};var Ou={iconSize:o.extend("--ft-banner-icon-size","",c.iconSize5),borderWidth:o.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:o.extend("--ft-banner-left-padding","",c.spacing6),rightPadding:o.extend("--ft-banner-right-padding","",c.spacing6),verticalPadding:o.extend("--ft-banner-vertical-padding","",c.spacing6),horizontalSideGap:o.extend("--ft-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:o.extend("--ft-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:o.extend("--ft-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:o.extend("--ft-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:o.extend("--ft-banner-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-banner-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-banner-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-banner-info-border-color","",u.borderInfoSubtle)};var Cu={horizontalPadding:o.extend("--ft-badge-horizontal-padding","",c.spacing1),verticalPadding:o.extend("--ft-badge-vertical-padding","",c.spacing1),borderRadius:o.extend("--ft-badge-border-radius","",c.borderRadiusPill),color:o.extend("--ft-badge-color","",u.contentGlobalOnColor),backgroundColor:o.extend("--ft-badge-background-color","",u.contentActionPrimary)};var Eu={horizontalGap:o.extend("--ft-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:o.extend("--ft-title-breadcrumb-current-color","",u.contentGlobalPrimary),previousNonClickableColor:o.extend("--ft-title-breadcrumb-previous-non-clickable-color","",u.contentGlobalSecondary),iconColor:o.extend("--ft-title-breadcrumb-icon-color","",u.contentGlobalSubtle)};var wu={parentHorizontalPadding:o.extend("--ft-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:o.extend("--ft-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:o.extend("--ft-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:o.extend("--ft-page-header-parent-help-left-margin","",c.spacing1),parentTitleColor:o.extend("--ft-page-header-parent-title-color","",u.contentGlobalPrimary),parentSubtitleColor:o.extend("--ft-page-header-parent-subtitle-color","",u.contentGlobalSecondary),parentChipLeftMargin:o.extend("--ft-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:o.extend("--ft-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:o.extend("--ft-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:o.extend("--ft-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:o.extend("--ft-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:o.extend("--ft-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:o.extend("--ft-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:o.extend("--ft-page-header-child-top-padding","",c.spacing2),childBottomPadding:o.extend("--ft-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:o.extend("--ft-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:o.extend("--ft-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:o.extend("--ft-page-header-child-vertical-gap","",c.spacing2),childMinHeight:o.create("--ft-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:o.extend("--ft-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:o.extend("--ft-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:o.extend("--ft-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:o.extend("--ft-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:o.extend("--ft-page-header-background-color","",c.colorWhite),bottomBorderColor:o.extend("--ft-page-header-bottom-border-color","",u.borderGlobalSubtle),bottomBorderWidth:o.create("--ft-page-header-bottom-border-width","","SIZE","1px")};var Au={horizontalPadding:o.extend("--ft-page-footer-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ft-page-footer-vertical-padding","",c.spacing2),verticalGap:o.extend("--ft-page-footer-vertical-gap","",c.spacing2),minHeight:o.create("--ft-page-footer-min-height","","SIZE","40px"),backgroundColor:o.extend("--ft-page-footer-background-color","",c.colorWhite),topBorderColor:o.extend("--ft-page-footer-top-border-color","",u.borderGlobalSubtle),topBorderWidth:o.create("--ft-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:o.extend("--ft-page-footer-buttons-group-gap","",c.spacing4)};var _u={contentHorizontalPadding:o.extend("--ft-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:o.extend("--ft-page-layout-content-vertical-padding","",c.spacing6)};var Ru={smallContainerTargetWidth:o.create("--ft-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:o.extend("--ft-modal-small-container-margin","",c.spacing6),mediumContainerTargetWidth:o.create("--ft-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:o.extend("--ft-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:o.create("--ft-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:o.extend("--ft-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:o.extend("--ft-modal-overlay-background-color","",c.colorGray700),overlayOpacity:o.extend("--ft-modal-overlay-opacity","",c.opacity40),shadow:o.extend("--ft-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:o.extend("--ft-modal-body-background-color","",c.colorWhite),bodyColor:o.extend("--ft-modal-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ft-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:o.extend("--ft-modal-body-vertical-gap","",c.spacing6),headerBackgroundColor:o.extend("--ft-modal-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-modal-header-border-color","",u.borderGlobalSubtle),headerColor:o.extend("--ft-modal-header-color","",u.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ft-modal-header-leading-icon-color","",u.contentGlobalPrimary),headerVerticalPadding:o.extend("--ft-modal-header-vertical-padding","",c.spacing1),headerRightPadding:o.extend("--ft-modal-header-right-padding","",c.spacing1),headerLeftPadding:o.extend("--ft-modal-header-left-padding","",c.spacing6),headerGap:o.extend("--ft-modal-header-gap","",c.spacing2),headerBorderBottomWidth:o.create("--ft-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:o.extend("--ft-modal-border-radius","",c.borderRadiusM)};var Tu={overlayOpacity:o.extend("--ft-drawer-overlay-opacity","",c.opacity40),shadow:o.extend("--ft-drawer-shadow","",c.shadowElevation03),bodyColor:o.extend("--ft-drawer-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ft-drawer-body-vertical-padding","",c.spacing6),bodyGap:o.extend("--ft-drawer-body-gap","",c.spacing6),bodyBackgroundColor:o.extend("--ft-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:o.extend("--ft-drawer-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-drawer-header-border-color","",u.borderGlobalSubtle),headerColor:o.extend("--ft-drawer-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ft-drawer-header-trailing-icon-color","",u.contentGlobalSecondary),headerHeight:o.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ft-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:o.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ft-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:o.extend("--ft-drawer-buttons-bar-background-color","",u.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ft-drawer-buttons-bar-border-color","",u.borderGlobalSubtle),buttonsBarColor:o.extend("--ft-drawer-buttons-bar-color","",u.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ft-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:o.extend("--ft-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:o.extend("--ft-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:o.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:o.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:o.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:o.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:o.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:o.extend("--ft-drawer-overlay-background-color","",c.colorGray700)};var Iu={offBorderBottomWidth:o.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:o.extend("--ft-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:o.extend("--ft-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:o.extend("--ft-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:o.extend("--ft-tabs-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ft-tabs-off-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-tabs-off-state-layer-color","",u.contentGlobalSubtle),offBorderBottomColor:o.extend("--ft-tabs-off-border-bottom-color","",u.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:o.extend("--ft-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:o.extend("--ft-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:o.extend("--ft-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:o.extend("--ft-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:o.extend("--ft-tabs-horizontal-gap","",c.spacing1),verticalGap:o.extend("--ft-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:o.extend("--ft-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:o.extend("--ft-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ft-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ft-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:o.extend("--ft-tabs-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-tabs-on-state-layer-color","",u.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ft-tabs-on-active-tab-indicator-color","",u.contentActionPrimary),iconOnlyHorizontalPadding:o.extend("--ft-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:o.extend("--ft-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:o.extend("--ft-tabs-alert-top-padding","",c.spacing1),alertRightPadding:o.extend("--ft-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:o.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-tabs-focus-focus-ring-color","",u.borderActionFocusRing)};var Nu={fieldHorizontalPadding:o.extend("--ft-text-input-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-text-input-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-text-input-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-text-input-field-icon-size","",c.iconSize3),fieldHeight:o.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:o.extend("--ft-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-text-input-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ft-text-input-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ft-text-input-border-radius","",c.borderRadiusM),backgroundColor:o.extend("--ft-text-input-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-input-content-value-color","",u.contentGlobalPrimary),trailingIconColor:o.extend("--ft-text-input-trailing-icon-color","",u.contentGlobalSubtle),labelColor:o.extend("--ft-text-input-label-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-input-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-input-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-input-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-input-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-input-error-helper-icon-color","",u.contentErrorIconOnly),warningBorderWidth:o.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:o.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-text-input-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-input-disabled-component-opacity","",c.opacity40)};var Pu={backgroundColor:o.extend("--ft-text-area-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-area-content-value-color","",u.contentGlobalPrimary),labelColor:o.extend("--ft-text-area-label-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-area-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-area-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-area-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-area-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-area-error-helper-icon-color","",u.contentErrorIconOnly),focusFocusRingColor:o.extend("--ft-text-area-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-area-disabled-component-opacity","",c.opacity40),fieldHorizontalLeftPadding:o.extend("--ft-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:o.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:o.extend("--ft-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ft-text-area-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ft-text-area-border-radius","",c.borderRadiusM)};var Lu={height:o.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:o.extend("--ft-floating-menu-horizontal-padding","",c.spacing4),offIconColor:o.extend("--ft-floating-menu-off-icon-color","",u.contentGlobalPrimary),offColor:o.extend("--ft-floating-menu-off-color","",u.contentGlobalPrimary),onColor:o.extend("--ft-floating-menu-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-floating-menu-on-state-layer-color","",u.contentActionPrimary),gap:o.extend("--ft-floating-menu-gap","",c.spacing3),focusFocusRingColor:o.extend("--ft-floating-menu-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ft-floating-menu-focus-state-layer-opacity","",c.opacity8),hoverStateLayerOpacity:o.extend("--ft-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:o.extend("--ft-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ft-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:o.extend("--ft-floating-menu-icon-size","",c.iconSize3),backgroundColor:o.extend("--ft-floating-menu-background-color","",u.backgroundGlobalOnSurface),shadow:o.extend("--ft-floating-menu-shadow","",c.shadowElevation02)};var ku={fieldHorizontalPadding:o.extend("--ft-combobox-single-select-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-single-select-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-combobox-single-select-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-combobox-single-select-field-icon-size","",c.iconSize3),fieldHeight:o.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:o.extend("--ft-combobox-single-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-combobox-single-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ft-combobox-single-select-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ft-combobox-single-select-helper-icon-size","",c.iconSize2),menuVerticalGap:o.extend("--ft-combobox-single-select-menu-vertical-gap","",c.spacing2),borderRadius:o.extend("--ft-combobox-single-select-border-radius","",c.borderRadiusM),backgroundColor:o.extend("--ft-combobox-single-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-single-select-label-color","",u.contentGlobalSubtle),contentValueColor:o.extend("--ft-combobox-single-select-content-value-color","",u.contentGlobalPrimary),trailingIconColor:o.extend("--ft-combobox-single-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-single-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-single-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-combobox-single-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-single-select-error-helper-text-color","",u.contentErrorPrimary),warningBorderWidth:o.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-single-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-single-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-single-select-warning-helper-icon-color","",u.contentWarningIconOnly),focusOutlineWidth:o.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-single-select-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-single-select-disabled-component-opacity","",c.opacity40)};var $u={backgroundColor:o.extend("--ft-combobox-multi-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-multi-select-label-color","",u.contentGlobalSubtle),trailingIconColor:o.extend("--ft-combobox-multi-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-multi-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-multi-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:o.extend("--ft-combobox-multi-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-multi-select-error-helper-text-color","",u.contentErrorPrimary),errorHelperIcon:o.extend("--ft-combobox-multi-select-error-helper-icon","",u.contentErrorIconOnly),errorBorderWidth:o.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-multi-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-multi-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-multi-select-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:o.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-multi-select-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-multi-select-disabled-component-opacity","",c.opacity40),helperHorizontalPadding:o.extend("--ft-combobox-multi-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-combobox-multi-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ft-combobox-multi-select-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ft-combobox-multi-select-helper-icon-size","",c.iconSize2),fieldHorizontalPadding:o.extend("--ft-combobox-multi-select-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-multi-select-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-combobox-multi-select-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-combobox-multi-select-field-icon-size","",c.iconSize3),fieldMaxHeight:o.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:o.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",c.spacing1),contentValuesVerticalGap:o.extend("--ft-combobox-multi-select-content-values-vertical-gap","",c.spacing1),borderRadius:o.extend("--ft-combobox-multi-select-border-radius","",c.borderRadiusM)};var Du={backgroundColor:o.extend("--ft-popover-background-color","",u.backgroundGlobalOnSurface),horizontalPadding:o.extend("--ft-popover-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ft-popover-vertical-padding","",c.spacing6),titleColor:o.extend("--ft-popover-title-color","",u.contentGlobalPrimary),bodyColor:o.extend("--ft-popover-body-color","",u.contentGlobalSecondary),linkColor:o.extend("--ft-popover-link-color","",u.contentActionPrimary),gap:o.extend("--ft-popover-gap","",c.spacing3),borderRadius:o.extend("--ft-popover-border-radius","",c.borderRadiusM),shadow:o.extend("--ft-popover-shadow","",c.shadowElevation02),maxWidth:o.create("--ft-popover-max-width","","SIZE","440px")};var Mu={hoverStateLayerOpacity:o.extend("--ft-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:o.extend("--ft-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:o.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ft-collapsible-focus-focus-ring-color","",u.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ft-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ft-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:o.extend("--ft-collapsible-horizontal-padding","",c.spacing4),verticalPadding:o.extend("--ft-collapsible-vertical-padding","",c.spacing3),color:o.extend("--ft-collapsible-color","",u.contentGlobalPrimary),stateLayerColor:o.extend("--ft-collapsible-state-layer-color","",u.contentGlobalPrimary),backgroundColor:o.extend("--ft-collapsible-background-color","",u.backgroundGlobalOnSurface),borderColor:o.extend("--ft-collapsible-border-color","",u.borderGlobalSubtle),iconSize:o.extend("--ft-collapsible-icon-size","",c.iconSize3)};var Uu={groupHorizontalPadding:o.extend("--ft-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:o.extend("--ft-switch-group-vertical-padding","",c.spacing1),groupGap:o.extend("--ft-switch-group-gap","",c.spacing1),groupBackgroundColor:o.extend("--ft-switch-group-background-color","",u.backgroundGlobalSurface),groupBorderColor:o.extend("--ft-switch-group-border-color","",u.borderGlobalSubtle),groupBorderRadius:o.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ft-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:o.extend("--ft-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:o.extend("--ft-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:o.extend("--ft-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:o.extend("--ft-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:o.extend("--ft-switch-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ft-switch-off-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-switch-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ft-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:o.extend("--ft-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:o.extend("--ft-switch-on-disabled-component-opacity","",c.opacity40),onColor:o.extend("--ft-switch-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-switch-on-state-layer-color","",u.contentActionPrimary),iconHorizontalPadding:o.extend("--ft-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:o.extend("--ft-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:o.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-switch-focus-focus-ring-color","",u.borderActionFocusRing),optionBorderRadius:o.extend("--ft-switch-option-border-radius","",c.borderRadiusS)};var Bu={color1Light:o.extend("--ft-chart-1-light","for area color charts",c.colorBrand40),color1Base:o.extend("--ft-chart-1-base","for line charts",c.colorBrand0),color2Light:o.extend("--ft-chart-2-light","for area color charts",c.colorYellow60),color2Base:o.extend("--ft-chart-2-base","for line charts",c.colorYellow100),color3Light:o.extend("--ft-chart-3-light","",c.colorUltramarine40),color3Base:o.extend("--ft-chart-3-base","",c.colorUltramarine70),color4Light:o.extend("--ft-chart-4-light","",c.colorCyan50),color4Base:o.extend("--ft-chart-4-base","",c.colorCyan100),color5Light:o.extend("--ft-chart-5-light","",c.colorRed40),color5Base:o.extend("--ft-chart-5-base","",c.colorRed60),color6Light:o.extend("--ft-chart-6-light","",c.colorGreen40),color6Base:o.extend("--ft-chart-6-base","",c.colorGreen70),color7Light:o.extend("--ft-chart-7-light","",c.colorOrange70),color7Base:o.extend("--ft-chart-7-base","",c.colorOrange100),color8Light:o.extend("--ft-chart-8-light","",c.colorAvocado70),color8Base:o.extend("--ft-chart-8-base","",c.colorAvocado200),color9Light:o.extend("--ft-chart-9-light","",c.colorBrown50),color9Base:o.extend("--ft-chart-9-base","",c.colorBrown200),color10Light:o.extend("--ft-chart-10-light","",c.colorGray50),color10Base:o.extend("--ft-chart-10-base","",c.colorGray80),monochrome10:o.extend("--ft-chart-monochrome-10","",c.colorBrand10),monochrome20:o.extend("--ft-chart-monochrome-20","",c.colorBrand20),monochrome30:o.extend("--ft-chart-monochrome-30","",c.colorBrand40),monochrome40:o.extend("--ft-chart-monochrome-40","",c.colorBrand60),monochrome50:o.extend("--ft-chart-monochrome-50","",c.colorBrand0),monochrome60:o.extend("--ft-chart-monochrome-60","",c.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-popular-old-background-color","",c.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-popular-new-background-color","",c.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-unpopular-old-background-color","",c.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-unpopular-new-background-color","",c.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-initial-default-background-color","",c.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:o.extend("--ft-chart-scatterplot-datapoint-initial-default-background-opacity","",c.opacity48),scatterplotDatapointInitialHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-initial-hover-background-color","",c.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-selected-default-background-color","",c.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-selected-hover-background-color","",c.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-color","",c.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:o.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-opacity","",c.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-unselected-hover-background-color","",c.colorGray70),scatterplotDatapointHoverHoverRingColor:o.extend("--ft-chart-scatterplot-datapoint-hover-hover-ring-color","",c.colorCyan200)};var Fu={color1IconColor:o.extend("--ft-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:o.extend("--ft-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:o.extend("--ft-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:o.extend("--ft-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:o.extend("--ft-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:o.extend("--ft-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:o.extend("--ft-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:o.extend("--ft-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:o.extend("--ft-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:o.extend("--ft-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:o.extend("--ft-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:o.extend("--ft-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:o.extend("--ft-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:o.extend("--ft-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:o.extend("--ft-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:o.extend("--ft-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)};var Wu={borderWidth:o.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ft-notice-horizontal-padding","",c.spacing3),verticalPadding:o.extend("--ft-notice-vertical-padding","",c.spacing2),borderRadius:o.extend("--ft-notice-border-radius","",c.borderRadiusS),gap:o.extend("--ft-notice-gap","",c.spacing2),iconSize:o.extend("--ft-notice-icon-size","",c.iconSize3),infoBackgroundColor:o.extend("--ft-notice-info-background-color","",u.backgroundInfoSubtle),infoBorderColor:o.extend("--ft-notice-info-border-color","",u.borderInfoSubtle),infoColor:o.extend("--ft-notice-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-notice-info-icon-color","",u.contentInfoIconOnly),warningBackgroundColor:o.extend("--ft-notice-warning-background-color","",u.backgroundWarningSubtle),warningBorderColor:o.extend("--ft-notice-warning-border-color","",u.borderWarningSubtle),warningColor:o.extend("--ft-notice-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-notice-warning-icon-color","",u.contentWarningIconOnly),errorBackgroundColor:o.extend("--ft-notice-error-background-color","",u.backgroundErrorSubtle),errorBorderColor:o.extend("--ft-notice-error-border-color","",u.borderErrorSubtle),errorColor:o.extend("--ft-notice-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-notice-error-icon-color","",u.contentErrorIconOnly),successBackgroundColor:o.extend("--ft-notice-success-background-color","",u.backgroundSuccessSubtle),successBorderColor:o.extend("--ft-notice-success-border-color","",u.borderSuccessSubtle),successColor:o.extend("--ft-notice-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-notice-success-icon-color","",u.contentSuccessIconOnly),denseHorizontalPadding:o.create("--ft-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:o.create("--ft-notice-dense-vertical-padding","","SIZE","0px"),denseGap:o.extend("--ft-notice-dense-gap","",c.spacing1),denseIconSize:o.extend("--ft-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:o.create("--ft-notice-dense-border-width","","SIZE","0")};var Hu={color:o.extend("--ft-checkbox-color","",u.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ft-checkbox-checked-background-color","",u.contentActionPrimary),checkedStateLayerColor:o.extend("--ft-checkbox-checked-state-layer-color","",u.contentActionPrimary),checkedIconColor:o.extend("--ft-checkbox-checked-icon-color","",u.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ft-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:o.extend("--ft-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:o.extend("--ft-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:o.extend("--ft-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:o.extend("--ft-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:o.extend("--ft-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ft-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-checkbox-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gap:o.extend("--ft-checkbox-gap","",c.spacing3)};var zu={offHoverStateLayerOpacity:o.extend("--ft-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:o.extend("--ft-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:o.extend("--ft-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:o.extend("--ft-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:o.extend("--ft-toggle-off-background-color","",u.contentGlobalSubtle),offIconColor:o.extend("--ft-toggle-off-icon-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-toggle-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:o.extend("--ft-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ft-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:o.extend("--ft-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:o.extend("--ft-toggle-on-background-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-toggle-on-state-layer-color","",u.contentActionPrimary),onIconColor:o.extend("--ft-toggle-on-icon-color","",u.contentActionPrimary),color:o.extend("--ft-toggle-color","",u.contentGlobalPrimary),focusFocusRingColor:o.extend("--ft-toggle-focus-focus-ring-color","",u.borderActionFocusRing),gap:o.extend("--ft-toggle-gap","",c.spacing3)};var Vu={color:o.extend("--ft-radio-color","",u.contentGlobalPrimary),selectedRadioColor:o.extend("--ft-radio-selected-radio-color","",u.contentActionPrimary),selectedStateLayerColor:o.extend("--ft-radio-selected-state-layer-color","",u.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ft-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:o.extend("--ft-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:o.extend("--ft-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:o.extend("--ft-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:o.extend("--ft-radio-unselected-state-layer-color","",u.borderInputPrimary),unselectedBorderColor:o.extend("--ft-radio-unselected-border-color","",u.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ft-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ft-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ft-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:o.extend("--ft-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-radio-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:o.extend("--ft-radio-gap","",c.spacing3)};var ju={iconSize:o.extend("--ft-notification-icon-size","",c.iconSize4),leftPadding:o.extend("--ft-notification-left-padding","",c.spacing5),rightPadding:o.extend("--ft-notification-right-padding","",c.spacing4),verticalPadding:o.extend("--ft-notification-vertical-padding","",c.spacing3),infoBackgroundColor:o.extend("--ft-notification-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-notification-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-notification-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-notification-info-border-color","",u.borderInfoSubtle),successBackgroundColor:o.extend("--ft-notification-success-background-color","",u.backgroundSuccessSubtle),successColor:o.extend("--ft-notification-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-notification-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:o.extend("--ft-notification-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-notification-warning-background-color","",u.backgroundWarningSubtle),warningColor:o.extend("--ft-notification-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-notification-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:o.extend("--ft-notification-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-notification-error-background-color","",u.backgroundErrorSubtle),errorColor:o.extend("--ft-notification-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-notification-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:o.extend("--ft-notification-error-border-color","",u.borderErrorSubtle),borderRadius:o.extend("--ft-notification-border-radius","",c.borderRadiusPill),borderWidth:o.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ft-notification-leading-gap","",c.spacing2),trailingGap:o.extend("--ft-notification-trailing-gap","",c.spacing8)};var Gu={horizontalPadding:o.extend("--ft-tooltip-horizontal-padding","",c.spacing2),verticalPadding:o.extend("--ft-tooltip-vertical-padding","",c.spacing2),borderRadius:o.extend("--ft-tooltip-border-radius","",c.borderRadiusS),color:o.extend("--ft-tooltip-color","",u.contentGlobalOnColor),backgroundColor:o.extend("--ft-tooltip-background-color","",u.contentGlobalPrimary),backgroundOpacity:o.extend("--ft-tooltip-background-opacity","",c.opacity80),shadow:o.extend("--ft-tooltip-shadow","",c.shadowElevation02),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ft-tooltip-gap","",c.spacing05)};var Ku={verticalPadding:o.extend("--ft-reorderable-list-vertical-padding","",c.spacing4),gap:o.extend("--ft-reorderable-list-gap","",c.spacing1),borderRadius:o.extend("--ft-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:o.extend("--ft-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:o.extend("--ft-reorderable-list-reorderable-item-title-color","",u.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:o.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:o.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:o.extend("--ft-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:o.extend("--ft-reorderable-list-reorderable-item-users-count-color","",u.contentGlobalPrimary),reorderableItemUsersCountMarginRight:o.extend("--ft-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:o.extend("--ft-reorderable-list-reorderable-item-background-color","",u.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:o.extend("--ft-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:o.extend("--ft-reorderable-list-reorderable-item-warning-message-color","",u.contentWarningPrimary),reorderableItemWarningMessageIconColor:o.extend("--ft-reorderable-list-reorderable-item-warning-message-icon-color","",u.contentWarningIconOnly),reorderableItemGripColor:o.extend("--ft-reorderable-list-reorderable-item-grip-color","",u.contentGlobalSecondary),reorderableItemGripOpacity:o.extend("--ft-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:o.extend("--ft-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:o.create("--ft-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:o.extend("--ft-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:o.extend("--ft-reorderable-list-left-padding","",c.spacing2),rightPadding:o.extend("--ft-reorderable-list-right-padding","",c.spacing6),borderColor:o.extend("--ft-reorderable-list-border-color","",u.borderGlobalPrimary),backgroundColor:o.extend("--ft-reorderable-list-background-color","",u.backgroundGlobalOnSurfaceDark)};var yr;(function(e){e.brand="brand",e.neutral="neutral",e.info="info",e.success="success",e.warning="warning",e.error="error"})(yr||(yr={}));var _e;(function(e){e.large="large",e.medium="medium",e.small="small"})(_e||(_e={}));function Ea(e){return`ftds--family-${e}`}function wa(e){return`ftds--size-${e}`}var T={colorPrimary:o.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:o.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:o.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:o.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:o.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:o.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:o.create("--ft-color-error","","COLOR","#B00020"),colorOutline:o.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:o.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:o.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:o.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:o.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:o.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:o.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:o.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:o.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:o.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:o.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:o.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:o.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:o.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:o.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:o.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:o.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:o.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:o.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:o.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:o.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:o.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:o.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:o.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:o.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:o.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:o.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:o.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:o.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:o.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:o.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:o.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:o.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:o.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:o.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:o.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:o.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:o.create("--ft-elevation-00","","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:o.create("--ft-elevation-01","","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:o.create("--ft-elevation-02","","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:o.create("--ft-elevation-03","","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:o.create("--ft-elevation-04","","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:o.create("--ft-elevation-06","","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:o.create("--ft-elevation-08","","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:o.create("--ft-elevation-12","","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:o.create("--ft-elevation-16","","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:o.create("--ft-elevation-24","","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:o.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:o.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:o.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:o.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:o.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:o.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var Va={};ot(Va,{computeFlipOffsetPosition:()=>za,computeOffsetPosition:()=>Ha});var Jl=["top","right","bottom","left"],Xl=["start","end"],Ra=Jl.reduce((e,t)=>e.concat(t,t+"-"+Xl[0],t+"-"+Xl[1]),[]),gr=Math.min,Ht=Math.max,Io=Math.round;var Re=e=>({x:e,y:e}),Zu={left:"right",right:"left",bottom:"top",top:"bottom"},qu={start:"end",end:"start"};function Ta(e,t,r){return Ht(e,gr(t,r))}function br(e,t){return typeof e=="function"?e(t):e}function oe(e){return e.split("-")[0]}function ie(e){return e.split("-")[1]}function Ia(e){return e==="x"?"y":"x"}function Na(e){return e==="y"?"height":"width"}function Fr(e){return["top","bottom"].includes(oe(e))?"y":"x"}function Pa(e){return Ia(Fr(e))}function La(e,t,r){r===void 0&&(r=!1);let i=ie(e),n=Pa(e),a=Na(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=To(s)),[s,To(s)]}function Ql(e){let t=To(e);return[Ro(e),t,Ro(t)]}function Ro(e){return e.replace(/start|end/g,t=>qu[t])}function Yu(e,t,r){let i=["left","right"],n=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return r?t?n:i:t?i:n;case"left":case"right":return t?a:s;default:return[]}}function tc(e,t,r,i){let n=ie(e),a=Yu(oe(e),r==="start",i);return n&&(a=a.map(s=>s+"-"+n),t&&(a=a.concat(a.map(Ro)))),a}function To(e){return e.replace(/left|right|bottom|top/g,t=>Zu[t])}function Xu(e){return{top:0,right:0,bottom:0,left:0,...e}}function ec(e){return typeof e!="number"?Xu(e):{top:e,right:e,bottom:e,left:e}}function vr(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function rc(e,t,r){let{reference:i,floating:n}=e,a=Fr(t),s=Pa(t),l=Na(s),d=oe(t),p=a==="y",h=i.x+i.width/2-n.width/2,f=i.y+i.height/2-n.height/2,m=i[l]/2-n[l]/2,v;switch(d){case"top":v={x:h,y:i.y-n.height};break;case"bottom":v={x:h,y:i.y+i.height};break;case"right":v={x:i.x+i.width,y:f};break;case"left":v={x:i.x-n.width,y:f};break;default:v={x:i.x,y:i.y}}switch(ie(t)){case"start":v[s]-=m*(r&&p?-1:1);break;case"end":v[s]+=m*(r&&p?-1:1);break}return v}var oc=async(e,t,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=r,l=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t)),p=await s.getElementRects({reference:e,floating:t,strategy:n}),{x:h,y:f}=rc(p,i,d),m=i,v={},x=0;for(let E=0;E<l.length;E++){let{name:R,fn:I}=l[E],{x:P,y:w,data:O,reset:A}=await I({x:h,y:f,initialPlacement:i,placement:m,strategy:n,middlewareData:v,rects:p,platform:s,elements:{reference:e,floating:t}});if(h=P??h,f=w??f,v={...v,[R]:{...v[R],...O}},A&&x<=50){x++,typeof A=="object"&&(A.placement&&(m=A.placement),A.rects&&(p=A.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:n}):A.rects),{x:h,y:f}=rc(p,m,d)),E=-1;continue}}return{x:h,y:f,placement:m,strategy:n,middlewareData:v}};async function No(e,t){var r;t===void 0&&(t={});let{x:i,y:n,platform:a,rects:s,elements:l,strategy:d}=e,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:f="floating",altBoundary:m=!1,padding:v=0}=br(t,e),x=ec(v),R=l[m?f==="floating"?"reference":"floating":f],I=vr(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(R)))==null||r?R:R.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:h,strategy:d})),P=f==="floating"?{...s.floating,x:i,y:n}:s.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),O=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},A=vr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:P,offsetParent:w,strategy:d}):P);return{top:(I.top-A.top+x.top)/O.y,bottom:(A.bottom-I.bottom+x.bottom)/O.y,left:(I.left-A.left+x.left)/O.x,right:(A.right-I.right+x.right)/O.x}}function Ju(e,t,r){return(e?[...r.filter(n=>ie(n)===e),...r.filter(n=>ie(n)!==e)]:r.filter(n=>oe(n)===n)).filter(n=>e?ie(n)===e||(t?Ro(n)!==n:!1):!0)}var ka=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,i,n;let{rects:a,middlewareData:s,placement:l,platform:d,elements:p}=t,{crossAxis:h=!1,alignment:f,allowedPlacements:m=Ra,autoAlignment:v=!0,...x}=br(e,t),E=f!==void 0||m===Ra?Ju(f||null,v,m):m,R=await No(t,x),I=((r=s.autoPlacement)==null?void 0:r.index)||0,P=E[I];if(P==null)return{};let w=La(P,a,await(d.isRTL==null?void 0:d.isRTL(p.floating)));if(l!==P)return{reset:{placement:E[0]}};let O=[R[oe(P)],R[w[0]],R[w[1]]],A=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:P,overflows:O}],L=E[I+1];if(L)return{data:{index:I+1,overflows:A},reset:{placement:L}};let F=A.map(U=>{let y=ie(U.placement);return[U.placement,y&&h?U.overflows.slice(0,2).reduce((C,D)=>C+D,0):U.overflows[0],U.overflows]}).sort((U,y)=>U[1]-y[1]),K=((n=F.filter(U=>U[2].slice(0,ie(U[0])?2:3).every(y=>y<=0))[0])==null?void 0:n[0])||F[0][0];return K!==l?{data:{index:I+1,overflows:A},reset:{placement:K}}:{}}}},$a=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,i;let{placement:n,middlewareData:a,rects:s,initialPlacement:l,platform:d,elements:p}=t,{mainAxis:h=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:E=!0,...R}=br(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};let I=oe(n),P=oe(l)===l,w=await(d.isRTL==null?void 0:d.isRTL(p.floating)),O=m||(P||!E?[To(l)]:Ql(l));!m&&x!=="none"&&O.push(...tc(l,E,x,w));let A=[l,...O],L=await No(t,R),F=[],Z=((i=a.flip)==null?void 0:i.overflows)||[];if(h&&F.push(L[I]),f){let C=La(n,s,w);F.push(L[C[0]],L[C[1]])}if(Z=[...Z,{placement:n,overflows:F}],!F.every(C=>C<=0)){var K,U;let C=(((K=a.flip)==null?void 0:K.index)||0)+1,D=A[C];if(D)return{data:{index:C,overflows:Z},reset:{placement:D}};let q=(U=Z.filter(Q=>Q.overflows[0]<=0).sort((Q,V)=>Q.overflows[1]-V.overflows[1])[0])==null?void 0:U.placement;if(!q)switch(v){case"bestFit":{var y;let Q=(y=Z.map(V=>[V.placement,V.overflows.filter(pe=>pe>0).reduce((pe,so)=>pe+so,0)]).sort((V,pe)=>V[1]-pe[1])[0])==null?void 0:y[0];Q&&(q=Q);break}case"initialPlacement":q=l;break}if(n!==q)return{reset:{placement:q}}}return{}}}};async function Qu(e,t){let{placement:r,platform:i,elements:n}=e,a=await(i.isRTL==null?void 0:i.isRTL(n.floating)),s=oe(r),l=ie(r),d=Fr(r)==="y",p=["left","top"].includes(s)?-1:1,h=a&&d?-1:1,f=br(t,e),{mainAxis:m,crossAxis:v,alignmentAxis:x}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&typeof x=="number"&&(v=l==="end"?x*-1:x),d?{x:v*h,y:m*p}:{x:m*p,y:v*h}}var Da=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,i;let{x:n,y:a,placement:s,middlewareData:l}=t,d=await Qu(t,e);return s===((r=l.offset)==null?void 0:r.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:n+d.x,y:a+d.y,data:{...d,placement:s}}}}},Ma=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:i,placement:n}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:R=>{let{x:I,y:P}=R;return{x:I,y:P}}},...d}=br(e,t),p={x:r,y:i},h=await No(t,d),f=Fr(oe(n)),m=Ia(f),v=p[m],x=p[f];if(a){let R=m==="y"?"top":"left",I=m==="y"?"bottom":"right",P=v+h[R],w=v-h[I];v=Ta(P,v,w)}if(s){let R=f==="y"?"top":"left",I=f==="y"?"bottom":"right",P=x+h[R],w=x-h[I];x=Ta(P,x,w)}let E=l.fn({...t,[m]:v,[f]:x});return{...E,data:{x:E.x-r,y:E.y-i}}}}};var Ua=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:r,rects:i,platform:n,elements:a}=t,{apply:s=()=>{},...l}=br(e,t),d=await No(t,l),p=oe(r),h=ie(r),f=Fr(r)==="y",{width:m,height:v}=i.floating,x,E;p==="top"||p==="bottom"?(x=p,E=h===(await(n.isRTL==null?void 0:n.isRTL(a.floating))?"start":"end")?"left":"right"):(E=p,x=h==="end"?"top":"bottom");let R=v-d[x],I=m-d[E],P=!t.middlewareData.shift,w=R,O=I;if(f){let L=m-d.left-d.right;O=h||P?gr(I,L):L}else{let L=v-d.top-d.bottom;w=h||P?gr(R,L):L}if(P&&!h){let L=Ht(d.left,0),F=Ht(d.right,0),Z=Ht(d.top,0),K=Ht(d.bottom,0);f?O=m-2*(L!==0||F!==0?L+F:Ht(d.left,d.right)):w=v-2*(Z!==0||K!==0?Z+K:Ht(d.top,d.bottom))}await s({...t,availableWidth:O,availableHeight:w});let A=await n.getDimensions(a.floating);return m!==A.width||v!==A.height?{reset:{rects:!0}}:{}}}};function Te(e){return nc(e)?(e.nodeName||"").toLowerCase():"#document"}function zt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ie(e){var t;return(t=(nc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function nc(e){return e instanceof Node||e instanceof zt(e).Node}function ye(e){return e instanceof Element||e instanceof zt(e).Element}function ne(e){return e instanceof HTMLElement||e instanceof zt(e).HTMLElement}function ic(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof zt(e).ShadowRoot}function Wr(e){let{overflow:t,overflowX:r,overflowY:i,display:n}=Zt(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+r)&&!["inline","contents"].includes(n)}function ac(e){return["table","td","th"].includes(Te(e))}function Ci(e){let t=Ei(),r=Zt(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(r.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(r.contain||"").includes(i))}function sc(e){let t=xr(e);for(;ne(t)&&!Po(t);){if(Ci(t))return t;t=xr(t)}return null}function Ei(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Po(e){return["html","body","#document"].includes(Te(e))}function Zt(e){return zt(e).getComputedStyle(e)}function Lo(e){return ye(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function xr(e){if(Te(e)==="html")return e;let t=e.assignedSlot||e.parentNode||ic(e)&&e.host||Ie(e);return ic(t)?t.host:t}function lc(e){let t=xr(e);return Po(t)?e.ownerDocument?e.ownerDocument.body:e.body:ne(t)&&Wr(t)?t:lc(t)}function Oi(e,t,r){var i;t===void 0&&(t=[]),r===void 0&&(r=!0);let n=lc(e),a=n===((i=e.ownerDocument)==null?void 0:i.body),s=zt(n);return a?t.concat(s,s.visualViewport||[],Wr(n)?n:[],s.frameElement&&r?Oi(s.frameElement):[]):t.concat(n,Oi(n,[],r))}function pc(e){let t=Zt(e),r=parseFloat(t.width)||0,i=parseFloat(t.height)||0,n=ne(e),a=n?e.offsetWidth:r,s=n?e.offsetHeight:i,l=Io(r)!==a||Io(i)!==s;return l&&(r=a,i=s),{width:r,height:i,$:l}}function uc(e){return ye(e)?e:e.contextElement}function Hr(e){let t=uc(e);if(!ne(t))return Re(1);let r=t.getBoundingClientRect(),{width:i,height:n,$:a}=pc(t),s=(a?Io(r.width):r.width)/i,l=(a?Io(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var tf=Re(0);function fc(e){let t=zt(e);return!Ei()||!t.visualViewport?tf:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ef(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==zt(e)?!1:t}function ko(e,t,r,i){t===void 0&&(t=!1),r===void 0&&(r=!1);let n=e.getBoundingClientRect(),a=uc(e),s=Re(1);t&&(i?ye(i)&&(s=Hr(i)):s=Hr(e));let l=ef(a,r,i)?fc(a):Re(0),d=(n.left+l.x)/s.x,p=(n.top+l.y)/s.y,h=n.width/s.x,f=n.height/s.y;if(a){let m=zt(a),v=i&&ye(i)?zt(i):i,x=m.frameElement;for(;x&&i&&v!==m;){let E=Hr(x),R=x.getBoundingClientRect(),I=Zt(x),P=R.left+(x.clientLeft+parseFloat(I.paddingLeft))*E.x,w=R.top+(x.clientTop+parseFloat(I.paddingTop))*E.y;d*=E.x,p*=E.y,h*=E.x,f*=E.y,d+=P,p+=w,x=zt(x).frameElement}}return vr({width:h,height:f,x:d,y:p})}function rf(e){let{rect:t,offsetParent:r,strategy:i}=e,n=ne(r),a=Ie(r);if(r===a)return t;let s={scrollLeft:0,scrollTop:0},l=Re(1),d=Re(0);if((n||!n&&i!=="fixed")&&((Te(r)!=="body"||Wr(a))&&(s=Lo(r)),ne(r))){let p=ko(r);l=Hr(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-s.scrollLeft*l.x+d.x,y:t.y*l.y-s.scrollTop*l.y+d.y}}function of(e){return Array.from(e.getClientRects())}function hc(e){return ko(Ie(e)).left+Lo(e).scrollLeft}function nf(e){let t=Ie(e),r=Lo(e),i=e.ownerDocument.body,n=Ht(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),a=Ht(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),s=-r.scrollLeft+hc(e),l=-r.scrollTop;return Zt(i).direction==="rtl"&&(s+=Ht(t.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:l}}function af(e,t){let r=zt(e),i=Ie(e),n=r.visualViewport,a=i.clientWidth,s=i.clientHeight,l=0,d=0;if(n){a=n.width,s=n.height;let p=Ei();(!p||p&&t==="fixed")&&(l=n.offsetLeft,d=n.offsetTop)}return{width:a,height:s,x:l,y:d}}function sf(e,t){let r=ko(e,!0,t==="fixed"),i=r.top+e.clientTop,n=r.left+e.clientLeft,a=ne(e)?Hr(e):Re(1),s=e.clientWidth*a.x,l=e.clientHeight*a.y,d=n*a.x,p=i*a.y;return{width:s,height:l,x:d,y:p}}function cc(e,t,r){let i;if(t==="viewport")i=af(e,r);else if(t==="document")i=nf(Ie(e));else if(ye(t))i=sf(t,r);else{let n=fc(e);i={...t,x:t.x-n.x,y:t.y-n.y}}return vr(i)}function mc(e,t){let r=xr(e);return r===t||!ye(r)||Po(r)?!1:Zt(r).position==="fixed"||mc(r,t)}function lf(e,t){let r=t.get(e);if(r)return r;let i=Oi(e,[],!1).filter(l=>ye(l)&&Te(l)!=="body"),n=null,a=Zt(e).position==="fixed",s=a?xr(e):e;for(;ye(s)&&!Po(s);){let l=Zt(s),d=Ci(s);!d&&l.position==="fixed"&&(n=null),(a?!d&&!n:!d&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Wr(s)&&!d&&mc(e,s))?i=i.filter(h=>h!==s):n=l,s=xr(s)}return t.set(e,i),i}function cf(e){let{element:t,boundary:r,rootBoundary:i,strategy:n}=e,s=[...r==="clippingAncestors"?lf(t,this._c):[].concat(r),i],l=s[0],d=s.reduce((p,h)=>{let f=cc(t,h,n);return p.top=Ht(f.top,p.top),p.right=gr(f.right,p.right),p.bottom=gr(f.bottom,p.bottom),p.left=Ht(f.left,p.left),p},cc(t,l,n));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function df(e){return pc(e)}function pf(e,t,r){let i=ne(t),n=Ie(t),a=r==="fixed",s=ko(e,!0,a,t),l={scrollLeft:0,scrollTop:0},d=Re(0);if(i||!i&&!a)if((Te(t)!=="body"||Wr(n))&&(l=Lo(t)),i){let p=ko(t,!0,a,t);d.x=p.x+t.clientLeft,d.y=p.y+t.clientTop}else n&&(d.x=hc(n));return{x:s.left+l.scrollLeft-d.x,y:s.top+l.scrollTop-d.y,width:s.width,height:s.height}}function dc(e,t){return!ne(e)||Zt(e).position==="fixed"?null:t?t(e):e.offsetParent}function yc(e,t){let r=zt(e);if(!ne(e))return r;let i=dc(e,t);for(;i&&ac(i)&&Zt(i).position==="static";)i=dc(i,t);return i&&(Te(i)==="html"||Te(i)==="body"&&Zt(i).position==="static"&&!Ci(i))?r:i||sc(e)||r}var uf=async function(e){let{reference:t,floating:r,strategy:i}=e,n=this.getOffsetParent||yc,a=this.getDimensions;return{reference:pf(t,await n(r),i),floating:{x:0,y:0,...await a(r)}}};function ff(e){return Zt(e).direction==="rtl"}var zr={convertOffsetParentRelativeRectToViewportRelativeRect:rf,getDocumentElement:Ie,getClippingRect:cf,getOffsetParent:yc,getElementRects:uf,getClientRects:of,getDimensions:df,getScale:Hr,isElement:ye,isRTL:ff};var Ba=(e,t,r)=>{let i=new Map,n={platform:zr,...r},a={...n.platform,_c:i};return oc(e,t,{...n,platform:a})};function Wa(e){return hf(e)}function Fa(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function hf(e){for(let t=e;t;t=Fa(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=Fa(e);t;t=Fa(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||t.tagName==="BODY"))return t}return null}async function Ha(e,t,r){return Ba(e,t,{platform:{...zr,getOffsetParent:i=>zr.getOffsetParent(i,Wa)},middleware:[Ma({crossAxis:!0}),ka({allowedPlacements:[r]})]})}async function za(e,t,r,i,n,a,s=4){return Ba(e,t,{placement:r,strategy:n,platform:{...zr,getOffsetParent:l=>zr.getOffsetParent(l,Wa)},middleware:[Da(s),$a({fallbackPlacements:i}),Ua({apply({availableHeight:l,elements:d}){a?d.floating.style.maxHeight=`min(${Math.max(0,l)}px, var(${a}))`:d.floating.style.maxHeight=`${Math.max(0,l)}px`}})]})}var Za={};ot(Za,{FtdsBase:()=>Ka,toFtdsBase:()=>_i});var Ga={};ot(Ga,{FtLitElement:()=>j});var ja={};ot(ja,{ScopedRegistryLitElement:()=>$o});var wi=window,mf=wi.ShadowRoot&&(wi.ShadyCSS===void 0||wi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,mv=Symbol();var gc=(e,t)=>{mf?e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):t.forEach(r=>{let i=document.createElement("style"),n=wi.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,e.appendChild(i)})};var $o=class extends Ee{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([n,a])=>t.registry.define(n,a)));let r={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return gc(i,t.elementStyles),i}};var Ai=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},Sc,bc=Symbol("constructorPrototype"),vc=Symbol("constructorName"),Oc=Symbol("exportpartsDebouncer"),xc=Symbol("dynamicDependenciesLoaded"),j=class extends $o{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Sc]=new lt(5),this[vc]=this.constructor.name,this[bc]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[vc]&&Object.setPrototypeOf(this,this[bc])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let t=this.constructor;t[xc]||(t[xc]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){}applyCustomStylesheet(t){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(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 t,r,i;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[Oc].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.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(t){var r,i,n,a,s,l;let d=m=>m!=null&&m.trim().length>0,p=t.filter(d).map(m=>m.trim());if(p.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let m of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let v=(a=(n=m.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],x=(l=(s=m.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(E=>E.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...v,...x).filter(d).map(E=>E.trim()).forEach(E=>h.add(E))}if(h.size===0){this.removeAttribute("exportparts");return}let f=[...h.values()].flatMap(m=>p.map(v=>`${m}:${v}--${m}`));this.setAttribute("exportparts",[...this.part,...f].join(", "))}};Sc=Oc;Ai([g()],j.prototype,"exportpartsPrefix",void 0);Ai([me([])],j.prototype,"exportpartsPrefixes",void 0);Ai([g()],j.prototype,"customStylesheet",void 0);Ai([H()],j.prototype,"useAdoptedStyleSheets",void 0);var Cc=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a};function _i(e){class t extends e{constructor(){super(...arguments),this.size=_e.medium,this.family=yr.neutral}getDesignSystemBaseClasses(){return{[Ea(this.family)]:!0,[wa(this.size)]:!0}}}return Cc([g()],t.prototype,"size",void 0),Cc([g()],t.prototype,"family",void 0),t}var Ka=class extends _i(j){};var Ec={};var Xa={};ot(Xa,{highlightHtml:()=>Ya,highlightHtmlColorCssVariable:()=>wc,highlightHtmlStyles:()=>gf});var Sr=class e{constructor(t,r=!0,i=[],n=5e3){this.ctx=t,this.iframes=r,this.exclude=i,this.iframesTimeout=n}static matches(t,r){let i=typeof r=="string"?[r]:r,n=t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;if(n){let a=!1;return i.every(s=>n.call(t,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let t,r=[];return typeof this.ctx>"u"||!this.ctx?t=[]:NodeList.prototype.isPrototypeOf(this.ctx)?t=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?t=this.ctx:typeof this.ctx=="string"?t=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):t=[this.ctx],t.forEach(i=>{let n=r.filter(a=>a.contains(i)).length>0;r.indexOf(i)===-1&&!n&&r.push(i)}),r}getIframeContents(t,r,i=()=>{}){let n;try{let a=t.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{i()}n&&r(n)}isIframeBlank(t){let r="about:blank",i=t.getAttribute("src").trim();return t.contentWindow.location.href===r&&i!==r&&i}observeIframeLoad(t,r,i){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(t)||(t.removeEventListener("load",s),this.getIframeContents(t,r,i))}catch{i()}}};t.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(t,r,i){try{t.contentWindow.document.readyState==="complete"?this.isIframeBlank(t)?this.observeIframeLoad(t,r,i):this.getIframeContents(t,r,i):this.observeIframeLoad(t,r,i)}catch{i()}}waitForIframes(t,r){let i=0;this.forEachIframe(t,()=>!0,n=>{i++,this.waitForIframes(n.querySelector("html"),()=>{--i||r()})},n=>{n||r()})}forEachIframe(t,r,i,n=()=>{}){let a=t.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let d=()=>{--s<=0&&n(l)};s||d(),a.forEach(p=>{e.matches(p,this.exclude)?d():this.onIframeReady(p,h=>{r(p)&&(l++,i(h)),d()},d)})}createIterator(t,r,i){return document.createNodeIterator(t,r,i,!1)}createInstanceOnIframe(t){return new e(t.querySelector("html"),this.iframes)}compareNodeIframe(t,r,i){let n=t.compareDocumentPosition(i),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(r!==null){let s=r.compareDocumentPosition(i),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(t){let r=t.previousNode(),i;return r===null?i=t.nextNode():i=t.nextNode()&&t.nextNode(),{prevNode:r,node:i}}checkIframeFilter(t,r,i,n){let a=!1,s=!1;return n.forEach((l,d)=>{l.val===i&&(a=d,s=l.handled)}),this.compareNodeIframe(t,r,i)?(a===!1&&!s?n.push({val:i,handled:!0}):a!==!1&&!s&&(n[a].handled=!0),!0):(a===!1&&n.push({val:i,handled:!1}),!1)}handleOpenIframes(t,r,i,n){t.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(r,i,n)})})}iterateThroughNodes(t,r,i,n,a){let s=this.createIterator(r,t,n),l=[],d=[],p,h,f=()=>({prevNode:h,node:p}=this.getIteratorNode(s),p);for(;f();)this.iframes&&this.forEachIframe(r,m=>this.checkIframeFilter(p,h,m,l),m=>{this.createInstanceOnIframe(m).forEachNode(t,v=>d.push(v),n)}),d.push(p);d.forEach(m=>{i(m)}),this.iframes&&this.handleOpenIframes(l,t,i,n),a()}forEachNode(t,r,i,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let d=()=>{this.iterateThroughNodes(t,l,r,i,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,d):d()})}};var Do=class{constructor(t){this.ctx=t,this.ie=!1;let r=window.navigator.userAgent;(r.indexOf("MSIE")>-1||r.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(t){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},t)}get opt(){return this._opt}get iterator(){return new Sr(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(t,r="debug"){let i=this.opt.log;this.opt.debug&&typeof i=="object"&&typeof i[r]=="function"&&i[r](`mark.js: ${t}`)}escapeStr(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(t){return this.opt.wildcards!=="disabled"&&(t=this.setupWildcardsRegExp(t)),t=this.escapeStr(t),Object.keys(this.opt.synonyms).length&&(t=this.createSynonymsRegExp(t)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),this.opt.diacritics&&(t=this.createDiacriticsRegExp(t)),t=this.createMergedBlanksRegExp(t),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.createJoinersRegExp(t)),this.opt.wildcards!=="disabled"&&(t=this.createWildcardsRegExp(t)),t=this.createAccuracyRegExp(t),t}createSynonymsRegExp(t){let r=this.opt.synonyms,i=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in r)if(r.hasOwnProperty(a)){let s=r[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&d!==""&&(t=t.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(d)})`,`gm${i}`),n+`(${this.processSynomyms(l)}|${this.processSynomyms(d)})`+n))}return t}processSynomyms(t){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),t}setupWildcardsRegExp(t){return t=t.replace(/(?:\\)*\?/g,r=>r.charAt(0)==="\\"?"?":""),t.replace(/(?:\\)*\*/g,r=>r.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(t){let r=this.opt.wildcards==="withSpaces";return t.replace(/\u0001/g,r?"[\\S\\s]?":"\\S?").replace(/\u0002/g,r?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(t){return t.replace(/[^(|)\\]/g,(r,i,n)=>{let a=n.charAt(i+1);return/[(|)\\]/.test(a)||a===""?r:r+"\0"})}createJoinersRegExp(t){let r=[],i=this.opt.ignorePunctuation;return Array.isArray(i)&&i.length&&r.push(this.escapeStr(i.join(""))),this.opt.ignoreJoiners&&r.push("\\u00ad\\u200b\\u200c\\u200d"),r.length?t.split(/\u0000+/).join(`[${r.join("")}]*`):t}createDiacriticsRegExp(t){let r=this.opt.caseSensitive?"":"i",i=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"],n=[];return t.split("").forEach(a=>{i.every(s=>{if(s.indexOf(a)!==-1){if(n.indexOf(s)>-1)return!1;t=t.replace(new RegExp(`[${s}]`,`gm${r}`),`[${s}]`),n.push(s)}return!0})}),t}createMergedBlanksRegExp(t){return t.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(t){let r="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",i=this.opt.accuracy,n=typeof i=="string"?i:i.value,a=typeof i=="string"?[]:i.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),n){case"partially":default:return`()(${t})`;case"complementary":return s="\\s"+(s||this.escapeStr(r)),`()([^${s}]*${t}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${t})(?=$|\\s${s})`}}getSeparatedKeywords(t){let r=[];return t.forEach(i=>{this.opt.separateWordSearch?i.split(" ").forEach(n=>{n.trim()&&r.indexOf(n)===-1&&r.push(n)}):i.trim()&&r.indexOf(i)===-1&&r.push(i)}),{keywords:r.sort((i,n)=>n.length-i.length),length:r.length}}isNumeric(t){return Number(parseFloat(t))==t}checkRanges(t){if(!Array.isArray(t)||Object.prototype.toString.call(t[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(t),[];let r=[],i=0;return t.sort((n,a)=>n.start-a.start).forEach(n=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(n,i);l&&(n.start=a,n.length=s-a,r.push(n),i=s)}),r}callNoMatchOnInvalidRanges(t,r){let i,n,a=!1;return t&&typeof t.start<"u"?(i=parseInt(t.start,10),n=i+parseInt(t.length,10),this.isNumeric(t.start)&&this.isNumeric(t.length)&&n-r>0&&n-i>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(t)}`),this.opt.noMatch(t))):(this.log(`Ignoring invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)),{start:i,end:n,valid:a}}checkWhitespaceRanges(t,r,i){let n,a=!0,s=i.length,l=r-s,d=parseInt(t.start,10)-l;return d=d>s?s:d,n=d+parseInt(t.length,10),n>s&&(n=s,this.log(`End range automatically set to the max value of ${s}`)),d<0||n-d<0||d>s||n>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)):i.substring(d,n).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(t)),this.opt.noMatch(t)),{start:d,end:n,valid:a}}getTextNodes(t){let r="",i=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{i.push({start:r.length,end:(r+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{t({value:r,nodes:i})})}matchesExclude(t){return Sr.matches(t,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(t,r,i){let n=this.opt.element?this.opt.element:"mark",a=t.splitText(r),s=a.splitText(i-r),l=document.createElement(n);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(t,r,i,n,a){t.nodes.every((s,l)=>{let d=t.nodes[l+1];if(typeof d>"u"||d.start>r){if(!n(s.node))return!1;let p=r-s.start,h=(i>s.end?s.end:i)-s.start,f=t.value.substr(0,s.start),m=t.value.substr(h+s.start);if(s.node=this.wrapRangeInTextNode(s.node,p,h),t.value=f+m,t.nodes.forEach((v,x)=>{x>=l&&(t.nodes[x].start>0&&x!==l&&(t.nodes[x].start-=h),t.nodes[x].end-=h)}),i-=h,a(s.node.previousSibling,s.start),i>s.end)r=s.end;else return!1}return!0})}wrapMatches(t,r,i,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let p;for(;(p=t.exec(d.textContent))!==null&&p[s]!=="";){if(!i(p[s],d))continue;let h=p.index;if(s!==0)for(let f=1;f<s;f++)h+=p[f].length;d=this.wrapRangeInTextNode(d,h,h+p[s].length),n(d.previousSibling),t.lastIndex=0}}),a()})}wrapMatchesAcrossElements(t,r,i,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{let d;for(;(d=t.exec(l.value))!==null&&d[s]!=="";){let p=d.index;if(s!==0)for(let f=1;f<s;f++)p+=d[f].length;let h=p+d[s].length;this.wrapRangeInMappedTextNode(l,p,h,f=>i(d[s],f),(f,m)=>{t.lastIndex=m,n(f)})}a()})}wrapRangeFromIndex(t,r,i,n){this.getTextNodes(a=>{let s=a.value.length;t.forEach((l,d)=>{let{start:p,end:h,valid:f}=this.checkWhitespaceRanges(l,s,a.value);f&&this.wrapRangeInMappedTextNode(a,p,h,m=>r(m,l,a.value.substring(p,h),d),m=>{i(m,l)})}),n()})}unwrapMatches(t){let r=t.parentNode,i=document.createDocumentFragment();for(;t.firstChild;)i.appendChild(t.removeChild(t.firstChild));r.replaceChild(i,t),this.ie?this.normalizeTextNode(r):r.normalize()}normalizeTextNode(t){if(t){if(t.nodeType===3)for(;t.nextSibling&&t.nextSibling.nodeType===3;)t.nodeValue+=t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);else this.normalizeTextNode(t.firstChild);this.normalizeTextNode(t.nextSibling)}}markRegExp(t,r){this.opt=r,this.log(`Searching with expression "${t}"`);let i=0,n="wrapMatches",a=s=>{i++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](t,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,i),a,()=>{i===0&&this.opt.noMatch(t),this.opt.done(i)})}mark(t,r){this.opt=r;let i=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof t=="string"?[t]:t),l=this.opt.caseSensitive?"":"i",d=p=>{let h=new RegExp(this.createRegExp(p),`gm${l}`),f=0;this.log(`Searching with expression "${h}"`),this[n](h,1,(m,v)=>this.opt.filter(v,p,i,f),m=>{f++,i++,this.opt.each(m)},()=>{f===0&&this.opt.noMatch(p),a[s-1]===p?this.opt.done(i):d(a[a.indexOf(p)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),s===0?this.opt.done(i):d(a[0])}markRanges(t,r){this.opt=r;let i=0,n=this.checkRanges(t);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(a,s,l,d)=>this.opt.filter(a,s,l,d),(a,s)=>{i++,this.opt.each(a,s)},()=>{this.opt.done(i)})):this.opt.done(i)}unmark(t){this.opt=t;let r=this.opt.element?this.opt.element:"*";r+="[data-markjs]",this.opt.className&&(r+=`.${this.opt.className}`),this.log(`Removal selector "${r}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,i=>{this.unwrapMatches(i)},i=>{let n=Sr.matches(i,r),a=this.matchesExclude(i);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function qa(e){let t=new Do(e);return this.mark=(r,i)=>(t.mark(r,i),this),this.markRegExp=(r,i)=>(t.markRegExp(r,i),this),this.markRanges=(r,i)=>(t.markRanges(r,i),this),this.unmark=r=>(t.unmark(r),this),this}var yf=qa,wc=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),gf=$`
1
+ "use strict";(()=>{var _p=Object.create;var xn=Object.defineProperty;var Rp=Object.getOwnPropertyDescriptor;var Tp=Object.getOwnPropertyNames;var Ip=Object.getPrototypeOf,Np=Object.prototype.hasOwnProperty;var Pp=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ot=(e,t)=>{for(var r in t)xn(e,r,{get:t[r],enumerable:!0})},Lp=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Tp(t))!Np.call(e,n)&&n!==r&&xn(e,n,{get:()=>t[n],enumerable:!(i=Rp(t,n))||i.enumerable});return e};var kp=(e,t,r)=>(r=e!=null?_p(Ip(e)):{},Lp(t||!e||!e.__esModule?xn(r,"default",{value:e,enumerable:!0}):r,e));var sd=Pp((Ke,ad)=>{var Mi=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Ui=function(){function e(){this.fetch=!1,this.DOMException=Mi.DOMException}return e.prototype=Mi,new e}();(function(e){var t=function(r){var i=typeof e<"u"&&e||typeof self<"u"&&self||typeof global<"u"&&global||{},n={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};function a(y){return y&&DataView.prototype.isPrototypeOf(y)}if(n.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(y){return y&&s.indexOf(Object.prototype.toString.call(y))>-1};function d(y){if(typeof y!="string"&&(y=String(y)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(y)||y==="")throw new TypeError('Invalid character in header field name: "'+y+'"');return y.toLowerCase()}function p(y){return typeof y!="string"&&(y=String(y)),y}function h(y){var C={next:function(){var D=y.shift();return{done:D===void 0,value:D}}};return n.iterable&&(C[Symbol.iterator]=function(){return C}),C}function f(y){this.map={},y instanceof f?y.forEach(function(C,D){this.append(D,C)},this):Array.isArray(y)?y.forEach(function(C){if(C.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+C.length);this.append(C[0],C[1])},this):y&&Object.getOwnPropertyNames(y).forEach(function(C){this.append(C,y[C])},this)}f.prototype.append=function(y,C){y=d(y),C=p(C);var D=this.map[y];this.map[y]=D?D+", "+C:C},f.prototype.delete=function(y){delete this.map[d(y)]},f.prototype.get=function(y){return y=d(y),this.has(y)?this.map[y]:null},f.prototype.has=function(y){return this.map.hasOwnProperty(d(y))},f.prototype.set=function(y,C){this.map[d(y)]=p(C)},f.prototype.forEach=function(y,C){for(var D in this.map)this.map.hasOwnProperty(D)&&y.call(C,this.map[D],D,this)},f.prototype.keys=function(){var y=[];return this.forEach(function(C,D){y.push(D)}),h(y)},f.prototype.values=function(){var y=[];return this.forEach(function(C){y.push(C)}),h(y)},f.prototype.entries=function(){var y=[];return this.forEach(function(C,D){y.push([D,C])}),h(y)},n.iterable&&(f.prototype[Symbol.iterator]=f.prototype.entries);function m(y){if(!y._noBody){if(y.bodyUsed)return Promise.reject(new TypeError("Already read"));y.bodyUsed=!0}}function v(y){return new Promise(function(C,D){y.onload=function(){C(y.result)},y.onerror=function(){D(y.error)}})}function x(y){var C=new FileReader,D=v(C);return C.readAsArrayBuffer(y),D}function E(y){var C=new FileReader,D=v(C),Y=/charset=([A-Za-z0-9_-]+)/.exec(y.type),Q=Y?Y[1]:"utf-8";return C.readAsText(y,Q),D}function R(y){for(var C=new Uint8Array(y),D=new Array(C.length),Y=0;Y<C.length;Y++)D[Y]=String.fromCharCode(C[Y]);return D.join("")}function I(y){if(y.slice)return y.slice(0);var C=new Uint8Array(y.byteLength);return C.set(new Uint8Array(y)),C.buffer}function L(){return this.bodyUsed=!1,this._initBody=function(y){this.bodyUsed=this.bodyUsed,this._bodyInit=y,y?typeof y=="string"?this._bodyText=y:n.blob&&Blob.prototype.isPrototypeOf(y)?this._bodyBlob=y:n.formData&&FormData.prototype.isPrototypeOf(y)?this._bodyFormData=y:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)?this._bodyText=y.toString():n.arrayBuffer&&n.blob&&a(y)?(this._bodyArrayBuffer=I(y.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(y)||l(y))?this._bodyArrayBuffer=I(y):this._bodyText=y=Object.prototype.toString.call(y):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof y=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var y=m(this);if(y)return y;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(){if(this._bodyArrayBuffer){var y=m(this);return y||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(n.blob)return this.blob().then(x);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var y=m(this);if(y)return y;if(this._bodyBlob)return E(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(R(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},n.formData&&(this.formData=function(){return this.text().then(k)}),this.json=function(){return this.text().then(JSON.parse)},this}var w=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function O(y){var C=y.toUpperCase();return w.indexOf(C)>-1?C:y}function A(y,C){if(!(this instanceof A))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');C=C||{};var D=C.body;if(y instanceof A){if(y.bodyUsed)throw new TypeError("Already read");this.url=y.url,this.credentials=y.credentials,C.headers||(this.headers=new f(y.headers)),this.method=y.method,this.mode=y.mode,this.signal=y.signal,!D&&y._bodyInit!=null&&(D=y._bodyInit,y.bodyUsed=!0)}else this.url=String(y);if(this.credentials=C.credentials||this.credentials||"same-origin",(C.headers||!this.headers)&&(this.headers=new f(C.headers)),this.method=O(C.method||this.method||"GET"),this.mode=C.mode||this.mode||null,this.signal=C.signal||this.signal||function(){if("AbortController"in i){var V=new AbortController;return V.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&D)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(D),(this.method==="GET"||this.method==="HEAD")&&(C.cache==="no-store"||C.cache==="no-cache")){var Y=/([?&])_=[^&]*/;if(Y.test(this.url))this.url=this.url.replace(Y,"$1_="+new Date().getTime());else{var Q=/\?/;this.url+=(Q.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}A.prototype.clone=function(){return new A(this,{body:this._bodyInit})};function k(y){var C=new FormData;return y.trim().split("&").forEach(function(D){if(D){var Y=D.split("="),Q=Y.shift().replace(/\+/g," "),V=Y.join("=").replace(/\+/g," ");C.append(decodeURIComponent(Q),decodeURIComponent(V))}}),C}function F(y){var C=new f,D=y.replace(/\r?\n[\t ]+/g," ");return D.split("\r").map(function(Y){return Y.indexOf(`
2
+ `)===0?Y.substr(1,Y.length):Y}).forEach(function(Y){var Q=Y.split(":"),V=Q.shift().trim();if(V){var pe=Q.join(":").trim();try{C.append(V,pe)}catch(so){console.warn("Response "+so.message)}}}),C}L.call(A.prototype);function q(y,C){if(!(this instanceof q))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(C||(C={}),this.type="default",this.status=C.status===void 0?200:C.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=C.statusText===void 0?"":""+C.statusText,this.headers=new f(C.headers),this.url=C.url||"",this._initBody(y)}L.call(q.prototype),q.prototype.clone=function(){return new q(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},q.error=function(){var y=new q(null,{status:200,statusText:""});return y.ok=!1,y.status=0,y.type="error",y};var Z=[301,302,303,307,308];q.redirect=function(y,C){if(Z.indexOf(C)===-1)throw new RangeError("Invalid status code");return new q(null,{status:C,headers:{location:y}})},r.DOMException=i.DOMException;try{new r.DOMException}catch{r.DOMException=function(C,D){this.message=C,this.name=D;var Y=Error(C);this.stack=Y.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function U(y,C){return new Promise(function(D,Y){var Q=new A(y,C);if(Q.signal&&Q.signal.aborted)return Y(new r.DOMException("Aborted","AbortError"));var V=new XMLHttpRequest;function pe(){V.abort()}V.onload=function(){var Tt={statusText:V.statusText,headers:F(V.getAllResponseHeaders()||"")};Q.url.indexOf("file://")===0&&(V.status<200||V.status>599)?Tt.status=200:Tt.status=V.status,Tt.url="responseURL"in V?V.responseURL:Tt.headers.get("X-Request-URL");var er="response"in V?V.response:V.responseText;setTimeout(function(){D(new q(er,Tt))},0)},V.onerror=function(){setTimeout(function(){Y(new TypeError("Network request failed"))},0)},V.ontimeout=function(){setTimeout(function(){Y(new TypeError("Network request timed out"))},0)},V.onabort=function(){setTimeout(function(){Y(new r.DOMException("Aborted","AbortError"))},0)};function so(Tt){try{return Tt===""&&i.location.href?i.location.href:Tt}catch{return Tt}}if(V.open(Q.method,so(Q.url),!0),Q.credentials==="include"?V.withCredentials=!0:Q.credentials==="omit"&&(V.withCredentials=!1),"responseType"in V&&(n.blob?V.responseType="blob":n.arrayBuffer&&(V.responseType="arraybuffer")),C&&typeof C.headers=="object"&&!(C.headers instanceof f||i.Headers&&C.headers instanceof i.Headers)){var al=[];Object.getOwnPropertyNames(C.headers).forEach(function(Tt){al.push(d(Tt)),V.setRequestHeader(Tt,p(C.headers[Tt]))}),Q.headers.forEach(function(Tt,er){al.indexOf(er)===-1&&V.setRequestHeader(er,Tt)})}else Q.headers.forEach(function(Tt,er){V.setRequestHeader(er,Tt)});Q.signal&&(Q.signal.addEventListener("abort",pe),V.onreadystatechange=function(){V.readyState===4&&Q.signal.removeEventListener("abort",pe)}),V.send(typeof Q._bodyInit>"u"?null:Q._bodyInit)})}return U.polyfill=!0,i.fetch||(i.fetch=U,i.Headers=f,i.Request=A,i.Response=q),r.Headers=f,r.Request=A,r.Response=q,r.fetch=U,r}({})})(Ui);Ui.fetch.ponyfill=!0;delete Ui.fetch.polyfill;var qr=Mi.fetch?Mi:Ui;Ke=qr.fetch;Ke.default=qr.fetch;Ke.fetch=qr.fetch;Ke.Headers=qr.Headers;Ke.Request=qr.Request;Ke.Response=qr.Response;ad.exports=Ke});if(!ShadowRoot.prototype.createElement){let e=window.HTMLElement,t=window.customElements.define,r=window.customElements.get,i=window.customElements,n=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(w,O){if(w=w.toLowerCase(),this._getDefinition(w)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${w}" has already been used with this registry`);if(this._definitionsByClass.get(O)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let A=O.prototype.attributeChangedCallback,k=new Set(O.observedAttributes||[]);m(O,k,A);let F={elementClass:O,connectedCallback:O.prototype.connectedCallback,disconnectedCallback:O.prototype.disconnectedCallback,adoptedCallback:O.prototype.adoptedCallback,attributeChangedCallback:A,formAssociated:O.formAssociated,formAssociatedCallback:O.prototype.formAssociatedCallback,formDisabledCallback:O.prototype.formDisabledCallback,formResetCallback:O.prototype.formResetCallback,formStateRestoreCallback:O.prototype.formStateRestoreCallback,observedAttributes:k};this._definitionsByTag.set(w,F),this._definitionsByClass.set(O,F);let q=r.call(i,w);q||(q=f(w),t.call(i,w,q)),this===window.customElements&&(s.set(O,F),F.standInClass=q);let Z=this._awaitingUpgrade.get(w);if(Z){this._awaitingUpgrade.delete(w);for(let y of Z)a.delete(y),x(y,F,!0)}let U=this._whenDefinedPromises.get(w);return U!==void 0&&(U.resolve(O),this._whenDefinedPromises.delete(w)),O}upgrade(){R.push(this),i.upgrade.apply(i,arguments),R.pop()}get(w){return this._definitionsByTag.get(w)?.elementClass}_getDefinition(w){return this._definitionsByTag.get(w)}whenDefined(w){let O=this._getDefinition(w);if(O!==void 0)return Promise.resolve(O.elementClass);let A=this._whenDefinedPromises.get(w);return A===void 0&&(A={},A.promise=new Promise(k=>A.resolve=k),this._whenDefinedPromises.set(w,A)),A.promise}_upgradeWhenDefined(w,O,A){let k=this._awaitingUpgrade.get(O);k||this._awaitingUpgrade.set(O,k=new Set),A?k.add(w):k.delete(w)}};let d;window.HTMLElement=function(){let O=d;if(O)return d=void 0,O;let A=s.get(this.constructor);if(!A)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return O=Reflect.construct(e,[],A.standInClass),Object.setPrototypeOf(O,this.constructor.prototype),n.set(O,A),O},window.HTMLElement.prototype=e.prototype;let p=w=>w===document||w instanceof ShadowRoot,h=w=>{let O=w.getRootNode();if(!p(O)){let A=R[R.length-1];if(A instanceof CustomElementRegistry)return A;O=A.getRootNode(),p(O)||(O=l.get(O)?.getRootNode()||document)}return O.customElements},f=w=>class{static get formAssociated(){return!0}constructor(){let A=Reflect.construct(e,[],this.constructor);Object.setPrototypeOf(A,HTMLElement.prototype);let k=h(A)||window.customElements,F=k._getDefinition(w);return F?x(A,F):a.set(A,k),A}connectedCallback(){let A=n.get(this);A?A.connectedCallback&&A.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,w,!0)}disconnectedCallback(){let A=n.get(this);A?A.disconnectedCallback&&A.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,w,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let A=n.get(this);A&&A.formAssociated&&A?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let A=n.get(this);A?.formAssociated&&A?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let A=n.get(this);A?.formAssociated&&A?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let A=n.get(this);A?.formAssociated&&A?.formStateRestoreCallback?.apply(this,arguments)}},m=(w,O,A)=>{if(O.size===0||A===void 0)return;let k=w.prototype.setAttribute;k&&(w.prototype.setAttribute=function(Z,U){let y=Z.toLowerCase();if(O.has(y)){let C=this.getAttribute(y);k.call(this,y,U),A.call(this,y,C,U)}else k.call(this,y,U)});let F=w.prototype.removeAttribute;F&&(w.prototype.removeAttribute=function(Z){let U=Z.toLowerCase();if(O.has(U)){let y=this.getAttribute(U);F.call(this,U),A.call(this,U,y,null)}else F.call(this,U)});let q=w.prototype.toggleAttribute;q&&(w.prototype.toggleAttribute=function(Z,U){let y=Z.toLowerCase();if(O.has(y)){let C=this.getAttribute(y);q.call(this,y,U);let D=this.getAttribute(y);A.call(this,y,C,D)}else q.call(this,y,U)})},v=w=>{let O=Object.getPrototypeOf(w);if(O!==window.HTMLElement)return O===e?Object.setPrototypeOf(w,window.HTMLElement):v(O)},x=(w,O,A=!1)=>{Object.setPrototypeOf(w,O.elementClass.prototype),n.set(w,O),d=w;try{new O.elementClass}catch{v(O.elementClass),new O.elementClass}O.attributeChangedCallback&&O.observedAttributes.forEach(k=>{w.hasAttribute(k)&&O.attributeChangedCallback.call(w,k,null,w.getAttribute(k))}),A&&O.connectedCallback&&w.isConnected&&O.connectedCallback.call(w)},E=Element.prototype.attachShadow;Element.prototype.attachShadow=function(w){let O=E.apply(this,arguments);return w.customElements&&(O.customElements=w.customElements),O};let R=[document],I=(w,O,A=void 0)=>{let k=(A?Object.getPrototypeOf(A):w.prototype)[O];w.prototype[O]=function(){R.push(this);let F=k.apply(A||this,arguments);return F!==void 0&&l.set(F,this),R.pop(),F}};I(ShadowRoot,"createElement",document),I(ShadowRoot,"importNode",document),I(Element,"insertAdjacentHTML");let L=(w,O)=>{let A=Object.getOwnPropertyDescriptor(w.prototype,O);Object.defineProperty(w.prototype,O,{...A,set(k){R.push(this),A.set.call(this,k),R.pop()}})};if(L(Element,"innerHTML"),L(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let w=new WeakMap,O=HTMLElement.prototype.attachInternals,A=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...Z){let U=O.call(this,...Z);return w.set(U,this),U},A.forEach(Z=>{let U=window.ElementInternals.prototype,y=U[Z];U[Z]=function(...C){let D=w.get(this);if(n.get(D).formAssociated===!0)return y?.call(this,...C);throw new DOMException(`Failed to execute ${y} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class k extends Array{constructor(U){super(...U),this._elements=U}get value(){return this._elements.find(U=>U.checked===!0)?.value||""}}class F{constructor(U){let y=new Map;U.forEach((C,D)=>{let Y=C.getAttribute("name"),Q=y.get(Y)||[];this[+D]=C,Q.push(C),y.set(Y,Q)}),this.length=U.length,y.forEach((C,D)=>{C&&(C.length===1?this[D]=C[0]:this[D]=new k(C))})}namedItem(U){return this[U]}}let q=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let Z=q.get.call(this,[]),U=[];for(let y of Z){let C=n.get(y);(!C||C.formAssociated===!0)&&U.push(y)}return new F(U)}})}}try{window.customElements.define("custom-element",null)}catch{let t=window.customElements.define;window.customElements.define=(r,i,n)=>{if(i!==null)try{t.bind(window.customElements)(r,i,n)}catch(a){console.info(r,i,n,a)}}}var Ln={};ot(Ln,{CSSResult:()=>$r,LitElement:()=>Ee,ReactiveElement:()=>ue,_$LE:()=>iu,_$LH:()=>eu,adoptStyles:()=>di,css:()=>$,defaultConverter:()=>pi,getCompatibleStyle:()=>yo,html:()=>P,isServer:()=>zh,noChange:()=>Me,notEqual:()=>_n,nothing:()=>W,render:()=>Pn,supportsAdoptingStyleSheets:()=>mo,svg:()=>tu,unsafeCSS:()=>Oe});var Yo=globalThis,Jo=Yo.ShadowRoot&&(Yo.ShadyCSS===void 0||Yo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ll=Symbol(),sl=new WeakMap,Xo=class{constructor(t,r,i){if(this._$cssResult$=!0,i!==ll)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(Jo&&t===void 0){let i=r!==void 0&&r.length===1;i&&(t=sl.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&sl.set(r,t))}return t}toString(){return this.cssText}},cl=e=>new Xo(typeof e=="string"?e:e+"",void 0,ll);var Sn=(e,t)=>{if(Jo)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let i=document.createElement("style"),n=Yo.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,e.appendChild(i)}},Qo=Jo?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let i of t.cssRules)r+=i.cssText;return cl(r)})(e):e;var{is:$p,defineProperty:Dp,getOwnPropertyDescriptor:Mp,getOwnPropertyNames:Up,getOwnPropertySymbols:Bp,getPrototypeOf:Fp}=Object,ti=globalThis,dl=ti.trustedTypes,Wp=dl?dl.emptyScript:"",Hp=ti.reactiveElementPolyfillSupport,lo=(e,t)=>e,co={toAttribute(e,t){switch(t){case Boolean:e=e?Wp:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},ei=(e,t)=>!$p(e,t),pl={attribute:!0,type:String,converter:co,reflect:!1,hasChanged:ei};Symbol.metadata??=Symbol("metadata"),ti.litPropertyMetadata??=new WeakMap;var rr=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=pl){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(t,r),!r.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(t,i,r);n!==void 0&&Dp(this.prototype,t,n)}}static getPropertyDescriptor(t,r,i){let{get:n,set:a}=Mp(this.prototype,t)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(t,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??pl}static _$Ei(){if(this.hasOwnProperty(lo("elementProperties")))return;let t=Fp(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(lo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(lo("properties"))){let r=this.properties,i=[...Up(r),...Bp(r)];for(let n of i)this.createProperty(n,r[n])}let t=this[Symbol.metadata];if(t!==null){let r=litPropertyMetadata.get(t);if(r!==void 0)for(let[i,n]of r)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[r,i]of this.elementProperties){let n=this._$Eu(r,i);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let i=new Set(t.flat(1/0).reverse());for(let n of i)r.unshift(Qo(n))}else t!==void 0&&r.push(Qo(t));return r}static _$Eu(t,r){let i=r.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$E_??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){let t=new Map,r=this.constructor.elementProperties;for(let i of r.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Sn(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,r,i){this._$AK(t,i)}_$EO(t,r){let i=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,i);if(n!==void 0&&i.reflect===!0){let a=(i.converter?.toAttribute!==void 0?i.converter:co).toAttribute(r,i.type);this._$Em=t,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(t,r){let i=this.constructor,n=i._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let a=i.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:co;this._$Em=n,this[n]=s.fromAttribute(r,a.type),this._$Em=null}}requestUpdate(t,r,i,n=!1,a){if(t!==void 0){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??ei)(n?a:this[t],r))return;this.C(t,r,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,r,i){this._$AL.has(t)||this._$AL.set(t,r),i.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let i=this.constructor.elementProperties;if(i.size>0)for(let[n,a]of i)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],a)}let t=!1,r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),this._$E_?.forEach(i=>i.hostUpdate?.()),this.update(r)):this._$ET()}catch(i){throw t=!1,this._$ET(),i}t&&this._$AE(r)}willUpdate(t){}_$AE(t){this._$E_?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(r=>this._$EO(r,this[r])),this._$ET()}updated(t){}firstUpdated(t){}};rr.elementStyles=[],rr.shadowRootOptions={mode:"open"},rr[lo("elementProperties")]=new Map,rr[lo("finalized")]=new Map,Hp?.({ReactiveElement:rr}),(ti.reactiveElementVersions??=[]).push("2.0.2");var Cn=globalThis,ri=Cn.trustedTypes,ul=ri?ri.createPolicy("lit-html",{createHTML:e=>e}):void 0,En="$lit$",Se=`lit$${(Math.random()+"").slice(9)}$`,wn="?"+Se,zp=`<${wn}>`,nr=document,oi=()=>nr.createComment(""),uo=e=>e===null||typeof e!="object"&&typeof e!="function",bl=Array.isArray,vl=e=>bl(e)||typeof e?.[Symbol.iterator]=="function",On=`[
3
+ \f\r]`,po=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,fl=/-->/g,hl=/>/g,or=RegExp(`>|${On}(?:([^\\s"'>=/]+)(${On}*=${On}*(?:[^
4
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ml=/'/g,yl=/"/g,xl=/^(?:script|style|textarea|title)$/i,Sl=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),Ol=Sl(1),Cl=Sl(2),Kt=Symbol.for("lit-noChange"),mt=Symbol.for("lit-nothing"),gl=new WeakMap,ir=nr.createTreeWalker(nr,129);function El(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return ul!==void 0?ul.createHTML(t):t}var wl=(e,t)=>{let r=e.length-1,i=[],n,a=t===2?"<svg>":"",s=po;for(let l=0;l<r;l++){let d=e[l],p,h,f=-1,m=0;for(;m<d.length&&(s.lastIndex=m,h=s.exec(d),h!==null);)m=s.lastIndex,s===po?h[1]==="!--"?s=fl:h[1]!==void 0?s=hl:h[2]!==void 0?(xl.test(h[2])&&(n=RegExp("</"+h[2],"g")),s=or):h[3]!==void 0&&(s=or):s===or?h[0]===">"?(s=n??po,f=-1):h[1]===void 0?f=-2:(f=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?or:h[3]==='"'?yl:ml):s===yl||s===ml?s=or:s===fl||s===hl?s=po:(s=or,n=void 0);let v=s===or&&e[l+1].startsWith("/>")?" ":"";a+=s===po?d+zp:f>=0?(i.push(p),d.slice(0,f)+En+d.slice(f)+Se+v):d+Se+(f===-2?l:v)}return[El(e,a+(e[r]||"<?>")+(t===2?"</svg>":"")),i]},fo=class e{constructor({strings:t,_$litType$:r},i){let n;this.parts=[];let a=0,s=0,l=t.length-1,d=this.parts,[p,h]=wl(t,r);if(this.el=e.createElement(p,i),ir.currentNode=this.el.content,r===2){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(n=ir.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let f of n.getAttributeNames())if(f.endsWith(En)){let m=h[s++],v=n.getAttribute(f).split(Se),x=/([.?@])?(.*)/.exec(m);d.push({type:1,index:a,name:x[2],strings:v,ctor:x[1]==="."?ni:x[1]==="?"?ai:x[1]==="@"?si:sr}),n.removeAttribute(f)}else f.startsWith(Se)&&(d.push({type:6,index:a}),n.removeAttribute(f));if(xl.test(n.tagName)){let f=n.textContent.split(Se),m=f.length-1;if(m>0){n.textContent=ri?ri.emptyScript:"";for(let v=0;v<m;v++)n.append(f[v],oi()),ir.nextNode(),d.push({type:2,index:++a});n.append(f[m],oi())}}}else if(n.nodeType===8)if(n.data===wn)d.push({type:2,index:a});else{let f=-1;for(;(f=n.data.indexOf(Se,f+1))!==-1;)d.push({type:7,index:a}),f+=Se.length-1}a++}}static createElement(t,r){let i=nr.createElement("template");return i.innerHTML=t,i}};function ar(e,t,r=e,i){if(t===Kt)return t;let n=i!==void 0?r._$Co?.[i]:r._$Cl,a=uo(t)?void 0:t._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(e),n._$AT(e,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(t=ar(e,n._$AS(e,t.values),n,i)),t}var ii=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:i}=this._$AD,n=(t?.creationScope??nr).importNode(r,!0);ir.currentNode=n;let a=ir.nextNode(),s=0,l=0,d=i[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new ho(a,a.nextSibling,this,t):d.type===1?p=new d.ctor(a,d.name,d.strings,this,t):d.type===6&&(p=new li(a,this,t)),this._$AV.push(p),d=i[++l]}s!==d?.index&&(a=ir.nextNode(),s++)}return ir.currentNode=nr,n}p(t){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,r),r+=i.strings.length-2):i._$AI(t[r])),r++}},ho=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,i,n){this.type=2,this._$AH=mt,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=ar(this,t,r),uo(t)?t===mt||t==null||t===""?(this._$AH!==mt&&this._$AR(),this._$AH=mt):t!==this._$AH&&t!==Kt&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):vl(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==mt&&uo(this._$AH)?this._$AA.nextSibling.data=t:this.$(nr.createTextNode(t)),this._$AH=t}g(t){let{values:r,_$litType$:i}=t,n=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=fo.createElement(El(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new ii(n,this),s=a.u(this.options);a.p(r),this.$(s),this._$AH=a}}_$AC(t){let r=gl.get(t.strings);return r===void 0&&gl.set(t.strings,r=new fo(t)),r}T(t){bl(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let a of t)n===r.length?r.push(i=new e(this.k(oi()),this.k(oi()),this,this.options)):i=r[n],i._$AI(a),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t&&t!==this._$AB;){let i=t.nextSibling;t.remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},sr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,i,n,a){this.type=1,this._$AH=mt,this._$AN=void 0,this.element=t,this.name=r,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=mt}_$AI(t,r=this,i,n){let a=this.strings,s=!1;if(a===void 0)t=ar(this,t,r,0),s=!uo(t)||t!==this._$AH&&t!==Kt,s&&(this._$AH=t);else{let l=t,d,p;for(t=a[0],d=0;d<a.length-1;d++)p=ar(this,l[i+d],r,d),p===Kt&&(p=this._$AH[d]),s||=!uo(p)||p!==this._$AH[d],p===mt?t=mt:t!==mt&&(t+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!n&&this.O(t)}O(t){t===mt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ni=class extends sr{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===mt?void 0:t}},ai=class extends sr{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==mt)}},si=class extends sr{constructor(t,r,i,n,a){super(t,r,i,n,a),this.type=5}_$AI(t,r=this){if((t=ar(this,t,r,0)??mt)===Kt)return;let i=this._$AH,n=t===mt&&i!==mt||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,a=t!==mt&&(i===mt||n);n&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},li=class{constructor(t,r,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ar(this,t)}},Al={j:En,P:Se,A:wn,C:1,M:wl,L:ii,R:vl,V:ar,D:ho,I:sr,H:ai,N:si,U:ni,B:li},Vp=Cn.litHtmlPolyfillSupport;Vp?.(fo,ho),(Cn.litHtmlVersions??=[]).push("3.1.0");var ci=globalThis,mo=ci.ShadowRoot&&(ci.ShadyCSS===void 0||ci.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,An=Symbol(),_l=new WeakMap,$r=class{constructor(t,r,i){if(this._$cssResult$=!0,i!==An)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(mo&&t===void 0){let i=r!==void 0&&r.length===1;i&&(t=_l.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&_l.set(r,t))}return t}toString(){return this.cssText}},Oe=e=>new $r(typeof e=="string"?e:e+"",void 0,An),$=(e,...t)=>{let r=e.length===1?e[0]:t.reduce((i,n,a)=>i+(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.")})(n)+e[a+1],e[0]);return new $r(r,e,An)},di=(e,t)=>{if(mo)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let i=document.createElement("style"),n=ci.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,e.appendChild(i)}},yo=mo?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let i of t.cssRules)r+=i.cssText;return Oe(r)})(e):e;var{is:jp,defineProperty:Gp,getOwnPropertyDescriptor:Kp,getOwnPropertyNames:Zp,getOwnPropertySymbols:qp,getPrototypeOf:Yp}=Object,ui=globalThis,Rl=ui.trustedTypes,Xp=Rl?Rl.emptyScript:"",Jp=ui.reactiveElementPolyfillSupport,go=(e,t)=>e,pi={toAttribute(e,t){switch(t){case Boolean:e=e?Xp:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},_n=(e,t)=>!jp(e,t),Tl={attribute:!0,type:String,converter:pi,reflect:!1,hasChanged:_n};Symbol.metadata??=Symbol("metadata"),ui.litPropertyMetadata??=new WeakMap;var ue=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=Tl){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(t,r),!r.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(t,i,r);n!==void 0&&Gp(this.prototype,t,n)}}static getPropertyDescriptor(t,r,i){let{get:n,set:a}=Kp(this.prototype,t)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(t,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Tl}static _$Ei(){if(this.hasOwnProperty(go("elementProperties")))return;let t=Yp(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(go("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(go("properties"))){let r=this.properties,i=[...Zp(r),...qp(r)];for(let n of i)this.createProperty(n,r[n])}let t=this[Symbol.metadata];if(t!==null){let r=litPropertyMetadata.get(t);if(r!==void 0)for(let[i,n]of r)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[r,i]of this.elementProperties){let n=this._$Eu(r,i);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let i=new Set(t.flat(1/0).reverse());for(let n of i)r.unshift(yo(n))}else t!==void 0&&r.push(yo(t));return r}static _$Eu(t,r){let i=r.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$E_??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){let t=new Map,r=this.constructor.elementProperties;for(let i of r.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return di(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,r,i){this._$AK(t,i)}_$EO(t,r){let i=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,i);if(n!==void 0&&i.reflect===!0){let a=(i.converter?.toAttribute!==void 0?i.converter:pi).toAttribute(r,i.type);this._$Em=t,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(t,r){let i=this.constructor,n=i._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let a=i.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:pi;this._$Em=n,this[n]=s.fromAttribute(r,a.type),this._$Em=null}}requestUpdate(t,r,i,n=!1,a){if(t!==void 0){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??_n)(n?a:this[t],r))return;this.C(t,r,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,r,i){this._$AL.has(t)||this._$AL.set(t,r),i.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let i=this.constructor.elementProperties;if(i.size>0)for(let[n,a]of i)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],a)}let t=!1,r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),this._$E_?.forEach(i=>i.hostUpdate?.()),this.update(r)):this._$ET()}catch(i){throw t=!1,this._$ET(),i}t&&this._$AE(r)}willUpdate(t){}_$AE(t){this._$E_?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(r=>this._$EO(r,this[r])),this._$ET()}updated(t){}firstUpdated(t){}};ue.elementStyles=[],ue.shadowRootOptions={mode:"open"},ue[go("elementProperties")]=new Map,ue[go("finalized")]=new Map,Jp?.({ReactiveElement:ue}),(ui.reactiveElementVersions??=[]).push("2.0.2");var Tn=globalThis,fi=Tn.trustedTypes,Il=fi?fi.createPolicy("lit-html",{createHTML:e=>e}):void 0,In="$lit$",Ce=`lit$${(Math.random()+"").slice(9)}$`,Nn="?"+Ce,Qp=`<${Nn}>`,dr=document,vo=()=>dr.createComment(""),xo=e=>e===null||typeof e!="object"&&typeof e!="function",Dl=Array.isArray,Ml=e=>Dl(e)||typeof e?.[Symbol.iterator]=="function",Rn=`[
5
+ \f\r]`,bo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Nl=/-->/g,Pl=/>/g,lr=RegExp(`>|${Rn}(?:([^\\s"'>=/]+)(${Rn}*=${Rn}*(?:[^
6
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ll=/'/g,kl=/"/g,Ul=/^(?:script|style|textarea|title)$/i,Bl=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),P=Bl(1),tu=Bl(2),Me=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),$l=new WeakMap,cr=dr.createTreeWalker(dr,129);function Fl(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Il!==void 0?Il.createHTML(t):t}var Wl=(e,t)=>{let r=e.length-1,i=[],n,a=t===2?"<svg>":"",s=bo;for(let l=0;l<r;l++){let d=e[l],p,h,f=-1,m=0;for(;m<d.length&&(s.lastIndex=m,h=s.exec(d),h!==null);)m=s.lastIndex,s===bo?h[1]==="!--"?s=Nl:h[1]!==void 0?s=Pl:h[2]!==void 0?(Ul.test(h[2])&&(n=RegExp("</"+h[2],"g")),s=lr):h[3]!==void 0&&(s=lr):s===lr?h[0]===">"?(s=n??bo,f=-1):h[1]===void 0?f=-2:(f=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?lr:h[3]==='"'?kl:Ll):s===kl||s===Ll?s=lr:s===Nl||s===Pl?s=bo:(s=lr,n=void 0);let v=s===lr&&e[l+1].startsWith("/>")?" ":"";a+=s===bo?d+Qp:f>=0?(i.push(p),d.slice(0,f)+In+d.slice(f)+Ce+v):d+Ce+(f===-2?l:v)}return[Fl(e,a+(e[r]||"<?>")+(t===2?"</svg>":"")),i]},So=class e{constructor({strings:t,_$litType$:r},i){let n;this.parts=[];let a=0,s=0,l=t.length-1,d=this.parts,[p,h]=Wl(t,r);if(this.el=e.createElement(p,i),cr.currentNode=this.el.content,r===2){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(n=cr.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let f of n.getAttributeNames())if(f.endsWith(In)){let m=h[s++],v=n.getAttribute(f).split(Ce),x=/([.?@])?(.*)/.exec(m);d.push({type:1,index:a,name:x[2],strings:v,ctor:x[1]==="."?mi:x[1]==="?"?yi:x[1]==="@"?gi:ur}),n.removeAttribute(f)}else f.startsWith(Ce)&&(d.push({type:6,index:a}),n.removeAttribute(f));if(Ul.test(n.tagName)){let f=n.textContent.split(Ce),m=f.length-1;if(m>0){n.textContent=fi?fi.emptyScript:"";for(let v=0;v<m;v++)n.append(f[v],vo()),cr.nextNode(),d.push({type:2,index:++a});n.append(f[m],vo())}}}else if(n.nodeType===8)if(n.data===Nn)d.push({type:2,index:a});else{let f=-1;for(;(f=n.data.indexOf(Ce,f+1))!==-1;)d.push({type:7,index:a}),f+=Ce.length-1}a++}}static createElement(t,r){let i=dr.createElement("template");return i.innerHTML=t,i}};function pr(e,t,r=e,i){if(t===Me)return t;let n=i!==void 0?r._$Co?.[i]:r._$Cl,a=xo(t)?void 0:t._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(e),n._$AT(e,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(t=pr(e,n._$AS(e,t.values),n,i)),t}var hi=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:i}=this._$AD,n=(t?.creationScope??dr).importNode(r,!0);cr.currentNode=n;let a=cr.nextNode(),s=0,l=0,d=i[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new Dr(a,a.nextSibling,this,t):d.type===1?p=new d.ctor(a,d.name,d.strings,this,t):d.type===6&&(p=new bi(a,this,t)),this._$AV.push(p),d=i[++l]}s!==d?.index&&(a=cr.nextNode(),s++)}return cr.currentNode=dr,n}p(t){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,r),r+=i.strings.length-2):i._$AI(t[r])),r++}},Dr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,i,n){this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=pr(this,t,r),xo(t)?t===W||t==null||t===""?(this._$AH!==W&&this._$AR(),this._$AH=W):t!==this._$AH&&t!==Me&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Ml(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==W&&xo(this._$AH)?this._$AA.nextSibling.data=t:this.$(dr.createTextNode(t)),this._$AH=t}g(t){let{values:r,_$litType$:i}=t,n=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=So.createElement(Fl(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new hi(n,this),s=a.u(this.options);a.p(r),this.$(s),this._$AH=a}}_$AC(t){let r=$l.get(t.strings);return r===void 0&&$l.set(t.strings,r=new So(t)),r}T(t){Dl(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let a of t)n===r.length?r.push(i=new e(this.k(vo()),this.k(vo()),this,this.options)):i=r[n],i._$AI(a),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t&&t!==this._$AB;){let i=t.nextSibling;t.remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},ur=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,i,n,a){this.type=1,this._$AH=W,this._$AN=void 0,this.element=t,this.name=r,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=W}_$AI(t,r=this,i,n){let a=this.strings,s=!1;if(a===void 0)t=pr(this,t,r,0),s=!xo(t)||t!==this._$AH&&t!==Me,s&&(this._$AH=t);else{let l=t,d,p;for(t=a[0],d=0;d<a.length-1;d++)p=pr(this,l[i+d],r,d),p===Me&&(p=this._$AH[d]),s||=!xo(p)||p!==this._$AH[d],p===W?t=W:t!==W&&(t+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!n&&this.O(t)}O(t){t===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},mi=class extends ur{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===W?void 0:t}},yi=class extends ur{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==W)}},gi=class extends ur{constructor(t,r,i,n,a){super(t,r,i,n,a),this.type=5}_$AI(t,r=this){if((t=pr(this,t,r,0)??W)===Me)return;let i=this._$AH,n=t===W&&i!==W||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,a=t!==W&&(i===W||n);n&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},bi=class{constructor(t,r,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){pr(this,t)}},eu={j:In,P:Ce,A:Nn,C:1,M:Wl,L:hi,R:Ml,V:pr,D:Dr,I:ur,H:yi,N:gi,U:mi,B:bi},ru=Tn.litHtmlPolyfillSupport;ru?.(So,Dr),(Tn.litHtmlVersions??=[]).push("3.1.0");var Pn=(e,t,r)=>{let i=r?.renderBefore??t,n=i._$litPart$;if(n===void 0){let a=r?.renderBefore??null;i._$litPart$=n=new Dr(t.insertBefore(vo(),a),a,void 0,r??{})}return n._$AI(e),n};var Ee=class extends ue{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Pn(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Me}};Ee._$litElement$=!0,Ee.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Ee});var ou=globalThis.litElementPolyfillSupport;ou?.({LitElement:Ee});var iu={_$AK:(e,t,r)=>{e._$AK(t,r)},_$AL:e=>e._$AL};(globalThis.litElementVersions??=[]).push("4.0.2");var zh=!1;var Dn={};ot(Dn,{customElement:()=>nu,eventOptions:()=>we,property:()=>g,query:()=>X,queryAll:()=>kn,queryAssignedElements:()=>$n,queryAssignedNodes:()=>Oo,queryAsync:()=>lu,standardProperty:()=>Hl,state:()=>H});var nu=e=>(t,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)};var au={attribute:!0,type:String,converter:co,reflect:!1,hasChanged:ei},Hl=(e=au,t,r)=>{let{kind:i,metadata:n}=r,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),a.set(r.name,e),i==="accessor"){let{name:s}=r;return{set(l){let d=t.get.call(this);t.set.call(this,l),this.requestUpdate(s,d,e)},init(l){return l!==void 0&&this.C(s,void 0,e),l}}}if(i==="setter"){let{name:s}=r;return function(l){let d=this[s];t.call(this,l),this.requestUpdate(s,d,e)}}throw Error("Unsupported decorator location: "+i)};function g(e){return(t,r)=>typeof r=="object"?Hl(e,t,r):((i,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,s?{...i,wrapped:!0}:i),s?Object.getOwnPropertyDescriptor(n,a):void 0})(e,t,r)}function H(e){return g({...e,state:!0,attribute:!1})}function we(e){return(t,r)=>{let i=typeof t=="function"?t:t[r];Object.assign(i,e)}}var ee=(e,t,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(e,t,r),r);function X(e,t){return(r,i,n)=>{let a=s=>s.renderRoot?.querySelector(e)??null;if(t){let{get:s,set:l}=typeof i=="object"?r:n??(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return ee(r,i,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return ee(r,i,{get(){return a(this)}})}}var su;function kn(e){return(t,r)=>ee(t,r,{get(){return(this.renderRoot??(su??=document.createDocumentFragment())).querySelectorAll(e)}})}function lu(e){return(t,r)=>ee(t,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(e)??null}})}function $n(e){return(t,r)=>{let{slot:i,selector:n}=e??{},a="slot"+(i?`[name=${i}]`:":not([name])");return ee(t,r,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(e)??[];return n===void 0?l:l.filter(d=>d.matches(n))}})}}function Oo(e){return(t,r)=>{let{slot:i}=e??{},n="slot"+(i?`[name=${i}]`:":not([name])");return ee(t,r,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(e)??[]}})}}var Mn={};ot(Mn,{repeat:()=>Co});var Ue={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Be=e=>(...t)=>({_$litDirective$:e,values:t}),fe=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,r,i){this._$Ct=t,this._$AM=r,this._$Ci=i}_$AS(t,r){return this.update(t,r)}update(t,r){return this.render(...r)}};var{D:cu}=Al;var zl=()=>document.createComment(""),Mr=(e,t,r)=>{let i=e._$AA.parentNode,n=t===void 0?e._$AB:t._$AA;if(r===void 0){let a=i.insertBefore(zl(),n),s=i.insertBefore(zl(),n);r=new cu(a,s,e,e.options)}else{let a=r._$AB.nextSibling,s=r._$AM,l=s!==e;if(l){let d;r._$AQ?.(e),r._$AM=e,r._$AP!==void 0&&(d=e._$AU)!==s._$AU&&r._$AP(d)}if(a!==n||l){let d=r._$AA;for(;d!==a;){let p=d.nextSibling;i.insertBefore(d,n),d=p}}}return r},Fe=(e,t,r=e)=>(e._$AI(t,r),e),du={},Vl=(e,t=du)=>e._$AH=t,jl=e=>e._$AH,vi=e=>{e._$AP?.(!1,!0);let t=e._$AA,r=e._$AB.nextSibling;for(;t!==r;){let i=t.nextSibling;t.remove(),t=i}};var Gl=(e,t,r)=>{let i=new Map;for(let n=t;n<=r;n++)i.set(e[n],n);return i},Co=Be(class extends fe{constructor(e){if(super(e),e.type!==Ue.CHILD)throw Error("repeat() can only be used in text expressions")}ht(e,t,r){let i;r===void 0?r=t:t!==void 0&&(i=t);let n=[],a=[],s=0;for(let l of e)n[s]=i?i(l,s):s,a[s]=r(l,s),s++;return{values:a,keys:n}}render(e,t,r){return this.ht(e,t,r).values}update(e,[t,r,i]){let n=jl(e),{values:a,keys:s}=this.ht(t,r,i);if(!Array.isArray(n))return this.dt=s,a;let l=this.dt??=[],d=[],p,h,f=0,m=n.length-1,v=0,x=a.length-1;for(;f<=m&&v<=x;)if(n[f]===null)f++;else if(n[m]===null)m--;else if(l[f]===s[v])d[v]=Fe(n[f],a[v]),f++,v++;else if(l[m]===s[x])d[x]=Fe(n[m],a[x]),m--,x--;else if(l[f]===s[x])d[x]=Fe(n[f],a[x]),Mr(e,d[x+1],n[f]),f++,x--;else if(l[m]===s[v])d[v]=Fe(n[m],a[v]),Mr(e,n[f],n[m]),m--,v++;else if(p===void 0&&(p=Gl(s,v,x),h=Gl(l,f,m)),p.has(l[f]))if(p.has(l[m])){let E=h.get(s[v]),R=E!==void 0?n[E]:null;if(R===null){let I=Mr(e,n[f]);Fe(I,a[v]),d[v]=I}else d[v]=Fe(R,a[v]),Mr(e,n[f],R),n[E]=null;v++}else vi(n[m]),m--;else vi(n[f]),f++;for(;v<=x;){let E=Mr(e,d[x+1]);Fe(E,a[v]),d[v++]=E}for(;f<=m;){let E=n[f++];E!==null&&vi(E)}return this.dt=s,Vl(e,d),Kt}});var Un={};ot(Un,{classMap:()=>Rt});var Rt=Be(class extends fe{constructor(e){if(super(e),e.type!==Ue.ATTRIBUTE||e.name!=="class"||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){if(this.it===void 0){this.it=new Set,e.strings!==void 0&&(this.st=new Set(e.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(let i in t)t[i]&&!this.st?.has(i)&&this.it.add(i);return this.render(t)}let r=e.element.classList;for(let i of this.it)i in t||(r.remove(i),this.it.delete(i));for(let i in t){let n=!!t[i];n===this.it.has(i)||this.st?.has(i)||(n?(r.add(i),this.it.add(i)):(r.remove(i),this.it.delete(i)))}return Kt}});var Bn={};ot(Bn,{styleMap:()=>uu});var Kl="important",pu=" !"+Kl,uu=Be(class extends fe{constructor(e){if(super(e),e.type!==Ue.ATTRIBUTE||e.name!=="style"||e.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(e){return Object.keys(e).reduce((t,r)=>{let i=e[r];return i==null?t:t+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(e,[t]){let{style:r}=e.element;if(this.ut===void 0)return this.ut=new Set(Object.keys(t)),this.render(t);for(let i of this.ut)t[i]==null&&(this.ut.delete(i),i.includes("-")?r.removeProperty(i):r[i]=null);for(let i in t){let n=t[i];if(n!=null){this.ut.add(i);let a=typeof n=="string"&&n.endsWith(pu);i.includes("-")||a?r.setProperty(i,a?n.slice(0,-11):n,a?Kl:""):r[i]=n}}return Kt}});var Wn={};ot(Wn,{UnsafeHTMLDirective:()=>Ur,unsafeHTML:()=>Fn});var Ur=class extends fe{constructor(t){if(super(t),this.et=mt,t.type!==Ue.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===mt||t==null)return this.vt=void 0,this.et=t;if(t===Kt)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;let r=[t];return r.raw=r,this.vt={_$litType$:this.constructor.resultType,strings:r,values:[]}}};Ur.directiveName="unsafeHTML",Ur.resultType=1;var Fn=Be(Ur);var Kn={};ot(Kn,{CacheRegistry:()=>he,ClearCacheEvent:()=>Eo});var zn={};ot(zn,{CancelablePromise:()=>Br,CanceledPromiseError:()=>fr,cancelable:()=>Hn});var fr=class extends Error{constructor(t,r,i){super(t),this.canceledPromiseResult=r,this.canceledPromiseError=i}},Br=class extends Promise{constructor(t){super((r,i)=>t(n=>{this.isCanceled?i(new fr("Promise has been canceled",n)):r(n)},n=>{this.isCanceled?i(new fr("Promise has been canceled",void 0,n)):i(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Hn=e=>new Br((t,r)=>e.then(t).catch(r));var Gn={};ot(Gn,{FtNotificationEvent:()=>Ut,PostResizeEvent:()=>jn,PreResizeEvent:()=>Vn,WithEventBus:()=>hr,withEventBus:()=>Zl});var Ut=class extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}},Vn=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},jn=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};function Zl(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}var hr=class extends Zl(Object){};var Eo=class extends CustomEvent{constructor(t){super("clear-cache",{detail:{clearedKeys:t}})}},he=class extends hr{constructor(){super(...arguments),this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,r){this.loaders[t]=r,this.finalContent.delete(t)}registerFinal(t,r){this.loaders[t]=r,this.finalContent.add(t)}clearAll(t=!0){let r=[];for(let i in this.content)this.clear(i,!1)!=null&&r.push(i);t&&r.length>0&&this.dispatchEvent(new Eo(r))}clear(t,r=!0){if(!this.finalContent.has(t))return this.forceClear(t),r&&this.dispatchEvent(new Eo([t])),t}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof Br&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){this.clearTimeouts[t]!=null&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,r){this.forceClear(t),this.register(t,async()=>r),this.content[t]=r}setFinal(t,r){this.forceClear(t),this.registerFinal(t,async()=>r),this.content[t]=r}async get(t,r,i){if(this.content[t]===void 0){if(r=r??this.loaders[t],r==null)throw new Error("Unknown cache key "+t);let n=Hn(r());return this.content[t]=n,n.then(a=>(this.content[t]=a,i!=null&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout(()=>this.clear(t),i)),a))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return t!=null&&!(t instanceof Promise)&&!(t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return this.content[t]!=null}resolvedKeys(){return Object.keys(this.content).filter(t=>this.isResolvedValue(this.content[t]))}resolvedValues(){return Object.values(this.content).filter(t=>this.isResolvedValue(t))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}};var Zn={};ot(Zn,{ClusteringHelper:()=>wo});var wo=class e{constructor(t,r,i,n){this.allResults=t,this.selectedResult=r,this.clusteringMetadata=i,this.metadataDescriptors=n}static extractResultMetadata(t){var r,i,n,a,s;let l=((a=(i=(r=t.result)===null||r===void 0?void 0:r.map)!==null&&i!==void 0?i:(n=t.result)===null||n===void 0?void 0:n.document)!==null&&a!==void 0?a:(s=t.result)===null||s===void 0?void 0:s.topic).metadata;return t.key==null?e.flattenMetadata(l,t.hierarchicalValueTruncatingLevel,t.dateFormatter):e.flattenMetadata(l.find(d=>d.key===t.key),t.hierarchicalValueTruncatingLevel,t.dateFormatter)}static flattenMetadata(t,r,i){if(Array.isArray(t))return t.map(a=>e.flattenMetadata(a,r,i)).filter(a=>a!=null);let n=t?.hierarchicalValues!=null&&t.hierarchicalValues.length>0;if(!(t==null||t.values.length==0&&!n))if(n){let a=[],s=[];return t.hierarchicalValues.forEach(l=>{a.push(l.join(" > ")),r&&r>1&&l.length>=r?s.push(`... > ${l[l.length-1]}`):s.push(l.join(" > "))}),{key:t.key,label:t.label,value:a.join(", "),displayValue:s.join(", "),displayTooltipValue:a.join(", ")}}else{let a=t.values.join(", "),s=t.values.map(l=>i?i(l):l).join(", ");return{key:t.key,label:t.label,value:a,displayValue:s,displayTooltipValue:s}}}computeClustersItemsForMetadata(t,r,i="No value",n,a){var s,l;let d=e.extractResultMetadata({result:this.selectedResult,key:t,dateFormatter:a}),p=(s=d?.label)!==null&&s!==void 0?s:(l=this.getMetadataDescriptor(t))===null||l===void 0?void 0:l.label;return this.allResults.map(f=>e.extractResultMetadata({result:f,key:t,hierarchicalValueTruncatingLevel:n,dateFormatter:a})).map(f=>f??{key:t,label:p,value:void 0,displayValue:i}).filter(f=>f.value!=d?.value).filter((f,m,v)=>v.findIndex(x=>x.value===f.value)===m).map(f=>({result:this.findBestResultForMetadataValue(t,f.value),metadata:f})).sort((f,m)=>this.compareMetadata(f.metadata.value,m.metadata.value,t,r))}compareMetadata(t,r,i,n){if(t==null)return-1;if(r==null)return 1;let a=this.getMetadataDescriptor(i),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let d=t.localeCompare(r,n,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(t){return this.metadataDescriptors.find(r=>t==r.key)}findBestResultForMetadataValue(t,r){let i=this.allResults.filter(d=>{var p;return((p=e.extractResultMetadata({result:d,key:t}))===null||p===void 0?void 0:p.value)==r}),a=[...e.extractResultMetadata({result:this.selectedResult}).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==t)],s,l=-1;for(let d of i){let p=this.countMatchingMetadata(d,a);if(p>l&&(l=p,s=d,p===a.length))break}return s}countMatchingMetadata(t,r){return e.extractResultMetadata({result:t}).filter(i=>r.some(n=>n.key===i.key&&n.value===i.value)).length}};var qn={};ot(qn,{Debouncer:()=>lt});var lt=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let i=[...this.callbacks];this.callbacks=[];let n=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,a=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let s of i)try{await s()}catch(l){n(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 Qn={};ot(Qn,{customElement:()=>J,isNumber:()=>Yl,jsonProperty:()=>me,optionalNumberProperty:()=>gu});var Jn={};ot(Jn,{dateReviver:()=>fu,deepEqual:()=>re,delay:()=>xi,eventPathContainsMatchingElement:()=>mu,flatDeep:()=>ql,getComposedPathTo:()=>Xn,hasChanged:()=>mr,last:()=>yu,minmax:()=>_o,parseDate:()=>Si,unslotText:()=>Oi,waitFor:()=>Ao,waitUntil:()=>Yn});var xi=e=>new Promise(t=>setTimeout(t,e));async function Yn(e,t=10,r=2e4){await Ao(async()=>await e()||void 0,t,r)}async function Ao(e,t=10,r=2e4){let i=await e(),n,a;for(n=a=performance.now();i==null&&(!r||a-n<r);)await xi(t),i=await e(),a=performance.now();if(i==null)throw new Error("Timeout exceeded");return i}function ql(e,t){return e.flatMap(r=>[r,...ql(t(r),t)])}function fu(...e){return function(t,r){return e.includes(t)?Si(r):r}}function Si(e){return e.match(/^\d{4}-\d{2}-\d{2}$/)&&(e=e.replace(/-/g,"/")),e=e.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(t,r,i,n)=>r+i+":"+n),new Date(e)}function hu(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,i,n;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(i=r;i--!==0;)if(!re(e[i],t[i]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i of e.entries())if(!t.has(i[0]))return!1;for(i of e.entries())if(!re(i[1],t.get(i[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i of e.entries())if(!t.has(i[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let a=s=>Object.keys(s).filter(l=>s[l]!=null);if(n=a(e),r=n.length,r!==a(t).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(i=r;i--!==0;){let s=n[i];if(!re(e[s],t[s]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function re(e,t){try{return hu(e,t)}catch{return!1}}function mr(e,t){return!re(e,t)}function mu(e,t,r=window.document.body){if(t.length>0){let i=e.composedPath();for(let n of i){if(n===r)return!1;if(n.matches&&t.some(a=>n.matches(a)))return!0}}return!1}function _o(e,t,r){return Math.min(Math.max(e,t),r)}function yu(e){return e[e.length-1]}function Oi(e){return e instanceof HTMLSlotElement?e.assignedNodes().map(t=>Oi(t)).join(""):e?.textContent||""}function Xn(e){let t=[],r=i=>{i.stopPropagation(),t=i.composedPath()};return e.addEventListener("get-composed-path",r),e.dispatchEvent(new Event("get-composed-path",{composed:!0})),e.removeEventListener("get-composed-path",r),t}var J=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)};function me(e,t){let r=()=>JSON.parse(JSON.stringify(e));return g({type:Object,converter:{fromAttribute:i=>{if(i==null)return r();try{return JSON.parse(i)}catch{return r()}},toAttribute:i=>JSON.stringify(i)},hasChanged:mr,...t??{}})}function gu(e){return g({type:Object,converter:{fromAttribute:t=>{if(t!=null)return Yl(t)?+t:void 0},toAttribute:t=>t==null?void 0:""+t},...e??{}})}function Yl(e){return!isNaN(parseFloat(e))}var Ra={};ot(Ra,{designSystemVariables:()=>T});var _a={};ot(_a,{DesignSystemFamily:()=>yr,DesignSystemSize:()=>_e,FtCssVariableFactory:()=>o,badge:()=>Cu,banner:()=>Ou,button:()=>b,chart:()=>Bu,checkbox:()=>Hu,chip:()=>xu,chipChoice:()=>vu,collapsible:()=>Mu,comboboxMultiSelect:()=>$u,comboboxSingleSelect:()=>ku,drawer:()=>Tu,floatingMenu:()=>Lu,foundation:()=>c,link:()=>Su,modal:()=>Ru,notice:()=>Wu,notification:()=>ju,pageDesigner:()=>Fu,pageFooter:()=>Au,pageHeader:()=>wu,pageLayout:()=>_u,popover:()=>Du,radio:()=>Vu,reorderableList:()=>Ku,resolveFamilyClass:()=>wa,resolveSizeClass:()=>Aa,semantic:()=>u,setVariable:()=>S,switch_:()=>Uu,tabs:()=>Iu,textArea:()=>Pu,textInput:()=>Nu,titleBreadcrumb:()=>Eu,toggle:()=>zu,tooltip:()=>Gu,typographies:()=>Ro,typographyBody1Medium:()=>na,typographyBody1Regular:()=>ia,typographyBody1Semibold:()=>aa,typographyBody2Medium:()=>la,typographyBody2MediumUnderline:()=>Xl,typographyBody2Regular:()=>sa,typographyBody2Semibold:()=>ca,typographyCaption1Bold:()=>ba,typographyCaption1Medium:()=>ya,typographyCaption1Semibold:()=>ga,typographyCaption2Bold:()=>Sa,typographyCaption2Medium:()=>va,typographyCaption2Semibold:()=>xa,typographyCaption3Bold:()=>Ea,typographyCaption3Medium:()=>Oa,typographyCaption3Semibold:()=>Ca,typographyDisplay:()=>ta,typographyLabel1Bold:()=>ua,typographyLabel1Medium:()=>da,typographyLabel1Semibold:()=>pa,typographyLabel2Bold:()=>ma,typographyLabel2Medium:()=>fa,typographyLabel2Semibold:()=>ha,typographyTitle1:()=>ea,typographyTitle2:()=>ra,typographyTitle3:()=>oa,typographyVariants:()=>bu});var Ae=e=>typeof e=="string"?Oe(e):e,o=class{static create(t,r,i,n){let a=l=>Ae(l??n),s=$`var(${Ae(t)}, ${a(n)})`;return s.name=t,s.description=r,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>$`var(${Ae(t)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(t,r,i,n){let a=l=>i.get(l??n),s=$`var(${Ae(t)}, ${a(n)})`;return s.name=t,s.description=r,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>$`var(${Ae(t)}, ${a(l)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(t,r){let i=a=>t.fallbackVariable?t.fallbackVariable.get(a??t.defaultValue):Ae(a??t.lastResortDefaultValue()),n=$`var(${Ae(t.name)}, ${i(t.defaultValue)})`;return n.name=t.name,n.category=t.category,n.fallbackVariable=t.fallbackVariable,n.defaultValue=t.defaultValue,n.context=r,n.defaultCssValue=i,n.get=a=>$`var(${Ae(t.name)}, ${i(a)})`,n.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>t.lastResortDefaultValue(),n}};function S(e,t){return Ae(`${e.name}: ${t}`)}var c={colorWhite:o.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ft-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:o.create("--ft-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:o.create("--ft-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:o.create("--ft-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:o.create("--ft-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:o.create("--ft-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:o.create("--ft-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:o.create("--ft-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:o.create("--ft-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:o.create("--ft-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:o.create("--ft-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:o.create("--ft-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:o.create("--ft-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:o.create("--ft-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:o.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:o.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:o.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:o.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:o.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:o.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:o.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:o.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:o.create("--ft-opacity-0","","NUMBER","0"),opacity8:o.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:o.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ft-opacity-24","","NUMBER","0.24"),opacity32:o.create("--ft-opacity-32","","NUMBER","0.32"),opacity40:o.create("--ft-opacity-40","","NUMBER","0.4"),opacity48:o.create("--ft-opacity-48","","NUMBER","0.48"),opacity80:o.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:o.create("--ft-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:o.create("--ft-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:o.create("--ft-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:o.create("--ft-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:o.create("--ft-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:o.create("--ft-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:o.create("--ft-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:o.create("--ft-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:o.create("--ft-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},ta={fontFamily:o.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:o.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-display-textCase","","UNKNOWN","none")},ea={fontFamily:o.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:o.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},ra={fontFamily:o.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:o.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},oa={fontFamily:o.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:o.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:o.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},ia={fontFamily:o.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},na={fontFamily:o.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},aa={fontFamily:o.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},sa={fontFamily:o.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},la={fontFamily:o.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},Xl={fontFamily:o.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:o.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:o.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},ca={fontFamily:o.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},da={fontFamily:o.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},pa={fontFamily:o.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},ua={fontFamily:o.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},fa={fontFamily:o.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},ha={fontFamily:o.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},ma={fontFamily:o.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},ya={fontFamily:o.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},ga={fontFamily:o.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},ba={fontFamily:o.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},va={fontFamily:o.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},xa={fontFamily:o.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},Sa={fontFamily:o.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},Oa={fontFamily:o.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},Ca={fontFamily:o.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},Ea={fontFamily:o.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},Ro={display:ta,"title-1":ea,"title-2":ra,"title-3":oa,"body-1-regular":ia,"body-1-medium":na,"body-1-semibold":aa,"body-2-regular":sa,"body-2-medium":la,"body-2-medium-underline":Xl,"body-2-semibold":ca,"label-1-medium":da,"label-1-semibold":pa,"label-1-bold":ua,"label-2-medium":fa,"label-2-semibold":ha,"label-2-bold":ma,"caption-1-medium":ya,"caption-1-semibold":ga,"caption-1-bold":ba,"caption-2-medium":va,"caption-2-semibold":xa,"caption-2-bold":Sa,"caption-3-medium":Oa,"caption-3-semibold":Ca,"caption-3-bold":Ea},bu=["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 u={backgroundActionPrimary:o.extend("--ft-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:o.extend("--ft-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:o.extend("--ft-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:o.extend("--ft-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:o.extend("--ft-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:o.extend("--ft-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:o.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:o.extend("--ft-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:o.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:o.extend("--ft-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:o.extend("--ft-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:o.extend("--ft-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:o.extend("--ft-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:o.extend("--ft-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:o.extend("--ft-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:o.extend("--ft-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:o.extend("--ft-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:o.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
7
+ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:o.extend("--ft-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:o.extend("--ft-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:o.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:o.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:o.extend("--ft-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:o.extend("--ft-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:o.extend("--ft-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:o.extend("--ft-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:o.extend("--ft-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:o.extend("--ft-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:o.extend("--ft-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:o.extend("--ft-border-global-primary","Used as border for element like input.",c.colorGray50),borderGlobalSubtle:o.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",c.colorGray30),borderInputPrimary:o.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:o.extend("--ft-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)};var b={largeHeight:o.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ft-button-large-horizontal-padding","",c.spacing4),largeGap:o.extend("--ft-button-large-gap","",c.spacing2),largeBorderRadius:o.extend("--ft-button-large-border-radius","",c.borderRadiusS),largeIconSize:o.extend("--ft-button-large-icon-size","",c.iconSize3),largeBorderWidth:o.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:o.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:o.create("--ft-button-large-icon-only-width","","SIZE","40px"),mediumHeight:o.create("--ft-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:o.extend("--ft-button-medium-horizontal-padding","",c.spacing3),mediumGap:o.extend("--ft-button-medium-gap","",c.spacing2),mediumBorderRadius:o.extend("--ft-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:o.extend("--ft-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:o.create("--ft-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:o.create("--ft-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ft-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:o.create("--ft-button-medium-icon-only-width","","SIZE","30px"),smallHeight:o.create("--ft-button-small-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-button-small-horizontal-padding","",c.spacing2),smallGap:o.extend("--ft-button-small-gap","",c.spacing1),smallBorderRadius:o.extend("--ft-button-small-border-radius","",c.borderRadiusS),smallIconSize:o.extend("--ft-button-small-icon-size","",c.iconSize1),smallBorderWidth:o.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:o.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:o.create("--ft-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:o.create("--ft-button-x-small-height","","SIZE","16px"),xSmallIconSize:o.extend("--ft-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:o.create("--ft-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:o.create("--ft-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:o.create("--ft-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:o.extend("--ft-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:o.extend("--ft-button-primary-brand-background-color","",u.backgroundActionPrimary),primaryBrandColor:o.extend("--ft-button-primary-brand-color","",u.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ft-button-primary-brand-icon-color","",u.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ft-button-primary-brand-state-layer-color","",u.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:o.extend("--ft-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:o.extend("--ft-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:o.extend("--ft-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:o.extend("--ft-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-button-focus-focus-ring-color","",u.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ft-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ft-button-tertiary-brand-color","",u.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ft-button-tertiary-brand-icon-color","",u.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ft-button-tertiary-brand-state-layer-color","",u.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:o.extend("--ft-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:o.extend("--ft-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:o.extend("--ft-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:o.extend("--ft-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:o.create("--ft-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:o.extend("--ft-button-tertiary-info-color","",u.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ft-button-tertiary-info-icon-color","",u.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ft-button-tertiary-info-state-layer-color","",u.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:o.extend("--ft-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:o.extend("--ft-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:o.extend("--ft-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:o.extend("--ft-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:o.create("--ft-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:o.extend("--ft-button-tertiary-success-color","",u.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ft-button-tertiary-success-icon-color","",u.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ft-button-tertiary-success-state-layer-color","",u.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:o.extend("--ft-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:o.extend("--ft-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:o.extend("--ft-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:o.extend("--ft-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:o.create("--ft-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:o.extend("--ft-button-tertiary-warning-color","",u.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ft-button-tertiary-warning-icon-color","",u.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ft-button-tertiary-warning-state-layer-color","",u.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:o.extend("--ft-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:o.extend("--ft-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:o.extend("--ft-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:o.extend("--ft-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:o.create("--ft-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:o.extend("--ft-button-tertiary-error-color","",u.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ft-button-tertiary-error-icon-color","",u.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ft-button-tertiary-error-state-layer-color","",u.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:o.extend("--ft-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:o.extend("--ft-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:o.extend("--ft-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:o.extend("--ft-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:o.create("--ft-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:o.extend("--ft-button-tertiary-neutral-icon-color","",u.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ft-button-tertiary-neutral-color","",u.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ft-button-tertiary-neutral-state-layer-color","",u.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:o.extend("--ft-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:o.create("--ft-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:o.extend("--ft-button-secondary-brand-color","",u.contentActionPrimary),secondaryBrandIconColor:o.extend("--ft-button-secondary-brand-icon-color","",u.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ft-button-secondary-brand-state-layer-color","",u.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:o.extend("--ft-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:o.extend("--ft-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:o.extend("--ft-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:o.extend("--ft-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:o.extend("--ft-button-secondary-brand-border-color","",u.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:o.extend("--ft-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:o.extend("--ft-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:o.extend("--ft-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:o.extend("--ft-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:o.create("--ft-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:o.extend("--ft-button-secondary-neutral-color","",u.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ft-button-secondary-neutral-icon-color","",u.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ft-button-secondary-neutral-state-layer-color","",u.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ft-button-secondary-neutral-border-color","",u.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:o.extend("--ft-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:o.extend("--ft-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:o.extend("--ft-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:o.extend("--ft-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:o.create("--ft-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:o.extend("--ft-button-secondary-info-border-color","",u.borderInfoPrimary),secondaryInfoColor:o.extend("--ft-button-secondary-info-color","",u.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ft-button-secondary-info-icon-color","",u.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ft-button-secondary-info-state-layer-color","",u.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:o.extend("--ft-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:o.extend("--ft-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:o.extend("--ft-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:o.extend("--ft-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:o.create("--ft-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:o.extend("--ft-button-secondary-success-border-color","",u.borderSuccessPrimary),secondarySuccessColor:o.extend("--ft-button-secondary-success-color","",u.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ft-button-secondary-success-icon-color","",u.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ft-button-secondary-success-state-layer-color","",u.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:o.extend("--ft-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:o.extend("--ft-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:o.extend("--ft-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:o.extend("--ft-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:o.create("--ft-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:o.extend("--ft-button-secondary-warning-border-color","",u.borderWarningPrimary),secondaryWarningColor:o.extend("--ft-button-secondary-warning-color","",u.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ft-button-secondary-warning-icon-color","",u.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ft-button-secondary-warning-state-layer-color","",u.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:o.extend("--ft-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:o.extend("--ft-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:o.extend("--ft-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:o.extend("--ft-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:o.create("--ft-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:o.extend("--ft-button-secondary-error-border-color","",u.contentErrorPrimary),secondaryErrorColor:o.extend("--ft-button-secondary-error-color","",u.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ft-button-secondary-error-icon-color","",u.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ft-button-secondary-error-state-layer-color","",u.contentErrorPrimary)};var vu={neutralOffHoverStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:o.extend("--ft-chip-choice-neutral-off-focus-focus-ring-color","",u.borderActionFocusRing),neutralOffActiveStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:o.extend("--ft-chip-choice-neutral-off-background-color","",u.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ft-chip-choice-neutral-off-border-color","",u.borderGlobalPrimary),neutralOffColor:o.extend("--ft-chip-choice-neutral-off-color","",u.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ft-chip-choice-neutral-off-state-layer-color","",u.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:o.extend("--ft-chip-choice-neutral-on-focus-focus-ring-color","",u.borderActionFocusRing),neutralOnActiveStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:o.extend("--ft-chip-choice-neutral-on-background-color","",u.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ft-chip-choice-neutral-on-border-color","",u.borderGlobalPrimary),neutralOnColor:o.extend("--ft-chip-choice-neutral-on-color","",u.contentGlobalPrimary),neutralOnIconColor:o.extend("--ft-chip-choice-neutral-on-icon-color","",u.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ft-chip-choice-neutral-on-state-layer-color","",u.contentGlobalPrimary),largeMinHeight:o.create("--ft-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:o.extend("--ft-chip-choice-large-gap","",c.spacing1),largeBorderRadius:o.create("--ft-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ft-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ft-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ft-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:o.extend("--ft-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:o.create("--ft-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ft-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ft-chip-choice-medium-icon-size","",c.iconSize2)};var xu={largeMinHeight:o.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:o.extend("--ft-chip-large-button-right-padding","",c.spacing1),largeGap:o.extend("--ft-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:o.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:o.create("--ft-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ft-chip-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:o.extend("--ft-chip-medium-button-right-padding","",c.spacing05),mediumGap:o.extend("--ft-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:o.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:o.create("--ft-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ft-chip-medium-icon-size","",c.iconSize2),smallMinHeight:o.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:o.extend("--ft-chip-small-button-right-padding","",c.spacing05),smallGap:o.extend("--ft-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:o.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:o.create("--ft-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:o.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:o.extend("--ft-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:o.extend("--ft-chip-neutral-background-color","",u.backgroundGlobalOnSurface),neutralColor:o.extend("--ft-chip-neutral-color","",u.contentGlobalSecondary),neutralIconColor:o.extend("--ft-chip-neutral-icon-color","",u.contentGlobalSecondary),neutralBorderColor:o.extend("--ft-chip-neutral-border-color","",u.borderGlobalSubtle),infoBackgroundColor:o.extend("--ft-chip-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-chip-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-chip-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-chip-info-border-color","",u.borderInfoSubtle),successBackgroundColor:o.extend("--ft-chip-success-background-color","",u.backgroundSuccessSubtle),successColor:o.extend("--ft-chip-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-chip-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:o.extend("--ft-chip-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-chip-warning-background-color","",u.backgroundWarningSubtle),warningColor:o.extend("--ft-chip-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-chip-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:o.extend("--ft-chip-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-chip-error-background-color","",u.backgroundErrorSubtle),errorColor:o.extend("--ft-chip-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-chip-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:o.extend("--ft-chip-error-border-color","",u.borderErrorSubtle)};var Su={brandHoverOpacity:o.extend("--ft-link-brand-hover-opacity","",c.opacity80),brandHoverColor:o.extend("--ft-link-brand-hover-color","",u.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ft-link-brand-focus-focus-ring-color","",u.borderActionFocusRing),brandFocusColor:o.extend("--ft-link-brand-focus-color","",u.contentActionPrimary),brandDefaultColor:o.extend("--ft-link-brand-default-color","",u.contentActionPrimary),brandActiveColor:o.extend("--ft-link-brand-active-color","",u.contentActionPrimary),infoHoverOpacity:o.extend("--ft-link-info-hover-opacity","",c.opacity80),infoHoverColor:o.extend("--ft-link-info-hover-color","",u.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ft-link-info-focus-focus-ring-color","",u.borderActionFocusRing),infoFocusColor:o.extend("--ft-link-info-focus-color","",u.contentInfoPrimary),infoDefaultColor:o.extend("--ft-link-info-default-color","",u.contentInfoPrimary),infoActiveColor:o.extend("--ft-link-info-active-color","",u.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ft-link-neutral-focus-focus-ring-color","",u.borderActionFocusRing),neutralFocusColor:o.extend("--ft-link-neutral-focus-color","",u.contentActionPrimary),neutralDefaultColor:o.extend("--ft-link-neutral-default-color","",u.contentGlobalPrimary),neutralHoverColor:o.extend("--ft-link-neutral-hover-color","",u.contentActionPrimary),neutralActiveColor:o.extend("--ft-link-neutral-active-color","",u.contentActionPrimary),neutralVisitedColor:o.extend("--ft-link-neutral-visited-color","",c.colorBrand100)};var Ou={iconSize:o.extend("--ft-banner-icon-size","",c.iconSize5),borderWidth:o.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:o.extend("--ft-banner-left-padding","",c.spacing6),rightPadding:o.extend("--ft-banner-right-padding","",c.spacing6),verticalPadding:o.extend("--ft-banner-vertical-padding","",c.spacing6),horizontalSideGap:o.extend("--ft-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:o.extend("--ft-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:o.extend("--ft-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:o.extend("--ft-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:o.extend("--ft-banner-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-banner-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-banner-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-banner-info-border-color","",u.borderInfoSubtle)};var Cu={horizontalPadding:o.extend("--ft-badge-horizontal-padding","",c.spacing1),verticalPadding:o.extend("--ft-badge-vertical-padding","",c.spacing1),borderRadius:o.extend("--ft-badge-border-radius","",c.borderRadiusPill),color:o.extend("--ft-badge-color","",u.contentGlobalOnColor),backgroundColor:o.extend("--ft-badge-background-color","",u.contentActionPrimary)};var Eu={horizontalGap:o.extend("--ft-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:o.extend("--ft-title-breadcrumb-current-color","",u.contentGlobalPrimary),previousNonClickableColor:o.extend("--ft-title-breadcrumb-previous-non-clickable-color","",u.contentGlobalSecondary),iconColor:o.extend("--ft-title-breadcrumb-icon-color","",u.contentGlobalSubtle)};var wu={parentHorizontalPadding:o.extend("--ft-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:o.extend("--ft-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:o.extend("--ft-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:o.extend("--ft-page-header-parent-help-left-margin","",c.spacing1),parentTitleColor:o.extend("--ft-page-header-parent-title-color","",u.contentGlobalPrimary),parentSubtitleColor:o.extend("--ft-page-header-parent-subtitle-color","",u.contentGlobalSecondary),parentChipLeftMargin:o.extend("--ft-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:o.extend("--ft-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:o.extend("--ft-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:o.extend("--ft-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:o.extend("--ft-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:o.extend("--ft-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:o.extend("--ft-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:o.extend("--ft-page-header-child-top-padding","",c.spacing2),childBottomPadding:o.extend("--ft-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:o.extend("--ft-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:o.extend("--ft-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:o.extend("--ft-page-header-child-vertical-gap","",c.spacing2),childMinHeight:o.create("--ft-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:o.extend("--ft-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:o.extend("--ft-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:o.extend("--ft-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:o.extend("--ft-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:o.extend("--ft-page-header-background-color","",c.colorWhite),bottomBorderColor:o.extend("--ft-page-header-bottom-border-color","",u.borderGlobalSubtle),bottomBorderWidth:o.create("--ft-page-header-bottom-border-width","","SIZE","1px")};var Au={horizontalPadding:o.extend("--ft-page-footer-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ft-page-footer-vertical-padding","",c.spacing2),verticalGap:o.extend("--ft-page-footer-vertical-gap","",c.spacing2),minHeight:o.create("--ft-page-footer-min-height","","SIZE","40px"),backgroundColor:o.extend("--ft-page-footer-background-color","",c.colorWhite),topBorderColor:o.extend("--ft-page-footer-top-border-color","",u.borderGlobalSubtle),topBorderWidth:o.create("--ft-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:o.extend("--ft-page-footer-buttons-group-gap","",c.spacing4)};var _u={contentHorizontalPadding:o.extend("--ft-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:o.extend("--ft-page-layout-content-vertical-padding","",c.spacing6)};var Ru={smallContainerTargetWidth:o.create("--ft-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:o.extend("--ft-modal-small-container-margin","",c.spacing6),mediumContainerTargetWidth:o.create("--ft-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:o.extend("--ft-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:o.create("--ft-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:o.extend("--ft-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:o.extend("--ft-modal-overlay-background-color","",c.colorGray700),overlayOpacity:o.extend("--ft-modal-overlay-opacity","",c.opacity40),shadow:o.extend("--ft-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:o.extend("--ft-modal-body-background-color","",c.colorWhite),bodyColor:o.extend("--ft-modal-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ft-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:o.extend("--ft-modal-body-vertical-gap","",c.spacing6),headerBackgroundColor:o.extend("--ft-modal-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-modal-header-border-color","",u.borderGlobalSubtle),headerColor:o.extend("--ft-modal-header-color","",u.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ft-modal-header-leading-icon-color","",u.contentGlobalPrimary),headerVerticalPadding:o.extend("--ft-modal-header-vertical-padding","",c.spacing1),headerRightPadding:o.extend("--ft-modal-header-right-padding","",c.spacing1),headerLeftPadding:o.extend("--ft-modal-header-left-padding","",c.spacing6),headerGap:o.extend("--ft-modal-header-gap","",c.spacing2),headerBorderBottomWidth:o.create("--ft-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:o.extend("--ft-modal-border-radius","",c.borderRadiusM)};var Tu={overlayOpacity:o.extend("--ft-drawer-overlay-opacity","",c.opacity40),shadow:o.extend("--ft-drawer-shadow","",c.shadowElevation03),bodyColor:o.extend("--ft-drawer-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ft-drawer-body-vertical-padding","",c.spacing6),bodyGap:o.extend("--ft-drawer-body-gap","",c.spacing6),bodyBackgroundColor:o.extend("--ft-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:o.extend("--ft-drawer-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-drawer-header-border-color","",u.borderGlobalSubtle),headerColor:o.extend("--ft-drawer-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ft-drawer-header-trailing-icon-color","",u.contentGlobalSecondary),headerHeight:o.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ft-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:o.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ft-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:o.extend("--ft-drawer-buttons-bar-background-color","",u.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ft-drawer-buttons-bar-border-color","",u.borderGlobalSubtle),buttonsBarColor:o.extend("--ft-drawer-buttons-bar-color","",u.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ft-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:o.extend("--ft-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:o.extend("--ft-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:o.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:o.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:o.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:o.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:o.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:o.extend("--ft-drawer-overlay-background-color","",c.colorGray700)};var Iu={offBorderBottomWidth:o.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:o.extend("--ft-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:o.extend("--ft-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:o.extend("--ft-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:o.extend("--ft-tabs-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ft-tabs-off-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-tabs-off-state-layer-color","",u.contentGlobalSubtle),offBorderBottomColor:o.extend("--ft-tabs-off-border-bottom-color","",u.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:o.extend("--ft-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:o.extend("--ft-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:o.extend("--ft-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:o.extend("--ft-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:o.extend("--ft-tabs-horizontal-gap","",c.spacing1),verticalGap:o.extend("--ft-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:o.extend("--ft-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:o.extend("--ft-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ft-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ft-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:o.extend("--ft-tabs-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-tabs-on-state-layer-color","",u.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ft-tabs-on-active-tab-indicator-color","",u.contentActionPrimary),iconOnlyHorizontalPadding:o.extend("--ft-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:o.extend("--ft-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:o.extend("--ft-tabs-alert-top-padding","",c.spacing1),alertRightPadding:o.extend("--ft-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:o.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-tabs-focus-focus-ring-color","",u.borderActionFocusRing)};var Nu={fieldHorizontalPadding:o.extend("--ft-text-input-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-text-input-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-text-input-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-text-input-field-icon-size","",c.iconSize3),fieldHeight:o.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:o.extend("--ft-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-text-input-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ft-text-input-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ft-text-input-border-radius","",c.borderRadiusM),backgroundColor:o.extend("--ft-text-input-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-input-content-value-color","",u.contentGlobalPrimary),trailingIconColor:o.extend("--ft-text-input-trailing-icon-color","",u.contentGlobalSubtle),labelColor:o.extend("--ft-text-input-label-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-input-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-input-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-input-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-input-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-input-error-helper-icon-color","",u.contentErrorIconOnly),warningBorderWidth:o.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:o.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-text-input-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-input-disabled-component-opacity","",c.opacity40)};var Pu={backgroundColor:o.extend("--ft-text-area-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-area-content-value-color","",u.contentGlobalPrimary),labelColor:o.extend("--ft-text-area-label-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-area-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-area-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-area-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-area-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-area-error-helper-icon-color","",u.contentErrorIconOnly),focusFocusRingColor:o.extend("--ft-text-area-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-area-disabled-component-opacity","",c.opacity40),fieldHorizontalLeftPadding:o.extend("--ft-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:o.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:o.extend("--ft-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ft-text-area-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ft-text-area-border-radius","",c.borderRadiusM)};var Lu={height:o.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:o.extend("--ft-floating-menu-horizontal-padding","",c.spacing4),offIconColor:o.extend("--ft-floating-menu-off-icon-color","",u.contentGlobalPrimary),offColor:o.extend("--ft-floating-menu-off-color","",u.contentGlobalPrimary),onColor:o.extend("--ft-floating-menu-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-floating-menu-on-state-layer-color","",u.contentActionPrimary),gap:o.extend("--ft-floating-menu-gap","",c.spacing3),focusFocusRingColor:o.extend("--ft-floating-menu-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ft-floating-menu-focus-state-layer-opacity","",c.opacity8),hoverStateLayerOpacity:o.extend("--ft-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:o.extend("--ft-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ft-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:o.extend("--ft-floating-menu-icon-size","",c.iconSize3),backgroundColor:o.extend("--ft-floating-menu-background-color","",u.backgroundGlobalOnSurface),shadow:o.extend("--ft-floating-menu-shadow","",c.shadowElevation02)};var ku={fieldHorizontalPadding:o.extend("--ft-combobox-single-select-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-single-select-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-combobox-single-select-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-combobox-single-select-field-icon-size","",c.iconSize3),fieldHeight:o.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:o.extend("--ft-combobox-single-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-combobox-single-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ft-combobox-single-select-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ft-combobox-single-select-helper-icon-size","",c.iconSize2),menuVerticalGap:o.extend("--ft-combobox-single-select-menu-vertical-gap","",c.spacing2),borderRadius:o.extend("--ft-combobox-single-select-border-radius","",c.borderRadiusM),backgroundColor:o.extend("--ft-combobox-single-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-single-select-label-color","",u.contentGlobalSubtle),contentValueColor:o.extend("--ft-combobox-single-select-content-value-color","",u.contentGlobalPrimary),trailingIconColor:o.extend("--ft-combobox-single-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-single-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-single-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-combobox-single-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-single-select-error-helper-text-color","",u.contentErrorPrimary),warningBorderWidth:o.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-single-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-single-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-single-select-warning-helper-icon-color","",u.contentWarningIconOnly),focusOutlineWidth:o.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-single-select-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-single-select-disabled-component-opacity","",c.opacity40)};var $u={backgroundColor:o.extend("--ft-combobox-multi-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-multi-select-label-color","",u.contentGlobalSubtle),trailingIconColor:o.extend("--ft-combobox-multi-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-multi-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-multi-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:o.extend("--ft-combobox-multi-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-multi-select-error-helper-text-color","",u.contentErrorPrimary),errorHelperIcon:o.extend("--ft-combobox-multi-select-error-helper-icon","",u.contentErrorIconOnly),errorBorderWidth:o.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-multi-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-multi-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-multi-select-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:o.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-multi-select-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-multi-select-disabled-component-opacity","",c.opacity40),helperHorizontalPadding:o.extend("--ft-combobox-multi-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-combobox-multi-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ft-combobox-multi-select-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ft-combobox-multi-select-helper-icon-size","",c.iconSize2),fieldHorizontalPadding:o.extend("--ft-combobox-multi-select-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-multi-select-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-combobox-multi-select-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-combobox-multi-select-field-icon-size","",c.iconSize3),fieldMaxHeight:o.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:o.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",c.spacing1),contentValuesVerticalGap:o.extend("--ft-combobox-multi-select-content-values-vertical-gap","",c.spacing1),borderRadius:o.extend("--ft-combobox-multi-select-border-radius","",c.borderRadiusM)};var Du={backgroundColor:o.extend("--ft-popover-background-color","",u.backgroundGlobalOnSurface),horizontalPadding:o.extend("--ft-popover-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ft-popover-vertical-padding","",c.spacing6),titleColor:o.extend("--ft-popover-title-color","",u.contentGlobalPrimary),bodyColor:o.extend("--ft-popover-body-color","",u.contentGlobalSecondary),linkColor:o.extend("--ft-popover-link-color","",u.contentActionPrimary),gap:o.extend("--ft-popover-gap","",c.spacing3),borderRadius:o.extend("--ft-popover-border-radius","",c.borderRadiusM),shadow:o.extend("--ft-popover-shadow","",c.shadowElevation02),maxWidth:o.create("--ft-popover-max-width","","SIZE","440px")};var Mu={hoverStateLayerOpacity:o.extend("--ft-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:o.extend("--ft-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:o.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ft-collapsible-focus-focus-ring-color","",u.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ft-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ft-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:o.extend("--ft-collapsible-horizontal-padding","",c.spacing4),verticalPadding:o.extend("--ft-collapsible-vertical-padding","",c.spacing3),color:o.extend("--ft-collapsible-color","",u.contentGlobalPrimary),stateLayerColor:o.extend("--ft-collapsible-state-layer-color","",u.contentGlobalPrimary),backgroundColor:o.extend("--ft-collapsible-background-color","",u.backgroundGlobalOnSurface),borderColor:o.extend("--ft-collapsible-border-color","",u.borderGlobalSubtle),iconSize:o.extend("--ft-collapsible-icon-size","",c.iconSize3)};var Uu={groupHorizontalPadding:o.extend("--ft-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:o.extend("--ft-switch-group-vertical-padding","",c.spacing1),groupGap:o.extend("--ft-switch-group-gap","",c.spacing1),groupBackgroundColor:o.extend("--ft-switch-group-background-color","",u.backgroundGlobalSurface),groupBorderColor:o.extend("--ft-switch-group-border-color","",u.borderGlobalSubtle),groupBorderRadius:o.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ft-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:o.extend("--ft-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:o.extend("--ft-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:o.extend("--ft-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:o.extend("--ft-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:o.extend("--ft-switch-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ft-switch-off-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-switch-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ft-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:o.extend("--ft-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:o.extend("--ft-switch-on-disabled-component-opacity","",c.opacity40),onColor:o.extend("--ft-switch-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-switch-on-state-layer-color","",u.contentActionPrimary),iconHorizontalPadding:o.extend("--ft-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:o.extend("--ft-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:o.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-switch-focus-focus-ring-color","",u.borderActionFocusRing),optionBorderRadius:o.extend("--ft-switch-option-border-radius","",c.borderRadiusS)};var Bu={color1Light:o.extend("--ft-chart-1-light","for area color charts",c.colorBrand40),color1Base:o.extend("--ft-chart-1-base","for line charts",c.colorBrand0),color2Light:o.extend("--ft-chart-2-light","for area color charts",c.colorYellow60),color2Base:o.extend("--ft-chart-2-base","for line charts",c.colorYellow100),color3Light:o.extend("--ft-chart-3-light","",c.colorUltramarine40),color3Base:o.extend("--ft-chart-3-base","",c.colorUltramarine70),color4Light:o.extend("--ft-chart-4-light","",c.colorCyan50),color4Base:o.extend("--ft-chart-4-base","",c.colorCyan100),color5Light:o.extend("--ft-chart-5-light","",c.colorRed40),color5Base:o.extend("--ft-chart-5-base","",c.colorRed60),color6Light:o.extend("--ft-chart-6-light","",c.colorGreen40),color6Base:o.extend("--ft-chart-6-base","",c.colorGreen70),color7Light:o.extend("--ft-chart-7-light","",c.colorOrange70),color7Base:o.extend("--ft-chart-7-base","",c.colorOrange100),color8Light:o.extend("--ft-chart-8-light","",c.colorAvocado70),color8Base:o.extend("--ft-chart-8-base","",c.colorAvocado200),color9Light:o.extend("--ft-chart-9-light","",c.colorBrown50),color9Base:o.extend("--ft-chart-9-base","",c.colorBrown200),color10Light:o.extend("--ft-chart-10-light","",c.colorGray50),color10Base:o.extend("--ft-chart-10-base","",c.colorGray80),monochrome10:o.extend("--ft-chart-monochrome-10","",c.colorBrand10),monochrome20:o.extend("--ft-chart-monochrome-20","",c.colorBrand20),monochrome30:o.extend("--ft-chart-monochrome-30","",c.colorBrand40),monochrome40:o.extend("--ft-chart-monochrome-40","",c.colorBrand60),monochrome50:o.extend("--ft-chart-monochrome-50","",c.colorBrand0),monochrome60:o.extend("--ft-chart-monochrome-60","",c.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-popular-old-background-color","",c.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-popular-new-background-color","",c.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-unpopular-old-background-color","",c.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-unpopular-new-background-color","",c.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-initial-default-background-color","",c.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:o.extend("--ft-chart-scatterplot-datapoint-initial-default-background-opacity","",c.opacity48),scatterplotDatapointInitialHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-initial-hover-background-color","",c.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-selected-default-background-color","",c.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-selected-hover-background-color","",c.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-color","",c.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:o.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-opacity","",c.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-unselected-hover-background-color","",c.colorGray70),scatterplotDatapointHoverHoverRingColor:o.extend("--ft-chart-scatterplot-datapoint-hover-hover-ring-color","",c.colorCyan200)};var Fu={color1IconColor:o.extend("--ft-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:o.extend("--ft-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:o.extend("--ft-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:o.extend("--ft-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:o.extend("--ft-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:o.extend("--ft-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:o.extend("--ft-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:o.extend("--ft-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:o.extend("--ft-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:o.extend("--ft-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:o.extend("--ft-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:o.extend("--ft-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:o.extend("--ft-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:o.extend("--ft-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:o.extend("--ft-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:o.extend("--ft-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)};var Wu={borderWidth:o.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ft-notice-horizontal-padding","",c.spacing3),verticalPadding:o.extend("--ft-notice-vertical-padding","",c.spacing2),borderRadius:o.extend("--ft-notice-border-radius","",c.borderRadiusS),gap:o.extend("--ft-notice-gap","",c.spacing2),iconSize:o.extend("--ft-notice-icon-size","",c.iconSize3),infoBackgroundColor:o.extend("--ft-notice-info-background-color","",u.backgroundInfoSubtle),infoBorderColor:o.extend("--ft-notice-info-border-color","",u.borderInfoSubtle),infoColor:o.extend("--ft-notice-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-notice-info-icon-color","",u.contentInfoIconOnly),warningBackgroundColor:o.extend("--ft-notice-warning-background-color","",u.backgroundWarningSubtle),warningBorderColor:o.extend("--ft-notice-warning-border-color","",u.borderWarningSubtle),warningColor:o.extend("--ft-notice-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-notice-warning-icon-color","",u.contentWarningIconOnly),errorBackgroundColor:o.extend("--ft-notice-error-background-color","",u.backgroundErrorSubtle),errorBorderColor:o.extend("--ft-notice-error-border-color","",u.borderErrorSubtle),errorColor:o.extend("--ft-notice-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-notice-error-icon-color","",u.contentErrorIconOnly),successBackgroundColor:o.extend("--ft-notice-success-background-color","",u.backgroundSuccessSubtle),successBorderColor:o.extend("--ft-notice-success-border-color","",u.borderSuccessSubtle),successColor:o.extend("--ft-notice-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-notice-success-icon-color","",u.contentSuccessIconOnly),denseHorizontalPadding:o.create("--ft-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:o.create("--ft-notice-dense-vertical-padding","","SIZE","0px"),denseGap:o.extend("--ft-notice-dense-gap","",c.spacing1),denseIconSize:o.extend("--ft-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:o.create("--ft-notice-dense-border-width","","SIZE","0")};var Hu={color:o.extend("--ft-checkbox-color","",u.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ft-checkbox-checked-background-color","",u.contentActionPrimary),checkedStateLayerColor:o.extend("--ft-checkbox-checked-state-layer-color","",u.contentActionPrimary),checkedIconColor:o.extend("--ft-checkbox-checked-icon-color","",u.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ft-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:o.extend("--ft-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:o.extend("--ft-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:o.extend("--ft-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:o.extend("--ft-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:o.extend("--ft-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ft-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-checkbox-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gap:o.extend("--ft-checkbox-gap","",c.spacing3)};var zu={offHoverStateLayerOpacity:o.extend("--ft-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:o.extend("--ft-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:o.extend("--ft-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:o.extend("--ft-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:o.extend("--ft-toggle-off-background-color","",u.contentGlobalSubtle),offIconColor:o.extend("--ft-toggle-off-icon-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-toggle-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:o.extend("--ft-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ft-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:o.extend("--ft-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:o.extend("--ft-toggle-on-background-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-toggle-on-state-layer-color","",u.contentActionPrimary),onIconColor:o.extend("--ft-toggle-on-icon-color","",u.contentActionPrimary),color:o.extend("--ft-toggle-color","",u.contentGlobalPrimary),focusFocusRingColor:o.extend("--ft-toggle-focus-focus-ring-color","",u.borderActionFocusRing),gap:o.extend("--ft-toggle-gap","",c.spacing3)};var Vu={color:o.extend("--ft-radio-color","",u.contentGlobalPrimary),selectedRadioColor:o.extend("--ft-radio-selected-radio-color","",u.contentActionPrimary),selectedStateLayerColor:o.extend("--ft-radio-selected-state-layer-color","",u.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ft-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:o.extend("--ft-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:o.extend("--ft-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:o.extend("--ft-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:o.extend("--ft-radio-unselected-state-layer-color","",u.borderInputPrimary),unselectedBorderColor:o.extend("--ft-radio-unselected-border-color","",u.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ft-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ft-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ft-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:o.extend("--ft-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-radio-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:o.extend("--ft-radio-gap","",c.spacing3)};var ju={iconSize:o.extend("--ft-notification-icon-size","",c.iconSize4),leftPadding:o.extend("--ft-notification-left-padding","",c.spacing5),rightPadding:o.extend("--ft-notification-right-padding","",c.spacing4),verticalPadding:o.extend("--ft-notification-vertical-padding","",c.spacing3),infoBackgroundColor:o.extend("--ft-notification-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-notification-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-notification-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-notification-info-border-color","",u.borderInfoSubtle),successBackgroundColor:o.extend("--ft-notification-success-background-color","",u.backgroundSuccessSubtle),successColor:o.extend("--ft-notification-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-notification-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:o.extend("--ft-notification-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-notification-warning-background-color","",u.backgroundWarningSubtle),warningColor:o.extend("--ft-notification-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-notification-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:o.extend("--ft-notification-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-notification-error-background-color","",u.backgroundErrorSubtle),errorColor:o.extend("--ft-notification-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-notification-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:o.extend("--ft-notification-error-border-color","",u.borderErrorSubtle),borderRadius:o.extend("--ft-notification-border-radius","",c.borderRadiusPill),borderWidth:o.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ft-notification-leading-gap","",c.spacing2),trailingGap:o.extend("--ft-notification-trailing-gap","",c.spacing8)};var Gu={horizontalPadding:o.extend("--ft-tooltip-horizontal-padding","",c.spacing2),verticalPadding:o.extend("--ft-tooltip-vertical-padding","",c.spacing2),borderRadius:o.extend("--ft-tooltip-border-radius","",c.borderRadiusS),color:o.extend("--ft-tooltip-color","",u.contentGlobalOnColor),backgroundColor:o.extend("--ft-tooltip-background-color","",u.contentGlobalPrimary),backgroundOpacity:o.extend("--ft-tooltip-background-opacity","",c.opacity80),shadow:o.extend("--ft-tooltip-shadow","",c.shadowElevation02),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ft-tooltip-gap","",c.spacing05)};var Ku={verticalPadding:o.extend("--ft-reorderable-list-vertical-padding","",c.spacing4),gap:o.extend("--ft-reorderable-list-gap","",c.spacing1),borderRadius:o.extend("--ft-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:o.extend("--ft-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:o.extend("--ft-reorderable-list-reorderable-item-title-color","",u.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:o.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:o.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:o.extend("--ft-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:o.extend("--ft-reorderable-list-reorderable-item-users-count-color","",u.contentGlobalPrimary),reorderableItemUsersCountMarginRight:o.extend("--ft-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:o.extend("--ft-reorderable-list-reorderable-item-background-color","",u.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:o.extend("--ft-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:o.extend("--ft-reorderable-list-reorderable-item-warning-message-color","",u.contentWarningPrimary),reorderableItemWarningMessageIconColor:o.extend("--ft-reorderable-list-reorderable-item-warning-message-icon-color","",u.contentWarningIconOnly),reorderableItemGripColor:o.extend("--ft-reorderable-list-reorderable-item-grip-color","",u.contentGlobalSecondary),reorderableItemGripOpacity:o.extend("--ft-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:o.extend("--ft-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:o.create("--ft-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:o.extend("--ft-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:o.extend("--ft-reorderable-list-left-padding","",c.spacing2),rightPadding:o.extend("--ft-reorderable-list-right-padding","",c.spacing6),borderColor:o.extend("--ft-reorderable-list-border-color","",u.borderGlobalPrimary),backgroundColor:o.extend("--ft-reorderable-list-background-color","",u.backgroundGlobalOnSurfaceDark)};var yr;(function(e){e.brand="brand",e.neutral="neutral",e.info="info",e.success="success",e.warning="warning",e.error="error"})(yr||(yr={}));var _e;(function(e){e.large="large",e.medium="medium",e.small="small"})(_e||(_e={}));function wa(e){return`ftds--family-${e}`}function Aa(e){return`ftds--size-${e}`}var T={colorPrimary:o.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:o.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:o.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:o.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:o.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:o.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:o.create("--ft-color-error","","COLOR","#B00020"),colorOutline:o.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:o.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:o.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:o.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:o.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:o.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:o.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:o.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:o.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:o.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:o.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:o.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:o.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:o.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:o.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:o.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:o.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:o.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:o.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:o.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:o.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:o.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:o.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:o.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:o.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:o.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:o.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:o.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:o.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:o.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:o.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:o.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:o.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:o.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:o.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:o.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:o.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:o.create("--ft-elevation-00","","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:o.create("--ft-elevation-01","","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:o.create("--ft-elevation-02","","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:o.create("--ft-elevation-03","","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:o.create("--ft-elevation-04","","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:o.create("--ft-elevation-06","","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:o.create("--ft-elevation-08","","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:o.create("--ft-elevation-12","","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:o.create("--ft-elevation-16","","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:o.create("--ft-elevation-24","","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:o.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:o.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:o.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:o.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:o.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:o.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var ja={};ot(ja,{computeFlipOffsetPosition:()=>Va,computeOffsetPosition:()=>za});var Ql=["top","right","bottom","left"],Jl=["start","end"],Ta=Ql.reduce((e,t)=>e.concat(t,t+"-"+Jl[0],t+"-"+Jl[1]),[]),gr=Math.min,Ht=Math.max,No=Math.round;var Re=e=>({x:e,y:e}),Zu={left:"right",right:"left",bottom:"top",top:"bottom"},qu={start:"end",end:"start"};function Ia(e,t,r){return Ht(e,gr(t,r))}function br(e,t){return typeof e=="function"?e(t):e}function oe(e){return e.split("-")[0]}function ie(e){return e.split("-")[1]}function Na(e){return e==="x"?"y":"x"}function Pa(e){return e==="y"?"height":"width"}function Fr(e){return["top","bottom"].includes(oe(e))?"y":"x"}function La(e){return Na(Fr(e))}function ka(e,t,r){r===void 0&&(r=!1);let i=ie(e),n=La(e),a=Pa(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Io(s)),[s,Io(s)]}function tc(e){let t=Io(e);return[To(e),t,To(t)]}function To(e){return e.replace(/start|end/g,t=>qu[t])}function Yu(e,t,r){let i=["left","right"],n=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return r?t?n:i:t?i:n;case"left":case"right":return t?a:s;default:return[]}}function ec(e,t,r,i){let n=ie(e),a=Yu(oe(e),r==="start",i);return n&&(a=a.map(s=>s+"-"+n),t&&(a=a.concat(a.map(To)))),a}function Io(e){return e.replace(/left|right|bottom|top/g,t=>Zu[t])}function Xu(e){return{top:0,right:0,bottom:0,left:0,...e}}function rc(e){return typeof e!="number"?Xu(e):{top:e,right:e,bottom:e,left:e}}function vr(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function oc(e,t,r){let{reference:i,floating:n}=e,a=Fr(t),s=La(t),l=Pa(s),d=oe(t),p=a==="y",h=i.x+i.width/2-n.width/2,f=i.y+i.height/2-n.height/2,m=i[l]/2-n[l]/2,v;switch(d){case"top":v={x:h,y:i.y-n.height};break;case"bottom":v={x:h,y:i.y+i.height};break;case"right":v={x:i.x+i.width,y:f};break;case"left":v={x:i.x-n.width,y:f};break;default:v={x:i.x,y:i.y}}switch(ie(t)){case"start":v[s]-=m*(r&&p?-1:1);break;case"end":v[s]+=m*(r&&p?-1:1);break}return v}var ic=async(e,t,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=r,l=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t)),p=await s.getElementRects({reference:e,floating:t,strategy:n}),{x:h,y:f}=oc(p,i,d),m=i,v={},x=0;for(let E=0;E<l.length;E++){let{name:R,fn:I}=l[E],{x:L,y:w,data:O,reset:A}=await I({x:h,y:f,initialPlacement:i,placement:m,strategy:n,middlewareData:v,rects:p,platform:s,elements:{reference:e,floating:t}});if(h=L??h,f=w??f,v={...v,[R]:{...v[R],...O}},A&&x<=50){x++,typeof A=="object"&&(A.placement&&(m=A.placement),A.rects&&(p=A.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:n}):A.rects),{x:h,y:f}=oc(p,m,d)),E=-1;continue}}return{x:h,y:f,placement:m,strategy:n,middlewareData:v}};async function Po(e,t){var r;t===void 0&&(t={});let{x:i,y:n,platform:a,rects:s,elements:l,strategy:d}=e,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:f="floating",altBoundary:m=!1,padding:v=0}=br(t,e),x=rc(v),R=l[m?f==="floating"?"reference":"floating":f],I=vr(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(R)))==null||r?R:R.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:h,strategy:d})),L=f==="floating"?{...s.floating,x:i,y:n}:s.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),O=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},A=vr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:L,offsetParent:w,strategy:d}):L);return{top:(I.top-A.top+x.top)/O.y,bottom:(A.bottom-I.bottom+x.bottom)/O.y,left:(I.left-A.left+x.left)/O.x,right:(A.right-I.right+x.right)/O.x}}function Ju(e,t,r){return(e?[...r.filter(n=>ie(n)===e),...r.filter(n=>ie(n)!==e)]:r.filter(n=>oe(n)===n)).filter(n=>e?ie(n)===e||(t?To(n)!==n:!1):!0)}var $a=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,i,n;let{rects:a,middlewareData:s,placement:l,platform:d,elements:p}=t,{crossAxis:h=!1,alignment:f,allowedPlacements:m=Ta,autoAlignment:v=!0,...x}=br(e,t),E=f!==void 0||m===Ta?Ju(f||null,v,m):m,R=await Po(t,x),I=((r=s.autoPlacement)==null?void 0:r.index)||0,L=E[I];if(L==null)return{};let w=ka(L,a,await(d.isRTL==null?void 0:d.isRTL(p.floating)));if(l!==L)return{reset:{placement:E[0]}};let O=[R[oe(L)],R[w[0]],R[w[1]]],A=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:L,overflows:O}],k=E[I+1];if(k)return{data:{index:I+1,overflows:A},reset:{placement:k}};let F=A.map(U=>{let y=ie(U.placement);return[U.placement,y&&h?U.overflows.slice(0,2).reduce((C,D)=>C+D,0):U.overflows[0],U.overflows]}).sort((U,y)=>U[1]-y[1]),Z=((n=F.filter(U=>U[2].slice(0,ie(U[0])?2:3).every(y=>y<=0))[0])==null?void 0:n[0])||F[0][0];return Z!==l?{data:{index:I+1,overflows:A},reset:{placement:Z}}:{}}}},Da=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,i;let{placement:n,middlewareData:a,rects:s,initialPlacement:l,platform:d,elements:p}=t,{mainAxis:h=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:E=!0,...R}=br(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};let I=oe(n),L=oe(l)===l,w=await(d.isRTL==null?void 0:d.isRTL(p.floating)),O=m||(L||!E?[Io(l)]:tc(l));!m&&x!=="none"&&O.push(...ec(l,E,x,w));let A=[l,...O],k=await Po(t,R),F=[],q=((i=a.flip)==null?void 0:i.overflows)||[];if(h&&F.push(k[I]),f){let C=ka(n,s,w);F.push(k[C[0]],k[C[1]])}if(q=[...q,{placement:n,overflows:F}],!F.every(C=>C<=0)){var Z,U;let C=(((Z=a.flip)==null?void 0:Z.index)||0)+1,D=A[C];if(D)return{data:{index:C,overflows:q},reset:{placement:D}};let Y=(U=q.filter(Q=>Q.overflows[0]<=0).sort((Q,V)=>Q.overflows[1]-V.overflows[1])[0])==null?void 0:U.placement;if(!Y)switch(v){case"bestFit":{var y;let Q=(y=q.map(V=>[V.placement,V.overflows.filter(pe=>pe>0).reduce((pe,so)=>pe+so,0)]).sort((V,pe)=>V[1]-pe[1])[0])==null?void 0:y[0];Q&&(Y=Q);break}case"initialPlacement":Y=l;break}if(n!==Y)return{reset:{placement:Y}}}return{}}}};async function Qu(e,t){let{placement:r,platform:i,elements:n}=e,a=await(i.isRTL==null?void 0:i.isRTL(n.floating)),s=oe(r),l=ie(r),d=Fr(r)==="y",p=["left","top"].includes(s)?-1:1,h=a&&d?-1:1,f=br(t,e),{mainAxis:m,crossAxis:v,alignmentAxis:x}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&typeof x=="number"&&(v=l==="end"?x*-1:x),d?{x:v*h,y:m*p}:{x:m*p,y:v*h}}var Ma=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,i;let{x:n,y:a,placement:s,middlewareData:l}=t,d=await Qu(t,e);return s===((r=l.offset)==null?void 0:r.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:n+d.x,y:a+d.y,data:{...d,placement:s}}}}},Ua=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:i,placement:n}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:R=>{let{x:I,y:L}=R;return{x:I,y:L}}},...d}=br(e,t),p={x:r,y:i},h=await Po(t,d),f=Fr(oe(n)),m=Na(f),v=p[m],x=p[f];if(a){let R=m==="y"?"top":"left",I=m==="y"?"bottom":"right",L=v+h[R],w=v-h[I];v=Ia(L,v,w)}if(s){let R=f==="y"?"top":"left",I=f==="y"?"bottom":"right",L=x+h[R],w=x-h[I];x=Ia(L,x,w)}let E=l.fn({...t,[m]:v,[f]:x});return{...E,data:{x:E.x-r,y:E.y-i}}}}};var Ba=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:r,rects:i,platform:n,elements:a}=t,{apply:s=()=>{},...l}=br(e,t),d=await Po(t,l),p=oe(r),h=ie(r),f=Fr(r)==="y",{width:m,height:v}=i.floating,x,E;p==="top"||p==="bottom"?(x=p,E=h===(await(n.isRTL==null?void 0:n.isRTL(a.floating))?"start":"end")?"left":"right"):(E=p,x=h==="end"?"top":"bottom");let R=v-d[x],I=m-d[E],L=!t.middlewareData.shift,w=R,O=I;if(f){let k=m-d.left-d.right;O=h||L?gr(I,k):k}else{let k=v-d.top-d.bottom;w=h||L?gr(R,k):k}if(L&&!h){let k=Ht(d.left,0),F=Ht(d.right,0),q=Ht(d.top,0),Z=Ht(d.bottom,0);f?O=m-2*(k!==0||F!==0?k+F:Ht(d.left,d.right)):w=v-2*(q!==0||Z!==0?q+Z:Ht(d.top,d.bottom))}await s({...t,availableWidth:O,availableHeight:w});let A=await n.getDimensions(a.floating);return m!==A.width||v!==A.height?{reset:{rects:!0}}:{}}}};function Te(e){return ac(e)?(e.nodeName||"").toLowerCase():"#document"}function zt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ie(e){var t;return(t=(ac(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ac(e){return e instanceof Node||e instanceof zt(e).Node}function ye(e){return e instanceof Element||e instanceof zt(e).Element}function ne(e){return e instanceof HTMLElement||e instanceof zt(e).HTMLElement}function nc(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof zt(e).ShadowRoot}function Wr(e){let{overflow:t,overflowX:r,overflowY:i,display:n}=Zt(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+r)&&!["inline","contents"].includes(n)}function sc(e){return["table","td","th"].includes(Te(e))}function Ei(e){let t=wi(),r=Zt(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(r.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(r.contain||"").includes(i))}function lc(e){let t=xr(e);for(;ne(t)&&!Lo(t);){if(Ei(t))return t;t=xr(t)}return null}function wi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Lo(e){return["html","body","#document"].includes(Te(e))}function Zt(e){return zt(e).getComputedStyle(e)}function ko(e){return ye(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function xr(e){if(Te(e)==="html")return e;let t=e.assignedSlot||e.parentNode||nc(e)&&e.host||Ie(e);return nc(t)?t.host:t}function cc(e){let t=xr(e);return Lo(t)?e.ownerDocument?e.ownerDocument.body:e.body:ne(t)&&Wr(t)?t:cc(t)}function Ci(e,t,r){var i;t===void 0&&(t=[]),r===void 0&&(r=!0);let n=cc(e),a=n===((i=e.ownerDocument)==null?void 0:i.body),s=zt(n);return a?t.concat(s,s.visualViewport||[],Wr(n)?n:[],s.frameElement&&r?Ci(s.frameElement):[]):t.concat(n,Ci(n,[],r))}function uc(e){let t=Zt(e),r=parseFloat(t.width)||0,i=parseFloat(t.height)||0,n=ne(e),a=n?e.offsetWidth:r,s=n?e.offsetHeight:i,l=No(r)!==a||No(i)!==s;return l&&(r=a,i=s),{width:r,height:i,$:l}}function fc(e){return ye(e)?e:e.contextElement}function Hr(e){let t=fc(e);if(!ne(t))return Re(1);let r=t.getBoundingClientRect(),{width:i,height:n,$:a}=uc(t),s=(a?No(r.width):r.width)/i,l=(a?No(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var tf=Re(0);function hc(e){let t=zt(e);return!wi()||!t.visualViewport?tf:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ef(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==zt(e)?!1:t}function $o(e,t,r,i){t===void 0&&(t=!1),r===void 0&&(r=!1);let n=e.getBoundingClientRect(),a=fc(e),s=Re(1);t&&(i?ye(i)&&(s=Hr(i)):s=Hr(e));let l=ef(a,r,i)?hc(a):Re(0),d=(n.left+l.x)/s.x,p=(n.top+l.y)/s.y,h=n.width/s.x,f=n.height/s.y;if(a){let m=zt(a),v=i&&ye(i)?zt(i):i,x=m.frameElement;for(;x&&i&&v!==m;){let E=Hr(x),R=x.getBoundingClientRect(),I=Zt(x),L=R.left+(x.clientLeft+parseFloat(I.paddingLeft))*E.x,w=R.top+(x.clientTop+parseFloat(I.paddingTop))*E.y;d*=E.x,p*=E.y,h*=E.x,f*=E.y,d+=L,p+=w,x=zt(x).frameElement}}return vr({width:h,height:f,x:d,y:p})}function rf(e){let{rect:t,offsetParent:r,strategy:i}=e,n=ne(r),a=Ie(r);if(r===a)return t;let s={scrollLeft:0,scrollTop:0},l=Re(1),d=Re(0);if((n||!n&&i!=="fixed")&&((Te(r)!=="body"||Wr(a))&&(s=ko(r)),ne(r))){let p=$o(r);l=Hr(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-s.scrollLeft*l.x+d.x,y:t.y*l.y-s.scrollTop*l.y+d.y}}function of(e){return Array.from(e.getClientRects())}function mc(e){return $o(Ie(e)).left+ko(e).scrollLeft}function nf(e){let t=Ie(e),r=ko(e),i=e.ownerDocument.body,n=Ht(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),a=Ht(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),s=-r.scrollLeft+mc(e),l=-r.scrollTop;return Zt(i).direction==="rtl"&&(s+=Ht(t.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:l}}function af(e,t){let r=zt(e),i=Ie(e),n=r.visualViewport,a=i.clientWidth,s=i.clientHeight,l=0,d=0;if(n){a=n.width,s=n.height;let p=wi();(!p||p&&t==="fixed")&&(l=n.offsetLeft,d=n.offsetTop)}return{width:a,height:s,x:l,y:d}}function sf(e,t){let r=$o(e,!0,t==="fixed"),i=r.top+e.clientTop,n=r.left+e.clientLeft,a=ne(e)?Hr(e):Re(1),s=e.clientWidth*a.x,l=e.clientHeight*a.y,d=n*a.x,p=i*a.y;return{width:s,height:l,x:d,y:p}}function dc(e,t,r){let i;if(t==="viewport")i=af(e,r);else if(t==="document")i=nf(Ie(e));else if(ye(t))i=sf(t,r);else{let n=hc(e);i={...t,x:t.x-n.x,y:t.y-n.y}}return vr(i)}function yc(e,t){let r=xr(e);return r===t||!ye(r)||Lo(r)?!1:Zt(r).position==="fixed"||yc(r,t)}function lf(e,t){let r=t.get(e);if(r)return r;let i=Ci(e,[],!1).filter(l=>ye(l)&&Te(l)!=="body"),n=null,a=Zt(e).position==="fixed",s=a?xr(e):e;for(;ye(s)&&!Lo(s);){let l=Zt(s),d=Ei(s);!d&&l.position==="fixed"&&(n=null),(a?!d&&!n:!d&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Wr(s)&&!d&&yc(e,s))?i=i.filter(h=>h!==s):n=l,s=xr(s)}return t.set(e,i),i}function cf(e){let{element:t,boundary:r,rootBoundary:i,strategy:n}=e,s=[...r==="clippingAncestors"?lf(t,this._c):[].concat(r),i],l=s[0],d=s.reduce((p,h)=>{let f=dc(t,h,n);return p.top=Ht(f.top,p.top),p.right=gr(f.right,p.right),p.bottom=gr(f.bottom,p.bottom),p.left=Ht(f.left,p.left),p},dc(t,l,n));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function df(e){return uc(e)}function pf(e,t,r){let i=ne(t),n=Ie(t),a=r==="fixed",s=$o(e,!0,a,t),l={scrollLeft:0,scrollTop:0},d=Re(0);if(i||!i&&!a)if((Te(t)!=="body"||Wr(n))&&(l=ko(t)),i){let p=$o(t,!0,a,t);d.x=p.x+t.clientLeft,d.y=p.y+t.clientTop}else n&&(d.x=mc(n));return{x:s.left+l.scrollLeft-d.x,y:s.top+l.scrollTop-d.y,width:s.width,height:s.height}}function pc(e,t){return!ne(e)||Zt(e).position==="fixed"?null:t?t(e):e.offsetParent}function gc(e,t){let r=zt(e);if(!ne(e))return r;let i=pc(e,t);for(;i&&sc(i)&&Zt(i).position==="static";)i=pc(i,t);return i&&(Te(i)==="html"||Te(i)==="body"&&Zt(i).position==="static"&&!Ei(i))?r:i||lc(e)||r}var uf=async function(e){let{reference:t,floating:r,strategy:i}=e,n=this.getOffsetParent||gc,a=this.getDimensions;return{reference:pf(t,await n(r),i),floating:{x:0,y:0,...await a(r)}}};function ff(e){return Zt(e).direction==="rtl"}var zr={convertOffsetParentRelativeRectToViewportRelativeRect:rf,getDocumentElement:Ie,getClippingRect:cf,getOffsetParent:gc,getElementRects:uf,getClientRects:of,getDimensions:df,getScale:Hr,isElement:ye,isRTL:ff};var Fa=(e,t,r)=>{let i=new Map,n={platform:zr,...r},a={...n.platform,_c:i};return ic(e,t,{...n,platform:a})};function Ha(e){return hf(e)}function Wa(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function hf(e){for(let t=e;t;t=Wa(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=Wa(e);t;t=Wa(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||t.tagName==="BODY"))return t}return null}async function za(e,t,r){return Fa(e,t,{platform:{...zr,getOffsetParent:i=>zr.getOffsetParent(i,Ha)},middleware:[Ua({crossAxis:!0}),$a({allowedPlacements:[r]})]})}async function Va(e,t,r,i,n,a,s=4){return Fa(e,t,{placement:r,strategy:n,platform:{...zr,getOffsetParent:l=>zr.getOffsetParent(l,Ha)},middleware:[Ma(s),Da({fallbackPlacements:i}),Ba({apply({availableHeight:l,elements:d}){a?d.floating.style.maxHeight=`min(${Math.max(0,l)}px, var(${a}))`:d.floating.style.maxHeight=`${Math.max(0,l)}px`}})]})}var qa={};ot(qa,{FtdsBase:()=>Za,toFtdsBase:()=>Ri});var Ka={};ot(Ka,{FtLitElement:()=>j});var Ga={};ot(Ga,{ScopedRegistryLitElement:()=>Do});var Ai=window,mf=Ai.ShadowRoot&&(Ai.ShadyCSS===void 0||Ai.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,mv=Symbol();var bc=(e,t)=>{mf?e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):t.forEach(r=>{let i=document.createElement("style"),n=Ai.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,e.appendChild(i)})};var Do=class extends Ee{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([n,a])=>t.registry.define(n,a)));let r={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return bc(i,t.elementStyles),i}};var _i=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},Oc,vc=Symbol("constructorPrototype"),xc=Symbol("constructorName"),Cc=Symbol("exportpartsDebouncer"),Sc=Symbol("dynamicDependenciesLoaded"),j=class extends Do{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Oc]=new lt(5),this[xc]=this.constructor.name,this[vc]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[xc]&&Object.setPrototypeOf(this,this[vc])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let t=this.constructor;t[Sc]||(t[Sc]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){}applyCustomStylesheet(t){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(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 t,r,i;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[Cc].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.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(t){var r,i,n,a,s,l;let d=m=>m!=null&&m.trim().length>0,p=t.filter(d).map(m=>m.trim());if(p.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let m of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let v=(a=(n=m.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],x=(l=(s=m.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(E=>E.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...v,...x).filter(d).map(E=>E.trim()).forEach(E=>h.add(E))}if(h.size===0){this.removeAttribute("exportparts");return}let f=[...h.values()].flatMap(m=>p.map(v=>`${m}:${v}--${m}`));this.setAttribute("exportparts",[...this.part,...f].join(", "))}};Oc=Cc;_i([g()],j.prototype,"exportpartsPrefix",void 0);_i([me([])],j.prototype,"exportpartsPrefixes",void 0);_i([g()],j.prototype,"customStylesheet",void 0);_i([H()],j.prototype,"useAdoptedStyleSheets",void 0);var Ec=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a};function Ri(e){class t extends e{constructor(){super(...arguments),this.size=_e.medium,this.family=yr.neutral}getDesignSystemBaseClasses(){return{[wa(this.family)]:!0,[Aa(this.size)]:!0}}}return Ec([g()],t.prototype,"size",void 0),Ec([g()],t.prototype,"family",void 0),t}var Za=class extends Ri(j){};var wc={};var Ja={};ot(Ja,{highlightHtml:()=>Xa,highlightHtmlColorCssVariable:()=>Ac,highlightHtmlStyles:()=>gf});var Sr=class e{constructor(t,r=!0,i=[],n=5e3){this.ctx=t,this.iframes=r,this.exclude=i,this.iframesTimeout=n}static matches(t,r){let i=typeof r=="string"?[r]:r,n=t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;if(n){let a=!1;return i.every(s=>n.call(t,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let t,r=[];return typeof this.ctx>"u"||!this.ctx?t=[]:NodeList.prototype.isPrototypeOf(this.ctx)?t=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?t=this.ctx:typeof this.ctx=="string"?t=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):t=[this.ctx],t.forEach(i=>{let n=r.filter(a=>a.contains(i)).length>0;r.indexOf(i)===-1&&!n&&r.push(i)}),r}getIframeContents(t,r,i=()=>{}){let n;try{let a=t.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{i()}n&&r(n)}isIframeBlank(t){let r="about:blank",i=t.getAttribute("src").trim();return t.contentWindow.location.href===r&&i!==r&&i}observeIframeLoad(t,r,i){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(t)||(t.removeEventListener("load",s),this.getIframeContents(t,r,i))}catch{i()}}};t.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(t,r,i){try{t.contentWindow.document.readyState==="complete"?this.isIframeBlank(t)?this.observeIframeLoad(t,r,i):this.getIframeContents(t,r,i):this.observeIframeLoad(t,r,i)}catch{i()}}waitForIframes(t,r){let i=0;this.forEachIframe(t,()=>!0,n=>{i++,this.waitForIframes(n.querySelector("html"),()=>{--i||r()})},n=>{n||r()})}forEachIframe(t,r,i,n=()=>{}){let a=t.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let d=()=>{--s<=0&&n(l)};s||d(),a.forEach(p=>{e.matches(p,this.exclude)?d():this.onIframeReady(p,h=>{r(p)&&(l++,i(h)),d()},d)})}createIterator(t,r,i){return document.createNodeIterator(t,r,i,!1)}createInstanceOnIframe(t){return new e(t.querySelector("html"),this.iframes)}compareNodeIframe(t,r,i){let n=t.compareDocumentPosition(i),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(r!==null){let s=r.compareDocumentPosition(i),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(t){let r=t.previousNode(),i;return r===null?i=t.nextNode():i=t.nextNode()&&t.nextNode(),{prevNode:r,node:i}}checkIframeFilter(t,r,i,n){let a=!1,s=!1;return n.forEach((l,d)=>{l.val===i&&(a=d,s=l.handled)}),this.compareNodeIframe(t,r,i)?(a===!1&&!s?n.push({val:i,handled:!0}):a!==!1&&!s&&(n[a].handled=!0),!0):(a===!1&&n.push({val:i,handled:!1}),!1)}handleOpenIframes(t,r,i,n){t.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(r,i,n)})})}iterateThroughNodes(t,r,i,n,a){let s=this.createIterator(r,t,n),l=[],d=[],p,h,f=()=>({prevNode:h,node:p}=this.getIteratorNode(s),p);for(;f();)this.iframes&&this.forEachIframe(r,m=>this.checkIframeFilter(p,h,m,l),m=>{this.createInstanceOnIframe(m).forEachNode(t,v=>d.push(v),n)}),d.push(p);d.forEach(m=>{i(m)}),this.iframes&&this.handleOpenIframes(l,t,i,n),a()}forEachNode(t,r,i,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let d=()=>{this.iterateThroughNodes(t,l,r,i,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,d):d()})}};var Mo=class{constructor(t){this.ctx=t,this.ie=!1;let r=window.navigator.userAgent;(r.indexOf("MSIE")>-1||r.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(t){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},t)}get opt(){return this._opt}get iterator(){return new Sr(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(t,r="debug"){let i=this.opt.log;this.opt.debug&&typeof i=="object"&&typeof i[r]=="function"&&i[r](`mark.js: ${t}`)}escapeStr(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(t){return this.opt.wildcards!=="disabled"&&(t=this.setupWildcardsRegExp(t)),t=this.escapeStr(t),Object.keys(this.opt.synonyms).length&&(t=this.createSynonymsRegExp(t)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),this.opt.diacritics&&(t=this.createDiacriticsRegExp(t)),t=this.createMergedBlanksRegExp(t),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.createJoinersRegExp(t)),this.opt.wildcards!=="disabled"&&(t=this.createWildcardsRegExp(t)),t=this.createAccuracyRegExp(t),t}createSynonymsRegExp(t){let r=this.opt.synonyms,i=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in r)if(r.hasOwnProperty(a)){let s=r[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&d!==""&&(t=t.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(d)})`,`gm${i}`),n+`(${this.processSynomyms(l)}|${this.processSynomyms(d)})`+n))}return t}processSynomyms(t){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),t}setupWildcardsRegExp(t){return t=t.replace(/(?:\\)*\?/g,r=>r.charAt(0)==="\\"?"?":""),t.replace(/(?:\\)*\*/g,r=>r.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(t){let r=this.opt.wildcards==="withSpaces";return t.replace(/\u0001/g,r?"[\\S\\s]?":"\\S?").replace(/\u0002/g,r?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(t){return t.replace(/[^(|)\\]/g,(r,i,n)=>{let a=n.charAt(i+1);return/[(|)\\]/.test(a)||a===""?r:r+"\0"})}createJoinersRegExp(t){let r=[],i=this.opt.ignorePunctuation;return Array.isArray(i)&&i.length&&r.push(this.escapeStr(i.join(""))),this.opt.ignoreJoiners&&r.push("\\u00ad\\u200b\\u200c\\u200d"),r.length?t.split(/\u0000+/).join(`[${r.join("")}]*`):t}createDiacriticsRegExp(t){let r=this.opt.caseSensitive?"":"i",i=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"],n=[];return t.split("").forEach(a=>{i.every(s=>{if(s.indexOf(a)!==-1){if(n.indexOf(s)>-1)return!1;t=t.replace(new RegExp(`[${s}]`,`gm${r}`),`[${s}]`),n.push(s)}return!0})}),t}createMergedBlanksRegExp(t){return t.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(t){let r="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",i=this.opt.accuracy,n=typeof i=="string"?i:i.value,a=typeof i=="string"?[]:i.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),n){case"partially":default:return`()(${t})`;case"complementary":return s="\\s"+(s||this.escapeStr(r)),`()([^${s}]*${t}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${t})(?=$|\\s${s})`}}getSeparatedKeywords(t){let r=[];return t.forEach(i=>{this.opt.separateWordSearch?i.split(" ").forEach(n=>{n.trim()&&r.indexOf(n)===-1&&r.push(n)}):i.trim()&&r.indexOf(i)===-1&&r.push(i)}),{keywords:r.sort((i,n)=>n.length-i.length),length:r.length}}isNumeric(t){return Number(parseFloat(t))==t}checkRanges(t){if(!Array.isArray(t)||Object.prototype.toString.call(t[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(t),[];let r=[],i=0;return t.sort((n,a)=>n.start-a.start).forEach(n=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(n,i);l&&(n.start=a,n.length=s-a,r.push(n),i=s)}),r}callNoMatchOnInvalidRanges(t,r){let i,n,a=!1;return t&&typeof t.start<"u"?(i=parseInt(t.start,10),n=i+parseInt(t.length,10),this.isNumeric(t.start)&&this.isNumeric(t.length)&&n-r>0&&n-i>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(t)}`),this.opt.noMatch(t))):(this.log(`Ignoring invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)),{start:i,end:n,valid:a}}checkWhitespaceRanges(t,r,i){let n,a=!0,s=i.length,l=r-s,d=parseInt(t.start,10)-l;return d=d>s?s:d,n=d+parseInt(t.length,10),n>s&&(n=s,this.log(`End range automatically set to the max value of ${s}`)),d<0||n-d<0||d>s||n>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)):i.substring(d,n).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(t)),this.opt.noMatch(t)),{start:d,end:n,valid:a}}getTextNodes(t){let r="",i=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{i.push({start:r.length,end:(r+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{t({value:r,nodes:i})})}matchesExclude(t){return Sr.matches(t,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(t,r,i){let n=this.opt.element?this.opt.element:"mark",a=t.splitText(r),s=a.splitText(i-r),l=document.createElement(n);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(t,r,i,n,a){t.nodes.every((s,l)=>{let d=t.nodes[l+1];if(typeof d>"u"||d.start>r){if(!n(s.node))return!1;let p=r-s.start,h=(i>s.end?s.end:i)-s.start,f=t.value.substr(0,s.start),m=t.value.substr(h+s.start);if(s.node=this.wrapRangeInTextNode(s.node,p,h),t.value=f+m,t.nodes.forEach((v,x)=>{x>=l&&(t.nodes[x].start>0&&x!==l&&(t.nodes[x].start-=h),t.nodes[x].end-=h)}),i-=h,a(s.node.previousSibling,s.start),i>s.end)r=s.end;else return!1}return!0})}wrapMatches(t,r,i,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let p;for(;(p=t.exec(d.textContent))!==null&&p[s]!=="";){if(!i(p[s],d))continue;let h=p.index;if(s!==0)for(let f=1;f<s;f++)h+=p[f].length;d=this.wrapRangeInTextNode(d,h,h+p[s].length),n(d.previousSibling),t.lastIndex=0}}),a()})}wrapMatchesAcrossElements(t,r,i,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{let d;for(;(d=t.exec(l.value))!==null&&d[s]!=="";){let p=d.index;if(s!==0)for(let f=1;f<s;f++)p+=d[f].length;let h=p+d[s].length;this.wrapRangeInMappedTextNode(l,p,h,f=>i(d[s],f),(f,m)=>{t.lastIndex=m,n(f)})}a()})}wrapRangeFromIndex(t,r,i,n){this.getTextNodes(a=>{let s=a.value.length;t.forEach((l,d)=>{let{start:p,end:h,valid:f}=this.checkWhitespaceRanges(l,s,a.value);f&&this.wrapRangeInMappedTextNode(a,p,h,m=>r(m,l,a.value.substring(p,h),d),m=>{i(m,l)})}),n()})}unwrapMatches(t){let r=t.parentNode,i=document.createDocumentFragment();for(;t.firstChild;)i.appendChild(t.removeChild(t.firstChild));r.replaceChild(i,t),this.ie?this.normalizeTextNode(r):r.normalize()}normalizeTextNode(t){if(t){if(t.nodeType===3)for(;t.nextSibling&&t.nextSibling.nodeType===3;)t.nodeValue+=t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);else this.normalizeTextNode(t.firstChild);this.normalizeTextNode(t.nextSibling)}}markRegExp(t,r){this.opt=r,this.log(`Searching with expression "${t}"`);let i=0,n="wrapMatches",a=s=>{i++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](t,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,i),a,()=>{i===0&&this.opt.noMatch(t),this.opt.done(i)})}mark(t,r){this.opt=r;let i=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof t=="string"?[t]:t),l=this.opt.caseSensitive?"":"i",d=p=>{let h=new RegExp(this.createRegExp(p),`gm${l}`),f=0;this.log(`Searching with expression "${h}"`),this[n](h,1,(m,v)=>this.opt.filter(v,p,i,f),m=>{f++,i++,this.opt.each(m)},()=>{f===0&&this.opt.noMatch(p),a[s-1]===p?this.opt.done(i):d(a[a.indexOf(p)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),s===0?this.opt.done(i):d(a[0])}markRanges(t,r){this.opt=r;let i=0,n=this.checkRanges(t);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(a,s,l,d)=>this.opt.filter(a,s,l,d),(a,s)=>{i++,this.opt.each(a,s)},()=>{this.opt.done(i)})):this.opt.done(i)}unmark(t){this.opt=t;let r=this.opt.element?this.opt.element:"*";r+="[data-markjs]",this.opt.className&&(r+=`.${this.opt.className}`),this.log(`Removal selector "${r}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,i=>{this.unwrapMatches(i)},i=>{let n=Sr.matches(i,r),a=this.matchesExclude(i);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Ya(e){let t=new Mo(e);return this.mark=(r,i)=>(t.mark(r,i),this),this.markRegExp=(r,i)=>(t.markRegExp(r,i),this),this.markRanges=(r,i)=>(t.markRanges(r,i),this),this.unmark=r=>(t.unmark(r),this),this}var yf=Ya,Ac=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),gf=$`
8
8
  .highlight-html-match {
9
- background: ${wc};
9
+ background: ${Ac};
10
10
  }
11
- `;function Ya(e,t,r){var i,n;let a=e.getAttribute("data-highlight-html-query");if((a??"")!==(t??"")){let s=new yf(e);if(s.unmark(),t&&t.trim()){let l={className:(i=r?.className)!==null&&i!==void 0?i:"highlight-html-match"};r?.attributes!=null&&(l.each=p=>{for(let h in r.attributes)p.setAttribute(h,r.attributes[h])}),s.mark(t.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((n=t.match(/"[^"]+"/g))!==null&&n!==void 0?n:[]).forEach(p=>s.mark(p.replace(/"/g,""),{...l,separateWordSearch:!1}))}}e.setAttribute("data-highlight-html-query",t??"")}var Qa={};ot(Qa,{noTextInputDefaultClearButton:()=>Ja,noTextSelect:()=>Or,safariEllipsisFix:()=>Cr,wordWrap:()=>bf});var Or=$`
11
+ `;function Xa(e,t,r){var i,n;let a=e.getAttribute("data-highlight-html-query");if((a??"")!==(t??"")){let s=new yf(e);if(s.unmark(),t&&t.trim()){let l={className:(i=r?.className)!==null&&i!==void 0?i:"highlight-html-match"};r?.attributes!=null&&(l.each=p=>{for(let h in r.attributes)p.setAttribute(h,r.attributes[h])}),s.mark(t.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((n=t.match(/"[^"]+"/g))!==null&&n!==void 0?n:[]).forEach(p=>s.mark(p.replace(/"/g,""),{...l,separateWordSearch:!1}))}}e.setAttribute("data-highlight-html-query",t??"")}var ts={};ot(ts,{noTextInputDefaultClearButton:()=>Qa,noTextSelect:()=>Or,safariEllipsisFix:()=>Cr,wordWrap:()=>bf});var Or=$`
12
12
  .ft-no-text-select {
13
13
  -webkit-touch-callout: none;
14
14
  -webkit-user-select: none;
@@ -40,14 +40,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
40
40
  display: inline-block;
41
41
  width: 0;
42
42
  }
43
- `,Ja=$`
43
+ `,Qa=$`
44
44
  input::-webkit-search-cancel-button,
45
45
  input::-webkit-search-decoration,
46
46
  input::-webkit-search-results-button,
47
47
  input::-webkit-search-results-decoration {
48
48
  display: none;
49
49
  }
50
- `;var Ac={};var ts={};ot(ts,{ParametrizedLabelResolver:()=>Mo});var Mo=class e{constructor(t,r){this.defaultLabels=t,this.labels=r}resolve(t,...r){var i,n;t=this.resolvePluralKey(t,r);let a=(n=(i=this.labels[t])!==null&&i!==void 0?i:this.defaultLabels[t])!==null&&n!==void 0?n:"";return e.replaceParameters(a,...r)}static replaceParameters(t,...r){return r.forEach((i,n)=>t=t.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>e.formatValue(i,s))),t}resolvePluralKey(t,r){for(let i of r)if(typeof i=="number"){let n=`${String(t)}[\\=${i}]`;if(n in this.labels||n in this.defaultLabels)return n}return t}static formatValue(t,r){return t instanceof Date?e.formatDate(t,r):t??""}static formatDate(t,r){let i=n=>r?.includes("date")?t.toLocaleDateString(n):r?.includes("time")?t.toLocaleTimeString(n):t.toLocaleString(n);try{return i(document.documentElement.lang)}catch{return i()}}};var As={};ot(As,{FtCommandQueue:()=>Bo,FtLitElementRedux:()=>Yt,FtReduxStore:()=>Pe,ReduxWatcher:()=>ki,clearAllStores:()=>rh,isFtReduxStore:()=>Er,redux:()=>dt,reduxEventListener:()=>Uo,reduxReactive:()=>vf,watch:()=>oh});var vf=()=>(e,t)=>{var r;let i=e.constructor;i.reduxReactiveProperties=new Set(i.reduxReactiveProperties),(r=i.reduxReactiveProperties)===null||r===void 0||r.add(t)},dt=e=>{let t=e??{};return(r,i)=>{var n;let a={hasChanged:mr,attribute:!1,...t};g(a)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=t.selector)!==null&&n!==void 0?n:l=>l[i],store:t.store})}},Uo=e=>(t,r)=>{let i=t.constructor;i.reduxEventListeners=new Map(i.reduxEventListeners),i.reduxEventListeners.set(r,e)};var Bo=class{constructor(){this.queue=[]}add(t,r=!1){r&&(this.queue=this.queue.filter(i=>i.type!==t.type)),this.queue.push(t)}consume(t){let r=this.queue.find(i=>i.type===t);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}};function Er(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var _c,Rc,Tc,Fo=Symbol("internalReduxEventsUnsubscribers"),We=Symbol("internalStoresUnsubscribers"),wr=Symbol("internalStores"),Yt=class extends j{constructor(){super(...arguments),this[_c]=new Map,this[Rc]=new Map,this[Tc]=new Map}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(r=>t.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[wr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[wr].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[wr].get(t)}addStore(t,r){var i;r=(i=r??(Er(t)?t.name:void 0))!==null&&i!==void 0?i:"default-store",this.unsubscribeFromStore(r),this[wr].set(r,t),this.subscribeToStore(r,t),this.updateFromStores()}removeStore(t){let r=typeof t=="string"?t:t.name;this.unsubscribeFromStore(r),this[wr].delete(r)}setupStores(){this.unsubscribeFromStores(),this[wr].forEach((t,r)=>this.subscribeToStore(r,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,r)=>{let i=this.constructor.getPropertyOptions(r);if(!i?.attribute||!this.hasAttribute(typeof i?.attribute=="string"?i.attribute:r)){let n=this.getStore(t.store);n&&(t.store?this[We].has(t.store):this[We].size>0)&&(this[r]=t.selector(n.getState(),this))}})}subscribeToStore(t,r){var i;this[We].set(t,r.subscribe(()=>this.updateFromStores())),this[Fo].set(t,[]),Er(r)&&r.eventBus&&((i=this.reduxConstructor.reduxEventListeners)===null||i===void 0||i.forEach((n,a)=>{if(typeof this[a]=="function"&&(!n.store||r.name===n.store)){let s=l=>this[a](l);r.addEventListener(n.eventName,s),this[Fo].get(t).push(()=>r.removeEventListener(n.eventName,s))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[We].forEach((t,r)=>this.unsubscribeFromStore(r))}unsubscribeFromStore(t){var r;this[We].has(t)&&this[We].get(t)(),this[We].delete(t),(r=this[Fo].get(t))===null||r===void 0||r.forEach(i=>i()),this[Fo].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};_c=We,Rc=wr,Tc=Fo;Yt.reduxProperties=new Map;Yt.reduxReactiveProperties=new Set;Yt.reduxEventListeners=new Map;function Xt(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];if(0)var n,a;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ne(e){return!!e&&!!e[pt]}function ae(e){var t;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var i=Object.getPrototypeOf(r);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===_f}(e)||Array.isArray(e)||!!e[Dc]||!!(!((t=e.constructor)===null||t===void 0)&&t[Dc])||cs(e)||ds(e))}function Ar(e,t,r){r===void 0&&(r=!1),Gr(e)===0?(r?Object.keys:jr)(e).forEach(function(i){r&&typeof i=="symbol"||t(i,e[i],e)}):e.forEach(function(i,n){return t(n,i,e)})}function Gr(e){var t=e[pt];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:cs(e)?2:ds(e)?3:0}function Vr(e,t){return Gr(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function xf(e,t){return Gr(e)===2?e.get(t):e[t]}function Mc(e,t,r){var i=Gr(e);i===2?e.set(t,r):i===3?e.add(r):e[t]=r}function Uc(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function cs(e){return wf&&e instanceof Map}function ds(e){return Af&&e instanceof Set}function He(e){return e.o||e.t}function ps(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Wc(e);delete t[pt];for(var r=jr(t),i=0;i<r.length;i++){var n=r[i],a=t[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[n]})}return Object.create(Object.getPrototypeOf(e),t)}function us(e,t){return t===void 0&&(t=!1),fs(e)||Ne(e)||!ae(e)||(Gr(e)>1&&(e.set=e.add=e.clear=e.delete=Sf),Object.freeze(e),t&&Ar(e,function(r,i){return us(i,!0)},!0)),e}function Sf(){Xt(2)}function fs(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function ge(e){var t=ls[e];return t||Xt(18,e),t}function Of(e,t){ls[e]||(ls[e]=t)}function ns(){return Ho}function es(e,t){t&&(ge("Patches"),e.u=[],e.s=[],e.v=t)}function Ri(e){as(e),e.p.forEach(Cf),e.p=null}function as(e){e===Ho&&(Ho=e.l)}function Ic(e){return Ho={p:[],l:Ho,h:e,m:!0,_:0}}function Cf(e){var t=e[pt];t.i===0||t.i===1?t.j():t.g=!0}function rs(e,t){t._=t.p.length;var r=t.p[0],i=e!==void 0&&e!==r;return t.h.O||ge("ES5").S(t,e,i),i?(r[pt].P&&(Ri(t),Xt(4)),ae(e)&&(e=Ti(t,e),t.l||Ii(t,e)),t.u&&ge("Patches").M(r[pt].t,e,t.u,t.s)):e=Ti(t,r,[]),Ri(t),t.u&&t.v(t.u,t.s),e!==Fc?e:void 0}function Ti(e,t,r){if(fs(t))return t;var i=t[pt];if(!i)return Ar(t,function(l,d){return Nc(e,i,t,l,d,r)},!0),t;if(i.A!==e)return t;if(!i.P)return Ii(e,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=ps(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),Ar(a,function(l,d){return Nc(e,i,n,l,d,r,s)}),Ii(e,n,!1),r&&e.u&&ge("Patches").N(i,r,e.u,e.s)}return i.o}function Nc(e,t,r,i,n,a,s){if(Ne(n)){var l=Ti(e,n,a&&t&&t.i!==3&&!Vr(t.R,i)?a.concat(i):void 0);if(Mc(r,i,l),!Ne(l))return;e.m=!1}else s&&r.add(n);if(ae(n)&&!fs(n)){if(!e.h.D&&e._<1)return;Ti(e,n),t&&t.A.l||Ii(e,n)}}function Ii(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&us(t,r)}function os(e,t){var r=e[pt];return(r?He(r):e)[t]}function Pc(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var i=Object.getOwnPropertyDescriptor(r,t);if(i)return i;r=Object.getPrototypeOf(r)}}function ze(e){e.P||(e.P=!0,e.l&&ze(e.l))}function is(e){e.o||(e.o=ps(e.t))}function ss(e,t,r){var i=cs(t)?ge("MapSet").F(t,r):ds(t)?ge("MapSet").T(t,r):e.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:ns(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},d=l,p=zo;s&&(d=[l],p=Wo);var h=Proxy.revocable(d,p),f=h.revoke,m=h.proxy;return l.k=m,l.j=f,m}(t,r):ge("ES5").J(t,r);return(r?r.A:ns()).p.push(i),i}function Ef(e){return Ne(e)||Xt(22,e),function t(r){if(!ae(r))return r;var i,n=r[pt],a=Gr(r);if(n){if(!n.P&&(n.i<4||!ge("ES5").K(n)))return n.t;n.I=!0,i=Lc(r,a),n.I=!1}else i=Lc(r,a);return Ar(i,function(s,l){n&&xf(n.t,s)===l||Mc(i,s,t(l))}),a===3?new Set(i):i}(e)}function Lc(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return ps(e)}function Bc(){function e(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[pt];return zo.get(p,s)},set:function(p){var h=this[pt];zo.set(h,s,p)}},d}function t(s){for(var l=s.length-1;l>=0;l--){var d=s[l][pt];if(!d.P)switch(d.i){case 5:i(d)&&ze(d);break;case 4:r(d)&&ze(d)}}}function r(s){for(var l=s.t,d=s.k,p=jr(d),h=p.length-1;h>=0;h--){var f=p[h];if(f!==pt){var m=l[f];if(m===void 0&&!Vr(l,f))return!0;var v=d[f],x=v&&v[pt];if(x?x.t!==m:!Uc(v,m))return!0}}var E=!!l[pt];return p.length!==jr(l).length+(E?0:1)}function i(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function n(s){s.g&&Xt(3,JSON.stringify(He(s)))}var a={};Of("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(f,m){if(f){for(var v=Array(m.length),x=0;x<m.length;x++)Object.defineProperty(v,""+x,e(x,!0));return v}var E=Wc(m);delete E[pt];for(var R=jr(E),I=0;I<R.length;I++){var P=R[I];E[P]=e(P,f||!!E[P].enumerable)}return Object.create(Object.getPrototypeOf(m),E)}(d,s),h={i:d?5:4,A:l?l.A:ns(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,pt,{value:h,writable:!0}),p},S:function(s,l,d){d?Ne(l)&&l[pt].A===s&&t(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var f=h[pt];if(f){var m=f.t,v=f.k,x=f.R,E=f.i;if(E===4)Ar(v,function(O){O!==pt&&(m[O]!==void 0||Vr(m,O)?x[O]||p(v[O]):(x[O]=!0,ze(f)))}),Ar(m,function(O){v[O]!==void 0||Vr(v,O)||(x[O]=!1,ze(f))});else if(E===5){if(i(f)&&(ze(f),x.length=!0),v.length<m.length)for(var R=v.length;R<m.length;R++)x[R]=!1;else for(var I=m.length;I<v.length;I++)x[I]=!0;for(var P=Math.min(v.length,m.length),w=0;w<P;w++)v.hasOwnProperty(w)||(x[w]=!0),x[w]===void 0&&p(v[w])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?r(s):i(s)}})}var kc,Ho,hs=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",wf=typeof Map<"u",Af=typeof Set<"u",$c=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Fc=hs?Symbol.for("immer-nothing"):((kc={})["immer-nothing"]=!0,kc),Dc=hs?Symbol.for("immer-draftable"):"__$immer_draftable",pt=hs?Symbol.for("immer-state"):"__$immer_state";var _f=""+Object.prototype.constructor,jr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Wc=Object.getOwnPropertyDescriptors||function(e){var t={};return jr(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},ls={},zo={get:function(e,t){if(t===pt)return e;var r=He(e);if(!Vr(r,t))return function(n,a,s){var l,d=Pc(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(n.k):void 0}(e,r,t);var i=r[t];return e.I||!ae(i)?i:i===os(e.t,t)?(is(e),e.o[t]=ss(e.A.h,i,e)):i},has:function(e,t){return t in He(e)},ownKeys:function(e){return Reflect.ownKeys(He(e))},set:function(e,t,r){var i=Pc(He(e),t);if(i?.set)return i.set.call(e.k,r),!0;if(!e.P){var n=os(He(e),t),a=n?.[pt];if(a&&a.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(Uc(r,n)&&(r!==void 0||Vr(e.t,t)))return!0;is(e),ze(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return os(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,is(e),ze(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=He(e),i=Reflect.getOwnPropertyDescriptor(r,t);return i&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:i.enumerable,value:r[t]}},defineProperty:function(){Xt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Xt(12)}},Wo={};Ar(zo,function(e,t){Wo[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Wo.deleteProperty=function(e,t){return Wo.set.call(this,e,t,void 0)},Wo.set=function(e,t,r){return zo.set.call(this,e[0],t,r,e[0])};var Rf=function(){function e(r){var i=this;this.O=$c,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var l=a;a=n;var d=i;return function(E){var R=this;E===void 0&&(E=l);for(var I=arguments.length,P=Array(I>1?I-1:0),w=1;w<I;w++)P[w-1]=arguments[w];return d.produce(E,function(O){var A;return(A=a).call.apply(A,[R,O].concat(P))})}}var p;if(typeof a!="function"&&Xt(6),s!==void 0&&typeof s!="function"&&Xt(7),ae(n)){var h=Ic(i),f=ss(i,n,void 0),m=!0;try{p=a(f),m=!1}finally{m?Ri(h):as(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(E){return es(h,s),rs(E,h)},function(E){throw Ri(h),E}):(es(h,s),rs(p,h))}if(!n||typeof n!="object"){if((p=a(n))===void 0&&(p=n),p===Fc&&(p=void 0),i.D&&us(p,!0),s){var v=[],x=[];ge("Patches").M(n,p,v,x),s(v,x)}return p}Xt(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(p){for(var h=arguments.length,f=Array(h>1?h-1:0),m=1;m<h;m++)f[m-1]=arguments[m];return i.produceWithPatches(p,function(v){return n.apply(void 0,[v].concat(f))})};var s,l,d=i.produce(n,a,function(p,h){s=p,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,s,l]}):[d,s,l]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){ae(r)||Xt(8),Ne(r)&&(r=Ef(r));var i=Ic(this),n=ss(this,r,void 0);return n[pt].C=!0,as(i),n},t.finishDraft=function(r,i){var n=r&&r[pt],a=n.A;return es(a,i),rs(void 0,a)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!$c&&Xt(20),this.O=r},t.applyPatches=function(r,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}n>-1&&(i=i.slice(n+1));var s=ge("Patches").$;return Ne(r)?s(r,i):this.produce(r,function(l){return s(l,i)})},e}(),qt=new Rf,Tf=qt.produce,zv=qt.produceWithPatches.bind(qt),Vv=qt.setAutoFreeze.bind(qt),jv=qt.setUseProxies.bind(qt),Gv=qt.applyPatches.bind(qt),Kv=qt.createDraft.bind(qt),Zv=qt.finishDraft.bind(qt),Ni=Tf;function Ve(e){"@babel/helpers - typeof";return Ve=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ve(e)}function ms(e,t){if(Ve(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(Ve(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ys(e){var t=ms(e,"string");return Ve(t)==="symbol"?t:String(t)}function gs(e,t,r){return t=ys(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function Pi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hc(Object(r),!0).forEach(function(i){gs(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hc(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function $t(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var zc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),bs=function(){return Math.random().toString(36).substring(7).split("").join(".")},Li={INIT:"@@redux/INIT"+bs(),REPLACE:"@@redux/REPLACE"+bs(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+bs()}};function If(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function vs(e,t,r){var i;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error($t(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error($t(1));return r(vs)(e,t)}if(typeof e!="function")throw new Error($t(2));var n=e,a=t,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function h(){if(d)throw new Error($t(3));return a}function f(E){if(typeof E!="function")throw new Error($t(4));if(d)throw new Error($t(5));var R=!0;return p(),l.push(E),function(){if(R){if(d)throw new Error($t(6));R=!1,p();var P=l.indexOf(E);l.splice(P,1),s=null}}}function m(E){if(!If(E))throw new Error($t(7));if(typeof E.type>"u")throw new Error($t(8));if(d)throw new Error($t(9));try{d=!0,a=n(a,E)}finally{d=!1}for(var R=s=l,I=0;I<R.length;I++){var P=R[I];P()}return E}function v(E){if(typeof E!="function")throw new Error($t(10));n=E,m({type:Li.REPLACE})}function x(){var E,R=f;return E={subscribe:function(P){if(typeof P!="object"||P===null)throw new Error($t(11));function w(){P.next&&P.next(h())}w();var O=R(w);return{unsubscribe:O}}},E[zc]=function(){return this},E}return m({type:Li.INIT}),i={dispatch:m,subscribe:f,getState:h,replaceReducer:v},i[zc]=x,i}function Nf(e){Object.keys(e).forEach(function(t){var r=e[t],i=r(void 0,{type:Li.INIT});if(typeof i>"u")throw new Error($t(12));if(typeof r(void 0,{type:Li.PROBE_UNKNOWN_ACTION()})>"u")throw new Error($t(13))})}function Vc(e){for(var t=Object.keys(e),r={},i=0;i<t.length;i++){var n=t[i];typeof e[n]=="function"&&(r[n]=e[n])}var a=Object.keys(r),s,l;try{Nf(r)}catch(d){l=d}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(0)var f;for(var m=!1,v={},x=0;x<a.length;x++){var E=a[x],R=r[E],I=p[E],P=R(I,h);if(typeof P>"u"){var w=h&&h.type;throw new Error($t(14))}v[E]=P,m=m||P!==I}return m=m||a.length!==Object.keys(p).length,m?v:p}}function Kr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(i){return i}:t.length===1?t[0]:t.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function jc(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error($t(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=t.map(function(d){return d(s)});return a=Kr.apply(void 0,l)(n.dispatch),Pi(Pi({},n),{},{dispatch:a})}}}function Gc(e){var t=function(i){var n=i.dispatch,a=i.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,e):s(l)}}};return t}var Kc=Gc();Kc.withExtraArgument=Gc;var xs=Kc;var Jc=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),Pf=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,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(p){return function(h){return d([p,h])}}function d(p){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,n&&(a=p[0]&2?n.return:p[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,p[1])).done)return a;switch(n=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,n=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){r.label=p[1];break}if(p[0]===6&&r.label<a[1]){r.label=a[1],a=p;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(p);break}a[2]&&r.ops.pop(),r.trys.pop();continue}p=t.call(e,r)}catch(h){p=[6,h],n=0}finally{i=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Zr=function(e,t){for(var r=0,i=t.length,n=e.length;r<i;r++,n++)e[n]=t[r];return e},Lf=Object.defineProperty,kf=Object.defineProperties,$f=Object.getOwnPropertyDescriptors,Zc=Object.getOwnPropertySymbols,Df=Object.prototype.hasOwnProperty,Mf=Object.prototype.propertyIsEnumerable,qc=function(e,t,r){return t in e?Lf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},je=function(e,t){for(var r in t||(t={}))Df.call(t,r)&&qc(e,r,t[r]);if(Zc)for(var i=0,n=Zc(t);i<n.length;i++){var r=n[i];Mf.call(t,r)&&qc(e,r,t[r])}return e},Ss=function(e,t){return kf(e,$f(t))},Uf=function(e,t,r){return new Promise(function(i,n){var a=function(d){try{l(r.next(d))}catch(p){n(p)}},s=function(d){try{l(r.throw(d))}catch(p){n(p)}},l=function(d){return d.done?i(d.value):Promise.resolve(d.value).then(a,s)};l((r=r.apply(e,t)).next())})};var Bf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Kr:Kr.apply(null,arguments)},ux=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Ff(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}var Wf=function(e){Jc(t,e);function t(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=e.apply(this,r)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Zr([void 0],r[0].concat(this)))):new(t.bind.apply(t,Zr([void 0],r.concat(this))))},t}(Array),Hf=function(e){Jc(t,e);function t(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=e.apply(this,r)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Zr([void 0],r[0].concat(this)))):new(t.bind.apply(t,Zr([void 0],r.concat(this))))},t}(Array);function Es(e){return ae(e)?Ni(e,function(){}):e}function zf(e){return typeof e=="boolean"}function Vf(){return function(t){return jf(t)}}function jf(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,i=e.immutableCheck,n=i===void 0?!0:i,a=e.serializableCheck,s=a===void 0?!0:a,l=new Wf;if(r&&(zf(r)?l.push(xs):l.push(xs.withExtraArgument(r.extraArgument))),0){if(n)var d;if(s)var p}return l}var Os=!0;function Qc(e){var t=Vf(),r=e||{},i=r.reducer,n=i===void 0?void 0:i,a=r.middleware,s=a===void 0?t():a,l=r.devTools,d=l===void 0?!0:l,p=r.preloadedState,h=p===void 0?void 0:p,f=r.enhancers,m=f===void 0?void 0:f,v;if(typeof n=="function")v=n;else if(Ff(n))v=Vc(n);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 x=s;if(typeof x=="function"&&(x=x(t),!Os&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Os&&x.some(function(O){return typeof O!="function"}))throw new Error("each middleware provided to configureStore must be a function");var E=jc.apply(void 0,x),R=Kr;d&&(R=Bf(je({trace:!Os},typeof d=="object"&&d)));var I=new Hf(E),P=I;Array.isArray(m)?P=Zr([E],m):typeof m=="function"&&(P=m(I));var w=R.apply(void 0,P);return vs(v,h,w)}function Ge(e,t){function r(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(t){var a=t.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return je(je({type:e,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:e,payload:i[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(i){return i.type===e},r}function td(e){var t={},r=[],i,n={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=s,n},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return e(n),[t,r,i]}function Gf(e){return typeof e=="function"}function Kf(e,t,r,i){r===void 0&&(r=[]);var n=typeof t=="function"?td(t):[t,r,i],a=n[0],s=n[1],l=n[2],d;if(Gf(e))d=function(){return Es(e())};else{var p=Es(e);d=function(){return p}}function h(f,m){f===void 0&&(f=d());var v=Zr([a[m.type]],s.filter(function(x){var E=x.matcher;return E(m)}).map(function(x){var E=x.reducer;return E}));return v.filter(function(x){return!!x}).length===0&&(v=[l]),v.reduce(function(x,E){if(E)if(Ne(x)){var R=x,I=E(R,m);return I===void 0?x:I}else{if(ae(x))return Ni(x,function(P){return E(P,m)});var I=E(x,m);if(I===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return I}return x},f)}return h.getInitialState=d,h}function Zf(e,t){return e+"/"+t}function ed(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:Es(e.initialState),i=e.reducers||{},n=Object.keys(i),a={},s={},l={};n.forEach(function(h){var f=i[h],m=Zf(t,h),v,x;"reducer"in f?(v=f.reducer,x=f.prepare):v=f,a[h]=v,s[m]=v,l[h]=x?Ge(m,x):Ge(m)});function d(){var h=typeof e.extraReducers=="function"?td(e.extraReducers):[e.extraReducers],f=h[0],m=f===void 0?{}:f,v=h[1],x=v===void 0?[]:v,E=h[2],R=E===void 0?void 0:E,I=je(je({},m),s);return Kf(r,function(P){for(var w in I)P.addCase(w,I[w]);for(var O=0,A=x;O<A.length;O++){var L=A[O];P.addMatcher(L.matcher,L.reducer)}R&&P.addDefaultCase(R)})}var p;return{name:t,reducer:function(h,f){return p||(p=d()),p(h,f)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var qf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Yf=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=qf[Math.random()*64|0];return t},Xf=["name","message","stack","code"],Cs=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),Yc=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),Jf=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,i=Xf;r<i.length;r++){var n=i[r];typeof e[n]=="string"&&(t[n]=e[n])}return t}return{message:String(e)}},yx=function(){function e(t,r,i){var n=Ge(t+"/fulfilled",function(h,f,m,v){return{payload:h,meta:Ss(je({},v||{}),{arg:m,requestId:f,requestStatus:"fulfilled"})}}),a=Ge(t+"/pending",function(h,f,m){return{payload:void 0,meta:Ss(je({},m||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=Ge(t+"/rejected",function(h,f,m,v,x){return{payload:v,error:(i&&i.serializeError||Jf)(h||"Rejected"),meta:Ss(je({},x||{}),{arg:m,requestId:f,rejectedWithValue:!!v,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function p(h){return function(f,m,v){var x=i?.idGenerator?i.idGenerator(h):Yf(),E=new d,R,I=!1;function P(O){R=O,E.abort()}var w=function(){return Uf(this,null,function(){var O,A,L,F,Z,K,U;return Pf(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),F=(O=i?.condition)==null?void 0:O.call(i,h,{getState:m,extra:v}),th(F)?[4,F]:[3,2];case 1:F=y.sent(),y.label=2;case 2:if(F===!1||E.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return I=!0,Z=new Promise(function(C,D){return E.signal.addEventListener("abort",function(){return D({name:"AbortError",message:R||"Aborted"})})}),f(a(x,h,(A=i?.getPendingMeta)==null?void 0:A.call(i,{requestId:x,arg:h},{getState:m,extra:v}))),[4,Promise.race([Z,Promise.resolve(r(h,{dispatch:f,getState:m,extra:v,requestId:x,signal:E.signal,abort:P,rejectWithValue:function(C,D){return new Cs(C,D)},fulfillWithValue:function(C,D){return new Yc(C,D)}})).then(function(C){if(C instanceof Cs)throw C;return C instanceof Yc?n(C.payload,x,h,C.meta):n(C,x,h)})])];case 3:return L=y.sent(),[3,5];case 4:return K=y.sent(),L=K instanceof Cs?s(null,x,h,K.payload,K.meta):s(K,x,h),[3,5];case 5:return U=i&&!i.dispatchConditionRejection&&s.match(L)&&L.meta.condition,U||f(L),[2,L]}})})}();return Object.assign(w,{abort:P,requestId:x,arg:h,unwrap:function(){return w.then(Qf)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:n,typePrefix:t})}return e.withTypes=function(){return e},e}();function Qf(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function th(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var rd="listener",od="completed",id="cancelled",gx="task-"+id,bx="task-"+od,vx=rd+"-"+id,xx=rd+"-"+od;var ws="listenerMiddleware";var Sx=Ge(ws+"/add"),Ox=Ge(ws+"/removeAll"),Cx=Ge(ws+"/remove");var Xc,Ex=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(Xc||(Xc=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},eh=function(e){return function(t){setTimeout(t,e)}},wx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:eh(10);Bc();window.ftReduxStores||(window.ftReduxStores={});var Pe=class e extends hr{static get(t){var r;let i=typeof t=="string"?t:t.name,n=typeof t=="string"?void 0:t,a=window.ftReduxStores[i];if(Er(a))return a;if(n==null)return;let s=ed({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),l=Qc({reducer:(d,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...p.overwrites}:s.reducer(d,p)});return window.ftReduxStores[n.name]=new e(s,l,n.eventBus)}constructor(t,r,i){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Bo;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let d=s,p=a[d];return p?(...h)=>{let f=p(...h.map(n));return this.reduxStore.dispatch(f),f}:h=>{this.setState({[d]:n(h)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function rh(){var e;for(let t of Object.values((e=window.ftReduxStores)!==null&&e!==void 0?e:{}))Er(t)&&t.clear()}var ki=class{constructor(t,r,i){this.store=t,this.valueSelector=r,this.callback=i}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let t=this.store.getState(),r=this.valueSelector(t);mr(this.lastValue,r)&&(this.callback(r,t),this.lastValue=r)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function oh(e,t,r){return new ki(e,t,r).watch()}var Ts={};ot(Ts,{scrollHelper:()=>ih});var _s,$i=new Map,Rs=class{lock(t,r){if(r){let i=$i.get(r);if(i==null||i===t)return $i.set(r,t),r}}release(t,r){r&&$i.get(r)===t&&$i.delete(r)}findFirstScrollableParent(t){var r;let i,n;for(let a of Yn(t)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){i=s;break}else l&&n==null&&(n=s)}return(r=i??n)!==null&&r!==void 0?r:document.body}elementCanScroll(t){try{return["auto","scroll"].includes(getComputedStyle(t).overflowY)}catch{return!1}}getAbsoluteScrollOffset(t,r){var i,n;let a=0;for(;r&&r.offsetParent!==t.offsetParent;)a+=(i=r.offsetTop)!==null&&i!==void 0?i:0,r=r.offsetParent;return a+((n=r?.offsetTop)!==null&&n!==void 0?n:0)-t.offsetTop}computeTopOffsetRatio(t,r){if(typeof t=="number")return t;switch(t){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(t,r){let i=this.findFirstScrollableParent(t);if(t&&this.lock(this,i)){let n=this.getAbsoluteScrollOffset(i,t),a=n-i.clientHeight+t.clientHeight,s=n,l=Ao(0,(s-i.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(r?.position,l)*(a-s)+s;i.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",t,i);this.release(this,i)}};window.FluidTopicsScrollHelper=(_s=window.FluidTopicsScrollHelper)!==null&&_s!==void 0?_s:new Rs;var ih=window.FluidTopicsScrollHelper;var Is={};ot(Is,{shadowQuerySelector:()=>nh,shadowQuerySelectorAll:()=>ah});function nh(e,t,...r){var i;let n=e.querySelector(t);for(let a of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}function ah(e,t,...r){let i=[...e.querySelectorAll(t)];for(let n of r)i=i.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(n))!==null&&l!==void 0?l:[]]});return i}var Ps={};ot(Ps,{SearchPlaceConverter:()=>Vo,SearchPlaceQueryParams:()=>it,isSearchPlaceQueryParams:()=>Pd,serializeRequest:()=>dh});var lh=Lp(ad(),1);var sd;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(sd||(sd={}));var ld;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(ld||(ld={}));var cd;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.MAP_ATTACHMENT="MAP_ATTACHMENT",e.RESOURCE="RESOURCE"})(cd||(cd={}));var dd;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(dd||(dd={}));var pd;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(pd||(pd={}));var ud;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.GEN_AI__COMPLETED_QUERY="GEN_AI__COMPLETED_QUERY",e.GEN_AI__RATE="GEN_AI__RATE",e.GENAI_CASE_DEFLECTION__START="GENAI_CASE_DEFLECTION__START",e.GENAI_CASE_DEFLECTION__OPEN_TICKET="GENAI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.TOPIC__DISPLAY="TOPIC__DISPLAY",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(ud||(ud={}));var fd;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(fd||(fd={}));var hd;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT"})(hd||(hd={}));var md;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(md||(md={}));var yd;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(yd||(yd={}));var gd;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(gd||(gd={}));var Ot;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Ot||(Ot={}));var bd;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(bd||(bd={}));var vd;(function(e){e.ASC="ASC",e.DESC="DESC"})(vd||(vd={}));var xd;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(xd||(xd={}));var Ns;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Ns||(Ns={}));var Ad=e=>Object.keys(Ns).includes(e);var Sd;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Sd||(Sd={}));var Od;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Od||(Od={}));var Cd;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Cd||(Cd={}));var Yr;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Yr||(Yr={}));var _d=e=>Object.keys(Yr).includes(e);var Ed;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(Ed||(Ed={}));var wd;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(wd||(wd={}));var st;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN",e.DEVELOPER="DEVELOPER"})(st||(st={}));var Rd;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(Rd||(Rd={}));var Td;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(Td||(Td={}));var sh={[st.PERSONAL_BOOK_SHARE_USER]:[st.PERSONAL_BOOK_USER],[st.HTML_EXPORT_USER]:[st.PERSONAL_BOOK_USER],[st.PDF_EXPORT_USER]:[st.PERSONAL_BOOK_USER],[st.KHUB_ADMIN]:[st.CONTENT_PUBLISHER],[st.ADMIN]:[st.KHUB_ADMIN,st.USERS_ADMIN,st.PORTAL_ADMIN],[st.DEVELOPER]:[st.BETA_USER,st.DEBUG_USER],[st.GENERATIVE_AI_EXPORT_USER]:[st.GENERATIVE_AI_USER]};function Id(e,t){return e===t||(sh[e]??[]).some(r=>Id(r,t))}function _r(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(i=>Id(i,t))}function ch(e){return`"${e}"`}function Nd(e){return e.startsWith('"')&&e.endsWith('"')?e.replace(/(^"+)|("+$)/g,""):e}function dh(e,t){return new Vo(e).serialize(t)}var it;(function(e){e.LOCALE="content-lang",e.QUERY="query",e.SCOPE="scope",e.FILTERS="filters",e.VIRTUAL_FIELD="virtual-field",e.PERIOD="period",e.VALUE_FILTERS="value-filters",e.DATE_FILTERS="date-filters",e.RANGE_FILTERS="range-filters",e.SORT="sort",e.PER_PAGE="per-page"})(it||(it={}));var ph=new Set(Object.values(it));function Pd(e){return ph.has(e)}var Vo=class{constructor(t,r={},i=20,n=!1,a="en-US"){this.baseUrl=t,this.predefinedSorts=r,this.defaultPerPage=i,this.allLanguagesAllowed=n,this.defaultContentLocale=a,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(t,r){return this.serializeToCurrentPageIfPossible(t,r??"/search")}serializeToCurrentPageIfPossible(t,r){let i=this.toURLSearchParams(t).toString(),n=r==null||r.trim().length===0,a=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return a.search=i,a.toString()}toURLSearchParams(t,r=!1){var i,n,a,s,l,d,p,h,f,m,v,x;let E=new URLSearchParams;t.contentLocale?(!r||t.contentLocale!==this.defaultContentLocale)&&E.append(it.LOCALE,t.contentLocale):E.append(it.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((i=t.query)===null||i===void 0?void 0:i.length)>0&&E.append(it.QUERY,t.query),t.scope&&t.scope!=="DEFAULT"&&E.append(it.SCOPE,t.scope.toLowerCase()),t.virtualField&&t.virtualField!=="EVERYWHERE"&&E.append(it.VIRTUAL_FIELD,t.virtualField.toLowerCase()),((n=t.sort)===null||n===void 0?void 0:n.length)>0&&t.sort[0].key==="ft:lastEdition"&&E.append(it.SORT,"last_update");let R=(s=(a=t.metadataFilters)===null||a===void 0?void 0:a.filter(O=>O.valueFilter))!==null&&s!==void 0?s:[];if(R.length>0){let O=R.map(A=>{var L,F;let Z=((F=(L=A.valueFilter)===null||L===void 0?void 0:L.values)!==null&&F!==void 0?F:[]).map(K=>this.escapeFilters(K)).map(K=>encodeURIComponent(ch(Nd(K)))).join("_");return`${A.key}~${Z}`}).join("*");E.append(it.VALUE_FILTERS,O)}let I=(d=(l=t.metadataFilters)===null||l===void 0?void 0:l.filter(O=>O.dateFilter))!==null&&d!==void 0?d:[];if(I.length>0){let O=I.map(A=>{var L;return`${A.key}~${(L=A.dateFilter)===null||L===void 0?void 0:L.type.toLowerCase()}`}).join("*");E.append(it.DATE_FILTERS,O)}let P=(h=(p=t.metadataFilters)===null||p===void 0?void 0:p.filter(O=>O.rangeFilter))!==null&&h!==void 0?h:[];if(P.length>0){let O=P.map(A=>{var L,F;return`${A.key}~${(L=A.rangeFilter)===null||L===void 0?void 0:L.from}_${(F=A.rangeFilter)===null||F===void 0?void 0:F.to}`}).join("*");E.append(it.RANGE_FILTERS,O)}let w=(f=t.otherQueryParams)!==null&&f!==void 0?f:{};for(let O in w)E.append(O,w[O]);return!((m=t.paging)===null||m===void 0)&&m.perPage&&((x=(v=t.paging)===null||v===void 0?void 0:v.perPage)!==null&&x!==void 0?x:this.defaultPerPage)!=this.defaultPerPage&&E.append(it.PER_PAGE,String(t.paging.perPage)),E}parse(t){var r;let i=t.split("?"),n=this.fromURLSearchParams(new URLSearchParams(i.slice(1).join("?"))),a=i[0].split("/search/")[1];return a==null?n:{...n,scope:(r=this.scopeMapping[a])!==null&&r!==void 0?r:n.scope}}fromURLSearchParams(t){var r,i,n,a,s,l,d,p;let h=t.get(it.LOCALE)==="all"?void 0:t.get(it.LOCALE),f=((r=t.get(it.VIRTUAL_FIELD))!==null&&r!==void 0?r:"EVERYWHERE").toUpperCase(),m=((i=t.get(it.SORT))!==null&&i!==void 0?i:"DEFAULT").toUpperCase(),v=(n=t.get(it.SCOPE))!==null&&n!==void 0?n:"default",x=+((a=t.get(it.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),E={};for(let R of t.keys())Pd(R)||(E[R]=t.get(R));return{contentLocale:h??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:decodeURIComponent((s=t.get(it.QUERY))!==null&&s!==void 0?s:""),scope:(l=this.scopeMapping[v])!==null&&l!==void 0?l:"DEFAULT",virtualField:Ad(f)?f:"EVERYWHERE",sort:(p=(d=this.predefinedSorts[m])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&p!==void 0?p:[],metadataFilters:this.parseCompatFilters(t),facets:[],paging:{page:1,perPage:Ao(1,isNaN(x)?this.defaultPerPage:x,1e3)},otherQueryParams:E}}parseCompatFilters(t){var r,i,n,a,s,l;let d=[];return t.has(it.FILTERS)&&(d=this.parseValueFilters((r=t.get(it.FILTERS))!==null&&r!==void 0?r:"")),(i=t.has(it.PERIOD))!==null&&i!==void 0&&i&&(d=[...d,...this.parseLegacyPeriodFilter(((n=t.get(it.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...d,...this.parseValueFilters((a=t.get(it.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=t.get(it.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=t.get(it.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(t){return this.superEscapeFilters(decodeURIComponent(t)).split("*").map(r=>r.split("~"))}parseValueFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(r=>({key:r[0],valueFilter:{values:r[1].split("_").map(Nd).map(i=>this.unescapeFilterValue(i)),negative:!1}}))}parseDateFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(r=>({key:r[0],dateFilter:{type:Yr[r[1].toUpperCase()]}}))}parseRangeFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}escapeFilters(t){for(let[r,i,n]of this.filtersEscapeMapping)t=t.replaceAll(r,i);return t}superEscapeFilters(t){for(let[r,i,n]of this.filtersEscapeMapping)t=t.replaceAll(i,n);return t}unescapeFilterValue(t){for(let[r,i,n]of this.filtersEscapeMapping)t=t.replace(n,r);return t}parseLegacyPeriodFilter(t){if(_d(t))return[{key:"ft:lastEdition",dateFilter:{type:Yr[t]}}];if(t.startsWith("CUSTOM_")){let[r,i,n]=t.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:i,to:n}}]}return[]}};var Ls={};ot(Ls,{toFtFormComponent:()=>Rr});var Ui=Symbol("elementInternals");function Rr(e,t){class r extends e{static get formAssociated(){return!0}get form(){return this[Ui].form}constructor(...n){super(n),this[Ui]=this.attachInternals(),this[Ui].role=t}setFormValue(n){this[Ui].setFormValue(n)}}return r}var ks={};ot(ks,{DateFormatter:()=>Xr});var Xr=class{static format(t,r,i,n){return window.moment?window.moment(t).locale(r).format(this.getDateFormat(i,n)):t}static getDateFormat(t,r){return t?r?"lll":"ll":r?"L LT":"L"}};var $s,Ds,Ms,Us,jo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Ms=(Ds=($s=window.safari)===null||$s===void 0?void 0:$s.pushNotification)===null||Ds===void 0?void 0:Ds.toString())!==null&&Ms!==void 0?Ms:"")==="[object SafariRemoteNotification]",uh="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Us=window.ftGlobals)!==null&&Us!==void 0?Us:{lit:Pn,litDecorators:kn,litRepeat:Dn,litClassMap:Mn,litStyleMap:Un,litUnsafeHTML:Fn,wcUtils:{...Gn,...Hn,...Kn,...ks,...Zn,...Jn,..._a,...jn,...Va,...Aa,...Za,...Ga,...Ec,...Xn,...Xa,...Qa,...Ac,...ts,...As,...ja,...Ts,...Is,...Ps,...Ls,isSafari:jo,isTouchScreen:uh,setVariable:S}};var Jt;(function(e){e.FEEDBACK="FEEDBACK",e.RATING="RATING",e.PRINT="PRINT",e.BOOKMARK="BOOKMARK",e.COLLECTIONS="COLLECTIONS",e.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Jt||(Jt={}));var fh=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},Fs=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Bs=Symbol("registerInterval");function hh(e){var t;class r extends e{constructor(){super(...arguments),this[t]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[Bs]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Bs]):this.dispatchEvent(new Fs)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=Bs,fh([H()],r.prototype,"stateManager",void 0),r}var Ze=class extends hh(Yt){};var Ld=o.extend("--ft-ripple-color","",T.colorContent),_={color:Ld,backgroundColor:o.extend("--ft-ripple-background-color","",Ld),opacityContentOnSurfacePressed:o.external(T.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.external(T.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.external(T.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.external(T.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.create("--ft-ripple-border-radius","","SIZE","0px")},kd=o.extend("--ft-ripple-color","",T.colorPrimary),$d={color:kd,backgroundColor:o.extend("--ft-ripple-background-color","",kd)},Dd=o.extend("--ft-ripple-color","",T.colorSecondary),Md={color:Dd,backgroundColor:o.extend("--ft-ripple-background-color","",Dd)},Ud=$`
50
+ `;var _c={};var es={};ot(es,{ParametrizedLabelResolver:()=>Uo});var Uo=class e{constructor(t,r){this.defaultLabels=t,this.labels=r}resolve(t,...r){var i,n;t=this.resolvePluralKey(t,r);let a=(n=(i=this.labels[t])!==null&&i!==void 0?i:this.defaultLabels[t])!==null&&n!==void 0?n:"";return e.replaceParameters(a,...r)}static replaceParameters(t,...r){return r.forEach((i,n)=>t=t.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>e.formatValue(i,s))),t}resolvePluralKey(t,r){for(let i of r)if(typeof i=="number"){let n=`${String(t)}[\\=${i}]`;if(n in this.labels||n in this.defaultLabels)return n}return t}static formatValue(t,r){return t instanceof Date?e.formatDate(t,r):t??""}static formatDate(t,r){let i=n=>r?.includes("date")?t.toLocaleDateString(n):r?.includes("time")?t.toLocaleTimeString(n):t.toLocaleString(n);try{return i(document.documentElement.lang)}catch{return i()}}};var _s={};ot(_s,{FtCommandQueue:()=>Fo,FtLitElementRedux:()=>Yt,FtReduxStore:()=>Pe,ReduxWatcher:()=>$i,clearAllStores:()=>rh,isFtReduxStore:()=>Er,redux:()=>dt,reduxEventListener:()=>Bo,reduxReactive:()=>vf,watch:()=>oh});var vf=()=>(e,t)=>{var r;let i=e.constructor;i.reduxReactiveProperties=new Set(i.reduxReactiveProperties),(r=i.reduxReactiveProperties)===null||r===void 0||r.add(t)},dt=e=>{let t=e??{};return(r,i)=>{var n;let a={hasChanged:mr,attribute:!1,...t};g(a)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=t.selector)!==null&&n!==void 0?n:l=>l[i],store:t.store})}},Bo=e=>(t,r)=>{let i=t.constructor;i.reduxEventListeners=new Map(i.reduxEventListeners),i.reduxEventListeners.set(r,e)};var Fo=class{constructor(){this.queue=[]}add(t,r=!1){r&&(this.queue=this.queue.filter(i=>i.type!==t.type)),this.queue.push(t)}consume(t){let r=this.queue.find(i=>i.type===t);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}};function Er(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Rc,Tc,Ic,Wo=Symbol("internalReduxEventsUnsubscribers"),We=Symbol("internalStoresUnsubscribers"),wr=Symbol("internalStores"),Yt=class extends j{constructor(){super(...arguments),this[Rc]=new Map,this[Tc]=new Map,this[Ic]=new Map}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(r=>t.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[wr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[wr].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[wr].get(t)}addStore(t,r){var i;r=(i=r??(Er(t)?t.name:void 0))!==null&&i!==void 0?i:"default-store",this.unsubscribeFromStore(r),this[wr].set(r,t),this.subscribeToStore(r,t),this.updateFromStores()}removeStore(t){let r=typeof t=="string"?t:t.name;this.unsubscribeFromStore(r),this[wr].delete(r)}setupStores(){this.unsubscribeFromStores(),this[wr].forEach((t,r)=>this.subscribeToStore(r,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,r)=>{let i=this.constructor.getPropertyOptions(r);if(!i?.attribute||!this.hasAttribute(typeof i?.attribute=="string"?i.attribute:r)){let n=this.getStore(t.store);n&&(t.store?this[We].has(t.store):this[We].size>0)&&(this[r]=t.selector(n.getState(),this))}})}subscribeToStore(t,r){var i;this[We].set(t,r.subscribe(()=>this.updateFromStores())),this[Wo].set(t,[]),Er(r)&&r.eventBus&&((i=this.reduxConstructor.reduxEventListeners)===null||i===void 0||i.forEach((n,a)=>{if(typeof this[a]=="function"&&(!n.store||r.name===n.store)){let s=l=>this[a](l);r.addEventListener(n.eventName,s),this[Wo].get(t).push(()=>r.removeEventListener(n.eventName,s))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[We].forEach((t,r)=>this.unsubscribeFromStore(r))}unsubscribeFromStore(t){var r;this[We].has(t)&&this[We].get(t)(),this[We].delete(t),(r=this[Wo].get(t))===null||r===void 0||r.forEach(i=>i()),this[Wo].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Rc=We,Tc=wr,Ic=Wo;Yt.reduxProperties=new Map;Yt.reduxReactiveProperties=new Set;Yt.reduxEventListeners=new Map;function Xt(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];if(0)var n,a;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ne(e){return!!e&&!!e[pt]}function ae(e){var t;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var i=Object.getPrototypeOf(r);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===_f}(e)||Array.isArray(e)||!!e[Mc]||!!(!((t=e.constructor)===null||t===void 0)&&t[Mc])||ds(e)||ps(e))}function Ar(e,t,r){r===void 0&&(r=!1),Gr(e)===0?(r?Object.keys:jr)(e).forEach(function(i){r&&typeof i=="symbol"||t(i,e[i],e)}):e.forEach(function(i,n){return t(n,i,e)})}function Gr(e){var t=e[pt];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:ds(e)?2:ps(e)?3:0}function Vr(e,t){return Gr(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function xf(e,t){return Gr(e)===2?e.get(t):e[t]}function Uc(e,t,r){var i=Gr(e);i===2?e.set(t,r):i===3?e.add(r):e[t]=r}function Bc(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function ds(e){return wf&&e instanceof Map}function ps(e){return Af&&e instanceof Set}function He(e){return e.o||e.t}function us(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Hc(e);delete t[pt];for(var r=jr(t),i=0;i<r.length;i++){var n=r[i],a=t[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[n]})}return Object.create(Object.getPrototypeOf(e),t)}function fs(e,t){return t===void 0&&(t=!1),hs(e)||Ne(e)||!ae(e)||(Gr(e)>1&&(e.set=e.add=e.clear=e.delete=Sf),Object.freeze(e),t&&Ar(e,function(r,i){return fs(i,!0)},!0)),e}function Sf(){Xt(2)}function hs(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function ge(e){var t=cs[e];return t||Xt(18,e),t}function Of(e,t){cs[e]||(cs[e]=t)}function as(){return zo}function rs(e,t){t&&(ge("Patches"),e.u=[],e.s=[],e.v=t)}function Ti(e){ss(e),e.p.forEach(Cf),e.p=null}function ss(e){e===zo&&(zo=e.l)}function Nc(e){return zo={p:[],l:zo,h:e,m:!0,_:0}}function Cf(e){var t=e[pt];t.i===0||t.i===1?t.j():t.g=!0}function os(e,t){t._=t.p.length;var r=t.p[0],i=e!==void 0&&e!==r;return t.h.O||ge("ES5").S(t,e,i),i?(r[pt].P&&(Ti(t),Xt(4)),ae(e)&&(e=Ii(t,e),t.l||Ni(t,e)),t.u&&ge("Patches").M(r[pt].t,e,t.u,t.s)):e=Ii(t,r,[]),Ti(t),t.u&&t.v(t.u,t.s),e!==Wc?e:void 0}function Ii(e,t,r){if(hs(t))return t;var i=t[pt];if(!i)return Ar(t,function(l,d){return Pc(e,i,t,l,d,r)},!0),t;if(i.A!==e)return t;if(!i.P)return Ni(e,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=us(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),Ar(a,function(l,d){return Pc(e,i,n,l,d,r,s)}),Ni(e,n,!1),r&&e.u&&ge("Patches").N(i,r,e.u,e.s)}return i.o}function Pc(e,t,r,i,n,a,s){if(Ne(n)){var l=Ii(e,n,a&&t&&t.i!==3&&!Vr(t.R,i)?a.concat(i):void 0);if(Uc(r,i,l),!Ne(l))return;e.m=!1}else s&&r.add(n);if(ae(n)&&!hs(n)){if(!e.h.D&&e._<1)return;Ii(e,n),t&&t.A.l||Ni(e,n)}}function Ni(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&fs(t,r)}function is(e,t){var r=e[pt];return(r?He(r):e)[t]}function Lc(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var i=Object.getOwnPropertyDescriptor(r,t);if(i)return i;r=Object.getPrototypeOf(r)}}function ze(e){e.P||(e.P=!0,e.l&&ze(e.l))}function ns(e){e.o||(e.o=us(e.t))}function ls(e,t,r){var i=ds(t)?ge("MapSet").F(t,r):ps(t)?ge("MapSet").T(t,r):e.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:as(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},d=l,p=Vo;s&&(d=[l],p=Ho);var h=Proxy.revocable(d,p),f=h.revoke,m=h.proxy;return l.k=m,l.j=f,m}(t,r):ge("ES5").J(t,r);return(r?r.A:as()).p.push(i),i}function Ef(e){return Ne(e)||Xt(22,e),function t(r){if(!ae(r))return r;var i,n=r[pt],a=Gr(r);if(n){if(!n.P&&(n.i<4||!ge("ES5").K(n)))return n.t;n.I=!0,i=kc(r,a),n.I=!1}else i=kc(r,a);return Ar(i,function(s,l){n&&xf(n.t,s)===l||Uc(i,s,t(l))}),a===3?new Set(i):i}(e)}function kc(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return us(e)}function Fc(){function e(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[pt];return Vo.get(p,s)},set:function(p){var h=this[pt];Vo.set(h,s,p)}},d}function t(s){for(var l=s.length-1;l>=0;l--){var d=s[l][pt];if(!d.P)switch(d.i){case 5:i(d)&&ze(d);break;case 4:r(d)&&ze(d)}}}function r(s){for(var l=s.t,d=s.k,p=jr(d),h=p.length-1;h>=0;h--){var f=p[h];if(f!==pt){var m=l[f];if(m===void 0&&!Vr(l,f))return!0;var v=d[f],x=v&&v[pt];if(x?x.t!==m:!Bc(v,m))return!0}}var E=!!l[pt];return p.length!==jr(l).length+(E?0:1)}function i(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function n(s){s.g&&Xt(3,JSON.stringify(He(s)))}var a={};Of("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(f,m){if(f){for(var v=Array(m.length),x=0;x<m.length;x++)Object.defineProperty(v,""+x,e(x,!0));return v}var E=Hc(m);delete E[pt];for(var R=jr(E),I=0;I<R.length;I++){var L=R[I];E[L]=e(L,f||!!E[L].enumerable)}return Object.create(Object.getPrototypeOf(m),E)}(d,s),h={i:d?5:4,A:l?l.A:as(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,pt,{value:h,writable:!0}),p},S:function(s,l,d){d?Ne(l)&&l[pt].A===s&&t(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var f=h[pt];if(f){var m=f.t,v=f.k,x=f.R,E=f.i;if(E===4)Ar(v,function(O){O!==pt&&(m[O]!==void 0||Vr(m,O)?x[O]||p(v[O]):(x[O]=!0,ze(f)))}),Ar(m,function(O){v[O]!==void 0||Vr(v,O)||(x[O]=!1,ze(f))});else if(E===5){if(i(f)&&(ze(f),x.length=!0),v.length<m.length)for(var R=v.length;R<m.length;R++)x[R]=!1;else for(var I=m.length;I<v.length;I++)x[I]=!0;for(var L=Math.min(v.length,m.length),w=0;w<L;w++)v.hasOwnProperty(w)||(x[w]=!0),x[w]===void 0&&p(v[w])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?r(s):i(s)}})}var $c,zo,ms=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",wf=typeof Map<"u",Af=typeof Set<"u",Dc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Wc=ms?Symbol.for("immer-nothing"):(($c={})["immer-nothing"]=!0,$c),Mc=ms?Symbol.for("immer-draftable"):"__$immer_draftable",pt=ms?Symbol.for("immer-state"):"__$immer_state";var _f=""+Object.prototype.constructor,jr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Hc=Object.getOwnPropertyDescriptors||function(e){var t={};return jr(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},cs={},Vo={get:function(e,t){if(t===pt)return e;var r=He(e);if(!Vr(r,t))return function(n,a,s){var l,d=Lc(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(n.k):void 0}(e,r,t);var i=r[t];return e.I||!ae(i)?i:i===is(e.t,t)?(ns(e),e.o[t]=ls(e.A.h,i,e)):i},has:function(e,t){return t in He(e)},ownKeys:function(e){return Reflect.ownKeys(He(e))},set:function(e,t,r){var i=Lc(He(e),t);if(i?.set)return i.set.call(e.k,r),!0;if(!e.P){var n=is(He(e),t),a=n?.[pt];if(a&&a.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(Bc(r,n)&&(r!==void 0||Vr(e.t,t)))return!0;ns(e),ze(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return is(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,ns(e),ze(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=He(e),i=Reflect.getOwnPropertyDescriptor(r,t);return i&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:i.enumerable,value:r[t]}},defineProperty:function(){Xt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Xt(12)}},Ho={};Ar(Vo,function(e,t){Ho[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Ho.deleteProperty=function(e,t){return Ho.set.call(this,e,t,void 0)},Ho.set=function(e,t,r){return Vo.set.call(this,e[0],t,r,e[0])};var Rf=function(){function e(r){var i=this;this.O=Dc,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var l=a;a=n;var d=i;return function(E){var R=this;E===void 0&&(E=l);for(var I=arguments.length,L=Array(I>1?I-1:0),w=1;w<I;w++)L[w-1]=arguments[w];return d.produce(E,function(O){var A;return(A=a).call.apply(A,[R,O].concat(L))})}}var p;if(typeof a!="function"&&Xt(6),s!==void 0&&typeof s!="function"&&Xt(7),ae(n)){var h=Nc(i),f=ls(i,n,void 0),m=!0;try{p=a(f),m=!1}finally{m?Ti(h):ss(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(E){return rs(h,s),os(E,h)},function(E){throw Ti(h),E}):(rs(h,s),os(p,h))}if(!n||typeof n!="object"){if((p=a(n))===void 0&&(p=n),p===Wc&&(p=void 0),i.D&&fs(p,!0),s){var v=[],x=[];ge("Patches").M(n,p,v,x),s(v,x)}return p}Xt(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(p){for(var h=arguments.length,f=Array(h>1?h-1:0),m=1;m<h;m++)f[m-1]=arguments[m];return i.produceWithPatches(p,function(v){return n.apply(void 0,[v].concat(f))})};var s,l,d=i.produce(n,a,function(p,h){s=p,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,s,l]}):[d,s,l]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){ae(r)||Xt(8),Ne(r)&&(r=Ef(r));var i=Nc(this),n=ls(this,r,void 0);return n[pt].C=!0,ss(i),n},t.finishDraft=function(r,i){var n=r&&r[pt],a=n.A;return rs(a,i),os(void 0,a)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!Dc&&Xt(20),this.O=r},t.applyPatches=function(r,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}n>-1&&(i=i.slice(n+1));var s=ge("Patches").$;return Ne(r)?s(r,i):this.produce(r,function(l){return s(l,i)})},e}(),qt=new Rf,Tf=qt.produce,zv=qt.produceWithPatches.bind(qt),Vv=qt.setAutoFreeze.bind(qt),jv=qt.setUseProxies.bind(qt),Gv=qt.applyPatches.bind(qt),Kv=qt.createDraft.bind(qt),Zv=qt.finishDraft.bind(qt),Pi=Tf;function Ve(e){"@babel/helpers - typeof";return Ve=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ve(e)}function ys(e,t){if(Ve(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(Ve(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gs(e){var t=ys(e,"string");return Ve(t)==="symbol"?t:String(t)}function bs(e,t,r){return t=gs(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function Li(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zc(Object(r),!0).forEach(function(i){bs(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zc(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function $t(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Vc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),vs=function(){return Math.random().toString(36).substring(7).split("").join(".")},ki={INIT:"@@redux/INIT"+vs(),REPLACE:"@@redux/REPLACE"+vs(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+vs()}};function If(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function xs(e,t,r){var i;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error($t(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error($t(1));return r(xs)(e,t)}if(typeof e!="function")throw new Error($t(2));var n=e,a=t,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function h(){if(d)throw new Error($t(3));return a}function f(E){if(typeof E!="function")throw new Error($t(4));if(d)throw new Error($t(5));var R=!0;return p(),l.push(E),function(){if(R){if(d)throw new Error($t(6));R=!1,p();var L=l.indexOf(E);l.splice(L,1),s=null}}}function m(E){if(!If(E))throw new Error($t(7));if(typeof E.type>"u")throw new Error($t(8));if(d)throw new Error($t(9));try{d=!0,a=n(a,E)}finally{d=!1}for(var R=s=l,I=0;I<R.length;I++){var L=R[I];L()}return E}function v(E){if(typeof E!="function")throw new Error($t(10));n=E,m({type:ki.REPLACE})}function x(){var E,R=f;return E={subscribe:function(L){if(typeof L!="object"||L===null)throw new Error($t(11));function w(){L.next&&L.next(h())}w();var O=R(w);return{unsubscribe:O}}},E[Vc]=function(){return this},E}return m({type:ki.INIT}),i={dispatch:m,subscribe:f,getState:h,replaceReducer:v},i[Vc]=x,i}function Nf(e){Object.keys(e).forEach(function(t){var r=e[t],i=r(void 0,{type:ki.INIT});if(typeof i>"u")throw new Error($t(12));if(typeof r(void 0,{type:ki.PROBE_UNKNOWN_ACTION()})>"u")throw new Error($t(13))})}function jc(e){for(var t=Object.keys(e),r={},i=0;i<t.length;i++){var n=t[i];typeof e[n]=="function"&&(r[n]=e[n])}var a=Object.keys(r),s,l;try{Nf(r)}catch(d){l=d}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(0)var f;for(var m=!1,v={},x=0;x<a.length;x++){var E=a[x],R=r[E],I=p[E],L=R(I,h);if(typeof L>"u"){var w=h&&h.type;throw new Error($t(14))}v[E]=L,m=m||L!==I}return m=m||a.length!==Object.keys(p).length,m?v:p}}function Kr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(i){return i}:t.length===1?t[0]:t.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function Gc(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error($t(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=t.map(function(d){return d(s)});return a=Kr.apply(void 0,l)(n.dispatch),Li(Li({},n),{},{dispatch:a})}}}function Kc(e){var t=function(i){var n=i.dispatch,a=i.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,e):s(l)}}};return t}var Zc=Kc();Zc.withExtraArgument=Kc;var Ss=Zc;var Qc=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),Pf=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,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(p){return function(h){return d([p,h])}}function d(p){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,n&&(a=p[0]&2?n.return:p[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,p[1])).done)return a;switch(n=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,n=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){r.label=p[1];break}if(p[0]===6&&r.label<a[1]){r.label=a[1],a=p;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(p);break}a[2]&&r.ops.pop(),r.trys.pop();continue}p=t.call(e,r)}catch(h){p=[6,h],n=0}finally{i=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Zr=function(e,t){for(var r=0,i=t.length,n=e.length;r<i;r++,n++)e[n]=t[r];return e},Lf=Object.defineProperty,kf=Object.defineProperties,$f=Object.getOwnPropertyDescriptors,qc=Object.getOwnPropertySymbols,Df=Object.prototype.hasOwnProperty,Mf=Object.prototype.propertyIsEnumerable,Yc=function(e,t,r){return t in e?Lf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},je=function(e,t){for(var r in t||(t={}))Df.call(t,r)&&Yc(e,r,t[r]);if(qc)for(var i=0,n=qc(t);i<n.length;i++){var r=n[i];Mf.call(t,r)&&Yc(e,r,t[r])}return e},Os=function(e,t){return kf(e,$f(t))},Uf=function(e,t,r){return new Promise(function(i,n){var a=function(d){try{l(r.next(d))}catch(p){n(p)}},s=function(d){try{l(r.throw(d))}catch(p){n(p)}},l=function(d){return d.done?i(d.value):Promise.resolve(d.value).then(a,s)};l((r=r.apply(e,t)).next())})};var Bf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Kr:Kr.apply(null,arguments)},ux=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Ff(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}var Wf=function(e){Qc(t,e);function t(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=e.apply(this,r)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Zr([void 0],r[0].concat(this)))):new(t.bind.apply(t,Zr([void 0],r.concat(this))))},t}(Array),Hf=function(e){Qc(t,e);function t(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=e.apply(this,r)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Zr([void 0],r[0].concat(this)))):new(t.bind.apply(t,Zr([void 0],r.concat(this))))},t}(Array);function ws(e){return ae(e)?Pi(e,function(){}):e}function zf(e){return typeof e=="boolean"}function Vf(){return function(t){return jf(t)}}function jf(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,i=e.immutableCheck,n=i===void 0?!0:i,a=e.serializableCheck,s=a===void 0?!0:a,l=new Wf;if(r&&(zf(r)?l.push(Ss):l.push(Ss.withExtraArgument(r.extraArgument))),0){if(n)var d;if(s)var p}return l}var Cs=!0;function td(e){var t=Vf(),r=e||{},i=r.reducer,n=i===void 0?void 0:i,a=r.middleware,s=a===void 0?t():a,l=r.devTools,d=l===void 0?!0:l,p=r.preloadedState,h=p===void 0?void 0:p,f=r.enhancers,m=f===void 0?void 0:f,v;if(typeof n=="function")v=n;else if(Ff(n))v=jc(n);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 x=s;if(typeof x=="function"&&(x=x(t),!Cs&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Cs&&x.some(function(O){return typeof O!="function"}))throw new Error("each middleware provided to configureStore must be a function");var E=Gc.apply(void 0,x),R=Kr;d&&(R=Bf(je({trace:!Cs},typeof d=="object"&&d)));var I=new Hf(E),L=I;Array.isArray(m)?L=Zr([E],m):typeof m=="function"&&(L=m(I));var w=R.apply(void 0,L);return xs(v,h,w)}function Ge(e,t){function r(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(t){var a=t.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return je(je({type:e,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:e,payload:i[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(i){return i.type===e},r}function ed(e){var t={},r=[],i,n={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=s,n},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return e(n),[t,r,i]}function Gf(e){return typeof e=="function"}function Kf(e,t,r,i){r===void 0&&(r=[]);var n=typeof t=="function"?ed(t):[t,r,i],a=n[0],s=n[1],l=n[2],d;if(Gf(e))d=function(){return ws(e())};else{var p=ws(e);d=function(){return p}}function h(f,m){f===void 0&&(f=d());var v=Zr([a[m.type]],s.filter(function(x){var E=x.matcher;return E(m)}).map(function(x){var E=x.reducer;return E}));return v.filter(function(x){return!!x}).length===0&&(v=[l]),v.reduce(function(x,E){if(E)if(Ne(x)){var R=x,I=E(R,m);return I===void 0?x:I}else{if(ae(x))return Pi(x,function(L){return E(L,m)});var I=E(x,m);if(I===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return I}return x},f)}return h.getInitialState=d,h}function Zf(e,t){return e+"/"+t}function rd(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:ws(e.initialState),i=e.reducers||{},n=Object.keys(i),a={},s={},l={};n.forEach(function(h){var f=i[h],m=Zf(t,h),v,x;"reducer"in f?(v=f.reducer,x=f.prepare):v=f,a[h]=v,s[m]=v,l[h]=x?Ge(m,x):Ge(m)});function d(){var h=typeof e.extraReducers=="function"?ed(e.extraReducers):[e.extraReducers],f=h[0],m=f===void 0?{}:f,v=h[1],x=v===void 0?[]:v,E=h[2],R=E===void 0?void 0:E,I=je(je({},m),s);return Kf(r,function(L){for(var w in I)L.addCase(w,I[w]);for(var O=0,A=x;O<A.length;O++){var k=A[O];L.addMatcher(k.matcher,k.reducer)}R&&L.addDefaultCase(R)})}var p;return{name:t,reducer:function(h,f){return p||(p=d()),p(h,f)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var qf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Yf=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=qf[Math.random()*64|0];return t},Xf=["name","message","stack","code"],Es=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),Xc=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),Jf=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,i=Xf;r<i.length;r++){var n=i[r];typeof e[n]=="string"&&(t[n]=e[n])}return t}return{message:String(e)}},yx=function(){function e(t,r,i){var n=Ge(t+"/fulfilled",function(h,f,m,v){return{payload:h,meta:Os(je({},v||{}),{arg:m,requestId:f,requestStatus:"fulfilled"})}}),a=Ge(t+"/pending",function(h,f,m){return{payload:void 0,meta:Os(je({},m||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=Ge(t+"/rejected",function(h,f,m,v,x){return{payload:v,error:(i&&i.serializeError||Jf)(h||"Rejected"),meta:Os(je({},x||{}),{arg:m,requestId:f,rejectedWithValue:!!v,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function p(h){return function(f,m,v){var x=i?.idGenerator?i.idGenerator(h):Yf(),E=new d,R,I=!1;function L(O){R=O,E.abort()}var w=function(){return Uf(this,null,function(){var O,A,k,F,q,Z,U;return Pf(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),F=(O=i?.condition)==null?void 0:O.call(i,h,{getState:m,extra:v}),th(F)?[4,F]:[3,2];case 1:F=y.sent(),y.label=2;case 2:if(F===!1||E.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return I=!0,q=new Promise(function(C,D){return E.signal.addEventListener("abort",function(){return D({name:"AbortError",message:R||"Aborted"})})}),f(a(x,h,(A=i?.getPendingMeta)==null?void 0:A.call(i,{requestId:x,arg:h},{getState:m,extra:v}))),[4,Promise.race([q,Promise.resolve(r(h,{dispatch:f,getState:m,extra:v,requestId:x,signal:E.signal,abort:L,rejectWithValue:function(C,D){return new Es(C,D)},fulfillWithValue:function(C,D){return new Xc(C,D)}})).then(function(C){if(C instanceof Es)throw C;return C instanceof Xc?n(C.payload,x,h,C.meta):n(C,x,h)})])];case 3:return k=y.sent(),[3,5];case 4:return Z=y.sent(),k=Z instanceof Es?s(null,x,h,Z.payload,Z.meta):s(Z,x,h),[3,5];case 5:return U=i&&!i.dispatchConditionRejection&&s.match(k)&&k.meta.condition,U||f(k),[2,k]}})})}();return Object.assign(w,{abort:L,requestId:x,arg:h,unwrap:function(){return w.then(Qf)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:n,typePrefix:t})}return e.withTypes=function(){return e},e}();function Qf(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function th(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var od="listener",id="completed",nd="cancelled",gx="task-"+nd,bx="task-"+id,vx=od+"-"+nd,xx=od+"-"+id;var As="listenerMiddleware";var Sx=Ge(As+"/add"),Ox=Ge(As+"/removeAll"),Cx=Ge(As+"/remove");var Jc,Ex=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(Jc||(Jc=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},eh=function(e){return function(t){setTimeout(t,e)}},wx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:eh(10);Fc();window.ftReduxStores||(window.ftReduxStores={});var Pe=class e extends hr{static get(t){var r;let i=typeof t=="string"?t:t.name,n=typeof t=="string"?void 0:t,a=window.ftReduxStores[i];if(Er(a))return a;if(n==null)return;let s=rd({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),l=td({reducer:(d,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...p.overwrites}:s.reducer(d,p)});return window.ftReduxStores[n.name]=new e(s,l,n.eventBus)}constructor(t,r,i){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Fo;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let d=s,p=a[d];return p?(...h)=>{let f=p(...h.map(n));return this.reduxStore.dispatch(f),f}:h=>{this.setState({[d]:n(h)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function rh(){var e;for(let t of Object.values((e=window.ftReduxStores)!==null&&e!==void 0?e:{}))Er(t)&&t.clear()}var $i=class{constructor(t,r,i){this.store=t,this.valueSelector=r,this.callback=i}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let t=this.store.getState(),r=this.valueSelector(t);mr(this.lastValue,r)&&(this.callback(r,t),this.lastValue=r)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function oh(e,t,r){return new $i(e,t,r).watch()}var Is={};ot(Is,{scrollHelper:()=>ih});var Rs,Di=new Map,Ts=class{lock(t,r){if(r){let i=Di.get(r);if(i==null||i===t)return Di.set(r,t),r}}release(t,r){r&&Di.get(r)===t&&Di.delete(r)}findFirstScrollableParent(t){var r;let i,n;for(let a of Xn(t)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){i=s;break}else l&&n==null&&(n=s)}return(r=i??n)!==null&&r!==void 0?r:document.body}elementCanScroll(t){try{return["auto","scroll"].includes(getComputedStyle(t).overflowY)}catch{return!1}}getAbsoluteScrollOffset(t,r){var i,n;let a=0;for(;r&&r.offsetParent!==t.offsetParent;)a+=(i=r.offsetTop)!==null&&i!==void 0?i:0,r=r.offsetParent;return a+((n=r?.offsetTop)!==null&&n!==void 0?n:0)-t.offsetTop}computeTopOffsetRatio(t,r){if(typeof t=="number")return t;switch(t){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(t,r){let i=this.findFirstScrollableParent(t);if(t&&this.lock(this,i)){let n=this.getAbsoluteScrollOffset(i,t),a=n-i.clientHeight+t.clientHeight,s=n,l=_o(0,(s-i.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(r?.position,l)*(a-s)+s;i.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",t,i);this.release(this,i)}};window.FluidTopicsScrollHelper=(Rs=window.FluidTopicsScrollHelper)!==null&&Rs!==void 0?Rs:new Ts;var ih=window.FluidTopicsScrollHelper;var Ns={};ot(Ns,{shadowQuerySelector:()=>nh,shadowQuerySelectorAll:()=>ah});function nh(e,t,...r){var i;let n=e.querySelector(t);for(let a of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}function ah(e,t,...r){let i=[...e.querySelectorAll(t)];for(let n of r)i=i.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(n))!==null&&l!==void 0?l:[]]});return i}var Ls={};ot(Ls,{SearchPlaceConverter:()=>jo,SearchPlaceQueryParams:()=>it,isSearchPlaceQueryParams:()=>Ld,serializeRequest:()=>dh});var lh=kp(sd(),1);var ld;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(ld||(ld={}));var cd;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(cd||(cd={}));var dd;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.MAP_ATTACHMENT="MAP_ATTACHMENT",e.RESOURCE="RESOURCE"})(dd||(dd={}));var pd;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(pd||(pd={}));var ud;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(ud||(ud={}));var fd;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.GEN_AI__COMPLETED_QUERY="GEN_AI__COMPLETED_QUERY",e.GEN_AI__RATE="GEN_AI__RATE",e.GENAI_CASE_DEFLECTION__START="GENAI_CASE_DEFLECTION__START",e.GENAI_CASE_DEFLECTION__OPEN_TICKET="GENAI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.TOPIC__DISPLAY="TOPIC__DISPLAY",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(fd||(fd={}));var hd;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(hd||(hd={}));var md;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT"})(md||(md={}));var yd;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(yd||(yd={}));var gd;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(gd||(gd={}));var bd;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(bd||(bd={}));var Ot;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Ot||(Ot={}));var vd;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(vd||(vd={}));var xd;(function(e){e.ASC="ASC",e.DESC="DESC"})(xd||(xd={}));var Sd;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Sd||(Sd={}));var Ps;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Ps||(Ps={}));var _d=e=>Object.keys(Ps).includes(e);var Od;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Od||(Od={}));var Cd;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Cd||(Cd={}));var Ed;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Ed||(Ed={}));var Yr;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Yr||(Yr={}));var Rd=e=>Object.keys(Yr).includes(e);var wd;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(wd||(wd={}));var Ad;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Ad||(Ad={}));var st;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN",e.DEVELOPER="DEVELOPER"})(st||(st={}));var Td;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(Td||(Td={}));var Id;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(Id||(Id={}));var sh={[st.PERSONAL_BOOK_SHARE_USER]:[st.PERSONAL_BOOK_USER],[st.HTML_EXPORT_USER]:[st.PERSONAL_BOOK_USER],[st.PDF_EXPORT_USER]:[st.PERSONAL_BOOK_USER],[st.KHUB_ADMIN]:[st.CONTENT_PUBLISHER],[st.ADMIN]:[st.KHUB_ADMIN,st.USERS_ADMIN,st.PORTAL_ADMIN],[st.DEVELOPER]:[st.BETA_USER,st.DEBUG_USER],[st.GENERATIVE_AI_EXPORT_USER]:[st.GENERATIVE_AI_USER]};function Nd(e,t){return e===t||(sh[e]??[]).some(r=>Nd(r,t))}function _r(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(i=>Nd(i,t))}function ch(e){return`"${e}"`}function Pd(e){return e.startsWith('"')&&e.endsWith('"')?e.replace(/(^"+)|("+$)/g,""):e}function dh(e,t){return new jo(e).serialize(t)}var it;(function(e){e.LOCALE="content-lang",e.QUERY="query",e.SCOPE="scope",e.FILTERS="filters",e.VIRTUAL_FIELD="virtual-field",e.PERIOD="period",e.VALUE_FILTERS="value-filters",e.DATE_FILTERS="date-filters",e.RANGE_FILTERS="range-filters",e.SORT="sort",e.PER_PAGE="per-page"})(it||(it={}));var ph=new Set(Object.values(it));function Ld(e){return ph.has(e)}var jo=class{constructor(t,r={},i=20,n=!1,a="en-US"){this.baseUrl=t,this.predefinedSorts=r,this.defaultPerPage=i,this.allLanguagesAllowed=n,this.defaultContentLocale=a,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(t,r){return this.serializeToCurrentPageIfPossible(t,r??"/search")}serializeToCurrentPageIfPossible(t,r){let i=this.toURLSearchParams(t).toString(),n=r==null||r.trim().length===0,a=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return a.search=i,a.toString()}toURLSearchParams(t,r=!1){var i,n,a,s,l,d,p,h,f,m,v,x;let E=new URLSearchParams;t.contentLocale?(!r||t.contentLocale!==this.defaultContentLocale)&&E.append(it.LOCALE,t.contentLocale):E.append(it.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((i=t.query)===null||i===void 0?void 0:i.length)>0&&E.append(it.QUERY,t.query),t.scope&&t.scope!=="DEFAULT"&&E.append(it.SCOPE,t.scope.toLowerCase()),t.virtualField&&t.virtualField!=="EVERYWHERE"&&E.append(it.VIRTUAL_FIELD,t.virtualField.toLowerCase()),((n=t.sort)===null||n===void 0?void 0:n.length)>0&&t.sort[0].key==="ft:lastEdition"&&E.append(it.SORT,"last_update");let R=(s=(a=t.metadataFilters)===null||a===void 0?void 0:a.filter(O=>O.valueFilter))!==null&&s!==void 0?s:[];if(R.length>0){let O=R.map(A=>{var k,F;let q=((F=(k=A.valueFilter)===null||k===void 0?void 0:k.values)!==null&&F!==void 0?F:[]).map(Z=>this.escapeFilters(Z)).map(Z=>encodeURIComponent(ch(Pd(Z)))).join("_");return`${A.key}~${q}`}).join("*");E.append(it.VALUE_FILTERS,O)}let I=(d=(l=t.metadataFilters)===null||l===void 0?void 0:l.filter(O=>O.dateFilter))!==null&&d!==void 0?d:[];if(I.length>0){let O=I.map(A=>{var k;return`${A.key}~${(k=A.dateFilter)===null||k===void 0?void 0:k.type.toLowerCase()}`}).join("*");E.append(it.DATE_FILTERS,O)}let L=(h=(p=t.metadataFilters)===null||p===void 0?void 0:p.filter(O=>O.rangeFilter))!==null&&h!==void 0?h:[];if(L.length>0){let O=L.map(A=>{var k,F;return`${A.key}~${(k=A.rangeFilter)===null||k===void 0?void 0:k.from}_${(F=A.rangeFilter)===null||F===void 0?void 0:F.to}`}).join("*");E.append(it.RANGE_FILTERS,O)}let w=(f=t.otherQueryParams)!==null&&f!==void 0?f:{};for(let O in w)E.append(O,w[O]);return!((m=t.paging)===null||m===void 0)&&m.perPage&&((x=(v=t.paging)===null||v===void 0?void 0:v.perPage)!==null&&x!==void 0?x:this.defaultPerPage)!=this.defaultPerPage&&E.append(it.PER_PAGE,String(t.paging.perPage)),E}parse(t){var r;let i=t.split("?"),n=this.fromURLSearchParams(new URLSearchParams(i.slice(1).join("?"))),a=i[0].split("/search/")[1];return a==null?n:{...n,scope:(r=this.scopeMapping[a])!==null&&r!==void 0?r:n.scope}}fromURLSearchParams(t){var r,i,n,a,s,l,d,p;let h=t.get(it.LOCALE)==="all"?void 0:t.get(it.LOCALE),f=((r=t.get(it.VIRTUAL_FIELD))!==null&&r!==void 0?r:"EVERYWHERE").toUpperCase(),m=((i=t.get(it.SORT))!==null&&i!==void 0?i:"DEFAULT").toUpperCase(),v=(n=t.get(it.SCOPE))!==null&&n!==void 0?n:"default",x=+((a=t.get(it.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),E={};for(let R of t.keys())Ld(R)||(E[R]=t.get(R));return{contentLocale:h??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:decodeURIComponent((s=t.get(it.QUERY))!==null&&s!==void 0?s:""),scope:(l=this.scopeMapping[v])!==null&&l!==void 0?l:"DEFAULT",virtualField:_d(f)?f:"EVERYWHERE",sort:(p=(d=this.predefinedSorts[m])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&p!==void 0?p:[],metadataFilters:this.parseCompatFilters(t),facets:[],paging:{page:1,perPage:_o(1,isNaN(x)?this.defaultPerPage:x,1e3)},otherQueryParams:E}}parseCompatFilters(t){var r,i,n,a,s,l;let d=[];return t.has(it.FILTERS)&&(d=this.parseValueFilters((r=t.get(it.FILTERS))!==null&&r!==void 0?r:"")),(i=t.has(it.PERIOD))!==null&&i!==void 0&&i&&(d=[...d,...this.parseLegacyPeriodFilter(((n=t.get(it.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...d,...this.parseValueFilters((a=t.get(it.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=t.get(it.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=t.get(it.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(t){return this.superEscapeFilters(decodeURIComponent(t)).split("*").map(r=>r.split("~"))}parseValueFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(r=>({key:r[0],valueFilter:{values:r[1].split("_").map(Pd).map(i=>this.unescapeFilterValue(i)),negative:!1}}))}parseDateFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(r=>({key:r[0],dateFilter:{type:Yr[r[1].toUpperCase()]}}))}parseRangeFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}escapeFilters(t){for(let[r,i,n]of this.filtersEscapeMapping)t=t.replaceAll(r,i);return t}superEscapeFilters(t){for(let[r,i,n]of this.filtersEscapeMapping)t=t.replaceAll(i,n);return t}unescapeFilterValue(t){for(let[r,i,n]of this.filtersEscapeMapping)t=t.replace(n,r);return t}parseLegacyPeriodFilter(t){if(Rd(t))return[{key:"ft:lastEdition",dateFilter:{type:Yr[t]}}];if(t.startsWith("CUSTOM_")){let[r,i,n]=t.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:i,to:n}}]}return[]}};var ks={};ot(ks,{toFtFormComponent:()=>Rr});var Bi=Symbol("elementInternals");function Rr(e,t){class r extends e{static get formAssociated(){return!0}get form(){return this[Bi].form}constructor(...n){super(n),this[Bi]=this.attachInternals(),this[Bi].role=t}setFormValue(n){this[Bi].setFormValue(n)}}return r}var $s={};ot($s,{DateFormatter:()=>Xr});var Xr=class{static format(t,r,i,n){return window.moment?window.moment(t).locale(r).format(this.getDateFormat(i,n)):t}static getDateFormat(t,r){return t?r?"lll":"ll":r?"L LT":"L"}};var Ds,Ms,Us,Bs,Go=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Us=(Ms=(Ds=window.safari)===null||Ds===void 0?void 0:Ds.pushNotification)===null||Ms===void 0?void 0:Ms.toString())!==null&&Us!==void 0?Us:"")==="[object SafariRemoteNotification]",uh="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Bs=window.ftGlobals)!==null&&Bs!==void 0?Bs:{lit:Ln,litDecorators:Dn,litRepeat:Mn,litClassMap:Un,litStyleMap:Bn,litUnsafeHTML:Wn,wcUtils:{...Kn,...zn,...Zn,...$s,...qn,...Qn,...Ra,...Gn,...ja,..._a,...qa,...Ka,...wc,...Jn,...Ja,...ts,..._c,...es,..._s,...Ga,...Is,...Ns,...Ls,...ks,isSafari:Go,isTouchScreen:uh,setVariable:S}};var Jt;(function(e){e.FEEDBACK="FEEDBACK",e.RATING="RATING",e.PRINT="PRINT",e.BOOKMARK="BOOKMARK",e.COLLECTIONS="COLLECTIONS",e.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Jt||(Jt={}));var fh=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},Ws=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Fs=Symbol("registerInterval");function hh(e){var t;class r extends e{constructor(){super(...arguments),this[t]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[Fs]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Fs]):this.dispatchEvent(new Ws)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=Fs,fh([H()],r.prototype,"stateManager",void 0),r}var Ze=class extends hh(Yt){};var kd=o.extend("--ft-ripple-color","",T.colorContent),_={color:kd,backgroundColor:o.extend("--ft-ripple-background-color","",kd),opacityContentOnSurfacePressed:o.external(T.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.external(T.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.external(T.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.external(T.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.create("--ft-ripple-border-radius","","SIZE","0px")},$d=o.extend("--ft-ripple-color","",T.colorPrimary),Dd={color:$d,backgroundColor:o.extend("--ft-ripple-background-color","",$d)},Md=o.extend("--ft-ripple-color","",T.colorSecondary),Ud={color:Md,backgroundColor:o.extend("--ft-ripple-background-color","",Md)},Bd=$`
51
51
  :host {
52
52
  display: contents;
53
53
  }
@@ -102,19 +102,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
102
102
  }
103
103
 
104
104
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
105
- background-color: ${Md.backgroundColor};
105
+ background-color: ${Ud.backgroundColor};
106
106
  }
107
107
 
108
108
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
109
- background-color: ${Md.color};
109
+ background-color: ${Ud.color};
110
110
  }
111
111
 
112
112
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
113
- background-color: ${$d.backgroundColor};
113
+ background-color: ${Dd.backgroundColor};
114
114
  }
115
115
 
116
116
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
117
- background-color: ${$d.color};
117
+ background-color: ${Dd.color};
118
118
  }
119
119
 
120
120
  .ft-ripple .ft-ripple--background {
@@ -159,7 +159,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
159
159
  opacity: ${_.opacityContentOnSurfacePressed};
160
160
  transform: translate(-50%, -50%) scale(1);
161
161
  }
162
- `;function Bd(e){let t=_o[e];return $`
162
+ `;function Fd(e){let t=Ro[e];return $`
163
163
  .ft-typography--${Oe(e)} {
164
164
  font-family: ${t.fontFamily};
165
165
  font-size: ${t.fontSize};
@@ -168,7 +168,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
168
168
  line-height: ${t.lineHeight};
169
169
  text-transform: ${t.textCase};
170
170
  }
171
- `}var Fd=o.extend("--ft-typography-font-family","",T.titleFont),Le=o.extend("--ft-typography-font-family","",T.contentFont),B={fontFamily:Le,fontSize:o.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:o.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:o.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:o.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:o.create("--ft-typography-text-transform","","UNKNOWN","inherit")},qe={fontFamily:o.extend("--ft-typography-title-font-family","",Fd),fontSize:o.extend("--ft-typography-title-font-size","",B.fontSize,"20px"),fontWeight:o.extend("--ft-typography-title-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-letter-spacing","",B.letterSpacing,"0.15px"),lineHeight:o.extend("--ft-typography-title-line-height","",B.lineHeight,"1.2"),textTransform:o.extend("--ft-typography-title-text-transform","",B.textTransform,"inherit")},Ye={fontFamily:o.extend("--ft-typography-title-dense-font-family","",Fd),fontSize:o.extend("--ft-typography-title-dense-font-size","",B.fontSize,"14px"),fontWeight:o.extend("--ft-typography-title-dense-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-dense-letter-spacing","",B.letterSpacing,"0.105px"),lineHeight:o.extend("--ft-typography-title-dense-line-height","",B.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-title-dense-text-transform","",B.textTransform,"inherit")},Jr={fontFamily:o.extend("--ft-typography-subtitle1-font-family","",Le),fontSize:o.extend("--ft-typography-subtitle1-font-size","",B.fontSize,"16px"),fontWeight:o.extend("--ft-typography-subtitle1-font-weight","",B.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-subtitle1-letter-spacing","",B.letterSpacing,"0.144px"),lineHeight:o.extend("--ft-typography-subtitle1-line-height","",B.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-subtitle1-text-transform","",B.textTransform,"inherit")},Qr={fontFamily:o.extend("--ft-typography-subtitle2-font-family","",Le),fontSize:o.extend("--ft-typography-subtitle2-font-size","",B.fontSize,"14px"),fontWeight:o.extend("--ft-typography-subtitle2-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-subtitle2-letter-spacing","",B.letterSpacing,"0.098px"),lineHeight:o.extend("--ft-typography-subtitle2-line-height","",B.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-subtitle2-text-transform","",B.textTransform,"inherit")},Qt={fontFamily:o.extend("--ft-typography-body1-font-family","",Le),fontSize:o.extend("--ft-typography-body1-font-size","",B.fontSize,"16px"),fontWeight:o.extend("--ft-typography-body1-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body1-letter-spacing","",B.letterSpacing,"0.496px"),lineHeight:o.extend("--ft-typography-body1-line-height","",B.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-body1-text-transform","",B.textTransform,"inherit")},to={fontFamily:o.extend("--ft-typography-body2-font-family","",Le),fontSize:o.extend("--ft-typography-body2-font-size","",B.fontSize,"14px"),fontWeight:o.extend("--ft-typography-body2-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body2-letter-spacing","",B.letterSpacing,"0.252px"),lineHeight:o.extend("--ft-typography-body2-line-height","",B.lineHeight,"1.4"),textTransform:o.extend("--ft-typography-body2-text-transform","",B.textTransform,"inherit")},se={fontFamily:o.extend("--ft-typography-caption-font-family","",Le),fontSize:o.extend("--ft-typography-caption-font-size","",B.fontSize,"12px"),fontWeight:o.extend("--ft-typography-caption-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-caption-letter-spacing","",B.letterSpacing,"0.396px"),lineHeight:o.extend("--ft-typography-caption-line-height","",B.lineHeight,"1.33"),textTransform:o.extend("--ft-typography-caption-text-transform","",B.textTransform,"inherit")},eo={fontFamily:o.extend("--ft-typography-breadcrumb-font-family","",Le),fontSize:o.extend("--ft-typography-breadcrumb-font-size","",B.fontSize,"10px"),fontWeight:o.extend("--ft-typography-breadcrumb-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-breadcrumb-letter-spacing","",B.letterSpacing,"0.33px"),lineHeight:o.extend("--ft-typography-breadcrumb-line-height","",B.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-breadcrumb-text-transform","",B.textTransform,"inherit")},ro={fontFamily:o.extend("--ft-typography-overline-font-family","",Le),fontSize:o.extend("--ft-typography-overline-font-size","",B.fontSize,"10px"),fontWeight:o.extend("--ft-typography-overline-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-overline-letter-spacing","",B.letterSpacing,"1.5px"),lineHeight:o.extend("--ft-typography-overline-line-height","",B.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-overline-text-transform","",B.textTransform,"uppercase")},Bt={fontFamily:o.extend("--ft-typography-button-font-family","",Le),fontSize:o.extend("--ft-typography-button-font-size","",B.fontSize,"14px"),fontWeight:o.extend("--ft-typography-button-font-weight","",B.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-button-letter-spacing","",B.letterSpacing,"1.246px"),lineHeight:o.extend("--ft-typography-button-line-height","",B.lineHeight,"1.15"),textTransform:o.extend("--ft-typography-button-text-transform","",B.textTransform,"uppercase")},Wd=$`
171
+ `}var Wd=o.extend("--ft-typography-font-family","",T.titleFont),Le=o.extend("--ft-typography-font-family","",T.contentFont),B={fontFamily:Le,fontSize:o.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:o.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:o.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:o.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:o.create("--ft-typography-text-transform","","UNKNOWN","inherit")},qe={fontFamily:o.extend("--ft-typography-title-font-family","",Wd),fontSize:o.extend("--ft-typography-title-font-size","",B.fontSize,"20px"),fontWeight:o.extend("--ft-typography-title-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-letter-spacing","",B.letterSpacing,"0.15px"),lineHeight:o.extend("--ft-typography-title-line-height","",B.lineHeight,"1.2"),textTransform:o.extend("--ft-typography-title-text-transform","",B.textTransform,"inherit")},Ye={fontFamily:o.extend("--ft-typography-title-dense-font-family","",Wd),fontSize:o.extend("--ft-typography-title-dense-font-size","",B.fontSize,"14px"),fontWeight:o.extend("--ft-typography-title-dense-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-dense-letter-spacing","",B.letterSpacing,"0.105px"),lineHeight:o.extend("--ft-typography-title-dense-line-height","",B.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-title-dense-text-transform","",B.textTransform,"inherit")},Jr={fontFamily:o.extend("--ft-typography-subtitle1-font-family","",Le),fontSize:o.extend("--ft-typography-subtitle1-font-size","",B.fontSize,"16px"),fontWeight:o.extend("--ft-typography-subtitle1-font-weight","",B.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-subtitle1-letter-spacing","",B.letterSpacing,"0.144px"),lineHeight:o.extend("--ft-typography-subtitle1-line-height","",B.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-subtitle1-text-transform","",B.textTransform,"inherit")},Qr={fontFamily:o.extend("--ft-typography-subtitle2-font-family","",Le),fontSize:o.extend("--ft-typography-subtitle2-font-size","",B.fontSize,"14px"),fontWeight:o.extend("--ft-typography-subtitle2-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-subtitle2-letter-spacing","",B.letterSpacing,"0.098px"),lineHeight:o.extend("--ft-typography-subtitle2-line-height","",B.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-subtitle2-text-transform","",B.textTransform,"inherit")},Qt={fontFamily:o.extend("--ft-typography-body1-font-family","",Le),fontSize:o.extend("--ft-typography-body1-font-size","",B.fontSize,"16px"),fontWeight:o.extend("--ft-typography-body1-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body1-letter-spacing","",B.letterSpacing,"0.496px"),lineHeight:o.extend("--ft-typography-body1-line-height","",B.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-body1-text-transform","",B.textTransform,"inherit")},to={fontFamily:o.extend("--ft-typography-body2-font-family","",Le),fontSize:o.extend("--ft-typography-body2-font-size","",B.fontSize,"14px"),fontWeight:o.extend("--ft-typography-body2-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body2-letter-spacing","",B.letterSpacing,"0.252px"),lineHeight:o.extend("--ft-typography-body2-line-height","",B.lineHeight,"1.4"),textTransform:o.extend("--ft-typography-body2-text-transform","",B.textTransform,"inherit")},se={fontFamily:o.extend("--ft-typography-caption-font-family","",Le),fontSize:o.extend("--ft-typography-caption-font-size","",B.fontSize,"12px"),fontWeight:o.extend("--ft-typography-caption-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-caption-letter-spacing","",B.letterSpacing,"0.396px"),lineHeight:o.extend("--ft-typography-caption-line-height","",B.lineHeight,"1.33"),textTransform:o.extend("--ft-typography-caption-text-transform","",B.textTransform,"inherit")},eo={fontFamily:o.extend("--ft-typography-breadcrumb-font-family","",Le),fontSize:o.extend("--ft-typography-breadcrumb-font-size","",B.fontSize,"10px"),fontWeight:o.extend("--ft-typography-breadcrumb-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-breadcrumb-letter-spacing","",B.letterSpacing,"0.33px"),lineHeight:o.extend("--ft-typography-breadcrumb-line-height","",B.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-breadcrumb-text-transform","",B.textTransform,"inherit")},ro={fontFamily:o.extend("--ft-typography-overline-font-family","",Le),fontSize:o.extend("--ft-typography-overline-font-size","",B.fontSize,"10px"),fontWeight:o.extend("--ft-typography-overline-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-overline-letter-spacing","",B.letterSpacing,"1.5px"),lineHeight:o.extend("--ft-typography-overline-line-height","",B.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-overline-text-transform","",B.textTransform,"uppercase")},Bt={fontFamily:o.extend("--ft-typography-button-font-family","",Le),fontSize:o.extend("--ft-typography-button-font-size","",B.fontSize,"14px"),fontWeight:o.extend("--ft-typography-button-font-weight","",B.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-button-letter-spacing","",B.letterSpacing,"1.246px"),lineHeight:o.extend("--ft-typography-button-line-height","",B.lineHeight,"1.15"),textTransform:o.extend("--ft-typography-button-text-transform","",B.textTransform,"uppercase")},Hd=$`
172
172
  .ft-typography--title {
173
173
  font-family: ${qe.fontFamily};
174
174
  font-size: ${qe.fontSize};
@@ -177,7 +177,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
177
177
  line-height: ${qe.lineHeight};
178
178
  text-transform: ${qe.textTransform};
179
179
  }
180
- `,Hd=$`
180
+ `,zd=$`
181
181
  .ft-typography--title-dense {
182
182
  font-family: ${Ye.fontFamily};
183
183
  font-size: ${Ye.fontSize};
@@ -186,7 +186,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
186
186
  line-height: ${Ye.lineHeight};
187
187
  text-transform: ${Ye.textTransform};
188
188
  }
189
- `,zd=$`
189
+ `,Vd=$`
190
190
  .ft-typography--subtitle1 {
191
191
  font-family: ${Jr.fontFamily};
192
192
  font-size: ${Jr.fontSize};
@@ -195,7 +195,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
195
195
  line-height: ${Jr.lineHeight};
196
196
  text-transform: ${Jr.textTransform};
197
197
  }
198
- `,Vd=$`
198
+ `,jd=$`
199
199
  .ft-typography--subtitle2 {
200
200
  font-family: ${Qr.fontFamily};
201
201
  font-size: ${Qr.fontSize};
@@ -214,7 +214,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
214
214
  line-height: ${Qt.lineHeight};
215
215
  text-transform: ${Qt.textTransform};
216
216
  }
217
- `,jd=$`
217
+ `,Gd=$`
218
218
  .ft-typography--body2 {
219
219
  font-family: ${to.fontFamily};
220
220
  font-size: ${to.fontSize};
@@ -223,7 +223,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
223
223
  line-height: ${to.lineHeight};
224
224
  text-transform: ${to.textTransform};
225
225
  }
226
- `,Bi=$`
226
+ `,Fi=$`
227
227
  .ft-typography--caption {
228
228
  font-family: ${se.fontFamily};
229
229
  font-size: ${se.fontSize};
@@ -232,7 +232,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
232
232
  line-height: ${se.lineHeight};
233
233
  text-transform: ${se.textTransform};
234
234
  }
235
- `,Gd=$`
235
+ `,Kd=$`
236
236
  .ft-typography--breadcrumb {
237
237
  font-family: ${eo.fontFamily};
238
238
  font-size: ${eo.fontSize};
@@ -241,7 +241,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
241
241
  line-height: ${eo.lineHeight};
242
242
  text-transform: ${eo.textTransform};
243
243
  }
244
- `,Kd=$`
244
+ `,Zd=$`
245
245
  .ft-typography--overline {
246
246
  font-family: ${ro.fontFamily};
247
247
  font-size: ${ro.fontSize};
@@ -250,7 +250,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
250
250
  line-height: ${ro.lineHeight};
251
251
  text-transform: ${ro.textTransform};
252
252
  }
253
- `,Zd=$`
253
+ `,qd=$`
254
254
  .ft-typography--button {
255
255
  font-family: ${Bt.fontFamily};
256
256
  font-size: ${Bt.fontSize};
@@ -259,11 +259,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
259
259
  line-height: ${Bt.lineHeight};
260
260
  text-transform: ${Bt.textTransform};
261
261
  }
262
- `,qd=$`
262
+ `,Yd=$`
263
263
  .ft-typography {
264
264
  vertical-align: inherit;
265
265
  }
266
- `,Yd=[Object.keys(_o).map(e=>Bd(e))];var ut={color:o.extend("--ft-loader-color","",T.colorPrimary),size:o.create("--ft-loader-size","","SIZE","80px")},Xd=$`
266
+ `,Xd=[Object.keys(Ro).map(e=>Fd(e))];var ut={color:o.extend("--ft-loader-color","",T.colorPrimary),size:o.create("--ft-loader-size","","SIZE","80px")},Jd=$`
267
267
  :host {
268
268
  line-height: 0;
269
269
  }
@@ -332,7 +332,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
332
332
  transform: translate(calc(0.35 * ${ut.size}), 0);
333
333
  }
334
334
  }
335
- `;var Et={size:o.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:o.extend("--ft-icon-fluid-topics-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:o.extend("--ft-icon-file-format-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:o.extend("--ft-icon-material-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:o.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Jd=$`
335
+ `;var Et={size:o.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:o.extend("--ft-icon-fluid-topics-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:o.extend("--ft-icon-file-format-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:o.extend("--ft-icon-material-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:o.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Qd=$`
336
336
  :host, i.ft-icon {
337
337
  display: inline-flex;
338
338
  align-items: center;
@@ -380,7 +380,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
380
380
  .ft-icon--material {
381
381
  font-family: ${Et.materialFontFamily}, "Material Icons", sans-serif;
382
382
  }
383
- `;var Qd=o.extend("--ft-button-color","",T.colorPrimary),ct={backgroundColor:o.extend("--ft-button-background-color","",T.colorSurface),borderRadius:o.extend("--ft-button-border-radius","",T.borderRadiusL),color:Qd,fontSize:o.extend("--ft-button-font-size","",Bt.fontSize),iconSize:o.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:o.extend("--ft-button-ripple-color","",Qd),verticalPadding:o.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:o.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:o.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:o.external(T.colorOpacityDisabled,"Design system")},tp=o.extend("--ft-button-primary-color","",o.extend("--ft-button-color","",T.colorOnPrimary)),Ws={backgroundColor:o.extend("--ft-button-primary-background-color","",o.extend("--ft-button-background-color","",T.colorPrimary)),color:tp,rippleColor:o.extend("--ft-button-primary-ripple-color","",tp)},be={borderRadius:o.extend("--ft-button-dense-border-radius","",o.extend("--ft-button-border-radius","",T.borderRadiusM)),verticalPadding:o.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:o.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:o.create("--ft-button-dense-icon-padding","","SIZE","4px")},ep=[$`
383
+ `;var tp=o.extend("--ft-button-color","",T.colorPrimary),ct={backgroundColor:o.extend("--ft-button-background-color","",T.colorSurface),borderRadius:o.extend("--ft-button-border-radius","",T.borderRadiusL),color:tp,fontSize:o.extend("--ft-button-font-size","",Bt.fontSize),iconSize:o.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:o.extend("--ft-button-ripple-color","",tp),verticalPadding:o.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:o.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:o.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:o.external(T.colorOpacityDisabled,"Design system")},ep=o.extend("--ft-button-primary-color","",o.extend("--ft-button-color","",T.colorOnPrimary)),Hs={backgroundColor:o.extend("--ft-button-primary-background-color","",o.extend("--ft-button-background-color","",T.colorPrimary)),color:ep,rippleColor:o.extend("--ft-button-primary-ripple-color","",ep)},be={borderRadius:o.extend("--ft-button-dense-border-radius","",o.extend("--ft-button-border-radius","",T.borderRadiusM)),verticalPadding:o.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:o.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:o.create("--ft-button-dense-icon-padding","","SIZE","4px")},rp=[$`
384
384
  :host {
385
385
  display: inline-block;
386
386
  max-width: 100%;
@@ -466,9 +466,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
466
466
  }
467
467
 
468
468
  .ft-button.ft-button--primary {
469
- background-color: ${Ws.backgroundColor};
470
- --ft-button-internal-color: ${Ws.color};
471
- ${S(_.color,Ws.rippleColor)};
469
+ background-color: ${Hs.backgroundColor};
470
+ --ft-button-internal-color: ${Hs.color};
471
+ ${S(_.color,Hs.rippleColor)};
472
472
  }
473
473
 
474
474
  .ft-button:focus {
@@ -517,7 +517,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
517
517
  ${S(ut.size,ct.iconSize)};
518
518
  ${S(ut.color,"var(--ft-button-internal-color)")};
519
519
  }
520
- `,Or];var yt={textColor:o.extend("--ft-switch-text-color","",T.colorOnSurfaceHigh),backgroundColor:o.extend("--ft-switch-background-color","",T.colorSurface),selectedTextColor:o.extend("--ft-switch-selected-text-color","",T.colorPrimary),selectedBackgroundColor:o.extend("--ft-switch-selected-background-color","",T.colorPrimary),borderColor:o.extend("--ft-switch-border-color","",T.colorOutline),borderRadius:o.extend("--ft-switch-border-radius","",T.borderRadiusL),fontSize:o.extend("--ft-switch-font-size","",Bt.fontSize),iconSize:o.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:o.extend("--ft-switch-text-color","",T.colorOnSurfaceMedium),rippleColor:o.extend("--ft-switch-ripple-color","",T.colorPrimary),outlineColor:o.extend("--ft-switch-outline-color","",T.colorPrimary)};var ve={feedbackInputMinWidth:o.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:o.external(T.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:o.extend("--ft-reader-feedback-send-feedback-color","",T.colorOnPrimary),sendFeedbackBackgroundColor:o.extend("--ft-reader-feedback-send-feedback-background-color","",T.colorPrimary),filledRatingColor:o.extend("--ft-reader-feedback-filled-rating-color","",T.colorPrimary),emptyRatingColor:o.extend("--ft-reader-feedback-empty-rating-color","",T.colorOnSurfaceMedium),mainTitleFontSize:o.external(qe.fontSize,"Typography"),sectionTitleFontSize:o.external(Ye.fontSize,"Typography"),starsBackgroundColor:o.create("--ft-reader-feedback-stars-background-color","","COLOR",T.colorSurface)},rp=$`
520
+ `,Or];var yt={textColor:o.extend("--ft-switch-text-color","",T.colorOnSurfaceHigh),backgroundColor:o.extend("--ft-switch-background-color","",T.colorSurface),selectedTextColor:o.extend("--ft-switch-selected-text-color","",T.colorPrimary),selectedBackgroundColor:o.extend("--ft-switch-selected-background-color","",T.colorPrimary),borderColor:o.extend("--ft-switch-border-color","",T.colorOutline),borderRadius:o.extend("--ft-switch-border-radius","",T.borderRadiusL),fontSize:o.extend("--ft-switch-font-size","",Bt.fontSize),iconSize:o.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:o.extend("--ft-switch-text-color","",T.colorOnSurfaceMedium),rippleColor:o.extend("--ft-switch-ripple-color","",T.colorPrimary),outlineColor:o.extend("--ft-switch-outline-color","",T.colorPrimary)};var ve={feedbackInputMinWidth:o.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:o.external(T.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:o.extend("--ft-reader-feedback-send-feedback-color","",T.colorOnPrimary),sendFeedbackBackgroundColor:o.extend("--ft-reader-feedback-send-feedback-background-color","",T.colorPrimary),filledRatingColor:o.extend("--ft-reader-feedback-filled-rating-color","",T.colorPrimary),emptyRatingColor:o.extend("--ft-reader-feedback-empty-rating-color","",T.colorOnSurfaceMedium),mainTitleFontSize:o.external(qe.fontSize,"Typography"),sectionTitleFontSize:o.external(Ye.fontSize,"Typography"),starsBackgroundColor:o.create("--ft-reader-feedback-stars-background-color","","COLOR",T.colorSurface)},op=$`
521
521
  .ft-reader-feedback {
522
522
  box-sizing: border-box;
523
523
  display: flex;
@@ -573,15 +573,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
573
573
  [part="buttons-container"] {
574
574
  align-self: flex-end;
575
575
  }
576
- `;var ip=Symbol.for(""),mh=e=>{if(e?.r===ip)return e?._$litStatic$},Hs=e=>({_$litStatic$:e,r:ip});var op=new Map,np=e=>(t,...r)=>{let i=r.length,n,a,s=[],l=[],d,p=0,h=!1;for(;p<i;){for(d=t[p];p<i&&(a=r[p],(n=mh(a))!==void 0);)d+=n+t[++p],h=!0;p!==i&&l.push(a),s.push(d),p++}if(p===i&&s.push(t[i]),h){let f=s.join("$$lit$$");(t=op.get(f))===void 0&&(s.raw=s,op.set(f,t=s)),r=l}return e(t,...r)},zs=np(Sl),WS=np(Ol);var Xe;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button",e.display="display",e.title1="title-1",e.title2="title-2",e.title3="title-3",e.body1regular="body-1-regular",e.body1medium="body-1-medium",e.body1semibold="body-1-semibold",e.body2regular="body-2-regular",e.body2medium="body-2-medium",e.body2semibold="body-2-semibold",e.label1medium="label-1-medium",e.label1semibold="label-1-semibold",e.label1bold="label-1-bold",e.label2medium="label-2-medium",e.label2semibold="label-2-semibold",e.label2bold="label-2-bold",e.caption1medium="caption-1-medium",e.caption1semibold="caption-1-semibold",e.caption1bold="caption-1-bold",e.caption2medium="caption-2-medium",e.caption2semibold="caption-2-semibold",e.caption2bold="caption-2-bold"})(Xe||(Xe={}));var ap=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},xt=class extends j{constructor(){super(...arguments),this.variant=Xe.body1}render(){return this.element?zs`
577
- <${Hs(this.element)}
576
+ `;var np=Symbol.for(""),mh=e=>{if(e?.r===np)return e?._$litStatic$},zs=e=>({_$litStatic$:e,r:np});var ip=new Map,ap=e=>(t,...r)=>{let i=r.length,n,a,s=[],l=[],d,p=0,h=!1;for(;p<i;){for(d=t[p];p<i&&(a=r[p],(n=mh(a))!==void 0);)d+=n+t[++p],h=!0;p!==i&&l.push(a),s.push(d),p++}if(p===i&&s.push(t[i]),h){let f=s.join("$$lit$$");(t=ip.get(f))===void 0&&(s.raw=s,ip.set(f,t=s)),r=l}return e(t,...r)},Vs=ap(Ol),WS=ap(Cl);var Xe;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button",e.display="display",e.title1="title-1",e.title2="title-2",e.title3="title-3",e.body1regular="body-1-regular",e.body1medium="body-1-medium",e.body1semibold="body-1-semibold",e.body2regular="body-2-regular",e.body2medium="body-2-medium",e.body2semibold="body-2-semibold",e.label1medium="label-1-medium",e.label1semibold="label-1-semibold",e.label1bold="label-1-bold",e.label2medium="label-2-medium",e.label2semibold="label-2-semibold",e.label2bold="label-2-bold",e.caption1medium="caption-1-medium",e.caption1semibold="caption-1-semibold",e.caption1bold="caption-1-bold",e.caption2medium="caption-2-medium",e.caption2semibold="caption-2-semibold",e.caption2bold="caption-2-bold"})(Xe||(Xe={}));var sp=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},xt=class extends j{constructor(){super(...arguments),this.variant=Xe.body1}render(){return this.element?Vs`
577
+ <${zs(this.element)}
578
578
  part="text"
579
579
  class="ft-typography ft-typography--${this.variant}">
580
580
  <slot></slot>
581
- </${Hs(this.element)}>
582
- `:zs`
581
+ </${zs(this.element)}>
582
+ `:Vs`
583
583
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
584
- `}};xt.styles=[Wd,Hd,zd,Vd,oo,jd,Bi,Gd,Kd,Zd,qd,...Yd];ap([g()],xt.prototype,"element",void 0);ap([g()],xt.prototype,"variant",void 0);J("ft-typography")(xt);var Vt=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},et=class extends j{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new lt(1e3),this.onTransitionStart=t=>{t.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=t=>{t.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new lt(10),this.moveRipple=t=>{var r,i;let{x:n,y:a}=this.getCoordinates(t),s=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(a!=null?a-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(t?.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return k`
584
+ `}};xt.styles=[Hd,zd,Vd,jd,oo,Gd,Fi,Kd,Zd,qd,Yd,...Xd];sp([g()],xt.prototype,"element",void 0);sp([g()],xt.prototype,"variant",void 0);J("ft-typography")(xt);var Vt=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},rt=class extends j{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new lt(1e3),this.onTransitionStart=t=>{t.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=t=>{t.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new lt(10),this.moveRipple=t=>{var r,i;let{x:n,y:a}=this.getCoordinates(t),s=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(a!=null?a-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(t?.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return P`
585
585
  <style>
586
586
  .ft-ripple .ft-ripple--effect {
587
587
  left: ${this.originX}px;
@@ -592,7 +592,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
592
592
  <div class="ft-ripple--background"></div>
593
593
  <div class="ft-ripple--effect"></div>
594
594
  </div>
595
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var r,i;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var t,r;let i=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let r=(...l)=>d=>{l.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(d)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&r("keyup")(l)},s={passive:!0};t.addEventListener("mouseover",this.startHover,s),t.addEventListener("mousemove",this.moveRipple,s),t.addEventListener("mouseleave",this.endHover,s),t.addEventListener("mousedown",i,s),t.addEventListener("touchstart",n,s),t.addEventListener("touchmove",this.moveRipple,s),t.addEventListener("keydown",a,s),t.addEventListener("focus",this.startFocus,s),t.addEventListener("blur",this.endFocus,s),t.addEventListener("focusin",this.startFocus,s),t.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,s),t.removeEventListener("mousemove",this.moveRipple,s),t.removeEventListener("mouseleave",this.endHover,s),t.removeEventListener("mousedown",i,s),t.removeEventListener("touchstart",n,s),t.removeEventListener("touchmove",this.moveRipple,s),t.removeEventListener("keydown",a,s),t.removeEventListener("focus",this.startFocus,s),t.removeEventListener("blur",this.endFocus,s),t.removeEventListener("focusin",this.startFocus,s),t.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let r=t,i=t,n,a;return r.x!=null?{x:n,y:a}=r:i.touches!=null&&(n=i.touches[0].clientX,a=i.touches[0].clientY),{x:n,y:a}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let r of t.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};et.elementDefinitions={};et.styles=Ud;Vt([g({type:Boolean})],et.prototype,"primary",void 0);Vt([g({type:Boolean})],et.prototype,"secondary",void 0);Vt([g({type:Boolean})],et.prototype,"unbounded",void 0);Vt([g({type:Boolean})],et.prototype,"activated",void 0);Vt([g({type:Boolean})],et.prototype,"selected",void 0);Vt([g({type:Boolean})],et.prototype,"disabled",void 0);Vt([H()],et.prototype,"hovered",void 0);Vt([H()],et.prototype,"focused",void 0);Vt([H()],et.prototype,"pressed",void 0);Vt([H()],et.prototype,"rippling",void 0);Vt([H()],et.prototype,"originX",void 0);Vt([H()],et.prototype,"originY",void 0);Vt([X(".ft-ripple")],et.prototype,"ripple",void 0);Vt([X(".ft-ripple--effect")],et.prototype,"rippleEffect",void 0);J("ft-ripple")(et);var io={distance:o.create("--ft-tooltip-distance","","SIZE","4px"),color:o.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:o.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:o.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:o.external(T.borderRadiusS,"Design system"),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","150px")},sp=$`
595
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var r,i;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var t,r;let i=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let r=(...l)=>d=>{l.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(d)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&r("keyup")(l)},s={passive:!0};t.addEventListener("mouseover",this.startHover,s),t.addEventListener("mousemove",this.moveRipple,s),t.addEventListener("mouseleave",this.endHover,s),t.addEventListener("mousedown",i,s),t.addEventListener("touchstart",n,s),t.addEventListener("touchmove",this.moveRipple,s),t.addEventListener("keydown",a,s),t.addEventListener("focus",this.startFocus,s),t.addEventListener("blur",this.endFocus,s),t.addEventListener("focusin",this.startFocus,s),t.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,s),t.removeEventListener("mousemove",this.moveRipple,s),t.removeEventListener("mouseleave",this.endHover,s),t.removeEventListener("mousedown",i,s),t.removeEventListener("touchstart",n,s),t.removeEventListener("touchmove",this.moveRipple,s),t.removeEventListener("keydown",a,s),t.removeEventListener("focus",this.startFocus,s),t.removeEventListener("blur",this.endFocus,s),t.removeEventListener("focusin",this.startFocus,s),t.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let r=t,i=t,n,a;return r.x!=null?{x:n,y:a}=r:i.touches!=null&&(n=i.touches[0].clientX,a=i.touches[0].clientY),{x:n,y:a}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let r of t.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};rt.elementDefinitions={};rt.styles=Bd;Vt([g({type:Boolean})],rt.prototype,"primary",void 0);Vt([g({type:Boolean})],rt.prototype,"secondary",void 0);Vt([g({type:Boolean})],rt.prototype,"unbounded",void 0);Vt([g({type:Boolean})],rt.prototype,"activated",void 0);Vt([g({type:Boolean})],rt.prototype,"selected",void 0);Vt([g({type:Boolean})],rt.prototype,"disabled",void 0);Vt([H()],rt.prototype,"hovered",void 0);Vt([H()],rt.prototype,"focused",void 0);Vt([H()],rt.prototype,"pressed",void 0);Vt([H()],rt.prototype,"rippling",void 0);Vt([H()],rt.prototype,"originX",void 0);Vt([H()],rt.prototype,"originY",void 0);Vt([X(".ft-ripple")],rt.prototype,"ripple",void 0);Vt([X(".ft-ripple--effect")],rt.prototype,"rippleEffect",void 0);J("ft-ripple")(rt);var io={distance:o.create("--ft-tooltip-distance","","SIZE","4px"),color:o.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:o.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:o.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:o.external(T.borderRadiusS,"Design system"),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","150px")},lp=$`
596
596
  .ft-tooltip--container {
597
597
  display: block;
598
598
  }
@@ -621,7 +621,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
621
621
  position: relative;
622
622
  word-break: break-word;
623
623
  }
624
- `;var jt=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},ft=class extends j{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new lt,this.revealDebouncer=new lt}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return k`
624
+ `;var jt=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},ft=class extends j{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new lt,this.revealDebouncer=new lt}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return P`
625
625
  <div part="container"
626
626
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
627
627
  @mouseenter=${this.onHover}
@@ -639,12 +639,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
639
639
  </div>
640
640
  </div>
641
641
  </div>
642
- `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(r=>t.has(r))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Ha(this.slottedElement,this.tooltip,this.position).then(({x:t,y:r})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${r}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",t=>{t.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,r){return Math.max(t,Math.min(0,-r))}};ft.elementDefinitions={"ft-typography":xt};ft.styles=sp;jt([g()],ft.prototype,"text",void 0);jt([g({type:Boolean})],ft.prototype,"manual",void 0);jt([g({type:Boolean})],ft.prototype,"inline",void 0);jt([g({type:Number})],ft.prototype,"delay",void 0);jt([g()],ft.prototype,"position",void 0);jt([Oo()],ft.prototype,"slotNodes",void 0);jt([X(".ft-tooltip--container")],ft.prototype,"container",void 0);jt([X(".ft-tooltip")],ft.prototype,"tooltip",void 0);jt([X(".ft-tooltip--content")],ft.prototype,"tooltipContent",void 0);jt([H()],ft.prototype,"visible",void 0);jt([we({passive:!0})],ft.prototype,"onTouch",null);jt([we({passive:!0})],ft.prototype,"onHover",null);jt([we({passive:!0})],ft.prototype,"onOut",null);jt([we({passive:!0})],ft.prototype,"onClick",null);J("ft-tooltip")(ft);var Tr;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.OFFLINE="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.ONLINE="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.CIRCLE_STOP="&#xe984;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.ROUTE="&#xe992;",e.CIRCLE_USER_SLASH="&#xe993;",e.CIRCLE_USER_CHECK="&#xe994;",e.LIST_MAGNIFYING_GLASS="&#xe995;",e.MEDAL="&#xe996;",e.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",e.ARROW_TURN_DOWN_RIGHT="&#xe998;",e.FLASK="&#xe999;",e.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",e.HOURGLASS_END="&#xe99b;",e.CIRCLE_QUESTION="&#xe99c;",e.GRIP_LINES_SOLID="&#xe99d;",e.TRANSLATE_SPARKLE_SOLID="&#xe99e;",e.CODE="&#xe99f;",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",e.PAPER_PLANE_SLASH="&#xe9a1;",e.COMPRESS="&#xe9a2;",e.EXPAND="&#xe9a3;",e.ARROW_ROTATE_LEFT="&#xe9a4;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;"})(Tr||(Tr={}));var N;(function(e){e.UNKNOWN="&#xe90a;",e.ABW="&#xe900;",e.AUDIO="&#xe901;",e.AVI="&#xe902;",e.CHM="&#xe904;",e.CODE="&#xe905;",e.CSV="&#xe903;",e.DITA="&#xe906;",e.EPUB="&#xe907;",e.EXCEL="&#xe908;",e.FLAC="&#xe909;",e.GIF="&#xe90b;",e.GZIP="&#xe90c;",e.HTML="&#xe90d;",e.IMAGE="&#xe90e;",e.JPEG="&#xe90f;",e.JSON="&#xe910;",e.M4A="&#xe911;",e.MOV="&#xe912;",e.MP3="&#xe913;",e.MP4="&#xe914;",e.OGG="&#xe915;",e.PDF="&#xe916;",e.PNG="&#xe917;",e.POWERPOINT="&#xe918;",e.RAR="&#xe91a;",e.STP="&#xe91b;",e.TEXT="&#xe91c;",e.VIDEO="&#xe91e;",e.WAV="&#xe91f;",e.WMA="&#xe920;",e.WORD="&#xe921;",e.XML="&#xe922;",e.YAML="&#xe919;",e.ZIP="&#xe923;"})(N||(N={}));var PO=new Map([...["abw"].map(e=>[e,N.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,N.AUDIO]),...["avi"].map(e=>[e,N.AVI]),...["chm","xhs"].map(e=>[e,N.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,N.CODE]),...["csv"].map(e=>[e,N.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,N.DITA]),...["epub"].map(e=>[e,N.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,N.EXCEL]),...["flac"].map(e=>[e,N.FLAC]),...["gif"].map(e=>[e,N.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,N.GZIP]),...["html","htm","xhtml"].map(e=>[e,N.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,N.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,N.JPEG]),...["json"].map(e=>[e,N.JSON]),...["m4a","m4p"].map(e=>[e,N.M4A]),...["mov","qt"].map(e=>[e,N.MOV]),...["mp3"].map(e=>[e,N.MP3]),...["mp4","m4v"].map(e=>[e,N.MP4]),...["ogg","oga"].map(e=>[e,N.OGG]),...["pdf","ps"].map(e=>[e,N.PDF]),...["png"].map(e=>[e,N.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,N.POWERPOINT]),...["rar"].map(e=>[e,N.RAR]),...["stp"].map(e=>[e,N.STP]),...["txt","rtf","md","mdown"].map(e=>[e,N.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,N.VIDEO]),...["wav"].map(e=>[e,N.WAV]),...["wma"].map(e=>[e,N.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,N.WORD]),...["xml","xsl","rdf"].map(e=>[e,N.XML]),...["yaml","yml","x-yaml"].map(e=>[e,N.YAML]),...["zip"].map(e=>[e,N.ZIP])]);var LO={[N.ABW]:"#91ABC6",[N.AUDIO]:"#1795E3",[N.AVI]:"#E63324",[N.CHM]:"#71C3EB",[N.CODE]:"#71C3EB",[N.CSV]:"#1F7345",[N.DITA]:"#71C3EB",[N.EPUB]:"#85B926",[N.EXCEL]:"#1F7345",[N.FLAC]:"#1795E3",[N.GIF]:"#59B031",[N.GZIP]:"#F8AB36",[N.HTML]:"#71C3EB",[N.IMAGE]:"#59B031",[N.JPEG]:"#59B031",[N.JSON]:"#71C3EB",[N.M4A]:"#1795E3",[N.MOV]:"#E63324",[N.MP3]:"#1795E3",[N.MP4]:"#E63324",[N.OGG]:"#1795E3",[N.PDF]:"#E44948",[N.PNG]:"#59B031",[N.POWERPOINT]:"#B54A2B",[N.RAR]:"#F8AB36",[N.STP]:"#3764B1",[N.TEXT]:"#3162AB",[N.UNKNOWN]:"#999999",[N.VIDEO]:"#E63324",[N.WAV]:"#1795E3",[N.WMA]:"#1795E3",[N.WORD]:"#3162AB",[N.XML]:"#71C3EB",[N.YAML]:"#71C3EB",[N.ZIP]:"#F8AB36"};var Dt;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(Dt||(Dt={}));var Fi=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},Ct=class extends j{constructor(){super(...arguments),this.resolvedIcon=W}render(){let t=this.variant&&Object.values(Dt).includes(this.variant)?this.variant:Dt.fluid_topics,r=t!==Dt.material||!!this.value;return k`
642
+ `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(r=>t.has(r))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",za(this.slottedElement,this.tooltip,this.position).then(({x:t,y:r})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${r}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",t=>{t.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,r){return Math.max(t,Math.min(0,-r))}};ft.elementDefinitions={"ft-typography":xt};ft.styles=lp;jt([g()],ft.prototype,"text",void 0);jt([g({type:Boolean})],ft.prototype,"manual",void 0);jt([g({type:Boolean})],ft.prototype,"inline",void 0);jt([g({type:Number})],ft.prototype,"delay",void 0);jt([g()],ft.prototype,"position",void 0);jt([Oo()],ft.prototype,"slotNodes",void 0);jt([X(".ft-tooltip--container")],ft.prototype,"container",void 0);jt([X(".ft-tooltip")],ft.prototype,"tooltip",void 0);jt([X(".ft-tooltip--content")],ft.prototype,"tooltipContent",void 0);jt([H()],ft.prototype,"visible",void 0);jt([we({passive:!0})],ft.prototype,"onTouch",null);jt([we({passive:!0})],ft.prototype,"onHover",null);jt([we({passive:!0})],ft.prototype,"onOut",null);jt([we({passive:!0})],ft.prototype,"onClick",null);J("ft-tooltip")(ft);var Tr;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.OFFLINE="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.ONLINE="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.CIRCLE_STOP="&#xe984;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.ROUTE="&#xe992;",e.CIRCLE_USER_SLASH="&#xe993;",e.CIRCLE_USER_CHECK="&#xe994;",e.LIST_MAGNIFYING_GLASS="&#xe995;",e.MEDAL="&#xe996;",e.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",e.ARROW_TURN_DOWN_RIGHT="&#xe998;",e.FLASK="&#xe999;",e.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",e.HOURGLASS_END="&#xe99b;",e.CIRCLE_QUESTION="&#xe99c;",e.GRIP_LINES_SOLID="&#xe99d;",e.TRANSLATE_SPARKLE_SOLID="&#xe99e;",e.CODE="&#xe99f;",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",e.PAPER_PLANE_SLASH="&#xe9a1;",e.COMPRESS="&#xe9a2;",e.EXPAND="&#xe9a3;",e.ARROW_ROTATE_LEFT="&#xe9a4;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;"})(Tr||(Tr={}));var N;(function(e){e.UNKNOWN="&#xe90a;",e.ABW="&#xe900;",e.AUDIO="&#xe901;",e.AVI="&#xe902;",e.CHM="&#xe904;",e.CODE="&#xe905;",e.CSV="&#xe903;",e.DITA="&#xe906;",e.EPUB="&#xe907;",e.EXCEL="&#xe908;",e.FLAC="&#xe909;",e.GIF="&#xe90b;",e.GZIP="&#xe90c;",e.HTML="&#xe90d;",e.IMAGE="&#xe90e;",e.JPEG="&#xe90f;",e.JSON="&#xe910;",e.M4A="&#xe911;",e.MOV="&#xe912;",e.MP3="&#xe913;",e.MP4="&#xe914;",e.OGG="&#xe915;",e.PDF="&#xe916;",e.PNG="&#xe917;",e.POWERPOINT="&#xe918;",e.RAR="&#xe91a;",e.STP="&#xe91b;",e.TEXT="&#xe91c;",e.VIDEO="&#xe91e;",e.WAV="&#xe91f;",e.WMA="&#xe920;",e.WORD="&#xe921;",e.XML="&#xe922;",e.YAML="&#xe919;",e.ZIP="&#xe923;"})(N||(N={}));var PO=new Map([...["abw"].map(e=>[e,N.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,N.AUDIO]),...["avi"].map(e=>[e,N.AVI]),...["chm","xhs"].map(e=>[e,N.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,N.CODE]),...["csv"].map(e=>[e,N.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,N.DITA]),...["epub"].map(e=>[e,N.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,N.EXCEL]),...["flac"].map(e=>[e,N.FLAC]),...["gif"].map(e=>[e,N.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,N.GZIP]),...["html","htm","xhtml"].map(e=>[e,N.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,N.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,N.JPEG]),...["json"].map(e=>[e,N.JSON]),...["m4a","m4p"].map(e=>[e,N.M4A]),...["mov","qt"].map(e=>[e,N.MOV]),...["mp3"].map(e=>[e,N.MP3]),...["mp4","m4v"].map(e=>[e,N.MP4]),...["ogg","oga"].map(e=>[e,N.OGG]),...["pdf","ps"].map(e=>[e,N.PDF]),...["png"].map(e=>[e,N.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,N.POWERPOINT]),...["rar"].map(e=>[e,N.RAR]),...["stp"].map(e=>[e,N.STP]),...["txt","rtf","md","mdown"].map(e=>[e,N.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,N.VIDEO]),...["wav"].map(e=>[e,N.WAV]),...["wma"].map(e=>[e,N.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,N.WORD]),...["xml","xsl","rdf"].map(e=>[e,N.XML]),...["yaml","yml","x-yaml"].map(e=>[e,N.YAML]),...["zip"].map(e=>[e,N.ZIP])]);var LO={[N.ABW]:"#91ABC6",[N.AUDIO]:"#1795E3",[N.AVI]:"#E63324",[N.CHM]:"#71C3EB",[N.CODE]:"#71C3EB",[N.CSV]:"#1F7345",[N.DITA]:"#71C3EB",[N.EPUB]:"#85B926",[N.EXCEL]:"#1F7345",[N.FLAC]:"#1795E3",[N.GIF]:"#59B031",[N.GZIP]:"#F8AB36",[N.HTML]:"#71C3EB",[N.IMAGE]:"#59B031",[N.JPEG]:"#59B031",[N.JSON]:"#71C3EB",[N.M4A]:"#1795E3",[N.MOV]:"#E63324",[N.MP3]:"#1795E3",[N.MP4]:"#E63324",[N.OGG]:"#1795E3",[N.PDF]:"#E44948",[N.PNG]:"#59B031",[N.POWERPOINT]:"#B54A2B",[N.RAR]:"#F8AB36",[N.STP]:"#3764B1",[N.TEXT]:"#3162AB",[N.UNKNOWN]:"#999999",[N.VIDEO]:"#E63324",[N.WAV]:"#1795E3",[N.WMA]:"#1795E3",[N.WORD]:"#3162AB",[N.XML]:"#71C3EB",[N.YAML]:"#71C3EB",[N.ZIP]:"#F8AB36"};var Dt;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(Dt||(Dt={}));var Wi=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},Ct=class extends j{constructor(){super(...arguments),this.resolvedIcon=W}render(){let t=this.variant&&Object.values(Dt).includes(this.variant)?this.variant:Dt.fluid_topics,r=t!==Dt.material||!!this.value;return P`
643
643
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
644
- ${Bn(this.resolvedIcon)}
644
+ ${Fn(this.resolvedIcon)}
645
645
  <slot ?hidden=${r}></slot>
646
646
  </i>
647
- `}get textContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(t){super.update(t),["value","variant"].some(r=>t.has(r))&&this.resolveIcon()}resolveIcon(){var t,r;let i=this.value||this.textContent;switch(this.variant){case Dt.file_format:this.resolvedIcon=(t=N[i.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:i;break;case Dt.material:this.resolvedIcon=this.value||W;break;default:this.resolvedIcon=(r=Tr[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};Ct.elementDefinitions={};Ct.styles=Jd;Fi([g()],Ct.prototype,"variant",void 0);Fi([g()],Ct.prototype,"value",void 0);Fi([H()],Ct.prototype,"resolvedIcon",void 0);Fi([X("slot")],Ct.prototype,"slottedContent",void 0);J("ft-icon")(Ct);var wt={borderRadiusLeft:o.extend("--ft-switch-option-border-radius-left","",T.borderRadiusL),borderRadiusRight:o.extend("--ft-switch-option-border-radius-right","",T.borderRadiusL),borderWidthLeft:o.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:o.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:o.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},lp=$`
647
+ `}get textContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(t){super.update(t),["value","variant"].some(r=>t.has(r))&&this.resolveIcon()}resolveIcon(){var t,r;let i=this.value||this.textContent;switch(this.variant){case Dt.file_format:this.resolvedIcon=(t=N[i.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:i;break;case Dt.material:this.resolvedIcon=this.value||W;break;default:this.resolvedIcon=(r=Tr[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};Ct.elementDefinitions={};Ct.styles=Qd;Wi([g()],Ct.prototype,"variant",void 0);Wi([g()],Ct.prototype,"value",void 0);Wi([H()],Ct.prototype,"resolvedIcon",void 0);Wi([X("slot")],Ct.prototype,"slottedContent",void 0);J("ft-icon")(Ct);var wt={borderRadiusLeft:o.extend("--ft-switch-option-border-radius-left","",T.borderRadiusL),borderRadiusRight:o.extend("--ft-switch-option-border-radius-right","",T.borderRadiusL),borderWidthLeft:o.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:o.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:o.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},cp=$`
648
648
  .ft-switch-option {
649
649
  position: relative;
650
650
  display: inline-block;
@@ -732,14 +732,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
732
732
  .ft-switch-option--selected ft-icon {
733
733
  color: ${yt.selectedTextColor};
734
734
  }
735
- `;var le=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},Vs=class extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}},js=class extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}},St=class extends j{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1,this.isFocused=!1}focus(){this.input.focus()}update(t){super.update(t),t.has("selected")&&this.dispatchEvent(new js(this.selected))}render(){let t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected,"ft-switch-option--focused":this.isFocused};return this.addTooltip(k`
735
+ `;var le=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},js=class extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}},Gs=class extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}},St=class extends j{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1,this.isFocused=!1}focus(){this.input.focus()}update(t){super.update(t),t.has("selected")&&this.dispatchEvent(new Gs(this.selected))}render(){let t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected,"ft-switch-option--focused":this.isFocused};return this.addTooltip(P`
736
736
  <label part="label" for="input" class=${Rt(t)}
737
737
  @click=${this.onChange}>
738
738
  <div class="ft-switch-option--content">
739
739
  <ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
740
740
  <ft-typography part="text"
741
741
  variant="button"
742
- class="ft-switch-option--label ${jo?"ft-safari-ellipsis-fix":""}"
742
+ class="ft-switch-option--label ${Go?"ft-safari-ellipsis-fix":""}"
743
743
  ?hidden=${!this.hasTextContent()}>
744
744
  <slot @slotchange=${this.onSlotchange}></slot>
745
745
  </ft-typography>
@@ -748,22 +748,22 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
748
748
  </label>
749
749
  <input id="input" type="radio" class="ft-switch-option--input"
750
750
  .checked=${this.selected}>
751
- `)}addTooltip(t){return this.hasTextContent()||this.getLabel().trim().length===0?t:k`
751
+ `)}addTooltip(t){return this.hasTextContent()||this.getLabel().trim().length===0?t:P`
752
752
  <ft-tooltip part="tooltip"
753
753
  text="${this.getLabel()}"
754
754
  position="${this.tooltipPosition}">
755
755
  ${t}
756
756
  </ft-tooltip>
757
- `}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.onFocusout)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this.onFocusout)}onFocusout(t){this.isFocused=!1}onChange(){this.selected=this.unselectable?!this.selected:!0,this.dispatchEvent(new Vs(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?k`
757
+ `}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.onFocusout)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this.onFocusout)}onFocusout(t){this.isFocused=!1}onChange(){this.selected=this.unselectable?!this.selected:!0,this.dispatchEvent(new js(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?P`
758
758
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
759
- `:W}get textContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}};St.elementDefinitions={"ft-ripple":et,"ft-typography":xt,"ft-tooltip":ft,"ft-icon":Ct};St.styles=[Cr,lp];le([g()],St.prototype,"value",void 0);le([g()],St.prototype,"icon",void 0);le([g()],St.prototype,"iconVariant",void 0);le([g()],St.prototype,"label",void 0);le([g()],St.prototype,"tooltipPosition",void 0);le([g({type:Boolean,reflect:!0})],St.prototype,"selected",void 0);le([g({type:Boolean})],St.prototype,"trailingIcon",void 0);le([g({type:Boolean})],St.prototype,"unselectable",void 0);le([X(".ft-switch-option--content slot")],St.prototype,"slottedContent",void 0);le([X(".ft-switch-option--input")],St.prototype,"input",void 0);le([H()],St.prototype,"isFocused",void 0);var Ir=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},Gs=class extends CustomEvent{constructor(t){super("change",{detail:t})}},Ft=class extends j{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.displayFocusWhenUsingKeyboard=!1,this.options=[]}get value(){var t;return(t=this.selectedOption)===null||t===void 0?void 0:t.value}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach(r=>r.unselectable=this.unselectable)}render(){let t={"ft-switch":!0,"ft-switch--dense":this.dense};return k`
759
+ `:W}get textContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}};St.elementDefinitions={"ft-ripple":rt,"ft-typography":xt,"ft-tooltip":ft,"ft-icon":Ct};St.styles=[Cr,cp];le([g()],St.prototype,"value",void 0);le([g()],St.prototype,"icon",void 0);le([g()],St.prototype,"iconVariant",void 0);le([g()],St.prototype,"label",void 0);le([g()],St.prototype,"tooltipPosition",void 0);le([g({type:Boolean,reflect:!0})],St.prototype,"selected",void 0);le([g({type:Boolean})],St.prototype,"trailingIcon",void 0);le([g({type:Boolean})],St.prototype,"unselectable",void 0);le([X(".ft-switch-option--content slot")],St.prototype,"slottedContent",void 0);le([X(".ft-switch-option--input")],St.prototype,"input",void 0);le([H()],St.prototype,"isFocused",void 0);var Ir=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},Ks=class extends CustomEvent{constructor(t){super("change",{detail:t})}},Ft=class extends j{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.displayFocusWhenUsingKeyboard=!1,this.options=[]}get value(){var t;return(t=this.selectedOption)===null||t===void 0?void 0:t.value}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach(r=>r.unselectable=this.unselectable)}render(){let t={"ft-switch":!0,"ft-switch--dense":this.dense};return P`
760
760
  <div @keydown=${this.onKeyDown} tabindex="-1" class="${Rt(t)}" role="radiogroup" aria-label=${this.label}>
761
761
  <slot @slotchange=${this.onSlotchange}
762
762
  @option-change=${this.onOptionChangeByScript}
763
763
  @option-change-by-user=${this.onOptionChangeByUser}
764
764
  ></slot>
765
765
  </div>
766
- `}onKeyDown(t){let r;(t.key=="ArrowDown"||t.key=="ArrowRight")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),(t.key=="ArrowUp"||t.key=="ArrowLeft")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),t.code=="Space"&&(r=this.options.indexOf(t.target)),r!=null&&(t.preventDefault(),this.options[this.fixIndex(r)].focus(),this.displayFocusWhenUsingKeyboard=!0,this.options[this.fixIndex(r)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],(t=this.slottedContent)===null||t===void 0||t.assignedElements().forEach(r=>{r instanceof St&&this.registerOption(r)}),this.selectedOption=this.options.find(r=>r.selected)}registerOption(t){var r;(r=t.shadowRoot)===null||r===void 0||r.querySelectorAll("input").forEach(i=>{i.setAttribute("tabindex","-1")}),t.setAttribute("tabindex","0"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChangeByScript(t){t.stopPropagation();let r=t.target;this.onOptionChange(r)}onOptionChangeByUser(t){var r;t.stopPropagation(),this.displayFocusWhenUsingKeyboard=!1,this.onOptionChange(t.target),this.dispatchEvent(new Gs((r=this.selectedOption)===null||r===void 0?void 0:r.value))}onOptionChange(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find(r=>r.selected)}private(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find(r=>r.selected)}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach(t=>{t.selected=t===this.selectedOption,this.displayFocusWhenUsingKeyboard&&(t.isFocused=t===this.selectedOption)})}};Ft.elementDefinitions={};Ft.styles=$`
766
+ `}onKeyDown(t){let r;(t.key=="ArrowDown"||t.key=="ArrowRight")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),(t.key=="ArrowUp"||t.key=="ArrowLeft")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),t.code=="Space"&&(r=this.options.indexOf(t.target)),r!=null&&(t.preventDefault(),this.options[this.fixIndex(r)].focus(),this.displayFocusWhenUsingKeyboard=!0,this.options[this.fixIndex(r)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],(t=this.slottedContent)===null||t===void 0||t.assignedElements().forEach(r=>{r instanceof St&&this.registerOption(r)}),this.selectedOption=this.options.find(r=>r.selected)}registerOption(t){var r;(r=t.shadowRoot)===null||r===void 0||r.querySelectorAll("input").forEach(i=>{i.setAttribute("tabindex","-1")}),t.setAttribute("tabindex","0"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChangeByScript(t){t.stopPropagation();let r=t.target;this.onOptionChange(r)}onOptionChangeByUser(t){var r;t.stopPropagation(),this.displayFocusWhenUsingKeyboard=!1,this.onOptionChange(t.target),this.dispatchEvent(new Ks((r=this.selectedOption)===null||r===void 0?void 0:r.value))}onOptionChange(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find(r=>r.selected)}private(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find(r=>r.selected)}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach(t=>{t.selected=t===this.selectedOption,this.displayFocusWhenUsingKeyboard&&(t.isFocused=t===this.selectedOption)})}};Ft.elementDefinitions={};Ft.styles=$`
767
767
  :host {
768
768
  display: inline-block;
769
769
  }
@@ -797,7 +797,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
797
797
  --ft-switch-internal-vertical-padding: 2px;
798
798
  --ft-switch-internal-horizontal-padding: 4px;
799
799
  }
800
- `;Ir([g({type:Boolean})],Ft.prototype,"dense",void 0);Ir([g({type:Boolean})],Ft.prototype,"unselectable",void 0);Ir([g()],Ft.prototype,"label",void 0);Ir([X(".ft-switch slot")],Ft.prototype,"slottedContent",void 0);Ir([H()],Ft.prototype,"selectedOption",void 0);Ir([H()],Ft.prototype,"displayFocusWhenUsingKeyboard",void 0);Ir([X(".ft-switch")],Ft.prototype,"ftSwitchDiv",void 0);J("ft-switch")(Ft);J("ft-switch-option")(St);var cp={colorOutline:o.external(T.colorOutline,"Design system"),colorOnSurfaceMedium:o.external(T.colorOnSurfaceMedium,"Design system")},dp=$`
800
+ `;Ir([g({type:Boolean})],Ft.prototype,"dense",void 0);Ir([g({type:Boolean})],Ft.prototype,"unselectable",void 0);Ir([g()],Ft.prototype,"label",void 0);Ir([X(".ft-switch slot")],Ft.prototype,"slottedContent",void 0);Ir([H()],Ft.prototype,"selectedOption",void 0);Ir([H()],Ft.prototype,"displayFocusWhenUsingKeyboard",void 0);Ir([X(".ft-switch")],Ft.prototype,"ftSwitchDiv",void 0);J("ft-switch")(Ft);J("ft-switch-option")(St);var dp={colorOutline:o.external(T.colorOutline,"Design system"),colorOnSurfaceMedium:o.external(T.colorOnSurfaceMedium,"Design system")},pp=$`
801
801
  :host {
802
802
  display: block;
803
803
  }
@@ -808,15 +808,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
808
808
 
809
809
  ft-icon {
810
810
  transform: rotate(-45deg);
811
- color: ${cp.colorOutline};
811
+ color: ${dp.colorOutline};
812
812
  }
813
813
 
814
814
  .ft-resizer--dragging ft-icon,
815
815
  .ft-resizer:hover ft-icon,
816
816
  [role="button"][aria-pressed="true"] ft-icon{
817
- color: ${cp.colorOnSurfaceMedium};
817
+ color: ${dp.colorOnSurfaceMedium};
818
818
  }
819
- `;var ke=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},Wi=class extends CustomEvent{constructor(t,r){super("resize",{detail:{width:t,height:r}})}},It=class extends j{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=Dt.material,this.cursor="nwse-resize",this.dragging=!1,this.isAriaPressed=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=t=>this.doDrag(t.clientX,t.clientY),this.doDragFromTouch=t=>this.doDrag(t.touches[0].clientX,t.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return k`
819
+ `;var ke=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},Hi=class extends CustomEvent{constructor(t,r){super("resize",{detail:{width:t,height:r}})}},It=class extends j{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=Dt.material,this.cursor="nwse-resize",this.dragging=!1,this.isAriaPressed=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=t=>this.doDrag(t.clientX,t.clientY),this.doDragFromTouch=t=>this.doDrag(t.touches[0].clientX,t.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return P`
820
820
  <style>
821
821
  .ft-resizer {
822
822
  cursor: ${Oe(this.cursor)}
@@ -830,7 +830,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
830
830
  @keydown="${this.initKeydownPress}">
831
831
  <ft-icon .variant="${this.iconVariant}" .value="${this.icon}" focusable="false" aria-hidden="true"></ft-icon>
832
832
  </div>
833
- `}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initKeydownPress(t){let r=t.key;if(["Enter","Space","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(r)&&(t.preventDefault(),t.stopPropagation()),this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,r==="Enter"||r==="Space"){let n=t.currentTarget;this.isAriaPressed=!this.isAriaPressed,n.setAttribute("aria-pressed",this.isAriaPressed.toString())}else r==="Escape"&&(this.isAriaPressed=!1);this.isAriaPressed&&(r==="ArrowLeft"?this.fixedWidth-=10:r==="ArrowRight"?this.fixedWidth+=10:r==="ArrowUp"?this.fixedHeight-=10:r==="ArrowDown"&&(this.fixedHeight+=10)),this.dispatchEvent(new Wi(this.fixedWidth,this.fixedHeight))}initDrag(t,r){this.dragging=!0,this.startX=t,this.startY=r,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,r){let i=this.fixedWidth+t-this.startX,n=this.fixedHeight+r-this.startY;this.dispatchEvent(new Wi(i,n))}};It.elementDefinitions={"ft-icon":Ct};It.styles=[Or,dp];ke([g({type:Number})],It.prototype,"initialWidth",void 0);ke([g({type:Number})],It.prototype,"initialHeight",void 0);ke([g()],It.prototype,"icon",void 0);ke([g()],It.prototype,"iconVariant",void 0);ke([g()],It.prototype,"cursor",void 0);ke([H()],It.prototype,"dragging",void 0);ke([H()],It.prototype,"isAriaPressed",void 0);ke([we({passive:!0})],It.prototype,"initDragFromMouse",null);ke([we({passive:!0})],It.prototype,"initDragFromTouch",null);J("ft-resizer")(It);var z={fontSize:o.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:o.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:o.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:o.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:o.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:o.extend("--ft-input-label-border-color","",T.colorOutline),textColor:o.extend("--ft-input-label-text-color","",T.colorOnSurfaceMedium),disabledTextColor:o.extend("--ft-input-label-disabled-text-color","",T.colorOnSurfaceDisabled),backgroundColor:o.extend("--ft-input-label-background-color","",T.colorSurface),borderRadius:o.extend("--ft-input-label-border-radius","",T.borderRadiusS),colorError:o.external(T.colorError,"Design system")},pp=$`
833
+ `}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initKeydownPress(t){let r=t.key;if(["Enter","Space","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(r)&&(t.preventDefault(),t.stopPropagation()),this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,r==="Enter"||r==="Space"){let n=t.currentTarget;this.isAriaPressed=!this.isAriaPressed,n.setAttribute("aria-pressed",this.isAriaPressed.toString())}else r==="Escape"&&(this.isAriaPressed=!1);this.isAriaPressed&&(r==="ArrowLeft"?this.fixedWidth-=10:r==="ArrowRight"?this.fixedWidth+=10:r==="ArrowUp"?this.fixedHeight-=10:r==="ArrowDown"&&(this.fixedHeight+=10)),this.dispatchEvent(new Hi(this.fixedWidth,this.fixedHeight))}initDrag(t,r){this.dragging=!0,this.startX=t,this.startY=r,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,r){let i=this.fixedWidth+t-this.startX,n=this.fixedHeight+r-this.startY;this.dispatchEvent(new Hi(i,n))}};It.elementDefinitions={"ft-icon":Ct};It.styles=[Or,pp];ke([g({type:Number})],It.prototype,"initialWidth",void 0);ke([g({type:Number})],It.prototype,"initialHeight",void 0);ke([g()],It.prototype,"icon",void 0);ke([g()],It.prototype,"iconVariant",void 0);ke([g()],It.prototype,"cursor",void 0);ke([H()],It.prototype,"dragging",void 0);ke([H()],It.prototype,"isAriaPressed",void 0);ke([we({passive:!0})],It.prototype,"initDragFromMouse",null);ke([we({passive:!0})],It.prototype,"initDragFromTouch",null);J("ft-resizer")(It);var z={fontSize:o.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:o.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:o.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:o.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:o.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:o.extend("--ft-input-label-border-color","",T.colorOutline),textColor:o.extend("--ft-input-label-text-color","",T.colorOnSurfaceMedium),disabledTextColor:o.extend("--ft-input-label-disabled-text-color","",T.colorOnSurfaceDisabled),backgroundColor:o.extend("--ft-input-label-background-color","",T.colorSurface),borderRadius:o.extend("--ft-input-label-border-radius","",T.borderRadiusS),colorError:o.external(T.colorError,"Design system")},up=$`
834
834
  .ft-input-label {
835
835
  position: absolute;
836
836
  inset: 0;
@@ -952,16 +952,16 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
952
952
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
953
953
  border-top: none;
954
954
  }
955
- `;var Go=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},Wt=class extends j{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){let t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return k`
955
+ `;var Ko=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},Wt=class extends j{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){let t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return P`
956
956
  <div class="${Rt(t)}">
957
- ${this.text?k`
957
+ ${this.text?P`
958
958
  <div class="ft-input-label--text ft-typography--caption">
959
959
  <span class="ft-input-label--floating-text">${this.text}</span>
960
960
  <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
961
961
  </div>
962
962
  `:null}
963
963
  </div>
964
- `}};Wt.elementDefinitions={};Wt.styles=[Bi,pp];Go([g({type:String})],Wt.prototype,"text",void 0);Go([g({type:Boolean})],Wt.prototype,"raised",void 0);Go([g({type:Boolean})],Wt.prototype,"outlined",void 0);Go([g({type:Boolean})],Wt.prototype,"disabled",void 0);Go([g({type:Boolean})],Wt.prototype,"error",void 0);J("ft-input-label")(Wt);var nt={fontSize:o.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:o.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:o.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:o.extend("--ft-text-area-helper-color","",T.colorOnSurfaceMedium),colorPrimary:o.external(T.colorPrimary,"Design system"),colorOnSurface:o.external(T.colorOnSurface,"Design system"),colorOnSurfaceDisabled:o.external(T.colorOnSurfaceDisabled,"Design system"),borderRadiusS:o.external(T.borderRadiusS,"Design system"),colorError:o.external(T.colorError,"Design system")},up=$`
964
+ `}};Wt.elementDefinitions={};Wt.styles=[Fi,up];Ko([g({type:String})],Wt.prototype,"text",void 0);Ko([g({type:Boolean})],Wt.prototype,"raised",void 0);Ko([g({type:Boolean})],Wt.prototype,"outlined",void 0);Ko([g({type:Boolean})],Wt.prototype,"disabled",void 0);Ko([g({type:Boolean})],Wt.prototype,"error",void 0);J("ft-input-label")(Wt);var nt={fontSize:o.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:o.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:o.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:o.extend("--ft-text-area-helper-color","",T.colorOnSurfaceMedium),colorPrimary:o.external(T.colorPrimary,"Design system"),colorOnSurface:o.external(T.colorOnSurface,"Design system"),colorOnSurfaceDisabled:o.external(T.colorOnSurfaceDisabled,"Design system"),borderRadiusS:o.external(T.borderRadiusS,"Design system"),colorError:o.external(T.colorError,"Design system")},fp=$`
965
965
  *:focus {
966
966
  outline: none;
967
967
  }
@@ -1061,7 +1061,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1061
1061
  position: absolute;
1062
1062
  bottom: 0;
1063
1063
  }
1064
- `;var $e=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},Nt=class extends Rr(j,"textbox"){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){let t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return k`
1064
+ `;var $e=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},Nt=class extends Rr(j,"textbox"){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){let t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return P`
1065
1065
  <style>
1066
1066
  .ft-text-area--main-panel {
1067
1067
  height: calc(4 * ${nt.verticalSpacing} + ${nt.labelSize} + ${nt.fontSize} + ${this.height}px);
@@ -1081,7 +1081,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1081
1081
  ></ft-input-label>
1082
1082
  <div class="ft-text-area--input-panel"
1083
1083
  aria-label="${this.label}">
1084
- ${this.outlined?null:k`
1084
+ ${this.outlined?null:P`
1085
1085
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
1086
1086
  `}
1087
1087
  <textarea class="ft-typography--body1 ft-text-area--input"
@@ -1098,29 +1098,29 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1098
1098
  initialHeight="${this.height}"
1099
1099
  cursor="ns-resize"></ft-resizer>
1100
1100
  </div>
1101
- ${this.helper?k`
1101
+ ${this.helper?P`
1102
1102
  <ft-typography class="ft-text-area--helper-text" variant="caption">
1103
1103
  ${this.helper}
1104
1104
  </ft-typography>`:void 0}
1105
1105
  </div>
1106
- `}setValue(t,r=!1){this.value=t,this.setFormValue(t),r&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(t){(t.key==="Enter"||t.key===" ")&&t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=((t=this.textarea)===null||t===void 0?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}};Nt.elementDefinitions={"ft-input-label":Wt,"ft-resizer":It,"ft-ripple":et,"ft-typography":xt};Nt.styles=[oo,up];$e([g({type:String})],Nt.prototype,"label",void 0);$e([g({reflect:!0})],Nt.prototype,"value",void 0);$e([g({type:String})],Nt.prototype,"helper",void 0);$e([g({type:Boolean})],Nt.prototype,"outlined",void 0);$e([g({type:Boolean})],Nt.prototype,"disabled",void 0);$e([g({type:Boolean})],Nt.prototype,"error",void 0);$e([g({type:Number,reflect:!0})],Nt.prototype,"height",void 0);$e([X("textarea")],Nt.prototype,"textarea",void 0);$e([H()],Nt.prototype,"focused",void 0);J("ft-text-area")(Nt);var Nr=class extends j{render(){return k`
1106
+ `}setValue(t,r=!1){this.value=t,this.setFormValue(t),r&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(t){(t.key==="Enter"||t.key===" ")&&t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=((t=this.textarea)===null||t===void 0?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}};Nt.elementDefinitions={"ft-input-label":Wt,"ft-resizer":It,"ft-ripple":rt,"ft-typography":xt};Nt.styles=[oo,fp];$e([g({type:String})],Nt.prototype,"label",void 0);$e([g({reflect:!0})],Nt.prototype,"value",void 0);$e([g({type:String})],Nt.prototype,"helper",void 0);$e([g({type:Boolean})],Nt.prototype,"outlined",void 0);$e([g({type:Boolean})],Nt.prototype,"disabled",void 0);$e([g({type:Boolean})],Nt.prototype,"error",void 0);$e([g({type:Number,reflect:!0})],Nt.prototype,"height",void 0);$e([X("textarea")],Nt.prototype,"textarea",void 0);$e([H()],Nt.prototype,"focused",void 0);J("ft-text-area")(Nt);var Nr=class extends j{render(){return P`
1107
1107
  <div class="ft-loader">
1108
1108
  <div></div>
1109
1109
  <div></div>
1110
1110
  <div></div>
1111
1111
  <div></div>
1112
1112
  </div>
1113
- `}};Nr.styles=Xd;J("ft-loader")(Nr);var Pt=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},ht=class extends Rr(j,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",t=>{var r;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var t,r,i;let n=k`
1113
+ `}};Nr.styles=Jd;J("ft-loader")(Nr);var Pt=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},ht=class extends Rr(j,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",t=>{var r;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var t,r,i;let n=P`
1114
1114
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
1115
1115
  <ft-typography part="label"
1116
1116
  variant=${this.typographyVariant}
1117
1117
  element="span"
1118
- class="ft-button--label ${jo?"ft-safari-ellipsis-fix":""}"
1118
+ class="ft-button--label ${Go?"ft-safari-ellipsis-fix":""}"
1119
1119
  ?hidden=${!this.hasTextContent()}>
1120
1120
  <slot @slotchange=${this.onSlotchange}></slot>
1121
1121
  </ft-typography>
1122
1122
  ${this.resolveIcon()}
1123
- `,a=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(a?k`
1123
+ `,a=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(a?P`
1124
1124
  <a href="${a}"
1125
1125
  target="${(t=this.target)!==null&&t!==void 0?t:"_self"}"
1126
1126
  part="button"
@@ -1129,25 +1129,25 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1129
1129
  ?disabled=${this.isDisabled()}>
1130
1130
  ${n}
1131
1131
  </a>
1132
- `:k`
1132
+ `:P`
1133
1133
  <button part="button"
1134
1134
  class="${Rt(this.buttonClasses)}"
1135
1135
  aria-label="${(i=this.ariaLabel)!==null&&i!==void 0?i:this.getLabel()}"
1136
1136
  ?disabled=${this.isDisabled()}>
1137
1137
  ${n}
1138
1138
  </button>
1139
- `)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?k`
1139
+ `)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?P`
1140
1140
  <ft-tooltip part="tooltip"
1141
1141
  text="${this.getLabel()}"
1142
1142
  position="${this.tooltipPosition}">
1143
1143
  ${t}
1144
1144
  </ft-tooltip>
1145
- `:t}resolveIcon(){return this.loading?k`
1146
- <ft-loader part="loader icon"></ft-loader> `:this.icon?k`
1145
+ `:t}resolveIcon(){return this.loading?P`
1146
+ <ft-loader part="loader icon"></ft-loader> `:this.icon?P`
1147
1147
  <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
1148
- `:k`
1148
+ `:P`
1149
1149
  <slot part="icon" name="icon"></slot>
1150
- `}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}focusWithoutTooltip(){var t;this.setTooltipManual(!0),(t=this.button)===null||t===void 0||t.focus(),this.setTooltipManual(!1)}setTooltipManual(t){this.tooltip&&(this.tooltip.manual=t)}click(){var t;(t=this.button)===null||t===void 0||t.click()}getLabel(){return this.label||this.textContent}get textContent(){return Si(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};ht.elementDefinitions={"ft-ripple":et,"ft-tooltip":ft,"ft-typography":xt,"ft-icon":Ct,"ft-loader":Nr};Pt([g()],ht.prototype,"href",void 0);Pt([g()],ht.prototype,"target",void 0);Pt([g({type:String,reflect:!0})],ht.prototype,"role",void 0);Pt([g()],ht.prototype,"type",void 0);Pt([g({type:Boolean})],ht.prototype,"disabled",void 0);Pt([g()],ht.prototype,"label",void 0);Pt([g()],ht.prototype,"icon",void 0);Pt([g()],ht.prototype,"iconVariant",void 0);Pt([g({type:Boolean})],ht.prototype,"trailingIcon",void 0);Pt([g({type:Boolean})],ht.prototype,"loading",void 0);Pt([g({attribute:"aria-label"})],ht.prototype,"ariaLabel",void 0);Pt([g()],ht.prototype,"tooltipPosition",void 0);Pt([g({type:Boolean})],ht.prototype,"hideTooltip",void 0);Pt([g({type:Boolean})],ht.prototype,"forceTooltip",void 0);Pt([X(".ft-button")],ht.prototype,"button",void 0);Pt([X(".ft-button--label slot")],ht.prototype,"slottedContent",void 0);Pt([X("[part=tooltip]")],ht.prototype,"tooltip",void 0);var Hi=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},ce=class extends ht{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}};ce.styles=[Cr,ep];Hi([g({type:Boolean})],ce.prototype,"primary",void 0);Hi([g({type:Boolean})],ce.prototype,"outlined",void 0);Hi([g({type:Boolean})],ce.prototype,"dense",void 0);Hi([g({type:Boolean})],ce.prototype,"round",void 0);var fp=[$`
1150
+ `}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}focusWithoutTooltip(){var t;this.setTooltipManual(!0),(t=this.button)===null||t===void 0||t.focus(),this.setTooltipManual(!1)}setTooltipManual(t){this.tooltip&&(this.tooltip.manual=t)}click(){var t;(t=this.button)===null||t===void 0||t.click()}getLabel(){return this.label||this.textContent}get textContent(){return Oi(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};ht.elementDefinitions={"ft-ripple":rt,"ft-tooltip":ft,"ft-typography":xt,"ft-icon":Ct,"ft-loader":Nr};Pt([g()],ht.prototype,"href",void 0);Pt([g()],ht.prototype,"target",void 0);Pt([g({type:String,reflect:!0})],ht.prototype,"role",void 0);Pt([g()],ht.prototype,"type",void 0);Pt([g({type:Boolean})],ht.prototype,"disabled",void 0);Pt([g()],ht.prototype,"label",void 0);Pt([g()],ht.prototype,"icon",void 0);Pt([g()],ht.prototype,"iconVariant",void 0);Pt([g({type:Boolean})],ht.prototype,"trailingIcon",void 0);Pt([g({type:Boolean})],ht.prototype,"loading",void 0);Pt([g({attribute:"aria-label"})],ht.prototype,"ariaLabel",void 0);Pt([g()],ht.prototype,"tooltipPosition",void 0);Pt([g({type:Boolean})],ht.prototype,"hideTooltip",void 0);Pt([g({type:Boolean})],ht.prototype,"forceTooltip",void 0);Pt([X(".ft-button")],ht.prototype,"button",void 0);Pt([X(".ft-button--label slot")],ht.prototype,"slottedContent",void 0);Pt([X("[part=tooltip]")],ht.prototype,"tooltip",void 0);var zi=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},ce=class extends ht{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}};ce.styles=[Cr,rp];zi([g({type:Boolean})],ce.prototype,"primary",void 0);zi([g({type:Boolean})],ce.prototype,"outlined",void 0);zi([g({type:Boolean})],ce.prototype,"dense",void 0);zi([g({type:Boolean})],ce.prototype,"round",void 0);var hp=[$`
1151
1151
  :host {
1152
1152
  display: inline-block;
1153
1153
  max-width: 100%;
@@ -1613,15 +1613,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1613
1613
  .ftds--size-small.ft-button--icon-only {
1614
1614
  width: ${b.smallIconOnlyWidth};
1615
1615
  }
1616
- `,Or];var zi=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},De=class extends _i(ht){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=yr.brand,this.iconVariant=Dt.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case _e.large:return Xe.body2medium;case _e.medium:return Xe.caption1medium;case _e.small:return Xe.caption2medium}}};De.styles=[Cr,fp];zi([g({type:Boolean})],De.prototype,"primary",void 0);zi([g({type:Boolean})],De.prototype,"secondary",void 0);zi([g({type:Boolean})],De.prototype,"tertiary",void 0);zi([g({type:Boolean})],De.prototype,"round",void 0);J("ft-button")(ce);J("ftds-button")(De);var hp=$`
1617
- `;var mp=$`
1618
- `;var yh="ft-app-info",Ks=class extends CustomEvent{constructor(t){super("authentication-change",{detail:t})}},gh={session:(e,t)=>{re(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>M.dispatchEvent(new Ks(t.payload)),0))}},M=Pe.get({name:yh,reducers:gh,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var Pr=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:i}=M.getState(),n=t??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(t){return new Promise(r=>{let i=e.get(t);if(i)r(i);else{let n=M.subscribe(()=>{i=e.get(t),i&&(n(),r(i))})}})}};var xe=class{constructor(t=!0,r){var i;this.overrideApi=r;let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new he,this.cache=t?n.commonCache:new he}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:Pr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Pr.await()}clearCache(){this.cache.clearAll()}};var yp,bh=Symbol("clearAfterUnitTest"),Vi=class extends xe{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[yp]=()=>{this.defaultMessages={},this.cache=new he,this.listeners={}},this.currentUiLocale=M.getState().uiLocale,M.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=M.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var i;if(t=t.toLowerCase(),Object.keys(r).length>0){let n={...(i=this.defaultMessages[t])!==null&&i!==void 0?i:{},...r};re(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}await this.fetchContext(t)}resolveContext(t){var r,i;return this.fetchContext(t),(i=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(t,r){let i=t.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(t,r,...i){var n;let a=t.toLowerCase(),s=this.resolveContext(a);return new Mo((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(r,...i)}async fetchContext(t){var r,i,n;if(!this.cache.has(t))if(((i=(r=window.process)===null||r===void 0?void 0:r.env)===null||i===void 0?void 0:i.NODE_ENV)==="test")this.cache.set(t,(n=this.defaultMessages[t])!==null&&n!==void 0?n:{});else try{await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),await this.notify(t)}catch(a){console.error(a)}}subscribe(t,r){var i;return t=t.toLowerCase(),this.listeners[t]=(i=this.listeners[t])!==null&&i!==void 0?i:new Set,this.listeners[t].add(r),()=>{var n;return(n=this.listeners[t])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(t=>this.notify(t)))}async notify(t){this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(r=>vi(0).then(()=>r()).catch(()=>null)))}};yp=bh;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Vi{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Vi{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Lr=window.FluidTopicsI18nService,gp=window.FluidTopicsCustomI18nService;var Mt=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},gt=class extends j{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=()=>Pr.get(),this.messageContexts=[],this.cache=new he,this.cleanSessionDebouncer=new lt}render(){return k`
1616
+ `,Or];var Vi=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},De=class extends Ri(ht){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=yr.brand,this.iconVariant=Dt.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case _e.large:return Xe.body2medium;case _e.medium:return Xe.caption1medium;case _e.small:return Xe.caption2medium}}};De.styles=[Cr,hp];Vi([g({type:Boolean})],De.prototype,"primary",void 0);Vi([g({type:Boolean})],De.prototype,"secondary",void 0);Vi([g({type:Boolean})],De.prototype,"tertiary",void 0);Vi([g({type:Boolean})],De.prototype,"round",void 0);J("ft-button")(ce);J("ftds-button")(De);var mp=$`
1617
+ `;var yp=$`
1618
+ `;var yh="ft-app-info",Zs=class extends CustomEvent{constructor(t){super("authentication-change",{detail:t})}},gh={session:(e,t)=>{re(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>M.dispatchEvent(new Zs(t.payload)),0))}},M=Pe.get({name:yh,reducers:gh,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var Pr=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:i}=M.getState(),n=t??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(t){return new Promise(r=>{let i=e.get(t);if(i)r(i);else{let n=M.subscribe(()=>{i=e.get(t),i&&(n(),r(i))})}})}};var xe=class{constructor(t=!0,r){var i;this.overrideApi=r;let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new he,this.cache=t?n.commonCache:new he}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:Pr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Pr.await()}clearCache(){this.cache.clearAll()}};var gp,bh=Symbol("clearAfterUnitTest"),ji=class extends xe{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[gp]=()=>{this.defaultMessages={},this.cache=new he,this.listeners={}},this.currentUiLocale=M.getState().uiLocale,M.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=M.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var i;if(t=t.toLowerCase(),Object.keys(r).length>0){let n={...(i=this.defaultMessages[t])!==null&&i!==void 0?i:{},...r};re(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}await this.fetchContext(t)}resolveContext(t){var r,i;return this.fetchContext(t),(i=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(t,r){let i=t.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(t,r,...i){var n;let a=t.toLowerCase(),s=this.resolveContext(a);return new Uo((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(r,...i)}async fetchContext(t){var r,i,n;if(!this.cache.has(t))if(((i=(r=window.process)===null||r===void 0?void 0:r.env)===null||i===void 0?void 0:i.NODE_ENV)==="test")this.cache.set(t,(n=this.defaultMessages[t])!==null&&n!==void 0?n:{});else try{await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),await this.notify(t)}catch(a){console.error(a)}}subscribe(t,r){var i;return t=t.toLowerCase(),this.listeners[t]=(i=this.listeners[t])!==null&&i!==void 0?i:new Set,this.listeners[t].add(r),()=>{var n;return(n=this.listeners[t])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(t=>this.notify(t)))}async notify(t){this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(r=>xi(0).then(()=>r()).catch(()=>null)))}};gp=bh;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends ji{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends ji{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Lr=window.FluidTopicsI18nService,bp=window.FluidTopicsCustomI18nService;var Mt=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},gt=class extends j{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=()=>Pr.get(),this.messageContexts=[],this.cache=new he,this.cleanSessionDebouncer=new lt}render(){return P`
1619
1619
  <slot></slot>
1620
- `}update(t){var r,i,n,a,s;super.update(t),t.has("baseUrl")&&(M.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&M.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&M.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&M.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&M.actions.noCustom(this.noCustom),t.has("editorMode")&&M.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&M.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&M.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(l=>Lr.addContext(l)),t.has("openExternalDocumentInNewTab")&&M.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&M.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&M.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(M.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),M.actions.availableUiLocales((n=(i=this.localesConfiguration)===null||i===void 0?void 0:i.availableUiLocales)!==null&&n!==void 0?n:[]),M.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};gt.elementDefinitions={};gt.styles=mp;Mt([g()],gt.prototype,"baseUrl",void 0);Mt([g()],gt.prototype,"apiIntegrationIdentifier",void 0);Mt([g()],gt.prototype,"uiLocale",void 0);Mt([me(null)],gt.prototype,"availableUiLocales",void 0);Mt([me(null)],gt.prototype,"metadataConfiguration",void 0);Mt([g({type:Boolean})],gt.prototype,"editorMode",void 0);Mt([g({type:Boolean})],gt.prototype,"noCustom",void 0);Mt([g({type:Boolean})],gt.prototype,"openExternalDocumentInNewTab",void 0);Mt([g({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],gt.prototype,"noCustomComponent",void 0);Mt([g({type:Boolean})],gt.prototype,"withManualResources",void 0);Mt([g({type:Boolean})],gt.prototype,"navigatorOnline",void 0);Mt([g({type:Boolean})],gt.prototype,"forcedOffline",void 0);Mt([g({type:Object})],gt.prototype,"apiProvider",void 0);Mt([me([])],gt.prototype,"messageContexts",void 0);Mt([me(void 0)],gt.prototype,"session",void 0);Mt([H()],gt.prototype,"localesConfiguration",void 0);var ji=class extends xe{async listMySearches(){let t=M.getState().session;return t?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var Gi=class extends xe{async listMyBookmarks(){let t=M.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var vh="ft-user-assets",Ki=Pe.get({name:vh,initialState:{savedSearches:void 0,bookmarks:void 0}}),Zs=class{constructor(){this.currentSession=M.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Gi,this.savedSearchesService=new ji,M.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=M.getState();re((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ki.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ki.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();Ki.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Ki.actions.bookmarks(r)}}},bp=new Zs;var qs=class{addCommand(t,r=!1){M.commands.add(t,r)}consumeCommand(t){return M.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new qs;var Ys=class{highlightHtml(t,r,i){Ya(t,r,i)}};window.FluidTopicsHighlightHtmlService=new Ys;var Xs=class{isDate(t){var r,i,n,a;return(a=(n=((i=(r=M.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(l=>l.key===t))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(t,r){var i,n,a;return Xr.format(t,(i=r?.locale)!==null&&i!==void 0?i:M.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Xs;J("ft-app-context")(gt);var xh=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},Js=Symbol("i18nAttributes"),Qs=Symbol("i18nListAttributes"),kr=Symbol("i18nProperties"),tl=Symbol("i18nManualContexts"),Ko=Symbol("i18nUnsubs");function Je(e){var t,r;class i extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[r]=new Map}get i18nService(){return this.useCustomMessageContexts?gp:Lr}i18n(a,s,...l){var d;if(typeof a=="string")return this.i18nService.resolveMessage(a,s,...l);let p=(d=a.args)!==null&&d!==void 0?d:a.argsProvider?a.argsProvider(this):[];return this.i18nService.resolveMessage(a.context,a.key,...p)}onI18nUpdate(a){var s,l,d;(s=this[Js])===null||s===void 0||s.forEach((p,h)=>{let f=this.getI18nAttributeValue(h);f&&(this[h]=this.getI18nAttributeMessage(f,p,a))}),(l=this[Qs])===null||l===void 0||l.forEach((p,h)=>{let f=this.getI18nListAttributeValues(h);this[h]=f?.map(m=>this.getI18nAttributeMessage(m,p,a))}),(d=this[kr])===null||d===void 0||d.forEach((p,h)=>{p.context.toLowerCase()===a.toLowerCase()&&(this[h]=this.i18n(p))}),setTimeout(()=>this.requestUpdate(),0)}buildI18nAttributeMessage(a,s){return{...a,message:this.i18n({context:a.context,key:a.key,...s})}}getI18nAttributeMessage(a,s,l){var d;let p=!l||((d=a.context)===null||d===void 0?void 0:d.toLowerCase())===l.toLowerCase();return a.context&&a.key&&p?this.buildI18nAttributeMessage(a,s):a}update(a){var s,l,d;super.update(a),(s=this[Js])===null||s===void 0||s.forEach((p,h)=>{let f=this.getI18nAttributeValue(h);f?.context&&f.key&&(a.has(h)||p.argsProvider!=null)&&(this.addI18nContextIfNeeded(f,a,h),this[h]=this.getI18nAttributeMessage(f,p))}),(l=this[Qs])===null||l===void 0||l.forEach((p,h)=>{let f=this.getI18nListAttributeValues(h);(a.has(h)||p.argsProvider!=null)&&(this[h]=f?.map(m=>(this.addI18nContextIfNeeded(m,a,h),this.getI18nAttributeMessage(m,p))))}),(d=this[kr])===null||d===void 0||d.forEach((p,h)=>{p.argsProvider!=null&&(this[h]=this.i18n(p))})}getI18nAttributeValue(a){return this[a]}getI18nListAttributeValues(a){return this[a]}addI18nContextIfNeeded(a,s,l){a.context&&a.key&&s.has(l)&&this.addI18nContext(a.context)}addI18nMessagesAndSubscribe(a,s){a=a.toLowerCase(),this[Ko].has(a)||this[Ko].set(a,this.i18nService.subscribe(a,()=>this.onI18nUpdate(a))),this.i18nService.prepareContext(a,s??{}),this.onI18nUpdate(a)}connectedCallback(){var a,s,l,d,p,h;super.connectedCallback(),new Set([...(s=(a=this[kr])===null||a===void 0?void 0:a.values())!==null&&s!==void 0?s:[],...[...(d=(l=this[Js])===null||l===void 0?void 0:l.keys())!==null&&d!==void 0?d:[]].map(f=>this.getI18nAttributeValue(f)),...[...(h=(p=this[Qs])===null||p===void 0?void 0:p.keys())!==null&&h!==void 0?h:[]].flatMap(f=>this.getI18nListAttributeValues(f))].map(f=>f?.context)).forEach(f=>f&&this.addI18nMessages(f)),this[tl].forEach((f,m)=>{this.addI18nMessages(m,f)})}addI18nMessages(a,s){this[tl].set(a,s??{}),this.addI18nMessagesAndSubscribe(a,s)}addI18nContext(a,s){this.addI18nMessages(typeof a=="string"?a:a.name,s)}disconnectedCallback(){super.disconnectedCallback(),this[Ko].forEach(a=>a()),this[Ko].clear()}}return t=tl,r=Ko,xh([g({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}var vp=class extends Je(j){},Zi=class extends Je(Yt){};var Zo=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},de=class extends Zi{constructor(){super(),this.editorMode=!1,this.addStore(M)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":W:k`
1620
+ `}update(t){var r,i,n,a,s;super.update(t),t.has("baseUrl")&&(M.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&M.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&M.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&M.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&M.actions.noCustom(this.noCustom),t.has("editorMode")&&M.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&M.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&M.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(l=>Lr.addContext(l)),t.has("openExternalDocumentInNewTab")&&M.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&M.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&M.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(M.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),M.actions.availableUiLocales((n=(i=this.localesConfiguration)===null||i===void 0?void 0:i.availableUiLocales)!==null&&n!==void 0?n:[]),M.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};gt.elementDefinitions={};gt.styles=yp;Mt([g()],gt.prototype,"baseUrl",void 0);Mt([g()],gt.prototype,"apiIntegrationIdentifier",void 0);Mt([g()],gt.prototype,"uiLocale",void 0);Mt([me(null)],gt.prototype,"availableUiLocales",void 0);Mt([me(null)],gt.prototype,"metadataConfiguration",void 0);Mt([g({type:Boolean})],gt.prototype,"editorMode",void 0);Mt([g({type:Boolean})],gt.prototype,"noCustom",void 0);Mt([g({type:Boolean})],gt.prototype,"openExternalDocumentInNewTab",void 0);Mt([g({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],gt.prototype,"noCustomComponent",void 0);Mt([g({type:Boolean})],gt.prototype,"withManualResources",void 0);Mt([g({type:Boolean})],gt.prototype,"navigatorOnline",void 0);Mt([g({type:Boolean})],gt.prototype,"forcedOffline",void 0);Mt([g({type:Object})],gt.prototype,"apiProvider",void 0);Mt([me([])],gt.prototype,"messageContexts",void 0);Mt([me(void 0)],gt.prototype,"session",void 0);Mt([H()],gt.prototype,"localesConfiguration",void 0);var Gi=class extends xe{async listMySearches(){let t=M.getState().session;return t?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var Ki=class extends xe{async listMyBookmarks(){let t=M.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var vh="ft-user-assets",Zi=Pe.get({name:vh,initialState:{savedSearches:void 0,bookmarks:void 0}}),qs=class{constructor(){this.currentSession=M.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ki,this.savedSearchesService=new Gi,M.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=M.getState();re((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Zi.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Zi.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();Zi.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Zi.actions.bookmarks(r)}}},vp=new qs;var Ys=class{addCommand(t,r=!1){M.commands.add(t,r)}consumeCommand(t){return M.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Ys;var Xs=class{highlightHtml(t,r,i){Xa(t,r,i)}};window.FluidTopicsHighlightHtmlService=new Xs;var Js=class{isDate(t){var r,i,n,a;return(a=(n=((i=(r=M.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(l=>l.key===t))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(t,r){var i,n,a;return Xr.format(t,(i=r?.locale)!==null&&i!==void 0?i:M.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Js;J("ft-app-context")(gt);var xh=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},Qs=Symbol("i18nAttributes"),tl=Symbol("i18nListAttributes"),kr=Symbol("i18nProperties"),el=Symbol("i18nManualContexts"),Zo=Symbol("i18nUnsubs");function Je(e){var t,r;class i extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[r]=new Map}get i18nService(){return this.useCustomMessageContexts?bp:Lr}i18n(a,s,...l){var d;if(typeof a=="string")return this.i18nService.resolveMessage(a,s,...l);let p=(d=a.args)!==null&&d!==void 0?d:a.argsProvider?a.argsProvider(this):[];return this.i18nService.resolveMessage(a.context,a.key,...p)}onI18nUpdate(a){var s,l,d;(s=this[Qs])===null||s===void 0||s.forEach((p,h)=>{let f=this.getI18nAttributeValue(h);f&&(this[h]=this.getI18nAttributeMessage(f,p,a))}),(l=this[tl])===null||l===void 0||l.forEach((p,h)=>{let f=this.getI18nListAttributeValues(h);this[h]=f?.map(m=>this.getI18nAttributeMessage(m,p,a))}),(d=this[kr])===null||d===void 0||d.forEach((p,h)=>{p.context.toLowerCase()===a.toLowerCase()&&(this[h]=this.i18n(p))}),setTimeout(()=>this.requestUpdate(),0)}buildI18nAttributeMessage(a,s){return{...a,message:this.i18n({context:a.context,key:a.key,...s})}}getI18nAttributeMessage(a,s,l){var d;let p=!l||((d=a.context)===null||d===void 0?void 0:d.toLowerCase())===l.toLowerCase();return a.context&&a.key&&p?this.buildI18nAttributeMessage(a,s):a}update(a){var s,l,d;super.update(a),(s=this[Qs])===null||s===void 0||s.forEach((p,h)=>{let f=this.getI18nAttributeValue(h);f?.context&&f.key&&(a.has(h)||p.argsProvider!=null)&&(this.addI18nContextIfNeeded(f,a,h),this[h]=this.getI18nAttributeMessage(f,p))}),(l=this[tl])===null||l===void 0||l.forEach((p,h)=>{let f=this.getI18nListAttributeValues(h);(a.has(h)||p.argsProvider!=null)&&(this[h]=f?.map(m=>(this.addI18nContextIfNeeded(m,a,h),this.getI18nAttributeMessage(m,p))))}),(d=this[kr])===null||d===void 0||d.forEach((p,h)=>{p.argsProvider!=null&&(this[h]=this.i18n(p))})}getI18nAttributeValue(a){return this[a]}getI18nListAttributeValues(a){return this[a]}addI18nContextIfNeeded(a,s,l){a.context&&a.key&&s.has(l)&&this.addI18nContext(a.context)}addI18nMessagesAndSubscribe(a,s){a=a.toLowerCase(),this[Zo].has(a)||this[Zo].set(a,this.i18nService.subscribe(a,()=>this.onI18nUpdate(a))),this.i18nService.prepareContext(a,s??{}),this.onI18nUpdate(a)}connectedCallback(){var a,s,l,d,p,h;super.connectedCallback(),new Set([...(s=(a=this[kr])===null||a===void 0?void 0:a.values())!==null&&s!==void 0?s:[],...[...(d=(l=this[Qs])===null||l===void 0?void 0:l.keys())!==null&&d!==void 0?d:[]].map(f=>this.getI18nAttributeValue(f)),...[...(h=(p=this[tl])===null||p===void 0?void 0:p.keys())!==null&&h!==void 0?h:[]].flatMap(f=>this.getI18nListAttributeValues(f))].map(f=>f?.context)).forEach(f=>f&&this.addI18nMessages(f)),this[el].forEach((f,m)=>{this.addI18nMessages(m,f)})}addI18nMessages(a,s){this[el].set(a,s??{}),this.addI18nMessagesAndSubscribe(a,s)}addI18nContext(a,s){this.addI18nMessages(typeof a=="string"?a:a.name,s)}disconnectedCallback(){super.disconnectedCallback(),this[Zo].forEach(a=>a()),this[Zo].clear()}}return t=el,r=Zo,xh([g({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}var xp=class extends Je(j){},qi=class extends Je(Yt){};var qo=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},de=class extends qi{constructor(){super(),this.editorMode=!1,this.addStore(M)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":W:P`
1621
1621
  <span class="ft-i18n">
1622
1622
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
1623
1623
  </span>
1624
- `}update(t){var r;super.update(t),["context","key","defaultMessage"].some(i=>t.has(i))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};de.elementDefinitions={};de.styles=hp;Zo([dt()],de.prototype,"editorMode",void 0);Zo([g()],de.prototype,"context",void 0);Zo([g()],de.prototype,"key",void 0);Zo([me([])],de.prototype,"args",void 0);Zo([g()],de.prototype,"defaultMessage",void 0);var Qe=class e{static build(t){return new e(t)}static fromGwt(t){return new e(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(r,i)=>{let n=i;return a=>({context:this.name,key:n,args:typeof a=="function"?void 0:a,argsProvider:typeof a=="function"?a:void 0})}}),this.messages=new Proxy({},{get:(r,i)=>(...n)=>Lr.resolveMessage(this.name,i,...n)}),this.rawMessages=new Proxy({},{get:(r,i)=>Lr.resolveRawMessage(this.name,i)})}};var qi=(e,t)=>(r,i)=>{var n,a;r.constructor.createProperty(i,t??{attribute:!1,type:String});let s={...e,key:(n=e.key)!==null&&n!==void 0?n:i};r[kr]=(a=r[kr])!==null&&a!==void 0?a:new Map,r[kr].set(i,s)};J("ft-i18n")(de);var tt=Qe.build("integratedFeedbackComponent"),xp={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",moreOptionsButton:"More options",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"};var Yi=e=>e??mt;var G={fontSize:o.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:o.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:o.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:o.extend("--ft-text-field-helper-color","",T.colorOnSurfaceMedium),colorPrimary:o.external(T.colorPrimary,"Design system"),colorOnSurface:o.external(T.colorOnSurface,"Design system"),colorOnSurfaceDisabled:o.external(T.colorOnSurfaceDisabled,"Design system"),borderRadiusS:o.external(T.borderRadiusS,"Design system"),colorError:o.external(T.colorError,"Design system"),prefixColor:o.extend("--ft-text-field-prefix-color","",T.colorOnSurfaceMedium),iconColor:o.extend("--ft-text-field-icon-color","",T.colorOnSurfaceMedium),floatingZIndex:o.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),backgroundColor:o.extend("--ft-text-field-background-color","",T.colorSurface),colorOutline:o.external(T.colorOutline,"Design system"),elevation02:o.external(T.elevation02,"Design system"),suggestSize:o.create("--ft-text-field-suggest-size","","SIZE","300px")},Sp=$`
1624
+ `}update(t){var r;super.update(t),["context","key","defaultMessage"].some(i=>t.has(i))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};de.elementDefinitions={};de.styles=mp;qo([dt()],de.prototype,"editorMode",void 0);qo([g()],de.prototype,"context",void 0);qo([g()],de.prototype,"key",void 0);qo([me([])],de.prototype,"args",void 0);qo([g()],de.prototype,"defaultMessage",void 0);var Qe=class e{static build(t){return new e(t)}static fromGwt(t){return new e(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(r,i)=>{let n=i;return a=>({context:this.name,key:n,args:typeof a=="function"?void 0:a,argsProvider:typeof a=="function"?a:void 0})}}),this.messages=new Proxy({},{get:(r,i)=>(...n)=>Lr.resolveMessage(this.name,i,...n)}),this.rawMessages=new Proxy({},{get:(r,i)=>Lr.resolveRawMessage(this.name,i)})}};var Yi=(e,t)=>(r,i)=>{var n,a;r.constructor.createProperty(i,t??{attribute:!1,type:String});let s={...e,key:(n=e.key)!==null&&n!==void 0?n:i};r[kr]=(a=r[kr])!==null&&a!==void 0?a:new Map,r[kr].set(i,s)};J("ft-i18n")(de);var tt=Qe.build("integratedFeedbackComponent"),Sp={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",moreOptionsButton:"More options",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"};var Xi=e=>e??mt;var G={fontSize:o.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:o.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:o.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:o.extend("--ft-text-field-helper-color","",T.colorOnSurfaceMedium),colorPrimary:o.external(T.colorPrimary,"Design system"),colorOnSurface:o.external(T.colorOnSurface,"Design system"),colorOnSurfaceDisabled:o.external(T.colorOnSurfaceDisabled,"Design system"),borderRadiusS:o.external(T.borderRadiusS,"Design system"),colorError:o.external(T.colorError,"Design system"),prefixColor:o.extend("--ft-text-field-prefix-color","",T.colorOnSurfaceMedium),iconColor:o.extend("--ft-text-field-icon-color","",T.colorOnSurfaceMedium),floatingZIndex:o.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),backgroundColor:o.extend("--ft-text-field-background-color","",T.colorSurface),colorOutline:o.external(T.colorOutline,"Design system"),elevation02:o.external(T.elevation02,"Design system"),suggestSize:o.create("--ft-text-field-suggest-size","","SIZE","300px")},Op=$`
1625
1625
  *:focus {
1626
1626
  outline: none;
1627
1627
  }
@@ -1779,7 +1779,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1779
1779
  .ft-text-field--with-password ft-icon:hover {
1780
1780
  cursor: pointer;
1781
1781
  }
1782
- `;var Op=$`
1782
+ `;var Cp=$`
1783
1783
  .ft-text-field-suggestion {
1784
1784
  position: relative;
1785
1785
  padding: 8px 16px;
@@ -1815,13 +1815,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1815
1815
  slot {
1816
1816
  pointer-events: none;
1817
1817
  }
1818
- `;var Xi=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},el=class extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}},te=class extends j{render(){let t={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return k`
1818
+ `;var Ji=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},rl=class extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}},te=class extends j{render(){let t={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return P`
1819
1819
  <div class=${Rt(t)}
1820
1820
  tabindex="-1"
1821
1821
  @keydown=${this.onKeyDown}
1822
1822
  @click=${this.confirmSuggestion}>
1823
1823
  <ft-ripple></ft-ripple>
1824
- ${this.helper?k`
1824
+ ${this.helper?P`
1825
1825
  <ft-typography class="ft-text-field-suggestion--helper-text" variant="caption">
1826
1826
  ${this.helper}
1827
1827
  </ft-typography>`:W}
@@ -1831,7 +1831,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1831
1831
  <slot></slot>
1832
1832
  </ft-typography>
1833
1833
  </div>
1834
- `}focus(t){var r;(r=this.container)===null||r===void 0||r.focus(t)}click(){var t;(t=this.container)===null||t===void 0||t.click()}confirmSuggestion(){this.dispatchEvent(new el(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map(t=>t.textContent).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}};te.elementDefinitions={"ft-ripple":et,"ft-typography":xt,"ft-icon":Ct};te.styles=Op;Xi([g()],te.prototype,"value",void 0);Xi([g()],te.prototype,"helper",void 0);Xi([X(".ft-text-field-suggestion")],te.prototype,"container",void 0);Xi([Oo()],te.prototype,"assignedNodes",void 0);var rt=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},Y=class extends Rr(j,"textbox"){get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){let r=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",r)}focus(){var t;(t=this.input)===null||t===void 0||t.focus()}constructor(){super(),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=Tr.EYE_SLASH,this.passwordRevealedIcon=Tr.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[]}render(){let t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":this.hideSuggestions||this.visibleSuggestions.length==0,"ft-text-field--raised-label":this.focused||this.value!="","ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.isPasswordField()};return k`
1834
+ `}focus(t){var r;(r=this.container)===null||r===void 0||r.focus(t)}click(){var t;(t=this.container)===null||t===void 0||t.click()}confirmSuggestion(){this.dispatchEvent(new rl(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map(t=>t.textContent).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}};te.elementDefinitions={"ft-ripple":rt,"ft-typography":xt,"ft-icon":Ct};te.styles=Cp;Ji([g()],te.prototype,"value",void 0);Ji([g()],te.prototype,"helper",void 0);Ji([X(".ft-text-field-suggestion")],te.prototype,"container",void 0);Ji([Oo()],te.prototype,"assignedNodes",void 0);var et=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},K=class extends Rr(j,"textbox"){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=Tr.EYE_SLASH,this.passwordRevealedIcon=Tr.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[],this.providedSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){let r=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",r)}focus(){var t;(t=this.input)===null||t===void 0||t.focus()}render(){let t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":!this.suggestionsShouldBeDisplayed(),"ft-text-field--raised-label":this.focused||this.value!="","ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.isPasswordField()},r=this.suggestionsProvider&&this.value&&this.value!=""&&!this.providedSuggestions.map(a=>a.label).includes(this.value),n=!this.suggestionsProvider&&this.filterSuggestions&&this.value&&this.value!=""||r;return P`
1835
1835
  <div class="${Rt(t)}">
1836
1836
  <div class="ft-text-field--main-panel"
1837
1837
  @keydown=${this.handleKeyboardNavigation}
@@ -1842,19 +1842,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1842
1842
  ?raised=${this.focused||this.value!=""}
1843
1843
  ?error=${this.error}></ft-input-label>
1844
1844
  <div class="ft-text-field--input-panel">
1845
- ${this.outlined?W:k`
1845
+ ${this.outlined?W:P`
1846
1846
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
1847
1847
  `}
1848
- ${this.prefix?k`
1848
+ ${this.prefix?P`
1849
1849
  <ft-typography class="ft-text-field--prefix" variant="body1">
1850
1850
  ${this.prefix}
1851
1851
  </ft-typography>
1852
1852
  `:W}
1853
1853
  <input type=${this.resolveInputType()}
1854
- name=${Yi(this.name)}
1855
- maxlength=${Yi(this.maxLength||void 0)}
1854
+ name=${Xi(this.name)}
1855
+ maxlength=${Xi(this.maxLength||void 0)}
1856
1856
  aria-label="${this.label}"
1857
- autocomplete=${Yi(this.autocomplete)}
1857
+ autocomplete=${Xi(this.autocomplete)}
1858
1858
  class="ft-typography--body1 ft-text-field--input"
1859
1859
  part="input"
1860
1860
  ?disabled=${this.disabled}
@@ -1866,41 +1866,51 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1866
1866
  </div>
1867
1867
  <div class="ft-text-field--suggestions"
1868
1868
  @suggestion-selected=${this.onSuggestionSelected}>
1869
- <slot @slotchange=${()=>this.filterSuggestionsIfNeeded()}></slot>
1870
- ${this.filterSuggestions&&this.value&&this.value!=""?k`
1871
- <ft-text-field-suggestion class="ft-text-field-suggestion--new-value" helper="${this.suggestionsHelper}">
1872
- ${this.value}
1873
- </ft-text-field-suggestion>
1874
- `:W}
1869
+ ${this.renderSuggestions()}
1870
+ ${n?P`
1871
+ <ft-text-field-suggestion class="ft-text-field-suggestion--new-value" helper="${this.suggestionsHelper}">
1872
+ ${this.value}
1873
+ </ft-text-field-suggestion>
1874
+ `:W}
1875
1875
  </div>
1876
1876
  </div>
1877
- ${this.helper?k`
1877
+ ${this.helper?P`
1878
1878
  <ft-typography class="ft-text-field--helper-text" variant="caption">
1879
1879
  ${this.helper}
1880
1880
  </ft-typography>
1881
1881
  `:W}
1882
1882
  </div>
1883
- `}resolveInputType(){var t;return this.isPasswordField()?this.hidePassword?"password":"text":(t=this.type)!==null&&t!==void 0?t:"text"}renderPasswordIcon(){return k`
1883
+ `}resolveInputType(){var t;return this.isPasswordField()?this.hidePassword?"password":"text":(t=this.type)!==null&&t!==void 0?t:"text"}renderSuggestions(){return this.suggestionsProvider?P`
1884
+ ${Co(this.providedSuggestions,t=>P`
1885
+ <ft-text-field-suggestion value=${t.value} @click=${t.clickHandler}>
1886
+ ${t.icon?P`
1887
+ <ft-icon .value=${t.icon}></ft-icon>
1888
+ `:W}
1889
+ ${t.label}
1890
+ </ft-text-field-suggestion>`)}
1891
+ `:P`
1892
+ <slot @slotchange=${()=>this.filterSuggestionsIfNeeded()}></slot>
1893
+ `}renderPasswordIcon(){return P`
1884
1894
  <ft-icon class="ft-text-field--icon"
1885
1895
  .variant=${this.iconVariant}
1886
1896
  .value=${this.hidePassword?this.passwordHiddenIcon:this.passwordRevealedIcon}
1887
1897
  @click=${()=>this.togglePasswordVisibility()}></ft-icon>
1888
- `}renderIcon(){return this.isPasswordField()?this.renderPasswordIcon():this.icon?k`
1898
+ `}renderIcon(){return this.isPasswordField()?this.renderPasswordIcon():this.icon?P`
1889
1899
  <ft-icon class="ft-text-field--icon"
1890
1900
  .variant=${this.iconVariant}
1891
1901
  .value=${this.icon}
1892
1902
  @click=${()=>{var t;return(t=this.input)===null||t===void 0?void 0:t.focus()}}></ft-icon>
1893
- `:W}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&t.get("value")!=null&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&t.get("dispatchedValue")!=null&&(this.hideSuggestions=!0),t.has("visibleSuggestions")&&this.visibleSuggestions.length&&this.setSuggestionPosition()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach(t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.suggestions.filter(t=>!t.hidden)):this.visibleSuggestions=this.suggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion]),this.hideSuggestions=this.visibleSuggestions.length<=0}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&this.setSuggestionPosition(),t.has("autocomplete")&&this.setupWatchAutofill()}setupWatchAutofill(){var t;this.clearWatchAutofill(),((t=this.autocomplete)!==null&&t!==void 0?t:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var r,i,n;!((r=this.input)===null||r===void 0)&&r.matches(":autofill")&&this.dispatchedValue!==((i=this.input)===null||i===void 0?void 0:i.value)&&this.setValue((n=this.input)===null||n===void 0?void 0:n.value,!0)},200))}clearWatchAutofill(){this.watchAutofillInterval&&clearInterval(this.watchAutofillInterval)}connectedCallback(){super.connectedCallback(),this.setupWatchAutofill()}disconnectedCallback(){super.disconnectedCallback(),this.clearWatchAutofill()}setValue(t,r=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),r&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var r;let i=((r=this.input)===null||r===void 0?void 0:r.value)||"";this.setValue(i,t.key=="Escape"||t.key=="Enter")}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var r;if(t.key==="ArrowDown"||t.key==="ArrowUp"){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;let i=this.visibleSuggestions.findIndex(a=>a.matches(":focus-within")),n;t.key==="ArrowDown"?n=i<this.visibleSuggestions.length-1?i+1:0:n=i>0?i-1:this.visibleSuggestions.length-1,(r=this.visibleSuggestions[n])===null||r===void 0||r.focus()}(t.key=="Escape"||t.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(t){var r;this.setValue(t.detail,!0),(r=this.input)===null||r===void 0||r.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,r;!((t=this.mainPanel)===null||t===void 0)&&t.matches(":focus-within")||(this.focused=!1,this.setValue(((r=this.input)===null||r===void 0?void 0:r.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}isPasswordField(){return this.password||this.type==="password"}setSuggestionPosition(){this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px";let t=["bottom","top"];za(this.mainPanel,this.suggestionsContainer,"bottom",t,"fixed",G.suggestSize.name,0).then(({x:r,y:i})=>{this.suggestionsContainer.style.left=`${r}px`,this.suggestionsContainer.style.top=`${i}px`})}};Y.elementDefinitions={"ft-input-label":Wt,"ft-ripple":et,"ft-typography":xt,"ft-icon":Ct,"ft-text-field-suggestion":te};Y.styles=[oo,Ja,Sp];rt([g()],Y.prototype,"label",void 0);rt([g({noAccessor:!0})],Y.prototype,"value",null);rt([H()],Y.prototype,"dispatchedValue",void 0);rt([g()],Y.prototype,"helper",void 0);rt([g()],Y.prototype,"suggestionsHelper",void 0);rt([g({type:Boolean})],Y.prototype,"outlined",void 0);rt([g({type:Boolean})],Y.prototype,"disabled",void 0);rt([g({type:Boolean})],Y.prototype,"error",void 0);rt([g({type:Boolean})],Y.prototype,"fixedMenuPosition",void 0);rt([g()],Y.prototype,"prefix",void 0);rt([g()],Y.prototype,"icon",void 0);rt([g()],Y.prototype,"name",void 0);rt([g()],Y.prototype,"type",void 0);rt([g()],Y.prototype,"passwordHiddenIcon",void 0);rt([g()],Y.prototype,"passwordRevealedIcon",void 0);rt([g()],Y.prototype,"iconVariant",void 0);rt([g({type:Boolean})],Y.prototype,"filterSuggestions",void 0);rt([g({type:Number})],Y.prototype,"maxLength",void 0);rt([g({type:Boolean})],Y.prototype,"password",void 0);rt([g({type:String})],Y.prototype,"autocomplete",void 0);rt([H()],Y.prototype,"focused",void 0);rt([H()],Y.prototype,"hidePassword",void 0);rt([H()],Y.prototype,"hideSuggestions",void 0);rt([H()],Y.prototype,"visibleSuggestions",void 0);rt([X(".ft-text-field--main-panel")],Y.prototype,"mainPanel",void 0);rt([X(".ft-text-field--input")],Y.prototype,"input",void 0);rt([X(".ft-text-field-suggestion--new-value")],Y.prototype,"newValueSuggestion",void 0);rt([X(".ft-text-field--suggestions")],Y.prototype,"suggestionsContainer",void 0);rt([Ln({selector:"ft-text-field-suggestion"})],Y.prototype,"suggestions",void 0);J("ft-text-field")(Y);J("ft-text-field-suggestion")(te);var Cp=e=>Pe.get({name:"ft-reader-"+e,initialState:{mapId:void 0,renderedTopics:[],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 rl=class{constructor(t,r){this.mapId=t,this.paginatedToc=r,this.nodeByTocId={},this.nodeByUrl={},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,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,r,i){return t.flatMap(n=>(n.pageConfiguration&&this.registerPage(this.buildPage(n,i)),n.tocId==null?this.extractPagesToc(n.children,r,i):[{tocId:n.tocId,title:n.title,depth:r,children:this.extractPagesToc(n.children,r+1,n.tocId)}]))}convertNodes(t,r,i){return t.flatMap(n=>{var a,s,l;if(n.tocId==null)return[...this.convertSectionNodes((a=n.pageToc)!==null&&a!==void 0?a:[],r,n.tocId),...this.convertNodes(n.children,r,n.tocId)];let d=(s=n.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),p={tocId:n.tocId,contentId:n.contentId,title:n.title,hasRating:n.hasRating,origin:n.origin,prettyUrl:d,depth:r,parentTocId:i,children:[]};this.register(p);let h=this.convertSectionNodes((l=n.pageToc)!==null&&l!==void 0?l:[],r+1,n.tocId),f=this.convertNodes(n.children,r+1,p.tocId);return p.children=[...h,...f],[p]})}convertSectionNodes(t,r,i){return t.flatMap(n=>{var a;let s=(a=n.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),l={...n,prettyUrl:s,depth:r,parentTocId:i,children:[]};return this.register(l),l.children=this.convertSectionNodes(n.children,r+1,n.tocId),[l]})}buildPage(t,r){var i,n,a,s,l,d;let p={number:this.pages.length+1,title:(i=t.title)!==null&&i!==void 0?i:"",rootTocId:(n=t.tocId)!==null&&n!==void 0?n:"root",toc:((a=t.pageToc)!==null&&a!==void 0?a:[]).map(m=>this.nodeByTocId[m.tocId]),topics:[],hiddenTopics:[],breadcrumb:r?this.buildBreadcrumb(this.nodeByTocId[r]):[]},h=(m,v)=>(v?p.topics:p.hiddenTopics).push(m),f=(l=(s=t.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&l!==void 0?l:[];return p.breadcrumb.forEach((m,v)=>{h(m,f[v])}),t.tocId&&h(t.tocId,t.pageConfiguration.isVisible),p.topics.push(...this.tocIds((d=t.pageToc)!==null&&d!==void 0?d:[])),p}registerPage(t){for(let r of[...t.topics,...t.hiddenTopics])this.pageByTocId[r]||(this.pageByTocId[r]=t);this.pages.push(t)}tocIds(t){return t.flatMap(r=>[r.tocId,...this.tocIds(r.children)])}buildBreadcrumb(t){let r=[t.tocId];for(;t?.parentTocId;)r.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return r}register(t){t.prettyUrl&&(this.nodeByUrl[t.prettyUrl]==null?this.nodeByUrl[t.prettyUrl]=t:this.duplicatedPrettyUrls.add(t.prettyUrl)),this.nodeByUrl[`${this.mapId}/${t.tocId}`]=t,this.nodeByTocId[t.tocId]=t}},Ji=class{convertPaginatedToc(t,r){return new rl(t,r).build()}};var Qi=class extends xe{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,r,i){super(!1,r),this.converter=t,this._mapId=i,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(t=>this.fetchMap(t))),this.cache.register("enrichedToc",()=>this.withMapId(t=>this.fetchPages(t).then(r=>this.converter.convertPaginatedToc(t,r)))),this.cache.register("ratingSummary",()=>{var t,r;return _r((r=(t=M.getState().session)===null||t===void 0?void 0:t.profile.roles)!==null&&r!==void 0?r:[],"RATING_USER")?this.withMapId(n=>this.fetchMapRating(n)):Promise.resolve()})}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getMapNow(){return this.cache.getNow("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var r;return(r=this.enrichedToc)===null||r===void 0?void 0:r.nodeByTocId[t]}getTocNodeNowByUrl(t){var r,i;let n=this.getMapNow();return n?.prettyUrl==t||`${n?.id}/root`===t?(r=this.enrichedToc)===null||r===void 0?void 0:r.toc[0]:(i=this.enrichedToc)===null||i===void 0?void 0:i.nodeByUrl[t]}async getPage(t){let r=await this.getEnrichedToc();return r.pages[t-1]||r.pages[0]}async getPageByTocId(t){let r=await this.getEnrichedToc();return r.pageByTocId[t]||r.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,()=>this.fetchTopicMetadata(t))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,()=>this.fetchTopicHTMLContent(t))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}getRelativesForDocument(t,r){return this.cache.get("document-relatives-"+t+"-"+r.join("-"),()=>this.fetchRelativesForDocument(t,r))}getRelativesForTopicInMap(t,r,i){return this.cache.get("topic-relatives-"+[t,r,...i].join("-"),()=>this.fetchRelativesForTopicInMap(t,r,i))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,r,i){let n=this.getNavigationData(t,r,i),a=this.getReaderLinkPrefix()+(n.prettyUrl?n.prettyUrl:`${n.mapId}/${n.tocId}`),s=new URL(a,this.api.tenantBaseUrl);return n.page!=null&&s.searchParams.set("page",`${n.page}`),n.prettyUrlDuplicated&&s.searchParams.set("tocId",n.tocId),n.section!=null&&s.searchParams.set("section",n.section),s.href}getNavigationData(t,r,i){var n,a;t=t||"root";let s=this.enrichedToc,l=s?.pageByTocId[t],d=s?.nodeByTocId[t],p=d?.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:(n=d?.title)!==null&&n!==void 0?n:"",page:r&&l&&l.number!==r?r:void 0,prettyUrl:p?.replace(/^r\//,""),prettyUrlDuplicated:(a=s?.duplicatedPrettyUrls.has(p??""))!==null&&a!==void 0?a:!1,section:i}}async getAccurateNavigationData(t,r,i){return await this.getEnrichedToc(),this.getNavigationData(t,r,i)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(t=>t?.publication)}getTopicRating(t){return this.getRatingSummary().then(r=>{var i;return r?{type:r.topics.type,rating:(i=r.topics)===null||i===void 0?void 0:i.ratings.find(n=>n.tocId===t)}:void 0})}rateMap(t,r){return this.makeRateMapRequest(t,r).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(t,r){return this.makeMapFeedbackRequest(t,r)}rateTopic(t,r,i){return this.makeRateTopicRequest(t,r,i).then(()=>this.clearRatingIfNecessary())}unrateTopic(t){return this.makeUnrateTopicRequest(t).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let t=M.getState().session;t?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,r,i){return this.makeTopicFeedbackRequest(t,r,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let r=this.getTocNodeNow(t),i=[{tocId:r.tocId,title:r.title}],n=this.getTocNodeNow(r.parentTocId);for(;n;)i.unshift({tocId:n.tocId,title:n.title}),n=this.getTocNodeNow(n.parentTocId);return i}isFeatureAccessible(t,{session:r}){var i;if(!this.isFeatureAvailable(t))return!1;switch(t){case Jt.FEEDBACK:return _r(r??[],st.FEEDBACK_USER);case Jt.RATING:return _r(r??[],st.RATING_USER);case Jt.PRINT:return _r(r??[],st.PRINT_USER);case Jt.BOOKMARK:return!!r?.sessionAuthenticated;case Jt.COLLECTIONS:return _r(r??[],st.COLLECTION_USER);case Jt.PERSONAL_BOOKS:return _r(r??[],st.PERSONAL_BOOK_USER)&&!(!((i=this.getMapNow())===null||i===void 0)&&i.pbkConfidential);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}};var tn=class e extends Qi{static async build(t){return new e(new Ji,void 0,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){let r=await this.api.getMap(t);return this.fingerprint=r.fingerprint,r}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(t,r){let i={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:t,valueFilter:{negative:!1,values:r}}],sort:[],facets:[]};return this.api.search(i)}fetchRelativesForTopicInMap(t,r,i){let n={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:r,valueFilter:{negative:!1,values:i}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[t]}}],sort:[],facets:[]};return this.api.search(n)}makeMapFeedbackRequest(t,r){return this.api.sendMapFeedback(this.mapId,t,r)}makeRateMapRequest(t,r){return this.api.rateMap(this.mapId,t,r)}makeRateTopicRequest(t,r,i){return this.api.rateTopic(this.mapId,t,r,i)}makeTopicFeedbackRequest(t,r,i){return this.api.sendTopicFeedback(this.mapId,t,r,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}};var en=class e{static build(t,r){return new e(Cp(t.trim()||"context"),r??tn.build)}loaded(){return qn(()=>this._loaded)}constructor(t,r,i){this.store=t,this.clusteringHelperProvider=i,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new lt(10),this.initService(r)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setRenderedTopics(t){this.store.actions.renderedTopics(t)}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return wo(()=>this.service)}async navigateToTopic(t,r,i){await this.loaded();let n=await this.awaitService(),a=await(i!=null?n.getPage(i):n.getPageByTocId(t??"root"));this.store.actions.currentPage(a),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,a),section:r})}resolveValidNonRootTocId(t,r){var i,n,a;let s=(i=t==="root"?void 0:t)!==null&&i!==void 0?i:r.rootTocId;return r.topics.includes(s)?s:(a=(n=r.topics[0])!==null&&n!==void 0?n:r.hiddenTopics[0])!==null&&a!==void 0?a:"root"}async navigateToPage(t){await this.loaded();let i=await(await this.awaitService()).getPage(t);this.store.actions.currentPage(i)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var t;!((t=this.service)===null||t===void 0)&&t.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData())}clear(){var t;this._loaded=!1,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),this.store.actions.renderedTopics([]),this.store.actions.visibleTopics([]),(t=this.service)===null||t===void 0||t.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var t,r,i,n,a;try{await Promise.all([(t=this.service)===null||t===void 0?void 0:t.getConfiguration().then(s=>this.store.actions.configuration(s)),(r=this.service)===null||r===void 0?void 0:r.getMap().then(s=>this.store.actions.map(s)),(i=this.service)===null||i===void 0?void 0:i.getToc().then(s=>this.store.actions.toc(s)),(n=this.service)===null||n===void 0?void 0:n.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))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0}catch(s){this.errorHandler&&!(s instanceof fr)&&this.errorHandler(s)}}fetchRelatives(){var t,r,i;let n=(t=this.store.getState().map)===null||t===void 0?void 0:t.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);n!==void 0&&n.length>0?(r=this.service)===null||r===void 0||r.getRelativesForDocument((i=this.store.getState().configuration)===null||i===void 0?void 0:i.relativePivotMetadata,n).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.dispatchEvent(new CustomEvent("clustering-helper-created"))}createClusteringHelper(){var t,r;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let i=this.store.getState().relatives;if(i){let n=i.find(s=>{var l;return((l=s.map)===null||l===void 0?void 0:l.mapId)==this.store.getState().mapId}),a=(r=(t=M.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&r!==void 0?r:[];return new Eo(i,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(t){var r,i,n;await this.loaded();let a=await wo(()=>{var p;return(p=this.store.getState().configuration)===null||p===void 0?void 0:p.relativeTopicPivotMetadata}),s=this.store.getState().mapId,d=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[t]);if(!((n=(i=(r=d?.results)===null||r===void 0?void 0:r[0])===null||i===void 0?void 0:i.entries)===null||n===void 0)&&n[0]){let p=d.results[0].entries[0].topic.tocId;return await this.navigateToTopic(p),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}registerMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.add(t),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.delete(t),this.updateClusteringHelper()}};var Ep=$`
1894
- `;var rn=class extends CustomEvent{constructor(t,r){super("ft-reader-map-loaded",{detail:{map:t,toc:r}})}},on=class extends CustomEvent{constructor(t,r){super("ft-reader-visible-topics-change",{detail:{visibleTopics:r}})}},nn=class extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}},an=class extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}},sn=class extends Event{constructor(){super("ft-reader-map-not-found")}},ln=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},cn=class extends Event{constructor(){super("ft-reader-map-forbidden")}},dn=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var pn=class{constructor(t){this.stateManager=t}searchInDocument(t){this.stateManager.setSearchInDocumentQuery(t??"")}};var Gt=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},Sh=e=>t=>+(t??"NaN")>0?+t:e,At=class extends Yt{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new lt(5),this.navigationDebouncer=new lt(10),this.mapLoadedEventDebouncer=new lt(50),this.addStore(M)}render(){return k`
1903
+ `:W}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions")||t.has("suggestionsProvider")||t.has("hideSuggestions"))&&this.updateSuggestions(),t.has("value")&&t.get("value")!=null&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&t.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}async updateSuggestions(){this.suggestionsProvider?this.providedSuggestions=await this.suggestionsProvider(this.value):this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.slottedSuggestions.forEach(t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.slottedSuggestions.filter(t=>!t.hidden)):this.visibleSuggestions=this.slottedSuggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion]),this.hideSuggestions=this.visibleSuggestions.length<=0}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&this.setSuggestionPosition(),t.has("value")&&this.suggestionsProvider&&(this.visibleSuggestions=[...this.providedSuggestionsInDom]),t.has("autocomplete")&&this.setupWatchAutofill(),this.suggestionsShouldBeDisplayed()&&this.setSuggestionPosition()}setupWatchAutofill(){var t;this.clearWatchAutofill(),((t=this.autocomplete)!==null&&t!==void 0?t:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var r,i,n;!((r=this.input)===null||r===void 0)&&r.matches(":autofill")&&this.dispatchedValue!==((i=this.input)===null||i===void 0?void 0:i.value)&&this.setValue((n=this.input)===null||n===void 0?void 0:n.value,!0)},200))}clearWatchAutofill(){this.watchAutofillInterval&&clearInterval(this.watchAutofillInterval)}connectedCallback(){super.connectedCallback(),this.setupWatchAutofill()}disconnectedCallback(){super.disconnectedCallback(),this.clearWatchAutofill()}setValue(t,r=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),r&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var r;let i=((r=this.input)===null||r===void 0?void 0:r.value)||"";this.setValue(i,t.key=="Escape"||t.key=="Enter")}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var r;if(t.key==="ArrowDown"||t.key==="ArrowUp"){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;let i=this.visibleSuggestions.findIndex(a=>a.matches(":focus-within")),n;t.key==="ArrowDown"?n=i<this.visibleSuggestions.length-1?i+1:0:n=i>0?i-1:this.visibleSuggestions.length-1,(r=this.visibleSuggestions[n])===null||r===void 0||r.focus()}(t.key=="Escape"||t.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(t){var r;this.setValue(t.detail,!0),(r=this.input)===null||r===void 0||r.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,r;!((t=this.mainPanel)===null||t===void 0)&&t.matches(":focus-within")||(this.focused=!1,this.setValue(((r=this.input)===null||r===void 0?void 0:r.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}isPasswordField(){return this.password||this.type==="password"}setSuggestionPosition(){this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px";let t=["bottom","top"];Va(this.mainPanel,this.suggestionsContainer,"bottom",t,"fixed",G.suggestSize.name,0).then(({x:r,y:i})=>{this.suggestionsContainer.style.left=`${r}px`,this.suggestionsContainer.style.top=`${i}px`})}suggestionsShouldBeDisplayed(){return!this.hideSuggestions&&(this.visibleSuggestions.length||this.providedSuggestions.length)}};K.elementDefinitions={"ft-input-label":Wt,"ft-ripple":rt,"ft-typography":xt,"ft-icon":Ct,"ft-text-field-suggestion":te};K.styles=[oo,Qa,Op];et([g()],K.prototype,"label",void 0);et([g({noAccessor:!0})],K.prototype,"value",null);et([H()],K.prototype,"dispatchedValue",void 0);et([g()],K.prototype,"helper",void 0);et([g()],K.prototype,"suggestionsHelper",void 0);et([g({type:Boolean})],K.prototype,"outlined",void 0);et([g({type:Boolean})],K.prototype,"disabled",void 0);et([g({type:Boolean})],K.prototype,"error",void 0);et([g({type:Boolean})],K.prototype,"fixedMenuPosition",void 0);et([g()],K.prototype,"prefix",void 0);et([g()],K.prototype,"icon",void 0);et([g()],K.prototype,"name",void 0);et([g()],K.prototype,"type",void 0);et([g()],K.prototype,"passwordHiddenIcon",void 0);et([g()],K.prototype,"passwordRevealedIcon",void 0);et([g()],K.prototype,"iconVariant",void 0);et([g({type:Boolean})],K.prototype,"filterSuggestions",void 0);et([g({type:Number})],K.prototype,"maxLength",void 0);et([g({type:Boolean})],K.prototype,"password",void 0);et([g({type:String})],K.prototype,"autocomplete",void 0);et([g({attribute:!1})],K.prototype,"suggestionsProvider",void 0);et([H()],K.prototype,"focused",void 0);et([H()],K.prototype,"hidePassword",void 0);et([H()],K.prototype,"hideSuggestions",void 0);et([H()],K.prototype,"visibleSuggestions",void 0);et([H()],K.prototype,"providedSuggestions",void 0);et([X(".ft-text-field--main-panel")],K.prototype,"mainPanel",void 0);et([X(".ft-text-field--input")],K.prototype,"input",void 0);et([X(".ft-text-field-suggestion--new-value")],K.prototype,"newValueSuggestion",void 0);et([X(".ft-text-field--suggestions")],K.prototype,"suggestionsContainer",void 0);et([kn("ft-text-field-suggestion")],K.prototype,"providedSuggestionsInDom",void 0);et([$n({selector:"ft-text-field-suggestion"})],K.prototype,"slottedSuggestions",void 0);J("ft-text-field")(K);J("ft-text-field-suggestion")(te);var Ep=e=>Pe.get({name:"ft-reader-"+e,initialState:{mapId:void 0,renderedTopics:[],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 ol=class{constructor(t,r){this.mapId=t,this.paginatedToc=r,this.nodeByTocId={},this.nodeByUrl={},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,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,r,i){return t.flatMap(n=>(n.pageConfiguration&&this.registerPage(this.buildPage(n,i)),n.tocId==null?this.extractPagesToc(n.children,r,i):[{tocId:n.tocId,title:n.title,depth:r,children:this.extractPagesToc(n.children,r+1,n.tocId)}]))}convertNodes(t,r,i){return t.flatMap(n=>{var a,s,l;if(n.tocId==null)return[...this.convertSectionNodes((a=n.pageToc)!==null&&a!==void 0?a:[],r,n.tocId),...this.convertNodes(n.children,r,n.tocId)];let d=(s=n.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),p={tocId:n.tocId,contentId:n.contentId,title:n.title,hasRating:n.hasRating,origin:n.origin,prettyUrl:d,depth:r,parentTocId:i,children:[]};this.register(p);let h=this.convertSectionNodes((l=n.pageToc)!==null&&l!==void 0?l:[],r+1,n.tocId),f=this.convertNodes(n.children,r+1,p.tocId);return p.children=[...h,...f],[p]})}convertSectionNodes(t,r,i){return t.flatMap(n=>{var a;let s=(a=n.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),l={...n,prettyUrl:s,depth:r,parentTocId:i,children:[]};return this.register(l),l.children=this.convertSectionNodes(n.children,r+1,n.tocId),[l]})}buildPage(t,r){var i,n,a,s,l,d;let p={number:this.pages.length+1,title:(i=t.title)!==null&&i!==void 0?i:"",rootTocId:(n=t.tocId)!==null&&n!==void 0?n:"root",toc:((a=t.pageToc)!==null&&a!==void 0?a:[]).map(m=>this.nodeByTocId[m.tocId]),topics:[],hiddenTopics:[],breadcrumb:r?this.buildBreadcrumb(this.nodeByTocId[r]):[]},h=(m,v)=>(v?p.topics:p.hiddenTopics).push(m),f=(l=(s=t.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&l!==void 0?l:[];return p.breadcrumb.forEach((m,v)=>{h(m,f[v])}),t.tocId&&h(t.tocId,t.pageConfiguration.isVisible),p.topics.push(...this.tocIds((d=t.pageToc)!==null&&d!==void 0?d:[])),p}registerPage(t){for(let r of[...t.topics,...t.hiddenTopics])this.pageByTocId[r]||(this.pageByTocId[r]=t);this.pages.push(t)}tocIds(t){return t.flatMap(r=>[r.tocId,...this.tocIds(r.children)])}buildBreadcrumb(t){let r=[t.tocId];for(;t?.parentTocId;)r.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return r}register(t){t.prettyUrl&&(this.nodeByUrl[t.prettyUrl]==null?this.nodeByUrl[t.prettyUrl]=t:this.duplicatedPrettyUrls.add(t.prettyUrl)),this.nodeByUrl[`${this.mapId}/${t.tocId}`]=t,this.nodeByTocId[t.tocId]=t}},Qi=class{convertPaginatedToc(t,r){return new ol(t,r).build()}};var tn=class extends xe{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,r,i){super(!1,r),this.converter=t,this._mapId=i,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(t=>this.fetchMap(t))),this.cache.register("enrichedToc",()=>this.withMapId(t=>this.fetchPages(t).then(r=>this.converter.convertPaginatedToc(t,r)))),this.cache.register("ratingSummary",()=>{var t,r;return _r((r=(t=M.getState().session)===null||t===void 0?void 0:t.profile.roles)!==null&&r!==void 0?r:[],"RATING_USER")?this.withMapId(n=>this.fetchMapRating(n)):Promise.resolve()})}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getMapNow(){return this.cache.getNow("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var r;return(r=this.enrichedToc)===null||r===void 0?void 0:r.nodeByTocId[t]}getTocNodeNowByUrl(t){var r,i;let n=this.getMapNow();return n?.prettyUrl==t||`${n?.id}/root`===t?(r=this.enrichedToc)===null||r===void 0?void 0:r.toc[0]:(i=this.enrichedToc)===null||i===void 0?void 0:i.nodeByUrl[t]}async getPage(t){let r=await this.getEnrichedToc();return r.pages[t-1]||r.pages[0]}async getPageByTocId(t){let r=await this.getEnrichedToc();return r.pageByTocId[t]||r.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,()=>this.fetchTopicMetadata(t))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,()=>this.fetchTopicHTMLContent(t))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}getRelativesForDocument(t,r){return this.cache.get("document-relatives-"+t+"-"+r.join("-"),()=>this.fetchRelativesForDocument(t,r))}getRelativesForTopicInMap(t,r,i){return this.cache.get("topic-relatives-"+[t,r,...i].join("-"),()=>this.fetchRelativesForTopicInMap(t,r,i))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,r,i){let n=this.getNavigationData(t,r,i),a=this.getReaderLinkPrefix()+(n.prettyUrl?n.prettyUrl:`${n.mapId}/${n.tocId}`),s=new URL(a,this.api.tenantBaseUrl);return n.page!=null&&s.searchParams.set("page",`${n.page}`),n.prettyUrlDuplicated&&s.searchParams.set("tocId",n.tocId),n.section!=null&&s.searchParams.set("section",n.section),s.href}getNavigationData(t,r,i){var n,a;t=t||"root";let s=this.enrichedToc,l=s?.pageByTocId[t],d=s?.nodeByTocId[t],p=d?.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:(n=d?.title)!==null&&n!==void 0?n:"",page:r&&l&&l.number!==r?r:void 0,prettyUrl:p?.replace(/^r\//,""),prettyUrlDuplicated:(a=s?.duplicatedPrettyUrls.has(p??""))!==null&&a!==void 0?a:!1,section:i}}async getAccurateNavigationData(t,r,i){return await this.getEnrichedToc(),this.getNavigationData(t,r,i)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(t=>t?.publication)}getTopicRating(t){return this.getRatingSummary().then(r=>{var i;return r?{type:r.topics.type,rating:(i=r.topics)===null||i===void 0?void 0:i.ratings.find(n=>n.tocId===t)}:void 0})}rateMap(t,r){return this.makeRateMapRequest(t,r).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(t,r){return this.makeMapFeedbackRequest(t,r)}rateTopic(t,r,i){return this.makeRateTopicRequest(t,r,i).then(()=>this.clearRatingIfNecessary())}unrateTopic(t){return this.makeUnrateTopicRequest(t).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let t=M.getState().session;t?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,r,i){return this.makeTopicFeedbackRequest(t,r,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let r=this.getTocNodeNow(t),i=[{tocId:r.tocId,title:r.title}],n=this.getTocNodeNow(r.parentTocId);for(;n;)i.unshift({tocId:n.tocId,title:n.title}),n=this.getTocNodeNow(n.parentTocId);return i}isFeatureAccessible(t,{session:r}){var i;if(!this.isFeatureAvailable(t))return!1;switch(t){case Jt.FEEDBACK:return _r(r??[],st.FEEDBACK_USER);case Jt.RATING:return _r(r??[],st.RATING_USER);case Jt.PRINT:return _r(r??[],st.PRINT_USER);case Jt.BOOKMARK:return!!r?.sessionAuthenticated;case Jt.COLLECTIONS:return _r(r??[],st.COLLECTION_USER);case Jt.PERSONAL_BOOKS:return _r(r??[],st.PERSONAL_BOOK_USER)&&!(!((i=this.getMapNow())===null||i===void 0)&&i.pbkConfidential);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}};var en=class e extends tn{static async build(t){return new e(new Qi,void 0,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){let r=await this.api.getMap(t);return this.fingerprint=r.fingerprint,r}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(t,r){let i={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:t,valueFilter:{negative:!1,values:r}}],sort:[],facets:[]};return this.api.search(i)}fetchRelativesForTopicInMap(t,r,i){let n={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:r,valueFilter:{negative:!1,values:i}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[t]}}],sort:[],facets:[]};return this.api.search(n)}makeMapFeedbackRequest(t,r){return this.api.sendMapFeedback(this.mapId,t,r)}makeRateMapRequest(t,r){return this.api.rateMap(this.mapId,t,r)}makeRateTopicRequest(t,r,i){return this.api.rateTopic(this.mapId,t,r,i)}makeTopicFeedbackRequest(t,r,i){return this.api.sendTopicFeedback(this.mapId,t,r,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}};var rn=class e{static build(t,r){return new e(Ep(t.trim()||"context"),r??en.build)}loaded(){return Yn(()=>this._loaded)}constructor(t,r,i){this.store=t,this.clusteringHelperProvider=i,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new lt(10),this.initService(r)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setRenderedTopics(t){this.store.actions.renderedTopics(t)}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return Ao(()=>this.service)}async navigateToTopic(t,r,i){await this.loaded();let n=await this.awaitService(),a=await(i!=null?n.getPage(i):n.getPageByTocId(t??"root"));this.store.actions.currentPage(a),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,a),section:r})}resolveValidNonRootTocId(t,r){var i,n,a;let s=(i=t==="root"?void 0:t)!==null&&i!==void 0?i:r.rootTocId;return r.topics.includes(s)?s:(a=(n=r.topics[0])!==null&&n!==void 0?n:r.hiddenTopics[0])!==null&&a!==void 0?a:"root"}async navigateToPage(t){await this.loaded();let i=await(await this.awaitService()).getPage(t);this.store.actions.currentPage(i)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var t;!((t=this.service)===null||t===void 0)&&t.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData())}clear(){var t;this._loaded=!1,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),this.store.actions.renderedTopics([]),this.store.actions.visibleTopics([]),(t=this.service)===null||t===void 0||t.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var t,r,i,n,a;try{await Promise.all([(t=this.service)===null||t===void 0?void 0:t.getConfiguration().then(s=>this.store.actions.configuration(s)),(r=this.service)===null||r===void 0?void 0:r.getMap().then(s=>this.store.actions.map(s)),(i=this.service)===null||i===void 0?void 0:i.getToc().then(s=>this.store.actions.toc(s)),(n=this.service)===null||n===void 0?void 0:n.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))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0}catch(s){this.errorHandler&&!(s instanceof fr)&&this.errorHandler(s)}}fetchRelatives(){var t,r,i;let n=(t=this.store.getState().map)===null||t===void 0?void 0:t.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);n!==void 0&&n.length>0?(r=this.service)===null||r===void 0||r.getRelativesForDocument((i=this.store.getState().configuration)===null||i===void 0?void 0:i.relativePivotMetadata,n).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.dispatchEvent(new CustomEvent("clustering-helper-created"))}createClusteringHelper(){var t,r;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let i=this.store.getState().relatives;if(i){let n=i.find(s=>{var l;return((l=s.map)===null||l===void 0?void 0:l.mapId)==this.store.getState().mapId}),a=(r=(t=M.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&r!==void 0?r:[];return new wo(i,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(t){var r,i,n;await this.loaded();let a=await Ao(()=>{var p;return(p=this.store.getState().configuration)===null||p===void 0?void 0:p.relativeTopicPivotMetadata}),s=this.store.getState().mapId,d=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[t]);if(!((n=(i=(r=d?.results)===null||r===void 0?void 0:r[0])===null||i===void 0?void 0:i.entries)===null||n===void 0)&&n[0]){let p=d.results[0].entries[0].topic.tocId;return await this.navigateToTopic(p),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}registerMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.add(t),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.delete(t),this.updateClusteringHelper()}};var wp=$`
1904
+ `;var on=class extends CustomEvent{constructor(t,r){super("ft-reader-map-loaded",{detail:{map:t,toc:r}})}},nn=class extends CustomEvent{constructor(t,r){super("ft-reader-visible-topics-change",{detail:{visibleTopics:r}})}},an=class extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}},sn=class extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}},ln=class extends Event{constructor(){super("ft-reader-map-not-found")}},cn=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},dn=class extends Event{constructor(){super("ft-reader-map-forbidden")}},pn=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var un=class{constructor(t){this.stateManager=t}searchInDocument(t){this.stateManager.setSearchInDocumentQuery(t??"")}};var Gt=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},Sh=e=>t=>+(t??"NaN")>0?+t:e,At=class extends Yt{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new lt(5),this.navigationDebouncer=new lt(10),this.mapLoadedEventDebouncer=new lt(50),this.addStore(M)}render(){return P`
1895
1905
  ${this.importStyleIfNeeded()}
1896
1906
  <slot @register-ft-reader-component=${this.registerComponent}></slot>
1897
- `}importStyleIfNeeded(){var t,r;let i=(t=this.stateManager.service)===null||t===void 0?void 0:t.themeStylesheet();return!i||window.location.href.startsWith((r=this.baseUrl)!==null&&r!==void 0?r:"")?W:k`
1907
+ `}importStyleIfNeeded(){var t,r;let i=(t=this.stateManager.service)===null||t===void 0?void 0:t.themeStylesheet();return!i||window.location.href.startsWith((r=this.baseUrl)!==null&&r!==void 0?r:"")?W:P`
1898
1908
  <style>
1899
1909
  @import "${i}"
1900
1910
  </style>
1901
- `}get stateManager(){return this._stateManager==null&&(this._stateManager=en.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(t=>{let r=t.fontsStylesheet();if(r&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${r}"]`)){let i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",r),document.head.append(i)}window.FluidTopicsReaderService=new pn(this.stateManager)})}update(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),t.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(r=>t.has(r))&&this.mapId&&this.navigateToTarget(),t.has("session")&&this.reload()}contentAvailableCallback(t){var r,i;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.sendLoadedEventIfLoaded(),t.has("scrollTarget")&&((r=this.scrollTarget)===null||r===void 0?void 0:r.tocId)==null){let n=t.get("scrollTarget");n?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>{var a;return this.stateManager.service.getAccurateNavigationData(n.tocId,(a=this.currentPage)===null||a===void 0?void 0:a.number,n.section).then(s=>this.dispatchEvent(new nn(s)))})}(t.has("visibleTopics")||t.has("scrollTarget"))&&((i=this.scrollTarget)===null||i===void 0?void 0:i.tocId)==null&&Promise.all(this.visibleTopics.map(n=>{var a;return this.stateManager.service.getAccurateNavigationData(n,(a=this.currentPage)===null||a===void 0?void 0:a.number)})).then(n=>{let a=n.filter(s=>s!=null&&s.topicTitle!=="").map(s=>{var l;return{tocId:s.tocId,title:s.topicTitle,page:s.page,prettyUrl:s.prettyUrl,prettyUrlDuplicated:s.prettyUrlDuplicated,breadcrumb:(l=this.stateManager.service)===null||l===void 0?void 0:l.buildBreadcrumb(s.tocId)}});this.dispatchEvent(new on(this.map,a))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload()}async navigateToTarget(){await this.stateManager.loaded(),await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new dn),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(t){t.stopPropagation();let r=t.composedPath()[0];this.register(r)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){let r=t;r.status===401?this.dispatchEvent(new ln):r.status===403?this.dispatchEvent(new cn):r.status===404?this.dispatchEvent(new sn):this.dispatchEvent(new an(t))}reloadBookmarks(){bp.reloadBookmarks()}async reloadRating(){var t,r;await((t=this.stateManager.service)===null||t===void 0?void 0:t.reloadRating()),(r=this.stateManager.store)===null||r===void 0||r.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new rn(this.map,this.toc))})}};At.styles=Ep;Gt([dt({store:M.name})],At.prototype,"baseUrl",void 0);Gt([dt({store:M.name})],At.prototype,"session",void 0);Gt([g()],At.prototype,"mapId",void 0);Gt([g()],At.prototype,"tocId",void 0);Gt([g()],At.prototype,"section",void 0);Gt([g()],At.prototype,"topicPivot",void 0);Gt([g()],At.prototype,"searchInDocumentQuery",void 0);Gt([g({type:Number,converter:{fromAttribute:Sh()}})],At.prototype,"page",void 0);Gt([dt({store:"reader"})],At.prototype,"map",void 0);Gt([dt({store:"reader"})],At.prototype,"toc",void 0);Gt([dt({store:"reader"})],At.prototype,"visibleTopics",void 0);Gt([dt({store:"reader"})],At.prototype,"currentPage",void 0);Gt([dt({store:"reader"})],At.prototype,"scrollTarget",void 0);Gt([g({attribute:!1})],At.prototype,"readerServiceProvider",void 0);J("ft-reader-context")(At);var un=class extends CustomEvent{constructor(t){super("send-feedback",{detail:t})}},fn=class extends CustomEvent{constructor(t){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:t})}},hn=class extends CustomEvent{constructor(t){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:t})}},mn=class extends CustomEvent{constructor(t){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:t}})}},yn=class extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}};var _t=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},at=class extends Je(Ze){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.ratingAllowed=!1,this.from="",this.feedbackMessage="",this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(tt,xp)}get canAccessFeedback(){var t;return(t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(Jt.FEEDBACK,{session:this.session})}get canRateThisContent(){var t;return((t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(Jt.RATING,{session:this.session}))&&this.ratingAllowed&&this.configuredRatingType!=Ot.NO_RATING}get configuredRatingType(){var t,r;return(r=(t=this.ratingSummary)===null||t===void 0?void 0:t.type)!==null&&r!==void 0?r:Ot.NO_RATING}get ratingTypeOfDoneRatingOfThisContent(){var t,r,i;return(i=(r=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||r===void 0?void 0:r.type)!==null&&i!==void 0?i:Ot.NO_RATING}get ratingValue(){var t,r,i;return(i=(r=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||r===void 0?void 0:r.value)!==null&&i!==void 0?i:-1}get ratingDate(){var t,r;let i=(r=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||r===void 0?void 0:r.date;return typeof i=="string"?xi(i):i}render(){return!this.canAccessFeedback&&!this.canRateThisContent?W:k`
1911
+ `}get stateManager(){return this._stateManager==null&&(this._stateManager=rn.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(t=>{let r=t.fontsStylesheet();if(r&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${r}"]`)){let i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",r),document.head.append(i)}window.FluidTopicsReaderService=new un(this.stateManager)})}update(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),t.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(r=>t.has(r))&&this.mapId&&this.navigateToTarget(),t.has("session")&&this.reload()}contentAvailableCallback(t){var r,i;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.sendLoadedEventIfLoaded(),t.has("scrollTarget")&&((r=this.scrollTarget)===null||r===void 0?void 0:r.tocId)==null){let n=t.get("scrollTarget");n?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>{var a;return this.stateManager.service.getAccurateNavigationData(n.tocId,(a=this.currentPage)===null||a===void 0?void 0:a.number,n.section).then(s=>this.dispatchEvent(new an(s)))})}(t.has("visibleTopics")||t.has("scrollTarget"))&&((i=this.scrollTarget)===null||i===void 0?void 0:i.tocId)==null&&Promise.all(this.visibleTopics.map(n=>{var a;return this.stateManager.service.getAccurateNavigationData(n,(a=this.currentPage)===null||a===void 0?void 0:a.number)})).then(n=>{let a=n.filter(s=>s!=null&&s.topicTitle!=="").map(s=>{var l;return{tocId:s.tocId,title:s.topicTitle,page:s.page,prettyUrl:s.prettyUrl,prettyUrlDuplicated:s.prettyUrlDuplicated,breadcrumb:(l=this.stateManager.service)===null||l===void 0?void 0:l.buildBreadcrumb(s.tocId)}});this.dispatchEvent(new nn(this.map,a))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload()}async navigateToTarget(){await this.stateManager.loaded(),await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new pn),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(t){t.stopPropagation();let r=t.composedPath()[0];this.register(r)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){let r=t;r.status===401?this.dispatchEvent(new cn):r.status===403?this.dispatchEvent(new dn):r.status===404?this.dispatchEvent(new ln):this.dispatchEvent(new sn(t))}reloadBookmarks(){vp.reloadBookmarks()}async reloadRating(){var t,r;await((t=this.stateManager.service)===null||t===void 0?void 0:t.reloadRating()),(r=this.stateManager.store)===null||r===void 0||r.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new on(this.map,this.toc))})}};At.styles=wp;Gt([dt({store:M.name})],At.prototype,"baseUrl",void 0);Gt([dt({store:M.name})],At.prototype,"session",void 0);Gt([g()],At.prototype,"mapId",void 0);Gt([g()],At.prototype,"tocId",void 0);Gt([g()],At.prototype,"section",void 0);Gt([g()],At.prototype,"topicPivot",void 0);Gt([g()],At.prototype,"searchInDocumentQuery",void 0);Gt([g({type:Number,converter:{fromAttribute:Sh()}})],At.prototype,"page",void 0);Gt([dt({store:"reader"})],At.prototype,"map",void 0);Gt([dt({store:"reader"})],At.prototype,"toc",void 0);Gt([dt({store:"reader"})],At.prototype,"visibleTopics",void 0);Gt([dt({store:"reader"})],At.prototype,"currentPage",void 0);Gt([dt({store:"reader"})],At.prototype,"scrollTarget",void 0);Gt([g({attribute:!1})],At.prototype,"readerServiceProvider",void 0);J("ft-reader-context")(At);var fn=class extends CustomEvent{constructor(t){super("send-feedback",{detail:t})}},hn=class extends CustomEvent{constructor(t){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:t})}},mn=class extends CustomEvent{constructor(t){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:t})}},yn=class extends CustomEvent{constructor(t){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:t}})}},gn=class extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}};var _t=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},at=class extends Je(Ze){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.ratingAllowed=!1,this.from="",this.feedbackMessage="",this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(tt,Sp)}get canAccessFeedback(){var t;return(t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(Jt.FEEDBACK,{session:this.session})}get canRateThisContent(){var t;return((t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(Jt.RATING,{session:this.session}))&&this.ratingAllowed&&this.configuredRatingType!=Ot.NO_RATING}get configuredRatingType(){var t,r;return(r=(t=this.ratingSummary)===null||t===void 0?void 0:t.type)!==null&&r!==void 0?r:Ot.NO_RATING}get ratingTypeOfDoneRatingOfThisContent(){var t,r,i;return(i=(r=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||r===void 0?void 0:r.type)!==null&&i!==void 0?i:Ot.NO_RATING}get ratingValue(){var t,r,i;return(i=(r=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||r===void 0?void 0:r.value)!==null&&i!==void 0?i:-1}get ratingDate(){var t,r;let i=(r=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||r===void 0?void 0:r.date;return typeof i=="string"?Si(i):i}render(){return!this.canAccessFeedback&&!this.canRateThisContent?W:P`
1902
1912
  <div class="ft-reader-feedback">
1903
- ${this.hideTitle?W:k`
1913
+ ${this.hideTitle?W:P`
1904
1914
  <ft-typography variant="title" part="main-title">
1905
1915
  ${this.i18n(this.i18nProperties.feedbackMainTitle)}
1906
1916
  </ft-typography>
@@ -1908,7 +1918,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1908
1918
  ${this.renderRatingSection()}
1909
1919
  ${this.renderFeedbackSection()}
1910
1920
  </div>
1911
- `}renderRatingSection(){return this.canRateThisContent?k`
1921
+ `}renderRatingSection(){return this.canRateThisContent?P`
1912
1922
  <div class="ft-reader-feedback--rating" part="rating-container">
1913
1923
  <ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
1914
1924
  ${this.i18n(this.ratingSummary.type===Ot.DICHOTOMOUS?this.i18nProperties.dichotomousRatingSectionTitle:this.i18nProperties.ratingSectionTitle)}
@@ -1918,9 +1928,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1918
1928
  ${this.renderRatingDate()}
1919
1929
  </ft-typography>
1920
1930
  </div>
1921
- `:W}renderRatingDate(){let t=this.ratingDate;if(t==null)return tt.messages.notRated();if(t.getTime()>new Date().getTime()-6e4)return tt.messages.ratedNow();let r=new Date().toLocaleDateString(),i=t.toLocaleDateString();return r===i?tt.messages.ratedToday():tt.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case Ot.STARS:return k`
1931
+ `:W}renderRatingDate(){let t=this.ratingDate;if(t==null)return tt.messages.notRated();if(t.getTime()>new Date().getTime()-6e4)return tt.messages.ratedNow();let r=new Date().toLocaleDateString(),i=t.toLocaleDateString();return r===i?tt.messages.ratedToday():tt.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case Ot.STARS:return P`
1922
1932
  <div class="ft-reader-feedback--stars" part="rating rating-stars">
1923
- ${$n(new Array(5),(a,s)=>s,(a,s)=>{let l=this.ratingTypeOfDoneRatingOfThisContent===Ot.STARS&&this.ratingValue>s,d=s+1;return k`
1933
+ ${Co(new Array(5),(a,s)=>s,(a,s)=>{let l=this.ratingTypeOfDoneRatingOfThisContent===Ot.STARS&&this.ratingValue>s,d=s+1;return P`
1924
1934
  <ft-button round part="rating-stars-${d}"
1925
1935
  label="${tt.messages.starsRating(d)}"
1926
1936
  tooltipPosition="top"
@@ -1931,7 +1941,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1931
1941
  ></ft-button>
1932
1942
  `})}
1933
1943
  </div>
1934
- `;case Ot.LIKE:let t=this.ratingTypeOfDoneRatingOfThisContent===Ot.LIKE&&this.ratingValue===0,r=this.ratingTypeOfDoneRatingOfThisContent===Ot.LIKE&&this.ratingValue===1;return k`
1944
+ `;case Ot.LIKE:let t=this.ratingTypeOfDoneRatingOfThisContent===Ot.LIKE&&this.ratingValue===0,r=this.ratingTypeOfDoneRatingOfThisContent===Ot.LIKE&&this.ratingValue===1;return P`
1935
1945
  <ft-switch unselectable
1936
1946
  @change=${a=>this.rate(a.detail)}
1937
1947
  part="rating rating-like"
@@ -1951,7 +1961,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1951
1961
  ${tt.messages.dislike()}
1952
1962
  </ft-switch-option>
1953
1963
  </ft-switch>
1954
- `;case Ot.DICHOTOMOUS:let i=this.ratingTypeOfDoneRatingOfThisContent===Ot.DICHOTOMOUS&&this.ratingValue===0,n=this.ratingTypeOfDoneRatingOfThisContent===Ot.DICHOTOMOUS&&this.ratingValue===1;return k`
1964
+ `;case Ot.DICHOTOMOUS:let i=this.ratingTypeOfDoneRatingOfThisContent===Ot.DICHOTOMOUS&&this.ratingValue===0,n=this.ratingTypeOfDoneRatingOfThisContent===Ot.DICHOTOMOUS&&this.ratingValue===1;return P`
1955
1965
  <ft-switch unselectable
1956
1966
  @change=${a=>this.rate(a.detail)}
1957
1967
  part="rating rating-dichotomous">
@@ -1964,7 +1974,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1964
1974
  ${tt.messages.dichotomousNo()}
1965
1975
  </ft-switch-option>
1966
1976
  </ft-switch>
1967
- `}return W}rate(t){(t??-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:t}))}renderFeedbackSection(){var t,r,i,n,a;if(this.canAccessFeedback){let s=this.feedbackMailLinkBuilder(this.feedbackMessage),l=k`
1977
+ `}return W}rate(t){(t??-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:t}))}renderFeedbackSection(){var t,r,i,n,a;if(this.canAccessFeedback){let s=this.feedbackMailLinkBuilder(this.feedbackMessage),l=P`
1968
1978
  <ft-button primary
1969
1979
  type="submit" name="submit"
1970
1980
  class="ft-reader-feedback--send-feedback"
@@ -1972,11 +1982,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1972
1982
  part="send-feedback">
1973
1983
  ${tt.messages.okButton()}
1974
1984
  </ft-button>
1975
- `;s&&(l=k`
1985
+ `;s&&(l=P`
1976
1986
  <a class="ft-reader-feedback--feedback-link" href="${s}">
1977
1987
  ${l}
1978
1988
  </a>
1979
- `);let d=this.withMoreOptionsButton&&(!((t=this.configuration)===null||t===void 0)&&t.mailsSentByFluidTopics||!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers)?k`
1989
+ `);let d=this.withMoreOptionsButton&&(!((t=this.configuration)===null||t===void 0)&&t.mailsSentByFluidTopics||!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers)?P`
1980
1990
  <ft-button outlined
1981
1991
  type="button" name="more-options"
1982
1992
  class="ft-reader-feedback--more-options"
@@ -1984,13 +1994,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1984
1994
  part="more-options">
1985
1995
  ${tt.messages.moreOptionsButton()}
1986
1996
  </ft-button>
1987
- `:W;return k`
1997
+ `:W;return P`
1988
1998
  <form class="ft-reader-feedback--feedback" part="feedback-container" autocomplete="on"
1989
1999
  @submit="${p=>this.onFormSubmitEvent(p,!!s)}">
1990
2000
  <ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
1991
2001
  ${this.i18n(this.i18nProperties.feedbackSectionTitle)}
1992
2002
  </ft-typography>
1993
- ${((n=(i=this.session)===null||i===void 0?void 0:i.profile)===null||n===void 0?void 0:n.userId)==null&&(!((a=this.configuration)===null||a===void 0)&&a.mailsSentByFluidTopicsForUnauthenticatedUsers)?k`
2003
+ ${((n=(i=this.session)===null||i===void 0?void 0:i.profile)===null||n===void 0?void 0:n.userId)==null&&(!((a=this.configuration)===null||a===void 0)&&a.mailsSentByFluidTopicsForUnauthenticatedUsers)?P`
1994
2004
  <ft-text-field outlined name="email" type="email" autocomplete="email"
1995
2005
  class="ft-reader-feedback--from-input"
1996
2006
  label=${tt.messages.feedbackfromEmail()}
@@ -2009,7 +2019,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
2009
2019
  ${l}
2010
2020
  </div>
2011
2021
  </form>
2012
- `}return W}onFormSubmitEvent(t,r){t.preventDefault(),r?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,r,i;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((r=(t=this.session)===null||t===void 0?void 0:t.profile)===null||r===void 0?void 0:r.userId)==null&&(!((i=this.configuration)===null||i===void 0)&&i.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new un({message:this.feedbackInput.value,...((t=this.configuration)===null||t===void 0?void 0:t.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}onOpenMoreDetails(){this.dispatchEvent(new CustomEvent("open-more-options"))}clearFeedbackInput(){setTimeout(()=>this.feedbackInput.value="",0)}};at.elementDefinitions={"ft-button":ce,"ft-typography":xt,"ft-switch":Ft,"ft-switch-option":St,"ft-text-area":Nt,"ft-text-field":Y};at.styles=rp;_t([g({type:Boolean})],at.prototype,"editorMode",void 0);_t([g({type:Boolean})],at.prototype,"hideTitle",void 0);_t([g({type:Boolean})],at.prototype,"withMoreOptionsButton",void 0);_t([g({type:Boolean})],at.prototype,"ratingAllowed",void 0);_t([g({attribute:!1})],at.prototype,"i18nProperties",void 0);_t([g({attribute:!1})],at.prototype,"ratingSummary",void 0);_t([g({attribute:!1})],at.prototype,"session",void 0);_t([X(".ft-reader-feedback--feedback-input")],at.prototype,"feedbackInput",void 0);_t([H()],at.prototype,"from",void 0);_t([H()],at.prototype,"feedbackMessage",void 0);_t([g()],at.prototype,"iconVariant",void 0);_t([g()],at.prototype,"emptyStarIcon",void 0);_t([g()],at.prototype,"filledStarIcon",void 0);_t([g()],at.prototype,"emptyLikeIcon",void 0);_t([g()],at.prototype,"filledLikeIcon",void 0);_t([g()],at.prototype,"emptyDislikeIcon",void 0);_t([g()],at.prototype,"filledDislikeIcon",void 0);_t([dt({store:"reader",selector:e=>{var t;return(t=e.configuration)===null||t===void 0?void 0:t.feedback}})],at.prototype,"configuration",void 0);_t([g()],at.prototype,"feedbackMailLinkBuilder",void 0);var no=Qe.fromGwt("server");var ao=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,r,i,n,a){var s;this.subject=t,this.url=r,this.configuration=n,this.isAuthenticated=a,this.subjectMetadata=this.filterMetadata(i,n.subjectMetadataIds).map(l=>"["+l.values[l.values.length-1]+"]").join(""),this.bodyMetadata=this.filterMetadata(i,(s=n.bodyMetadataIds)!==null&&s!==void 0?s:[]).map(l=>"["+l.values.join(", ")+"]").join(" ")}filterMetadata(t,r){return r.map(i=>t.find(n=>n.key===i)).filter(i=>i!=null&&i.values.length>0)}shouldUseMailer(){var t,r;let i=this.isAuthenticated&&!(!((t=this.configuration)===null||t===void 0)&&t.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers);return i||n}build(t){var r;if(t!=null&&t.length===0||!this.shouldUseMailer())return;let i=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
2022
+ `}return W}onFormSubmitEvent(t,r){t.preventDefault(),r?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,r,i;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((r=(t=this.session)===null||t===void 0?void 0:t.profile)===null||r===void 0?void 0:r.userId)==null&&(!((i=this.configuration)===null||i===void 0)&&i.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new fn({message:this.feedbackInput.value,...((t=this.configuration)===null||t===void 0?void 0:t.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}onOpenMoreDetails(){this.dispatchEvent(new CustomEvent("open-more-options"))}clearFeedbackInput(){setTimeout(()=>this.feedbackInput.value="",0)}};at.elementDefinitions={"ft-button":ce,"ft-typography":xt,"ft-switch":Ft,"ft-switch-option":St,"ft-text-area":Nt,"ft-text-field":K};at.styles=op;_t([g({type:Boolean})],at.prototype,"editorMode",void 0);_t([g({type:Boolean})],at.prototype,"hideTitle",void 0);_t([g({type:Boolean})],at.prototype,"withMoreOptionsButton",void 0);_t([g({type:Boolean})],at.prototype,"ratingAllowed",void 0);_t([g({attribute:!1})],at.prototype,"i18nProperties",void 0);_t([g({attribute:!1})],at.prototype,"ratingSummary",void 0);_t([g({attribute:!1})],at.prototype,"session",void 0);_t([X(".ft-reader-feedback--feedback-input")],at.prototype,"feedbackInput",void 0);_t([H()],at.prototype,"from",void 0);_t([H()],at.prototype,"feedbackMessage",void 0);_t([g()],at.prototype,"iconVariant",void 0);_t([g()],at.prototype,"emptyStarIcon",void 0);_t([g()],at.prototype,"filledStarIcon",void 0);_t([g()],at.prototype,"emptyLikeIcon",void 0);_t([g()],at.prototype,"filledLikeIcon",void 0);_t([g()],at.prototype,"emptyDislikeIcon",void 0);_t([g()],at.prototype,"filledDislikeIcon",void 0);_t([dt({store:"reader",selector:e=>{var t;return(t=e.configuration)===null||t===void 0?void 0:t.feedback}})],at.prototype,"configuration",void 0);_t([g()],at.prototype,"feedbackMailLinkBuilder",void 0);var no=Qe.fromGwt("server");var ao=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,r,i,n,a){var s;this.subject=t,this.url=r,this.configuration=n,this.isAuthenticated=a,this.subjectMetadata=this.filterMetadata(i,n.subjectMetadataIds).map(l=>"["+l.values[l.values.length-1]+"]").join(""),this.bodyMetadata=this.filterMetadata(i,(s=n.bodyMetadataIds)!==null&&s!==void 0?s:[]).map(l=>"["+l.values.join(", ")+"]").join(" ")}filterMetadata(t,r){return r.map(i=>t.find(n=>n.key===i)).filter(i=>i!=null&&i.values.length>0)}shouldUseMailer(){var t,r;let i=this.isAuthenticated&&!(!((t=this.configuration)===null||t===void 0)&&t.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers);return i||n}build(t){var r;if(t!=null&&t.length===0||!this.shouldUseMailer())return;let i=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
2013
2023
  ${this.bodyMetadata}
2014
2024
  ${this.url}
2015
2025
  _________________________________________________________________
@@ -2017,7 +2027,7 @@ _________________________________________________________________
2017
2027
  ${t??""}
2018
2028
 
2019
2029
  _________________________________________________________________
2020
- ${no.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configuration)===null||r===void 0?void 0:r.recipients.join(",")}?subject=${i}&body=${n}`}};var tr=Qe.build("inDesignerFeedbackComponent"),gn={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var Lt=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},bt=class extends Je(Ze){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Dt.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new ao,this.i18nProperties={feedbackMainTitle:tt.properties.mapFeedbackMainTitle(),ratingSectionTitle:tt.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:tt.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:tt.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new lt(100),this.sendRatingDebouncer=new lt(500),this.addStore(M)}render(){return k`
2030
+ ${no.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configuration)===null||r===void 0?void 0:r.recipients.join(",")}?subject=${i}&body=${n}`}};var tr=Qe.build("inDesignerFeedbackComponent"),bn={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var Lt=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},bt=class extends Je(Ze){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Dt.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new ao,this.i18nProperties={feedbackMainTitle:tt.properties.mapFeedbackMainTitle(),ratingSectionTitle:tt.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:tt.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:tt.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new lt(100),this.sendRatingDebouncer=new lt(500),this.addStore(M)}render(){return P`
2021
2031
  <ft-reader-feedback
2022
2032
  ratingAllowed
2023
2033
  .i18nProperties=${this.i18nProperties}
@@ -2039,7 +2049,7 @@ ${no.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2039
2049
  @mailer-feedback=${this.onMailerFeedbackSent}
2040
2050
  @open-more-options=${this.openMoreOptions}
2041
2051
  ></ft-reader-feedback>
2042
- `}update(t){var r,i,n,a;super.update(t),t.has("map")&&this.map&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(tr,gn),["map","configuration","user","mailSubject"].some(s=>t.has(s))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(i=(r=this.service)===null||r===void 0?void 0:r.getLink())!==null&&i!==void 0?i:"",this.map.metadata,this.configuration,((a=(n=this.session)===null||n===void 0?void 0:n.profile)===null||a===void 0?void 0:a.userId)!=null)}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run(async()=>{var t,r;this.map&&(!((r=(t=this.session)===null||t===void 0?void 0:t.profile)===null||r===void 0)&&r.userId||this.ratingSummary==null)&&await this.fetchRatingSummary()})}async fetchRatingSummary(){var t;this.ratingSummary=await((t=this.service)===null||t===void 0?void 0:t.getMapRating())}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:t.detail==null?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(t.detail)))}async sendRating(t){var r,i,n;if(!this.editorMode&&this.ratingSummary){try{t==null?await((r=this.service)===null||r===void 0?void 0:r.unrateMap()):await((i=this.service)===null||i===void 0?void 0:i.rateMap((n=this.ratingSummary)===null||n===void 0?void 0:n.type,t))}catch{this.dispatchEvent(new Ut({type:"error",message:tt.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Ut({type:"info",message:tr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var r;try{this.editorMode?this.dispatchEvent(new Ut({type:"info",message:tr.messages.feedbackAndRatingDisabledInEditor()})):(await((r=this.service)===null||r===void 0?void 0:r.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new Ut({type:"info",message:tt.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new Ut({type:"error",message:tt.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new yn)}openMoreOptions(){var t,r,i;this.dispatchEvent(new hn({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:((t=this.map)===null||t===void 0?void 0:t.metadata)||[],ratingType:((r=this.ratingSummary)===null||r===void 0?void 0:r.type)||Ot.NO_RATING,ratingValue:(i=this.ratingSummary)===null||i===void 0?void 0:i.rating}))}};bt.elementDefinitions={"ft-reader-feedback":at};Lt([dt({store:M.name})],bt.prototype,"session",void 0);Lt([dt({store:"reader"})],bt.prototype,"map",void 0);Lt([dt({store:M.name})],bt.prototype,"editorMode",void 0);Lt([dt({store:"reader",selector:e=>{var t;return(t=e.configuration)===null||t===void 0?void 0:t.feedback}})],bt.prototype,"configuration",void 0);Lt([H()],bt.prototype,"ratingSummary",void 0);Lt([g({type:Boolean})],bt.prototype,"hideTitle",void 0);Lt([g({type:Boolean})],bt.prototype,"withMoreOptionsButton",void 0);Lt([g()],bt.prototype,"iconVariant",void 0);Lt([g()],bt.prototype,"emptyStarIcon",void 0);Lt([g()],bt.prototype,"filledStarIcon",void 0);Lt([g()],bt.prototype,"emptyLikeIcon",void 0);Lt([g()],bt.prototype,"filledLikeIcon",void 0);Lt([g()],bt.prototype,"emptyDislikeIcon",void 0);Lt([g()],bt.prototype,"filledDislikeIcon",void 0);Lt([X("ft-reader-feedback")],bt.prototype,"readerFeedback",void 0);Lt([qi(no.properties["mail.map_feedback.subject"](e=>{var t;return[(t=e.map)===null||t===void 0?void 0:t.title]}))],bt.prototype,"mailSubject",void 0);Lt([Uo({eventName:"rating-changed"})],bt.prototype,"fetchRatingSummary",null);var wp=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},il=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},ol=Symbol("registerInterval");function Oh(e){var t;class r extends e{constructor(){super(...arguments),this.disableContextInteractions=!1,this[t]=0}connectedCallback(){super.connectedCallback(),this[ol]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[ol]):this.dispatchEvent(new il)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return t=ol,wp([H()],r.prototype,"tocNode",void 0),wp([H()],r.prototype,"disableContextInteractions",void 0),r}var bn=class extends Oh(Ze){};var kt=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},vt=class extends Je(bn){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Dt.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new ao,this.i18nProperties={feedbackMainTitle:tt.properties.topicFeedbackMainTitle(),ratingSectionTitle:tt.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:tt.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:tt.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new lt(100),this.sendRatingDebouncer=new lt(500),this.addStore(M)}render(){var t;return k`
2052
+ `}update(t){var r,i,n,a;super.update(t),t.has("map")&&this.map&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(tr,bn),["map","configuration","user","mailSubject"].some(s=>t.has(s))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(i=(r=this.service)===null||r===void 0?void 0:r.getLink())!==null&&i!==void 0?i:"",this.map.metadata,this.configuration,((a=(n=this.session)===null||n===void 0?void 0:n.profile)===null||a===void 0?void 0:a.userId)!=null)}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run(async()=>{var t,r;this.map&&(!((r=(t=this.session)===null||t===void 0?void 0:t.profile)===null||r===void 0)&&r.userId||this.ratingSummary==null)&&await this.fetchRatingSummary()})}async fetchRatingSummary(){var t;this.ratingSummary=await((t=this.service)===null||t===void 0?void 0:t.getMapRating())}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:t.detail==null?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(t.detail)))}async sendRating(t){var r,i,n;if(!this.editorMode&&this.ratingSummary){try{t==null?await((r=this.service)===null||r===void 0?void 0:r.unrateMap()):await((i=this.service)===null||i===void 0?void 0:i.rateMap((n=this.ratingSummary)===null||n===void 0?void 0:n.type,t))}catch{this.dispatchEvent(new Ut({type:"error",message:tt.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Ut({type:"info",message:tr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var r;try{this.editorMode?this.dispatchEvent(new Ut({type:"info",message:tr.messages.feedbackAndRatingDisabledInEditor()})):(await((r=this.service)===null||r===void 0?void 0:r.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new Ut({type:"info",message:tt.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new Ut({type:"error",message:tt.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new gn)}openMoreOptions(){var t,r,i;this.dispatchEvent(new mn({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:((t=this.map)===null||t===void 0?void 0:t.metadata)||[],ratingType:((r=this.ratingSummary)===null||r===void 0?void 0:r.type)||Ot.NO_RATING,ratingValue:(i=this.ratingSummary)===null||i===void 0?void 0:i.rating}))}};bt.elementDefinitions={"ft-reader-feedback":at};Lt([dt({store:M.name})],bt.prototype,"session",void 0);Lt([dt({store:"reader"})],bt.prototype,"map",void 0);Lt([dt({store:M.name})],bt.prototype,"editorMode",void 0);Lt([dt({store:"reader",selector:e=>{var t;return(t=e.configuration)===null||t===void 0?void 0:t.feedback}})],bt.prototype,"configuration",void 0);Lt([H()],bt.prototype,"ratingSummary",void 0);Lt([g({type:Boolean})],bt.prototype,"hideTitle",void 0);Lt([g({type:Boolean})],bt.prototype,"withMoreOptionsButton",void 0);Lt([g()],bt.prototype,"iconVariant",void 0);Lt([g()],bt.prototype,"emptyStarIcon",void 0);Lt([g()],bt.prototype,"filledStarIcon",void 0);Lt([g()],bt.prototype,"emptyLikeIcon",void 0);Lt([g()],bt.prototype,"filledLikeIcon",void 0);Lt([g()],bt.prototype,"emptyDislikeIcon",void 0);Lt([g()],bt.prototype,"filledDislikeIcon",void 0);Lt([X("ft-reader-feedback")],bt.prototype,"readerFeedback",void 0);Lt([Yi(no.properties["mail.map_feedback.subject"](e=>{var t;return[(t=e.map)===null||t===void 0?void 0:t.title]}))],bt.prototype,"mailSubject",void 0);Lt([Bo({eventName:"rating-changed"})],bt.prototype,"fetchRatingSummary",null);var Ap=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},nl=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},il=Symbol("registerInterval");function Oh(e){var t;class r extends e{constructor(){super(...arguments),this.disableContextInteractions=!1,this[t]=0}connectedCallback(){super.connectedCallback(),this[il]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[il]):this.dispatchEvent(new nl)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return t=il,Ap([H()],r.prototype,"tocNode",void 0),Ap([H()],r.prototype,"disableContextInteractions",void 0),r}var vn=class extends Oh(Ze){};var kt=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},vt=class extends Je(vn){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Dt.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new ao,this.i18nProperties={feedbackMainTitle:tt.properties.topicFeedbackMainTitle(),ratingSectionTitle:tt.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:tt.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:tt.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new lt(100),this.sendRatingDebouncer=new lt(500),this.addStore(M)}render(){var t;return P`
2043
2053
  <ft-reader-feedback
2044
2054
  .i18nProperties=${this.i18nProperties}
2045
2055
  ?ratingAllowed=${(t=this.tocNode)===null||t===void 0?void 0:t.hasRating}
@@ -2061,7 +2071,7 @@ ${no.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2061
2071
  @mailer-feedback=${this.onMailerFeedbackSent}
2062
2072
  @open-more-options=${this.openMoreOptions}
2063
2073
  ></ft-reader-feedback>
2064
- `}update(t){var r,i,n,a;super.update(t),["tocNode","user"].some(s=>t.has(s))&&this.tocNode&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(tr,gn),["map","tocNode","configuration","user","mailSubject"].some(s=>t.has(s))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(i=(r=this.service)===null||r===void 0?void 0:r.getLink(this.tocNode.tocId))!==null&&i!==void 0?i:"",this.map.metadata,this.configuration,((a=(n=this.session)===null||n===void 0?void 0:n.profile)===null||a===void 0?void 0:a.userId)!=null)}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run(async()=>{var t,r;this.tocNode&&(!((r=(t=this.session)===null||t===void 0?void 0:t.profile)===null||r===void 0)&&r.userId||this.ratingSummary==null)&&await this.fetchRatingSummary()})}async fetchRatingSummary(){var t;this.ratingSummary=await((t=this.service)===null||t===void 0?void 0:t.getTopicRating(this.tocNode.tocId))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:t.detail==null?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(t.detail)))}async sendRating(t){var r,i,n;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{t==null?await((r=this.service)===null||r===void 0?void 0:r.unrateTopic(this.tocNode.tocId)):await((i=this.service)===null||i===void 0?void 0:i.rateTopic(this.tocNode.tocId,(n=this.ratingSummary)===null||n===void 0?void 0:n.type,t))}catch{this.dispatchEvent(new Ut({type:"error",message:tt.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Ut({type:"info",message:tr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var r;try{!this.editorMode&&this.tocNode?(await((r=this.service)===null||r===void 0?void 0:r.sendTopicFeedback(this.tocNode.tocId,t.detail.message,t.detail.from)),this.dispatchEvent(new Ut({type:"info",message:tt.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new Ut({type:"info",message:tr.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new Ut({type:"error",message:tt.messages.feedbackFailure()}))}}onMailerFeedbackSent(){let t=this.tocNode;this.dispatchEvent(new mn(t))}openMoreOptions(){var t,r,i,n,a,s,l,d;this.dispatchEvent(new fn({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:(r=(t=this.service)===null||t===void 0?void 0:t.getLink(this.tocNode.tocId))!==null&&r!==void 0?r:"",mapMetadata:((i=this.map)===null||i===void 0?void 0:i.metadata)||[],breadcrumb:((a=(n=this.stateManager)===null||n===void 0?void 0:n.service)===null||a===void 0?void 0:a.buildBreadcrumb(this.tocNode.tocId))||[],ratingType:(!((s=this.tocNode)===null||s===void 0)&&s.hasRating?(l=this.ratingSummary)===null||l===void 0?void 0:l.type:Ot.NO_RATING)||Ot.NO_RATING,ratingValue:(d=this.ratingSummary)===null||d===void 0?void 0:d.rating}))}};vt.elementDefinitions={"ft-reader-feedback":at};kt([dt({store:M.name})],vt.prototype,"session",void 0);kt([dt({store:"reader"})],vt.prototype,"map",void 0);kt([dt({store:M.name})],vt.prototype,"editorMode",void 0);kt([dt({store:"reader",selector:e=>{var t;return(t=e.configuration)===null||t===void 0?void 0:t.feedback}})],vt.prototype,"configuration",void 0);kt([H()],vt.prototype,"ratingSummary",void 0);kt([g({type:Boolean})],vt.prototype,"hideTitle",void 0);kt([g({type:Boolean})],vt.prototype,"withMoreOptionsButton",void 0);kt([g()],vt.prototype,"iconVariant",void 0);kt([g()],vt.prototype,"emptyStarIcon",void 0);kt([g()],vt.prototype,"filledStarIcon",void 0);kt([g()],vt.prototype,"emptyLikeIcon",void 0);kt([g()],vt.prototype,"filledLikeIcon",void 0);kt([g()],vt.prototype,"emptyDislikeIcon",void 0);kt([g()],vt.prototype,"filledDislikeIcon",void 0);kt([X("ft-reader-feedback")],vt.prototype,"readerFeedback",void 0);kt([qi(no.properties["mail.feedback.subject"](e=>{var t,r;return[(t=e.tocNode)===null||t===void 0?void 0:t.title,(r=e.map)===null||r===void 0?void 0:r.title]}))],vt.prototype,"mailSubject",void 0);kt([Uo({eventName:"rating-changed"})],vt.prototype,"fetchRatingSummary",null);J("ft-reader-map-feedback")(bt);J("ft-reader-topic-feedback")(vt);})();
2074
+ `}update(t){var r,i,n,a;super.update(t),["tocNode","user"].some(s=>t.has(s))&&this.tocNode&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(tr,bn),["map","tocNode","configuration","user","mailSubject"].some(s=>t.has(s))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(i=(r=this.service)===null||r===void 0?void 0:r.getLink(this.tocNode.tocId))!==null&&i!==void 0?i:"",this.map.metadata,this.configuration,((a=(n=this.session)===null||n===void 0?void 0:n.profile)===null||a===void 0?void 0:a.userId)!=null)}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run(async()=>{var t,r;this.tocNode&&(!((r=(t=this.session)===null||t===void 0?void 0:t.profile)===null||r===void 0)&&r.userId||this.ratingSummary==null)&&await this.fetchRatingSummary()})}async fetchRatingSummary(){var t;this.ratingSummary=await((t=this.service)===null||t===void 0?void 0:t.getTopicRating(this.tocNode.tocId))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:t.detail==null?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(t.detail)))}async sendRating(t){var r,i,n;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{t==null?await((r=this.service)===null||r===void 0?void 0:r.unrateTopic(this.tocNode.tocId)):await((i=this.service)===null||i===void 0?void 0:i.rateTopic(this.tocNode.tocId,(n=this.ratingSummary)===null||n===void 0?void 0:n.type,t))}catch{this.dispatchEvent(new Ut({type:"error",message:tt.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Ut({type:"info",message:tr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var r;try{!this.editorMode&&this.tocNode?(await((r=this.service)===null||r===void 0?void 0:r.sendTopicFeedback(this.tocNode.tocId,t.detail.message,t.detail.from)),this.dispatchEvent(new Ut({type:"info",message:tt.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new Ut({type:"info",message:tr.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new Ut({type:"error",message:tt.messages.feedbackFailure()}))}}onMailerFeedbackSent(){let t=this.tocNode;this.dispatchEvent(new yn(t))}openMoreOptions(){var t,r,i,n,a,s,l,d;this.dispatchEvent(new hn({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:(r=(t=this.service)===null||t===void 0?void 0:t.getLink(this.tocNode.tocId))!==null&&r!==void 0?r:"",mapMetadata:((i=this.map)===null||i===void 0?void 0:i.metadata)||[],breadcrumb:((a=(n=this.stateManager)===null||n===void 0?void 0:n.service)===null||a===void 0?void 0:a.buildBreadcrumb(this.tocNode.tocId))||[],ratingType:(!((s=this.tocNode)===null||s===void 0)&&s.hasRating?(l=this.ratingSummary)===null||l===void 0?void 0:l.type:Ot.NO_RATING)||Ot.NO_RATING,ratingValue:(d=this.ratingSummary)===null||d===void 0?void 0:d.rating}))}};vt.elementDefinitions={"ft-reader-feedback":at};kt([dt({store:M.name})],vt.prototype,"session",void 0);kt([dt({store:"reader"})],vt.prototype,"map",void 0);kt([dt({store:M.name})],vt.prototype,"editorMode",void 0);kt([dt({store:"reader",selector:e=>{var t;return(t=e.configuration)===null||t===void 0?void 0:t.feedback}})],vt.prototype,"configuration",void 0);kt([H()],vt.prototype,"ratingSummary",void 0);kt([g({type:Boolean})],vt.prototype,"hideTitle",void 0);kt([g({type:Boolean})],vt.prototype,"withMoreOptionsButton",void 0);kt([g()],vt.prototype,"iconVariant",void 0);kt([g()],vt.prototype,"emptyStarIcon",void 0);kt([g()],vt.prototype,"filledStarIcon",void 0);kt([g()],vt.prototype,"emptyLikeIcon",void 0);kt([g()],vt.prototype,"filledLikeIcon",void 0);kt([g()],vt.prototype,"emptyDislikeIcon",void 0);kt([g()],vt.prototype,"filledDislikeIcon",void 0);kt([X("ft-reader-feedback")],vt.prototype,"readerFeedback",void 0);kt([Yi(no.properties["mail.feedback.subject"](e=>{var t,r;return[(t=e.tocNode)===null||t===void 0?void 0:t.title,(r=e.map)===null||r===void 0?void 0:r.title]}))],vt.prototype,"mailSubject",void 0);kt([Bo({eventName:"rating-changed"})],vt.prototype,"fetchRatingSummary",null);J("ft-reader-map-feedback")(bt);J("ft-reader-topic-feedback")(vt);})();
2065
2075
  /*! Bundled license information:
2066
2076
 
2067
2077
  @webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js: