@fluid-topics/ft-reader-feedback 1.1.113 → 1.1.114
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
"use strict";(()=>{var
|
|
2
|
-
`)===0?Y.substr(1,Y.length):Y}).forEach(function(Y){var ie=Y.split(":"),K=ie.shift().trim();if(K){var Lo=ie.join(":").trim();try{x.append(K,Lo)}catch(on){console.warn("Response "+on.message)}}}),x}I.call(w.prototype);function oe(m,x){if(!(this instanceof oe))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(x||(x={}),this.type="default",this.status=x.status===void 0?200:x.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=x.statusText===void 0?"":""+x.statusText,this.headers=new f(x.headers),this.url=x.url||"",this._initBody(m)}I.call(oe.prototype),oe.prototype.clone=function(){return new oe(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},oe.error=function(){var m=new oe(null,{status:200,statusText:""});return m.ok=!1,m.status=0,m.type="error",m};var Q=[301,302,303,307,308];oe.redirect=function(m,x){if(Q.indexOf(x)===-1)throw new RangeError("Invalid status code");return new oe(null,{status:x,headers:{location:m}})},t.DOMException=o.DOMException;try{new t.DOMException}catch{t.DOMException=function(x,k){this.message=x,this.name=k;var Y=Error(x);this.stack=Y.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function D(m,x){return new Promise(function(k,Y){var ie=new w(m,x);if(ie.signal&&ie.signal.aborted)return Y(new t.DOMException("Aborted","AbortError"));var K=new XMLHttpRequest;function Lo(){K.abort()}K.onload=function(){var Ce={statusText:K.statusText,headers:J(K.getAllResponseHeaders()||"")};ie.url.indexOf("file://")===0&&(K.status<200||K.status>599)?Ce.status=200:Ce.status=K.status,Ce.url="responseURL"in K?K.responseURL:Ce.headers.get("X-Request-URL");var Jt="response"in K?K.response:K.responseText;setTimeout(function(){k(new oe(Jt,Ce))},0)},K.onerror=function(){setTimeout(function(){Y(new TypeError("Network request failed"))},0)},K.ontimeout=function(){setTimeout(function(){Y(new TypeError("Network request timed out"))},0)},K.onabort=function(){setTimeout(function(){Y(new t.DOMException("Aborted","AbortError"))},0)};function on(Ce){try{return Ce===""&&o.location.href?o.location.href:Ce}catch{return Ce}}if(K.open(ie.method,on(ie.url),!0),ie.credentials==="include"?K.withCredentials=!0:ie.credentials==="omit"&&(K.withCredentials=!1),"responseType"in K&&(n.blob?K.responseType="blob":n.arrayBuffer&&(K.responseType="arraybuffer")),x&&typeof x.headers=="object"&&!(x.headers instanceof f||o.Headers&&x.headers instanceof o.Headers)){var Fs=[];Object.getOwnPropertyNames(x.headers).forEach(function(Ce){Fs.push(c(Ce)),K.setRequestHeader(Ce,p(x.headers[Ce]))}),ie.headers.forEach(function(Ce,Jt){Fs.indexOf(Jt)===-1&&K.setRequestHeader(Jt,Ce)})}else ie.headers.forEach(function(Ce,Jt){K.setRequestHeader(Jt,Ce)});ie.signal&&(ie.signal.addEventListener("abort",Lo),K.onreadystatechange=function(){K.readyState===4&&ie.signal.removeEventListener("abort",Lo)}),K.send(typeof ie._bodyInit>"u"?null:ie._bodyInit)})}return D.polyfill=!0,o.fetch||(o.fetch=D,o.Headers=f,o.Request=w,o.Response=oe),t.Headers=f,t.Request=w,t.Response=oe,t.fetch=D,t}({})})(Ui);Ui.fetch.ponyfill=!0;delete Ui.fetch.polyfill;var qr=Mi.fetch?Mi:Ui;Yt=qr.fetch;Yt.default=qr.fetch;Yt.fetch=qr.fetch;Yt.Headers=qr.Headers;Yt.Request=qr.Request;Yt.Response=qr.Response;Id.exports=Yt});if(!ShadowRoot.prototype.createElement){let r=window.HTMLElement,e=window.customElements.define,t=window.customElements.get,o=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(S,O){if(S=S.toLowerCase(),this._getDefinition(S)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${S}" has already been used with this registry`);if(this._definitionsByClass.get(O)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let w=O.prototype.attributeChangedCallback,U=new Set(O.observedAttributes||[]);y(O,U,w);let J={elementClass:O,connectedCallback:O.prototype.connectedCallback,disconnectedCallback:O.prototype.disconnectedCallback,adoptedCallback:O.prototype.adoptedCallback,attributeChangedCallback:w,formAssociated:O.formAssociated,formAssociatedCallback:O.prototype.formAssociatedCallback,formDisabledCallback:O.prototype.formDisabledCallback,formResetCallback:O.prototype.formResetCallback,formStateRestoreCallback:O.prototype.formStateRestoreCallback,observedAttributes:U};this._definitionsByTag.set(S,J),this._definitionsByClass.set(O,J);let oe=t.call(o,S);oe||(oe=f(S),e.call(o,S,oe)),this===window.customElements&&(s.set(O,J),J.standInClass=oe);let Q=this._awaitingUpgrade.get(S);if(Q){this._awaitingUpgrade.delete(S);for(let m of Q)a.delete(m),v(m,J,!0)}let D=this._whenDefinedPromises.get(S);return D!==void 0&&(D.resolve(O),this._whenDefinedPromises.delete(S)),O}upgrade(){A.push(this),o.upgrade.apply(o,arguments),A.pop()}get(S){return this._definitionsByTag.get(S)?.elementClass}_getDefinition(S){return this._definitionsByTag.get(S)}whenDefined(S){let O=this._getDefinition(S);if(O!==void 0)return Promise.resolve(O.elementClass);let w=this._whenDefinedPromises.get(S);return w===void 0&&(w={},w.promise=new Promise(U=>w.resolve=U),this._whenDefinedPromises.set(S,w)),w.promise}_upgradeWhenDefined(S,O,w){let U=this._awaitingUpgrade.get(O);U||this._awaitingUpgrade.set(O,U=new Set),w?U.add(S):U.delete(S)}};let c;window.HTMLElement=function(){let O=c;if(O)return c=void 0,O;let w=s.get(this.constructor);if(!w)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return O=Reflect.construct(r,[],w.standInClass),Object.setPrototypeOf(O,this.constructor.prototype),n.set(O,w),O},window.HTMLElement.prototype=r.prototype;let p=S=>S===document||S instanceof ShadowRoot,h=S=>{let O=S.getRootNode();if(!p(O)){let w=A[A.length-1];if(w instanceof CustomElementRegistry)return w;O=w.getRootNode(),p(O)||(O=l.get(O)?.getRootNode()||document)}return O.customElements},f=S=>class{static get formAssociated(){return!0}constructor(){let w=Reflect.construct(r,[],this.constructor);Object.setPrototypeOf(w,HTMLElement.prototype);let U=h(w)||window.customElements,J=U._getDefinition(S);return J?v(w,J):a.set(w,U),w}connectedCallback(){let w=n.get(this);w?w.connectedCallback&&w.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,S,!0)}disconnectedCallback(){let w=n.get(this);w?w.disconnectedCallback&&w.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,S,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let w=n.get(this);w&&w.formAssociated&&w?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let w=n.get(this);w?.formAssociated&&w?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let w=n.get(this);w?.formAssociated&&w?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let w=n.get(this);w?.formAssociated&&w?.formStateRestoreCallback?.apply(this,arguments)}},y=(S,O,w)=>{if(O.size===0||w===void 0)return;let U=S.prototype.setAttribute;U&&(S.prototype.setAttribute=function(Q,D){let m=Q.toLowerCase();if(O.has(m)){let x=this.getAttribute(m);U.call(this,m,D),w.call(this,m,x,D)}else U.call(this,m,D)});let J=S.prototype.removeAttribute;J&&(S.prototype.removeAttribute=function(Q){let D=Q.toLowerCase();if(O.has(D)){let m=this.getAttribute(D);J.call(this,D),w.call(this,D,m,null)}else J.call(this,D)});let oe=S.prototype.toggleAttribute;oe&&(S.prototype.toggleAttribute=function(Q,D){let m=Q.toLowerCase();if(O.has(m)){let x=this.getAttribute(m);oe.call(this,m,D);let k=this.getAttribute(m);w.call(this,m,x,k)}else oe.call(this,m,D)})},b=S=>{let O=Object.getPrototypeOf(S);if(O!==window.HTMLElement)return O===r?Object.setPrototypeOf(S,window.HTMLElement):b(O)},v=(S,O,w=!1)=>{Object.setPrototypeOf(S,O.elementClass.prototype),n.set(S,O),c=S;try{new O.elementClass}catch{b(O.elementClass),new O.elementClass}O.attributeChangedCallback&&O.observedAttributes.forEach(U=>{S.hasAttribute(U)&&O.attributeChangedCallback.call(S,U,null,S.getAttribute(U))}),w&&O.connectedCallback&&S.isConnected&&O.connectedCallback.call(S)},E=Element.prototype.attachShadow;Element.prototype.attachShadow=function(S){let O=E.apply(this,arguments);return S.customElements&&(O.customElements=S.customElements),O};let A=[document],R=(S,O,w=void 0)=>{let U=(w?Object.getPrototypeOf(w):S.prototype)[O];S.prototype[O]=function(){A.push(this);let J=U.apply(w||this,arguments);return J!==void 0&&l.set(J,this),A.pop(),J}};R(ShadowRoot,"createElement",document),R(ShadowRoot,"importNode",document),R(Element,"insertAdjacentHTML");let I=(S,O)=>{let w=Object.getOwnPropertyDescriptor(S.prototype,O);Object.defineProperty(S.prototype,O,{...w,set(U){A.push(this),w.set.call(this,U),A.pop()}})};if(I(Element,"innerHTML"),I(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let S=new WeakMap,O=HTMLElement.prototype.attachInternals,w=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...Q){let D=O.call(this,...Q);return S.set(D,this),D},w.forEach(Q=>{let D=window.ElementInternals.prototype,m=D[Q];D[Q]=function(...x){let k=S.get(this);if(n.get(k).formAssociated===!0)return m?.call(this,...x);throw new DOMException(`Failed to execute ${m} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class U extends Array{constructor(D){super(...D),this._elements=D}get value(){return this._elements.find(D=>D.checked===!0)?.value||""}}class J{constructor(D){let m=new Map;D.forEach((x,k)=>{let Y=x.getAttribute("name"),ie=m.get(Y)||[];this[+k]=x,ie.push(x),m.set(Y,ie)}),this.length=D.length,m.forEach((x,k)=>{x&&(x.length===1?this[k]=x[0]:this[k]=new U(x))})}namedItem(D){return this[D]}}let oe=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let Q=oe.get.call(this,[]),D=[];for(let m of Q){let x=n.get(m);(!x||x.formAssociated===!0)&&D.push(m)}return new J(D)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(t,o,n)=>{if(o!==null)try{e.bind(window.customElements)(t,o,n)}catch(a){console.info(t,o,n,a)}}}var bn={};ee(bn,{CSSResult:()=>_r,LitElement:()=>yt,ReactiveElement:()=>nt,_$LE:()=>Ip,_$LH:()=>_p,adoptStyles:()=>Yo,css:()=>P,defaultConverter:()=>Xo,getCompatibleStyle:()=>no,html:()=>$,isServer:()=>ch,noChange:()=>It,notEqual:()=>un,nothing:()=>B,render:()=>yn,supportsAdoptingStyleSheets:()=>io,svg:()=>Rp,unsafeCSS:()=>mt});var Do=globalThis,Uo=Do.ShadowRoot&&(Do.ShadyCSS===void 0||Do.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,zs=Symbol(),Bs=new WeakMap,Mo=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==zs)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(Uo&&e===void 0){let o=t!==void 0&&t.length===1;o&&(e=Bs.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&Bs.set(t,e))}return e}toString(){return this.cssText}},Hs=r=>new Mo(typeof r=="string"?r:r+"",void 0,zs);var an=(r,e)=>{if(Uo)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let o=document.createElement("style"),n=Do.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=t.cssText,r.appendChild(o)}},Fo=Uo?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return Hs(t)})(r):r;var{is:lp,defineProperty:cp,getOwnPropertyDescriptor:dp,getOwnPropertyNames:pp,getOwnPropertySymbols:up,getPrototypeOf:fp}=Object,Bo=globalThis,Ws=Bo.trustedTypes,hp=Ws?Ws.emptyScript:"",mp=Bo.reactiveElementPolyfillSupport,Jr=(r,e)=>r,Qr={toAttribute(r,e){switch(e){case Boolean:r=r?hp:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},zo=(r,e)=>!lp(r,e),Vs={attribute:!0,type:String,converter:Qr,reflect:!1,hasChanged:zo};Symbol.metadata??=Symbol("metadata"),Bo.litPropertyMetadata??=new WeakMap;var Qt=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Vs){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(e,o,t);n!==void 0&&cp(this.prototype,e,n)}}static getPropertyDescriptor(e,t,o){let{get:n,set:a}=dp(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(e,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Vs}static _$Ei(){if(this.hasOwnProperty(Jr("elementProperties")))return;let e=fp(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Jr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Jr("properties"))){let t=this.properties,o=[...pp(t),...up(t)];for(let n of o)this.createProperty(n,t[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[o,n]of t)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[t,o]of this.elementProperties){let n=this._$Eu(t,o);n!==void 0&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let n of o)t.unshift(Fo(n))}else e!==void 0&&t.push(Fo(e));return t}static _$Eu(e,t){let o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$E_??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$E_?.delete(e)}_$ES(){let e=new Map,t=this.constructor.elementProperties;for(let o of t.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return an(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$E_?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$EO(e,t){let o=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,o);if(n!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:Qr).toAttribute(t,o.type);this._$Em=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(e,t){let o=this.constructor,n=o._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let a=o.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:Qr;this._$Em=n,this[n]=s.fromAttribute(t,a.type),this._$Em=null}}requestUpdate(e,t,o,n=!1,a){if(e!==void 0){if(o??=this.constructor.getPropertyOptions(e),!(o.hasChanged??zo)(n?a:this[e],t))return;this.C(e,t,o)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,t,o){this._$AL.has(e)||this._$AL.set(e,t),o.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[n,a]of o)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],a)}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$E_?.forEach(o=>o.hostUpdate?.()),this.update(t)):this._$ET()}catch(o){throw e=!1,this._$ET(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$E_?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(t=>this._$EO(t,this[t])),this._$ET()}updated(e){}firstUpdated(e){}};Qt.elementStyles=[],Qt.shadowRootOptions={mode:"open"},Qt[Jr("elementProperties")]=new Map,Qt[Jr("finalized")]=new Map,mp?.({ReactiveElement:Qt}),(Bo.reactiveElementVersions??=[]).push("2.0.2");var ln=globalThis,Ho=ln.trustedTypes,js=Ho?Ho.createPolicy("lit-html",{createHTML:r=>r}):void 0,cn="$lit$",ht=`lit$${(Math.random()+"").slice(9)}$`,dn="?"+ht,gp=`<${dn}>`,rr=document,Wo=()=>rr.createComment(""),to=r=>r===null||typeof r!="object"&&typeof r!="function",Xs=Array.isArray,Js=r=>Xs(r)||typeof r?.[Symbol.iterator]=="function",sn=`[
|
|
3
|
-
\f\r]`,
|
|
4
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Zs=/'/g,qs=/"/g,Qs=/^(?:script|style|textarea|title)$/i,el=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),tl=el(1),rl=el(2),Ve=Symbol.for("lit-noChange"),ue=Symbol.for("lit-nothing"),Ys=new WeakMap,tr=rr.createTreeWalker(rr,129);function ol(r,e){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return js!==void 0?js.createHTML(e):e}var il=(r,e)=>{let t=r.length-1,o=[],n,a=e===2?"<svg>":"",s=eo;for(let l=0;l<t;l++){let c=r[l],p,h,f=-1,y=0;for(;y<c.length&&(s.lastIndex=y,h=s.exec(c),h!==null);)y=s.lastIndex,s===eo?h[1]==="!--"?s=Ks:h[1]!==void 0?s=Gs:h[2]!==void 0?(Qs.test(h[2])&&(n=RegExp("</"+h[2],"g")),s=er):h[3]!==void 0&&(s=er):s===er?h[0]===">"?(s=n??eo,f=-1):h[1]===void 0?f=-2:(f=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?er:h[3]==='"'?qs:Zs):s===qs||s===Zs?s=er:s===Ks||s===Gs?s=eo:(s=er,n=void 0);let b=s===er&&r[l+1].startsWith("/>")?" ":"";a+=s===eo?c+gp:f>=0?(o.push(p),c.slice(0,f)+cn+c.slice(f)+ht+b):c+ht+(f===-2?l:b)}return[ol(r,a+(r[t]||"<?>")+(e===2?"</svg>":"")),o]},ro=class r{constructor({strings:e,_$litType$:t},o){let n;this.parts=[];let a=0,s=0,l=e.length-1,c=this.parts,[p,h]=il(e,t);if(this.el=r.createElement(p,o),tr.currentNode=this.el.content,t===2){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(n=tr.nextNode())!==null&&c.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let f of n.getAttributeNames())if(f.endsWith(cn)){let y=h[s++],b=n.getAttribute(f).split(ht),v=/([.?@])?(.*)/.exec(y);c.push({type:1,index:a,name:v[2],strings:b,ctor:v[1]==="."?jo:v[1]==="?"?Ko:v[1]==="@"?Go:ir}),n.removeAttribute(f)}else f.startsWith(ht)&&(c.push({type:6,index:a}),n.removeAttribute(f));if(Qs.test(n.tagName)){let f=n.textContent.split(ht),y=f.length-1;if(y>0){n.textContent=Ho?Ho.emptyScript:"";for(let b=0;b<y;b++)n.append(f[b],Wo()),tr.nextNode(),c.push({type:2,index:++a});n.append(f[y],Wo())}}}else if(n.nodeType===8)if(n.data===dn)c.push({type:2,index:a});else{let f=-1;for(;(f=n.data.indexOf(ht,f+1))!==-1;)c.push({type:7,index:a}),f+=ht.length-1}a++}}static createElement(e,t){let o=rr.createElement("template");return o.innerHTML=e,o}};function or(r,e,t=r,o){if(e===Ve)return e;let n=o!==void 0?t._$Co?.[o]:t._$Cl,a=to(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(r),n._$AT(r,t,o)),o!==void 0?(t._$Co??=[])[o]=n:t._$Cl=n),n!==void 0&&(e=or(r,n._$AS(r,e.values),n,o)),e}var Vo=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:o}=this._$AD,n=(e?.creationScope??rr).importNode(t,!0);tr.currentNode=n;let a=tr.nextNode(),s=0,l=0,c=o[0];for(;c!==void 0;){if(s===c.index){let p;c.type===2?p=new oo(a,a.nextSibling,this,e):c.type===1?p=new c.ctor(a,c.name,c.strings,this,e):c.type===6&&(p=new Zo(a,this,e)),this._$AV.push(p),c=o[++l]}s!==c?.index&&(a=tr.nextNode(),s++)}return tr.currentNode=rr,n}p(e){let t=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}},oo=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,o,n){this.type=2,this._$AH=ue,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=or(this,e,t),to(e)?e===ue||e==null||e===""?(this._$AH!==ue&&this._$AR(),this._$AH=ue):e!==this._$AH&&e!==Ve&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Js(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==ue&&to(this._$AH)?this._$AA.nextSibling.data=e:this.$(rr.createTextNode(e)),this._$AH=e}g(e){let{values:t,_$litType$:o}=e,n=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=ro.createElement(ol(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(t);else{let a=new Vo(n,this),s=a.u(this.options);a.p(t),this.$(s),this._$AH=a}}_$AC(e){let t=Ys.get(e.strings);return t===void 0&&Ys.set(e.strings,t=new ro(e)),t}T(e){Xs(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,o,n=0;for(let a of e)n===t.length?t.push(o=new r(this.k(Wo()),this.k(Wo()),this,this.options)):o=t[n],o._$AI(a),n++;n<t.length&&(this._$AR(o&&o._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let o=e.nextSibling;e.remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},ir=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,o,n,a){this.type=1,this._$AH=ue,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=a,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=ue}_$AI(e,t=this,o,n){let a=this.strings,s=!1;if(a===void 0)e=or(this,e,t,0),s=!to(e)||e!==this._$AH&&e!==Ve,s&&(this._$AH=e);else{let l=e,c,p;for(e=a[0],c=0;c<a.length-1;c++)p=or(this,l[o+c],t,c),p===Ve&&(p=this._$AH[c]),s||=!to(p)||p!==this._$AH[c],p===ue?e=ue:e!==ue&&(e+=(p??"")+a[c+1]),this._$AH[c]=p}s&&!n&&this.O(e)}O(e){e===ue?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},jo=class extends ir{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===ue?void 0:e}},Ko=class extends ir{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==ue)}},Go=class extends ir{constructor(e,t,o,n,a){super(e,t,o,n,a),this.type=5}_$AI(e,t=this){if((e=or(this,e,t,0)??ue)===Ve)return;let o=this._$AH,n=e===ue&&o!==ue||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==ue&&(o===ue||n);n&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Zo=class{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){or(this,e)}},nl={j:cn,P:ht,A:dn,C:1,M:il,L:Vo,R:Js,V:or,D:oo,I:ir,H:Ko,N:Go,U:jo,B:Zo},yp=ln.litHtmlPolyfillSupport;yp?.(ro,oo),(ln.litHtmlVersions??=[]).push("3.1.0");var qo=globalThis,io=qo.ShadowRoot&&(qo.ShadyCSS===void 0||qo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,pn=Symbol(),al=new WeakMap,_r=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==pn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(io&&e===void 0){let o=t!==void 0&&t.length===1;o&&(e=al.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&al.set(t,e))}return e}toString(){return this.cssText}},mt=r=>new _r(typeof r=="string"?r:r+"",void 0,pn),P=(r,...e)=>{let t=r.length===1?r[0]:e.reduce((o,n,a)=>o+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+r[a+1],r[0]);return new _r(t,r,pn)},Yo=(r,e)=>{if(io)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let o=document.createElement("style"),n=qo.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=t.cssText,r.appendChild(o)}},no=io?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return mt(t)})(r):r;var{is:bp,defineProperty:vp,getOwnPropertyDescriptor:xp,getOwnPropertyNames:Sp,getOwnPropertySymbols:Op,getPrototypeOf:wp}=Object,Jo=globalThis,sl=Jo.trustedTypes,Ep=sl?sl.emptyScript:"",Cp=Jo.reactiveElementPolyfillSupport,ao=(r,e)=>r,Xo={toAttribute(r,e){switch(e){case Boolean:r=r?Ep:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},un=(r,e)=>!bp(r,e),ll={attribute:!0,type:String,converter:Xo,reflect:!1,hasChanged:un};Symbol.metadata??=Symbol("metadata"),Jo.litPropertyMetadata??=new WeakMap;var nt=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=ll){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(e,o,t);n!==void 0&&vp(this.prototype,e,n)}}static getPropertyDescriptor(e,t,o){let{get:n,set:a}=xp(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(e,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??ll}static _$Ei(){if(this.hasOwnProperty(ao("elementProperties")))return;let e=wp(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(ao("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ao("properties"))){let t=this.properties,o=[...Sp(t),...Op(t)];for(let n of o)this.createProperty(n,t[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[o,n]of t)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[t,o]of this.elementProperties){let n=this._$Eu(t,o);n!==void 0&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let n of o)t.unshift(no(n))}else e!==void 0&&t.push(no(e));return t}static _$Eu(e,t){let o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$E_??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$E_?.delete(e)}_$ES(){let e=new Map,t=this.constructor.elementProperties;for(let o of t.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Yo(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$E_?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$EO(e,t){let o=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,o);if(n!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:Xo).toAttribute(t,o.type);this._$Em=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(e,t){let o=this.constructor,n=o._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let a=o.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:Xo;this._$Em=n,this[n]=s.fromAttribute(t,a.type),this._$Em=null}}requestUpdate(e,t,o,n=!1,a){if(e!==void 0){if(o??=this.constructor.getPropertyOptions(e),!(o.hasChanged??un)(n?a:this[e],t))return;this.C(e,t,o)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,t,o){this._$AL.has(e)||this._$AL.set(e,t),o.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[n,a]of o)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],a)}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$E_?.forEach(o=>o.hostUpdate?.()),this.update(t)):this._$ET()}catch(o){throw e=!1,this._$ET(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$E_?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(t=>this._$EO(t,this[t])),this._$ET()}updated(e){}firstUpdated(e){}};nt.elementStyles=[],nt.shadowRootOptions={mode:"open"},nt[ao("elementProperties")]=new Map,nt[ao("finalized")]=new Map,Cp?.({ReactiveElement:nt}),(Jo.reactiveElementVersions??=[]).push("2.0.2");var hn=globalThis,Qo=hn.trustedTypes,cl=Qo?Qo.createPolicy("lit-html",{createHTML:r=>r}):void 0,mn="$lit$",gt=`lit$${(Math.random()+"").slice(9)}$`,gn="?"+gt,Ap=`<${gn}>`,sr=document,lo=()=>sr.createComment(""),co=r=>r===null||typeof r!="object"&&typeof r!="function",ml=Array.isArray,gl=r=>ml(r)||typeof r?.[Symbol.iterator]=="function",fn=`[
|
|
5
|
-
\f\r]`,
|
|
6
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),ul=/'/g,fl=/"/g,yl=/^(?:script|style|textarea|title)$/i,bl=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),$=bl(1),Rp=bl(2),It=Symbol.for("lit-noChange"),B=Symbol.for("lit-nothing"),hl=new WeakMap,ar=sr.createTreeWalker(sr,129);function vl(r,e){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return cl!==void 0?cl.createHTML(e):e}var xl=(r,e)=>{let t=r.length-1,o=[],n,a=e===2?"<svg>":"",s=so;for(let l=0;l<t;l++){let c=r[l],p,h,f=-1,y=0;for(;y<c.length&&(s.lastIndex=y,h=s.exec(c),h!==null);)y=s.lastIndex,s===so?h[1]==="!--"?s=dl:h[1]!==void 0?s=pl:h[2]!==void 0?(yl.test(h[2])&&(n=RegExp("</"+h[2],"g")),s=nr):h[3]!==void 0&&(s=nr):s===nr?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?nr:h[3]==='"'?fl:ul):s===fl||s===ul?s=nr:s===dl||s===pl?s=so:(s=nr,n=void 0);let b=s===nr&&r[l+1].startsWith("/>")?" ":"";a+=s===so?c+Ap:f>=0?(o.push(p),c.slice(0,f)+mn+c.slice(f)+gt+b):c+gt+(f===-2?l:b)}return[vl(r,a+(r[t]||"<?>")+(e===2?"</svg>":"")),o]},po=class r{constructor({strings:e,_$litType$:t},o){let n;this.parts=[];let a=0,s=0,l=e.length-1,c=this.parts,[p,h]=xl(e,t);if(this.el=r.createElement(p,o),ar.currentNode=this.el.content,t===2){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(n=ar.nextNode())!==null&&c.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let f of n.getAttributeNames())if(f.endsWith(mn)){let y=h[s++],b=n.getAttribute(f).split(gt),v=/([.?@])?(.*)/.exec(y);c.push({type:1,index:a,name:v[2],strings:b,ctor:v[1]==="."?ti:v[1]==="?"?ri:v[1]==="@"?oi:cr}),n.removeAttribute(f)}else f.startsWith(gt)&&(c.push({type:6,index:a}),n.removeAttribute(f));if(yl.test(n.tagName)){let f=n.textContent.split(gt),y=f.length-1;if(y>0){n.textContent=Qo?Qo.emptyScript:"";for(let b=0;b<y;b++)n.append(f[b],lo()),ar.nextNode(),c.push({type:2,index:++a});n.append(f[y],lo())}}}else if(n.nodeType===8)if(n.data===gn)c.push({type:2,index:a});else{let f=-1;for(;(f=n.data.indexOf(gt,f+1))!==-1;)c.push({type:7,index:a}),f+=gt.length-1}a++}}static createElement(e,t){let o=sr.createElement("template");return o.innerHTML=e,o}};function lr(r,e,t=r,o){if(e===It)return e;let n=o!==void 0?t._$Co?.[o]:t._$Cl,a=co(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(r),n._$AT(r,t,o)),o!==void 0?(t._$Co??=[])[o]=n:t._$Cl=n),n!==void 0&&(e=lr(r,n._$AS(r,e.values),n,o)),e}var ei=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:o}=this._$AD,n=(e?.creationScope??sr).importNode(t,!0);ar.currentNode=n;let a=ar.nextNode(),s=0,l=0,c=o[0];for(;c!==void 0;){if(s===c.index){let p;c.type===2?p=new Nr(a,a.nextSibling,this,e):c.type===1?p=new c.ctor(a,c.name,c.strings,this,e):c.type===6&&(p=new ii(a,this,e)),this._$AV.push(p),c=o[++l]}s!==c?.index&&(a=ar.nextNode(),s++)}return ar.currentNode=sr,n}p(e){let t=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}},Nr=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,o,n){this.type=2,this._$AH=B,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=lr(this,e,t),co(e)?e===B||e==null||e===""?(this._$AH!==B&&this._$AR(),this._$AH=B):e!==this._$AH&&e!==It&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):gl(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==B&&co(this._$AH)?this._$AA.nextSibling.data=e:this.$(sr.createTextNode(e)),this._$AH=e}g(e){let{values:t,_$litType$:o}=e,n=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=po.createElement(vl(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(t);else{let a=new ei(n,this),s=a.u(this.options);a.p(t),this.$(s),this._$AH=a}}_$AC(e){let t=hl.get(e.strings);return t===void 0&&hl.set(e.strings,t=new po(e)),t}T(e){ml(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,o,n=0;for(let a of e)n===t.length?t.push(o=new r(this.k(lo()),this.k(lo()),this,this.options)):o=t[n],o._$AI(a),n++;n<t.length&&(this._$AR(o&&o._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let o=e.nextSibling;e.remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},cr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,o,n,a){this.type=1,this._$AH=B,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=a,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=B}_$AI(e,t=this,o,n){let a=this.strings,s=!1;if(a===void 0)e=lr(this,e,t,0),s=!co(e)||e!==this._$AH&&e!==It,s&&(this._$AH=e);else{let l=e,c,p;for(e=a[0],c=0;c<a.length-1;c++)p=lr(this,l[o+c],t,c),p===It&&(p=this._$AH[c]),s||=!co(p)||p!==this._$AH[c],p===B?e=B:e!==B&&(e+=(p??"")+a[c+1]),this._$AH[c]=p}s&&!n&&this.O(e)}O(e){e===B?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},ti=class extends cr{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===B?void 0:e}},ri=class extends cr{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==B)}},oi=class extends cr{constructor(e,t,o,n,a){super(e,t,o,n,a),this.type=5}_$AI(e,t=this){if((e=lr(this,e,t,0)??B)===It)return;let o=this._$AH,n=e===B&&o!==B||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==B&&(o===B||n);n&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},ii=class{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){lr(this,e)}},_p={j:mn,P:gt,A:gn,C:1,M:xl,L:ei,R:gl,V:lr,D:Nr,I:cr,H:ri,N:oi,U:ti,B:ii},Np=hn.litHtmlPolyfillSupport;Np?.(po,Nr),(hn.litHtmlVersions??=[]).push("3.1.0");var yn=(r,e,t)=>{let o=t?.renderBefore??e,n=o._$litPart$;if(n===void 0){let a=t?.renderBefore??null;o._$litPart$=n=new Nr(e.insertBefore(lo(),a),a,void 0,t??{})}return n._$AI(r),n};var yt=class extends nt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=yn(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return It}};yt._$litElement$=!0,yt.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:yt});var Tp=globalThis.litElementPolyfillSupport;Tp?.({LitElement:yt});var Ip={_$AK:(r,e,t)=>{r._$AK(e,t)},_$AL:r=>r._$AL};(globalThis.litElementVersions??=[]).push("4.0.2");var ch=!1;var xn={};ee(xn,{customElement:()=>Pp,eventOptions:()=>bt,property:()=>g,query:()=>Z,queryAll:()=>Lp,queryAssignedElements:()=>vn,queryAssignedNodes:()=>uo,queryAsync:()=>Dp,standardProperty:()=>Sl,state:()=>z});var Pp=r=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(r,e)}):customElements.define(r,e)};var $p={attribute:!0,type:String,converter:Qr,reflect:!1,hasChanged:zo},Sl=(r=$p,e,t)=>{let{kind:o,metadata:n}=t,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),a.set(t.name,r),o==="accessor"){let{name:s}=t;return{set(l){let c=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,c,r)},init(l){return l!==void 0&&this.C(s,void 0,r),l}}}if(o==="setter"){let{name:s}=t;return function(l){let c=this[s];e.call(this,l),this.requestUpdate(s,c,r)}}throw Error("Unsupported decorator location: "+o)};function g(r){return(e,t)=>typeof t=="object"?Sl(r,e,t):((o,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,s?{...o,wrapped:!0}:o),s?Object.getOwnPropertyDescriptor(n,a):void 0})(r,e,t)}function z(r){return g({...r,state:!0,attribute:!1})}function bt(r){return(e,t)=>{let o=typeof e=="function"?e:e[t];Object.assign(o,r)}}var Xe=(r,e,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(r,e,t),t);function Z(r,e){return(t,o,n)=>{let a=s=>s.renderRoot?.querySelector(r)??null;if(e){let{get:s,set:l}=typeof o=="object"?t:n??(()=>{let c=Symbol();return{get(){return this[c]},set(p){this[c]=p}}})();return Xe(t,o,{get(){let c=s.call(this);return c===void 0&&(c=a(this),(c!==null||this.hasUpdated)&&l.call(this,c)),c}})}return Xe(t,o,{get(){return a(this)}})}}var kp;function Lp(r){return(e,t)=>Xe(e,t,{get(){return(this.renderRoot??(kp??=document.createDocumentFragment())).querySelectorAll(r)}})}function Dp(r){return(e,t)=>Xe(e,t,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}function vn(r){return(e,t)=>{let{slot:o,selector:n}=r??{},a="slot"+(o?`[name=${o}]`:":not([name])");return Xe(e,t,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(r)??[];return n===void 0?l:l.filter(c=>c.matches(n))}})}}function uo(r){return(e,t)=>{let{slot:o}=r??{},n="slot"+(o?`[name=${o}]`:":not([name])");return Xe(e,t,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(r)??[]}})}}var On={};ee(On,{repeat:()=>Sn});var Pt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},$t=r=>(...e)=>({_$litDirective$:r,values:e}),at=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,o){this._$Ct=e,this._$AM=t,this._$Ci=o}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};var{D:Mp}=nl;var Ol=()=>document.createComment(""),Tr=(r,e,t)=>{let o=r._$AA.parentNode,n=e===void 0?r._$AB:e._$AA;if(t===void 0){let a=o.insertBefore(Ol(),n),s=o.insertBefore(Ol(),n);t=new Mp(a,s,r,r.options)}else{let a=t._$AB.nextSibling,s=t._$AM,l=s!==r;if(l){let c;t._$AQ?.(r),t._$AM=r,t._$AP!==void 0&&(c=r._$AU)!==s._$AU&&t._$AP(c)}if(a!==n||l){let c=t._$AA;for(;c!==a;){let p=c.nextSibling;o.insertBefore(c,n),c=p}}}return t},kt=(r,e,t=r)=>(r._$AI(e,t),r),Up={},wl=(r,e=Up)=>r._$AH=e,El=r=>r._$AH,ni=r=>{r._$AP?.(!1,!0);let e=r._$AA,t=r._$AB.nextSibling;for(;e!==t;){let o=e.nextSibling;e.remove(),e=o}};var Cl=(r,e,t)=>{let o=new Map;for(let n=e;n<=t;n++)o.set(r[n],n);return o},Sn=$t(class extends at{constructor(r){if(super(r),r.type!==Pt.CHILD)throw Error("repeat() can only be used in text expressions")}ht(r,e,t){let o;t===void 0?t=e:e!==void 0&&(o=e);let n=[],a=[],s=0;for(let l of r)n[s]=o?o(l,s):s,a[s]=t(l,s),s++;return{values:a,keys:n}}render(r,e,t){return this.ht(r,e,t).values}update(r,[e,t,o]){let n=El(r),{values:a,keys:s}=this.ht(e,t,o);if(!Array.isArray(n))return this.dt=s,a;let l=this.dt??=[],c=[],p,h,f=0,y=n.length-1,b=0,v=a.length-1;for(;f<=y&&b<=v;)if(n[f]===null)f++;else if(n[y]===null)y--;else if(l[f]===s[b])c[b]=kt(n[f],a[b]),f++,b++;else if(l[y]===s[v])c[v]=kt(n[y],a[v]),y--,v--;else if(l[f]===s[v])c[v]=kt(n[f],a[v]),Tr(r,c[v+1],n[f]),f++,v--;else if(l[y]===s[b])c[b]=kt(n[y],a[b]),Tr(r,n[f],n[y]),y--,b++;else if(p===void 0&&(p=Cl(s,b,v),h=Cl(l,f,y)),p.has(l[f]))if(p.has(l[y])){let E=h.get(s[b]),A=E!==void 0?n[E]:null;if(A===null){let R=Tr(r,n[f]);kt(R,a[b]),c[b]=R}else c[b]=kt(A,a[b]),Tr(r,n[f],A),n[E]=null;b++}else ni(n[y]),y--;else ni(n[f]),f++;for(;b<=v;){let E=Tr(r,c[v+1]);kt(E,a[b]),c[b++]=E}for(;f<=y;){let E=n[f++];E!==null&&ni(E)}return this.dt=s,wl(r,c),Ve}});var wn={};ee(wn,{classMap:()=>Pe});var Pe=$t(class extends at{constructor(r){if(super(r),r.type!==Pt.ATTRIBUTE||r.name!=="class"||r.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(e=>r[e]).join(" ")+" "}update(r,[e]){if(this.it===void 0){this.it=new Set,r.strings!==void 0&&(this.st=new Set(r.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(let o in e)e[o]&&!this.st?.has(o)&&this.it.add(o);return this.render(e)}let t=r.element.classList;for(let o of this.it)o in e||(t.remove(o),this.it.delete(o));for(let o in e){let n=!!e[o];n===this.it.has(o)||this.st?.has(o)||(n?(t.add(o),this.it.add(o)):(t.remove(o),this.it.delete(o)))}return Ve}});var En={};ee(En,{styleMap:()=>Bp});var Al="important",Fp=" !"+Al,Bp=$t(class extends at{constructor(r){if(super(r),r.type!==Pt.ATTRIBUTE||r.name!=="style"||r.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce((e,t)=>{let o=r[t];return o==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(r,[e]){let{style:t}=r.element;if(this.ut===void 0)return this.ut=new Set(Object.keys(e)),this.render(e);for(let o of this.ut)e[o]==null&&(this.ut.delete(o),o.includes("-")?t.removeProperty(o):t[o]=null);for(let o in e){let n=e[o];if(n!=null){this.ut.add(o);let a=typeof n=="string"&&n.endsWith(Fp);o.includes("-")||a?t.setProperty(o,a?n.slice(0,-11):n,a?Al:""):t[o]=n}}return Ve}});var An={};ee(An,{UnsafeHTMLDirective:()=>Ir,unsafeHTML:()=>Cn});var Ir=class extends at{constructor(e){if(super(e),this.et=ue,e.type!==Pt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===ue||e==null)return this.vt=void 0,this.et=e;if(e===Ve)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.vt;this.et=e;let t=[e];return t.raw=t,this.vt={_$litType$:this.constructor.resultType,strings:t,values:[]}}};Ir.directiveName="unsafeHTML",Ir.resultType=1;var Cn=$t(Ir);var Nn={};ee(Nn,{CacheRegistry:()=>st});var _n={};ee(_n,{CancelablePromise:()=>Pr,CanceledPromiseError:()=>dr,cancelable:()=>Rn});var dr=class extends Error{constructor(e,t,o){super(e),this.canceledPromiseResult=t,this.canceledPromiseError=o}},Pr=class extends Promise{constructor(e){super((t,o)=>e(n=>{this.isCanceled?o(new dr("Promise has been canceled",n)):t(n)},n=>{this.isCanceled?o(new dr("Promise has been canceled",void 0,n)):o(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Rn=r=>new Pr((e,t)=>r.then(e).catch(t));var st=class{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(e,t){this.loaders[e]=t,this.finalContent.delete(e)}registerFinal(e,t){this.loaders[e]=t,this.finalContent.add(e)}clearAll(){for(let e in this.content)this.clear(e)}clear(e){this.finalContent.has(e)||this.forceClear(e)}forceClear(e){this.clearClearTimeout(e),this.content[e]instanceof Pr&&this.content[e].cancel(),delete this.content[e]}clearClearTimeout(e){this.clearTimeouts[e]!=null&&(window.clearTimeout(this.clearTimeouts[e]),delete this.clearTimeouts[e])}set(e,t){this.forceClear(e),this.register(e,async()=>t),this.content[e]=t}setFinal(e,t){this.forceClear(e),this.registerFinal(e,async()=>t),this.content[e]=t}async get(e,t,o){if(this.content[e]===void 0){if(t=t??this.loaders[e],t==null)throw new Error("Unknown cache key "+e);let n=Rn(t());return this.content[e]=n,n.then(a=>(this.content[e]=a,o!=null&&(this.clearClearTimeout(e),this.clearTimeouts[e]=window.setTimeout(()=>this.clear(e),o)),a))}if(this.content[e]instanceof Error)throw this.content[e];return this.content[e]}isResolvedValue(e){return e!=null&&!(e instanceof Promise)&&!(e instanceof Error)}getNow(e){if(this.isResolvedValue(this.content[e]))return this.content[e]}has(e){return this.content[e]!=null}resolvedKeys(){return Object.keys(this.content).filter(e=>this.isResolvedValue(this.content[e]))}resolvedValues(){return Object.values(this.content).filter(e=>this.isResolvedValue(e))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}};var Tn={};ee(Tn,{ClusteringHelper:()=>fo});var fo=class r{constructor(e,t,o,n){this.allResults=e,this.selectedResult=t,this.clusteringMetadata=o,this.metadataDescriptors=n}static extractResultMetadata(e,t){var o,n;let a=((n=(o=e?.map)!==null&&o!==void 0?o:e?.document)!==null&&n!==void 0?n:e?.topic).metadata;return t==null?r.flattenMetadata(a):r.flattenMetadata(a.find(s=>s.key===t))}static flattenMetadata(e){if(Array.isArray(e))return e.map(o=>r.flattenMetadata(o)).filter(o=>o!=null);let t=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!t))if(t){let o=[],n=[];return e.hierarchicalValues.forEach(a=>{o.push(a.join(" > ")),a.length>2?n.push(`... > ${a[a.length-1]}`):n.push(a.join(" > "))}),{key:e.key,label:e.label,value:o.join(", "),displayValue:n.join(", ")}}else{let o=e.values.join(", ");return{key:e.key,label:e.label,value:o,displayValue:o}}}computeClustersItemsForMetadata(e,t,o="No value"){var n,a;let s=r.extractResultMetadata(this.selectedResult,e),l=(n=s?.label)!==null&&n!==void 0?n:(a=this.getMetadataDescriptor(e))===null||a===void 0?void 0:a.label;return this.allResults.map(p=>r.extractResultMetadata(p,e)).map(p=>p??{key:e,label:l,value:void 0,displayValue:o}).filter(p=>p.value!=s?.value).filter((p,h,f)=>f.findIndex(y=>y.value===p.value)===h).map(p=>({result:this.findBestResultForMetadataValue(e,p.value),metadata:p})).sort((p,h)=>this.compareMetadata(p.metadata.value,h.metadata.value,e,t))}compareMetadata(e,t,o,n){if(e==null)return-1;if(t==null)return 1;let a=this.getMetadataDescriptor(o),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let c=e.localeCompare(t,n,{numeric:!0});return l?c*-1:c}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(t=>e==t.key)}findBestResultForMetadataValue(e,t){let o=this.allResults.filter(c=>{var p;return((p=r.extractResultMetadata(c,e))===null||p===void 0?void 0:p.value)==t}),a=[...r.extractResultMetadata(this.selectedResult).filter(c=>this.clusteringMetadata.has(c.key)).filter(c=>c.key!==e)],s,l=-1;for(let c of o){let p=this.countMatchingMetadata(c,a);if(p>l&&(l=p,s=c,p===a.length))break}return s}countMatchingMetadata(e,t){return r.extractResultMetadata(e).filter(o=>t.some(n=>n.key===o.key&&n.value===o.value)).length}};var In={};ee(In,{Debouncer:()=>ae});var ae=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,t){return this.callbacks=[e],this.debounce(t)}queue(e,t){return this.callbacks.push(e),this.debounce(t)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((t,o)=>{this.resolvePromise=t,this.rejectPromise=o})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,t;let o=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(t=this.resolvePromise)!==null&&t!==void 0?t:()=>null;this.clearPromise();for(let s of o)try{await s()}catch(l){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 Ln={};ee(Ln,{customElement:()=>V,isNumber:()=>_l,jsonProperty:()=>lt,optionalNumberProperty:()=>jp});var kn={};ee(kn,{dateReviver:()=>zp,deepEqual:()=>Je,delay:()=>ai,eventPathContainsMatchingElement:()=>Wp,flatDeep:()=>Rl,hasChanged:()=>mo,last:()=>Vp,minmax:()=>$n,parseDate:()=>si,waitFor:()=>ho,waitUntil:()=>Pn});var ai=r=>new Promise(e=>setTimeout(e,r));async function Pn(r,e=10,t=2e4){await ho(async()=>await r()||void 0,e,t)}async function ho(r,e=10,t=2e4){let o=await r(),n,a;for(n=a=performance.now();o==null&&(!t||a-n<t);)await ai(e),o=await r(),a=performance.now();if(o==null)throw new Error("Timeout exceeded");return o}function Rl(r,e){return r.flatMap(t=>[t,...Rl(e(t),e)])}function zp(...r){return function(e,t){return r.includes(e)?si(t):t}}function si(r){return r.match(/^\d{4}-\d{2}-\d{2}$/)&&(r=r.replace(/-/g,"/")),r=r.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,t,o,n)=>t+o+":"+n),new Date(r)}function Hp(r,e){if(r===e)return!0;if(r&&e&&typeof r=="object"&&typeof e=="object"){if(r.constructor!==e.constructor)return!1;var t,o,n;if(Array.isArray(r)){if(t=r.length,t!=e.length)return!1;for(o=t;o--!==0;)if(!Je(r[o],e[o]))return!1;return!0}if(r instanceof Map&&e instanceof Map){if(r.size!==e.size)return!1;for(o of r.entries())if(!e.has(o[0]))return!1;for(o of r.entries())if(!Je(o[1],e.get(o[0])))return!1;return!0}if(r instanceof Set&&e instanceof Set){if(r.size!==e.size)return!1;for(o of r.entries())if(!e.has(o[0]))return!1;return!0}if(r.constructor===RegExp)return r.source===e.source&&r.flags===e.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===e.valueOf();if(n=Object.keys(r),t=n.length,t!==Object.keys(e).length)return!1;for(o=t;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[o]))return!1;for(o=t;o--!==0;){var a=n[o];if(!Je(r[a],e[a]))return!1}return!0}return r!==r&&e!==e}function Je(r,e){try{return Hp(r,e)}catch{return!1}}function mo(r,e){return!Je(r,e)}function Wp(r,e,t=window.document.body){if(e.length>0){let o=r.composedPath();for(let n of o){if(n===t)return!1;if(n.matches&&e.some(a=>n.matches(a)))return!0}}return!1}function $n(r,e,t){return Math.min(Math.max(r,e),t)}function Vp(r){return r[r.length-1]}var V=r=>e=>{window.customElements.get(r)||window.customElements.define(r,e)};function lt(r,e){let t=()=>JSON.parse(JSON.stringify(r));return g({type:Object,converter:{fromAttribute:o=>{if(o==null)return t();try{return JSON.parse(o)}catch{return t()}},toAttribute:o=>JSON.stringify(o)},hasChanged:mo,...e??{}})}function jp(r){return g({type:Object,converter:{fromAttribute:e=>{if(e!=null)return _l(e)?+e:void 0},toAttribute:e=>e==null?void 0:""+e},...r??{}})}function _l(r){return!isNaN(parseFloat(r))}var da={};ee(da,{designSystemVariables:()=>N});var ca={};ee(ca,{DesignSystemFamily:()=>pr,DesignSystemSize:()=>xt,FtCssVariableFactory:()=>i,badge:()=>Xp,banner:()=>Yp,breadcrumb:()=>Jp,button:()=>_,chart:()=>pu,checkbox:()=>fu,chip:()=>Zp,chipChoice:()=>Gp,collapsible:()=>cu,comboboxMultiSelect:()=>su,comboboxSingleSelect:()=>au,drawer:()=>tu,floatingMenu:()=>nu,foundation:()=>d,link:()=>qp,modal:()=>eu,notice:()=>uu,notification:()=>gu,pageHeader:()=>Qp,popover:()=>lu,radio:()=>mu,resolveFamilyClass:()=>sa,resolveSizeClass:()=>la,semantic:()=>u,setVariable:()=>C,switch_:()=>du,tabs:()=>ru,textArea:()=>iu,textInput:()=>ou,toggle:()=>hu,tooltip:()=>yu,typographies:()=>go,typographyBody1Medium:()=>zn,typographyBody1Regular:()=>Bn,typographyBody1Semibold:()=>Hn,typographyBody2Medium:()=>Vn,typographyBody2MediumUnderline:()=>Nl,typographyBody2Regular:()=>Wn,typographyBody2Semibold:()=>jn,typographyCaption1Bold:()=>ea,typographyCaption1Medium:()=>Jn,typographyCaption1Semibold:()=>Qn,typographyCaption2Bold:()=>oa,typographyCaption2Medium:()=>ta,typographyCaption2Semibold:()=>ra,typographyCaption3Bold:()=>aa,typographyCaption3Medium:()=>ia,typographyCaption3Semibold:()=>na,typographyDisplay:()=>Dn,typographyLabel1Bold:()=>Zn,typographyLabel1Medium:()=>Kn,typographyLabel1Semibold:()=>Gn,typographyLabel2Bold:()=>Xn,typographyLabel2Medium:()=>qn,typographyLabel2Semibold:()=>Yn,typographyTitle1:()=>Mn,typographyTitle2:()=>Un,typographyTitle3:()=>Fn,typographyVariants:()=>Kp});var vt=r=>typeof r=="string"?mt(r):r,i=class{static create(e,t,o,n){let a=l=>vt(l??n),s=P`var(${vt(e)}, ${a(n)})`;return s.name=e,s.description=t,s.category=o,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>P`var(${vt(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,t,o,n){let a=l=>o.get(l??n),s=P`var(${vt(e)}, ${a(n)})`;return s.name=e,s.description=t,s.category=o.category,s.fallbackVariable=o,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>P`var(${vt(e)}, ${a(l)})`,s.breadcrumb=()=>[o.name,...o.breadcrumb()],s.lastResortDefaultValue=()=>n??o.lastResortDefaultValue(),s}static external(e,t){let o=a=>e.fallbackVariable?e.fallbackVariable.get(a??e.defaultValue):vt(a??e.lastResortDefaultValue()),n=P`var(${vt(e.name)}, ${o(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=t,n.defaultCssValue=o,n.get=a=>P`var(${vt(e.name)}, ${o(a)})`,n.breadcrumb=()=>e.fallbackVariable?[e.fallbackVariable.name,...e.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};function C(r,e){return vt(`${r.name}: ${e}`)}var d={colorWhite:i.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:i.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:i.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:i.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:i.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:i.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:i.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:i.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:i.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:i.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:i.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:i.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:i.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:i.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:i.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:i.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:i.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:i.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:i.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:i.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:i.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:i.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:i.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:i.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:i.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:i.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:i.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:i.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:i.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:i.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:i.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:i.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:i.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:i.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:i.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:i.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:i.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:i.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:i.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:i.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:i.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:i.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:i.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:i.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:i.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:i.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:i.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:i.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:i.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:i.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:i.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:i.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:i.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:i.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:i.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:i.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:i.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:i.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:i.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:i.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:i.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:i.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:i.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:i.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:i.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:i.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:i.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:i.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:i.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:i.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:i.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:i.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:i.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:i.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:i.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:i.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:i.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:i.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:i.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:i.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:i.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:i.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:i.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:i.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:i.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:i.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:i.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:i.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:i.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:i.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:i.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:i.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:i.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:i.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:i.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:i.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:i.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:i.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:i.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:i.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:i.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:i.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:i.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:i.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:i.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:i.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:i.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:i.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:i.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:i.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:i.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:i.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:i.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:i.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:i.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:i.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:i.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:i.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:i.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:i.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:i.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:i.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:i.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:i.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:i.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:i.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:i.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:i.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:i.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:i.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:i.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:i.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:i.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:i.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:i.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:i.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:i.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:i.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:i.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:i.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:i.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:i.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:i.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:i.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:i.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:i.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:i.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:i.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:i.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:i.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:i.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:i.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:i.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:i.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:i.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:i.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:i.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:i.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:i.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:i.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:i.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:i.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:i.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:i.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:i.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:i.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:i.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:i.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:i.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:i.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:i.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:i.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:i.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:i.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:i.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:i.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:i.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:i.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:i.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:i.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:i.create("--ft-opacity-0","","NUMBER","0"),opacity8:i.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:i.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:i.create("--ft-opacity-24","","NUMBER","0.24"),opacity32:i.create("--ft-opacity-32","","NUMBER","0.32"),opacity40:i.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:i.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.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)")},Dn={fontFamily:i.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:i.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:i.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-display-textCase","","UNKNOWN","none")},Mn={fontFamily:i.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:i.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:i.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},Un={fontFamily:i.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:i.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:i.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},Fn={fontFamily:i.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:i.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:i.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:i.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},Bn={fontFamily:i.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:i.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:i.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},zn={fontFamily:i.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:i.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},Hn={fontFamily:i.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:i.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},Wn={fontFamily:i.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:i.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},Vn={fontFamily:i.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},Nl={fontFamily:i.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:i.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:i.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},jn={fontFamily:i.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},Kn={fontFamily:i.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},Gn={fontFamily:i.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},Zn={fontFamily:i.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:i.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},qn={fontFamily:i.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},Yn={fontFamily:i.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},Xn={fontFamily:i.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:i.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},Jn={fontFamily:i.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},Qn={fontFamily:i.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},ea={fontFamily:i.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:i.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},ta={fontFamily:i.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:i.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},ra={fontFamily:i.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:i.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},oa={fontFamily:i.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:i.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:i.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},ia={fontFamily:i.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:i.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},na={fontFamily:i.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:i.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},aa={fontFamily:i.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:i.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:i.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},go={display:Dn,"title-1":Mn,"title-2":Un,"title-3":Fn,"body-1-regular":Bn,"body-1-medium":zn,"body-1-semibold":Hn,"body-2-regular":Wn,"body-2-medium":Vn,"body-2-medium-underline":Nl,"body-2-semibold":jn,"label-1-medium":Kn,"label-1-semibold":Gn,"label-1-bold":Zn,"label-2-medium":qn,"label-2-semibold":Yn,"label-2-bold":Xn,"caption-1-medium":Jn,"caption-1-semibold":Qn,"caption-1-bold":ea,"caption-2-medium":ta,"caption-2-semibold":ra,"caption-2-bold":oa,"caption-3-medium":ia,"caption-3-semibold":na,"caption-3-bold":aa},Kp=["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:i.extend("--ft-background-action-primary","Used as backgorund of primary action components.",d.colorBrand0),backgroundErrorSubtle:i.extend("--ft-background-error-subtle","Used as background of subtle error components.",d.colorRed10),backgroundInfoSubtle:i.extend("--ft-background-info-subtle","Used as background of subtle information components.",d.colorCyan10),backgroundWarningSubtle:i.extend("--ft-background-warning-subtle","Used as background of subtle information components.",d.colorOrange10),backgroundSuccessSubtle:i.extend("--ft-background-success-subtle","Used as background of subtle success components.",d.colorGreen10),backgroundGlobalSurface:i.extend("--ft-background-global-surface","Used as app background.",d.colorWhite),backgroundGlobalOnSurface:i.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",d.colorGray10),backgroundGlobalOnSurfaceDark:i.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",d.colorGray30),contentActionPrimary:i.extend("--ft-content-action-primary","Used on label of primary action on light surface.",d.colorBrand0),contentWarningPrimary:i.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",d.colorOrange200),contentWarningIconOnly:i.extend("--ft-content-warning-icon-only","Used on warning status icons alone",d.colorOrange0),contentErrorPrimary:i.extend("--ft-content-error-primary","Used on label of error messages on light surface.",d.colorRed0),contentErrorIconOnly:i.extend("--ft-content-error-icon-only","Used on error status icons alone",d.colorRed70),contentInfoPrimary:i.extend("--ft-content-info-primary","Used on label of information messages on light surface.",d.colorCyan200),contentInfoIconOnly:i.extend("--ft-content-info-icon-only","Used on info status icons alone",d.colorCyan0),contentSuccessPrimary:i.extend("--ft-content-success-primary","Used on label of success messages on light surface.",d.colorGreen200),contentSuccessIconOnly:i.extend("--ft-content-success-icon-only","Used on success status icons alone",d.colorGreen0),contentGlobalPrimary:i.extend("--ft-content-global-primary","Used for main content on the page.",d.colorGray500),contentGlobalSecondary:i.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
7
|
-
Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",d.colorGray0),contentGlobalOnColor:i.extend("--ft-content-global-on-color","Used for content on a dominant color.",d.colorWhite),borderActionPrimary:i.extend("--ft-border-action-primary","Used as border for primary action components.",d.colorBrand0),borderActionFocusRing:i.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",d.colorCyan0),borderWarningPrimary:i.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",d.colorOrange200),borderWarningSubtle:i.extend("--ft-border-warning-subtle","Used as border for warning components.",d.colorOrange30),borderSuccessPrimary:i.extend("--ft-border-success-primary","Used as border for success buttons.",d.colorGreen200),borderSuccessSubtle:i.extend("--ft-border-success-subtle","Used as border for success components.",d.colorGreen30),borderErrorPrimary:i.extend("--ft-border-error-primary","Used as border for text fields in error states.",d.colorRed0),borderErrorSubtle:i.extend("--ft-border-error-subtle","Used as border for error components.",d.colorRed30),borderInfoPrimary:i.extend("--ft-border-info-primary","Used as border for buttons in info color.",d.colorCyan200),borderInfoSubtle:i.extend("--ft-border-info-subtle","Used as border for information components.",d.colorCyan30),borderGlobalPrimary:i.extend("--ft-border-global-primary","Used as border for element like input.",d.colorGray50),borderGlobalSubtle:i.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",d.colorGray30),borderInputPrimary:i.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",d.colorGray80)};var _={largeHeight:i.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:i.extend("--ft-button-large-horizontal-padding","",d.spacing4),largeGap:i.extend("--ft-button-large-gap","",d.spacing2),largeBorderRadius:i.extend("--ft-button-large-border-radius","",d.borderRadiusS),largeIconSize:i.extend("--ft-button-large-icon-size","",d.iconSize3),largeBorderWidth:i.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:i.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:i.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:i.create("--ft-button-large-icon-only-width","","SIZE","40px"),mediumHeight:i.create("--ft-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:i.extend("--ft-button-medium-horizontal-padding","",d.spacing3),mediumGap:i.extend("--ft-button-medium-gap","",d.spacing2),mediumBorderRadius:i.extend("--ft-button-medium-border-radius","",d.borderRadiusS),mediumIconSize:i.extend("--ft-button-medium-icon-size","",d.iconSize2),mediumBorderWidth:i.create("--ft-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:i.create("--ft-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:i.create("--ft-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:i.create("--ft-button-medium-icon-only-width","","SIZE","30px"),smallHeight:i.create("--ft-button-small-height","","SIZE","20px"),smallHorizontalPadding:i.extend("--ft-button-small-horizontal-padding","",d.spacing2),smallGap:i.extend("--ft-button-small-gap","",d.spacing1),smallBorderRadius:i.extend("--ft-button-small-border-radius","",d.borderRadiusS),smallIconSize:i.extend("--ft-button-small-icon-size","",d.iconSize1),smallBorderWidth:i.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:i.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:i.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:i.create("--ft-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:i.create("--ft-button-x-small-height","","SIZE","16px"),xSmallIconSize:i.extend("--ft-button-x-small-icon-size","",d.iconSize1),xSmallFocusOutlineOffset:i.create("--ft-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:i.create("--ft-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:i.create("--ft-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:i.extend("--ft-button-round-border-radius","",d.borderRadiusPill),primaryBackgroundColor:i.extend("--ft-button-primary-background-color","",u.backgroundActionPrimary),primaryColor:i.extend("--ft-button-primary-color","",u.contentGlobalOnColor),primaryIconColor:i.extend("--ft-button-primary-icon-color","",u.contentGlobalOnColor),primaryStateLayerColor:i.extend("--ft-button-primary-state-layer-color","",u.contentGlobalOnColor),primaryHoverStateLayerOpacity:i.extend("--ft-button-primary-hover-state-layer-opacity","",d.opacity16),primaryFocusStateLayerOpacity:i.extend("--ft-button-primary-focus-state-layer-opacity","",d.opacity16),primaryActiveStateLayerOpacity:i.extend("--ft-button-primary-active-state-layer-opacity","",d.opacity24),primaryDisabledComponentOpacity:i.extend("--ft-button-primary-disabled-component-opacity","",d.opacity40),focusFocusRingColor:i.extend("--ft-button-focus-focus-ring-color","",u.borderActionFocusRing),tertiaryBackgroundColor:i.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:i.extend("--ft-button-tertiary-color","",u.contentActionPrimary),tertiaryIconColor:i.extend("--ft-button-tertiary-icon-color","",u.contentActionPrimary),tertiaryStateLayerColor:i.extend("--ft-button-tertiary-state-layer-color","",u.contentActionPrimary),tertiaryHoverStateLayerOpacity:i.extend("--ft-button-tertiary-hover-state-layer-opacity","",d.opacity8),tertiaryFocusStateLayerOpacity:i.extend("--ft-button-tertiary-focus-state-layer-opacity","",d.opacity8),tertiaryActiveStateLayerOpacity:i.extend("--ft-button-tertiary-active-state-layer-opacity","",d.opacity16),tertiaryDisabledComponentOpacity:i.extend("--ft-button-tertiary-disabled-component-opacity","",d.opacity40),secondaryBackgroundColor:i.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:i.extend("--ft-button-secondary-color","",u.contentActionPrimary),secondaryIconColor:i.extend("--ft-button-secondary-icon-color","",u.contentActionPrimary),secondaryStateLayerColor:i.extend("--ft-button-secondary-state-layer-color","",u.contentActionPrimary),secondaryHoverStateLayerOpacity:i.extend("--ft-button-secondary-hover-state-layer-opacity","",d.opacity8),secondaryFocusStateLayerOpacity:i.extend("--ft-button-secondary-focus-state-layer-opacity","",d.opacity8),secondaryActiveStateLayerOpacity:i.extend("--ft-button-secondary-active-state-layer-opacity","",d.opacity16),secondaryDisabledComponentOpacity:i.extend("--ft-button-secondary-disabled-component-opacity","",d.opacity40),secondaryBorderColor:i.extend("--ft-button-secondary-border-color","",u.borderActionPrimary),neutralBackgroundColor:i.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:i.extend("--ft-button-neutral-icon-color","",u.contentGlobalSecondary),neutralColor:i.extend("--ft-button-neutral-color","",u.contentGlobalSecondary),neutralStateLayerColor:i.extend("--ft-button-neutral-state-layer-color","",u.contentGlobalSecondary),neutralHoverStateLayerOpacity:i.extend("--ft-button-neutral-hover-state-layer-opacity","",d.opacity8),neutralFocusStateLayerOpacity:i.extend("--ft-button-neutral-focus-state-layer-opacity","",d.opacity8),neutralActiveStateLayerOpacity:i.extend("--ft-button-neutral-active-state-layer-opacity","",d.opacity16),neutralDisabledComponentOpacity:i.extend("--ft-button-neutral-disabled-component-opacity","",d.opacity40)};var Gp={neutralOffHoverStateLayerOpacity:i.extend("--ft-chip-choice-neutral-off-hover-state-layer-opacity","",d.opacity8),neutralOffFocusStateLayerOpacity:i.extend("--ft-chip-choice-neutral-off-focus-state-layer-opacity","",d.opacity8),neutralOffFocusFocusRingColor:i.extend("--ft-chip-choice-neutral-off-focus-focus-ring-color","",u.borderActionFocusRing),neutralOffActiveStateLayerOpacity:i.extend("--ft-chip-choice-neutral-off-active-state-layer-opacity","",d.opacity16),neutralOffBackgroundColor:i.extend("--ft-chip-choice-neutral-off-background-color","",u.backgroundGlobalOnSurface),neutralOffBorderColor:i.extend("--ft-chip-choice-neutral-off-border-color","",u.borderGlobalPrimary),neutralOffColor:i.extend("--ft-chip-choice-neutral-off-color","",u.contentGlobalSecondary),neutralOffStateLayerColor:i.extend("--ft-chip-choice-neutral-off-state-layer-color","",u.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:i.extend("--ft-chip-choice-neutral-on-default-state-layer-opacity","",d.opacity16),neutralOnHoverStateLayerOpacity:i.extend("--ft-chip-choice-neutral-on-hover-state-layer-opacity","",d.opacity24),neutralOnFocusStateLayerOpacity:i.extend("--ft-chip-choice-neutral-on-focus-state-layer-opacity","",d.opacity24),neutralOnFocusFocusRingColor:i.extend("--ft-chip-choice-neutral-on-focus-focus-ring-color","",u.borderActionFocusRing),neutralOnActiveStateLayerOpacity:i.extend("--ft-chip-choice-neutral-on-active-state-layer-opacity","",d.opacity32),neutralOnBackgroundColor:i.extend("--ft-chip-choice-neutral-on-background-color","",u.backgroundGlobalOnSurface),neutralOnBorderColor:i.extend("--ft-chip-choice-neutral-on-border-color","",u.borderGlobalPrimary),neutralOnColor:i.extend("--ft-chip-choice-neutral-on-color","",u.contentGlobalPrimary),neutralOnIconColor:i.extend("--ft-chip-choice-neutral-on-icon-color","",u.contentGlobalPrimary),neutralOnStateLayerColor:i.extend("--ft-chip-choice-neutral-on-state-layer-color","",u.contentGlobalPrimary),largeMinHeight:i.create("--ft-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:i.extend("--ft-chip-choice-large-horizontal-padding","",d.spacing3),largeGap:i.extend("--ft-chip-choice-large-gap","",d.spacing1),largeBorderRadius:i.create("--ft-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:i.create("--ft-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:i.extend("--ft-chip-choice-large-icon-size","",d.iconSize3),mediumMinHeight:i.create("--ft-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:i.extend("--ft-chip-choice-medium-horizontal-padding","",d.spacing2),mediumGap:i.extend("--ft-chip-choice-medium-gap","",d.spacing1),mediumBorderRadius:i.create("--ft-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:i.create("--ft-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:i.extend("--ft-chip-choice-medium-icon-size","",d.iconSize2)};var Zp={largeMinHeight:i.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:i.extend("--ft-chip-large-horizontal-padding","",d.spacing3),largeButtonRightPadding:i.extend("--ft-chip-large-button-right-padding","",d.spacing1),largeGap:i.extend("--ft-chip-large-gap","",d.spacing1),largeFocusOutlineOffset:i.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:i.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:i.create("--ft-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:i.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:i.extend("--ft-chip-large-icon-size","",d.iconSize3),mediumMinHeight:i.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:i.extend("--ft-chip-medium-horizontal-padding","",d.spacing2),mediumButtonRightPadding:i.extend("--ft-chip-medium-button-right-padding","",d.spacing05),mediumGap:i.extend("--ft-chip-medium-gap","",d.spacing1),mediumFocusOutlineOffset:i.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:i.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:i.create("--ft-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:i.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:i.extend("--ft-chip-medium-icon-size","",d.iconSize2),smallMinHeight:i.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:i.extend("--ft-chip-small-horizontal-padding","",d.spacing1),smallButtonRightPadding:i.extend("--ft-chip-small-button-right-padding","",d.spacing05),smallGap:i.extend("--ft-chip-small-gap","",d.spacing1),smallFocusOutlineOffset:i.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:i.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:i.create("--ft-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:i.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:i.extend("--ft-chip-small-icon-size","",d.iconSize1),neutralBackgroundColor:i.extend("--ft-chip-neutral-background-color","",u.backgroundGlobalOnSurface),neutralColor:i.extend("--ft-chip-neutral-color","",u.contentGlobalSecondary),neutralIconColor:i.extend("--ft-chip-neutral-icon-color","",u.contentGlobalSecondary),neutralBorderColor:i.extend("--ft-chip-neutral-border-color","",u.borderGlobalSubtle),infoBackgroundColor:i.extend("--ft-chip-info-background-color","",u.backgroundInfoSubtle),infoColor:i.extend("--ft-chip-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ft-chip-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:i.extend("--ft-chip-info-border-color","",u.borderInfoSubtle),successBackgroundColor:i.extend("--ft-chip-success-background-color","",u.backgroundSuccessSubtle),successColor:i.extend("--ft-chip-success-color","",u.contentSuccessPrimary),successIconColor:i.extend("--ft-chip-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:i.extend("--ft-chip-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:i.extend("--ft-chip-warning-background-color","",u.backgroundWarningSubtle),warningColor:i.extend("--ft-chip-warning-color","",u.contentWarningPrimary),warningIconColor:i.extend("--ft-chip-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:i.extend("--ft-chip-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:i.extend("--ft-chip-error-background-color","",u.backgroundErrorSubtle),errorColor:i.extend("--ft-chip-error-color","",u.contentErrorPrimary),errorIconColor:i.extend("--ft-chip-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:i.extend("--ft-chip-error-border-color","",u.borderErrorSubtle)};var qp={brandHoverOpacity:i.extend("--ft-link-brand-hover-opacity","",d.opacity80),brandHoverColor:i.extend("--ft-link-brand-hover-color","",u.contentActionPrimary),brandFocusFocusRingColor:i.extend("--ft-link-brand-focus-focus-ring-color","",u.borderActionFocusRing),brandFocusColor:i.extend("--ft-link-brand-focus-color","",u.contentActionPrimary),brandDefaultColor:i.extend("--ft-link-brand-default-color","",u.contentActionPrimary),brandActiveColor:i.extend("--ft-link-brand-active-color","",u.contentActionPrimary),infoHoverOpacity:i.extend("--ft-link-info-hover-opacity","",d.opacity80),infoHoverColor:i.extend("--ft-link-info-hover-color","",u.contentInfoPrimary),infoFocusFocusRingColor:i.extend("--ft-link-info-focus-focus-ring-color","",u.borderActionFocusRing),infoFocusColor:i.extend("--ft-link-info-focus-color","",u.contentInfoPrimary),infoDefaultColor:i.extend("--ft-link-info-default-color","",u.contentInfoPrimary),infoActiveColor:i.extend("--ft-link-info-active-color","",u.contentInfoPrimary),neutralFocusFocusRingColor:i.extend("--ft-link-neutral-focus-focus-ring-color","",u.borderActionFocusRing),neutralFocusColor:i.extend("--ft-link-neutral-focus-color","",u.contentActionPrimary),neutralDefaultColor:i.extend("--ft-link-neutral-default-color","",u.contentGlobalPrimary),neutralHoverColor:i.extend("--ft-link-neutral-hover-color","",u.contentActionPrimary),neutralActiveColor:i.extend("--ft-link-neutral-active-color","",u.contentActionPrimary)};var Yp={iconSize:i.extend("--ft-banner-icon-size","",d.iconSize5),borderWidth:i.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:i.extend("--ft-banner-left-padding","",d.spacing6),rightPadding:i.extend("--ft-banner-right-padding","",d.spacing6),verticalPadding:i.extend("--ft-banner-vertical-padding","",d.spacing6),horizontalSideGap:i.extend("--ft-banner-horizontal-side-gap","",d.spacing6),horizontalMobileGap:i.extend("--ft-banner-horizontal-mobile-gap","",d.spacing4),verticalMobileGap:i.extend("--ft-banner-vertical-mobile-gap","",d.spacing6),horizontalMiddleGap:i.extend("--ft-banner-horizontal-middle-gap","",d.spacing20),infoBackgroundColor:i.extend("--ft-banner-info-background-color","",u.backgroundInfoSubtle),infoColor:i.extend("--ft-banner-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ft-banner-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:i.extend("--ft-banner-info-border-color","",u.borderInfoSubtle)};var Xp={horizontalPadding:i.extend("--ft-badge-horizontal-padding","",d.spacing1),verticalPadding:i.extend("--ft-badge-vertical-padding","",d.spacing1),borderRadius:i.extend("--ft-badge-border-radius","",d.borderRadiusPill),color:i.extend("--ft-badge-color","",u.contentGlobalOnColor),backgroundColor:i.extend("--ft-badge-background-color","",u.contentActionPrimary)};var Jp={horizontalGap:i.extend("--ft-breadcrumb-horizontal-gap","",d.spacing1),verticalGap:i.extend("--ft-breadcrumb-vertical-gap","",d.spacing2),currentColor:i.extend("--ft-breadcrumb-current-color","",u.contentGlobalPrimary),previousNonClickableColor:i.extend("--ft-breadcrumb-previous-non-clickable-color","",u.contentGlobalSecondary),iconColor:i.extend("--ft-breadcrumb-icon-color","",u.contentGlobalSubtle)};var Qp={horizontalPadding:i.extend("--ft-page-header-horizontal-padding","",d.spacing6),horizontalGap:i.extend("--ft-page-header-horizontal-gap","",d.spacing4),verticalGap:i.extend("--ft-page-header-vertical-gap","",d.spacing2),classicVerticalPadding:i.extend("--ft-page-header-classic-vertical-padding","",d.spacing6),multilineVerticalPadding:i.extend("--ft-page-header-multiline-vertical-padding","",d.spacing4),inlineVerticalPadding:i.extend("--ft-page-header-inline-vertical-padding","",d.spacing2),backgroundColor:i.extend("--ft-page-header-background-color","",d.colorWhite),bottomBorderColor:i.extend("--ft-page-header-bottom-border-color","",u.borderGlobalSubtle),titleColor:i.extend("--ft-page-header-title-color","",u.contentGlobalPrimary),subtitleColor:i.extend("--ft-page-header-subtitle-color","",u.contentGlobalSecondary)};var eu={smallContainerWidth:i.create("--ft-modal-small-container-width","","SIZE","600px"),largeContainerWidth:i.create("--ft-modal-large-container-width","","SIZE","900px"),overlayBackgroundColor:i.extend("--ft-modal-overlay-background-color","",d.colorGray700),overlayOpacity:i.extend("--ft-modal-overlay-opacity","",d.opacity40),shadow:i.extend("--ft-modal-shadow","",d.shadowElevation03),bodyBackgroundColor:i.extend("--ft-modal-body-background-color","",d.colorWhite),bodyColor:i.extend("--ft-modal-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:i.extend("--ft-modal-body-horizontal-padding","",d.spacing6),bodyVerticalPadding:i.extend("--ft-modal-body-vertical-padding","",d.spacing6),bodyVerticalGap:i.extend("--ft-modal-body-vertical-gap","",d.spacing6),containerMargin:i.extend("--ft-modal-container-margin","",d.spacing3),headerBackgroundColor:i.extend("--ft-modal-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ft-modal-header-border-color","",u.borderGlobalSubtle),headerColor:i.extend("--ft-modal-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:i.extend("--ft-modal-header-trailing-icon-color","",u.contentGlobalSecondary),headerVerticalPadding:i.extend("--ft-modal-header-vertical-padding","",d.spacing1),headerRightPadding:i.extend("--ft-modal-header-right-padding","",d.spacing1),headerLeftPadding:i.extend("--ft-modal-header-left-padding","",d.spacing6),headerGap:i.extend("--ft-modal-header-gap","",d.spacing2),headerBorderBottom:i.create("--ft-modal-header-border-bottom","","SIZE","1px"),borderRadius:i.extend("--ft-modal-border-radius","",d.borderRadiusM)};var tu={overlayOpacity:i.extend("--ft-drawer-overlay-opacity","",d.opacity40),shadow:i.extend("--ft-drawer-shadow","",d.shadowElevation03),bodyColor:i.extend("--ft-drawer-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:i.extend("--ft-drawer-body-horizontal-padding","",d.spacing6),bodyVerticalPadding:i.extend("--ft-drawer-body-vertical-padding","",d.spacing6),bodyGap:i.extend("--ft-drawer-body-gap","",d.spacing6),bodyBackgroundColor:i.extend("--ft-drawer-body-background-color","",d.colorWhite),headerBackgroundColor:i.extend("--ft-drawer-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ft-drawer-header-border-color","",u.borderGlobalSubtle),headerColor:i.extend("--ft-drawer-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:i.extend("--ft-drawer-header-trailing-icon-color","",u.contentGlobalSecondary),headerHeight:i.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:i.extend("--ft-drawer-header-horizontal-padding","",d.spacing2),headerBorderWidth:i.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:i.extend("--ft-drawer-header-gap","",d.spacing3),buttonsBarBackgroundColor:i.extend("--ft-drawer-buttons-bar-background-color","",u.backgroundGlobalOnSurface),buttonsBarBorderColor:i.extend("--ft-drawer-buttons-bar-border-color","",u.borderGlobalSubtle),buttonsBarColor:i.extend("--ft-drawer-buttons-bar-color","",u.contentGlobalPrimary),buttonsBarHorizontalPadding:i.extend("--ft-drawer-buttons-bar-horizontal-padding","",d.spacing6),buttonsBarVerticalPadding:i.extend("--ft-drawer-buttons-bar-vertical-padding","",d.spacing4),buttonsBarGap:i.extend("--ft-drawer-buttons-bar-gap","",d.spacing3),buttonsBarBorderWidth:i.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:i.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:i.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:i.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:i.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:i.extend("--ft-drawer-overlay-background-color","",d.colorGray700)};var ru={offBorderBottomWidth:i.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:i.extend("--ft-tabs-off-hover-state-layer-opacity","",d.opacity8),offDefaultStateLayerOpacity:i.extend("--ft-tabs-off-default-state-layer-opacity","",d.opacity0),offFocusStateLayerOpacity:i.extend("--ft-tabs-off-focus-state-layer-opacity","",d.opacity8),offDisabledComponentOpacity:i.extend("--ft-tabs-off-disabled-component-opacity","",d.opacity40),offColor:i.extend("--ft-tabs-off-color","",u.contentGlobalSubtle),offStateLayerColor:i.extend("--ft-tabs-off-state-layer-color","",u.contentGlobalSubtle),offBorderBottomColor:i.extend("--ft-tabs-off-border-bottom-color","",u.borderGlobalSubtle),activeTabIndicatorHeight:i.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:i.extend("--ft-tabs-top-left-border-radius","",d.borderRadiusS),topRightBorderRadius:i.extend("--ft-tabs-top-right-border-radius","",d.borderRadiusS),withLabelHorizontalPadding:i.extend("--ft-tabs-with-label-horizontal-padding","",d.spacing4),withLabelVerticalPadding:i.extend("--ft-tabs-with-label-vertical-padding","",d.spacing3),horizontalGap:i.extend("--ft-tabs-horizontal-gap","",d.spacing1),verticalGap:i.extend("--ft-tabs-vertical-gap","",d.spacing1),onHoverStateLayerOpacity:i.extend("--ft-tabs-on-hover-state-layer-opacity","",d.opacity16),onDefaultStateLayerOpacity:i.extend("--ft-tabs-on-default-state-layer-opacity","",d.opacity8),onFocusStateLayerOpacity:i.extend("--ft-tabs-on-focus-state-layer-opacity","",d.opacity16),onActiveStateLayerOpacity:i.extend("--ft-tabs-on-active-state-layer-opacity","",d.opacity24),onColor:i.extend("--ft-tabs-on-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ft-tabs-on-state-layer-color","",u.contentActionPrimary),onActiveTabIndicatorColor:i.extend("--ft-tabs-on-active-tab-indicator-color","",u.contentActionPrimary),iconOnlyHorizontalPadding:i.extend("--ft-tabs-icon-only-horizontal-padding","",d.spacing4),iconOnlyVerticalPadding:i.extend("--ft-tabs-icon-only-vertical-padding","",d.spacing4),alertTopPadding:i.extend("--ft-tabs-alert-top-padding","",d.spacing1),alertRightPadding:i.extend("--ft-tabs-alert-right-padding","",d.spacing05),focusOutlineWidth:i.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-tabs-focus-focus-ring-color","",u.borderActionFocusRing)};var ou={fieldHorizontalPadding:i.extend("--ft-text-input-field-horizontal-padding","",d.spacing4),fieldHorizontalGap:i.extend("--ft-text-input-field-horizontal-gap","",d.spacing3),fieldVerticalGap:i.extend("--ft-text-input-field-vertical-gap","",d.spacing05),fieldIconSize:i.extend("--ft-text-input-field-icon-size","",d.iconSize3),fieldHeight:i.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:i.extend("--ft-text-input-helper-horizontal-padding","",d.spacing4),helperHorizontalGap:i.extend("--ft-text-input-helper-horizontal-gap","",d.spacing1),helperIconSize:i.extend("--ft-text-input-helper-icon-size","",d.iconSize2),borderRadius:i.extend("--ft-text-input-border-radius","",d.borderRadiusM),backgroundColor:i.extend("--ft-text-input-background-color","",d.colorWhite),contentValueColor:i.extend("--ft-text-input-content-value-color","",u.contentGlobalPrimary),trailingIconColor:i.extend("--ft-text-input-trailing-icon-color","",u.contentGlobalSubtle),labelColor:i.extend("--ft-text-input-label-color","",u.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-text-input-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-text-input-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:i.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ft-text-input-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-text-input-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:i.extend("--ft-text-input-error-helper-icon-color","",u.contentErrorIconOnly),warningBorderWidth:i.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:i.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-text-input-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:i.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ft-text-input-disabled-component-opacity","",d.opacity40)};var iu={backgroundColor:i.extend("--ft-text-area-background-color","",d.colorWhite),contentValueColor:i.extend("--ft-text-area-content-value-color","",u.contentGlobalPrimary),labelColor:i.extend("--ft-text-area-label-color","",u.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-text-area-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-text-area-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:i.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ft-text-area-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-text-area-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:i.extend("--ft-text-area-error-helper-icon-color","",u.contentErrorIconOnly),focusFocusRingColor:i.extend("--ft-text-area-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:i.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:i.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ft-text-area-disabled-component-opacity","",d.opacity40),fieldHorizontalLeftPadding:i.extend("--ft-text-area-field-horizontal-left-padding","",d.spacing4),fieldHorizontalGap:i.extend("--ft-text-area-field-horizontal-gap","",d.spacing3),fieldVerticalGap:i.extend("--ft-text-area-field-vertical-gap","",d.spacing05),fieldMinHeight:i.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:i.extend("--ft-text-area-helper-horizontal-padding","",d.spacing4),helperHorizontalGap:i.extend("--ft-text-area-helper-horizontal-gap","",d.spacing1),helperIconSize:i.extend("--ft-text-area-helper-icon-size","",d.iconSize2),borderRadius:i.extend("--ft-text-area-border-radius","",d.borderRadiusM)};var nu={height:i.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:i.extend("--ft-floating-menu-horizontal-padding","",d.spacing4),offIconColor:i.extend("--ft-floating-menu-off-icon-color","",u.contentGlobalPrimary),offColor:i.extend("--ft-floating-menu-off-color","",u.contentGlobalPrimary),onColor:i.extend("--ft-floating-menu-on-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ft-floating-menu-on-state-layer-color","",u.contentActionPrimary),gap:i.extend("--ft-floating-menu-gap","",d.spacing3),focusFocusRingColor:i.extend("--ft-floating-menu-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:i.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:i.extend("--ft-floating-menu-focus-state-layer-opacity","",d.opacity8),hoverStateLayerOpacity:i.extend("--ft-floating-menu-hover-state-layer-opacity","",d.opacity8),activeStateLayerOpacity:i.extend("--ft-floating-menu-active-state-layer-opacity","",d.opacity16),disabledComponentOpacity:i.extend("--ft-floating-menu-disabled-component-opacity","",d.opacity40),iconSize:i.extend("--ft-floating-menu-icon-size","",d.iconSize3),backgroundColor:i.extend("--ft-floating-menu-background-color","",u.backgroundGlobalOnSurface),shadow:i.extend("--ft-floating-menu-shadow","",d.shadowElevation02)};var au={fieldHorizontalPadding:i.extend("--ft-combobox-single-select-field-horizontal-padding","",d.spacing4),fieldHorizontalGap:i.extend("--ft-combobox-single-select-field-horizontal-gap","",d.spacing3),fieldVerticalGap:i.extend("--ft-combobox-single-select-field-vertical-gap","",d.spacing05),fieldIconSize:i.extend("--ft-combobox-single-select-field-icon-size","",d.iconSize3),fieldHeight:i.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:i.extend("--ft-combobox-single-select-helper-horizontal-padding","",d.spacing4),helperHorizontalGap:i.extend("--ft-combobox-single-select-helper-horizontal-gap","",d.spacing1),helperVerticalGap:i.extend("--ft-combobox-single-select-helper-vertical-gap","",d.spacing1),helperIconSize:i.extend("--ft-combobox-single-select-helper-icon-size","",d.iconSize2),menuVerticalGap:i.extend("--ft-combobox-single-select-menu-vertical-gap","",d.spacing2),borderRadius:i.extend("--ft-combobox-single-select-border-radius","",d.borderRadiusM),backgroundColor:i.extend("--ft-combobox-single-select-background-color","",d.colorWhite),labelColor:i.extend("--ft-combobox-single-select-label-color","",u.contentGlobalSubtle),contentValueColor:i.extend("--ft-combobox-single-select-content-value-color","",u.contentGlobalPrimary),trailingIconColor:i.extend("--ft-combobox-single-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-combobox-single-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-combobox-single-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:i.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ft-combobox-single-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-combobox-single-select-error-helper-text-color","",u.contentErrorPrimary),warningBorderWidth:i.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:i.extend("--ft-combobox-single-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:i.extend("--ft-combobox-single-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:i.extend("--ft-combobox-single-select-warning-helper-icon-color","",u.contentWarningIconOnly),focusOutlineWidth:i.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-combobox-single-select-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:i.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ft-combobox-single-select-disabled-component-opacity","",d.opacity40)};var su={backgroundColor:i.extend("--ft-combobox-multi-select-background-color","",d.colorWhite),labelColor:i.extend("--ft-combobox-multi-select-label-color","",u.contentGlobalSubtle),trailingIconColor:i.extend("--ft-combobox-multi-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-combobox-multi-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-combobox-multi-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:i.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:i.extend("--ft-combobox-multi-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-combobox-multi-select-error-helper-text-color","",u.contentErrorPrimary),errorHelperIcon:i.extend("--ft-combobox-multi-select-error-helper-icon","",u.contentErrorIconOnly),errorBorderWidth:i.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:i.extend("--ft-combobox-multi-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:i.extend("--ft-combobox-multi-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:i.extend("--ft-combobox-multi-select-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:i.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-combobox-multi-select-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:i.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:i.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ft-combobox-multi-select-disabled-component-opacity","",d.opacity40),helperHorizontalPadding:i.extend("--ft-combobox-multi-select-helper-horizontal-padding","",d.spacing4),helperHorizontalGap:i.extend("--ft-combobox-multi-select-helper-horizontal-gap","",d.spacing1),helperVerticalGap:i.extend("--ft-combobox-multi-select-helper-vertical-gap","",d.spacing1),helperIconSize:i.extend("--ft-combobox-multi-select-helper-icon-size","",d.iconSize2),fieldHorizontalPadding:i.extend("--ft-combobox-multi-select-field-horizontal-padding","",d.spacing4),fieldHorizontalGap:i.extend("--ft-combobox-multi-select-field-horizontal-gap","",d.spacing3),fieldVerticalGap:i.extend("--ft-combobox-multi-select-field-vertical-gap","",d.spacing05),fieldIconSize:i.extend("--ft-combobox-multi-select-field-icon-size","",d.iconSize3),fieldMaxHeight:i.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:i.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",d.spacing1),contentValuesVerticalGap:i.extend("--ft-combobox-multi-select-content-values-vertical-gap","",d.spacing1),borderRadius:i.extend("--ft-combobox-multi-select-border-radius","",d.borderRadiusM)};var lu={backgroundColor:i.extend("--ft-popover-background-color","",u.backgroundGlobalOnSurface),horizontalPadding:i.extend("--ft-popover-horizontal-padding","",d.spacing6),verticalPadding:i.extend("--ft-popover-vertical-padding","",d.spacing6),titleColor:i.extend("--ft-popover-title-color","",u.contentGlobalPrimary),bodyColor:i.extend("--ft-popover-body-color","",u.contentGlobalSecondary),linkColor:i.extend("--ft-popover-link-color","",u.contentActionPrimary),gap:i.extend("--ft-popover-gap","",d.spacing3),borderRadius:i.extend("--ft-popover-border-radius","",d.borderRadiusM),shadow:i.extend("--ft-popover-shadow","",d.shadowElevation02)};var cu={hoverStateLayerOpacity:i.extend("--ft-collapsible-hover-state-layer-opacity","",d.opacity8),focusStateLayerOpacity:i.extend("--ft-collapsible-focus-state-layer-opacity","",d.opacity8),focusOutlineWidth:i.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:i.extend("--ft-collapsible-focus-focus-ring-color","",u.borderActionFocusRing),activeStateLayerOpacity:i.extend("--ft-collapsible-active-state-layer-opacity","",d.opacity16),disabledComponentOpacity:i.extend("--ft-collapsible-disabled-component-opacity","",d.opacity40),horizontalPadding:i.extend("--ft-collapsible-horizontal-padding","",d.spacing4),verticalPadding:i.extend("--ft-collapsible-vertical-padding","",d.spacing3),color:i.extend("--ft-collapsible-color","",u.contentGlobalPrimary),stateLayerColor:i.extend("--ft-collapsible-state-layer-color","",u.contentGlobalPrimary),backgroundColor:i.extend("--ft-collapsible-background-color","",u.backgroundGlobalOnSurface),borderColor:i.extend("--ft-collapsible-border-color","",u.borderGlobalSubtle),iconSize:i.extend("--ft-collapsible-icon-size","",d.iconSize3)};var du={groupHorizontalPadding:i.extend("--ft-switch-group-horizontal-padding","",d.spacing1),groupVerticalPadding:i.extend("--ft-switch-group-vertical-padding","",d.spacing1),groupGap:i.extend("--ft-switch-group-gap","",d.spacing1),groupBackgroundColor:i.extend("--ft-switch-group-background-color","",u.backgroundGlobalSurface),groupBorderColor:i.extend("--ft-switch-group-border-color","",u.borderGlobalSubtle),groupBorderRadius:i.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:i.extend("--ft-switch-label-horizontal-padding","",d.spacing2),labelVerticalPadding:i.extend("--ft-switch-label-vertical-padding","",d.spacing1),offHoverStateLayerOpacity:i.extend("--ft-switch-off-hover-state-layer-opacity","",d.opacity8),offFocusStateLayerOpacity:i.extend("--ft-switch-off-focus-state-layer-opacity","",d.opacity8),offActiveStateLayerOpacity:i.extend("--ft-switch-off-active-state-layer-opacity","",d.opacity16),offDisabledComponentOpacity:i.extend("--ft-switch-off-disabled-component-opacity","",d.opacity40),offColor:i.extend("--ft-switch-off-color","",u.contentGlobalSubtle),offStateLayerColor:i.extend("--ft-switch-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ft-switch-on-hover-state-layer-opacity","",d.opacity8),onFocusStateLayerOpacity:i.extend("--ft-switch-on-focus-state-layer-opacity","",d.opacity8),onActiveStateLayerOpacity:i.extend("--ft-switch-on-active-state-layer-opacity","",d.opacity16),onDisabledComponentOpacity:i.extend("--ft-switch-on-disabled-component-opacity","",d.opacity40),onColor:i.extend("--ft-switch-on-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ft-switch-on-state-layer-color","",u.contentActionPrimary),iconHorizontalPadding:i.extend("--ft-switch-icon-horizontal-padding","",d.spacing1),iconVerticalPadding:i.extend("--ft-switch-icon-vertical-padding","",d.spacing1),focusOutlineWidth:i.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-switch-focus-focus-ring-color","",u.borderActionFocusRing),optionBorderRadius:i.extend("--ft-switch-option-border-radius","",d.borderRadiusS)};var pu={color1Light:i.extend("--ft-chart-1-light","for area color charts",d.colorBrand40),color1Base:i.extend("--ft-chart-1-base","for line charts",d.colorBrand0),color2Light:i.extend("--ft-chart-2-light","for area color charts",d.colorYellow60),color2Base:i.extend("--ft-chart-2-base","for line charts",d.colorYellow100),color3Light:i.extend("--ft-chart-3-light","",d.colorUltramarine40),color3Base:i.extend("--ft-chart-3-base","",d.colorUltramarine70),color4Light:i.extend("--ft-chart-4-light","",d.colorCyan50),color4Base:i.extend("--ft-chart-4-base","",d.colorCyan100),color5Light:i.extend("--ft-chart-5-light","",d.colorRed40),color5Base:i.extend("--ft-chart-5-base","",d.colorRed60),color6Light:i.extend("--ft-chart-6-light","",d.colorGreen40),color6Base:i.extend("--ft-chart-6-base","",d.colorGreen70),color7Light:i.extend("--ft-chart-7-light","",d.colorOrange70),color7Base:i.extend("--ft-chart-7-base","",d.colorOrange100),color8Light:i.extend("--ft-chart-8-light","",d.colorAvocado70),color8Base:i.extend("--ft-chart-8-base","",d.colorAvocado200),color9Light:i.extend("--ft-chart-9-light","",d.colorBrown50),color9Base:i.extend("--ft-chart-9-base","",d.colorBrown200),color10Light:i.extend("--ft-chart-10-light","",d.colorGray50),color10Base:i.extend("--ft-chart-10-base","",d.colorGray80),monochrome10:i.extend("--ft-chart-monochrome-10","",d.colorBrand10),monochrome20:i.extend("--ft-chart-monochrome-20","",d.colorBrand20),monochrome30:i.extend("--ft-chart-monochrome-30","",d.colorBrand40),monochrome40:i.extend("--ft-chart-monochrome-40","",d.colorBrand60),monochrome50:i.extend("--ft-chart-monochrome-50","",d.colorBrand0),monochrome60:i.extend("--ft-chart-monochrome-60","",d.colorBrand200)};var uu={borderWidth:i.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:i.extend("--ft-notice-horizontal-padding","",d.spacing3),verticalPadding:i.extend("--ft-notice-vertical-padding","",d.spacing2),borderRadius:i.extend("--ft-notice-border-radius","",d.borderRadiusS),gap:i.extend("--ft-notice-gap","",d.spacing2),iconSize:i.extend("--ft-notice-icon-size","",d.iconSize3),infoBackgroundColor:i.extend("--ft-notice-info-background-color","",u.backgroundInfoSubtle),infoBorderColor:i.extend("--ft-notice-info-border-color","",u.borderInfoSubtle),infoColor:i.extend("--ft-notice-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ft-notice-info-icon-color","",u.contentInfoIconOnly),warningBackgroundColor:i.extend("--ft-notice-warning-background-color","",u.backgroundWarningSubtle),warningBorderColor:i.extend("--ft-notice-warning-border-color","",u.borderWarningSubtle),warningColor:i.extend("--ft-notice-warning-color","",u.contentWarningPrimary),warningIconColor:i.extend("--ft-notice-warning-icon-color","",u.contentWarningIconOnly),errorBackgroundColor:i.extend("--ft-notice-error-background-color","",u.backgroundErrorSubtle),errorBorderColor:i.extend("--ft-notice-error-border-color","",u.borderErrorSubtle),errorColor:i.extend("--ft-notice-error-color","",u.contentErrorPrimary),errorIconColor:i.extend("--ft-notice-error-icon-color","",u.contentErrorIconOnly),successBackgroundColor:i.extend("--ft-notice-success-background-color","",u.backgroundSuccessSubtle),successBorderColor:i.extend("--ft-notice-success-border-color","",u.borderSuccessSubtle),successColor:i.extend("--ft-notice-success-color","",u.contentSuccessPrimary),successIconColor:i.extend("--ft-notice-success-icon-color","",u.contentSuccessIconOnly)};var fu={color:i.extend("--ft-checkbox-color","",u.contentGlobalPrimary),checkedBackgroundColor:i.extend("--ft-checkbox-checked-background-color","",u.contentActionPrimary),checkedStateLayerColor:i.extend("--ft-checkbox-checked-state-layer-color","",u.contentActionPrimary),checkedIconColor:i.extend("--ft-checkbox-checked-icon-color","",u.contentGlobalOnColor),checkedHoverStateLayerOpacity:i.extend("--ft-checkbox-checked-hover-state-layer-opacity","",d.opacity16),checkedFocusStateLayerOpacity:i.extend("--ft-checkbox-checked-focus-state-layer-opacity","",d.opacity16),checkedActiveStateLayerOpacity:i.extend("--ft-checkbox-checked-active-state-layer-opacity","",d.opacity24),checkedDisabledComponentOpacity:i.extend("--ft-checkbox-checked-disabled-component-opacity","",d.opacity40),uncheckedBorderColor:i.extend("--ft-checkbox-unchecked-border-color","",d.colorGray80),uncheckedStateLayerColor:i.extend("--ft-checkbox-unchecked-state-layer-color","",d.colorGray80),uncheckedHoverStateLayerOpacity:i.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",d.opacity16),uncheckedFocusStateLayerOpacity:i.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",d.opacity16),uncheckedActiveStateLayerOpacity:i.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",d.opacity24),uncheckedDisabledComponentOpacity:i.extend("--ft-checkbox-unchecked-disabled-component-opacity","",d.opacity40),focusFocusRingColor:i.extend("--ft-checkbox-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:i.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:i.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gap:i.extend("--ft-checkbox-gap","",d.spacing3)};var hu={offHoverStateLayerOpacity:i.extend("--ft-toggle-off-hover-state-layer-opacity","",d.opacity16),offFocusStateLayerOpacity:i.extend("--ft-toggle-off-focus-state-layer-opacity","",d.opacity16),offActiveStateLayerOpacity:i.extend("--ft-toggle-off-active-state-layer-opacity","",d.opacity24),offDisabledComponentOpacity:i.extend("--ft-toggle-off-disabled-component-opacity","",d.opacity40),offBackgroundColor:i.extend("--ft-toggle-off-background-color","",u.contentGlobalSubtle),offIconColor:i.extend("--ft-toggle-off-icon-color","",u.contentGlobalSubtle),offStateLayerColor:i.extend("--ft-toggle-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ft-toggle-on-hover-state-layer-opacity","",d.opacity16),onFocusStateLayerOpacity:i.extend("--ft-toggle-on-focus-state-layer-opacity","",d.opacity16),onActiveStateLayerOpacity:i.extend("--ft-toggle-on-active-state-layer-opacity","",d.opacity24),onDisabledComponentOpacity:i.extend("--ft-toggle-on-disabled-component-opacity","",d.opacity40),onBackgroundColor:i.extend("--ft-toggle-on-background-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ft-toggle-on-state-layer-color","",u.contentActionPrimary),onIconColor:i.extend("--ft-toggle-on-icon-color","",u.contentActionPrimary),color:i.extend("--ft-toggle-color","",u.contentGlobalPrimary),focusFocusRingColor:i.extend("--ft-toggle-focus-focus-ring-color","",u.borderActionFocusRing),gap:i.extend("--ft-toggle-gap","",d.spacing3)};var mu={color:i.extend("--ft-radio-color","",u.contentGlobalPrimary),selectedRadioColor:i.extend("--ft-radio-selected-radio-color","",u.contentActionPrimary),selectedStateLayerColor:i.extend("--ft-radio-selected-state-layer-color","",u.contentActionPrimary),selectedHoverStateLayerOpacity:i.extend("--ft-radio-selected-hover-state-layer-opacity","",d.opacity16),selectedFocusStateLayerOpacity:i.extend("--ft-radio-selected-focus-state-layer-opacity","",d.opacity16),selectedActiveStateLayerOpacity:i.extend("--ft-radio-selected-active-state-layer-opacity","",d.opacity24),selectedDisabledComponentOpacity:i.extend("--ft-radio-selected-disabled-component-opacity","",d.opacity40),unselectedStateLayerColor:i.extend("--ft-radio-unselected-state-layer-color","",u.borderInputPrimary),unselectedBorderColor:i.extend("--ft-radio-unselected-border-color","",u.borderInputPrimary),unselectedHoverStateLayerOpacity:i.extend("--ft-radio-unselected-hover-state-layer-opacity","",d.opacity16),unselectedFocusStateLayerOpacity:i.extend("--ft-radio-unselected-focus-state-layer-opacity","",d.opacity16),unselectedActiveStateLayerOpacity:i.extend("--ft-radio-unselected-active-state-layer-opacity","",d.opacity24),unselectedDisabledComponentOpacity:i.extend("--ft-radio-unselected-disabled-component-opacity","",d.opacity40),focusFocusRingColor:i.extend("--ft-radio-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:i.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:i.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:i.extend("--ft-radio-gap","",d.spacing3)};var gu={iconSize:i.extend("--ft-notification-icon-size","",d.iconSize4),leftPadding:i.extend("--ft-notification-left-padding","",d.spacing5),rightPadding:i.extend("--ft-notification-right-padding","",d.spacing4),verticalPadding:i.extend("--ft-notification-vertical-padding","",d.spacing3),infoBackgroundColor:i.extend("--ft-notification-info-background-color","",u.backgroundInfoSubtle),infoColor:i.extend("--ft-notification-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ft-notification-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:i.extend("--ft-notification-info-border-color","",u.borderInfoSubtle),successBackgroundColor:i.extend("--ft-notification-success-background-color","",u.backgroundSuccessSubtle),successColor:i.extend("--ft-notification-success-color","",u.contentSuccessPrimary),successIconColor:i.extend("--ft-notification-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:i.extend("--ft-notification-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:i.extend("--ft-notification-warning-background-color","",u.backgroundWarningSubtle),warningColor:i.extend("--ft-notification-warning-color","",u.contentWarningPrimary),warningIconColor:i.extend("--ft-notification-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:i.extend("--ft-notification-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:i.extend("--ft-notification-error-background-color","",u.backgroundErrorSubtle),errorColor:i.extend("--ft-notification-error-color","",u.contentErrorPrimary),errorIconColor:i.extend("--ft-notification-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:i.extend("--ft-notification-error-border-color","",u.borderErrorSubtle),borderRadius:i.extend("--ft-notification-border-radius","",d.borderRadiusPill),borderWidth:i.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:i.extend("--ft-notification-leading-gap","",d.spacing2),trailingGap:i.extend("--ft-notification-trailing-gap","",d.spacing8)};var yu={horizontalPadding:i.extend("--ft-tooltip-horizontal-padding","",d.spacing2),verticalPadding:i.extend("--ft-tooltip-vertical-padding","",d.spacing2),borderRadius:i.extend("--ft-tooltip-border-radius","",d.borderRadiusS),color:i.extend("--ft-tooltip-color","",u.contentGlobalOnColor),backgroundColor:i.extend("--ft-tooltip-background-color","",u.contentGlobalPrimary),backgroundOpacity:i.extend("--ft-tooltip-background-opacity","",d.opacity80),shadow:i.extend("--ft-tooltip-shadow","",d.shadowElevation02),maxWidth:i.create("--ft-tooltip-max-width","","SIZE","256px"),gap:i.extend("--ft-tooltip-gap","",d.spacing05)};var pr;(function(r){r.brand="brand",r.neutral="neutral",r.info="info",r.success="success",r.warning="warning",r.error="error"})(pr||(pr={}));var xt;(function(r){r.large="large",r.medium="medium",r.small="small"})(xt||(xt={}));function sa(r){return`ftds--family-${r}`}function la(r){return`ftds--size-${r}`}var N={colorPrimary:i.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:i.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:i.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:i.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:i.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:i.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:i.create("--ft-color-error","","COLOR","#B00020"),colorOutline:i.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:i.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:i.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:i.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:i.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:i.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:i.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:i.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:i.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:i.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:i.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:i.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:i.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:i.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:i.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:i.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:i.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:i.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:i.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:i.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:i.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:i.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:i.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:i.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:i.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:i.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:i.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:i.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:i.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:i.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:i.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:i.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:i.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:i.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:i.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:i.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:i.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:i.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:i.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:i.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:i.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:i.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:i.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:i.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var fa={};ee(fa,{FtNotificationEvent:()=>$e,PostResizeEvent:()=>ua,PreResizeEvent:()=>pa});var $e=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},pa=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},ua=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};var Ea={};ee(Ea,{computeOffsetPosition:()=>Oo});var Il=["top","right","bottom","left"],Tl=["start","end"],ma=Il.reduce((r,e)=>r.concat(e,e+"-"+Tl[0],e+"-"+Tl[1]),[]),yo=Math.min,Lt=Math.max,bo=Math.round;var St=r=>({x:r,y:r}),bu={left:"right",right:"left",bottom:"top",top:"bottom"},vu={start:"end",end:"start"};function ga(r,e,t){return Lt(r,yo(e,t))}function li(r,e){return typeof r=="function"?r(e):r}function $r(r){return r.split("-")[0]}function Dt(r){return r.split("-")[1]}function ya(r){return r==="x"?"y":"x"}function ba(r){return r==="y"?"height":"width"}function ci(r){return["top","bottom"].includes($r(r))?"y":"x"}function va(r){return ya(ci(r))}function Pl(r,e,t){t===void 0&&(t=!1);let o=Dt(r),n=va(r),a=ba(n),s=n==="x"?o===(t?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=ha(s)),[s,ha(s)]}function $l(r){return r.replace(/start|end/g,e=>vu[e])}function ha(r){return r.replace(/left|right|bottom|top/g,e=>bu[e])}function xu(r){return{top:0,right:0,bottom:0,left:0,...r}}function kl(r){return typeof r!="number"?xu(r):{top:r,right:r,bottom:r,left:r}}function ur(r){return{...r,top:r.y,left:r.x,right:r.x+r.width,bottom:r.y+r.height}}function Ll(r,e,t){let{reference:o,floating:n}=r,a=ci(e),s=va(e),l=ba(s),c=$r(e),p=a==="y",h=o.x+o.width/2-n.width/2,f=o.y+o.height/2-n.height/2,y=o[l]/2-n[l]/2,b;switch(c){case"top":b={x:h,y:o.y-n.height};break;case"bottom":b={x:h,y:o.y+o.height};break;case"right":b={x:o.x+o.width,y:f};break;case"left":b={x:o.x-n.width,y:f};break;default:b={x:o.x,y:o.y}}switch(Dt(e)){case"start":b[s]-=y*(t&&p?-1:1);break;case"end":b[s]+=y*(t&&p?-1:1);break}return b}var Dl=async(r,e,t)=>{let{placement:o="bottom",strategy:n="absolute",middleware:a=[],platform:s}=t,l=a.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:r,floating:e,strategy:n}),{x:h,y:f}=Ll(p,o,c),y=o,b={},v=0;for(let E=0;E<l.length;E++){let{name:A,fn:R}=l[E],{x:I,y:S,data:O,reset:w}=await R({x:h,y:f,initialPlacement:o,placement:y,strategy:n,middlewareData:b,rects:p,platform:s,elements:{reference:r,floating:e}});if(h=I??h,f=S??f,b={...b,[A]:{...b[A],...O}},w&&v<=50){v++,typeof w=="object"&&(w.placement&&(y=w.placement),w.rects&&(p=w.rects===!0?await s.getElementRects({reference:r,floating:e,strategy:n}):w.rects),{x:h,y:f}=Ll(p,y,c)),E=-1;continue}}return{x:h,y:f,placement:y,strategy:n,middlewareData:b}};async function xa(r,e){var t;e===void 0&&(e={});let{x:o,y:n,platform:a,rects:s,elements:l,strategy:c}=r,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:f="floating",altBoundary:y=!1,padding:b=0}=li(e,r),v=kl(b),A=l[y?f==="floating"?"reference":"floating":f],R=ur(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(A)))==null||t?A:A.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:h,strategy:c})),I=f==="floating"?{...s.floating,x:o,y:n}:s.reference,S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),O=await(a.isElement==null?void 0:a.isElement(S))?await(a.getScale==null?void 0:a.getScale(S))||{x:1,y:1}:{x:1,y:1},w=ur(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:I,offsetParent:S,strategy:c}):I);return{top:(R.top-w.top+v.top)/O.y,bottom:(w.bottom-R.bottom+v.bottom)/O.y,left:(R.left-w.left+v.left)/O.x,right:(w.right-R.right+v.right)/O.x}}function Su(r,e,t){return(r?[...t.filter(n=>Dt(n)===r),...t.filter(n=>Dt(n)!==r)]:t.filter(n=>$r(n)===n)).filter(n=>r?Dt(n)===r||(e?$l(n)!==n:!1):!0)}var Sa=function(r){return r===void 0&&(r={}),{name:"autoPlacement",options:r,async fn(e){var t,o,n;let{rects:a,middlewareData:s,placement:l,platform:c,elements:p}=e,{crossAxis:h=!1,alignment:f,allowedPlacements:y=ma,autoAlignment:b=!0,...v}=li(r,e),E=f!==void 0||y===ma?Su(f||null,b,y):y,A=await xa(e,v),R=((t=s.autoPlacement)==null?void 0:t.index)||0,I=E[R];if(I==null)return{};let S=Pl(I,a,await(c.isRTL==null?void 0:c.isRTL(p.floating)));if(l!==I)return{reset:{placement:E[0]}};let O=[A[$r(I)],A[S[0]],A[S[1]]],w=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:I,overflows:O}],U=E[R+1];if(U)return{data:{index:R+1,overflows:w},reset:{placement:U}};let J=w.map(D=>{let m=Dt(D.placement);return[D.placement,m&&h?D.overflows.slice(0,2).reduce((x,k)=>x+k,0):D.overflows[0],D.overflows]}).sort((D,m)=>D[1]-m[1]),Q=((n=J.filter(D=>D[2].slice(0,Dt(D[0])?2:3).every(m=>m<=0))[0])==null?void 0:n[0])||J[0][0];return Q!==l?{data:{index:R+1,overflows:w},reset:{placement:Q}}:{}}}};var Oa=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(e){let{x:t,y:o,placement:n}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:A=>{let{x:R,y:I}=A;return{x:R,y:I}}},...c}=li(r,e),p={x:t,y:o},h=await xa(e,c),f=ci($r(n)),y=ya(f),b=p[y],v=p[f];if(a){let A=y==="y"?"top":"left",R=y==="y"?"bottom":"right",I=b+h[A],S=b-h[R];b=ga(I,b,S)}if(s){let A=f==="y"?"top":"left",R=f==="y"?"bottom":"right",I=v+h[A],S=v-h[R];v=ga(I,v,S)}let E=l.fn({...e,[y]:b,[f]:v});return{...E,data:{x:E.x-t,y:E.y-o}}}}};function Ot(r){return Ul(r)?(r.nodeName||"").toLowerCase():"#document"}function Fe(r){var e;return(r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function wt(r){var e;return(e=(Ul(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function Ul(r){return r instanceof Node||r instanceof Fe(r).Node}function ct(r){return r instanceof Element||r instanceof Fe(r).Element}function Qe(r){return r instanceof HTMLElement||r instanceof Fe(r).HTMLElement}function Ml(r){return typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof Fe(r).ShadowRoot}function kr(r){let{overflow:e,overflowX:t,overflowY:o,display:n}=je(r);return/auto|scroll|overlay|hidden|clip/.test(e+o+t)&&!["inline","contents"].includes(n)}function Fl(r){return["table","td","th"].includes(Ot(r))}function pi(r){let e=ui(),t=je(r);return t.transform!=="none"||t.perspective!=="none"||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(t.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(t.contain||"").includes(o))}function Bl(r){let e=fr(r);for(;Qe(e)&&!vo(e);){if(pi(e))return e;e=fr(e)}return null}function ui(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function vo(r){return["html","body","#document"].includes(Ot(r))}function je(r){return Fe(r).getComputedStyle(r)}function xo(r){return ct(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.pageXOffset,scrollTop:r.pageYOffset}}function fr(r){if(Ot(r)==="html")return r;let e=r.assignedSlot||r.parentNode||Ml(r)&&r.host||wt(r);return Ml(e)?e.host:e}function zl(r){let e=fr(r);return vo(e)?r.ownerDocument?r.ownerDocument.body:r.body:Qe(e)&&kr(e)?e:zl(e)}function di(r,e,t){var o;e===void 0&&(e=[]),t===void 0&&(t=!0);let n=zl(r),a=n===((o=r.ownerDocument)==null?void 0:o.body),s=Fe(n);return a?e.concat(s,s.visualViewport||[],kr(n)?n:[],s.frameElement&&t?di(s.frameElement):[]):e.concat(n,di(n,[],t))}function Vl(r){let e=je(r),t=parseFloat(e.width)||0,o=parseFloat(e.height)||0,n=Qe(r),a=n?r.offsetWidth:t,s=n?r.offsetHeight:o,l=bo(t)!==a||bo(o)!==s;return l&&(t=a,o=s),{width:t,height:o,$:l}}function jl(r){return ct(r)?r:r.contextElement}function Lr(r){let e=jl(r);if(!Qe(e))return St(1);let t=e.getBoundingClientRect(),{width:o,height:n,$:a}=Vl(e),s=(a?bo(t.width):t.width)/o,l=(a?bo(t.height):t.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var Ou=St(0);function Kl(r){let e=Fe(r);return!ui()||!e.visualViewport?Ou:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function wu(r,e,t){return e===void 0&&(e=!1),!t||e&&t!==Fe(r)?!1:e}function So(r,e,t,o){e===void 0&&(e=!1),t===void 0&&(t=!1);let n=r.getBoundingClientRect(),a=jl(r),s=St(1);e&&(o?ct(o)&&(s=Lr(o)):s=Lr(r));let l=wu(a,t,o)?Kl(a):St(0),c=(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 y=Fe(a),b=o&&ct(o)?Fe(o):o,v=y.frameElement;for(;v&&o&&b!==y;){let E=Lr(v),A=v.getBoundingClientRect(),R=je(v),I=A.left+(v.clientLeft+parseFloat(R.paddingLeft))*E.x,S=A.top+(v.clientTop+parseFloat(R.paddingTop))*E.y;c*=E.x,p*=E.y,h*=E.x,f*=E.y,c+=I,p+=S,v=Fe(v).frameElement}}return ur({width:h,height:f,x:c,y:p})}function Eu(r){let{rect:e,offsetParent:t,strategy:o}=r,n=Qe(t),a=wt(t);if(t===a)return e;let s={scrollLeft:0,scrollTop:0},l=St(1),c=St(0);if((n||!n&&o!=="fixed")&&((Ot(t)!=="body"||kr(a))&&(s=xo(t)),Qe(t))){let p=So(t);l=Lr(t),c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-s.scrollLeft*l.x+c.x,y:e.y*l.y-s.scrollTop*l.y+c.y}}function Cu(r){return Array.from(r.getClientRects())}function Gl(r){return So(wt(r)).left+xo(r).scrollLeft}function Au(r){let e=wt(r),t=xo(r),o=r.ownerDocument.body,n=Lt(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),a=Lt(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight),s=-t.scrollLeft+Gl(r),l=-t.scrollTop;return je(o).direction==="rtl"&&(s+=Lt(e.clientWidth,o.clientWidth)-n),{width:n,height:a,x:s,y:l}}function Ru(r,e){let t=Fe(r),o=wt(r),n=t.visualViewport,a=o.clientWidth,s=o.clientHeight,l=0,c=0;if(n){a=n.width,s=n.height;let p=ui();(!p||p&&e==="fixed")&&(l=n.offsetLeft,c=n.offsetTop)}return{width:a,height:s,x:l,y:c}}function _u(r,e){let t=So(r,!0,e==="fixed"),o=t.top+r.clientTop,n=t.left+r.clientLeft,a=Qe(r)?Lr(r):St(1),s=r.clientWidth*a.x,l=r.clientHeight*a.y,c=n*a.x,p=o*a.y;return{width:s,height:l,x:c,y:p}}function Hl(r,e,t){let o;if(e==="viewport")o=Ru(r,t);else if(e==="document")o=Au(wt(r));else if(ct(e))o=_u(e,t);else{let n=Kl(r);o={...e,x:e.x-n.x,y:e.y-n.y}}return ur(o)}function Zl(r,e){let t=fr(r);return t===e||!ct(t)||vo(t)?!1:je(t).position==="fixed"||Zl(t,e)}function Nu(r,e){let t=e.get(r);if(t)return t;let o=di(r,[],!1).filter(l=>ct(l)&&Ot(l)!=="body"),n=null,a=je(r).position==="fixed",s=a?fr(r):r;for(;ct(s)&&!vo(s);){let l=je(s),c=pi(s);!c&&l.position==="fixed"&&(n=null),(a?!c&&!n:!c&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||kr(s)&&!c&&Zl(r,s))?o=o.filter(h=>h!==s):n=l,s=fr(s)}return e.set(r,o),o}function Tu(r){let{element:e,boundary:t,rootBoundary:o,strategy:n}=r,s=[...t==="clippingAncestors"?Nu(e,this._c):[].concat(t),o],l=s[0],c=s.reduce((p,h)=>{let f=Hl(e,h,n);return p.top=Lt(f.top,p.top),p.right=yo(f.right,p.right),p.bottom=yo(f.bottom,p.bottom),p.left=Lt(f.left,p.left),p},Hl(e,l,n));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Iu(r){return Vl(r)}function Pu(r,e,t){let o=Qe(e),n=wt(e),a=t==="fixed",s=So(r,!0,a,e),l={scrollLeft:0,scrollTop:0},c=St(0);if(o||!o&&!a)if((Ot(e)!=="body"||kr(n))&&(l=xo(e)),o){let p=So(e,!0,a,e);c.x=p.x+e.clientLeft,c.y=p.y+e.clientTop}else n&&(c.x=Gl(n));return{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function Wl(r,e){return!Qe(r)||je(r).position==="fixed"?null:e?e(r):r.offsetParent}function ql(r,e){let t=Fe(r);if(!Qe(r))return t;let o=Wl(r,e);for(;o&&Fl(o)&&je(o).position==="static";)o=Wl(o,e);return o&&(Ot(o)==="html"||Ot(o)==="body"&&je(o).position==="static"&&!pi(o))?t:o||Bl(r)||t}var $u=async function(r){let{reference:e,floating:t,strategy:o}=r,n=this.getOffsetParent||ql,a=this.getDimensions;return{reference:Pu(e,await n(t),o),floating:{x:0,y:0,...await a(t)}}};function ku(r){return je(r).direction==="rtl"}var fi={convertOffsetParentRelativeRectToViewportRelativeRect:Eu,getDocumentElement:wt,getClippingRect:Tu,getOffsetParent:ql,getElementRects:$u,getClientRects:Cu,getDimensions:Iu,getScale:Lr,isElement:ct,isRTL:ku};var Yl=(r,e,t)=>{let o=new Map,n={platform:fi,...t},a={...n.platform,_c:o};return Dl(r,e,{...n,platform:a})};function Xl(r){return Lu(r)}function wa(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function Lu(r){for(let e=r;e;e=wa(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=wa(r);e;e=wa(e)){if(!(e instanceof Element))continue;let t=getComputedStyle(e);if(t.display!=="contents"&&(t.position!=="static"||t.filter!=="none"||e.tagName==="BODY"))return e}return null}async function Oo(r,e,t){return Yl(r,e,{platform:{...fi,getOffsetParent:o=>fi.getOffsetParent(o,Xl)},middleware:[Oa({crossAxis:!0}),Sa({allowedPlacements:[t]})]})}var _a={};ee(_a,{FtdsBase:()=>Ra,toFtdsBase:()=>gi});var Aa={};ee(Aa,{FtLitElement:()=>H});var Ca={};ee(Ca,{ScopedRegistryLitElement:()=>wo});var hi=window,Du=hi.ShadowRoot&&(hi.ShadyCSS===void 0||hi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,xb=Symbol();var Jl=(r,e)=>{Du?r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{let o=document.createElement("style"),n=hi.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=t.cssText,r.appendChild(o)})};var wo=class extends yt{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([n,a])=>e.registry.define(n,a)));let t={...e.shadowRootOptions,customElements:e.registry},o=this.renderOptions.creationScope=this.attachShadow(t);return Jl(o,e.elementStyles),o}};var mi=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},rc,Ql=Symbol("constructorPrototype"),ec=Symbol("constructorName"),oc=Symbol("exportpartsDebouncer"),tc=Symbol("dynamicDependenciesLoaded"),H=class extends wo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[rc]=new ae(5),this[ec]=this.constructor.name,this[Ql]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ec]&&Object.setPrototypeOf(this,this[Ql])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(t){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",t)}let e=this.constructor;e[tc]||(e[tc]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}applyCustomStylesheet(e){var t,o,n;if(((o=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&o!==void 0?o:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.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 e,t,o;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(o=(t=this.exportpartsPrefixes)===null||t===void 0?void 0:t.length)!==null&&o!==void 0&&o)&&this[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(e){var t,o,n,a,s,l;let c=y=>y!=null&&y.trim().length>0,p=e.filter(c).map(y=>y.trim());if(p.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let y of(o=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("[part],[exportparts]"))!==null&&o!==void 0?o:[]){let b=(a=(n=y.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],v=(l=(s=y.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(E=>E.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...b,...v).filter(c).map(E=>E.trim()).forEach(E=>h.add(E))}if(h.size===0){this.removeAttribute("exportparts");return}let f=[...h.values()].flatMap(y=>p.map(b=>`${y}:${b}--${y}`));this.setAttribute("exportparts",[...this.part,...f].join(", "))}};rc=oc;mi([g()],H.prototype,"exportpartsPrefix",void 0);mi([lt([])],H.prototype,"exportpartsPrefixes",void 0);mi([g()],H.prototype,"customStylesheet",void 0);mi([z()],H.prototype,"useAdoptedStyleSheets",void 0);var ic=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a};function gi(r){class e extends r{constructor(){super(...arguments),this.size=xt.medium,this.family=pr.neutral}getDesignSystemBaseClasses(){return{[sa(this.family)]:!0,[la(this.size)]:!0}}}return ic([g()],e.prototype,"size",void 0),ic([g()],e.prototype,"family",void 0),e}var Ra=class extends gi(H){};var nc={};var Ia={};ee(Ia,{highlightHtml:()=>Ta,highlightHtmlColorCssVariable:()=>ac,highlightHtmlStyles:()=>Uu});var hr=class r{constructor(e,t=!0,o=[],n=5e3){this.ctx=e,this.iframes=t,this.exclude=o,this.iframesTimeout=n}static matches(e,t){let o=typeof t=="string"?[t]:t,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(n){let a=!1;return o.every(s=>n.call(e,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,t=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(o=>{let n=t.filter(a=>a.contains(o)).length>0;t.indexOf(o)===-1&&!n&&t.push(o)}),t}getIframeContents(e,t,o=()=>{}){let n;try{let a=e.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{o()}n&&t(n)}isIframeBlank(e){let t="about:blank",o=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&o!==t&&o}observeIframeLoad(e,t,o){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,t,o))}catch{o()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,t,o){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,t,o):this.getIframeContents(e,t,o):this.observeIframeLoad(e,t,o)}catch{o()}}waitForIframes(e,t){let o=0;this.forEachIframe(e,()=>!0,n=>{o++,this.waitForIframes(n.querySelector("html"),()=>{--o||t()})},n=>{n||t()})}forEachIframe(e,t,o,n=()=>{}){let a=e.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let c=()=>{--s<=0&&n(l)};s||c(),a.forEach(p=>{r.matches(p,this.exclude)?c():this.onIframeReady(p,h=>{t(p)&&(l++,o(h)),c()},c)})}createIterator(e,t,o){return document.createNodeIterator(e,t,o,!1)}createInstanceOnIframe(e){return new r(e.querySelector("html"),this.iframes)}compareNodeIframe(e,t,o){let n=e.compareDocumentPosition(o),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(t!==null){let s=t.compareDocumentPosition(o),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(e){let t=e.previousNode(),o;return t===null?o=e.nextNode():o=e.nextNode()&&e.nextNode(),{prevNode:t,node:o}}checkIframeFilter(e,t,o,n){let a=!1,s=!1;return n.forEach((l,c)=>{l.val===o&&(a=c,s=l.handled)}),this.compareNodeIframe(e,t,o)?(a===!1&&!s?n.push({val:o,handled:!0}):a!==!1&&!s&&(n[a].handled=!0),!0):(a===!1&&n.push({val:o,handled:!1}),!1)}handleOpenIframes(e,t,o,n){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(t,o,n)})})}iterateThroughNodes(e,t,o,n,a){let s=this.createIterator(t,e,n),l=[],c=[],p,h,f=()=>({prevNode:h,node:p}=this.getIteratorNode(s),p);for(;f();)this.iframes&&this.forEachIframe(t,y=>this.checkIframeFilter(p,h,y,l),y=>{this.createInstanceOnIframe(y).forEachNode(e,b=>c.push(b),n)}),c.push(p);c.forEach(y=>{o(y)}),this.iframes&&this.handleOpenIframes(l,e,o,n),a()}forEachNode(e,t,o,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let c=()=>{this.iterateThroughNodes(e,l,t,o,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,c):c()})}};var Eo=class{constructor(e){this.ctx=e,this.ie=!1;let t=window.navigator.userAgent;(t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},e)}get opt(){return this._opt}get iterator(){return new hr(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,t="debug"){let o=this.opt.log;this.opt.debug&&typeof o=="object"&&typeof o[t]=="function"&&o[t](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){let t=this.opt.synonyms,o=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in t)if(t.hasOwnProperty(a)){let s=t[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),c=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&c!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(c)})`,`gm${o}`),n+`(${this.processSynomyms(l)}|${this.processSynomyms(c)})`+n))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,t=>t.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,t=>t.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let t=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(t,o,n)=>{let a=n.charAt(o+1);return/[(|)\\]/.test(a)||a===""?t:t+"\0"})}createJoinersRegExp(e){let t=[],o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&t.push(this.escapeStr(o.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join(`[${t.join("")}]*`):e}createDiacriticsRegExp(e){let t=this.opt.caseSensitive?"":"i",o=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],n=[];return e.split("").forEach(a=>{o.every(s=>{if(s.indexOf(a)!==-1){if(n.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${t}`),`[${s}]`),n.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",o=this.opt.accuracy,n=typeof o=="string"?o:o.value,a=typeof o=="string"?[]:o.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),n){case"partially":default:return`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(t)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let t=[];return e.forEach(o=>{this.opt.separateWordSearch?o.split(" ").forEach(n=>{n.trim()&&t.indexOf(n)===-1&&t.push(n)}):o.trim()&&t.indexOf(o)===-1&&t.push(o)}),{keywords:t.sort((o,n)=>n.length-o.length),length:t.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];let t=[],o=0;return e.sort((n,a)=>n.start-a.start).forEach(n=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(n,o);l&&(n.start=a,n.length=s-a,t.push(n),o=s)}),t}callNoMatchOnInvalidRanges(e,t){let o,n,a=!1;return e&&typeof e.start<"u"?(o=parseInt(e.start,10),n=o+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&n-t>0&&n-o>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:o,end:n,valid:a}}checkWhitespaceRanges(e,t,o){let n,a=!0,s=o.length,l=t-s,c=parseInt(e.start,10)-l;return c=c>s?s:c,n=c+parseInt(e.length,10),n>s&&(n=s,this.log(`End range automatically set to the max value of ${s}`)),c<0||n-c<0||c>s||n>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):o.substring(c,n).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:c,end:n,valid:a}}getTextNodes(e){let t="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{o.push({start:t.length,end:(t+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:t,nodes:o})})}matchesExclude(e){return hr.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,t,o){let n=this.opt.element?this.opt.element:"mark",a=e.splitText(t),s=a.splitText(o-t),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(e,t,o,n,a){e.nodes.every((s,l)=>{let c=e.nodes[l+1];if(typeof c>"u"||c.start>t){if(!n(s.node))return!1;let p=t-s.start,h=(o>s.end?s.end:o)-s.start,f=e.value.substr(0,s.start),y=e.value.substr(h+s.start);if(s.node=this.wrapRangeInTextNode(s.node,p,h),e.value=f+y,e.nodes.forEach((b,v)=>{v>=l&&(e.nodes[v].start>0&&v!==l&&(e.nodes[v].start-=h),e.nodes[v].end-=h)}),o-=h,a(s.node.previousSibling,s.start),o>s.end)t=s.end;else return!1}return!0})}wrapMatches(e,t,o,n,a){let s=t===0?0:t+1;this.getTextNodes(l=>{l.nodes.forEach(c=>{c=c.node;let p;for(;(p=e.exec(c.textContent))!==null&&p[s]!=="";){if(!o(p[s],c))continue;let h=p.index;if(s!==0)for(let f=1;f<s;f++)h+=p[f].length;c=this.wrapRangeInTextNode(c,h,h+p[s].length),n(c.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,t,o,n,a){let s=t===0?0:t+1;this.getTextNodes(l=>{let c;for(;(c=e.exec(l.value))!==null&&c[s]!=="";){let p=c.index;if(s!==0)for(let f=1;f<s;f++)p+=c[f].length;let h=p+c[s].length;this.wrapRangeInMappedTextNode(l,p,h,f=>o(c[s],f),(f,y)=>{e.lastIndex=y,n(f)})}a()})}wrapRangeFromIndex(e,t,o,n){this.getTextNodes(a=>{let s=a.value.length;e.forEach((l,c)=>{let{start:p,end:h,valid:f}=this.checkWhitespaceRanges(l,s,a.value);f&&this.wrapRangeInMappedTextNode(a,p,h,y=>t(y,l,a.value.substring(p,h),c),y=>{o(y,l)})}),n()})}unwrapMatches(e){let t=e.parentNode,o=document.createDocumentFragment();for(;e.firstChild;)o.appendChild(e.removeChild(e.firstChild));t.replaceChild(o,e),this.ie?this.normalizeTextNode(t):t.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,t){this.opt=t,this.log(`Searching with expression "${e}"`);let o=0,n="wrapMatches",a=s=>{o++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](e,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,o),a,()=>{o===0&&this.opt.noMatch(e),this.opt.done(o)})}mark(e,t){this.opt=t;let o=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),l=this.opt.caseSensitive?"":"i",c=p=>{let h=new RegExp(this.createRegExp(p),`gm${l}`),f=0;this.log(`Searching with expression "${h}"`),this[n](h,1,(y,b)=>this.opt.filter(b,p,o,f),y=>{f++,o++,this.opt.each(y)},()=>{f===0&&this.opt.noMatch(p),a[s-1]===p?this.opt.done(o):c(a[a.indexOf(p)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),s===0?this.opt.done(o):c(a[0])}markRanges(e,t){this.opt=t;let o=0,n=this.checkRanges(e);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(a,s,l,c)=>this.opt.filter(a,s,l,c),(a,s)=>{o++,this.opt.each(a,s)},()=>{this.opt.done(o)})):this.opt.done(o)}unmark(e){this.opt=e;let t=this.opt.element?this.opt.element:"*";t+="[data-markjs]",this.opt.className&&(t+=`.${this.opt.className}`),this.log(`Removal selector "${t}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,o=>{this.unwrapMatches(o)},o=>{let n=hr.matches(o,t),a=this.matchesExclude(o);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Na(r){let e=new Eo(r);return this.mark=(t,o)=>(e.mark(t,o),this),this.markRegExp=(t,o)=>(e.markRegExp(t,o),this),this.markRanges=(t,o)=>(e.markRanges(t,o),this),this.unmark=t=>(e.unmark(t),this),this}var Mu=Na,ac=i.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),Uu=P`
|
|
1
|
+
"use strict";(()=>{var np=Object.create;var ln=Object.defineProperty;var ap=Object.getOwnPropertyDescriptor;var sp=Object.getOwnPropertyNames;var lp=Object.getPrototypeOf,cp=Object.prototype.hasOwnProperty;var dp=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),ee=(r,e)=>{for(var t in e)ln(r,t,{get:e[t],enumerable:!0})},pp=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of sp(e))!cp.call(r,n)&&n!==t&&ln(r,n,{get:()=>e[n],enumerable:!(o=ap(e,n))||o.enumerable});return r};var up=(r,e,t)=>(t=r!=null?np(lp(r)):{},pp(e||!r||!r.__esModule?ln(t,"default",{value:r,enumerable:!0}):t,r));var Vc=dp((Vt,Wc)=>{var Ri=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,_i=function(){function r(){this.fetch=!1,this.DOMException=Ri.DOMException}return r.prototype=Ri,new r}();(function(r){var e=function(t){var o=typeof r<"u"&&r||typeof self<"u"&&self||typeof global<"u"&&global||{},n={searchParams:"URLSearchParams"in o,iterable:"Symbol"in o&&"iterator"in Symbol,blob:"FileReader"in o&&"Blob"in o&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in o,arrayBuffer:"ArrayBuffer"in o};function a(m){return m&&DataView.prototype.isPrototypeOf(m)}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(m){return m&&s.indexOf(Object.prototype.toString.call(m))>-1};function c(m){if(typeof m!="string"&&(m=String(m)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(m)||m==="")throw new TypeError('Invalid character in header field name: "'+m+'"');return m.toLowerCase()}function p(m){return typeof m!="string"&&(m=String(m)),m}function h(m){var x={next:function(){var k=m.shift();return{done:k===void 0,value:k}}};return n.iterable&&(x[Symbol.iterator]=function(){return x}),x}function f(m){this.map={},m instanceof f?m.forEach(function(x,k){this.append(k,x)},this):Array.isArray(m)?m.forEach(function(x){if(x.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+x.length);this.append(x[0],x[1])},this):m&&Object.getOwnPropertyNames(m).forEach(function(x){this.append(x,m[x])},this)}f.prototype.append=function(m,x){m=c(m),x=p(x);var k=this.map[m];this.map[m]=k?k+", "+x:x},f.prototype.delete=function(m){delete this.map[c(m)]},f.prototype.get=function(m){return m=c(m),this.has(m)?this.map[m]:null},f.prototype.has=function(m){return this.map.hasOwnProperty(c(m))},f.prototype.set=function(m,x){this.map[c(m)]=p(x)},f.prototype.forEach=function(m,x){for(var k in this.map)this.map.hasOwnProperty(k)&&m.call(x,this.map[k],k,this)},f.prototype.keys=function(){var m=[];return this.forEach(function(x,k){m.push(k)}),h(m)},f.prototype.values=function(){var m=[];return this.forEach(function(x){m.push(x)}),h(m)},f.prototype.entries=function(){var m=[];return this.forEach(function(x,k){m.push([k,x])}),h(m)},n.iterable&&(f.prototype[Symbol.iterator]=f.prototype.entries);function g(m){if(!m._noBody){if(m.bodyUsed)return Promise.reject(new TypeError("Already read"));m.bodyUsed=!0}}function b(m){return new Promise(function(x,k){m.onload=function(){x(m.result)},m.onerror=function(){k(m.error)}})}function v(m){var x=new FileReader,k=b(x);return x.readAsArrayBuffer(m),k}function w(m){var x=new FileReader,k=b(x),Y=/charset=([A-Za-z0-9_-]+)/.exec(m.type),ie=Y?Y[1]:"utf-8";return x.readAsText(m,ie),k}function I(m){for(var x=new Uint8Array(m),k=new Array(x.length),Y=0;Y<x.length;Y++)k[Y]=String.fromCharCode(x[Y]);return k.join("")}function A(m){if(m.slice)return m.slice(0);var x=new Uint8Array(m.byteLength);return x.set(new Uint8Array(m)),x.buffer}function N(){return this.bodyUsed=!1,this._initBody=function(m){this.bodyUsed=this.bodyUsed,this._bodyInit=m,m?typeof m=="string"?this._bodyText=m:n.blob&&Blob.prototype.isPrototypeOf(m)?this._bodyBlob=m:n.formData&&FormData.prototype.isPrototypeOf(m)?this._bodyFormData=m:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)?this._bodyText=m.toString():n.arrayBuffer&&n.blob&&a(m)?(this._bodyArrayBuffer=A(m.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(m)||l(m))?this._bodyArrayBuffer=A(m):this._bodyText=m=Object.prototype.toString.call(m):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof m=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var m=g(this);if(m)return m;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var m=g(this);return m||(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(v);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var m=g(this);if(m)return m;if(this._bodyBlob)return w(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(I(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(U)}),this.json=function(){return this.text().then(JSON.parse)},this}var S=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function O(m){var x=m.toUpperCase();return S.indexOf(x)>-1?x:m}function E(m,x){if(!(this instanceof E))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');x=x||{};var k=x.body;if(m instanceof E){if(m.bodyUsed)throw new TypeError("Already read");this.url=m.url,this.credentials=m.credentials,x.headers||(this.headers=new f(m.headers)),this.method=m.method,this.mode=m.mode,this.signal=m.signal,!k&&m._bodyInit!=null&&(k=m._bodyInit,m.bodyUsed=!0)}else this.url=String(m);if(this.credentials=x.credentials||this.credentials||"same-origin",(x.headers||!this.headers)&&(this.headers=new f(x.headers)),this.method=O(x.method||this.method||"GET"),this.mode=x.mode||this.mode||null,this.signal=x.signal||this.signal||function(){if("AbortController"in o){var K=new AbortController;return K.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&k)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(k),(this.method==="GET"||this.method==="HEAD")&&(x.cache==="no-store"||x.cache==="no-cache")){var Y=/([?&])_=[^&]*/;if(Y.test(this.url))this.url=this.url.replace(Y,"$1_="+new Date().getTime());else{var ie=/\?/;this.url+=(ie.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}E.prototype.clone=function(){return new E(this,{body:this._bodyInit})};function U(m){var x=new FormData;return m.trim().split("&").forEach(function(k){if(k){var Y=k.split("="),ie=Y.shift().replace(/\+/g," "),K=Y.join("=").replace(/\+/g," ");x.append(decodeURIComponent(ie),decodeURIComponent(K))}}),x}function J(m){var x=new f,k=m.replace(/\r?\n[\t ]+/g," ");return k.split("\r").map(function(Y){return Y.indexOf(`
|
|
2
|
+
`)===0?Y.substr(1,Y.length):Y}).forEach(function(Y){var ie=Y.split(":"),K=ie.shift().trim();if(K){var Mo=ie.join(":").trim();try{x.append(K,Mo)}catch(sn){console.warn("Response "+sn.message)}}}),x}N.call(E.prototype);function oe(m,x){if(!(this instanceof oe))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(x||(x={}),this.type="default",this.status=x.status===void 0?200:x.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=x.statusText===void 0?"":""+x.statusText,this.headers=new f(x.headers),this.url=x.url||"",this._initBody(m)}N.call(oe.prototype),oe.prototype.clone=function(){return new oe(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},oe.error=function(){var m=new oe(null,{status:200,statusText:""});return m.ok=!1,m.status=0,m.type="error",m};var Q=[301,302,303,307,308];oe.redirect=function(m,x){if(Q.indexOf(x)===-1)throw new RangeError("Invalid status code");return new oe(null,{status:x,headers:{location:m}})},t.DOMException=o.DOMException;try{new t.DOMException}catch{t.DOMException=function(x,k){this.message=x,this.name=k;var Y=Error(x);this.stack=Y.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function D(m,x){return new Promise(function(k,Y){var ie=new E(m,x);if(ie.signal&&ie.signal.aborted)return Y(new t.DOMException("Aborted","AbortError"));var K=new XMLHttpRequest;function Mo(){K.abort()}K.onload=function(){var Ae={statusText:K.statusText,headers:J(K.getAllResponseHeaders()||"")};ie.url.indexOf("file://")===0&&(K.status<200||K.status>599)?Ae.status=200:Ae.status=K.status,Ae.url="responseURL"in K?K.responseURL:Ae.headers.get("X-Request-URL");var Qt="response"in K?K.response:K.responseText;setTimeout(function(){k(new oe(Qt,Ae))},0)},K.onerror=function(){setTimeout(function(){Y(new TypeError("Network request failed"))},0)},K.ontimeout=function(){setTimeout(function(){Y(new TypeError("Network request timed out"))},0)},K.onabort=function(){setTimeout(function(){Y(new t.DOMException("Aborted","AbortError"))},0)};function sn(Ae){try{return Ae===""&&o.location.href?o.location.href:Ae}catch{return Ae}}if(K.open(ie.method,sn(ie.url),!0),ie.credentials==="include"?K.withCredentials=!0:ie.credentials==="omit"&&(K.withCredentials=!1),"responseType"in K&&(n.blob?K.responseType="blob":n.arrayBuffer&&(K.responseType="arraybuffer")),x&&typeof x.headers=="object"&&!(x.headers instanceof f||o.Headers&&x.headers instanceof o.Headers)){var Hs=[];Object.getOwnPropertyNames(x.headers).forEach(function(Ae){Hs.push(c(Ae)),K.setRequestHeader(Ae,p(x.headers[Ae]))}),ie.headers.forEach(function(Ae,Qt){Hs.indexOf(Qt)===-1&&K.setRequestHeader(Qt,Ae)})}else ie.headers.forEach(function(Ae,Qt){K.setRequestHeader(Qt,Ae)});ie.signal&&(ie.signal.addEventListener("abort",Mo),K.onreadystatechange=function(){K.readyState===4&&ie.signal.removeEventListener("abort",Mo)}),K.send(typeof ie._bodyInit>"u"?null:ie._bodyInit)})}return D.polyfill=!0,o.fetch||(o.fetch=D,o.Headers=f,o.Request=E,o.Response=oe),t.Headers=f,t.Request=E,t.Response=oe,t.fetch=D,t}({})})(_i);_i.fetch.ponyfill=!0;delete _i.fetch.polyfill;var Hr=Ri.fetch?Ri:_i;Vt=Hr.fetch;Vt.default=Hr.fetch;Vt.fetch=Hr.fetch;Vt.Headers=Hr.Headers;Vt.Request=Hr.Request;Vt.Response=Hr.Response;Wc.exports=Vt});if(!ShadowRoot.prototype.createElement){let r=window.HTMLElement,e=window.customElements.define,t=window.customElements.get,o=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(S,O){if(S=S.toLowerCase(),this._getDefinition(S)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${S}" has already been used with this registry`);if(this._definitionsByClass.get(O)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let E=O.prototype.attributeChangedCallback,U=new Set(O.observedAttributes||[]);g(O,U,E);let J={elementClass:O,connectedCallback:O.prototype.connectedCallback,disconnectedCallback:O.prototype.disconnectedCallback,adoptedCallback:O.prototype.adoptedCallback,attributeChangedCallback:E,formAssociated:O.formAssociated,formAssociatedCallback:O.prototype.formAssociatedCallback,formDisabledCallback:O.prototype.formDisabledCallback,formResetCallback:O.prototype.formResetCallback,formStateRestoreCallback:O.prototype.formStateRestoreCallback,observedAttributes:U};this._definitionsByTag.set(S,J),this._definitionsByClass.set(O,J);let oe=t.call(o,S);oe||(oe=f(S),e.call(o,S,oe)),this===window.customElements&&(s.set(O,J),J.standInClass=oe);let Q=this._awaitingUpgrade.get(S);if(Q){this._awaitingUpgrade.delete(S);for(let m of Q)a.delete(m),v(m,J,!0)}let D=this._whenDefinedPromises.get(S);return D!==void 0&&(D.resolve(O),this._whenDefinedPromises.delete(S)),O}upgrade(){I.push(this),o.upgrade.apply(o,arguments),I.pop()}get(S){return this._definitionsByTag.get(S)?.elementClass}_getDefinition(S){return this._definitionsByTag.get(S)}whenDefined(S){let O=this._getDefinition(S);if(O!==void 0)return Promise.resolve(O.elementClass);let E=this._whenDefinedPromises.get(S);return E===void 0&&(E={},E.promise=new Promise(U=>E.resolve=U),this._whenDefinedPromises.set(S,E)),E.promise}_upgradeWhenDefined(S,O,E){let U=this._awaitingUpgrade.get(O);U||this._awaitingUpgrade.set(O,U=new Set),E?U.add(S):U.delete(S)}};let c;window.HTMLElement=function(){let O=c;if(O)return c=void 0,O;let E=s.get(this.constructor);if(!E)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return O=Reflect.construct(r,[],E.standInClass),Object.setPrototypeOf(O,this.constructor.prototype),n.set(O,E),O},window.HTMLElement.prototype=r.prototype;let p=S=>S===document||S instanceof ShadowRoot,h=S=>{let O=S.getRootNode();if(!p(O)){let E=I[I.length-1];if(E instanceof CustomElementRegistry)return E;O=E.getRootNode(),p(O)||(O=l.get(O)?.getRootNode()||document)}return O.customElements},f=S=>class{static get formAssociated(){return!0}constructor(){let E=Reflect.construct(r,[],this.constructor);Object.setPrototypeOf(E,HTMLElement.prototype);let U=h(E)||window.customElements,J=U._getDefinition(S);return J?v(E,J):a.set(E,U),E}connectedCallback(){let E=n.get(this);E?E.connectedCallback&&E.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,S,!0)}disconnectedCallback(){let E=n.get(this);E?E.disconnectedCallback&&E.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,S,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let E=n.get(this);E&&E.formAssociated&&E?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let E=n.get(this);E?.formAssociated&&E?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let E=n.get(this);E?.formAssociated&&E?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let E=n.get(this);E?.formAssociated&&E?.formStateRestoreCallback?.apply(this,arguments)}},g=(S,O,E)=>{if(O.size===0||E===void 0)return;let U=S.prototype.setAttribute;U&&(S.prototype.setAttribute=function(Q,D){let m=Q.toLowerCase();if(O.has(m)){let x=this.getAttribute(m);U.call(this,m,D),E.call(this,m,x,D)}else U.call(this,m,D)});let J=S.prototype.removeAttribute;J&&(S.prototype.removeAttribute=function(Q){let D=Q.toLowerCase();if(O.has(D)){let m=this.getAttribute(D);J.call(this,D),E.call(this,D,m,null)}else J.call(this,D)});let oe=S.prototype.toggleAttribute;oe&&(S.prototype.toggleAttribute=function(Q,D){let m=Q.toLowerCase();if(O.has(m)){let x=this.getAttribute(m);oe.call(this,m,D);let k=this.getAttribute(m);E.call(this,m,x,k)}else oe.call(this,m,D)})},b=S=>{let O=Object.getPrototypeOf(S);if(O!==window.HTMLElement)return O===r?Object.setPrototypeOf(S,window.HTMLElement):b(O)},v=(S,O,E=!1)=>{Object.setPrototypeOf(S,O.elementClass.prototype),n.set(S,O),c=S;try{new O.elementClass}catch{b(O.elementClass),new O.elementClass}O.attributeChangedCallback&&O.observedAttributes.forEach(U=>{S.hasAttribute(U)&&O.attributeChangedCallback.call(S,U,null,S.getAttribute(U))}),E&&O.connectedCallback&&S.isConnected&&O.connectedCallback.call(S)},w=Element.prototype.attachShadow;Element.prototype.attachShadow=function(S){let O=w.apply(this,arguments);return S.customElements&&(O.customElements=S.customElements),O};let I=[document],A=(S,O,E=void 0)=>{let U=(E?Object.getPrototypeOf(E):S.prototype)[O];S.prototype[O]=function(){I.push(this);let J=U.apply(E||this,arguments);return J!==void 0&&l.set(J,this),I.pop(),J}};A(ShadowRoot,"createElement",document),A(ShadowRoot,"importNode",document),A(Element,"insertAdjacentHTML");let N=(S,O)=>{let E=Object.getOwnPropertyDescriptor(S.prototype,O);Object.defineProperty(S.prototype,O,{...E,set(U){I.push(this),E.set.call(this,U),I.pop()}})};if(N(Element,"innerHTML"),N(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let S=new WeakMap,O=HTMLElement.prototype.attachInternals,E=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...Q){let D=O.call(this,...Q);return S.set(D,this),D},E.forEach(Q=>{let D=window.ElementInternals.prototype,m=D[Q];D[Q]=function(...x){let k=S.get(this);if(n.get(k).formAssociated===!0)return m?.call(this,...x);throw new DOMException(`Failed to execute ${m} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class U extends Array{constructor(D){super(...D),this._elements=D}get value(){return this._elements.find(D=>D.checked===!0)?.value||""}}class J{constructor(D){let m=new Map;D.forEach((x,k)=>{let Y=x.getAttribute("name"),ie=m.get(Y)||[];this[+k]=x,ie.push(x),m.set(Y,ie)}),this.length=D.length,m.forEach((x,k)=>{x&&(x.length===1?this[k]=x[0]:this[k]=new U(x))})}namedItem(D){return this[D]}}let oe=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let Q=oe.get.call(this,[]),D=[];for(let m of Q){let x=n.get(m);(!x||x.formAssociated===!0)&&D.push(m)}return new J(D)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(t,o,n)=>{if(o!==null)try{e.bind(window.customElements)(t,o,n)}catch(a){console.info(t,o,n,a)}}}var Sn={};ee(Sn,{CSSResult:()=>Tr,LitElement:()=>bt,ReactiveElement:()=>at,_$LE:()=>Dp,_$LH:()=>$p,adoptStyles:()=>Jo,css:()=>P,defaultConverter:()=>Qo,getCompatibleStyle:()=>ao,html:()=>$,isServer:()=>gh,noChange:()=>Pt,notEqual:()=>mn,nothing:()=>B,render:()=>xn,supportsAdoptingStyleSheets:()=>no,svg:()=>Pp,unsafeCSS:()=>gt});var Uo=globalThis,Bo=Uo.ShadowRoot&&(Uo.ShadyCSS===void 0||Uo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Vs=Symbol(),Ws=new WeakMap,Fo=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==Vs)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(Bo&&e===void 0){let o=t!==void 0&&t.length===1;o&&(e=Ws.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&Ws.set(t,e))}return e}toString(){return this.cssText}},js=r=>new Fo(typeof r=="string"?r:r+"",void 0,Vs);var cn=(r,e)=>{if(Bo)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let o=document.createElement("style"),n=Uo.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=t.cssText,r.appendChild(o)}},zo=Bo?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return js(t)})(r):r;var{is:fp,defineProperty:hp,getOwnPropertyDescriptor:mp,getOwnPropertyNames:gp,getOwnPropertySymbols:yp,getPrototypeOf:bp}=Object,Ho=globalThis,Ks=Ho.trustedTypes,vp=Ks?Ks.emptyScript:"",xp=Ho.reactiveElementPolyfillSupport,Qr=(r,e)=>r,eo={toAttribute(r,e){switch(e){case Boolean:r=r?vp:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},Wo=(r,e)=>!fp(r,e),Gs={attribute:!0,type:String,converter:eo,reflect:!1,hasChanged:Wo};Symbol.metadata??=Symbol("metadata"),Ho.litPropertyMetadata??=new WeakMap;var er=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Gs){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(e,o,t);n!==void 0&&hp(this.prototype,e,n)}}static getPropertyDescriptor(e,t,o){let{get:n,set:a}=mp(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(e,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Gs}static _$Ei(){if(this.hasOwnProperty(Qr("elementProperties")))return;let e=bp(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Qr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Qr("properties"))){let t=this.properties,o=[...gp(t),...yp(t)];for(let n of o)this.createProperty(n,t[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[o,n]of t)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[t,o]of this.elementProperties){let n=this._$Eu(t,o);n!==void 0&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let n of o)t.unshift(zo(n))}else e!==void 0&&t.push(zo(e));return t}static _$Eu(e,t){let o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$E_??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$E_?.delete(e)}_$ES(){let e=new Map,t=this.constructor.elementProperties;for(let o of t.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return cn(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$E_?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$EO(e,t){let o=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,o);if(n!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:eo).toAttribute(t,o.type);this._$Em=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(e,t){let o=this.constructor,n=o._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let a=o.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:eo;this._$Em=n,this[n]=s.fromAttribute(t,a.type),this._$Em=null}}requestUpdate(e,t,o,n=!1,a){if(e!==void 0){if(o??=this.constructor.getPropertyOptions(e),!(o.hasChanged??Wo)(n?a:this[e],t))return;this.C(e,t,o)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,t,o){this._$AL.has(e)||this._$AL.set(e,t),o.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[n,a]of o)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],a)}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$E_?.forEach(o=>o.hostUpdate?.()),this.update(t)):this._$ET()}catch(o){throw e=!1,this._$ET(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$E_?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(t=>this._$EO(t,this[t])),this._$ET()}updated(e){}firstUpdated(e){}};er.elementStyles=[],er.shadowRootOptions={mode:"open"},er[Qr("elementProperties")]=new Map,er[Qr("finalized")]=new Map,xp?.({ReactiveElement:er}),(Ho.reactiveElementVersions??=[]).push("2.0.2");var pn=globalThis,Vo=pn.trustedTypes,Zs=Vo?Vo.createPolicy("lit-html",{createHTML:r=>r}):void 0,un="$lit$",mt=`lit$${(Math.random()+"").slice(9)}$`,fn="?"+mt,Sp=`<${fn}>`,or=document,jo=()=>or.createComment(""),ro=r=>r===null||typeof r!="object"&&typeof r!="function",el=Array.isArray,tl=r=>el(r)||typeof r?.[Symbol.iterator]=="function",dn=`[
|
|
3
|
+
\f\r]`,to=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,qs=/-->/g,Ys=/>/g,tr=RegExp(`>|${dn}(?:([^\\s"'>=/]+)(${dn}*=${dn}*(?:[^
|
|
4
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Xs=/'/g,Js=/"/g,rl=/^(?:script|style|textarea|title)$/i,ol=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),il=ol(1),nl=ol(2),je=Symbol.for("lit-noChange"),fe=Symbol.for("lit-nothing"),Qs=new WeakMap,rr=or.createTreeWalker(or,129);function al(r,e){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Zs!==void 0?Zs.createHTML(e):e}var sl=(r,e)=>{let t=r.length-1,o=[],n,a=e===2?"<svg>":"",s=to;for(let l=0;l<t;l++){let c=r[l],p,h,f=-1,g=0;for(;g<c.length&&(s.lastIndex=g,h=s.exec(c),h!==null);)g=s.lastIndex,s===to?h[1]==="!--"?s=qs:h[1]!==void 0?s=Ys:h[2]!==void 0?(rl.test(h[2])&&(n=RegExp("</"+h[2],"g")),s=tr):h[3]!==void 0&&(s=tr):s===tr?h[0]===">"?(s=n??to,f=-1):h[1]===void 0?f=-2:(f=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?tr:h[3]==='"'?Js:Xs):s===Js||s===Xs?s=tr:s===qs||s===Ys?s=to:(s=tr,n=void 0);let b=s===tr&&r[l+1].startsWith("/>")?" ":"";a+=s===to?c+Sp:f>=0?(o.push(p),c.slice(0,f)+un+c.slice(f)+mt+b):c+mt+(f===-2?l:b)}return[al(r,a+(r[t]||"<?>")+(e===2?"</svg>":"")),o]},oo=class r{constructor({strings:e,_$litType$:t},o){let n;this.parts=[];let a=0,s=0,l=e.length-1,c=this.parts,[p,h]=sl(e,t);if(this.el=r.createElement(p,o),rr.currentNode=this.el.content,t===2){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(n=rr.nextNode())!==null&&c.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let f of n.getAttributeNames())if(f.endsWith(un)){let g=h[s++],b=n.getAttribute(f).split(mt),v=/([.?@])?(.*)/.exec(g);c.push({type:1,index:a,name:v[2],strings:b,ctor:v[1]==="."?Go:v[1]==="?"?Zo:v[1]==="@"?qo:nr}),n.removeAttribute(f)}else f.startsWith(mt)&&(c.push({type:6,index:a}),n.removeAttribute(f));if(rl.test(n.tagName)){let f=n.textContent.split(mt),g=f.length-1;if(g>0){n.textContent=Vo?Vo.emptyScript:"";for(let b=0;b<g;b++)n.append(f[b],jo()),rr.nextNode(),c.push({type:2,index:++a});n.append(f[g],jo())}}}else if(n.nodeType===8)if(n.data===fn)c.push({type:2,index:a});else{let f=-1;for(;(f=n.data.indexOf(mt,f+1))!==-1;)c.push({type:7,index:a}),f+=mt.length-1}a++}}static createElement(e,t){let o=or.createElement("template");return o.innerHTML=e,o}};function ir(r,e,t=r,o){if(e===je)return e;let n=o!==void 0?t._$Co?.[o]:t._$Cl,a=ro(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(r),n._$AT(r,t,o)),o!==void 0?(t._$Co??=[])[o]=n:t._$Cl=n),n!==void 0&&(e=ir(r,n._$AS(r,e.values),n,o)),e}var Ko=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:o}=this._$AD,n=(e?.creationScope??or).importNode(t,!0);rr.currentNode=n;let a=rr.nextNode(),s=0,l=0,c=o[0];for(;c!==void 0;){if(s===c.index){let p;c.type===2?p=new io(a,a.nextSibling,this,e):c.type===1?p=new c.ctor(a,c.name,c.strings,this,e):c.type===6&&(p=new Yo(a,this,e)),this._$AV.push(p),c=o[++l]}s!==c?.index&&(a=rr.nextNode(),s++)}return rr.currentNode=or,n}p(e){let t=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}},io=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,o,n){this.type=2,this._$AH=fe,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=ir(this,e,t),ro(e)?e===fe||e==null||e===""?(this._$AH!==fe&&this._$AR(),this._$AH=fe):e!==this._$AH&&e!==je&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):tl(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==fe&&ro(this._$AH)?this._$AA.nextSibling.data=e:this.$(or.createTextNode(e)),this._$AH=e}g(e){let{values:t,_$litType$:o}=e,n=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=oo.createElement(al(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(t);else{let a=new Ko(n,this),s=a.u(this.options);a.p(t),this.$(s),this._$AH=a}}_$AC(e){let t=Qs.get(e.strings);return t===void 0&&Qs.set(e.strings,t=new oo(e)),t}T(e){el(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,o,n=0;for(let a of e)n===t.length?t.push(o=new r(this.k(jo()),this.k(jo()),this,this.options)):o=t[n],o._$AI(a),n++;n<t.length&&(this._$AR(o&&o._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let o=e.nextSibling;e.remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},nr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,o,n,a){this.type=1,this._$AH=fe,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=a,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=fe}_$AI(e,t=this,o,n){let a=this.strings,s=!1;if(a===void 0)e=ir(this,e,t,0),s=!ro(e)||e!==this._$AH&&e!==je,s&&(this._$AH=e);else{let l=e,c,p;for(e=a[0],c=0;c<a.length-1;c++)p=ir(this,l[o+c],t,c),p===je&&(p=this._$AH[c]),s||=!ro(p)||p!==this._$AH[c],p===fe?e=fe:e!==fe&&(e+=(p??"")+a[c+1]),this._$AH[c]=p}s&&!n&&this.O(e)}O(e){e===fe?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Go=class extends nr{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===fe?void 0:e}},Zo=class extends nr{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==fe)}},qo=class extends nr{constructor(e,t,o,n,a){super(e,t,o,n,a),this.type=5}_$AI(e,t=this){if((e=ir(this,e,t,0)??fe)===je)return;let o=this._$AH,n=e===fe&&o!==fe||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==fe&&(o===fe||n);n&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Yo=class{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){ir(this,e)}},ll={j:un,P:mt,A:fn,C:1,M:sl,L:Ko,R:tl,V:ir,D:io,I:nr,H:Zo,N:qo,U:Go,B:Yo},Op=pn.litHtmlPolyfillSupport;Op?.(oo,io),(pn.litHtmlVersions??=[]).push("3.1.0");var Xo=globalThis,no=Xo.ShadowRoot&&(Xo.ShadyCSS===void 0||Xo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,hn=Symbol(),cl=new WeakMap,Tr=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==hn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(no&&e===void 0){let o=t!==void 0&&t.length===1;o&&(e=cl.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&cl.set(t,e))}return e}toString(){return this.cssText}},gt=r=>new Tr(typeof r=="string"?r:r+"",void 0,hn),P=(r,...e)=>{let t=r.length===1?r[0]:e.reduce((o,n,a)=>o+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+r[a+1],r[0]);return new Tr(t,r,hn)},Jo=(r,e)=>{if(no)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let o=document.createElement("style"),n=Xo.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=t.cssText,r.appendChild(o)}},ao=no?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return gt(t)})(r):r;var{is:wp,defineProperty:Ep,getOwnPropertyDescriptor:Cp,getOwnPropertyNames:Ap,getOwnPropertySymbols:Rp,getPrototypeOf:_p}=Object,ei=globalThis,dl=ei.trustedTypes,Tp=dl?dl.emptyScript:"",Np=ei.reactiveElementPolyfillSupport,so=(r,e)=>r,Qo={toAttribute(r,e){switch(e){case Boolean:r=r?Tp:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},mn=(r,e)=>!wp(r,e),pl={attribute:!0,type:String,converter:Qo,reflect:!1,hasChanged:mn};Symbol.metadata??=Symbol("metadata"),ei.litPropertyMetadata??=new WeakMap;var at=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=pl){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(e,o,t);n!==void 0&&Ep(this.prototype,e,n)}}static getPropertyDescriptor(e,t,o){let{get:n,set:a}=Cp(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(e,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??pl}static _$Ei(){if(this.hasOwnProperty(so("elementProperties")))return;let e=_p(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(so("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(so("properties"))){let t=this.properties,o=[...Ap(t),...Rp(t)];for(let n of o)this.createProperty(n,t[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[o,n]of t)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[t,o]of this.elementProperties){let n=this._$Eu(t,o);n!==void 0&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let n of o)t.unshift(ao(n))}else e!==void 0&&t.push(ao(e));return t}static _$Eu(e,t){let o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$E_??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$E_?.delete(e)}_$ES(){let e=new Map,t=this.constructor.elementProperties;for(let o of t.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Jo(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$E_?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$EO(e,t){let o=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,o);if(n!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:Qo).toAttribute(t,o.type);this._$Em=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(e,t){let o=this.constructor,n=o._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let a=o.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:Qo;this._$Em=n,this[n]=s.fromAttribute(t,a.type),this._$Em=null}}requestUpdate(e,t,o,n=!1,a){if(e!==void 0){if(o??=this.constructor.getPropertyOptions(e),!(o.hasChanged??mn)(n?a:this[e],t))return;this.C(e,t,o)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,t,o){this._$AL.has(e)||this._$AL.set(e,t),o.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[n,a]of o)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],a)}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$E_?.forEach(o=>o.hostUpdate?.()),this.update(t)):this._$ET()}catch(o){throw e=!1,this._$ET(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$E_?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(t=>this._$EO(t,this[t])),this._$ET()}updated(e){}firstUpdated(e){}};at.elementStyles=[],at.shadowRootOptions={mode:"open"},at[so("elementProperties")]=new Map,at[so("finalized")]=new Map,Np?.({ReactiveElement:at}),(ei.reactiveElementVersions??=[]).push("2.0.2");var yn=globalThis,ti=yn.trustedTypes,ul=ti?ti.createPolicy("lit-html",{createHTML:r=>r}):void 0,bn="$lit$",yt=`lit$${(Math.random()+"").slice(9)}$`,vn="?"+yt,Ip=`<${vn}>`,lr=document,co=()=>lr.createComment(""),po=r=>r===null||typeof r!="object"&&typeof r!="function",bl=Array.isArray,vl=r=>bl(r)||typeof r?.[Symbol.iterator]=="function",gn=`[
|
|
5
|
+
\f\r]`,lo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,fl=/-->/g,hl=/>/g,ar=RegExp(`>|${gn}(?:([^\\s"'>=/]+)(${gn}*=${gn}*(?:[^
|
|
6
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),ml=/'/g,gl=/"/g,xl=/^(?:script|style|textarea|title)$/i,Sl=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),$=Sl(1),Pp=Sl(2),Pt=Symbol.for("lit-noChange"),B=Symbol.for("lit-nothing"),yl=new WeakMap,sr=lr.createTreeWalker(lr,129);function Ol(r,e){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return ul!==void 0?ul.createHTML(e):e}var wl=(r,e)=>{let t=r.length-1,o=[],n,a=e===2?"<svg>":"",s=lo;for(let l=0;l<t;l++){let c=r[l],p,h,f=-1,g=0;for(;g<c.length&&(s.lastIndex=g,h=s.exec(c),h!==null);)g=s.lastIndex,s===lo?h[1]==="!--"?s=fl:h[1]!==void 0?s=hl:h[2]!==void 0?(xl.test(h[2])&&(n=RegExp("</"+h[2],"g")),s=ar):h[3]!==void 0&&(s=ar):s===ar?h[0]===">"?(s=n??lo,f=-1):h[1]===void 0?f=-2:(f=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?ar:h[3]==='"'?gl:ml):s===gl||s===ml?s=ar:s===fl||s===hl?s=lo:(s=ar,n=void 0);let b=s===ar&&r[l+1].startsWith("/>")?" ":"";a+=s===lo?c+Ip:f>=0?(o.push(p),c.slice(0,f)+bn+c.slice(f)+yt+b):c+yt+(f===-2?l:b)}return[Ol(r,a+(r[t]||"<?>")+(e===2?"</svg>":"")),o]},uo=class r{constructor({strings:e,_$litType$:t},o){let n;this.parts=[];let a=0,s=0,l=e.length-1,c=this.parts,[p,h]=wl(e,t);if(this.el=r.createElement(p,o),sr.currentNode=this.el.content,t===2){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(n=sr.nextNode())!==null&&c.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let f of n.getAttributeNames())if(f.endsWith(bn)){let g=h[s++],b=n.getAttribute(f).split(yt),v=/([.?@])?(.*)/.exec(g);c.push({type:1,index:a,name:v[2],strings:b,ctor:v[1]==="."?oi:v[1]==="?"?ii:v[1]==="@"?ni:dr}),n.removeAttribute(f)}else f.startsWith(yt)&&(c.push({type:6,index:a}),n.removeAttribute(f));if(xl.test(n.tagName)){let f=n.textContent.split(yt),g=f.length-1;if(g>0){n.textContent=ti?ti.emptyScript:"";for(let b=0;b<g;b++)n.append(f[b],co()),sr.nextNode(),c.push({type:2,index:++a});n.append(f[g],co())}}}else if(n.nodeType===8)if(n.data===vn)c.push({type:2,index:a});else{let f=-1;for(;(f=n.data.indexOf(yt,f+1))!==-1;)c.push({type:7,index:a}),f+=yt.length-1}a++}}static createElement(e,t){let o=lr.createElement("template");return o.innerHTML=e,o}};function cr(r,e,t=r,o){if(e===Pt)return e;let n=o!==void 0?t._$Co?.[o]:t._$Cl,a=po(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(r),n._$AT(r,t,o)),o!==void 0?(t._$Co??=[])[o]=n:t._$Cl=n),n!==void 0&&(e=cr(r,n._$AS(r,e.values),n,o)),e}var ri=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:o}=this._$AD,n=(e?.creationScope??lr).importNode(t,!0);sr.currentNode=n;let a=sr.nextNode(),s=0,l=0,c=o[0];for(;c!==void 0;){if(s===c.index){let p;c.type===2?p=new Nr(a,a.nextSibling,this,e):c.type===1?p=new c.ctor(a,c.name,c.strings,this,e):c.type===6&&(p=new ai(a,this,e)),this._$AV.push(p),c=o[++l]}s!==c?.index&&(a=sr.nextNode(),s++)}return sr.currentNode=lr,n}p(e){let t=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}},Nr=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,o,n){this.type=2,this._$AH=B,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=cr(this,e,t),po(e)?e===B||e==null||e===""?(this._$AH!==B&&this._$AR(),this._$AH=B):e!==this._$AH&&e!==Pt&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):vl(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==B&&po(this._$AH)?this._$AA.nextSibling.data=e:this.$(lr.createTextNode(e)),this._$AH=e}g(e){let{values:t,_$litType$:o}=e,n=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=uo.createElement(Ol(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(t);else{let a=new ri(n,this),s=a.u(this.options);a.p(t),this.$(s),this._$AH=a}}_$AC(e){let t=yl.get(e.strings);return t===void 0&&yl.set(e.strings,t=new uo(e)),t}T(e){bl(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,o,n=0;for(let a of e)n===t.length?t.push(o=new r(this.k(co()),this.k(co()),this,this.options)):o=t[n],o._$AI(a),n++;n<t.length&&(this._$AR(o&&o._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let o=e.nextSibling;e.remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},dr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,o,n,a){this.type=1,this._$AH=B,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=a,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=B}_$AI(e,t=this,o,n){let a=this.strings,s=!1;if(a===void 0)e=cr(this,e,t,0),s=!po(e)||e!==this._$AH&&e!==Pt,s&&(this._$AH=e);else{let l=e,c,p;for(e=a[0],c=0;c<a.length-1;c++)p=cr(this,l[o+c],t,c),p===Pt&&(p=this._$AH[c]),s||=!po(p)||p!==this._$AH[c],p===B?e=B:e!==B&&(e+=(p??"")+a[c+1]),this._$AH[c]=p}s&&!n&&this.O(e)}O(e){e===B?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},oi=class extends dr{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===B?void 0:e}},ii=class extends dr{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==B)}},ni=class extends dr{constructor(e,t,o,n,a){super(e,t,o,n,a),this.type=5}_$AI(e,t=this){if((e=cr(this,e,t,0)??B)===Pt)return;let o=this._$AH,n=e===B&&o!==B||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==B&&(o===B||n);n&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},ai=class{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){cr(this,e)}},$p={j:bn,P:yt,A:vn,C:1,M:wl,L:ri,R:vl,V:cr,D:Nr,I:dr,H:ii,N:ni,U:oi,B:ai},kp=yn.litHtmlPolyfillSupport;kp?.(uo,Nr),(yn.litHtmlVersions??=[]).push("3.1.0");var xn=(r,e,t)=>{let o=t?.renderBefore??e,n=o._$litPart$;if(n===void 0){let a=t?.renderBefore??null;o._$litPart$=n=new Nr(e.insertBefore(co(),a),a,void 0,t??{})}return n._$AI(r),n};var bt=class extends at{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=xn(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Pt}};bt._$litElement$=!0,bt.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:bt});var Lp=globalThis.litElementPolyfillSupport;Lp?.({LitElement:bt});var Dp={_$AK:(r,e,t)=>{r._$AK(e,t)},_$AL:r=>r._$AL};(globalThis.litElementVersions??=[]).push("4.0.2");var gh=!1;var wn={};ee(wn,{customElement:()=>Mp,eventOptions:()=>vt,property:()=>y,query:()=>Z,queryAll:()=>Bp,queryAssignedElements:()=>On,queryAssignedNodes:()=>fo,queryAsync:()=>zp,standardProperty:()=>El,state:()=>z});var Mp=r=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(r,e)}):customElements.define(r,e)};var Up={attribute:!0,type:String,converter:eo,reflect:!1,hasChanged:Wo},El=(r=Up,e,t)=>{let{kind:o,metadata:n}=t,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),a.set(t.name,r),o==="accessor"){let{name:s}=t;return{set(l){let c=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,c,r)},init(l){return l!==void 0&&this.C(s,void 0,r),l}}}if(o==="setter"){let{name:s}=t;return function(l){let c=this[s];e.call(this,l),this.requestUpdate(s,c,r)}}throw Error("Unsupported decorator location: "+o)};function y(r){return(e,t)=>typeof t=="object"?El(r,e,t):((o,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,s?{...o,wrapped:!0}:o),s?Object.getOwnPropertyDescriptor(n,a):void 0})(r,e,t)}function z(r){return y({...r,state:!0,attribute:!1})}function vt(r){return(e,t)=>{let o=typeof e=="function"?e:e[t];Object.assign(o,r)}}var Je=(r,e,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(r,e,t),t);function Z(r,e){return(t,o,n)=>{let a=s=>s.renderRoot?.querySelector(r)??null;if(e){let{get:s,set:l}=typeof o=="object"?t:n??(()=>{let c=Symbol();return{get(){return this[c]},set(p){this[c]=p}}})();return Je(t,o,{get(){let c=s.call(this);return c===void 0&&(c=a(this),(c!==null||this.hasUpdated)&&l.call(this,c)),c}})}return Je(t,o,{get(){return a(this)}})}}var Fp;function Bp(r){return(e,t)=>Je(e,t,{get(){return(this.renderRoot??(Fp??=document.createDocumentFragment())).querySelectorAll(r)}})}function zp(r){return(e,t)=>Je(e,t,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}function On(r){return(e,t)=>{let{slot:o,selector:n}=r??{},a="slot"+(o?`[name=${o}]`:":not([name])");return Je(e,t,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(r)??[];return n===void 0?l:l.filter(c=>c.matches(n))}})}}function fo(r){return(e,t)=>{let{slot:o}=r??{},n="slot"+(o?`[name=${o}]`:":not([name])");return Je(e,t,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(r)??[]}})}}var Cn={};ee(Cn,{repeat:()=>En});var $t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},kt=r=>(...e)=>({_$litDirective$:r,values:e}),st=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,o){this._$Ct=e,this._$AM=t,this._$Ci=o}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};var{D:Hp}=ll;var Cl=()=>document.createComment(""),Ir=(r,e,t)=>{let o=r._$AA.parentNode,n=e===void 0?r._$AB:e._$AA;if(t===void 0){let a=o.insertBefore(Cl(),n),s=o.insertBefore(Cl(),n);t=new Hp(a,s,r,r.options)}else{let a=t._$AB.nextSibling,s=t._$AM,l=s!==r;if(l){let c;t._$AQ?.(r),t._$AM=r,t._$AP!==void 0&&(c=r._$AU)!==s._$AU&&t._$AP(c)}if(a!==n||l){let c=t._$AA;for(;c!==a;){let p=c.nextSibling;o.insertBefore(c,n),c=p}}}return t},Lt=(r,e,t=r)=>(r._$AI(e,t),r),Wp={},Al=(r,e=Wp)=>r._$AH=e,Rl=r=>r._$AH,si=r=>{r._$AP?.(!1,!0);let e=r._$AA,t=r._$AB.nextSibling;for(;e!==t;){let o=e.nextSibling;e.remove(),e=o}};var _l=(r,e,t)=>{let o=new Map;for(let n=e;n<=t;n++)o.set(r[n],n);return o},En=kt(class extends st{constructor(r){if(super(r),r.type!==$t.CHILD)throw Error("repeat() can only be used in text expressions")}ht(r,e,t){let o;t===void 0?t=e:e!==void 0&&(o=e);let n=[],a=[],s=0;for(let l of r)n[s]=o?o(l,s):s,a[s]=t(l,s),s++;return{values:a,keys:n}}render(r,e,t){return this.ht(r,e,t).values}update(r,[e,t,o]){let n=Rl(r),{values:a,keys:s}=this.ht(e,t,o);if(!Array.isArray(n))return this.dt=s,a;let l=this.dt??=[],c=[],p,h,f=0,g=n.length-1,b=0,v=a.length-1;for(;f<=g&&b<=v;)if(n[f]===null)f++;else if(n[g]===null)g--;else if(l[f]===s[b])c[b]=Lt(n[f],a[b]),f++,b++;else if(l[g]===s[v])c[v]=Lt(n[g],a[v]),g--,v--;else if(l[f]===s[v])c[v]=Lt(n[f],a[v]),Ir(r,c[v+1],n[f]),f++,v--;else if(l[g]===s[b])c[b]=Lt(n[g],a[b]),Ir(r,n[f],n[g]),g--,b++;else if(p===void 0&&(p=_l(s,b,v),h=_l(l,f,g)),p.has(l[f]))if(p.has(l[g])){let w=h.get(s[b]),I=w!==void 0?n[w]:null;if(I===null){let A=Ir(r,n[f]);Lt(A,a[b]),c[b]=A}else c[b]=Lt(I,a[b]),Ir(r,n[f],I),n[w]=null;b++}else si(n[g]),g--;else si(n[f]),f++;for(;b<=v;){let w=Ir(r,c[v+1]);Lt(w,a[b]),c[b++]=w}for(;f<=g;){let w=n[f++];w!==null&&si(w)}return this.dt=s,Al(r,c),je}});var An={};ee(An,{classMap:()=>$e});var $e=kt(class extends st{constructor(r){if(super(r),r.type!==$t.ATTRIBUTE||r.name!=="class"||r.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(e=>r[e]).join(" ")+" "}update(r,[e]){if(this.it===void 0){this.it=new Set,r.strings!==void 0&&(this.st=new Set(r.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(let o in e)e[o]&&!this.st?.has(o)&&this.it.add(o);return this.render(e)}let t=r.element.classList;for(let o of this.it)o in e||(t.remove(o),this.it.delete(o));for(let o in e){let n=!!e[o];n===this.it.has(o)||this.st?.has(o)||(n?(t.add(o),this.it.add(o)):(t.remove(o),this.it.delete(o)))}return je}});var Rn={};ee(Rn,{styleMap:()=>jp});var Tl="important",Vp=" !"+Tl,jp=kt(class extends st{constructor(r){if(super(r),r.type!==$t.ATTRIBUTE||r.name!=="style"||r.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce((e,t)=>{let o=r[t];return o==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(r,[e]){let{style:t}=r.element;if(this.ut===void 0)return this.ut=new Set(Object.keys(e)),this.render(e);for(let o of this.ut)e[o]==null&&(this.ut.delete(o),o.includes("-")?t.removeProperty(o):t[o]=null);for(let o in e){let n=e[o];if(n!=null){this.ut.add(o);let a=typeof n=="string"&&n.endsWith(Vp);o.includes("-")||a?t.setProperty(o,a?n.slice(0,-11):n,a?Tl:""):t[o]=n}}return je}});var Tn={};ee(Tn,{UnsafeHTMLDirective:()=>Pr,unsafeHTML:()=>_n});var Pr=class extends st{constructor(e){if(super(e),this.et=fe,e.type!==$t.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===fe||e==null)return this.vt=void 0,this.et=e;if(e===je)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.vt;this.et=e;let t=[e];return t.raw=t,this.vt={_$litType$:this.constructor.resultType,strings:t,values:[]}}};Pr.directiveName="unsafeHTML",Pr.resultType=1;var _n=kt(Pr);var Pn={};ee(Pn,{CacheRegistry:()=>lt});var In={};ee(In,{CancelablePromise:()=>$r,CanceledPromiseError:()=>pr,cancelable:()=>Nn});var pr=class extends Error{constructor(e,t,o){super(e),this.canceledPromiseResult=t,this.canceledPromiseError=o}},$r=class extends Promise{constructor(e){super((t,o)=>e(n=>{this.isCanceled?o(new pr("Promise has been canceled",n)):t(n)},n=>{this.isCanceled?o(new pr("Promise has been canceled",void 0,n)):o(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Nn=r=>new $r((e,t)=>r.then(e).catch(t));var lt=class{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(e,t){this.loaders[e]=t,this.finalContent.delete(e)}registerFinal(e,t){this.loaders[e]=t,this.finalContent.add(e)}clearAll(){for(let e in this.content)this.clear(e)}clear(e){this.finalContent.has(e)||this.forceClear(e)}forceClear(e){this.clearClearTimeout(e),this.content[e]instanceof $r&&this.content[e].cancel(),delete this.content[e]}clearClearTimeout(e){this.clearTimeouts[e]!=null&&(window.clearTimeout(this.clearTimeouts[e]),delete this.clearTimeouts[e])}set(e,t){this.forceClear(e),this.register(e,async()=>t),this.content[e]=t}setFinal(e,t){this.forceClear(e),this.registerFinal(e,async()=>t),this.content[e]=t}async get(e,t,o){if(this.content[e]===void 0){if(t=t??this.loaders[e],t==null)throw new Error("Unknown cache key "+e);let n=Nn(t());return this.content[e]=n,n.then(a=>(this.content[e]=a,o!=null&&(this.clearClearTimeout(e),this.clearTimeouts[e]=window.setTimeout(()=>this.clear(e),o)),a))}if(this.content[e]instanceof Error)throw this.content[e];return this.content[e]}isResolvedValue(e){return e!=null&&!(e instanceof Promise)&&!(e instanceof Error)}getNow(e){if(this.isResolvedValue(this.content[e]))return this.content[e]}has(e){return this.content[e]!=null}resolvedKeys(){return Object.keys(this.content).filter(e=>this.isResolvedValue(this.content[e]))}resolvedValues(){return Object.values(this.content).filter(e=>this.isResolvedValue(e))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}};var $n={};ee($n,{ClusteringHelper:()=>ho});var ho=class r{constructor(e,t,o,n){this.allResults=e,this.selectedResult=t,this.clusteringMetadata=o,this.metadataDescriptors=n}static extractResultMetadata(e,t){var o,n;let a=((n=(o=e?.map)!==null&&o!==void 0?o:e?.document)!==null&&n!==void 0?n:e?.topic).metadata;return t==null?r.flattenMetadata(a):r.flattenMetadata(a.find(s=>s.key===t))}static flattenMetadata(e){if(Array.isArray(e))return e.map(o=>r.flattenMetadata(o)).filter(o=>o!=null);let t=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!t))if(t){let o=[],n=[];return e.hierarchicalValues.forEach(a=>{o.push(a.join(" > ")),a.length>2?n.push(`... > ${a[a.length-1]}`):n.push(a.join(" > "))}),{key:e.key,label:e.label,value:o.join(", "),displayValue:n.join(", ")}}else{let o=e.values.join(", ");return{key:e.key,label:e.label,value:o,displayValue:o}}}computeClustersItemsForMetadata(e,t,o="No value"){var n,a;let s=r.extractResultMetadata(this.selectedResult,e),l=(n=s?.label)!==null&&n!==void 0?n:(a=this.getMetadataDescriptor(e))===null||a===void 0?void 0:a.label;return this.allResults.map(p=>r.extractResultMetadata(p,e)).map(p=>p??{key:e,label:l,value:void 0,displayValue:o}).filter(p=>p.value!=s?.value).filter((p,h,f)=>f.findIndex(g=>g.value===p.value)===h).map(p=>({result:this.findBestResultForMetadataValue(e,p.value),metadata:p})).sort((p,h)=>this.compareMetadata(p.metadata.value,h.metadata.value,e,t))}compareMetadata(e,t,o,n){if(e==null)return-1;if(t==null)return 1;let a=this.getMetadataDescriptor(o),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let c=e.localeCompare(t,n,{numeric:!0});return l?c*-1:c}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(t=>e==t.key)}findBestResultForMetadataValue(e,t){let o=this.allResults.filter(c=>{var p;return((p=r.extractResultMetadata(c,e))===null||p===void 0?void 0:p.value)==t}),a=[...r.extractResultMetadata(this.selectedResult).filter(c=>this.clusteringMetadata.has(c.key)).filter(c=>c.key!==e)],s,l=-1;for(let c of o){let p=this.countMatchingMetadata(c,a);if(p>l&&(l=p,s=c,p===a.length))break}return s}countMatchingMetadata(e,t){return r.extractResultMetadata(e).filter(o=>t.some(n=>n.key===o.key&&n.value===o.value)).length}};var kn={};ee(kn,{Debouncer:()=>ae});var ae=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,t){return this.callbacks=[e],this.debounce(t)}queue(e,t){return this.callbacks.push(e),this.debounce(t)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((t,o)=>{this.resolvePromise=t,this.rejectPromise=o})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,t;let o=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(t=this.resolvePromise)!==null&&t!==void 0?t:()=>null;this.clearPromise();for(let s of o)try{await s()}catch(l){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 Un={};ee(Un,{customElement:()=>V,isNumber:()=>Il,jsonProperty:()=>ct,optionalNumberProperty:()=>Yp});var Mn={};ee(Mn,{dateReviver:()=>Kp,deepEqual:()=>Qe,delay:()=>li,eventPathContainsMatchingElement:()=>Zp,flatDeep:()=>Nl,hasChanged:()=>go,last:()=>qp,minmax:()=>Dn,parseDate:()=>ci,waitFor:()=>mo,waitUntil:()=>Ln});var li=r=>new Promise(e=>setTimeout(e,r));async function Ln(r,e=10,t=2e4){await mo(async()=>await r()||void 0,e,t)}async function mo(r,e=10,t=2e4){let o=await r(),n,a;for(n=a=performance.now();o==null&&(!t||a-n<t);)await li(e),o=await r(),a=performance.now();if(o==null)throw new Error("Timeout exceeded");return o}function Nl(r,e){return r.flatMap(t=>[t,...Nl(e(t),e)])}function Kp(...r){return function(e,t){return r.includes(e)?ci(t):t}}function ci(r){return r.match(/^\d{4}-\d{2}-\d{2}$/)&&(r=r.replace(/-/g,"/")),r=r.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,t,o,n)=>t+o+":"+n),new Date(r)}function Gp(r,e){if(r===e)return!0;if(r&&e&&typeof r=="object"&&typeof e=="object"){if(r.constructor!==e.constructor)return!1;var t,o,n;if(Array.isArray(r)){if(t=r.length,t!=e.length)return!1;for(o=t;o--!==0;)if(!Qe(r[o],e[o]))return!1;return!0}if(r instanceof Map&&e instanceof Map){if(r.size!==e.size)return!1;for(o of r.entries())if(!e.has(o[0]))return!1;for(o of r.entries())if(!Qe(o[1],e.get(o[0])))return!1;return!0}if(r instanceof Set&&e instanceof Set){if(r.size!==e.size)return!1;for(o of r.entries())if(!e.has(o[0]))return!1;return!0}if(r.constructor===RegExp)return r.source===e.source&&r.flags===e.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===e.valueOf();if(n=Object.keys(r),t=n.length,t!==Object.keys(e).length)return!1;for(o=t;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[o]))return!1;for(o=t;o--!==0;){var a=n[o];if(!Qe(r[a],e[a]))return!1}return!0}return r!==r&&e!==e}function Qe(r,e){try{return Gp(r,e)}catch{return!1}}function go(r,e){return!Qe(r,e)}function Zp(r,e,t=window.document.body){if(e.length>0){let o=r.composedPath();for(let n of o){if(n===t)return!1;if(n.matches&&e.some(a=>n.matches(a)))return!0}}return!1}function Dn(r,e,t){return Math.min(Math.max(r,e),t)}function qp(r){return r[r.length-1]}var V=r=>e=>{window.customElements.get(r)||window.customElements.define(r,e)};function ct(r,e){let t=()=>JSON.parse(JSON.stringify(r));return y({type:Object,converter:{fromAttribute:o=>{if(o==null)return t();try{return JSON.parse(o)}catch{return t()}},toAttribute:o=>JSON.stringify(o)},hasChanged:go,...e??{}})}function Yp(r){return y({type:Object,converter:{fromAttribute:e=>{if(e!=null)return Il(e)?+e:void 0},toAttribute:e=>e==null?void 0:""+e},...r??{}})}function Il(r){return!isNaN(parseFloat(r))}var fa={};ee(fa,{designSystemVariables:()=>_});var ua={};ee(ua,{DesignSystemFamily:()=>ur,DesignSystemSize:()=>St,FtCssVariableFactory:()=>i,badge:()=>ru,banner:()=>tu,breadcrumb:()=>ou,button:()=>R,chart:()=>gu,checkbox:()=>bu,chip:()=>Qp,chipChoice:()=>Jp,collapsible:()=>hu,comboboxMultiSelect:()=>uu,comboboxSingleSelect:()=>pu,drawer:()=>au,floatingMenu:()=>du,foundation:()=>d,link:()=>eu,modal:()=>nu,notice:()=>yu,notification:()=>Su,pageHeader:()=>iu,popover:()=>fu,radio:()=>xu,resolveFamilyClass:()=>da,resolveSizeClass:()=>pa,semantic:()=>u,setVariable:()=>C,switch_:()=>mu,tabs:()=>su,textArea:()=>cu,textInput:()=>lu,toggle:()=>vu,tooltip:()=>Ou,typographies:()=>yo,typographyBody1Medium:()=>Vn,typographyBody1Regular:()=>Wn,typographyBody1Semibold:()=>jn,typographyBody2Medium:()=>Gn,typographyBody2MediumUnderline:()=>Pl,typographyBody2Regular:()=>Kn,typographyBody2Semibold:()=>Zn,typographyCaption1Bold:()=>oa,typographyCaption1Medium:()=>ta,typographyCaption1Semibold:()=>ra,typographyCaption2Bold:()=>aa,typographyCaption2Medium:()=>ia,typographyCaption2Semibold:()=>na,typographyCaption3Bold:()=>ca,typographyCaption3Medium:()=>sa,typographyCaption3Semibold:()=>la,typographyDisplay:()=>Fn,typographyLabel1Bold:()=>Xn,typographyLabel1Medium:()=>qn,typographyLabel1Semibold:()=>Yn,typographyLabel2Bold:()=>ea,typographyLabel2Medium:()=>Jn,typographyLabel2Semibold:()=>Qn,typographyTitle1:()=>Bn,typographyTitle2:()=>zn,typographyTitle3:()=>Hn,typographyVariants:()=>Xp});var xt=r=>typeof r=="string"?gt(r):r,i=class{static create(e,t,o,n){let a=l=>xt(l??n),s=P`var(${xt(e)}, ${a(n)})`;return s.name=e,s.description=t,s.category=o,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>P`var(${xt(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,t,o,n){let a=l=>o.get(l??n),s=P`var(${xt(e)}, ${a(n)})`;return s.name=e,s.description=t,s.category=o.category,s.fallbackVariable=o,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>P`var(${xt(e)}, ${a(l)})`,s.breadcrumb=()=>[o.name,...o.breadcrumb()],s.lastResortDefaultValue=()=>n??o.lastResortDefaultValue(),s}static external(e,t){let o=a=>e.fallbackVariable?e.fallbackVariable.get(a??e.defaultValue):xt(a??e.lastResortDefaultValue()),n=P`var(${xt(e.name)}, ${o(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=t,n.defaultCssValue=o,n.get=a=>P`var(${xt(e.name)}, ${o(a)})`,n.breadcrumb=()=>e.fallbackVariable?[e.fallbackVariable.name,...e.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};function C(r,e){return xt(`${r.name}: ${e}`)}var d={colorWhite:i.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:i.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:i.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:i.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:i.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:i.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:i.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:i.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:i.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:i.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:i.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:i.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:i.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:i.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:i.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:i.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:i.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:i.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:i.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:i.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:i.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:i.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:i.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:i.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:i.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:i.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:i.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:i.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:i.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:i.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:i.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:i.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:i.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:i.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:i.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:i.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:i.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:i.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:i.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:i.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:i.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:i.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:i.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:i.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:i.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:i.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:i.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:i.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:i.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:i.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:i.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:i.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:i.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:i.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:i.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:i.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:i.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:i.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:i.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:i.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:i.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:i.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:i.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:i.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:i.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:i.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:i.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:i.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:i.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:i.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:i.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:i.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:i.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:i.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:i.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:i.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:i.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:i.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:i.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:i.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:i.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:i.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:i.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:i.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:i.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:i.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:i.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:i.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:i.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:i.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:i.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:i.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:i.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:i.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:i.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:i.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:i.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:i.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:i.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:i.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:i.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:i.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:i.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:i.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:i.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:i.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:i.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:i.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:i.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:i.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:i.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:i.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:i.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:i.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:i.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:i.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:i.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:i.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:i.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:i.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:i.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:i.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:i.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:i.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:i.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:i.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:i.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:i.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:i.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:i.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:i.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:i.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:i.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:i.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:i.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:i.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:i.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:i.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:i.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:i.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:i.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:i.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:i.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:i.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:i.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:i.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:i.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:i.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:i.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:i.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:i.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:i.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:i.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:i.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:i.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:i.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:i.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:i.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:i.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:i.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:i.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:i.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:i.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:i.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:i.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:i.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:i.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:i.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:i.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:i.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:i.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:i.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:i.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:i.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:i.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:i.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:i.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:i.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:i.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:i.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:i.create("--ft-opacity-0","","NUMBER","0"),opacity8:i.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:i.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:i.create("--ft-opacity-24","","NUMBER","0.24"),opacity32:i.create("--ft-opacity-32","","NUMBER","0.32"),opacity40:i.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:i.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.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)")},Fn={fontFamily:i.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:i.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:i.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-display-textCase","","UNKNOWN","none")},Bn={fontFamily:i.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:i.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:i.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},zn={fontFamily:i.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:i.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:i.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},Hn={fontFamily:i.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:i.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:i.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:i.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},Wn={fontFamily:i.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:i.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:i.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},Vn={fontFamily:i.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:i.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},jn={fontFamily:i.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:i.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},Kn={fontFamily:i.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:i.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},Gn={fontFamily:i.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},Pl={fontFamily:i.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:i.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:i.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},Zn={fontFamily:i.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},qn={fontFamily:i.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},Yn={fontFamily:i.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},Xn={fontFamily:i.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:i.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},Jn={fontFamily:i.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},Qn={fontFamily:i.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},ea={fontFamily:i.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:i.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},ta={fontFamily:i.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},ra={fontFamily:i.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},oa={fontFamily:i.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:i.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},ia={fontFamily:i.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:i.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},na={fontFamily:i.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:i.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},aa={fontFamily:i.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:i.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:i.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},sa={fontFamily:i.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:i.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},la={fontFamily:i.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:i.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},ca={fontFamily:i.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:i.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:i.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},yo={display:Fn,"title-1":Bn,"title-2":zn,"title-3":Hn,"body-1-regular":Wn,"body-1-medium":Vn,"body-1-semibold":jn,"body-2-regular":Kn,"body-2-medium":Gn,"body-2-medium-underline":Pl,"body-2-semibold":Zn,"label-1-medium":qn,"label-1-semibold":Yn,"label-1-bold":Xn,"label-2-medium":Jn,"label-2-semibold":Qn,"label-2-bold":ea,"caption-1-medium":ta,"caption-1-semibold":ra,"caption-1-bold":oa,"caption-2-medium":ia,"caption-2-semibold":na,"caption-2-bold":aa,"caption-3-medium":sa,"caption-3-semibold":la,"caption-3-bold":ca},Xp=["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:i.extend("--ft-background-action-primary","Used as backgorund of primary action components.",d.colorBrand0),backgroundErrorSubtle:i.extend("--ft-background-error-subtle","Used as background of subtle error components.",d.colorRed10),backgroundInfoSubtle:i.extend("--ft-background-info-subtle","Used as background of subtle information components.",d.colorCyan10),backgroundWarningSubtle:i.extend("--ft-background-warning-subtle","Used as background of subtle information components.",d.colorOrange10),backgroundSuccessSubtle:i.extend("--ft-background-success-subtle","Used as background of subtle success components.",d.colorGreen10),backgroundGlobalSurface:i.extend("--ft-background-global-surface","Used as app background.",d.colorWhite),backgroundGlobalOnSurface:i.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",d.colorGray10),backgroundGlobalOnSurfaceDark:i.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",d.colorGray30),contentActionPrimary:i.extend("--ft-content-action-primary","Used on label of primary action on light surface.",d.colorBrand0),contentWarningPrimary:i.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",d.colorOrange200),contentWarningIconOnly:i.extend("--ft-content-warning-icon-only","Used on warning status icons alone",d.colorOrange0),contentErrorPrimary:i.extend("--ft-content-error-primary","Used on label of error messages on light surface.",d.colorRed0),contentErrorIconOnly:i.extend("--ft-content-error-icon-only","Used on error status icons alone",d.colorRed70),contentInfoPrimary:i.extend("--ft-content-info-primary","Used on label of information messages on light surface.",d.colorCyan200),contentInfoIconOnly:i.extend("--ft-content-info-icon-only","Used on info status icons alone",d.colorCyan0),contentSuccessPrimary:i.extend("--ft-content-success-primary","Used on label of success messages on light surface.",d.colorGreen200),contentSuccessIconOnly:i.extend("--ft-content-success-icon-only","Used on success status icons alone",d.colorGreen0),contentGlobalPrimary:i.extend("--ft-content-global-primary","Used for main content on the page.",d.colorGray500),contentGlobalSecondary:i.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
7
|
+
Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",d.colorGray0),contentGlobalOnColor:i.extend("--ft-content-global-on-color","Used for content on a dominant color.",d.colorWhite),borderActionPrimary:i.extend("--ft-border-action-primary","Used as border for primary action components.",d.colorBrand0),borderActionFocusRing:i.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",d.colorCyan0),borderWarningPrimary:i.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",d.colorOrange200),borderWarningSubtle:i.extend("--ft-border-warning-subtle","Used as border for warning components.",d.colorOrange30),borderSuccessPrimary:i.extend("--ft-border-success-primary","Used as border for success buttons.",d.colorGreen200),borderSuccessSubtle:i.extend("--ft-border-success-subtle","Used as border for success components.",d.colorGreen30),borderErrorPrimary:i.extend("--ft-border-error-primary","Used as border for text fields in error states.",d.colorRed0),borderErrorSubtle:i.extend("--ft-border-error-subtle","Used as border for error components.",d.colorRed30),borderInfoPrimary:i.extend("--ft-border-info-primary","Used as border for buttons in info color.",d.colorCyan200),borderInfoSubtle:i.extend("--ft-border-info-subtle","Used as border for information components.",d.colorCyan30),borderGlobalPrimary:i.extend("--ft-border-global-primary","Used as border for element like input.",d.colorGray50),borderGlobalSubtle:i.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",d.colorGray30),borderInputPrimary:i.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",d.colorGray80)};var R={largeHeight:i.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:i.extend("--ft-button-large-horizontal-padding","",d.spacing4),largeGap:i.extend("--ft-button-large-gap","",d.spacing2),largeBorderRadius:i.extend("--ft-button-large-border-radius","",d.borderRadiusS),largeIconSize:i.extend("--ft-button-large-icon-size","",d.iconSize3),largeBorderWidth:i.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:i.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:i.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:i.create("--ft-button-large-icon-only-width","","SIZE","40px"),mediumHeight:i.create("--ft-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:i.extend("--ft-button-medium-horizontal-padding","",d.spacing3),mediumGap:i.extend("--ft-button-medium-gap","",d.spacing2),mediumBorderRadius:i.extend("--ft-button-medium-border-radius","",d.borderRadiusS),mediumIconSize:i.extend("--ft-button-medium-icon-size","",d.iconSize2),mediumBorderWidth:i.create("--ft-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:i.create("--ft-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:i.create("--ft-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:i.create("--ft-button-medium-icon-only-width","","SIZE","30px"),smallHeight:i.create("--ft-button-small-height","","SIZE","20px"),smallHorizontalPadding:i.extend("--ft-button-small-horizontal-padding","",d.spacing2),smallGap:i.extend("--ft-button-small-gap","",d.spacing1),smallBorderRadius:i.extend("--ft-button-small-border-radius","",d.borderRadiusS),smallIconSize:i.extend("--ft-button-small-icon-size","",d.iconSize1),smallBorderWidth:i.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:i.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:i.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:i.create("--ft-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:i.create("--ft-button-x-small-height","","SIZE","16px"),xSmallIconSize:i.extend("--ft-button-x-small-icon-size","",d.iconSize1),xSmallFocusOutlineOffset:i.create("--ft-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:i.create("--ft-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:i.create("--ft-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:i.extend("--ft-button-round-border-radius","",d.borderRadiusPill),primaryBackgroundColor:i.extend("--ft-button-primary-background-color","",u.backgroundActionPrimary),primaryColor:i.extend("--ft-button-primary-color","",u.contentGlobalOnColor),primaryIconColor:i.extend("--ft-button-primary-icon-color","",u.contentGlobalOnColor),primaryStateLayerColor:i.extend("--ft-button-primary-state-layer-color","",u.contentGlobalOnColor),primaryHoverStateLayerOpacity:i.extend("--ft-button-primary-hover-state-layer-opacity","",d.opacity16),primaryFocusStateLayerOpacity:i.extend("--ft-button-primary-focus-state-layer-opacity","",d.opacity16),primaryActiveStateLayerOpacity:i.extend("--ft-button-primary-active-state-layer-opacity","",d.opacity24),primaryDisabledComponentOpacity:i.extend("--ft-button-primary-disabled-component-opacity","",d.opacity40),focusFocusRingColor:i.extend("--ft-button-focus-focus-ring-color","",u.borderActionFocusRing),tertiaryBackgroundColor:i.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:i.extend("--ft-button-tertiary-color","",u.contentActionPrimary),tertiaryIconColor:i.extend("--ft-button-tertiary-icon-color","",u.contentActionPrimary),tertiaryStateLayerColor:i.extend("--ft-button-tertiary-state-layer-color","",u.contentActionPrimary),tertiaryHoverStateLayerOpacity:i.extend("--ft-button-tertiary-hover-state-layer-opacity","",d.opacity8),tertiaryFocusStateLayerOpacity:i.extend("--ft-button-tertiary-focus-state-layer-opacity","",d.opacity8),tertiaryActiveStateLayerOpacity:i.extend("--ft-button-tertiary-active-state-layer-opacity","",d.opacity16),tertiaryDisabledComponentOpacity:i.extend("--ft-button-tertiary-disabled-component-opacity","",d.opacity40),secondaryBackgroundColor:i.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:i.extend("--ft-button-secondary-color","",u.contentActionPrimary),secondaryIconColor:i.extend("--ft-button-secondary-icon-color","",u.contentActionPrimary),secondaryStateLayerColor:i.extend("--ft-button-secondary-state-layer-color","",u.contentActionPrimary),secondaryHoverStateLayerOpacity:i.extend("--ft-button-secondary-hover-state-layer-opacity","",d.opacity8),secondaryFocusStateLayerOpacity:i.extend("--ft-button-secondary-focus-state-layer-opacity","",d.opacity8),secondaryActiveStateLayerOpacity:i.extend("--ft-button-secondary-active-state-layer-opacity","",d.opacity16),secondaryDisabledComponentOpacity:i.extend("--ft-button-secondary-disabled-component-opacity","",d.opacity40),secondaryBorderColor:i.extend("--ft-button-secondary-border-color","",u.borderActionPrimary),neutralBackgroundColor:i.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:i.extend("--ft-button-neutral-icon-color","",u.contentGlobalSecondary),neutralColor:i.extend("--ft-button-neutral-color","",u.contentGlobalSecondary),neutralStateLayerColor:i.extend("--ft-button-neutral-state-layer-color","",u.contentGlobalSecondary),neutralHoverStateLayerOpacity:i.extend("--ft-button-neutral-hover-state-layer-opacity","",d.opacity8),neutralFocusStateLayerOpacity:i.extend("--ft-button-neutral-focus-state-layer-opacity","",d.opacity8),neutralActiveStateLayerOpacity:i.extend("--ft-button-neutral-active-state-layer-opacity","",d.opacity16),neutralDisabledComponentOpacity:i.extend("--ft-button-neutral-disabled-component-opacity","",d.opacity40)};var Jp={neutralOffHoverStateLayerOpacity:i.extend("--ft-chip-choice-neutral-off-hover-state-layer-opacity","",d.opacity8),neutralOffFocusStateLayerOpacity:i.extend("--ft-chip-choice-neutral-off-focus-state-layer-opacity","",d.opacity8),neutralOffFocusFocusRingColor:i.extend("--ft-chip-choice-neutral-off-focus-focus-ring-color","",u.borderActionFocusRing),neutralOffActiveStateLayerOpacity:i.extend("--ft-chip-choice-neutral-off-active-state-layer-opacity","",d.opacity16),neutralOffBackgroundColor:i.extend("--ft-chip-choice-neutral-off-background-color","",u.backgroundGlobalOnSurface),neutralOffBorderColor:i.extend("--ft-chip-choice-neutral-off-border-color","",u.borderGlobalPrimary),neutralOffColor:i.extend("--ft-chip-choice-neutral-off-color","",u.contentGlobalSecondary),neutralOffStateLayerColor:i.extend("--ft-chip-choice-neutral-off-state-layer-color","",u.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:i.extend("--ft-chip-choice-neutral-on-default-state-layer-opacity","",d.opacity16),neutralOnHoverStateLayerOpacity:i.extend("--ft-chip-choice-neutral-on-hover-state-layer-opacity","",d.opacity24),neutralOnFocusStateLayerOpacity:i.extend("--ft-chip-choice-neutral-on-focus-state-layer-opacity","",d.opacity24),neutralOnFocusFocusRingColor:i.extend("--ft-chip-choice-neutral-on-focus-focus-ring-color","",u.borderActionFocusRing),neutralOnActiveStateLayerOpacity:i.extend("--ft-chip-choice-neutral-on-active-state-layer-opacity","",d.opacity32),neutralOnBackgroundColor:i.extend("--ft-chip-choice-neutral-on-background-color","",u.backgroundGlobalOnSurface),neutralOnBorderColor:i.extend("--ft-chip-choice-neutral-on-border-color","",u.borderGlobalPrimary),neutralOnColor:i.extend("--ft-chip-choice-neutral-on-color","",u.contentGlobalPrimary),neutralOnIconColor:i.extend("--ft-chip-choice-neutral-on-icon-color","",u.contentGlobalPrimary),neutralOnStateLayerColor:i.extend("--ft-chip-choice-neutral-on-state-layer-color","",u.contentGlobalPrimary),largeMinHeight:i.create("--ft-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:i.extend("--ft-chip-choice-large-horizontal-padding","",d.spacing3),largeGap:i.extend("--ft-chip-choice-large-gap","",d.spacing1),largeBorderRadius:i.create("--ft-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:i.create("--ft-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:i.extend("--ft-chip-choice-large-icon-size","",d.iconSize3),mediumMinHeight:i.create("--ft-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:i.extend("--ft-chip-choice-medium-horizontal-padding","",d.spacing2),mediumGap:i.extend("--ft-chip-choice-medium-gap","",d.spacing1),mediumBorderRadius:i.create("--ft-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:i.create("--ft-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:i.extend("--ft-chip-choice-medium-icon-size","",d.iconSize2)};var Qp={largeMinHeight:i.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:i.extend("--ft-chip-large-horizontal-padding","",d.spacing3),largeButtonRightPadding:i.extend("--ft-chip-large-button-right-padding","",d.spacing1),largeGap:i.extend("--ft-chip-large-gap","",d.spacing1),largeFocusOutlineOffset:i.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:i.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:i.create("--ft-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:i.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:i.extend("--ft-chip-large-icon-size","",d.iconSize3),mediumMinHeight:i.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:i.extend("--ft-chip-medium-horizontal-padding","",d.spacing2),mediumButtonRightPadding:i.extend("--ft-chip-medium-button-right-padding","",d.spacing05),mediumGap:i.extend("--ft-chip-medium-gap","",d.spacing1),mediumFocusOutlineOffset:i.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:i.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:i.create("--ft-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:i.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:i.extend("--ft-chip-medium-icon-size","",d.iconSize2),smallMinHeight:i.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:i.extend("--ft-chip-small-horizontal-padding","",d.spacing1),smallButtonRightPadding:i.extend("--ft-chip-small-button-right-padding","",d.spacing05),smallGap:i.extend("--ft-chip-small-gap","",d.spacing1),smallFocusOutlineOffset:i.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:i.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:i.create("--ft-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:i.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:i.extend("--ft-chip-small-icon-size","",d.iconSize1),neutralBackgroundColor:i.extend("--ft-chip-neutral-background-color","",u.backgroundGlobalOnSurface),neutralColor:i.extend("--ft-chip-neutral-color","",u.contentGlobalSecondary),neutralIconColor:i.extend("--ft-chip-neutral-icon-color","",u.contentGlobalSecondary),neutralBorderColor:i.extend("--ft-chip-neutral-border-color","",u.borderGlobalSubtle),infoBackgroundColor:i.extend("--ft-chip-info-background-color","",u.backgroundInfoSubtle),infoColor:i.extend("--ft-chip-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ft-chip-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:i.extend("--ft-chip-info-border-color","",u.borderInfoSubtle),successBackgroundColor:i.extend("--ft-chip-success-background-color","",u.backgroundSuccessSubtle),successColor:i.extend("--ft-chip-success-color","",u.contentSuccessPrimary),successIconColor:i.extend("--ft-chip-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:i.extend("--ft-chip-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:i.extend("--ft-chip-warning-background-color","",u.backgroundWarningSubtle),warningColor:i.extend("--ft-chip-warning-color","",u.contentWarningPrimary),warningIconColor:i.extend("--ft-chip-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:i.extend("--ft-chip-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:i.extend("--ft-chip-error-background-color","",u.backgroundErrorSubtle),errorColor:i.extend("--ft-chip-error-color","",u.contentErrorPrimary),errorIconColor:i.extend("--ft-chip-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:i.extend("--ft-chip-error-border-color","",u.borderErrorSubtle)};var eu={brandHoverOpacity:i.extend("--ft-link-brand-hover-opacity","",d.opacity80),brandHoverColor:i.extend("--ft-link-brand-hover-color","",u.contentActionPrimary),brandFocusFocusRingColor:i.extend("--ft-link-brand-focus-focus-ring-color","",u.borderActionFocusRing),brandFocusColor:i.extend("--ft-link-brand-focus-color","",u.contentActionPrimary),brandDefaultColor:i.extend("--ft-link-brand-default-color","",u.contentActionPrimary),brandActiveColor:i.extend("--ft-link-brand-active-color","",u.contentActionPrimary),infoHoverOpacity:i.extend("--ft-link-info-hover-opacity","",d.opacity80),infoHoverColor:i.extend("--ft-link-info-hover-color","",u.contentInfoPrimary),infoFocusFocusRingColor:i.extend("--ft-link-info-focus-focus-ring-color","",u.borderActionFocusRing),infoFocusColor:i.extend("--ft-link-info-focus-color","",u.contentInfoPrimary),infoDefaultColor:i.extend("--ft-link-info-default-color","",u.contentInfoPrimary),infoActiveColor:i.extend("--ft-link-info-active-color","",u.contentInfoPrimary),neutralFocusFocusRingColor:i.extend("--ft-link-neutral-focus-focus-ring-color","",u.borderActionFocusRing),neutralFocusColor:i.extend("--ft-link-neutral-focus-color","",u.contentActionPrimary),neutralDefaultColor:i.extend("--ft-link-neutral-default-color","",u.contentGlobalPrimary),neutralHoverColor:i.extend("--ft-link-neutral-hover-color","",u.contentActionPrimary),neutralActiveColor:i.extend("--ft-link-neutral-active-color","",u.contentActionPrimary)};var tu={iconSize:i.extend("--ft-banner-icon-size","",d.iconSize5),borderWidth:i.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:i.extend("--ft-banner-left-padding","",d.spacing6),rightPadding:i.extend("--ft-banner-right-padding","",d.spacing6),verticalPadding:i.extend("--ft-banner-vertical-padding","",d.spacing6),horizontalSideGap:i.extend("--ft-banner-horizontal-side-gap","",d.spacing6),horizontalMobileGap:i.extend("--ft-banner-horizontal-mobile-gap","",d.spacing4),verticalMobileGap:i.extend("--ft-banner-vertical-mobile-gap","",d.spacing6),horizontalMiddleGap:i.extend("--ft-banner-horizontal-middle-gap","",d.spacing20),infoBackgroundColor:i.extend("--ft-banner-info-background-color","",u.backgroundInfoSubtle),infoColor:i.extend("--ft-banner-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ft-banner-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:i.extend("--ft-banner-info-border-color","",u.borderInfoSubtle)};var ru={horizontalPadding:i.extend("--ft-badge-horizontal-padding","",d.spacing1),verticalPadding:i.extend("--ft-badge-vertical-padding","",d.spacing1),borderRadius:i.extend("--ft-badge-border-radius","",d.borderRadiusPill),color:i.extend("--ft-badge-color","",u.contentGlobalOnColor),backgroundColor:i.extend("--ft-badge-background-color","",u.contentActionPrimary)};var ou={horizontalGap:i.extend("--ft-breadcrumb-horizontal-gap","",d.spacing1),verticalGap:i.extend("--ft-breadcrumb-vertical-gap","",d.spacing2),currentColor:i.extend("--ft-breadcrumb-current-color","",u.contentGlobalPrimary),previousNonClickableColor:i.extend("--ft-breadcrumb-previous-non-clickable-color","",u.contentGlobalSecondary),iconColor:i.extend("--ft-breadcrumb-icon-color","",u.contentGlobalSubtle)};var iu={horizontalPadding:i.extend("--ft-page-header-horizontal-padding","",d.spacing6),horizontalGap:i.extend("--ft-page-header-horizontal-gap","",d.spacing4),verticalGap:i.extend("--ft-page-header-vertical-gap","",d.spacing2),classicVerticalPadding:i.extend("--ft-page-header-classic-vertical-padding","",d.spacing6),multilineVerticalPadding:i.extend("--ft-page-header-multiline-vertical-padding","",d.spacing4),inlineVerticalPadding:i.extend("--ft-page-header-inline-vertical-padding","",d.spacing2),backgroundColor:i.extend("--ft-page-header-background-color","",d.colorWhite),bottomBorderColor:i.extend("--ft-page-header-bottom-border-color","",u.borderGlobalSubtle),titleColor:i.extend("--ft-page-header-title-color","",u.contentGlobalPrimary),subtitleColor:i.extend("--ft-page-header-subtitle-color","",u.contentGlobalSecondary)};var nu={smallContainerWidth:i.create("--ft-modal-small-container-width","","SIZE","600px"),largeContainerWidth:i.create("--ft-modal-large-container-width","","SIZE","900px"),overlayBackgroundColor:i.extend("--ft-modal-overlay-background-color","",d.colorGray700),overlayOpacity:i.extend("--ft-modal-overlay-opacity","",d.opacity40),shadow:i.extend("--ft-modal-shadow","",d.shadowElevation03),bodyBackgroundColor:i.extend("--ft-modal-body-background-color","",d.colorWhite),bodyColor:i.extend("--ft-modal-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:i.extend("--ft-modal-body-horizontal-padding","",d.spacing6),bodyVerticalPadding:i.extend("--ft-modal-body-vertical-padding","",d.spacing6),bodyVerticalGap:i.extend("--ft-modal-body-vertical-gap","",d.spacing6),containerMargin:i.extend("--ft-modal-container-margin","",d.spacing3),headerBackgroundColor:i.extend("--ft-modal-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ft-modal-header-border-color","",u.borderGlobalSubtle),headerColor:i.extend("--ft-modal-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:i.extend("--ft-modal-header-trailing-icon-color","",u.contentGlobalSecondary),headerVerticalPadding:i.extend("--ft-modal-header-vertical-padding","",d.spacing1),headerRightPadding:i.extend("--ft-modal-header-right-padding","",d.spacing1),headerLeftPadding:i.extend("--ft-modal-header-left-padding","",d.spacing6),headerGap:i.extend("--ft-modal-header-gap","",d.spacing2),headerBorderBottom:i.create("--ft-modal-header-border-bottom","","SIZE","1px"),borderRadius:i.extend("--ft-modal-border-radius","",d.borderRadiusM)};var au={overlayOpacity:i.extend("--ft-drawer-overlay-opacity","",d.opacity40),shadow:i.extend("--ft-drawer-shadow","",d.shadowElevation03),bodyColor:i.extend("--ft-drawer-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:i.extend("--ft-drawer-body-horizontal-padding","",d.spacing6),bodyVerticalPadding:i.extend("--ft-drawer-body-vertical-padding","",d.spacing6),bodyGap:i.extend("--ft-drawer-body-gap","",d.spacing6),bodyBackgroundColor:i.extend("--ft-drawer-body-background-color","",d.colorWhite),headerBackgroundColor:i.extend("--ft-drawer-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ft-drawer-header-border-color","",u.borderGlobalSubtle),headerColor:i.extend("--ft-drawer-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:i.extend("--ft-drawer-header-trailing-icon-color","",u.contentGlobalSecondary),headerHeight:i.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:i.extend("--ft-drawer-header-horizontal-padding","",d.spacing2),headerBorderWidth:i.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:i.extend("--ft-drawer-header-gap","",d.spacing3),buttonsBarBackgroundColor:i.extend("--ft-drawer-buttons-bar-background-color","",u.backgroundGlobalOnSurface),buttonsBarBorderColor:i.extend("--ft-drawer-buttons-bar-border-color","",u.borderGlobalSubtle),buttonsBarColor:i.extend("--ft-drawer-buttons-bar-color","",u.contentGlobalPrimary),buttonsBarHorizontalPadding:i.extend("--ft-drawer-buttons-bar-horizontal-padding","",d.spacing6),buttonsBarVerticalPadding:i.extend("--ft-drawer-buttons-bar-vertical-padding","",d.spacing4),buttonsBarGap:i.extend("--ft-drawer-buttons-bar-gap","",d.spacing3),buttonsBarBorderWidth:i.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:i.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:i.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:i.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:i.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:i.extend("--ft-drawer-overlay-background-color","",d.colorGray700)};var su={offBorderBottomWidth:i.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:i.extend("--ft-tabs-off-hover-state-layer-opacity","",d.opacity8),offDefaultStateLayerOpacity:i.extend("--ft-tabs-off-default-state-layer-opacity","",d.opacity0),offFocusStateLayerOpacity:i.extend("--ft-tabs-off-focus-state-layer-opacity","",d.opacity8),offDisabledComponentOpacity:i.extend("--ft-tabs-off-disabled-component-opacity","",d.opacity40),offColor:i.extend("--ft-tabs-off-color","",u.contentGlobalSubtle),offStateLayerColor:i.extend("--ft-tabs-off-state-layer-color","",u.contentGlobalSubtle),offBorderBottomColor:i.extend("--ft-tabs-off-border-bottom-color","",u.borderGlobalSubtle),activeTabIndicatorHeight:i.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:i.extend("--ft-tabs-top-left-border-radius","",d.borderRadiusS),topRightBorderRadius:i.extend("--ft-tabs-top-right-border-radius","",d.borderRadiusS),withLabelHorizontalPadding:i.extend("--ft-tabs-with-label-horizontal-padding","",d.spacing4),withLabelVerticalPadding:i.extend("--ft-tabs-with-label-vertical-padding","",d.spacing3),horizontalGap:i.extend("--ft-tabs-horizontal-gap","",d.spacing1),verticalGap:i.extend("--ft-tabs-vertical-gap","",d.spacing1),onHoverStateLayerOpacity:i.extend("--ft-tabs-on-hover-state-layer-opacity","",d.opacity16),onDefaultStateLayerOpacity:i.extend("--ft-tabs-on-default-state-layer-opacity","",d.opacity8),onFocusStateLayerOpacity:i.extend("--ft-tabs-on-focus-state-layer-opacity","",d.opacity16),onActiveStateLayerOpacity:i.extend("--ft-tabs-on-active-state-layer-opacity","",d.opacity24),onColor:i.extend("--ft-tabs-on-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ft-tabs-on-state-layer-color","",u.contentActionPrimary),onActiveTabIndicatorColor:i.extend("--ft-tabs-on-active-tab-indicator-color","",u.contentActionPrimary),iconOnlyHorizontalPadding:i.extend("--ft-tabs-icon-only-horizontal-padding","",d.spacing4),iconOnlyVerticalPadding:i.extend("--ft-tabs-icon-only-vertical-padding","",d.spacing4),alertTopPadding:i.extend("--ft-tabs-alert-top-padding","",d.spacing1),alertRightPadding:i.extend("--ft-tabs-alert-right-padding","",d.spacing05),focusOutlineWidth:i.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-tabs-focus-focus-ring-color","",u.borderActionFocusRing)};var lu={fieldHorizontalPadding:i.extend("--ft-text-input-field-horizontal-padding","",d.spacing4),fieldHorizontalGap:i.extend("--ft-text-input-field-horizontal-gap","",d.spacing3),fieldVerticalGap:i.extend("--ft-text-input-field-vertical-gap","",d.spacing05),fieldIconSize:i.extend("--ft-text-input-field-icon-size","",d.iconSize3),fieldHeight:i.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:i.extend("--ft-text-input-helper-horizontal-padding","",d.spacing4),helperHorizontalGap:i.extend("--ft-text-input-helper-horizontal-gap","",d.spacing1),helperIconSize:i.extend("--ft-text-input-helper-icon-size","",d.iconSize2),borderRadius:i.extend("--ft-text-input-border-radius","",d.borderRadiusM),backgroundColor:i.extend("--ft-text-input-background-color","",d.colorWhite),contentValueColor:i.extend("--ft-text-input-content-value-color","",u.contentGlobalPrimary),trailingIconColor:i.extend("--ft-text-input-trailing-icon-color","",u.contentGlobalSubtle),labelColor:i.extend("--ft-text-input-label-color","",u.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-text-input-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-text-input-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:i.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ft-text-input-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-text-input-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:i.extend("--ft-text-input-error-helper-icon-color","",u.contentErrorIconOnly),warningBorderWidth:i.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:i.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-text-input-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:i.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ft-text-input-disabled-component-opacity","",d.opacity40)};var cu={backgroundColor:i.extend("--ft-text-area-background-color","",d.colorWhite),contentValueColor:i.extend("--ft-text-area-content-value-color","",u.contentGlobalPrimary),labelColor:i.extend("--ft-text-area-label-color","",u.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-text-area-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-text-area-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:i.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ft-text-area-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-text-area-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:i.extend("--ft-text-area-error-helper-icon-color","",u.contentErrorIconOnly),focusFocusRingColor:i.extend("--ft-text-area-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:i.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:i.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ft-text-area-disabled-component-opacity","",d.opacity40),fieldHorizontalLeftPadding:i.extend("--ft-text-area-field-horizontal-left-padding","",d.spacing4),fieldHorizontalGap:i.extend("--ft-text-area-field-horizontal-gap","",d.spacing3),fieldVerticalGap:i.extend("--ft-text-area-field-vertical-gap","",d.spacing05),fieldMinHeight:i.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:i.extend("--ft-text-area-helper-horizontal-padding","",d.spacing4),helperHorizontalGap:i.extend("--ft-text-area-helper-horizontal-gap","",d.spacing1),helperIconSize:i.extend("--ft-text-area-helper-icon-size","",d.iconSize2),borderRadius:i.extend("--ft-text-area-border-radius","",d.borderRadiusM)};var du={height:i.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:i.extend("--ft-floating-menu-horizontal-padding","",d.spacing4),offIconColor:i.extend("--ft-floating-menu-off-icon-color","",u.contentGlobalPrimary),offColor:i.extend("--ft-floating-menu-off-color","",u.contentGlobalPrimary),onColor:i.extend("--ft-floating-menu-on-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ft-floating-menu-on-state-layer-color","",u.contentActionPrimary),gap:i.extend("--ft-floating-menu-gap","",d.spacing3),focusFocusRingColor:i.extend("--ft-floating-menu-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:i.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:i.extend("--ft-floating-menu-focus-state-layer-opacity","",d.opacity8),hoverStateLayerOpacity:i.extend("--ft-floating-menu-hover-state-layer-opacity","",d.opacity8),activeStateLayerOpacity:i.extend("--ft-floating-menu-active-state-layer-opacity","",d.opacity16),disabledComponentOpacity:i.extend("--ft-floating-menu-disabled-component-opacity","",d.opacity40),iconSize:i.extend("--ft-floating-menu-icon-size","",d.iconSize3),backgroundColor:i.extend("--ft-floating-menu-background-color","",u.backgroundGlobalOnSurface),shadow:i.extend("--ft-floating-menu-shadow","",d.shadowElevation02)};var pu={fieldHorizontalPadding:i.extend("--ft-combobox-single-select-field-horizontal-padding","",d.spacing4),fieldHorizontalGap:i.extend("--ft-combobox-single-select-field-horizontal-gap","",d.spacing3),fieldVerticalGap:i.extend("--ft-combobox-single-select-field-vertical-gap","",d.spacing05),fieldIconSize:i.extend("--ft-combobox-single-select-field-icon-size","",d.iconSize3),fieldHeight:i.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:i.extend("--ft-combobox-single-select-helper-horizontal-padding","",d.spacing4),helperHorizontalGap:i.extend("--ft-combobox-single-select-helper-horizontal-gap","",d.spacing1),helperVerticalGap:i.extend("--ft-combobox-single-select-helper-vertical-gap","",d.spacing1),helperIconSize:i.extend("--ft-combobox-single-select-helper-icon-size","",d.iconSize2),menuVerticalGap:i.extend("--ft-combobox-single-select-menu-vertical-gap","",d.spacing2),borderRadius:i.extend("--ft-combobox-single-select-border-radius","",d.borderRadiusM),backgroundColor:i.extend("--ft-combobox-single-select-background-color","",d.colorWhite),labelColor:i.extend("--ft-combobox-single-select-label-color","",u.contentGlobalSubtle),contentValueColor:i.extend("--ft-combobox-single-select-content-value-color","",u.contentGlobalPrimary),trailingIconColor:i.extend("--ft-combobox-single-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-combobox-single-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-combobox-single-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:i.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ft-combobox-single-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-combobox-single-select-error-helper-text-color","",u.contentErrorPrimary),warningBorderWidth:i.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:i.extend("--ft-combobox-single-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:i.extend("--ft-combobox-single-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:i.extend("--ft-combobox-single-select-warning-helper-icon-color","",u.contentWarningIconOnly),focusOutlineWidth:i.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-combobox-single-select-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:i.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ft-combobox-single-select-disabled-component-opacity","",d.opacity40)};var uu={backgroundColor:i.extend("--ft-combobox-multi-select-background-color","",d.colorWhite),labelColor:i.extend("--ft-combobox-multi-select-label-color","",u.contentGlobalSubtle),trailingIconColor:i.extend("--ft-combobox-multi-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-combobox-multi-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-combobox-multi-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:i.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:i.extend("--ft-combobox-multi-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-combobox-multi-select-error-helper-text-color","",u.contentErrorPrimary),errorHelperIcon:i.extend("--ft-combobox-multi-select-error-helper-icon","",u.contentErrorIconOnly),errorBorderWidth:i.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:i.extend("--ft-combobox-multi-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:i.extend("--ft-combobox-multi-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:i.extend("--ft-combobox-multi-select-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:i.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-combobox-multi-select-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:i.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:i.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ft-combobox-multi-select-disabled-component-opacity","",d.opacity40),helperHorizontalPadding:i.extend("--ft-combobox-multi-select-helper-horizontal-padding","",d.spacing4),helperHorizontalGap:i.extend("--ft-combobox-multi-select-helper-horizontal-gap","",d.spacing1),helperVerticalGap:i.extend("--ft-combobox-multi-select-helper-vertical-gap","",d.spacing1),helperIconSize:i.extend("--ft-combobox-multi-select-helper-icon-size","",d.iconSize2),fieldHorizontalPadding:i.extend("--ft-combobox-multi-select-field-horizontal-padding","",d.spacing4),fieldHorizontalGap:i.extend("--ft-combobox-multi-select-field-horizontal-gap","",d.spacing3),fieldVerticalGap:i.extend("--ft-combobox-multi-select-field-vertical-gap","",d.spacing05),fieldIconSize:i.extend("--ft-combobox-multi-select-field-icon-size","",d.iconSize3),fieldMaxHeight:i.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:i.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",d.spacing1),contentValuesVerticalGap:i.extend("--ft-combobox-multi-select-content-values-vertical-gap","",d.spacing1),borderRadius:i.extend("--ft-combobox-multi-select-border-radius","",d.borderRadiusM)};var fu={backgroundColor:i.extend("--ft-popover-background-color","",u.backgroundGlobalOnSurface),horizontalPadding:i.extend("--ft-popover-horizontal-padding","",d.spacing6),verticalPadding:i.extend("--ft-popover-vertical-padding","",d.spacing6),titleColor:i.extend("--ft-popover-title-color","",u.contentGlobalPrimary),bodyColor:i.extend("--ft-popover-body-color","",u.contentGlobalSecondary),linkColor:i.extend("--ft-popover-link-color","",u.contentActionPrimary),gap:i.extend("--ft-popover-gap","",d.spacing3),borderRadius:i.extend("--ft-popover-border-radius","",d.borderRadiusM),shadow:i.extend("--ft-popover-shadow","",d.shadowElevation02)};var hu={hoverStateLayerOpacity:i.extend("--ft-collapsible-hover-state-layer-opacity","",d.opacity8),focusStateLayerOpacity:i.extend("--ft-collapsible-focus-state-layer-opacity","",d.opacity8),focusOutlineWidth:i.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:i.extend("--ft-collapsible-focus-focus-ring-color","",u.borderActionFocusRing),activeStateLayerOpacity:i.extend("--ft-collapsible-active-state-layer-opacity","",d.opacity16),disabledComponentOpacity:i.extend("--ft-collapsible-disabled-component-opacity","",d.opacity40),horizontalPadding:i.extend("--ft-collapsible-horizontal-padding","",d.spacing4),verticalPadding:i.extend("--ft-collapsible-vertical-padding","",d.spacing3),color:i.extend("--ft-collapsible-color","",u.contentGlobalPrimary),stateLayerColor:i.extend("--ft-collapsible-state-layer-color","",u.contentGlobalPrimary),backgroundColor:i.extend("--ft-collapsible-background-color","",u.backgroundGlobalOnSurface),borderColor:i.extend("--ft-collapsible-border-color","",u.borderGlobalSubtle),iconSize:i.extend("--ft-collapsible-icon-size","",d.iconSize3)};var mu={groupHorizontalPadding:i.extend("--ft-switch-group-horizontal-padding","",d.spacing1),groupVerticalPadding:i.extend("--ft-switch-group-vertical-padding","",d.spacing1),groupGap:i.extend("--ft-switch-group-gap","",d.spacing1),groupBackgroundColor:i.extend("--ft-switch-group-background-color","",u.backgroundGlobalSurface),groupBorderColor:i.extend("--ft-switch-group-border-color","",u.borderGlobalSubtle),groupBorderRadius:i.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:i.extend("--ft-switch-label-horizontal-padding","",d.spacing2),labelVerticalPadding:i.extend("--ft-switch-label-vertical-padding","",d.spacing1),offHoverStateLayerOpacity:i.extend("--ft-switch-off-hover-state-layer-opacity","",d.opacity8),offFocusStateLayerOpacity:i.extend("--ft-switch-off-focus-state-layer-opacity","",d.opacity8),offActiveStateLayerOpacity:i.extend("--ft-switch-off-active-state-layer-opacity","",d.opacity16),offDisabledComponentOpacity:i.extend("--ft-switch-off-disabled-component-opacity","",d.opacity40),offColor:i.extend("--ft-switch-off-color","",u.contentGlobalSubtle),offStateLayerColor:i.extend("--ft-switch-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ft-switch-on-hover-state-layer-opacity","",d.opacity8),onFocusStateLayerOpacity:i.extend("--ft-switch-on-focus-state-layer-opacity","",d.opacity8),onActiveStateLayerOpacity:i.extend("--ft-switch-on-active-state-layer-opacity","",d.opacity16),onDisabledComponentOpacity:i.extend("--ft-switch-on-disabled-component-opacity","",d.opacity40),onColor:i.extend("--ft-switch-on-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ft-switch-on-state-layer-color","",u.contentActionPrimary),iconHorizontalPadding:i.extend("--ft-switch-icon-horizontal-padding","",d.spacing1),iconVerticalPadding:i.extend("--ft-switch-icon-vertical-padding","",d.spacing1),focusOutlineWidth:i.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-switch-focus-focus-ring-color","",u.borderActionFocusRing),optionBorderRadius:i.extend("--ft-switch-option-border-radius","",d.borderRadiusS)};var gu={color1Light:i.extend("--ft-chart-1-light","for area color charts",d.colorBrand40),color1Base:i.extend("--ft-chart-1-base","for line charts",d.colorBrand0),color2Light:i.extend("--ft-chart-2-light","for area color charts",d.colorYellow60),color2Base:i.extend("--ft-chart-2-base","for line charts",d.colorYellow100),color3Light:i.extend("--ft-chart-3-light","",d.colorUltramarine40),color3Base:i.extend("--ft-chart-3-base","",d.colorUltramarine70),color4Light:i.extend("--ft-chart-4-light","",d.colorCyan50),color4Base:i.extend("--ft-chart-4-base","",d.colorCyan100),color5Light:i.extend("--ft-chart-5-light","",d.colorRed40),color5Base:i.extend("--ft-chart-5-base","",d.colorRed60),color6Light:i.extend("--ft-chart-6-light","",d.colorGreen40),color6Base:i.extend("--ft-chart-6-base","",d.colorGreen70),color7Light:i.extend("--ft-chart-7-light","",d.colorOrange70),color7Base:i.extend("--ft-chart-7-base","",d.colorOrange100),color8Light:i.extend("--ft-chart-8-light","",d.colorAvocado70),color8Base:i.extend("--ft-chart-8-base","",d.colorAvocado200),color9Light:i.extend("--ft-chart-9-light","",d.colorBrown50),color9Base:i.extend("--ft-chart-9-base","",d.colorBrown200),color10Light:i.extend("--ft-chart-10-light","",d.colorGray50),color10Base:i.extend("--ft-chart-10-base","",d.colorGray80),monochrome10:i.extend("--ft-chart-monochrome-10","",d.colorBrand10),monochrome20:i.extend("--ft-chart-monochrome-20","",d.colorBrand20),monochrome30:i.extend("--ft-chart-monochrome-30","",d.colorBrand40),monochrome40:i.extend("--ft-chart-monochrome-40","",d.colorBrand60),monochrome50:i.extend("--ft-chart-monochrome-50","",d.colorBrand0),monochrome60:i.extend("--ft-chart-monochrome-60","",d.colorBrand200)};var yu={borderWidth:i.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:i.extend("--ft-notice-horizontal-padding","",d.spacing3),verticalPadding:i.extend("--ft-notice-vertical-padding","",d.spacing2),borderRadius:i.extend("--ft-notice-border-radius","",d.borderRadiusS),gap:i.extend("--ft-notice-gap","",d.spacing2),iconSize:i.extend("--ft-notice-icon-size","",d.iconSize3),infoBackgroundColor:i.extend("--ft-notice-info-background-color","",u.backgroundInfoSubtle),infoBorderColor:i.extend("--ft-notice-info-border-color","",u.borderInfoSubtle),infoColor:i.extend("--ft-notice-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ft-notice-info-icon-color","",u.contentInfoIconOnly),warningBackgroundColor:i.extend("--ft-notice-warning-background-color","",u.backgroundWarningSubtle),warningBorderColor:i.extend("--ft-notice-warning-border-color","",u.borderWarningSubtle),warningColor:i.extend("--ft-notice-warning-color","",u.contentWarningPrimary),warningIconColor:i.extend("--ft-notice-warning-icon-color","",u.contentWarningIconOnly),errorBackgroundColor:i.extend("--ft-notice-error-background-color","",u.backgroundErrorSubtle),errorBorderColor:i.extend("--ft-notice-error-border-color","",u.borderErrorSubtle),errorColor:i.extend("--ft-notice-error-color","",u.contentErrorPrimary),errorIconColor:i.extend("--ft-notice-error-icon-color","",u.contentErrorIconOnly),successBackgroundColor:i.extend("--ft-notice-success-background-color","",u.backgroundSuccessSubtle),successBorderColor:i.extend("--ft-notice-success-border-color","",u.borderSuccessSubtle),successColor:i.extend("--ft-notice-success-color","",u.contentSuccessPrimary),successIconColor:i.extend("--ft-notice-success-icon-color","",u.contentSuccessIconOnly)};var bu={color:i.extend("--ft-checkbox-color","",u.contentGlobalPrimary),checkedBackgroundColor:i.extend("--ft-checkbox-checked-background-color","",u.contentActionPrimary),checkedStateLayerColor:i.extend("--ft-checkbox-checked-state-layer-color","",u.contentActionPrimary),checkedIconColor:i.extend("--ft-checkbox-checked-icon-color","",u.contentGlobalOnColor),checkedHoverStateLayerOpacity:i.extend("--ft-checkbox-checked-hover-state-layer-opacity","",d.opacity16),checkedFocusStateLayerOpacity:i.extend("--ft-checkbox-checked-focus-state-layer-opacity","",d.opacity16),checkedActiveStateLayerOpacity:i.extend("--ft-checkbox-checked-active-state-layer-opacity","",d.opacity24),checkedDisabledComponentOpacity:i.extend("--ft-checkbox-checked-disabled-component-opacity","",d.opacity40),uncheckedBorderColor:i.extend("--ft-checkbox-unchecked-border-color","",d.colorGray80),uncheckedStateLayerColor:i.extend("--ft-checkbox-unchecked-state-layer-color","",d.colorGray80),uncheckedHoverStateLayerOpacity:i.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",d.opacity16),uncheckedFocusStateLayerOpacity:i.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",d.opacity16),uncheckedActiveStateLayerOpacity:i.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",d.opacity24),uncheckedDisabledComponentOpacity:i.extend("--ft-checkbox-unchecked-disabled-component-opacity","",d.opacity40),focusFocusRingColor:i.extend("--ft-checkbox-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:i.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:i.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gap:i.extend("--ft-checkbox-gap","",d.spacing3)};var vu={offHoverStateLayerOpacity:i.extend("--ft-toggle-off-hover-state-layer-opacity","",d.opacity16),offFocusStateLayerOpacity:i.extend("--ft-toggle-off-focus-state-layer-opacity","",d.opacity16),offActiveStateLayerOpacity:i.extend("--ft-toggle-off-active-state-layer-opacity","",d.opacity24),offDisabledComponentOpacity:i.extend("--ft-toggle-off-disabled-component-opacity","",d.opacity40),offBackgroundColor:i.extend("--ft-toggle-off-background-color","",u.contentGlobalSubtle),offIconColor:i.extend("--ft-toggle-off-icon-color","",u.contentGlobalSubtle),offStateLayerColor:i.extend("--ft-toggle-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ft-toggle-on-hover-state-layer-opacity","",d.opacity16),onFocusStateLayerOpacity:i.extend("--ft-toggle-on-focus-state-layer-opacity","",d.opacity16),onActiveStateLayerOpacity:i.extend("--ft-toggle-on-active-state-layer-opacity","",d.opacity24),onDisabledComponentOpacity:i.extend("--ft-toggle-on-disabled-component-opacity","",d.opacity40),onBackgroundColor:i.extend("--ft-toggle-on-background-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ft-toggle-on-state-layer-color","",u.contentActionPrimary),onIconColor:i.extend("--ft-toggle-on-icon-color","",u.contentActionPrimary),color:i.extend("--ft-toggle-color","",u.contentGlobalPrimary),focusFocusRingColor:i.extend("--ft-toggle-focus-focus-ring-color","",u.borderActionFocusRing),gap:i.extend("--ft-toggle-gap","",d.spacing3)};var xu={color:i.extend("--ft-radio-color","",u.contentGlobalPrimary),selectedRadioColor:i.extend("--ft-radio-selected-radio-color","",u.contentActionPrimary),selectedStateLayerColor:i.extend("--ft-radio-selected-state-layer-color","",u.contentActionPrimary),selectedHoverStateLayerOpacity:i.extend("--ft-radio-selected-hover-state-layer-opacity","",d.opacity16),selectedFocusStateLayerOpacity:i.extend("--ft-radio-selected-focus-state-layer-opacity","",d.opacity16),selectedActiveStateLayerOpacity:i.extend("--ft-radio-selected-active-state-layer-opacity","",d.opacity24),selectedDisabledComponentOpacity:i.extend("--ft-radio-selected-disabled-component-opacity","",d.opacity40),unselectedStateLayerColor:i.extend("--ft-radio-unselected-state-layer-color","",u.borderInputPrimary),unselectedBorderColor:i.extend("--ft-radio-unselected-border-color","",u.borderInputPrimary),unselectedHoverStateLayerOpacity:i.extend("--ft-radio-unselected-hover-state-layer-opacity","",d.opacity16),unselectedFocusStateLayerOpacity:i.extend("--ft-radio-unselected-focus-state-layer-opacity","",d.opacity16),unselectedActiveStateLayerOpacity:i.extend("--ft-radio-unselected-active-state-layer-opacity","",d.opacity24),unselectedDisabledComponentOpacity:i.extend("--ft-radio-unselected-disabled-component-opacity","",d.opacity40),focusFocusRingColor:i.extend("--ft-radio-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:i.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:i.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:i.extend("--ft-radio-gap","",d.spacing3)};var Su={iconSize:i.extend("--ft-notification-icon-size","",d.iconSize4),leftPadding:i.extend("--ft-notification-left-padding","",d.spacing5),rightPadding:i.extend("--ft-notification-right-padding","",d.spacing4),verticalPadding:i.extend("--ft-notification-vertical-padding","",d.spacing3),infoBackgroundColor:i.extend("--ft-notification-info-background-color","",u.backgroundInfoSubtle),infoColor:i.extend("--ft-notification-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ft-notification-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:i.extend("--ft-notification-info-border-color","",u.borderInfoSubtle),successBackgroundColor:i.extend("--ft-notification-success-background-color","",u.backgroundSuccessSubtle),successColor:i.extend("--ft-notification-success-color","",u.contentSuccessPrimary),successIconColor:i.extend("--ft-notification-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:i.extend("--ft-notification-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:i.extend("--ft-notification-warning-background-color","",u.backgroundWarningSubtle),warningColor:i.extend("--ft-notification-warning-color","",u.contentWarningPrimary),warningIconColor:i.extend("--ft-notification-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:i.extend("--ft-notification-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:i.extend("--ft-notification-error-background-color","",u.backgroundErrorSubtle),errorColor:i.extend("--ft-notification-error-color","",u.contentErrorPrimary),errorIconColor:i.extend("--ft-notification-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:i.extend("--ft-notification-error-border-color","",u.borderErrorSubtle),borderRadius:i.extend("--ft-notification-border-radius","",d.borderRadiusPill),borderWidth:i.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:i.extend("--ft-notification-leading-gap","",d.spacing2),trailingGap:i.extend("--ft-notification-trailing-gap","",d.spacing8)};var Ou={horizontalPadding:i.extend("--ft-tooltip-horizontal-padding","",d.spacing2),verticalPadding:i.extend("--ft-tooltip-vertical-padding","",d.spacing2),borderRadius:i.extend("--ft-tooltip-border-radius","",d.borderRadiusS),color:i.extend("--ft-tooltip-color","",u.contentGlobalOnColor),backgroundColor:i.extend("--ft-tooltip-background-color","",u.contentGlobalPrimary),backgroundOpacity:i.extend("--ft-tooltip-background-opacity","",d.opacity80),shadow:i.extend("--ft-tooltip-shadow","",d.shadowElevation02),maxWidth:i.create("--ft-tooltip-max-width","","SIZE","256px"),gap:i.extend("--ft-tooltip-gap","",d.spacing05)};var ur;(function(r){r.brand="brand",r.neutral="neutral",r.info="info",r.success="success",r.warning="warning",r.error="error"})(ur||(ur={}));var St;(function(r){r.large="large",r.medium="medium",r.small="small"})(St||(St={}));function da(r){return`ftds--family-${r}`}function pa(r){return`ftds--size-${r}`}var _={colorPrimary:i.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:i.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:i.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:i.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:i.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:i.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:i.create("--ft-color-error","","COLOR","#B00020"),colorOutline:i.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:i.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:i.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:i.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:i.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:i.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:i.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:i.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:i.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:i.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:i.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:i.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:i.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:i.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:i.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:i.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:i.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:i.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:i.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:i.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:i.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:i.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:i.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:i.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:i.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:i.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:i.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:i.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:i.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:i.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:i.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:i.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:i.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:i.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:i.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:i.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:i.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:i.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:i.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:i.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:i.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:i.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:i.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:i.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var ga={};ee(ga,{FtNotificationEvent:()=>ke,PostResizeEvent:()=>ma,PreResizeEvent:()=>ha});var ke=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},ha=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},ma=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};var Ra={};ee(Ra,{computeOffsetPosition:()=>wo});var kl=["top","right","bottom","left"],$l=["start","end"],ba=kl.reduce((r,e)=>r.concat(e,e+"-"+$l[0],e+"-"+$l[1]),[]),bo=Math.min,Dt=Math.max,vo=Math.round;var Ot=r=>({x:r,y:r}),wu={left:"right",right:"left",bottom:"top",top:"bottom"},Eu={start:"end",end:"start"};function va(r,e,t){return Dt(r,bo(e,t))}function di(r,e){return typeof r=="function"?r(e):r}function kr(r){return r.split("-")[0]}function Mt(r){return r.split("-")[1]}function xa(r){return r==="x"?"y":"x"}function Sa(r){return r==="y"?"height":"width"}function pi(r){return["top","bottom"].includes(kr(r))?"y":"x"}function Oa(r){return xa(pi(r))}function Ll(r,e,t){t===void 0&&(t=!1);let o=Mt(r),n=Oa(r),a=Sa(n),s=n==="x"?o===(t?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=ya(s)),[s,ya(s)]}function Dl(r){return r.replace(/start|end/g,e=>Eu[e])}function ya(r){return r.replace(/left|right|bottom|top/g,e=>wu[e])}function Cu(r){return{top:0,right:0,bottom:0,left:0,...r}}function Ml(r){return typeof r!="number"?Cu(r):{top:r,right:r,bottom:r,left:r}}function fr(r){return{...r,top:r.y,left:r.x,right:r.x+r.width,bottom:r.y+r.height}}function Ul(r,e,t){let{reference:o,floating:n}=r,a=pi(e),s=Oa(e),l=Sa(s),c=kr(e),p=a==="y",h=o.x+o.width/2-n.width/2,f=o.y+o.height/2-n.height/2,g=o[l]/2-n[l]/2,b;switch(c){case"top":b={x:h,y:o.y-n.height};break;case"bottom":b={x:h,y:o.y+o.height};break;case"right":b={x:o.x+o.width,y:f};break;case"left":b={x:o.x-n.width,y:f};break;default:b={x:o.x,y:o.y}}switch(Mt(e)){case"start":b[s]-=g*(t&&p?-1:1);break;case"end":b[s]+=g*(t&&p?-1:1);break}return b}var Fl=async(r,e,t)=>{let{placement:o="bottom",strategy:n="absolute",middleware:a=[],platform:s}=t,l=a.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:r,floating:e,strategy:n}),{x:h,y:f}=Ul(p,o,c),g=o,b={},v=0;for(let w=0;w<l.length;w++){let{name:I,fn:A}=l[w],{x:N,y:S,data:O,reset:E}=await A({x:h,y:f,initialPlacement:o,placement:g,strategy:n,middlewareData:b,rects:p,platform:s,elements:{reference:r,floating:e}});if(h=N??h,f=S??f,b={...b,[I]:{...b[I],...O}},E&&v<=50){v++,typeof E=="object"&&(E.placement&&(g=E.placement),E.rects&&(p=E.rects===!0?await s.getElementRects({reference:r,floating:e,strategy:n}):E.rects),{x:h,y:f}=Ul(p,g,c)),w=-1;continue}}return{x:h,y:f,placement:g,strategy:n,middlewareData:b}};async function wa(r,e){var t;e===void 0&&(e={});let{x:o,y:n,platform:a,rects:s,elements:l,strategy:c}=r,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:f="floating",altBoundary:g=!1,padding:b=0}=di(e,r),v=Ml(b),I=l[g?f==="floating"?"reference":"floating":f],A=fr(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(I)))==null||t?I:I.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:h,strategy:c})),N=f==="floating"?{...s.floating,x:o,y:n}:s.reference,S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),O=await(a.isElement==null?void 0:a.isElement(S))?await(a.getScale==null?void 0:a.getScale(S))||{x:1,y:1}:{x:1,y:1},E=fr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:N,offsetParent:S,strategy:c}):N);return{top:(A.top-E.top+v.top)/O.y,bottom:(E.bottom-A.bottom+v.bottom)/O.y,left:(A.left-E.left+v.left)/O.x,right:(E.right-A.right+v.right)/O.x}}function Au(r,e,t){return(r?[...t.filter(n=>Mt(n)===r),...t.filter(n=>Mt(n)!==r)]:t.filter(n=>kr(n)===n)).filter(n=>r?Mt(n)===r||(e?Dl(n)!==n:!1):!0)}var Ea=function(r){return r===void 0&&(r={}),{name:"autoPlacement",options:r,async fn(e){var t,o,n;let{rects:a,middlewareData:s,placement:l,platform:c,elements:p}=e,{crossAxis:h=!1,alignment:f,allowedPlacements:g=ba,autoAlignment:b=!0,...v}=di(r,e),w=f!==void 0||g===ba?Au(f||null,b,g):g,I=await wa(e,v),A=((t=s.autoPlacement)==null?void 0:t.index)||0,N=w[A];if(N==null)return{};let S=Ll(N,a,await(c.isRTL==null?void 0:c.isRTL(p.floating)));if(l!==N)return{reset:{placement:w[0]}};let O=[I[kr(N)],I[S[0]],I[S[1]]],E=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:N,overflows:O}],U=w[A+1];if(U)return{data:{index:A+1,overflows:E},reset:{placement:U}};let J=E.map(D=>{let m=Mt(D.placement);return[D.placement,m&&h?D.overflows.slice(0,2).reduce((x,k)=>x+k,0):D.overflows[0],D.overflows]}).sort((D,m)=>D[1]-m[1]),Q=((n=J.filter(D=>D[2].slice(0,Mt(D[0])?2:3).every(m=>m<=0))[0])==null?void 0:n[0])||J[0][0];return Q!==l?{data:{index:A+1,overflows:E},reset:{placement:Q}}:{}}}};var Ca=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(e){let{x:t,y:o,placement:n}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:I=>{let{x:A,y:N}=I;return{x:A,y:N}}},...c}=di(r,e),p={x:t,y:o},h=await wa(e,c),f=pi(kr(n)),g=xa(f),b=p[g],v=p[f];if(a){let I=g==="y"?"top":"left",A=g==="y"?"bottom":"right",N=b+h[I],S=b-h[A];b=va(N,b,S)}if(s){let I=f==="y"?"top":"left",A=f==="y"?"bottom":"right",N=v+h[I],S=v-h[A];v=va(N,v,S)}let w=l.fn({...e,[g]:b,[f]:v});return{...w,data:{x:w.x-t,y:w.y-o}}}}};function wt(r){return zl(r)?(r.nodeName||"").toLowerCase():"#document"}function Be(r){var e;return(r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function Et(r){var e;return(e=(zl(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function zl(r){return r instanceof Node||r instanceof Be(r).Node}function dt(r){return r instanceof Element||r instanceof Be(r).Element}function et(r){return r instanceof HTMLElement||r instanceof Be(r).HTMLElement}function Bl(r){return typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof Be(r).ShadowRoot}function Lr(r){let{overflow:e,overflowX:t,overflowY:o,display:n}=Ke(r);return/auto|scroll|overlay|hidden|clip/.test(e+o+t)&&!["inline","contents"].includes(n)}function Hl(r){return["table","td","th"].includes(wt(r))}function fi(r){let e=hi(),t=Ke(r);return t.transform!=="none"||t.perspective!=="none"||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(t.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(t.contain||"").includes(o))}function Wl(r){let e=hr(r);for(;et(e)&&!xo(e);){if(fi(e))return e;e=hr(e)}return null}function hi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function xo(r){return["html","body","#document"].includes(wt(r))}function Ke(r){return Be(r).getComputedStyle(r)}function So(r){return dt(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.pageXOffset,scrollTop:r.pageYOffset}}function hr(r){if(wt(r)==="html")return r;let e=r.assignedSlot||r.parentNode||Bl(r)&&r.host||Et(r);return Bl(e)?e.host:e}function Vl(r){let e=hr(r);return xo(e)?r.ownerDocument?r.ownerDocument.body:r.body:et(e)&&Lr(e)?e:Vl(e)}function ui(r,e,t){var o;e===void 0&&(e=[]),t===void 0&&(t=!0);let n=Vl(r),a=n===((o=r.ownerDocument)==null?void 0:o.body),s=Be(n);return a?e.concat(s,s.visualViewport||[],Lr(n)?n:[],s.frameElement&&t?ui(s.frameElement):[]):e.concat(n,ui(n,[],t))}function Gl(r){let e=Ke(r),t=parseFloat(e.width)||0,o=parseFloat(e.height)||0,n=et(r),a=n?r.offsetWidth:t,s=n?r.offsetHeight:o,l=vo(t)!==a||vo(o)!==s;return l&&(t=a,o=s),{width:t,height:o,$:l}}function Zl(r){return dt(r)?r:r.contextElement}function Dr(r){let e=Zl(r);if(!et(e))return Ot(1);let t=e.getBoundingClientRect(),{width:o,height:n,$:a}=Gl(e),s=(a?vo(t.width):t.width)/o,l=(a?vo(t.height):t.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var Ru=Ot(0);function ql(r){let e=Be(r);return!hi()||!e.visualViewport?Ru:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function _u(r,e,t){return e===void 0&&(e=!1),!t||e&&t!==Be(r)?!1:e}function Oo(r,e,t,o){e===void 0&&(e=!1),t===void 0&&(t=!1);let n=r.getBoundingClientRect(),a=Zl(r),s=Ot(1);e&&(o?dt(o)&&(s=Dr(o)):s=Dr(r));let l=_u(a,t,o)?ql(a):Ot(0),c=(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 g=Be(a),b=o&&dt(o)?Be(o):o,v=g.frameElement;for(;v&&o&&b!==g;){let w=Dr(v),I=v.getBoundingClientRect(),A=Ke(v),N=I.left+(v.clientLeft+parseFloat(A.paddingLeft))*w.x,S=I.top+(v.clientTop+parseFloat(A.paddingTop))*w.y;c*=w.x,p*=w.y,h*=w.x,f*=w.y,c+=N,p+=S,v=Be(v).frameElement}}return fr({width:h,height:f,x:c,y:p})}function Tu(r){let{rect:e,offsetParent:t,strategy:o}=r,n=et(t),a=Et(t);if(t===a)return e;let s={scrollLeft:0,scrollTop:0},l=Ot(1),c=Ot(0);if((n||!n&&o!=="fixed")&&((wt(t)!=="body"||Lr(a))&&(s=So(t)),et(t))){let p=Oo(t);l=Dr(t),c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-s.scrollLeft*l.x+c.x,y:e.y*l.y-s.scrollTop*l.y+c.y}}function Nu(r){return Array.from(r.getClientRects())}function Yl(r){return Oo(Et(r)).left+So(r).scrollLeft}function Iu(r){let e=Et(r),t=So(r),o=r.ownerDocument.body,n=Dt(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),a=Dt(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight),s=-t.scrollLeft+Yl(r),l=-t.scrollTop;return Ke(o).direction==="rtl"&&(s+=Dt(e.clientWidth,o.clientWidth)-n),{width:n,height:a,x:s,y:l}}function Pu(r,e){let t=Be(r),o=Et(r),n=t.visualViewport,a=o.clientWidth,s=o.clientHeight,l=0,c=0;if(n){a=n.width,s=n.height;let p=hi();(!p||p&&e==="fixed")&&(l=n.offsetLeft,c=n.offsetTop)}return{width:a,height:s,x:l,y:c}}function $u(r,e){let t=Oo(r,!0,e==="fixed"),o=t.top+r.clientTop,n=t.left+r.clientLeft,a=et(r)?Dr(r):Ot(1),s=r.clientWidth*a.x,l=r.clientHeight*a.y,c=n*a.x,p=o*a.y;return{width:s,height:l,x:c,y:p}}function jl(r,e,t){let o;if(e==="viewport")o=Pu(r,t);else if(e==="document")o=Iu(Et(r));else if(dt(e))o=$u(e,t);else{let n=ql(r);o={...e,x:e.x-n.x,y:e.y-n.y}}return fr(o)}function Xl(r,e){let t=hr(r);return t===e||!dt(t)||xo(t)?!1:Ke(t).position==="fixed"||Xl(t,e)}function ku(r,e){let t=e.get(r);if(t)return t;let o=ui(r,[],!1).filter(l=>dt(l)&&wt(l)!=="body"),n=null,a=Ke(r).position==="fixed",s=a?hr(r):r;for(;dt(s)&&!xo(s);){let l=Ke(s),c=fi(s);!c&&l.position==="fixed"&&(n=null),(a?!c&&!n:!c&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Lr(s)&&!c&&Xl(r,s))?o=o.filter(h=>h!==s):n=l,s=hr(s)}return e.set(r,o),o}function Lu(r){let{element:e,boundary:t,rootBoundary:o,strategy:n}=r,s=[...t==="clippingAncestors"?ku(e,this._c):[].concat(t),o],l=s[0],c=s.reduce((p,h)=>{let f=jl(e,h,n);return p.top=Dt(f.top,p.top),p.right=bo(f.right,p.right),p.bottom=bo(f.bottom,p.bottom),p.left=Dt(f.left,p.left),p},jl(e,l,n));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Du(r){return Gl(r)}function Mu(r,e,t){let o=et(e),n=Et(e),a=t==="fixed",s=Oo(r,!0,a,e),l={scrollLeft:0,scrollTop:0},c=Ot(0);if(o||!o&&!a)if((wt(e)!=="body"||Lr(n))&&(l=So(e)),o){let p=Oo(e,!0,a,e);c.x=p.x+e.clientLeft,c.y=p.y+e.clientTop}else n&&(c.x=Yl(n));return{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function Kl(r,e){return!et(r)||Ke(r).position==="fixed"?null:e?e(r):r.offsetParent}function Jl(r,e){let t=Be(r);if(!et(r))return t;let o=Kl(r,e);for(;o&&Hl(o)&&Ke(o).position==="static";)o=Kl(o,e);return o&&(wt(o)==="html"||wt(o)==="body"&&Ke(o).position==="static"&&!fi(o))?t:o||Wl(r)||t}var Uu=async function(r){let{reference:e,floating:t,strategy:o}=r,n=this.getOffsetParent||Jl,a=this.getDimensions;return{reference:Mu(e,await n(t),o),floating:{x:0,y:0,...await a(t)}}};function Fu(r){return Ke(r).direction==="rtl"}var mi={convertOffsetParentRelativeRectToViewportRelativeRect:Tu,getDocumentElement:Et,getClippingRect:Lu,getOffsetParent:Jl,getElementRects:Uu,getClientRects:Nu,getDimensions:Du,getScale:Dr,isElement:dt,isRTL:Fu};var Ql=(r,e,t)=>{let o=new Map,n={platform:mi,...t},a={...n.platform,_c:o};return Fl(r,e,{...n,platform:a})};function ec(r){return Bu(r)}function Aa(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function Bu(r){for(let e=r;e;e=Aa(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Aa(r);e;e=Aa(e)){if(!(e instanceof Element))continue;let t=getComputedStyle(e);if(t.display!=="contents"&&(t.position!=="static"||t.filter!=="none"||e.tagName==="BODY"))return e}return null}async function wo(r,e,t){return Ql(r,e,{platform:{...mi,getOffsetParent:o=>mi.getOffsetParent(o,ec)},middleware:[Ca({crossAxis:!0}),Ea({allowedPlacements:[t]})]})}var Ia={};ee(Ia,{FtdsBase:()=>Na,toFtdsBase:()=>bi});var Ta={};ee(Ta,{FtLitElement:()=>H});var _a={};ee(_a,{ScopedRegistryLitElement:()=>Eo});var gi=window,zu=gi.ShadowRoot&&(gi.ShadyCSS===void 0||gi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Rb=Symbol();var tc=(r,e)=>{zu?r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{let o=document.createElement("style"),n=gi.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=t.cssText,r.appendChild(o)})};var Eo=class extends bt{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([n,a])=>e.registry.define(n,a)));let t={...e.shadowRootOptions,customElements:e.registry},o=this.renderOptions.creationScope=this.attachShadow(t);return tc(o,e.elementStyles),o}};var yi=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},nc,rc=Symbol("constructorPrototype"),oc=Symbol("constructorName"),ac=Symbol("exportpartsDebouncer"),ic=Symbol("dynamicDependenciesLoaded"),H=class extends Eo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[nc]=new ae(5),this[oc]=this.constructor.name,this[rc]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[oc]&&Object.setPrototypeOf(this,this[rc])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(t){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",t)}let e=this.constructor;e[ic]||(e[ic]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}applyCustomStylesheet(e){var t,o,n;if(((o=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&o!==void 0?o:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.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 e,t,o;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(o=(t=this.exportpartsPrefixes)===null||t===void 0?void 0:t.length)!==null&&o!==void 0&&o)&&this[ac].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(e){var t,o,n,a,s,l;let c=g=>g!=null&&g.trim().length>0,p=e.filter(c).map(g=>g.trim());if(p.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let g of(o=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("[part],[exportparts]"))!==null&&o!==void 0?o:[]){let b=(a=(n=g.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],v=(l=(s=g.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(w=>w.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...b,...v).filter(c).map(w=>w.trim()).forEach(w=>h.add(w))}if(h.size===0){this.removeAttribute("exportparts");return}let f=[...h.values()].flatMap(g=>p.map(b=>`${g}:${b}--${g}`));this.setAttribute("exportparts",[...this.part,...f].join(", "))}};nc=ac;yi([y()],H.prototype,"exportpartsPrefix",void 0);yi([ct([])],H.prototype,"exportpartsPrefixes",void 0);yi([y()],H.prototype,"customStylesheet",void 0);yi([z()],H.prototype,"useAdoptedStyleSheets",void 0);var sc=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a};function bi(r){class e extends r{constructor(){super(...arguments),this.size=St.medium,this.family=ur.neutral}getDesignSystemBaseClasses(){return{[da(this.family)]:!0,[pa(this.size)]:!0}}}return sc([y()],e.prototype,"size",void 0),sc([y()],e.prototype,"family",void 0),e}var Na=class extends bi(H){};var lc={};var ka={};ee(ka,{highlightHtml:()=>$a,highlightHtmlColorCssVariable:()=>cc,highlightHtmlStyles:()=>Wu});var mr=class r{constructor(e,t=!0,o=[],n=5e3){this.ctx=e,this.iframes=t,this.exclude=o,this.iframesTimeout=n}static matches(e,t){let o=typeof t=="string"?[t]:t,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(n){let a=!1;return o.every(s=>n.call(e,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,t=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(o=>{let n=t.filter(a=>a.contains(o)).length>0;t.indexOf(o)===-1&&!n&&t.push(o)}),t}getIframeContents(e,t,o=()=>{}){let n;try{let a=e.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{o()}n&&t(n)}isIframeBlank(e){let t="about:blank",o=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&o!==t&&o}observeIframeLoad(e,t,o){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,t,o))}catch{o()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,t,o){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,t,o):this.getIframeContents(e,t,o):this.observeIframeLoad(e,t,o)}catch{o()}}waitForIframes(e,t){let o=0;this.forEachIframe(e,()=>!0,n=>{o++,this.waitForIframes(n.querySelector("html"),()=>{--o||t()})},n=>{n||t()})}forEachIframe(e,t,o,n=()=>{}){let a=e.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let c=()=>{--s<=0&&n(l)};s||c(),a.forEach(p=>{r.matches(p,this.exclude)?c():this.onIframeReady(p,h=>{t(p)&&(l++,o(h)),c()},c)})}createIterator(e,t,o){return document.createNodeIterator(e,t,o,!1)}createInstanceOnIframe(e){return new r(e.querySelector("html"),this.iframes)}compareNodeIframe(e,t,o){let n=e.compareDocumentPosition(o),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(t!==null){let s=t.compareDocumentPosition(o),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(e){let t=e.previousNode(),o;return t===null?o=e.nextNode():o=e.nextNode()&&e.nextNode(),{prevNode:t,node:o}}checkIframeFilter(e,t,o,n){let a=!1,s=!1;return n.forEach((l,c)=>{l.val===o&&(a=c,s=l.handled)}),this.compareNodeIframe(e,t,o)?(a===!1&&!s?n.push({val:o,handled:!0}):a!==!1&&!s&&(n[a].handled=!0),!0):(a===!1&&n.push({val:o,handled:!1}),!1)}handleOpenIframes(e,t,o,n){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(t,o,n)})})}iterateThroughNodes(e,t,o,n,a){let s=this.createIterator(t,e,n),l=[],c=[],p,h,f=()=>({prevNode:h,node:p}=this.getIteratorNode(s),p);for(;f();)this.iframes&&this.forEachIframe(t,g=>this.checkIframeFilter(p,h,g,l),g=>{this.createInstanceOnIframe(g).forEachNode(e,b=>c.push(b),n)}),c.push(p);c.forEach(g=>{o(g)}),this.iframes&&this.handleOpenIframes(l,e,o,n),a()}forEachNode(e,t,o,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let c=()=>{this.iterateThroughNodes(e,l,t,o,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,c):c()})}};var Co=class{constructor(e){this.ctx=e,this.ie=!1;let t=window.navigator.userAgent;(t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},e)}get opt(){return this._opt}get iterator(){return new mr(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,t="debug"){let o=this.opt.log;this.opt.debug&&typeof o=="object"&&typeof o[t]=="function"&&o[t](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){let t=this.opt.synonyms,o=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in t)if(t.hasOwnProperty(a)){let s=t[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),c=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&c!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(c)})`,`gm${o}`),n+`(${this.processSynomyms(l)}|${this.processSynomyms(c)})`+n))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,t=>t.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,t=>t.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let t=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(t,o,n)=>{let a=n.charAt(o+1);return/[(|)\\]/.test(a)||a===""?t:t+"\0"})}createJoinersRegExp(e){let t=[],o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&t.push(this.escapeStr(o.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join(`[${t.join("")}]*`):e}createDiacriticsRegExp(e){let t=this.opt.caseSensitive?"":"i",o=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],n=[];return e.split("").forEach(a=>{o.every(s=>{if(s.indexOf(a)!==-1){if(n.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${t}`),`[${s}]`),n.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",o=this.opt.accuracy,n=typeof o=="string"?o:o.value,a=typeof o=="string"?[]:o.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),n){case"partially":default:return`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(t)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let t=[];return e.forEach(o=>{this.opt.separateWordSearch?o.split(" ").forEach(n=>{n.trim()&&t.indexOf(n)===-1&&t.push(n)}):o.trim()&&t.indexOf(o)===-1&&t.push(o)}),{keywords:t.sort((o,n)=>n.length-o.length),length:t.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];let t=[],o=0;return e.sort((n,a)=>n.start-a.start).forEach(n=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(n,o);l&&(n.start=a,n.length=s-a,t.push(n),o=s)}),t}callNoMatchOnInvalidRanges(e,t){let o,n,a=!1;return e&&typeof e.start<"u"?(o=parseInt(e.start,10),n=o+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&n-t>0&&n-o>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:o,end:n,valid:a}}checkWhitespaceRanges(e,t,o){let n,a=!0,s=o.length,l=t-s,c=parseInt(e.start,10)-l;return c=c>s?s:c,n=c+parseInt(e.length,10),n>s&&(n=s,this.log(`End range automatically set to the max value of ${s}`)),c<0||n-c<0||c>s||n>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):o.substring(c,n).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:c,end:n,valid:a}}getTextNodes(e){let t="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{o.push({start:t.length,end:(t+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:t,nodes:o})})}matchesExclude(e){return mr.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,t,o){let n=this.opt.element?this.opt.element:"mark",a=e.splitText(t),s=a.splitText(o-t),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(e,t,o,n,a){e.nodes.every((s,l)=>{let c=e.nodes[l+1];if(typeof c>"u"||c.start>t){if(!n(s.node))return!1;let p=t-s.start,h=(o>s.end?s.end:o)-s.start,f=e.value.substr(0,s.start),g=e.value.substr(h+s.start);if(s.node=this.wrapRangeInTextNode(s.node,p,h),e.value=f+g,e.nodes.forEach((b,v)=>{v>=l&&(e.nodes[v].start>0&&v!==l&&(e.nodes[v].start-=h),e.nodes[v].end-=h)}),o-=h,a(s.node.previousSibling,s.start),o>s.end)t=s.end;else return!1}return!0})}wrapMatches(e,t,o,n,a){let s=t===0?0:t+1;this.getTextNodes(l=>{l.nodes.forEach(c=>{c=c.node;let p;for(;(p=e.exec(c.textContent))!==null&&p[s]!=="";){if(!o(p[s],c))continue;let h=p.index;if(s!==0)for(let f=1;f<s;f++)h+=p[f].length;c=this.wrapRangeInTextNode(c,h,h+p[s].length),n(c.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,t,o,n,a){let s=t===0?0:t+1;this.getTextNodes(l=>{let c;for(;(c=e.exec(l.value))!==null&&c[s]!=="";){let p=c.index;if(s!==0)for(let f=1;f<s;f++)p+=c[f].length;let h=p+c[s].length;this.wrapRangeInMappedTextNode(l,p,h,f=>o(c[s],f),(f,g)=>{e.lastIndex=g,n(f)})}a()})}wrapRangeFromIndex(e,t,o,n){this.getTextNodes(a=>{let s=a.value.length;e.forEach((l,c)=>{let{start:p,end:h,valid:f}=this.checkWhitespaceRanges(l,s,a.value);f&&this.wrapRangeInMappedTextNode(a,p,h,g=>t(g,l,a.value.substring(p,h),c),g=>{o(g,l)})}),n()})}unwrapMatches(e){let t=e.parentNode,o=document.createDocumentFragment();for(;e.firstChild;)o.appendChild(e.removeChild(e.firstChild));t.replaceChild(o,e),this.ie?this.normalizeTextNode(t):t.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,t){this.opt=t,this.log(`Searching with expression "${e}"`);let o=0,n="wrapMatches",a=s=>{o++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](e,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,o),a,()=>{o===0&&this.opt.noMatch(e),this.opt.done(o)})}mark(e,t){this.opt=t;let o=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),l=this.opt.caseSensitive?"":"i",c=p=>{let h=new RegExp(this.createRegExp(p),`gm${l}`),f=0;this.log(`Searching with expression "${h}"`),this[n](h,1,(g,b)=>this.opt.filter(b,p,o,f),g=>{f++,o++,this.opt.each(g)},()=>{f===0&&this.opt.noMatch(p),a[s-1]===p?this.opt.done(o):c(a[a.indexOf(p)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),s===0?this.opt.done(o):c(a[0])}markRanges(e,t){this.opt=t;let o=0,n=this.checkRanges(e);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(a,s,l,c)=>this.opt.filter(a,s,l,c),(a,s)=>{o++,this.opt.each(a,s)},()=>{this.opt.done(o)})):this.opt.done(o)}unmark(e){this.opt=e;let t=this.opt.element?this.opt.element:"*";t+="[data-markjs]",this.opt.className&&(t+=`.${this.opt.className}`),this.log(`Removal selector "${t}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,o=>{this.unwrapMatches(o)},o=>{let n=mr.matches(o,t),a=this.matchesExclude(o);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Pa(r){let e=new Co(r);return this.mark=(t,o)=>(e.mark(t,o),this),this.markRegExp=(t,o)=>(e.markRegExp(t,o),this),this.markRanges=(t,o)=>(e.markRanges(t,o),this),this.unmark=t=>(e.unmark(t),this),this}var Hu=Pa,cc=i.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),Wu=P`
|
|
8
8
|
.highlight-html-match {
|
|
9
|
-
background: ${
|
|
9
|
+
background: ${cc};
|
|
10
10
|
}
|
|
11
|
-
`;function
|
|
11
|
+
`;function $a(r,e,t){var o,n;let a=r.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new Hu(r);if(s.unmark(),e&&e.trim()){let l={className:(o=t?.className)!==null&&o!==void 0?o:"highlight-html-match"};t?.attributes!=null&&(l.each=p=>{for(let h in t.attributes)p.setAttribute(h,t.attributes[h])}),s.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((n=e.match(/"[^"]+"/g))!==null&&n!==void 0?n:[]).forEach(p=>s.mark(p.replace(/"/g,""),{...l,separateWordSearch:!1}))}}r.setAttribute("data-highlight-html-query",e??"")}var Da={};ee(Da,{noTextInputDefaultClearButton:()=>La,noTextSelect:()=>gr,safariEllipsisFix:()=>yr,wordWrap:()=>Vu});var gr=P`
|
|
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.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
17
17
|
-ms-user-select: none;
|
|
18
18
|
user-select: none;
|
|
19
19
|
}
|
|
20
|
-
`,
|
|
20
|
+
`,Vu=P`
|
|
21
21
|
.ft-word-wrap {
|
|
22
22
|
white-space: normal;
|
|
23
23
|
word-wrap: break-word;
|
|
@@ -29,7 +29,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
29
29
|
-webkit-hyphens: auto;
|
|
30
30
|
hyphens: auto
|
|
31
31
|
}
|
|
32
|
-
`,
|
|
32
|
+
`,yr=P`
|
|
33
33
|
.ft-safari-ellipsis-fix {
|
|
34
34
|
margin-right: 0;
|
|
35
35
|
|
|
@@ -40,14 +40,14 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
40
40
|
display: inline-block;
|
|
41
41
|
width: 0;
|
|
42
42
|
}
|
|
43
|
-
`,
|
|
43
|
+
`,La=P`
|
|
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 sc={};var ka={};ee(ka,{ParametrizedLabelResolver:()=>Co});var Co=class r{constructor(e,t){this.defaultLabels=e,this.labels=t}resolve(e,...t){var o,n;e=this.resolvePluralKey(e,t);let a=(n=(o=this.labels[e])!==null&&o!==void 0?o:this.defaultLabels[e])!==null&&n!==void 0?n:"";return r.replaceParameters(a,...t)}static replaceParameters(e,...t){return t.forEach((o,n)=>e=e.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>r.formatValue(o,s))),e}resolvePluralKey(e,t){for(let o of t)if(typeof o=="number"){let n=`${String(e)}[\\=${o}]`;if(n in this.labels||n in this.defaultLabels)return n}return e}static formatValue(e,t){return e instanceof Date?r.formatDate(e,t):e??""}static formatDate(e,t){let o=n=>t?.includes("date")?e.toLocaleDateString(n):t?.includes("time")?e.toLocaleTimeString(n):e.toLocaleString(n);try{return o(document.documentElement.lang)}catch{return o()}}};var as={};ee(as,{FtCommandQueue:()=>Ro,FtLitElementRedux:()=>Ge,FtReduxStore:()=>Ct,clearAllStores:()=>Ef,isFtReduxStore:()=>yr,redux:()=>le,reduxEventListener:()=>Ao,reduxReactive:()=>Bu});var Bu=()=>(r,e)=>{var t;let o=r.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(t=o.reduxReactiveProperties)===null||t===void 0||t.add(e)},le=r=>{let e=r??{};return(t,o)=>{var n;let a={hasChanged:mo,attribute:!1,...e};g(a)(t,o);let s=t.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(n=e.selector)!==null&&n!==void 0?n:l=>l[o],store:e.store})}},Ao=r=>(e,t)=>{let o=e.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(t,r)};var Ro=class{constructor(){this.queue=[]}add(e,t=!1){t&&(this.queue=this.queue.filter(o=>o.type!==e.type)),this.queue.push(e)}consume(e){let t=this.queue.find(o=>o.type===e);return t&&(this.queue=this.queue.filter(o=>o!==t)),t}};function yr(r){var e;return(e=r?.isFtReduxStore)!==null&&e!==void 0?e:!1}var lc,cc,dc,yi=Symbol("internalReduxEventsUnsubscribers"),Mt=Symbol("internalStoresUnsubscribers"),br=Symbol("internalStores"),Ge=class extends H{constructor(){super(...arguments),this[lc]=new Map,this[cc]=new Map,this[dc]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(t=>e.has(t))&&this.updateFromStores()}getUnnamedStore(){if(this[br].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[br].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[br].get(e)}addStore(e,t){var o;t=(o=t??(yr(e)?e.name:void 0))!==null&&o!==void 0?o:"default-store",this.unsubscribeFromStore(t),this.setupStore(t,e)}removeStore(e){let t=typeof e=="string"?e:e.name;this.unsubscribeFromStore(t),this[br].delete(t)}setupStore(e,t){this[br].set(e,t),this.subscribeToStore(e,t),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[br].forEach((e,t)=>this.subscribeToStore(t,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,t)=>{let o=this.constructor.getPropertyOptions(t);if(!o?.attribute||!this.hasAttribute(typeof o?.attribute=="string"?o.attribute:t)){let n=this.getStore(e.store);n&&(e.store?this[Mt].has(e.store):this[Mt].size>0)&&(this[t]=e.selector(n.getState(),this))}})}subscribeToStore(e,t){var o;this[Mt].set(e,t.subscribe(()=>this.updateFromStores())),yr(t)&&t.eventBus&&((o=this.reduxConstructor.reduxEventListeners)===null||o===void 0||o.forEach((n,a)=>{if(typeof this[a]=="function"&&(!n.store||t.name===n.store)){let s=l=>this[a](l);t.eventBus.addEventListener(n.eventName,s),this[yi].push(()=>t.eventBus.removeEventListener(n.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Mt].forEach((e,t)=>this.unsubscribeFromStore(t)),this[yi].forEach(e=>e()),this[yi]=[]}unsubscribeFromStore(e){this[Mt].has(e)&&this[Mt].get(e)(),this[Mt].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};lc=Mt,cc=br,dc=yi;Ge.reduxProperties=new Map;Ge.reduxReactiveProperties=new Set;Ge.reduxEventListeners=new Map;function Ze(r){for(var e=arguments.length,t=Array(e>1?e-1:0),o=1;o<e;o++)t[o-1]=arguments[o];if(0)var n,a;throw Error("[Immer] minified error nr: "+r+(t.length?" "+t.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Et(r){return!!r&&!!r[ce]}function et(r){var e;return!!r&&(function(t){if(!t||typeof t!="object")return!1;var o=Object.getPrototypeOf(t);if(o===null)return!0;var n=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===Zu}(r)||Array.isArray(r)||!!r[yc]||!!(!((e=r.constructor)===null||e===void 0)&&e[yc])||Wa(r)||Va(r))}function vr(r,e,t){t===void 0&&(t=!1),Ur(r)===0?(t?Object.keys:Mr)(r).forEach(function(o){t&&typeof o=="symbol"||e(o,r[o],r)}):r.forEach(function(o,n){return e(n,o,r)})}function Ur(r){var e=r[ce];return e?e.i>3?e.i-4:e.i:Array.isArray(r)?1:Wa(r)?2:Va(r)?3:0}function Dr(r,e){return Ur(r)===2?r.has(e):Object.prototype.hasOwnProperty.call(r,e)}function zu(r,e){return Ur(r)===2?r.get(e):r[e]}function bc(r,e,t){var o=Ur(r);o===2?r.set(e,t):o===3?r.add(t):r[e]=t}function vc(r,e){return r===e?r!==0||1/r==1/e:r!=r&&e!=e}function Wa(r){return Ku&&r instanceof Map}function Va(r){return Gu&&r instanceof Set}function Ut(r){return r.o||r.t}function ja(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var e=Oc(r);delete e[ce];for(var t=Mr(e),o=0;o<t.length;o++){var n=t[o],a=e[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:r[n]})}return Object.create(Object.getPrototypeOf(r),e)}function Ka(r,e){return e===void 0&&(e=!1),Ga(r)||Et(r)||!et(r)||(Ur(r)>1&&(r.set=r.add=r.clear=r.delete=Hu),Object.freeze(r),e&&vr(r,function(t,o){return Ka(o,!0)},!0)),r}function Hu(){Ze(2)}function Ga(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function dt(r){var e=Ha[r];return e||Ze(18,r),e}function Wu(r,e){Ha[r]||(Ha[r]=e)}function Fa(){return No}function La(r,e){e&&(dt("Patches"),r.u=[],r.s=[],r.v=e)}function bi(r){Ba(r),r.p.forEach(Vu),r.p=null}function Ba(r){r===No&&(No=r.l)}function pc(r){return No={p:[],l:No,h:r,m:!0,_:0}}function Vu(r){var e=r[ce];e.i===0||e.i===1?e.j():e.g=!0}function Da(r,e){e._=e.p.length;var t=e.p[0],o=r!==void 0&&r!==t;return e.h.O||dt("ES5").S(e,r,o),o?(t[ce].P&&(bi(e),Ze(4)),et(r)&&(r=vi(e,r),e.l||xi(e,r)),e.u&&dt("Patches").M(t[ce].t,r,e.u,e.s)):r=vi(e,t,[]),bi(e),e.u&&e.v(e.u,e.s),r!==Sc?r:void 0}function vi(r,e,t){if(Ga(e))return e;var o=e[ce];if(!o)return vr(e,function(l,c){return uc(r,o,e,l,c,t)},!0),e;if(o.A!==r)return e;if(!o.P)return xi(r,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var n=o.i===4||o.i===5?o.o=ja(o.k):o.o,a=n,s=!1;o.i===3&&(a=new Set(n),n.clear(),s=!0),vr(a,function(l,c){return uc(r,o,n,l,c,t,s)}),xi(r,n,!1),t&&r.u&&dt("Patches").N(o,t,r.u,r.s)}return o.o}function uc(r,e,t,o,n,a,s){if(Et(n)){var l=vi(r,n,a&&e&&e.i!==3&&!Dr(e.R,o)?a.concat(o):void 0);if(bc(t,o,l),!Et(l))return;r.m=!1}else s&&t.add(n);if(et(n)&&!Ga(n)){if(!r.h.D&&r._<1)return;vi(r,n),e&&e.A.l||xi(r,n)}}function xi(r,e,t){t===void 0&&(t=!1),!r.l&&r.h.D&&r.m&&Ka(e,t)}function Ma(r,e){var t=r[ce];return(t?Ut(t):r)[e]}function fc(r,e){if(e in r)for(var t=Object.getPrototypeOf(r);t;){var o=Object.getOwnPropertyDescriptor(t,e);if(o)return o;t=Object.getPrototypeOf(t)}}function Ft(r){r.P||(r.P=!0,r.l&&Ft(r.l))}function Ua(r){r.o||(r.o=ja(r.t))}function za(r,e,t){var o=Wa(e)?dt("MapSet").F(e,t):Va(e)?dt("MapSet").T(e,t):r.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:Fa(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},c=l,p=To;s&&(c=[l],p=_o);var h=Proxy.revocable(c,p),f=h.revoke,y=h.proxy;return l.k=y,l.j=f,y}(e,t):dt("ES5").J(e,t);return(t?t.A:Fa()).p.push(o),o}function ju(r){return Et(r)||Ze(22,r),function e(t){if(!et(t))return t;var o,n=t[ce],a=Ur(t);if(n){if(!n.P&&(n.i<4||!dt("ES5").K(n)))return n.t;n.I=!0,o=hc(t,a),n.I=!1}else o=hc(t,a);return vr(o,function(s,l){n&&zu(n.t,s)===l||bc(o,s,e(l))}),a===3?new Set(o):o}(r)}function hc(r,e){switch(e){case 2:return new Map(r);case 3:return Array.from(r)}return ja(r)}function xc(){function r(s,l){var c=a[s];return c?c.enumerable=l:a[s]=c={configurable:!0,enumerable:l,get:function(){var p=this[ce];return To.get(p,s)},set:function(p){var h=this[ce];To.set(h,s,p)}},c}function e(s){for(var l=s.length-1;l>=0;l--){var c=s[l][ce];if(!c.P)switch(c.i){case 5:o(c)&&Ft(c);break;case 4:t(c)&&Ft(c)}}}function t(s){for(var l=s.t,c=s.k,p=Mr(c),h=p.length-1;h>=0;h--){var f=p[h];if(f!==ce){var y=l[f];if(y===void 0&&!Dr(l,f))return!0;var b=c[f],v=b&&b[ce];if(v?v.t!==y:!vc(b,y))return!0}}var E=!!l[ce];return p.length!==Mr(l).length+(E?0:1)}function o(s){var l=s.k;if(l.length!==s.t.length)return!0;var c=Object.getOwnPropertyDescriptor(l,l.length-1);if(c&&!c.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function n(s){s.g&&Ze(3,JSON.stringify(Ut(s)))}var a={};Wu("ES5",{J:function(s,l){var c=Array.isArray(s),p=function(f,y){if(f){for(var b=Array(y.length),v=0;v<y.length;v++)Object.defineProperty(b,""+v,r(v,!0));return b}var E=Oc(y);delete E[ce];for(var A=Mr(E),R=0;R<A.length;R++){var I=A[R];E[I]=r(I,f||!!E[I].enumerable)}return Object.create(Object.getPrototypeOf(y),E)}(c,s),h={i:c?5:4,A:l?l.A:Fa(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,ce,{value:h,writable:!0}),p},S:function(s,l,c){c?Et(l)&&l[ce].A===s&&e(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var f=h[ce];if(f){var y=f.t,b=f.k,v=f.R,E=f.i;if(E===4)vr(b,function(O){O!==ce&&(y[O]!==void 0||Dr(y,O)?v[O]||p(b[O]):(v[O]=!0,Ft(f)))}),vr(y,function(O){b[O]!==void 0||Dr(b,O)||(v[O]=!1,Ft(f))});else if(E===5){if(o(f)&&(Ft(f),v.length=!0),b.length<y.length)for(var A=b.length;A<y.length;A++)v[A]=!1;else for(var R=y.length;R<b.length;R++)v[R]=!0;for(var I=Math.min(b.length,y.length),S=0;S<I;S++)b.hasOwnProperty(S)||(v[S]=!0),v[S]===void 0&&p(b[S])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?t(s):o(s)}})}var mc,No,Za=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Ku=typeof Map<"u",Gu=typeof Set<"u",gc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Sc=Za?Symbol.for("immer-nothing"):((mc={})["immer-nothing"]=!0,mc),yc=Za?Symbol.for("immer-draftable"):"__$immer_draftable",ce=Za?Symbol.for("immer-state"):"__$immer_state";var Zu=""+Object.prototype.constructor,Mr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,Oc=Object.getOwnPropertyDescriptors||function(r){var e={};return Mr(r).forEach(function(t){e[t]=Object.getOwnPropertyDescriptor(r,t)}),e},Ha={},To={get:function(r,e){if(e===ce)return r;var t=Ut(r);if(!Dr(t,e))return function(n,a,s){var l,c=fc(a,s);return c?"value"in c?c.value:(l=c.get)===null||l===void 0?void 0:l.call(n.k):void 0}(r,t,e);var o=t[e];return r.I||!et(o)?o:o===Ma(r.t,e)?(Ua(r),r.o[e]=za(r.A.h,o,r)):o},has:function(r,e){return e in Ut(r)},ownKeys:function(r){return Reflect.ownKeys(Ut(r))},set:function(r,e,t){var o=fc(Ut(r),e);if(o?.set)return o.set.call(r.k,t),!0;if(!r.P){var n=Ma(Ut(r),e),a=n?.[ce];if(a&&a.t===t)return r.o[e]=t,r.R[e]=!1,!0;if(vc(t,n)&&(t!==void 0||Dr(r.t,e)))return!0;Ua(r),Ft(r)}return r.o[e]===t&&(t!==void 0||e in r.o)||Number.isNaN(t)&&Number.isNaN(r.o[e])||(r.o[e]=t,r.R[e]=!0),!0},deleteProperty:function(r,e){return Ma(r.t,e)!==void 0||e in r.t?(r.R[e]=!1,Ua(r),Ft(r)):delete r.R[e],r.o&&delete r.o[e],!0},getOwnPropertyDescriptor:function(r,e){var t=Ut(r),o=Reflect.getOwnPropertyDescriptor(t,e);return o&&{writable:!0,configurable:r.i!==1||e!=="length",enumerable:o.enumerable,value:t[e]}},defineProperty:function(){Ze(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){Ze(12)}},_o={};vr(To,function(r,e){_o[r]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),_o.deleteProperty=function(r,e){return _o.set.call(this,r,e,void 0)},_o.set=function(r,e,t){return To.set.call(this,r[0],e,t,r[0])};var qu=function(){function r(t){var o=this;this.O=gc,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var l=a;a=n;var c=o;return function(E){var A=this;E===void 0&&(E=l);for(var R=arguments.length,I=Array(R>1?R-1:0),S=1;S<R;S++)I[S-1]=arguments[S];return c.produce(E,function(O){var w;return(w=a).call.apply(w,[A,O].concat(I))})}}var p;if(typeof a!="function"&&Ze(6),s!==void 0&&typeof s!="function"&&Ze(7),et(n)){var h=pc(o),f=za(o,n,void 0),y=!0;try{p=a(f),y=!1}finally{y?bi(h):Ba(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(E){return La(h,s),Da(E,h)},function(E){throw bi(h),E}):(La(h,s),Da(p,h))}if(!n||typeof n!="object"){if((p=a(n))===void 0&&(p=n),p===Sc&&(p=void 0),o.D&&Ka(p,!0),s){var b=[],v=[];dt("Patches").M(n,p,b,v),s(b,v)}return p}Ze(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),y=1;y<h;y++)f[y-1]=arguments[y];return o.produceWithPatches(p,function(b){return n.apply(void 0,[b].concat(f))})};var s,l,c=o.produce(n,a,function(p,h){s=p,l=h});return typeof Promise<"u"&&c instanceof Promise?c.then(function(p){return[p,s,l]}):[c,s,l]},typeof t?.useProxies=="boolean"&&this.setUseProxies(t.useProxies),typeof t?.autoFreeze=="boolean"&&this.setAutoFreeze(t.autoFreeze)}var e=r.prototype;return e.createDraft=function(t){et(t)||Ze(8),Et(t)&&(t=ju(t));var o=pc(this),n=za(this,t,void 0);return n[ce].C=!0,Ba(o),n},e.finishDraft=function(t,o){var n=t&&t[ce],a=n.A;return La(a,o),Da(void 0,a)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!gc&&Ze(20),this.O=t},e.applyPatches=function(t,o){var n;for(n=o.length-1;n>=0;n--){var a=o[n];if(a.path.length===0&&a.op==="replace"){t=a.value;break}}n>-1&&(o=o.slice(n+1));var s=dt("Patches").$;return Et(t)?s(t,o):this.produce(t,function(l){return s(l,o)})},r}(),Ke=new qu,Yu=Ke.produce,Zb=Ke.produceWithPatches.bind(Ke),qb=Ke.setAutoFreeze.bind(Ke),Yb=Ke.setUseProxies.bind(Ke),Xb=Ke.applyPatches.bind(Ke),Jb=Ke.createDraft.bind(Ke),Qb=Ke.finishDraft.bind(Ke),Si=Yu;function Bt(r){"@babel/helpers - typeof";return Bt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bt(r)}function qa(r,e){if(Bt(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var o=t.call(r,e||"default");if(Bt(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function Ya(r){var e=qa(r,"string");return Bt(e)==="symbol"?e:String(e)}function Xa(r,e,t){return e=Ya(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function wc(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),t.push.apply(t,o)}return t}function Oi(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?wc(Object(t),!0).forEach(function(o){Xa(r,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):wc(Object(t)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(t,o))})}return r}function Ne(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 Ec=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ja=function(){return Math.random().toString(36).substring(7).split("").join(".")},wi={INIT:"@@redux/INIT"+Ja(),REPLACE:"@@redux/REPLACE"+Ja(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ja()}};function Xu(r){if(typeof r!="object"||r===null)return!1;for(var e=r;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(r)===e}function Qa(r,e,t){var o;if(typeof e=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(Ne(0));if(typeof e=="function"&&typeof t>"u"&&(t=e,e=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(Ne(1));return t(Qa)(r,e)}if(typeof r!="function")throw new Error(Ne(2));var n=r,a=e,s=[],l=s,c=!1;function p(){l===s&&(l=s.slice())}function h(){if(c)throw new Error(Ne(3));return a}function f(E){if(typeof E!="function")throw new Error(Ne(4));if(c)throw new Error(Ne(5));var A=!0;return p(),l.push(E),function(){if(A){if(c)throw new Error(Ne(6));A=!1,p();var I=l.indexOf(E);l.splice(I,1),s=null}}}function y(E){if(!Xu(E))throw new Error(Ne(7));if(typeof E.type>"u")throw new Error(Ne(8));if(c)throw new Error(Ne(9));try{c=!0,a=n(a,E)}finally{c=!1}for(var A=s=l,R=0;R<A.length;R++){var I=A[R];I()}return E}function b(E){if(typeof E!="function")throw new Error(Ne(10));n=E,y({type:wi.REPLACE})}function v(){var E,A=f;return E={subscribe:function(I){if(typeof I!="object"||I===null)throw new Error(Ne(11));function S(){I.next&&I.next(h())}S();var O=A(S);return{unsubscribe:O}}},E[Ec]=function(){return this},E}return y({type:wi.INIT}),o={dispatch:y,subscribe:f,getState:h,replaceReducer:b},o[Ec]=v,o}function Ju(r){Object.keys(r).forEach(function(e){var t=r[e],o=t(void 0,{type:wi.INIT});if(typeof o>"u")throw new Error(Ne(12));if(typeof t(void 0,{type:wi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ne(13))})}function Cc(r){for(var e=Object.keys(r),t={},o=0;o<e.length;o++){var n=e[o];typeof r[n]=="function"&&(t[n]=r[n])}var a=Object.keys(t),s,l;try{Ju(t)}catch(c){l=c}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(0)var f;for(var y=!1,b={},v=0;v<a.length;v++){var E=a[v],A=t[E],R=p[E],I=A(R,h);if(typeof I>"u"){var S=h&&h.type;throw new Error(Ne(14))}b[E]=I,y=y||I!==R}return y=y||a.length!==Object.keys(p).length,y?b:p}}function Fr(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return e.length===0?function(o){return o}:e.length===1?e[0]:e.reduce(function(o,n){return function(){return o(n.apply(void 0,arguments))}})}function Ac(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return function(o){return function(){var n=o.apply(void 0,arguments),a=function(){throw new Error(Ne(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(c){return c(s)});return a=Fr.apply(void 0,l)(n.dispatch),Oi(Oi({},n),{},{dispatch:a})}}}function Rc(r){var e=function(o){var n=o.dispatch,a=o.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,r):s(l)}}};return e}var _c=Rc();_c.withExtraArgument=Rc;var es=_c;var $c=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(o[a]=n[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function o(){this.constructor=e}e.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)}}(),Qu=function(r,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,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 c([p,h])}}function c(p){if(o)throw new TypeError("Generator is already executing.");for(;t;)try{if(o=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 t.label++,{value:p[1],done:!1};case 5:t.label++,n=p[1],p=[0];continue;case 7:p=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){t=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){t.label=p[1];break}if(p[0]===6&&t.label<a[1]){t.label=a[1],a=p;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(p);break}a[2]&&t.ops.pop(),t.trys.pop();continue}p=e.call(r,t)}catch(h){p=[6,h],n=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Br=function(r,e){for(var t=0,o=e.length,n=r.length;t<o;t++,n++)r[n]=e[t];return r},ef=Object.defineProperty,tf=Object.defineProperties,rf=Object.getOwnPropertyDescriptors,Nc=Object.getOwnPropertySymbols,of=Object.prototype.hasOwnProperty,nf=Object.prototype.propertyIsEnumerable,Tc=function(r,e,t){return e in r?ef(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t},zt=function(r,e){for(var t in e||(e={}))of.call(e,t)&&Tc(r,t,e[t]);if(Nc)for(var o=0,n=Nc(e);o<n.length;o++){var t=n[o];nf.call(e,t)&&Tc(r,t,e[t])}return r},ts=function(r,e){return tf(r,rf(e))},af=function(r,e,t){return new Promise(function(o,n){var a=function(c){try{l(t.next(c))}catch(p){n(p)}},s=function(c){try{l(t.throw(c))}catch(p){n(p)}},l=function(c){return c.done?o(c.value):Promise.resolve(c.value).then(a,s)};l((t=t.apply(r,e)).next())})};var sf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Fr:Fr.apply(null,arguments)},yv=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};function lf(r){if(typeof r!="object"||r===null)return!1;var e=Object.getPrototypeOf(r);if(e===null)return!0;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return e===t}var cf=function(r){$c(e,r);function e(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var n=r.apply(this,t)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,Br([void 0],t[0].concat(this)))):new(e.bind.apply(e,Br([void 0],t.concat(this))))},e}(Array),df=function(r){$c(e,r);function e(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var n=r.apply(this,t)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,Br([void 0],t[0].concat(this)))):new(e.bind.apply(e,Br([void 0],t.concat(this))))},e}(Array);function is(r){return et(r)?Si(r,function(){}):r}function pf(r){return typeof r=="boolean"}function uf(){return function(e){return ff(e)}}function ff(r){r===void 0&&(r={});var e=r.thunk,t=e===void 0?!0:e,o=r.immutableCheck,n=o===void 0?!0:o,a=r.serializableCheck,s=a===void 0?!0:a,l=new cf;if(t&&(pf(t)?l.push(es):l.push(es.withExtraArgument(t.extraArgument))),0){if(n)var c;if(s)var p}return l}var rs=!0;function kc(r){var e=uf(),t=r||{},o=t.reducer,n=o===void 0?void 0:o,a=t.middleware,s=a===void 0?e():a,l=t.devTools,c=l===void 0?!0:l,p=t.preloadedState,h=p===void 0?void 0:p,f=t.enhancers,y=f===void 0?void 0:f,b;if(typeof n=="function")b=n;else if(lf(n))b=Cc(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 v=s;if(typeof v=="function"&&(v=v(e),!rs&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!rs&&v.some(function(O){return typeof O!="function"}))throw new Error("each middleware provided to configureStore must be a function");var E=Ac.apply(void 0,v),A=Fr;c&&(A=sf(zt({trace:!rs},typeof c=="object"&&c)));var R=new df(E),I=R;Array.isArray(y)?I=Br([E],y):typeof y=="function"&&(I=y(R));var S=A.apply(void 0,I);return Qa(b,h,S)}function Ht(r,e){function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];if(e){var a=e.apply(void 0,o);if(!a)throw new Error("prepareAction did not return an object");return zt(zt({type:r,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:r,payload:o[0]}}return t.toString=function(){return""+r},t.type=r,t.match=function(o){return o.type===r},t}function Lc(r){var e={},t=[],o,n={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,n},addMatcher:function(a,s){return t.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return o=a,n}};return r(n),[e,t,o]}function hf(r){return typeof r=="function"}function mf(r,e,t,o){t===void 0&&(t=[]);var n=typeof e=="function"?Lc(e):[e,t,o],a=n[0],s=n[1],l=n[2],c;if(hf(r))c=function(){return is(r())};else{var p=is(r);c=function(){return p}}function h(f,y){f===void 0&&(f=c());var b=Br([a[y.type]],s.filter(function(v){var E=v.matcher;return E(y)}).map(function(v){var E=v.reducer;return E}));return b.filter(function(v){return!!v}).length===0&&(b=[l]),b.reduce(function(v,E){if(E)if(Et(v)){var A=v,R=E(A,y);return R===void 0?v:R}else{if(et(v))return Si(v,function(I){return E(I,y)});var R=E(v,y);if(R===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return R}return v},f)}return h.getInitialState=c,h}function gf(r,e){return r+"/"+e}function Dc(r){var e=r.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var t=typeof r.initialState=="function"?r.initialState:is(r.initialState),o=r.reducers||{},n=Object.keys(o),a={},s={},l={};n.forEach(function(h){var f=o[h],y=gf(e,h),b,v;"reducer"in f?(b=f.reducer,v=f.prepare):b=f,a[h]=b,s[y]=b,l[h]=v?Ht(y,v):Ht(y)});function c(){var h=typeof r.extraReducers=="function"?Lc(r.extraReducers):[r.extraReducers],f=h[0],y=f===void 0?{}:f,b=h[1],v=b===void 0?[]:b,E=h[2],A=E===void 0?void 0:E,R=zt(zt({},y),s);return mf(t,function(I){for(var S in R)I.addCase(S,R[S]);for(var O=0,w=v;O<w.length;O++){var U=w[O];I.addMatcher(U.matcher,U.reducer)}A&&I.addDefaultCase(A)})}var p;return{name:e,reducer:function(h,f){return p||(p=c()),p(h,f)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=c()),p.getInitialState()}}}var yf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",bf=function(r){r===void 0&&(r=21);for(var e="",t=r;t--;)e+=yf[Math.random()*64|0];return e},vf=["name","message","stack","code"],os=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),Ic=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),xf=function(r){if(typeof r=="object"&&r!==null){for(var e={},t=0,o=vf;t<o.length;t++){var n=o[t];typeof r[n]=="string"&&(e[n]=r[n])}return e}return{message:String(r)}},Sv=function(){function r(e,t,o){var n=Ht(e+"/fulfilled",function(h,f,y,b){return{payload:h,meta:ts(zt({},b||{}),{arg:y,requestId:f,requestStatus:"fulfilled"})}}),a=Ht(e+"/pending",function(h,f,y){return{payload:void 0,meta:ts(zt({},y||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=Ht(e+"/rejected",function(h,f,y,b,v){return{payload:b,error:(o&&o.serializeError||xf)(h||"Rejected"),meta:ts(zt({},v||{}),{arg:y,requestId:f,rejectedWithValue:!!b,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,c=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,y,b){var v=o?.idGenerator?o.idGenerator(h):bf(),E=new c,A,R=!1;function I(O){A=O,E.abort()}var S=function(){return af(this,null,function(){var O,w,U,J,oe,Q,D;return Qu(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),J=(O=o?.condition)==null?void 0:O.call(o,h,{getState:y,extra:b}),Of(J)?[4,J]:[3,2];case 1:J=m.sent(),m.label=2;case 2:if(J===!1||E.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return R=!0,oe=new Promise(function(x,k){return E.signal.addEventListener("abort",function(){return k({name:"AbortError",message:A||"Aborted"})})}),f(a(v,h,(w=o?.getPendingMeta)==null?void 0:w.call(o,{requestId:v,arg:h},{getState:y,extra:b}))),[4,Promise.race([oe,Promise.resolve(t(h,{dispatch:f,getState:y,extra:b,requestId:v,signal:E.signal,abort:I,rejectWithValue:function(x,k){return new os(x,k)},fulfillWithValue:function(x,k){return new Ic(x,k)}})).then(function(x){if(x instanceof os)throw x;return x instanceof Ic?n(x.payload,v,h,x.meta):n(x,v,h)})])];case 3:return U=m.sent(),[3,5];case 4:return Q=m.sent(),U=Q instanceof os?s(null,v,h,Q.payload,Q.meta):s(Q,v,h),[3,5];case 5:return D=o&&!o.dispatchConditionRejection&&s.match(U)&&U.meta.condition,D||f(U),[2,U]}})})}();return Object.assign(S,{abort:I,requestId:v,arg:h,unwrap:function(){return S.then(Sf)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return r.withTypes=function(){return r},r}();function Sf(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function Of(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var Mc="listener",Uc="completed",Fc="cancelled",Ov="task-"+Fc,wv="task-"+Uc,Ev=Mc+"-"+Fc,Cv=Mc+"-"+Uc;var ns="listenerMiddleware";var Av=Ht(ns+"/add"),Rv=Ht(ns+"/removeAll"),_v=Ht(ns+"/remove");var Pc,Nv=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(Pc||(Pc=Promise.resolve())).then(r).catch(function(e){return setTimeout(function(){throw e},0)})},wf=function(r){return function(e){setTimeout(e,r)}},Tv=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:wf(10);xc();window.ftReduxStores||(window.ftReduxStores={});var Ct=class r{static get(e){var t;let o=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[o];if(yr(a))return a;if(n==null)return;let s=Dc({...n,reducers:(t=n.reducers)!==null&&t!==void 0?t:{}}),l=kc({reducer:(c,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...c,...p.overwrites}:s.reducer(c,p)});return window.ftReduxStores[n.name]=new r(s,l)}constructor(e,t){this.reduxSlice=e,this.reduxStore=t,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Ro,this.actions=new Proxy(this.reduxSlice.actions,{get:(o,n,a)=>{let s=n,l=o[s];return l?(...c)=>{let p=l(...c);return this.reduxStore.dispatch(p),p}:c=>{this.setState({[s]:c})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function Ef(){var r;for(let e of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))yr(e)&&e.clear()}var cs={};ee(cs,{scrollHelper:()=>Cf});var ss,Ei=new Map,ls=class{lock(e,t){if(t){let o=Ei.get(t);if(o==null||o===e)return Ei.set(t,e),t}}release(e,t){t&&Ei.get(t)===e&&Ei.delete(t)}findFirstScrollableParent(e){let t,o=n=>{var a;n.stopPropagation();let s,l;for(let c of n.composedPath()){let p=c,h=this.elementCanScroll(p);if(h&&p.clientHeight&&p.clientHeight<p.scrollHeight){s=p;break}else h&&l==null&&(l=p)}t=(a=s??l)!==null&&a!==void 0?a:document.body};return e.addEventListener("find-scrollable-parent",o),e.dispatchEvent(new Event("find-scrollable-parent",{composed:!0})),e.removeEventListener("find-scrollable-parent",o),t}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,t){let o=0;for(;t&&t.offsetParent!==e.offsetParent;)o+=t.offsetTop,t=t.offsetParent;return o+t.offsetTop-e.offsetTop}computeTopOffsetRatio(e,t){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return t;default:return 0}}scrollIntoViewIfPossible(e,t){let o=this.findFirstScrollableParent(e);if(e&&this.lock(this,o)){let n=this.getAbsoluteScrollOffset(o,e),a=n-o.clientHeight+e.clientHeight,s=n,l=$n(0,(s-o.scrollTop)/(s-a),1),c=this.computeTopOffsetRatio(t?.position,l)*(a-s)+s;o.scrollTo({behavior:t?.behavior,top:c})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,o);this.release(this,o)}};window.FluidTopicsScrollHelper=(ss=window.FluidTopicsScrollHelper)!==null&&ss!==void 0?ss:new ls;var Cf=window.FluidTopicsScrollHelper;var ds={};ee(ds,{shadowQuerySelector:()=>Af,shadowQuerySelectorAll:()=>Rf});function Af(r,e,...t){var o;let n=r.querySelector(e);for(let a of t)n=(o=n?.shadowRoot)===null||o===void 0?void 0:o.querySelector(a);return n}function Rf(r,e,...t){let o=[...r.querySelectorAll(e)];for(let n of t)o=o.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 o}var ps={};ee(ps,{serializeRequest:()=>Nf});function _f(r){return`"${r}"`}function Nf(r,e){var t,o,n,a,s,l,c,p,h;let f=new URLSearchParams({"content-lang":(t=e.contentLocale)!==null&&t!==void 0?t:"all"});((o=e.query)===null||o===void 0?void 0:o.length)>0&&f.append("query",e.query),e.scope&&e.scope!=="DEFAULT"&&f.append("scope",e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&f.append("virtual-field",e.virtualField.toLowerCase()),((n=e.sort)===null||n===void 0?void 0:n.length)>0&&e.sort[0].key==="ft:lastEdition"&&f.append("sort","last_update");let y=(s=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(A=>A.valueFilter))!==null&&s!==void 0?s:[];if(y.length>0){let A=y.map(R=>{var I,S;let O=((S=(I=R.valueFilter)===null||I===void 0?void 0:I.values)!==null&&S!==void 0?S:[]).map(w=>w.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*")).map(w=>encodeURIComponent(_f(w))).join("_");return`${R.key}~${O}`}).join("*");f.append("value-filters",A)}let b=(c=(l=e.metadataFilters)===null||l===void 0?void 0:l.filter(A=>A.dateFilter))!==null&&c!==void 0?c:[];if(b.length>0){let A=b.map(R=>{var I;return`${R.key}~${(I=R.dateFilter)===null||I===void 0?void 0:I.type.toLowerCase()}`}).join("*");f.append("date-filters",A)}let v=(h=(p=e.metadataFilters)===null||p===void 0?void 0:p.filter(A=>A.rangeFilter))!==null&&h!==void 0?h:[];if(v.length>0){let A=v.map(R=>{var I,S;return`${R.key}~${(I=R.rangeFilter)===null||I===void 0?void 0:I.from}_${(S=R.rangeFilter)===null||S===void 0?void 0:S.to}`}).join("*");f.append("range-filters",A)}return new URL(`${r.replace(/\/+$/,"")}/search?${f.toString()}`).href}var us={};ee(us,{toFtFormComponent:()=>xr});var Ci=Symbol("elementInternals");function xr(r,e){class t extends r{static get formAssociated(){return!0}get form(){return this[Ci].form}constructor(...n){super(n),this[Ci]=this.attachInternals(),this[Ci].role=e}setFormValue(n){this[Ci].setFormValue(n)}}return t}var fs={};ee(fs,{DateFormatter:()=>zr});var zr=class{static format(e,t,o,n){return window.moment?window.moment(e).locale(t).format(this.getDateFormat(o,n)):e}static getDateFormat(e,t){return e?t?"lll":"ll":t?"L LT":"L"}};var hs,ms,gs,ys,Io=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((gs=(ms=(hs=window.safari)===null||hs===void 0?void 0:hs.pushNotification)===null||ms===void 0?void 0:ms.toString())!==null&&gs!==void 0?gs:"")==="[object SafariRemoteNotification]",Tf="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(ys=window.ftGlobals)!==null&&ys!==void 0?ys:{lit:bn,litDecorators:xn,litRepeat:On,litClassMap:wn,litStyleMap:En,litUnsafeHTML:An,wcUtils:{...Nn,..._n,...Tn,...fs,...In,...Ln,...da,...fa,...Ea,...ca,..._a,...Aa,...nc,...kn,...Ia,...$a,...sc,...ka,...as,...Ca,...cs,...ds,...ps,...us,isSafari:Io,isTouchScreen:Tf,setVariable:C}};var qe;(function(r){r.FEEDBACK="FEEDBACK",r.RATING="RATING",r.PRINT="PRINT",r.BOOKMARK="BOOKMARK",r.COLLECTIONS="COLLECTIONS",r.PERSONAL_BOOKS="PERSONAL_BOOKS"})(qe||(qe={}));var If=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},vs=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},bs=Symbol("registerInterval");function Pf(r){var e;class t extends r{constructor(){super(...arguments),this[e]=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 vs)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=bs,If([z()],t.prototype,"stateManager",void 0),t}var Wt=class extends Pf(Ge){};var Bc=i.extend("--ft-ripple-color","",N.colorContent),W={color:Bc,backgroundColor:i.extend("--ft-ripple-background-color","",Bc),opacityContentOnSurfacePressed:i.external(N.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.external(N.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.external(N.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.external(N.opacityContentOnSurfaceSelected,"Design system"),borderRadius:i.create("--ft-ripple-border-radius","","SIZE","0px")},zc=i.extend("--ft-ripple-color","",N.colorPrimary),Hc={color:zc,backgroundColor:i.extend("--ft-ripple-background-color","",zc)},Wc=i.extend("--ft-ripple-color","",N.colorSecondary),Vc={color:Wc,backgroundColor:i.extend("--ft-ripple-background-color","",Wc)},jc=P`
|
|
50
|
+
`;var dc={};var Ma={};ee(Ma,{ParametrizedLabelResolver:()=>Ao});var Ao=class r{constructor(e,t){this.defaultLabels=e,this.labels=t}resolve(e,...t){var o,n;e=this.resolvePluralKey(e,t);let a=(n=(o=this.labels[e])!==null&&o!==void 0?o:this.defaultLabels[e])!==null&&n!==void 0?n:"";return r.replaceParameters(a,...t)}static replaceParameters(e,...t){return t.forEach((o,n)=>e=e.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>r.formatValue(o,s))),e}resolvePluralKey(e,t){for(let o of t)if(typeof o=="number"){let n=`${String(e)}[\\=${o}]`;if(n in this.labels||n in this.defaultLabels)return n}return e}static formatValue(e,t){return e instanceof Date?r.formatDate(e,t):e??""}static formatDate(e,t){let o=n=>t?.includes("date")?e.toLocaleDateString(n):t?.includes("time")?e.toLocaleTimeString(n):e.toLocaleString(n);try{return o(document.documentElement.lang)}catch{return o()}}};var cs={};ee(cs,{FtCommandQueue:()=>_o,FtLitElementRedux:()=>Ze,FtReduxStore:()=>At,clearAllStores:()=>Tf,isFtReduxStore:()=>br,redux:()=>ce,reduxEventListener:()=>Ro,reduxReactive:()=>ju});var ju=()=>(r,e)=>{var t;let o=r.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(t=o.reduxReactiveProperties)===null||t===void 0||t.add(e)},ce=r=>{let e=r??{};return(t,o)=>{var n;let a={hasChanged:go,attribute:!1,...e};y(a)(t,o);let s=t.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(n=e.selector)!==null&&n!==void 0?n:l=>l[o],store:e.store})}},Ro=r=>(e,t)=>{let o=e.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(t,r)};var _o=class{constructor(){this.queue=[]}add(e,t=!1){t&&(this.queue=this.queue.filter(o=>o.type!==e.type)),this.queue.push(e)}consume(e){let t=this.queue.find(o=>o.type===e);return t&&(this.queue=this.queue.filter(o=>o!==t)),t}};function br(r){var e;return(e=r?.isFtReduxStore)!==null&&e!==void 0?e:!1}var pc,uc,fc,vi=Symbol("internalReduxEventsUnsubscribers"),Ut=Symbol("internalStoresUnsubscribers"),vr=Symbol("internalStores"),Ze=class extends H{constructor(){super(...arguments),this[pc]=new Map,this[uc]=new Map,this[fc]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(t=>e.has(t))&&this.updateFromStores()}getUnnamedStore(){if(this[vr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[vr].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[vr].get(e)}addStore(e,t){var o;t=(o=t??(br(e)?e.name:void 0))!==null&&o!==void 0?o:"default-store",this.unsubscribeFromStore(t),this.setupStore(t,e)}removeStore(e){let t=typeof e=="string"?e:e.name;this.unsubscribeFromStore(t),this[vr].delete(t)}setupStore(e,t){this[vr].set(e,t),this.subscribeToStore(e,t),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[vr].forEach((e,t)=>this.subscribeToStore(t,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,t)=>{let o=this.constructor.getPropertyOptions(t);if(!o?.attribute||!this.hasAttribute(typeof o?.attribute=="string"?o.attribute:t)){let n=this.getStore(e.store);n&&(e.store?this[Ut].has(e.store):this[Ut].size>0)&&(this[t]=e.selector(n.getState(),this))}})}subscribeToStore(e,t){var o;this[Ut].set(e,t.subscribe(()=>this.updateFromStores())),br(t)&&t.eventBus&&((o=this.reduxConstructor.reduxEventListeners)===null||o===void 0||o.forEach((n,a)=>{if(typeof this[a]=="function"&&(!n.store||t.name===n.store)){let s=l=>this[a](l);t.eventBus.addEventListener(n.eventName,s),this[vi].push(()=>t.eventBus.removeEventListener(n.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Ut].forEach((e,t)=>this.unsubscribeFromStore(t)),this[vi].forEach(e=>e()),this[vi]=[]}unsubscribeFromStore(e){this[Ut].has(e)&&this[Ut].get(e)(),this[Ut].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};pc=Ut,uc=vr,fc=vi;Ze.reduxProperties=new Map;Ze.reduxReactiveProperties=new Set;Ze.reduxEventListeners=new Map;function qe(r){for(var e=arguments.length,t=Array(e>1?e-1:0),o=1;o<e;o++)t[o-1]=arguments[o];if(0)var n,a;throw Error("[Immer] minified error nr: "+r+(t.length?" "+t.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ct(r){return!!r&&!!r[de]}function tt(r){var e;return!!r&&(function(t){if(!t||typeof t!="object")return!1;var o=Object.getPrototypeOf(t);if(o===null)return!0;var n=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===Qu}(r)||Array.isArray(r)||!!r[xc]||!!(!((e=r.constructor)===null||e===void 0)&&e[xc])||Ka(r)||Ga(r))}function xr(r,e,t){t===void 0&&(t=!1),Fr(r)===0?(t?Object.keys:Ur)(r).forEach(function(o){t&&typeof o=="symbol"||e(o,r[o],r)}):r.forEach(function(o,n){return e(n,o,r)})}function Fr(r){var e=r[de];return e?e.i>3?e.i-4:e.i:Array.isArray(r)?1:Ka(r)?2:Ga(r)?3:0}function Mr(r,e){return Fr(r)===2?r.has(e):Object.prototype.hasOwnProperty.call(r,e)}function Ku(r,e){return Fr(r)===2?r.get(e):r[e]}function Sc(r,e,t){var o=Fr(r);o===2?r.set(e,t):o===3?r.add(t):r[e]=t}function Oc(r,e){return r===e?r!==0||1/r==1/e:r!=r&&e!=e}function Ka(r){return Xu&&r instanceof Map}function Ga(r){return Ju&&r instanceof Set}function Ft(r){return r.o||r.t}function Za(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var e=Cc(r);delete e[de];for(var t=Ur(e),o=0;o<t.length;o++){var n=t[o],a=e[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:r[n]})}return Object.create(Object.getPrototypeOf(r),e)}function qa(r,e){return e===void 0&&(e=!1),Ya(r)||Ct(r)||!tt(r)||(Fr(r)>1&&(r.set=r.add=r.clear=r.delete=Gu),Object.freeze(r),e&&xr(r,function(t,o){return qa(o,!0)},!0)),r}function Gu(){qe(2)}function Ya(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function pt(r){var e=ja[r];return e||qe(18,r),e}function Zu(r,e){ja[r]||(ja[r]=e)}function Ha(){return No}function Ua(r,e){e&&(pt("Patches"),r.u=[],r.s=[],r.v=e)}function xi(r){Wa(r),r.p.forEach(qu),r.p=null}function Wa(r){r===No&&(No=r.l)}function hc(r){return No={p:[],l:No,h:r,m:!0,_:0}}function qu(r){var e=r[de];e.i===0||e.i===1?e.j():e.g=!0}function Fa(r,e){e._=e.p.length;var t=e.p[0],o=r!==void 0&&r!==t;return e.h.O||pt("ES5").S(e,r,o),o?(t[de].P&&(xi(e),qe(4)),tt(r)&&(r=Si(e,r),e.l||Oi(e,r)),e.u&&pt("Patches").M(t[de].t,r,e.u,e.s)):r=Si(e,t,[]),xi(e),e.u&&e.v(e.u,e.s),r!==Ec?r:void 0}function Si(r,e,t){if(Ya(e))return e;var o=e[de];if(!o)return xr(e,function(l,c){return mc(r,o,e,l,c,t)},!0),e;if(o.A!==r)return e;if(!o.P)return Oi(r,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var n=o.i===4||o.i===5?o.o=Za(o.k):o.o,a=n,s=!1;o.i===3&&(a=new Set(n),n.clear(),s=!0),xr(a,function(l,c){return mc(r,o,n,l,c,t,s)}),Oi(r,n,!1),t&&r.u&&pt("Patches").N(o,t,r.u,r.s)}return o.o}function mc(r,e,t,o,n,a,s){if(Ct(n)){var l=Si(r,n,a&&e&&e.i!==3&&!Mr(e.R,o)?a.concat(o):void 0);if(Sc(t,o,l),!Ct(l))return;r.m=!1}else s&&t.add(n);if(tt(n)&&!Ya(n)){if(!r.h.D&&r._<1)return;Si(r,n),e&&e.A.l||Oi(r,n)}}function Oi(r,e,t){t===void 0&&(t=!1),!r.l&&r.h.D&&r.m&&qa(e,t)}function Ba(r,e){var t=r[de];return(t?Ft(t):r)[e]}function gc(r,e){if(e in r)for(var t=Object.getPrototypeOf(r);t;){var o=Object.getOwnPropertyDescriptor(t,e);if(o)return o;t=Object.getPrototypeOf(t)}}function Bt(r){r.P||(r.P=!0,r.l&&Bt(r.l))}function za(r){r.o||(r.o=Za(r.t))}function Va(r,e,t){var o=Ka(e)?pt("MapSet").F(e,t):Ga(e)?pt("MapSet").T(e,t):r.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:Ha(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},c=l,p=Io;s&&(c=[l],p=To);var h=Proxy.revocable(c,p),f=h.revoke,g=h.proxy;return l.k=g,l.j=f,g}(e,t):pt("ES5").J(e,t);return(t?t.A:Ha()).p.push(o),o}function Yu(r){return Ct(r)||qe(22,r),function e(t){if(!tt(t))return t;var o,n=t[de],a=Fr(t);if(n){if(!n.P&&(n.i<4||!pt("ES5").K(n)))return n.t;n.I=!0,o=yc(t,a),n.I=!1}else o=yc(t,a);return xr(o,function(s,l){n&&Ku(n.t,s)===l||Sc(o,s,e(l))}),a===3?new Set(o):o}(r)}function yc(r,e){switch(e){case 2:return new Map(r);case 3:return Array.from(r)}return Za(r)}function wc(){function r(s,l){var c=a[s];return c?c.enumerable=l:a[s]=c={configurable:!0,enumerable:l,get:function(){var p=this[de];return Io.get(p,s)},set:function(p){var h=this[de];Io.set(h,s,p)}},c}function e(s){for(var l=s.length-1;l>=0;l--){var c=s[l][de];if(!c.P)switch(c.i){case 5:o(c)&&Bt(c);break;case 4:t(c)&&Bt(c)}}}function t(s){for(var l=s.t,c=s.k,p=Ur(c),h=p.length-1;h>=0;h--){var f=p[h];if(f!==de){var g=l[f];if(g===void 0&&!Mr(l,f))return!0;var b=c[f],v=b&&b[de];if(v?v.t!==g:!Oc(b,g))return!0}}var w=!!l[de];return p.length!==Ur(l).length+(w?0:1)}function o(s){var l=s.k;if(l.length!==s.t.length)return!0;var c=Object.getOwnPropertyDescriptor(l,l.length-1);if(c&&!c.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function n(s){s.g&&qe(3,JSON.stringify(Ft(s)))}var a={};Zu("ES5",{J:function(s,l){var c=Array.isArray(s),p=function(f,g){if(f){for(var b=Array(g.length),v=0;v<g.length;v++)Object.defineProperty(b,""+v,r(v,!0));return b}var w=Cc(g);delete w[de];for(var I=Ur(w),A=0;A<I.length;A++){var N=I[A];w[N]=r(N,f||!!w[N].enumerable)}return Object.create(Object.getPrototypeOf(g),w)}(c,s),h={i:c?5:4,A:l?l.A:Ha(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,de,{value:h,writable:!0}),p},S:function(s,l,c){c?Ct(l)&&l[de].A===s&&e(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var f=h[de];if(f){var g=f.t,b=f.k,v=f.R,w=f.i;if(w===4)xr(b,function(O){O!==de&&(g[O]!==void 0||Mr(g,O)?v[O]||p(b[O]):(v[O]=!0,Bt(f)))}),xr(g,function(O){b[O]!==void 0||Mr(b,O)||(v[O]=!1,Bt(f))});else if(w===5){if(o(f)&&(Bt(f),v.length=!0),b.length<g.length)for(var I=b.length;I<g.length;I++)v[I]=!1;else for(var A=g.length;A<b.length;A++)v[A]=!0;for(var N=Math.min(b.length,g.length),S=0;S<N;S++)b.hasOwnProperty(S)||(v[S]=!0),v[S]===void 0&&p(b[S])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?t(s):o(s)}})}var bc,No,Xa=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Xu=typeof Map<"u",Ju=typeof Set<"u",vc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ec=Xa?Symbol.for("immer-nothing"):((bc={})["immer-nothing"]=!0,bc),xc=Xa?Symbol.for("immer-draftable"):"__$immer_draftable",de=Xa?Symbol.for("immer-state"):"__$immer_state";var Qu=""+Object.prototype.constructor,Ur=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,Cc=Object.getOwnPropertyDescriptors||function(r){var e={};return Ur(r).forEach(function(t){e[t]=Object.getOwnPropertyDescriptor(r,t)}),e},ja={},Io={get:function(r,e){if(e===de)return r;var t=Ft(r);if(!Mr(t,e))return function(n,a,s){var l,c=gc(a,s);return c?"value"in c?c.value:(l=c.get)===null||l===void 0?void 0:l.call(n.k):void 0}(r,t,e);var o=t[e];return r.I||!tt(o)?o:o===Ba(r.t,e)?(za(r),r.o[e]=Va(r.A.h,o,r)):o},has:function(r,e){return e in Ft(r)},ownKeys:function(r){return Reflect.ownKeys(Ft(r))},set:function(r,e,t){var o=gc(Ft(r),e);if(o?.set)return o.set.call(r.k,t),!0;if(!r.P){var n=Ba(Ft(r),e),a=n?.[de];if(a&&a.t===t)return r.o[e]=t,r.R[e]=!1,!0;if(Oc(t,n)&&(t!==void 0||Mr(r.t,e)))return!0;za(r),Bt(r)}return r.o[e]===t&&(t!==void 0||e in r.o)||Number.isNaN(t)&&Number.isNaN(r.o[e])||(r.o[e]=t,r.R[e]=!0),!0},deleteProperty:function(r,e){return Ba(r.t,e)!==void 0||e in r.t?(r.R[e]=!1,za(r),Bt(r)):delete r.R[e],r.o&&delete r.o[e],!0},getOwnPropertyDescriptor:function(r,e){var t=Ft(r),o=Reflect.getOwnPropertyDescriptor(t,e);return o&&{writable:!0,configurable:r.i!==1||e!=="length",enumerable:o.enumerable,value:t[e]}},defineProperty:function(){qe(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){qe(12)}},To={};xr(Io,function(r,e){To[r]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),To.deleteProperty=function(r,e){return To.set.call(this,r,e,void 0)},To.set=function(r,e,t){return Io.set.call(this,r[0],e,t,r[0])};var ef=function(){function r(t){var o=this;this.O=vc,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var l=a;a=n;var c=o;return function(w){var I=this;w===void 0&&(w=l);for(var A=arguments.length,N=Array(A>1?A-1:0),S=1;S<A;S++)N[S-1]=arguments[S];return c.produce(w,function(O){var E;return(E=a).call.apply(E,[I,O].concat(N))})}}var p;if(typeof a!="function"&&qe(6),s!==void 0&&typeof s!="function"&&qe(7),tt(n)){var h=hc(o),f=Va(o,n,void 0),g=!0;try{p=a(f),g=!1}finally{g?xi(h):Wa(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(w){return Ua(h,s),Fa(w,h)},function(w){throw xi(h),w}):(Ua(h,s),Fa(p,h))}if(!n||typeof n!="object"){if((p=a(n))===void 0&&(p=n),p===Ec&&(p=void 0),o.D&&qa(p,!0),s){var b=[],v=[];pt("Patches").M(n,p,b,v),s(b,v)}return p}qe(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),g=1;g<h;g++)f[g-1]=arguments[g];return o.produceWithPatches(p,function(b){return n.apply(void 0,[b].concat(f))})};var s,l,c=o.produce(n,a,function(p,h){s=p,l=h});return typeof Promise<"u"&&c instanceof Promise?c.then(function(p){return[p,s,l]}):[c,s,l]},typeof t?.useProxies=="boolean"&&this.setUseProxies(t.useProxies),typeof t?.autoFreeze=="boolean"&&this.setAutoFreeze(t.autoFreeze)}var e=r.prototype;return e.createDraft=function(t){tt(t)||qe(8),Ct(t)&&(t=Yu(t));var o=hc(this),n=Va(this,t,void 0);return n[de].C=!0,Wa(o),n},e.finishDraft=function(t,o){var n=t&&t[de],a=n.A;return Ua(a,o),Fa(void 0,a)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!vc&&qe(20),this.O=t},e.applyPatches=function(t,o){var n;for(n=o.length-1;n>=0;n--){var a=o[n];if(a.path.length===0&&a.op==="replace"){t=a.value;break}}n>-1&&(o=o.slice(n+1));var s=pt("Patches").$;return Ct(t)?s(t,o):this.produce(t,function(l){return s(l,o)})},r}(),Ge=new ef,tf=Ge.produce,tv=Ge.produceWithPatches.bind(Ge),rv=Ge.setAutoFreeze.bind(Ge),ov=Ge.setUseProxies.bind(Ge),iv=Ge.applyPatches.bind(Ge),nv=Ge.createDraft.bind(Ge),av=Ge.finishDraft.bind(Ge),wi=tf;function zt(r){"@babel/helpers - typeof";return zt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zt(r)}function Ja(r,e){if(zt(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var o=t.call(r,e||"default");if(zt(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function Qa(r){var e=Ja(r,"string");return zt(e)==="symbol"?e:String(e)}function es(r,e,t){return e=Qa(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Ac(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),t.push.apply(t,o)}return t}function Ei(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Ac(Object(t),!0).forEach(function(o){es(r,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Ac(Object(t)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(t,o))})}return r}function Ne(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 Rc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ts=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ci={INIT:"@@redux/INIT"+ts(),REPLACE:"@@redux/REPLACE"+ts(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ts()}};function rf(r){if(typeof r!="object"||r===null)return!1;for(var e=r;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(r)===e}function rs(r,e,t){var o;if(typeof e=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(Ne(0));if(typeof e=="function"&&typeof t>"u"&&(t=e,e=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(Ne(1));return t(rs)(r,e)}if(typeof r!="function")throw new Error(Ne(2));var n=r,a=e,s=[],l=s,c=!1;function p(){l===s&&(l=s.slice())}function h(){if(c)throw new Error(Ne(3));return a}function f(w){if(typeof w!="function")throw new Error(Ne(4));if(c)throw new Error(Ne(5));var I=!0;return p(),l.push(w),function(){if(I){if(c)throw new Error(Ne(6));I=!1,p();var N=l.indexOf(w);l.splice(N,1),s=null}}}function g(w){if(!rf(w))throw new Error(Ne(7));if(typeof w.type>"u")throw new Error(Ne(8));if(c)throw new Error(Ne(9));try{c=!0,a=n(a,w)}finally{c=!1}for(var I=s=l,A=0;A<I.length;A++){var N=I[A];N()}return w}function b(w){if(typeof w!="function")throw new Error(Ne(10));n=w,g({type:Ci.REPLACE})}function v(){var w,I=f;return w={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(Ne(11));function S(){N.next&&N.next(h())}S();var O=I(S);return{unsubscribe:O}}},w[Rc]=function(){return this},w}return g({type:Ci.INIT}),o={dispatch:g,subscribe:f,getState:h,replaceReducer:b},o[Rc]=v,o}function of(r){Object.keys(r).forEach(function(e){var t=r[e],o=t(void 0,{type:Ci.INIT});if(typeof o>"u")throw new Error(Ne(12));if(typeof t(void 0,{type:Ci.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ne(13))})}function _c(r){for(var e=Object.keys(r),t={},o=0;o<e.length;o++){var n=e[o];typeof r[n]=="function"&&(t[n]=r[n])}var a=Object.keys(t),s,l;try{of(t)}catch(c){l=c}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(0)var f;for(var g=!1,b={},v=0;v<a.length;v++){var w=a[v],I=t[w],A=p[w],N=I(A,h);if(typeof N>"u"){var S=h&&h.type;throw new Error(Ne(14))}b[w]=N,g=g||N!==A}return g=g||a.length!==Object.keys(p).length,g?b:p}}function Br(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return e.length===0?function(o){return o}:e.length===1?e[0]:e.reduce(function(o,n){return function(){return o(n.apply(void 0,arguments))}})}function Tc(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return function(o){return function(){var n=o.apply(void 0,arguments),a=function(){throw new Error(Ne(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(c){return c(s)});return a=Br.apply(void 0,l)(n.dispatch),Ei(Ei({},n),{},{dispatch:a})}}}function Nc(r){var e=function(o){var n=o.dispatch,a=o.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,r):s(l)}}};return e}var Ic=Nc();Ic.withExtraArgument=Nc;var os=Ic;var Dc=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(o[a]=n[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function o(){this.constructor=e}e.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)}}(),nf=function(r,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,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 c([p,h])}}function c(p){if(o)throw new TypeError("Generator is already executing.");for(;t;)try{if(o=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 t.label++,{value:p[1],done:!1};case 5:t.label++,n=p[1],p=[0];continue;case 7:p=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){t=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){t.label=p[1];break}if(p[0]===6&&t.label<a[1]){t.label=a[1],a=p;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(p);break}a[2]&&t.ops.pop(),t.trys.pop();continue}p=e.call(r,t)}catch(h){p=[6,h],n=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},zr=function(r,e){for(var t=0,o=e.length,n=r.length;t<o;t++,n++)r[n]=e[t];return r},af=Object.defineProperty,sf=Object.defineProperties,lf=Object.getOwnPropertyDescriptors,Pc=Object.getOwnPropertySymbols,cf=Object.prototype.hasOwnProperty,df=Object.prototype.propertyIsEnumerable,$c=function(r,e,t){return e in r?af(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t},Ht=function(r,e){for(var t in e||(e={}))cf.call(e,t)&&$c(r,t,e[t]);if(Pc)for(var o=0,n=Pc(e);o<n.length;o++){var t=n[o];df.call(e,t)&&$c(r,t,e[t])}return r},is=function(r,e){return sf(r,lf(e))},pf=function(r,e,t){return new Promise(function(o,n){var a=function(c){try{l(t.next(c))}catch(p){n(p)}},s=function(c){try{l(t.throw(c))}catch(p){n(p)}},l=function(c){return c.done?o(c.value):Promise.resolve(c.value).then(a,s)};l((t=t.apply(r,e)).next())})};var uf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Br:Br.apply(null,arguments)},Ev=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};function ff(r){if(typeof r!="object"||r===null)return!1;var e=Object.getPrototypeOf(r);if(e===null)return!0;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return e===t}var hf=function(r){Dc(e,r);function e(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var n=r.apply(this,t)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,zr([void 0],t[0].concat(this)))):new(e.bind.apply(e,zr([void 0],t.concat(this))))},e}(Array),mf=function(r){Dc(e,r);function e(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var n=r.apply(this,t)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,zr([void 0],t[0].concat(this)))):new(e.bind.apply(e,zr([void 0],t.concat(this))))},e}(Array);function ss(r){return tt(r)?wi(r,function(){}):r}function gf(r){return typeof r=="boolean"}function yf(){return function(e){return bf(e)}}function bf(r){r===void 0&&(r={});var e=r.thunk,t=e===void 0?!0:e,o=r.immutableCheck,n=o===void 0?!0:o,a=r.serializableCheck,s=a===void 0?!0:a,l=new hf;if(t&&(gf(t)?l.push(os):l.push(os.withExtraArgument(t.extraArgument))),0){if(n)var c;if(s)var p}return l}var ns=!0;function Mc(r){var e=yf(),t=r||{},o=t.reducer,n=o===void 0?void 0:o,a=t.middleware,s=a===void 0?e():a,l=t.devTools,c=l===void 0?!0:l,p=t.preloadedState,h=p===void 0?void 0:p,f=t.enhancers,g=f===void 0?void 0:f,b;if(typeof n=="function")b=n;else if(ff(n))b=_c(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 v=s;if(typeof v=="function"&&(v=v(e),!ns&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ns&&v.some(function(O){return typeof O!="function"}))throw new Error("each middleware provided to configureStore must be a function");var w=Tc.apply(void 0,v),I=Br;c&&(I=uf(Ht({trace:!ns},typeof c=="object"&&c)));var A=new mf(w),N=A;Array.isArray(g)?N=zr([w],g):typeof g=="function"&&(N=g(A));var S=I.apply(void 0,N);return rs(b,h,S)}function Wt(r,e){function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];if(e){var a=e.apply(void 0,o);if(!a)throw new Error("prepareAction did not return an object");return Ht(Ht({type:r,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:r,payload:o[0]}}return t.toString=function(){return""+r},t.type=r,t.match=function(o){return o.type===r},t}function Uc(r){var e={},t=[],o,n={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,n},addMatcher:function(a,s){return t.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return o=a,n}};return r(n),[e,t,o]}function vf(r){return typeof r=="function"}function xf(r,e,t,o){t===void 0&&(t=[]);var n=typeof e=="function"?Uc(e):[e,t,o],a=n[0],s=n[1],l=n[2],c;if(vf(r))c=function(){return ss(r())};else{var p=ss(r);c=function(){return p}}function h(f,g){f===void 0&&(f=c());var b=zr([a[g.type]],s.filter(function(v){var w=v.matcher;return w(g)}).map(function(v){var w=v.reducer;return w}));return b.filter(function(v){return!!v}).length===0&&(b=[l]),b.reduce(function(v,w){if(w)if(Ct(v)){var I=v,A=w(I,g);return A===void 0?v:A}else{if(tt(v))return wi(v,function(N){return w(N,g)});var A=w(v,g);if(A===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return A}return v},f)}return h.getInitialState=c,h}function Sf(r,e){return r+"/"+e}function Fc(r){var e=r.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var t=typeof r.initialState=="function"?r.initialState:ss(r.initialState),o=r.reducers||{},n=Object.keys(o),a={},s={},l={};n.forEach(function(h){var f=o[h],g=Sf(e,h),b,v;"reducer"in f?(b=f.reducer,v=f.prepare):b=f,a[h]=b,s[g]=b,l[h]=v?Wt(g,v):Wt(g)});function c(){var h=typeof r.extraReducers=="function"?Uc(r.extraReducers):[r.extraReducers],f=h[0],g=f===void 0?{}:f,b=h[1],v=b===void 0?[]:b,w=h[2],I=w===void 0?void 0:w,A=Ht(Ht({},g),s);return xf(t,function(N){for(var S in A)N.addCase(S,A[S]);for(var O=0,E=v;O<E.length;O++){var U=E[O];N.addMatcher(U.matcher,U.reducer)}I&&N.addDefaultCase(I)})}var p;return{name:e,reducer:function(h,f){return p||(p=c()),p(h,f)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=c()),p.getInitialState()}}}var Of="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",wf=function(r){r===void 0&&(r=21);for(var e="",t=r;t--;)e+=Of[Math.random()*64|0];return e},Ef=["name","message","stack","code"],as=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),kc=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),Cf=function(r){if(typeof r=="object"&&r!==null){for(var e={},t=0,o=Ef;t<o.length;t++){var n=o[t];typeof r[n]=="string"&&(e[n]=r[n])}return e}return{message:String(r)}},_v=function(){function r(e,t,o){var n=Wt(e+"/fulfilled",function(h,f,g,b){return{payload:h,meta:is(Ht({},b||{}),{arg:g,requestId:f,requestStatus:"fulfilled"})}}),a=Wt(e+"/pending",function(h,f,g){return{payload:void 0,meta:is(Ht({},g||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=Wt(e+"/rejected",function(h,f,g,b,v){return{payload:b,error:(o&&o.serializeError||Cf)(h||"Rejected"),meta:is(Ht({},v||{}),{arg:g,requestId:f,rejectedWithValue:!!b,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,c=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,g,b){var v=o?.idGenerator?o.idGenerator(h):wf(),w=new c,I,A=!1;function N(O){I=O,w.abort()}var S=function(){return pf(this,null,function(){var O,E,U,J,oe,Q,D;return nf(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),J=(O=o?.condition)==null?void 0:O.call(o,h,{getState:g,extra:b}),Rf(J)?[4,J]:[3,2];case 1:J=m.sent(),m.label=2;case 2:if(J===!1||w.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return A=!0,oe=new Promise(function(x,k){return w.signal.addEventListener("abort",function(){return k({name:"AbortError",message:I||"Aborted"})})}),f(a(v,h,(E=o?.getPendingMeta)==null?void 0:E.call(o,{requestId:v,arg:h},{getState:g,extra:b}))),[4,Promise.race([oe,Promise.resolve(t(h,{dispatch:f,getState:g,extra:b,requestId:v,signal:w.signal,abort:N,rejectWithValue:function(x,k){return new as(x,k)},fulfillWithValue:function(x,k){return new kc(x,k)}})).then(function(x){if(x instanceof as)throw x;return x instanceof kc?n(x.payload,v,h,x.meta):n(x,v,h)})])];case 3:return U=m.sent(),[3,5];case 4:return Q=m.sent(),U=Q instanceof as?s(null,v,h,Q.payload,Q.meta):s(Q,v,h),[3,5];case 5:return D=o&&!o.dispatchConditionRejection&&s.match(U)&&U.meta.condition,D||f(U),[2,U]}})})}();return Object.assign(S,{abort:N,requestId:v,arg:h,unwrap:function(){return S.then(Af)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return r.withTypes=function(){return r},r}();function Af(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function Rf(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var Bc="listener",zc="completed",Hc="cancelled",Tv="task-"+Hc,Nv="task-"+zc,Iv=Bc+"-"+Hc,Pv=Bc+"-"+zc;var ls="listenerMiddleware";var $v=Wt(ls+"/add"),kv=Wt(ls+"/removeAll"),Lv=Wt(ls+"/remove");var Lc,Dv=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(Lc||(Lc=Promise.resolve())).then(r).catch(function(e){return setTimeout(function(){throw e},0)})},_f=function(r){return function(e){setTimeout(e,r)}},Mv=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:_f(10);wc();window.ftReduxStores||(window.ftReduxStores={});var At=class r{static get(e){var t;let o=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[o];if(br(a))return a;if(n==null)return;let s=Fc({...n,reducers:(t=n.reducers)!==null&&t!==void 0?t:{}}),l=Mc({reducer:(c,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...c,...p.overwrites}:s.reducer(c,p)});return window.ftReduxStores[n.name]=new r(s,l)}constructor(e,t){this.reduxSlice=e,this.reduxStore=t,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new _o,this.actions=new Proxy(this.reduxSlice.actions,{get:(o,n,a)=>{let s=n,l=o[s];return l?(...c)=>{let p=l(...c);return this.reduxStore.dispatch(p),p}:c=>{this.setState({[s]:c})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function Tf(){var r;for(let e of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))br(e)&&e.clear()}var us={};ee(us,{scrollHelper:()=>Nf});var ds,Ai=new Map,ps=class{lock(e,t){if(t){let o=Ai.get(t);if(o==null||o===e)return Ai.set(t,e),t}}release(e,t){t&&Ai.get(t)===e&&Ai.delete(t)}findFirstScrollableParent(e){let t,o=n=>{var a;n.stopPropagation();let s,l;for(let c of n.composedPath()){let p=c,h=this.elementCanScroll(p);if(h&&p.clientHeight&&p.clientHeight<p.scrollHeight){s=p;break}else h&&l==null&&(l=p)}t=(a=s??l)!==null&&a!==void 0?a:document.body};return e.addEventListener("find-scrollable-parent",o),e.dispatchEvent(new Event("find-scrollable-parent",{composed:!0})),e.removeEventListener("find-scrollable-parent",o),t}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,t){let o=0;for(;t&&t.offsetParent!==e.offsetParent;)o+=t.offsetTop,t=t.offsetParent;return o+t.offsetTop-e.offsetTop}computeTopOffsetRatio(e,t){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return t;default:return 0}}scrollIntoViewIfPossible(e,t){let o=this.findFirstScrollableParent(e);if(e&&this.lock(this,o)){let n=this.getAbsoluteScrollOffset(o,e),a=n-o.clientHeight+e.clientHeight,s=n,l=Dn(0,(s-o.scrollTop)/(s-a),1),c=this.computeTopOffsetRatio(t?.position,l)*(a-s)+s;o.scrollTo({behavior:t?.behavior,top:c})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,o);this.release(this,o)}};window.FluidTopicsScrollHelper=(ds=window.FluidTopicsScrollHelper)!==null&&ds!==void 0?ds:new ps;var Nf=window.FluidTopicsScrollHelper;var fs={};ee(fs,{shadowQuerySelector:()=>If,shadowQuerySelectorAll:()=>Pf});function If(r,e,...t){var o;let n=r.querySelector(e);for(let a of t)n=(o=n?.shadowRoot)===null||o===void 0?void 0:o.querySelector(a);return n}function Pf(r,e,...t){let o=[...r.querySelectorAll(e)];for(let n of t)o=o.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 o}var hs={};ee(hs,{SearchPlaceConverter:()=>Ti,SearchPlaceQueryParams:()=>se,isSearchPlaceQueryParams:()=>pd,serializeRequest:()=>Mf});var kf=up(Vc(),1);var jc;(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(jc||(jc={}));var Kc;(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(Kc||(Kc={}));var Gc;(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"})(Gc||(Gc={}));var Zc;(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"})(Zc||(Zc={}));var qc;(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(qc||(qc={}));var Yc;(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(Yc||(Yc={}));var Xc;(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(Xc||(Xc={}));var Rt;(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(Rt||(Rt={}));var Jc;(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"})(Jc||(Jc={}));var Qc;(function(r){r.ASC="ASC",r.DESC="DESC"})(Qc||(Qc={}));var ed;(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(ed||(ed={}));var td;(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(td||(td={}));var sd=r=>["EVERYWHERE","TITLE_ONLY","NONE"].includes(r);var rd;(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK"})(rd||(rd={}));var od;(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(od||(od={}));var id;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK"})(id||(id={}));var Po;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(Po||(Po={}));var ld=r=>["LAST_WEEK","LAST_MONTH","LAST_QUARTER","LAST_YEAR"].includes(r);var nd;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC"})(nd||(nd={}));var ad;(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS"})(ad||(ad={}));var pe;(function(r){r.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",r.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",r.HTML_EXPORT_USER="HTML_EXPORT_USER",r.PDF_EXPORT_USER="PDF_EXPORT_USER",r.SAVED_SEARCH_USER="SAVED_SEARCH_USER",r.COLLECTION_USER="COLLECTION_USER",r.OFFLINE_USER="OFFLINE_USER",r.ANALYTICS_USER="ANALYTICS_USER",r.BETA_USER="BETA_USER",r.DEBUG_USER="DEBUG_USER",r.PRINT_USER="PRINT_USER",r.RATING_USER="RATING_USER",r.FEEDBACK_USER="FEEDBACK_USER",r.GENERATIVE_AI_USER="GENERATIVE_AI_USER",r.CONTENT_PUBLISHER="CONTENT_PUBLISHER",r.KHUB_ADMIN="KHUB_ADMIN",r.USERS_ADMIN="USERS_ADMIN",r.PORTAL_ADMIN="PORTAL_ADMIN",r.ADMIN="ADMIN",r.DEVELOPER="DEVELOPER"})(pe||(pe={}));var cd;(function(r){r.VALID="VALID",r.INVALID="INVALID"})(cd||(cd={}));var $f={[pe.PERSONAL_BOOK_SHARE_USER]:[pe.PERSONAL_BOOK_USER],[pe.HTML_EXPORT_USER]:[pe.PERSONAL_BOOK_USER],[pe.PDF_EXPORT_USER]:[pe.PERSONAL_BOOK_USER],[pe.KHUB_ADMIN]:[pe.CONTENT_PUBLISHER],[pe.ADMIN]:[pe.KHUB_ADMIN,pe.USERS_ADMIN,pe.PORTAL_ADMIN],[pe.DEVELOPER]:[pe.BETA_USER,pe.DEBUG_USER]};function dd(r,e){return r===e||($f[r]??[]).some(t=>dd(t,e))}function Sr(r,e){return r==null?!1:(Array.isArray(r)?r:Array.isArray(r.roles)?r.roles:Array.isArray(r.profile?.roles)?r.profile.roles:[]).some(o=>dd(o,e))}function Lf(r){return`"${r}"`}function Df(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function Mf(r,e){return new Ti(r,{}).serialize(e)}var se;(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"})(se||(se={}));var Uf=new Set(Object.values(se));function pd(r){return Uf.has(r)}var Ti=class{constructor(e,t){this.baseUrl=e,this.predefinedSorts=t,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,t="/search"){let o=this.toURLSearchParams(e).toString();return new URL(`${this.baseUrl.replace(/\/+$/,"")}${t}?${o}`).href}toURLSearchParams(e){var t,o,n,a,s,l,c,p,h,f;let g=new URLSearchParams({[se.LOCALE]:(t=e.contentLocale)!==null&&t!==void 0?t:"all"});((o=e.query)===null||o===void 0?void 0:o.length)>0&&g.append(se.QUERY,e.query),e.scope&&e.scope!=="DEFAULT"&&g.append(se.SCOPE,e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&g.append(se.VIRTUAL_FIELD,e.virtualField.toLowerCase()),((n=e.sort)===null||n===void 0?void 0:n.length)>0&&e.sort[0].key==="ft:lastEdition"&&g.append(se.SORT,"last_update");let b=(s=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(A=>A.valueFilter))!==null&&s!==void 0?s:[];if(b.length>0){let A=b.map(N=>{var S,O;let E=((O=(S=N.valueFilter)===null||S===void 0?void 0:S.values)!==null&&O!==void 0?O:[]).map(U=>this.escapeFilters(U)).map(U=>encodeURIComponent(Lf(U))).join("_");return`${N.key}~${E}`}).join("*");g.append(se.VALUE_FILTERS,A)}let v=(c=(l=e.metadataFilters)===null||l===void 0?void 0:l.filter(A=>A.dateFilter))!==null&&c!==void 0?c:[];if(v.length>0){let A=v.map(N=>{var S;return`${N.key}~${(S=N.dateFilter)===null||S===void 0?void 0:S.type.toLowerCase()}`}).join("*");g.append(se.DATE_FILTERS,A)}let w=(h=(p=e.metadataFilters)===null||p===void 0?void 0:p.filter(A=>A.rangeFilter))!==null&&h!==void 0?h:[];if(w.length>0){let A=w.map(N=>{var S,O;return`${N.key}~${(S=N.rangeFilter)===null||S===void 0?void 0:S.from}_${(O=N.rangeFilter)===null||O===void 0?void 0:O.to}`}).join("*");g.append(se.RANGE_FILTERS,A)}let I=(f=e.otherQueryParams)!==null&&f!==void 0?f:{};for(let A in I)g.append(A,I[A]);return g}parse(e){var t;let o=e.split("?"),n=this.fromURLSearchParams(new URLSearchParams(o.slice(1).join("?"))),a=o[0].split("/search/")[1];return a==null?n:{...n,scope:(t=this.scopeMapping[a])!==null&&t!==void 0?t:n.scope}}fromURLSearchParams(e){var t,o,n,a,s,l,c,p;let h=((t=e.get(se.VIRTUAL_FIELD))!==null&&t!==void 0?t:"EVERYWHERE").toUpperCase(),f=((o=e.get(se.SORT))!==null&&o!==void 0?o:"DEFAULT").toUpperCase(),g=(n=e.get(se.SCOPE))!==null&&n!==void 0?n:"default",b={};for(let v of e.keys())pd(v)||(b[v]=e.get(v));return{contentLocale:e.get(se.LOCALE)==="all"?void 0:(a=e.get(se.LOCALE))!==null&&a!==void 0?a:void 0,query:decodeURIComponent((s=e.get(se.QUERY))!==null&&s!==void 0?s:""),scope:(l=this.scopeMapping[g])!==null&&l!==void 0?l:"DEFAULT",virtualField:sd(h)?h:"EVERYWHERE",sort:(p=(c=this.predefinedSorts[f])!==null&&c!==void 0?c:this.predefinedSorts.DEFAULT)!==null&&p!==void 0?p:[],metadataFilters:this.parseCompatFilters(e),facets:[],paging:{page:1,perPage:20},otherQueryParams:b}}parseCompatFilters(e){var t,o,n,a,s,l;let c=[];return e.has(se.FILTERS)&&(c=this.parseValueFilters((t=e.get(se.FILTERS))!==null&&t!==void 0?t:"")),(o=e.has(se.PERIOD))!==null&&o!==void 0&&o&&(c=[...c,...this.parseLegacyPeriodFilter(((n=e.get(se.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...c,...this.parseValueFilters((a=e.get(se.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(se.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(se.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(decodeURIComponent(e)).split("*").map(t=>t.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],valueFilter:{values:t[1].split("_").map(Df).map(o=>this.unescapeFilterValue(o)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],dateFilter:{type:Po[t[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],rangeFilter:{from:t[1].split("_")[0],to:t[1].split("_")[1]}}))}escapeFilters(e){for(let[t,o,n]of this.filtersEscapeMapping)e=e.replaceAll(t,o);return e}superEscapeFilters(e){for(let[t,o,n]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}unescapeFilterValue(e){for(let[t,o,n]of this.filtersEscapeMapping)e=e.replace(n,t);return e}parseLegacyPeriodFilter(e){if(ld(e))return[{key:"ft:lastEdition",dateFilter:{type:Po[e]}}];if(e.startsWith("CUSTOM_")){let[t,o,n]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:o,to:n}}]}return[]}};var ms={};ee(ms,{toFtFormComponent:()=>Or});var Ni=Symbol("elementInternals");function Or(r,e){class t extends r{static get formAssociated(){return!0}get form(){return this[Ni].form}constructor(...n){super(n),this[Ni]=this.attachInternals(),this[Ni].role=e}setFormValue(n){this[Ni].setFormValue(n)}}return t}var gs={};ee(gs,{DateFormatter:()=>Wr});var Wr=class{static format(e,t,o,n){return window.moment?window.moment(e).locale(t).format(this.getDateFormat(o,n)):e}static getDateFormat(e,t){return e?t?"lll":"ll":t?"L LT":"L"}};var ys,bs,vs,xs,$o=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((vs=(bs=(ys=window.safari)===null||ys===void 0?void 0:ys.pushNotification)===null||bs===void 0?void 0:bs.toString())!==null&&vs!==void 0?vs:"")==="[object SafariRemoteNotification]",Ff="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(xs=window.ftGlobals)!==null&&xs!==void 0?xs:{lit:Sn,litDecorators:wn,litRepeat:Cn,litClassMap:An,litStyleMap:Rn,litUnsafeHTML:Tn,wcUtils:{...Pn,...In,...$n,...gs,...kn,...Un,...fa,...ga,...Ra,...ua,...Ia,...Ta,...lc,...Mn,...ka,...Da,...dc,...Ma,...cs,..._a,...us,...fs,...hs,...ms,isSafari:$o,isTouchScreen:Ff,setVariable:C}};var Ye;(function(r){r.FEEDBACK="FEEDBACK",r.RATING="RATING",r.PRINT="PRINT",r.BOOKMARK="BOOKMARK",r.COLLECTIONS="COLLECTIONS",r.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Ye||(Ye={}));var Bf=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Os=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Ss=Symbol("registerInterval");function zf(r){var e;class t extends r{constructor(){super(...arguments),this[e]=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[Ss]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Ss]):this.dispatchEvent(new Os)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Ss,Bf([z()],t.prototype,"stateManager",void 0),t}var jt=class extends zf(Ze){};var ud=i.extend("--ft-ripple-color","",_.colorContent),W={color:ud,backgroundColor:i.extend("--ft-ripple-background-color","",ud),opacityContentOnSurfacePressed:i.external(_.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.external(_.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.external(_.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.external(_.opacityContentOnSurfaceSelected,"Design system"),borderRadius:i.create("--ft-ripple-border-radius","","SIZE","0px")},fd=i.extend("--ft-ripple-color","",_.colorPrimary),hd={color:fd,backgroundColor:i.extend("--ft-ripple-background-color","",fd)},md=i.extend("--ft-ripple-color","",_.colorSecondary),gd={color:md,backgroundColor:i.extend("--ft-ripple-background-color","",md)},yd=P`
|
|
51
51
|
:host {
|
|
52
52
|
display: contents;
|
|
53
53
|
}
|
|
@@ -102,19 +102,19 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
105
|
-
background-color: ${
|
|
105
|
+
background-color: ${gd.backgroundColor};
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
109
|
-
background-color: ${
|
|
109
|
+
background-color: ${gd.color};
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
113
|
-
background-color: ${
|
|
113
|
+
background-color: ${hd.backgroundColor};
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
117
|
-
background-color: ${
|
|
117
|
+
background-color: ${hd.color};
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
.ft-ripple .ft-ripple--background {
|
|
@@ -159,8 +159,8 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
159
159
|
opacity: ${W.opacityContentOnSurfacePressed};
|
|
160
160
|
transform: translate(-50%, -50%) scale(1);
|
|
161
161
|
}
|
|
162
|
-
`;function
|
|
163
|
-
.ft-typography--${
|
|
162
|
+
`;function bd(r){let e=yo[r];return P`
|
|
163
|
+
.ft-typography--${gt(r)} {
|
|
164
164
|
font-family: ${e.fontFamily};
|
|
165
165
|
font-size: ${e.fontSize};
|
|
166
166
|
font-weight: ${e.fontWeight};
|
|
@@ -168,54 +168,26 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
168
168
|
line-height: ${e.lineHeight};
|
|
169
169
|
text-transform: ${e.textCase};
|
|
170
170
|
}
|
|
171
|
-
`}var
|
|
171
|
+
`}var vd=i.extend("--ft-typography-font-family","",_.titleFont),_t=i.extend("--ft-typography-font-family","",_.contentFont),M={fontFamily:_t,fontSize:i.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:i.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:i.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:i.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:i.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Kt={fontFamily:i.extend("--ft-typography-title-font-family","",vd),fontSize:i.extend("--ft-typography-title-font-size","",M.fontSize,"20px"),fontWeight:i.extend("--ft-typography-title-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-title-letter-spacing","",M.letterSpacing,"0.15px"),lineHeight:i.extend("--ft-typography-title-line-height","",M.lineHeight,"1.2"),textTransform:i.extend("--ft-typography-title-text-transform","",M.textTransform,"inherit")},Gt={fontFamily:i.extend("--ft-typography-title-dense-font-family","",vd),fontSize:i.extend("--ft-typography-title-dense-font-size","",M.fontSize,"14px"),fontWeight:i.extend("--ft-typography-title-dense-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-title-dense-letter-spacing","",M.letterSpacing,"0.105px"),lineHeight:i.extend("--ft-typography-title-dense-line-height","",M.lineHeight,"1.7"),textTransform:i.extend("--ft-typography-title-dense-text-transform","",M.textTransform,"inherit")},Vr={fontFamily:i.extend("--ft-typography-subtitle1-font-family","",_t),fontSize:i.extend("--ft-typography-subtitle1-font-size","",M.fontSize,"16px"),fontWeight:i.extend("--ft-typography-subtitle1-font-weight","",M.fontWeight,"600"),letterSpacing:i.extend("--ft-typography-subtitle1-letter-spacing","",M.letterSpacing,"0.144px"),lineHeight:i.extend("--ft-typography-subtitle1-line-height","",M.lineHeight,"1.5"),textTransform:i.extend("--ft-typography-subtitle1-text-transform","",M.textTransform,"inherit")},jr={fontFamily:i.extend("--ft-typography-subtitle2-font-family","",_t),fontSize:i.extend("--ft-typography-subtitle2-font-size","",M.fontSize,"14px"),fontWeight:i.extend("--ft-typography-subtitle2-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-subtitle2-letter-spacing","",M.letterSpacing,"0.098px"),lineHeight:i.extend("--ft-typography-subtitle2-line-height","",M.lineHeight,"1.7"),textTransform:i.extend("--ft-typography-subtitle2-text-transform","",M.textTransform,"inherit")},Xe={fontFamily:i.extend("--ft-typography-body1-font-family","",_t),fontSize:i.extend("--ft-typography-body1-font-size","",M.fontSize,"16px"),fontWeight:i.extend("--ft-typography-body1-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-body1-letter-spacing","",M.letterSpacing,"0.496px"),lineHeight:i.extend("--ft-typography-body1-line-height","",M.lineHeight,"1.5"),textTransform:i.extend("--ft-typography-body1-text-transform","",M.textTransform,"inherit")},Kr={fontFamily:i.extend("--ft-typography-body2-font-family","",_t),fontSize:i.extend("--ft-typography-body2-font-size","",M.fontSize,"14px"),fontWeight:i.extend("--ft-typography-body2-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-body2-letter-spacing","",M.letterSpacing,"0.252px"),lineHeight:i.extend("--ft-typography-body2-line-height","",M.lineHeight,"1.4"),textTransform:i.extend("--ft-typography-body2-text-transform","",M.textTransform,"inherit")},rt={fontFamily:i.extend("--ft-typography-caption-font-family","",_t),fontSize:i.extend("--ft-typography-caption-font-size","",M.fontSize,"12px"),fontWeight:i.extend("--ft-typography-caption-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-caption-letter-spacing","",M.letterSpacing,"0.396px"),lineHeight:i.extend("--ft-typography-caption-line-height","",M.lineHeight,"1.33"),textTransform:i.extend("--ft-typography-caption-text-transform","",M.textTransform,"inherit")},Gr={fontFamily:i.extend("--ft-typography-breadcrumb-font-family","",_t),fontSize:i.extend("--ft-typography-breadcrumb-font-size","",M.fontSize,"10px"),fontWeight:i.extend("--ft-typography-breadcrumb-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-breadcrumb-letter-spacing","",M.letterSpacing,"0.33px"),lineHeight:i.extend("--ft-typography-breadcrumb-line-height","",M.lineHeight,"1.6"),textTransform:i.extend("--ft-typography-breadcrumb-text-transform","",M.textTransform,"inherit")},Zr={fontFamily:i.extend("--ft-typography-overline-font-family","",_t),fontSize:i.extend("--ft-typography-overline-font-size","",M.fontSize,"10px"),fontWeight:i.extend("--ft-typography-overline-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-overline-letter-spacing","",M.letterSpacing,"1.5px"),lineHeight:i.extend("--ft-typography-overline-line-height","",M.lineHeight,"1.6"),textTransform:i.extend("--ft-typography-overline-text-transform","",M.textTransform,"uppercase")},Le={fontFamily:i.extend("--ft-typography-button-font-family","",_t),fontSize:i.extend("--ft-typography-button-font-size","",M.fontSize,"14px"),fontWeight:i.extend("--ft-typography-button-font-weight","",M.fontWeight,"600"),letterSpacing:i.extend("--ft-typography-button-letter-spacing","",M.letterSpacing,"1.246px"),lineHeight:i.extend("--ft-typography-button-line-height","",M.lineHeight,"1.15"),textTransform:i.extend("--ft-typography-button-text-transform","",M.textTransform,"uppercase")},xd=P`
|
|
172
172
|
.ft-typography--title {
|
|
173
|
-
font-family: ${
|
|
174
|
-
font-size: ${
|
|
175
|
-
font-weight: ${
|
|
176
|
-
letter-spacing: ${
|
|
177
|
-
line-height: ${
|
|
178
|
-
text-transform: ${
|
|
179
|
-
}
|
|
180
|
-
`,
|
|
173
|
+
font-family: ${Kt.fontFamily};
|
|
174
|
+
font-size: ${Kt.fontSize};
|
|
175
|
+
font-weight: ${Kt.fontWeight};
|
|
176
|
+
letter-spacing: ${Kt.letterSpacing};
|
|
177
|
+
line-height: ${Kt.lineHeight};
|
|
178
|
+
text-transform: ${Kt.textTransform};
|
|
179
|
+
}
|
|
180
|
+
`,Sd=P`
|
|
181
181
|
.ft-typography--title-dense {
|
|
182
|
-
font-family: ${
|
|
183
|
-
font-size: ${
|
|
184
|
-
font-weight: ${
|
|
185
|
-
letter-spacing: ${
|
|
186
|
-
line-height: ${
|
|
187
|
-
text-transform: ${
|
|
188
|
-
}
|
|
189
|
-
`,
|
|
182
|
+
font-family: ${Gt.fontFamily};
|
|
183
|
+
font-size: ${Gt.fontSize};
|
|
184
|
+
font-weight: ${Gt.fontWeight};
|
|
185
|
+
letter-spacing: ${Gt.letterSpacing};
|
|
186
|
+
line-height: ${Gt.lineHeight};
|
|
187
|
+
text-transform: ${Gt.textTransform};
|
|
188
|
+
}
|
|
189
|
+
`,Od=P`
|
|
190
190
|
.ft-typography--subtitle1 {
|
|
191
|
-
font-family: ${Hr.fontFamily};
|
|
192
|
-
font-size: ${Hr.fontSize};
|
|
193
|
-
font-weight: ${Hr.fontWeight};
|
|
194
|
-
letter-spacing: ${Hr.letterSpacing};
|
|
195
|
-
line-height: ${Hr.lineHeight};
|
|
196
|
-
text-transform: ${Hr.textTransform};
|
|
197
|
-
}
|
|
198
|
-
`,Xc=P`
|
|
199
|
-
.ft-typography--subtitle2 {
|
|
200
|
-
font-family: ${Wr.fontFamily};
|
|
201
|
-
font-size: ${Wr.fontSize};
|
|
202
|
-
font-weight: ${Wr.fontWeight};
|
|
203
|
-
letter-spacing: ${Wr.letterSpacing};
|
|
204
|
-
line-height: ${Wr.lineHeight};
|
|
205
|
-
text-transform: ${Wr.textTransform};
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
`,Gr=P`
|
|
209
|
-
.ft-typography--body1 {
|
|
210
|
-
font-family: ${Ye.fontFamily};
|
|
211
|
-
font-size: ${Ye.fontSize};
|
|
212
|
-
font-weight: ${Ye.fontWeight};
|
|
213
|
-
letter-spacing: ${Ye.letterSpacing};
|
|
214
|
-
line-height: ${Ye.lineHeight};
|
|
215
|
-
text-transform: ${Ye.textTransform};
|
|
216
|
-
}
|
|
217
|
-
`,Jc=P`
|
|
218
|
-
.ft-typography--body2 {
|
|
219
191
|
font-family: ${Vr.fontFamily};
|
|
220
192
|
font-size: ${Vr.fontSize};
|
|
221
193
|
font-weight: ${Vr.fontWeight};
|
|
@@ -223,17 +195,8 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
223
195
|
line-height: ${Vr.lineHeight};
|
|
224
196
|
text-transform: ${Vr.textTransform};
|
|
225
197
|
}
|
|
226
|
-
`,
|
|
227
|
-
.ft-typography--
|
|
228
|
-
font-family: ${tt.fontFamily};
|
|
229
|
-
font-size: ${tt.fontSize};
|
|
230
|
-
font-weight: ${tt.fontWeight};
|
|
231
|
-
letter-spacing: ${tt.letterSpacing};
|
|
232
|
-
line-height: ${tt.lineHeight};
|
|
233
|
-
text-transform: ${tt.textTransform};
|
|
234
|
-
}
|
|
235
|
-
`,Qc=P`
|
|
236
|
-
.ft-typography--breadcrumb {
|
|
198
|
+
`,wd=P`
|
|
199
|
+
.ft-typography--subtitle2 {
|
|
237
200
|
font-family: ${jr.fontFamily};
|
|
238
201
|
font-size: ${jr.fontSize};
|
|
239
202
|
font-weight: ${jr.fontWeight};
|
|
@@ -241,8 +204,18 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
241
204
|
line-height: ${jr.lineHeight};
|
|
242
205
|
text-transform: ${jr.textTransform};
|
|
243
206
|
}
|
|
244
|
-
|
|
245
|
-
|
|
207
|
+
|
|
208
|
+
`,qr=P`
|
|
209
|
+
.ft-typography--body1 {
|
|
210
|
+
font-family: ${Xe.fontFamily};
|
|
211
|
+
font-size: ${Xe.fontSize};
|
|
212
|
+
font-weight: ${Xe.fontWeight};
|
|
213
|
+
letter-spacing: ${Xe.letterSpacing};
|
|
214
|
+
line-height: ${Xe.lineHeight};
|
|
215
|
+
text-transform: ${Xe.textTransform};
|
|
216
|
+
}
|
|
217
|
+
`,Ed=P`
|
|
218
|
+
.ft-typography--body2 {
|
|
246
219
|
font-family: ${Kr.fontFamily};
|
|
247
220
|
font-size: ${Kr.fontSize};
|
|
248
221
|
font-weight: ${Kr.fontWeight};
|
|
@@ -250,20 +223,47 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
250
223
|
line-height: ${Kr.lineHeight};
|
|
251
224
|
text-transform: ${Kr.textTransform};
|
|
252
225
|
}
|
|
253
|
-
`,
|
|
226
|
+
`,Ii=P`
|
|
227
|
+
.ft-typography--caption {
|
|
228
|
+
font-family: ${rt.fontFamily};
|
|
229
|
+
font-size: ${rt.fontSize};
|
|
230
|
+
font-weight: ${rt.fontWeight};
|
|
231
|
+
letter-spacing: ${rt.letterSpacing};
|
|
232
|
+
line-height: ${rt.lineHeight};
|
|
233
|
+
text-transform: ${rt.textTransform};
|
|
234
|
+
}
|
|
235
|
+
`,Cd=P`
|
|
236
|
+
.ft-typography--breadcrumb {
|
|
237
|
+
font-family: ${Gr.fontFamily};
|
|
238
|
+
font-size: ${Gr.fontSize};
|
|
239
|
+
font-weight: ${Gr.fontWeight};
|
|
240
|
+
letter-spacing: ${Gr.letterSpacing};
|
|
241
|
+
line-height: ${Gr.lineHeight};
|
|
242
|
+
text-transform: ${Gr.textTransform};
|
|
243
|
+
}
|
|
244
|
+
`,Ad=P`
|
|
245
|
+
.ft-typography--overline {
|
|
246
|
+
font-family: ${Zr.fontFamily};
|
|
247
|
+
font-size: ${Zr.fontSize};
|
|
248
|
+
font-weight: ${Zr.fontWeight};
|
|
249
|
+
letter-spacing: ${Zr.letterSpacing};
|
|
250
|
+
line-height: ${Zr.lineHeight};
|
|
251
|
+
text-transform: ${Zr.textTransform};
|
|
252
|
+
}
|
|
253
|
+
`,Rd=P`
|
|
254
254
|
.ft-typography--button {
|
|
255
|
-
font-family: ${
|
|
256
|
-
font-size: ${
|
|
257
|
-
font-weight: ${
|
|
258
|
-
letter-spacing: ${
|
|
259
|
-
line-height: ${
|
|
260
|
-
text-transform: ${
|
|
261
|
-
}
|
|
262
|
-
`,
|
|
255
|
+
font-family: ${Le.fontFamily};
|
|
256
|
+
font-size: ${Le.fontSize};
|
|
257
|
+
font-weight: ${Le.fontWeight};
|
|
258
|
+
letter-spacing: ${Le.letterSpacing};
|
|
259
|
+
line-height: ${Le.lineHeight};
|
|
260
|
+
text-transform: ${Le.textTransform};
|
|
261
|
+
}
|
|
262
|
+
`,_d=P`
|
|
263
263
|
.ft-typography {
|
|
264
264
|
vertical-align: inherit;
|
|
265
265
|
}
|
|
266
|
-
`,
|
|
266
|
+
`,Td=[Object.keys(yo).map(r=>bd(r))];var De={color:i.extend("--ft-loader-color","",_.colorPrimary),size:i.create("--ft-loader-size","","SIZE","80px")},Nd=P`
|
|
267
267
|
:host {
|
|
268
268
|
line-height: 0;
|
|
269
269
|
}
|
|
@@ -272,8 +272,8 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
272
272
|
display: inline-block;
|
|
273
273
|
position: relative;
|
|
274
274
|
|
|
275
|
-
width: ${
|
|
276
|
-
height: ${
|
|
275
|
+
width: ${De.size};
|
|
276
|
+
height: ${De.size};
|
|
277
277
|
}
|
|
278
278
|
|
|
279
279
|
.ft-loader div {
|
|
@@ -282,7 +282,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
282
282
|
width: 25%;
|
|
283
283
|
height: 25%;
|
|
284
284
|
border-radius: 50%;
|
|
285
|
-
background: ${
|
|
285
|
+
background: ${De.color};
|
|
286
286
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
287
287
|
}
|
|
288
288
|
|
|
@@ -329,10 +329,10 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
329
329
|
transform: translate(0, 0);
|
|
330
330
|
}
|
|
331
331
|
100% {
|
|
332
|
-
transform: translate(calc(0.35 * ${
|
|
332
|
+
transform: translate(calc(0.35 * ${De.size}), 0);
|
|
333
333
|
}
|
|
334
334
|
}
|
|
335
|
-
`;var
|
|
335
|
+
`;var Oe={size:i.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:i.extend("--ft-icon-fluid-topics-font-family","",i.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:i.extend("--ft-icon-file-format-font-family","",i.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:i.extend("--ft-icon-material-font-family","",i.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:i.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Id=P`
|
|
336
336
|
:host, i.ft-icon {
|
|
337
337
|
display: inline-flex;
|
|
338
338
|
align-items: center;
|
|
@@ -341,14 +341,14 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
341
341
|
}
|
|
342
342
|
|
|
343
343
|
:host {
|
|
344
|
-
width: ${
|
|
345
|
-
height: ${
|
|
344
|
+
width: ${Oe.size};
|
|
345
|
+
height: ${Oe.size};
|
|
346
346
|
}
|
|
347
347
|
|
|
348
348
|
i.ft-icon {
|
|
349
349
|
width: 100%;
|
|
350
350
|
height: 100%;
|
|
351
|
-
font-size: ${
|
|
351
|
+
font-size: ${Oe.size};
|
|
352
352
|
line-height: 1;
|
|
353
353
|
font-weight: normal;
|
|
354
354
|
text-transform: none;
|
|
@@ -359,28 +359,28 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
359
359
|
text-rendering: auto;
|
|
360
360
|
-webkit-font-smoothing: antialiased;
|
|
361
361
|
-moz-osx-font-smoothing: grayscale;
|
|
362
|
-
vertical-align: ${
|
|
362
|
+
vertical-align: ${Oe.verticalAlign};
|
|
363
363
|
}
|
|
364
364
|
|
|
365
365
|
i.ft-icon.ft-icon--fluid-topics {
|
|
366
|
-
font-family: ${
|
|
366
|
+
font-family: ${Oe.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
367
367
|
|
|
368
368
|
/* Ugly fix because font is broken */
|
|
369
|
-
font-size: calc(0.75 * ${
|
|
370
|
-
line-height: ${
|
|
369
|
+
font-size: calc(0.75 * ${Oe.size});
|
|
370
|
+
line-height: ${Oe.size};
|
|
371
371
|
position: relative;
|
|
372
372
|
top: -4%;
|
|
373
373
|
justify-content: center;
|
|
374
374
|
}
|
|
375
375
|
|
|
376
376
|
.ft-icon--file-format {
|
|
377
|
-
font-family: ${
|
|
377
|
+
font-family: ${Oe.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
378
378
|
}
|
|
379
379
|
|
|
380
380
|
.ft-icon--material {
|
|
381
|
-
font-family: ${
|
|
381
|
+
font-family: ${Oe.materialFontFamily}, "Material Icons", sans-serif;
|
|
382
382
|
}
|
|
383
|
-
`;var
|
|
383
|
+
`;var Pd=i.extend("--ft-button-color","",_.colorPrimary),le={backgroundColor:i.extend("--ft-button-background-color","",_.colorSurface),borderRadius:i.extend("--ft-button-border-radius","",_.borderRadiusL),color:Pd,fontSize:i.extend("--ft-button-font-size","",Le.fontSize),iconSize:i.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:i.extend("--ft-button-ripple-color","",Pd),verticalPadding:i.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:i.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:i.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:i.external(_.colorOpacityDisabled,"Design system")},$d=i.extend("--ft-button-primary-color","",i.extend("--ft-button-color","",_.colorOnPrimary)),ws={backgroundColor:i.extend("--ft-button-primary-background-color","",i.extend("--ft-button-background-color","",_.colorPrimary)),color:$d,rippleColor:i.extend("--ft-button-primary-ripple-color","",$d)},ut={borderRadius:i.extend("--ft-button-dense-border-radius","",i.extend("--ft-button-border-radius","",_.borderRadiusM)),verticalPadding:i.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:i.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:i.create("--ft-button-dense-icon-padding","","SIZE","4px")},kd=[P`
|
|
384
384
|
:host {
|
|
385
385
|
display: inline-block;
|
|
386
386
|
max-width: 100%;
|
|
@@ -391,7 +391,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
391
391
|
box-shadow: 0px 0px 0px transparent;
|
|
392
392
|
border: 0px solid transparent;
|
|
393
393
|
text-shadow: 0px 0px 0px transparent;
|
|
394
|
-
font-size: ${
|
|
394
|
+
font-size: ${le.fontSize};
|
|
395
395
|
}
|
|
396
396
|
|
|
397
397
|
button:hover {
|
|
@@ -420,31 +420,31 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
420
420
|
border: none;
|
|
421
421
|
pointer-events: auto;
|
|
422
422
|
|
|
423
|
-
--ft-button-internal-line-height: max(calc(${
|
|
424
|
-
--ft-button-internal-color: ${
|
|
425
|
-
${C(
|
|
426
|
-
${C(W.color,
|
|
423
|
+
--ft-button-internal-line-height: max(calc(${le.fontSize} + 2px), ${le.iconSize});
|
|
424
|
+
--ft-button-internal-color: ${le.color};
|
|
425
|
+
${C(Oe.size,le.iconSize)};
|
|
426
|
+
${C(W.color,le.rippleColor)};
|
|
427
427
|
|
|
428
|
-
border-radius: ${
|
|
429
|
-
padding: ${
|
|
430
|
-
background-color: ${
|
|
428
|
+
border-radius: ${le.borderRadius};
|
|
429
|
+
padding: ${le.verticalPadding} ${le.horizontalPadding};
|
|
430
|
+
background-color: ${le.backgroundColor};
|
|
431
431
|
color: var(--ft-button-internal-color);
|
|
432
432
|
-webkit-mask-image: radial-gradient(white, black);
|
|
433
433
|
}
|
|
434
434
|
|
|
435
435
|
.ft-button.ft-button--outlined {
|
|
436
436
|
border: 1px solid var(--ft-button-internal-color);
|
|
437
|
-
padding: calc(${
|
|
437
|
+
padding: calc(${le.verticalPadding} - 1px) calc(${le.horizontalPadding} - 1px);
|
|
438
438
|
}
|
|
439
439
|
|
|
440
440
|
.ft-button.ft-button--dense {
|
|
441
|
-
padding: ${
|
|
442
|
-
border-radius: ${
|
|
443
|
-
gap: ${
|
|
441
|
+
padding: ${ut.verticalPadding} ${ut.horizontalPadding};
|
|
442
|
+
border-radius: ${ut.borderRadius};
|
|
443
|
+
gap: ${ut.iconPadding};
|
|
444
444
|
}
|
|
445
445
|
|
|
446
446
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
447
|
-
padding: calc(${
|
|
447
|
+
padding: calc(${ut.verticalPadding} - 1px) calc(${ut.horizontalPadding} - 1px);
|
|
448
448
|
}
|
|
449
449
|
|
|
450
450
|
.ft-button:not([disabled]):hover {
|
|
@@ -452,22 +452,22 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
452
452
|
}
|
|
453
453
|
|
|
454
454
|
.ft-button--round {
|
|
455
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
455
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${le.verticalPadding});
|
|
456
456
|
}
|
|
457
457
|
|
|
458
458
|
.ft-button--round.ft-button--dense {
|
|
459
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
459
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${ut.verticalPadding});
|
|
460
460
|
}
|
|
461
461
|
|
|
462
462
|
.ft-button[disabled] {
|
|
463
463
|
filter: grayscale(1);
|
|
464
|
-
opacity: ${
|
|
464
|
+
opacity: ${le.opacityDisabled};
|
|
465
465
|
}
|
|
466
466
|
|
|
467
467
|
.ft-button.ft-button--primary {
|
|
468
|
-
background-color: ${
|
|
469
|
-
--ft-button-internal-color: ${
|
|
470
|
-
${C(W.color,
|
|
468
|
+
background-color: ${ws.backgroundColor};
|
|
469
|
+
--ft-button-internal-color: ${ws.color};
|
|
470
|
+
${C(W.color,ws.rippleColor)};
|
|
471
471
|
}
|
|
472
472
|
|
|
473
473
|
.ft-button:focus {
|
|
@@ -480,13 +480,13 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
480
480
|
white-space: nowrap;
|
|
481
481
|
text-overflow: ellipsis;
|
|
482
482
|
display: block;
|
|
483
|
-
margin: 0 ${
|
|
484
|
-
${C(
|
|
485
|
-
${C(
|
|
483
|
+
margin: 0 ${le.iconPadding};
|
|
484
|
+
${C(Le.fontSize,"1em")};
|
|
485
|
+
${C(Le.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
486
486
|
}
|
|
487
487
|
|
|
488
488
|
.ft-button--dense .ft-button--label {
|
|
489
|
-
margin: 0 ${
|
|
489
|
+
margin: 0 ${ut.iconPadding};
|
|
490
490
|
}
|
|
491
491
|
|
|
492
492
|
.ft-button--label[hidden] {
|
|
@@ -499,13 +499,13 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
499
499
|
}
|
|
500
500
|
|
|
501
501
|
.ft-button--label[hidden] + [part="icon"] {
|
|
502
|
-
margin: 0 calc(${
|
|
503
|
-
padding: 0 ${
|
|
502
|
+
margin: 0 calc(${le.horizontalPadding} * -1);
|
|
503
|
+
padding: 0 ${le.verticalPadding};
|
|
504
504
|
}
|
|
505
505
|
|
|
506
506
|
.ft-button--dense .ft-button--label[hidden] + [part="icon"] {
|
|
507
|
-
margin: 0 calc(${
|
|
508
|
-
padding: 0 ${
|
|
507
|
+
margin: 0 calc(${ut.horizontalPadding} * -1);
|
|
508
|
+
padding: 0 ${ut.verticalPadding};
|
|
509
509
|
}
|
|
510
510
|
|
|
511
511
|
.ft-button:not(.ft-button--trailing-icon) [part="label"]{
|
|
@@ -513,10 +513,10 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
513
513
|
}
|
|
514
514
|
|
|
515
515
|
ft-loader {
|
|
516
|
-
${C(
|
|
517
|
-
${C(
|
|
516
|
+
${C(De.size,le.iconSize)};
|
|
517
|
+
${C(De.color,"var(--ft-button-internal-color)")};
|
|
518
518
|
}
|
|
519
|
-
`,
|
|
519
|
+
`,gr];var he={textColor:i.extend("--ft-switch-text-color","",_.colorOnSurfaceHigh),backgroundColor:i.extend("--ft-switch-background-color","",_.colorSurface),selectedTextColor:i.extend("--ft-switch-selected-text-color","",_.colorPrimary),selectedBackgroundColor:i.extend("--ft-switch-selected-background-color","",_.colorPrimary),borderColor:i.extend("--ft-switch-border-color","",_.colorOutline),borderRadius:i.extend("--ft-switch-border-radius","",_.borderRadiusL),fontSize:i.extend("--ft-switch-font-size","",Le.fontSize),iconSize:i.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:i.extend("--ft-switch-text-color","",_.colorOnSurfaceMedium),rippleColor:i.extend("--ft-switch-ripple-color","",_.colorPrimary),outlineColor:i.extend("--ft-switch-outline-color","",_.colorPrimary)};var ft={feedbackInputMinWidth:i.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:i.external(_.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:i.extend("--ft-reader-feedback-send-feedback-color","",_.colorOnPrimary),sendFeedbackBackgroundColor:i.extend("--ft-reader-feedback-send-feedback-background-color","",_.colorPrimary),filledRatingColor:i.extend("--ft-reader-feedback-filled-rating-color","",_.colorPrimary),emptyRatingColor:i.extend("--ft-reader-feedback-empty-rating-color","",_.colorOnSurfaceMedium),mainTitleFontSize:i.external(Kt.fontSize,"Typography"),sectionTitleFontSize:i.external(Gt.fontSize,"Typography"),starsBackgroundColor:i.create("--ft-reader-feedback-stars-background-color","","COLOR",_.colorSurface)},Ld=P`
|
|
520
520
|
.ft-reader-feedback {
|
|
521
521
|
box-sizing: border-box;
|
|
522
522
|
display: flex;
|
|
@@ -529,7 +529,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
529
529
|
flex-direction: row;
|
|
530
530
|
align-items: center;
|
|
531
531
|
margin-left: -6px;
|
|
532
|
-
${C(
|
|
532
|
+
${C(le.backgroundColor,ft.starsBackgroundColor)}
|
|
533
533
|
}
|
|
534
534
|
|
|
535
535
|
.ft-reader-feedback--rating, .ft-reader-feedback--feedback {
|
|
@@ -542,14 +542,14 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
542
542
|
}
|
|
543
543
|
|
|
544
544
|
.ft-reader-feedback--rating {
|
|
545
|
-
${C(
|
|
546
|
-
${C(
|
|
547
|
-
${C(
|
|
548
|
-
${C(
|
|
545
|
+
${C(le.color,ft.emptyRatingColor)};
|
|
546
|
+
${C(le.rippleColor,ft.filledRatingColor)};
|
|
547
|
+
${C(he.textColor,ft.emptyRatingColor)};
|
|
548
|
+
${C(he.selectedTextColor,ft.filledRatingColor)};
|
|
549
549
|
}
|
|
550
550
|
|
|
551
551
|
.ft-reader-feedback--rating .ft-reader-feedback--active {
|
|
552
|
-
${C(
|
|
552
|
+
${C(le.color,ft.filledRatingColor)};
|
|
553
553
|
}
|
|
554
554
|
|
|
555
555
|
.ft-reader-feedback--feedback {
|
|
@@ -557,41 +557,41 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
557
557
|
}
|
|
558
558
|
|
|
559
559
|
.ft-reader-feedback--rating-date {
|
|
560
|
-
color: ${
|
|
560
|
+
color: ${ft.ratedDateColor};
|
|
561
561
|
}
|
|
562
562
|
|
|
563
563
|
.ft-reader-feedback--feedback ft-text-area {
|
|
564
|
-
min-width: ${
|
|
564
|
+
min-width: ${ft.feedbackInputMinWidth};
|
|
565
565
|
}
|
|
566
566
|
|
|
567
567
|
.ft-reader-feedback--send-feedback, .ft-reader-feedback--feedback-link {
|
|
568
|
-
${C(
|
|
569
|
-
${C(
|
|
568
|
+
${C(le.color,ft.sendFeedbackColor)};
|
|
569
|
+
${C(le.backgroundColor,ft.sendFeedbackBackgroundColor)};
|
|
570
570
|
}
|
|
571
571
|
|
|
572
572
|
[part="buttons-container"] {
|
|
573
573
|
align-self: flex-end;
|
|
574
574
|
}
|
|
575
|
-
`;var
|
|
576
|
-
<${
|
|
575
|
+
`;var Md=Symbol.for(""),Hf=r=>{if(r?.r===Md)return r?._$litStatic$},Es=r=>({_$litStatic$:r,r:Md});var Dd=new Map,Ud=r=>(e,...t)=>{let o=t.length,n,a,s=[],l=[],c,p=0,h=!1;for(;p<o;){for(c=e[p];p<o&&(a=t[p],(n=Hf(a))!==void 0);)c+=n+e[++p],h=!0;p!==o&&l.push(a),s.push(c),p++}if(p===o&&s.push(e[o]),h){let f=s.join("$$lit$$");(e=Dd.get(f))===void 0&&(s.raw=s,Dd.set(f,e=s)),t=l}return r(e,...t)},Cs=Ud(il),Z0=Ud(nl);var Zt;(function(r){r.title="title",r.title_dense="title-dense",r.subtitle1="subtitle1",r.subtitle2="subtitle2",r.body1="body1",r.body2="body2",r.caption="caption",r.breadcrumb="breadcrumb",r.overline="overline",r.button="button",r.display="display",r.title1="title-1",r.title2="title-2",r.title3="title-3",r.body1regular="body-1-regular",r.body1medium="body-1-medium",r.body1semibold="body-1-semibold",r.body2regular="body-2-regular",r.body2medium="body-2-medium",r.body2semibold="body-2-semibold",r.label1medium="label-1-medium",r.label1semibold="label-1-semibold",r.label1bold="label-1-bold",r.label2medium="label-2-medium",r.label2semibold="label-2-semibold",r.label2bold="label-2-bold",r.caption1medium="caption-1-medium",r.caption1semibold="caption-1-semibold",r.caption1bold="caption-1-bold",r.caption2medium="caption-2-medium",r.caption2semibold="caption-2-semibold",r.caption2bold="caption-2-bold"})(Zt||(Zt={}));var Fd=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},ye=class extends H{constructor(){super(...arguments),this.variant=Zt.body1}render(){return this.element?Cs`
|
|
576
|
+
<${Es(this.element)}
|
|
577
577
|
part="text"
|
|
578
578
|
class="ft-typography ft-typography--${this.variant}">
|
|
579
579
|
<slot></slot>
|
|
580
|
-
</${
|
|
581
|
-
`:
|
|
580
|
+
</${Es(this.element)}>
|
|
581
|
+
`:Cs`
|
|
582
582
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
583
|
-
`}};
|
|
583
|
+
`}};ye.styles=[xd,Sd,Od,wd,qr,Ed,Ii,Cd,Ad,Rd,_d,...Td];Fd([y()],ye.prototype,"element",void 0);Fd([y()],ye.prototype,"variant",void 0);V("ft-typography")(ye);var ze=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},X=class extends H{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 ae(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new ae(10),this.moveRipple=e=>{var t,o;let{x:n,y:a}=this.getCoordinates(e),s=(o=(t=this.ripple)===null||t===void 0?void 0:t.getBoundingClientRect())!==null&&o!==void 0?o:{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=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"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 $`
|
|
584
584
|
<style>
|
|
585
585
|
.ft-ripple .ft-ripple--effect {
|
|
586
586
|
left: ${this.originX}px;
|
|
587
587
|
top: ${this.originY}px;
|
|
588
588
|
}
|
|
589
589
|
</style>
|
|
590
|
-
<div class="${
|
|
590
|
+
<div class="${$e(e)}">
|
|
591
591
|
<div class="ft-ripple--background"></div>
|
|
592
592
|
<div class="ft-ripple--effect"></div>
|
|
593
593
|
</div>
|
|
594
|
-
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var t,o;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(t=this.target)===null||t===void 0||t.removeAttribute("data-is-ft-ripple-target")):(o=this.target)===null||o===void 0||o.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 e,t;let o=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;o&&this.setupFor((t=this.target)!==null&&t!==void 0?t:o)}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let t=(...l)=>c=>{l.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(c)},o=t("mouseup","contextmenu"),n=t("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&t("keyup")(l)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",o,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",o,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let t=e,o=e,n,a;return t.x!=null?{x:n,y:a}=t:o.touches!=null&&(n=o.touches[0].clientX,a=o.touches[0].clientY),{x:n,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let t of e.composedPath()){if(t===this.target)break;if("hasAttribute"in t&&t.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};X.elementDefinitions={};X.styles=
|
|
594
|
+
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var t,o;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(t=this.target)===null||t===void 0||t.removeAttribute("data-is-ft-ripple-target")):(o=this.target)===null||o===void 0||o.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 e,t;let o=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;o&&this.setupFor((t=this.target)!==null&&t!==void 0?t:o)}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let t=(...l)=>c=>{l.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(c)},o=t("mouseup","contextmenu"),n=t("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&t("keyup")(l)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",o,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",o,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let t=e,o=e,n,a;return t.x!=null?{x:n,y:a}=t:o.touches!=null&&(n=o.touches[0].clientX,a=o.touches[0].clientY),{x:n,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let t of e.composedPath()){if(t===this.target)break;if("hasAttribute"in t&&t.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};X.elementDefinitions={};X.styles=yd;ze([y({type:Boolean})],X.prototype,"primary",void 0);ze([y({type:Boolean})],X.prototype,"secondary",void 0);ze([y({type:Boolean})],X.prototype,"unbounded",void 0);ze([y({type:Boolean})],X.prototype,"activated",void 0);ze([y({type:Boolean})],X.prototype,"selected",void 0);ze([y({type:Boolean})],X.prototype,"disabled",void 0);ze([z()],X.prototype,"hovered",void 0);ze([z()],X.prototype,"focused",void 0);ze([z()],X.prototype,"pressed",void 0);ze([z()],X.prototype,"rippling",void 0);ze([z()],X.prototype,"originX",void 0);ze([z()],X.prototype,"originY",void 0);ze([Z(".ft-ripple")],X.prototype,"ripple",void 0);ze([Z(".ft-ripple--effect")],X.prototype,"rippleEffect",void 0);V("ft-ripple")(X);var Yr={distance:i.create("--ft-tooltip-distance","","SIZE","4px"),color:i.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:i.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:i.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:i.external(_.borderRadiusS,"Design system"),maxWidth:i.create("--ft-tooltip-max-width","","SIZE","150px")},Bd=P`
|
|
595
595
|
.ft-tooltip--container {
|
|
596
596
|
display: block;
|
|
597
597
|
}
|
|
@@ -606,21 +606,21 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
606
606
|
box-sizing: border-box;
|
|
607
607
|
overflow: hidden;
|
|
608
608
|
width: max-content;
|
|
609
|
-
max-width: ${
|
|
609
|
+
max-width: ${Yr.maxWidth};
|
|
610
610
|
text-align: center;
|
|
611
|
-
padding: ${
|
|
612
|
-
z-index: ${
|
|
611
|
+
padding: ${Yr.distance};
|
|
612
|
+
z-index: ${Yr.zIndex};
|
|
613
613
|
}
|
|
614
614
|
|
|
615
615
|
.ft-tooltip--content {
|
|
616
616
|
padding: 4px 8px;
|
|
617
|
-
border-radius: ${
|
|
618
|
-
background-color: ${
|
|
619
|
-
color: ${
|
|
617
|
+
border-radius: ${Yr.borderRadiusS};
|
|
618
|
+
background-color: ${Yr.backgroundColor};
|
|
619
|
+
color: ${Yr.color};
|
|
620
620
|
position: relative;
|
|
621
621
|
word-break: break-word;
|
|
622
622
|
}
|
|
623
|
-
`;var
|
|
623
|
+
`;var He=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},ue=class extends H{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 ae,this.revealDebouncer=new ae}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return $`
|
|
624
624
|
<div part="container"
|
|
625
625
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
626
626
|
@mouseenter=${this.onHover}
|
|
@@ -638,12 +638,12 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
638
638
|
</div>
|
|
639
639
|
</div>
|
|
640
640
|
</div>
|
|
641
|
-
`}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(t=>e.has(t))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(t=>t.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Oo(this.slottedElement,this.tooltip,this.position).then(({x:e,y:t})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${t}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",e=>{e.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(e,t){return Math.max(e,Math.min(0,-t))}};de.elementDefinitions={"ft-typography":ge};de.styles=hd;ze([g()],de.prototype,"text",void 0);ze([g({type:Boolean})],de.prototype,"manual",void 0);ze([g({type:Boolean})],de.prototype,"inline",void 0);ze([g({type:Number})],de.prototype,"delay",void 0);ze([g()],de.prototype,"position",void 0);ze([uo()],de.prototype,"slotNodes",void 0);ze([Z(".ft-tooltip--container")],de.prototype,"container",void 0);ze([Z(".ft-tooltip")],de.prototype,"tooltip",void 0);ze([Z(".ft-tooltip--content")],de.prototype,"tooltipContent",void 0);ze([z()],de.prototype,"visible",void 0);ze([bt({passive:!0})],de.prototype,"onTouch",null);ze([bt({passive:!0})],de.prototype,"onHover",null);ze([bt({passive:!0})],de.prototype,"onOut",null);ze([bt({passive:!0})],de.prototype,"onClick",null);V("ft-tooltip")(de);var Sr;(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.EYE="",r.SHARE="󨃱"})(Sr||(Sr={}));var T;(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=""})(T||(T={}));var bS=new Map([...["abw"].map(r=>[r,T.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,T.AUDIO]),...["avi"].map(r=>[r,T.AVI]),...["chm","xhs"].map(r=>[r,T.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,T.CODE]),...["csv"].map(r=>[r,T.CSV]),...["dita","ditamap","ditaval"].map(r=>[r,T.DITA]),...["epub"].map(r=>[r,T.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(r=>[r,T.EXCEL]),...["flac"].map(r=>[r,T.FLAC]),...["gif"].map(r=>[r,T.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(r=>[r,T.GZIP]),...["html","htm","xhtml"].map(r=>[r,T.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,T.IMAGE]),...["jpeg","jpg","jpe"].map(r=>[r,T.JPEG]),...["json"].map(r=>[r,T.JSON]),...["m4a","m4p"].map(r=>[r,T.M4A]),...["mov","qt"].map(r=>[r,T.MOV]),...["mp3"].map(r=>[r,T.MP3]),...["mp4","m4v"].map(r=>[r,T.MP4]),...["ogg","oga"].map(r=>[r,T.OGG]),...["pdf","ps"].map(r=>[r,T.PDF]),...["png"].map(r=>[r,T.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(r=>[r,T.POWERPOINT]),...["rar"].map(r=>[r,T.RAR]),...["stp"].map(r=>[r,T.STP]),...["txt","rtf","md","mdown"].map(r=>[r,T.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,T.VIDEO]),...["wav"].map(r=>[r,T.WAV]),...["wma"].map(r=>[r,T.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(r=>[r,T.WORD]),...["xml","xsl","rdf"].map(r=>[r,T.XML]),...["yaml","yml","x-yaml"].map(r=>[r,T.YAML]),...["zip"].map(r=>[r,T.ZIP])]);var vS={[T.ABW]:"#91ABC6",[T.AUDIO]:"#1795E3",[T.AVI]:"#E63324",[T.CHM]:"#71C3EB",[T.CODE]:"#71C3EB",[T.CSV]:"#1F7345",[T.DITA]:"#71C3EB",[T.EPUB]:"#85B926",[T.EXCEL]:"#1F7345",[T.FLAC]:"#1795E3",[T.GIF]:"#59B031",[T.GZIP]:"#F8AB36",[T.HTML]:"#71C3EB",[T.IMAGE]:"#59B031",[T.JPEG]:"#59B031",[T.JSON]:"#71C3EB",[T.M4A]:"#1795E3",[T.MOV]:"#E63324",[T.MP3]:"#1795E3",[T.MP4]:"#E63324",[T.OGG]:"#1795E3",[T.PDF]:"#E44948",[T.PNG]:"#59B031",[T.POWERPOINT]:"#B54A2B",[T.RAR]:"#F8AB36",[T.STP]:"#3764B1",[T.TEXT]:"#3162AB",[T.UNKNOWN]:"#999999",[T.VIDEO]:"#E63324",[T.WAV]:"#1795E3",[T.WMA]:"#1795E3",[T.WORD]:"#3162AB",[T.XML]:"#71C3EB",[T.YAML]:"#71C3EB",[T.ZIP]:"#F8AB36"};var Te;(function(r){r.fluid_topics="fluid-topics",r.file_format="file-format",r.material="material"})(Te||(Te={}));var Ri=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},xe=class extends H{constructor(){super(...arguments),this.resolvedIcon=B}render(){let e=this.variant&&Object.values(Te).includes(this.variant)?this.variant:Te.fluid_topics,t=e!==Te.material||!!this.value;return $`
|
|
641
|
+
`}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(t=>e.has(t))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(t=>t.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",wo(this.slottedElement,this.tooltip,this.position).then(({x:e,y:t})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${t}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",e=>{e.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(e,t){return Math.max(e,Math.min(0,-t))}};ue.elementDefinitions={"ft-typography":ye};ue.styles=Bd;He([y()],ue.prototype,"text",void 0);He([y({type:Boolean})],ue.prototype,"manual",void 0);He([y({type:Boolean})],ue.prototype,"inline",void 0);He([y({type:Number})],ue.prototype,"delay",void 0);He([y()],ue.prototype,"position",void 0);He([fo()],ue.prototype,"slotNodes",void 0);He([Z(".ft-tooltip--container")],ue.prototype,"container",void 0);He([Z(".ft-tooltip")],ue.prototype,"tooltip",void 0);He([Z(".ft-tooltip--content")],ue.prototype,"tooltipContent",void 0);He([z()],ue.prototype,"visible",void 0);He([vt({passive:!0})],ue.prototype,"onTouch",null);He([vt({passive:!0})],ue.prototype,"onHover",null);He([vt({passive:!0})],ue.prototype,"onOut",null);He([vt({passive:!0})],ue.prototype,"onClick",null);V("ft-tooltip")(ue);var wr;(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.EYE="",r.SHARE="󨃱"})(wr||(wr={}));var T;(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=""})(T||(T={}));var FS=new Map([...["abw"].map(r=>[r,T.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,T.AUDIO]),...["avi"].map(r=>[r,T.AVI]),...["chm","xhs"].map(r=>[r,T.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,T.CODE]),...["csv"].map(r=>[r,T.CSV]),...["dita","ditamap","ditaval"].map(r=>[r,T.DITA]),...["epub"].map(r=>[r,T.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(r=>[r,T.EXCEL]),...["flac"].map(r=>[r,T.FLAC]),...["gif"].map(r=>[r,T.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(r=>[r,T.GZIP]),...["html","htm","xhtml"].map(r=>[r,T.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,T.IMAGE]),...["jpeg","jpg","jpe"].map(r=>[r,T.JPEG]),...["json"].map(r=>[r,T.JSON]),...["m4a","m4p"].map(r=>[r,T.M4A]),...["mov","qt"].map(r=>[r,T.MOV]),...["mp3"].map(r=>[r,T.MP3]),...["mp4","m4v"].map(r=>[r,T.MP4]),...["ogg","oga"].map(r=>[r,T.OGG]),...["pdf","ps"].map(r=>[r,T.PDF]),...["png"].map(r=>[r,T.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(r=>[r,T.POWERPOINT]),...["rar"].map(r=>[r,T.RAR]),...["stp"].map(r=>[r,T.STP]),...["txt","rtf","md","mdown"].map(r=>[r,T.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,T.VIDEO]),...["wav"].map(r=>[r,T.WAV]),...["wma"].map(r=>[r,T.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(r=>[r,T.WORD]),...["xml","xsl","rdf"].map(r=>[r,T.XML]),...["yaml","yml","x-yaml"].map(r=>[r,T.YAML]),...["zip"].map(r=>[r,T.ZIP])]);var BS={[T.ABW]:"#91ABC6",[T.AUDIO]:"#1795E3",[T.AVI]:"#E63324",[T.CHM]:"#71C3EB",[T.CODE]:"#71C3EB",[T.CSV]:"#1F7345",[T.DITA]:"#71C3EB",[T.EPUB]:"#85B926",[T.EXCEL]:"#1F7345",[T.FLAC]:"#1795E3",[T.GIF]:"#59B031",[T.GZIP]:"#F8AB36",[T.HTML]:"#71C3EB",[T.IMAGE]:"#59B031",[T.JPEG]:"#59B031",[T.JSON]:"#71C3EB",[T.M4A]:"#1795E3",[T.MOV]:"#E63324",[T.MP3]:"#1795E3",[T.MP4]:"#E63324",[T.OGG]:"#1795E3",[T.PDF]:"#E44948",[T.PNG]:"#59B031",[T.POWERPOINT]:"#B54A2B",[T.RAR]:"#F8AB36",[T.STP]:"#3764B1",[T.TEXT]:"#3162AB",[T.UNKNOWN]:"#999999",[T.VIDEO]:"#E63324",[T.WAV]:"#1795E3",[T.WMA]:"#1795E3",[T.WORD]:"#3162AB",[T.XML]:"#71C3EB",[T.YAML]:"#71C3EB",[T.ZIP]:"#F8AB36"};var Ie;(function(r){r.fluid_topics="fluid-topics",r.file_format="file-format",r.material="material"})(Ie||(Ie={}));var Pi=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Se=class extends H{constructor(){super(...arguments),this.resolvedIcon=B}render(){let e=this.variant&&Object.values(Ie).includes(this.variant)?this.variant:Ie.fluid_topics,t=e!==Ie.material||!!this.value;return $`
|
|
642
642
|
<i class="ft-icon ft-icon--${e}" part="icon icon-${e}">
|
|
643
|
-
${
|
|
643
|
+
${_n(this.resolvedIcon)}
|
|
644
644
|
<slot ?hidden=${t}></slot>
|
|
645
645
|
</i>
|
|
646
|
-
`}get textContent(){var e,t;return(t=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&t!==void 0?t:""}update(e){super.update(e),["value","variant"].some(t=>e.has(t))&&this.resolveIcon()}resolveIcon(){var e,t;let o=this.value||this.textContent;switch(this.variant){case
|
|
646
|
+
`}get textContent(){var e,t;return(t=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&t!==void 0?t:""}update(e){super.update(e),["value","variant"].some(t=>e.has(t))&&this.resolveIcon()}resolveIcon(){var e,t;let o=this.value||this.textContent;switch(this.variant){case Ie.file_format:this.resolvedIcon=(e=T[o.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:o;break;case Ie.material:this.resolvedIcon=this.value||B;break;default:this.resolvedIcon=(t=wr[o.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:o;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};Se.elementDefinitions={};Se.styles=Id;Pi([y()],Se.prototype,"variant",void 0);Pi([y()],Se.prototype,"value",void 0);Pi([z()],Se.prototype,"resolvedIcon",void 0);Pi([Z("slot")],Se.prototype,"slottedContent",void 0);V("ft-icon")(Se);var we={borderRadiusLeft:i.extend("--ft-switch-option-border-radius-left","",_.borderRadiusL),borderRadiusRight:i.extend("--ft-switch-option-border-radius-right","",_.borderRadiusL),borderWidthLeft:i.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:i.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:i.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},zd=P`
|
|
647
647
|
.ft-switch-option {
|
|
648
648
|
position: relative;
|
|
649
649
|
display: inline-block;
|
|
@@ -657,20 +657,20 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
657
657
|
}
|
|
658
658
|
|
|
659
659
|
.ft-switch-option--content {
|
|
660
|
-
--ft-switch-option-internal-line-height: calc(${
|
|
661
|
-
--ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${
|
|
660
|
+
--ft-switch-option-internal-line-height: calc(${he.fontSize} + 2px);
|
|
661
|
+
--ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${he.iconSize});
|
|
662
662
|
|
|
663
663
|
border-style: solid;
|
|
664
|
-
border-color: ${
|
|
665
|
-
border-width: ${
|
|
666
|
-
border-radius: ${
|
|
664
|
+
border-color: ${he.borderColor};
|
|
665
|
+
border-width: ${we.borderWidthVertical} ${we.borderWidthRight} ${we.borderWidthVertical} ${we.borderWidthLeft};
|
|
666
|
+
border-radius: ${we.borderRadiusLeft} ${we.borderRadiusRight} ${we.borderRadiusRight} ${we.borderRadiusLeft};
|
|
667
667
|
display: flex;
|
|
668
668
|
align-items: center;
|
|
669
669
|
justify-content: center;
|
|
670
670
|
overflow: hidden;
|
|
671
|
-
${C(
|
|
671
|
+
${C(Oe.size,he.iconSize)};
|
|
672
672
|
padding: var(--ft-switch-internal-vertical-padding, 6px) var(--ft-switch-internal-horizontal-padding, 8px);
|
|
673
|
-
background-color: ${
|
|
673
|
+
background-color: ${he.backgroundColor};
|
|
674
674
|
-webkit-mask-image: radial-gradient(white, black);
|
|
675
675
|
}
|
|
676
676
|
|
|
@@ -679,32 +679,32 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
679
679
|
}
|
|
680
680
|
|
|
681
681
|
.ft-switch-option--selected .ft-switch-option--content:before {
|
|
682
|
-
background-color: ${
|
|
683
|
-
border-radius: ${
|
|
682
|
+
background-color: ${he.selectedBackgroundColor};
|
|
683
|
+
border-radius: ${we.borderRadiusLeft} ${we.borderRadiusRight} ${we.borderRadiusRight} ${we.borderRadiusLeft};
|
|
684
684
|
position: absolute;
|
|
685
685
|
inset: 0;
|
|
686
686
|
content: "";
|
|
687
687
|
z-index: 1;
|
|
688
|
-
opacity: ${
|
|
688
|
+
opacity: ${_.opacityPrimaryOnSurfaceSelected};
|
|
689
689
|
}
|
|
690
690
|
|
|
691
691
|
.ft-switch-option--label {
|
|
692
|
-
color: ${
|
|
692
|
+
color: ${he.textColor};
|
|
693
693
|
overflow: hidden;
|
|
694
694
|
white-space: nowrap;
|
|
695
695
|
text-overflow: ellipsis;
|
|
696
696
|
display: block;
|
|
697
697
|
margin: 0 8px;
|
|
698
|
-
${C(
|
|
699
|
-
${C(
|
|
698
|
+
${C(Le.fontSize,he.fontSize)};
|
|
699
|
+
${C(Le.lineHeight,"var(--ft-switch-option-internal-content-height)")}
|
|
700
700
|
}
|
|
701
701
|
|
|
702
702
|
.ft-switch-option--selected .ft-switch-option--label {
|
|
703
|
-
color: ${
|
|
703
|
+
color: ${he.selectedTextColor};
|
|
704
704
|
}
|
|
705
705
|
|
|
706
706
|
.ft-switch-option--focused {
|
|
707
|
-
outline: 1px solid ${
|
|
707
|
+
outline: 1px solid ${he.outlineColor};
|
|
708
708
|
}
|
|
709
709
|
|
|
710
710
|
.ft-switch-option--label[hidden] {
|
|
@@ -712,7 +712,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
712
712
|
}
|
|
713
713
|
|
|
714
714
|
.ft-switch-option--ripple {
|
|
715
|
-
${C(W.color,
|
|
715
|
+
${C(W.color,he.rippleColor)};
|
|
716
716
|
}
|
|
717
717
|
|
|
718
718
|
ft-icon, ft-ripple, ft-typography {
|
|
@@ -725,20 +725,20 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
725
725
|
|
|
726
726
|
ft-icon {
|
|
727
727
|
flex-shrink: 0;
|
|
728
|
-
color: ${
|
|
728
|
+
color: ${he.iconColor};
|
|
729
729
|
}
|
|
730
730
|
|
|
731
731
|
.ft-switch-option--selected ft-icon {
|
|
732
|
-
color: ${
|
|
732
|
+
color: ${he.selectedTextColor};
|
|
733
733
|
}
|
|
734
|
-
`;var
|
|
735
|
-
<label part="label" for="input" class=${
|
|
734
|
+
`;var ot=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},As=class extends CustomEvent{constructor(e){super("option-change-by-user",{detail:e,bubbles:!0,composed:!0})}},Rs=class extends CustomEvent{constructor(e){super("option-change",{detail:e,bubbles:!0,composed:!0})}},be=class extends H{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(e){super.update(e),e.has("selected")&&this.dispatchEvent(new Rs(this.selected))}render(){let e={"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($`
|
|
735
|
+
<label part="label" for="input" class=${$e(e)}
|
|
736
736
|
@click=${this.onChange}>
|
|
737
737
|
<div class="ft-switch-option--content">
|
|
738
738
|
<ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
|
|
739
739
|
<ft-typography part="text"
|
|
740
740
|
variant="button"
|
|
741
|
-
class="ft-switch-option--label ${
|
|
741
|
+
class="ft-switch-option--label ${$o?"ft-safari-ellipsis-fix":""}"
|
|
742
742
|
?hidden=${!this.hasTextContent()}>
|
|
743
743
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
744
744
|
</ft-typography>
|
|
@@ -753,23 +753,23 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
753
753
|
position="${this.tooltipPosition}">
|
|
754
754
|
${e}
|
|
755
755
|
</ft-tooltip>
|
|
756
|
-
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.onFocusout)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this.onFocusout)}onFocusout(e){this.isFocused=!1}onChange(){this.selected=this.unselectable?!this.selected:!0,this.dispatchEvent(new
|
|
756
|
+
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.onFocusout)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this.onFocusout)}onFocusout(e){this.isFocused=!1}onChange(){this.selected=this.unselectable?!this.selected:!0,this.dispatchEvent(new As(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?$`
|
|
757
757
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
758
|
-
`:B}get textContent(){var e,t;return(t=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&t!==void 0?t:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}};
|
|
759
|
-
<div @keydown=${this.onKeyDown} tabindex="-1" class="${
|
|
758
|
+
`:B}get textContent(){var e,t;return(t=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&t!==void 0?t:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}};be.elementDefinitions={"ft-ripple":X,"ft-typography":ye,"ft-tooltip":ue,"ft-icon":Se};be.styles=[yr,zd];ot([y()],be.prototype,"value",void 0);ot([y()],be.prototype,"icon",void 0);ot([y()],be.prototype,"iconVariant",void 0);ot([y()],be.prototype,"label",void 0);ot([y()],be.prototype,"tooltipPosition",void 0);ot([y({type:Boolean,reflect:!0})],be.prototype,"selected",void 0);ot([y({type:Boolean})],be.prototype,"trailingIcon",void 0);ot([y({type:Boolean})],be.prototype,"unselectable",void 0);ot([Z(".ft-switch-option--content slot")],be.prototype,"slottedContent",void 0);ot([Z(".ft-switch-option--input")],be.prototype,"input",void 0);ot([z()],be.prototype,"isFocused",void 0);var Er=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},_s=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Me=class extends H{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.displayFocusWhenUsingKeyboard=!1,this.options=[]}get value(){var e;return(e=this.selectedOption)===null||e===void 0?void 0:e.value}update(e){super.update(e),e.has("selectedOption")&&this.updateOptions(),e.has("unselectable")&&this.options.forEach(t=>t.unselectable=this.unselectable)}render(){let e={"ft-switch":!0,"ft-switch--dense":this.dense};return $`
|
|
759
|
+
<div @keydown=${this.onKeyDown} tabindex="-1" class="${$e(e)}" role="radiogroup" aria-label=${this.label}>
|
|
760
760
|
<slot @slotchange=${this.onSlotchange}
|
|
761
761
|
@option-change=${this.onOptionChangeByScript}
|
|
762
762
|
@option-change-by-user=${this.onOptionChangeByUser}
|
|
763
763
|
></slot>
|
|
764
764
|
</div>
|
|
765
|
-
`}onKeyDown(e){let t;(e.key=="ArrowDown"||e.key=="ArrowRight")&&(t=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),(e.key=="ArrowUp"||e.key=="ArrowLeft")&&(t=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),e.code=="Space"&&(t=this.options.indexOf(e.target)),t!=null&&(e.preventDefault(),this.options[this.fixIndex(t)].focus(),this.displayFocusWhenUsingKeyboard=!0,this.options[this.fixIndex(t)].selected=!0)}fixIndex(e){return e<0?this.options.length-1:e>this.options.length-1?0:e}onSlotchange(){var e;this.options=[],(e=this.slottedContent)===null||e===void 0||e.assignedElements().forEach(t=>{t instanceof
|
|
765
|
+
`}onKeyDown(e){let t;(e.key=="ArrowDown"||e.key=="ArrowRight")&&(t=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),(e.key=="ArrowUp"||e.key=="ArrowLeft")&&(t=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),e.code=="Space"&&(t=this.options.indexOf(e.target)),t!=null&&(e.preventDefault(),this.options[this.fixIndex(t)].focus(),this.displayFocusWhenUsingKeyboard=!0,this.options[this.fixIndex(t)].selected=!0)}fixIndex(e){return e<0?this.options.length-1:e>this.options.length-1?0:e}onSlotchange(){var e;this.options=[],(e=this.slottedContent)===null||e===void 0||e.assignedElements().forEach(t=>{t instanceof be&&this.registerOption(t)}),this.selectedOption=this.options.find(t=>t.selected)}registerOption(e){var t;(t=e.shadowRoot)===null||t===void 0||t.querySelectorAll("input").forEach(o=>{o.setAttribute("tabindex","-1")}),e.setAttribute("tabindex","0"),e.unselectable=this.unselectable,this.options.push(e)}onOptionChangeByScript(e){e.stopPropagation();let t=e.target;this.onOptionChange(t)}onOptionChangeByUser(e){var t;e.stopPropagation(),this.displayFocusWhenUsingKeyboard=!1,this.onOptionChange(e.target),this.dispatchEvent(new _s((t=this.selectedOption)===null||t===void 0?void 0:t.value))}onOptionChange(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(t=>t.selected)}private(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(t=>t.selected)}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach(e=>{e.selected=e===this.selectedOption,this.displayFocusWhenUsingKeyboard&&(e.isFocused=e===this.selectedOption)})}};Me.elementDefinitions={};Me.styles=P`
|
|
766
766
|
:host {
|
|
767
767
|
display: inline-block;
|
|
768
768
|
}
|
|
769
769
|
|
|
770
770
|
.ft-switch {
|
|
771
|
-
border-radius: ${
|
|
772
|
-
outline-color: ${
|
|
771
|
+
border-radius: ${he.borderRadius};
|
|
772
|
+
outline-color: ${he.outlineColor};
|
|
773
773
|
}
|
|
774
774
|
|
|
775
775
|
.ft-switch slot {
|
|
@@ -778,25 +778,25 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
778
778
|
}
|
|
779
779
|
|
|
780
780
|
.ft-switch slot::slotted(ft-switch-option) {
|
|
781
|
-
${C(
|
|
782
|
-
${C(
|
|
783
|
-
${C(
|
|
781
|
+
${C(we.borderRadiusLeft,"0")};
|
|
782
|
+
${C(we.borderRadiusRight,"0")};
|
|
783
|
+
${C(we.borderWidthLeft,"0")};
|
|
784
784
|
}
|
|
785
785
|
|
|
786
786
|
.ft-switch slot::slotted(ft-switch-option:first-child) {
|
|
787
|
-
${C(
|
|
788
|
-
${C(
|
|
787
|
+
${C(we.borderRadiusLeft,he.borderRadius)};
|
|
788
|
+
${C(we.borderWidthLeft,"1px")};
|
|
789
789
|
}
|
|
790
790
|
|
|
791
791
|
.ft-switch slot::slotted(ft-switch-option:last-child) {
|
|
792
|
-
${C(
|
|
792
|
+
${C(we.borderRadiusRight,he.borderRadius)};
|
|
793
793
|
}
|
|
794
794
|
|
|
795
795
|
.ft-switch--dense slot::slotted(ft-switch-option) {
|
|
796
796
|
--ft-switch-internal-vertical-padding: 2px;
|
|
797
797
|
--ft-switch-internal-horizontal-padding: 4px;
|
|
798
798
|
}
|
|
799
|
-
`;
|
|
799
|
+
`;Er([y({type:Boolean})],Me.prototype,"dense",void 0);Er([y({type:Boolean})],Me.prototype,"unselectable",void 0);Er([y()],Me.prototype,"label",void 0);Er([Z(".ft-switch slot")],Me.prototype,"slottedContent",void 0);Er([z()],Me.prototype,"selectedOption",void 0);Er([z()],Me.prototype,"displayFocusWhenUsingKeyboard",void 0);Er([Z(".ft-switch")],Me.prototype,"ftSwitchDiv",void 0);V("ft-switch")(Me);V("ft-switch-option")(be);var Hd={colorOutline:i.external(_.colorOutline,"Design system"),colorOnSurfaceMedium:i.external(_.colorOnSurfaceMedium,"Design system")},Wd=P`
|
|
800
800
|
:host {
|
|
801
801
|
display: block;
|
|
802
802
|
}
|
|
@@ -807,17 +807,17 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
807
807
|
|
|
808
808
|
ft-icon {
|
|
809
809
|
transform: rotate(-45deg);
|
|
810
|
-
color: ${
|
|
810
|
+
color: ${Hd.colorOutline};
|
|
811
811
|
}
|
|
812
812
|
|
|
813
813
|
.ft-resizer--dragging ft-icon,
|
|
814
814
|
.ft-resizer:hover ft-icon {
|
|
815
|
-
color: ${
|
|
815
|
+
color: ${Hd.colorOnSurfaceMedium};
|
|
816
816
|
}
|
|
817
|
-
`;var
|
|
817
|
+
`;var qt=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Ts=class extends CustomEvent{constructor(e,t){super("resize",{detail:{width:e,height:t}})}},Pe=class extends H{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=Ie.material,this.cursor="nwse-resize",this.dragging=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=e=>this.doDrag(e.clientX,e.clientY),this.doDragFromTouch=e=>this.doDrag(e.touches[0].clientX,e.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 $`
|
|
818
818
|
<style>
|
|
819
819
|
.ft-resizer {
|
|
820
|
-
cursor: ${
|
|
820
|
+
cursor: ${gt(this.cursor)}
|
|
821
821
|
}
|
|
822
822
|
</style>
|
|
823
823
|
<div class="ft-resizer ft-no-text-select ${this.dragging?"ft-resizer--dragging":""}"
|
|
@@ -825,7 +825,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
825
825
|
@touchstart=${this.initDragFromTouch}>
|
|
826
826
|
<ft-icon .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
827
827
|
</div>
|
|
828
|
-
`}initDragFromMouse(e){this.initDrag(e.clientX,e.clientY)}initDragFromTouch(e){e.preventDefault(),e.stopPropagation(),this.initDrag(e.touches[0].clientX,e.touches[0].clientY)}initDrag(e,t){this.dragging=!0,this.startX=e,this.startY=t,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(e,t){let o=this.fixedWidth+e-this.startX,n=this.fixedHeight+t-this.startY;this.dispatchEvent(new
|
|
828
|
+
`}initDragFromMouse(e){this.initDrag(e.clientX,e.clientY)}initDragFromTouch(e){e.preventDefault(),e.stopPropagation(),this.initDrag(e.touches[0].clientX,e.touches[0].clientY)}initDrag(e,t){this.dragging=!0,this.startX=e,this.startY=t,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(e,t){let o=this.fixedWidth+e-this.startX,n=this.fixedHeight+t-this.startY;this.dispatchEvent(new Ts(o,n))}};Pe.elementDefinitions={"ft-icon":Se};Pe.styles=[gr,Wd];qt([y({type:Number})],Pe.prototype,"initialWidth",void 0);qt([y({type:Number})],Pe.prototype,"initialHeight",void 0);qt([y()],Pe.prototype,"icon",void 0);qt([y()],Pe.prototype,"iconVariant",void 0);qt([y()],Pe.prototype,"cursor",void 0);qt([z()],Pe.prototype,"dragging",void 0);qt([vt({passive:!0})],Pe.prototype,"initDragFromMouse",null);qt([vt({passive:!0})],Pe.prototype,"initDragFromTouch",null);V("ft-resizer")(Pe);var F={fontSize:i.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:i.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:i.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:i.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:i.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:i.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:i.extend("--ft-input-label-border-color","",_.colorOutline),textColor:i.extend("--ft-input-label-text-color","",_.colorOnSurfaceMedium),disabledTextColor:i.extend("--ft-input-label-disabled-text-color","",_.colorOnSurfaceDisabled),colorSurface:i.external(_.colorSurface,"Design system"),borderRadiusS:i.external(_.borderRadiusS,"Design system"),colorError:i.external(_.colorError,"Design system")},Vd=P`
|
|
829
829
|
.ft-input-label {
|
|
830
830
|
position: absolute;
|
|
831
831
|
inset: 0;
|
|
@@ -876,8 +876,8 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
876
876
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
877
877
|
max-width: calc(${F.labelMaxWidth} - 2 * (${F.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
878
878
|
text-overflow: ellipsis;
|
|
879
|
-
${C(
|
|
880
|
-
${C(
|
|
879
|
+
${C(rt.fontSize,F.fontSize)};
|
|
880
|
+
${C(rt.lineHeight,F.fontSize)};
|
|
881
881
|
}
|
|
882
882
|
|
|
883
883
|
.ft-input-label--in-error .ft-input-label--text {
|
|
@@ -909,8 +909,8 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
909
909
|
}
|
|
910
910
|
|
|
911
911
|
.ft-input-label--raised .ft-input-label--text {
|
|
912
|
-
${C(
|
|
913
|
-
${C(
|
|
912
|
+
${C(rt.fontSize,F.raisedFontSize)};
|
|
913
|
+
${C(rt.lineHeight,F.raisedFontSize)};
|
|
914
914
|
}
|
|
915
915
|
|
|
916
916
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
@@ -947,8 +947,8 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
947
947
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
948
948
|
border-top: none;
|
|
949
949
|
}
|
|
950
|
-
`;var
|
|
951
|
-
<div class="${
|
|
950
|
+
`;var ko=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Ue=class extends H{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){let e={"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 $`
|
|
951
|
+
<div class="${$e(e)}">
|
|
952
952
|
${this.text?$`
|
|
953
953
|
<div class="ft-input-label--text ft-typography--caption">
|
|
954
954
|
<span class="ft-input-label--floating-text">${this.text}</span>
|
|
@@ -956,7 +956,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
956
956
|
</div>
|
|
957
957
|
`:null}
|
|
958
958
|
</div>
|
|
959
|
-
`}};
|
|
959
|
+
`}};Ue.elementDefinitions={};Ue.styles=[Ii,Vd];ko([y({type:String})],Ue.prototype,"text",void 0);ko([y({type:Boolean})],Ue.prototype,"raised",void 0);ko([y({type:Boolean})],Ue.prototype,"outlined",void 0);ko([y({type:Boolean})],Ue.prototype,"disabled",void 0);ko([y({type:Boolean})],Ue.prototype,"error",void 0);V("ft-input-label")(Ue);var te={fontSize:i.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:i.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:i.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:i.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:i.extend("--ft-text-area-helper-color","",_.colorOnSurfaceMedium),colorPrimary:i.external(_.colorPrimary,"Design system"),colorOnSurface:i.external(_.colorOnSurface,"Design system"),colorOnSurfaceDisabled:i.external(_.colorOnSurfaceDisabled,"Design system"),borderRadiusS:i.external(_.borderRadiusS,"Design system"),colorError:i.external(_.colorError,"Design system")},jd=P`
|
|
960
960
|
*:focus {
|
|
961
961
|
outline: none;
|
|
962
962
|
}
|
|
@@ -1002,8 +1002,8 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1002
1002
|
align-self: stretch;
|
|
1003
1003
|
resize: none;
|
|
1004
1004
|
|
|
1005
|
-
${C(
|
|
1006
|
-
${C(
|
|
1005
|
+
${C(Xe.fontSize,te.fontSize)};
|
|
1006
|
+
${C(Xe.lineHeight,te.fontSize)};
|
|
1007
1007
|
color: ${te.colorOnSurface};
|
|
1008
1008
|
|
|
1009
1009
|
padding: 0 ${te.horizontalSpacing};
|
|
@@ -1056,7 +1056,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1056
1056
|
position: absolute;
|
|
1057
1057
|
bottom: 0;
|
|
1058
1058
|
}
|
|
1059
|
-
`;var
|
|
1059
|
+
`;var Tt=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Re=class extends Or(H,"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 e={"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 $`
|
|
1060
1060
|
<style>
|
|
1061
1061
|
.ft-text-area--main-panel {
|
|
1062
1062
|
height: calc(4 * ${te.verticalSpacing} + ${te.labelSize} + ${te.fontSize} + ${this.height}px);
|
|
@@ -1066,7 +1066,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1066
1066
|
right: ${this.textarea!=null?this.textarea.offsetWidth-this.textarea.clientWidth:0}px;
|
|
1067
1067
|
}
|
|
1068
1068
|
</style>
|
|
1069
|
-
<div class="${
|
|
1069
|
+
<div class="${$e(e)}">
|
|
1070
1070
|
<div class="ft-text-area--main-panel">
|
|
1071
1071
|
<ft-input-label text="${this.label}"
|
|
1072
1072
|
?disabled=${this.disabled}
|
|
@@ -1098,23 +1098,23 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1098
1098
|
${this.helper}
|
|
1099
1099
|
</ft-typography>`:void 0}
|
|
1100
1100
|
</div>
|
|
1101
|
-
`}setValue(e,t=!1){this.value=e,this.setFormValue(e),t&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(e){(e.key==="Enter"||e.key===" ")&&e.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var e;this.value=((e=this.textarea)===null||e===void 0?void 0:e.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(e){e.detail.height>=50&&(this.height=e.detail.height)}};
|
|
1101
|
+
`}setValue(e,t=!1){this.value=e,this.setFormValue(e),t&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(e){(e.key==="Enter"||e.key===" ")&&e.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var e;this.value=((e=this.textarea)===null||e===void 0?void 0:e.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(e){e.detail.height>=50&&(this.height=e.detail.height)}};Re.elementDefinitions={"ft-input-label":Ue,"ft-resizer":Pe,"ft-ripple":X,"ft-typography":ye};Re.styles=[qr,jd];Tt([y({type:String})],Re.prototype,"label",void 0);Tt([y({reflect:!0})],Re.prototype,"value",void 0);Tt([y({type:String})],Re.prototype,"helper",void 0);Tt([y({type:Boolean})],Re.prototype,"outlined",void 0);Tt([y({type:Boolean})],Re.prototype,"disabled",void 0);Tt([y({type:Boolean})],Re.prototype,"error",void 0);Tt([y({type:Number,reflect:!0})],Re.prototype,"height",void 0);Tt([Z("textarea")],Re.prototype,"textarea",void 0);Tt([z()],Re.prototype,"focused",void 0);V("ft-text-area")(Re);var Cr=class extends H{render(){return $`
|
|
1102
1102
|
<div class="ft-loader">
|
|
1103
1103
|
<div></div>
|
|
1104
1104
|
<div></div>
|
|
1105
1105
|
<div></div>
|
|
1106
1106
|
<div></div>
|
|
1107
1107
|
</div>
|
|
1108
|
-
`}};
|
|
1108
|
+
`}};Cr.styles=Nd;V("ft-loader")(Cr);var We=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},ve=class extends Or(H,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),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",e=>{var t;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((t=this.form)===null||t===void 0||t.requestSubmit())})}render(){var e;return this.addTooltipIfNeeded($`
|
|
1109
1109
|
<button part="button"
|
|
1110
|
-
class="${
|
|
1110
|
+
class="${$e(this.buttonClasses)}"
|
|
1111
1111
|
aria-label="${(e=this.ariaLabel)!==null&&e!==void 0?e:this.getLabel()}"
|
|
1112
1112
|
?disabled=${this.isDisabled()}>
|
|
1113
1113
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
1114
1114
|
<ft-typography part="label"
|
|
1115
1115
|
variant=${this.typographyVariant}
|
|
1116
1116
|
element="span"
|
|
1117
|
-
class="ft-button--label ${
|
|
1117
|
+
class="ft-button--label ${$o?"ft-safari-ellipsis-fix":""}"
|
|
1118
1118
|
?hidden=${!this.hasTextContent()}>
|
|
1119
1119
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
1120
1120
|
</ft-typography>
|
|
@@ -1131,7 +1131,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1131
1131
|
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
1132
1132
|
`:$`
|
|
1133
1133
|
<slot part="icon" name="icon"></slot>
|
|
1134
|
-
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(e){return e instanceof HTMLSlotElement?e.assignedNodes().map(t=>this.unslotText(t)).join(""):e?.textContent||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};
|
|
1134
|
+
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(e){return e instanceof HTMLSlotElement?e.assignedNodes().map(t=>this.unslotText(t)).join(""):e?.textContent||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};ve.elementDefinitions={"ft-ripple":X,"ft-tooltip":ue,"ft-typography":ye,"ft-icon":Se,"ft-loader":Cr};We([y({type:String,reflect:!0})],ve.prototype,"role",void 0);We([y()],ve.prototype,"type",void 0);We([y({type:Boolean})],ve.prototype,"disabled",void 0);We([y()],ve.prototype,"label",void 0);We([y()],ve.prototype,"icon",void 0);We([y()],ve.prototype,"iconVariant",void 0);We([y({type:Boolean})],ve.prototype,"trailingIcon",void 0);We([y({type:Boolean})],ve.prototype,"loading",void 0);We([y({attribute:"aria-label"})],ve.prototype,"ariaLabel",void 0);We([y()],ve.prototype,"tooltipPosition",void 0);We([y({type:Boolean})],ve.prototype,"hideTooltip",void 0);We([y({type:Boolean})],ve.prototype,"forceTooltip",void 0);We([Z(".ft-button")],ve.prototype,"button",void 0);We([Z(".ft-button--label slot")],ve.prototype,"slottedContent",void 0);var $i=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},it=class extends ve{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"}};it.styles=[yr,kd];$i([y({type:Boolean})],it.prototype,"primary",void 0);$i([y({type:Boolean})],it.prototype,"outlined",void 0);$i([y({type:Boolean})],it.prototype,"dense",void 0);$i([y({type:Boolean})],it.prototype,"round",void 0);var Kd=[P`
|
|
1135
1135
|
:host {
|
|
1136
1136
|
display: inline-block;
|
|
1137
1137
|
max-width: 100%;
|
|
@@ -1181,7 +1181,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1181
1181
|
}
|
|
1182
1182
|
|
|
1183
1183
|
.ft-button:focus-visible {
|
|
1184
|
-
outline-color: ${
|
|
1184
|
+
outline-color: ${R.focusFocusRingColor};
|
|
1185
1185
|
outline-style: solid;
|
|
1186
1186
|
}
|
|
1187
1187
|
|
|
@@ -1215,175 +1215,175 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1215
1215
|
/** Primary styles **/
|
|
1216
1216
|
|
|
1217
1217
|
.ft-button--primary {
|
|
1218
|
-
${C(
|
|
1218
|
+
${C(De.color,R.primaryIconColor)};
|
|
1219
1219
|
|
|
1220
|
-
${C(W.color,
|
|
1221
|
-
${C(W.opacityContentOnSurfaceHover,
|
|
1222
|
-
${C(W.opacityContentOnSurfaceFocused,
|
|
1223
|
-
${C(W.opacityContentOnSurfaceSelected,
|
|
1224
|
-
${C(W.opacityContentOnSurfacePressed,
|
|
1220
|
+
${C(W.color,R.primaryStateLayerColor)};
|
|
1221
|
+
${C(W.opacityContentOnSurfaceHover,R.primaryHoverStateLayerOpacity)};
|
|
1222
|
+
${C(W.opacityContentOnSurfaceFocused,R.primaryFocusStateLayerOpacity)};
|
|
1223
|
+
${C(W.opacityContentOnSurfaceSelected,R.primaryActiveStateLayerOpacity)};
|
|
1224
|
+
${C(W.opacityContentOnSurfacePressed,R.primaryActiveStateLayerOpacity)};
|
|
1225
1225
|
|
|
1226
|
-
background-color: ${
|
|
1227
|
-
color: ${
|
|
1226
|
+
background-color: ${R.primaryBackgroundColor};
|
|
1227
|
+
color: ${R.primaryColor};
|
|
1228
1228
|
border-style: none;
|
|
1229
1229
|
}
|
|
1230
1230
|
|
|
1231
1231
|
.ft-button--primary[disabled] {
|
|
1232
|
-
opacity: ${
|
|
1232
|
+
opacity: ${R.primaryDisabledComponentOpacity};
|
|
1233
1233
|
}
|
|
1234
1234
|
|
|
1235
1235
|
.ft-button--primary ft-icon {
|
|
1236
|
-
color: ${
|
|
1236
|
+
color: ${R.primaryIconColor};
|
|
1237
1237
|
}
|
|
1238
1238
|
|
|
1239
1239
|
/** Secondary styles **/
|
|
1240
1240
|
|
|
1241
1241
|
.ft-button--secondary {
|
|
1242
|
-
${C(
|
|
1242
|
+
${C(De.color,R.secondaryIconColor)};
|
|
1243
1243
|
|
|
1244
|
-
${C(W.color,
|
|
1245
|
-
${C(W.opacityContentOnSurfaceHover,
|
|
1246
|
-
${C(W.opacityContentOnSurfaceFocused,
|
|
1247
|
-
${C(W.opacityContentOnSurfaceSelected,
|
|
1248
|
-
${C(W.opacityContentOnSurfacePressed,
|
|
1244
|
+
${C(W.color,R.secondaryStateLayerColor)};
|
|
1245
|
+
${C(W.opacityContentOnSurfaceHover,R.secondaryHoverStateLayerOpacity)};
|
|
1246
|
+
${C(W.opacityContentOnSurfaceFocused,R.secondaryFocusStateLayerOpacity)};
|
|
1247
|
+
${C(W.opacityContentOnSurfaceSelected,R.secondaryActiveStateLayerOpacity)};
|
|
1248
|
+
${C(W.opacityContentOnSurfacePressed,R.secondaryActiveStateLayerOpacity)};
|
|
1249
1249
|
|
|
1250
|
-
background-color: ${
|
|
1251
|
-
color: ${
|
|
1252
|
-
border-color: ${
|
|
1250
|
+
background-color: ${R.secondaryBackgroundColor};
|
|
1251
|
+
color: ${R.secondaryColor};
|
|
1252
|
+
border-color: ${R.secondaryBorderColor};
|
|
1253
1253
|
border-style: solid;
|
|
1254
1254
|
}
|
|
1255
1255
|
|
|
1256
1256
|
.ft-button--secondary[disabled] {
|
|
1257
|
-
opacity: ${
|
|
1257
|
+
opacity: ${R.secondaryDisabledComponentOpacity};
|
|
1258
1258
|
}
|
|
1259
1259
|
|
|
1260
1260
|
.ft-button--secondary ft-icon {
|
|
1261
|
-
color: ${
|
|
1261
|
+
color: ${R.secondaryIconColor};
|
|
1262
1262
|
}
|
|
1263
1263
|
|
|
1264
1264
|
/** Tertiary styles **/
|
|
1265
1265
|
|
|
1266
1266
|
.ft-button--tertiary {
|
|
1267
|
-
${C(
|
|
1267
|
+
${C(De.color,R.tertiaryIconColor)};
|
|
1268
1268
|
|
|
1269
|
-
${C(W.color,
|
|
1270
|
-
${C(W.opacityContentOnSurfaceHover,
|
|
1271
|
-
${C(W.opacityContentOnSurfaceFocused,
|
|
1272
|
-
${C(W.opacityContentOnSurfaceSelected,
|
|
1273
|
-
${C(W.opacityContentOnSurfacePressed,
|
|
1269
|
+
${C(W.color,R.tertiaryStateLayerColor)};
|
|
1270
|
+
${C(W.opacityContentOnSurfaceHover,R.tertiaryHoverStateLayerOpacity)};
|
|
1271
|
+
${C(W.opacityContentOnSurfaceFocused,R.tertiaryFocusStateLayerOpacity)};
|
|
1272
|
+
${C(W.opacityContentOnSurfaceSelected,R.tertiaryActiveStateLayerOpacity)};
|
|
1273
|
+
${C(W.opacityContentOnSurfacePressed,R.tertiaryActiveStateLayerOpacity)};
|
|
1274
1274
|
|
|
1275
|
-
background-color: ${
|
|
1276
|
-
color: ${
|
|
1275
|
+
background-color: ${R.tertiaryBackgroundColor};
|
|
1276
|
+
color: ${R.tertiaryColor};
|
|
1277
1277
|
border-style: none;
|
|
1278
1278
|
}
|
|
1279
1279
|
|
|
1280
1280
|
.ft-button--tertiary[disabled] {
|
|
1281
|
-
opacity: ${
|
|
1281
|
+
opacity: ${R.tertiaryDisabledComponentOpacity};
|
|
1282
1282
|
}
|
|
1283
1283
|
|
|
1284
1284
|
.ft-button--tertiary ft-icon {
|
|
1285
|
-
color: ${
|
|
1285
|
+
color: ${R.tertiaryIconColor};
|
|
1286
1286
|
}
|
|
1287
1287
|
|
|
1288
1288
|
/** Neutral styles **/
|
|
1289
1289
|
|
|
1290
1290
|
.ftds--family-neutral {
|
|
1291
|
-
${C(
|
|
1291
|
+
${C(De.color,R.neutralIconColor)};
|
|
1292
1292
|
|
|
1293
|
-
${C(W.backgroundColor,
|
|
1294
|
-
${C(W.opacityContentOnSurfaceHover,
|
|
1295
|
-
${C(W.opacityContentOnSurfaceFocused,
|
|
1296
|
-
${C(W.opacityContentOnSurfaceSelected,
|
|
1297
|
-
${C(W.opacityContentOnSurfacePressed,
|
|
1293
|
+
${C(W.backgroundColor,R.neutralStateLayerColor)};
|
|
1294
|
+
${C(W.opacityContentOnSurfaceHover,R.neutralHoverStateLayerOpacity)};
|
|
1295
|
+
${C(W.opacityContentOnSurfaceFocused,R.neutralFocusStateLayerOpacity)};
|
|
1296
|
+
${C(W.opacityContentOnSurfaceSelected,R.neutralActiveStateLayerOpacity)};
|
|
1297
|
+
${C(W.opacityContentOnSurfacePressed,R.neutralActiveStateLayerOpacity)};
|
|
1298
1298
|
|
|
1299
|
-
background-color: ${
|
|
1300
|
-
color: ${
|
|
1299
|
+
background-color: ${R.neutralBackgroundColor};
|
|
1300
|
+
color: ${R.neutralColor};
|
|
1301
1301
|
border-style: none;
|
|
1302
1302
|
}
|
|
1303
1303
|
|
|
1304
1304
|
.ftds--family-neutral[disabled] {
|
|
1305
|
-
opacity: ${
|
|
1305
|
+
opacity: ${R.neutralDisabledComponentOpacity};
|
|
1306
1306
|
}
|
|
1307
1307
|
|
|
1308
1308
|
.ftds--family-neutral ft-icon {
|
|
1309
|
-
color: ${
|
|
1309
|
+
color: ${R.neutralIconColor};
|
|
1310
1310
|
}
|
|
1311
1311
|
|
|
1312
1312
|
/** Large styles **/
|
|
1313
1313
|
|
|
1314
1314
|
.ftds--size-large {
|
|
1315
|
-
${C(
|
|
1316
|
-
${C(
|
|
1315
|
+
${C(Oe.size,R.largeIconSize)};
|
|
1316
|
+
${C(De.size,R.largeIconSize)};
|
|
1317
1317
|
|
|
1318
|
-
height: ${
|
|
1319
|
-
padding: 0 ${
|
|
1320
|
-
gap: ${
|
|
1321
|
-
border-radius: ${
|
|
1322
|
-
border-width: ${
|
|
1318
|
+
height: ${R.largeHeight};
|
|
1319
|
+
padding: 0 ${R.largeHorizontalPadding};
|
|
1320
|
+
gap: ${R.largeGap};
|
|
1321
|
+
border-radius: ${R.largeBorderRadius};
|
|
1322
|
+
border-width: ${R.largeBorderWidth};
|
|
1323
1323
|
}
|
|
1324
1324
|
|
|
1325
1325
|
.ftds--size-large:focus-visible {
|
|
1326
|
-
outline-width: ${
|
|
1327
|
-
outline-offset: ${
|
|
1326
|
+
outline-width: ${R.largeFocusOutlineWidth};
|
|
1327
|
+
outline-offset: ${R.largeFocusOutlineOffset};
|
|
1328
1328
|
}
|
|
1329
1329
|
|
|
1330
1330
|
.ftds--size-large.ft-button--icon-only {
|
|
1331
|
-
width: ${
|
|
1331
|
+
width: ${R.largeIconOnlyWidth};
|
|
1332
1332
|
}
|
|
1333
1333
|
|
|
1334
1334
|
/** Small styles **/
|
|
1335
1335
|
|
|
1336
1336
|
.ftds--size-medium {
|
|
1337
|
-
${C(
|
|
1338
|
-
${C(
|
|
1337
|
+
${C(Oe.size,R.mediumIconSize)};
|
|
1338
|
+
${C(De.size,R.mediumIconSize)};
|
|
1339
1339
|
|
|
1340
|
-
height: ${
|
|
1341
|
-
padding: 0 ${
|
|
1342
|
-
gap: ${
|
|
1343
|
-
border-radius: ${
|
|
1344
|
-
border-width: ${
|
|
1340
|
+
height: ${R.mediumHeight};
|
|
1341
|
+
padding: 0 ${R.mediumHorizontalPadding};
|
|
1342
|
+
gap: ${R.mediumGap};
|
|
1343
|
+
border-radius: ${R.mediumBorderRadius};
|
|
1344
|
+
border-width: ${R.mediumBorderWidth};
|
|
1345
1345
|
}
|
|
1346
1346
|
|
|
1347
1347
|
.ftds--size-medium:focus-visible {
|
|
1348
|
-
outline-width: ${
|
|
1349
|
-
outline-offset: ${
|
|
1348
|
+
outline-width: ${R.mediumFocusOutlineWidth};
|
|
1349
|
+
outline-offset: ${R.mediumFocusOutlineOffset};
|
|
1350
1350
|
}
|
|
1351
1351
|
|
|
1352
1352
|
.ftds--size-medium.ft-button--icon-only {
|
|
1353
|
-
width: ${
|
|
1353
|
+
width: ${R.mediumIconOnlyWidth};
|
|
1354
1354
|
}
|
|
1355
1355
|
|
|
1356
1356
|
|
|
1357
1357
|
/** Small styles **/
|
|
1358
1358
|
|
|
1359
1359
|
.ftds--size-small {
|
|
1360
|
-
${C(
|
|
1361
|
-
${C(
|
|
1360
|
+
${C(Oe.size,R.smallIconSize)};
|
|
1361
|
+
${C(De.size,R.smallIconSize)};
|
|
1362
1362
|
|
|
1363
|
-
height: ${
|
|
1364
|
-
padding: 0 ${
|
|
1365
|
-
gap: ${
|
|
1366
|
-
border-radius: ${
|
|
1367
|
-
border-width: ${
|
|
1363
|
+
height: ${R.smallHeight};
|
|
1364
|
+
padding: 0 ${R.smallHorizontalPadding};
|
|
1365
|
+
gap: ${R.smallGap};
|
|
1366
|
+
border-radius: ${R.smallBorderRadius};
|
|
1367
|
+
border-width: ${R.smallBorderWidth};
|
|
1368
1368
|
}
|
|
1369
1369
|
|
|
1370
1370
|
.ftds--size-small:focus-visible {
|
|
1371
|
-
outline-width: ${
|
|
1372
|
-
outline-offset: ${
|
|
1371
|
+
outline-width: ${R.smallFocusOutlineWidth};
|
|
1372
|
+
outline-offset: ${R.smallFocusOutlineOffset};
|
|
1373
1373
|
}
|
|
1374
1374
|
|
|
1375
1375
|
.ftds--size-small.ft-button--icon-only {
|
|
1376
|
-
width: ${
|
|
1376
|
+
width: ${R.smallIconOnlyWidth};
|
|
1377
1377
|
}
|
|
1378
|
-
`,
|
|
1379
|
-
`;var
|
|
1380
|
-
`;var
|
|
1378
|
+
`,gr];var ki=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Nt=class extends bi(ve){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=ur.brand,this.iconVariant=Ie.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 St.large:return Zt.body2medium;case St.medium:return Zt.caption1medium;case St.small:return Zt.caption2medium}}};Nt.styles=[yr,Kd];ki([y({type:Boolean})],Nt.prototype,"primary",void 0);ki([y({type:Boolean})],Nt.prototype,"secondary",void 0);ki([y({type:Boolean})],Nt.prototype,"tertiary",void 0);ki([y({type:Boolean})],Nt.prototype,"round",void 0);V("ft-button")(it);V("ftds-button")(Nt);var Gd=P`
|
|
1379
|
+
`;var Zd=P`
|
|
1380
|
+
`;var Wf="ft-app-info",Ns=class extends CustomEvent{constructor(e){super("authentication-change",{detail:e})}},Vf={session:(r,e)=>{Qe(r.session,e.payload)||(r.session=e.payload,setTimeout(()=>L.eventBus.dispatchEvent(new Ns(e.payload)),0))}},L=At.get({name:Wf,reducers:Vf,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var Ar=class r{static get(e){let{baseUrl:t,apiIntegrationIdentifier:o}=L.getState(),n=e??o;if(t&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(t,n,!0)}static await(e){return new Promise(t=>{let o=r.get(e);if(o)t(o);else{let n=L.subscribe(()=>{o=r.get(e),o&&(n(),t(o))})}})}};var ht=class{constructor(e=!0,t){var o;this.overrideApi=t;let n=this.constructor;n.commonCache=(o=n.commonCache)!==null&&o!==void 0?o:new lt,this.cache=e?n.commonCache:new lt}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Ar.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ar.await()}clearCache(){this.cache.clearAll()}};var qd,jf=Symbol("clearAfterUnitTest"),Li=class extends ht{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[qd]=()=>{this.defaultMessages={},this.cache=new lt,this.listeners={}},this.currentUiLocale=L.getState().uiLocale,L.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=L.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let t=e.name.toLowerCase();this.cache.setFinal(t,e),this.notify(t)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,t){var o;if(e=e.toLowerCase(),Object.keys(t).length>0){let n={...(o=this.defaultMessages[e])!==null&&o!==void 0?o:{},...t};Qe(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}await this.fetchContext(e)}resolveContext(e){var t,o;return this.fetchContext(e),(o=(t=this.cache.getNow(e))===null||t===void 0?void 0:t.messages)!==null&&o!==void 0?o:{}}resolveRawMessage(e,t){let o=e.toLowerCase();return this.resolveContext(o)[t]}resolveMessage(e,t,...o){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new Ao((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(t,...o)}async fetchContext(e){if(!this.cache.has(e))try{await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),await this.notify(e)}catch(t){console.error(t)}}subscribe(e,t){var o;return e=e.toLowerCase(),this.listeners[e]=(o=this.listeners[e])!==null&&o!==void 0?o:new Set,this.listeners[e].add(t),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(t)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(e=>this.notify(e)))}async notify(e){this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(t=>li(0).then(()=>t()).catch(()=>null)))}};qd=jf;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Li{constructor(){super(async(r,e)=>(await this.awaitApi).getFluidTopicsMessageContext(r,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Li{constructor(){super(async(r,e)=>(await this.awaitApi).getCustomMessageContext(r,e))}});var Rr=window.FluidTopicsI18nService,Yd=window.FluidTopicsCustomI18nService;var Fe=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},xe=class extends H{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=()=>Ar.get(),this.messageContexts=[],this.cache=new lt,this.cleanSessionDebouncer=new ae}render(){return $`
|
|
1381
1381
|
<slot></slot>
|
|
1382
|
-
`}update(e){super.update(e),e.has("baseUrl")&&(L.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&L.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&L.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&L.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&L.actions.noCustom(this.noCustom),e.has("editorMode")&&L.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&L.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&L.actions.session(this.session),e.has("availableUiLocales")&&L.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(t=>
|
|
1382
|
+
`}update(e){super.update(e),e.has("baseUrl")&&(L.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&L.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&L.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&L.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&L.actions.noCustom(this.noCustom),e.has("editorMode")&&L.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&L.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&L.actions.session(this.session),e.has("availableUiLocales")&&L.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(t=>Rr.addContext(t)),e.has("openExternalDocumentInNewTab")&&L.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&L.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&L.actions.forcedOffline(this.forcedOffline),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(this.session==null&&this.updateSession(),this.availableUiLocales==null&&this.updateUiLocales(),this.metadataConfiguration==null&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};xe.elementDefinitions={};xe.styles=Zd;Fe([y()],xe.prototype,"baseUrl",void 0);Fe([y()],xe.prototype,"apiIntegrationIdentifier",void 0);Fe([y()],xe.prototype,"uiLocale",void 0);Fe([ct(null)],xe.prototype,"availableUiLocales",void 0);Fe([ct(null)],xe.prototype,"metadataConfiguration",void 0);Fe([y({type:Boolean})],xe.prototype,"editorMode",void 0);Fe([y({type:Boolean})],xe.prototype,"noCustom",void 0);Fe([y({type:Boolean})],xe.prototype,"openExternalDocumentInNewTab",void 0);Fe([y({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],xe.prototype,"noCustomComponent",void 0);Fe([y({type:Boolean})],xe.prototype,"withManualResources",void 0);Fe([y({type:Boolean})],xe.prototype,"navigatorOnline",void 0);Fe([y({type:Boolean})],xe.prototype,"forcedOffline",void 0);Fe([y({type:Object})],xe.prototype,"apiProvider",void 0);Fe([ct([])],xe.prototype,"messageContexts",void 0);Fe([ct(void 0)],xe.prototype,"session",void 0);var Di=class extends ht{async listMySearches(){let e=L.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Mi=class extends ht{async listMyBookmarks(){let e=L.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Kf="ft-user-assets",Ui=At.get({name:Kf,initialState:{savedSearches:void 0,bookmarks:void 0}}),Is=class{constructor(){this.currentSession=L.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Mi,this.savedSearchesService=new Di,L.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:t}=L.getState();Qe((e=this.currentSession)===null||e===void 0?void 0:e.profile,t?.profile)||(this.currentSession=t,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ui.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ui.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Ui.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let t=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Ui.actions.bookmarks(t)}}},Xd=new Is;var Ps=class{addCommand(e,t=!1){L.commands.add(e,t)}consumeCommand(e){return L.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Ps;var $s=class{highlightHtml(e,t,o){$a(e,t,o)}};window.FluidTopicsHighlightHtmlService=new $s;var ks=class{isDate(e){var t,o,n,a;return(a=(n=((o=(t=L.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&o!==void 0?o:[]).find(l=>l.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,t){var o,n,a;return Wr.format(e,(o=t?.locale)!==null&&o!==void 0?o:L.getState().uiLocale,(n=t?.longFormat)!==null&&n!==void 0?n:!1,(a=t?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new ks;V("ft-app-context")(xe);var Gf=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Ls=Symbol("i18nAttributes"),_r=Symbol("i18nProperties"),Lo=Symbol("i18nUnsubs");function Yt(r){var e;class t extends r{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Yd:Rr}i18n(n,a,...s){var l;if(typeof n=="string")return this.i18nService.resolveMessage(n,a,...s);let c=(l=n.args)!==null&&l!==void 0?l:n.argsProvider?n.argsProvider(this):[];return this.i18nService.resolveMessage(n.context,n.key,...c)}onI18nUpdate(n){var a,s;(a=this[Ls])===null||a===void 0||a.forEach((l,c)=>{var p;let h=this.getI18nAttributeValue(c);((p=h?.context)===null||p===void 0?void 0:p.toLowerCase())===n.toLowerCase()&&this.updateI18nAttributeMessage(c,h,l)}),(s=this[_r])===null||s===void 0||s.forEach((l,c)=>{l.context.toLowerCase()===n.toLowerCase()&&(this[c]=this.i18n(l))}),setTimeout(()=>this.requestUpdate(),0)}updateI18nAttributeMessage(n,a,s){this[n]={...a,message:this.i18n({context:a.context,key:a.key,...s})}}update(n){var a,s;super.update(n),(a=this[Ls])===null||a===void 0||a.forEach((l,c)=>{let p=this.getI18nAttributeValue(c);p?.context&&p.key&&(n.has(c)||l.argsProvider!=null)&&(n.has(c)&&this.addI18nContext(p.context),this.updateI18nAttributeMessage(c,p,l))}),(s=this[_r])===null||s===void 0||s.forEach((l,c)=>{l.argsProvider!=null&&(this[c]=this.i18n(l))})}getI18nAttributeValue(n){return this[n]}connectedCallback(){var n,a,s,l;super.connectedCallback(),new Set([...(a=(n=this[_r])===null||n===void 0?void 0:n.values())!==null&&a!==void 0?a:[],...[...(l=(s=this[Ls])===null||s===void 0?void 0:s.keys())!==null&&l!==void 0?l:[]].map(c=>this.getI18nAttributeValue(c))].map(c=>c?.context)).forEach(c=>c&&this.addI18nMessages(c))}addI18nMessages(n,a){n=n.toLowerCase(),this[Lo].has(n)||this[Lo].set(n,this.i18nService.subscribe(n,()=>this.onI18nUpdate(n))),this.i18nService.prepareContext(n,a??{}),this.onI18nUpdate(n)}addI18nContext(n,a){this.addI18nMessages(typeof n=="string"?n:n.name,a)}disconnectedCallback(){super.disconnectedCallback(),this[Lo].forEach(n=>n()),this[Lo].clear()}}return e=Lo,Gf([y({type:Boolean})],t.prototype,"useCustomMessageContexts",void 0),t}var Jd=class extends Yt(H){},Fi=class extends Yt(Ze){};var Do=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},nt=class extends Fi{constructor(){super(),this.editorMode=!1,this.addStore(L)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":B:$`
|
|
1383
1383
|
<span class="ft-i18n">
|
|
1384
1384
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
1385
1385
|
</span>
|
|
1386
|
-
`}update(e){var t;super.update(e),["context","key","defaultMessage"].some(o=>e.has(o))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(t=this.defaultMessage)!==null&&t!==void 0?t:""})}};
|
|
1386
|
+
`}update(e){var t;super.update(e),["context","key","defaultMessage"].some(o=>e.has(o))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(t=this.defaultMessage)!==null&&t!==void 0?t:""})}};nt.elementDefinitions={};nt.styles=Gd;Do([ce()],nt.prototype,"editorMode",void 0);Do([y()],nt.prototype,"context",void 0);Do([y()],nt.prototype,"key",void 0);Do([ct([])],nt.prototype,"args",void 0);Do([y()],nt.prototype,"defaultMessage",void 0);var Xt=class r{static build(e){return new r(e)}static fromGwt(e){return new r(e)}constructor(e){this.name=e,this.properties=new Proxy({},{get:(t,o)=>{let n=o;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:(t,o)=>(...n)=>Rr.resolveMessage(this.name,o,...n)}),this.rawMessages=new Proxy({},{get:(t,o)=>Rr.resolveRawMessage(this.name,o)})}};var Bi=(r,e)=>(t,o)=>{var n,a;t.constructor.createProperty(o,e??{attribute:!1,type:String});let s={...r,key:(n=r.key)!==null&&n!==void 0?n:o};t[_r]=(a=t[_r])!==null&&a!==void 0?a:new Map,t[_r].set(o,s)};V("ft-i18n")(nt);var q=Xt.build("integratedFeedbackComponent"),Qd={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 Ds=r=>r??fe;var j={fontSize:i.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:i.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:i.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:i.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:i.extend("--ft-text-field-helper-color","",_.colorOnSurfaceMedium),colorPrimary:i.external(_.colorPrimary,"Design system"),colorOnSurface:i.external(_.colorOnSurface,"Design system"),colorOnSurfaceDisabled:i.external(_.colorOnSurfaceDisabled,"Design system"),borderRadiusS:i.external(_.borderRadiusS,"Design system"),colorError:i.external(_.colorError,"Design system"),prefixColor:i.extend("--ft-text-field-prefix-color","",_.colorOnSurfaceMedium),iconColor:i.extend("--ft-text-field-icon-color","",_.colorOnSurfaceMedium),floatingZIndex:i.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:i.external(_.colorSurface,"Design system"),colorOutline:i.external(_.colorOutline,"Design system"),elevation02:i.external(_.elevation02,"Design system"),suggestSize:i.create("--ft-text-field-suggest-size","","SIZE","300px")},ep=P`
|
|
1387
1387
|
*:focus {
|
|
1388
1388
|
outline: none;
|
|
1389
1389
|
}
|
|
@@ -1416,8 +1416,8 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1416
1416
|
overflow: hidden;
|
|
1417
1417
|
padding: 0 ${j.horizontalSpacing};
|
|
1418
1418
|
|
|
1419
|
-
${C(
|
|
1420
|
-
${C(
|
|
1419
|
+
${C(Xe.fontSize,j.fontSize)};
|
|
1420
|
+
${C(Xe.lineHeight,j.fontSize)};
|
|
1421
1421
|
}
|
|
1422
1422
|
|
|
1423
1423
|
.ft-text-field--input-panel ft-ripple {
|
|
@@ -1527,14 +1527,14 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1527
1527
|
}
|
|
1528
1528
|
|
|
1529
1529
|
.ft-text-field--with-icon {
|
|
1530
|
-
${C(F.labelMaxWidth,`calc(100% - ${
|
|
1530
|
+
${C(F.labelMaxWidth,`calc(100% - ${Oe.size} - ${F.horizontalSpacing})`)};
|
|
1531
1531
|
}
|
|
1532
1532
|
|
|
1533
1533
|
.ft-text-field--with-password ft-icon:hover {
|
|
1534
1534
|
cursor: pointer;
|
|
1535
1535
|
}
|
|
1536
|
-
`;var ne=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},G=class extends
|
|
1537
|
-
<div class="${
|
|
1536
|
+
`;var ne=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},G=class extends Or(H,"textbox"){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=wr.EYE_SLASH,this.passwordRevealedIcon=wr.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(e){this.setInternalValue(e||""),this.dispatchedValue=e||""}setInternalValue(e){let t=this._value;this._value=e||"",this.setFormValue(this._value),this.requestUpdate("value",t)}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}render(){var e;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.visibleSuggestions.length===0||this.hideSuggestions,"ft-text-field--raised-label":this.focused||this.value!="","ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return $`
|
|
1537
|
+
<div class="${$e(t)}">
|
|
1538
1538
|
<div class="ft-text-field--main-panel"
|
|
1539
1539
|
@keydown=${this.handleKeyboardNavigation}
|
|
1540
1540
|
@focusout=${this.onMainPanelBlur}>
|
|
@@ -1553,8 +1553,8 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1553
1553
|
</ft-typography>
|
|
1554
1554
|
`:B}
|
|
1555
1555
|
<input type=${(e=this.type)!==null&&e!==void 0?e:this.password&&this.hidePassword?"password":"text"}
|
|
1556
|
-
name=${
|
|
1557
|
-
maxlength=${
|
|
1556
|
+
name=${Ds(this.name)}
|
|
1557
|
+
maxlength=${Ds(this.maxLength||void 0)}
|
|
1558
1558
|
aria-label="${this.label}"
|
|
1559
1559
|
class="ft-typography--body1 ft-text-field--input"
|
|
1560
1560
|
part="input"
|
|
@@ -1586,7 +1586,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1586
1586
|
.variant=${this.iconVariant}
|
|
1587
1587
|
.value=${this.icon}
|
|
1588
1588
|
@click=${()=>{var e;return(e=this.input)===null||e===void 0?void 0:e.focus()}}></ft-icon>
|
|
1589
|
-
`:B}update(e){super.update(e),(e.has("value")||e.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),e.has("value")&&e.get("value")!=null&&(this.hideSuggestions=!1),e.has("dispatchedValue")&&e.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach(e=>e.hidden=!e.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.suggestions.filter(e=>!e.hidden)):this.visibleSuggestions=this.suggestions}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&(this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px",
|
|
1589
|
+
`:B}update(e){super.update(e),(e.has("value")||e.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),e.has("value")&&e.get("value")!=null&&(this.hideSuggestions=!1),e.has("dispatchedValue")&&e.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach(e=>e.hidden=!e.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.suggestions.filter(e=>!e.hidden)):this.visibleSuggestions=this.suggestions}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&(this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px",wo(this.mainPanel,this.suggestionsContainer,"bottom").then(({x:t,y:o})=>{this.suggestionsContainer.style.left=`${t}px`,this.suggestionsContainer.style.top=`${o}px`}))}setValue(e,t=!1){this.value!==e&&(this.setInternalValue(e),this.dispatchEvent(new CustomEvent("live-change",{detail:e}))),t&&this.dispatchedValue!==e&&(this.dispatchedValue=e,this.dispatchEvent(new CustomEvent("change",{detail:e})))}handleInput(e){var t;let o=((t=this.input)===null||t===void 0?void 0:t.value)||"";this.setValue(o,e.key=="Escape"||e.key=="Enter")}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(e){var t;if(e.key==="ArrowDown"||e.key==="ArrowUp"){e.preventDefault(),e.stopPropagation(),this.hideSuggestions=!1;let o=this.visibleSuggestions.findIndex(a=>a.matches(":focus-within")),n;e.key==="ArrowDown"?n=o<this.visibleSuggestions.length-1?o+1:0:n=o>0?o-1:this.visibleSuggestions.length-1,(t=this.visibleSuggestions[n])===null||t===void 0||t.focus()}(e.key=="Escape"||e.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(e){var t;this.setValue(e.detail,!0),(t=this.input)===null||t===void 0||t.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var e,t;!((e=this.mainPanel)===null||e===void 0)&&e.matches(":focus-within")||(this.focused=!1,this.setValue(((t=this.input)===null||t===void 0?void 0:t.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}};G.elementDefinitions={"ft-input-label":Ue,"ft-ripple":X,"ft-typography":ye,"ft-icon":Se};G.styles=[qr,La,ep];ne([y()],G.prototype,"label",void 0);ne([y({noAccessor:!0})],G.prototype,"value",null);ne([z()],G.prototype,"dispatchedValue",void 0);ne([y()],G.prototype,"helper",void 0);ne([y({type:Boolean})],G.prototype,"outlined",void 0);ne([y({type:Boolean})],G.prototype,"disabled",void 0);ne([y({type:Boolean})],G.prototype,"error",void 0);ne([y({type:Boolean})],G.prototype,"fixedMenuPosition",void 0);ne([y()],G.prototype,"prefix",void 0);ne([y()],G.prototype,"icon",void 0);ne([y()],G.prototype,"name",void 0);ne([y()],G.prototype,"type",void 0);ne([y()],G.prototype,"passwordHiddenIcon",void 0);ne([y()],G.prototype,"passwordRevealedIcon",void 0);ne([y()],G.prototype,"iconVariant",void 0);ne([y({type:Boolean})],G.prototype,"filterSuggestions",void 0);ne([y({type:Number})],G.prototype,"maxLength",void 0);ne([y({type:Boolean})],G.prototype,"password",void 0);ne([z()],G.prototype,"focused",void 0);ne([z()],G.prototype,"hidePassword",void 0);ne([z()],G.prototype,"hideSuggestions",void 0);ne([z()],G.prototype,"visibleSuggestions",void 0);ne([Z(".ft-text-field--main-panel")],G.prototype,"mainPanel",void 0);ne([Z(".ft-text-field--input")],G.prototype,"input",void 0);ne([Z(".ft-text-field--suggestions")],G.prototype,"suggestionsContainer",void 0);ne([On({selector:"ft-text-field-suggestion"})],G.prototype,"suggestions",void 0);var tp=P`
|
|
1590
1590
|
.ft-text-field-suggestion {
|
|
1591
1591
|
position: relative;
|
|
1592
1592
|
padding: 8px 16px;
|
|
@@ -1611,7 +1611,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1611
1611
|
slot {
|
|
1612
1612
|
pointer-events: none;
|
|
1613
1613
|
}
|
|
1614
|
-
`;var
|
|
1614
|
+
`;var Us=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Ms=class extends CustomEvent{constructor(e){super("suggestion-selected",{detail:e,bubbles:!0,composed:!0})}},It=class extends H{render(){return $`
|
|
1615
1615
|
<div class="ft-text-field-suggestion"
|
|
1616
1616
|
tabindex="-1"
|
|
1617
1617
|
@keydown=${this.onKeyDown}
|
|
@@ -1623,15 +1623,15 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1623
1623
|
<slot></slot>
|
|
1624
1624
|
</ft-typography>
|
|
1625
1625
|
</div>
|
|
1626
|
-
`}focus(e){var t;(t=this.container)===null||t===void 0||t.focus(e)}click(){var e;(e=this.container)===null||e===void 0||e.click()}confirmSuggestion(){this.dispatchEvent(new ks(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map(e=>e.textContent).join("").trim()}onKeyDown(e){["Enter"," "].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),this.confirmSuggestion())}};Nt.elementDefinitions={"ft-ripple":X,"ft-typography":ge,"ft-icon":xe};Nt.styles=Nd;Ls([g()],Nt.prototype,"value",void 0);Ls([Z(".ft-text-field-suggestion")],Nt.prototype,"container",void 0);Ls([uo()],Nt.prototype,"assignedNodes",void 0);V("ft-text-field")(G);V("ft-text-field-suggestion")(Nt);var Td=r=>Ct.get({name:"ft-reader-"+r,initialState:{mapId:void 0,visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0}});var Ds=class{constructor(e,t){this.mapId=e,this.paginatedToc=t,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(e,t,o){return e.flatMap(n=>(n.pageConfiguration&&this.registerPage(this.buildPage(n,o)),n.tocId==null?this.extractPagesToc(n.children,t,o):[{tocId:n.tocId,title:n.title,depth:t,children:this.extractPagesToc(n.children,t+1,n.tocId)}]))}convertNodes(e,t,o){return e.flatMap(n=>{var a,s,l;if(n.tocId==null)return[...this.convertSectionNodes((a=n.pageToc)!==null&&a!==void 0?a:[],t,n.tocId),...this.convertNodes(n.children,t,n.tocId)];let c=(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:c,depth:t,parentTocId:o,children:[]};this.register(p);let h=this.convertSectionNodes((l=n.pageToc)!==null&&l!==void 0?l:[],t+1,n.tocId),f=this.convertNodes(n.children,t+1,p.tocId);return p.children=[...h,...f],[p]})}convertSectionNodes(e,t,o){return e.flatMap(n=>{var a;let s=(a=n.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),l={...n,prettyUrl:s,depth:t,parentTocId:o,children:[]};return this.register(l),l.children=this.convertSectionNodes(n.children,t+1,n.tocId),[l]})}buildPage(e,t){var o,n,a,s,l,c;let p={number:this.pages.length+1,title:(o=e.title)!==null&&o!==void 0?o:"",rootTocId:(n=e.tocId)!==null&&n!==void 0?n:"root",toc:((a=e.pageToc)!==null&&a!==void 0?a:[]).map(y=>this.nodeByTocId[y.tocId]),topics:[],hiddenTopics:[],breadcrumb:t?this.buildBreadcrumb(this.nodeByTocId[t]):[]},h=(y,b)=>(b?p.topics:p.hiddenTopics).push(y),f=(l=(s=e.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&l!==void 0?l:[];return p.breadcrumb.forEach((y,b)=>{h(y,f[b])}),e.tocId&&h(e.tocId,e.pageConfiguration.isVisible),p.topics.push(...this.tocIds((c=e.pageToc)!==null&&c!==void 0?c:[])),p}registerPage(e){for(let t of[...e.topics,...e.hiddenTopics])this.pageByTocId[t]||(this.pageByTocId[t]=e);this.pages.push(e)}tocIds(e){return e.flatMap(t=>[t.tocId,...this.tocIds(t.children)])}buildBreadcrumb(e){let t=[e.tocId];for(;e?.parentTocId;)t.unshift(e.parentTocId),e=this.nodeByTocId[e.parentTocId];return t}register(e){e.prettyUrl&&(this.nodeByUrl[e.prettyUrl]==null?this.nodeByUrl[e.prettyUrl]=e:this.duplicatedPrettyUrls.add(e.prettyUrl)),this.nodeByUrl[`${this.mapId}/${e.tocId}`]=e,this.nodeByTocId[e.tocId]=e}},Di=class{convertPaginatedToc(e,t){return new Ds(e,t).build()}};var Bf=sp(Pd(),1);var $d;(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})($d||($d={}));var kd;(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(kd||(kd={}));var Ld;(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"})(Ld||(Ld={}));var Dd;(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"})(Dd||(Dd={}));var Md;(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(Md||(Md={}));var Ud;(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(Ud||(Ud={}));var Fd;(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(Fd||(Fd={}));var Tt;(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(Tt||(Tt={}));var Bd;(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"})(Bd||(Bd={}));var zd;(function(r){r.ASC="ASC",r.DESC="DESC"})(zd||(zd={}));var Hd;(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(Hd||(Hd={}));var Wd;(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(Wd||(Wd={}));var Vd;(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK"})(Vd||(Vd={}));var jd;(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(jd||(jd={}));var Kd;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK"})(Kd||(Kd={}));var Gd;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(Gd||(Gd={}));var Zd;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC"})(Zd||(Zd={}));var qd;(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS"})(qd||(qd={}));var pe;(function(r){r.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",r.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",r.HTML_EXPORT_USER="HTML_EXPORT_USER",r.PDF_EXPORT_USER="PDF_EXPORT_USER",r.SAVED_SEARCH_USER="SAVED_SEARCH_USER",r.COLLECTION_USER="COLLECTION_USER",r.OFFLINE_USER="OFFLINE_USER",r.ANALYTICS_USER="ANALYTICS_USER",r.BETA_USER="BETA_USER",r.DEBUG_USER="DEBUG_USER",r.PRINT_USER="PRINT_USER",r.RATING_USER="RATING_USER",r.FEEDBACK_USER="FEEDBACK_USER",r.GENERATIVE_AI_USER="GENERATIVE_AI_USER",r.CONTENT_PUBLISHER="CONTENT_PUBLISHER",r.KHUB_ADMIN="KHUB_ADMIN",r.USERS_ADMIN="USERS_ADMIN",r.PORTAL_ADMIN="PORTAL_ADMIN",r.ADMIN="ADMIN",r.DEVELOPER="DEVELOPER"})(pe||(pe={}));var Yd;(function(r){r.VALID="VALID",r.INVALID="INVALID"})(Yd||(Yd={}));var Ff={[pe.PERSONAL_BOOK_SHARE_USER]:[pe.PERSONAL_BOOK_USER],[pe.HTML_EXPORT_USER]:[pe.PERSONAL_BOOK_USER],[pe.PDF_EXPORT_USER]:[pe.PERSONAL_BOOK_USER],[pe.KHUB_ADMIN]:[pe.CONTENT_PUBLISHER],[pe.ADMIN]:[pe.KHUB_ADMIN,pe.USERS_ADMIN,pe.PORTAL_ADMIN],[pe.DEVELOPER]:[pe.BETA_USER,pe.DEBUG_USER]};function Xd(r,e){return r===e||(Ff[r]??[]).some(t=>Xd(t,e))}function Rr(r,e){return r==null?!1:(Array.isArray(r)?r:Array.isArray(r.roles)?r.roles:Array.isArray(r.profile?.roles)?r.profile.roles:[]).some(o=>Xd(o,e))}var Fi=class extends ft{get mapId(){return this._mapId}set mapId(e){e!==this._mapId&&this.clear(),this._mapId=e}constructor(e,t,o){super(!1,t),this.converter=e,this._mapId=o,this.initCache()}async withMapId(e){return this._mapId?e(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(e=>this.fetchMap(e))),this.cache.register("enrichedToc",()=>this.withMapId(e=>this.fetchPages(e).then(t=>this.converter.convertPaginatedToc(e,t)))),this.cache.register("ratingSummary",()=>{var e,t;return Rr((t=(e=L.getState().session)===null||e===void 0?void 0:e.profile.roles)!==null&&t!==void 0?t:[],"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(e){return(await this.getEnrichedToc()).nodeByTocId[e]}getTocNodeNow(e){var t;return(t=this.enrichedToc)===null||t===void 0?void 0:t.nodeByTocId[e]}getTocNodeNowByUrl(e){var t,o;let n=this.getMapNow();return n?.prettyUrl==e||`${n?.id}/root`===e?(t=this.enrichedToc)===null||t===void 0?void 0:t.toc[0]:(o=this.enrichedToc)===null||o===void 0?void 0:o.nodeByUrl[e]}async getPage(e){let t=await this.getEnrichedToc();return t.pages[e-1]||t.pages[0]}async getPageByTocId(e){let t=await this.getEnrichedToc();return t.pageByTocId[e]||t.pages[0]}getTopicInfo(e){return this.cache.get("topic-"+e.tocId,()=>this.fetchTopicMetadata(e))}getTopicContent(e){return this.cache.get("topic-content-"+e.tocId,()=>this.fetchTopicHTMLContent(e))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}getRelativesForDocument(e,t){return this.cache.get("document-relatives-"+e+"-"+t.join("-"),()=>this.fetchRelativesForDocument(e,t))}getRelativesForTopicInMap(e,t,o){return this.cache.get("topic-relatives-"+[e,t,...o].join("-"),()=>this.fetchRelativesForTopicInMap(e,t,o))}getAttachmentDownloadLink(e){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(e).content}?download=true`)}getLink(e,t,o){let n=this.getNavigationData(e,t,o),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(e,t,o){var n,a;e=e||"root";let s=this.enrichedToc,l=s?.pageByTocId[e],c=s?.nodeByTocId[e],p=c?.prettyUrl;return{mapId:this.mapId,tocId:e,topicTitle:(n=c?.title)!==null&&n!==void 0?n:"",page:t&&l&&l.number!==t?t:void 0,prettyUrl:p?.replace(/^r\//,""),prettyUrlDuplicated:(a=s?.duplicatedPrettyUrls.has(p??""))!==null&&a!==void 0?a:!1,section:o}}async getAccurateNavigationData(e,t,o){return await this.getEnrichedToc(),this.getNavigationData(e,t,o)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(e=>e?.publication)}getTopicRating(e){return this.getRatingSummary().then(t=>{var o;return t?{type:t.topics.type,rating:(o=t.topics)===null||o===void 0?void 0:o.ratings.find(n=>n.tocId===e)}:void 0})}rateMap(e,t){return this.makeRateMapRequest(e,t).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(e,t){return this.makeMapFeedbackRequest(e,t)}rateTopic(e,t,o){return this.makeRateTopicRequest(e,t,o).then(()=>this.clearRatingIfNecessary())}unrateTopic(e){return this.makeUnrateTopicRequest(e).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let e=L.getState().session;e?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(e,t,o){return this.makeTopicFeedbackRequest(e,t,o)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(e){let t=this.getTocNodeNow(e),o=[{tocId:t.tocId,title:t.title}],n=this.getTocNodeNow(t.parentTocId);for(;n;)o.unshift({tocId:n.tocId,title:n.title}),n=this.getTocNodeNow(n.parentTocId);return o}isFeatureAccessible(e,{session:t,ratingType:o}){var n;if(!this.isFeatureAvailable(e))return!1;switch(e){case qe.FEEDBACK:return Rr(t??[],pe.FEEDBACK_USER);case qe.RATING:return Rr(t??[],pe.RATING_USER)&&o!=null&&o!==Tt.NO_RATING;case qe.PRINT:return Rr(t??[],pe.PRINT_USER);case qe.BOOKMARK:return!!t?.sessionAuthenticated;case qe.COLLECTIONS:return Rr(t??[],pe.COLLECTION_USER);case qe.PERSONAL_BOOKS:return Rr(t??[],pe.PERSONAL_BOOK_USER)&&!(!((n=this.getMapNow())===null||n===void 0)&&n.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var Bi=class r extends Fi{static async build(e){return new r(new Di,void 0,e)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(e){let t=await this.api.getMap(e);return this.fingerprint=t.fingerprint,t}fetchMapRating(e){return this.api.getMapRating(e)}async fetchPages(e){return await this.getMap(),this.api.getPages(e,this.fingerprint)}fetchTopicHTMLContent(e){return this.api.getTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(e){return this.api.getTopic(this.mapId,e.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(e,t){let o={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:t}}],sort:[],facets:[]};return this.api.search(o)}fetchRelativesForTopicInMap(e,t,o){let n={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:t,valueFilter:{negative:!1,values:o}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[e]}}],sort:[],facets:[]};return this.api.search(n)}makeMapFeedbackRequest(e,t){return this.api.sendMapFeedback(this.mapId,e,t)}makeRateMapRequest(e,t){return this.api.rateMap(this.mapId,e,t)}makeRateTopicRequest(e,t,o){return this.api.rateTopic(this.mapId,e,t,o)}makeTopicFeedbackRequest(e,t,o){return this.api.sendTopicFeedback(this.mapId,e,t,o)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(e){return this.api.unrateTopic(this.mapId,e)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(e){return!0}};var zi=class r{static build(e,t){return new r(Td(e.trim()||"context"),t??Bi.build)}loaded(){return Pn(()=>this._loaded)}constructor(e,t,o){this.store=e,this.clusteringHelperProvider=o,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new ae(10),this.initService(t)}async initService(e){return this.service=await e(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(e){e!==this.store.getState().mapId&&(this.store.actions.mapId(e),this.service&&(this.service.mapId=e),await this.reload())}setVisibleTopics(e){this.store.actions.visibleTopics(e)}async awaitService(){return ho(()=>this.service)}async navigateToTopic(e,t,o){await this.loaded();let n=await this.awaitService(),a=await(o!=null?n.getPage(o):n.getPageByTocId(e??"root"));this.store.actions.currentPage(a),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(e,a),section:t})}resolveValidNonRootTocId(e,t){var o,n,a;let s=(o=e==="root"?void 0:e)!==null&&o!==void 0?o:t.rootTocId;return t.topics.includes(s)?s:(a=(n=t.topics[0])!==null&&n!==void 0?n:t.hiddenTopics[0])!==null&&a!==void 0?a:"root"}async navigateToPage(e){await this.loaded();let o=await(await this.awaitService()).getPage(e);this.store.actions.currentPage(o)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var e;!((e=this.service)===null||e===void 0)&&e.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData())}clear(){var e;this._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),(e=this.service)===null||e===void 0||e.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var e,t,o,n,a;try{await Promise.all([(e=this.service)===null||e===void 0?void 0:e.getConfiguration().then(s=>this.store.actions.configuration(s)),(t=this.service)===null||t===void 0?void 0:t.getMap().then(s=>this.store.actions.map(s)),(o=this.service)===null||o===void 0?void 0:o.getToc().then(s=>this.store.actions.toc(s)),(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 dr)&&this.errorHandler(s)}}fetchRelatives(){var e,t,o;let n=(e=this.store.getState().map)===null||e===void 0?void 0:e.metadata.filter(a=>{var s;return a.key==((s=this.store.getState().configuration)===null||s===void 0?void 0:s.relativePivotMetadata)}).flatMap(a=>a.values);n!==void 0&&n.length>0?(t=this.service)===null||t===void 0||t.getRelativesForDocument((o=this.store.getState().configuration)===null||o===void 0?void 0:o.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.eventBus.dispatchEvent(new CustomEvent("clustering-helper-created"))}createClusteringHelper(){var e,t;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let o=this.store.getState().relatives;if(o){let n=o.find(s=>{var l;return((l=s.map)===null||l===void 0?void 0:l.mapId)==this.store.getState().mapId}),a=(t=(e=L.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&t!==void 0?t:[];return new fo(o,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(e){var t,o,n;await this.loaded();let a=await ho(()=>{var p;return(p=this.store.getState().configuration)===null||p===void 0?void 0:p.relativeTopicPivotMetadata}),s=this.store.getState().mapId,c=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[e]);if(!((n=(o=(t=c?.results)===null||t===void 0?void 0:t[0])===null||o===void 0?void 0:o.entries)===null||n===void 0)&&n[0]){let p=c.results[0].entries[0].topic.tocId;return await this.navigateToTopic(p),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(e){this.store.actions.searchInDocumentQuery(e)}registerMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.add(e),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.delete(e),this.updateClusteringHelper()}};var Jd=P`
|
|
1627
|
-
`;var
|
|
1626
|
+
`}focus(e){var t;(t=this.container)===null||t===void 0||t.focus(e)}click(){var e;(e=this.container)===null||e===void 0||e.click()}confirmSuggestion(){this.dispatchEvent(new Ms(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map(e=>e.textContent).join("").trim()}onKeyDown(e){["Enter"," "].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),this.confirmSuggestion())}};It.elementDefinitions={"ft-ripple":X,"ft-typography":ye,"ft-icon":Se};It.styles=tp;Us([y()],It.prototype,"value",void 0);Us([Z(".ft-text-field-suggestion")],It.prototype,"container",void 0);Us([fo()],It.prototype,"assignedNodes",void 0);V("ft-text-field")(G);V("ft-text-field-suggestion")(It);var rp=r=>At.get({name:"ft-reader-"+r,initialState:{mapId:void 0,visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0}});var Fs=class{constructor(e,t){this.mapId=e,this.paginatedToc=t,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(e,t,o){return e.flatMap(n=>(n.pageConfiguration&&this.registerPage(this.buildPage(n,o)),n.tocId==null?this.extractPagesToc(n.children,t,o):[{tocId:n.tocId,title:n.title,depth:t,children:this.extractPagesToc(n.children,t+1,n.tocId)}]))}convertNodes(e,t,o){return e.flatMap(n=>{var a,s,l;if(n.tocId==null)return[...this.convertSectionNodes((a=n.pageToc)!==null&&a!==void 0?a:[],t,n.tocId),...this.convertNodes(n.children,t,n.tocId)];let c=(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:c,depth:t,parentTocId:o,children:[]};this.register(p);let h=this.convertSectionNodes((l=n.pageToc)!==null&&l!==void 0?l:[],t+1,n.tocId),f=this.convertNodes(n.children,t+1,p.tocId);return p.children=[...h,...f],[p]})}convertSectionNodes(e,t,o){return e.flatMap(n=>{var a;let s=(a=n.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),l={...n,prettyUrl:s,depth:t,parentTocId:o,children:[]};return this.register(l),l.children=this.convertSectionNodes(n.children,t+1,n.tocId),[l]})}buildPage(e,t){var o,n,a,s,l,c;let p={number:this.pages.length+1,title:(o=e.title)!==null&&o!==void 0?o:"",rootTocId:(n=e.tocId)!==null&&n!==void 0?n:"root",toc:((a=e.pageToc)!==null&&a!==void 0?a:[]).map(g=>this.nodeByTocId[g.tocId]),topics:[],hiddenTopics:[],breadcrumb:t?this.buildBreadcrumb(this.nodeByTocId[t]):[]},h=(g,b)=>(b?p.topics:p.hiddenTopics).push(g),f=(l=(s=e.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&l!==void 0?l:[];return p.breadcrumb.forEach((g,b)=>{h(g,f[b])}),e.tocId&&h(e.tocId,e.pageConfiguration.isVisible),p.topics.push(...this.tocIds((c=e.pageToc)!==null&&c!==void 0?c:[])),p}registerPage(e){for(let t of[...e.topics,...e.hiddenTopics])this.pageByTocId[t]||(this.pageByTocId[t]=e);this.pages.push(e)}tocIds(e){return e.flatMap(t=>[t.tocId,...this.tocIds(t.children)])}buildBreadcrumb(e){let t=[e.tocId];for(;e?.parentTocId;)t.unshift(e.parentTocId),e=this.nodeByTocId[e.parentTocId];return t}register(e){e.prettyUrl&&(this.nodeByUrl[e.prettyUrl]==null?this.nodeByUrl[e.prettyUrl]=e:this.duplicatedPrettyUrls.add(e.prettyUrl)),this.nodeByUrl[`${this.mapId}/${e.tocId}`]=e,this.nodeByTocId[e.tocId]=e}},zi=class{convertPaginatedToc(e,t){return new Fs(e,t).build()}};var Hi=class extends ht{get mapId(){return this._mapId}set mapId(e){e!==this._mapId&&this.clear(),this._mapId=e}constructor(e,t,o){super(!1,t),this.converter=e,this._mapId=o,this.initCache()}async withMapId(e){return this._mapId?e(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(e=>this.fetchMap(e))),this.cache.register("enrichedToc",()=>this.withMapId(e=>this.fetchPages(e).then(t=>this.converter.convertPaginatedToc(e,t)))),this.cache.register("ratingSummary",()=>{var e,t;return Sr((t=(e=L.getState().session)===null||e===void 0?void 0:e.profile.roles)!==null&&t!==void 0?t:[],"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(e){return(await this.getEnrichedToc()).nodeByTocId[e]}getTocNodeNow(e){var t;return(t=this.enrichedToc)===null||t===void 0?void 0:t.nodeByTocId[e]}getTocNodeNowByUrl(e){var t,o;let n=this.getMapNow();return n?.prettyUrl==e||`${n?.id}/root`===e?(t=this.enrichedToc)===null||t===void 0?void 0:t.toc[0]:(o=this.enrichedToc)===null||o===void 0?void 0:o.nodeByUrl[e]}async getPage(e){let t=await this.getEnrichedToc();return t.pages[e-1]||t.pages[0]}async getPageByTocId(e){let t=await this.getEnrichedToc();return t.pageByTocId[e]||t.pages[0]}getTopicInfo(e){return this.cache.get("topic-"+e.tocId,()=>this.fetchTopicMetadata(e))}getTopicContent(e){return this.cache.get("topic-content-"+e.tocId,()=>this.fetchTopicHTMLContent(e))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}getRelativesForDocument(e,t){return this.cache.get("document-relatives-"+e+"-"+t.join("-"),()=>this.fetchRelativesForDocument(e,t))}getRelativesForTopicInMap(e,t,o){return this.cache.get("topic-relatives-"+[e,t,...o].join("-"),()=>this.fetchRelativesForTopicInMap(e,t,o))}getAttachmentDownloadLink(e){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(e).content}?download=true`)}getLink(e,t,o){let n=this.getNavigationData(e,t,o),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(e,t,o){var n,a;e=e||"root";let s=this.enrichedToc,l=s?.pageByTocId[e],c=s?.nodeByTocId[e],p=c?.prettyUrl;return{mapId:this.mapId,tocId:e,topicTitle:(n=c?.title)!==null&&n!==void 0?n:"",page:t&&l&&l.number!==t?t:void 0,prettyUrl:p?.replace(/^r\//,""),prettyUrlDuplicated:(a=s?.duplicatedPrettyUrls.has(p??""))!==null&&a!==void 0?a:!1,section:o}}async getAccurateNavigationData(e,t,o){return await this.getEnrichedToc(),this.getNavigationData(e,t,o)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(e=>e?.publication)}getTopicRating(e){return this.getRatingSummary().then(t=>{var o;return t?{type:t.topics.type,rating:(o=t.topics)===null||o===void 0?void 0:o.ratings.find(n=>n.tocId===e)}:void 0})}rateMap(e,t){return this.makeRateMapRequest(e,t).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(e,t){return this.makeMapFeedbackRequest(e,t)}rateTopic(e,t,o){return this.makeRateTopicRequest(e,t,o).then(()=>this.clearRatingIfNecessary())}unrateTopic(e){return this.makeUnrateTopicRequest(e).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let e=L.getState().session;e?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(e,t,o){return this.makeTopicFeedbackRequest(e,t,o)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(e){let t=this.getTocNodeNow(e),o=[{tocId:t.tocId,title:t.title}],n=this.getTocNodeNow(t.parentTocId);for(;n;)o.unshift({tocId:n.tocId,title:n.title}),n=this.getTocNodeNow(n.parentTocId);return o}isFeatureAccessible(e,{session:t,ratingType:o}){var n;if(!this.isFeatureAvailable(e))return!1;switch(e){case Ye.FEEDBACK:return Sr(t??[],pe.FEEDBACK_USER);case Ye.RATING:return Sr(t??[],pe.RATING_USER)&&o!=null&&o!==Rt.NO_RATING;case Ye.PRINT:return Sr(t??[],pe.PRINT_USER);case Ye.BOOKMARK:return!!t?.sessionAuthenticated;case Ye.COLLECTIONS:return Sr(t??[],pe.COLLECTION_USER);case Ye.PERSONAL_BOOKS:return Sr(t??[],pe.PERSONAL_BOOK_USER)&&!(!((n=this.getMapNow())===null||n===void 0)&&n.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var Wi=class r extends Hi{static async build(e){return new r(new zi,void 0,e)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(e){let t=await this.api.getMap(e);return this.fingerprint=t.fingerprint,t}fetchMapRating(e){return this.api.getMapRating(e)}async fetchPages(e){return await this.getMap(),this.api.getPages(e,this.fingerprint)}fetchTopicHTMLContent(e){return this.api.getTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(e){return this.api.getTopic(this.mapId,e.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(e,t){let o={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:t}}],sort:[],facets:[]};return this.api.search(o)}fetchRelativesForTopicInMap(e,t,o){let n={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:t,valueFilter:{negative:!1,values:o}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[e]}}],sort:[],facets:[]};return this.api.search(n)}makeMapFeedbackRequest(e,t){return this.api.sendMapFeedback(this.mapId,e,t)}makeRateMapRequest(e,t){return this.api.rateMap(this.mapId,e,t)}makeRateTopicRequest(e,t,o){return this.api.rateTopic(this.mapId,e,t,o)}makeTopicFeedbackRequest(e,t,o){return this.api.sendTopicFeedback(this.mapId,e,t,o)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(e){return this.api.unrateTopic(this.mapId,e)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(e){return!0}};var Vi=class r{static build(e,t){return new r(rp(e.trim()||"context"),t??Wi.build)}loaded(){return Ln(()=>this._loaded)}constructor(e,t,o){this.store=e,this.clusteringHelperProvider=o,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new ae(10),this.initService(t)}async initService(e){return this.service=await e(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(e){e!==this.store.getState().mapId&&(this.store.actions.mapId(e),this.service&&(this.service.mapId=e),await this.reload())}setVisibleTopics(e){this.store.actions.visibleTopics(e)}async awaitService(){return mo(()=>this.service)}async navigateToTopic(e,t,o){await this.loaded();let n=await this.awaitService(),a=await(o!=null?n.getPage(o):n.getPageByTocId(e??"root"));this.store.actions.currentPage(a),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(e,a),section:t})}resolveValidNonRootTocId(e,t){var o,n,a;let s=(o=e==="root"?void 0:e)!==null&&o!==void 0?o:t.rootTocId;return t.topics.includes(s)?s:(a=(n=t.topics[0])!==null&&n!==void 0?n:t.hiddenTopics[0])!==null&&a!==void 0?a:"root"}async navigateToPage(e){await this.loaded();let o=await(await this.awaitService()).getPage(e);this.store.actions.currentPage(o)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var e;!((e=this.service)===null||e===void 0)&&e.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData())}clear(){var e;this._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),(e=this.service)===null||e===void 0||e.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var e,t,o,n,a;try{await Promise.all([(e=this.service)===null||e===void 0?void 0:e.getConfiguration().then(s=>this.store.actions.configuration(s)),(t=this.service)===null||t===void 0?void 0:t.getMap().then(s=>this.store.actions.map(s)),(o=this.service)===null||o===void 0?void 0:o.getToc().then(s=>this.store.actions.toc(s)),(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 pr)&&this.errorHandler(s)}}fetchRelatives(){var e,t,o;let n=(e=this.store.getState().map)===null||e===void 0?void 0:e.metadata.filter(a=>{var s;return a.key==((s=this.store.getState().configuration)===null||s===void 0?void 0:s.relativePivotMetadata)}).flatMap(a=>a.values);n!==void 0&&n.length>0?(t=this.service)===null||t===void 0||t.getRelativesForDocument((o=this.store.getState().configuration)===null||o===void 0?void 0:o.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.eventBus.dispatchEvent(new CustomEvent("clustering-helper-created"))}createClusteringHelper(){var e,t;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let o=this.store.getState().relatives;if(o){let n=o.find(s=>{var l;return((l=s.map)===null||l===void 0?void 0:l.mapId)==this.store.getState().mapId}),a=(t=(e=L.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&t!==void 0?t:[];return new ho(o,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(e){var t,o,n;await this.loaded();let a=await mo(()=>{var p;return(p=this.store.getState().configuration)===null||p===void 0?void 0:p.relativeTopicPivotMetadata}),s=this.store.getState().mapId,c=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[e]);if(!((n=(o=(t=c?.results)===null||t===void 0?void 0:t[0])===null||o===void 0?void 0:o.entries)===null||n===void 0)&&n[0]){let p=c.results[0].entries[0].topic.tocId;return await this.navigateToTopic(p),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(e){this.store.actions.searchInDocumentQuery(e)}registerMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.add(e),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.delete(e),this.updateClusteringHelper()}};var op=P`
|
|
1627
|
+
`;var ji=class extends CustomEvent{constructor(e,t){super("ft-reader-map-loaded",{detail:{map:e,toc:t}})}},Ki=class extends CustomEvent{constructor(e,t){super("ft-reader-visible-topics-change",{detail:{visibleTopics:t}})}},Gi=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},Zi=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},qi=class extends Event{constructor(){super("ft-reader-map-not-found")}},Yi=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},Xi=class extends Event{constructor(){super("ft-reader-map-forbidden")}},Ji=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var Ve=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Zf=r=>e=>+(e??"NaN")>0?+e:r,Ee=class extends Ze{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new ae(5),this.navigationDebouncer=new ae(10),this.mapLoadedEventDebouncer=new ae(50),this.addStore(L)}render(){return $`
|
|
1628
1628
|
${this.importStyleIfNeeded()}
|
|
1629
1629
|
<slot @register-ft-reader-component=${this.registerComponent}></slot>
|
|
1630
1630
|
`}importStyleIfNeeded(){var e,t;let o=(e=this.stateManager.service)===null||e===void 0?void 0:e.themeStylesheet();return!o||window.location.href.startsWith((t=this.baseUrl)!==null&&t!==void 0?t:"")?B:$`
|
|
1631
1631
|
<style>
|
|
1632
1632
|
@import "${o}"
|
|
1633
1633
|
</style>
|
|
1634
|
-
`}get stateManager(){return this._stateManager==null&&(this._stateManager=
|
|
1634
|
+
`}get stateManager(){return this._stateManager==null&&(this._stateManager=Vi.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=e=>this.handleLoadError(e),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(e=>{let t=e.fontsStylesheet();if(t&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${t}"]`)){let o=document.createElement("link");o.setAttribute("rel","stylesheet"),o.setAttribute("href",t),document.head.append(o)}})}update(e){super.update(e),e.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),e.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),e.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(t=>e.has(t))&&this.mapId&&this.navigateToTarget(),e.has("session")&&this.reload()}contentAvailableCallback(e){var t;if(super.contentAvailableCallback(e),(e.has("map")||e.has("toc"))&&this.sendLoadedEventIfLoaded(),e.has("scrollTarget")&&((t=this.scrollTarget)===null||t===void 0?void 0:t.tocId)==null){let o=e.get("scrollTarget");o?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>{var n;return this.stateManager.service.getAccurateNavigationData(o.tocId,(n=this.currentPage)===null||n===void 0?void 0:n.number,o.section).then(a=>this.dispatchEvent(new Gi(a)))})}e.has("visibleTopics")&&Promise.all(this.visibleTopics.map(o=>{var n;return this.stateManager.service.getAccurateNavigationData(o,(n=this.currentPage)===null||n===void 0?void 0:n.number)})).then(o=>{let n=o.filter(a=>a!=null&&a.topicTitle!=="").map(a=>{var s;return{tocId:a.tocId,title:a.topicTitle,page:a.page,prettyUrl:a.prettyUrl,prettyUrlDuplicated:a.prettyUrlDuplicated,breadcrumb:(s=this.stateManager.service)===null||s===void 0?void 0:s.buildBreadcrumb(a.tocId)}});this.dispatchEvent(new Ki(this.map,n))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload()}async navigateToTarget(){await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new Ji),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot):this.lastNotifiedNotFoundRelative=void 0:this.tocId!=null?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):this.page!=null&&await this.stateManager.navigateToPage(this.page)})}registerComponent(e){e.stopPropagation();let t=e.composedPath()[0];this.register(t)}register(e){e.setReaderStateManager(this.stateManager)}handleLoadError(e){let t=e;t.status===401?this.dispatchEvent(new Yi):t.status===403?this.dispatchEvent(new Xi):t.status===404?this.dispatchEvent(new qi):this.dispatchEvent(new Zi(e))}reloadBookmarks(){Xd.reloadBookmarks()}async reloadRating(){var e,t;await((e=this.stateManager.service)===null||e===void 0?void 0:e.reloadRating()),(t=this.stateManager.store)===null||t===void 0||t.eventBus.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new ji(this.map,this.toc))})}};Ee.styles=op;Ve([ce({store:L.name})],Ee.prototype,"baseUrl",void 0);Ve([ce({store:L.name})],Ee.prototype,"session",void 0);Ve([y()],Ee.prototype,"mapId",void 0);Ve([y()],Ee.prototype,"tocId",void 0);Ve([y()],Ee.prototype,"section",void 0);Ve([y()],Ee.prototype,"topicPivot",void 0);Ve([y()],Ee.prototype,"searchInDocumentQuery",void 0);Ve([y({type:Number,converter:{fromAttribute:Zf()}})],Ee.prototype,"page",void 0);Ve([ce({store:"reader"})],Ee.prototype,"map",void 0);Ve([ce({store:"reader"})],Ee.prototype,"toc",void 0);Ve([ce({store:"reader"})],Ee.prototype,"visibleTopics",void 0);Ve([ce({store:"reader"})],Ee.prototype,"currentPage",void 0);Ve([ce({store:"reader"})],Ee.prototype,"scrollTarget",void 0);Ve([y({attribute:!1})],Ee.prototype,"readerServiceProvider",void 0);V("ft-reader-context")(Ee);var Qi=class extends CustomEvent{constructor(e){super("send-feedback",{detail:e})}},en=class extends CustomEvent{constructor(e){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:e})}},tn=class extends CustomEvent{constructor(e){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:e})}},rn=class extends CustomEvent{constructor(e){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:e}})}},on=class extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}};var Ce=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},re=class extends Yt(jt){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(q,Qd)}get canAccessFeedback(){var e;return(e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(Ye.FEEDBACK,{session:this.session})}get canAccessRating(){var e,t;return(e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(Ye.RATING,{session:this.session,ratingType:(t=this.ratingSummary)===null||t===void 0?void 0:t.type})}get configuredRatingType(){var e,t;return(t=this.ratingAllowed?(e=this.ratingSummary)===null||e===void 0?void 0:e.type:"NO_RATING")!==null&&t!==void 0?t:"NO_RATING"}get ratingType(){var e,t,o;return(o=(t=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||t===void 0?void 0:t.type)!==null&&o!==void 0?o:"NO_RATING"}get ratingValue(){var e,t,o;return(o=(t=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||t===void 0?void 0:t.value)!==null&&o!==void 0?o:-1}get ratingDate(){var e,t;let o=(t=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||t===void 0?void 0:t.date;return typeof o=="string"?ci(o):o}render(){return!this.canAccessFeedback&&!this.canAccessRating?B:$`
|
|
1635
1635
|
<div class="ft-reader-feedback">
|
|
1636
1636
|
${this.hideTitle?B:$`
|
|
1637
1637
|
<ft-typography variant="title" part="main-title">
|
|
@@ -1653,7 +1653,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1653
1653
|
</div>
|
|
1654
1654
|
`:B}renderRatingDate(){let e=this.ratingDate;if(e==null)return q.messages.notRated();if(e.getTime()>new Date().getTime()-6e4)return q.messages.ratedNow();let t=new Date().toLocaleDateString(),o=e.toLocaleDateString();return t===o?q.messages.ratedToday():q.messages.ratedOn(e)}renderRating(){switch(this.configuredRatingType){case"STARS":return $`
|
|
1655
1655
|
<div class="ft-reader-feedback--stars" part="rating rating-stars">
|
|
1656
|
-
${
|
|
1656
|
+
${En(new Array(5),(a,s)=>s,(a,s)=>{let l=this.ratingType==="STARS"&&this.ratingValue>s,c=s+1;return $`
|
|
1657
1657
|
<ft-button round part="rating-stars-${c}"
|
|
1658
1658
|
label="${q.messages.starsRating(c)}"
|
|
1659
1659
|
tooltipPosition="top"
|
|
@@ -1742,7 +1742,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1742
1742
|
${l}
|
|
1743
1743
|
</div>
|
|
1744
1744
|
</form>
|
|
1745
|
-
`}return B}onFormSubmitEvent(e,t){e.preventDefault(),t?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var e,t,o;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((t=(e=this.session)===null||e===void 0?void 0:e.profile)===null||t===void 0?void 0:t.userId)==null&&(!((o=this.configuration)===null||o===void 0)&&o.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var e;this.dispatchEvent(new
|
|
1745
|
+
`}return B}onFormSubmitEvent(e,t){e.preventDefault(),t?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var e,t,o;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((t=(e=this.session)===null||e===void 0?void 0:e.profile)===null||t===void 0?void 0:t.userId)==null&&(!((o=this.configuration)===null||o===void 0)&&o.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var e;this.dispatchEvent(new Qi({message:this.feedbackInput.value,...((e=this.configuration)===null||e===void 0?void 0:e.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)}};re.elementDefinitions={"ft-button":it,"ft-typography":ye,"ft-switch":Me,"ft-switch-option":be,"ft-text-area":Re,"ft-text-field":G};re.styles=Ld;Ce([y({type:Boolean})],re.prototype,"editorMode",void 0);Ce([y({type:Boolean})],re.prototype,"hideTitle",void 0);Ce([y({type:Boolean})],re.prototype,"withMoreOptionsButton",void 0);Ce([y({type:Boolean})],re.prototype,"ratingAllowed",void 0);Ce([y({attribute:!1})],re.prototype,"i18nProperties",void 0);Ce([y({attribute:!1})],re.prototype,"ratingSummary",void 0);Ce([y({attribute:!1})],re.prototype,"session",void 0);Ce([Z(".ft-reader-feedback--feedback-input")],re.prototype,"feedbackInput",void 0);Ce([z()],re.prototype,"from",void 0);Ce([z()],re.prototype,"feedbackMessage",void 0);Ce([y()],re.prototype,"iconVariant",void 0);Ce([y()],re.prototype,"emptyStarIcon",void 0);Ce([y()],re.prototype,"filledStarIcon",void 0);Ce([y()],re.prototype,"emptyLikeIcon",void 0);Ce([y()],re.prototype,"filledLikeIcon",void 0);Ce([y()],re.prototype,"emptyDislikeIcon",void 0);Ce([y()],re.prototype,"filledDislikeIcon",void 0);Ce([ce({store:"reader",selector:r=>{var e;return(e=r.configuration)===null||e===void 0?void 0:e.feedback}})],re.prototype,"configuration",void 0);Ce([y()],re.prototype,"feedbackMailLinkBuilder",void 0);var Xr=Xt.fromGwt("server");var Jr=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(e,t,o,n,a){var s;this.subject=e,this.url=t,this.configuration=n,this.isAuthenticated=a,this.subjectMetadata=this.filterMetadata(o,n.subjectMetadataIds).map(l=>"["+l.values[l.values.length-1]+"]").join(""),this.bodyMetadata=this.filterMetadata(o,(s=n.bodyMetadataIds)!==null&&s!==void 0?s:[]).map(l=>"["+l.values.join(", ")+"]").join(" ")}filterMetadata(e,t){return t.map(o=>e.find(n=>n.key===o)).filter(o=>o!=null&&o.values.length>0)}shouldUseMailer(){var e,t;let o=this.isAuthenticated&&!(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((t=this.configuration)===null||t===void 0)&&t.mailsSentByFluidTopicsForUnauthenticatedUsers);return o||n}build(e){var t;if(e!=null&&e.length===0||!this.shouldUseMailer())return;let o=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
|
|
1746
1746
|
${this.bodyMetadata}
|
|
1747
1747
|
${this.url}
|
|
1748
1748
|
_________________________________________________________________
|
|
@@ -1750,7 +1750,7 @@ _________________________________________________________________
|
|
|
1750
1750
|
${e??""}
|
|
1751
1751
|
|
|
1752
1752
|
_________________________________________________________________
|
|
1753
|
-
${
|
|
1753
|
+
${Xr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(t=this.configuration)===null||t===void 0?void 0:t.recipients.join(",")}?subject=${o}&body=${n}`}};var Jt=Xt.build("inDesignerFeedbackComponent"),nn={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var _e=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},me=class extends Yt(jt){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Ie.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 Jr,this.i18nProperties={feedbackMainTitle:q.properties.mapFeedbackMainTitle(),ratingSectionTitle:q.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:q.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:q.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new ae(100),this.sendRatingDebouncer=new ae(500),this.addStore(L)}render(){return $`
|
|
1754
1754
|
<ft-reader-feedback
|
|
1755
1755
|
ratingAllowed
|
|
1756
1756
|
.i18nProperties=${this.i18nProperties}
|
|
@@ -1772,7 +1772,7 @@ ${Yr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(t=this.configura
|
|
|
1772
1772
|
@mailer-feedback=${this.onMailerFeedbackSent}
|
|
1773
1773
|
@open-more-options=${this.openMoreOptions}
|
|
1774
1774
|
></ft-reader-feedback>
|
|
1775
|
-
`}update(e){var t,o,n,a;super.update(e),e.has("map")&&this.map&&this.updateData(),e.has("editorMode")&&this.editorMode&&this.addI18nContext(
|
|
1775
|
+
`}update(e){var t,o,n,a;super.update(e),e.has("map")&&this.map&&this.updateData(),e.has("editorMode")&&this.editorMode&&this.addI18nContext(Jt,nn),["map","configuration","user","mailSubject"].some(s=>e.has(s))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(o=(t=this.service)===null||t===void 0?void 0:t.getLink())!==null&&o!==void 0?o:"",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(e){super.onStoreAvailable(e),this.updateData()}updateData(){this.updateDebouncer.run(async()=>{var e,t;this.map&&(!((t=(e=this.session)===null||e===void 0?void 0:e.profile)===null||t===void 0)&&t.userId||this.ratingSummary==null)&&await this.fetchRatingSummary()})}async fetchRatingSummary(){var e;this.ratingSummary=await((e=this.service)===null||e===void 0?void 0:e.getMapRating())}rate(e){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:e.detail==null?void 0:{type:this.ratingSummary.type,value:e.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(e.detail)))}async sendRating(e){var t,o,n;if(!this.editorMode&&this.ratingSummary){try{e==null?await((t=this.service)===null||t===void 0?void 0:t.unrateMap()):await((o=this.service)===null||o===void 0?void 0:o.rateMap((n=this.ratingSummary)===null||n===void 0?void 0:n.type,e))}catch{this.dispatchEvent(new ke({type:"error",message:q.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new ke({type:"info",message:Jt.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(e){var t;try{this.editorMode?this.dispatchEvent(new ke({type:"info",message:Jt.messages.feedbackAndRatingDisabledInEditor()})):(await((t=this.service)===null||t===void 0?void 0:t.sendMapFeedback(e.detail.message,e.detail.from)),this.dispatchEvent(new ke({type:"info",message:q.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new ke({type:"error",message:q.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new on)}openMoreOptions(){var e,t,o;this.dispatchEvent(new tn({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:((e=this.map)===null||e===void 0?void 0:e.metadata)||[],ratingType:((t=this.ratingSummary)===null||t===void 0?void 0:t.type)||Rt.NO_RATING,ratingValue:(o=this.ratingSummary)===null||o===void 0?void 0:o.rating}))}};me.elementDefinitions={"ft-reader-feedback":re};_e([ce({store:L.name})],me.prototype,"session",void 0);_e([ce({store:"reader"})],me.prototype,"map",void 0);_e([ce({store:L.name})],me.prototype,"editorMode",void 0);_e([ce({store:"reader",selector:r=>{var e;return(e=r.configuration)===null||e===void 0?void 0:e.feedback}})],me.prototype,"configuration",void 0);_e([z()],me.prototype,"ratingSummary",void 0);_e([y({type:Boolean})],me.prototype,"hideTitle",void 0);_e([y({type:Boolean})],me.prototype,"withMoreOptionsButton",void 0);_e([y()],me.prototype,"iconVariant",void 0);_e([y()],me.prototype,"emptyStarIcon",void 0);_e([y()],me.prototype,"filledStarIcon",void 0);_e([y()],me.prototype,"emptyLikeIcon",void 0);_e([y()],me.prototype,"filledLikeIcon",void 0);_e([y()],me.prototype,"emptyDislikeIcon",void 0);_e([y()],me.prototype,"filledDislikeIcon",void 0);_e([Z("ft-reader-feedback")],me.prototype,"readerFeedback",void 0);_e([Bi(Xr.properties["mail.map_feedback.subject"](r=>{var e;return[(e=r.map)===null||e===void 0?void 0:e.title]}))],me.prototype,"mailSubject",void 0);_e([Ro({eventName:"rating-changed"})],me.prototype,"fetchRatingSummary",null);var ip=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},zs=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},Bs=Symbol("registerInterval");function qf(r){var e;class t extends r{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[Bs]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[Bs]):this.dispatchEvent(new zs)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=Bs,ip([z()],t.prototype,"tocNode",void 0),ip([z()],t.prototype,"disableContextInteractions",void 0),t}var an=class extends qf(jt){};var Te=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},ge=class extends Yt(an){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Ie.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 Jr,this.i18nProperties={feedbackMainTitle:q.properties.topicFeedbackMainTitle(),ratingSectionTitle:q.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:q.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:q.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new ae(100),this.sendRatingDebouncer=new ae(500),this.addStore(L)}render(){var e;return $`
|
|
1776
1776
|
<ft-reader-feedback
|
|
1777
1777
|
.i18nProperties=${this.i18nProperties}
|
|
1778
1778
|
?ratingAllowed=${(e=this.tocNode)===null||e===void 0?void 0:e.hasRating}
|
|
@@ -1794,7 +1794,7 @@ ${Yr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(t=this.configura
|
|
|
1794
1794
|
@mailer-feedback=${this.onMailerFeedbackSent}
|
|
1795
1795
|
@open-more-options=${this.openMoreOptions}
|
|
1796
1796
|
></ft-reader-feedback>
|
|
1797
|
-
`}update(e){var t,o,n,a;super.update(e),["tocNode","user"].some(s=>e.has(s))&&this.tocNode&&this.updateData(),e.has("editorMode")&&this.editorMode&&this.addI18nContext(
|
|
1797
|
+
`}update(e){var t,o,n,a;super.update(e),["tocNode","user"].some(s=>e.has(s))&&this.tocNode&&this.updateData(),e.has("editorMode")&&this.editorMode&&this.addI18nContext(Jt,nn),["map","tocNode","configuration","user","mailSubject"].some(s=>e.has(s))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(o=(t=this.service)===null||t===void 0?void 0:t.getLink(this.tocNode.tocId))!==null&&o!==void 0?o:"",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 e,t;this.tocNode&&(!((t=(e=this.session)===null||e===void 0?void 0:e.profile)===null||t===void 0)&&t.userId||this.ratingSummary==null)&&await this.fetchRatingSummary()})}async fetchRatingSummary(){var e;this.ratingSummary=await((e=this.service)===null||e===void 0?void 0:e.getTopicRating(this.tocNode.tocId))}rate(e){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:e.detail==null?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:e.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(e.detail)))}async sendRating(e){var t,o,n;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{e==null?await((t=this.service)===null||t===void 0?void 0:t.unrateTopic(this.tocNode.tocId)):await((o=this.service)===null||o===void 0?void 0:o.rateTopic(this.tocNode.tocId,(n=this.ratingSummary)===null||n===void 0?void 0:n.type,e))}catch{this.dispatchEvent(new ke({type:"error",message:q.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new ke({type:"info",message:Jt.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(e){var t;try{!this.editorMode&&this.tocNode?(await((t=this.service)===null||t===void 0?void 0:t.sendTopicFeedback(this.tocNode.tocId,e.detail.message,e.detail.from)),this.dispatchEvent(new ke({type:"info",message:q.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new ke({type:"info",message:Jt.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new ke({type:"error",message:q.messages.feedbackFailure()}))}}onMailerFeedbackSent(){let e=this.tocNode;this.dispatchEvent(new rn(e))}openMoreOptions(){var e,t,o,n,a,s,l,c;this.dispatchEvent(new en({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:(t=(e=this.service)===null||e===void 0?void 0:e.getLink(this.tocNode.tocId))!==null&&t!==void 0?t:"",mapMetadata:((o=this.map)===null||o===void 0?void 0:o.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:Rt.NO_RATING)||Rt.NO_RATING,ratingValue:(c=this.ratingSummary)===null||c===void 0?void 0:c.rating}))}};ge.elementDefinitions={"ft-reader-feedback":re};Te([ce({store:L.name})],ge.prototype,"session",void 0);Te([ce({store:"reader"})],ge.prototype,"map",void 0);Te([ce({store:L.name})],ge.prototype,"editorMode",void 0);Te([ce({store:"reader",selector:r=>{var e;return(e=r.configuration)===null||e===void 0?void 0:e.feedback}})],ge.prototype,"configuration",void 0);Te([z()],ge.prototype,"ratingSummary",void 0);Te([y({type:Boolean})],ge.prototype,"hideTitle",void 0);Te([y({type:Boolean})],ge.prototype,"withMoreOptionsButton",void 0);Te([y()],ge.prototype,"iconVariant",void 0);Te([y()],ge.prototype,"emptyStarIcon",void 0);Te([y()],ge.prototype,"filledStarIcon",void 0);Te([y()],ge.prototype,"emptyLikeIcon",void 0);Te([y()],ge.prototype,"filledLikeIcon",void 0);Te([y()],ge.prototype,"emptyDislikeIcon",void 0);Te([y()],ge.prototype,"filledDislikeIcon",void 0);Te([Z("ft-reader-feedback")],ge.prototype,"readerFeedback",void 0);Te([Bi(Xr.properties["mail.feedback.subject"](r=>{var e,t;return[(e=r.tocNode)===null||e===void 0?void 0:e.title,(t=r.map)===null||t===void 0?void 0:t.title]}))],ge.prototype,"mailSubject",void 0);Te([Ro({eventName:"rating-changed"})],ge.prototype,"fetchRatingSummary",null);V("ft-reader-map-feedback")(me);V("ft-reader-topic-feedback")(ge);})();
|
|
1798
1798
|
/*! Bundled license information:
|
|
1799
1799
|
|
|
1800
1800
|
@webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js:
|