@fluid-topics/ft-reader-feedback 1.2.26 → 1.2.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-reader-feedback.light.js +404 -393
- package/build/ft-reader-feedback.min.js +372 -361
- package/package.json +6 -6
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
"use strict";(()=>{var
|
|
2
|
-
`)===0?K.substr(1,K.length):K}).forEach(function(K){var Q=K.split(":"),V=Q.shift().trim();if(V){var le=Q.join(":").trim();try{O.append(V,le)}catch(io){console.warn("Response "+io.message)}}}),O}$.call(A.prototype);function J(y,O){if(!(this instanceof J))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(O||(O={}),this.type="default",this.status=O.status===void 0?200:O.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=O.statusText===void 0?"":""+O.statusText,this.headers=new f(O.headers),this.url=O.url||"",this._initBody(y)}$.call(J.prototype),J.prototype.clone=function(){return new J(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},J.error=function(){var y=new J(null,{status:200,statusText:""});return y.ok=!1,y.status=0,y.type="error",y};var q=[301,302,303,307,308];J.redirect=function(y,O){if(q.indexOf(O)===-1)throw new RangeError("Invalid status code");return new J(null,{status:O,headers:{location:y}})},e.DOMException=i.DOMException;try{new e.DOMException}catch{e.DOMException=function(O,D){this.message=O,this.name=D;var K=Error(O);this.stack=K.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function F(y,O){return new Promise(function(D,K){var Q=new A(y,O);if(Q.signal&&Q.signal.aborted)return K(new e.DOMException("Aborted","AbortError"));var V=new XMLHttpRequest;function le(){V.abort()}V.onload=function(){var Tt={statusText:V.statusText,headers:z(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 J(er,Tt))},0)},V.onerror=function(){setTimeout(function(){K(new TypeError("Network request failed"))},0)},V.ontimeout=function(){setTimeout(function(){K(new TypeError("Network request timed out"))},0)},V.onabort=function(){setTimeout(function(){K(new e.DOMException("Aborted","AbortError"))},0)};function io(Tt){try{return Tt===""&&i.location.href?i.location.href:Tt}catch{return Tt}}if(V.open(Q.method,io(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")),O&&typeof O.headers=="object"&&!(O.headers instanceof f||i.Headers&&O.headers instanceof i.Headers)){var ol=[];Object.getOwnPropertyNames(O.headers).forEach(function(Tt){ol.push(d(Tt)),V.setRequestHeader(Tt,p(O.headers[Tt]))}),Q.headers.forEach(function(Tt,er){ol.indexOf(er)===-1&&V.setRequestHeader(er,Tt)})}else Q.headers.forEach(function(Tt,er){V.setRequestHeader(er,Tt)});Q.signal&&(Q.signal.addEventListener("abort",le),V.onreadystatechange=function(){V.readyState===4&&Q.signal.removeEventListener("abort",le)}),V.send(typeof Q._bodyInit>"u"?null:Q._bodyInit)})}return F.polyfill=!0,i.fetch||(i.fetch=F,i.Headers=f,i.Request=A,i.Response=J),e.Headers=f,e.Request=A,e.Response=J,e.fetch=F,e}({})})(Mi);Mi.fetch.ponyfill=!0;delete Mi.fetch.polyfill;var Kr=Di.fetch?Di:Mi;Ge=Kr.fetch;Ge.default=Kr.fetch;Ge.fetch=Kr.fetch;Ge.Headers=Kr.Headers;Ge.Request=Kr.Request;Ge.Response=Kr.Response;od.exports=Ge});if(!ShadowRoot.prototype.createElement){let r=window.HTMLElement,t=window.customElements.define,e=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,C){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(C)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let A=C.prototype.attributeChangedCallback,k=new Set(C.observedAttributes||[]);m(C,k,A);let z={elementClass:C,connectedCallback:C.prototype.connectedCallback,disconnectedCallback:C.prototype.disconnectedCallback,adoptedCallback:C.prototype.adoptedCallback,attributeChangedCallback:A,formAssociated:C.formAssociated,formAssociatedCallback:C.prototype.formAssociatedCallback,formDisabledCallback:C.prototype.formDisabledCallback,formResetCallback:C.prototype.formResetCallback,formStateRestoreCallback:C.prototype.formStateRestoreCallback,observedAttributes:k};this._definitionsByTag.set(w,z),this._definitionsByClass.set(C,z);let J=e.call(i,w);J||(J=f(w),t.call(i,w,J)),this===window.customElements&&(s.set(C,z),z.standInClass=J);let q=this._awaitingUpgrade.get(w);if(q){this._awaitingUpgrade.delete(w);for(let y of q)a.delete(y),S(y,z,!0)}let F=this._whenDefinedPromises.get(w);return F!==void 0&&(F.resolve(C),this._whenDefinedPromises.delete(w)),C}upgrade(){T.push(this),i.upgrade.apply(i,arguments),T.pop()}get(w){return this._definitionsByTag.get(w)?.elementClass}_getDefinition(w){return this._definitionsByTag.get(w)}whenDefined(w){let C=this._getDefinition(w);if(C!==void 0)return Promise.resolve(C.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,C,A){let k=this._awaitingUpgrade.get(C);k||this._awaitingUpgrade.set(C,k=new Set),A?k.add(w):k.delete(w)}};let d;window.HTMLElement=function(){let C=d;if(C)return d=void 0,C;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 C=Reflect.construct(r,[],A.standInClass),Object.setPrototypeOf(C,this.constructor.prototype),n.set(C,A),C},window.HTMLElement.prototype=r.prototype;let p=w=>w===document||w instanceof ShadowRoot,h=w=>{let C=w.getRootNode();if(!p(C)){let A=T[T.length-1];if(A instanceof CustomElementRegistry)return A;C=A.getRootNode(),p(C)||(C=l.get(C)?.getRootNode()||document)}return C.customElements},f=w=>class{static get formAssociated(){return!0}constructor(){let A=Reflect.construct(r,[],this.constructor);Object.setPrototypeOf(A,HTMLElement.prototype);let k=h(A)||window.customElements,z=k._getDefinition(w);return z?S(A,z):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,C,A)=>{if(C.size===0||A===void 0)return;let k=w.prototype.setAttribute;k&&(w.prototype.setAttribute=function(q,F){let y=q.toLowerCase();if(C.has(y)){let O=this.getAttribute(y);k.call(this,y,F),A.call(this,y,O,F)}else k.call(this,y,F)});let z=w.prototype.removeAttribute;z&&(w.prototype.removeAttribute=function(q){let F=q.toLowerCase();if(C.has(F)){let y=this.getAttribute(F);z.call(this,F),A.call(this,F,y,null)}else z.call(this,F)});let J=w.prototype.toggleAttribute;J&&(w.prototype.toggleAttribute=function(q,F){let y=q.toLowerCase();if(C.has(y)){let O=this.getAttribute(y);J.call(this,y,F);let D=this.getAttribute(y);A.call(this,y,O,D)}else J.call(this,y,F)})},v=w=>{let C=Object.getPrototypeOf(w);if(C!==window.HTMLElement)return C===r?Object.setPrototypeOf(w,window.HTMLElement):v(C)},S=(w,C,A=!1)=>{Object.setPrototypeOf(w,C.elementClass.prototype),n.set(w,C),d=w;try{new C.elementClass}catch{v(C.elementClass),new C.elementClass}C.attributeChangedCallback&&C.observedAttributes.forEach(k=>{w.hasAttribute(k)&&C.attributeChangedCallback.call(w,k,null,w.getAttribute(k))}),A&&C.connectedCallback&&w.isConnected&&C.connectedCallback.call(w)},E=Element.prototype.attachShadow;Element.prototype.attachShadow=function(w){let C=E.apply(this,arguments);return w.customElements&&(C.customElements=w.customElements),C};let T=[document],N=(w,C,A=void 0)=>{let k=(A?Object.getPrototypeOf(A):w.prototype)[C];w.prototype[C]=function(){T.push(this);let z=k.apply(A||this,arguments);return z!==void 0&&l.set(z,this),T.pop(),z}};N(ShadowRoot,"createElement",document),N(ShadowRoot,"importNode",document),N(Element,"insertAdjacentHTML");let $=(w,C)=>{let A=Object.getOwnPropertyDescriptor(w.prototype,C);Object.defineProperty(w.prototype,C,{...A,set(k){T.push(this),A.set.call(this,k),T.pop()}})};if($(Element,"innerHTML"),$(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let w=new WeakMap,C=HTMLElement.prototype.attachInternals,A=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...q){let F=C.call(this,...q);return w.set(F,this),F},A.forEach(q=>{let F=window.ElementInternals.prototype,y=F[q];F[q]=function(...O){let D=w.get(this);if(n.get(D).formAssociated===!0)return y?.call(this,...O);throw new DOMException(`Failed to execute ${y} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class k extends Array{constructor(F){super(...F),this._elements=F}get value(){return this._elements.find(F=>F.checked===!0)?.value||""}}class z{constructor(F){let y=new Map;F.forEach((O,D)=>{let K=O.getAttribute("name"),Q=y.get(K)||[];this[+D]=O,Q.push(O),y.set(K,Q)}),this.length=F.length,y.forEach((O,D)=>{O&&(O.length===1?this[D]=O[0]:this[D]=new k(O))})}namedItem(F){return this[F]}}let J=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let q=J.get.call(this,[]),F=[];for(let y of q){let O=n.get(y);(!O||O.formAssociated===!0)&&F.push(y)}return new z(F)}})}}try{window.customElements.define("custom-element",null)}catch{let t=window.customElements.define;window.customElements.define=(e,i,n)=>{if(i!==null)try{t.bind(window.customElements)(e,i,n)}catch(a){console.info(e,i,n,a)}}}var Nn={};ot(Nn,{CSSResult:()=>$r,LitElement:()=>Ce,ReactiveElement:()=>ce,_$LE:()=>Jp,_$LH:()=>qp,adoptStyles:()=>li,css:()=>L,defaultConverter:()=>ci,getCompatibleStyle:()=>fo,html:()=>P,isServer:()=>Fh,noChange:()=>ke,notEqual:()=>wn,nothing:()=>U,render:()=>In,supportsAdoptingStyleSheets:()=>uo,svg:()=>Zp,unsafeCSS:()=>Se});var Zo=globalThis,Yo=Zo.ShadowRoot&&(Zo.ShadyCSS===void 0||Zo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,nl=Symbol(),il=new WeakMap,qo=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==nl)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Yo&&t===void 0){let i=e!==void 0&&e.length===1;i&&(t=il.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&il.set(e,t))}return t}toString(){return this.cssText}},al=r=>new qo(typeof r=="string"?r:r+"",void 0,nl);var vn=(r,t)=>{if(Yo)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let i=document.createElement("style"),n=Zo.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=e.cssText,r.appendChild(i)}},Xo=Yo?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let i of t.cssRules)e+=i.cssText;return al(e)})(r):r;var{is:Tp,defineProperty:Ip,getOwnPropertyDescriptor:Np,getOwnPropertyNames:Pp,getOwnPropertySymbols:$p,getPrototypeOf:Lp}=Object,Jo=globalThis,sl=Jo.trustedTypes,kp=sl?sl.emptyScript:"",Dp=Jo.reactiveElementPolyfillSupport,no=(r,t)=>r,ao={toAttribute(r,t){switch(t){case Boolean:r=r?kp:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},Qo=(r,t)=>!Tp(r,t),ll={attribute:!0,type:String,converter:ao,reflect:!1,hasChanged:Qo};Symbol.metadata??=Symbol("metadata"),Jo.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,e=ll){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(t,i,e);n!==void 0&&Ip(this.prototype,t,n)}}static getPropertyDescriptor(t,e,i){let{get:n,set:a}=Np(this.prototype,t)??{get(){return this[e]},set(s){this[e]=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)??ll}static _$Ei(){if(this.hasOwnProperty(no("elementProperties")))return;let t=Lp(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(no("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(no("properties"))){let e=this.properties,i=[...Pp(e),...$p(e)];for(let n of i)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[i,n]of e)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[e,i]of this.elementProperties){let n=this._$Eu(e,i);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let i=new Set(t.flat(1/0).reverse());for(let n of i)e.unshift(Xo(n))}else t!==void 0&&e.push(Xo(t));return e}static _$Eu(t,e){let i=e.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,e=this.constructor.elementProperties;for(let i of e.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 vn(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e){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:ao).toAttribute(e,i.type);this._$Em=t,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(t,e){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:ao;this._$Em=n,this[n]=s.fromAttribute(e,a.type),this._$Em=null}}requestUpdate(t,e,i,n=!1,a){if(t!==void 0){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??Qo)(n?a:this[t],e))return;this.C(t,e,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(e){Promise.reject(e)}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,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach(i=>i.hostUpdate?.()),this.update(e)):this._$ET()}catch(i){throw t=!1,this._$ET(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach(e=>e.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(e=>this._$EO(e,this[e])),this._$ET()}updated(t){}firstUpdated(t){}};rr.elementStyles=[],rr.shadowRootOptions={mode:"open"},rr[no("elementProperties")]=new Map,rr[no("finalized")]=new Map,Dp?.({ReactiveElement:rr}),(Jo.reactiveElementVersions??=[]).push("2.0.2");var Sn=globalThis,ti=Sn.trustedTypes,cl=ti?ti.createPolicy("lit-html",{createHTML:r=>r}):void 0,On="$lit$",xe=`lit$${(Math.random()+"").slice(9)}$`,Cn="?"+xe,Mp=`<${Cn}>`,nr=document,ei=()=>nr.createComment(""),lo=r=>r===null||typeof r!="object"&&typeof r!="function",ml=Array.isArray,yl=r=>ml(r)||typeof r?.[Symbol.iterator]=="function",xn=`[
|
|
3
|
-
\f\r]`,
|
|
4
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),ul=/'/g,fl=/"/g,gl=/^(?:script|style|textarea|title)$/i,bl=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),vl=bl(1),xl=bl(2),Gt=Symbol.for("lit-noChange"),mt=Symbol.for("lit-nothing"),hl=new WeakMap,ir=nr.createTreeWalker(nr,129);function Sl(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return cl!==void 0?cl.createHTML(t):t}var Ol=(r,t)=>{let e=r.length-1,i=[],n,a=t===2?"<svg>":"",s=so;for(let l=0;l<e;l++){let d=r[l],p,h,f=-1,m=0;for(;m<d.length&&(s.lastIndex=m,h=s.exec(d),h!==null);)m=s.lastIndex,s===so?h[1]==="!--"?s=dl:h[1]!==void 0?s=pl:h[2]!==void 0?(gl.test(h[2])&&(n=RegExp("</"+h[2],"g")),s=or):h[3]!==void 0&&(s=or):s===or?h[0]===">"?(s=n??so,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]==='"'?fl:ul):s===fl||s===ul?s=or:s===dl||s===pl?s=so:(s=or,n=void 0);let v=s===or&&r[l+1].startsWith("/>")?" ":"";a+=s===so?d+Mp:f>=0?(i.push(p),d.slice(0,f)+On+d.slice(f)+xe+v):d+xe+(f===-2?l:v)}return[Sl(r,a+(r[e]||"<?>")+(t===2?"</svg>":"")),i]},co=class r{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let a=0,s=0,l=t.length-1,d=this.parts,[p,h]=Ol(t,e);if(this.el=r.createElement(p,i),ir.currentNode=this.el.content,e===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(On)){let m=h[s++],v=n.getAttribute(f).split(xe),S=/([.?@])?(.*)/.exec(m);d.push({type:1,index:a,name:S[2],strings:v,ctor:S[1]==="."?oi:S[1]==="?"?ii:S[1]==="@"?ni:sr}),n.removeAttribute(f)}else f.startsWith(xe)&&(d.push({type:6,index:a}),n.removeAttribute(f));if(gl.test(n.tagName)){let f=n.textContent.split(xe),m=f.length-1;if(m>0){n.textContent=ti?ti.emptyScript:"";for(let v=0;v<m;v++)n.append(f[v],ei()),ir.nextNode(),d.push({type:2,index:++a});n.append(f[m],ei())}}}else if(n.nodeType===8)if(n.data===Cn)d.push({type:2,index:a});else{let f=-1;for(;(f=n.data.indexOf(xe,f+1))!==-1;)d.push({type:7,index:a}),f+=xe.length-1}a++}}static createElement(t,e){let i=nr.createElement("template");return i.innerHTML=t,i}};function ar(r,t,e=r,i){if(t===Gt)return t;let n=i!==void 0?e._$Co?.[i]:e._$Cl,a=lo(t)?void 0:t._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(r),n._$AT(r,e,i)),i!==void 0?(e._$Co??=[])[i]=n:e._$Cl=n),n!==void 0&&(t=ar(r,n._$AS(r,t.values),n,i)),t}var ri=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:i}=this._$AD,n=(t?.creationScope??nr).importNode(e,!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 po(a,a.nextSibling,this,t):d.type===1?p=new d.ctor(a,d.name,d.strings,this,t):d.type===6&&(p=new ai(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 e=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},po=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,n){this.type=2,this._$AH=mt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ar(this,t,e),lo(t)?t===mt||t==null||t===""?(this._$AH!==mt&&this._$AR(),this._$AH=mt):t!==this._$AH&&t!==Gt&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):yl(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&&lo(this._$AH)?this._$AA.nextSibling.data=t:this.$(nr.createTextNode(t)),this._$AH=t}g(t){let{values:e,_$litType$:i}=t,n=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=co.createElement(Sl(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(e);else{let a=new ri(n,this),s=a.u(this.options);a.p(e),this.$(s),this._$AH=a}}_$AC(t){let e=hl.get(t.strings);return e===void 0&&hl.set(t.strings,e=new co(t)),e}T(t){ml(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,i,n=0;for(let a of t)n===e.length?e.push(i=new r(this.k(ei()),this.k(ei()),this,this.options)):i=e[n],i._$AI(a),n++;n<e.length&&(this._$AR(i&&i._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);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,e,i,n,a){this.type=1,this._$AH=mt,this._$AN=void 0,this.element=t,this.name=e,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,e=this,i,n){let a=this.strings,s=!1;if(a===void 0)t=ar(this,t,e,0),s=!lo(t)||t!==this._$AH&&t!==Gt,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],e,d),p===Gt&&(p=this._$AH[d]),s||=!lo(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??"")}},oi=class extends sr{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===mt?void 0:t}},ii=class extends sr{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==mt)}},ni=class extends sr{constructor(t,e,i,n,a){super(t,e,i,n,a),this.type=5}_$AI(t,e=this){if((t=ar(this,t,e,0)??mt)===Gt)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)}},ai=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ar(this,t)}},Cl={j:On,P:xe,A:Cn,C:1,M:Ol,L:ri,R:yl,V:ar,D:po,I:sr,H:ii,N:ni,U:oi,B:ai},Fp=Sn.litHtmlPolyfillSupport;Fp?.(co,po),(Sn.litHtmlVersions??=[]).push("3.1.0");var si=globalThis,uo=si.ShadowRoot&&(si.ShadyCSS===void 0||si.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,En=Symbol(),El=new WeakMap,$r=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==En)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(uo&&t===void 0){let i=e!==void 0&&e.length===1;i&&(t=El.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&El.set(e,t))}return t}toString(){return this.cssText}},Se=r=>new $r(typeof r=="string"?r:r+"",void 0,En),L=(r,...t)=>{let e=r.length===1?r[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)+r[a+1],r[0]);return new $r(e,r,En)},li=(r,t)=>{if(uo)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let i=document.createElement("style"),n=si.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=e.cssText,r.appendChild(i)}},fo=uo?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let i of t.cssRules)e+=i.cssText;return Se(e)})(r):r;var{is:Bp,defineProperty:Up,getOwnPropertyDescriptor:Wp,getOwnPropertyNames:Hp,getOwnPropertySymbols:zp,getPrototypeOf:Vp}=Object,di=globalThis,wl=di.trustedTypes,jp=wl?wl.emptyScript:"",Gp=di.reactiveElementPolyfillSupport,ho=(r,t)=>r,ci={toAttribute(r,t){switch(t){case Boolean:r=r?jp:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},wn=(r,t)=>!Bp(r,t),Al={attribute:!0,type:String,converter:ci,reflect:!1,hasChanged:wn};Symbol.metadata??=Symbol("metadata"),di.litPropertyMetadata??=new WeakMap;var ce=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Al){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(t,i,e);n!==void 0&&Up(this.prototype,t,n)}}static getPropertyDescriptor(t,e,i){let{get:n,set:a}=Wp(this.prototype,t)??{get(){return this[e]},set(s){this[e]=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)??Al}static _$Ei(){if(this.hasOwnProperty(ho("elementProperties")))return;let t=Vp(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(ho("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ho("properties"))){let e=this.properties,i=[...Hp(e),...zp(e)];for(let n of i)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[i,n]of e)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[e,i]of this.elementProperties){let n=this._$Eu(e,i);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let i=new Set(t.flat(1/0).reverse());for(let n of i)e.unshift(fo(n))}else t!==void 0&&e.push(fo(t));return e}static _$Eu(t,e){let i=e.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,e=this.constructor.elementProperties;for(let i of e.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 li(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e){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:ci).toAttribute(e,i.type);this._$Em=t,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(t,e){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:ci;this._$Em=n,this[n]=s.fromAttribute(e,a.type),this._$Em=null}}requestUpdate(t,e,i,n=!1,a){if(t!==void 0){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??wn)(n?a:this[t],e))return;this.C(t,e,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(e){Promise.reject(e)}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,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach(i=>i.hostUpdate?.()),this.update(e)):this._$ET()}catch(i){throw t=!1,this._$ET(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach(e=>e.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(e=>this._$EO(e,this[e])),this._$ET()}updated(t){}firstUpdated(t){}};ce.elementStyles=[],ce.shadowRootOptions={mode:"open"},ce[ho("elementProperties")]=new Map,ce[ho("finalized")]=new Map,Gp?.({ReactiveElement:ce}),(di.reactiveElementVersions??=[]).push("2.0.2");var Rn=globalThis,pi=Rn.trustedTypes,Rl=pi?pi.createPolicy("lit-html",{createHTML:r=>r}):void 0,_n="$lit$",Oe=`lit$${(Math.random()+"").slice(9)}$`,Tn="?"+Oe,Kp=`<${Tn}>`,dr=document,yo=()=>dr.createComment(""),go=r=>r===null||typeof r!="object"&&typeof r!="function",$l=Array.isArray,Ll=r=>$l(r)||typeof r?.[Symbol.iterator]=="function",An=`[
|
|
5
|
-
\f\r]`,
|
|
6
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Il=/'/g,Nl=/"/g,kl=/^(?:script|style|textarea|title)$/i,Dl=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),P=Dl(1),Zp=Dl(2),ke=Symbol.for("lit-noChange"),U=Symbol.for("lit-nothing"),Pl=new WeakMap,cr=dr.createTreeWalker(dr,129);function Ml(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Rl!==void 0?Rl.createHTML(t):t}var Fl=(r,t)=>{let e=r.length-1,i=[],n,a=t===2?"<svg>":"",s=mo;for(let l=0;l<e;l++){let d=r[l],p,h,f=-1,m=0;for(;m<d.length&&(s.lastIndex=m,h=s.exec(d),h!==null);)m=s.lastIndex,s===mo?h[1]==="!--"?s=_l:h[1]!==void 0?s=Tl:h[2]!==void 0?(kl.test(h[2])&&(n=RegExp("</"+h[2],"g")),s=lr):h[3]!==void 0&&(s=lr):s===lr?h[0]===">"?(s=n??mo,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]==='"'?Nl:Il):s===Nl||s===Il?s=lr:s===_l||s===Tl?s=mo:(s=lr,n=void 0);let v=s===lr&&r[l+1].startsWith("/>")?" ":"";a+=s===mo?d+Kp:f>=0?(i.push(p),d.slice(0,f)+_n+d.slice(f)+Oe+v):d+Oe+(f===-2?l:v)}return[Ml(r,a+(r[e]||"<?>")+(t===2?"</svg>":"")),i]},bo=class r{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let a=0,s=0,l=t.length-1,d=this.parts,[p,h]=Fl(t,e);if(this.el=r.createElement(p,i),cr.currentNode=this.el.content,e===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(_n)){let m=h[s++],v=n.getAttribute(f).split(Oe),S=/([.?@])?(.*)/.exec(m);d.push({type:1,index:a,name:S[2],strings:v,ctor:S[1]==="."?fi:S[1]==="?"?hi:S[1]==="@"?mi:ur}),n.removeAttribute(f)}else f.startsWith(Oe)&&(d.push({type:6,index:a}),n.removeAttribute(f));if(kl.test(n.tagName)){let f=n.textContent.split(Oe),m=f.length-1;if(m>0){n.textContent=pi?pi.emptyScript:"";for(let v=0;v<m;v++)n.append(f[v],yo()),cr.nextNode(),d.push({type:2,index:++a});n.append(f[m],yo())}}}else if(n.nodeType===8)if(n.data===Tn)d.push({type:2,index:a});else{let f=-1;for(;(f=n.data.indexOf(Oe,f+1))!==-1;)d.push({type:7,index:a}),f+=Oe.length-1}a++}}static createElement(t,e){let i=dr.createElement("template");return i.innerHTML=t,i}};function pr(r,t,e=r,i){if(t===ke)return t;let n=i!==void 0?e._$Co?.[i]:e._$Cl,a=go(t)?void 0:t._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(r),n._$AT(r,e,i)),i!==void 0?(e._$Co??=[])[i]=n:e._$Cl=n),n!==void 0&&(t=pr(r,n._$AS(r,t.values),n,i)),t}var ui=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:i}=this._$AD,n=(t?.creationScope??dr).importNode(e,!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 Lr(a,a.nextSibling,this,t):d.type===1?p=new d.ctor(a,d.name,d.strings,this,t):d.type===6&&(p=new yi(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 e=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},Lr=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,n){this.type=2,this._$AH=U,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=pr(this,t,e),go(t)?t===U||t==null||t===""?(this._$AH!==U&&this._$AR(),this._$AH=U):t!==this._$AH&&t!==ke&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Ll(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!==U&&go(this._$AH)?this._$AA.nextSibling.data=t:this.$(dr.createTextNode(t)),this._$AH=t}g(t){let{values:e,_$litType$:i}=t,n=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=bo.createElement(Ml(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(e);else{let a=new ui(n,this),s=a.u(this.options);a.p(e),this.$(s),this._$AH=a}}_$AC(t){let e=Pl.get(t.strings);return e===void 0&&Pl.set(t.strings,e=new bo(t)),e}T(t){$l(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,i,n=0;for(let a of t)n===e.length?e.push(i=new r(this.k(yo()),this.k(yo()),this,this.options)):i=e[n],i._$AI(a),n++;n<e.length&&(this._$AR(i&&i._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);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,e,i,n,a){this.type=1,this._$AH=U,this._$AN=void 0,this.element=t,this.name=e,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=U}_$AI(t,e=this,i,n){let a=this.strings,s=!1;if(a===void 0)t=pr(this,t,e,0),s=!go(t)||t!==this._$AH&&t!==ke,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],e,d),p===ke&&(p=this._$AH[d]),s||=!go(p)||p!==this._$AH[d],p===U?t=U:t!==U&&(t+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!n&&this.O(t)}O(t){t===U?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},fi=class extends ur{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===U?void 0:t}},hi=class extends ur{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==U)}},mi=class extends ur{constructor(t,e,i,n,a){super(t,e,i,n,a),this.type=5}_$AI(t,e=this){if((t=pr(this,t,e,0)??U)===ke)return;let i=this._$AH,n=t===U&&i!==U||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,a=t!==U&&(i===U||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)}},yi=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){pr(this,t)}},qp={j:_n,P:Oe,A:Tn,C:1,M:Fl,L:ui,R:Ll,V:pr,D:Lr,I:ur,H:hi,N:mi,U:fi,B:yi},Yp=Rn.litHtmlPolyfillSupport;Yp?.(bo,Lr),(Rn.litHtmlVersions??=[]).push("3.1.0");var In=(r,t,e)=>{let i=e?.renderBefore??t,n=i._$litPart$;if(n===void 0){let a=e?.renderBefore??null;i._$litPart$=n=new Lr(t.insertBefore(yo(),a),a,void 0,e??{})}return n._$AI(r),n};var Ce=class extends ce{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 e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=In(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ke}};Ce._$litElement$=!0,Ce.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Ce});var Xp=globalThis.litElementPolyfillSupport;Xp?.({LitElement:Ce});var Jp={_$AK:(r,t,e)=>{r._$AK(t,e)},_$AL:r=>r._$AL};(globalThis.litElementVersions??=[]).push("4.0.2");var Fh=!1;var $n={};ot($n,{customElement:()=>Qp,eventOptions:()=>Ee,property:()=>g,query:()=>Y,queryAll:()=>ru,queryAssignedElements:()=>Pn,queryAssignedNodes:()=>vo,queryAsync:()=>ou,standardProperty:()=>Bl,state:()=>W});var Qp=r=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(r,t)}):customElements.define(r,t)};var tu={attribute:!0,type:String,converter:ao,reflect:!1,hasChanged:Qo},Bl=(r=tu,t,e)=>{let{kind:i,metadata:n}=e,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),a.set(e.name,r),i==="accessor"){let{name:s}=e;return{set(l){let d=t.get.call(this);t.set.call(this,l),this.requestUpdate(s,d,r)},init(l){return l!==void 0&&this.C(s,void 0,r),l}}}if(i==="setter"){let{name:s}=e;return function(l){let d=this[s];t.call(this,l),this.requestUpdate(s,d,r)}}throw Error("Unsupported decorator location: "+i)};function g(r){return(t,e)=>typeof e=="object"?Bl(r,t,e):((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})(r,t,e)}function W(r){return g({...r,state:!0,attribute:!1})}function Ee(r){return(t,e)=>{let i=typeof t=="function"?t:t[e];Object.assign(i,r)}}var te=(r,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(r,t,e),e);function Y(r,t){return(e,i,n)=>{let a=s=>s.renderRoot?.querySelector(r)??null;if(t){let{get:s,set:l}=typeof i=="object"?e:n??(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return te(e,i,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return te(e,i,{get(){return a(this)}})}}var eu;function ru(r){return(t,e)=>te(t,e,{get(){return(this.renderRoot??(eu??=document.createDocumentFragment())).querySelectorAll(r)}})}function ou(r){return(t,e)=>te(t,e,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}function Pn(r){return(t,e)=>{let{slot:i,selector:n}=r??{},a="slot"+(i?`[name=${i}]`:":not([name])");return te(t,e,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(r)??[];return n===void 0?l:l.filter(d=>d.matches(n))}})}}function vo(r){return(t,e)=>{let{slot:i}=r??{},n="slot"+(i?`[name=${i}]`:":not([name])");return te(t,e,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(r)??[]}})}}var kn={};ot(kn,{repeat:()=>Ln});var De={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Me=r=>(...t)=>({_$litDirective$:r,values:t}),de=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var{D:iu}=Cl;var Ul=()=>document.createComment(""),kr=(r,t,e)=>{let i=r._$AA.parentNode,n=t===void 0?r._$AB:t._$AA;if(e===void 0){let a=i.insertBefore(Ul(),n),s=i.insertBefore(Ul(),n);e=new iu(a,s,r,r.options)}else{let a=e._$AB.nextSibling,s=e._$AM,l=s!==r;if(l){let d;e._$AQ?.(r),e._$AM=r,e._$AP!==void 0&&(d=r._$AU)!==s._$AU&&e._$AP(d)}if(a!==n||l){let d=e._$AA;for(;d!==a;){let p=d.nextSibling;i.insertBefore(d,n),d=p}}}return e},Fe=(r,t,e=r)=>(r._$AI(t,e),r),nu={},Wl=(r,t=nu)=>r._$AH=t,Hl=r=>r._$AH,gi=r=>{r._$AP?.(!1,!0);let t=r._$AA,e=r._$AB.nextSibling;for(;t!==e;){let i=t.nextSibling;t.remove(),t=i}};var zl=(r,t,e)=>{let i=new Map;for(let n=t;n<=e;n++)i.set(r[n],n);return i},Ln=Me(class extends de{constructor(r){if(super(r),r.type!==De.CHILD)throw Error("repeat() can only be used in text expressions")}ht(r,t,e){let i;e===void 0?e=t:t!==void 0&&(i=t);let n=[],a=[],s=0;for(let l of r)n[s]=i?i(l,s):s,a[s]=e(l,s),s++;return{values:a,keys:n}}render(r,t,e){return this.ht(r,t,e).values}update(r,[t,e,i]){let n=Hl(r),{values:a,keys:s}=this.ht(t,e,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,S=a.length-1;for(;f<=m&&v<=S;)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[S])d[S]=Fe(n[m],a[S]),m--,S--;else if(l[f]===s[S])d[S]=Fe(n[f],a[S]),kr(r,d[S+1],n[f]),f++,S--;else if(l[m]===s[v])d[v]=Fe(n[m],a[v]),kr(r,n[f],n[m]),m--,v++;else if(p===void 0&&(p=zl(s,v,S),h=zl(l,f,m)),p.has(l[f]))if(p.has(l[m])){let E=h.get(s[v]),T=E!==void 0?n[E]:null;if(T===null){let N=kr(r,n[f]);Fe(N,a[v]),d[v]=N}else d[v]=Fe(T,a[v]),kr(r,n[f],T),n[E]=null;v++}else gi(n[m]),m--;else gi(n[f]),f++;for(;v<=S;){let E=kr(r,d[S+1]);Fe(E,a[v]),d[v++]=E}for(;f<=m;){let E=n[f++];E!==null&&gi(E)}return this.dt=s,Wl(r,d),Gt}});var Dn={};ot(Dn,{classMap:()=>_t});var _t=Me(class extends de{constructor(r){if(super(r),r.type!==De.ATTRIBUTE||r.name!=="class"||r.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(t=>r[t]).join(" ")+" "}update(r,[t]){if(this.it===void 0){this.it=new Set,r.strings!==void 0&&(this.st=new Set(r.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 e=r.element.classList;for(let i of this.it)i in t||(e.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?(e.add(i),this.it.add(i)):(e.remove(i),this.it.delete(i)))}return Gt}});var Mn={};ot(Mn,{styleMap:()=>su});var Vl="important",au=" !"+Vl,su=Me(class extends de{constructor(r){if(super(r),r.type!==De.ATTRIBUTE||r.name!=="style"||r.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce((t,e)=>{let i=r[e];return i==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(r,[t]){let{style:e}=r.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("-")?e.removeProperty(i):e[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(au);i.includes("-")||a?e.setProperty(i,a?n.slice(0,-11):n,a?Vl:""):e[i]=n}}return Gt}});var Bn={};ot(Bn,{UnsafeHTMLDirective:()=>Dr,unsafeHTML:()=>Fn});var Dr=class extends de{constructor(t){if(super(t),this.et=mt,t.type!==De.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===Gt)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 e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}};Dr.directiveName="unsafeHTML",Dr.resultType=1;var Fn=Me(Dr);var jn={};ot(jn,{CacheRegistry:()=>pe,ClearCacheEvent:()=>xo});var Wn={};ot(Wn,{CancelablePromise:()=>Mr,CanceledPromiseError:()=>fr,cancelable:()=>Un});var fr=class extends Error{constructor(t,e,i){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=i}},Mr=class extends Promise{constructor(t){super((e,i)=>t(n=>{this.isCanceled?i(new fr("Promise has been canceled",n)):e(n)},n=>{this.isCanceled?i(new fr("Promise has been canceled",void 0,n)):i(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Un=r=>new Mr((t,e)=>r.then(t).catch(e));var Vn={};ot(Vn,{FtNotificationEvent:()=>Ft,PostResizeEvent:()=>zn,PreResizeEvent:()=>Hn,WithEventBus:()=>hr,withEventBus:()=>jl});var Ft=class extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}},Hn=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},zn=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};function jl(r,t){return class extends r{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(e,i,n){this.eventBus.addEventListener(e,i,n)}dispatchEvent(e){return this.eventBus.dispatchEvent(e)}removeEventListener(e,i,n){this.eventBus.removeEventListener(e,i,n)}}}var hr=class extends jl(Object){};var xo=class extends CustomEvent{constructor(t){super("clear-cache",{detail:{clearedKeys:t}})}},pe=class extends hr{constructor(){super(...arguments),this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(t=!0){let e=[];for(let i in this.content)this.clear(i,!1)!=null&&e.push(i);t&&e.length>0&&this.dispatchEvent(new xo(e))}clear(t,e=!0){if(!this.finalContent.has(t))return this.forceClear(t),e&&this.dispatchEvent(new xo([t])),t}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof Mr&&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,e){this.forceClear(t),this.register(t,async()=>e),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,async()=>e),this.content[t]=e}async get(t,e,i){if(this.content[t]===void 0){if(e=e??this.loaders[t],e==null)throw new Error("Unknown cache key "+t);let n=Un(e());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 Gn={};ot(Gn,{ClusteringHelper:()=>So});var So=class r{constructor(t,e,i,n){this.allResults=t,this.selectedResult=e,this.clusteringMetadata=i,this.metadataDescriptors=n}static extractResultMetadata(t){var e,i,n,a,s;let l=((a=(i=(e=t.result)===null||e===void 0?void 0:e.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?r.flattenMetadata(l,t.hierarchicalValueTruncatingLevel,t.dateFormatter):r.flattenMetadata(l.find(d=>d.key===t.key),t.hierarchicalValueTruncatingLevel,t.dateFormatter)}static flattenMetadata(t,e,i){if(Array.isArray(t))return t.map(a=>r.flattenMetadata(a,e,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(" > ")),e&&e>1&&l.length>=e?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,e,i="No value",n,a){var s,l;let d=r.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=>r.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(S=>S.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,e))}compareMetadata(t,e,i,n){if(t==null)return-1;if(e==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(e,n,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(t){return this.metadataDescriptors.find(e=>t==e.key)}findBestResultForMetadataValue(t,e){let i=this.allResults.filter(d=>{var p;return((p=r.extractResultMetadata({result:d,key:t}))===null||p===void 0?void 0:p.value)==e}),a=[...r.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,e){return r.extractResultMetadata({result:t}).filter(i=>e.some(n=>n.key===i.key&&n.value===i.value)).length}};var Kn={};ot(Kn,{Debouncer:()=>lt});var lt=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((e,i)=>{this.resolvePromise=e,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,e;let i=[...this.callbacks];this.callbacks=[];let n=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,a=(e=this.resolvePromise)!==null&&e!==void 0?e:()=>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 Xn={};ot(Xn,{customElement:()=>X,isNumber:()=>Kl,jsonProperty:()=>ue,optionalNumberProperty:()=>uu});var Yn={};ot(Yn,{dateReviver:()=>lu,deepEqual:()=>ee,delay:()=>bi,eventPathContainsMatchingElement:()=>du,flatDeep:()=>Gl,getComposedPathTo:()=>qn,hasChanged:()=>mr,last:()=>pu,minmax:()=>Co,parseDate:()=>vi,unslotText:()=>xi,waitFor:()=>Oo,waitUntil:()=>Zn});var bi=r=>new Promise(t=>setTimeout(t,r));async function Zn(r,t=10,e=2e4){await Oo(async()=>await r()||void 0,t,e)}async function Oo(r,t=10,e=2e4){let i=await r(),n,a;for(n=a=performance.now();i==null&&(!e||a-n<e);)await bi(t),i=await r(),a=performance.now();if(i==null)throw new Error("Timeout exceeded");return i}function Gl(r,t){return r.flatMap(e=>[e,...Gl(t(e),t)])}function lu(...r){return function(t,e){return r.includes(t)?vi(e):e}}function vi(r){return r.match(/^\d{4}-\d{2}-\d{2}$/)&&(r=r.replace(/-/g,"/")),r=r.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(t,e,i,n)=>e+i+":"+n),new Date(r)}function cu(r,t){if(r===t)return!0;if(r&&t&&typeof r=="object"&&typeof t=="object"){if(r.constructor!==t.constructor)return!1;var e,i,n;if(Array.isArray(r)){if(e=r.length,e!=t.length)return!1;for(i=e;i--!==0;)if(!ee(r[i],t[i]))return!1;return!0}if(r instanceof Map&&t instanceof Map){if(r.size!==t.size)return!1;for(i of r.entries())if(!t.has(i[0]))return!1;for(i of r.entries())if(!ee(i[1],t.get(i[0])))return!1;return!0}if(r instanceof Set&&t instanceof Set){if(r.size!==t.size)return!1;for(i of r.entries())if(!t.has(i[0]))return!1;return!0}if(r.constructor===RegExp)return r.source===t.source&&r.flags===t.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===t.valueOf();let a=s=>Object.keys(s).filter(l=>s[l]!=null);if(n=a(r),e=n.length,e!==a(t).length)return!1;for(i=e;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(i=e;i--!==0;){let s=n[i];if(!ee(r[s],t[s]))return!1}return!0}return r!==r&&t!==t||r==null&&t==null}function ee(r,t){try{return cu(r,t)}catch{return!1}}function mr(r,t){return!ee(r,t)}function du(r,t,e=window.document.body){if(t.length>0){let i=r.composedPath();for(let n of i){if(n===e)return!1;if(n.matches&&t.some(a=>n.matches(a)))return!0}}return!1}function Co(r,t,e){return Math.min(Math.max(r,t),e)}function pu(r){return r[r.length-1]}function xi(r){return r instanceof HTMLSlotElement?r.assignedNodes().map(t=>xi(t)).join(""):r?.textContent||""}function qn(r){let t=[],e=i=>{i.stopPropagation(),t=i.composedPath()};return r.addEventListener("get-composed-path",e),r.dispatchEvent(new Event("get-composed-path",{composed:!0})),r.removeEventListener("get-composed-path",e),t}var X=r=>t=>{window.customElements.get(r)||window.customElements.define(r,t)};function ue(r,t){let e=()=>JSON.parse(JSON.stringify(r));return g({type:Object,converter:{fromAttribute:i=>{if(i==null)return e();try{return JSON.parse(i)}catch{return e()}},toAttribute:i=>JSON.stringify(i)},hasChanged:mr,...t??{}})}function uu(r){return g({type:Object,converter:{fromAttribute:t=>{if(t!=null)return Kl(t)?+t:void 0},toAttribute:t=>t==null?void 0:""+t},...r??{}})}function Kl(r){return!isNaN(parseFloat(r))}var Aa={};ot(Aa,{designSystemVariables:()=>_});var wa={};ot(wa,{DesignSystemFamily:()=>yr,DesignSystemSize:()=>Ae,FtCssVariableFactory:()=>o,badge:()=>bu,banner:()=>gu,button:()=>b,chart:()=>Lu,checkbox:()=>Mu,chip:()=>mu,chipChoice:()=>hu,collapsible:()=>Pu,comboboxMultiSelect:()=>Iu,comboboxSingleSelect:()=>Tu,drawer:()=>Eu,floatingMenu:()=>_u,foundation:()=>c,link:()=>yu,modal:()=>Cu,notice:()=>Du,notification:()=>Uu,pageDesigner:()=>ku,pageFooter:()=>Su,pageHeader:()=>xu,pageLayout:()=>Ou,popover:()=>Nu,radio:()=>Bu,reorderableList:()=>Hu,resolveFamilyClass:()=>Ca,resolveSizeClass:()=>Ea,semantic:()=>u,setVariable:()=>x,switch_:()=>$u,tabs:()=>wu,textArea:()=>Ru,textInput:()=>Au,titleBreadcrumb:()=>vu,toggle:()=>Fu,tooltip:()=>Wu,typographies:()=>Eo,typographyBody1Medium:()=>oa,typographyBody1Regular:()=>ra,typographyBody1Semibold:()=>ia,typographyBody2Medium:()=>aa,typographyBody2MediumUnderline:()=>Zl,typographyBody2Regular:()=>na,typographyBody2Semibold:()=>sa,typographyCaption1Bold:()=>ya,typographyCaption1Medium:()=>ha,typographyCaption1Semibold:()=>ma,typographyCaption2Bold:()=>va,typographyCaption2Medium:()=>ga,typographyCaption2Semibold:()=>ba,typographyCaption3Bold:()=>Oa,typographyCaption3Medium:()=>xa,typographyCaption3Semibold:()=>Sa,typographyDisplay:()=>Jn,typographyLabel1Bold:()=>da,typographyLabel1Medium:()=>la,typographyLabel1Semibold:()=>ca,typographyLabel2Bold:()=>fa,typographyLabel2Medium:()=>pa,typographyLabel2Semibold:()=>ua,typographyTitle1:()=>Qn,typographyTitle2:()=>ta,typographyTitle3:()=>ea,typographyVariants:()=>fu});var we=r=>typeof r=="string"?Se(r):r,o=class{static create(t,e,i,n){let a=l=>we(l??n),s=L`var(${we(t)}, ${a(n)})`;return s.name=t,s.description=e,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>L`var(${we(t)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(t,e,i,n){let a=l=>i.get(l??n),s=L`var(${we(t)}, ${a(n)})`;return s.name=t,s.description=e,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>L`var(${we(t)}, ${a(l)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(t,e){let i=a=>t.fallbackVariable?t.fallbackVariable.get(a??t.defaultValue):we(a??t.lastResortDefaultValue()),n=L`var(${we(t.name)}, ${i(t.defaultValue)})`;return n.name=t.name,n.category=t.category,n.fallbackVariable=t.fallbackVariable,n.defaultValue=t.defaultValue,n.context=e,n.defaultCssValue=i,n.get=a=>L`var(${we(t.name)}, ${i(a)})`,n.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>t.lastResortDefaultValue(),n}};function x(r,t){return we(`${r.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)")},Jn={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")},Qn={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")},ta={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")},ea={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")},ra={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")},oa={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")},ia={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")},na={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")},aa={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")},Zl={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")},sa={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")},la={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")},ca={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")},da={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")},pa={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")},ua={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")},fa={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")},ha={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")},ma={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")},ya={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")},ga={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")},ba={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")},va={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")},xa={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")},Sa={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")},Oa={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")},Eo={display:Jn,"title-1":Qn,"title-2":ta,"title-3":ea,"body-1-regular":ra,"body-1-medium":oa,"body-1-semibold":ia,"body-2-regular":na,"body-2-medium":aa,"body-2-medium-underline":Zl,"body-2-semibold":sa,"label-1-medium":la,"label-1-semibold":ca,"label-1-bold":da,"label-2-medium":pa,"label-2-semibold":ua,"label-2-bold":fa,"caption-1-medium":ha,"caption-1-semibold":ma,"caption-1-bold":ya,"caption-2-medium":ga,"caption-2-semibold":ba,"caption-2-bold":va,"caption-3-medium":xa,"caption-3-semibold":Sa,"caption-3-bold":Oa},fu=["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 hu={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 mu={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 yu={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 gu={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 bu={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 vu={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 xu={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 Su={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 Ou={contentHorizontalPadding:o.extend("--ft-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:o.extend("--ft-page-layout-content-vertical-padding","",c.spacing6)};var Cu={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 Eu={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 wu={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 Au={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 Ru={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 _u={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 Tu={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 Iu={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 Nu={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 Pu={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 $u={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 Lu={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 ku={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 Du={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 Mu={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 Fu={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 Bu={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 Uu={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 Wu={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 Hu={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(r){r.brand="brand",r.neutral="neutral",r.info="info",r.success="success",r.warning="warning",r.error="error"})(yr||(yr={}));var Ae;(function(r){r.large="large",r.medium="medium",r.small="small"})(Ae||(Ae={}));function Ca(r){return`ftds--family-${r}`}function Ea(r){return`ftds--size-${r}`}var _={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 Ha={};ot(Ha,{computeFlipOffsetPosition:()=>Wa,computeOffsetPosition:()=>Ua});var Yl=["top","right","bottom","left"],ql=["start","end"],Ra=Yl.reduce((r,t)=>r.concat(t,t+"-"+ql[0],t+"-"+ql[1]),[]),Ro=Math.min,Be=Math.max,_o=Math.round;var Re=r=>({x:r,y:r}),zu={left:"right",right:"left",bottom:"top",top:"bottom"},Vu={start:"end",end:"start"};function _a(r,t,e){return Be(r,Ro(t,e))}function Fr(r,t){return typeof r=="function"?r(t):r}function fe(r){return r.split("-")[0]}function he(r){return r.split("-")[1]}function Ta(r){return r==="x"?"y":"x"}function Ia(r){return r==="y"?"height":"width"}function To(r){return["top","bottom"].includes(fe(r))?"y":"x"}function Na(r){return Ta(To(r))}function Pa(r,t,e){e===void 0&&(e=!1);let i=he(r),n=Na(r),a=Ia(n),s=n==="x"?i===(e?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Ao(s)),[s,Ao(s)]}function Xl(r){let t=Ao(r);return[wo(r),t,wo(t)]}function wo(r){return r.replace(/start|end/g,t=>Vu[t])}function ju(r,t,e){let i=["left","right"],n=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(r){case"top":case"bottom":return e?t?n:i:t?i:n;case"left":case"right":return t?a:s;default:return[]}}function Jl(r,t,e,i){let n=he(r),a=ju(fe(r),e==="start",i);return n&&(a=a.map(s=>s+"-"+n),t&&(a=a.concat(a.map(wo)))),a}function Ao(r){return r.replace(/left|right|bottom|top/g,t=>zu[t])}function Gu(r){return{top:0,right:0,bottom:0,left:0,...r}}function Ql(r){return typeof r!="number"?Gu(r):{top:r,right:r,bottom:r,left:r}}function gr(r){return{...r,top:r.y,left:r.x,right:r.x+r.width,bottom:r.y+r.height}}function tc(r,t,e){let{reference:i,floating:n}=r,a=To(t),s=Na(t),l=Ia(s),d=fe(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(he(t)){case"start":v[s]-=m*(e&&p?-1:1);break;case"end":v[s]+=m*(e&&p?-1:1);break}return v}var ec=async(r,t,e)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=e,l=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t)),p=await s.getElementRects({reference:r,floating:t,strategy:n}),{x:h,y:f}=tc(p,i,d),m=i,v={},S=0;for(let E=0;E<l.length;E++){let{name:T,fn:N}=l[E],{x:$,y:w,data:C,reset:A}=await N({x:h,y:f,initialPlacement:i,placement:m,strategy:n,middlewareData:v,rects:p,platform:s,elements:{reference:r,floating:t}});if(h=$??h,f=w??f,v={...v,[T]:{...v[T],...C}},A&&S<=50){S++,typeof A=="object"&&(A.placement&&(m=A.placement),A.rects&&(p=A.rects===!0?await s.getElementRects({reference:r,floating:t,strategy:n}):A.rects),{x:h,y:f}=tc(p,m,d)),E=-1;continue}}return{x:h,y:f,placement:m,strategy:n,middlewareData:v}};async function Si(r,t){var e;t===void 0&&(t={});let{x:i,y:n,platform:a,rects:s,elements:l,strategy:d}=r,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:f="floating",altBoundary:m=!1,padding:v=0}=Fr(t,r),S=Ql(v),T=l[m?f==="floating"?"reference":"floating":f],N=gr(await a.getClippingRect({element:(e=await(a.isElement==null?void 0:a.isElement(T)))==null||e?T:T.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:h,strategy:d})),$=f==="floating"?{...s.floating,x:i,y:n}:s.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),C=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=gr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:$,offsetParent:w,strategy:d}):$);return{top:(N.top-A.top+S.top)/C.y,bottom:(A.bottom-N.bottom+S.bottom)/C.y,left:(N.left-A.left+S.left)/C.x,right:(A.right-N.right+S.right)/C.x}}function Ku(r,t,e){return(r?[...e.filter(n=>he(n)===r),...e.filter(n=>he(n)!==r)]:e.filter(n=>fe(n)===n)).filter(n=>r?he(n)===r||(t?wo(n)!==n:!1):!0)}var $a=function(r){return r===void 0&&(r={}),{name:"autoPlacement",options:r,async fn(t){var e,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,...S}=Fr(r,t),E=f!==void 0||m===Ra?Ku(f||null,v,m):m,T=await Si(t,S),N=((e=s.autoPlacement)==null?void 0:e.index)||0,$=E[N];if($==null)return{};let w=Pa($,a,await(d.isRTL==null?void 0:d.isRTL(p.floating)));if(l!==$)return{reset:{placement:E[0]}};let C=[T[fe($)],T[w[0]],T[w[1]]],A=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:$,overflows:C}],k=E[N+1];if(k)return{data:{index:N+1,overflows:A},reset:{placement:k}};let z=A.map(F=>{let y=he(F.placement);return[F.placement,y&&h?F.overflows.slice(0,2).reduce((O,D)=>O+D,0):F.overflows[0],F.overflows]}).sort((F,y)=>F[1]-y[1]),q=((n=z.filter(F=>F[2].slice(0,he(F[0])?2:3).every(y=>y<=0))[0])==null?void 0:n[0])||z[0][0];return q!==l?{data:{index:N+1,overflows:A},reset:{placement:q}}:{}}}},La=function(r){return r===void 0&&(r={}),{name:"flip",options:r,async fn(t){var e,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:S="none",flipAlignment:E=!0,...T}=Fr(r,t);if((e=a.arrow)!=null&&e.alignmentOffset)return{};let N=fe(n),$=fe(l)===l,w=await(d.isRTL==null?void 0:d.isRTL(p.floating)),C=m||($||!E?[Ao(l)]:Xl(l));!m&&S!=="none"&&C.push(...Jl(l,E,S,w));let A=[l,...C],k=await Si(t,T),z=[],J=((i=a.flip)==null?void 0:i.overflows)||[];if(h&&z.push(k[N]),f){let O=Pa(n,s,w);z.push(k[O[0]],k[O[1]])}if(J=[...J,{placement:n,overflows:z}],!z.every(O=>O<=0)){var q,F;let O=(((q=a.flip)==null?void 0:q.index)||0)+1,D=A[O];if(D)return{data:{index:O,overflows:J},reset:{placement:D}};let K=(F=J.filter(Q=>Q.overflows[0]<=0).sort((Q,V)=>Q.overflows[1]-V.overflows[1])[0])==null?void 0:F.placement;if(!K)switch(v){case"bestFit":{var y;let Q=(y=J.map(V=>[V.placement,V.overflows.filter(le=>le>0).reduce((le,io)=>le+io,0)]).sort((V,le)=>V[1]-le[1])[0])==null?void 0:y[0];Q&&(K=Q);break}case"initialPlacement":K=l;break}if(n!==K)return{reset:{placement:K}}}return{}}}};async function Zu(r,t){let{placement:e,platform:i,elements:n}=r,a=await(i.isRTL==null?void 0:i.isRTL(n.floating)),s=fe(e),l=he(e),d=To(e)==="y",p=["left","top"].includes(s)?-1:1,h=a&&d?-1:1,f=Fr(t,r),{mainAxis:m,crossAxis:v,alignmentAxis:S}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&typeof S=="number"&&(v=l==="end"?S*-1:S),d?{x:v*h,y:m*p}:{x:m*p,y:v*h}}var ka=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(t){var e,i;let{x:n,y:a,placement:s,middlewareData:l}=t,d=await Zu(t,r);return s===((e=l.offset)==null?void 0:e.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:n+d.x,y:a+d.y,data:{...d,placement:s}}}}},Da=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(t){let{x:e,y:i,placement:n}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:T=>{let{x:N,y:$}=T;return{x:N,y:$}}},...d}=Fr(r,t),p={x:e,y:i},h=await Si(t,d),f=To(fe(n)),m=Ta(f),v=p[m],S=p[f];if(a){let T=m==="y"?"top":"left",N=m==="y"?"bottom":"right",$=v+h[T],w=v-h[N];v=_a($,v,w)}if(s){let T=f==="y"?"top":"left",N=f==="y"?"bottom":"right",$=S+h[T],w=S-h[N];S=_a($,S,w)}let E=l.fn({...t,[m]:v,[f]:S});return{...E,data:{x:E.x-e,y:E.y-i}}}}};function _e(r){return oc(r)?(r.nodeName||"").toLowerCase():"#document"}function Ht(r){var t;return(r==null||(t=r.ownerDocument)==null?void 0:t.defaultView)||window}function Te(r){var t;return(t=(oc(r)?r.ownerDocument:r.document)||window.document)==null?void 0:t.documentElement}function oc(r){return r instanceof Node||r instanceof Ht(r).Node}function me(r){return r instanceof Element||r instanceof Ht(r).Element}function re(r){return r instanceof HTMLElement||r instanceof Ht(r).HTMLElement}function rc(r){return typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof Ht(r).ShadowRoot}function Br(r){let{overflow:t,overflowX:e,overflowY:i,display:n}=Kt(r);return/auto|scroll|overlay|hidden|clip/.test(t+i+e)&&!["inline","contents"].includes(n)}function ic(r){return["table","td","th"].includes(_e(r))}function Ci(r){let t=Ei(),e=Kt(r);return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(e.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(e.contain||"").includes(i))}function nc(r){let t=br(r);for(;re(t)&&!Io(t);){if(Ci(t))return t;t=br(t)}return null}function Ei(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Io(r){return["html","body","#document"].includes(_e(r))}function Kt(r){return Ht(r).getComputedStyle(r)}function No(r){return me(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.pageXOffset,scrollTop:r.pageYOffset}}function br(r){if(_e(r)==="html")return r;let t=r.assignedSlot||r.parentNode||rc(r)&&r.host||Te(r);return rc(t)?t.host:t}function ac(r){let t=br(r);return Io(t)?r.ownerDocument?r.ownerDocument.body:r.body:re(t)&&Br(t)?t:ac(t)}function Oi(r,t,e){var i;t===void 0&&(t=[]),e===void 0&&(e=!0);let n=ac(r),a=n===((i=r.ownerDocument)==null?void 0:i.body),s=Ht(n);return a?t.concat(s,s.visualViewport||[],Br(n)?n:[],s.frameElement&&e?Oi(s.frameElement):[]):t.concat(n,Oi(n,[],e))}function cc(r){let t=Kt(r),e=parseFloat(t.width)||0,i=parseFloat(t.height)||0,n=re(r),a=n?r.offsetWidth:e,s=n?r.offsetHeight:i,l=_o(e)!==a||_o(i)!==s;return l&&(e=a,i=s),{width:e,height:i,$:l}}function dc(r){return me(r)?r:r.contextElement}function Ur(r){let t=dc(r);if(!re(t))return Re(1);let e=t.getBoundingClientRect(),{width:i,height:n,$:a}=cc(t),s=(a?_o(e.width):e.width)/i,l=(a?_o(e.height):e.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var qu=Re(0);function pc(r){let t=Ht(r);return!Ei()||!t.visualViewport?qu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Yu(r,t,e){return t===void 0&&(t=!1),!e||t&&e!==Ht(r)?!1:t}function Po(r,t,e,i){t===void 0&&(t=!1),e===void 0&&(e=!1);let n=r.getBoundingClientRect(),a=dc(r),s=Re(1);t&&(i?me(i)&&(s=Ur(i)):s=Ur(r));let l=Yu(a,e,i)?pc(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=Ht(a),v=i&&me(i)?Ht(i):i,S=m.frameElement;for(;S&&i&&v!==m;){let E=Ur(S),T=S.getBoundingClientRect(),N=Kt(S),$=T.left+(S.clientLeft+parseFloat(N.paddingLeft))*E.x,w=T.top+(S.clientTop+parseFloat(N.paddingTop))*E.y;d*=E.x,p*=E.y,h*=E.x,f*=E.y,d+=$,p+=w,S=Ht(S).frameElement}}return gr({width:h,height:f,x:d,y:p})}function Xu(r){let{rect:t,offsetParent:e,strategy:i}=r,n=re(e),a=Te(e);if(e===a)return t;let s={scrollLeft:0,scrollTop:0},l=Re(1),d=Re(0);if((n||!n&&i!=="fixed")&&((_e(e)!=="body"||Br(a))&&(s=No(e)),re(e))){let p=Po(e);l=Ur(e),d.x=p.x+e.clientLeft,d.y=p.y+e.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 Ju(r){return Array.from(r.getClientRects())}function uc(r){return Po(Te(r)).left+No(r).scrollLeft}function Qu(r){let t=Te(r),e=No(r),i=r.ownerDocument.body,n=Be(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),a=Be(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),s=-e.scrollLeft+uc(r),l=-e.scrollTop;return Kt(i).direction==="rtl"&&(s+=Be(t.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:l}}function tf(r,t){let e=Ht(r),i=Te(r),n=e.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 ef(r,t){let e=Po(r,!0,t==="fixed"),i=e.top+r.clientTop,n=e.left+r.clientLeft,a=re(r)?Ur(r):Re(1),s=r.clientWidth*a.x,l=r.clientHeight*a.y,d=n*a.x,p=i*a.y;return{width:s,height:l,x:d,y:p}}function sc(r,t,e){let i;if(t==="viewport")i=tf(r,e);else if(t==="document")i=Qu(Te(r));else if(me(t))i=ef(t,e);else{let n=pc(r);i={...t,x:t.x-n.x,y:t.y-n.y}}return gr(i)}function fc(r,t){let e=br(r);return e===t||!me(e)||Io(e)?!1:Kt(e).position==="fixed"||fc(e,t)}function rf(r,t){let e=t.get(r);if(e)return e;let i=Oi(r,[],!1).filter(l=>me(l)&&_e(l)!=="body"),n=null,a=Kt(r).position==="fixed",s=a?br(r):r;for(;me(s)&&!Io(s);){let l=Kt(s),d=Ci(s);!d&&l.position==="fixed"&&(n=null),(a?!d&&!n:!d&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Br(s)&&!d&&fc(r,s))?i=i.filter(h=>h!==s):n=l,s=br(s)}return t.set(r,i),i}function of(r){let{element:t,boundary:e,rootBoundary:i,strategy:n}=r,s=[...e==="clippingAncestors"?rf(t,this._c):[].concat(e),i],l=s[0],d=s.reduce((p,h)=>{let f=sc(t,h,n);return p.top=Be(f.top,p.top),p.right=Ro(f.right,p.right),p.bottom=Ro(f.bottom,p.bottom),p.left=Be(f.left,p.left),p},sc(t,l,n));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function nf(r){return cc(r)}function af(r,t,e){let i=re(t),n=Te(t),a=e==="fixed",s=Po(r,!0,a,t),l={scrollLeft:0,scrollTop:0},d=Re(0);if(i||!i&&!a)if((_e(t)!=="body"||Br(n))&&(l=No(t)),i){let p=Po(t,!0,a,t);d.x=p.x+t.clientLeft,d.y=p.y+t.clientTop}else n&&(d.x=uc(n));return{x:s.left+l.scrollLeft-d.x,y:s.top+l.scrollTop-d.y,width:s.width,height:s.height}}function lc(r,t){return!re(r)||Kt(r).position==="fixed"?null:t?t(r):r.offsetParent}function hc(r,t){let e=Ht(r);if(!re(r))return e;let i=lc(r,t);for(;i&&ic(i)&&Kt(i).position==="static";)i=lc(i,t);return i&&(_e(i)==="html"||_e(i)==="body"&&Kt(i).position==="static"&&!Ci(i))?e:i||nc(r)||e}var sf=async function(r){let{reference:t,floating:e,strategy:i}=r,n=this.getOffsetParent||hc,a=this.getDimensions;return{reference:af(t,await n(e),i),floating:{x:0,y:0,...await a(e)}}};function lf(r){return Kt(r).direction==="rtl"}var Wr={convertOffsetParentRelativeRectToViewportRelativeRect:Xu,getDocumentElement:Te,getClippingRect:of,getOffsetParent:hc,getElementRects:sf,getClientRects:Ju,getDimensions:nf,getScale:Ur,isElement:me,isRTL:lf};var Ma=(r,t,e)=>{let i=new Map,n={platform:Wr,...e},a={...n.platform,_c:i};return ec(r,t,{...n,platform:a})};function Ba(r){return cf(r)}function Fa(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function cf(r){for(let t=r;t;t=Fa(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=Fa(r);t;t=Fa(t)){if(!(t instanceof Element))continue;let e=getComputedStyle(t);if(e.display!=="contents"&&(e.position!=="static"||e.filter!=="none"||t.tagName==="BODY"))return t}return null}async function Ua(r,t,e){return Ma(r,t,{platform:{...Wr,getOffsetParent:i=>Wr.getOffsetParent(i,Ba)},middleware:[Da({crossAxis:!0}),$a({allowedPlacements:[e]})]})}async function Wa(r,t,e,i,n,a=4){return Ma(r,t,{placement:e,strategy:n,platform:{...Wr,getOffsetParent:s=>Wr.getOffsetParent(s,Ba)},middleware:[ka(a),La({fallbackPlacements:i})]})}var Ga={};ot(Ga,{FtdsBase:()=>ja,toFtdsBase:()=>Ri});var Va={};ot(Va,{FtLitElement:()=>j});var za={};ot(za,{ScopedRegistryLitElement:()=>$o});var wi=window,df=wi.ShadowRoot&&(wi.ShadyCSS===void 0||wi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,pv=Symbol();var mc=(r,t)=>{df?r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{let i=document.createElement("style"),n=wi.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=e.cssText,r.appendChild(i)})};var $o=class extends Ce{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 e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return mc(i,t.elementStyles),i}};var Ai=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},vc,yc=Symbol("constructorPrototype"),gc=Symbol("constructorName"),xc=Symbol("exportpartsDebouncer"),bc=Symbol("dynamicDependenciesLoaded"),j=class extends $o{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[vc]=new lt(5),this[gc]=this.constructor.name,this[yc]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[gc]&&Object.setPrototypeOf(this,this[yc])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(e){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",e)}let t=this.constructor;t[bc]||(t[bc]=!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 e,i,n;if(((i=(e=this.shadowRoot)===null||e===void 0?void 0:e.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,e,i;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(i=(e=this.exportpartsPrefixes)===null||e===void 0?void 0:e.length)!==null&&i!==void 0&&i)&&this[xc].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 e,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=(e=this.shadowRoot)===null||e===void 0?void 0:e.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:[],S=(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,...S).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(", "))}};vc=xc;Ai([g()],j.prototype,"exportpartsPrefix",void 0);Ai([ue([])],j.prototype,"exportpartsPrefixes",void 0);Ai([g()],j.prototype,"customStylesheet",void 0);Ai([W()],j.prototype,"useAdoptedStyleSheets",void 0);var Sc=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a};function Ri(r){class t extends r{constructor(){super(...arguments),this.size=Ae.medium,this.family=yr.neutral}getDesignSystemBaseClasses(){return{[Ca(this.family)]:!0,[Ea(this.size)]:!0}}}return Sc([g()],t.prototype,"size",void 0),Sc([g()],t.prototype,"family",void 0),t}var ja=class extends Ri(j){};var Oc={};var qa={};ot(qa,{highlightHtml:()=>Za,highlightHtmlColorCssVariable:()=>Cc,highlightHtmlStyles:()=>uf});var vr=class r{constructor(t,e=!0,i=[],n=5e3){this.ctx=t,this.iframes=e,this.exclude=i,this.iframesTimeout=n}static matches(t,e){let i=typeof e=="string"?[e]:e,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,e=[];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=e.filter(a=>a.contains(i)).length>0;e.indexOf(i)===-1&&!n&&e.push(i)}),e}getIframeContents(t,e,i=()=>{}){let n;try{let a=t.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{i()}n&&e(n)}isIframeBlank(t){let e="about:blank",i=t.getAttribute("src").trim();return t.contentWindow.location.href===e&&i!==e&&i}observeIframeLoad(t,e,i){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(t)||(t.removeEventListener("load",s),this.getIframeContents(t,e,i))}catch{i()}}};t.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(t,e,i){try{t.contentWindow.document.readyState==="complete"?this.isIframeBlank(t)?this.observeIframeLoad(t,e,i):this.getIframeContents(t,e,i):this.observeIframeLoad(t,e,i)}catch{i()}}waitForIframes(t,e){let i=0;this.forEachIframe(t,()=>!0,n=>{i++,this.waitForIframes(n.querySelector("html"),()=>{--i||e()})},n=>{n||e()})}forEachIframe(t,e,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=>{r.matches(p,this.exclude)?d():this.onIframeReady(p,h=>{e(p)&&(l++,i(h)),d()},d)})}createIterator(t,e,i){return document.createNodeIterator(t,e,i,!1)}createInstanceOnIframe(t){return new r(t.querySelector("html"),this.iframes)}compareNodeIframe(t,e,i){let n=t.compareDocumentPosition(i),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(e!==null){let s=e.compareDocumentPosition(i),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(t){let e=t.previousNode(),i;return e===null?i=t.nextNode():i=t.nextNode()&&t.nextNode(),{prevNode:e,node:i}}checkIframeFilter(t,e,i,n){let a=!1,s=!1;return n.forEach((l,d)=>{l.val===i&&(a=d,s=l.handled)}),this.compareNodeIframe(t,e,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,e,i,n){t.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(e,i,n)})})}iterateThroughNodes(t,e,i,n,a){let s=this.createIterator(e,t,n),l=[],d=[],p,h,f=()=>({prevNode:h,node:p}=this.getIteratorNode(s),p);for(;f();)this.iframes&&this.forEachIframe(e,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,e,i,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let d=()=>{this.iterateThroughNodes(t,l,e,i,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,d):d()})}};var Lo=class{constructor(t){this.ctx=t,this.ie=!1;let e=window.navigator.userAgent;(e.indexOf("MSIE")>-1||e.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(t){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},t)}get opt(){return this._opt}get iterator(){return new vr(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(t,e="debug"){let i=this.opt.log;this.opt.debug&&typeof i=="object"&&typeof i[e]=="function"&&i[e](`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 e=this.opt.synonyms,i=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in e)if(e.hasOwnProperty(a)){let s=e[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,e=>e.charAt(0)==="\\"?"?":""),t.replace(/(?:\\)*\*/g,e=>e.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(t){let e=this.opt.wildcards==="withSpaces";return t.replace(/\u0001/g,e?"[\\S\\s]?":"\\S?").replace(/\u0002/g,e?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(t){return t.replace(/[^(|)\\]/g,(e,i,n)=>{let a=n.charAt(i+1);return/[(|)\\]/.test(a)||a===""?e:e+"\0"})}createJoinersRegExp(t){let e=[],i=this.opt.ignorePunctuation;return Array.isArray(i)&&i.length&&e.push(this.escapeStr(i.join(""))),this.opt.ignoreJoiners&&e.push("\\u00ad\\u200b\\u200c\\u200d"),e.length?t.split(/\u0000+/).join(`[${e.join("")}]*`):t}createDiacriticsRegExp(t){let e=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${e}`),`[${s}]`),n.push(s)}return!0})}),t}createMergedBlanksRegExp(t){return t.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(t){let e="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\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(e)),`()([^${s}]*${t}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${t})(?=$|\\s${s})`}}getSeparatedKeywords(t){let e=[];return t.forEach(i=>{this.opt.separateWordSearch?i.split(" ").forEach(n=>{n.trim()&&e.indexOf(n)===-1&&e.push(n)}):i.trim()&&e.indexOf(i)===-1&&e.push(i)}),{keywords:e.sort((i,n)=>n.length-i.length),length:e.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 e=[],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,e.push(n),i=s)}),e}callNoMatchOnInvalidRanges(t,e){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-e>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,e,i){let n,a=!0,s=i.length,l=e-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 e="",i=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{i.push({start:e.length,end:(e+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{t({value:e,nodes:i})})}matchesExclude(t){return vr.matches(t,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(t,e,i){let n=this.opt.element?this.opt.element:"mark",a=t.splitText(e),s=a.splitText(i-e),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,e,i,n,a){t.nodes.every((s,l)=>{let d=t.nodes[l+1];if(typeof d>"u"||d.start>e){if(!n(s.node))return!1;let p=e-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,S)=>{S>=l&&(t.nodes[S].start>0&&S!==l&&(t.nodes[S].start-=h),t.nodes[S].end-=h)}),i-=h,a(s.node.previousSibling,s.start),i>s.end)e=s.end;else return!1}return!0})}wrapMatches(t,e,i,n,a){let s=e===0?0:e+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,e,i,n,a){let s=e===0?0:e+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,e,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=>e(m,l,a.value.substring(p,h),d),m=>{i(m,l)})}),n()})}unwrapMatches(t){let e=t.parentNode,i=document.createDocumentFragment();for(;t.firstChild;)i.appendChild(t.removeChild(t.firstChild));e.replaceChild(i,t),this.ie?this.normalizeTextNode(e):e.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,e){this.opt=e,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,e){this.opt=e;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,e){this.opt=e;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 e=this.opt.element?this.opt.element:"*";e+="[data-markjs]",this.opt.className&&(e+=`.${this.opt.className}`),this.log(`Removal selector "${e}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,i=>{this.unwrapMatches(i)},i=>{let n=vr.matches(i,e),a=this.matchesExclude(i);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Ka(r){let t=new Lo(r);return this.mark=(e,i)=>(t.mark(e,i),this),this.markRegExp=(e,i)=>(t.markRegExp(e,i),this),this.markRanges=(e,i)=>(t.markRanges(e,i),this),this.unmark=e=>(t.unmark(e),this),this}var pf=Ka,Cc=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),uf=L`
|
|
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=$`
|
|
8
8
|
.highlight-html-match {
|
|
9
|
-
background: ${
|
|
9
|
+
background: ${wc};
|
|
10
10
|
}
|
|
11
|
-
`;function
|
|
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=$`
|
|
12
12
|
.ft-no-text-select {
|
|
13
13
|
-webkit-touch-callout: none;
|
|
14
14
|
-webkit-user-select: none;
|
|
@@ -17,7 +17,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
17
17
|
-ms-user-select: none;
|
|
18
18
|
user-select: none;
|
|
19
19
|
}
|
|
20
|
-
`,
|
|
20
|
+
`,bf=$`
|
|
21
21
|
.ft-word-wrap {
|
|
22
22
|
white-space: normal;
|
|
23
23
|
word-wrap: break-word;
|
|
@@ -29,7 +29,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
29
29
|
-webkit-hyphens: auto;
|
|
30
30
|
hyphens: auto
|
|
31
31
|
}
|
|
32
|
-
`,
|
|
32
|
+
`,Cr=$`
|
|
33
33
|
.ft-safari-ellipsis-fix {
|
|
34
34
|
margin-right: 0;
|
|
35
35
|
|
|
@@ -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
|
-
`,
|
|
43
|
+
`,Ja=$`
|
|
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 Ec={};var Ja={};ot(Ja,{ParametrizedLabelResolver:()=>ko});var ko=class r{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,n;t=this.resolvePluralKey(t,e);let a=(n=(i=this.labels[t])!==null&&i!==void 0?i:this.defaultLabels[t])!==null&&n!==void 0?n:"";return r.replaceParameters(a,...e)}static replaceParameters(t,...e){return e.forEach((i,n)=>t=t.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>r.formatValue(i,s))),t}resolvePluralKey(t,e){for(let i of e)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,e){return t instanceof Date?r.formatDate(t,e):t??""}static formatDate(t,e){let i=n=>e?.includes("date")?t.toLocaleDateString(n):e?.includes("time")?t.toLocaleTimeString(n):t.toLocaleString(n);try{return i(document.documentElement.lang)}catch{return i()}}};var Es={};ot(Es,{FtCommandQueue:()=>Mo,FtLitElementRedux:()=>qt,FtReduxStore:()=>Ne,ReduxWatcher:()=>Li,clearAllStores:()=>Xf,isFtReduxStore:()=>Or,redux:()=>dt,reduxEventListener:()=>Do,reduxReactive:()=>hf,watch:()=>Jf});var hf=()=>(r,t)=>{var e;let i=r.constructor;i.reduxReactiveProperties=new Set(i.reduxReactiveProperties),(e=i.reduxReactiveProperties)===null||e===void 0||e.add(t)},dt=r=>{let t=r??{};return(e,i)=>{var n;let a={hasChanged:mr,attribute:!1,...t};g(a)(e,i);let s=e.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})}},Do=r=>(t,e)=>{let i=t.constructor;i.reduxEventListeners=new Map(i.reduxEventListeners),i.reduxEventListeners.set(e,r)};var Mo=class{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter(i=>i.type!==t.type)),this.queue.push(t)}consume(t){let e=this.queue.find(i=>i.type===t);return e&&(this.queue=this.queue.filter(i=>i!==e)),e}};function Or(r){var t;return(t=r?.isFtReduxStore)!==null&&t!==void 0?t:!1}var wc,Ac,Rc,Fo=Symbol("internalReduxEventsUnsubscribers"),Ue=Symbol("internalStoresUnsubscribers"),Cr=Symbol("internalStores"),qt=class extends j{constructor(){super(...arguments),this[wc]=new Map,this[Ac]=new Map,this[Rc]=new Map}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(e=>t.has(e))&&this.updateFromStores()}getUnnamedStore(){if(this[Cr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Cr].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[Cr].get(t)}addStore(t,e){var i;e=(i=e??(Or(t)?t.name:void 0))!==null&&i!==void 0?i:"default-store",this.unsubscribeFromStore(e),this[Cr].set(e,t),this.subscribeToStore(e,t),this.updateFromStores()}removeStore(t){let e=typeof t=="string"?t:t.name;this.unsubscribeFromStore(e),this[Cr].delete(e)}setupStores(){this.unsubscribeFromStores(),this[Cr].forEach((t,e)=>this.subscribeToStore(e,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,e)=>{let i=this.constructor.getPropertyOptions(e);if(!i?.attribute||!this.hasAttribute(typeof i?.attribute=="string"?i.attribute:e)){let n=this.getStore(t.store);n&&(t.store?this[Ue].has(t.store):this[Ue].size>0)&&(this[e]=t.selector(n.getState(),this))}})}subscribeToStore(t,e){var i;this[Ue].set(t,e.subscribe(()=>this.updateFromStores())),this[Fo].set(t,[]),Or(e)&&e.eventBus&&((i=this.reduxConstructor.reduxEventListeners)===null||i===void 0||i.forEach((n,a)=>{if(typeof this[a]=="function"&&(!n.store||e.name===n.store)){let s=l=>this[a](l);e.addEventListener(n.eventName,s),this[Fo].get(t).push(()=>e.removeEventListener(n.eventName,s))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Ue].forEach((t,e)=>this.unsubscribeFromStore(e))}unsubscribeFromStore(t){var e;this[Ue].has(t)&&this[Ue].get(t)(),this[Ue].delete(t),(e=this[Fo].get(t))===null||e===void 0||e.forEach(i=>i()),this[Fo].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};wc=Ue,Ac=Cr,Rc=Fo;qt.reduxProperties=new Map;qt.reduxReactiveProperties=new Set;qt.reduxEventListeners=new Map;function Yt(r){for(var t=arguments.length,e=Array(t>1?t-1:0),i=1;i<t;i++)e[i-1]=arguments[i];if(0)var n,a;throw Error("[Immer] minified error nr: "+r+(e.length?" "+e.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ie(r){return!!r&&!!r[pt]}function oe(r){var t;return!!r&&(function(e){if(!e||typeof e!="object")return!1;var i=Object.getPrototypeOf(e);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===Of}(r)||Array.isArray(r)||!!r[Lc]||!!(!((t=r.constructor)===null||t===void 0)&&t[Lc])||ss(r)||ls(r))}function Er(r,t,e){e===void 0&&(e=!1),Vr(r)===0?(e?Object.keys:zr)(r).forEach(function(i){e&&typeof i=="symbol"||t(i,r[i],r)}):r.forEach(function(i,n){return t(n,i,r)})}function Vr(r){var t=r[pt];return t?t.i>3?t.i-4:t.i:Array.isArray(r)?1:ss(r)?2:ls(r)?3:0}function Hr(r,t){return Vr(r)===2?r.has(t):Object.prototype.hasOwnProperty.call(r,t)}function mf(r,t){return Vr(r)===2?r.get(t):r[t]}function kc(r,t,e){var i=Vr(r);i===2?r.set(t,e):i===3?r.add(e):r[t]=e}function Dc(r,t){return r===t?r!==0||1/r==1/t:r!=r&&t!=t}function ss(r){return xf&&r instanceof Map}function ls(r){return Sf&&r instanceof Set}function We(r){return r.o||r.t}function cs(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var t=Bc(r);delete t[pt];for(var e=zr(t),i=0;i<e.length;i++){var n=e[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:r[n]})}return Object.create(Object.getPrototypeOf(r),t)}function ds(r,t){return t===void 0&&(t=!1),ps(r)||Ie(r)||!oe(r)||(Vr(r)>1&&(r.set=r.add=r.clear=r.delete=yf),Object.freeze(r),t&&Er(r,function(e,i){return ds(i,!0)},!0)),r}function yf(){Yt(2)}function ps(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function ye(r){var t=as[r];return t||Yt(18,r),t}function gf(r,t){as[r]||(as[r]=t)}function os(){return Uo}function Qa(r,t){t&&(ye("Patches"),r.u=[],r.s=[],r.v=t)}function _i(r){is(r),r.p.forEach(bf),r.p=null}function is(r){r===Uo&&(Uo=r.l)}function _c(r){return Uo={p:[],l:Uo,h:r,m:!0,_:0}}function bf(r){var t=r[pt];t.i===0||t.i===1?t.j():t.g=!0}function ts(r,t){t._=t.p.length;var e=t.p[0],i=r!==void 0&&r!==e;return t.h.O||ye("ES5").S(t,r,i),i?(e[pt].P&&(_i(t),Yt(4)),oe(r)&&(r=Ti(t,r),t.l||Ii(t,r)),t.u&&ye("Patches").M(e[pt].t,r,t.u,t.s)):r=Ti(t,e,[]),_i(t),t.u&&t.v(t.u,t.s),r!==Fc?r:void 0}function Ti(r,t,e){if(ps(t))return t;var i=t[pt];if(!i)return Er(t,function(l,d){return Tc(r,i,t,l,d,e)},!0),t;if(i.A!==r)return t;if(!i.P)return Ii(r,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=cs(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),Er(a,function(l,d){return Tc(r,i,n,l,d,e,s)}),Ii(r,n,!1),e&&r.u&&ye("Patches").N(i,e,r.u,r.s)}return i.o}function Tc(r,t,e,i,n,a,s){if(Ie(n)){var l=Ti(r,n,a&&t&&t.i!==3&&!Hr(t.R,i)?a.concat(i):void 0);if(kc(e,i,l),!Ie(l))return;r.m=!1}else s&&e.add(n);if(oe(n)&&!ps(n)){if(!r.h.D&&r._<1)return;Ti(r,n),t&&t.A.l||Ii(r,n)}}function Ii(r,t,e){e===void 0&&(e=!1),!r.l&&r.h.D&&r.m&&ds(t,e)}function es(r,t){var e=r[pt];return(e?We(e):r)[t]}function Ic(r,t){if(t in r)for(var e=Object.getPrototypeOf(r);e;){var i=Object.getOwnPropertyDescriptor(e,t);if(i)return i;e=Object.getPrototypeOf(e)}}function He(r){r.P||(r.P=!0,r.l&&He(r.l))}function rs(r){r.o||(r.o=cs(r.t))}function ns(r,t,e){var i=ss(t)?ye("MapSet").F(t,e):ls(t)?ye("MapSet").T(t,e):r.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:os(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},d=l,p=Wo;s&&(d=[l],p=Bo);var h=Proxy.revocable(d,p),f=h.revoke,m=h.proxy;return l.k=m,l.j=f,m}(t,e):ye("ES5").J(t,e);return(e?e.A:os()).p.push(i),i}function vf(r){return Ie(r)||Yt(22,r),function t(e){if(!oe(e))return e;var i,n=e[pt],a=Vr(e);if(n){if(!n.P&&(n.i<4||!ye("ES5").K(n)))return n.t;n.I=!0,i=Nc(e,a),n.I=!1}else i=Nc(e,a);return Er(i,function(s,l){n&&mf(n.t,s)===l||kc(i,s,t(l))}),a===3?new Set(i):i}(r)}function Nc(r,t){switch(t){case 2:return new Map(r);case 3:return Array.from(r)}return cs(r)}function Mc(){function r(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 Wo.get(p,s)},set:function(p){var h=this[pt];Wo.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)&&He(d);break;case 4:e(d)&&He(d)}}}function e(s){for(var l=s.t,d=s.k,p=zr(d),h=p.length-1;h>=0;h--){var f=p[h];if(f!==pt){var m=l[f];if(m===void 0&&!Hr(l,f))return!0;var v=d[f],S=v&&v[pt];if(S?S.t!==m:!Dc(v,m))return!0}}var E=!!l[pt];return p.length!==zr(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&&Yt(3,JSON.stringify(We(s)))}var a={};gf("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(f,m){if(f){for(var v=Array(m.length),S=0;S<m.length;S++)Object.defineProperty(v,""+S,r(S,!0));return v}var E=Bc(m);delete E[pt];for(var T=zr(E),N=0;N<T.length;N++){var $=T[N];E[$]=r($,f||!!E[$].enumerable)}return Object.create(Object.getPrototypeOf(m),E)}(d,s),h={i:d?5:4,A:l?l.A:os(),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?Ie(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,S=f.R,E=f.i;if(E===4)Er(v,function(C){C!==pt&&(m[C]!==void 0||Hr(m,C)?S[C]||p(v[C]):(S[C]=!0,He(f)))}),Er(m,function(C){v[C]!==void 0||Hr(v,C)||(S[C]=!1,He(f))});else if(E===5){if(i(f)&&(He(f),S.length=!0),v.length<m.length)for(var T=v.length;T<m.length;T++)S[T]=!1;else for(var N=m.length;N<v.length;N++)S[N]=!0;for(var $=Math.min(v.length,m.length),w=0;w<$;w++)v.hasOwnProperty(w)||(S[w]=!0),S[w]===void 0&&p(v[w])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?e(s):i(s)}})}var Pc,Uo,us=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",xf=typeof Map<"u",Sf=typeof Set<"u",$c=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Fc=us?Symbol.for("immer-nothing"):((Pc={})["immer-nothing"]=!0,Pc),Lc=us?Symbol.for("immer-draftable"):"__$immer_draftable",pt=us?Symbol.for("immer-state"):"__$immer_state";var Of=""+Object.prototype.constructor,zr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,Bc=Object.getOwnPropertyDescriptors||function(r){var t={};return zr(r).forEach(function(e){t[e]=Object.getOwnPropertyDescriptor(r,e)}),t},as={},Wo={get:function(r,t){if(t===pt)return r;var e=We(r);if(!Hr(e,t))return function(n,a,s){var l,d=Ic(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(n.k):void 0}(r,e,t);var i=e[t];return r.I||!oe(i)?i:i===es(r.t,t)?(rs(r),r.o[t]=ns(r.A.h,i,r)):i},has:function(r,t){return t in We(r)},ownKeys:function(r){return Reflect.ownKeys(We(r))},set:function(r,t,e){var i=Ic(We(r),t);if(i?.set)return i.set.call(r.k,e),!0;if(!r.P){var n=es(We(r),t),a=n?.[pt];if(a&&a.t===e)return r.o[t]=e,r.R[t]=!1,!0;if(Dc(e,n)&&(e!==void 0||Hr(r.t,t)))return!0;rs(r),He(r)}return r.o[t]===e&&(e!==void 0||t in r.o)||Number.isNaN(e)&&Number.isNaN(r.o[t])||(r.o[t]=e,r.R[t]=!0),!0},deleteProperty:function(r,t){return es(r.t,t)!==void 0||t in r.t?(r.R[t]=!1,rs(r),He(r)):delete r.R[t],r.o&&delete r.o[t],!0},getOwnPropertyDescriptor:function(r,t){var e=We(r),i=Reflect.getOwnPropertyDescriptor(e,t);return i&&{writable:!0,configurable:r.i!==1||t!=="length",enumerable:i.enumerable,value:e[t]}},defineProperty:function(){Yt(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){Yt(12)}},Bo={};Er(Wo,function(r,t){Bo[r]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Bo.deleteProperty=function(r,t){return Bo.set.call(this,r,t,void 0)},Bo.set=function(r,t,e){return Wo.set.call(this,r[0],t,e,r[0])};var Cf=function(){function r(e){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 T=this;E===void 0&&(E=l);for(var N=arguments.length,$=Array(N>1?N-1:0),w=1;w<N;w++)$[w-1]=arguments[w];return d.produce(E,function(C){var A;return(A=a).call.apply(A,[T,C].concat($))})}}var p;if(typeof a!="function"&&Yt(6),s!==void 0&&typeof s!="function"&&Yt(7),oe(n)){var h=_c(i),f=ns(i,n,void 0),m=!0;try{p=a(f),m=!1}finally{m?_i(h):is(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(E){return Qa(h,s),ts(E,h)},function(E){throw _i(h),E}):(Qa(h,s),ts(p,h))}if(!n||typeof n!="object"){if((p=a(n))===void 0&&(p=n),p===Fc&&(p=void 0),i.D&&ds(p,!0),s){var v=[],S=[];ye("Patches").M(n,p,v,S),s(v,S)}return p}Yt(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 e?.useProxies=="boolean"&&this.setUseProxies(e.useProxies),typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze)}var t=r.prototype;return t.createDraft=function(e){oe(e)||Yt(8),Ie(e)&&(e=vf(e));var i=_c(this),n=ns(this,e,void 0);return n[pt].C=!0,is(i),n},t.finishDraft=function(e,i){var n=e&&e[pt],a=n.A;return Qa(a,i),ts(void 0,a)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!$c&&Yt(20),this.O=e},t.applyPatches=function(e,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){e=a.value;break}}n>-1&&(i=i.slice(n+1));var s=ye("Patches").$;return Ie(e)?s(e,i):this.produce(e,function(l){return s(l,i)})},r}(),Zt=new Cf,Ef=Zt.produce,Bv=Zt.produceWithPatches.bind(Zt),Uv=Zt.setAutoFreeze.bind(Zt),Wv=Zt.setUseProxies.bind(Zt),Hv=Zt.applyPatches.bind(Zt),zv=Zt.createDraft.bind(Zt),Vv=Zt.finishDraft.bind(Zt),Ni=Ef;function ze(r){"@babel/helpers - typeof";return ze=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},ze(r)}function fs(r,t){if(ze(r)!=="object"||r===null)return r;var e=r[Symbol.toPrimitive];if(e!==void 0){var i=e.call(r,t||"default");if(ze(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(r)}function hs(r){var t=fs(r,"string");return ze(t)==="symbol"?t:String(t)}function ms(r,t,e){return t=hs(t),t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}function Uc(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),e.push.apply(e,i)}return e}function Pi(r){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?Uc(Object(e),!0).forEach(function(i){ms(r,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):Uc(Object(e)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(e,i))})}return r}function Lt(r){return"Minified Redux error #"+r+"; visit https://redux.js.org/Errors?code="+r+" for the full message or use the non-minified dev environment for full errors. "}var Wc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ys=function(){return Math.random().toString(36).substring(7).split("").join(".")},$i={INIT:"@@redux/INIT"+ys(),REPLACE:"@@redux/REPLACE"+ys(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ys()}};function wf(r){if(typeof r!="object"||r===null)return!1;for(var t=r;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(r)===t}function gs(r,t,e){var i;if(typeof t=="function"&&typeof e=="function"||typeof e=="function"&&typeof arguments[3]=="function")throw new Error(Lt(0));if(typeof t=="function"&&typeof e>"u"&&(e=t,t=void 0),typeof e<"u"){if(typeof e!="function")throw new Error(Lt(1));return e(gs)(r,t)}if(typeof r!="function")throw new Error(Lt(2));var n=r,a=t,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(Lt(3));return a}function f(E){if(typeof E!="function")throw new Error(Lt(4));if(d)throw new Error(Lt(5));var T=!0;return p(),l.push(E),function(){if(T){if(d)throw new Error(Lt(6));T=!1,p();var $=l.indexOf(E);l.splice($,1),s=null}}}function m(E){if(!wf(E))throw new Error(Lt(7));if(typeof E.type>"u")throw new Error(Lt(8));if(d)throw new Error(Lt(9));try{d=!0,a=n(a,E)}finally{d=!1}for(var T=s=l,N=0;N<T.length;N++){var $=T[N];$()}return E}function v(E){if(typeof E!="function")throw new Error(Lt(10));n=E,m({type:$i.REPLACE})}function S(){var E,T=f;return E={subscribe:function($){if(typeof $!="object"||$===null)throw new Error(Lt(11));function w(){$.next&&$.next(h())}w();var C=T(w);return{unsubscribe:C}}},E[Wc]=function(){return this},E}return m({type:$i.INIT}),i={dispatch:m,subscribe:f,getState:h,replaceReducer:v},i[Wc]=S,i}function Af(r){Object.keys(r).forEach(function(t){var e=r[t],i=e(void 0,{type:$i.INIT});if(typeof i>"u")throw new Error(Lt(12));if(typeof e(void 0,{type:$i.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Lt(13))})}function Hc(r){for(var t=Object.keys(r),e={},i=0;i<t.length;i++){var n=t[i];typeof r[n]=="function"&&(e[n]=r[n])}var a=Object.keys(e),s,l;try{Af(e)}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={},S=0;S<a.length;S++){var E=a[S],T=e[E],N=p[E],$=T(N,h);if(typeof $>"u"){var w=h&&h.type;throw new Error(Lt(14))}v[E]=$,m=m||$!==N}return m=m||a.length!==Object.keys(p).length,m?v:p}}function jr(){for(var r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];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 zc(){for(var r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(Lt(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=t.map(function(d){return d(s)});return a=jr.apply(void 0,l)(n.dispatch),Pi(Pi({},n),{},{dispatch:a})}}}function Vc(r){var t=function(i){var n=i.dispatch,a=i.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,r):s(l)}}};return t}var jc=Vc();jc.withExtraArgument=Vc;var bs=jc;var Yc=function(){var r=function(t,e){return r=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])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Rf=function(r,t){var e={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(;e;)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 e.label++,{value:p[1],done:!1};case 5:e.label++,n=p[1],p=[0];continue;case 7:p=e.ops.pop(),e.trys.pop();continue;default:if(a=e.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){e=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){e.label=p[1];break}if(p[0]===6&&e.label<a[1]){e.label=a[1],a=p;break}if(a&&e.label<a[2]){e.label=a[2],e.ops.push(p);break}a[2]&&e.ops.pop(),e.trys.pop();continue}p=t.call(r,e)}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}}},Gr=function(r,t){for(var e=0,i=t.length,n=r.length;e<i;e++,n++)r[n]=t[e];return r},_f=Object.defineProperty,Tf=Object.defineProperties,If=Object.getOwnPropertyDescriptors,Gc=Object.getOwnPropertySymbols,Nf=Object.prototype.hasOwnProperty,Pf=Object.prototype.propertyIsEnumerable,Kc=function(r,t,e){return t in r?_f(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e},Ve=function(r,t){for(var e in t||(t={}))Nf.call(t,e)&&Kc(r,e,t[e]);if(Gc)for(var i=0,n=Gc(t);i<n.length;i++){var e=n[i];Pf.call(t,e)&&Kc(r,e,t[e])}return r},vs=function(r,t){return Tf(r,If(t))},$f=function(r,t,e){return new Promise(function(i,n){var a=function(d){try{l(e.next(d))}catch(p){n(p)}},s=function(d){try{l(e.throw(d))}catch(p){n(p)}},l=function(d){return d.done?i(d.value):Promise.resolve(d.value).then(a,s)};l((e=e.apply(r,t)).next())})};var Lf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?jr:jr.apply(null,arguments)},lx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};function kf(r){if(typeof r!="object"||r===null)return!1;var t=Object.getPrototypeOf(r);if(t===null)return!0;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return t===e}var Df=function(r){Yc(t,r);function t(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var n=r.apply(this,e)||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 e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return r.prototype.concat.apply(this,e)},t.prototype.prepend=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return e.length===1&&Array.isArray(e[0])?new(t.bind.apply(t,Gr([void 0],e[0].concat(this)))):new(t.bind.apply(t,Gr([void 0],e.concat(this))))},t}(Array),Mf=function(r){Yc(t,r);function t(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var n=r.apply(this,e)||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 e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return r.prototype.concat.apply(this,e)},t.prototype.prepend=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return e.length===1&&Array.isArray(e[0])?new(t.bind.apply(t,Gr([void 0],e[0].concat(this)))):new(t.bind.apply(t,Gr([void 0],e.concat(this))))},t}(Array);function Os(r){return oe(r)?Ni(r,function(){}):r}function Ff(r){return typeof r=="boolean"}function Bf(){return function(t){return Uf(t)}}function Uf(r){r===void 0&&(r={});var t=r.thunk,e=t===void 0?!0:t,i=r.immutableCheck,n=i===void 0?!0:i,a=r.serializableCheck,s=a===void 0?!0:a,l=new Df;if(e&&(Ff(e)?l.push(bs):l.push(bs.withExtraArgument(e.extraArgument))),0){if(n)var d;if(s)var p}return l}var xs=!0;function Xc(r){var t=Bf(),e=r||{},i=e.reducer,n=i===void 0?void 0:i,a=e.middleware,s=a===void 0?t():a,l=e.devTools,d=l===void 0?!0:l,p=e.preloadedState,h=p===void 0?void 0:p,f=e.enhancers,m=f===void 0?void 0:f,v;if(typeof n=="function")v=n;else if(kf(n))v=Hc(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 S=s;if(typeof S=="function"&&(S=S(t),!xs&&!Array.isArray(S)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!xs&&S.some(function(C){return typeof C!="function"}))throw new Error("each middleware provided to configureStore must be a function");var E=zc.apply(void 0,S),T=jr;d&&(T=Lf(Ve({trace:!xs},typeof d=="object"&&d)));var N=new Mf(E),$=N;Array.isArray(m)?$=Gr([E],m):typeof m=="function"&&($=m(N));var w=T.apply(void 0,$);return gs(v,h,w)}function je(r,t){function e(){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 Ve(Ve({type:r,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:r,payload:i[0]}}return e.toString=function(){return""+r},e.type=r,e.match=function(i){return i.type===r},e}function Jc(r){var t={},e=[],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 e.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return r(n),[t,e,i]}function Wf(r){return typeof r=="function"}function Hf(r,t,e,i){e===void 0&&(e=[]);var n=typeof t=="function"?Jc(t):[t,e,i],a=n[0],s=n[1],l=n[2],d;if(Wf(r))d=function(){return Os(r())};else{var p=Os(r);d=function(){return p}}function h(f,m){f===void 0&&(f=d());var v=Gr([a[m.type]],s.filter(function(S){var E=S.matcher;return E(m)}).map(function(S){var E=S.reducer;return E}));return v.filter(function(S){return!!S}).length===0&&(v=[l]),v.reduce(function(S,E){if(E)if(Ie(S)){var T=S,N=E(T,m);return N===void 0?S:N}else{if(oe(S))return Ni(S,function($){return E($,m)});var N=E(S,m);if(N===void 0){if(S===null)return S;throw Error("A case reducer on a non-draftable value must not return undefined")}return N}return S},f)}return h.getInitialState=d,h}function zf(r,t){return r+"/"+t}function Qc(r){var t=r.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var e=typeof r.initialState=="function"?r.initialState:Os(r.initialState),i=r.reducers||{},n=Object.keys(i),a={},s={},l={};n.forEach(function(h){var f=i[h],m=zf(t,h),v,S;"reducer"in f?(v=f.reducer,S=f.prepare):v=f,a[h]=v,s[m]=v,l[h]=S?je(m,S):je(m)});function d(){var h=typeof r.extraReducers=="function"?Jc(r.extraReducers):[r.extraReducers],f=h[0],m=f===void 0?{}:f,v=h[1],S=v===void 0?[]:v,E=h[2],T=E===void 0?void 0:E,N=Ve(Ve({},m),s);return Hf(e,function($){for(var w in N)$.addCase(w,N[w]);for(var C=0,A=S;C<A.length;C++){var k=A[C];$.addMatcher(k.matcher,k.reducer)}T&&$.addDefaultCase(T)})}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 Vf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",jf=function(r){r===void 0&&(r=21);for(var t="",e=r;e--;)t+=Vf[Math.random()*64|0];return t},Gf=["name","message","stack","code"],Ss=function(){function r(t,e){this.payload=t,this.meta=e}return r}(),Zc=function(){function r(t,e){this.payload=t,this.meta=e}return r}(),Kf=function(r){if(typeof r=="object"&&r!==null){for(var t={},e=0,i=Gf;e<i.length;e++){var n=i[e];typeof r[n]=="string"&&(t[n]=r[n])}return t}return{message:String(r)}},ux=function(){function r(t,e,i){var n=je(t+"/fulfilled",function(h,f,m,v){return{payload:h,meta:vs(Ve({},v||{}),{arg:m,requestId:f,requestStatus:"fulfilled"})}}),a=je(t+"/pending",function(h,f,m){return{payload:void 0,meta:vs(Ve({},m||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=je(t+"/rejected",function(h,f,m,v,S){return{payload:v,error:(i&&i.serializeError||Kf)(h||"Rejected"),meta:vs(Ve({},S||{}),{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 S=i?.idGenerator?i.idGenerator(h):jf(),E=new d,T,N=!1;function $(C){T=C,E.abort()}var w=function(){return $f(this,null,function(){var C,A,k,z,J,q,F;return Rf(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),z=(C=i?.condition)==null?void 0:C.call(i,h,{getState:m,extra:v}),qf(z)?[4,z]:[3,2];case 1:z=y.sent(),y.label=2;case 2:if(z===!1||E.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return N=!0,J=new Promise(function(O,D){return E.signal.addEventListener("abort",function(){return D({name:"AbortError",message:T||"Aborted"})})}),f(a(S,h,(A=i?.getPendingMeta)==null?void 0:A.call(i,{requestId:S,arg:h},{getState:m,extra:v}))),[4,Promise.race([J,Promise.resolve(e(h,{dispatch:f,getState:m,extra:v,requestId:S,signal:E.signal,abort:$,rejectWithValue:function(O,D){return new Ss(O,D)},fulfillWithValue:function(O,D){return new Zc(O,D)}})).then(function(O){if(O instanceof Ss)throw O;return O instanceof Zc?n(O.payload,S,h,O.meta):n(O,S,h)})])];case 3:return k=y.sent(),[3,5];case 4:return q=y.sent(),k=q instanceof Ss?s(null,S,h,q.payload,q.meta):s(q,S,h),[3,5];case 5:return F=i&&!i.dispatchConditionRejection&&s.match(k)&&k.meta.condition,F||f(k),[2,k]}})})}();return Object.assign(w,{abort:$,requestId:S,arg:h,unwrap:function(){return w.then(Zf)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:n,typePrefix:t})}return r.withTypes=function(){return r},r}();function Zf(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function qf(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var td="listener",ed="completed",rd="cancelled",fx="task-"+rd,hx="task-"+ed,mx=td+"-"+rd,yx=td+"-"+ed;var Cs="listenerMiddleware";var gx=je(Cs+"/add"),bx=je(Cs+"/removeAll"),vx=je(Cs+"/remove");var qc,xx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(qc||(qc=Promise.resolve())).then(r).catch(function(t){return setTimeout(function(){throw t},0)})},Yf=function(r){return function(t){setTimeout(t,r)}},Sx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Yf(10);Mc();window.ftReduxStores||(window.ftReduxStores={});var Ne=class r extends hr{static get(t){var e;let i=typeof t=="string"?t:t.name,n=typeof t=="string"?void 0:t,a=window.ftReduxStores[i];if(Or(a))return a;if(n==null)return;let s=Qc({...n,reducers:(e=n.reducers)!==null&&e!==void 0?e:{}}),l=Xc({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 r(s,l)}constructor(t,e){super(),this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.commands=new Mo;let i=n=>n!=null?JSON.parse(JSON.stringify(n)):n;this.actions=new Proxy(this.reduxSlice.actions,{get:(n,a,s)=>{let l=a,d=n[l];return d?(...p)=>{let h=d(...p.map(i));return this.reduxStore.dispatch(h),h}:p=>{this.setState({[l]:i(p)})}}})}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 Xf(){var r;for(let t of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))Or(t)&&t.clear()}var Li=class{constructor(t,e,i){this.store=t,this.valueSelector=e,this.callback=i}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let t=this.store.getState(),e=this.valueSelector(t);mr(this.lastValue,e)&&(this.callback(e,t),this.lastValue=e)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function Jf(r,t,e){return new Li(r,t,e).watch()}var Rs={};ot(Rs,{scrollHelper:()=>Qf});var ws,ki=new Map,As=class{lock(t,e){if(e){let i=ki.get(e);if(i==null||i===t)return ki.set(e,t),e}}release(t,e){e&&ki.get(e)===t&&ki.delete(e)}findFirstScrollableParent(t){var e;let i,n;for(let a of qn(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(e=i??n)!==null&&e!==void 0?e:document.body}elementCanScroll(t){try{return["auto","scroll"].includes(getComputedStyle(t).overflowY)}catch{return!1}}getAbsoluteScrollOffset(t,e){var i,n;let a=0;for(;e&&e.offsetParent!==t.offsetParent;)a+=(i=e.offsetTop)!==null&&i!==void 0?i:0,e=e.offsetParent;return a+((n=e?.offsetTop)!==null&&n!==void 0?n:0)-t.offsetTop}computeTopOffsetRatio(t,e){if(typeof t=="number")return t;switch(t){case"end":return 1;case"center":return .5;case"nearest":return e;default:return 0}}scrollIntoViewIfPossible(t,e){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=Co(0,(s-i.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(e?.position,l)*(a-s)+s;i.scrollTo({behavior:e?.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=(ws=window.FluidTopicsScrollHelper)!==null&&ws!==void 0?ws:new As;var Qf=window.FluidTopicsScrollHelper;var _s={};ot(_s,{shadowQuerySelector:()=>th,shadowQuerySelectorAll:()=>eh});function th(r,t,...e){var i;let n=r.querySelector(t);for(let a of e)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}function eh(r,t,...e){let i=[...r.querySelectorAll(t)];for(let n of e)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 Ts={};ot(Ts,{SearchPlaceConverter:()=>zo,SearchPlaceQueryParams:()=>it,isSearchPlaceQueryParams:()=>Rd,serializeRequest:()=>nh});var oh=_p(id(),1);var nd;(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(nd||(nd={}));var ad;(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(ad||(ad={}));var sd;(function(r){r.THIRD_PARTY="THIRD_PARTY",r.OFF_THE_GRID="OFF_THE_GRID",r.CONTENT_PACKAGER="CONTENT_PACKAGER",r.PAGES="PAGES",r.DESIGNED_READER="DESIGNED_READER"})(sd||(sd={}));var ld;(function(r){r.HOMEPAGE="HOMEPAGE",r.CUSTOM="CUSTOM",r.HEADER="HEADER",r.READER="READER",r.TOPIC_TEMPLATE="TOPIC_TEMPLATE",r.SEARCH="SEARCH",r.SEARCH_RESULT="SEARCH_RESULT"})(ld||(ld={}));var cd;(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(cd||(cd={}));var dd;(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(dd||(dd={}));var pd;(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(pd||(pd={}));var Ot;(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(Ot||(Ot={}));var ud;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR",r.CUSTOM="CUSTOM"})(ud||(ud={}));var fd;(function(r){r.ASC="ASC",r.DESC="DESC"})(fd||(fd={}));var hd;(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(hd||(hd={}));var md;(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(md||(md={}));var Sd=r=>["EVERYWHERE","TITLE_ONLY","NONE"].includes(r);var yd;(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK"})(yd||(yd={}));var gd;(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(gd||(gd={}));var bd;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK"})(bd||(bd={}));var Ho;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(Ho||(Ho={}));var Od=r=>["LAST_WEEK","LAST_MONTH","LAST_QUARTER","LAST_YEAR"].includes(r);var vd;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC"})(vd||(vd={}));var xd;(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS",r.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(xd||(xd={}));var st;(function(r){r.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",r.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",r.HTML_EXPORT_USER="HTML_EXPORT_USER",r.PDF_EXPORT_USER="PDF_EXPORT_USER",r.SAVED_SEARCH_USER="SAVED_SEARCH_USER",r.COLLECTION_USER="COLLECTION_USER",r.OFFLINE_USER="OFFLINE_USER",r.ANALYTICS_USER="ANALYTICS_USER",r.BETA_USER="BETA_USER",r.DEBUG_USER="DEBUG_USER",r.PRINT_USER="PRINT_USER",r.RATING_USER="RATING_USER",r.FEEDBACK_USER="FEEDBACK_USER",r.GENERATIVE_AI_USER="GENERATIVE_AI_USER",r.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",r.CONTENT_PUBLISHER="CONTENT_PUBLISHER",r.KHUB_ADMIN="KHUB_ADMIN",r.USERS_ADMIN="USERS_ADMIN",r.PORTAL_ADMIN="PORTAL_ADMIN",r.ADMIN="ADMIN",r.DEVELOPER="DEVELOPER"})(st||(st={}));var Cd;(function(r){r.VALID="VALID",r.INVALID="INVALID"})(Cd||(Cd={}));var Ed;(function(r){r.TEXT="TEXT",r.HTML="HTML"})(Ed||(Ed={}));var rh={[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 wd(r,t){return r===t||(rh[r]??[]).some(e=>wd(e,t))}function wr(r,t){return r==null?!1:(Array.isArray(r)?r:Array.isArray(r.roles)?r.roles:Array.isArray(r.profile?.roles)?r.profile.roles:[]).some(i=>wd(i,t))}function ih(r){return`"${r}"`}function Ad(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function nh(r,t){return new zo(r).serialize(t)}var it;(function(r){r.LOCALE="content-lang",r.QUERY="query",r.SCOPE="scope",r.FILTERS="filters",r.VIRTUAL_FIELD="virtual-field",r.PERIOD="period",r.VALUE_FILTERS="value-filters",r.DATE_FILTERS="date-filters",r.RANGE_FILTERS="range-filters",r.SORT="sort",r.PER_PAGE="per-page"})(it||(it={}));var ah=new Set(Object.values(it));function Rd(r){return ah.has(r)}var zo=class{constructor(t,e={},i=20,n=!1,a="en-US"){this.baseUrl=t,this.predefinedSorts=e,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,e){return this.serializeToCurrentPageIfPossible(t,e??"/search")}serializeToCurrentPageIfPossible(t,e){let i=this.toURLSearchParams(t).toString(),n=e==null||e.trim().length===0,a=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${e}`);return a.search=i,a.toString()}toURLSearchParams(t,e=!1){var i,n,a,s,l,d,p,h,f,m,v,S;let E=new URLSearchParams;t.contentLocale?(!e||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 T=(s=(a=t.metadataFilters)===null||a===void 0?void 0:a.filter(C=>C.valueFilter))!==null&&s!==void 0?s:[];if(T.length>0){let C=T.map(A=>{var k,z;let J=((z=(k=A.valueFilter)===null||k===void 0?void 0:k.values)!==null&&z!==void 0?z:[]).map(q=>this.escapeFilters(q)).map(q=>encodeURIComponent(ih(Ad(q)))).join("_");return`${A.key}~${J}`}).join("*");E.append(it.VALUE_FILTERS,C)}let N=(d=(l=t.metadataFilters)===null||l===void 0?void 0:l.filter(C=>C.dateFilter))!==null&&d!==void 0?d:[];if(N.length>0){let C=N.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,C)}let $=(h=(p=t.metadataFilters)===null||p===void 0?void 0:p.filter(C=>C.rangeFilter))!==null&&h!==void 0?h:[];if($.length>0){let C=$.map(A=>{var k,z;return`${A.key}~${(k=A.rangeFilter)===null||k===void 0?void 0:k.from}_${(z=A.rangeFilter)===null||z===void 0?void 0:z.to}`}).join("*");E.append(it.RANGE_FILTERS,C)}let w=(f=t.otherQueryParams)!==null&&f!==void 0?f:{};for(let C in w)E.append(C,w[C]);return!((m=t.paging)===null||m===void 0)&&m.perPage&&((S=(v=t.paging)===null||v===void 0?void 0:v.perPage)!==null&&S!==void 0?S:this.defaultPerPage)!=this.defaultPerPage&&E.append(it.PER_PAGE,String(t.paging.perPage)),E}parse(t){var e;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:(e=this.scopeMapping[a])!==null&&e!==void 0?e:n.scope}}fromURLSearchParams(t){var e,i,n,a,s,l,d,p;let h=t.get(it.LOCALE)==="all"?void 0:t.get(it.LOCALE),f=((e=t.get(it.VIRTUAL_FIELD))!==null&&e!==void 0?e:"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",S=+((a=t.get(it.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),E={};for(let T of t.keys())Rd(T)||(E[T]=t.get(T));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:Sd(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:Co(1,isNaN(S)?this.defaultPerPage:S,1e3)},otherQueryParams:E}}parseCompatFilters(t){var e,i,n,a,s,l;let d=[];return t.has(it.FILTERS)&&(d=this.parseValueFilters((e=t.get(it.FILTERS))!==null&&e!==void 0?e:"")),(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(e=>e.split("~"))}parseValueFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(e=>({key:e[0],valueFilter:{values:e[1].split("_").map(Ad).map(i=>this.unescapeFilterValue(i)),negative:!1}}))}parseDateFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(e=>({key:e[0],dateFilter:{type:Ho[e[1].toUpperCase()]}}))}parseRangeFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(e=>({key:e[0],rangeFilter:{from:e[1].split("_")[0],to:e[1].split("_")[1]}}))}escapeFilters(t){for(let[e,i,n]of this.filtersEscapeMapping)t=t.replaceAll(e,i);return t}superEscapeFilters(t){for(let[e,i,n]of this.filtersEscapeMapping)t=t.replaceAll(i,n);return t}unescapeFilterValue(t){for(let[e,i,n]of this.filtersEscapeMapping)t=t.replace(n,e);return t}parseLegacyPeriodFilter(t){if(Od(t))return[{key:"ft:lastEdition",dateFilter:{type:Ho[t]}}];if(t.startsWith("CUSTOM_")){let[e,i,n]=t.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:i,to:n}}]}return[]}};var Is={};ot(Is,{toFtFormComponent:()=>Ar});var Fi=Symbol("elementInternals");function Ar(r,t){class e extends r{static get formAssociated(){return!0}get form(){return this[Fi].form}constructor(...n){super(n),this[Fi]=this.attachInternals(),this[Fi].role=t}setFormValue(n){this[Fi].setFormValue(n)}}return e}var Ns={};ot(Ns,{DateFormatter:()=>Zr});var Zr=class{static format(t,e,i,n){return window.moment?window.moment(t).locale(e).format(this.getDateFormat(i,n)):t}static getDateFormat(t,e){return t?e?"lll":"ll":e?"L LT":"L"}};var Ps,$s,Ls,ks,Vo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Ls=($s=(Ps=window.safari)===null||Ps===void 0?void 0:Ps.pushNotification)===null||$s===void 0?void 0:$s.toString())!==null&&Ls!==void 0?Ls:"")==="[object SafariRemoteNotification]",sh="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(ks=window.ftGlobals)!==null&&ks!==void 0?ks:{lit:Nn,litDecorators:$n,litRepeat:kn,litClassMap:Dn,litStyleMap:Mn,litUnsafeHTML:Bn,wcUtils:{...jn,...Wn,...Gn,...Ns,...Kn,...Xn,...Aa,...Vn,...Ha,...wa,...Ga,...Va,...Oc,...Yn,...qa,...Xa,...Ec,...Ja,...Es,...za,...Rs,..._s,...Ts,...Is,isSafari:Vo,isTouchScreen:sh,setVariable:x}};var Xt;(function(r){r.FEEDBACK="FEEDBACK",r.RATING="RATING",r.PRINT="PRINT",r.BOOKMARK="BOOKMARK",r.COLLECTIONS="COLLECTIONS",r.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Xt||(Xt={}));var lh=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Ms=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Ds=Symbol("registerInterval");function ch(r){var t;class e extends r{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[Ds]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Ds]):this.dispatchEvent(new Ms)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=Ds,lh([W()],e.prototype,"stateManager",void 0),e}var Ke=class extends ch(qt){};var _d=o.extend("--ft-ripple-color","",_.colorContent),R={color:_d,backgroundColor:o.extend("--ft-ripple-background-color","",_d),opacityContentOnSurfacePressed:o.external(_.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.external(_.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.external(_.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.external(_.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.create("--ft-ripple-border-radius","","SIZE","0px")},Td=o.extend("--ft-ripple-color","",_.colorPrimary),Id={color:Td,backgroundColor:o.extend("--ft-ripple-background-color","",Td)},Nd=o.extend("--ft-ripple-color","",_.colorSecondary),Pd={color:Nd,backgroundColor:o.extend("--ft-ripple-background-color","",Nd)},$d=L`
|
|
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=$`
|
|
51
51
|
:host {
|
|
52
52
|
display: contents;
|
|
53
53
|
}
|
|
@@ -60,7 +60,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
60
60
|
|
|
61
61
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
62
62
|
overflow: hidden;
|
|
63
|
-
border-radius: ${
|
|
63
|
+
border-radius: ${_.borderRadius};
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
.ft-ripple .ft-ripple--background,
|
|
@@ -94,27 +94,27 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
.ft-ripple .ft-ripple--background {
|
|
97
|
-
background-color: ${
|
|
97
|
+
background-color: ${_.backgroundColor};
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
.ft-ripple .ft-ripple--effect {
|
|
101
|
-
background-color: ${
|
|
101
|
+
background-color: ${_.color};
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
105
|
-
background-color: ${
|
|
105
|
+
background-color: ${Md.backgroundColor};
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
109
|
-
background-color: ${
|
|
109
|
+
background-color: ${Md.color};
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
113
|
-
background-color: ${
|
|
113
|
+
background-color: ${$d.backgroundColor};
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
117
|
-
background-color: ${
|
|
117
|
+
background-color: ${$d.color};
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
.ft-ripple .ft-ripple--background {
|
|
@@ -144,23 +144,23 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
147
|
-
opacity: ${
|
|
147
|
+
opacity: ${_.opacityContentOnSurfaceHover};
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
151
|
-
opacity: ${
|
|
151
|
+
opacity: ${_.opacityContentOnSurfaceSelected};
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
155
|
-
opacity: ${
|
|
155
|
+
opacity: ${_.opacityContentOnSurfaceFocused};
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
159
|
-
opacity: ${
|
|
159
|
+
opacity: ${_.opacityContentOnSurfacePressed};
|
|
160
160
|
transform: translate(-50%, -50%) scale(1);
|
|
161
161
|
}
|
|
162
|
-
`;function
|
|
163
|
-
.ft-typography--${
|
|
162
|
+
`;function Bd(e){let t=_o[e];return $`
|
|
163
|
+
.ft-typography--${Oe(e)} {
|
|
164
164
|
font-family: ${t.fontFamily};
|
|
165
165
|
font-size: ${t.fontSize};
|
|
166
166
|
font-weight: ${t.fontWeight};
|
|
@@ -168,17 +168,8 @@ 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
|
|
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=$`
|
|
172
172
|
.ft-typography--title {
|
|
173
|
-
font-family: ${Ze.fontFamily};
|
|
174
|
-
font-size: ${Ze.fontSize};
|
|
175
|
-
font-weight: ${Ze.fontWeight};
|
|
176
|
-
letter-spacing: ${Ze.letterSpacing};
|
|
177
|
-
line-height: ${Ze.lineHeight};
|
|
178
|
-
text-transform: ${Ze.textTransform};
|
|
179
|
-
}
|
|
180
|
-
`,Md=L`
|
|
181
|
-
.ft-typography--title-dense {
|
|
182
173
|
font-family: ${qe.fontFamily};
|
|
183
174
|
font-size: ${qe.fontSize};
|
|
184
175
|
font-weight: ${qe.fontWeight};
|
|
@@ -186,54 +177,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
186
177
|
line-height: ${qe.lineHeight};
|
|
187
178
|
text-transform: ${qe.textTransform};
|
|
188
179
|
}
|
|
189
|
-
`,
|
|
180
|
+
`,Hd=$`
|
|
181
|
+
.ft-typography--title-dense {
|
|
182
|
+
font-family: ${Ye.fontFamily};
|
|
183
|
+
font-size: ${Ye.fontSize};
|
|
184
|
+
font-weight: ${Ye.fontWeight};
|
|
185
|
+
letter-spacing: ${Ye.letterSpacing};
|
|
186
|
+
line-height: ${Ye.lineHeight};
|
|
187
|
+
text-transform: ${Ye.textTransform};
|
|
188
|
+
}
|
|
189
|
+
`,zd=$`
|
|
190
190
|
.ft-typography--subtitle1 {
|
|
191
|
-
font-family: ${qr.fontFamily};
|
|
192
|
-
font-size: ${qr.fontSize};
|
|
193
|
-
font-weight: ${qr.fontWeight};
|
|
194
|
-
letter-spacing: ${qr.letterSpacing};
|
|
195
|
-
line-height: ${qr.lineHeight};
|
|
196
|
-
text-transform: ${qr.textTransform};
|
|
197
|
-
}
|
|
198
|
-
`,Bd=L`
|
|
199
|
-
.ft-typography--subtitle2 {
|
|
200
|
-
font-family: ${Yr.fontFamily};
|
|
201
|
-
font-size: ${Yr.fontSize};
|
|
202
|
-
font-weight: ${Yr.fontWeight};
|
|
203
|
-
letter-spacing: ${Yr.letterSpacing};
|
|
204
|
-
line-height: ${Yr.lineHeight};
|
|
205
|
-
text-transform: ${Yr.textTransform};
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
`,to=L`
|
|
209
|
-
.ft-typography--body1 {
|
|
210
|
-
font-family: ${Jt.fontFamily};
|
|
211
|
-
font-size: ${Jt.fontSize};
|
|
212
|
-
font-weight: ${Jt.fontWeight};
|
|
213
|
-
letter-spacing: ${Jt.letterSpacing};
|
|
214
|
-
line-height: ${Jt.lineHeight};
|
|
215
|
-
text-transform: ${Jt.textTransform};
|
|
216
|
-
}
|
|
217
|
-
`,Ud=L`
|
|
218
|
-
.ft-typography--body2 {
|
|
219
|
-
font-family: ${Xr.fontFamily};
|
|
220
|
-
font-size: ${Xr.fontSize};
|
|
221
|
-
font-weight: ${Xr.fontWeight};
|
|
222
|
-
letter-spacing: ${Xr.letterSpacing};
|
|
223
|
-
line-height: ${Xr.lineHeight};
|
|
224
|
-
text-transform: ${Xr.textTransform};
|
|
225
|
-
}
|
|
226
|
-
`,Bi=L`
|
|
227
|
-
.ft-typography--caption {
|
|
228
|
-
font-family: ${ie.fontFamily};
|
|
229
|
-
font-size: ${ie.fontSize};
|
|
230
|
-
font-weight: ${ie.fontWeight};
|
|
231
|
-
letter-spacing: ${ie.letterSpacing};
|
|
232
|
-
line-height: ${ie.lineHeight};
|
|
233
|
-
text-transform: ${ie.textTransform};
|
|
234
|
-
}
|
|
235
|
-
`,Wd=L`
|
|
236
|
-
.ft-typography--breadcrumb {
|
|
237
191
|
font-family: ${Jr.fontFamily};
|
|
238
192
|
font-size: ${Jr.fontSize};
|
|
239
193
|
font-weight: ${Jr.fontWeight};
|
|
@@ -241,8 +195,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
241
195
|
line-height: ${Jr.lineHeight};
|
|
242
196
|
text-transform: ${Jr.textTransform};
|
|
243
197
|
}
|
|
244
|
-
`,
|
|
245
|
-
.ft-typography--
|
|
198
|
+
`,Vd=$`
|
|
199
|
+
.ft-typography--subtitle2 {
|
|
246
200
|
font-family: ${Qr.fontFamily};
|
|
247
201
|
font-size: ${Qr.fontSize};
|
|
248
202
|
font-weight: ${Qr.fontWeight};
|
|
@@ -250,7 +204,53 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
250
204
|
line-height: ${Qr.lineHeight};
|
|
251
205
|
text-transform: ${Qr.textTransform};
|
|
252
206
|
}
|
|
253
|
-
|
|
207
|
+
|
|
208
|
+
`,oo=$`
|
|
209
|
+
.ft-typography--body1 {
|
|
210
|
+
font-family: ${Qt.fontFamily};
|
|
211
|
+
font-size: ${Qt.fontSize};
|
|
212
|
+
font-weight: ${Qt.fontWeight};
|
|
213
|
+
letter-spacing: ${Qt.letterSpacing};
|
|
214
|
+
line-height: ${Qt.lineHeight};
|
|
215
|
+
text-transform: ${Qt.textTransform};
|
|
216
|
+
}
|
|
217
|
+
`,jd=$`
|
|
218
|
+
.ft-typography--body2 {
|
|
219
|
+
font-family: ${to.fontFamily};
|
|
220
|
+
font-size: ${to.fontSize};
|
|
221
|
+
font-weight: ${to.fontWeight};
|
|
222
|
+
letter-spacing: ${to.letterSpacing};
|
|
223
|
+
line-height: ${to.lineHeight};
|
|
224
|
+
text-transform: ${to.textTransform};
|
|
225
|
+
}
|
|
226
|
+
`,Bi=$`
|
|
227
|
+
.ft-typography--caption {
|
|
228
|
+
font-family: ${se.fontFamily};
|
|
229
|
+
font-size: ${se.fontSize};
|
|
230
|
+
font-weight: ${se.fontWeight};
|
|
231
|
+
letter-spacing: ${se.letterSpacing};
|
|
232
|
+
line-height: ${se.lineHeight};
|
|
233
|
+
text-transform: ${se.textTransform};
|
|
234
|
+
}
|
|
235
|
+
`,Gd=$`
|
|
236
|
+
.ft-typography--breadcrumb {
|
|
237
|
+
font-family: ${eo.fontFamily};
|
|
238
|
+
font-size: ${eo.fontSize};
|
|
239
|
+
font-weight: ${eo.fontWeight};
|
|
240
|
+
letter-spacing: ${eo.letterSpacing};
|
|
241
|
+
line-height: ${eo.lineHeight};
|
|
242
|
+
text-transform: ${eo.textTransform};
|
|
243
|
+
}
|
|
244
|
+
`,Kd=$`
|
|
245
|
+
.ft-typography--overline {
|
|
246
|
+
font-family: ${ro.fontFamily};
|
|
247
|
+
font-size: ${ro.fontSize};
|
|
248
|
+
font-weight: ${ro.fontWeight};
|
|
249
|
+
letter-spacing: ${ro.letterSpacing};
|
|
250
|
+
line-height: ${ro.lineHeight};
|
|
251
|
+
text-transform: ${ro.textTransform};
|
|
252
|
+
}
|
|
253
|
+
`,Zd=$`
|
|
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
|
-
`,
|
|
262
|
+
`,qd=$`
|
|
263
263
|
.ft-typography {
|
|
264
264
|
vertical-align: inherit;
|
|
265
265
|
}
|
|
266
|
-
`,
|
|
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=$`
|
|
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")},
|
|
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=$`
|
|
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
|
|
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=[$`
|
|
384
384
|
:host {
|
|
385
385
|
display: inline-block;
|
|
386
386
|
max-width: 100%;
|
|
@@ -423,8 +423,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
423
423
|
|
|
424
424
|
--ft-button-internal-line-height: max(calc(${ct.fontSize} + 2px), ${ct.iconSize});
|
|
425
425
|
--ft-button-internal-color: ${ct.color};
|
|
426
|
-
${
|
|
427
|
-
${
|
|
426
|
+
${S(Et.size,ct.iconSize)};
|
|
427
|
+
${S(_.color,ct.rippleColor)};
|
|
428
428
|
|
|
429
429
|
border-radius: ${ct.borderRadius};
|
|
430
430
|
padding: ${ct.verticalPadding} ${ct.horizontalPadding};
|
|
@@ -439,13 +439,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
439
439
|
}
|
|
440
440
|
|
|
441
441
|
.ft-button.ft-button--dense {
|
|
442
|
-
padding: ${
|
|
443
|
-
border-radius: ${
|
|
444
|
-
gap: ${
|
|
442
|
+
padding: ${be.verticalPadding} ${be.horizontalPadding};
|
|
443
|
+
border-radius: ${be.borderRadius};
|
|
444
|
+
gap: ${be.iconPadding};
|
|
445
445
|
}
|
|
446
446
|
|
|
447
447
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
448
|
-
padding: calc(${
|
|
448
|
+
padding: calc(${be.verticalPadding} - 1px) calc(${be.horizontalPadding} - 1px);
|
|
449
449
|
}
|
|
450
450
|
|
|
451
451
|
.ft-button:not([disabled]):hover {
|
|
@@ -457,7 +457,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
457
457
|
}
|
|
458
458
|
|
|
459
459
|
.ft-button--round.ft-button--dense {
|
|
460
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
460
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${be.verticalPadding});
|
|
461
461
|
}
|
|
462
462
|
|
|
463
463
|
.ft-button[disabled] {
|
|
@@ -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: ${
|
|
470
|
-
--ft-button-internal-color: ${
|
|
471
|
-
${
|
|
469
|
+
background-color: ${Ws.backgroundColor};
|
|
470
|
+
--ft-button-internal-color: ${Ws.color};
|
|
471
|
+
${S(_.color,Ws.rippleColor)};
|
|
472
472
|
}
|
|
473
473
|
|
|
474
474
|
.ft-button:focus {
|
|
@@ -482,12 +482,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
482
482
|
text-overflow: ellipsis;
|
|
483
483
|
display: block;
|
|
484
484
|
margin: 0 ${ct.iconPadding};
|
|
485
|
-
${
|
|
486
|
-
${
|
|
485
|
+
${S(Bt.fontSize,"1em")};
|
|
486
|
+
${S(Bt.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
487
487
|
}
|
|
488
488
|
|
|
489
489
|
.ft-button--dense .ft-button--label {
|
|
490
|
-
margin: 0 ${
|
|
490
|
+
margin: 0 ${be.iconPadding};
|
|
491
491
|
}
|
|
492
492
|
|
|
493
493
|
.ft-button--label[hidden] {
|
|
@@ -505,8 +505,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
505
505
|
}
|
|
506
506
|
|
|
507
507
|
.ft-button--dense .ft-button--label[hidden] + [part="icon"] {
|
|
508
|
-
margin: 0 calc(${
|
|
509
|
-
padding: 0 ${
|
|
508
|
+
margin: 0 calc(${be.horizontalPadding} * -1);
|
|
509
|
+
padding: 0 ${be.verticalPadding};
|
|
510
510
|
}
|
|
511
511
|
|
|
512
512
|
.ft-button:not(.ft-button--trailing-icon) [part="label"]{
|
|
@@ -514,10 +514,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
514
514
|
}
|
|
515
515
|
|
|
516
516
|
ft-loader {
|
|
517
|
-
${
|
|
518
|
-
${
|
|
517
|
+
${S(ut.size,ct.iconSize)};
|
|
518
|
+
${S(ut.color,"var(--ft-button-internal-color)")};
|
|
519
519
|
}
|
|
520
|
-
`,
|
|
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=$`
|
|
521
521
|
.ft-reader-feedback {
|
|
522
522
|
box-sizing: border-box;
|
|
523
523
|
display: flex;
|
|
@@ -530,7 +530,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
530
530
|
flex-direction: row;
|
|
531
531
|
align-items: center;
|
|
532
532
|
margin-left: -6px;
|
|
533
|
-
${
|
|
533
|
+
${S(ct.backgroundColor,ve.starsBackgroundColor)}
|
|
534
534
|
}
|
|
535
535
|
|
|
536
536
|
.ft-reader-feedback--rating, .ft-reader-feedback--feedback {
|
|
@@ -543,14 +543,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
543
543
|
}
|
|
544
544
|
|
|
545
545
|
.ft-reader-feedback--rating {
|
|
546
|
-
${
|
|
547
|
-
${
|
|
548
|
-
${
|
|
549
|
-
${
|
|
546
|
+
${S(ct.color,ve.emptyRatingColor)};
|
|
547
|
+
${S(ct.rippleColor,ve.filledRatingColor)};
|
|
548
|
+
${S(yt.textColor,ve.emptyRatingColor)};
|
|
549
|
+
${S(yt.selectedTextColor,ve.filledRatingColor)};
|
|
550
550
|
}
|
|
551
551
|
|
|
552
552
|
.ft-reader-feedback--rating .ft-reader-feedback--active {
|
|
553
|
-
${
|
|
553
|
+
${S(ct.color,ve.filledRatingColor)};
|
|
554
554
|
}
|
|
555
555
|
|
|
556
556
|
.ft-reader-feedback--feedback {
|
|
@@ -558,41 +558,41 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
558
558
|
}
|
|
559
559
|
|
|
560
560
|
.ft-reader-feedback--rating-date {
|
|
561
|
-
color: ${
|
|
561
|
+
color: ${ve.ratedDateColor};
|
|
562
562
|
}
|
|
563
563
|
|
|
564
564
|
.ft-reader-feedback--feedback ft-text-area {
|
|
565
|
-
min-width: ${
|
|
565
|
+
min-width: ${ve.feedbackInputMinWidth};
|
|
566
566
|
}
|
|
567
567
|
|
|
568
568
|
.ft-reader-feedback--send-feedback, .ft-reader-feedback--feedback-link {
|
|
569
|
-
${
|
|
570
|
-
${
|
|
569
|
+
${S(ct.color,ve.sendFeedbackColor)};
|
|
570
|
+
${S(ct.backgroundColor,ve.sendFeedbackBackgroundColor)};
|
|
571
571
|
}
|
|
572
572
|
|
|
573
573
|
[part="buttons-container"] {
|
|
574
574
|
align-self: flex-end;
|
|
575
575
|
}
|
|
576
|
-
`;var
|
|
577
|
-
<${
|
|
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)}
|
|
578
578
|
part="text"
|
|
579
579
|
class="ft-typography ft-typography--${this.variant}">
|
|
580
580
|
<slot></slot>
|
|
581
|
-
</${
|
|
582
|
-
`:
|
|
581
|
+
</${Hs(this.element)}>
|
|
582
|
+
`:zs`
|
|
583
583
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
584
|
-
`}};xt.styles=[
|
|
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`
|
|
585
585
|
<style>
|
|
586
586
|
.ft-ripple .ft-ripple--effect {
|
|
587
587
|
left: ${this.originX}px;
|
|
588
588
|
top: ${this.originY}px;
|
|
589
589
|
}
|
|
590
590
|
</style>
|
|
591
|
-
<div class="${
|
|
591
|
+
<div class="${Rt(t)}">
|
|
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
|
|
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=$`
|
|
596
596
|
.ft-tooltip--container {
|
|
597
597
|
display: block;
|
|
598
598
|
}
|
|
@@ -607,21 +607,21 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
607
607
|
box-sizing: border-box;
|
|
608
608
|
overflow: hidden;
|
|
609
609
|
width: max-content;
|
|
610
|
-
max-width: ${
|
|
610
|
+
max-width: ${io.maxWidth};
|
|
611
611
|
text-align: center;
|
|
612
|
-
padding: ${
|
|
613
|
-
z-index: ${
|
|
612
|
+
padding: ${io.distance};
|
|
613
|
+
z-index: ${io.zIndex};
|
|
614
614
|
}
|
|
615
615
|
|
|
616
616
|
.ft-tooltip--content {
|
|
617
617
|
padding: 4px 8px;
|
|
618
|
-
border-radius: ${
|
|
619
|
-
background-color: ${
|
|
620
|
-
color: ${
|
|
618
|
+
border-radius: ${io.borderRadiusS};
|
|
619
|
+
background-color: ${io.backgroundColor};
|
|
620
|
+
color: ${io.color};
|
|
621
621
|
position: relative;
|
|
622
622
|
word-break: break-word;
|
|
623
623
|
}
|
|
624
|
-
`;var
|
|
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`
|
|
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(e=>t.has(e))&&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(e=>e.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="",Ua(this.slottedElement,this.tooltip,this.position).then(({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",t=>{t.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}};ft.elementDefinitions={"ft-typography":xt};ft.styles=rp;Vt([g()],ft.prototype,"text",void 0);Vt([g({type:Boolean})],ft.prototype,"manual",void 0);Vt([g({type:Boolean})],ft.prototype,"inline",void 0);Vt([g({type:Number})],ft.prototype,"delay",void 0);Vt([g()],ft.prototype,"position",void 0);Vt([vo()],ft.prototype,"slotNodes",void 0);Vt([Y(".ft-tooltip--container")],ft.prototype,"container",void 0);Vt([Y(".ft-tooltip")],ft.prototype,"tooltip",void 0);Vt([Y(".ft-tooltip--content")],ft.prototype,"tooltipContent",void 0);Vt([W()],ft.prototype,"visible",void 0);Vt([Ee({passive:!0})],ft.prototype,"onTouch",null);Vt([Ee({passive:!0})],ft.prototype,"onHover",null);Vt([Ee({passive:!0})],ft.prototype,"onOut",null);Vt([Ee({passive:!0})],ft.prototype,"onClick",null);X("ft-tooltip")(ft);var Rr;(function(r){r.ADD_TO_PBK="",r.ALERT="",r.ADD_ALERT="",r.BACK_TO_SEARCH="",r.ADD_BOOKMARK="",r.BOOKMARK="",r.BOOKS="",r.MENU="",r.DOWNLOAD="",r.EDIT="",r.FEEDBACK="",r.HOME="",r.MODIFY_PBK="",r.SCHEDULED="",r.SEARCH="",r.EXPORT="",r.TOC="",r.WRITE_UGC="",r.TRASH="",r.USER="",r.EXTLINK="",r.CALENDAR="",r.OFFLINE="",r.BOOK="",r.DOWNLOAD_PLAIN="",r.CHECK="",r.STAR_PLAIN="",r.TOPICS="",r.DISC="",r.CIRCLE="",r.SHARED="",r.SORT_UNSORTED="",r.SORT_UP="",r.SORT_DOWN="",r.WORKING="",r.CLOSE="",r.ZOOM_OUT="",r.ZOOM_IN="",r.ZOOM_REALSIZE="",r.ZOOM_FULLSCREEN="",r.ADMIN_RESTRICTED="",r.ADMIN="",r.ADMIN_KHUB="",r.ADMIN_THEME="",r.ADMIN_USERS="",r.WARNING="",r.CONTEXT="",r.SEARCH_HOME="",r.STEPS="",r.ICON_EXPAND="",r.ICON_COLLAPSE="",r.INFO="",r.MINUS_PLAIN="",r.PLUS_PLAIN="",r.FACET_HAS_DESCENDANT="",r.TRIANGLE_BOTTOM="",r.TRIANGLE_LEFT="",r.TRIANGLE_RIGHT="",r.TRIANGLE_TOP="",r.THIN_ARROW="",r.SIGN_IN="",r.LOGOUT="",r.TRANSLATE="",r.CLOSE_PLAIN="",r.CHECK_PLAIN="",r.ARTICLE="",r.COLUMNS="",r.ANALYTICS="",r.COLLECTIONS="",r.ARROW_DOWN="",r.ARROW_LEFT="",r.ARROW_RIGHT="",r.ARROW_UP="",r.SEARCH_IN_PUBLICATION="",r.COPY_TO_CLIPBOARD="",r.SHARED_PBK="",r.ATTACHMENTS="",r.STRIPE_ARROW_LEFT="",r.STRIPE_ARROW_RIGHT="",r.FILTERS="",r.DOT="",r.MINUS="",r.PLUS="",r.MAILS_AND_NOTIFICATIONS="",r.SAVE="",r.LOCKER="",r.ADMIN_INTEGRATION="",r.SYNC="",r.TAG="",r.BOOK_PLAIN="",r.UPLOAD="",r.ONLINE="",r.TAG_PLAIN="",r.ACCOUNT_SETTINGS="",r.PRINT="",r.DEFAULT_ROLES="",r.SHORTCUT_MENU="",r.RELATIVES_PLAIN="",r.RELATIVES="",r.PAUSE="",r.PLAY="",r.ADMIN_PORTAL="",r.STAR="",r.THUMBS_DOWN="",r.THUMBS_DOWN_PLAIN="",r.THUMBS_UP="",r.THUMBS_UP_PLAIN="",r.FEEDBACK_PLAIN="",r.RATE_PLAIN="",r.RATE="",r.OFFLINE_SETTINGS="",r.MY_COLLECTIONS="",r.THIN_ARROW_LEFT="",r.THIN_ARROW_RIGHT="",r.RESET="",r.MY_LIBRARY="",r.UNSTRUCTURED_DOC="",r.CONTEXTUAL="",r.THIN_ARROW_UP="",r.ARROW_RIGHT_TO_LINE="",r.DESKTOP="",r.TABLET_LANDSCAPE="",r.TABLET_PORTRAIT="",r.MOBILE_LANDSCAPE="",r.MOBILE_PORTRAIT="",r.DIAGRAM_SUNBURST="",r.DIAGRAM_SANKEY="",r.COMMENT_QUESTION="",r.COMMENT_QUESTION_PLAIN="",r.MESSAGE_BOT="",r.CHART_SIMPLE="",r.BARS_PROGRESS="",r.BOOK_OPEN_GEAR="",r.BOOK_OPEN_GEAR_SLASH="",r.LINE_CHART="",r.STACKED_CHART="",r.CHART_BAR_STACKED="",r.CHART_BAR_GROUPED="",r.EYE_SLASH="",r.X_MARK="",r.EXPAND_WIDE="",r.PIP="",r.PIP_WIDE="",r.LIFE_RING="",r.GLOBE="",r.PIGGY_BANK="",r.EXTLINK_LIGHT="",r.CLONE="",r.CLONE_LINK_SIMPLE="",r.CHART_BAR_NORMALIZED="",r.CONSUMER="",r.OCTAGON_XMARK="",r.HOURGLASS_HALF="",r.CLOCK="",r.CLOCK_THREE="",r.CALENDAR_DAY="",r.COMPUTER_MOUSE_MAGNIFYING_GLASS="",r.WAND_MAGIC_SPARKLES="",r.PAPER_PLANE="",r.CIRCLE_STOP="",r.ARROW_ROTATE_RIGHT="",r.ARROWS_ROTATE="",r.ALIGN_RIGHT="",r.FORMAT_CLEAR="",r.ALIGN_CENTER="",r.ALIGN_LEFT="",r.PALETTE="",r.BOLD="",r.ITALIC="",r.UNDERLINE="",r.STRIKETHROUGH="",r.LINK_SIMPLE_SLASH="",r.LINK_SIMPLE="",r.ROUTE="",r.CIRCLE_USER_SLASH="",r.CIRCLE_USER_CHECK="",r.LIST_MAGNIFYING_GLASS="",r.MEDAL="",r.THUMBS_UP_THUMBS_DOWN_SOLID="",r.ARROW_TURN_DOWN_RIGHT="",r.FLASK="",r.LOCK_KEYHOLE_OPEN_SOLID="",r.HOURGLASS_END="",r.CIRCLE_QUESTION="",r.GRIP_LINES_SOLID="",r.TRANSLATE_SPARKLE_SOLID="",r.CODE="",r.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",r.PAPER_PLANE_SLASH="",r.COMPRESS="",r.EXPAND="",r.ARROW_ROTATE_LEFT="",r.EYE="",r.SHARE="󨃱"})(Rr||(Rr={}));var I;(function(r){r.UNKNOWN="",r.ABW="",r.AUDIO="",r.AVI="",r.CHM="",r.CODE="",r.CSV="",r.DITA="",r.EPUB="",r.EXCEL="",r.FLAC="",r.GIF="",r.GZIP="",r.HTML="",r.IMAGE="",r.JPEG="",r.JSON="",r.M4A="",r.MOV="",r.MP3="",r.MP4="",r.OGG="",r.PDF="",r.PNG="",r.POWERPOINT="",r.RAR="",r.STP="",r.TEXT="",r.VIDEO="",r.WAV="",r.WMA="",r.WORD="",r.XML="",r.YAML="",r.ZIP=""})(I||(I={}));var _O=new Map([...["abw"].map(r=>[r,I.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(r=>[r,I.AUDIO]),...["avi"].map(r=>[r,I.AVI]),...["chm","xhs"].map(r=>[r,I.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(r=>[r,I.CODE]),...["csv"].map(r=>[r,I.CSV]),...["dita","ditamap","ditaval"].map(r=>[r,I.DITA]),...["epub"].map(r=>[r,I.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(r=>[r,I.EXCEL]),...["flac"].map(r=>[r,I.FLAC]),...["gif"].map(r=>[r,I.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(r=>[r,I.GZIP]),...["html","htm","xhtml"].map(r=>[r,I.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(r=>[r,I.IMAGE]),...["jpeg","jpg","jpe"].map(r=>[r,I.JPEG]),...["json"].map(r=>[r,I.JSON]),...["m4a","m4p"].map(r=>[r,I.M4A]),...["mov","qt"].map(r=>[r,I.MOV]),...["mp3"].map(r=>[r,I.MP3]),...["mp4","m4v"].map(r=>[r,I.MP4]),...["ogg","oga"].map(r=>[r,I.OGG]),...["pdf","ps"].map(r=>[r,I.PDF]),...["png"].map(r=>[r,I.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(r=>[r,I.POWERPOINT]),...["rar"].map(r=>[r,I.RAR]),...["stp"].map(r=>[r,I.STP]),...["txt","rtf","md","mdown"].map(r=>[r,I.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(r=>[r,I.VIDEO]),...["wav"].map(r=>[r,I.WAV]),...["wma"].map(r=>[r,I.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(r=>[r,I.WORD]),...["xml","xsl","rdf"].map(r=>[r,I.XML]),...["yaml","yml","x-yaml"].map(r=>[r,I.YAML]),...["zip"].map(r=>[r,I.ZIP])]);var TO={[I.ABW]:"#91ABC6",[I.AUDIO]:"#1795E3",[I.AVI]:"#E63324",[I.CHM]:"#71C3EB",[I.CODE]:"#71C3EB",[I.CSV]:"#1F7345",[I.DITA]:"#71C3EB",[I.EPUB]:"#85B926",[I.EXCEL]:"#1F7345",[I.FLAC]:"#1795E3",[I.GIF]:"#59B031",[I.GZIP]:"#F8AB36",[I.HTML]:"#71C3EB",[I.IMAGE]:"#59B031",[I.JPEG]:"#59B031",[I.JSON]:"#71C3EB",[I.M4A]:"#1795E3",[I.MOV]:"#E63324",[I.MP3]:"#1795E3",[I.MP4]:"#E63324",[I.OGG]:"#1795E3",[I.PDF]:"#E44948",[I.PNG]:"#59B031",[I.POWERPOINT]:"#B54A2B",[I.RAR]:"#F8AB36",[I.STP]:"#3764B1",[I.TEXT]:"#3162AB",[I.UNKNOWN]:"#999999",[I.VIDEO]:"#E63324",[I.WAV]:"#1795E3",[I.WMA]:"#1795E3",[I.WORD]:"#3162AB",[I.XML]:"#71C3EB",[I.YAML]:"#71C3EB",[I.ZIP]:"#F8AB36"};var kt;(function(r){r.fluid_topics="fluid-topics",r.file_format="file-format",r.material="material"})(kt||(kt={}));var Ui=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Ct=class extends j{constructor(){super(...arguments),this.resolvedIcon=U}render(){let t=this.variant&&Object.values(kt).includes(this.variant)?this.variant:kt.fluid_topics,e=t!==kt.material||!!this.value;return P`
|
|
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="",e.ALERT="",e.ADD_ALERT="",e.BACK_TO_SEARCH="",e.ADD_BOOKMARK="",e.BOOKMARK="",e.BOOKS="",e.MENU="",e.DOWNLOAD="",e.EDIT="",e.FEEDBACK="",e.HOME="",e.MODIFY_PBK="",e.SCHEDULED="",e.SEARCH="",e.EXPORT="",e.TOC="",e.WRITE_UGC="",e.TRASH="",e.USER="",e.EXTLINK="",e.CALENDAR="",e.OFFLINE="",e.BOOK="",e.DOWNLOAD_PLAIN="",e.CHECK="",e.STAR_PLAIN="",e.TOPICS="",e.DISC="",e.CIRCLE="",e.SHARED="",e.SORT_UNSORTED="",e.SORT_UP="",e.SORT_DOWN="",e.WORKING="",e.CLOSE="",e.ZOOM_OUT="",e.ZOOM_IN="",e.ZOOM_REALSIZE="",e.ZOOM_FULLSCREEN="",e.ADMIN_RESTRICTED="",e.ADMIN="",e.ADMIN_KHUB="",e.ADMIN_THEME="",e.ADMIN_USERS="",e.WARNING="",e.CONTEXT="",e.SEARCH_HOME="",e.STEPS="",e.ICON_EXPAND="",e.ICON_COLLAPSE="",e.INFO="",e.MINUS_PLAIN="",e.PLUS_PLAIN="",e.FACET_HAS_DESCENDANT="",e.TRIANGLE_BOTTOM="",e.TRIANGLE_LEFT="",e.TRIANGLE_RIGHT="",e.TRIANGLE_TOP="",e.THIN_ARROW="",e.SIGN_IN="",e.LOGOUT="",e.TRANSLATE="",e.CLOSE_PLAIN="",e.CHECK_PLAIN="",e.ARTICLE="",e.COLUMNS="",e.ANALYTICS="",e.COLLECTIONS="",e.ARROW_DOWN="",e.ARROW_LEFT="",e.ARROW_RIGHT="",e.ARROW_UP="",e.SEARCH_IN_PUBLICATION="",e.COPY_TO_CLIPBOARD="",e.SHARED_PBK="",e.ATTACHMENTS="",e.STRIPE_ARROW_LEFT="",e.STRIPE_ARROW_RIGHT="",e.FILTERS="",e.DOT="",e.MINUS="",e.PLUS="",e.MAILS_AND_NOTIFICATIONS="",e.SAVE="",e.LOCKER="",e.ADMIN_INTEGRATION="",e.SYNC="",e.TAG="",e.BOOK_PLAIN="",e.UPLOAD="",e.ONLINE="",e.TAG_PLAIN="",e.ACCOUNT_SETTINGS="",e.PRINT="",e.DEFAULT_ROLES="",e.SHORTCUT_MENU="",e.RELATIVES_PLAIN="",e.RELATIVES="",e.PAUSE="",e.PLAY="",e.ADMIN_PORTAL="",e.STAR="",e.THUMBS_DOWN="",e.THUMBS_DOWN_PLAIN="",e.THUMBS_UP="",e.THUMBS_UP_PLAIN="",e.FEEDBACK_PLAIN="",e.RATE_PLAIN="",e.RATE="",e.OFFLINE_SETTINGS="",e.MY_COLLECTIONS="",e.THIN_ARROW_LEFT="",e.THIN_ARROW_RIGHT="",e.RESET="",e.MY_LIBRARY="",e.UNSTRUCTURED_DOC="",e.CONTEXTUAL="",e.THIN_ARROW_UP="",e.ARROW_RIGHT_TO_LINE="",e.DESKTOP="",e.TABLET_LANDSCAPE="",e.TABLET_PORTRAIT="",e.MOBILE_LANDSCAPE="",e.MOBILE_PORTRAIT="",e.DIAGRAM_SUNBURST="",e.DIAGRAM_SANKEY="",e.COMMENT_QUESTION="",e.COMMENT_QUESTION_PLAIN="",e.MESSAGE_BOT="",e.CHART_SIMPLE="",e.BARS_PROGRESS="",e.BOOK_OPEN_GEAR="",e.BOOK_OPEN_GEAR_SLASH="",e.LINE_CHART="",e.STACKED_CHART="",e.CHART_BAR_STACKED="",e.CHART_BAR_GROUPED="",e.EYE_SLASH="",e.X_MARK="",e.EXPAND_WIDE="",e.PIP="",e.PIP_WIDE="",e.LIFE_RING="",e.GLOBE="",e.PIGGY_BANK="",e.EXTLINK_LIGHT="",e.CLONE="",e.CLONE_LINK_SIMPLE="",e.CHART_BAR_NORMALIZED="",e.CONSUMER="",e.OCTAGON_XMARK="",e.HOURGLASS_HALF="",e.CLOCK="",e.CLOCK_THREE="",e.CALENDAR_DAY="",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="",e.WAND_MAGIC_SPARKLES="",e.PAPER_PLANE="",e.CIRCLE_STOP="",e.ARROW_ROTATE_RIGHT="",e.ARROWS_ROTATE="",e.ALIGN_RIGHT="",e.FORMAT_CLEAR="",e.ALIGN_CENTER="",e.ALIGN_LEFT="",e.PALETTE="",e.BOLD="",e.ITALIC="",e.UNDERLINE="",e.STRIKETHROUGH="",e.LINK_SIMPLE_SLASH="",e.LINK_SIMPLE="",e.ROUTE="",e.CIRCLE_USER_SLASH="",e.CIRCLE_USER_CHECK="",e.LIST_MAGNIFYING_GLASS="",e.MEDAL="",e.THUMBS_UP_THUMBS_DOWN_SOLID="",e.ARROW_TURN_DOWN_RIGHT="",e.FLASK="",e.LOCK_KEYHOLE_OPEN_SOLID="",e.HOURGLASS_END="",e.CIRCLE_QUESTION="",e.GRIP_LINES_SOLID="",e.TRANSLATE_SPARKLE_SOLID="",e.CODE="",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",e.PAPER_PLANE_SLASH="",e.COMPRESS="",e.EXPAND="",e.ARROW_ROTATE_LEFT="",e.EYE="",e.SHARE="󨃱"})(Tr||(Tr={}));var N;(function(e){e.UNKNOWN="",e.ABW="",e.AUDIO="",e.AVI="",e.CHM="",e.CODE="",e.CSV="",e.DITA="",e.EPUB="",e.EXCEL="",e.FLAC="",e.GIF="",e.GZIP="",e.HTML="",e.IMAGE="",e.JPEG="",e.JSON="",e.M4A="",e.MOV="",e.MP3="",e.MP4="",e.OGG="",e.PDF="",e.PNG="",e.POWERPOINT="",e.RAR="",e.STP="",e.TEXT="",e.VIDEO="",e.WAV="",e.WMA="",e.WORD="",e.XML="",e.YAML="",e.ZIP=""})(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`
|
|
643
643
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
644
|
-
${
|
|
645
|
-
<slot ?hidden=${
|
|
644
|
+
${Bn(this.resolvedIcon)}
|
|
645
|
+
<slot ?hidden=${r}></slot>
|
|
646
646
|
</i>
|
|
647
|
-
`}get textContent(){var t,
|
|
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=$`
|
|
648
648
|
.ft-switch-option {
|
|
649
649
|
position: relative;
|
|
650
650
|
display: inline-block;
|
|
@@ -669,7 +669,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
669
669
|
align-items: center;
|
|
670
670
|
justify-content: center;
|
|
671
671
|
overflow: hidden;
|
|
672
|
-
${
|
|
672
|
+
${S(Et.size,yt.iconSize)};
|
|
673
673
|
padding: var(--ft-switch-internal-vertical-padding, 6px) var(--ft-switch-internal-horizontal-padding, 8px);
|
|
674
674
|
background-color: ${yt.backgroundColor};
|
|
675
675
|
-webkit-mask-image: radial-gradient(white, black);
|
|
@@ -686,7 +686,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
686
686
|
inset: 0;
|
|
687
687
|
content: "";
|
|
688
688
|
z-index: 1;
|
|
689
|
-
opacity: ${
|
|
689
|
+
opacity: ${T.opacityPrimaryOnSurfaceSelected};
|
|
690
690
|
}
|
|
691
691
|
|
|
692
692
|
.ft-switch-option--label {
|
|
@@ -696,8 +696,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
696
696
|
text-overflow: ellipsis;
|
|
697
697
|
display: block;
|
|
698
698
|
margin: 0 8px;
|
|
699
|
-
${
|
|
700
|
-
${
|
|
699
|
+
${S(Bt.fontSize,yt.fontSize)};
|
|
700
|
+
${S(Bt.lineHeight,"var(--ft-switch-option-internal-content-height)")}
|
|
701
701
|
}
|
|
702
702
|
|
|
703
703
|
.ft-switch-option--selected .ft-switch-option--label {
|
|
@@ -713,7 +713,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
713
713
|
}
|
|
714
714
|
|
|
715
715
|
.ft-switch-option--ripple {
|
|
716
|
-
${
|
|
716
|
+
${S(_.color,yt.rippleColor)};
|
|
717
717
|
}
|
|
718
718
|
|
|
719
719
|
ft-icon, ft-ripple, ft-typography {
|
|
@@ -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
|
|
736
|
-
<label part="label" for="input" class=${
|
|
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`
|
|
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 ${
|
|
742
|
+
class="ft-switch-option--label ${jo?"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:
|
|
751
|
+
`)}addTooltip(t){return this.hasTextContent()||this.getLabel().trim().length===0?t:k`
|
|
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
|
|
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`
|
|
758
758
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
759
|
-
`:
|
|
760
|
-
<div @keydown=${this.onKeyDown} tabindex="-1" class="${
|
|
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`
|
|
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
|
|
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=$`
|
|
767
767
|
:host {
|
|
768
768
|
display: inline-block;
|
|
769
769
|
}
|
|
@@ -779,25 +779,25 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
779
779
|
}
|
|
780
780
|
|
|
781
781
|
.ft-switch slot::slotted(ft-switch-option) {
|
|
782
|
-
${
|
|
783
|
-
${
|
|
784
|
-
${
|
|
782
|
+
${S(wt.borderRadiusLeft,"0")};
|
|
783
|
+
${S(wt.borderRadiusRight,"0")};
|
|
784
|
+
${S(wt.borderWidthLeft,"0")};
|
|
785
785
|
}
|
|
786
786
|
|
|
787
787
|
.ft-switch slot::slotted(ft-switch-option:first-child) {
|
|
788
|
-
${
|
|
789
|
-
${
|
|
788
|
+
${S(wt.borderRadiusLeft,yt.borderRadius)};
|
|
789
|
+
${S(wt.borderWidthLeft,"1px")};
|
|
790
790
|
}
|
|
791
791
|
|
|
792
792
|
.ft-switch slot::slotted(ft-switch-option:last-child) {
|
|
793
|
-
${
|
|
793
|
+
${S(wt.borderRadiusRight,yt.borderRadius)};
|
|
794
794
|
}
|
|
795
795
|
|
|
796
796
|
.ft-switch--dense slot::slotted(ft-switch-option) {
|
|
797
797
|
--ft-switch-internal-vertical-padding: 2px;
|
|
798
798
|
--ft-switch-internal-horizontal-padding: 4px;
|
|
799
799
|
}
|
|
800
|
-
`;
|
|
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=$`
|
|
801
801
|
:host {
|
|
802
802
|
display: block;
|
|
803
803
|
}
|
|
@@ -808,43 +808,47 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
808
808
|
|
|
809
809
|
ft-icon {
|
|
810
810
|
transform: rotate(-45deg);
|
|
811
|
-
color: ${
|
|
811
|
+
color: ${cp.colorOutline};
|
|
812
812
|
}
|
|
813
813
|
|
|
814
814
|
.ft-resizer--dragging ft-icon,
|
|
815
|
-
.ft-resizer:hover ft-icon
|
|
816
|
-
|
|
815
|
+
.ft-resizer:hover ft-icon,
|
|
816
|
+
[role="button"][aria-pressed="true"] ft-icon{
|
|
817
|
+
color: ${cp.colorOnSurfaceMedium};
|
|
817
818
|
}
|
|
818
|
-
`;var
|
|
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
820
|
<style>
|
|
820
821
|
.ft-resizer {
|
|
821
|
-
cursor: ${
|
|
822
|
+
cursor: ${Oe(this.cursor)}
|
|
822
823
|
}
|
|
823
824
|
</style>
|
|
824
825
|
<div class="ft-resizer ft-no-text-select ${this.dragging?"ft-resizer--dragging":""}"
|
|
826
|
+
role="button"
|
|
827
|
+
tabindex="0"
|
|
825
828
|
@mousedown=${this.initDragFromMouse}
|
|
826
|
-
@touchstart=${this.initDragFromTouch}
|
|
827
|
-
|
|
829
|
+
@touchstart=${this.initDragFromTouch}
|
|
830
|
+
@keydown="${this.initKeydownPress}">
|
|
831
|
+
<ft-icon .variant="${this.iconVariant}" .value="${this.icon}" focusable="false" aria-hidden="true"></ft-icon>
|
|
828
832
|
</div>
|
|
829
|
-
`}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,
|
|
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=$`
|
|
830
834
|
.ft-input-label {
|
|
831
835
|
position: absolute;
|
|
832
836
|
inset: 0;
|
|
833
837
|
display: flex;
|
|
834
|
-
background-color: ${
|
|
835
|
-
border-radius: ${
|
|
838
|
+
background-color: ${z.backgroundColor};
|
|
839
|
+
border-radius: ${z.borderRadius} ${z.borderRadius} 0 0;
|
|
836
840
|
}
|
|
837
841
|
|
|
838
842
|
.ft-input-label--outlined {
|
|
839
|
-
border-radius: ${
|
|
843
|
+
border-radius: ${z.borderRadius};
|
|
840
844
|
}
|
|
841
845
|
|
|
842
846
|
.ft-input-label {
|
|
843
|
-
border-color: ${
|
|
847
|
+
border-color: ${z.borderColor};
|
|
844
848
|
}
|
|
845
849
|
|
|
846
850
|
.ft-input-label.ft-input-label--in-error {
|
|
847
|
-
border-color: ${
|
|
851
|
+
border-color: ${z.colorError}
|
|
848
852
|
}
|
|
849
853
|
|
|
850
854
|
.ft-input-label:before,
|
|
@@ -857,7 +861,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
857
861
|
}
|
|
858
862
|
|
|
859
863
|
.ft-input-label:before {
|
|
860
|
-
width: calc(${
|
|
864
|
+
width: calc(${z.horizontalSpacing} - 4px);
|
|
861
865
|
flex-shrink: 0;
|
|
862
866
|
}
|
|
863
867
|
|
|
@@ -873,20 +877,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
873
877
|
border-bottom-width: 1px;
|
|
874
878
|
border-bottom-style: solid;
|
|
875
879
|
border-color: inherit;
|
|
876
|
-
color: ${
|
|
880
|
+
color: ${z.textColor};
|
|
877
881
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
878
|
-
max-width: calc(${
|
|
882
|
+
max-width: calc(${z.labelMaxWidth} - 2 * (${z.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
879
883
|
text-overflow: ellipsis;
|
|
880
|
-
${
|
|
881
|
-
${
|
|
884
|
+
${S(se.fontSize,z.fontSize)};
|
|
885
|
+
${S(se.lineHeight,z.fontSize)};
|
|
882
886
|
}
|
|
883
887
|
|
|
884
888
|
.ft-input-label--in-error .ft-input-label--text {
|
|
885
|
-
color: ${
|
|
889
|
+
color: ${z.colorError}
|
|
886
890
|
}
|
|
887
891
|
|
|
888
892
|
.ft-input-label--disabled .ft-input-label--text {
|
|
889
|
-
color: ${
|
|
893
|
+
color: ${z.disabledTextColor};
|
|
890
894
|
}
|
|
891
895
|
|
|
892
896
|
.ft-input-label--hidden-text {
|
|
@@ -903,19 +907,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
903
907
|
overflow: hidden;
|
|
904
908
|
white-space: nowrap;
|
|
905
909
|
text-overflow: ellipsis;
|
|
906
|
-
padding: ${
|
|
907
|
-
margin: calc(${
|
|
910
|
+
padding: ${z.verticalSpacing} 4px;
|
|
911
|
+
margin: calc(${z.verticalSpacing} * -1) 0;
|
|
908
912
|
max-width: 100%;
|
|
909
913
|
box-sizing: border-box;
|
|
910
914
|
}
|
|
911
915
|
|
|
912
916
|
.ft-input-label--raised .ft-input-label--text {
|
|
913
|
-
${
|
|
914
|
-
${
|
|
917
|
+
${S(se.fontSize,z.raisedFontSize)};
|
|
918
|
+
${S(se.lineHeight,z.raisedFontSize)};
|
|
915
919
|
}
|
|
916
920
|
|
|
917
921
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
918
|
-
top: ${
|
|
922
|
+
top: ${z.verticalSpacing};
|
|
919
923
|
}
|
|
920
924
|
|
|
921
925
|
.ft-input-label--outlined .ft-input-label--text,
|
|
@@ -928,36 +932,36 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
928
932
|
.ft-input-label--outlined:before {
|
|
929
933
|
border-left-width: 1px;
|
|
930
934
|
border-left-style: solid;
|
|
931
|
-
border-radius: ${
|
|
935
|
+
border-radius: ${z.borderRadius} 0 0 ${z.borderRadius};
|
|
932
936
|
}
|
|
933
937
|
|
|
934
938
|
.ft-input-label--outlined:after {
|
|
935
939
|
border-right-width: 1px;
|
|
936
940
|
border-right-style: solid;
|
|
937
|
-
border-radius: 0 ${
|
|
941
|
+
border-radius: 0 ${z.borderRadius} ${z.borderRadius} 0;
|
|
938
942
|
}
|
|
939
943
|
|
|
940
944
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
941
945
|
padding: 2px 4px;
|
|
942
|
-
z-index: ${
|
|
943
|
-
background-color: ${
|
|
944
|
-
border-radius: ${
|
|
946
|
+
z-index: ${z.raisedZIndex};
|
|
947
|
+
background-color: ${z.backgroundColor};
|
|
948
|
+
border-radius: ${z.borderRadius};
|
|
945
949
|
top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
|
|
946
950
|
}
|
|
947
951
|
|
|
948
952
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
949
953
|
border-top: none;
|
|
950
954
|
}
|
|
951
|
-
`;var
|
|
952
|
-
<div class="${
|
|
953
|
-
${this.text?
|
|
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`
|
|
956
|
+
<div class="${Rt(t)}">
|
|
957
|
+
${this.text?k`
|
|
954
958
|
<div class="ft-input-label--text ft-typography--caption">
|
|
955
959
|
<span class="ft-input-label--floating-text">${this.text}</span>
|
|
956
960
|
<span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
|
|
957
961
|
</div>
|
|
958
962
|
`:null}
|
|
959
963
|
</div>
|
|
960
|
-
`}};Wt.elementDefinitions={};Wt.styles=[Bi,
|
|
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=$`
|
|
961
965
|
*:focus {
|
|
962
966
|
outline: none;
|
|
963
967
|
}
|
|
@@ -969,10 +973,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
969
973
|
}
|
|
970
974
|
|
|
971
975
|
ft-input-label {
|
|
972
|
-
${
|
|
973
|
-
${
|
|
974
|
-
${
|
|
975
|
-
${
|
|
976
|
+
${S(z.fontSize,nt.fontSize)};
|
|
977
|
+
${S(z.raisedFontSize,nt.labelSize)};
|
|
978
|
+
${S(z.verticalSpacing,nt.verticalSpacing)};
|
|
979
|
+
${S(z.horizontalSpacing,nt.horizontalSpacing)};
|
|
976
980
|
}
|
|
977
981
|
|
|
978
982
|
.ft-text-area--main-panel {
|
|
@@ -990,8 +994,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
990
994
|
}
|
|
991
995
|
|
|
992
996
|
.ft-text-area--input-panel ft-ripple {
|
|
993
|
-
${
|
|
994
|
-
${
|
|
997
|
+
${S(_.opacityContentOnSurfaceHover,"0.08")};
|
|
998
|
+
${S(_.opacityContentOnSurfacePressed,"0.04")};
|
|
995
999
|
}
|
|
996
1000
|
|
|
997
1001
|
.ft-text-area--input {
|
|
@@ -1003,8 +1007,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1003
1007
|
align-self: stretch;
|
|
1004
1008
|
resize: none;
|
|
1005
1009
|
|
|
1006
|
-
${
|
|
1007
|
-
${
|
|
1010
|
+
${S(Qt.fontSize,nt.fontSize)};
|
|
1011
|
+
${S(Qt.lineHeight,nt.fontSize)};
|
|
1008
1012
|
color: ${nt.colorOnSurface};
|
|
1009
1013
|
|
|
1010
1014
|
padding: 0 ${nt.horizontalSpacing};
|
|
@@ -1025,8 +1029,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1025
1029
|
}
|
|
1026
1030
|
|
|
1027
1031
|
.ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
|
|
1028
|
-
${
|
|
1029
|
-
${
|
|
1032
|
+
${S(z.borderColor,nt.colorPrimary)};
|
|
1033
|
+
${S(z.textColor,nt.colorPrimary)};
|
|
1030
1034
|
}
|
|
1031
1035
|
|
|
1032
1036
|
.ft-text-area--filled .ft-text-area--input-panel {
|
|
@@ -1057,7 +1061,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1057
1061
|
position: absolute;
|
|
1058
1062
|
bottom: 0;
|
|
1059
1063
|
}
|
|
1060
|
-
`;var $e=function(
|
|
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`
|
|
1061
1065
|
<style>
|
|
1062
1066
|
.ft-text-area--main-panel {
|
|
1063
1067
|
height: calc(4 * ${nt.verticalSpacing} + ${nt.labelSize} + ${nt.fontSize} + ${this.height}px);
|
|
@@ -1067,7 +1071,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1067
1071
|
right: ${this.textarea!=null?this.textarea.offsetWidth-this.textarea.clientWidth:0}px;
|
|
1068
1072
|
}
|
|
1069
1073
|
</style>
|
|
1070
|
-
<div class="${
|
|
1074
|
+
<div class="${Rt(t)}">
|
|
1071
1075
|
<div class="ft-text-area--main-panel">
|
|
1072
1076
|
<ft-input-label text="${this.label}"
|
|
1073
1077
|
?disabled=${this.disabled}
|
|
@@ -1077,7 +1081,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1077
1081
|
></ft-input-label>
|
|
1078
1082
|
<div class="ft-text-area--input-panel"
|
|
1079
1083
|
aria-label="${this.label}">
|
|
1080
|
-
${this.outlined?null:
|
|
1084
|
+
${this.outlined?null:k`
|
|
1081
1085
|
<ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
|
|
1082
1086
|
`}
|
|
1083
1087
|
<textarea class="ft-typography--body1 ft-text-area--input"
|
|
@@ -1094,56 +1098,56 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1094
1098
|
initialHeight="${this.height}"
|
|
1095
1099
|
cursor="ns-resize"></ft-resizer>
|
|
1096
1100
|
</div>
|
|
1097
|
-
${this.helper?
|
|
1101
|
+
${this.helper?k`
|
|
1098
1102
|
<ft-typography class="ft-text-area--helper-text" variant="caption">
|
|
1099
1103
|
${this.helper}
|
|
1100
1104
|
</ft-typography>`:void 0}
|
|
1101
1105
|
</div>
|
|
1102
|
-
`}setValue(t,
|
|
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`
|
|
1103
1107
|
<div class="ft-loader">
|
|
1104
1108
|
<div></div>
|
|
1105
1109
|
<div></div>
|
|
1106
1110
|
<div></div>
|
|
1107
1111
|
<div></div>
|
|
1108
1112
|
</div>
|
|
1109
|
-
`}};
|
|
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`
|
|
1110
1114
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
1111
1115
|
<ft-typography part="label"
|
|
1112
1116
|
variant=${this.typographyVariant}
|
|
1113
1117
|
element="span"
|
|
1114
|
-
class="ft-button--label ${
|
|
1118
|
+
class="ft-button--label ${jo?"ft-safari-ellipsis-fix":""}"
|
|
1115
1119
|
?hidden=${!this.hasTextContent()}>
|
|
1116
1120
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
1117
1121
|
</ft-typography>
|
|
1118
1122
|
${this.resolveIcon()}
|
|
1119
|
-
`,a=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(a?
|
|
1123
|
+
`,a=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(a?k`
|
|
1120
1124
|
<a href="${a}"
|
|
1121
1125
|
target="${(t=this.target)!==null&&t!==void 0?t:"_self"}"
|
|
1122
1126
|
part="button"
|
|
1123
|
-
class="${
|
|
1124
|
-
aria-label="${(
|
|
1127
|
+
class="${Rt(this.buttonClasses)}"
|
|
1128
|
+
aria-label="${(r=this.ariaLabel)!==null&&r!==void 0?r:this.getLabel()}"
|
|
1125
1129
|
?disabled=${this.isDisabled()}>
|
|
1126
1130
|
${n}
|
|
1127
1131
|
</a>
|
|
1128
|
-
`:
|
|
1132
|
+
`:k`
|
|
1129
1133
|
<button part="button"
|
|
1130
|
-
class="${
|
|
1134
|
+
class="${Rt(this.buttonClasses)}"
|
|
1131
1135
|
aria-label="${(i=this.ariaLabel)!==null&&i!==void 0?i:this.getLabel()}"
|
|
1132
1136
|
?disabled=${this.isDisabled()}>
|
|
1133
1137
|
${n}
|
|
1134
1138
|
</button>
|
|
1135
|
-
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?
|
|
1139
|
+
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?k`
|
|
1136
1140
|
<ft-tooltip part="tooltip"
|
|
1137
1141
|
text="${this.getLabel()}"
|
|
1138
1142
|
position="${this.tooltipPosition}">
|
|
1139
1143
|
${t}
|
|
1140
1144
|
</ft-tooltip>
|
|
1141
|
-
`:t}resolveIcon(){return this.loading?
|
|
1142
|
-
<ft-loader part="loader icon"></ft-loader> `:this.icon?
|
|
1145
|
+
`:t}resolveIcon(){return this.loading?k`
|
|
1146
|
+
<ft-loader part="loader icon"></ft-loader> `:this.icon?k`
|
|
1143
1147
|
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
1144
|
-
`:
|
|
1148
|
+
`:k`
|
|
1145
1149
|
<slot part="icon" name="icon"></slot>
|
|
1146
|
-
`}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
|
|
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=[$`
|
|
1147
1151
|
:host {
|
|
1148
1152
|
display: inline-block;
|
|
1149
1153
|
max-width: 100%;
|
|
@@ -1228,13 +1232,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1228
1232
|
/** Brand Primary styles **/
|
|
1229
1233
|
|
|
1230
1234
|
.ftds--family-brand.ft-button--primary {
|
|
1231
|
-
${
|
|
1235
|
+
${S(ut.color,b.primaryBrandIconColor)};
|
|
1232
1236
|
|
|
1233
|
-
${
|
|
1234
|
-
${
|
|
1235
|
-
${
|
|
1236
|
-
${
|
|
1237
|
-
${
|
|
1237
|
+
${S(_.color,b.primaryBrandStateLayerColor)};
|
|
1238
|
+
${S(_.opacityContentOnSurfaceHover,b.primaryBrandHoverStateLayerOpacity)};
|
|
1239
|
+
${S(_.opacityContentOnSurfaceFocused,b.primaryBrandFocusStateLayerOpacity)};
|
|
1240
|
+
${S(_.opacityContentOnSurfaceSelected,b.primaryBrandActiveStateLayerOpacity)};
|
|
1241
|
+
${S(_.opacityContentOnSurfacePressed,b.primaryBrandActiveStateLayerOpacity)};
|
|
1238
1242
|
|
|
1239
1243
|
background-color: ${b.primaryBrandBackgroundColor};
|
|
1240
1244
|
color: ${b.primaryBrandColor};
|
|
@@ -1252,13 +1256,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1252
1256
|
/** Brand Secondary styles **/
|
|
1253
1257
|
|
|
1254
1258
|
.ftds--family-brand.ft-button--secondary {
|
|
1255
|
-
${
|
|
1259
|
+
${S(ut.color,b.secondaryBrandIconColor)};
|
|
1256
1260
|
|
|
1257
|
-
${
|
|
1258
|
-
${
|
|
1259
|
-
${
|
|
1260
|
-
${
|
|
1261
|
-
${
|
|
1261
|
+
${S(_.color,b.secondaryBrandStateLayerColor)};
|
|
1262
|
+
${S(_.opacityContentOnSurfaceHover,b.secondaryBrandHoverStateLayerOpacity)};
|
|
1263
|
+
${S(_.opacityContentOnSurfaceFocused,b.secondaryBrandFocusStateLayerOpacity)};
|
|
1264
|
+
${S(_.opacityContentOnSurfaceSelected,b.secondaryBrandActiveStateLayerOpacity)};
|
|
1265
|
+
${S(_.opacityContentOnSurfacePressed,b.secondaryBrandActiveStateLayerOpacity)};
|
|
1262
1266
|
|
|
1263
1267
|
background-color: ${b.secondaryBrandBackgroundColor};
|
|
1264
1268
|
color: ${b.secondaryBrandColor};
|
|
@@ -1277,13 +1281,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1277
1281
|
/** Brand Tertiary styles **/
|
|
1278
1282
|
|
|
1279
1283
|
.ftds--family-brand.ft-button--tertiary {
|
|
1280
|
-
${
|
|
1284
|
+
${S(ut.color,b.tertiaryBrandIconColor)};
|
|
1281
1285
|
|
|
1282
|
-
${
|
|
1283
|
-
${
|
|
1284
|
-
${
|
|
1285
|
-
${
|
|
1286
|
-
${
|
|
1286
|
+
${S(_.color,b.tertiaryBrandStateLayerColor)};
|
|
1287
|
+
${S(_.opacityContentOnSurfaceHover,b.tertiaryBrandHoverStateLayerOpacity)};
|
|
1288
|
+
${S(_.opacityContentOnSurfaceFocused,b.tertiaryBrandFocusStateLayerOpacity)};
|
|
1289
|
+
${S(_.opacityContentOnSurfaceSelected,b.tertiaryBrandActiveStateLayerOpacity)};
|
|
1290
|
+
${S(_.opacityContentOnSurfacePressed,b.tertiaryBrandActiveStateLayerOpacity)};
|
|
1287
1291
|
|
|
1288
1292
|
background-color: ${b.tertiaryBrandBackgroundColor};
|
|
1289
1293
|
color: ${b.tertiaryBrandColor};
|
|
@@ -1301,13 +1305,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1301
1305
|
/** Neutral Secondary styles **/
|
|
1302
1306
|
|
|
1303
1307
|
.ftds--family-neutral.ft-button--secondary {
|
|
1304
|
-
${
|
|
1308
|
+
${S(ut.color,b.secondaryNeutralIconColor)};
|
|
1305
1309
|
|
|
1306
|
-
${
|
|
1307
|
-
${
|
|
1308
|
-
${
|
|
1309
|
-
${
|
|
1310
|
-
${
|
|
1310
|
+
${S(_.backgroundColor,b.secondaryNeutralStateLayerColor)};
|
|
1311
|
+
${S(_.opacityContentOnSurfaceHover,b.secondaryNeutralHoverStateLayerOpacity)};
|
|
1312
|
+
${S(_.opacityContentOnSurfaceFocused,b.secondaryNeutralFocusStateLayerOpacity)};
|
|
1313
|
+
${S(_.opacityContentOnSurfaceSelected,b.secondaryNeutralActiveStateLayerOpacity)};
|
|
1314
|
+
${S(_.opacityContentOnSurfacePressed,b.secondaryNeutralActiveStateLayerOpacity)};
|
|
1311
1315
|
|
|
1312
1316
|
background-color: ${b.secondaryNeutralBackgroundColor};
|
|
1313
1317
|
color: ${b.secondaryNeutralColor};
|
|
@@ -1326,13 +1330,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1326
1330
|
/** Neutral Tertiary styles **/
|
|
1327
1331
|
|
|
1328
1332
|
.ftds--family-neutral.ft-button--tertiary {
|
|
1329
|
-
${
|
|
1333
|
+
${S(ut.color,b.tertiaryNeutralIconColor)};
|
|
1330
1334
|
|
|
1331
|
-
${
|
|
1332
|
-
${
|
|
1333
|
-
${
|
|
1334
|
-
${
|
|
1335
|
-
${
|
|
1335
|
+
${S(_.backgroundColor,b.tertiaryNeutralStateLayerColor)};
|
|
1336
|
+
${S(_.opacityContentOnSurfaceHover,b.tertiaryNeutralHoverStateLayerOpacity)};
|
|
1337
|
+
${S(_.opacityContentOnSurfaceFocused,b.tertiaryNeutralFocusStateLayerOpacity)};
|
|
1338
|
+
${S(_.opacityContentOnSurfaceSelected,b.tertiaryNeutralActiveStateLayerOpacity)};
|
|
1339
|
+
${S(_.opacityContentOnSurfacePressed,b.tertiaryNeutralActiveStateLayerOpacity)};
|
|
1336
1340
|
|
|
1337
1341
|
background-color: ${b.tertiaryNeutralBackgroundColor};
|
|
1338
1342
|
color: ${b.tertiaryNeutralColor};
|
|
@@ -1350,13 +1354,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1350
1354
|
/** Info Secondary styles **/
|
|
1351
1355
|
|
|
1352
1356
|
.ftds--family-info.ft-button--secondary {
|
|
1353
|
-
${
|
|
1357
|
+
${S(ut.color,b.secondaryInfoIconColor)};
|
|
1354
1358
|
|
|
1355
|
-
${
|
|
1356
|
-
${
|
|
1357
|
-
${
|
|
1358
|
-
${
|
|
1359
|
-
${
|
|
1359
|
+
${S(_.backgroundColor,b.secondaryInfoStateLayerColor)};
|
|
1360
|
+
${S(_.opacityContentOnSurfaceHover,b.secondaryInfoHoverStateLayerOpacity)};
|
|
1361
|
+
${S(_.opacityContentOnSurfaceFocused,b.secondaryInfoFocusStateLayerOpacity)};
|
|
1362
|
+
${S(_.opacityContentOnSurfaceSelected,b.secondaryInfoActiveStateLayerOpacity)};
|
|
1363
|
+
${S(_.opacityContentOnSurfacePressed,b.secondaryInfoActiveStateLayerOpacity)};
|
|
1360
1364
|
|
|
1361
1365
|
background-color: ${b.secondaryInfoBackgroundColor};
|
|
1362
1366
|
color: ${b.secondaryInfoColor};
|
|
@@ -1375,13 +1379,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1375
1379
|
/** Info Tertiary styles **/
|
|
1376
1380
|
|
|
1377
1381
|
.ftds--family-info.ft-button--tertiary {
|
|
1378
|
-
${
|
|
1382
|
+
${S(ut.color,b.tertiaryInfoIconColor)};
|
|
1379
1383
|
|
|
1380
|
-
${
|
|
1381
|
-
${
|
|
1382
|
-
${
|
|
1383
|
-
${
|
|
1384
|
-
${
|
|
1384
|
+
${S(_.backgroundColor,b.tertiaryInfoStateLayerColor)};
|
|
1385
|
+
${S(_.opacityContentOnSurfaceHover,b.tertiaryInfoHoverStateLayerOpacity)};
|
|
1386
|
+
${S(_.opacityContentOnSurfaceFocused,b.tertiaryInfoFocusStateLayerOpacity)};
|
|
1387
|
+
${S(_.opacityContentOnSurfaceSelected,b.tertiaryInfoActiveStateLayerOpacity)};
|
|
1388
|
+
${S(_.opacityContentOnSurfacePressed,b.tertiaryInfoActiveStateLayerOpacity)};
|
|
1385
1389
|
|
|
1386
1390
|
background-color: ${b.tertiaryInfoBackgroundColor};
|
|
1387
1391
|
color: ${b.tertiaryInfoColor};
|
|
@@ -1399,13 +1403,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1399
1403
|
/** Success Secondary styles **/
|
|
1400
1404
|
|
|
1401
1405
|
.ftds--family-success.ft-button--secondary {
|
|
1402
|
-
${
|
|
1406
|
+
${S(ut.color,b.secondarySuccessIconColor)};
|
|
1403
1407
|
|
|
1404
|
-
${
|
|
1405
|
-
${
|
|
1406
|
-
${
|
|
1407
|
-
${
|
|
1408
|
-
${
|
|
1408
|
+
${S(_.backgroundColor,b.secondarySuccessStateLayerColor)};
|
|
1409
|
+
${S(_.opacityContentOnSurfaceHover,b.secondarySuccessHoverStateLayerOpacity)};
|
|
1410
|
+
${S(_.opacityContentOnSurfaceFocused,b.secondarySuccessFocusStateLayerOpacity)};
|
|
1411
|
+
${S(_.opacityContentOnSurfaceSelected,b.secondarySuccessActiveStateLayerOpacity)};
|
|
1412
|
+
${S(_.opacityContentOnSurfacePressed,b.secondarySuccessActiveStateLayerOpacity)};
|
|
1409
1413
|
|
|
1410
1414
|
background-color: ${b.secondarySuccessBackgroundColor};
|
|
1411
1415
|
color: ${b.secondarySuccessColor};
|
|
@@ -1424,13 +1428,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1424
1428
|
/** Success Tertiary styles **/
|
|
1425
1429
|
|
|
1426
1430
|
.ftds--family-success.ft-button--tertiary {
|
|
1427
|
-
${
|
|
1431
|
+
${S(ut.color,b.tertiarySuccessIconColor)};
|
|
1428
1432
|
|
|
1429
|
-
${
|
|
1430
|
-
${
|
|
1431
|
-
${
|
|
1432
|
-
${
|
|
1433
|
-
${
|
|
1433
|
+
${S(_.backgroundColor,b.tertiarySuccessStateLayerColor)};
|
|
1434
|
+
${S(_.opacityContentOnSurfaceHover,b.tertiarySuccessHoverStateLayerOpacity)};
|
|
1435
|
+
${S(_.opacityContentOnSurfaceFocused,b.tertiarySuccessFocusStateLayerOpacity)};
|
|
1436
|
+
${S(_.opacityContentOnSurfaceSelected,b.tertiarySuccessActiveStateLayerOpacity)};
|
|
1437
|
+
${S(_.opacityContentOnSurfacePressed,b.tertiarySuccessActiveStateLayerOpacity)};
|
|
1434
1438
|
|
|
1435
1439
|
background-color: ${b.tertiarySuccessBackgroundColor};
|
|
1436
1440
|
color: ${b.tertiarySuccessColor};
|
|
@@ -1448,13 +1452,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1448
1452
|
/** Warning Secondary styles **/
|
|
1449
1453
|
|
|
1450
1454
|
.ftds--family-warning.ft-button--secondary {
|
|
1451
|
-
${
|
|
1455
|
+
${S(ut.color,b.secondaryWarningIconColor)};
|
|
1452
1456
|
|
|
1453
|
-
${
|
|
1454
|
-
${
|
|
1455
|
-
${
|
|
1456
|
-
${
|
|
1457
|
-
${
|
|
1457
|
+
${S(_.backgroundColor,b.secondaryWarningStateLayerColor)};
|
|
1458
|
+
${S(_.opacityContentOnSurfaceHover,b.secondaryWarningHoverStateLayerOpacity)};
|
|
1459
|
+
${S(_.opacityContentOnSurfaceFocused,b.secondaryWarningFocusStateLayerOpacity)};
|
|
1460
|
+
${S(_.opacityContentOnSurfaceSelected,b.secondaryWarningActiveStateLayerOpacity)};
|
|
1461
|
+
${S(_.opacityContentOnSurfacePressed,b.secondaryWarningActiveStateLayerOpacity)};
|
|
1458
1462
|
|
|
1459
1463
|
background-color: ${b.secondaryWarningBackgroundColor};
|
|
1460
1464
|
color: ${b.secondaryWarningColor};
|
|
@@ -1473,13 +1477,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1473
1477
|
/** Warning Tertiary styles **/
|
|
1474
1478
|
|
|
1475
1479
|
.ftds--family-warning.ft-button--tertiary {
|
|
1476
|
-
${
|
|
1480
|
+
${S(ut.color,b.tertiaryWarningIconColor)};
|
|
1477
1481
|
|
|
1478
|
-
${
|
|
1479
|
-
${
|
|
1480
|
-
${
|
|
1481
|
-
${
|
|
1482
|
-
${
|
|
1482
|
+
${S(_.backgroundColor,b.tertiaryWarningStateLayerColor)};
|
|
1483
|
+
${S(_.opacityContentOnSurfaceHover,b.tertiaryWarningHoverStateLayerOpacity)};
|
|
1484
|
+
${S(_.opacityContentOnSurfaceFocused,b.tertiaryWarningFocusStateLayerOpacity)};
|
|
1485
|
+
${S(_.opacityContentOnSurfaceSelected,b.tertiaryWarningActiveStateLayerOpacity)};
|
|
1486
|
+
${S(_.opacityContentOnSurfacePressed,b.tertiaryWarningActiveStateLayerOpacity)};
|
|
1483
1487
|
|
|
1484
1488
|
background-color: ${b.tertiaryWarningBackgroundColor};
|
|
1485
1489
|
color: ${b.tertiaryWarningColor};
|
|
@@ -1497,13 +1501,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1497
1501
|
/** Error Secondary styles **/
|
|
1498
1502
|
|
|
1499
1503
|
.ftds--family-error.ft-button--secondary {
|
|
1500
|
-
${
|
|
1504
|
+
${S(ut.color,b.secondaryErrorIconColor)};
|
|
1501
1505
|
|
|
1502
|
-
${
|
|
1503
|
-
${
|
|
1504
|
-
${
|
|
1505
|
-
${
|
|
1506
|
-
${
|
|
1506
|
+
${S(_.backgroundColor,b.secondaryErrorStateLayerColor)};
|
|
1507
|
+
${S(_.opacityContentOnSurfaceHover,b.secondaryErrorHoverStateLayerOpacity)};
|
|
1508
|
+
${S(_.opacityContentOnSurfaceFocused,b.secondaryErrorFocusStateLayerOpacity)};
|
|
1509
|
+
${S(_.opacityContentOnSurfaceSelected,b.secondaryErrorActiveStateLayerOpacity)};
|
|
1510
|
+
${S(_.opacityContentOnSurfacePressed,b.secondaryErrorActiveStateLayerOpacity)};
|
|
1507
1511
|
|
|
1508
1512
|
background-color: ${b.secondaryErrorBackgroundColor};
|
|
1509
1513
|
color: ${b.secondaryErrorColor};
|
|
@@ -1522,13 +1526,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1522
1526
|
/** Error Tertiary styles **/
|
|
1523
1527
|
|
|
1524
1528
|
.ftds--family-error.ft-button--tertiary {
|
|
1525
|
-
${
|
|
1529
|
+
${S(ut.color,b.tertiaryErrorIconColor)};
|
|
1526
1530
|
|
|
1527
|
-
${
|
|
1528
|
-
${
|
|
1529
|
-
${
|
|
1530
|
-
${
|
|
1531
|
-
${
|
|
1531
|
+
${S(_.backgroundColor,b.tertiaryErrorStateLayerColor)};
|
|
1532
|
+
${S(_.opacityContentOnSurfaceHover,b.tertiaryErrorHoverStateLayerOpacity)};
|
|
1533
|
+
${S(_.opacityContentOnSurfaceFocused,b.tertiaryErrorFocusStateLayerOpacity)};
|
|
1534
|
+
${S(_.opacityContentOnSurfaceSelected,b.tertiaryErrorActiveStateLayerOpacity)};
|
|
1535
|
+
${S(_.opacityContentOnSurfacePressed,b.tertiaryErrorActiveStateLayerOpacity)};
|
|
1532
1536
|
|
|
1533
1537
|
background-color: ${b.tertiaryErrorBackgroundColor};
|
|
1534
1538
|
color: ${b.tertiaryErrorColor};
|
|
@@ -1546,8 +1550,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1546
1550
|
/** Large styles **/
|
|
1547
1551
|
|
|
1548
1552
|
.ftds--size-large {
|
|
1549
|
-
${
|
|
1550
|
-
${
|
|
1553
|
+
${S(Et.size,b.largeIconSize)};
|
|
1554
|
+
${S(ut.size,b.largeIconSize)};
|
|
1551
1555
|
|
|
1552
1556
|
height: ${b.largeHeight};
|
|
1553
1557
|
padding: 0 ${b.largeHorizontalPadding};
|
|
@@ -1568,8 +1572,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1568
1572
|
/** Small styles **/
|
|
1569
1573
|
|
|
1570
1574
|
.ftds--size-medium {
|
|
1571
|
-
${
|
|
1572
|
-
${
|
|
1575
|
+
${S(Et.size,b.mediumIconSize)};
|
|
1576
|
+
${S(ut.size,b.mediumIconSize)};
|
|
1573
1577
|
|
|
1574
1578
|
height: ${b.mediumHeight};
|
|
1575
1579
|
padding: 0 ${b.mediumHorizontalPadding};
|
|
@@ -1591,8 +1595,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1591
1595
|
/** Small styles **/
|
|
1592
1596
|
|
|
1593
1597
|
.ftds--size-small {
|
|
1594
|
-
${
|
|
1595
|
-
${
|
|
1598
|
+
${S(Et.size,b.smallIconSize)};
|
|
1599
|
+
${S(ut.size,b.smallIconSize)};
|
|
1596
1600
|
|
|
1597
1601
|
height: ${b.smallHeight};
|
|
1598
1602
|
padding: 0 ${b.smallHorizontalPadding};
|
|
@@ -1609,15 +1613,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1609
1613
|
.ftds--size-small.ft-button--icon-only {
|
|
1610
1614
|
width: ${b.smallIconOnlyWidth};
|
|
1611
1615
|
}
|
|
1612
|
-
`,
|
|
1613
|
-
`;var
|
|
1614
|
-
`;var
|
|
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`
|
|
1615
1619
|
<slot></slot>
|
|
1616
|
-
`}update(t){var
|
|
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`
|
|
1617
1621
|
<span class="ft-i18n">
|
|
1618
1622
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
1619
1623
|
</span>
|
|
1620
|
-
`}update(t){var
|
|
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=$`
|
|
1621
1625
|
*:focus {
|
|
1622
1626
|
outline: none;
|
|
1623
1627
|
}
|
|
@@ -1630,11 +1634,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1630
1634
|
}
|
|
1631
1635
|
|
|
1632
1636
|
ft-input-label {
|
|
1633
|
-
${
|
|
1634
|
-
${
|
|
1635
|
-
${
|
|
1636
|
-
${
|
|
1637
|
-
${
|
|
1637
|
+
${S(z.fontSize,G.fontSize)};
|
|
1638
|
+
${S(z.raisedFontSize,G.labelSize)};
|
|
1639
|
+
${S(z.verticalSpacing,G.verticalSpacing)};
|
|
1640
|
+
${S(z.horizontalSpacing,G.horizontalSpacing)};
|
|
1641
|
+
${S(z.backgroundColor,G.backgroundColor)};
|
|
1638
1642
|
}
|
|
1639
1643
|
|
|
1640
1644
|
.ft-text-field--main-panel {
|
|
@@ -1651,13 +1655,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1651
1655
|
overflow: hidden;
|
|
1652
1656
|
padding: 0 ${G.horizontalSpacing};
|
|
1653
1657
|
|
|
1654
|
-
${
|
|
1655
|
-
${
|
|
1658
|
+
${S(Qt.fontSize,G.fontSize)};
|
|
1659
|
+
${S(Qt.lineHeight,G.fontSize)};
|
|
1656
1660
|
}
|
|
1657
1661
|
|
|
1658
1662
|
.ft-text-field--input-panel ft-ripple {
|
|
1659
|
-
${
|
|
1660
|
-
${
|
|
1663
|
+
${S(_.opacityContentOnSurfaceHover,"0.08")};
|
|
1664
|
+
${S(_.opacityContentOnSurfacePressed,"0.04")};
|
|
1661
1665
|
}
|
|
1662
1666
|
|
|
1663
1667
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
|
|
@@ -1689,6 +1693,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1689
1693
|
padding: calc(2 * ${G.verticalSpacing}) 0;
|
|
1690
1694
|
border: none;
|
|
1691
1695
|
background: none;
|
|
1696
|
+
|
|
1697
|
+
&:-webkit-autofill,
|
|
1698
|
+
&:-webkit-autofill:hover,
|
|
1699
|
+
&:-webkit-autofill:focus {
|
|
1700
|
+
-webkit-text-fill-color: ${G.colorOnSurface};
|
|
1701
|
+
transition: background-color 50000000s ease-in-out 100000s;
|
|
1702
|
+
}
|
|
1692
1703
|
}
|
|
1693
1704
|
|
|
1694
1705
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
|
|
@@ -1706,8 +1717,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1706
1717
|
}
|
|
1707
1718
|
|
|
1708
1719
|
.ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
|
|
1709
|
-
${
|
|
1710
|
-
${
|
|
1720
|
+
${S(z.borderColor,G.colorPrimary)};
|
|
1721
|
+
${S(z.textColor,G.colorPrimary)};
|
|
1711
1722
|
}
|
|
1712
1723
|
|
|
1713
1724
|
.ft-text-field--filled .ft-text-field--input-panel {
|
|
@@ -1762,13 +1773,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1762
1773
|
}
|
|
1763
1774
|
|
|
1764
1775
|
.ft-text-field--with-icon {
|
|
1765
|
-
${
|
|
1776
|
+
${S(z.labelMaxWidth,`calc(100% - ${Et.size} - ${z.horizontalSpacing})`)};
|
|
1766
1777
|
}
|
|
1767
1778
|
|
|
1768
1779
|
.ft-text-field--with-password ft-icon:hover {
|
|
1769
1780
|
cursor: pointer;
|
|
1770
1781
|
}
|
|
1771
|
-
`;var
|
|
1782
|
+
`;var Op=$`
|
|
1772
1783
|
.ft-text-field-suggestion {
|
|
1773
1784
|
position: relative;
|
|
1774
1785
|
padding: 8px 16px;
|
|
@@ -1804,24 +1815,24 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1804
1815
|
slot {
|
|
1805
1816
|
pointer-events: none;
|
|
1806
1817
|
}
|
|
1807
|
-
`;var
|
|
1808
|
-
<div class=${
|
|
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`
|
|
1819
|
+
<div class=${Rt(t)}
|
|
1809
1820
|
tabindex="-1"
|
|
1810
1821
|
@keydown=${this.onKeyDown}
|
|
1811
1822
|
@click=${this.confirmSuggestion}>
|
|
1812
1823
|
<ft-ripple></ft-ripple>
|
|
1813
|
-
${this.helper?
|
|
1824
|
+
${this.helper?k`
|
|
1814
1825
|
<ft-typography class="ft-text-field-suggestion--helper-text" variant="caption">
|
|
1815
1826
|
${this.helper}
|
|
1816
|
-
</ft-typography>`:
|
|
1827
|
+
</ft-typography>`:W}
|
|
1817
1828
|
<ft-typography part="label"
|
|
1818
1829
|
variant="body1"
|
|
1819
1830
|
class="ft-text-field-suggestion--label">
|
|
1820
1831
|
<slot></slot>
|
|
1821
1832
|
</ft-typography>
|
|
1822
1833
|
</div>
|
|
1823
|
-
`}focus(t){var
|
|
1824
|
-
<div class="${
|
|
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`
|
|
1835
|
+
<div class="${Rt(t)}">
|
|
1825
1836
|
<div class="ft-text-field--main-panel"
|
|
1826
1837
|
@keydown=${this.handleKeyboardNavigation}
|
|
1827
1838
|
@focusout=${this.onMainPanelBlur}>
|
|
@@ -1831,19 +1842,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1831
1842
|
?raised=${this.focused||this.value!=""}
|
|
1832
1843
|
?error=${this.error}></ft-input-label>
|
|
1833
1844
|
<div class="ft-text-field--input-panel">
|
|
1834
|
-
${this.outlined?
|
|
1845
|
+
${this.outlined?W:k`
|
|
1835
1846
|
<ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
|
|
1836
1847
|
`}
|
|
1837
|
-
${this.prefix?
|
|
1848
|
+
${this.prefix?k`
|
|
1838
1849
|
<ft-typography class="ft-text-field--prefix" variant="body1">
|
|
1839
1850
|
${this.prefix}
|
|
1840
1851
|
</ft-typography>
|
|
1841
|
-
`:
|
|
1842
|
-
<input type=${
|
|
1843
|
-
name=${
|
|
1844
|
-
maxlength=${
|
|
1852
|
+
`:W}
|
|
1853
|
+
<input type=${this.resolveInputType()}
|
|
1854
|
+
name=${Yi(this.name)}
|
|
1855
|
+
maxlength=${Yi(this.maxLength||void 0)}
|
|
1845
1856
|
aria-label="${this.label}"
|
|
1846
|
-
autocomplete=${
|
|
1857
|
+
autocomplete=${Yi(this.autocomplete)}
|
|
1847
1858
|
class="ft-typography--body1 ft-text-field--input"
|
|
1848
1859
|
part="input"
|
|
1849
1860
|
?disabled=${this.disabled}
|
|
@@ -1856,40 +1867,40 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1856
1867
|
<div class="ft-text-field--suggestions"
|
|
1857
1868
|
@suggestion-selected=${this.onSuggestionSelected}>
|
|
1858
1869
|
<slot @slotchange=${()=>this.filterSuggestionsIfNeeded()}></slot>
|
|
1859
|
-
${this.filterSuggestions&&this.value&&this.value!=""?
|
|
1870
|
+
${this.filterSuggestions&&this.value&&this.value!=""?k`
|
|
1860
1871
|
<ft-text-field-suggestion class="ft-text-field-suggestion--new-value" helper="${this.suggestionsHelper}">
|
|
1861
1872
|
${this.value}
|
|
1862
1873
|
</ft-text-field-suggestion>
|
|
1863
|
-
`:
|
|
1874
|
+
`:W}
|
|
1864
1875
|
</div>
|
|
1865
1876
|
</div>
|
|
1866
|
-
${this.helper?
|
|
1877
|
+
${this.helper?k`
|
|
1867
1878
|
<ft-typography class="ft-text-field--helper-text" variant="caption">
|
|
1868
1879
|
${this.helper}
|
|
1869
1880
|
</ft-typography>
|
|
1870
|
-
`:
|
|
1881
|
+
`:W}
|
|
1871
1882
|
</div>
|
|
1872
|
-
`}renderPasswordIcon(){return
|
|
1883
|
+
`}resolveInputType(){var t;return this.isPasswordField()?this.hidePassword?"password":"text":(t=this.type)!==null&&t!==void 0?t:"text"}renderPasswordIcon(){return k`
|
|
1873
1884
|
<ft-icon class="ft-text-field--icon"
|
|
1874
1885
|
.variant=${this.iconVariant}
|
|
1875
1886
|
.value=${this.hidePassword?this.passwordHiddenIcon:this.passwordRevealedIcon}
|
|
1876
1887
|
@click=${()=>this.togglePasswordVisibility()}></ft-icon>
|
|
1877
|
-
`}renderIcon(){return this.
|
|
1888
|
+
`}renderIcon(){return this.isPasswordField()?this.renderPasswordIcon():this.icon?k`
|
|
1878
1889
|
<ft-icon class="ft-text-field--icon"
|
|
1879
1890
|
.variant=${this.iconVariant}
|
|
1880
1891
|
.value=${this.icon}
|
|
1881
1892
|
@click=${()=>{var t;return(t=this.input)===null||t===void 0?void 0:t.focus()}}></ft-icon>
|
|
1882
|
-
`:U}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()}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;let i=((e=this.input)===null||e===void 0?void 0:e.value)||"";this.setValue(i,t.key=="Escape"||t.key=="Enter")}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;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,(e=this.visibleSuggestions[n])===null||e===void 0||e.focus()}(t.key=="Escape"||t.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;!((t=this.mainPanel)===null||t===void 0)&&t.matches(":focus-within")||(this.focused=!1,this.setValue(((e=this.input)===null||e===void 0?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}setSuggestionPosition(){this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px";let t=["bottom","top"];Wa(this.mainPanel,this.suggestionsContainer,"bottom",t,"fixed",0).then(({x:e,y:i})=>{this.suggestionsContainer.style.left=`${e}px`,this.suggestionsContainer.style.top=`${i}px`})}};Z.elementDefinitions={"ft-input-label":Wt,"ft-ripple":et,"ft-typography":xt,"ft-icon":Ct,"ft-text-field-suggestion":Qt};Z.styles=[to,Ya,yp];rt([g()],Z.prototype,"label",void 0);rt([g({noAccessor:!0})],Z.prototype,"value",null);rt([W()],Z.prototype,"dispatchedValue",void 0);rt([g()],Z.prototype,"helper",void 0);rt([g()],Z.prototype,"suggestionsHelper",void 0);rt([g({type:Boolean})],Z.prototype,"outlined",void 0);rt([g({type:Boolean})],Z.prototype,"disabled",void 0);rt([g({type:Boolean})],Z.prototype,"error",void 0);rt([g({type:Boolean})],Z.prototype,"fixedMenuPosition",void 0);rt([g()],Z.prototype,"prefix",void 0);rt([g()],Z.prototype,"icon",void 0);rt([g()],Z.prototype,"name",void 0);rt([g()],Z.prototype,"type",void 0);rt([g()],Z.prototype,"passwordHiddenIcon",void 0);rt([g()],Z.prototype,"passwordRevealedIcon",void 0);rt([g()],Z.prototype,"iconVariant",void 0);rt([g({type:Boolean})],Z.prototype,"filterSuggestions",void 0);rt([g({type:Number})],Z.prototype,"maxLength",void 0);rt([g({type:Boolean})],Z.prototype,"password",void 0);rt([g({type:String})],Z.prototype,"autocomplete",void 0);rt([W()],Z.prototype,"focused",void 0);rt([W()],Z.prototype,"hidePassword",void 0);rt([W()],Z.prototype,"hideSuggestions",void 0);rt([W()],Z.prototype,"visibleSuggestions",void 0);rt([Y(".ft-text-field--main-panel")],Z.prototype,"mainPanel",void 0);rt([Y(".ft-text-field--input")],Z.prototype,"input",void 0);rt([Y(".ft-text-field-suggestion--new-value")],Z.prototype,"newValueSuggestion",void 0);rt([Y(".ft-text-field--suggestions")],Z.prototype,"suggestionsContainer",void 0);rt([Pn({selector:"ft-text-field-suggestion"})],Z.prototype,"suggestions",void 0);X("ft-text-field")(Z);X("ft-text-field-suggestion")(Qt);var bp=r=>Ne.get({name:"ft-reader-"+r,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 tl=class{constructor(t,e){this.mapId=t,this.paginatedToc=e,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,e,i){return t.flatMap(n=>(n.pageConfiguration&&this.registerPage(this.buildPage(n,i)),n.tocId==null?this.extractPagesToc(n.children,e,i):[{tocId:n.tocId,title:n.title,depth:e,children:this.extractPagesToc(n.children,e+1,n.tocId)}]))}convertNodes(t,e,i){return t.flatMap(n=>{var a,s,l;if(n.tocId==null)return[...this.convertSectionNodes((a=n.pageToc)!==null&&a!==void 0?a:[],e,n.tocId),...this.convertNodes(n.children,e,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:e,parentTocId:i,children:[]};this.register(p);let h=this.convertSectionNodes((l=n.pageToc)!==null&&l!==void 0?l:[],e+1,n.tocId),f=this.convertNodes(n.children,e+1,p.tocId);return p.children=[...h,...f],[p]})}convertSectionNodes(t,e,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:e,parentTocId:i,children:[]};return this.register(l),l.children=this.convertSectionNodes(n.children,e+1,n.tocId),[l]})}buildPage(t,e){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:e?this.buildBreadcrumb(this.nodeByTocId[e]):[]},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 e of[...t.topics,...t.hiddenTopics])this.pageByTocId[e]||(this.pageByTocId[e]=t);this.pages.push(t)}tocIds(t){return t.flatMap(e=>[e.tocId,...this.tocIds(e.children)])}buildBreadcrumb(t){let e=[t.tocId];for(;t?.parentTocId;)e.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return e}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}},Xi=class{convertPaginatedToc(t,e){return new tl(t,e).build()}};var Ji=class extends ve{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,i){super(!1,e),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(e=>this.converter.convertPaginatedToc(t,e)))),this.cache.register("ratingSummary",()=>{var t,e;return wr((e=(t=M.getState().session)===null||t===void 0?void 0:t.profile.roles)!==null&&e!==void 0?e:[],"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 e;return(e=this.enrichedToc)===null||e===void 0?void 0:e.nodeByTocId[t]}getTocNodeNowByUrl(t){var e,i;let n=this.getMapNow();return n?.prettyUrl==t||`${n?.id}/root`===t?(e=this.enrichedToc)===null||e===void 0?void 0:e.toc[0]:(i=this.enrichedToc)===null||i===void 0?void 0:i.nodeByUrl[t]}async getPage(t){let e=await this.getEnrichedToc();return e.pages[t-1]||e.pages[0]}async getPageByTocId(t){let e=await this.getEnrichedToc();return e.pageByTocId[t]||e.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,()=>this.fetchTopicMetadata(t))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,()=>this.fetchTopicHTMLContent(t))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}getRelativesForDocument(t,e){return this.cache.get("document-relatives-"+t+"-"+e.join("-"),()=>this.fetchRelativesForDocument(t,e))}getRelativesForTopicInMap(t,e,i){return this.cache.get("topic-relatives-"+[t,e,...i].join("-"),()=>this.fetchRelativesForTopicInMap(t,e,i))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,e,i){let n=this.getNavigationData(t,e,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,e,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:e&&l&&l.number!==e?e:void 0,prettyUrl:p?.replace(/^r\//,""),prettyUrlDuplicated:(a=s?.duplicatedPrettyUrls.has(p??""))!==null&&a!==void 0?a:!1,section:i}}async getAccurateNavigationData(t,e,i){return await this.getEnrichedToc(),this.getNavigationData(t,e,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(e=>{var i;return e?{type:e.topics.type,rating:(i=e.topics)===null||i===void 0?void 0:i.ratings.find(n=>n.tocId===t)}:void 0})}rateMap(t,e){return this.makeRateMapRequest(t,e).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(t,e){return this.makeMapFeedbackRequest(t,e)}rateTopic(t,e,i){return this.makeRateTopicRequest(t,e,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,e,i){return this.makeTopicFeedbackRequest(t,e,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let e=this.getTocNodeNow(t),i=[{tocId:e.tocId,title:e.title}],n=this.getTocNodeNow(e.parentTocId);for(;n;)i.unshift({tocId:n.tocId,title:n.title}),n=this.getTocNodeNow(n.parentTocId);return i}isFeatureAccessible(t,{session:e}){var i;if(!this.isFeatureAvailable(t))return!1;switch(t){case Xt.FEEDBACK:return wr(e??[],st.FEEDBACK_USER);case Xt.RATING:return wr(e??[],st.RATING_USER);case Xt.PRINT:return wr(e??[],st.PRINT_USER);case Xt.BOOKMARK:return!!e?.sessionAuthenticated;case Xt.COLLECTIONS:return wr(e??[],st.COLLECTION_USER);case Xt.PERSONAL_BOOKS:return wr(e??[],st.PERSONAL_BOOK_USER)&&!(!((i=this.getMapNow())===null||i===void 0)&&i.pbkConfidential);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}};var Qi=class r extends Ji{static async build(t){return new r(new Xi,void 0,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){let e=await this.api.getMap(t);return this.fingerprint=e.fingerprint,e}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(t,e){let i={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:t,valueFilter:{negative:!1,values:e}}],sort:[],facets:[]};return this.api.search(i)}fetchRelativesForTopicInMap(t,e,i){let n={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:i}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[t]}}],sort:[],facets:[]};return this.api.search(n)}makeMapFeedbackRequest(t,e){return this.api.sendMapFeedback(this.mapId,t,e)}makeRateMapRequest(t,e){return this.api.rateMap(this.mapId,t,e)}makeRateTopicRequest(t,e,i){return this.api.rateTopic(this.mapId,t,e,i)}makeTopicFeedbackRequest(t,e,i){return this.api.sendTopicFeedback(this.mapId,t,e,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 tn=class r{static build(t,e){return new r(bp(t.trim()||"context"),e??Qi.build)}loaded(){return Zn(()=>this._loaded)}constructor(t,e,i){this.store=t,this.clusteringHelperProvider=i,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new lt(10),this.initService(e)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setRenderedTopics(t){this.store.actions.renderedTopics(t)}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return Oo(()=>this.service)}async navigateToTopic(t,e,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:e})}resolveValidNonRootTocId(t,e){var i,n,a;let s=(i=t==="root"?void 0:t)!==null&&i!==void 0?i:e.rootTocId;return e.topics.includes(s)?s:(a=(n=e.topics[0])!==null&&n!==void 0?n:e.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,e,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)),(e=this.service)===null||e===void 0?void 0:e.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,e,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?(e=this.service)===null||e===void 0||e.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,e;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=(e=(t=M.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&e!==void 0?e:[];return new So(i,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(t){var e,i,n;await this.loaded();let a=await Oo(()=>{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=(e=d?.results)===null||e===void 0?void 0:e[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 vp=L`
|
|
1883
|
-
`;var
|
|
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`
|
|
1884
1895
|
${this.importStyleIfNeeded()}
|
|
1885
1896
|
<slot @register-ft-reader-component=${this.registerComponent}></slot>
|
|
1886
|
-
`}importStyleIfNeeded(){var t,
|
|
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`
|
|
1887
1898
|
<style>
|
|
1888
1899
|
@import "${i}"
|
|
1889
1900
|
</style>
|
|
1890
|
-
`}get stateManager(){return this._stateManager==null&&(this._stateManager=
|
|
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`
|
|
1891
1902
|
<div class="ft-reader-feedback">
|
|
1892
|
-
${this.hideTitle?
|
|
1903
|
+
${this.hideTitle?W:k`
|
|
1893
1904
|
<ft-typography variant="title" part="main-title">
|
|
1894
1905
|
${this.i18n(this.i18nProperties.feedbackMainTitle)}
|
|
1895
1906
|
</ft-typography>
|
|
@@ -1897,7 +1908,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1897
1908
|
${this.renderRatingSection()}
|
|
1898
1909
|
${this.renderFeedbackSection()}
|
|
1899
1910
|
</div>
|
|
1900
|
-
`}renderRatingSection(){return this.canRateThisContent?
|
|
1911
|
+
`}renderRatingSection(){return this.canRateThisContent?k`
|
|
1901
1912
|
<div class="ft-reader-feedback--rating" part="rating-container">
|
|
1902
1913
|
<ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
|
|
1903
1914
|
${this.i18n(this.ratingSummary.type===Ot.DICHOTOMOUS?this.i18nProperties.dichotomousRatingSectionTitle:this.i18nProperties.ratingSectionTitle)}
|
|
@@ -1907,9 +1918,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1907
1918
|
${this.renderRatingDate()}
|
|
1908
1919
|
</ft-typography>
|
|
1909
1920
|
</div>
|
|
1910
|
-
`:
|
|
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`
|
|
1911
1922
|
<div class="ft-reader-feedback--stars" part="rating rating-stars">
|
|
1912
|
-
${
|
|
1923
|
+
${$n(new Array(5),(a,s)=>s,(a,s)=>{let l=this.ratingTypeOfDoneRatingOfThisContent===Ot.STARS&&this.ratingValue>s,d=s+1;return k`
|
|
1913
1924
|
<ft-button round part="rating-stars-${d}"
|
|
1914
1925
|
label="${tt.messages.starsRating(d)}"
|
|
1915
1926
|
tooltipPosition="top"
|
|
@@ -1920,15 +1931,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1920
1931
|
></ft-button>
|
|
1921
1932
|
`})}
|
|
1922
1933
|
</div>
|
|
1923
|
-
`;case Ot.LIKE:let t=this.ratingTypeOfDoneRatingOfThisContent===Ot.LIKE&&this.ratingValue===0,
|
|
1934
|
+
`;case Ot.LIKE:let t=this.ratingTypeOfDoneRatingOfThisContent===Ot.LIKE&&this.ratingValue===0,r=this.ratingTypeOfDoneRatingOfThisContent===Ot.LIKE&&this.ratingValue===1;return k`
|
|
1924
1935
|
<ft-switch unselectable
|
|
1925
1936
|
@change=${a=>this.rate(a.detail)}
|
|
1926
1937
|
part="rating rating-like"
|
|
1927
1938
|
label=${this.i18n(this.i18nProperties.ratingSectionTitle)}>
|
|
1928
1939
|
<ft-switch-option .value=${1}
|
|
1929
|
-
?selected=${
|
|
1940
|
+
?selected=${r}
|
|
1930
1941
|
.iconVariant=${this.iconVariant}
|
|
1931
|
-
icon="${
|
|
1942
|
+
icon="${r?this.filledLikeIcon:this.emptyLikeIcon}"
|
|
1932
1943
|
role="radio">
|
|
1933
1944
|
${tt.messages.like()}
|
|
1934
1945
|
</ft-switch-option>
|
|
@@ -1940,7 +1951,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1940
1951
|
${tt.messages.dislike()}
|
|
1941
1952
|
</ft-switch-option>
|
|
1942
1953
|
</ft-switch>
|
|
1943
|
-
`;case Ot.DICHOTOMOUS:let i=this.ratingTypeOfDoneRatingOfThisContent===Ot.DICHOTOMOUS&&this.ratingValue===0,n=this.ratingTypeOfDoneRatingOfThisContent===Ot.DICHOTOMOUS&&this.ratingValue===1;return
|
|
1954
|
+
`;case Ot.DICHOTOMOUS:let i=this.ratingTypeOfDoneRatingOfThisContent===Ot.DICHOTOMOUS&&this.ratingValue===0,n=this.ratingTypeOfDoneRatingOfThisContent===Ot.DICHOTOMOUS&&this.ratingValue===1;return k`
|
|
1944
1955
|
<ft-switch unselectable
|
|
1945
1956
|
@change=${a=>this.rate(a.detail)}
|
|
1946
1957
|
part="rating rating-dichotomous">
|
|
@@ -1953,7 +1964,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1953
1964
|
${tt.messages.dichotomousNo()}
|
|
1954
1965
|
</ft-switch-option>
|
|
1955
1966
|
</ft-switch>
|
|
1956
|
-
`}return
|
|
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`
|
|
1957
1968
|
<ft-button primary
|
|
1958
1969
|
type="submit" name="submit"
|
|
1959
1970
|
class="ft-reader-feedback--send-feedback"
|
|
@@ -1961,11 +1972,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1961
1972
|
part="send-feedback">
|
|
1962
1973
|
${tt.messages.okButton()}
|
|
1963
1974
|
</ft-button>
|
|
1964
|
-
`;s&&(l=
|
|
1975
|
+
`;s&&(l=k`
|
|
1965
1976
|
<a class="ft-reader-feedback--feedback-link" href="${s}">
|
|
1966
1977
|
${l}
|
|
1967
1978
|
</a>
|
|
1968
|
-
`);let d=this.withMoreOptionsButton&&(!((t=this.configuration)===null||t===void 0)&&t.mailsSentByFluidTopics||!((
|
|
1979
|
+
`);let d=this.withMoreOptionsButton&&(!((t=this.configuration)===null||t===void 0)&&t.mailsSentByFluidTopics||!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers)?k`
|
|
1969
1980
|
<ft-button outlined
|
|
1970
1981
|
type="button" name="more-options"
|
|
1971
1982
|
class="ft-reader-feedback--more-options"
|
|
@@ -1973,13 +1984,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1973
1984
|
part="more-options">
|
|
1974
1985
|
${tt.messages.moreOptionsButton()}
|
|
1975
1986
|
</ft-button>
|
|
1976
|
-
`:
|
|
1987
|
+
`:W;return k`
|
|
1977
1988
|
<form class="ft-reader-feedback--feedback" part="feedback-container" autocomplete="on"
|
|
1978
1989
|
@submit="${p=>this.onFormSubmitEvent(p,!!s)}">
|
|
1979
1990
|
<ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
|
|
1980
1991
|
${this.i18n(this.i18nProperties.feedbackSectionTitle)}
|
|
1981
1992
|
</ft-typography>
|
|
1982
|
-
${((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)?
|
|
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`
|
|
1983
1994
|
<ft-text-field outlined name="email" type="email" autocomplete="email"
|
|
1984
1995
|
class="ft-reader-feedback--from-input"
|
|
1985
1996
|
label=${tt.messages.feedbackfromEmail()}
|
|
@@ -1987,7 +1998,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1987
1998
|
?error=${this.from&&!this.validFromEmail()}
|
|
1988
1999
|
helper=${this.from&&!this.validFromEmail()?tt.messages.feedbackfromEmailInvalid():""}
|
|
1989
2000
|
/>
|
|
1990
|
-
`:
|
|
2001
|
+
`:W}
|
|
1991
2002
|
<ft-text-area outlined
|
|
1992
2003
|
class="ft-reader-feedback--feedback-input" part="feedback-input"
|
|
1993
2004
|
label="${tt.messages.feedbackInputLabel()}"
|
|
@@ -1998,7 +2009,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1998
2009
|
${l}
|
|
1999
2010
|
</div>
|
|
2000
2011
|
</form>
|
|
2001
|
-
`}return
|
|
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(`
|
|
2002
2013
|
${this.bodyMetadata}
|
|
2003
2014
|
${this.url}
|
|
2004
2015
|
_________________________________________________________________
|
|
@@ -2006,7 +2017,7 @@ _________________________________________________________________
|
|
|
2006
2017
|
${t??""}
|
|
2007
2018
|
|
|
2008
2019
|
_________________________________________________________________
|
|
2009
|
-
${
|
|
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`
|
|
2010
2021
|
<ft-reader-feedback
|
|
2011
2022
|
ratingAllowed
|
|
2012
2023
|
.i18nProperties=${this.i18nProperties}
|
|
@@ -2028,7 +2039,7 @@ ${ro.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(e=this.configura
|
|
|
2028
2039
|
@mailer-feedback=${this.onMailerFeedbackSent}
|
|
2029
2040
|
@open-more-options=${this.openMoreOptions}
|
|
2030
2041
|
></ft-reader-feedback>
|
|
2031
|
-
`}update(t){var
|
|
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`
|
|
2032
2043
|
<ft-reader-feedback
|
|
2033
2044
|
.i18nProperties=${this.i18nProperties}
|
|
2034
2045
|
?ratingAllowed=${(t=this.tocNode)===null||t===void 0?void 0:t.hasRating}
|
|
@@ -2044,13 +2055,13 @@ ${ro.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(e=this.configura
|
|
|
2044
2055
|
.filledLikeIcon=${this.filledLikeIcon}
|
|
2045
2056
|
.emptyDislikeIcon=${this.emptyDislikeIcon}
|
|
2046
2057
|
.filledDislikeIcon=${this.filledDislikeIcon}
|
|
2047
|
-
.feedbackMailLinkBuilder=${
|
|
2058
|
+
.feedbackMailLinkBuilder=${r=>this.feedbackLinkBuilder.build(r)}
|
|
2048
2059
|
@rate=${this.rate}
|
|
2049
2060
|
@send-feedback=${this.sendFeedback}
|
|
2050
2061
|
@mailer-feedback=${this.onMailerFeedbackSent}
|
|
2051
2062
|
@open-more-options=${this.openMoreOptions}
|
|
2052
2063
|
></ft-reader-feedback>
|
|
2053
|
-
`}update(t){var
|
|
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);})();
|
|
2054
2065
|
/*! Bundled license information:
|
|
2055
2066
|
|
|
2056
2067
|
@webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js:
|