@fluid-topics/ft-search-selected-facets 1.1.112 → 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?Z.substr(1,Z.length):Z}).forEach(function(Z){var te=Z.split(":"),V=te.shift().trim();if(V){var $o=te.join(":").trim();try{v.append(V,$o)}catch(Hi){console.warn("Response "+Hi.message)}}}),v}_.call(C.prototype);function ee(m,v){if(!(this instanceof ee))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(v||(v={}),this.type="default",this.status=v.status===void 0?200:v.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=v.statusText===void 0?"":""+v.statusText,this.headers=new u(v.headers),this.url=v.url||"",this._initBody(m)}_.call(ee.prototype),ee.prototype.clone=function(){return new ee(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},ee.error=function(){var m=new ee(null,{status:200,statusText:""});return m.ok=!1,m.status=0,m.type="error",m};var J=[301,302,303,307,308];ee.redirect=function(m,v){if(J.indexOf(v)===-1)throw new RangeError("Invalid status code");return new ee(null,{status:v,headers:{location:m}})},r.DOMException=o.DOMException;try{new r.DOMException}catch{r.DOMException=function(v,k){this.message=v,this.name=k;var Z=Error(v);this.stack=Z.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function D(m,v){return new Promise(function(k,Z){var te=new C(m,v);if(te.signal&&te.signal.aborted)return Z(new r.DOMException("Aborted","AbortError"));var V=new XMLHttpRequest;function $o(){V.abort()}V.onload=function(){var ve={statusText:V.statusText,headers:Y(V.getAllResponseHeaders()||"")};te.url.indexOf("file://")===0&&(V.status<200||V.status>599)?ve.status=200:ve.status=V.status,ve.url="responseURL"in V?V.responseURL:ve.headers.get("X-Request-URL");var Kt="response"in V?V.response:V.responseText;setTimeout(function(){k(new ee(Kt,ve))},0)},V.onerror=function(){setTimeout(function(){Z(new TypeError("Network request failed"))},0)},V.ontimeout=function(){setTimeout(function(){Z(new TypeError("Network request timed out"))},0)},V.onabort=function(){setTimeout(function(){Z(new r.DOMException("Aborted","AbortError"))},0)};function Hi(ve){try{return ve===""&&o.location.href?o.location.href:ve}catch{return ve}}if(V.open(te.method,Hi(te.url),!0),te.credentials==="include"?V.withCredentials=!0:te.credentials==="omit"&&(V.withCredentials=!1),"responseType"in V&&(n.blob?V.responseType="blob":n.arrayBuffer&&(V.responseType="arraybuffer")),v&&typeof v.headers=="object"&&!(v.headers instanceof u||o.Headers&&v.headers instanceof o.Headers)){var Es=[];Object.getOwnPropertyNames(v.headers).forEach(function(ve){Es.push(c(ve)),V.setRequestHeader(ve,p(v.headers[ve]))}),te.headers.forEach(function(ve,Kt){Es.indexOf(Kt)===-1&&V.setRequestHeader(Kt,ve)})}else te.headers.forEach(function(ve,Kt){V.setRequestHeader(Kt,ve)});te.signal&&(te.signal.addEventListener("abort",$o),V.onreadystatechange=function(){V.readyState===4&&te.signal.removeEventListener("abort",$o)}),V.send(typeof te._bodyInit>"u"?null:te._bodyInit)})}return D.polyfill=!0,o.fetch||(o.fetch=D,o.Headers=u,o.Request=C,o.Response=ee),r.Headers=u,r.Request=C,r.Response=ee,r.fetch=D,r}({})})(Ci);Ci.fetch.ponyfill=!0;delete Ci.fetch.polyfill;var kr=Oi.fetch?Oi:Ci;Bt=kr.fetch;Bt.default=kr.fetch;Bt.fetch=kr.fetch;Bt.Headers=kr.Headers;Bt.Request=kr.Request;Bt.Response=kr.Response;Nc.exports=Bt});if(!ShadowRoot.prototype.createElement){let t=window.HTMLElement,e=window.customElements.define,r=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 C=O.prototype.attributeChangedCallback,U=new Set(O.observedAttributes||[]);g(O,U,C);let Y={elementClass:O,connectedCallback:O.prototype.connectedCallback,disconnectedCallback:O.prototype.disconnectedCallback,adoptedCallback:O.prototype.adoptedCallback,attributeChangedCallback:C,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,Y),this._definitionsByClass.set(O,Y);let ee=r.call(o,S);ee||(ee=u(S),e.call(o,S,ee)),this===window.customElements&&(s.set(O,Y),Y.standInClass=ee);let J=this._awaitingUpgrade.get(S);if(J){this._awaitingUpgrade.delete(S);for(let m of J)a.delete(m),x(m,Y,!0)}let D=this._whenDefinedPromises.get(S);return D!==void 0&&(D.resolve(O),this._whenDefinedPromises.delete(S)),O}upgrade(){w.push(this),o.upgrade.apply(o,arguments),w.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 C=this._whenDefinedPromises.get(S);return C===void 0&&(C={},C.promise=new Promise(U=>C.resolve=U),this._whenDefinedPromises.set(S,C)),C.promise}_upgradeWhenDefined(S,O,C){let U=this._awaitingUpgrade.get(O);U||this._awaitingUpgrade.set(O,U=new Set),C?U.add(S):U.delete(S)}};let c;window.HTMLElement=function(){let O=c;if(O)return c=void 0,O;let C=s.get(this.constructor);if(!C)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return O=Reflect.construct(t,[],C.standInClass),Object.setPrototypeOf(O,this.constructor.prototype),n.set(O,C),O},window.HTMLElement.prototype=t.prototype;let p=S=>S===document||S instanceof ShadowRoot,h=S=>{let O=S.getRootNode();if(!p(O)){let C=w[w.length-1];if(C instanceof CustomElementRegistry)return C;O=C.getRootNode(),p(O)||(O=l.get(O)?.getRootNode()||document)}return O.customElements},u=S=>class{static get formAssociated(){return!0}constructor(){let C=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(C,HTMLElement.prototype);let U=h(C)||window.customElements,Y=U._getDefinition(S);return Y?x(C,Y):a.set(C,U),C}connectedCallback(){let C=n.get(this);C?C.connectedCallback&&C.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,S,!0)}disconnectedCallback(){let C=n.get(this);C?C.disconnectedCallback&&C.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,S,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let C=n.get(this);C&&C.formAssociated&&C?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let C=n.get(this);C?.formAssociated&&C?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let C=n.get(this);C?.formAssociated&&C?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let C=n.get(this);C?.formAssociated&&C?.formStateRestoreCallback?.apply(this,arguments)}},g=(S,O,C)=>{if(O.size===0||C===void 0)return;let U=S.prototype.setAttribute;U&&(S.prototype.setAttribute=function(J,D){let m=J.toLowerCase();if(O.has(m)){let v=this.getAttribute(m);U.call(this,m,D),C.call(this,m,v,D)}else U.call(this,m,D)});let Y=S.prototype.removeAttribute;Y&&(S.prototype.removeAttribute=function(J){let D=J.toLowerCase();if(O.has(D)){let m=this.getAttribute(D);Y.call(this,D),C.call(this,D,m,null)}else Y.call(this,D)});let ee=S.prototype.toggleAttribute;ee&&(S.prototype.toggleAttribute=function(J,D){let m=J.toLowerCase();if(O.has(m)){let v=this.getAttribute(m);ee.call(this,m,D);let k=this.getAttribute(m);C.call(this,m,v,k)}else ee.call(this,m,D)})},b=S=>{let O=Object.getPrototypeOf(S);if(O!==window.HTMLElement)return O===t?Object.setPrototypeOf(S,window.HTMLElement):b(O)},x=(S,O,C=!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))}),C&&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 w=[document],A=(S,O,C=void 0)=>{let U=(C?Object.getPrototypeOf(C):S.prototype)[O];S.prototype[O]=function(){w.push(this);let Y=U.apply(C||this,arguments);return Y!==void 0&&l.set(Y,this),w.pop(),Y}};A(ShadowRoot,"createElement",document),A(ShadowRoot,"importNode",document),A(Element,"insertAdjacentHTML");let _=(S,O)=>{let C=Object.getOwnPropertyDescriptor(S.prototype,O);Object.defineProperty(S.prototype,O,{...C,set(U){w.push(this),C.set.call(this,U),w.pop()}})};if(_(Element,"innerHTML"),_(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,C=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...J){let D=O.call(this,...J);return S.set(D,this),D},C.forEach(J=>{let D=window.ElementInternals.prototype,m=D[J];D[J]=function(...v){let k=S.get(this);if(n.get(k).formAssociated===!0)return m?.call(this,...v);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 Y{constructor(D){let m=new Map;D.forEach((v,k)=>{let Z=v.getAttribute("name"),te=m.get(Z)||[];this[+k]=v,te.push(v),m.set(Z,te)}),this.length=D.length,m.forEach((v,k)=>{v&&(v.length===1?this[k]=v[0]:this[k]=new U(v))})}namedItem(D){return this[D]}}let ee=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let J=ee.get.call(this,[]),D=[];for(let m of J){let v=n.get(m);(!v||v.formAssociated===!0)&&D.push(m)}return new Y(D)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(r,o,n)=>{if(o!==null)try{e.bind(window.customElements)(r,o,n)}catch(a){console.info(r,o,n,a)}}}var rn={};Q(rn,{CSSResult:()=>xr,LitElement:()=>ht,ReactiveElement:()=>rt,_$LE:()=>vp,_$LH:()=>gp,adoptStyles:()=>Ko,css:()=>T,defaultConverter:()=>Zo,getCompatibleStyle:()=>io,html:()=>P,isServer:()=>Ju,noChange:()=>Rt,notEqual:()=>Yi,nothing:()=>B,render:()=>tn,supportsAdoptingStyleSheets:()=>oo,svg:()=>yp,unsafeCSS:()=>ft});var Lo=globalThis,ko=Lo.ShadowRoot&&(Lo.ShadyCSS===void 0||Lo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,As=Symbol(),ws=new WeakMap,Io=class{constructor(e,r,o){if(this._$cssResult$=!0,o!==As)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(ko&&e===void 0){let o=r!==void 0&&r.length===1;o&&(e=ws.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&ws.set(r,e))}return e}toString(){return this.cssText}},Rs=t=>new Io(typeof t=="string"?t:t+"",void 0,As);var Vi=(t,e)=>{if(ko)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let o=document.createElement("style"),n=Lo.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=r.cssText,t.appendChild(o)}},Do=ko?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let o of e.cssRules)r+=o.cssText;return Rs(r)})(t):t;var{is:Xd,defineProperty:Jd,getOwnPropertyDescriptor:Qd,getOwnPropertyNames:ep,getOwnPropertySymbols:tp,getPrototypeOf:rp}=Object,Mo=globalThis,Ns=Mo.trustedTypes,op=Ns?Ns.emptyScript:"",ip=Mo.reactiveElementPolyfillSupport,Xr=(t,e)=>t,Jr={toAttribute(t,e){switch(e){case Boolean:t=t?op:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},Fo=(t,e)=>!Xd(t,e),_s={attribute:!0,type:String,converter:Jr,reflect:!1,hasChanged:Fo};Symbol.metadata??=Symbol("metadata"),Mo.litPropertyMetadata??=new WeakMap;var Zt=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,r=_s){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(e,r),!r.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(e,o,r);n!==void 0&&Jd(this.prototype,e,n)}}static getPropertyDescriptor(e,r,o){let{get:n,set:a}=Qd(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(e,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??_s}static _$Ei(){if(this.hasOwnProperty(Xr("elementProperties")))return;let e=rp(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Xr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Xr("properties"))){let r=this.properties,o=[...ep(r),...tp(r)];for(let n of o)this.createProperty(n,r[n])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[o,n]of r)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[r,o]of this.elementProperties){let n=this._$Eu(r,o);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let n of o)r.unshift(Do(n))}else e!==void 0&&r.push(Do(e));return r}static _$Eu(e,r){let o=r.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,r=this.constructor.elementProperties;for(let o of r.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 Vi(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,r,o){this._$AK(e,o)}_$EO(e,r){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:Jr).toAttribute(r,o.type);this._$Em=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(e,r){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:Jr;this._$Em=n,this[n]=s.fromAttribute(r,a.type),this._$Em=null}}requestUpdate(e,r,o,n=!1,a){if(e!==void 0){if(o??=this.constructor.getPropertyOptions(e),!(o.hasChanged??Fo)(n?a:this[e],r))return;this.C(e,r,o)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,r,o){this._$AL.has(e)||this._$AL.set(e,r),o.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(r){Promise.reject(r)}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,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$E_?.forEach(o=>o.hostUpdate?.()),this.update(r)):this._$ET()}catch(o){throw e=!1,this._$ET(),o}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$E_?.forEach(r=>r.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(r=>this._$EO(r,this[r])),this._$ET()}updated(e){}firstUpdated(e){}};Zt.elementStyles=[],Zt.shadowRootOptions={mode:"open"},Zt[Xr("elementProperties")]=new Map,Zt[Xr("finalized")]=new Map,ip?.({ReactiveElement:Zt}),(Mo.reactiveElementVersions??=[]).push("2.0.2");var Gi=globalThis,Uo=Gi.trustedTypes,Ts=Uo?Uo.createPolicy("lit-html",{createHTML:t=>t}):void 0,Ki="$lit$",pt=`lit$${(Math.random()+"").slice(9)}$`,Zi="?"+pt,np=`<${Zi}>`,Xt=document,Bo=()=>Xt.createComment(""),eo=t=>t===null||typeof t!="object"&&typeof t!="function",Ds=Array.isArray,Ms=t=>Ds(t)||typeof t?.[Symbol.iterator]=="function",ji=`[
|
|
3
|
-
\f\r]`,
|
|
4
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ls=/'/g,Is=/"/g,Fs=/^(?:script|style|textarea|title)$/i,Us=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Bs=Us(1),zs=Us(2),Ue=Symbol.for("lit-noChange"),se=Symbol.for("lit-nothing"),ks=new WeakMap,Yt=Xt.createTreeWalker(Xt,129);function Hs(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ts!==void 0?Ts.createHTML(e):e}var Ws=(t,e)=>{let r=t.length-1,o=[],n,a=e===2?"<svg>":"",s=Qr;for(let l=0;l<r;l++){let c=t[l],p,h,u=-1,g=0;for(;g<c.length&&(s.lastIndex=g,h=s.exec(c),h!==null);)g=s.lastIndex,s===Qr?h[1]==="!--"?s=Ps:h[1]!==void 0?s=$s:h[2]!==void 0?(Fs.test(h[2])&&(n=RegExp("</"+h[2],"g")),s=qt):h[3]!==void 0&&(s=qt):s===qt?h[0]===">"?(s=n??Qr,u=-1):h[1]===void 0?u=-2:(u=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?qt:h[3]==='"'?Is:Ls):s===Is||s===Ls?s=qt:s===Ps||s===$s?s=Qr:(s=qt,n=void 0);let b=s===qt&&t[l+1].startsWith("/>")?" ":"";a+=s===Qr?c+np:u>=0?(o.push(p),c.slice(0,u)+Ki+c.slice(u)+pt+b):c+pt+(u===-2?l:b)}return[Hs(t,a+(t[r]||"<?>")+(e===2?"</svg>":"")),o]},to=class t{constructor({strings:e,_$litType$:r},o){let n;this.parts=[];let a=0,s=0,l=e.length-1,c=this.parts,[p,h]=Ws(e,r);if(this.el=t.createElement(p,o),Yt.currentNode=this.el.content,r===2){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(n=Yt.nextNode())!==null&&c.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let u of n.getAttributeNames())if(u.endsWith(Ki)){let g=h[s++],b=n.getAttribute(u).split(pt),x=/([.?@])?(.*)/.exec(g);c.push({type:1,index:a,name:x[2],strings:b,ctor:x[1]==="."?Ho:x[1]==="?"?Wo:x[1]==="@"?Vo:Qt}),n.removeAttribute(u)}else u.startsWith(pt)&&(c.push({type:6,index:a}),n.removeAttribute(u));if(Fs.test(n.tagName)){let u=n.textContent.split(pt),g=u.length-1;if(g>0){n.textContent=Uo?Uo.emptyScript:"";for(let b=0;b<g;b++)n.append(u[b],Bo()),Yt.nextNode(),c.push({type:2,index:++a});n.append(u[g],Bo())}}}else if(n.nodeType===8)if(n.data===Zi)c.push({type:2,index:a});else{let u=-1;for(;(u=n.data.indexOf(pt,u+1))!==-1;)c.push({type:7,index:a}),u+=pt.length-1}a++}}static createElement(e,r){let o=Xt.createElement("template");return o.innerHTML=e,o}};function Jt(t,e,r=t,o){if(e===Ue)return e;let n=o!==void 0?r._$Co?.[o]:r._$Cl,a=eo(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(t),n._$AT(t,r,o)),o!==void 0?(r._$Co??=[])[o]=n:r._$Cl=n),n!==void 0&&(e=Jt(t,n._$AS(t,e.values),n,o)),e}var zo=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:o}=this._$AD,n=(e?.creationScope??Xt).importNode(r,!0);Yt.currentNode=n;let a=Yt.nextNode(),s=0,l=0,c=o[0];for(;c!==void 0;){if(s===c.index){let p;c.type===2?p=new ro(a,a.nextSibling,this,e):c.type===1?p=new c.ctor(a,c.name,c.strings,this,e):c.type===6&&(p=new jo(a,this,e)),this._$AV.push(p),c=o[++l]}s!==c?.index&&(a=Yt.nextNode(),s++)}return Yt.currentNode=Xt,n}p(e){let r=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,r),r+=o.strings.length-2):o._$AI(e[r])),r++}},ro=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,o,n){this.type=2,this._$AH=se,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Jt(this,e,r),eo(e)?e===se||e==null||e===""?(this._$AH!==se&&this._$AR(),this._$AH=se):e!==this._$AH&&e!==Ue&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Ms(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!==se&&eo(this._$AH)?this._$AA.nextSibling.data=e:this.$(Xt.createTextNode(e)),this._$AH=e}g(e){let{values:r,_$litType$:o}=e,n=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=to.createElement(Hs(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new zo(n,this),s=a.u(this.options);a.p(r),this.$(s),this._$AH=a}}_$AC(e){let r=ks.get(e.strings);return r===void 0&&ks.set(e.strings,r=new to(e)),r}T(e){Ds(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,o,n=0;for(let a of e)n===r.length?r.push(o=new t(this.k(Bo()),this.k(Bo()),this,this.options)):o=r[n],o._$AI(a),n++;n<r.length&&(this._$AR(o&&o._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let o=e.nextSibling;e.remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Qt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,o,n,a){this.type=1,this._$AH=se,this._$AN=void 0,this.element=e,this.name=r,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=se}_$AI(e,r=this,o,n){let a=this.strings,s=!1;if(a===void 0)e=Jt(this,e,r,0),s=!eo(e)||e!==this._$AH&&e!==Ue,s&&(this._$AH=e);else{let l=e,c,p;for(e=a[0],c=0;c<a.length-1;c++)p=Jt(this,l[o+c],r,c),p===Ue&&(p=this._$AH[c]),s||=!eo(p)||p!==this._$AH[c],p===se?e=se:e!==se&&(e+=(p??"")+a[c+1]),this._$AH[c]=p}s&&!n&&this.O(e)}O(e){e===se?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Ho=class extends Qt{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===se?void 0:e}},Wo=class extends Qt{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==se)}},Vo=class extends Qt{constructor(e,r,o,n,a){super(e,r,o,n,a),this.type=5}_$AI(e,r=this){if((e=Jt(this,e,r,0)??se)===Ue)return;let o=this._$AH,n=e===se&&o!==se||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==se&&(o===se||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)}},jo=class{constructor(e,r,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){Jt(this,e)}},Vs={j:Ki,P:pt,A:Zi,C:1,M:Ws,L:zo,R:Ms,V:Jt,D:ro,I:Qt,H:Wo,N:Vo,U:Ho,B:jo},ap=Gi.litHtmlPolyfillSupport;ap?.(to,ro),(Gi.litHtmlVersions??=[]).push("3.1.0");var Go=globalThis,oo=Go.ShadowRoot&&(Go.ShadyCSS===void 0||Go.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,qi=Symbol(),js=new WeakMap,xr=class{constructor(e,r,o){if(this._$cssResult$=!0,o!==qi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(oo&&e===void 0){let o=r!==void 0&&r.length===1;o&&(e=js.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&js.set(r,e))}return e}toString(){return this.cssText}},ft=t=>new xr(typeof t=="string"?t:t+"",void 0,qi),T=(t,...e)=>{let r=t.length===1?t[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)+t[a+1],t[0]);return new xr(r,t,qi)},Ko=(t,e)=>{if(oo)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let o=document.createElement("style"),n=Go.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=r.cssText,t.appendChild(o)}},io=oo?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let o of e.cssRules)r+=o.cssText;return ft(r)})(t):t;var{is:sp,defineProperty:lp,getOwnPropertyDescriptor:cp,getOwnPropertyNames:dp,getOwnPropertySymbols:pp,getPrototypeOf:fp}=Object,qo=globalThis,Gs=qo.trustedTypes,up=Gs?Gs.emptyScript:"",hp=qo.reactiveElementPolyfillSupport,no=(t,e)=>t,Zo={toAttribute(t,e){switch(e){case Boolean:t=t?up:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},Yi=(t,e)=>!sp(t,e),Ks={attribute:!0,type:String,converter:Zo,reflect:!1,hasChanged:Yi};Symbol.metadata??=Symbol("metadata"),qo.litPropertyMetadata??=new WeakMap;var rt=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,r=Ks){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(e,r),!r.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(e,o,r);n!==void 0&&lp(this.prototype,e,n)}}static getPropertyDescriptor(e,r,o){let{get:n,set:a}=cp(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(e,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Ks}static _$Ei(){if(this.hasOwnProperty(no("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(no("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(no("properties"))){let r=this.properties,o=[...dp(r),...pp(r)];for(let n of o)this.createProperty(n,r[n])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[o,n]of r)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[r,o]of this.elementProperties){let n=this._$Eu(r,o);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let n of o)r.unshift(io(n))}else e!==void 0&&r.push(io(e));return r}static _$Eu(e,r){let o=r.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,r=this.constructor.elementProperties;for(let o of r.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 Ko(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,r,o){this._$AK(e,o)}_$EO(e,r){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:Zo).toAttribute(r,o.type);this._$Em=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(e,r){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:Zo;this._$Em=n,this[n]=s.fromAttribute(r,a.type),this._$Em=null}}requestUpdate(e,r,o,n=!1,a){if(e!==void 0){if(o??=this.constructor.getPropertyOptions(e),!(o.hasChanged??Yi)(n?a:this[e],r))return;this.C(e,r,o)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,r,o){this._$AL.has(e)||this._$AL.set(e,r),o.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(r){Promise.reject(r)}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,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$E_?.forEach(o=>o.hostUpdate?.()),this.update(r)):this._$ET()}catch(o){throw e=!1,this._$ET(),o}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$E_?.forEach(r=>r.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(r=>this._$EO(r,this[r])),this._$ET()}updated(e){}firstUpdated(e){}};rt.elementStyles=[],rt.shadowRootOptions={mode:"open"},rt[no("elementProperties")]=new Map,rt[no("finalized")]=new Map,hp?.({ReactiveElement:rt}),(qo.reactiveElementVersions??=[]).push("2.0.2");var Ji=globalThis,Yo=Ji.trustedTypes,Zs=Yo?Yo.createPolicy("lit-html",{createHTML:t=>t}):void 0,Qi="$lit$",ut=`lit$${(Math.random()+"").slice(9)}$`,en="?"+ut,mp=`<${en}>`,rr=document,so=()=>rr.createComment(""),lo=t=>t===null||typeof t!="object"&&typeof t!="function",el=Array.isArray,tl=t=>el(t)||typeof t?.[Symbol.iterator]=="function",Xi=`[
|
|
5
|
-
\f\r]`,
|
|
6
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Xs=/'/g,Js=/"/g,rl=/^(?:script|style|textarea|title)$/i,ol=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),P=ol(1),yp=ol(2),Rt=Symbol.for("lit-noChange"),B=Symbol.for("lit-nothing"),Qs=new WeakMap,tr=rr.createTreeWalker(rr,129);function il(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Zs!==void 0?Zs.createHTML(e):e}var nl=(t,e)=>{let r=t.length-1,o=[],n,a=e===2?"<svg>":"",s=ao;for(let l=0;l<r;l++){let c=t[l],p,h,u=-1,g=0;for(;g<c.length&&(s.lastIndex=g,h=s.exec(c),h!==null);)g=s.lastIndex,s===ao?h[1]==="!--"?s=qs:h[1]!==void 0?s=Ys:h[2]!==void 0?(rl.test(h[2])&&(n=RegExp("</"+h[2],"g")),s=er):h[3]!==void 0&&(s=er):s===er?h[0]===">"?(s=n??ao,u=-1):h[1]===void 0?u=-2:(u=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?er:h[3]==='"'?Js:Xs):s===Js||s===Xs?s=er:s===qs||s===Ys?s=ao:(s=er,n=void 0);let b=s===er&&t[l+1].startsWith("/>")?" ":"";a+=s===ao?c+mp:u>=0?(o.push(p),c.slice(0,u)+Qi+c.slice(u)+ut+b):c+ut+(u===-2?l:b)}return[il(t,a+(t[r]||"<?>")+(e===2?"</svg>":"")),o]},co=class t{constructor({strings:e,_$litType$:r},o){let n;this.parts=[];let a=0,s=0,l=e.length-1,c=this.parts,[p,h]=nl(e,r);if(this.el=t.createElement(p,o),tr.currentNode=this.el.content,r===2){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(n=tr.nextNode())!==null&&c.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let u of n.getAttributeNames())if(u.endsWith(Qi)){let g=h[s++],b=n.getAttribute(u).split(ut),x=/([.?@])?(.*)/.exec(g);c.push({type:1,index:a,name:x[2],strings:b,ctor:x[1]==="."?Jo:x[1]==="?"?Qo:x[1]==="@"?ei:ir}),n.removeAttribute(u)}else u.startsWith(ut)&&(c.push({type:6,index:a}),n.removeAttribute(u));if(rl.test(n.tagName)){let u=n.textContent.split(ut),g=u.length-1;if(g>0){n.textContent=Yo?Yo.emptyScript:"";for(let b=0;b<g;b++)n.append(u[b],so()),tr.nextNode(),c.push({type:2,index:++a});n.append(u[g],so())}}}else if(n.nodeType===8)if(n.data===en)c.push({type:2,index:a});else{let u=-1;for(;(u=n.data.indexOf(ut,u+1))!==-1;)c.push({type:7,index:a}),u+=ut.length-1}a++}}static createElement(e,r){let o=rr.createElement("template");return o.innerHTML=e,o}};function or(t,e,r=t,o){if(e===Rt)return e;let n=o!==void 0?r._$Co?.[o]:r._$Cl,a=lo(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(t),n._$AT(t,r,o)),o!==void 0?(r._$Co??=[])[o]=n:r._$Cl=n),n!==void 0&&(e=or(t,n._$AS(t,e.values),n,o)),e}var Xo=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:o}=this._$AD,n=(e?.creationScope??rr).importNode(r,!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 vr(a,a.nextSibling,this,e):c.type===1?p=new c.ctor(a,c.name,c.strings,this,e):c.type===6&&(p=new ti(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 r=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,r),r+=o.strings.length-2):o._$AI(e[r])),r++}},vr=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,o,n){this.type=2,this._$AH=B,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=or(this,e,r),lo(e)?e===B||e==null||e===""?(this._$AH!==B&&this._$AR(),this._$AH=B):e!==this._$AH&&e!==Rt&&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!==B&&lo(this._$AH)?this._$AA.nextSibling.data=e:this.$(rr.createTextNode(e)),this._$AH=e}g(e){let{values:r,_$litType$:o}=e,n=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=co.createElement(il(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new Xo(n,this),s=a.u(this.options);a.p(r),this.$(s),this._$AH=a}}_$AC(e){let r=Qs.get(e.strings);return r===void 0&&Qs.set(e.strings,r=new co(e)),r}T(e){el(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,o,n=0;for(let a of e)n===r.length?r.push(o=new t(this.k(so()),this.k(so()),this,this.options)):o=r[n],o._$AI(a),n++;n<r.length&&(this._$AR(o&&o._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);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,r,o,n,a){this.type=1,this._$AH=B,this._$AN=void 0,this.element=e,this.name=r,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,r=this,o,n){let a=this.strings,s=!1;if(a===void 0)e=or(this,e,r,0),s=!lo(e)||e!==this._$AH&&e!==Rt,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],r,c),p===Rt&&(p=this._$AH[c]),s||=!lo(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??"")}},Jo=class extends ir{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===B?void 0:e}},Qo=class extends ir{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==B)}},ei=class extends ir{constructor(e,r,o,n,a){super(e,r,o,n,a),this.type=5}_$AI(e,r=this){if((e=or(this,e,r,0)??B)===Rt)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)}},ti=class{constructor(e,r,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){or(this,e)}},gp={j:Qi,P:ut,A:en,C:1,M:nl,L:Xo,R:tl,V:or,D:vr,I:ir,H:Qo,N:ei,U:Jo,B:ti},bp=Ji.litHtmlPolyfillSupport;bp?.(co,vr),(Ji.litHtmlVersions??=[]).push("3.1.0");var tn=(t,e,r)=>{let o=r?.renderBefore??e,n=o._$litPart$;if(n===void 0){let a=r?.renderBefore??null;o._$litPart$=n=new vr(e.insertBefore(so(),a),a,void 0,r??{})}return n._$AI(t),n};var ht=class extends rt{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 r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=tn(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Rt}};ht._$litElement$=!0,ht.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:ht});var xp=globalThis.litElementPolyfillSupport;xp?.({LitElement:ht});var vp={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};(globalThis.litElementVersions??=[]).push("4.0.2");var Ju=!1;var sn={};Q(sn,{customElement:()=>Sp,eventOptions:()=>Sr,property:()=>y,query:()=>z,queryAll:()=>on,queryAssignedElements:()=>nn,queryAssignedNodes:()=>an,queryAsync:()=>Ep,standardProperty:()=>al,state:()=>G});var Sp=t=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};var Op={attribute:!0,type:String,converter:Jr,reflect:!1,hasChanged:Fo},al=(t=Op,e,r)=>{let{kind:o,metadata:n}=r,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),a.set(r.name,t),o==="accessor"){let{name:s}=r;return{set(l){let c=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,c,t)},init(l){return l!==void 0&&this.C(s,void 0,t),l}}}if(o==="setter"){let{name:s}=r;return function(l){let c=this[s];e.call(this,l),this.requestUpdate(s,c,t)}}throw Error("Unsupported decorator location: "+o)};function y(t){return(e,r)=>typeof r=="object"?al(t,e,r):((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})(t,e,r)}function G(t){return y({...t,state:!0,attribute:!1})}function Sr(t){return(e,r)=>{let o=typeof e=="function"?e:e[r];Object.assign(o,t)}}var qe=(t,e,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,r),r);function z(t,e){return(r,o,n)=>{let a=s=>s.renderRoot?.querySelector(t)??null;if(e){let{get:s,set:l}=typeof o=="object"?r:n??(()=>{let c=Symbol();return{get(){return this[c]},set(p){this[c]=p}}})();return qe(r,o,{get(){let c=s.call(this);return c===void 0&&(c=a(this),(c!==null||this.hasUpdated)&&l.call(this,c)),c}})}return qe(r,o,{get(){return a(this)}})}}var Cp;function on(t){return(e,r)=>qe(e,r,{get(){return(this.renderRoot??(Cp??=document.createDocumentFragment())).querySelectorAll(t)}})}function Ep(t){return(e,r)=>qe(e,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})}function nn(t){return(e,r)=>{let{slot:o,selector:n}=t??{},a="slot"+(o?`[name=${o}]`:":not([name])");return qe(e,r,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(t)??[];return n===void 0?l:l.filter(c=>c.matches(n))}})}}function an(t){return(e,r)=>{let{slot:o}=t??{},n="slot"+(o?`[name=${o}]`:":not([name])");return qe(e,r,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(t)??[]}})}}var ln={};Q(ln,{repeat:()=>nr});var Nt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},_t=t=>(...e)=>({_$litDirective$:t,values:e}),ot=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,o){this._$Ct=e,this._$AM=r,this._$Ci=o}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var{D:wp}=Vs;var sl=()=>document.createComment(""),Or=(t,e,r)=>{let o=t._$AA.parentNode,n=e===void 0?t._$AB:e._$AA;if(r===void 0){let a=o.insertBefore(sl(),n),s=o.insertBefore(sl(),n);r=new wp(a,s,t,t.options)}else{let a=r._$AB.nextSibling,s=r._$AM,l=s!==t;if(l){let c;r._$AQ?.(t),r._$AM=t,r._$AP!==void 0&&(c=t._$AU)!==s._$AU&&r._$AP(c)}if(a!==n||l){let c=r._$AA;for(;c!==a;){let p=c.nextSibling;o.insertBefore(c,n),c=p}}}return r},Tt=(t,e,r=t)=>(t._$AI(e,r),t),Ap={},ll=(t,e=Ap)=>t._$AH=e,cl=t=>t._$AH,ri=t=>{t._$AP?.(!1,!0);let e=t._$AA,r=t._$AB.nextSibling;for(;e!==r;){let o=e.nextSibling;e.remove(),e=o}};var dl=(t,e,r)=>{let o=new Map;for(let n=e;n<=r;n++)o.set(t[n],n);return o},nr=_t(class extends ot{constructor(t){if(super(t),t.type!==Nt.CHILD)throw Error("repeat() can only be used in text expressions")}ht(t,e,r){let o;r===void 0?r=e:e!==void 0&&(o=e);let n=[],a=[],s=0;for(let l of t)n[s]=o?o(l,s):s,a[s]=r(l,s),s++;return{values:a,keys:n}}render(t,e,r){return this.ht(t,e,r).values}update(t,[e,r,o]){let n=cl(t),{values:a,keys:s}=this.ht(e,r,o);if(!Array.isArray(n))return this.dt=s,a;let l=this.dt??=[],c=[],p,h,u=0,g=n.length-1,b=0,x=a.length-1;for(;u<=g&&b<=x;)if(n[u]===null)u++;else if(n[g]===null)g--;else if(l[u]===s[b])c[b]=Tt(n[u],a[b]),u++,b++;else if(l[g]===s[x])c[x]=Tt(n[g],a[x]),g--,x--;else if(l[u]===s[x])c[x]=Tt(n[u],a[x]),Or(t,c[x+1],n[u]),u++,x--;else if(l[g]===s[b])c[b]=Tt(n[g],a[b]),Or(t,n[u],n[g]),g--,b++;else if(p===void 0&&(p=dl(s,b,x),h=dl(l,u,g)),p.has(l[u]))if(p.has(l[g])){let E=h.get(s[b]),w=E!==void 0?n[E]:null;if(w===null){let A=Or(t,n[u]);Tt(A,a[b]),c[b]=A}else c[b]=Tt(w,a[b]),Or(t,n[u],w),n[E]=null;b++}else ri(n[g]),g--;else ri(n[u]),u++;for(;b<=x;){let E=Or(t,c[x+1]);Tt(E,a[b]),c[b++]=E}for(;u<=g;){let E=n[u++];E!==null&&ri(E)}return this.dt=s,ll(t,c),Ue}});var cn={};Q(cn,{classMap:()=>Ae});var Ae=_t(class extends ot{constructor(t){if(super(t),t.type!==Nt.ATTRIBUTE||t.name!=="class"||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){if(this.it===void 0){this.it=new Set,t.strings!==void 0&&(this.st=new Set(t.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 r=t.element.classList;for(let o of this.it)o in e||(r.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?(r.add(o),this.it.add(o)):(r.remove(o),this.it.delete(o)))}return Ue}});var dn={};Q(dn,{styleMap:()=>Np});var pl="important",Rp=" !"+pl,Np=_t(class extends ot{constructor(t){if(super(t),t.type!==Nt.ATTRIBUTE||t.name!=="style"||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,r)=>{let o=t[r];return o==null?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(t,[e]){let{style:r}=t.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("-")?r.removeProperty(o):r[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(Rp);o.includes("-")||a?r.setProperty(o,a?n.slice(0,-11):n,a?pl:""):r[o]=n}}return Ue}});var fn={};Q(fn,{UnsafeHTMLDirective:()=>Cr,unsafeHTML:()=>pn});var Cr=class extends ot{constructor(e){if(super(e),this.et=se,e.type!==Nt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===se||e==null)return this.vt=void 0,this.et=e;if(e===Ue)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 r=[e];return r.raw=r,this.vt={_$litType$:this.constructor.resultType,strings:r,values:[]}}};Cr.directiveName="unsafeHTML",Cr.resultType=1;var pn=_t(Cr);var hn={};Q(hn,{CacheRegistry:()=>it});var un={};Q(un,{CancelablePromise:()=>Er,CanceledPromiseError:()=>Pt,cancelable:()=>wr});var Pt=class extends Error{constructor(e,r,o){super(e),this.canceledPromiseResult=r,this.canceledPromiseError=o}},Er=class extends Promise{constructor(e){super((r,o)=>e(n=>{this.isCanceled?o(new Pt("Promise has been canceled",n)):r(n)},n=>{this.isCanceled?o(new Pt("Promise has been canceled",void 0,n)):o(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},wr=t=>new Er((e,r)=>t.then(e).catch(r));var it=class{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(e,r){this.loaders[e]=r,this.finalContent.delete(e)}registerFinal(e,r){this.loaders[e]=r,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 Er&&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,r){this.forceClear(e),this.register(e,async()=>r),this.content[e]=r}setFinal(e,r){this.forceClear(e),this.registerFinal(e,async()=>r),this.content[e]=r}async get(e,r,o){if(this.content[e]===void 0){if(r=r??this.loaders[e],r==null)throw new Error("Unknown cache key "+e);let n=wr(r());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 yn={};Q(yn,{ClusteringHelper:()=>mn});var mn=class t{constructor(e,r,o,n){this.allResults=e,this.selectedResult=r,this.clusteringMetadata=o,this.metadataDescriptors=n}static extractResultMetadata(e,r){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 r==null?t.flattenMetadata(a):t.flattenMetadata(a.find(s=>s.key===r))}static flattenMetadata(e){if(Array.isArray(e))return e.map(o=>t.flattenMetadata(o)).filter(o=>o!=null);let r=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!r))if(r){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,r,o="No value"){var n,a;let s=t.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=>t.extractResultMetadata(p,e)).map(p=>p??{key:e,label:l,value:void 0,displayValue:o}).filter(p=>p.value!=s?.value).filter((p,h,u)=>u.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,r))}compareMetadata(e,r,o,n){if(e==null)return-1;if(r==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(r,n,{numeric:!0});return l?c*-1:c}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(r=>e==r.key)}findBestResultForMetadataValue(e,r){let o=this.allResults.filter(c=>{var p;return((p=t.extractResultMetadata(c,e))===null||p===void 0?void 0:p.value)==r}),a=[...t.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,r){return t.extractResultMetadata(e).filter(o=>r.some(n=>n.key===o.key&&n.value===o.value)).length}};var gn={};Q(gn,{Debouncer:()=>ae});var ae=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,o)=>{this.resolvePromise=r,this.rejectPromise=o})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let o=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>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 vn={};Q(vn,{customElement:()=>H,isNumber:()=>hl,jsonProperty:()=>Se,optionalNumberProperty:()=>Ip});var xn={};Q(xn,{dateReviver:()=>Tp,deepEqual:()=>Be,delay:()=>oi,eventPathContainsMatchingElement:()=>$p,flatDeep:()=>mt,hasChanged:()=>po,last:()=>Lp,minmax:()=>bn,parseDate:()=>ul,waitFor:()=>fl,waitUntil:()=>_p});var oi=t=>new Promise(e=>setTimeout(e,t));async function _p(t,e=10,r=2e4){await fl(async()=>await t()||void 0,e,r)}async function fl(t,e=10,r=2e4){let o=await t(),n,a;for(n=a=performance.now();o==null&&(!r||a-n<r);)await oi(e),o=await t(),a=performance.now();if(o==null)throw new Error("Timeout exceeded");return o}function mt(t,e){return t.flatMap(r=>[r,...mt(e(r),e)])}function Tp(...t){return function(e,r){return t.includes(e)?ul(r):r}}function ul(t){return t.match(/^\d{4}-\d{2}-\d{2}$/)&&(t=t.replace(/-/g,"/")),t=t.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,r,o,n)=>r+o+":"+n),new Date(t)}function Pp(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var r,o,n;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(o=r;o--!==0;)if(!Be(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;for(o of t.entries())if(!Be(o[1],e.get(o[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(n=Object.keys(t),r=n.length,r!==Object.keys(e).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[o]))return!1;for(o=r;o--!==0;){var a=n[o];if(!Be(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function Be(t,e){try{return Pp(t,e)}catch{return!1}}function po(t,e){return!Be(t,e)}function $p(t,e,r=window.document.body){if(e.length>0){let o=t.composedPath();for(let n of o){if(n===r)return!1;if(n.matches&&e.some(a=>n.matches(a)))return!0}}return!1}function bn(t,e,r){return Math.min(Math.max(t,e),r)}function Lp(t){return t[t.length-1]}var H=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function Se(t,e){let r=()=>JSON.parse(JSON.stringify(t));return y({type:Object,converter:{fromAttribute:o=>{if(o==null)return r();try{return JSON.parse(o)}catch{return r()}},toAttribute:o=>JSON.stringify(o)},hasChanged:po,...e??{}})}function Ip(t){return y({type:Object,converter:{fromAttribute:e=>{if(e!=null)return hl(e)?+e:void 0},toAttribute:e=>e==null?void 0:""+e},...t??{}})}function hl(t){return!isNaN(parseFloat(t))}var qn={};Q(qn,{designSystemVariables:()=>L});var Zn={};Q(Zn,{DesignSystemFamily:()=>gt,DesignSystemSize:()=>ye,FtCssVariableFactory:()=>i,badge:()=>Up,banner:()=>Fp,breadcrumb:()=>Bp,button:()=>R,chart:()=>Qp,checkbox:()=>tf,chip:()=>W,chipChoice:()=>Dp,collapsible:()=>Xp,comboboxMultiSelect:()=>qp,comboboxSingleSelect:()=>Zp,drawer:()=>Wp,floatingMenu:()=>Kp,foundation:()=>d,link:()=>Mp,modal:()=>Hp,notice:()=>ef,notification:()=>nf,pageHeader:()=>zp,popover:()=>Yp,radio:()=>of,resolveFamilyClass:()=>Gn,resolveSizeClass:()=>Kn,semantic:()=>f,setVariable:()=>$,switch_:()=>Jp,tabs:()=>Vp,textArea:()=>Gp,textInput:()=>jp,toggle:()=>rf,tooltip:()=>af,typographies:()=>fo,typographyBody1Medium:()=>An,typographyBody1Regular:()=>wn,typographyBody1Semibold:()=>Rn,typographyBody2Medium:()=>_n,typographyBody2MediumUnderline:()=>ml,typographyBody2Regular:()=>Nn,typographyBody2Semibold:()=>Tn,typographyCaption1Bold:()=>Un,typographyCaption1Medium:()=>Mn,typographyCaption1Semibold:()=>Fn,typographyCaption2Bold:()=>Hn,typographyCaption2Medium:()=>Bn,typographyCaption2Semibold:()=>zn,typographyCaption3Bold:()=>jn,typographyCaption3Medium:()=>Wn,typographyCaption3Semibold:()=>Vn,typographyDisplay:()=>Sn,typographyLabel1Bold:()=>Ln,typographyLabel1Medium:()=>Pn,typographyLabel1Semibold:()=>$n,typographyLabel2Bold:()=>Dn,typographyLabel2Medium:()=>In,typographyLabel2Semibold:()=>kn,typographyTitle1:()=>On,typographyTitle2:()=>Cn,typographyTitle3:()=>En,typographyVariants:()=>kp});var yt=t=>typeof t=="string"?ft(t):t,i=class{static create(e,r,o,n){let a=l=>yt(l??n),s=T`var(${yt(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=o,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>T`var(${yt(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,r,o,n){let a=l=>o.get(l??n),s=T`var(${yt(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=o.category,s.fallbackVariable=o,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>T`var(${yt(e)}, ${a(l)})`,s.breadcrumb=()=>[o.name,...o.breadcrumb()],s.lastResortDefaultValue=()=>n??o.lastResortDefaultValue(),s}static external(e,r){let o=a=>e.fallbackVariable?e.fallbackVariable.get(a??e.defaultValue):yt(a??e.lastResortDefaultValue()),n=T`var(${yt(e.name)}, ${o(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=r,n.defaultCssValue=o,n.get=a=>T`var(${yt(e.name)}, ${o(a)})`,n.breadcrumb=()=>e.fallbackVariable?[e.fallbackVariable.name,...e.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};function $(t,e){return yt(`${t.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)")},Sn={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")},On={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")},Cn={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")},En={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")},An={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")},Rn={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")},Nn={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")},_n={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")},ml={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")},Tn={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")},Pn={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")},$n={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")},Ln={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")},In={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")},kn={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")},Dn={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")},Mn={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")},Fn={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")},Un={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")},Bn={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")},zn={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")},Hn={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")},Wn={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")},Vn={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")},jn={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")},fo={display:Sn,"title-1":On,"title-2":Cn,"title-3":En,"body-1-regular":wn,"body-1-medium":An,"body-1-semibold":Rn,"body-2-regular":Nn,"body-2-medium":_n,"body-2-medium-underline":ml,"body-2-semibold":Tn,"label-1-medium":Pn,"label-1-semibold":$n,"label-1-bold":Ln,"label-2-medium":In,"label-2-semibold":kn,"label-2-bold":Dn,"caption-1-medium":Mn,"caption-1-semibold":Fn,"caption-1-bold":Un,"caption-2-medium":Bn,"caption-2-semibold":zn,"caption-2-bold":Hn,"caption-3-medium":Wn,"caption-3-semibold":Vn,"caption-3-bold":jn},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 f={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","",f.backgroundActionPrimary),primaryColor:i.extend("--ft-button-primary-color","",f.contentGlobalOnColor),primaryIconColor:i.extend("--ft-button-primary-icon-color","",f.contentGlobalOnColor),primaryStateLayerColor:i.extend("--ft-button-primary-state-layer-color","",f.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","",f.borderActionFocusRing),tertiaryBackgroundColor:i.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:i.extend("--ft-button-tertiary-color","",f.contentActionPrimary),tertiaryIconColor:i.extend("--ft-button-tertiary-icon-color","",f.contentActionPrimary),tertiaryStateLayerColor:i.extend("--ft-button-tertiary-state-layer-color","",f.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","",f.contentActionPrimary),secondaryIconColor:i.extend("--ft-button-secondary-icon-color","",f.contentActionPrimary),secondaryStateLayerColor:i.extend("--ft-button-secondary-state-layer-color","",f.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","",f.borderActionPrimary),neutralBackgroundColor:i.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:i.extend("--ft-button-neutral-icon-color","",f.contentGlobalSecondary),neutralColor:i.extend("--ft-button-neutral-color","",f.contentGlobalSecondary),neutralStateLayerColor:i.extend("--ft-button-neutral-state-layer-color","",f.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 Dp={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","",f.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","",f.backgroundGlobalOnSurface),neutralOffBorderColor:i.extend("--ft-chip-choice-neutral-off-border-color","",f.borderGlobalPrimary),neutralOffColor:i.extend("--ft-chip-choice-neutral-off-color","",f.contentGlobalSecondary),neutralOffStateLayerColor:i.extend("--ft-chip-choice-neutral-off-state-layer-color","",f.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","",f.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","",f.backgroundGlobalOnSurface),neutralOnBorderColor:i.extend("--ft-chip-choice-neutral-on-border-color","",f.borderGlobalPrimary),neutralOnColor:i.extend("--ft-chip-choice-neutral-on-color","",f.contentGlobalPrimary),neutralOnIconColor:i.extend("--ft-chip-choice-neutral-on-icon-color","",f.contentGlobalPrimary),neutralOnStateLayerColor:i.extend("--ft-chip-choice-neutral-on-state-layer-color","",f.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 W={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","",f.backgroundGlobalOnSurface),neutralColor:i.extend("--ft-chip-neutral-color","",f.contentGlobalSecondary),neutralIconColor:i.extend("--ft-chip-neutral-icon-color","",f.contentGlobalSecondary),neutralBorderColor:i.extend("--ft-chip-neutral-border-color","",f.borderGlobalSubtle),infoBackgroundColor:i.extend("--ft-chip-info-background-color","",f.backgroundInfoSubtle),infoColor:i.extend("--ft-chip-info-color","",f.contentInfoPrimary),infoIconColor:i.extend("--ft-chip-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:i.extend("--ft-chip-info-border-color","",f.borderInfoSubtle),successBackgroundColor:i.extend("--ft-chip-success-background-color","",f.backgroundSuccessSubtle),successColor:i.extend("--ft-chip-success-color","",f.contentSuccessPrimary),successIconColor:i.extend("--ft-chip-success-icon-color","",f.contentSuccessIconOnly),successBorderColor:i.extend("--ft-chip-success-border-color","",f.borderSuccessSubtle),warningBackgroundColor:i.extend("--ft-chip-warning-background-color","",f.backgroundWarningSubtle),warningColor:i.extend("--ft-chip-warning-color","",f.contentWarningPrimary),warningIconColor:i.extend("--ft-chip-warning-icon-color","",f.contentWarningIconOnly),warningBorderColor:i.extend("--ft-chip-warning-border-color","",f.borderWarningSubtle),errorBackgroundColor:i.extend("--ft-chip-error-background-color","",f.backgroundErrorSubtle),errorColor:i.extend("--ft-chip-error-color","",f.contentErrorPrimary),errorIconColor:i.extend("--ft-chip-error-icon-color","",f.contentErrorIconOnly),errorBorderColor:i.extend("--ft-chip-error-border-color","",f.borderErrorSubtle)};var Mp={brandHoverOpacity:i.extend("--ft-link-brand-hover-opacity","",d.opacity80),brandHoverColor:i.extend("--ft-link-brand-hover-color","",f.contentActionPrimary),brandFocusFocusRingColor:i.extend("--ft-link-brand-focus-focus-ring-color","",f.borderActionFocusRing),brandFocusColor:i.extend("--ft-link-brand-focus-color","",f.contentActionPrimary),brandDefaultColor:i.extend("--ft-link-brand-default-color","",f.contentActionPrimary),brandActiveColor:i.extend("--ft-link-brand-active-color","",f.contentActionPrimary),infoHoverOpacity:i.extend("--ft-link-info-hover-opacity","",d.opacity80),infoHoverColor:i.extend("--ft-link-info-hover-color","",f.contentInfoPrimary),infoFocusFocusRingColor:i.extend("--ft-link-info-focus-focus-ring-color","",f.borderActionFocusRing),infoFocusColor:i.extend("--ft-link-info-focus-color","",f.contentInfoPrimary),infoDefaultColor:i.extend("--ft-link-info-default-color","",f.contentInfoPrimary),infoActiveColor:i.extend("--ft-link-info-active-color","",f.contentInfoPrimary),neutralFocusFocusRingColor:i.extend("--ft-link-neutral-focus-focus-ring-color","",f.borderActionFocusRing),neutralFocusColor:i.extend("--ft-link-neutral-focus-color","",f.contentActionPrimary),neutralDefaultColor:i.extend("--ft-link-neutral-default-color","",f.contentGlobalPrimary),neutralHoverColor:i.extend("--ft-link-neutral-hover-color","",f.contentActionPrimary),neutralActiveColor:i.extend("--ft-link-neutral-active-color","",f.contentActionPrimary)};var Fp={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","",f.backgroundInfoSubtle),infoColor:i.extend("--ft-banner-info-color","",f.contentInfoPrimary),infoIconColor:i.extend("--ft-banner-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:i.extend("--ft-banner-info-border-color","",f.borderInfoSubtle)};var Up={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","",f.contentGlobalOnColor),backgroundColor:i.extend("--ft-badge-background-color","",f.contentActionPrimary)};var Bp={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","",f.contentGlobalPrimary),previousNonClickableColor:i.extend("--ft-breadcrumb-previous-non-clickable-color","",f.contentGlobalSecondary),iconColor:i.extend("--ft-breadcrumb-icon-color","",f.contentGlobalSubtle)};var zp={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","",f.borderGlobalSubtle),titleColor:i.extend("--ft-page-header-title-color","",f.contentGlobalPrimary),subtitleColor:i.extend("--ft-page-header-subtitle-color","",f.contentGlobalSecondary)};var Hp={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","",f.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","",f.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ft-modal-header-border-color","",f.borderGlobalSubtle),headerColor:i.extend("--ft-modal-header-color","",f.contentGlobalPrimary),headerTrailingIconColor:i.extend("--ft-modal-header-trailing-icon-color","",f.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 Wp={overlayOpacity:i.extend("--ft-drawer-overlay-opacity","",d.opacity40),shadow:i.extend("--ft-drawer-shadow","",d.shadowElevation03),bodyColor:i.extend("--ft-drawer-body-color","",f.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","",f.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ft-drawer-header-border-color","",f.borderGlobalSubtle),headerColor:i.extend("--ft-drawer-header-color","",f.contentGlobalPrimary),headerTrailingIconColor:i.extend("--ft-drawer-header-trailing-icon-color","",f.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","",f.backgroundGlobalOnSurface),buttonsBarBorderColor:i.extend("--ft-drawer-buttons-bar-border-color","",f.borderGlobalSubtle),buttonsBarColor:i.extend("--ft-drawer-buttons-bar-color","",f.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 Vp={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","",f.contentGlobalSubtle),offStateLayerColor:i.extend("--ft-tabs-off-state-layer-color","",f.contentGlobalSubtle),offBorderBottomColor:i.extend("--ft-tabs-off-border-bottom-color","",f.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","",f.contentActionPrimary),onStateLayerColor:i.extend("--ft-tabs-on-state-layer-color","",f.contentActionPrimary),onActiveTabIndicatorColor:i.extend("--ft-tabs-on-active-tab-indicator-color","",f.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","",f.borderActionFocusRing)};var jp={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","",f.contentGlobalPrimary),trailingIconColor:i.extend("--ft-text-input-trailing-icon-color","",f.contentGlobalSubtle),labelColor:i.extend("--ft-text-input-label-color","",f.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-text-input-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-text-input-default-helper-text-color","",f.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","",f.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-text-input-error-helper-text-color","",f.contentErrorPrimary),errorHelperIconColor:i.extend("--ft-text-input-error-helper-icon-color","",f.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","",f.borderActionFocusRing),focusOutlineOffset:i.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ft-text-input-disabled-component-opacity","",d.opacity40)};var Gp={backgroundColor:i.extend("--ft-text-area-background-color","",d.colorWhite),contentValueColor:i.extend("--ft-text-area-content-value-color","",f.contentGlobalPrimary),labelColor:i.extend("--ft-text-area-label-color","",f.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-text-area-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-text-area-default-helper-text-color","",f.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","",f.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-text-area-error-helper-text-color","",f.contentErrorPrimary),errorHelperIconColor:i.extend("--ft-text-area-error-helper-icon-color","",f.contentErrorIconOnly),focusFocusRingColor:i.extend("--ft-text-area-focus-focus-ring-color","",f.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 Kp={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","",f.contentGlobalPrimary),offColor:i.extend("--ft-floating-menu-off-color","",f.contentGlobalPrimary),onColor:i.extend("--ft-floating-menu-on-color","",f.contentActionPrimary),onStateLayerColor:i.extend("--ft-floating-menu-on-state-layer-color","",f.contentActionPrimary),gap:i.extend("--ft-floating-menu-gap","",d.spacing3),focusFocusRingColor:i.extend("--ft-floating-menu-focus-focus-ring-color","",f.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","",f.backgroundGlobalOnSurface),shadow:i.extend("--ft-floating-menu-shadow","",d.shadowElevation02)};var Zp={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","",f.contentGlobalSubtle),contentValueColor:i.extend("--ft-combobox-single-select-content-value-color","",f.contentGlobalPrimary),trailingIconColor:i.extend("--ft-combobox-single-select-trailing-icon-color","",f.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-combobox-single-select-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-combobox-single-select-default-helper-text-color","",f.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","",f.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-combobox-single-select-error-helper-text-color","",f.contentErrorPrimary),warningBorderWidth:i.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:i.extend("--ft-combobox-single-select-warning-border-color","",f.borderWarningPrimary),warningHelperTextColor:i.extend("--ft-combobox-single-select-warning-helper-text-color","",f.contentWarningPrimary),warningHelperIconColor:i.extend("--ft-combobox-single-select-warning-helper-icon-color","",f.contentWarningIconOnly),focusOutlineWidth:i.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-combobox-single-select-focus-focus-ring-color","",f.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 qp={backgroundColor:i.extend("--ft-combobox-multi-select-background-color","",d.colorWhite),labelColor:i.extend("--ft-combobox-multi-select-label-color","",f.contentGlobalSubtle),trailingIconColor:i.extend("--ft-combobox-multi-select-trailing-icon-color","",f.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-combobox-multi-select-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-combobox-multi-select-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:i.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:i.extend("--ft-combobox-multi-select-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-combobox-multi-select-error-helper-text-color","",f.contentErrorPrimary),errorHelperIcon:i.extend("--ft-combobox-multi-select-error-helper-icon","",f.contentErrorIconOnly),errorBorderWidth:i.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:i.extend("--ft-combobox-multi-select-warning-border-color","",f.borderWarningPrimary),warningHelperTextColor:i.extend("--ft-combobox-multi-select-warning-helper-text-color","",f.contentWarningPrimary),warningHelperIconColor:i.extend("--ft-combobox-multi-select-warning-helper-icon-color","",f.contentWarningIconOnly),warningBorderWidth:i.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-combobox-multi-select-focus-focus-ring-color","",f.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 Yp={backgroundColor:i.extend("--ft-popover-background-color","",f.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","",f.contentGlobalPrimary),bodyColor:i.extend("--ft-popover-body-color","",f.contentGlobalSecondary),linkColor:i.extend("--ft-popover-link-color","",f.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 Xp={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","",f.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","",f.contentGlobalPrimary),stateLayerColor:i.extend("--ft-collapsible-state-layer-color","",f.contentGlobalPrimary),backgroundColor:i.extend("--ft-collapsible-background-color","",f.backgroundGlobalOnSurface),borderColor:i.extend("--ft-collapsible-border-color","",f.borderGlobalSubtle),iconSize:i.extend("--ft-collapsible-icon-size","",d.iconSize3)};var Jp={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","",f.backgroundGlobalSurface),groupBorderColor:i.extend("--ft-switch-group-border-color","",f.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","",f.contentGlobalSubtle),offStateLayerColor:i.extend("--ft-switch-off-state-layer-color","",f.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","",f.contentActionPrimary),onStateLayerColor:i.extend("--ft-switch-on-state-layer-color","",f.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","",f.borderActionFocusRing),optionBorderRadius:i.extend("--ft-switch-option-border-radius","",d.borderRadiusS)};var Qp={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 ef={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","",f.backgroundInfoSubtle),infoBorderColor:i.extend("--ft-notice-info-border-color","",f.borderInfoSubtle),infoColor:i.extend("--ft-notice-info-color","",f.contentInfoPrimary),infoIconColor:i.extend("--ft-notice-info-icon-color","",f.contentInfoIconOnly),warningBackgroundColor:i.extend("--ft-notice-warning-background-color","",f.backgroundWarningSubtle),warningBorderColor:i.extend("--ft-notice-warning-border-color","",f.borderWarningSubtle),warningColor:i.extend("--ft-notice-warning-color","",f.contentWarningPrimary),warningIconColor:i.extend("--ft-notice-warning-icon-color","",f.contentWarningIconOnly),errorBackgroundColor:i.extend("--ft-notice-error-background-color","",f.backgroundErrorSubtle),errorBorderColor:i.extend("--ft-notice-error-border-color","",f.borderErrorSubtle),errorColor:i.extend("--ft-notice-error-color","",f.contentErrorPrimary),errorIconColor:i.extend("--ft-notice-error-icon-color","",f.contentErrorIconOnly),successBackgroundColor:i.extend("--ft-notice-success-background-color","",f.backgroundSuccessSubtle),successBorderColor:i.extend("--ft-notice-success-border-color","",f.borderSuccessSubtle),successColor:i.extend("--ft-notice-success-color","",f.contentSuccessPrimary),successIconColor:i.extend("--ft-notice-success-icon-color","",f.contentSuccessIconOnly)};var tf={color:i.extend("--ft-checkbox-color","",f.contentGlobalPrimary),checkedBackgroundColor:i.extend("--ft-checkbox-checked-background-color","",f.contentActionPrimary),checkedStateLayerColor:i.extend("--ft-checkbox-checked-state-layer-color","",f.contentActionPrimary),checkedIconColor:i.extend("--ft-checkbox-checked-icon-color","",f.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","",f.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 rf={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","",f.contentGlobalSubtle),offIconColor:i.extend("--ft-toggle-off-icon-color","",f.contentGlobalSubtle),offStateLayerColor:i.extend("--ft-toggle-off-state-layer-color","",f.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","",f.contentActionPrimary),onStateLayerColor:i.extend("--ft-toggle-on-state-layer-color","",f.contentActionPrimary),onIconColor:i.extend("--ft-toggle-on-icon-color","",f.contentActionPrimary),color:i.extend("--ft-toggle-color","",f.contentGlobalPrimary),focusFocusRingColor:i.extend("--ft-toggle-focus-focus-ring-color","",f.borderActionFocusRing),gap:i.extend("--ft-toggle-gap","",d.spacing3)};var of={color:i.extend("--ft-radio-color","",f.contentGlobalPrimary),selectedRadioColor:i.extend("--ft-radio-selected-radio-color","",f.contentActionPrimary),selectedStateLayerColor:i.extend("--ft-radio-selected-state-layer-color","",f.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","",f.borderInputPrimary),unselectedBorderColor:i.extend("--ft-radio-unselected-border-color","",f.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","",f.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 nf={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","",f.backgroundInfoSubtle),infoColor:i.extend("--ft-notification-info-color","",f.contentInfoPrimary),infoIconColor:i.extend("--ft-notification-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:i.extend("--ft-notification-info-border-color","",f.borderInfoSubtle),successBackgroundColor:i.extend("--ft-notification-success-background-color","",f.backgroundSuccessSubtle),successColor:i.extend("--ft-notification-success-color","",f.contentSuccessPrimary),successIconColor:i.extend("--ft-notification-success-icon-color","",f.contentSuccessIconOnly),successBorderColor:i.extend("--ft-notification-success-border-color","",f.borderSuccessSubtle),warningBackgroundColor:i.extend("--ft-notification-warning-background-color","",f.backgroundWarningSubtle),warningColor:i.extend("--ft-notification-warning-color","",f.contentWarningPrimary),warningIconColor:i.extend("--ft-notification-warning-icon-color","",f.contentWarningIconOnly),warningBorderColor:i.extend("--ft-notification-warning-border-color","",f.borderWarningSubtle),errorBackgroundColor:i.extend("--ft-notification-error-background-color","",f.backgroundErrorSubtle),errorColor:i.extend("--ft-notification-error-color","",f.contentErrorPrimary),errorIconColor:i.extend("--ft-notification-error-icon-color","",f.contentErrorIconOnly),errorBorderColor:i.extend("--ft-notification-error-border-color","",f.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 af={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","",f.contentGlobalOnColor),backgroundColor:i.extend("--ft-tooltip-background-color","",f.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 gt;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(gt||(gt={}));var ye;(function(t){t.large="large",t.medium="medium",t.small="small"})(ye||(ye={}));function Gn(t){return`ftds--family-${t}`}function Kn(t){return`ftds--size-${t}`}var L={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 Qn={};Q(Qn,{FtNotificationEvent:()=>Yn,PostResizeEvent:()=>Jn,PreResizeEvent:()=>Xn});var Yn=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},Xn=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},Jn=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};var pa={};Q(pa,{computeOffsetPosition:()=>da});var gl=["top","right","bottom","left"],yl=["start","end"],ta=gl.reduce((t,e)=>t.concat(e,e+"-"+yl[0],e+"-"+yl[1]),[]),uo=Math.min,$t=Math.max,ho=Math.round;var bt=t=>({x:t,y:t}),sf={left:"right",right:"left",bottom:"top",top:"bottom"},lf={start:"end",end:"start"};function ra(t,e,r){return $t(t,uo(e,r))}function ii(t,e){return typeof t=="function"?t(e):t}function Ar(t){return t.split("-")[0]}function Lt(t){return t.split("-")[1]}function oa(t){return t==="x"?"y":"x"}function ia(t){return t==="y"?"height":"width"}function ni(t){return["top","bottom"].includes(Ar(t))?"y":"x"}function na(t){return oa(ni(t))}function bl(t,e,r){r===void 0&&(r=!1);let o=Lt(t),n=na(t),a=ia(n),s=n==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=ea(s)),[s,ea(s)]}function xl(t){return t.replace(/start|end/g,e=>lf[e])}function ea(t){return t.replace(/left|right|bottom|top/g,e=>sf[e])}function cf(t){return{top:0,right:0,bottom:0,left:0,...t}}function vl(t){return typeof t!="number"?cf(t):{top:t,right:t,bottom:t,left:t}}function ar(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Sl(t,e,r){let{reference:o,floating:n}=t,a=ni(e),s=na(e),l=ia(s),c=Ar(e),p=a==="y",h=o.x+o.width/2-n.width/2,u=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:u};break;case"left":b={x:o.x-n.width,y:u};break;default:b={x:o.x,y:o.y}}switch(Lt(e)){case"start":b[s]-=g*(r&&p?-1:1);break;case"end":b[s]+=g*(r&&p?-1:1);break}return b}var Ol=async(t,e,r)=>{let{placement:o="bottom",strategy:n="absolute",middleware:a=[],platform:s}=r,l=a.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:h,y:u}=Sl(p,o,c),g=o,b={},x=0;for(let E=0;E<l.length;E++){let{name:w,fn:A}=l[E],{x:_,y:S,data:O,reset:C}=await A({x:h,y:u,initialPlacement:o,placement:g,strategy:n,middlewareData:b,rects:p,platform:s,elements:{reference:t,floating:e}});if(h=_??h,u=S??u,b={...b,[w]:{...b[w],...O}},C&&x<=50){x++,typeof C=="object"&&(C.placement&&(g=C.placement),C.rects&&(p=C.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):C.rects),{x:h,y:u}=Sl(p,g,c)),E=-1;continue}}return{x:h,y:u,placement:g,strategy:n,middlewareData:b}};async function aa(t,e){var r;e===void 0&&(e={});let{x:o,y:n,platform:a,rects:s,elements:l,strategy:c}=t,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:u="floating",altBoundary:g=!1,padding:b=0}=ii(e,t),x=vl(b),w=l[g?u==="floating"?"reference":"floating":u],A=ar(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(w)))==null||r?w:w.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:h,strategy:c})),_=u==="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},C=ar(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:_,offsetParent:S,strategy:c}):_);return{top:(A.top-C.top+x.top)/O.y,bottom:(C.bottom-A.bottom+x.bottom)/O.y,left:(A.left-C.left+x.left)/O.x,right:(C.right-A.right+x.right)/O.x}}function df(t,e,r){return(t?[...r.filter(n=>Lt(n)===t),...r.filter(n=>Lt(n)!==t)]:r.filter(n=>Ar(n)===n)).filter(n=>t?Lt(n)===t||(e?xl(n)!==n:!1):!0)}var sa=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,o,n;let{rects:a,middlewareData:s,placement:l,platform:c,elements:p}=e,{crossAxis:h=!1,alignment:u,allowedPlacements:g=ta,autoAlignment:b=!0,...x}=ii(t,e),E=u!==void 0||g===ta?df(u||null,b,g):g,w=await aa(e,x),A=((r=s.autoPlacement)==null?void 0:r.index)||0,_=E[A];if(_==null)return{};let S=bl(_,a,await(c.isRTL==null?void 0:c.isRTL(p.floating)));if(l!==_)return{reset:{placement:E[0]}};let O=[w[Ar(_)],w[S[0]],w[S[1]]],C=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:_,overflows:O}],U=E[A+1];if(U)return{data:{index:A+1,overflows:C},reset:{placement:U}};let Y=C.map(D=>{let m=Lt(D.placement);return[D.placement,m&&h?D.overflows.slice(0,2).reduce((v,k)=>v+k,0):D.overflows[0],D.overflows]}).sort((D,m)=>D[1]-m[1]),J=((n=Y.filter(D=>D[2].slice(0,Lt(D[0])?2:3).every(m=>m<=0))[0])==null?void 0:n[0])||Y[0][0];return J!==l?{data:{index:A+1,overflows:C},reset:{placement:J}}:{}}}};var la=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:o,placement:n}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:w=>{let{x:A,y:_}=w;return{x:A,y:_}}},...c}=ii(t,e),p={x:r,y:o},h=await aa(e,c),u=ni(Ar(n)),g=oa(u),b=p[g],x=p[u];if(a){let w=g==="y"?"top":"left",A=g==="y"?"bottom":"right",_=b+h[w],S=b-h[A];b=ra(_,b,S)}if(s){let w=u==="y"?"top":"left",A=u==="y"?"bottom":"right",_=x+h[w],S=x-h[A];x=ra(_,x,S)}let E=l.fn({...e,[g]:b,[u]:x});return{...E,data:{x:E.x-r,y:E.y-o}}}}};function xt(t){return El(t)?(t.nodeName||"").toLowerCase():"#document"}function $e(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function vt(t){var e;return(e=(El(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function El(t){return t instanceof Node||t instanceof $e(t).Node}function nt(t){return t instanceof Element||t instanceof $e(t).Element}function Ye(t){return t instanceof HTMLElement||t instanceof $e(t).HTMLElement}function Cl(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof $e(t).ShadowRoot}function Rr(t){let{overflow:e,overflowX:r,overflowY:o,display:n}=ze(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+r)&&!["inline","contents"].includes(n)}function wl(t){return["table","td","th"].includes(xt(t))}function si(t){let e=li(),r=ze(t);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(r.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(r.contain||"").includes(o))}function Al(t){let e=sr(t);for(;Ye(e)&&!mo(e);){if(si(e))return e;e=sr(e)}return null}function li(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function mo(t){return["html","body","#document"].includes(xt(t))}function ze(t){return $e(t).getComputedStyle(t)}function yo(t){return nt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function sr(t){if(xt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Cl(t)&&t.host||vt(t);return Cl(e)?e.host:e}function Rl(t){let e=sr(t);return mo(e)?t.ownerDocument?t.ownerDocument.body:t.body:Ye(e)&&Rr(e)?e:Rl(e)}function ai(t,e,r){var o;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=Rl(t),a=n===((o=t.ownerDocument)==null?void 0:o.body),s=$e(n);return a?e.concat(s,s.visualViewport||[],Rr(n)?n:[],s.frameElement&&r?ai(s.frameElement):[]):e.concat(n,ai(n,[],r))}function Tl(t){let e=ze(t),r=parseFloat(e.width)||0,o=parseFloat(e.height)||0,n=Ye(t),a=n?t.offsetWidth:r,s=n?t.offsetHeight:o,l=ho(r)!==a||ho(o)!==s;return l&&(r=a,o=s),{width:r,height:o,$:l}}function Pl(t){return nt(t)?t:t.contextElement}function Nr(t){let e=Pl(t);if(!Ye(e))return bt(1);let r=e.getBoundingClientRect(),{width:o,height:n,$:a}=Tl(e),s=(a?ho(r.width):r.width)/o,l=(a?ho(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var pf=bt(0);function $l(t){let e=$e(t);return!li()||!e.visualViewport?pf:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ff(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==$e(t)?!1:e}function go(t,e,r,o){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),a=Pl(t),s=bt(1);e&&(o?nt(o)&&(s=Nr(o)):s=Nr(t));let l=ff(a,r,o)?$l(a):bt(0),c=(n.left+l.x)/s.x,p=(n.top+l.y)/s.y,h=n.width/s.x,u=n.height/s.y;if(a){let g=$e(a),b=o&&nt(o)?$e(o):o,x=g.frameElement;for(;x&&o&&b!==g;){let E=Nr(x),w=x.getBoundingClientRect(),A=ze(x),_=w.left+(x.clientLeft+parseFloat(A.paddingLeft))*E.x,S=w.top+(x.clientTop+parseFloat(A.paddingTop))*E.y;c*=E.x,p*=E.y,h*=E.x,u*=E.y,c+=_,p+=S,x=$e(x).frameElement}}return ar({width:h,height:u,x:c,y:p})}function uf(t){let{rect:e,offsetParent:r,strategy:o}=t,n=Ye(r),a=vt(r);if(r===a)return e;let s={scrollLeft:0,scrollTop:0},l=bt(1),c=bt(0);if((n||!n&&o!=="fixed")&&((xt(r)!=="body"||Rr(a))&&(s=yo(r)),Ye(r))){let p=go(r);l=Nr(r),c.x=p.x+r.clientLeft,c.y=p.y+r.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 hf(t){return Array.from(t.getClientRects())}function Ll(t){return go(vt(t)).left+yo(t).scrollLeft}function mf(t){let e=vt(t),r=yo(t),o=t.ownerDocument.body,n=$t(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),a=$t(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight),s=-r.scrollLeft+Ll(t),l=-r.scrollTop;return ze(o).direction==="rtl"&&(s+=$t(e.clientWidth,o.clientWidth)-n),{width:n,height:a,x:s,y:l}}function yf(t,e){let r=$e(t),o=vt(t),n=r.visualViewport,a=o.clientWidth,s=o.clientHeight,l=0,c=0;if(n){a=n.width,s=n.height;let p=li();(!p||p&&e==="fixed")&&(l=n.offsetLeft,c=n.offsetTop)}return{width:a,height:s,x:l,y:c}}function gf(t,e){let r=go(t,!0,e==="fixed"),o=r.top+t.clientTop,n=r.left+t.clientLeft,a=Ye(t)?Nr(t):bt(1),s=t.clientWidth*a.x,l=t.clientHeight*a.y,c=n*a.x,p=o*a.y;return{width:s,height:l,x:c,y:p}}function Nl(t,e,r){let o;if(e==="viewport")o=yf(t,r);else if(e==="document")o=mf(vt(t));else if(nt(e))o=gf(e,r);else{let n=$l(t);o={...e,x:e.x-n.x,y:e.y-n.y}}return ar(o)}function Il(t,e){let r=sr(t);return r===e||!nt(r)||mo(r)?!1:ze(r).position==="fixed"||Il(r,e)}function bf(t,e){let r=e.get(t);if(r)return r;let o=ai(t,[],!1).filter(l=>nt(l)&&xt(l)!=="body"),n=null,a=ze(t).position==="fixed",s=a?sr(t):t;for(;nt(s)&&!mo(s);){let l=ze(s),c=si(s);!c&&l.position==="fixed"&&(n=null),(a?!c&&!n:!c&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Rr(s)&&!c&&Il(t,s))?o=o.filter(h=>h!==s):n=l,s=sr(s)}return e.set(t,o),o}function xf(t){let{element:e,boundary:r,rootBoundary:o,strategy:n}=t,s=[...r==="clippingAncestors"?bf(e,this._c):[].concat(r),o],l=s[0],c=s.reduce((p,h)=>{let u=Nl(e,h,n);return p.top=$t(u.top,p.top),p.right=uo(u.right,p.right),p.bottom=uo(u.bottom,p.bottom),p.left=$t(u.left,p.left),p},Nl(e,l,n));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function vf(t){return Tl(t)}function Sf(t,e,r){let o=Ye(e),n=vt(e),a=r==="fixed",s=go(t,!0,a,e),l={scrollLeft:0,scrollTop:0},c=bt(0);if(o||!o&&!a)if((xt(e)!=="body"||Rr(n))&&(l=yo(e)),o){let p=go(e,!0,a,e);c.x=p.x+e.clientLeft,c.y=p.y+e.clientTop}else n&&(c.x=Ll(n));return{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function _l(t,e){return!Ye(t)||ze(t).position==="fixed"?null:e?e(t):t.offsetParent}function kl(t,e){let r=$e(t);if(!Ye(t))return r;let o=_l(t,e);for(;o&&wl(o)&&ze(o).position==="static";)o=_l(o,e);return o&&(xt(o)==="html"||xt(o)==="body"&&ze(o).position==="static"&&!si(o))?r:o||Al(t)||r}var Of=async function(t){let{reference:e,floating:r,strategy:o}=t,n=this.getOffsetParent||kl,a=this.getDimensions;return{reference:Sf(e,await n(r),o),floating:{x:0,y:0,...await a(r)}}};function Cf(t){return ze(t).direction==="rtl"}var ci={convertOffsetParentRelativeRectToViewportRelativeRect:uf,getDocumentElement:vt,getClippingRect:xf,getOffsetParent:kl,getElementRects:Of,getClientRects:hf,getDimensions:vf,getScale:Nr,isElement:nt,isRTL:Cf};var Dl=(t,e,r)=>{let o=new Map,n={platform:ci,...r},a={...n.platform,_c:o};return Ol(t,e,{...n,platform:a})};function Ml(t){return Ef(t)}function ca(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Ef(t){for(let e=t;e;e=ca(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=ca(t);e;e=ca(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||e.tagName==="BODY"))return e}return null}async function da(t,e,r){return Dl(t,e,{platform:{...ci,getOffsetParent:o=>ci.getOffsetParent(o,Ml)},middleware:[la({crossAxis:!0}),sa({allowedPlacements:[r]})]})}var ha={};Q(ha,{FtdsBase:()=>xo,toFtdsBase:()=>fi});var ua={};Q(ua,{FtLitElement:()=>F});var fa={};Q(fa,{ScopedRegistryLitElement:()=>bo});var di=window,wf=di.ShadowRoot&&(di.ShadyCSS===void 0||di.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,cb=Symbol();var Fl=(t,e)=>{wf?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{let o=document.createElement("style"),n=di.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=r.cssText,t.appendChild(o)})};var bo=class extends ht{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 r={...e.shadowRootOptions,customElements:e.registry},o=this.renderOptions.creationScope=this.attachShadow(r);return Fl(o,e.elementStyles),o}};var pi=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Hl,Ul=Symbol("constructorPrototype"),Bl=Symbol("constructorName"),Wl=Symbol("exportpartsDebouncer"),zl=Symbol("dynamicDependenciesLoaded"),F=class extends bo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Hl]=new ae(5),this[Bl]=this.constructor.name,this[Ul]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Bl]&&Object.setPrototypeOf(this,this[Ul])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let e=this.constructor;e[zl]||(e[zl]=!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 r,o,n;if(((o=(r=this.shadowRoot)===null||r===void 0?void 0:r.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,r,o;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(o=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&o!==void 0&&o)&&this[Wl].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 r,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=(r=this.shadowRoot)===null||r===void 0?void 0:r.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:[],x=(l=(s=g.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(E=>E.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...b,...x).filter(c).map(E=>E.trim()).forEach(E=>h.add(E))}if(h.size===0){this.removeAttribute("exportparts");return}let u=[...h.values()].flatMap(g=>p.map(b=>`${g}:${b}--${g}`));this.setAttribute("exportparts",[...this.part,...u].join(", "))}};Hl=Wl;pi([y()],F.prototype,"exportpartsPrefix",void 0);pi([Se([])],F.prototype,"exportpartsPrefixes",void 0);pi([y()],F.prototype,"customStylesheet",void 0);pi([G()],F.prototype,"useAdoptedStyleSheets",void 0);var Vl=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a};function fi(t){class e extends t{constructor(){super(...arguments),this.size=ye.medium,this.family=gt.neutral}getDesignSystemBaseClasses(){return{[Gn(this.family)]:!0,[Kn(this.size)]:!0}}}return Vl([y()],e.prototype,"size",void 0),Vl([y()],e.prototype,"family",void 0),e}var xo=class extends fi(F){};var jl={};var ga={};Q(ga,{highlightHtml:()=>ya,highlightHtmlColorCssVariable:()=>Gl,highlightHtmlStyles:()=>Rf});var lr=class t{constructor(e,r=!0,o=[],n=5e3){this.ctx=e,this.iframes=r,this.exclude=o,this.iframesTimeout=n}static matches(e,r){let o=typeof r=="string"?[r]:r,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,r=[];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=r.filter(a=>a.contains(o)).length>0;r.indexOf(o)===-1&&!n&&r.push(o)}),r}getIframeContents(e,r,o=()=>{}){let n;try{let a=e.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{o()}n&&r(n)}isIframeBlank(e){let r="about:blank",o=e.getAttribute("src").trim();return e.contentWindow.location.href===r&&o!==r&&o}observeIframeLoad(e,r,o){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,r,o))}catch{o()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,r,o){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,r,o):this.getIframeContents(e,r,o):this.observeIframeLoad(e,r,o)}catch{o()}}waitForIframes(e,r){let o=0;this.forEachIframe(e,()=>!0,n=>{o++,this.waitForIframes(n.querySelector("html"),()=>{--o||r()})},n=>{n||r()})}forEachIframe(e,r,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=>{t.matches(p,this.exclude)?c():this.onIframeReady(p,h=>{r(p)&&(l++,o(h)),c()},c)})}createIterator(e,r,o){return document.createNodeIterator(e,r,o,!1)}createInstanceOnIframe(e){return new t(e.querySelector("html"),this.iframes)}compareNodeIframe(e,r,o){let n=e.compareDocumentPosition(o),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(r!==null){let s=r.compareDocumentPosition(o),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(e){let r=e.previousNode(),o;return r===null?o=e.nextNode():o=e.nextNode()&&e.nextNode(),{prevNode:r,node:o}}checkIframeFilter(e,r,o,n){let a=!1,s=!1;return n.forEach((l,c)=>{l.val===o&&(a=c,s=l.handled)}),this.compareNodeIframe(e,r,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,r,o,n){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(r,o,n)})})}iterateThroughNodes(e,r,o,n,a){let s=this.createIterator(r,e,n),l=[],c=[],p,h,u=()=>({prevNode:h,node:p}=this.getIteratorNode(s),p);for(;u();)this.iframes&&this.forEachIframe(r,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,r,o,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let c=()=>{this.iterateThroughNodes(e,l,r,o,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,c):c()})}};var vo=class{constructor(e){this.ctx=e,this.ie=!1;let r=window.navigator.userAgent;(r.indexOf("MSIE")>-1||r.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 lr(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,r="debug"){let o=this.opt.log;this.opt.debug&&typeof o=="object"&&typeof o[r]=="function"&&o[r](`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 r=this.opt.synonyms,o=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in r)if(r.hasOwnProperty(a)){let s=r[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),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,r=>r.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,r=>r.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let r=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,r?"[\\S\\s]?":"\\S?").replace(/\u0002/g,r?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(r,o,n)=>{let a=n.charAt(o+1);return/[(|)\\]/.test(a)||a===""?r:r+"\0"})}createJoinersRegExp(e){let r=[],o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&r.push(this.escapeStr(o.join(""))),this.opt.ignoreJoiners&&r.push("\\u00ad\\u200b\\u200c\\u200d"),r.length?e.split(/\u0000+/).join(`[${r.join("")}]*`):e}createDiacriticsRegExp(e){let r=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${r}`),`[${s}]`),n.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let r="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\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(r)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let r=[];return e.forEach(o=>{this.opt.separateWordSearch?o.split(" ").forEach(n=>{n.trim()&&r.indexOf(n)===-1&&r.push(n)}):o.trim()&&r.indexOf(o)===-1&&r.push(o)}),{keywords:r.sort((o,n)=>n.length-o.length),length:r.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 r=[],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,r.push(n),o=s)}),r}callNoMatchOnInvalidRanges(e,r){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-r>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,r,o){let n,a=!0,s=o.length,l=r-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 r="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{o.push({start:r.length,end:(r+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:r,nodes:o})})}matchesExclude(e){return lr.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,r,o){let n=this.opt.element?this.opt.element:"mark",a=e.splitText(r),s=a.splitText(o-r),l=document.createElement(n);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=a.textContent,a.parentNode.replaceChild(l,a),s}wrapRangeInMappedTextNode(e,r,o,n,a){e.nodes.every((s,l)=>{let c=e.nodes[l+1];if(typeof c>"u"||c.start>r){if(!n(s.node))return!1;let p=r-s.start,h=(o>s.end?s.end:o)-s.start,u=e.value.substr(0,s.start),g=e.value.substr(h+s.start);if(s.node=this.wrapRangeInTextNode(s.node,p,h),e.value=u+g,e.nodes.forEach((b,x)=>{x>=l&&(e.nodes[x].start>0&&x!==l&&(e.nodes[x].start-=h),e.nodes[x].end-=h)}),o-=h,a(s.node.previousSibling,s.start),o>s.end)r=s.end;else return!1}return!0})}wrapMatches(e,r,o,n,a){let s=r===0?0:r+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 u=1;u<s;u++)h+=p[u].length;c=this.wrapRangeInTextNode(c,h,h+p[s].length),n(c.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,r,o,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{let c;for(;(c=e.exec(l.value))!==null&&c[s]!=="";){let p=c.index;if(s!==0)for(let u=1;u<s;u++)p+=c[u].length;let h=p+c[s].length;this.wrapRangeInMappedTextNode(l,p,h,u=>o(c[s],u),(u,g)=>{e.lastIndex=g,n(u)})}a()})}wrapRangeFromIndex(e,r,o,n){this.getTextNodes(a=>{let s=a.value.length;e.forEach((l,c)=>{let{start:p,end:h,valid:u}=this.checkWhitespaceRanges(l,s,a.value);u&&this.wrapRangeInMappedTextNode(a,p,h,g=>r(g,l,a.value.substring(p,h),c),g=>{o(g,l)})}),n()})}unwrapMatches(e){let r=e.parentNode,o=document.createDocumentFragment();for(;e.firstChild;)o.appendChild(e.removeChild(e.firstChild));r.replaceChild(o,e),this.ie?this.normalizeTextNode(r):r.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,r){this.opt=r,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,r){this.opt=r;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}`),u=0;this.log(`Searching with expression "${h}"`),this[n](h,1,(g,b)=>this.opt.filter(b,p,o,u),g=>{u++,o++,this.opt.each(g)},()=>{u===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,r){this.opt=r;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 r=this.opt.element?this.opt.element:"*";r+="[data-markjs]",this.opt.className&&(r+=`.${this.opt.className}`),this.log(`Removal selector "${r}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,o=>{this.unwrapMatches(o)},o=>{let n=lr.matches(o,r),a=this.matchesExclude(o);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function ma(t){let e=new vo(t);return this.mark=(r,o)=>(e.mark(r,o),this),this.markRegExp=(r,o)=>(e.markRegExp(r,o),this),this.markRanges=(r,o)=>(e.markRanges(r,o),this),this.unmark=r=>(e.unmark(r),this),this}var Af=ma,Gl=i.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),Rf=T`
|
|
1
|
+
"use strict";(()=>{var Zd=Object.create;var ji=Object.defineProperty;var qd=Object.getOwnPropertyDescriptor;var Yd=Object.getOwnPropertyNames;var Xd=Object.getPrototypeOf,Jd=Object.prototype.hasOwnProperty;var Qd=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Q=(t,e)=>{for(var r in e)ji(t,r,{get:e[r],enumerable:!0})},ep=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Yd(e))!Jd.call(t,n)&&n!==r&&ji(t,n,{get:()=>e[n],enumerable:!(o=qd(e,n))||o.enumerable});return t};var tp=(t,e,r)=>(r=t!=null?Zd(Xd(t)):{},ep(e||!t||!t.__esModule?ji(r,"default",{value:t,enumerable:!0}):r,t));var _c=Qd((zt,Nc)=>{var Ci=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Ei=function(){function t(){this.fetch=!1,this.DOMException=Ci.DOMException}return t.prototype=Ci,new t}();(function(t){var e=function(r){var o=typeof t<"u"&&t||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 v={next:function(){var k=m.shift();return{done:k===void 0,value:k}}};return n.iterable&&(v[Symbol.iterator]=function(){return v}),v}function u(m){this.map={},m instanceof u?m.forEach(function(v,k){this.append(k,v)},this):Array.isArray(m)?m.forEach(function(v){if(v.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+v.length);this.append(v[0],v[1])},this):m&&Object.getOwnPropertyNames(m).forEach(function(v){this.append(v,m[v])},this)}u.prototype.append=function(m,v){m=c(m),v=p(v);var k=this.map[m];this.map[m]=k?k+", "+v:v},u.prototype.delete=function(m){delete this.map[c(m)]},u.prototype.get=function(m){return m=c(m),this.has(m)?this.map[m]:null},u.prototype.has=function(m){return this.map.hasOwnProperty(c(m))},u.prototype.set=function(m,v){this.map[c(m)]=p(v)},u.prototype.forEach=function(m,v){for(var k in this.map)this.map.hasOwnProperty(k)&&m.call(v,this.map[k],k,this)},u.prototype.keys=function(){var m=[];return this.forEach(function(v,k){m.push(k)}),h(m)},u.prototype.values=function(){var m=[];return this.forEach(function(v){m.push(v)}),h(m)},u.prototype.entries=function(){var m=[];return this.forEach(function(v,k){m.push([k,v])}),h(m)},n.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);function y(m){if(!m._noBody){if(m.bodyUsed)return Promise.reject(new TypeError("Already read"));m.bodyUsed=!0}}function b(m){return new Promise(function(v,k){m.onload=function(){v(m.result)},m.onerror=function(){k(m.error)}})}function x(m){var v=new FileReader,k=b(v);return v.readAsArrayBuffer(m),k}function C(m){var v=new FileReader,k=b(v),Z=/charset=([A-Za-z0-9_-]+)/.exec(m.type),te=Z?Z[1]:"utf-8";return v.readAsText(m,te),k}function P(m){for(var v=new Uint8Array(m),k=new Array(v.length),Z=0;Z<v.length;Z++)k[Z]=String.fromCharCode(v[Z]);return k.join("")}function w(m){if(m.slice)return m.slice(0);var v=new Uint8Array(m.byteLength);return v.set(new Uint8Array(m)),v.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=w(m.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(m)||l(m))?this._bodyArrayBuffer=w(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=y(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=y(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(x);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var m=y(this);if(m)return m;if(this._bodyBlob)return C(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(P(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(F)}),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 v=m.toUpperCase();return S.indexOf(v)>-1?v:m}function E(m,v){if(!(this instanceof E))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');v=v||{};var k=v.body;if(m instanceof E){if(m.bodyUsed)throw new TypeError("Already read");this.url=m.url,this.credentials=m.credentials,v.headers||(this.headers=new u(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=v.credentials||this.credentials||"same-origin",(v.headers||!this.headers)&&(this.headers=new u(v.headers)),this.method=O(v.method||this.method||"GET"),this.mode=v.mode||this.mode||null,this.signal=v.signal||this.signal||function(){if("AbortController"in o){var V=new AbortController;return V.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")&&(v.cache==="no-store"||v.cache==="no-cache")){var Z=/([?&])_=[^&]*/;if(Z.test(this.url))this.url=this.url.replace(Z,"$1_="+new Date().getTime());else{var te=/\?/;this.url+=(te.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}E.prototype.clone=function(){return new E(this,{body:this._bodyInit})};function F(m){var v=new FormData;return m.trim().split("&").forEach(function(k){if(k){var Z=k.split("="),te=Z.shift().replace(/\+/g," "),V=Z.join("=").replace(/\+/g," ");v.append(decodeURIComponent(te),decodeURIComponent(V))}}),v}function Y(m){var v=new u,k=m.replace(/\r?\n[\t ]+/g," ");return k.split("\r").map(function(Z){return Z.indexOf(`
|
|
2
|
+
`)===0?Z.substr(1,Z.length):Z}).forEach(function(Z){var te=Z.split(":"),V=te.shift().trim();if(V){var Io=te.join(":").trim();try{v.append(V,Io)}catch(Vi){console.warn("Response "+Vi.message)}}}),v}N.call(E.prototype);function ee(m,v){if(!(this instanceof ee))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(v||(v={}),this.type="default",this.status=v.status===void 0?200:v.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=v.statusText===void 0?"":""+v.statusText,this.headers=new u(v.headers),this.url=v.url||"",this._initBody(m)}N.call(ee.prototype),ee.prototype.clone=function(){return new ee(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},ee.error=function(){var m=new ee(null,{status:200,statusText:""});return m.ok=!1,m.status=0,m.type="error",m};var J=[301,302,303,307,308];ee.redirect=function(m,v){if(J.indexOf(v)===-1)throw new RangeError("Invalid status code");return new ee(null,{status:v,headers:{location:m}})},r.DOMException=o.DOMException;try{new r.DOMException}catch{r.DOMException=function(v,k){this.message=v,this.name=k;var Z=Error(v);this.stack=Z.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function D(m,v){return new Promise(function(k,Z){var te=new E(m,v);if(te.signal&&te.signal.aborted)return Z(new r.DOMException("Aborted","AbortError"));var V=new XMLHttpRequest;function Io(){V.abort()}V.onload=function(){var Se={statusText:V.statusText,headers:Y(V.getAllResponseHeaders()||"")};te.url.indexOf("file://")===0&&(V.status<200||V.status>599)?Se.status=200:Se.status=V.status,Se.url="responseURL"in V?V.responseURL:Se.headers.get("X-Request-URL");var Zt="response"in V?V.response:V.responseText;setTimeout(function(){k(new ee(Zt,Se))},0)},V.onerror=function(){setTimeout(function(){Z(new TypeError("Network request failed"))},0)},V.ontimeout=function(){setTimeout(function(){Z(new TypeError("Network request timed out"))},0)},V.onabort=function(){setTimeout(function(){Z(new r.DOMException("Aborted","AbortError"))},0)};function Vi(Se){try{return Se===""&&o.location.href?o.location.href:Se}catch{return Se}}if(V.open(te.method,Vi(te.url),!0),te.credentials==="include"?V.withCredentials=!0:te.credentials==="omit"&&(V.withCredentials=!1),"responseType"in V&&(n.blob?V.responseType="blob":n.arrayBuffer&&(V.responseType="arraybuffer")),v&&typeof v.headers=="object"&&!(v.headers instanceof u||o.Headers&&v.headers instanceof o.Headers)){var As=[];Object.getOwnPropertyNames(v.headers).forEach(function(Se){As.push(c(Se)),V.setRequestHeader(Se,p(v.headers[Se]))}),te.headers.forEach(function(Se,Zt){As.indexOf(Zt)===-1&&V.setRequestHeader(Zt,Se)})}else te.headers.forEach(function(Se,Zt){V.setRequestHeader(Zt,Se)});te.signal&&(te.signal.addEventListener("abort",Io),V.onreadystatechange=function(){V.readyState===4&&te.signal.removeEventListener("abort",Io)}),V.send(typeof te._bodyInit>"u"?null:te._bodyInit)})}return D.polyfill=!0,o.fetch||(o.fetch=D,o.Headers=u,o.Request=E,o.Response=ee),r.Headers=u,r.Request=E,r.Response=ee,r.fetch=D,r}({})})(Ei);Ei.fetch.ponyfill=!0;delete Ei.fetch.polyfill;var Dr=Ci.fetch?Ci:Ei;zt=Dr.fetch;zt.default=Dr.fetch;zt.fetch=Dr.fetch;zt.Headers=Dr.Headers;zt.Request=Dr.Request;zt.Response=Dr.Response;Nc.exports=zt});if(!ShadowRoot.prototype.createElement){let t=window.HTMLElement,e=window.customElements.define,r=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,F=new Set(O.observedAttributes||[]);y(O,F,E);let Y={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:F};this._definitionsByTag.set(S,Y),this._definitionsByClass.set(O,Y);let ee=r.call(o,S);ee||(ee=u(S),e.call(o,S,ee)),this===window.customElements&&(s.set(O,Y),Y.standInClass=ee);let J=this._awaitingUpgrade.get(S);if(J){this._awaitingUpgrade.delete(S);for(let m of J)a.delete(m),x(m,Y,!0)}let D=this._whenDefinedPromises.get(S);return D!==void 0&&(D.resolve(O),this._whenDefinedPromises.delete(S)),O}upgrade(){P.push(this),o.upgrade.apply(o,arguments),P.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(F=>E.resolve=F),this._whenDefinedPromises.set(S,E)),E.promise}_upgradeWhenDefined(S,O,E){let F=this._awaitingUpgrade.get(O);F||this._awaitingUpgrade.set(O,F=new Set),E?F.add(S):F.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(t,[],E.standInClass),Object.setPrototypeOf(O,this.constructor.prototype),n.set(O,E),O},window.HTMLElement.prototype=t.prototype;let p=S=>S===document||S instanceof ShadowRoot,h=S=>{let O=S.getRootNode();if(!p(O)){let E=P[P.length-1];if(E instanceof CustomElementRegistry)return E;O=E.getRootNode(),p(O)||(O=l.get(O)?.getRootNode()||document)}return O.customElements},u=S=>class{static get formAssociated(){return!0}constructor(){let E=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(E,HTMLElement.prototype);let F=h(E)||window.customElements,Y=F._getDefinition(S);return Y?x(E,Y):a.set(E,F),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)}},y=(S,O,E)=>{if(O.size===0||E===void 0)return;let F=S.prototype.setAttribute;F&&(S.prototype.setAttribute=function(J,D){let m=J.toLowerCase();if(O.has(m)){let v=this.getAttribute(m);F.call(this,m,D),E.call(this,m,v,D)}else F.call(this,m,D)});let Y=S.prototype.removeAttribute;Y&&(S.prototype.removeAttribute=function(J){let D=J.toLowerCase();if(O.has(D)){let m=this.getAttribute(D);Y.call(this,D),E.call(this,D,m,null)}else Y.call(this,D)});let ee=S.prototype.toggleAttribute;ee&&(S.prototype.toggleAttribute=function(J,D){let m=J.toLowerCase();if(O.has(m)){let v=this.getAttribute(m);ee.call(this,m,D);let k=this.getAttribute(m);E.call(this,m,v,k)}else ee.call(this,m,D)})},b=S=>{let O=Object.getPrototypeOf(S);if(O!==window.HTMLElement)return O===t?Object.setPrototypeOf(S,window.HTMLElement):b(O)},x=(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(F=>{S.hasAttribute(F)&&O.attributeChangedCallback.call(S,F,null,S.getAttribute(F))}),E&&O.connectedCallback&&S.isConnected&&O.connectedCallback.call(S)},C=Element.prototype.attachShadow;Element.prototype.attachShadow=function(S){let O=C.apply(this,arguments);return S.customElements&&(O.customElements=S.customElements),O};let P=[document],w=(S,O,E=void 0)=>{let F=(E?Object.getPrototypeOf(E):S.prototype)[O];S.prototype[O]=function(){P.push(this);let Y=F.apply(E||this,arguments);return Y!==void 0&&l.set(Y,this),P.pop(),Y}};w(ShadowRoot,"createElement",document),w(ShadowRoot,"importNode",document),w(Element,"insertAdjacentHTML");let N=(S,O)=>{let E=Object.getOwnPropertyDescriptor(S.prototype,O);Object.defineProperty(S.prototype,O,{...E,set(F){P.push(this),E.set.call(this,F),P.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(...J){let D=O.call(this,...J);return S.set(D,this),D},E.forEach(J=>{let D=window.ElementInternals.prototype,m=D[J];D[J]=function(...v){let k=S.get(this);if(n.get(k).formAssociated===!0)return m?.call(this,...v);throw new DOMException(`Failed to execute ${m} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class F extends Array{constructor(D){super(...D),this._elements=D}get value(){return this._elements.find(D=>D.checked===!0)?.value||""}}class Y{constructor(D){let m=new Map;D.forEach((v,k)=>{let Z=v.getAttribute("name"),te=m.get(Z)||[];this[+k]=v,te.push(v),m.set(Z,te)}),this.length=D.length,m.forEach((v,k)=>{v&&(v.length===1?this[k]=v[0]:this[k]=new F(v))})}namedItem(D){return this[D]}}let ee=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let J=ee.get.call(this,[]),D=[];for(let m of J){let v=n.get(m);(!v||v.formAssociated===!0)&&D.push(m)}return new Y(D)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(r,o,n)=>{if(o!==null)try{e.bind(window.customElements)(r,o,n)}catch(a){console.info(r,o,n,a)}}}var nn={};Q(nn,{CSSResult:()=>Sr,LitElement:()=>mt,ReactiveElement:()=>ot,_$LE:()=>wp,_$LH:()=>Op,adoptStyles:()=>qo,css:()=>_,defaultConverter:()=>Yo,getCompatibleStyle:()=>ao,html:()=>T,isServer:()=>nh,noChange:()=>Nt,notEqual:()=>Ji,nothing:()=>B,render:()=>on,supportsAdoptingStyleSheets:()=>no,svg:()=>Sp,unsafeCSS:()=>ut});var ko=globalThis,Fo=ko.ShadowRoot&&(ko.ShadyCSS===void 0||ko.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ns=Symbol(),Rs=new WeakMap,Do=class{constructor(e,r,o){if(this._$cssResult$=!0,o!==Ns)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(Fo&&e===void 0){let o=r!==void 0&&r.length===1;o&&(e=Rs.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&Rs.set(r,e))}return e}toString(){return this.cssText}},_s=t=>new Do(typeof t=="string"?t:t+"",void 0,Ns);var Gi=(t,e)=>{if(Fo)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let o=document.createElement("style"),n=ko.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=r.cssText,t.appendChild(o)}},Mo=Fo?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let o of e.cssRules)r+=o.cssText;return _s(r)})(t):t;var{is:rp,defineProperty:op,getOwnPropertyDescriptor:ip,getOwnPropertyNames:np,getOwnPropertySymbols:ap,getPrototypeOf:sp}=Object,Uo=globalThis,Ts=Uo.trustedTypes,lp=Ts?Ts.emptyScript:"",cp=Uo.reactiveElementPolyfillSupport,Qr=(t,e)=>t,eo={toAttribute(t,e){switch(e){case Boolean:t=t?lp:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},Bo=(t,e)=>!rp(t,e),Ps={attribute:!0,type:String,converter:eo,reflect:!1,hasChanged:Bo};Symbol.metadata??=Symbol("metadata"),Uo.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,r=Ps){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(e,r),!r.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(e,o,r);n!==void 0&&op(this.prototype,e,n)}}static getPropertyDescriptor(e,r,o){let{get:n,set:a}=ip(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(e,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Ps}static _$Ei(){if(this.hasOwnProperty(Qr("elementProperties")))return;let e=sp(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 r=this.properties,o=[...np(r),...ap(r)];for(let n of o)this.createProperty(n,r[n])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[o,n]of r)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[r,o]of this.elementProperties){let n=this._$Eu(r,o);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let n of o)r.unshift(Mo(n))}else e!==void 0&&r.push(Mo(e));return r}static _$Eu(e,r){let o=r.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,r=this.constructor.elementProperties;for(let o of r.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 Gi(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,r,o){this._$AK(e,o)}_$EO(e,r){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(r,o.type);this._$Em=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(e,r){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(r,a.type),this._$Em=null}}requestUpdate(e,r,o,n=!1,a){if(e!==void 0){if(o??=this.constructor.getPropertyOptions(e),!(o.hasChanged??Bo)(n?a:this[e],r))return;this.C(e,r,o)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,r,o){this._$AL.has(e)||this._$AL.set(e,r),o.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(r){Promise.reject(r)}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,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$E_?.forEach(o=>o.hostUpdate?.()),this.update(r)):this._$ET()}catch(o){throw e=!1,this._$ET(),o}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$E_?.forEach(r=>r.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(r=>this._$EO(r,this[r])),this._$ET()}updated(e){}firstUpdated(e){}};qt.elementStyles=[],qt.shadowRootOptions={mode:"open"},qt[Qr("elementProperties")]=new Map,qt[Qr("finalized")]=new Map,cp?.({ReactiveElement:qt}),(Uo.reactiveElementVersions??=[]).push("2.0.2");var Zi=globalThis,zo=Zi.trustedTypes,Ls=zo?zo.createPolicy("lit-html",{createHTML:t=>t}):void 0,qi="$lit$",ft=`lit$${(Math.random()+"").slice(9)}$`,Yi="?"+ft,dp=`<${Yi}>`,Jt=document,Ho=()=>Jt.createComment(""),ro=t=>t===null||typeof t!="object"&&typeof t!="function",Ms=Array.isArray,Us=t=>Ms(t)||typeof t?.[Symbol.iterator]=="function",Ki=`[
|
|
3
|
+
\f\r]`,to=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,$s=/-->/g,Is=/>/g,Yt=RegExp(`>|${Ki}(?:([^\\s"'>=/]+)(${Ki}*=${Ki}*(?:[^
|
|
4
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),ks=/'/g,Ds=/"/g,Bs=/^(?:script|style|textarea|title)$/i,zs=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Hs=zs(1),Ws=zs(2),Be=Symbol.for("lit-noChange"),le=Symbol.for("lit-nothing"),Fs=new WeakMap,Xt=Jt.createTreeWalker(Jt,129);function Vs(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ls!==void 0?Ls.createHTML(e):e}var js=(t,e)=>{let r=t.length-1,o=[],n,a=e===2?"<svg>":"",s=to;for(let l=0;l<r;l++){let c=t[l],p,h,u=-1,y=0;for(;y<c.length&&(s.lastIndex=y,h=s.exec(c),h!==null);)y=s.lastIndex,s===to?h[1]==="!--"?s=$s:h[1]!==void 0?s=Is:h[2]!==void 0?(Bs.test(h[2])&&(n=RegExp("</"+h[2],"g")),s=Yt):h[3]!==void 0&&(s=Yt):s===Yt?h[0]===">"?(s=n??to,u=-1):h[1]===void 0?u=-2:(u=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?Yt:h[3]==='"'?Ds:ks):s===Ds||s===ks?s=Yt:s===$s||s===Is?s=to:(s=Yt,n=void 0);let b=s===Yt&&t[l+1].startsWith("/>")?" ":"";a+=s===to?c+dp:u>=0?(o.push(p),c.slice(0,u)+qi+c.slice(u)+ft+b):c+ft+(u===-2?l:b)}return[Vs(t,a+(t[r]||"<?>")+(e===2?"</svg>":"")),o]},oo=class t{constructor({strings:e,_$litType$:r},o){let n;this.parts=[];let a=0,s=0,l=e.length-1,c=this.parts,[p,h]=js(e,r);if(this.el=t.createElement(p,o),Xt.currentNode=this.el.content,r===2){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(n=Xt.nextNode())!==null&&c.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let u of n.getAttributeNames())if(u.endsWith(qi)){let y=h[s++],b=n.getAttribute(u).split(ft),x=/([.?@])?(.*)/.exec(y);c.push({type:1,index:a,name:x[2],strings:b,ctor:x[1]==="."?Vo:x[1]==="?"?jo:x[1]==="@"?Go:er}),n.removeAttribute(u)}else u.startsWith(ft)&&(c.push({type:6,index:a}),n.removeAttribute(u));if(Bs.test(n.tagName)){let u=n.textContent.split(ft),y=u.length-1;if(y>0){n.textContent=zo?zo.emptyScript:"";for(let b=0;b<y;b++)n.append(u[b],Ho()),Xt.nextNode(),c.push({type:2,index:++a});n.append(u[y],Ho())}}}else if(n.nodeType===8)if(n.data===Yi)c.push({type:2,index:a});else{let u=-1;for(;(u=n.data.indexOf(ft,u+1))!==-1;)c.push({type:7,index:a}),u+=ft.length-1}a++}}static createElement(e,r){let o=Jt.createElement("template");return o.innerHTML=e,o}};function Qt(t,e,r=t,o){if(e===Be)return e;let n=o!==void 0?r._$Co?.[o]:r._$Cl,a=ro(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(t),n._$AT(t,r,o)),o!==void 0?(r._$Co??=[])[o]=n:r._$Cl=n),n!==void 0&&(e=Qt(t,n._$AS(t,e.values),n,o)),e}var Wo=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:o}=this._$AD,n=(e?.creationScope??Jt).importNode(r,!0);Xt.currentNode=n;let a=Xt.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 Ko(a,this,e)),this._$AV.push(p),c=o[++l]}s!==c?.index&&(a=Xt.nextNode(),s++)}return Xt.currentNode=Jt,n}p(e){let r=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,r),r+=o.strings.length-2):o._$AI(e[r])),r++}},io=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,o,n){this.type=2,this._$AH=le,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Qt(this,e,r),ro(e)?e===le||e==null||e===""?(this._$AH!==le&&this._$AR(),this._$AH=le):e!==this._$AH&&e!==Be&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Us(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!==le&&ro(this._$AH)?this._$AA.nextSibling.data=e:this.$(Jt.createTextNode(e)),this._$AH=e}g(e){let{values:r,_$litType$:o}=e,n=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=oo.createElement(Vs(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new Wo(n,this),s=a.u(this.options);a.p(r),this.$(s),this._$AH=a}}_$AC(e){let r=Fs.get(e.strings);return r===void 0&&Fs.set(e.strings,r=new oo(e)),r}T(e){Ms(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,o,n=0;for(let a of e)n===r.length?r.push(o=new t(this.k(Ho()),this.k(Ho()),this,this.options)):o=r[n],o._$AI(a),n++;n<r.length&&(this._$AR(o&&o._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let o=e.nextSibling;e.remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},er=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,o,n,a){this.type=1,this._$AH=le,this._$AN=void 0,this.element=e,this.name=r,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=le}_$AI(e,r=this,o,n){let a=this.strings,s=!1;if(a===void 0)e=Qt(this,e,r,0),s=!ro(e)||e!==this._$AH&&e!==Be,s&&(this._$AH=e);else{let l=e,c,p;for(e=a[0],c=0;c<a.length-1;c++)p=Qt(this,l[o+c],r,c),p===Be&&(p=this._$AH[c]),s||=!ro(p)||p!==this._$AH[c],p===le?e=le:e!==le&&(e+=(p??"")+a[c+1]),this._$AH[c]=p}s&&!n&&this.O(e)}O(e){e===le?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Vo=class extends er{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===le?void 0:e}},jo=class extends er{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==le)}},Go=class extends er{constructor(e,r,o,n,a){super(e,r,o,n,a),this.type=5}_$AI(e,r=this){if((e=Qt(this,e,r,0)??le)===Be)return;let o=this._$AH,n=e===le&&o!==le||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==le&&(o===le||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)}},Ko=class{constructor(e,r,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){Qt(this,e)}},Gs={j:qi,P:ft,A:Yi,C:1,M:js,L:Wo,R:Us,V:Qt,D:io,I:er,H:jo,N:Go,U:Vo,B:Ko},pp=Zi.litHtmlPolyfillSupport;pp?.(oo,io),(Zi.litHtmlVersions??=[]).push("3.1.0");var Zo=globalThis,no=Zo.ShadowRoot&&(Zo.ShadyCSS===void 0||Zo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Xi=Symbol(),Ks=new WeakMap,Sr=class{constructor(e,r,o){if(this._$cssResult$=!0,o!==Xi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(no&&e===void 0){let o=r!==void 0&&r.length===1;o&&(e=Ks.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&Ks.set(r,e))}return e}toString(){return this.cssText}},ut=t=>new Sr(typeof t=="string"?t:t+"",void 0,Xi),_=(t,...e)=>{let r=t.length===1?t[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)+t[a+1],t[0]);return new Sr(r,t,Xi)},qo=(t,e)=>{if(no)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let o=document.createElement("style"),n=Zo.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=r.cssText,t.appendChild(o)}},ao=no?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let o of e.cssRules)r+=o.cssText;return ut(r)})(t):t;var{is:fp,defineProperty:up,getOwnPropertyDescriptor:hp,getOwnPropertyNames:mp,getOwnPropertySymbols:yp,getPrototypeOf:gp}=Object,Xo=globalThis,Zs=Xo.trustedTypes,bp=Zs?Zs.emptyScript:"",xp=Xo.reactiveElementPolyfillSupport,so=(t,e)=>t,Yo={toAttribute(t,e){switch(e){case Boolean:t=t?bp:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},Ji=(t,e)=>!fp(t,e),qs={attribute:!0,type:String,converter:Yo,reflect:!1,hasChanged:Ji};Symbol.metadata??=Symbol("metadata"),Xo.litPropertyMetadata??=new WeakMap;var ot=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,r=qs){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(e,r),!r.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(e,o,r);n!==void 0&&up(this.prototype,e,n)}}static getPropertyDescriptor(e,r,o){let{get:n,set:a}=hp(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(e,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??qs}static _$Ei(){if(this.hasOwnProperty(so("elementProperties")))return;let e=gp(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 r=this.properties,o=[...mp(r),...yp(r)];for(let n of o)this.createProperty(n,r[n])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[o,n]of r)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[r,o]of this.elementProperties){let n=this._$Eu(r,o);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let n of o)r.unshift(ao(n))}else e!==void 0&&r.push(ao(e));return r}static _$Eu(e,r){let o=r.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,r=this.constructor.elementProperties;for(let o of r.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 qo(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,r,o){this._$AK(e,o)}_$EO(e,r){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:Yo).toAttribute(r,o.type);this._$Em=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(e,r){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:Yo;this._$Em=n,this[n]=s.fromAttribute(r,a.type),this._$Em=null}}requestUpdate(e,r,o,n=!1,a){if(e!==void 0){if(o??=this.constructor.getPropertyOptions(e),!(o.hasChanged??Ji)(n?a:this[e],r))return;this.C(e,r,o)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,r,o){this._$AL.has(e)||this._$AL.set(e,r),o.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(r){Promise.reject(r)}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,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$E_?.forEach(o=>o.hostUpdate?.()),this.update(r)):this._$ET()}catch(o){throw e=!1,this._$ET(),o}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$E_?.forEach(r=>r.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(r=>this._$EO(r,this[r])),this._$ET()}updated(e){}firstUpdated(e){}};ot.elementStyles=[],ot.shadowRootOptions={mode:"open"},ot[so("elementProperties")]=new Map,ot[so("finalized")]=new Map,xp?.({ReactiveElement:ot}),(Xo.reactiveElementVersions??=[]).push("2.0.2");var en=globalThis,Jo=en.trustedTypes,Ys=Jo?Jo.createPolicy("lit-html",{createHTML:t=>t}):void 0,tn="$lit$",ht=`lit$${(Math.random()+"").slice(9)}$`,rn="?"+ht,vp=`<${rn}>`,or=document,co=()=>or.createComment(""),po=t=>t===null||typeof t!="object"&&typeof t!="function",rl=Array.isArray,ol=t=>rl(t)||typeof t?.[Symbol.iterator]=="function",Qi=`[
|
|
5
|
+
\f\r]`,lo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Xs=/-->/g,Js=/>/g,tr=RegExp(`>|${Qi}(?:([^\\s"'>=/]+)(${Qi}*=${Qi}*(?:[^
|
|
6
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Qs=/'/g,el=/"/g,il=/^(?:script|style|textarea|title)$/i,nl=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),T=nl(1),Sp=nl(2),Nt=Symbol.for("lit-noChange"),B=Symbol.for("lit-nothing"),tl=new WeakMap,rr=or.createTreeWalker(or,129);function al(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ys!==void 0?Ys.createHTML(e):e}var sl=(t,e)=>{let r=t.length-1,o=[],n,a=e===2?"<svg>":"",s=lo;for(let l=0;l<r;l++){let c=t[l],p,h,u=-1,y=0;for(;y<c.length&&(s.lastIndex=y,h=s.exec(c),h!==null);)y=s.lastIndex,s===lo?h[1]==="!--"?s=Xs:h[1]!==void 0?s=Js:h[2]!==void 0?(il.test(h[2])&&(n=RegExp("</"+h[2],"g")),s=tr):h[3]!==void 0&&(s=tr):s===tr?h[0]===">"?(s=n??lo,u=-1):h[1]===void 0?u=-2:(u=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?tr:h[3]==='"'?el:Qs):s===el||s===Qs?s=tr:s===Xs||s===Js?s=lo:(s=tr,n=void 0);let b=s===tr&&t[l+1].startsWith("/>")?" ":"";a+=s===lo?c+vp:u>=0?(o.push(p),c.slice(0,u)+tn+c.slice(u)+ht+b):c+ht+(u===-2?l:b)}return[al(t,a+(t[r]||"<?>")+(e===2?"</svg>":"")),o]},fo=class t{constructor({strings:e,_$litType$:r},o){let n;this.parts=[];let a=0,s=0,l=e.length-1,c=this.parts,[p,h]=sl(e,r);if(this.el=t.createElement(p,o),rr.currentNode=this.el.content,r===2){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(n=rr.nextNode())!==null&&c.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let u of n.getAttributeNames())if(u.endsWith(tn)){let y=h[s++],b=n.getAttribute(u).split(ht),x=/([.?@])?(.*)/.exec(y);c.push({type:1,index:a,name:x[2],strings:b,ctor:x[1]==="."?ei:x[1]==="?"?ti:x[1]==="@"?ri:nr}),n.removeAttribute(u)}else u.startsWith(ht)&&(c.push({type:6,index:a}),n.removeAttribute(u));if(il.test(n.tagName)){let u=n.textContent.split(ht),y=u.length-1;if(y>0){n.textContent=Jo?Jo.emptyScript:"";for(let b=0;b<y;b++)n.append(u[b],co()),rr.nextNode(),c.push({type:2,index:++a});n.append(u[y],co())}}}else if(n.nodeType===8)if(n.data===rn)c.push({type:2,index:a});else{let u=-1;for(;(u=n.data.indexOf(ht,u+1))!==-1;)c.push({type:7,index:a}),u+=ht.length-1}a++}}static createElement(e,r){let o=or.createElement("template");return o.innerHTML=e,o}};function ir(t,e,r=t,o){if(e===Nt)return e;let n=o!==void 0?r._$Co?.[o]:r._$Cl,a=po(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(t),n._$AT(t,r,o)),o!==void 0?(r._$Co??=[])[o]=n:r._$Cl=n),n!==void 0&&(e=ir(t,n._$AS(t,e.values),n,o)),e}var Qo=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:o}=this._$AD,n=(e?.creationScope??or).importNode(r,!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 Or(a,a.nextSibling,this,e):c.type===1?p=new c.ctor(a,c.name,c.strings,this,e):c.type===6&&(p=new oi(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 r=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,r),r+=o.strings.length-2):o._$AI(e[r])),r++}},Or=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,o,n){this.type=2,this._$AH=B,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=ir(this,e,r),po(e)?e===B||e==null||e===""?(this._$AH!==B&&this._$AR(),this._$AH=B):e!==this._$AH&&e!==Nt&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):ol(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.$(or.createTextNode(e)),this._$AH=e}g(e){let{values:r,_$litType$:o}=e,n=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=fo.createElement(al(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new Qo(n,this),s=a.u(this.options);a.p(r),this.$(s),this._$AH=a}}_$AC(e){let r=tl.get(e.strings);return r===void 0&&tl.set(e.strings,r=new fo(e)),r}T(e){rl(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,o,n=0;for(let a of e)n===r.length?r.push(o=new t(this.k(co()),this.k(co()),this,this.options)):o=r[n],o._$AI(a),n++;n<r.length&&(this._$AR(o&&o._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);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,r,o,n,a){this.type=1,this._$AH=B,this._$AN=void 0,this.element=e,this.name=r,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,r=this,o,n){let a=this.strings,s=!1;if(a===void 0)e=ir(this,e,r,0),s=!po(e)||e!==this._$AH&&e!==Nt,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],r,c),p===Nt&&(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??"")}},ei=class extends nr{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===B?void 0:e}},ti=class extends nr{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==B)}},ri=class extends nr{constructor(e,r,o,n,a){super(e,r,o,n,a),this.type=5}_$AI(e,r=this){if((e=ir(this,e,r,0)??B)===Nt)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)}},oi=class{constructor(e,r,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){ir(this,e)}},Op={j:tn,P:ht,A:rn,C:1,M:sl,L:Qo,R:ol,V:ir,D:Or,I:nr,H:ti,N:ri,U:ei,B:oi},Cp=en.litHtmlPolyfillSupport;Cp?.(fo,Or),(en.litHtmlVersions??=[]).push("3.1.0");var on=(t,e,r)=>{let o=r?.renderBefore??e,n=o._$litPart$;if(n===void 0){let a=r?.renderBefore??null;o._$litPart$=n=new Or(e.insertBefore(co(),a),a,void 0,r??{})}return n._$AI(t),n};var mt=class extends ot{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 r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=on(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Nt}};mt._$litElement$=!0,mt.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:mt});var Ep=globalThis.litElementPolyfillSupport;Ep?.({LitElement:mt});var wp={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};(globalThis.litElementVersions??=[]).push("4.0.2");var nh=!1;var cn={};Q(cn,{customElement:()=>Ap,eventOptions:()=>Cr,property:()=>g,query:()=>z,queryAll:()=>an,queryAssignedElements:()=>sn,queryAssignedNodes:()=>ln,queryAsync:()=>_p,standardProperty:()=>ll,state:()=>G});var Ap=t=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};var Rp={attribute:!0,type:String,converter:eo,reflect:!1,hasChanged:Bo},ll=(t=Rp,e,r)=>{let{kind:o,metadata:n}=r,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),a.set(r.name,t),o==="accessor"){let{name:s}=r;return{set(l){let c=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,c,t)},init(l){return l!==void 0&&this.C(s,void 0,t),l}}}if(o==="setter"){let{name:s}=r;return function(l){let c=this[s];e.call(this,l),this.requestUpdate(s,c,t)}}throw Error("Unsupported decorator location: "+o)};function g(t){return(e,r)=>typeof r=="object"?ll(t,e,r):((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})(t,e,r)}function G(t){return g({...t,state:!0,attribute:!1})}function Cr(t){return(e,r)=>{let o=typeof e=="function"?e:e[r];Object.assign(o,t)}}var Ye=(t,e,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,r),r);function z(t,e){return(r,o,n)=>{let a=s=>s.renderRoot?.querySelector(t)??null;if(e){let{get:s,set:l}=typeof o=="object"?r:n??(()=>{let c=Symbol();return{get(){return this[c]},set(p){this[c]=p}}})();return Ye(r,o,{get(){let c=s.call(this);return c===void 0&&(c=a(this),(c!==null||this.hasUpdated)&&l.call(this,c)),c}})}return Ye(r,o,{get(){return a(this)}})}}var Np;function an(t){return(e,r)=>Ye(e,r,{get(){return(this.renderRoot??(Np??=document.createDocumentFragment())).querySelectorAll(t)}})}function _p(t){return(e,r)=>Ye(e,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})}function sn(t){return(e,r)=>{let{slot:o,selector:n}=t??{},a="slot"+(o?`[name=${o}]`:":not([name])");return Ye(e,r,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(t)??[];return n===void 0?l:l.filter(c=>c.matches(n))}})}}function ln(t){return(e,r)=>{let{slot:o}=t??{},n="slot"+(o?`[name=${o}]`:":not([name])");return Ye(e,r,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(t)??[]}})}}var dn={};Q(dn,{repeat:()=>ar});var _t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Tt=t=>(...e)=>({_$litDirective$:t,values:e}),it=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,o){this._$Ct=e,this._$AM=r,this._$Ci=o}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var{D:Tp}=Gs;var cl=()=>document.createComment(""),Er=(t,e,r)=>{let o=t._$AA.parentNode,n=e===void 0?t._$AB:e._$AA;if(r===void 0){let a=o.insertBefore(cl(),n),s=o.insertBefore(cl(),n);r=new Tp(a,s,t,t.options)}else{let a=r._$AB.nextSibling,s=r._$AM,l=s!==t;if(l){let c;r._$AQ?.(t),r._$AM=t,r._$AP!==void 0&&(c=t._$AU)!==s._$AU&&r._$AP(c)}if(a!==n||l){let c=r._$AA;for(;c!==a;){let p=c.nextSibling;o.insertBefore(c,n),c=p}}}return r},Pt=(t,e,r=t)=>(t._$AI(e,r),t),Pp={},dl=(t,e=Pp)=>t._$AH=e,pl=t=>t._$AH,ii=t=>{t._$AP?.(!1,!0);let e=t._$AA,r=t._$AB.nextSibling;for(;e!==r;){let o=e.nextSibling;e.remove(),e=o}};var fl=(t,e,r)=>{let o=new Map;for(let n=e;n<=r;n++)o.set(t[n],n);return o},ar=Tt(class extends it{constructor(t){if(super(t),t.type!==_t.CHILD)throw Error("repeat() can only be used in text expressions")}ht(t,e,r){let o;r===void 0?r=e:e!==void 0&&(o=e);let n=[],a=[],s=0;for(let l of t)n[s]=o?o(l,s):s,a[s]=r(l,s),s++;return{values:a,keys:n}}render(t,e,r){return this.ht(t,e,r).values}update(t,[e,r,o]){let n=pl(t),{values:a,keys:s}=this.ht(e,r,o);if(!Array.isArray(n))return this.dt=s,a;let l=this.dt??=[],c=[],p,h,u=0,y=n.length-1,b=0,x=a.length-1;for(;u<=y&&b<=x;)if(n[u]===null)u++;else if(n[y]===null)y--;else if(l[u]===s[b])c[b]=Pt(n[u],a[b]),u++,b++;else if(l[y]===s[x])c[x]=Pt(n[y],a[x]),y--,x--;else if(l[u]===s[x])c[x]=Pt(n[u],a[x]),Er(t,c[x+1],n[u]),u++,x--;else if(l[y]===s[b])c[b]=Pt(n[y],a[b]),Er(t,n[u],n[y]),y--,b++;else if(p===void 0&&(p=fl(s,b,x),h=fl(l,u,y)),p.has(l[u]))if(p.has(l[y])){let C=h.get(s[b]),P=C!==void 0?n[C]:null;if(P===null){let w=Er(t,n[u]);Pt(w,a[b]),c[b]=w}else c[b]=Pt(P,a[b]),Er(t,n[u],P),n[C]=null;b++}else ii(n[y]),y--;else ii(n[u]),u++;for(;b<=x;){let C=Er(t,c[x+1]);Pt(C,a[b]),c[b++]=C}for(;u<=y;){let C=n[u++];C!==null&&ii(C)}return this.dt=s,dl(t,c),Be}});var pn={};Q(pn,{classMap:()=>Re});var Re=Tt(class extends it{constructor(t){if(super(t),t.type!==_t.ATTRIBUTE||t.name!=="class"||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){if(this.it===void 0){this.it=new Set,t.strings!==void 0&&(this.st=new Set(t.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 r=t.element.classList;for(let o of this.it)o in e||(r.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?(r.add(o),this.it.add(o)):(r.remove(o),this.it.delete(o)))}return Be}});var fn={};Q(fn,{styleMap:()=>$p});var ul="important",Lp=" !"+ul,$p=Tt(class extends it{constructor(t){if(super(t),t.type!==_t.ATTRIBUTE||t.name!=="style"||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,r)=>{let o=t[r];return o==null?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(t,[e]){let{style:r}=t.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("-")?r.removeProperty(o):r[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(Lp);o.includes("-")||a?r.setProperty(o,a?n.slice(0,-11):n,a?ul:""):r[o]=n}}return Be}});var hn={};Q(hn,{UnsafeHTMLDirective:()=>wr,unsafeHTML:()=>un});var wr=class extends it{constructor(e){if(super(e),this.et=le,e.type!==_t.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===le||e==null)return this.vt=void 0,this.et=e;if(e===Be)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 r=[e];return r.raw=r,this.vt={_$litType$:this.constructor.resultType,strings:r,values:[]}}};wr.directiveName="unsafeHTML",wr.resultType=1;var un=Tt(wr);var yn={};Q(yn,{CacheRegistry:()=>nt});var mn={};Q(mn,{CancelablePromise:()=>Ar,CanceledPromiseError:()=>Lt,cancelable:()=>Rr});var Lt=class extends Error{constructor(e,r,o){super(e),this.canceledPromiseResult=r,this.canceledPromiseError=o}},Ar=class extends Promise{constructor(e){super((r,o)=>e(n=>{this.isCanceled?o(new Lt("Promise has been canceled",n)):r(n)},n=>{this.isCanceled?o(new Lt("Promise has been canceled",void 0,n)):o(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Rr=t=>new Ar((e,r)=>t.then(e).catch(r));var nt=class{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(e,r){this.loaders[e]=r,this.finalContent.delete(e)}registerFinal(e,r){this.loaders[e]=r,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 Ar&&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,r){this.forceClear(e),this.register(e,async()=>r),this.content[e]=r}setFinal(e,r){this.forceClear(e),this.registerFinal(e,async()=>r),this.content[e]=r}async get(e,r,o){if(this.content[e]===void 0){if(r=r??this.loaders[e],r==null)throw new Error("Unknown cache key "+e);let n=Rr(r());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 bn={};Q(bn,{ClusteringHelper:()=>gn});var gn=class t{constructor(e,r,o,n){this.allResults=e,this.selectedResult=r,this.clusteringMetadata=o,this.metadataDescriptors=n}static extractResultMetadata(e,r){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 r==null?t.flattenMetadata(a):t.flattenMetadata(a.find(s=>s.key===r))}static flattenMetadata(e){if(Array.isArray(e))return e.map(o=>t.flattenMetadata(o)).filter(o=>o!=null);let r=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!r))if(r){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,r,o="No value"){var n,a;let s=t.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=>t.extractResultMetadata(p,e)).map(p=>p??{key:e,label:l,value:void 0,displayValue:o}).filter(p=>p.value!=s?.value).filter((p,h,u)=>u.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,r))}compareMetadata(e,r,o,n){if(e==null)return-1;if(r==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(r,n,{numeric:!0});return l?c*-1:c}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(r=>e==r.key)}findBestResultForMetadataValue(e,r){let o=this.allResults.filter(c=>{var p;return((p=t.extractResultMetadata(c,e))===null||p===void 0?void 0:p.value)==r}),a=[...t.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,r){return t.extractResultMetadata(e).filter(o=>r.some(n=>n.key===o.key&&n.value===o.value)).length}};var xn={};Q(xn,{Debouncer:()=>se});var se=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,o)=>{this.resolvePromise=r,this.rejectPromise=o})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let o=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>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 On={};Q(On,{customElement:()=>H,isNumber:()=>yl,jsonProperty:()=>Oe,optionalNumberProperty:()=>Up});var Sn={};Q(Sn,{dateReviver:()=>kp,deepEqual:()=>ze,delay:()=>ni,eventPathContainsMatchingElement:()=>Fp,flatDeep:()=>yt,hasChanged:()=>uo,last:()=>Mp,minmax:()=>vn,parseDate:()=>ml,waitFor:()=>hl,waitUntil:()=>Ip});var ni=t=>new Promise(e=>setTimeout(e,t));async function Ip(t,e=10,r=2e4){await hl(async()=>await t()||void 0,e,r)}async function hl(t,e=10,r=2e4){let o=await t(),n,a;for(n=a=performance.now();o==null&&(!r||a-n<r);)await ni(e),o=await t(),a=performance.now();if(o==null)throw new Error("Timeout exceeded");return o}function yt(t,e){return t.flatMap(r=>[r,...yt(e(r),e)])}function kp(...t){return function(e,r){return t.includes(e)?ml(r):r}}function ml(t){return t.match(/^\d{4}-\d{2}-\d{2}$/)&&(t=t.replace(/-/g,"/")),t=t.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,r,o,n)=>r+o+":"+n),new Date(t)}function Dp(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var r,o,n;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(o=r;o--!==0;)if(!ze(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;for(o of t.entries())if(!ze(o[1],e.get(o[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(n=Object.keys(t),r=n.length,r!==Object.keys(e).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[o]))return!1;for(o=r;o--!==0;){var a=n[o];if(!ze(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function ze(t,e){try{return Dp(t,e)}catch{return!1}}function uo(t,e){return!ze(t,e)}function Fp(t,e,r=window.document.body){if(e.length>0){let o=t.composedPath();for(let n of o){if(n===r)return!1;if(n.matches&&e.some(a=>n.matches(a)))return!0}}return!1}function vn(t,e,r){return Math.min(Math.max(t,e),r)}function Mp(t){return t[t.length-1]}var H=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function Oe(t,e){let r=()=>JSON.parse(JSON.stringify(t));return g({type:Object,converter:{fromAttribute:o=>{if(o==null)return r();try{return JSON.parse(o)}catch{return r()}},toAttribute:o=>JSON.stringify(o)},hasChanged:uo,...e??{}})}function Up(t){return g({type:Object,converter:{fromAttribute:e=>{if(e!=null)return yl(e)?+e:void 0},toAttribute:e=>e==null?void 0:""+e},...t??{}})}function yl(t){return!isNaN(parseFloat(t))}var Xn={};Q(Xn,{designSystemVariables:()=>$});var Yn={};Q(Yn,{DesignSystemFamily:()=>bt,DesignSystemSize:()=>ge,FtCssVariableFactory:()=>i,badge:()=>Vp,banner:()=>Wp,breadcrumb:()=>jp,button:()=>A,chart:()=>nf,checkbox:()=>sf,chip:()=>W,chipChoice:()=>zp,collapsible:()=>rf,comboboxMultiSelect:()=>ef,comboboxSingleSelect:()=>Qp,drawer:()=>Zp,floatingMenu:()=>Jp,foundation:()=>d,link:()=>Hp,modal:()=>Kp,notice:()=>af,notification:()=>df,pageHeader:()=>Gp,popover:()=>tf,radio:()=>cf,resolveFamilyClass:()=>Zn,resolveSizeClass:()=>qn,semantic:()=>f,setVariable:()=>L,switch_:()=>of,tabs:()=>qp,textArea:()=>Xp,textInput:()=>Yp,toggle:()=>lf,tooltip:()=>pf,typographies:()=>ho,typographyBody1Medium:()=>Nn,typographyBody1Regular:()=>Rn,typographyBody1Semibold:()=>_n,typographyBody2Medium:()=>Pn,typographyBody2MediumUnderline:()=>gl,typographyBody2Regular:()=>Tn,typographyBody2Semibold:()=>Ln,typographyCaption1Bold:()=>zn,typographyCaption1Medium:()=>Un,typographyCaption1Semibold:()=>Bn,typographyCaption2Bold:()=>Vn,typographyCaption2Medium:()=>Hn,typographyCaption2Semibold:()=>Wn,typographyCaption3Bold:()=>Kn,typographyCaption3Medium:()=>jn,typographyCaption3Semibold:()=>Gn,typographyDisplay:()=>Cn,typographyLabel1Bold:()=>kn,typographyLabel1Medium:()=>$n,typographyLabel1Semibold:()=>In,typographyLabel2Bold:()=>Mn,typographyLabel2Medium:()=>Dn,typographyLabel2Semibold:()=>Fn,typographyTitle1:()=>En,typographyTitle2:()=>wn,typographyTitle3:()=>An,typographyVariants:()=>Bp});var gt=t=>typeof t=="string"?ut(t):t,i=class{static create(e,r,o,n){let a=l=>gt(l??n),s=_`var(${gt(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=o,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>_`var(${gt(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,r,o,n){let a=l=>o.get(l??n),s=_`var(${gt(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=o.category,s.fallbackVariable=o,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>_`var(${gt(e)}, ${a(l)})`,s.breadcrumb=()=>[o.name,...o.breadcrumb()],s.lastResortDefaultValue=()=>n??o.lastResortDefaultValue(),s}static external(e,r){let o=a=>e.fallbackVariable?e.fallbackVariable.get(a??e.defaultValue):gt(a??e.lastResortDefaultValue()),n=_`var(${gt(e.name)}, ${o(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=r,n.defaultCssValue=o,n.get=a=>_`var(${gt(e.name)}, ${o(a)})`,n.breadcrumb=()=>e.fallbackVariable?[e.fallbackVariable.name,...e.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};function L(t,e){return gt(`${t.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)")},Cn={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")},En={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")},wn={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")},An={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")},Rn={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")},Nn={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")},_n={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")},Tn={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")},Pn={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")},gl={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")},Ln={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")},$n={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")},In={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")},kn={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")},Dn={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")},Fn={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")},Mn={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")},Un={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")},Bn={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")},zn={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")},Hn={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")},Wn={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")},Vn={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")},jn={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")},Gn={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")},Kn={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")},ho={display:Cn,"title-1":En,"title-2":wn,"title-3":An,"body-1-regular":Rn,"body-1-medium":Nn,"body-1-semibold":_n,"body-2-regular":Tn,"body-2-medium":Pn,"body-2-medium-underline":gl,"body-2-semibold":Ln,"label-1-medium":$n,"label-1-semibold":In,"label-1-bold":kn,"label-2-medium":Dn,"label-2-semibold":Fn,"label-2-bold":Mn,"caption-1-medium":Un,"caption-1-semibold":Bn,"caption-1-bold":zn,"caption-2-medium":Hn,"caption-2-semibold":Wn,"caption-2-bold":Vn,"caption-3-medium":jn,"caption-3-semibold":Gn,"caption-3-bold":Kn},Bp=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","label-1","label-2","caption-1","caption-2","caption-3"];var f={backgroundActionPrimary: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 A={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","",f.backgroundActionPrimary),primaryColor:i.extend("--ft-button-primary-color","",f.contentGlobalOnColor),primaryIconColor:i.extend("--ft-button-primary-icon-color","",f.contentGlobalOnColor),primaryStateLayerColor:i.extend("--ft-button-primary-state-layer-color","",f.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","",f.borderActionFocusRing),tertiaryBackgroundColor:i.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:i.extend("--ft-button-tertiary-color","",f.contentActionPrimary),tertiaryIconColor:i.extend("--ft-button-tertiary-icon-color","",f.contentActionPrimary),tertiaryStateLayerColor:i.extend("--ft-button-tertiary-state-layer-color","",f.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","",f.contentActionPrimary),secondaryIconColor:i.extend("--ft-button-secondary-icon-color","",f.contentActionPrimary),secondaryStateLayerColor:i.extend("--ft-button-secondary-state-layer-color","",f.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","",f.borderActionPrimary),neutralBackgroundColor:i.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:i.extend("--ft-button-neutral-icon-color","",f.contentGlobalSecondary),neutralColor:i.extend("--ft-button-neutral-color","",f.contentGlobalSecondary),neutralStateLayerColor:i.extend("--ft-button-neutral-state-layer-color","",f.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 zp={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","",f.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","",f.backgroundGlobalOnSurface),neutralOffBorderColor:i.extend("--ft-chip-choice-neutral-off-border-color","",f.borderGlobalPrimary),neutralOffColor:i.extend("--ft-chip-choice-neutral-off-color","",f.contentGlobalSecondary),neutralOffStateLayerColor:i.extend("--ft-chip-choice-neutral-off-state-layer-color","",f.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","",f.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","",f.backgroundGlobalOnSurface),neutralOnBorderColor:i.extend("--ft-chip-choice-neutral-on-border-color","",f.borderGlobalPrimary),neutralOnColor:i.extend("--ft-chip-choice-neutral-on-color","",f.contentGlobalPrimary),neutralOnIconColor:i.extend("--ft-chip-choice-neutral-on-icon-color","",f.contentGlobalPrimary),neutralOnStateLayerColor:i.extend("--ft-chip-choice-neutral-on-state-layer-color","",f.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 W={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","",f.backgroundGlobalOnSurface),neutralColor:i.extend("--ft-chip-neutral-color","",f.contentGlobalSecondary),neutralIconColor:i.extend("--ft-chip-neutral-icon-color","",f.contentGlobalSecondary),neutralBorderColor:i.extend("--ft-chip-neutral-border-color","",f.borderGlobalSubtle),infoBackgroundColor:i.extend("--ft-chip-info-background-color","",f.backgroundInfoSubtle),infoColor:i.extend("--ft-chip-info-color","",f.contentInfoPrimary),infoIconColor:i.extend("--ft-chip-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:i.extend("--ft-chip-info-border-color","",f.borderInfoSubtle),successBackgroundColor:i.extend("--ft-chip-success-background-color","",f.backgroundSuccessSubtle),successColor:i.extend("--ft-chip-success-color","",f.contentSuccessPrimary),successIconColor:i.extend("--ft-chip-success-icon-color","",f.contentSuccessIconOnly),successBorderColor:i.extend("--ft-chip-success-border-color","",f.borderSuccessSubtle),warningBackgroundColor:i.extend("--ft-chip-warning-background-color","",f.backgroundWarningSubtle),warningColor:i.extend("--ft-chip-warning-color","",f.contentWarningPrimary),warningIconColor:i.extend("--ft-chip-warning-icon-color","",f.contentWarningIconOnly),warningBorderColor:i.extend("--ft-chip-warning-border-color","",f.borderWarningSubtle),errorBackgroundColor:i.extend("--ft-chip-error-background-color","",f.backgroundErrorSubtle),errorColor:i.extend("--ft-chip-error-color","",f.contentErrorPrimary),errorIconColor:i.extend("--ft-chip-error-icon-color","",f.contentErrorIconOnly),errorBorderColor:i.extend("--ft-chip-error-border-color","",f.borderErrorSubtle)};var Hp={brandHoverOpacity:i.extend("--ft-link-brand-hover-opacity","",d.opacity80),brandHoverColor:i.extend("--ft-link-brand-hover-color","",f.contentActionPrimary),brandFocusFocusRingColor:i.extend("--ft-link-brand-focus-focus-ring-color","",f.borderActionFocusRing),brandFocusColor:i.extend("--ft-link-brand-focus-color","",f.contentActionPrimary),brandDefaultColor:i.extend("--ft-link-brand-default-color","",f.contentActionPrimary),brandActiveColor:i.extend("--ft-link-brand-active-color","",f.contentActionPrimary),infoHoverOpacity:i.extend("--ft-link-info-hover-opacity","",d.opacity80),infoHoverColor:i.extend("--ft-link-info-hover-color","",f.contentInfoPrimary),infoFocusFocusRingColor:i.extend("--ft-link-info-focus-focus-ring-color","",f.borderActionFocusRing),infoFocusColor:i.extend("--ft-link-info-focus-color","",f.contentInfoPrimary),infoDefaultColor:i.extend("--ft-link-info-default-color","",f.contentInfoPrimary),infoActiveColor:i.extend("--ft-link-info-active-color","",f.contentInfoPrimary),neutralFocusFocusRingColor:i.extend("--ft-link-neutral-focus-focus-ring-color","",f.borderActionFocusRing),neutralFocusColor:i.extend("--ft-link-neutral-focus-color","",f.contentActionPrimary),neutralDefaultColor:i.extend("--ft-link-neutral-default-color","",f.contentGlobalPrimary),neutralHoverColor:i.extend("--ft-link-neutral-hover-color","",f.contentActionPrimary),neutralActiveColor:i.extend("--ft-link-neutral-active-color","",f.contentActionPrimary)};var Wp={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","",f.backgroundInfoSubtle),infoColor:i.extend("--ft-banner-info-color","",f.contentInfoPrimary),infoIconColor:i.extend("--ft-banner-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:i.extend("--ft-banner-info-border-color","",f.borderInfoSubtle)};var Vp={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","",f.contentGlobalOnColor),backgroundColor:i.extend("--ft-badge-background-color","",f.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","",f.contentGlobalPrimary),previousNonClickableColor:i.extend("--ft-breadcrumb-previous-non-clickable-color","",f.contentGlobalSecondary),iconColor:i.extend("--ft-breadcrumb-icon-color","",f.contentGlobalSubtle)};var Gp={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","",f.borderGlobalSubtle),titleColor:i.extend("--ft-page-header-title-color","",f.contentGlobalPrimary),subtitleColor:i.extend("--ft-page-header-subtitle-color","",f.contentGlobalSecondary)};var Kp={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","",f.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","",f.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ft-modal-header-border-color","",f.borderGlobalSubtle),headerColor:i.extend("--ft-modal-header-color","",f.contentGlobalPrimary),headerTrailingIconColor:i.extend("--ft-modal-header-trailing-icon-color","",f.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 Zp={overlayOpacity:i.extend("--ft-drawer-overlay-opacity","",d.opacity40),shadow:i.extend("--ft-drawer-shadow","",d.shadowElevation03),bodyColor:i.extend("--ft-drawer-body-color","",f.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","",f.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ft-drawer-header-border-color","",f.borderGlobalSubtle),headerColor:i.extend("--ft-drawer-header-color","",f.contentGlobalPrimary),headerTrailingIconColor:i.extend("--ft-drawer-header-trailing-icon-color","",f.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","",f.backgroundGlobalOnSurface),buttonsBarBorderColor:i.extend("--ft-drawer-buttons-bar-border-color","",f.borderGlobalSubtle),buttonsBarColor:i.extend("--ft-drawer-buttons-bar-color","",f.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 qp={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","",f.contentGlobalSubtle),offStateLayerColor:i.extend("--ft-tabs-off-state-layer-color","",f.contentGlobalSubtle),offBorderBottomColor:i.extend("--ft-tabs-off-border-bottom-color","",f.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","",f.contentActionPrimary),onStateLayerColor:i.extend("--ft-tabs-on-state-layer-color","",f.contentActionPrimary),onActiveTabIndicatorColor:i.extend("--ft-tabs-on-active-tab-indicator-color","",f.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","",f.borderActionFocusRing)};var Yp={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","",f.contentGlobalPrimary),trailingIconColor:i.extend("--ft-text-input-trailing-icon-color","",f.contentGlobalSubtle),labelColor:i.extend("--ft-text-input-label-color","",f.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-text-input-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-text-input-default-helper-text-color","",f.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","",f.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-text-input-error-helper-text-color","",f.contentErrorPrimary),errorHelperIconColor:i.extend("--ft-text-input-error-helper-icon-color","",f.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","",f.borderActionFocusRing),focusOutlineOffset:i.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ft-text-input-disabled-component-opacity","",d.opacity40)};var Xp={backgroundColor:i.extend("--ft-text-area-background-color","",d.colorWhite),contentValueColor:i.extend("--ft-text-area-content-value-color","",f.contentGlobalPrimary),labelColor:i.extend("--ft-text-area-label-color","",f.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-text-area-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-text-area-default-helper-text-color","",f.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","",f.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-text-area-error-helper-text-color","",f.contentErrorPrimary),errorHelperIconColor:i.extend("--ft-text-area-error-helper-icon-color","",f.contentErrorIconOnly),focusFocusRingColor:i.extend("--ft-text-area-focus-focus-ring-color","",f.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 Jp={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","",f.contentGlobalPrimary),offColor:i.extend("--ft-floating-menu-off-color","",f.contentGlobalPrimary),onColor:i.extend("--ft-floating-menu-on-color","",f.contentActionPrimary),onStateLayerColor:i.extend("--ft-floating-menu-on-state-layer-color","",f.contentActionPrimary),gap:i.extend("--ft-floating-menu-gap","",d.spacing3),focusFocusRingColor:i.extend("--ft-floating-menu-focus-focus-ring-color","",f.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","",f.backgroundGlobalOnSurface),shadow:i.extend("--ft-floating-menu-shadow","",d.shadowElevation02)};var Qp={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","",f.contentGlobalSubtle),contentValueColor:i.extend("--ft-combobox-single-select-content-value-color","",f.contentGlobalPrimary),trailingIconColor:i.extend("--ft-combobox-single-select-trailing-icon-color","",f.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-combobox-single-select-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-combobox-single-select-default-helper-text-color","",f.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","",f.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-combobox-single-select-error-helper-text-color","",f.contentErrorPrimary),warningBorderWidth:i.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:i.extend("--ft-combobox-single-select-warning-border-color","",f.borderWarningPrimary),warningHelperTextColor:i.extend("--ft-combobox-single-select-warning-helper-text-color","",f.contentWarningPrimary),warningHelperIconColor:i.extend("--ft-combobox-single-select-warning-helper-icon-color","",f.contentWarningIconOnly),focusOutlineWidth:i.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-combobox-single-select-focus-focus-ring-color","",f.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 ef={backgroundColor:i.extend("--ft-combobox-multi-select-background-color","",d.colorWhite),labelColor:i.extend("--ft-combobox-multi-select-label-color","",f.contentGlobalSubtle),trailingIconColor:i.extend("--ft-combobox-multi-select-trailing-icon-color","",f.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-combobox-multi-select-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-combobox-multi-select-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:i.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:i.extend("--ft-combobox-multi-select-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-combobox-multi-select-error-helper-text-color","",f.contentErrorPrimary),errorHelperIcon:i.extend("--ft-combobox-multi-select-error-helper-icon","",f.contentErrorIconOnly),errorBorderWidth:i.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:i.extend("--ft-combobox-multi-select-warning-border-color","",f.borderWarningPrimary),warningHelperTextColor:i.extend("--ft-combobox-multi-select-warning-helper-text-color","",f.contentWarningPrimary),warningHelperIconColor:i.extend("--ft-combobox-multi-select-warning-helper-icon-color","",f.contentWarningIconOnly),warningBorderWidth:i.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-combobox-multi-select-focus-focus-ring-color","",f.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 tf={backgroundColor:i.extend("--ft-popover-background-color","",f.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","",f.contentGlobalPrimary),bodyColor:i.extend("--ft-popover-body-color","",f.contentGlobalSecondary),linkColor:i.extend("--ft-popover-link-color","",f.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 rf={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","",f.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","",f.contentGlobalPrimary),stateLayerColor:i.extend("--ft-collapsible-state-layer-color","",f.contentGlobalPrimary),backgroundColor:i.extend("--ft-collapsible-background-color","",f.backgroundGlobalOnSurface),borderColor:i.extend("--ft-collapsible-border-color","",f.borderGlobalSubtle),iconSize:i.extend("--ft-collapsible-icon-size","",d.iconSize3)};var of={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","",f.backgroundGlobalSurface),groupBorderColor:i.extend("--ft-switch-group-border-color","",f.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","",f.contentGlobalSubtle),offStateLayerColor:i.extend("--ft-switch-off-state-layer-color","",f.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","",f.contentActionPrimary),onStateLayerColor:i.extend("--ft-switch-on-state-layer-color","",f.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","",f.borderActionFocusRing),optionBorderRadius:i.extend("--ft-switch-option-border-radius","",d.borderRadiusS)};var nf={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 af={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","",f.backgroundInfoSubtle),infoBorderColor:i.extend("--ft-notice-info-border-color","",f.borderInfoSubtle),infoColor:i.extend("--ft-notice-info-color","",f.contentInfoPrimary),infoIconColor:i.extend("--ft-notice-info-icon-color","",f.contentInfoIconOnly),warningBackgroundColor:i.extend("--ft-notice-warning-background-color","",f.backgroundWarningSubtle),warningBorderColor:i.extend("--ft-notice-warning-border-color","",f.borderWarningSubtle),warningColor:i.extend("--ft-notice-warning-color","",f.contentWarningPrimary),warningIconColor:i.extend("--ft-notice-warning-icon-color","",f.contentWarningIconOnly),errorBackgroundColor:i.extend("--ft-notice-error-background-color","",f.backgroundErrorSubtle),errorBorderColor:i.extend("--ft-notice-error-border-color","",f.borderErrorSubtle),errorColor:i.extend("--ft-notice-error-color","",f.contentErrorPrimary),errorIconColor:i.extend("--ft-notice-error-icon-color","",f.contentErrorIconOnly),successBackgroundColor:i.extend("--ft-notice-success-background-color","",f.backgroundSuccessSubtle),successBorderColor:i.extend("--ft-notice-success-border-color","",f.borderSuccessSubtle),successColor:i.extend("--ft-notice-success-color","",f.contentSuccessPrimary),successIconColor:i.extend("--ft-notice-success-icon-color","",f.contentSuccessIconOnly)};var sf={color:i.extend("--ft-checkbox-color","",f.contentGlobalPrimary),checkedBackgroundColor:i.extend("--ft-checkbox-checked-background-color","",f.contentActionPrimary),checkedStateLayerColor:i.extend("--ft-checkbox-checked-state-layer-color","",f.contentActionPrimary),checkedIconColor:i.extend("--ft-checkbox-checked-icon-color","",f.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","",f.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 lf={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","",f.contentGlobalSubtle),offIconColor:i.extend("--ft-toggle-off-icon-color","",f.contentGlobalSubtle),offStateLayerColor:i.extend("--ft-toggle-off-state-layer-color","",f.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","",f.contentActionPrimary),onStateLayerColor:i.extend("--ft-toggle-on-state-layer-color","",f.contentActionPrimary),onIconColor:i.extend("--ft-toggle-on-icon-color","",f.contentActionPrimary),color:i.extend("--ft-toggle-color","",f.contentGlobalPrimary),focusFocusRingColor:i.extend("--ft-toggle-focus-focus-ring-color","",f.borderActionFocusRing),gap:i.extend("--ft-toggle-gap","",d.spacing3)};var cf={color:i.extend("--ft-radio-color","",f.contentGlobalPrimary),selectedRadioColor:i.extend("--ft-radio-selected-radio-color","",f.contentActionPrimary),selectedStateLayerColor:i.extend("--ft-radio-selected-state-layer-color","",f.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","",f.borderInputPrimary),unselectedBorderColor:i.extend("--ft-radio-unselected-border-color","",f.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","",f.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 df={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","",f.backgroundInfoSubtle),infoColor:i.extend("--ft-notification-info-color","",f.contentInfoPrimary),infoIconColor:i.extend("--ft-notification-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:i.extend("--ft-notification-info-border-color","",f.borderInfoSubtle),successBackgroundColor:i.extend("--ft-notification-success-background-color","",f.backgroundSuccessSubtle),successColor:i.extend("--ft-notification-success-color","",f.contentSuccessPrimary),successIconColor:i.extend("--ft-notification-success-icon-color","",f.contentSuccessIconOnly),successBorderColor:i.extend("--ft-notification-success-border-color","",f.borderSuccessSubtle),warningBackgroundColor:i.extend("--ft-notification-warning-background-color","",f.backgroundWarningSubtle),warningColor:i.extend("--ft-notification-warning-color","",f.contentWarningPrimary),warningIconColor:i.extend("--ft-notification-warning-icon-color","",f.contentWarningIconOnly),warningBorderColor:i.extend("--ft-notification-warning-border-color","",f.borderWarningSubtle),errorBackgroundColor:i.extend("--ft-notification-error-background-color","",f.backgroundErrorSubtle),errorColor:i.extend("--ft-notification-error-color","",f.contentErrorPrimary),errorIconColor:i.extend("--ft-notification-error-icon-color","",f.contentErrorIconOnly),errorBorderColor:i.extend("--ft-notification-error-border-color","",f.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 pf={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","",f.contentGlobalOnColor),backgroundColor:i.extend("--ft-tooltip-background-color","",f.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 bt;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(bt||(bt={}));var ge;(function(t){t.large="large",t.medium="medium",t.small="small"})(ge||(ge={}));function Zn(t){return`ftds--family-${t}`}function qn(t){return`ftds--size-${t}`}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 ta={};Q(ta,{FtNotificationEvent:()=>Jn,PostResizeEvent:()=>ea,PreResizeEvent:()=>Qn});var Jn=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},Qn=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},ea=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};var ua={};Q(ua,{computeOffsetPosition:()=>fa});var xl=["top","right","bottom","left"],bl=["start","end"],oa=xl.reduce((t,e)=>t.concat(e,e+"-"+bl[0],e+"-"+bl[1]),[]),mo=Math.min,$t=Math.max,yo=Math.round;var xt=t=>({x:t,y:t}),ff={left:"right",right:"left",bottom:"top",top:"bottom"},uf={start:"end",end:"start"};function ia(t,e,r){return $t(t,mo(e,r))}function ai(t,e){return typeof t=="function"?t(e):t}function Nr(t){return t.split("-")[0]}function It(t){return t.split("-")[1]}function na(t){return t==="x"?"y":"x"}function aa(t){return t==="y"?"height":"width"}function si(t){return["top","bottom"].includes(Nr(t))?"y":"x"}function sa(t){return na(si(t))}function vl(t,e,r){r===void 0&&(r=!1);let o=It(t),n=sa(t),a=aa(n),s=n==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=ra(s)),[s,ra(s)]}function Sl(t){return t.replace(/start|end/g,e=>uf[e])}function ra(t){return t.replace(/left|right|bottom|top/g,e=>ff[e])}function hf(t){return{top:0,right:0,bottom:0,left:0,...t}}function Ol(t){return typeof t!="number"?hf(t):{top:t,right:t,bottom:t,left:t}}function sr(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Cl(t,e,r){let{reference:o,floating:n}=t,a=si(e),s=sa(e),l=aa(s),c=Nr(e),p=a==="y",h=o.x+o.width/2-n.width/2,u=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:u};break;case"left":b={x:o.x-n.width,y:u};break;default:b={x:o.x,y:o.y}}switch(It(e)){case"start":b[s]-=y*(r&&p?-1:1);break;case"end":b[s]+=y*(r&&p?-1:1);break}return b}var El=async(t,e,r)=>{let{placement:o="bottom",strategy:n="absolute",middleware:a=[],platform:s}=r,l=a.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:h,y:u}=Cl(p,o,c),y=o,b={},x=0;for(let C=0;C<l.length;C++){let{name:P,fn:w}=l[C],{x:N,y:S,data:O,reset:E}=await w({x:h,y:u,initialPlacement:o,placement:y,strategy:n,middlewareData:b,rects:p,platform:s,elements:{reference:t,floating:e}});if(h=N??h,u=S??u,b={...b,[P]:{...b[P],...O}},E&&x<=50){x++,typeof E=="object"&&(E.placement&&(y=E.placement),E.rects&&(p=E.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):E.rects),{x:h,y:u}=Cl(p,y,c)),C=-1;continue}}return{x:h,y:u,placement:y,strategy:n,middlewareData:b}};async function la(t,e){var r;e===void 0&&(e={});let{x:o,y:n,platform:a,rects:s,elements:l,strategy:c}=t,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:u="floating",altBoundary:y=!1,padding:b=0}=ai(e,t),x=Ol(b),P=l[y?u==="floating"?"reference":"floating":u],w=sr(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(P)))==null||r?P:P.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:h,strategy:c})),N=u==="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=sr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:N,offsetParent:S,strategy:c}):N);return{top:(w.top-E.top+x.top)/O.y,bottom:(E.bottom-w.bottom+x.bottom)/O.y,left:(w.left-E.left+x.left)/O.x,right:(E.right-w.right+x.right)/O.x}}function mf(t,e,r){return(t?[...r.filter(n=>It(n)===t),...r.filter(n=>It(n)!==t)]:r.filter(n=>Nr(n)===n)).filter(n=>t?It(n)===t||(e?Sl(n)!==n:!1):!0)}var ca=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,o,n;let{rects:a,middlewareData:s,placement:l,platform:c,elements:p}=e,{crossAxis:h=!1,alignment:u,allowedPlacements:y=oa,autoAlignment:b=!0,...x}=ai(t,e),C=u!==void 0||y===oa?mf(u||null,b,y):y,P=await la(e,x),w=((r=s.autoPlacement)==null?void 0:r.index)||0,N=C[w];if(N==null)return{};let S=vl(N,a,await(c.isRTL==null?void 0:c.isRTL(p.floating)));if(l!==N)return{reset:{placement:C[0]}};let O=[P[Nr(N)],P[S[0]],P[S[1]]],E=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:N,overflows:O}],F=C[w+1];if(F)return{data:{index:w+1,overflows:E},reset:{placement:F}};let Y=E.map(D=>{let m=It(D.placement);return[D.placement,m&&h?D.overflows.slice(0,2).reduce((v,k)=>v+k,0):D.overflows[0],D.overflows]}).sort((D,m)=>D[1]-m[1]),J=((n=Y.filter(D=>D[2].slice(0,It(D[0])?2:3).every(m=>m<=0))[0])==null?void 0:n[0])||Y[0][0];return J!==l?{data:{index:w+1,overflows:E},reset:{placement:J}}:{}}}};var da=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:o,placement:n}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:P=>{let{x:w,y:N}=P;return{x:w,y:N}}},...c}=ai(t,e),p={x:r,y:o},h=await la(e,c),u=si(Nr(n)),y=na(u),b=p[y],x=p[u];if(a){let P=y==="y"?"top":"left",w=y==="y"?"bottom":"right",N=b+h[P],S=b-h[w];b=ia(N,b,S)}if(s){let P=u==="y"?"top":"left",w=u==="y"?"bottom":"right",N=x+h[P],S=x-h[w];x=ia(N,x,S)}let C=l.fn({...e,[y]:b,[u]:x});return{...C,data:{x:C.x-r,y:C.y-o}}}}};function vt(t){return Al(t)?(t.nodeName||"").toLowerCase():"#document"}function $e(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function St(t){var e;return(e=(Al(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Al(t){return t instanceof Node||t instanceof $e(t).Node}function at(t){return t instanceof Element||t instanceof $e(t).Element}function Xe(t){return t instanceof HTMLElement||t instanceof $e(t).HTMLElement}function wl(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof $e(t).ShadowRoot}function _r(t){let{overflow:e,overflowX:r,overflowY:o,display:n}=He(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+r)&&!["inline","contents"].includes(n)}function Rl(t){return["table","td","th"].includes(vt(t))}function ci(t){let e=di(),r=He(t);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(r.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(r.contain||"").includes(o))}function Nl(t){let e=lr(t);for(;Xe(e)&&!go(e);){if(ci(e))return e;e=lr(e)}return null}function di(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function go(t){return["html","body","#document"].includes(vt(t))}function He(t){return $e(t).getComputedStyle(t)}function bo(t){return at(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function lr(t){if(vt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||wl(t)&&t.host||St(t);return wl(e)?e.host:e}function _l(t){let e=lr(t);return go(e)?t.ownerDocument?t.ownerDocument.body:t.body:Xe(e)&&_r(e)?e:_l(e)}function li(t,e,r){var o;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=_l(t),a=n===((o=t.ownerDocument)==null?void 0:o.body),s=$e(n);return a?e.concat(s,s.visualViewport||[],_r(n)?n:[],s.frameElement&&r?li(s.frameElement):[]):e.concat(n,li(n,[],r))}function Ll(t){let e=He(t),r=parseFloat(e.width)||0,o=parseFloat(e.height)||0,n=Xe(t),a=n?t.offsetWidth:r,s=n?t.offsetHeight:o,l=yo(r)!==a||yo(o)!==s;return l&&(r=a,o=s),{width:r,height:o,$:l}}function $l(t){return at(t)?t:t.contextElement}function Tr(t){let e=$l(t);if(!Xe(e))return xt(1);let r=e.getBoundingClientRect(),{width:o,height:n,$:a}=Ll(e),s=(a?yo(r.width):r.width)/o,l=(a?yo(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var yf=xt(0);function Il(t){let e=$e(t);return!di()||!e.visualViewport?yf:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function gf(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==$e(t)?!1:e}function xo(t,e,r,o){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),a=$l(t),s=xt(1);e&&(o?at(o)&&(s=Tr(o)):s=Tr(t));let l=gf(a,r,o)?Il(a):xt(0),c=(n.left+l.x)/s.x,p=(n.top+l.y)/s.y,h=n.width/s.x,u=n.height/s.y;if(a){let y=$e(a),b=o&&at(o)?$e(o):o,x=y.frameElement;for(;x&&o&&b!==y;){let C=Tr(x),P=x.getBoundingClientRect(),w=He(x),N=P.left+(x.clientLeft+parseFloat(w.paddingLeft))*C.x,S=P.top+(x.clientTop+parseFloat(w.paddingTop))*C.y;c*=C.x,p*=C.y,h*=C.x,u*=C.y,c+=N,p+=S,x=$e(x).frameElement}}return sr({width:h,height:u,x:c,y:p})}function bf(t){let{rect:e,offsetParent:r,strategy:o}=t,n=Xe(r),a=St(r);if(r===a)return e;let s={scrollLeft:0,scrollTop:0},l=xt(1),c=xt(0);if((n||!n&&o!=="fixed")&&((vt(r)!=="body"||_r(a))&&(s=bo(r)),Xe(r))){let p=xo(r);l=Tr(r),c.x=p.x+r.clientLeft,c.y=p.y+r.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 xf(t){return Array.from(t.getClientRects())}function kl(t){return xo(St(t)).left+bo(t).scrollLeft}function vf(t){let e=St(t),r=bo(t),o=t.ownerDocument.body,n=$t(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),a=$t(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight),s=-r.scrollLeft+kl(t),l=-r.scrollTop;return He(o).direction==="rtl"&&(s+=$t(e.clientWidth,o.clientWidth)-n),{width:n,height:a,x:s,y:l}}function Sf(t,e){let r=$e(t),o=St(t),n=r.visualViewport,a=o.clientWidth,s=o.clientHeight,l=0,c=0;if(n){a=n.width,s=n.height;let p=di();(!p||p&&e==="fixed")&&(l=n.offsetLeft,c=n.offsetTop)}return{width:a,height:s,x:l,y:c}}function Of(t,e){let r=xo(t,!0,e==="fixed"),o=r.top+t.clientTop,n=r.left+t.clientLeft,a=Xe(t)?Tr(t):xt(1),s=t.clientWidth*a.x,l=t.clientHeight*a.y,c=n*a.x,p=o*a.y;return{width:s,height:l,x:c,y:p}}function Tl(t,e,r){let o;if(e==="viewport")o=Sf(t,r);else if(e==="document")o=vf(St(t));else if(at(e))o=Of(e,r);else{let n=Il(t);o={...e,x:e.x-n.x,y:e.y-n.y}}return sr(o)}function Dl(t,e){let r=lr(t);return r===e||!at(r)||go(r)?!1:He(r).position==="fixed"||Dl(r,e)}function Cf(t,e){let r=e.get(t);if(r)return r;let o=li(t,[],!1).filter(l=>at(l)&&vt(l)!=="body"),n=null,a=He(t).position==="fixed",s=a?lr(t):t;for(;at(s)&&!go(s);){let l=He(s),c=ci(s);!c&&l.position==="fixed"&&(n=null),(a?!c&&!n:!c&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||_r(s)&&!c&&Dl(t,s))?o=o.filter(h=>h!==s):n=l,s=lr(s)}return e.set(t,o),o}function Ef(t){let{element:e,boundary:r,rootBoundary:o,strategy:n}=t,s=[...r==="clippingAncestors"?Cf(e,this._c):[].concat(r),o],l=s[0],c=s.reduce((p,h)=>{let u=Tl(e,h,n);return p.top=$t(u.top,p.top),p.right=mo(u.right,p.right),p.bottom=mo(u.bottom,p.bottom),p.left=$t(u.left,p.left),p},Tl(e,l,n));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function wf(t){return Ll(t)}function Af(t,e,r){let o=Xe(e),n=St(e),a=r==="fixed",s=xo(t,!0,a,e),l={scrollLeft:0,scrollTop:0},c=xt(0);if(o||!o&&!a)if((vt(e)!=="body"||_r(n))&&(l=bo(e)),o){let p=xo(e,!0,a,e);c.x=p.x+e.clientLeft,c.y=p.y+e.clientTop}else n&&(c.x=kl(n));return{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function Pl(t,e){return!Xe(t)||He(t).position==="fixed"?null:e?e(t):t.offsetParent}function Fl(t,e){let r=$e(t);if(!Xe(t))return r;let o=Pl(t,e);for(;o&&Rl(o)&&He(o).position==="static";)o=Pl(o,e);return o&&(vt(o)==="html"||vt(o)==="body"&&He(o).position==="static"&&!ci(o))?r:o||Nl(t)||r}var Rf=async function(t){let{reference:e,floating:r,strategy:o}=t,n=this.getOffsetParent||Fl,a=this.getDimensions;return{reference:Af(e,await n(r),o),floating:{x:0,y:0,...await a(r)}}};function Nf(t){return He(t).direction==="rtl"}var pi={convertOffsetParentRelativeRectToViewportRelativeRect:bf,getDocumentElement:St,getClippingRect:Ef,getOffsetParent:Fl,getElementRects:Rf,getClientRects:xf,getDimensions:wf,getScale:Tr,isElement:at,isRTL:Nf};var Ml=(t,e,r)=>{let o=new Map,n={platform:pi,...r},a={...n.platform,_c:o};return El(t,e,{...n,platform:a})};function Ul(t){return _f(t)}function pa(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function _f(t){for(let e=t;e;e=pa(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=pa(t);e;e=pa(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||e.tagName==="BODY"))return e}return null}async function fa(t,e,r){return Ml(t,e,{platform:{...pi,getOffsetParent:o=>pi.getOffsetParent(o,Ul)},middleware:[da({crossAxis:!0}),ca({allowedPlacements:[r]})]})}var ya={};Q(ya,{FtdsBase:()=>So,toFtdsBase:()=>hi});var ma={};Q(ma,{FtLitElement:()=>U});var ha={};Q(ha,{ScopedRegistryLitElement:()=>vo});var fi=window,Tf=fi.ShadowRoot&&(fi.ShadyCSS===void 0||fi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,yb=Symbol();var Bl=(t,e)=>{Tf?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{let o=document.createElement("style"),n=fi.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=r.cssText,t.appendChild(o)})};var vo=class extends mt{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 r={...e.shadowRootOptions,customElements:e.registry},o=this.renderOptions.creationScope=this.attachShadow(r);return Bl(o,e.elementStyles),o}};var ui=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Vl,zl=Symbol("constructorPrototype"),Hl=Symbol("constructorName"),jl=Symbol("exportpartsDebouncer"),Wl=Symbol("dynamicDependenciesLoaded"),U=class extends vo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Vl]=new se(5),this[Hl]=this.constructor.name,this[zl]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Hl]&&Object.setPrototypeOf(this,this[zl])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let e=this.constructor;e[Wl]||(e[Wl]=!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 r,o,n;if(((o=(r=this.shadowRoot)===null||r===void 0?void 0:r.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,r,o;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(o=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&o!==void 0&&o)&&this[jl].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 r,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=(r=this.shadowRoot)===null||r===void 0?void 0:r.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:[],x=(l=(s=y.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(C=>C.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...b,...x).filter(c).map(C=>C.trim()).forEach(C=>h.add(C))}if(h.size===0){this.removeAttribute("exportparts");return}let u=[...h.values()].flatMap(y=>p.map(b=>`${y}:${b}--${y}`));this.setAttribute("exportparts",[...this.part,...u].join(", "))}};Vl=jl;ui([g()],U.prototype,"exportpartsPrefix",void 0);ui([Oe([])],U.prototype,"exportpartsPrefixes",void 0);ui([g()],U.prototype,"customStylesheet",void 0);ui([G()],U.prototype,"useAdoptedStyleSheets",void 0);var Gl=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a};function hi(t){class e extends t{constructor(){super(...arguments),this.size=ge.medium,this.family=bt.neutral}getDesignSystemBaseClasses(){return{[Zn(this.family)]:!0,[qn(this.size)]:!0}}}return Gl([g()],e.prototype,"size",void 0),Gl([g()],e.prototype,"family",void 0),e}var So=class extends hi(U){};var Kl={};var xa={};Q(xa,{highlightHtml:()=>ba,highlightHtmlColorCssVariable:()=>Zl,highlightHtmlStyles:()=>Lf});var cr=class t{constructor(e,r=!0,o=[],n=5e3){this.ctx=e,this.iframes=r,this.exclude=o,this.iframesTimeout=n}static matches(e,r){let o=typeof r=="string"?[r]:r,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,r=[];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=r.filter(a=>a.contains(o)).length>0;r.indexOf(o)===-1&&!n&&r.push(o)}),r}getIframeContents(e,r,o=()=>{}){let n;try{let a=e.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{o()}n&&r(n)}isIframeBlank(e){let r="about:blank",o=e.getAttribute("src").trim();return e.contentWindow.location.href===r&&o!==r&&o}observeIframeLoad(e,r,o){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,r,o))}catch{o()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,r,o){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,r,o):this.getIframeContents(e,r,o):this.observeIframeLoad(e,r,o)}catch{o()}}waitForIframes(e,r){let o=0;this.forEachIframe(e,()=>!0,n=>{o++,this.waitForIframes(n.querySelector("html"),()=>{--o||r()})},n=>{n||r()})}forEachIframe(e,r,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=>{t.matches(p,this.exclude)?c():this.onIframeReady(p,h=>{r(p)&&(l++,o(h)),c()},c)})}createIterator(e,r,o){return document.createNodeIterator(e,r,o,!1)}createInstanceOnIframe(e){return new t(e.querySelector("html"),this.iframes)}compareNodeIframe(e,r,o){let n=e.compareDocumentPosition(o),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(r!==null){let s=r.compareDocumentPosition(o),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(e){let r=e.previousNode(),o;return r===null?o=e.nextNode():o=e.nextNode()&&e.nextNode(),{prevNode:r,node:o}}checkIframeFilter(e,r,o,n){let a=!1,s=!1;return n.forEach((l,c)=>{l.val===o&&(a=c,s=l.handled)}),this.compareNodeIframe(e,r,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,r,o,n){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(r,o,n)})})}iterateThroughNodes(e,r,o,n,a){let s=this.createIterator(r,e,n),l=[],c=[],p,h,u=()=>({prevNode:h,node:p}=this.getIteratorNode(s),p);for(;u();)this.iframes&&this.forEachIframe(r,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,r,o,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let c=()=>{this.iterateThroughNodes(e,l,r,o,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,c):c()})}};var Oo=class{constructor(e){this.ctx=e,this.ie=!1;let r=window.navigator.userAgent;(r.indexOf("MSIE")>-1||r.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 cr(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,r="debug"){let o=this.opt.log;this.opt.debug&&typeof o=="object"&&typeof o[r]=="function"&&o[r](`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 r=this.opt.synonyms,o=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in r)if(r.hasOwnProperty(a)){let s=r[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),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,r=>r.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,r=>r.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let r=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,r?"[\\S\\s]?":"\\S?").replace(/\u0002/g,r?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(r,o,n)=>{let a=n.charAt(o+1);return/[(|)\\]/.test(a)||a===""?r:r+"\0"})}createJoinersRegExp(e){let r=[],o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&r.push(this.escapeStr(o.join(""))),this.opt.ignoreJoiners&&r.push("\\u00ad\\u200b\\u200c\\u200d"),r.length?e.split(/\u0000+/).join(`[${r.join("")}]*`):e}createDiacriticsRegExp(e){let r=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${r}`),`[${s}]`),n.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let r="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\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(r)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let r=[];return e.forEach(o=>{this.opt.separateWordSearch?o.split(" ").forEach(n=>{n.trim()&&r.indexOf(n)===-1&&r.push(n)}):o.trim()&&r.indexOf(o)===-1&&r.push(o)}),{keywords:r.sort((o,n)=>n.length-o.length),length:r.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 r=[],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,r.push(n),o=s)}),r}callNoMatchOnInvalidRanges(e,r){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-r>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,r,o){let n,a=!0,s=o.length,l=r-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 r="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{o.push({start:r.length,end:(r+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:r,nodes:o})})}matchesExclude(e){return cr.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,r,o){let n=this.opt.element?this.opt.element:"mark",a=e.splitText(r),s=a.splitText(o-r),l=document.createElement(n);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=a.textContent,a.parentNode.replaceChild(l,a),s}wrapRangeInMappedTextNode(e,r,o,n,a){e.nodes.every((s,l)=>{let c=e.nodes[l+1];if(typeof c>"u"||c.start>r){if(!n(s.node))return!1;let p=r-s.start,h=(o>s.end?s.end:o)-s.start,u=e.value.substr(0,s.start),y=e.value.substr(h+s.start);if(s.node=this.wrapRangeInTextNode(s.node,p,h),e.value=u+y,e.nodes.forEach((b,x)=>{x>=l&&(e.nodes[x].start>0&&x!==l&&(e.nodes[x].start-=h),e.nodes[x].end-=h)}),o-=h,a(s.node.previousSibling,s.start),o>s.end)r=s.end;else return!1}return!0})}wrapMatches(e,r,o,n,a){let s=r===0?0:r+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 u=1;u<s;u++)h+=p[u].length;c=this.wrapRangeInTextNode(c,h,h+p[s].length),n(c.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,r,o,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{let c;for(;(c=e.exec(l.value))!==null&&c[s]!=="";){let p=c.index;if(s!==0)for(let u=1;u<s;u++)p+=c[u].length;let h=p+c[s].length;this.wrapRangeInMappedTextNode(l,p,h,u=>o(c[s],u),(u,y)=>{e.lastIndex=y,n(u)})}a()})}wrapRangeFromIndex(e,r,o,n){this.getTextNodes(a=>{let s=a.value.length;e.forEach((l,c)=>{let{start:p,end:h,valid:u}=this.checkWhitespaceRanges(l,s,a.value);u&&this.wrapRangeInMappedTextNode(a,p,h,y=>r(y,l,a.value.substring(p,h),c),y=>{o(y,l)})}),n()})}unwrapMatches(e){let r=e.parentNode,o=document.createDocumentFragment();for(;e.firstChild;)o.appendChild(e.removeChild(e.firstChild));r.replaceChild(o,e),this.ie?this.normalizeTextNode(r):r.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,r){this.opt=r,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,r){this.opt=r;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}`),u=0;this.log(`Searching with expression "${h}"`),this[n](h,1,(y,b)=>this.opt.filter(b,p,o,u),y=>{u++,o++,this.opt.each(y)},()=>{u===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,r){this.opt=r;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 r=this.opt.element?this.opt.element:"*";r+="[data-markjs]",this.opt.className&&(r+=`.${this.opt.className}`),this.log(`Removal selector "${r}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,o=>{this.unwrapMatches(o)},o=>{let n=cr.matches(o,r),a=this.matchesExclude(o);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function ga(t){let e=new Oo(t);return this.mark=(r,o)=>(e.mark(r,o),this),this.markRegExp=(r,o)=>(e.markRegExp(r,o),this),this.markRanges=(r,o)=>(e.markRanges(r,o),this),this.unmark=r=>(e.unmark(r),this),this}var Pf=ga,Zl=i.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),Lf=_`
|
|
8
8
|
.highlight-html-match {
|
|
9
|
-
background: ${
|
|
9
|
+
background: ${Zl};
|
|
10
10
|
}
|
|
11
|
-
`;function
|
|
11
|
+
`;function ba(t,e,r){var o,n;let a=t.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new Pf(t);if(s.unmark(),e&&e.trim()){let l={className:(o=r?.className)!==null&&o!==void 0?o:"highlight-html-match"};r?.attributes!=null&&(l.each=p=>{for(let h in r.attributes)p.setAttribute(h,r.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}))}}t.setAttribute("data-highlight-html-query",e??"")}var Sa={};Q(Sa,{noTextInputDefaultClearButton:()=>va,noTextSelect:()=>dr,safariEllipsisFix:()=>Co,wordWrap:()=>$f});var dr=_`
|
|
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
|
+
`,$f=_`
|
|
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
|
+
`,Co=_`
|
|
33
33
|
.ft-safari-ellipsis-fix {
|
|
34
34
|
margin-right: 0;
|
|
35
35
|
|
|
@@ -40,27 +40,27 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
40
40
|
display: inline-block;
|
|
41
41
|
width: 0;
|
|
42
42
|
}
|
|
43
|
-
`,
|
|
43
|
+
`,va=_`
|
|
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 Kl={};var va={};Q(va,{ParametrizedLabelResolver:()=>Oo});var Oo=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var o,n;e=this.resolvePluralKey(e,r);let a=(n=(o=this.labels[e])!==null&&o!==void 0?o:this.defaultLabels[e])!==null&&n!==void 0?n:"";return t.replaceParameters(a,...r)}static replaceParameters(e,...r){return r.forEach((o,n)=>e=e.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(o,s))),e}resolvePluralKey(e,r){for(let o of r)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,r){return e instanceof Date?t.formatDate(e,r):e??""}static formatDate(e,r){let o=n=>r?.includes("date")?e.toLocaleDateString(n):r?.includes("time")?e.toLocaleTimeString(n):e.toLocaleString(n);try{return o(document.documentElement.lang)}catch{return o()}}};var Ga={};Q(Ga,{FtCommandQueue:()=>Co,FtLitElementRedux:()=>Ve,FtReduxStore:()=>Ot,clearAllStores:()=>uu,isFtReduxStore:()=>dr,redux:()=>he,reduxEventListener:()=>Tf,reduxReactive:()=>_f});var _f=()=>(t,e)=>{var r;let o=t.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(r=o.reduxReactiveProperties)===null||r===void 0||r.add(e)},he=t=>{let e=t??{};return(r,o)=>{var n;let a={hasChanged:po,attribute:!1,...e};y(a)(r,o);let s=r.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})}},Tf=t=>(e,r)=>{let o=e.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(r,t)};var Co=class{constructor(){this.queue=[]}add(e,r=!1){r&&(this.queue=this.queue.filter(o=>o.type!==e.type)),this.queue.push(e)}consume(e){let r=this.queue.find(o=>o.type===e);return r&&(this.queue=this.queue.filter(o=>o!==r)),r}};function dr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Zl,ql,Yl,ui=Symbol("internalReduxEventsUnsubscribers"),It=Symbol("internalStoresUnsubscribers"),pr=Symbol("internalStores"),Ve=class extends F{constructor(){super(...arguments),this[Zl]=new Map,this[ql]=new Map,this[Yl]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(r=>e.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[pr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[pr].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[pr].get(e)}addStore(e,r){var o;r=(o=r??(dr(e)?e.name:void 0))!==null&&o!==void 0?o:"default-store",this.unsubscribeFromStore(r),this.setupStore(r,e)}removeStore(e){let r=typeof e=="string"?e:e.name;this.unsubscribeFromStore(r),this[pr].delete(r)}setupStore(e,r){this[pr].set(e,r),this.subscribeToStore(e,r),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[pr].forEach((e,r)=>this.subscribeToStore(r,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,r)=>{let o=this.constructor.getPropertyOptions(r);if(!o?.attribute||!this.hasAttribute(typeof o?.attribute=="string"?o.attribute:r)){let n=this.getStore(e.store);n&&(e.store?this[It].has(e.store):this[It].size>0)&&(this[r]=e.selector(n.getState(),this))}})}subscribeToStore(e,r){var o;this[It].set(e,r.subscribe(()=>this.updateFromStores())),dr(r)&&r.eventBus&&((o=this.reduxConstructor.reduxEventListeners)===null||o===void 0||o.forEach((n,a)=>{if(typeof this[a]=="function"&&(!n.store||r.name===n.store)){let s=l=>this[a](l);r.eventBus.addEventListener(n.eventName,s),this[ui].push(()=>r.eventBus.removeEventListener(n.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[It].forEach((e,r)=>this.unsubscribeFromStore(r)),this[ui].forEach(e=>e()),this[ui]=[]}unsubscribeFromStore(e){this[It].has(e)&&this[It].get(e)(),this[It].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Zl=It,ql=pr,Yl=ui;Ve.reduxProperties=new Map;Ve.reduxReactiveProperties=new Set;Ve.reduxEventListeners=new Map;function je(t){for(var e=arguments.length,r=Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];if(0)var n,a;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function St(t){return!!t&&!!t[oe]}function Xe(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var o=Object.getPrototypeOf(r);if(o===null)return!0;var n=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===Ff}(t)||Array.isArray(t)||!!t[oc]||!!(!((e=t.constructor)===null||e===void 0)&&e[oc])||_a(t)||Ta(t))}function fr(t,e,r){r===void 0&&(r=!1),Pr(t)===0?(r?Object.keys:Tr)(t).forEach(function(o){r&&typeof o=="symbol"||e(o,t[o],t)}):t.forEach(function(o,n){return e(n,o,t)})}function Pr(t){var e=t[oe];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:_a(t)?2:Ta(t)?3:0}function _r(t,e){return Pr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Pf(t,e){return Pr(t)===2?t.get(e):t[e]}function ic(t,e,r){var o=Pr(t);o===2?t.set(e,r):o===3?t.add(r):t[e]=r}function nc(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function _a(t){return Df&&t instanceof Map}function Ta(t){return Mf&&t instanceof Set}function kt(t){return t.o||t.t}function Pa(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=lc(t);delete e[oe];for(var r=Tr(e),o=0;o<r.length;o++){var n=r[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:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function $a(t,e){return e===void 0&&(e=!1),La(t)||St(t)||!Xe(t)||(Pr(t)>1&&(t.set=t.add=t.clear=t.delete=$f),Object.freeze(t),e&&fr(t,function(r,o){return $a(o,!0)},!0)),t}function $f(){je(2)}function La(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function at(t){var e=Na[t];return e||je(18,t),e}function Lf(t,e){Na[t]||(Na[t]=e)}function wa(){return wo}function Sa(t,e){e&&(at("Patches"),t.u=[],t.s=[],t.v=e)}function hi(t){Aa(t),t.p.forEach(If),t.p=null}function Aa(t){t===wo&&(wo=t.l)}function Xl(t){return wo={p:[],l:wo,h:t,m:!0,_:0}}function If(t){var e=t[oe];e.i===0||e.i===1?e.j():e.g=!0}function Oa(t,e){e._=e.p.length;var r=e.p[0],o=t!==void 0&&t!==r;return e.h.O||at("ES5").S(e,t,o),o?(r[oe].P&&(hi(e),je(4)),Xe(t)&&(t=mi(e,t),e.l||yi(e,t)),e.u&&at("Patches").M(r[oe].t,t,e.u,e.s)):t=mi(e,r,[]),hi(e),e.u&&e.v(e.u,e.s),t!==sc?t:void 0}function mi(t,e,r){if(La(e))return e;var o=e[oe];if(!o)return fr(e,function(l,c){return Jl(t,o,e,l,c,r)},!0),e;if(o.A!==t)return e;if(!o.P)return yi(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var n=o.i===4||o.i===5?o.o=Pa(o.k):o.o,a=n,s=!1;o.i===3&&(a=new Set(n),n.clear(),s=!0),fr(a,function(l,c){return Jl(t,o,n,l,c,r,s)}),yi(t,n,!1),r&&t.u&&at("Patches").N(o,r,t.u,t.s)}return o.o}function Jl(t,e,r,o,n,a,s){if(St(n)){var l=mi(t,n,a&&e&&e.i!==3&&!_r(e.R,o)?a.concat(o):void 0);if(ic(r,o,l),!St(l))return;t.m=!1}else s&&r.add(n);if(Xe(n)&&!La(n)){if(!t.h.D&&t._<1)return;mi(t,n),e&&e.A.l||yi(t,n)}}function yi(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&$a(e,r)}function Ca(t,e){var r=t[oe];return(r?kt(r):t)[e]}function Ql(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var o=Object.getOwnPropertyDescriptor(r,e);if(o)return o;r=Object.getPrototypeOf(r)}}function Dt(t){t.P||(t.P=!0,t.l&&Dt(t.l))}function Ea(t){t.o||(t.o=Pa(t.t))}function Ra(t,e,r){var o=_a(e)?at("MapSet").F(e,r):Ta(e)?at("MapSet").T(e,r):t.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:wa(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},c=l,p=Ao;s&&(c=[l],p=Eo);var h=Proxy.revocable(c,p),u=h.revoke,g=h.proxy;return l.k=g,l.j=u,g}(e,r):at("ES5").J(e,r);return(r?r.A:wa()).p.push(o),o}function kf(t){return St(t)||je(22,t),function e(r){if(!Xe(r))return r;var o,n=r[oe],a=Pr(r);if(n){if(!n.P&&(n.i<4||!at("ES5").K(n)))return n.t;n.I=!0,o=ec(r,a),n.I=!1}else o=ec(r,a);return fr(o,function(s,l){n&&Pf(n.t,s)===l||ic(o,s,e(l))}),a===3?new Set(o):o}(t)}function ec(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Pa(t)}function ac(){function t(s,l){var c=a[s];return c?c.enumerable=l:a[s]=c={configurable:!0,enumerable:l,get:function(){var p=this[oe];return Ao.get(p,s)},set:function(p){var h=this[oe];Ao.set(h,s,p)}},c}function e(s){for(var l=s.length-1;l>=0;l--){var c=s[l][oe];if(!c.P)switch(c.i){case 5:o(c)&&Dt(c);break;case 4:r(c)&&Dt(c)}}}function r(s){for(var l=s.t,c=s.k,p=Tr(c),h=p.length-1;h>=0;h--){var u=p[h];if(u!==oe){var g=l[u];if(g===void 0&&!_r(l,u))return!0;var b=c[u],x=b&&b[oe];if(x?x.t!==g:!nc(b,g))return!0}}var E=!!l[oe];return p.length!==Tr(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&&je(3,JSON.stringify(kt(s)))}var a={};Lf("ES5",{J:function(s,l){var c=Array.isArray(s),p=function(u,g){if(u){for(var b=Array(g.length),x=0;x<g.length;x++)Object.defineProperty(b,""+x,t(x,!0));return b}var E=lc(g);delete E[oe];for(var w=Tr(E),A=0;A<w.length;A++){var _=w[A];E[_]=t(_,u||!!E[_].enumerable)}return Object.create(Object.getPrototypeOf(g),E)}(c,s),h={i:c?5:4,A:l?l.A:wa(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,oe,{value:h,writable:!0}),p},S:function(s,l,c){c?St(l)&&l[oe].A===s&&e(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var u=h[oe];if(u){var g=u.t,b=u.k,x=u.R,E=u.i;if(E===4)fr(b,function(O){O!==oe&&(g[O]!==void 0||_r(g,O)?x[O]||p(b[O]):(x[O]=!0,Dt(u)))}),fr(g,function(O){b[O]!==void 0||_r(b,O)||(x[O]=!1,Dt(u))});else if(E===5){if(o(u)&&(Dt(u),x.length=!0),b.length<g.length)for(var w=b.length;w<g.length;w++)x[w]=!1;else for(var A=g.length;A<b.length;A++)x[A]=!0;for(var _=Math.min(b.length,g.length),S=0;S<_;S++)b.hasOwnProperty(S)||(x[S]=!0),x[S]===void 0&&p(b[S])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):o(s)}})}var tc,wo,Ia=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Df=typeof Map<"u",Mf=typeof Set<"u",rc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",sc=Ia?Symbol.for("immer-nothing"):((tc={})["immer-nothing"]=!0,tc),oc=Ia?Symbol.for("immer-draftable"):"__$immer_draftable",oe=Ia?Symbol.for("immer-state"):"__$immer_state";var Ff=""+Object.prototype.constructor,Tr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,lc=Object.getOwnPropertyDescriptors||function(t){var e={};return Tr(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},Na={},Ao={get:function(t,e){if(e===oe)return t;var r=kt(t);if(!_r(r,e))return function(n,a,s){var l,c=Ql(a,s);return c?"value"in c?c.value:(l=c.get)===null||l===void 0?void 0:l.call(n.k):void 0}(t,r,e);var o=r[e];return t.I||!Xe(o)?o:o===Ca(t.t,e)?(Ea(t),t.o[e]=Ra(t.A.h,o,t)):o},has:function(t,e){return e in kt(t)},ownKeys:function(t){return Reflect.ownKeys(kt(t))},set:function(t,e,r){var o=Ql(kt(t),e);if(o?.set)return o.set.call(t.k,r),!0;if(!t.P){var n=Ca(kt(t),e),a=n?.[oe];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(nc(r,n)&&(r!==void 0||_r(t.t,e)))return!0;Ea(t),Dt(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return Ca(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Ea(t),Dt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=kt(t),o=Reflect.getOwnPropertyDescriptor(r,e);return o&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:o.enumerable,value:r[e]}},defineProperty:function(){je(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){je(12)}},Eo={};fr(Ao,function(t,e){Eo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Eo.deleteProperty=function(t,e){return Eo.set.call(this,t,e,void 0)},Eo.set=function(t,e,r){return Ao.set.call(this,t[0],e,r,t[0])};var Uf=function(){function t(r){var o=this;this.O=rc,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 w=this;E===void 0&&(E=l);for(var A=arguments.length,_=Array(A>1?A-1:0),S=1;S<A;S++)_[S-1]=arguments[S];return c.produce(E,function(O){var C;return(C=a).call.apply(C,[w,O].concat(_))})}}var p;if(typeof a!="function"&&je(6),s!==void 0&&typeof s!="function"&&je(7),Xe(n)){var h=Xl(o),u=Ra(o,n,void 0),g=!0;try{p=a(u),g=!1}finally{g?hi(h):Aa(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(E){return Sa(h,s),Oa(E,h)},function(E){throw hi(h),E}):(Sa(h,s),Oa(p,h))}if(!n||typeof n!="object"){if((p=a(n))===void 0&&(p=n),p===sc&&(p=void 0),o.D&&$a(p,!0),s){var b=[],x=[];at("Patches").M(n,p,b,x),s(b,x)}return p}je(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(p){for(var h=arguments.length,u=Array(h>1?h-1:0),g=1;g<h;g++)u[g-1]=arguments[g];return o.produceWithPatches(p,function(b){return n.apply(void 0,[b].concat(u))})};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 r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){Xe(r)||je(8),St(r)&&(r=kf(r));var o=Xl(this),n=Ra(this,r,void 0);return n[oe].C=!0,Aa(o),n},e.finishDraft=function(r,o){var n=r&&r[oe],a=n.A;return Sa(a,o),Oa(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!rc&&je(20),this.O=r},e.applyPatches=function(r,o){var n;for(n=o.length-1;n>=0;n--){var a=o[n];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}n>-1&&(o=o.slice(n+1));var s=at("Patches").$;return St(r)?s(r,o):this.produce(r,function(l){return s(l,o)})},t}(),He=new Uf,Bf=He.produce,Mb=He.produceWithPatches.bind(He),Fb=He.setAutoFreeze.bind(He),Ub=He.setUseProxies.bind(He),Bb=He.applyPatches.bind(He),zb=He.createDraft.bind(He),Hb=He.finishDraft.bind(He),gi=Bf;function Mt(t){"@babel/helpers - typeof";return Mt=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},Mt(t)}function ka(t,e){if(Mt(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var o=r.call(t,e||"default");if(Mt(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Da(t){var e=ka(t,"string");return Mt(e)==="symbol"?e:String(e)}function Ma(t,e,r){return e=Da(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,o)}return r}function bi(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?cc(Object(r),!0).forEach(function(o){Ma(t,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cc(Object(r)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))})}return t}function Ee(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var dc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Fa=function(){return Math.random().toString(36).substring(7).split("").join(".")},xi={INIT:"@@redux/INIT"+Fa(),REPLACE:"@@redux/REPLACE"+Fa(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Fa()}};function zf(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Ua(t,e,r){var o;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Ee(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Ee(1));return r(Ua)(t,e)}if(typeof t!="function")throw new Error(Ee(2));var n=t,a=e,s=[],l=s,c=!1;function p(){l===s&&(l=s.slice())}function h(){if(c)throw new Error(Ee(3));return a}function u(E){if(typeof E!="function")throw new Error(Ee(4));if(c)throw new Error(Ee(5));var w=!0;return p(),l.push(E),function(){if(w){if(c)throw new Error(Ee(6));w=!1,p();var _=l.indexOf(E);l.splice(_,1),s=null}}}function g(E){if(!zf(E))throw new Error(Ee(7));if(typeof E.type>"u")throw new Error(Ee(8));if(c)throw new Error(Ee(9));try{c=!0,a=n(a,E)}finally{c=!1}for(var w=s=l,A=0;A<w.length;A++){var _=w[A];_()}return E}function b(E){if(typeof E!="function")throw new Error(Ee(10));n=E,g({type:xi.REPLACE})}function x(){var E,w=u;return E={subscribe:function(_){if(typeof _!="object"||_===null)throw new Error(Ee(11));function S(){_.next&&_.next(h())}S();var O=w(S);return{unsubscribe:O}}},E[dc]=function(){return this},E}return g({type:xi.INIT}),o={dispatch:g,subscribe:u,getState:h,replaceReducer:b},o[dc]=x,o}function Hf(t){Object.keys(t).forEach(function(e){var r=t[e],o=r(void 0,{type:xi.INIT});if(typeof o>"u")throw new Error(Ee(12));if(typeof r(void 0,{type:xi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ee(13))})}function pc(t){for(var e=Object.keys(t),r={},o=0;o<e.length;o++){var n=e[o];typeof t[n]=="function"&&(r[n]=t[n])}var a=Object.keys(r),s,l;try{Hf(r)}catch(c){l=c}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(0)var u;for(var g=!1,b={},x=0;x<a.length;x++){var E=a[x],w=r[E],A=p[E],_=w(A,h);if(typeof _>"u"){var S=h&&h.type;throw new Error(Ee(14))}b[E]=_,g=g||_!==A}return g=g||a.length!==Object.keys(p).length,g?b:p}}function $r(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];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 fc(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(o){return function(){var n=o.apply(void 0,arguments),a=function(){throw new Error(Ee(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(c){return c(s)});return a=$r.apply(void 0,l)(n.dispatch),bi(bi({},n),{},{dispatch:a})}}}function uc(t){var e=function(o){var n=o.dispatch,a=o.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,t):s(l)}}};return e}var hc=uc();hc.withExtraArgument=uc;var Ba=hc;var xc=function(){var t=function(e,r){return t=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])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function o(){this.constructor=e}e.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}}(),Wf=function(t,e){var r={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(;r;)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 r.label++,{value:p[1],done:!1};case 5:r.label++,n=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){r.label=p[1];break}if(p[0]===6&&r.label<a[1]){r.label=a[1],a=p;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(p);break}a[2]&&r.ops.pop(),r.trys.pop();continue}p=e.call(t,r)}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}}},Lr=function(t,e){for(var r=0,o=e.length,n=t.length;r<o;r++,n++)t[n]=e[r];return t},Vf=Object.defineProperty,jf=Object.defineProperties,Gf=Object.getOwnPropertyDescriptors,mc=Object.getOwnPropertySymbols,Kf=Object.prototype.hasOwnProperty,Zf=Object.prototype.propertyIsEnumerable,yc=function(t,e,r){return e in t?Vf(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},Ft=function(t,e){for(var r in e||(e={}))Kf.call(e,r)&&yc(t,r,e[r]);if(mc)for(var o=0,n=mc(e);o<n.length;o++){var r=n[o];Zf.call(e,r)&&yc(t,r,e[r])}return t},za=function(t,e){return jf(t,Gf(e))},qf=function(t,e,r){return new Promise(function(o,n){var a=function(c){try{l(r.next(c))}catch(p){n(p)}},s=function(c){try{l(r.throw(c))}catch(p){n(p)}},l=function(c){return c.done?o(c.value):Promise.resolve(c.value).then(a,s)};l((r=r.apply(t,e)).next())})};var Yf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?$r:$r.apply(null,arguments)},ax=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Xf(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}var Jf=function(t){xc(e,t);function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var n=t.apply(this,r)||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 r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Lr([void 0],r[0].concat(this)))):new(e.bind.apply(e,Lr([void 0],r.concat(this))))},e}(Array),Qf=function(t){xc(e,t);function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var n=t.apply(this,r)||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 r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Lr([void 0],r[0].concat(this)))):new(e.bind.apply(e,Lr([void 0],r.concat(this))))},e}(Array);function Va(t){return Xe(t)?gi(t,function(){}):t}function eu(t){return typeof t=="boolean"}function tu(){return function(e){return ru(e)}}function ru(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,o=t.immutableCheck,n=o===void 0?!0:o,a=t.serializableCheck,s=a===void 0?!0:a,l=new Jf;if(r&&(eu(r)?l.push(Ba):l.push(Ba.withExtraArgument(r.extraArgument))),0){if(n)var c;if(s)var p}return l}var Ha=!0;function vc(t){var e=tu(),r=t||{},o=r.reducer,n=o===void 0?void 0:o,a=r.middleware,s=a===void 0?e():a,l=r.devTools,c=l===void 0?!0:l,p=r.preloadedState,h=p===void 0?void 0:p,u=r.enhancers,g=u===void 0?void 0:u,b;if(typeof n=="function")b=n;else if(Xf(n))b=pc(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var x=s;if(typeof x=="function"&&(x=x(e),!Ha&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ha&&x.some(function(O){return typeof O!="function"}))throw new Error("each middleware provided to configureStore must be a function");var E=fc.apply(void 0,x),w=$r;c&&(w=Yf(Ft({trace:!Ha},typeof c=="object"&&c)));var A=new Qf(E),_=A;Array.isArray(g)?_=Lr([E],g):typeof g=="function"&&(_=g(A));var S=w.apply(void 0,_);return Ua(b,h,S)}function Ut(t,e){function r(){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 Ft(Ft({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:o[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(o){return o.type===t},r}function Sc(t){var e={},r=[],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 r.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return o=a,n}};return t(n),[e,r,o]}function ou(t){return typeof t=="function"}function iu(t,e,r,o){r===void 0&&(r=[]);var n=typeof e=="function"?Sc(e):[e,r,o],a=n[0],s=n[1],l=n[2],c;if(ou(t))c=function(){return Va(t())};else{var p=Va(t);c=function(){return p}}function h(u,g){u===void 0&&(u=c());var b=Lr([a[g.type]],s.filter(function(x){var E=x.matcher;return E(g)}).map(function(x){var E=x.reducer;return E}));return b.filter(function(x){return!!x}).length===0&&(b=[l]),b.reduce(function(x,E){if(E)if(St(x)){var w=x,A=E(w,g);return A===void 0?x:A}else{if(Xe(x))return gi(x,function(_){return E(_,g)});var A=E(x,g);if(A===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return A}return x},u)}return h.getInitialState=c,h}function nu(t,e){return t+"/"+e}function Oc(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:Va(t.initialState),o=t.reducers||{},n=Object.keys(o),a={},s={},l={};n.forEach(function(h){var u=o[h],g=nu(e,h),b,x;"reducer"in u?(b=u.reducer,x=u.prepare):b=u,a[h]=b,s[g]=b,l[h]=x?Ut(g,x):Ut(g)});function c(){var h=typeof t.extraReducers=="function"?Sc(t.extraReducers):[t.extraReducers],u=h[0],g=u===void 0?{}:u,b=h[1],x=b===void 0?[]:b,E=h[2],w=E===void 0?void 0:E,A=Ft(Ft({},g),s);return iu(r,function(_){for(var S in A)_.addCase(S,A[S]);for(var O=0,C=x;O<C.length;O++){var U=C[O];_.addMatcher(U.matcher,U.reducer)}w&&_.addDefaultCase(w)})}var p;return{name:e,reducer:function(h,u){return p||(p=c()),p(h,u)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=c()),p.getInitialState()}}}var au="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",su=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=au[Math.random()*64|0];return e},lu=["name","message","stack","code"],Wa=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),gc=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),cu=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,o=lu;r<o.length;r++){var n=o[r];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},dx=function(){function t(e,r,o){var n=Ut(e+"/fulfilled",function(h,u,g,b){return{payload:h,meta:za(Ft({},b||{}),{arg:g,requestId:u,requestStatus:"fulfilled"})}}),a=Ut(e+"/pending",function(h,u,g){return{payload:void 0,meta:za(Ft({},g||{}),{arg:u,requestId:h,requestStatus:"pending"})}}),s=Ut(e+"/rejected",function(h,u,g,b,x){return{payload:b,error:(o&&o.serializeError||cu)(h||"Rejected"),meta:za(Ft({},x||{}),{arg:g,requestId:u,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(u,g,b){var x=o?.idGenerator?o.idGenerator(h):su(),E=new c,w,A=!1;function _(O){w=O,E.abort()}var S=function(){return qf(this,null,function(){var O,C,U,Y,ee,J,D;return Wf(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),Y=(O=o?.condition)==null?void 0:O.call(o,h,{getState:g,extra:b}),pu(Y)?[4,Y]:[3,2];case 1:Y=m.sent(),m.label=2;case 2:if(Y===!1||E.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return A=!0,ee=new Promise(function(v,k){return E.signal.addEventListener("abort",function(){return k({name:"AbortError",message:w||"Aborted"})})}),u(a(x,h,(C=o?.getPendingMeta)==null?void 0:C.call(o,{requestId:x,arg:h},{getState:g,extra:b}))),[4,Promise.race([ee,Promise.resolve(r(h,{dispatch:u,getState:g,extra:b,requestId:x,signal:E.signal,abort:_,rejectWithValue:function(v,k){return new Wa(v,k)},fulfillWithValue:function(v,k){return new gc(v,k)}})).then(function(v){if(v instanceof Wa)throw v;return v instanceof gc?n(v.payload,x,h,v.meta):n(v,x,h)})])];case 3:return U=m.sent(),[3,5];case 4:return J=m.sent(),U=J instanceof Wa?s(null,x,h,J.payload,J.meta):s(J,x,h),[3,5];case 5:return D=o&&!o.dispatchConditionRejection&&s.match(U)&&U.meta.condition,D||u(U),[2,U]}})})}();return Object.assign(S,{abort:_,requestId:x,arg:h,unwrap:function(){return S.then(du)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t}();function du(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function pu(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Cc="listener",Ec="completed",wc="cancelled",px="task-"+wc,fx="task-"+Ec,ux=Cc+"-"+wc,hx=Cc+"-"+Ec;var ja="listenerMiddleware";var mx=Ut(ja+"/add"),yx=Ut(ja+"/removeAll"),gx=Ut(ja+"/remove");var bc,bx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(bc||(bc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},fu=function(t){return function(e){setTimeout(e,t)}},xx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:fu(10);ac();window.ftReduxStores||(window.ftReduxStores={});var Ot=class t{static get(e){var r;let o=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[o];if(dr(a))return a;if(n==null)return;let s=Oc({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),l=vc({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 t(s,l)}constructor(e,r){this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Co,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 uu(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))dr(e)&&e.clear()}var qa={};Q(qa,{scrollHelper:()=>hu});var Ka,vi=new Map,Za=class{lock(e,r){if(r){let o=vi.get(r);if(o==null||o===e)return vi.set(r,e),r}}release(e,r){r&&vi.get(r)===e&&vi.delete(r)}findFirstScrollableParent(e){let r,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)}r=(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),r}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,r){let o=0;for(;r&&r.offsetParent!==e.offsetParent;)o+=r.offsetTop,r=r.offsetParent;return o+r.offsetTop-e.offsetTop}computeTopOffsetRatio(e,r){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(e,r){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=bn(0,(s-o.scrollTop)/(s-a),1),c=this.computeTopOffsetRatio(r?.position,l)*(a-s)+s;o.scrollTo({behavior:r?.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=(Ka=window.FluidTopicsScrollHelper)!==null&&Ka!==void 0?Ka:new Za;var hu=window.FluidTopicsScrollHelper;var Ya={};Q(Ya,{shadowQuerySelector:()=>mu,shadowQuerySelectorAll:()=>yu});function mu(t,e,...r){var o;let n=t.querySelector(e);for(let a of r)n=(o=n?.shadowRoot)===null||o===void 0?void 0:o.querySelector(a);return n}function yu(t,e,...r){let o=[...t.querySelectorAll(e)];for(let n of r)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 Xa={};Q(Xa,{serializeRequest:()=>bu});function gu(t){return`"${t}"`}function bu(t,e){var r,o,n,a,s,l,c,p,h;let u=new URLSearchParams({"content-lang":(r=e.contentLocale)!==null&&r!==void 0?r:"all"});((o=e.query)===null||o===void 0?void 0:o.length)>0&&u.append("query",e.query),e.scope&&e.scope!=="DEFAULT"&&u.append("scope",e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&u.append("virtual-field",e.virtualField.toLowerCase()),((n=e.sort)===null||n===void 0?void 0:n.length)>0&&e.sort[0].key==="ft:lastEdition"&&u.append("sort","last_update");let g=(s=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(w=>w.valueFilter))!==null&&s!==void 0?s:[];if(g.length>0){let w=g.map(A=>{var _,S;let O=((S=(_=A.valueFilter)===null||_===void 0?void 0:_.values)!==null&&S!==void 0?S:[]).map(C=>C.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*")).map(C=>encodeURIComponent(gu(C))).join("_");return`${A.key}~${O}`}).join("*");u.append("value-filters",w)}let b=(c=(l=e.metadataFilters)===null||l===void 0?void 0:l.filter(w=>w.dateFilter))!==null&&c!==void 0?c:[];if(b.length>0){let w=b.map(A=>{var _;return`${A.key}~${(_=A.dateFilter)===null||_===void 0?void 0:_.type.toLowerCase()}`}).join("*");u.append("date-filters",w)}let x=(h=(p=e.metadataFilters)===null||p===void 0?void 0:p.filter(w=>w.rangeFilter))!==null&&h!==void 0?h:[];if(x.length>0){let w=x.map(A=>{var _,S;return`${A.key}~${(_=A.rangeFilter)===null||_===void 0?void 0:_.from}_${(S=A.rangeFilter)===null||S===void 0?void 0:S.to}`}).join("*");u.append("range-filters",w)}return new URL(`${t.replace(/\/+$/,"")}/search?${u.toString()}`).href}var Qa={};Q(Qa,{toFtFormComponent:()=>Ja});var Si=Symbol("elementInternals");function Ja(t,e){class r extends t{static get formAssociated(){return!0}get form(){return this[Si].form}constructor(...n){super(n),this[Si]=this.attachInternals(),this[Si].role=e}setFormValue(n){this[Si].setFormValue(n)}}return r}var es={};Q(es,{DateFormatter:()=>Ir});var Ir=class{static format(e,r,o,n){return window.moment?window.moment(e).locale(r).format(this.getDateFormat(o,n)):e}static getDateFormat(e,r){return e?r?"lll":"ll":r?"L LT":"L"}};var ts,rs,os,is,ur=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((os=(rs=(ts=window.safari)===null||ts===void 0?void 0:ts.pushNotification)===null||rs===void 0?void 0:rs.toString())!==null&&os!==void 0?os:"")==="[object SafariRemoteNotification]",xu="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(is=window.ftGlobals)!==null&&is!==void 0?is:{lit:rn,litDecorators:sn,litRepeat:ln,litClassMap:cn,litStyleMap:dn,litUnsafeHTML:fn,wcUtils:{...hn,...un,...yn,...es,...gn,...vn,...qn,...Qn,...pa,...Zn,...ha,...ua,...jl,...xn,...ga,...xa,...Kl,...va,...Ga,...fa,...qa,...Ya,...Xa,...Qa,isSafari:ur,isTouchScreen:xu,setVariable:$}};var vu={spacing:i.create("--ft-search-selected-facets-spacing","","SIZE","8px")},Ac=T`
|
|
50
|
+
`;var ql={};var Oa={};Q(Oa,{ParametrizedLabelResolver:()=>Eo});var Eo=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var o,n;e=this.resolvePluralKey(e,r);let a=(n=(o=this.labels[e])!==null&&o!==void 0?o:this.defaultLabels[e])!==null&&n!==void 0?n:"";return t.replaceParameters(a,...r)}static replaceParameters(e,...r){return r.forEach((o,n)=>e=e.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(o,s))),e}resolvePluralKey(e,r){for(let o of r)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,r){return e instanceof Date?t.formatDate(e,r):e??""}static formatDate(e,r){let o=n=>r?.includes("date")?e.toLocaleDateString(n):r?.includes("time")?e.toLocaleTimeString(n):e.toLocaleString(n);try{return o(document.documentElement.lang)}catch{return o()}}};var Za={};Q(Za,{FtCommandQueue:()=>wo,FtLitElementRedux:()=>je,FtReduxStore:()=>Ct,clearAllStores:()=>bu,isFtReduxStore:()=>pr,redux:()=>me,reduxEventListener:()=>kf,reduxReactive:()=>If});var If=()=>(t,e)=>{var r;let o=t.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(r=o.reduxReactiveProperties)===null||r===void 0||r.add(e)},me=t=>{let e=t??{};return(r,o)=>{var n;let a={hasChanged:uo,attribute:!1,...e};g(a)(r,o);let s=r.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})}},kf=t=>(e,r)=>{let o=e.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(r,t)};var wo=class{constructor(){this.queue=[]}add(e,r=!1){r&&(this.queue=this.queue.filter(o=>o.type!==e.type)),this.queue.push(e)}consume(e){let r=this.queue.find(o=>o.type===e);return r&&(this.queue=this.queue.filter(o=>o!==r)),r}};function pr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Yl,Xl,Jl,mi=Symbol("internalReduxEventsUnsubscribers"),kt=Symbol("internalStoresUnsubscribers"),fr=Symbol("internalStores"),je=class extends U{constructor(){super(...arguments),this[Yl]=new Map,this[Xl]=new Map,this[Jl]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(r=>e.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[fr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[fr].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[fr].get(e)}addStore(e,r){var o;r=(o=r??(pr(e)?e.name:void 0))!==null&&o!==void 0?o:"default-store",this.unsubscribeFromStore(r),this.setupStore(r,e)}removeStore(e){let r=typeof e=="string"?e:e.name;this.unsubscribeFromStore(r),this[fr].delete(r)}setupStore(e,r){this[fr].set(e,r),this.subscribeToStore(e,r),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[fr].forEach((e,r)=>this.subscribeToStore(r,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,r)=>{let o=this.constructor.getPropertyOptions(r);if(!o?.attribute||!this.hasAttribute(typeof o?.attribute=="string"?o.attribute:r)){let n=this.getStore(e.store);n&&(e.store?this[kt].has(e.store):this[kt].size>0)&&(this[r]=e.selector(n.getState(),this))}})}subscribeToStore(e,r){var o;this[kt].set(e,r.subscribe(()=>this.updateFromStores())),pr(r)&&r.eventBus&&((o=this.reduxConstructor.reduxEventListeners)===null||o===void 0||o.forEach((n,a)=>{if(typeof this[a]=="function"&&(!n.store||r.name===n.store)){let s=l=>this[a](l);r.eventBus.addEventListener(n.eventName,s),this[mi].push(()=>r.eventBus.removeEventListener(n.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[kt].forEach((e,r)=>this.unsubscribeFromStore(r)),this[mi].forEach(e=>e()),this[mi]=[]}unsubscribeFromStore(e){this[kt].has(e)&&this[kt].get(e)(),this[kt].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Yl=kt,Xl=fr,Jl=mi;je.reduxProperties=new Map;je.reduxReactiveProperties=new Set;je.reduxEventListeners=new Map;function Ge(t){for(var e=arguments.length,r=Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];if(0)var n,a;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ot(t){return!!t&&!!t[ie]}function Je(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var o=Object.getPrototypeOf(r);if(o===null)return!0;var n=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===Wf}(t)||Array.isArray(t)||!!t[nc]||!!(!((e=t.constructor)===null||e===void 0)&&e[nc])||Pa(t)||La(t))}function ur(t,e,r){r===void 0&&(r=!1),$r(t)===0?(r?Object.keys:Lr)(t).forEach(function(o){r&&typeof o=="symbol"||e(o,t[o],t)}):t.forEach(function(o,n){return e(n,o,t)})}function $r(t){var e=t[ie];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Pa(t)?2:La(t)?3:0}function Pr(t,e){return $r(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Df(t,e){return $r(t)===2?t.get(e):t[e]}function ac(t,e,r){var o=$r(t);o===2?t.set(e,r):o===3?t.add(r):t[e]=r}function sc(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Pa(t){return zf&&t instanceof Map}function La(t){return Hf&&t instanceof Set}function Dt(t){return t.o||t.t}function $a(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=dc(t);delete e[ie];for(var r=Lr(e),o=0;o<r.length;o++){var n=r[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:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function Ia(t,e){return e===void 0&&(e=!1),ka(t)||Ot(t)||!Je(t)||($r(t)>1&&(t.set=t.add=t.clear=t.delete=Ff),Object.freeze(t),e&&ur(t,function(r,o){return Ia(o,!0)},!0)),t}function Ff(){Ge(2)}function ka(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function st(t){var e=Ta[t];return e||Ge(18,t),e}function Mf(t,e){Ta[t]||(Ta[t]=e)}function Ra(){return Ro}function Ca(t,e){e&&(st("Patches"),t.u=[],t.s=[],t.v=e)}function yi(t){Na(t),t.p.forEach(Uf),t.p=null}function Na(t){t===Ro&&(Ro=t.l)}function Ql(t){return Ro={p:[],l:Ro,h:t,m:!0,_:0}}function Uf(t){var e=t[ie];e.i===0||e.i===1?e.j():e.g=!0}function Ea(t,e){e._=e.p.length;var r=e.p[0],o=t!==void 0&&t!==r;return e.h.O||st("ES5").S(e,t,o),o?(r[ie].P&&(yi(e),Ge(4)),Je(t)&&(t=gi(e,t),e.l||bi(e,t)),e.u&&st("Patches").M(r[ie].t,t,e.u,e.s)):t=gi(e,r,[]),yi(e),e.u&&e.v(e.u,e.s),t!==cc?t:void 0}function gi(t,e,r){if(ka(e))return e;var o=e[ie];if(!o)return ur(e,function(l,c){return ec(t,o,e,l,c,r)},!0),e;if(o.A!==t)return e;if(!o.P)return bi(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var n=o.i===4||o.i===5?o.o=$a(o.k):o.o,a=n,s=!1;o.i===3&&(a=new Set(n),n.clear(),s=!0),ur(a,function(l,c){return ec(t,o,n,l,c,r,s)}),bi(t,n,!1),r&&t.u&&st("Patches").N(o,r,t.u,t.s)}return o.o}function ec(t,e,r,o,n,a,s){if(Ot(n)){var l=gi(t,n,a&&e&&e.i!==3&&!Pr(e.R,o)?a.concat(o):void 0);if(ac(r,o,l),!Ot(l))return;t.m=!1}else s&&r.add(n);if(Je(n)&&!ka(n)){if(!t.h.D&&t._<1)return;gi(t,n),e&&e.A.l||bi(t,n)}}function bi(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Ia(e,r)}function wa(t,e){var r=t[ie];return(r?Dt(r):t)[e]}function tc(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var o=Object.getOwnPropertyDescriptor(r,e);if(o)return o;r=Object.getPrototypeOf(r)}}function Ft(t){t.P||(t.P=!0,t.l&&Ft(t.l))}function Aa(t){t.o||(t.o=$a(t.t))}function _a(t,e,r){var o=Pa(e)?st("MapSet").F(e,r):La(e)?st("MapSet").T(e,r):t.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:Ra(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},c=l,p=No;s&&(c=[l],p=Ao);var h=Proxy.revocable(c,p),u=h.revoke,y=h.proxy;return l.k=y,l.j=u,y}(e,r):st("ES5").J(e,r);return(r?r.A:Ra()).p.push(o),o}function Bf(t){return Ot(t)||Ge(22,t),function e(r){if(!Je(r))return r;var o,n=r[ie],a=$r(r);if(n){if(!n.P&&(n.i<4||!st("ES5").K(n)))return n.t;n.I=!0,o=rc(r,a),n.I=!1}else o=rc(r,a);return ur(o,function(s,l){n&&Df(n.t,s)===l||ac(o,s,e(l))}),a===3?new Set(o):o}(t)}function rc(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return $a(t)}function lc(){function t(s,l){var c=a[s];return c?c.enumerable=l:a[s]=c={configurable:!0,enumerable:l,get:function(){var p=this[ie];return No.get(p,s)},set:function(p){var h=this[ie];No.set(h,s,p)}},c}function e(s){for(var l=s.length-1;l>=0;l--){var c=s[l][ie];if(!c.P)switch(c.i){case 5:o(c)&&Ft(c);break;case 4:r(c)&&Ft(c)}}}function r(s){for(var l=s.t,c=s.k,p=Lr(c),h=p.length-1;h>=0;h--){var u=p[h];if(u!==ie){var y=l[u];if(y===void 0&&!Pr(l,u))return!0;var b=c[u],x=b&&b[ie];if(x?x.t!==y:!sc(b,y))return!0}}var C=!!l[ie];return p.length!==Lr(l).length+(C?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&&Ge(3,JSON.stringify(Dt(s)))}var a={};Mf("ES5",{J:function(s,l){var c=Array.isArray(s),p=function(u,y){if(u){for(var b=Array(y.length),x=0;x<y.length;x++)Object.defineProperty(b,""+x,t(x,!0));return b}var C=dc(y);delete C[ie];for(var P=Lr(C),w=0;w<P.length;w++){var N=P[w];C[N]=t(N,u||!!C[N].enumerable)}return Object.create(Object.getPrototypeOf(y),C)}(c,s),h={i:c?5:4,A:l?l.A:Ra(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,ie,{value:h,writable:!0}),p},S:function(s,l,c){c?Ot(l)&&l[ie].A===s&&e(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var u=h[ie];if(u){var y=u.t,b=u.k,x=u.R,C=u.i;if(C===4)ur(b,function(O){O!==ie&&(y[O]!==void 0||Pr(y,O)?x[O]||p(b[O]):(x[O]=!0,Ft(u)))}),ur(y,function(O){b[O]!==void 0||Pr(b,O)||(x[O]=!1,Ft(u))});else if(C===5){if(o(u)&&(Ft(u),x.length=!0),b.length<y.length)for(var P=b.length;P<y.length;P++)x[P]=!1;else for(var w=y.length;w<b.length;w++)x[w]=!0;for(var N=Math.min(b.length,y.length),S=0;S<N;S++)b.hasOwnProperty(S)||(x[S]=!0),x[S]===void 0&&p(b[S])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):o(s)}})}var oc,Ro,Da=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",zf=typeof Map<"u",Hf=typeof Set<"u",ic=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",cc=Da?Symbol.for("immer-nothing"):((oc={})["immer-nothing"]=!0,oc),nc=Da?Symbol.for("immer-draftable"):"__$immer_draftable",ie=Da?Symbol.for("immer-state"):"__$immer_state";var Wf=""+Object.prototype.constructor,Lr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,dc=Object.getOwnPropertyDescriptors||function(t){var e={};return Lr(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},Ta={},No={get:function(t,e){if(e===ie)return t;var r=Dt(t);if(!Pr(r,e))return function(n,a,s){var l,c=tc(a,s);return c?"value"in c?c.value:(l=c.get)===null||l===void 0?void 0:l.call(n.k):void 0}(t,r,e);var o=r[e];return t.I||!Je(o)?o:o===wa(t.t,e)?(Aa(t),t.o[e]=_a(t.A.h,o,t)):o},has:function(t,e){return e in Dt(t)},ownKeys:function(t){return Reflect.ownKeys(Dt(t))},set:function(t,e,r){var o=tc(Dt(t),e);if(o?.set)return o.set.call(t.k,r),!0;if(!t.P){var n=wa(Dt(t),e),a=n?.[ie];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(sc(r,n)&&(r!==void 0||Pr(t.t,e)))return!0;Aa(t),Ft(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return wa(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Aa(t),Ft(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=Dt(t),o=Reflect.getOwnPropertyDescriptor(r,e);return o&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:o.enumerable,value:r[e]}},defineProperty:function(){Ge(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ge(12)}},Ao={};ur(No,function(t,e){Ao[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Ao.deleteProperty=function(t,e){return Ao.set.call(this,t,e,void 0)},Ao.set=function(t,e,r){return No.set.call(this,t[0],e,r,t[0])};var Vf=function(){function t(r){var o=this;this.O=ic,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(C){var P=this;C===void 0&&(C=l);for(var w=arguments.length,N=Array(w>1?w-1:0),S=1;S<w;S++)N[S-1]=arguments[S];return c.produce(C,function(O){var E;return(E=a).call.apply(E,[P,O].concat(N))})}}var p;if(typeof a!="function"&&Ge(6),s!==void 0&&typeof s!="function"&&Ge(7),Je(n)){var h=Ql(o),u=_a(o,n,void 0),y=!0;try{p=a(u),y=!1}finally{y?yi(h):Na(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(C){return Ca(h,s),Ea(C,h)},function(C){throw yi(h),C}):(Ca(h,s),Ea(p,h))}if(!n||typeof n!="object"){if((p=a(n))===void 0&&(p=n),p===cc&&(p=void 0),o.D&&Ia(p,!0),s){var b=[],x=[];st("Patches").M(n,p,b,x),s(b,x)}return p}Ge(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(p){for(var h=arguments.length,u=Array(h>1?h-1:0),y=1;y<h;y++)u[y-1]=arguments[y];return o.produceWithPatches(p,function(b){return n.apply(void 0,[b].concat(u))})};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 r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){Je(r)||Ge(8),Ot(r)&&(r=Bf(r));var o=Ql(this),n=_a(this,r,void 0);return n[ie].C=!0,Na(o),n},e.finishDraft=function(r,o){var n=r&&r[ie],a=n.A;return Ca(a,o),Ea(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!ic&&Ge(20),this.O=r},e.applyPatches=function(r,o){var n;for(n=o.length-1;n>=0;n--){var a=o[n];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}n>-1&&(o=o.slice(n+1));var s=st("Patches").$;return Ot(r)?s(r,o):this.produce(r,function(l){return s(l,o)})},t}(),We=new Vf,jf=We.produce,Vb=We.produceWithPatches.bind(We),jb=We.setAutoFreeze.bind(We),Gb=We.setUseProxies.bind(We),Kb=We.applyPatches.bind(We),Zb=We.createDraft.bind(We),qb=We.finishDraft.bind(We),xi=jf;function Mt(t){"@babel/helpers - typeof";return Mt=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},Mt(t)}function Fa(t,e){if(Mt(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var o=r.call(t,e||"default");if(Mt(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ma(t){var e=Fa(t,"string");return Mt(e)==="symbol"?e:String(e)}function Ua(t,e,r){return e=Ma(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function pc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,o)}return r}function vi(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?pc(Object(r),!0).forEach(function(o){Ua(t,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pc(Object(r)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))})}return t}function we(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var fc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ba=function(){return Math.random().toString(36).substring(7).split("").join(".")},Si={INIT:"@@redux/INIT"+Ba(),REPLACE:"@@redux/REPLACE"+Ba(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ba()}};function Gf(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function za(t,e,r){var o;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(we(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(we(1));return r(za)(t,e)}if(typeof t!="function")throw new Error(we(2));var n=t,a=e,s=[],l=s,c=!1;function p(){l===s&&(l=s.slice())}function h(){if(c)throw new Error(we(3));return a}function u(C){if(typeof C!="function")throw new Error(we(4));if(c)throw new Error(we(5));var P=!0;return p(),l.push(C),function(){if(P){if(c)throw new Error(we(6));P=!1,p();var N=l.indexOf(C);l.splice(N,1),s=null}}}function y(C){if(!Gf(C))throw new Error(we(7));if(typeof C.type>"u")throw new Error(we(8));if(c)throw new Error(we(9));try{c=!0,a=n(a,C)}finally{c=!1}for(var P=s=l,w=0;w<P.length;w++){var N=P[w];N()}return C}function b(C){if(typeof C!="function")throw new Error(we(10));n=C,y({type:Si.REPLACE})}function x(){var C,P=u;return C={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(we(11));function S(){N.next&&N.next(h())}S();var O=P(S);return{unsubscribe:O}}},C[fc]=function(){return this},C}return y({type:Si.INIT}),o={dispatch:y,subscribe:u,getState:h,replaceReducer:b},o[fc]=x,o}function Kf(t){Object.keys(t).forEach(function(e){var r=t[e],o=r(void 0,{type:Si.INIT});if(typeof o>"u")throw new Error(we(12));if(typeof r(void 0,{type:Si.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(we(13))})}function uc(t){for(var e=Object.keys(t),r={},o=0;o<e.length;o++){var n=e[o];typeof t[n]=="function"&&(r[n]=t[n])}var a=Object.keys(r),s,l;try{Kf(r)}catch(c){l=c}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(0)var u;for(var y=!1,b={},x=0;x<a.length;x++){var C=a[x],P=r[C],w=p[C],N=P(w,h);if(typeof N>"u"){var S=h&&h.type;throw new Error(we(14))}b[C]=N,y=y||N!==w}return y=y||a.length!==Object.keys(p).length,y?b:p}}function Ir(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];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 hc(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(o){return function(){var n=o.apply(void 0,arguments),a=function(){throw new Error(we(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(c){return c(s)});return a=Ir.apply(void 0,l)(n.dispatch),vi(vi({},n),{},{dispatch:a})}}}function mc(t){var e=function(o){var n=o.dispatch,a=o.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,t):s(l)}}};return e}var yc=mc();yc.withExtraArgument=mc;var Ha=yc;var Sc=function(){var t=function(e,r){return t=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])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function o(){this.constructor=e}e.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}}(),Zf=function(t,e){var r={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(;r;)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 r.label++,{value:p[1],done:!1};case 5:r.label++,n=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){r.label=p[1];break}if(p[0]===6&&r.label<a[1]){r.label=a[1],a=p;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(p);break}a[2]&&r.ops.pop(),r.trys.pop();continue}p=e.call(t,r)}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}}},kr=function(t,e){for(var r=0,o=e.length,n=t.length;r<o;r++,n++)t[n]=e[r];return t},qf=Object.defineProperty,Yf=Object.defineProperties,Xf=Object.getOwnPropertyDescriptors,gc=Object.getOwnPropertySymbols,Jf=Object.prototype.hasOwnProperty,Qf=Object.prototype.propertyIsEnumerable,bc=function(t,e,r){return e in t?qf(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},Ut=function(t,e){for(var r in e||(e={}))Jf.call(e,r)&&bc(t,r,e[r]);if(gc)for(var o=0,n=gc(e);o<n.length;o++){var r=n[o];Qf.call(e,r)&&bc(t,r,e[r])}return t},Wa=function(t,e){return Yf(t,Xf(e))},eu=function(t,e,r){return new Promise(function(o,n){var a=function(c){try{l(r.next(c))}catch(p){n(p)}},s=function(c){try{l(r.throw(c))}catch(p){n(p)}},l=function(c){return c.done?o(c.value):Promise.resolve(c.value).then(a,s)};l((r=r.apply(t,e)).next())})};var tu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ir:Ir.apply(null,arguments)},ux=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function ru(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}var ou=function(t){Sc(e,t);function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var n=t.apply(this,r)||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 r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,kr([void 0],r[0].concat(this)))):new(e.bind.apply(e,kr([void 0],r.concat(this))))},e}(Array),iu=function(t){Sc(e,t);function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var n=t.apply(this,r)||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 r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,kr([void 0],r[0].concat(this)))):new(e.bind.apply(e,kr([void 0],r.concat(this))))},e}(Array);function Ga(t){return Je(t)?xi(t,function(){}):t}function nu(t){return typeof t=="boolean"}function au(){return function(e){return su(e)}}function su(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,o=t.immutableCheck,n=o===void 0?!0:o,a=t.serializableCheck,s=a===void 0?!0:a,l=new ou;if(r&&(nu(r)?l.push(Ha):l.push(Ha.withExtraArgument(r.extraArgument))),0){if(n)var c;if(s)var p}return l}var Va=!0;function Oc(t){var e=au(),r=t||{},o=r.reducer,n=o===void 0?void 0:o,a=r.middleware,s=a===void 0?e():a,l=r.devTools,c=l===void 0?!0:l,p=r.preloadedState,h=p===void 0?void 0:p,u=r.enhancers,y=u===void 0?void 0:u,b;if(typeof n=="function")b=n;else if(ru(n))b=uc(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var x=s;if(typeof x=="function"&&(x=x(e),!Va&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Va&&x.some(function(O){return typeof O!="function"}))throw new Error("each middleware provided to configureStore must be a function");var C=hc.apply(void 0,x),P=Ir;c&&(P=tu(Ut({trace:!Va},typeof c=="object"&&c)));var w=new iu(C),N=w;Array.isArray(y)?N=kr([C],y):typeof y=="function"&&(N=y(w));var S=P.apply(void 0,N);return za(b,h,S)}function Bt(t,e){function r(){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 Ut(Ut({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:o[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(o){return o.type===t},r}function Cc(t){var e={},r=[],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 r.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return o=a,n}};return t(n),[e,r,o]}function lu(t){return typeof t=="function"}function cu(t,e,r,o){r===void 0&&(r=[]);var n=typeof e=="function"?Cc(e):[e,r,o],a=n[0],s=n[1],l=n[2],c;if(lu(t))c=function(){return Ga(t())};else{var p=Ga(t);c=function(){return p}}function h(u,y){u===void 0&&(u=c());var b=kr([a[y.type]],s.filter(function(x){var C=x.matcher;return C(y)}).map(function(x){var C=x.reducer;return C}));return b.filter(function(x){return!!x}).length===0&&(b=[l]),b.reduce(function(x,C){if(C)if(Ot(x)){var P=x,w=C(P,y);return w===void 0?x:w}else{if(Je(x))return xi(x,function(N){return C(N,y)});var w=C(x,y);if(w===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return w}return x},u)}return h.getInitialState=c,h}function du(t,e){return t+"/"+e}function Ec(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:Ga(t.initialState),o=t.reducers||{},n=Object.keys(o),a={},s={},l={};n.forEach(function(h){var u=o[h],y=du(e,h),b,x;"reducer"in u?(b=u.reducer,x=u.prepare):b=u,a[h]=b,s[y]=b,l[h]=x?Bt(y,x):Bt(y)});function c(){var h=typeof t.extraReducers=="function"?Cc(t.extraReducers):[t.extraReducers],u=h[0],y=u===void 0?{}:u,b=h[1],x=b===void 0?[]:b,C=h[2],P=C===void 0?void 0:C,w=Ut(Ut({},y),s);return cu(r,function(N){for(var S in w)N.addCase(S,w[S]);for(var O=0,E=x;O<E.length;O++){var F=E[O];N.addMatcher(F.matcher,F.reducer)}P&&N.addDefaultCase(P)})}var p;return{name:e,reducer:function(h,u){return p||(p=c()),p(h,u)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=c()),p.getInitialState()}}}var pu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",fu=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=pu[Math.random()*64|0];return e},uu=["name","message","stack","code"],ja=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),xc=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),hu=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,o=uu;r<o.length;r++){var n=o[r];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},gx=function(){function t(e,r,o){var n=Bt(e+"/fulfilled",function(h,u,y,b){return{payload:h,meta:Wa(Ut({},b||{}),{arg:y,requestId:u,requestStatus:"fulfilled"})}}),a=Bt(e+"/pending",function(h,u,y){return{payload:void 0,meta:Wa(Ut({},y||{}),{arg:u,requestId:h,requestStatus:"pending"})}}),s=Bt(e+"/rejected",function(h,u,y,b,x){return{payload:b,error:(o&&o.serializeError||hu)(h||"Rejected"),meta:Wa(Ut({},x||{}),{arg:y,requestId:u,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(u,y,b){var x=o?.idGenerator?o.idGenerator(h):fu(),C=new c,P,w=!1;function N(O){P=O,C.abort()}var S=function(){return eu(this,null,function(){var O,E,F,Y,ee,J,D;return Zf(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),Y=(O=o?.condition)==null?void 0:O.call(o,h,{getState:y,extra:b}),yu(Y)?[4,Y]:[3,2];case 1:Y=m.sent(),m.label=2;case 2:if(Y===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return w=!0,ee=new Promise(function(v,k){return C.signal.addEventListener("abort",function(){return k({name:"AbortError",message:P||"Aborted"})})}),u(a(x,h,(E=o?.getPendingMeta)==null?void 0:E.call(o,{requestId:x,arg:h},{getState:y,extra:b}))),[4,Promise.race([ee,Promise.resolve(r(h,{dispatch:u,getState:y,extra:b,requestId:x,signal:C.signal,abort:N,rejectWithValue:function(v,k){return new ja(v,k)},fulfillWithValue:function(v,k){return new xc(v,k)}})).then(function(v){if(v instanceof ja)throw v;return v instanceof xc?n(v.payload,x,h,v.meta):n(v,x,h)})])];case 3:return F=m.sent(),[3,5];case 4:return J=m.sent(),F=J instanceof ja?s(null,x,h,J.payload,J.meta):s(J,x,h),[3,5];case 5:return D=o&&!o.dispatchConditionRejection&&s.match(F)&&F.meta.condition,D||u(F),[2,F]}})})}();return Object.assign(S,{abort:N,requestId:x,arg:h,unwrap:function(){return S.then(mu)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t}();function mu(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function yu(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var wc="listener",Ac="completed",Rc="cancelled",bx="task-"+Rc,xx="task-"+Ac,vx=wc+"-"+Rc,Sx=wc+"-"+Ac;var Ka="listenerMiddleware";var Ox=Bt(Ka+"/add"),Cx=Bt(Ka+"/removeAll"),Ex=Bt(Ka+"/remove");var vc,wx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(vc||(vc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},gu=function(t){return function(e){setTimeout(e,t)}},Ax=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:gu(10);lc();window.ftReduxStores||(window.ftReduxStores={});var Ct=class t{static get(e){var r;let o=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[o];if(pr(a))return a;if(n==null)return;let s=Ec({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),l=Oc({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 t(s,l)}constructor(e,r){this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new wo,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 bu(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))pr(e)&&e.clear()}var Xa={};Q(Xa,{scrollHelper:()=>xu});var qa,Oi=new Map,Ya=class{lock(e,r){if(r){let o=Oi.get(r);if(o==null||o===e)return Oi.set(r,e),r}}release(e,r){r&&Oi.get(r)===e&&Oi.delete(r)}findFirstScrollableParent(e){let r,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)}r=(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),r}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,r){let o=0;for(;r&&r.offsetParent!==e.offsetParent;)o+=r.offsetTop,r=r.offsetParent;return o+r.offsetTop-e.offsetTop}computeTopOffsetRatio(e,r){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(e,r){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=vn(0,(s-o.scrollTop)/(s-a),1),c=this.computeTopOffsetRatio(r?.position,l)*(a-s)+s;o.scrollTo({behavior:r?.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=(qa=window.FluidTopicsScrollHelper)!==null&&qa!==void 0?qa:new Ya;var xu=window.FluidTopicsScrollHelper;var Ja={};Q(Ja,{shadowQuerySelector:()=>vu,shadowQuerySelectorAll:()=>Su});function vu(t,e,...r){var o;let n=t.querySelector(e);for(let a of r)n=(o=n?.shadowRoot)===null||o===void 0?void 0:o.querySelector(a);return n}function Su(t,e,...r){let o=[...t.querySelectorAll(e)];for(let n of r)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 Qa={};Q(Qa,{SearchPlaceConverter:()=>wi,SearchPlaceQueryParams:()=>re,isSearchPlaceQueryParams:()=>Zc,serializeRequest:()=>wu});var Ou=tp(_c(),1);var Tc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Tc||(Tc={}));var Pc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Pc||(Pc={}));var Lc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(Lc||(Lc={}));var $c;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT"})($c||($c={}));var Ic;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Ic||(Ic={}));var kc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(kc||(kc={}));var Dc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Dc||(Dc={}));var Fc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Fc||(Fc={}));var Mc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Mc||(Mc={}));var Uc;(function(t){t.ASC="ASC",t.DESC="DESC"})(Uc||(Uc={}));var Bc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Bc||(Bc={}));var Fr;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Fr||(Fr={}));var jc=t=>["EVERYWHERE","TITLE_ONLY","NONE"].includes(t);var zc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(zc||(zc={}));var Hc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Hc||(Hc={}));var Wc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Wc||(Wc={}));var hr;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(hr||(hr={}));var Gc=t=>["LAST_WEEK","LAST_MONTH","LAST_QUARTER","LAST_YEAR"].includes(t);var Vc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(Vc||(Vc={}));var Mr;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"})(Mr||(Mr={}));var be;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"})(be||(be={}));var Kc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Kc||(Kc={}));var Wx={[be.PERSONAL_BOOK_SHARE_USER]:[be.PERSONAL_BOOK_USER],[be.HTML_EXPORT_USER]:[be.PERSONAL_BOOK_USER],[be.PDF_EXPORT_USER]:[be.PERSONAL_BOOK_USER],[be.KHUB_ADMIN]:[be.CONTENT_PUBLISHER],[be.ADMIN]:[be.KHUB_ADMIN,be.USERS_ADMIN,be.PORTAL_ADMIN],[be.DEVELOPER]:[be.BETA_USER,be.DEBUG_USER]};function Cu(t){return`"${t}"`}function Eu(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function wu(t,e){return new wi(t,{}).serialize(e)}var re;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort"})(re||(re={}));var Au=new Set(Object.values(re));function Zc(t){return Au.has(t)}var wi=class{constructor(e,r){this.baseUrl=e,this.predefinedSorts=r,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,r="/search"){let o=this.toURLSearchParams(e).toString();return new URL(`${this.baseUrl.replace(/\/+$/,"")}${r}?${o}`).href}toURLSearchParams(e){var r,o,n,a,s,l,c,p,h,u;let y=new URLSearchParams({[re.LOCALE]:(r=e.contentLocale)!==null&&r!==void 0?r:"all"});((o=e.query)===null||o===void 0?void 0:o.length)>0&&y.append(re.QUERY,e.query),e.scope&&e.scope!=="DEFAULT"&&y.append(re.SCOPE,e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&y.append(re.VIRTUAL_FIELD,e.virtualField.toLowerCase()),((n=e.sort)===null||n===void 0?void 0:n.length)>0&&e.sort[0].key==="ft:lastEdition"&&y.append(re.SORT,"last_update");let b=(s=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(w=>w.valueFilter))!==null&&s!==void 0?s:[];if(b.length>0){let w=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(F=>this.escapeFilters(F)).map(F=>encodeURIComponent(Cu(F))).join("_");return`${N.key}~${E}`}).join("*");y.append(re.VALUE_FILTERS,w)}let x=(c=(l=e.metadataFilters)===null||l===void 0?void 0:l.filter(w=>w.dateFilter))!==null&&c!==void 0?c:[];if(x.length>0){let w=x.map(N=>{var S;return`${N.key}~${(S=N.dateFilter)===null||S===void 0?void 0:S.type.toLowerCase()}`}).join("*");y.append(re.DATE_FILTERS,w)}let C=(h=(p=e.metadataFilters)===null||p===void 0?void 0:p.filter(w=>w.rangeFilter))!==null&&h!==void 0?h:[];if(C.length>0){let w=C.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("*");y.append(re.RANGE_FILTERS,w)}let P=(u=e.otherQueryParams)!==null&&u!==void 0?u:{};for(let w in P)y.append(w,P[w]);return y}parse(e){var r;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:(r=this.scopeMapping[a])!==null&&r!==void 0?r:n.scope}}fromURLSearchParams(e){var r,o,n,a,s,l,c,p;let h=((r=e.get(re.VIRTUAL_FIELD))!==null&&r!==void 0?r:"EVERYWHERE").toUpperCase(),u=((o=e.get(re.SORT))!==null&&o!==void 0?o:"DEFAULT").toUpperCase(),y=(n=e.get(re.SCOPE))!==null&&n!==void 0?n:"default",b={};for(let x of e.keys())Zc(x)||(b[x]=e.get(x));return{contentLocale:e.get(re.LOCALE)==="all"?void 0:(a=e.get(re.LOCALE))!==null&&a!==void 0?a:void 0,query:decodeURIComponent((s=e.get(re.QUERY))!==null&&s!==void 0?s:""),scope:(l=this.scopeMapping[y])!==null&&l!==void 0?l:"DEFAULT",virtualField:jc(h)?h:"EVERYWHERE",sort:(p=(c=this.predefinedSorts[u])!==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 r,o,n,a,s,l;let c=[];return e.has(re.FILTERS)&&(c=this.parseValueFilters((r=e.get(re.FILTERS))!==null&&r!==void 0?r:"")),(o=e.has(re.PERIOD))!==null&&o!==void 0&&o&&(c=[...c,...this.parseLegacyPeriodFilter(((n=e.get(re.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...c,...this.parseValueFilters((a=e.get(re.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(re.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(re.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(decodeURIComponent(e)).split("*").map(r=>r.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],valueFilter:{values:r[1].split("_").map(Eu).map(o=>this.unescapeFilterValue(o)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:hr[r[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}escapeFilters(e){for(let[r,o,n]of this.filtersEscapeMapping)e=e.replaceAll(r,o);return e}superEscapeFilters(e){for(let[r,o,n]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}unescapeFilterValue(e){for(let[r,o,n]of this.filtersEscapeMapping)e=e.replace(n,r);return e}parseLegacyPeriodFilter(e){if(Gc(e))return[{key:"ft:lastEdition",dateFilter:{type:hr[e]}}];if(e.startsWith("CUSTOM_")){let[r,o,n]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:o,to:n}}]}return[]}};var ts={};Q(ts,{toFtFormComponent:()=>es});var Ai=Symbol("elementInternals");function es(t,e){class r extends t{static get formAssociated(){return!0}get form(){return this[Ai].form}constructor(...n){super(n),this[Ai]=this.attachInternals(),this[Ai].role=e}setFormValue(n){this[Ai].setFormValue(n)}}return r}var rs={};Q(rs,{DateFormatter:()=>Ur});var Ur=class{static format(e,r,o,n){return window.moment?window.moment(e).locale(r).format(this.getDateFormat(o,n)):e}static getDateFormat(e,r){return e?r?"lll":"ll":r?"L LT":"L"}};var os,is,ns,as,mr=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((ns=(is=(os=window.safari)===null||os===void 0?void 0:os.pushNotification)===null||is===void 0?void 0:is.toString())!==null&&ns!==void 0?ns:"")==="[object SafariRemoteNotification]",Ru="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(as=window.ftGlobals)!==null&&as!==void 0?as:{lit:nn,litDecorators:cn,litRepeat:dn,litClassMap:pn,litStyleMap:fn,litUnsafeHTML:hn,wcUtils:{...yn,...mn,...bn,...rs,...xn,...On,...Xn,...ta,...ua,...Yn,...ya,...ma,...Kl,...Sn,...xa,...Sa,...ql,...Oa,...Za,...ha,...Xa,...Ja,...Qa,...ts,isSafari:mr,isTouchScreen:Ru,setVariable:L}};var Nu={spacing:i.create("--ft-search-selected-facets-spacing","","SIZE","8px")},qc=_`
|
|
51
51
|
.ft-search-selected-facets--container {
|
|
52
52
|
display: flex;
|
|
53
53
|
flex-wrap: wrap;
|
|
54
|
-
gap: ${
|
|
54
|
+
gap: ${Nu.spacing};
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
.ft-search-selected-facets--container > * {
|
|
58
58
|
min-width: 0;
|
|
59
59
|
}
|
|
60
|
-
`;var
|
|
61
|
-
`;var
|
|
60
|
+
`;var _u={setRequest:(t,e)=>{t.request=e.payload},setRequestQuery:(t,e)=>{t.request.query=e.payload},setRequestContentLocale:(t,e)=>{t.request.contentLocale=e.payload},setPageSize:(t,e)=>{t.request.paging.perPage=e.payload},setPageNumber:(t,e)=>{t.request.paging.page=e.payload},setRequestSort:(t,e)=>{t.request.sort=e.payload},setRequestFilters:(t,e)=>{t.request.metadataFilters=e.payload},setRequestFacets:(t,e)=>{t.request.facets=e.payload},setRequestVirtualField:(t,e)=>{t.request.virtualField=e.payload},setRequestScope:(t,e)=>{t.request.scope=e.payload},setRequestClusterSortCriterion:(t,e)=>{var r;t.request.clusterSortCriterions=(r=e.payload)!==null&&r!==void 0?r:[]},setResults:(t,e)=>{t.results=e.payload},setFacets:(t,e)=>{t.facets=e.payload},setSpellcheck:(t,e)=>{t.spellcheck=e.payload},setLocales:(t,e)=>{t.locales=e.payload},setPaging:(t,e)=>{t.paging=e.payload},setLiveQuery:(t,e)=>{t.liveQuery=e.payload},setSuggestResults:(t,e)=>{t.suggestResults=e.payload}},Yc=t=>Ct.get({name:"ft-search-"+t,initialState:{request:{query:"",clusterSortCriterions:[],metadataFilters:[],facets:[],sort:[],paging:{page:1,perPage:20}},liveQuery:""},reducers:_u});var Xc=_`
|
|
61
|
+
`;var Tu="ft-app-info",ss=class extends CustomEvent{constructor(e){super("authentication-change",{detail:e})}},Pu={session:(t,e)=>{ze(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>M.eventBus.dispatchEvent(new ss(e.payload)),0))}},M=Ct.get({name:Tu,reducers:Pu,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 yr=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:o}=M.getState(),n=e??o;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let o=t.get(e);if(o)r(o);else{let n=M.subscribe(()=>{o=t.get(e),o&&(n(),r(o))})}})}};var lt=class{constructor(e=!0,r){var o;this.overrideApi=r;let n=this.constructor;n.commonCache=(o=n.commonCache)!==null&&o!==void 0?o:new nt,this.cache=e?n.commonCache:new nt}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:yr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):yr.await()}clearCache(){this.cache.clearAll()}};var Jc,Lu=Symbol("clearAfterUnitTest"),Ri=class extends lt{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Jc]=()=>{this.defaultMessages={},this.cache=new nt,this.listeners={}},this.currentUiLocale=M.getState().uiLocale,M.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=M.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var o;if(e=e.toLowerCase(),Object.keys(r).length>0){let n={...(o=this.defaultMessages[e])!==null&&o!==void 0?o:{},...r};ze(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}await this.fetchContext(e)}resolveContext(e){var r,o;return this.fetchContext(e),(o=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&o!==void 0?o:{}}resolveRawMessage(e,r){let o=e.toLowerCase();return this.resolveContext(o)[r]}resolveMessage(e,r,...o){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new Eo((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(r,...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(r){console.error(r)}}subscribe(e,r){var o;return e=e.toLowerCase(),this.listeners[e]=(o=this.listeners[e])!==null&&o!==void 0?o:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}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(r=>ni(0).then(()=>r()).catch(()=>null)))}};Jc=Lu;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Ri{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Ri{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var gr=window.FluidTopicsI18nService,Qc=window.FluidTopicsCustomI18nService;var Ne=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ce=class extends U{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=()=>yr.get(),this.messageContexts=[],this.cache=new nt,this.cleanSessionDebouncer=new se}render(){return T`
|
|
62
62
|
<slot></slot>
|
|
63
|
-
`}update(e){super.update(e),e.has("baseUrl")&&(M.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&M.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&M.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&M.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&M.actions.noCustom(this.noCustom),e.has("editorMode")&&M.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&M.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&M.actions.session(this.session),e.has("availableUiLocales")&&M.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(r=>mr.addContext(r)),e.has("openExternalDocumentInNewTab")&&M.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&M.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&M.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())}};le.elementDefinitions={};le.styles=Gc;Re([y()],le.prototype,"baseUrl",void 0);Re([y()],le.prototype,"apiIntegrationIdentifier",void 0);Re([y()],le.prototype,"uiLocale",void 0);Re([Se(null)],le.prototype,"availableUiLocales",void 0);Re([Se(null)],le.prototype,"metadataConfiguration",void 0);Re([y({type:Boolean})],le.prototype,"editorMode",void 0);Re([y({type:Boolean})],le.prototype,"noCustom",void 0);Re([y({type:Boolean})],le.prototype,"openExternalDocumentInNewTab",void 0);Re([y({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],le.prototype,"noCustomComponent",void 0);Re([y({type:Boolean})],le.prototype,"withManualResources",void 0);Re([y({type:Boolean})],le.prototype,"navigatorOnline",void 0);Re([y({type:Boolean})],le.prototype,"forcedOffline",void 0);Re([y({type:Object})],le.prototype,"apiProvider",void 0);Re([Se([])],le.prototype,"messageContexts",void 0);Re([Se(void 0)],le.prototype,"session",void 0);var Ai=class extends st{async listMySearches(){let e=M.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Ri=class extends st{async listMyBookmarks(){let e=M.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Au="ft-user-assets",Ni=Ot.get({name:Au,initialState:{savedSearches:void 0,bookmarks:void 0}}),as=class{constructor(){this.currentSession=M.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ri,this.savedSearchesService=new Ai,M.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=M.getState();Be((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ni.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ni.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Ni.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 r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Ni.actions.bookmarks(r)}}},qc=new as;var ss=class{addCommand(e,r=!1){M.commands.add(e,r)}consumeCommand(e){return M.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new ss;var ls=class{highlightHtml(e,r,o){ya(e,r,o)}};window.FluidTopicsHighlightHtmlService=new ls;var cs=class{isDate(e){var r,o,n,a;return(a=(n=((o=(r=M.getState().metadataConfiguration)===null||r===void 0?void 0:r.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,r){var o,n,a;return Ir.format(e,(o=r?.locale)!==null&&o!==void 0?o:M.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new cs;H("ft-app-context")(le);var _i=class extends st{async launchSearch(e){return this.cache.get(this.hash(e),async()=>(await this.awaitApi).search(e),2*60*1e3)}async launchSuggest(e){return this.cache.get(this.hash(e),async()=>(await this.awaitApi).getSuggestions(e),2*60*1e3)}async getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}hash(e){return""+Array.from(JSON.stringify(e)).reduce((r,o)=>0|31*r+o.charCodeAt(0),0)}};var No=t=>t.request.virtualField===Dr.TITLE_ONLY&&t.request.scope===Mr.DOCUMENTS,Ti=class t extends Event{constructor(){super(t.eventName)}};Ti.eventName="search-context-clear-all-filters";var Ro=class t{static build(e,r){return new t(Rc(e.trim()||"context"),r)}constructor(e,r){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.localesDebouncer=new ae(10),this.searchDebouncer=new ae(100),this.suggestDebouncer=new ae(300),this.service=r??new _i}async initService(){return this.updateLocales(),this.launchSearch()}setQuery(e){this.store.actions.setRequestQuery(e),this.store.actions.setLiveQuery(e),this.store.actions.setPageNumber(1),this.launchSearch()}setContentLocale(e){let r=this.store.getState().locales,o=this.store.getState().request.contentLocale;if(e!=o){if(r){let n=a=>r.some(s=>s.lang==a);n(e)||(e=n(o)?o:r[0].lang)}this.store.actions.setRequestContentLocale(e),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([]),this.launchSearch()}return e}setPageSize(e){this.store.actions.setPageSize(e),this.launchSearch()}setPageNumber(e){this.store.actions.setPageNumber(e),this.launchSearch()}setSort(e){this.store.actions.setRequestSort(e),this.store.actions.setPageNumber(1),this.launchSearch()}setFilters(e){let r=e.filter(o=>!o.valueFilter||o.valueFilter.values.length>0);this.store.actions.setRequestFilters(r),this.store.actions.setPageNumber(1),r.forEach(o=>{this.facetIds.includes(o.key)||(this.facetIds=[...this.facetIds,o.key])}),this.launchSearch()}setClusterSortCriterion(e){this.store.actions.setRequestClusterSortCriterion(e),this.launchSearch()}setSearchInDocumentTitlesOnly(e){e?(this.store.actions.setRequestVirtualField(Dr.TITLE_ONLY),this.store.actions.setRequestScope(Mr.DOCUMENTS)):(this.store.actions.setRequestVirtualField(Dr.EVERYWHERE),this.store.actions.setRequestScope(Mr.DEFAULT)),this.launchSearch()}setVirtualField(e){this.store.actions.setRequestVirtualField(e),this.launchSearch()}get searchInDocumentTitlesOnly(){return No(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.eventBus.dispatchEvent(new Ti)}addFacet(e){this.facetIds=[...this.facetIds,e],this.launchSearch()}replaceFacet(e,r){let o=this.facetIds.filter(n=>n!=e);r&&o.push(r),this.facetIds=o,this.launchSearch()}get facetIds(){return this.store.getState().request.facets.map(e=>e.id)}set facetIds(e){let o=[...new Set(e)].map(n=>({id:n}));this.store.actions.setRequestFacets(o)}setFilter(e,r){this.setValueFilter(e,r)}setValueFilter(e,r){let o=this.store.getState().request.metadataFilters,n={key:e,valueFilter:{values:r,negative:!1}},a=[...o.filter(s=>!s.valueFilter),...o.filter(s=>s.valueFilter&&s.key!==n.key),n];this.setFilters(a)}setDateFilter(e,r){let o=this.store.getState().request.metadataFilters,n={key:e,dateFilter:{type:r}},a=[...o.filter(s=>!s.dateFilter),...o.filter(s=>s.dateFilter&&s.key!==n.key),n];this.setFilters(a)}removeDateFilter(e){let r=this.store.getState().request.metadataFilters,o=[...r.filter(n=>!n.dateFilter),...r.filter(n=>n.dateFilter&&n.key!==e)];this.setFilters(o)}setRangeFilter(e,r,o){let n=this.store.getState().request.metadataFilters,a={key:e,rangeFilter:{from:r,to:o}},s=[...n.filter(l=>!l.rangeFilter),...n.filter(l=>l.rangeFilter&&l.key!==a.key),a];this.setFilters(s)}removeRangeFilter(e){let r=this.store.getState().request.metadataFilters,o=[...r.filter(n=>!n.rangeFilter),...r.filter(n=>n.rangeFilter&&n.key!==e)];this.setFilters(o)}setLiveQuery(e){this.store.actions.setLiveQuery(e),this.launchSuggest()}setRequest(e){this.store.actions.setRequest(e),this.store.actions.setLiveQuery(e.query),this.store.actions.setPageNumber(1),this.launchSearch()}setScope(e){this.store.actions.setRequestScope(e),this.launchSearch()}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e,this.launchSearch()}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.setLocales((await this.service.getAvailableSearchLocales()).contentLocales))}launchSearch(){return this.searchDebouncer.run(()=>this.fetchSearchData())}launchSuggest(){return this.suggestDebouncer.run(()=>this.fetchSuggestData())}async fetchSearchData(){var e,r;try{(e=this.cancelableSearch)===null||e===void 0||e.cancel();let o=this.store.getState().request;if(this.store.actions.setPaging(void 0),this.ignoreEmptyQuery&&o.query.length==0)this.store.actions.setResults(void 0),this.store.actions.setFacets(void 0),this.store.actions.setSpellcheck(void 0);else{this.cancelableSearch=wr(this.service.launchSearch(o));let n=await this.cancelableSearch;if(n.paging.currentPage<=1)this.store.actions.setResults(n.results),this.store.actions.setFacets(n.facets),this.store.actions.setSpellcheck(n.spellcheck);else{let a=((r=this.store.getState().results)!==null&&r!==void 0?r:[]).concat(n.results);this.store.actions.setResults(a)}this.store.actions.setPaging(n.paging)}}catch(o){!(o instanceof Pt)&&this.errorHandler&&this.errorHandler(o)}}async fetchSuggestData(){var e;try{let r=this.store.getState(),o=r.request,n={input:r.liveQuery,metadataFilters:o.metadataFilters,sort:o.sort,contentLocale:o.contentLocale,scope:o.scope};(e=this.cancelableSuggest)===null||e===void 0||e.cancel(),this.cancelableSuggest=wr(this.service.launchSuggest(n));let a=await this.cancelableSuggest;this.store.actions.setSuggestResults(a.suggestions)}catch(r){!(r instanceof Pt)&&this.errorHandler&&this.errorHandler(r)}}clear(){this.store.clear()}};var Ru=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ps=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},ds=Symbol("registerInterval");function Nu(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[ds]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[ds]):this.dispatchEvent(new ps)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=ds,Ru([G()],r.prototype,"stateManager",void 0),r}var zt=class extends Nu(Ve){};var Yc=i.extend("--ft-ripple-color","",L.colorContent),j={color:Yc,backgroundColor:i.extend("--ft-ripple-background-color","",Yc),opacityContentOnSurfacePressed:i.external(L.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.external(L.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.external(L.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.external(L.opacityContentOnSurfaceSelected,"Design system"),borderRadius:i.create("--ft-ripple-border-radius","","SIZE","0px")},Xc=i.extend("--ft-ripple-color","",L.colorPrimary),Jc={color:Xc,backgroundColor:i.extend("--ft-ripple-background-color","",Xc)},Qc=i.extend("--ft-ripple-color","",L.colorSecondary),ed={color:Qc,backgroundColor:i.extend("--ft-ripple-background-color","",Qc)},td=T`
|
|
63
|
+
`}update(e){super.update(e),e.has("baseUrl")&&(M.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&M.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&M.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&M.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&M.actions.noCustom(this.noCustom),e.has("editorMode")&&M.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&M.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&M.actions.session(this.session),e.has("availableUiLocales")&&M.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(r=>gr.addContext(r)),e.has("openExternalDocumentInNewTab")&&M.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&M.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&M.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())}};ce.elementDefinitions={};ce.styles=Xc;Ne([g()],ce.prototype,"baseUrl",void 0);Ne([g()],ce.prototype,"apiIntegrationIdentifier",void 0);Ne([g()],ce.prototype,"uiLocale",void 0);Ne([Oe(null)],ce.prototype,"availableUiLocales",void 0);Ne([Oe(null)],ce.prototype,"metadataConfiguration",void 0);Ne([g({type:Boolean})],ce.prototype,"editorMode",void 0);Ne([g({type:Boolean})],ce.prototype,"noCustom",void 0);Ne([g({type:Boolean})],ce.prototype,"openExternalDocumentInNewTab",void 0);Ne([g({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ce.prototype,"noCustomComponent",void 0);Ne([g({type:Boolean})],ce.prototype,"withManualResources",void 0);Ne([g({type:Boolean})],ce.prototype,"navigatorOnline",void 0);Ne([g({type:Boolean})],ce.prototype,"forcedOffline",void 0);Ne([g({type:Object})],ce.prototype,"apiProvider",void 0);Ne([Oe([])],ce.prototype,"messageContexts",void 0);Ne([Oe(void 0)],ce.prototype,"session",void 0);var Ni=class extends lt{async listMySearches(){let e=M.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var _i=class extends lt{async listMyBookmarks(){let e=M.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var $u="ft-user-assets",Ti=Ct.get({name:$u,initialState:{savedSearches:void 0,bookmarks:void 0}}),ls=class{constructor(){this.currentSession=M.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new _i,this.savedSearchesService=new Ni,M.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=M.getState();ze((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ti.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ti.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Ti.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 r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Ti.actions.bookmarks(r)}}},ed=new ls;var cs=class{addCommand(e,r=!1){M.commands.add(e,r)}consumeCommand(e){return M.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new cs;var ds=class{highlightHtml(e,r,o){ba(e,r,o)}};window.FluidTopicsHighlightHtmlService=new ds;var ps=class{isDate(e){var r,o,n,a;return(a=(n=((o=(r=M.getState().metadataConfiguration)===null||r===void 0?void 0:r.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,r){var o,n,a;return Ur.format(e,(o=r?.locale)!==null&&o!==void 0?o:M.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new ps;H("ft-app-context")(ce);var Pi=class extends lt{async launchSearch(e){return this.cache.get(this.hash(e),async()=>(await this.awaitApi).search(e),2*60*1e3)}async launchSuggest(e){return this.cache.get(this.hash(e),async()=>(await this.awaitApi).getSuggestions(e),2*60*1e3)}async getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}hash(e){return""+Array.from(JSON.stringify(e)).reduce((r,o)=>0|31*r+o.charCodeAt(0),0)}};var To=t=>t.request.virtualField===Fr.TITLE_ONLY&&t.request.scope===Mr.DOCUMENTS,Li=class t extends Event{constructor(){super(t.eventName)}};Li.eventName="search-context-clear-all-filters";var _o=class t{static build(e,r){return new t(Yc(e.trim()||"context"),r)}constructor(e,r){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.localesDebouncer=new se(10),this.searchDebouncer=new se(100),this.suggestDebouncer=new se(300),this.service=r??new Pi}async initService(){return this.updateLocales(),this.launchSearch()}setQuery(e){this.store.actions.setRequestQuery(e),this.store.actions.setLiveQuery(e),this.store.actions.setPageNumber(1),this.launchSearch()}setContentLocale(e){let r=this.store.getState().locales,o=this.store.getState().request.contentLocale;if(e!=o){if(r){let n=a=>r.some(s=>s.lang==a);n(e)||(e=n(o)?o:r[0].lang)}this.store.actions.setRequestContentLocale(e),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([]),this.launchSearch()}return e}setPageSize(e){this.store.actions.setPageSize(e),this.launchSearch()}setPageNumber(e){this.store.actions.setPageNumber(e),this.launchSearch()}setSort(e){this.store.actions.setRequestSort(e),this.store.actions.setPageNumber(1),this.launchSearch()}setFilters(e){let r=e.filter(o=>!o.valueFilter||o.valueFilter.values.length>0);this.store.actions.setRequestFilters(r),this.store.actions.setPageNumber(1),r.forEach(o=>{this.facetIds.includes(o.key)||(this.facetIds=[...this.facetIds,o.key])}),this.launchSearch()}setClusterSortCriterion(e){this.store.actions.setRequestClusterSortCriterion(e),this.launchSearch()}setSearchInDocumentTitlesOnly(e){e?(this.store.actions.setRequestVirtualField(Fr.TITLE_ONLY),this.store.actions.setRequestScope(Mr.DOCUMENTS)):(this.store.actions.setRequestVirtualField(Fr.EVERYWHERE),this.store.actions.setRequestScope(Mr.DEFAULT)),this.launchSearch()}setVirtualField(e){this.store.actions.setRequestVirtualField(e),this.launchSearch()}get searchInDocumentTitlesOnly(){return To(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.eventBus.dispatchEvent(new Li)}addFacet(e){this.facetIds=[...this.facetIds,e],this.launchSearch()}replaceFacet(e,r){let o=this.facetIds.filter(n=>n!=e);r&&o.push(r),this.facetIds=o,this.launchSearch()}get facetIds(){return this.store.getState().request.facets.map(e=>e.id)}set facetIds(e){let o=[...new Set(e)].map(n=>({id:n}));this.store.actions.setRequestFacets(o)}setFilter(e,r){this.setValueFilter(e,r)}setValueFilter(e,r){let o=this.store.getState().request.metadataFilters,n={key:e,valueFilter:{values:r,negative:!1}},a=[...o.filter(s=>!s.valueFilter),...o.filter(s=>s.valueFilter&&s.key!==n.key),n];this.setFilters(a)}setDateFilter(e,r){let o=this.store.getState().request.metadataFilters,n={key:e,dateFilter:{type:r}},a=[...o.filter(s=>!s.dateFilter),...o.filter(s=>s.dateFilter&&s.key!==n.key),n];this.setFilters(a)}removeDateFilter(e){let r=this.store.getState().request.metadataFilters,o=[...r.filter(n=>!n.dateFilter),...r.filter(n=>n.dateFilter&&n.key!==e)];this.setFilters(o)}setRangeFilter(e,r,o){let n=this.store.getState().request.metadataFilters,a={key:e,rangeFilter:{from:r,to:o}},s=[...n.filter(l=>!l.rangeFilter),...n.filter(l=>l.rangeFilter&&l.key!==a.key),a];this.setFilters(s)}removeRangeFilter(e){let r=this.store.getState().request.metadataFilters,o=[...r.filter(n=>!n.rangeFilter),...r.filter(n=>n.rangeFilter&&n.key!==e)];this.setFilters(o)}setLiveQuery(e){this.store.actions.setLiveQuery(e),this.launchSuggest()}setRequest(e){this.store.actions.setRequest({...e,facets:this.store.getState().request.facets}),this.store.actions.setLiveQuery(e.query),this.store.actions.setPageNumber(1),this.launchSearch()}setScope(e){this.store.actions.setRequestScope(e),this.launchSearch()}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e,this.launchSearch()}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.setLocales((await this.service.getAvailableSearchLocales()).contentLocales))}launchSearch(){return this.searchDebouncer.run(()=>this.fetchSearchData())}launchSuggest(){return this.suggestDebouncer.run(()=>this.fetchSuggestData())}async fetchSearchData(){var e,r;try{(e=this.cancelableSearch)===null||e===void 0||e.cancel();let o=this.store.getState().request;if(this.store.actions.setPaging(void 0),this.ignoreEmptyQuery&&o.query.length==0)this.store.actions.setResults(void 0),this.store.actions.setFacets(void 0),this.store.actions.setSpellcheck(void 0);else{this.cancelableSearch=Rr(this.service.launchSearch(o));let n=await this.cancelableSearch;if(n.paging.currentPage<=1)this.store.actions.setResults(n.results),this.store.actions.setFacets(n.facets),this.store.actions.setSpellcheck(n.spellcheck);else{let a=((r=this.store.getState().results)!==null&&r!==void 0?r:[]).concat(n.results);this.store.actions.setResults(a)}this.store.actions.setPaging(n.paging)}}catch(o){!(o instanceof Lt)&&this.errorHandler&&this.errorHandler(o)}}async fetchSuggestData(){var e;try{let r=this.store.getState(),o=r.request,n={input:r.liveQuery,metadataFilters:o.metadataFilters,sort:o.sort,contentLocale:o.contentLocale,scope:o.scope};(e=this.cancelableSuggest)===null||e===void 0||e.cancel(),this.cancelableSuggest=Rr(this.service.launchSuggest(n));let a=await this.cancelableSuggest;this.store.actions.setSuggestResults(a.suggestions)}catch(r){!(r instanceof Lt)&&this.errorHandler&&this.errorHandler(r)}}clear(){this.store.clear()}};var Iu=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},us=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},fs=Symbol("registerInterval");function ku(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[fs]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[fs]):this.dispatchEvent(new us)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=fs,Iu([G()],r.prototype,"stateManager",void 0),r}var Ht=class extends ku(je){};var td=i.extend("--ft-ripple-color","",$.colorContent),j={color:td,backgroundColor:i.extend("--ft-ripple-background-color","",td),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")},rd=i.extend("--ft-ripple-color","",$.colorPrimary),od={color:rd,backgroundColor:i.extend("--ft-ripple-background-color","",rd)},id=i.extend("--ft-ripple-color","",$.colorSecondary),nd={color:id,backgroundColor:i.extend("--ft-ripple-background-color","",id)},ad=_`
|
|
64
64
|
:host {
|
|
65
65
|
display: contents;
|
|
66
66
|
}
|
|
@@ -115,19 +115,19 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
118
|
-
background-color: ${
|
|
118
|
+
background-color: ${nd.backgroundColor};
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
122
|
-
background-color: ${
|
|
122
|
+
background-color: ${nd.color};
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
126
|
-
background-color: ${
|
|
126
|
+
background-color: ${od.backgroundColor};
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
130
|
-
background-color: ${
|
|
130
|
+
background-color: ${od.color};
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
.ft-ripple .ft-ripple--background {
|
|
@@ -172,19 +172,19 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
172
172
|
opacity: ${j.opacityContentOnSurfacePressed};
|
|
173
173
|
transform: translate(-50%, -50%) scale(1);
|
|
174
174
|
}
|
|
175
|
-
`;var
|
|
175
|
+
`;var Ie=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},q=class extends U{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 se(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 se(10),this.moveRipple=e=>{var r,o;let{x:n,y:a}=this.getCoordinates(e),s=(o=(r=this.ripple)===null||r===void 0?void 0:r.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 T`
|
|
176
176
|
<style>
|
|
177
177
|
.ft-ripple .ft-ripple--effect {
|
|
178
178
|
left: ${this.originX}px;
|
|
179
179
|
top: ${this.originY}px;
|
|
180
180
|
}
|
|
181
181
|
</style>
|
|
182
|
-
<div class="${
|
|
182
|
+
<div class="${Re(e)}">
|
|
183
183
|
<div class="ft-ripple--background"></div>
|
|
184
184
|
<div class="ft-ripple--effect"></div>
|
|
185
185
|
</div>
|
|
186
|
-
`}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 r,o;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.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,r;let o=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;o&&this.setupFor((r=this.target)!==null&&r!==void 0?r: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 r=(...l)=>c=>{l.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(c)},o=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&r("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 r=e,o=e,n,a;return r.x!=null?{x:n,y:a}=r: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 r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};q.elementDefinitions={};q.styles=
|
|
187
|
-
.ft-typography--${
|
|
186
|
+
`}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 r,o;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.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,r;let o=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;o&&this.setupFor((r=this.target)!==null&&r!==void 0?r: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 r=(...l)=>c=>{l.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(c)},o=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&r("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 r=e,o=e,n,a;return r.x!=null?{x:n,y:a}=r: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 r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};q.elementDefinitions={};q.styles=ad;Ie([g({type:Boolean})],q.prototype,"primary",void 0);Ie([g({type:Boolean})],q.prototype,"secondary",void 0);Ie([g({type:Boolean})],q.prototype,"unbounded",void 0);Ie([g({type:Boolean})],q.prototype,"activated",void 0);Ie([g({type:Boolean})],q.prototype,"selected",void 0);Ie([g({type:Boolean})],q.prototype,"disabled",void 0);Ie([G()],q.prototype,"hovered",void 0);Ie([G()],q.prototype,"focused",void 0);Ie([G()],q.prototype,"pressed",void 0);Ie([G()],q.prototype,"rippling",void 0);Ie([G()],q.prototype,"originX",void 0);Ie([G()],q.prototype,"originY",void 0);Ie([z(".ft-ripple")],q.prototype,"ripple",void 0);Ie([z(".ft-ripple--effect")],q.prototype,"rippleEffect",void 0);H("ft-ripple")(q);var ld=Symbol.for(""),Du=t=>{if(t?.r===ld)return t?._$litStatic$},hs=t=>({_$litStatic$:t,r:ld});var sd=new Map,cd=t=>(e,...r)=>{let o=r.length,n,a,s=[],l=[],c,p=0,h=!1;for(;p<o;){for(c=e[p];p<o&&(a=r[p],(n=Du(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 u=s.join("$$lit$$");(e=sd.get(u))===void 0&&(s.raw=s,sd.set(u,e=s)),r=l}return t(e,...r)},ms=cd(Hs),bS=cd(Ws);var Ke;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"})(Ke||(Ke={}));function dd(t){let e=ho[t];return _`
|
|
187
|
+
.ft-typography--${ut(t)} {
|
|
188
188
|
font-family: ${e.fontFamily};
|
|
189
189
|
font-size: ${e.fontSize};
|
|
190
190
|
font-weight: ${e.fontWeight};
|
|
@@ -192,26 +192,8 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
192
192
|
line-height: ${e.lineHeight};
|
|
193
193
|
text-transform: ${e.textCase};
|
|
194
194
|
}
|
|
195
|
-
`}var
|
|
195
|
+
`}var pd=i.extend("--ft-typography-font-family","",$.titleFont),Et=i.extend("--ft-typography-font-family","",$.contentFont),I={fontFamily:Et,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")},Br={fontFamily:i.extend("--ft-typography-title-font-family","",pd),fontSize:i.extend("--ft-typography-title-font-size","",I.fontSize,"20px"),fontWeight:i.extend("--ft-typography-title-font-weight","",I.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-title-letter-spacing","",I.letterSpacing,"0.15px"),lineHeight:i.extend("--ft-typography-title-line-height","",I.lineHeight,"1.2"),textTransform:i.extend("--ft-typography-title-text-transform","",I.textTransform,"inherit")},zr={fontFamily:i.extend("--ft-typography-title-dense-font-family","",pd),fontSize:i.extend("--ft-typography-title-dense-font-size","",I.fontSize,"14px"),fontWeight:i.extend("--ft-typography-title-dense-font-weight","",I.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-title-dense-letter-spacing","",I.letterSpacing,"0.105px"),lineHeight:i.extend("--ft-typography-title-dense-line-height","",I.lineHeight,"1.7"),textTransform:i.extend("--ft-typography-title-dense-text-transform","",I.textTransform,"inherit")},Hr={fontFamily:i.extend("--ft-typography-subtitle1-font-family","",Et),fontSize:i.extend("--ft-typography-subtitle1-font-size","",I.fontSize,"16px"),fontWeight:i.extend("--ft-typography-subtitle1-font-weight","",I.fontWeight,"600"),letterSpacing:i.extend("--ft-typography-subtitle1-letter-spacing","",I.letterSpacing,"0.144px"),lineHeight:i.extend("--ft-typography-subtitle1-line-height","",I.lineHeight,"1.5"),textTransform:i.extend("--ft-typography-subtitle1-text-transform","",I.textTransform,"inherit")},Wr={fontFamily:i.extend("--ft-typography-subtitle2-font-family","",Et),fontSize:i.extend("--ft-typography-subtitle2-font-size","",I.fontSize,"14px"),fontWeight:i.extend("--ft-typography-subtitle2-font-weight","",I.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-subtitle2-letter-spacing","",I.letterSpacing,"0.098px"),lineHeight:i.extend("--ft-typography-subtitle2-line-height","",I.lineHeight,"1.7"),textTransform:i.extend("--ft-typography-subtitle2-text-transform","",I.textTransform,"inherit")},Vr={fontFamily:i.extend("--ft-typography-body1-font-family","",Et),fontSize:i.extend("--ft-typography-body1-font-size","",I.fontSize,"16px"),fontWeight:i.extend("--ft-typography-body1-font-weight","",I.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-body1-letter-spacing","",I.letterSpacing,"0.496px"),lineHeight:i.extend("--ft-typography-body1-line-height","",I.lineHeight,"1.5"),textTransform:i.extend("--ft-typography-body1-text-transform","",I.textTransform,"inherit")},Ce={fontFamily:i.extend("--ft-typography-body2-font-family","",Et),fontSize:i.extend("--ft-typography-body2-font-size","",I.fontSize,"14px"),fontWeight:i.extend("--ft-typography-body2-font-weight","",I.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-body2-letter-spacing","",I.letterSpacing,"0.252px"),lineHeight:i.extend("--ft-typography-body2-line-height","",I.lineHeight,"1.4"),textTransform:i.extend("--ft-typography-body2-text-transform","",I.textTransform,"inherit")},jr={fontFamily:i.extend("--ft-typography-caption-font-family","",Et),fontSize:i.extend("--ft-typography-caption-font-size","",I.fontSize,"12px"),fontWeight:i.extend("--ft-typography-caption-font-weight","",I.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-caption-letter-spacing","",I.letterSpacing,"0.396px"),lineHeight:i.extend("--ft-typography-caption-line-height","",I.lineHeight,"1.33"),textTransform:i.extend("--ft-typography-caption-text-transform","",I.textTransform,"inherit")},Gr={fontFamily:i.extend("--ft-typography-breadcrumb-font-family","",Et),fontSize:i.extend("--ft-typography-breadcrumb-font-size","",I.fontSize,"10px"),fontWeight:i.extend("--ft-typography-breadcrumb-font-weight","",I.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-breadcrumb-letter-spacing","",I.letterSpacing,"0.33px"),lineHeight:i.extend("--ft-typography-breadcrumb-line-height","",I.lineHeight,"1.6"),textTransform:i.extend("--ft-typography-breadcrumb-text-transform","",I.textTransform,"inherit")},Kr={fontFamily:i.extend("--ft-typography-overline-font-family","",Et),fontSize:i.extend("--ft-typography-overline-font-size","",I.fontSize,"10px"),fontWeight:i.extend("--ft-typography-overline-font-weight","",I.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-overline-letter-spacing","",I.letterSpacing,"1.5px"),lineHeight:i.extend("--ft-typography-overline-line-height","",I.lineHeight,"1.6"),textTransform:i.extend("--ft-typography-overline-text-transform","",I.textTransform,"uppercase")},ct={fontFamily:i.extend("--ft-typography-button-font-family","",Et),fontSize:i.extend("--ft-typography-button-font-size","",I.fontSize,"14px"),fontWeight:i.extend("--ft-typography-button-font-weight","",I.fontWeight,"600"),letterSpacing:i.extend("--ft-typography-button-letter-spacing","",I.letterSpacing,"1.246px"),lineHeight:i.extend("--ft-typography-button-line-height","",I.lineHeight,"1.15"),textTransform:i.extend("--ft-typography-button-text-transform","",I.textTransform,"uppercase")},fd=_`
|
|
196
196
|
.ft-typography--title {
|
|
197
|
-
font-family: ${Fr.fontFamily};
|
|
198
|
-
font-size: ${Fr.fontSize};
|
|
199
|
-
font-weight: ${Fr.fontWeight};
|
|
200
|
-
letter-spacing: ${Fr.letterSpacing};
|
|
201
|
-
line-height: ${Fr.lineHeight};
|
|
202
|
-
text-transform: ${Fr.textTransform};
|
|
203
|
-
}
|
|
204
|
-
`,ld=T`
|
|
205
|
-
.ft-typography--title-dense {
|
|
206
|
-
font-family: ${Ur.fontFamily};
|
|
207
|
-
font-size: ${Ur.fontSize};
|
|
208
|
-
font-weight: ${Ur.fontWeight};
|
|
209
|
-
letter-spacing: ${Ur.letterSpacing};
|
|
210
|
-
line-height: ${Ur.lineHeight};
|
|
211
|
-
text-transform: ${Ur.textTransform};
|
|
212
|
-
}
|
|
213
|
-
`,cd=T`
|
|
214
|
-
.ft-typography--subtitle1 {
|
|
215
197
|
font-family: ${Br.fontFamily};
|
|
216
198
|
font-size: ${Br.fontSize};
|
|
217
199
|
font-weight: ${Br.fontWeight};
|
|
@@ -219,8 +201,8 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
219
201
|
line-height: ${Br.lineHeight};
|
|
220
202
|
text-transform: ${Br.textTransform};
|
|
221
203
|
}
|
|
222
|
-
`,
|
|
223
|
-
.ft-typography--
|
|
204
|
+
`,ud=_`
|
|
205
|
+
.ft-typography--title-dense {
|
|
224
206
|
font-family: ${zr.fontFamily};
|
|
225
207
|
font-size: ${zr.fontSize};
|
|
226
208
|
font-weight: ${zr.fontWeight};
|
|
@@ -228,9 +210,8 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
228
210
|
line-height: ${zr.lineHeight};
|
|
229
211
|
text-transform: ${zr.textTransform};
|
|
230
212
|
}
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
.ft-typography--body1 {
|
|
213
|
+
`,hd=_`
|
|
214
|
+
.ft-typography--subtitle1 {
|
|
234
215
|
font-family: ${Hr.fontFamily};
|
|
235
216
|
font-size: ${Hr.fontSize};
|
|
236
217
|
font-weight: ${Hr.fontWeight};
|
|
@@ -238,17 +219,8 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
238
219
|
line-height: ${Hr.lineHeight};
|
|
239
220
|
text-transform: ${Hr.textTransform};
|
|
240
221
|
}
|
|
241
|
-
`,
|
|
242
|
-
.ft-typography--
|
|
243
|
-
font-family: ${Oe.fontFamily};
|
|
244
|
-
font-size: ${Oe.fontSize};
|
|
245
|
-
font-weight: ${Oe.fontWeight};
|
|
246
|
-
letter-spacing: ${Oe.letterSpacing};
|
|
247
|
-
line-height: ${Oe.lineHeight};
|
|
248
|
-
text-transform: ${Oe.textTransform};
|
|
249
|
-
}
|
|
250
|
-
`,Pi=T`
|
|
251
|
-
.ft-typography--caption {
|
|
222
|
+
`,md=_`
|
|
223
|
+
.ft-typography--subtitle2 {
|
|
252
224
|
font-family: ${Wr.fontFamily};
|
|
253
225
|
font-size: ${Wr.fontSize};
|
|
254
226
|
font-weight: ${Wr.fontWeight};
|
|
@@ -256,8 +228,9 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
256
228
|
line-height: ${Wr.lineHeight};
|
|
257
229
|
text-transform: ${Wr.textTransform};
|
|
258
230
|
}
|
|
259
|
-
|
|
260
|
-
|
|
231
|
+
|
|
232
|
+
`,yd=_`
|
|
233
|
+
.ft-typography--body1 {
|
|
261
234
|
font-family: ${Vr.fontFamily};
|
|
262
235
|
font-size: ${Vr.fontSize};
|
|
263
236
|
font-weight: ${Vr.fontWeight};
|
|
@@ -265,8 +238,17 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
265
238
|
line-height: ${Vr.lineHeight};
|
|
266
239
|
text-transform: ${Vr.textTransform};
|
|
267
240
|
}
|
|
268
|
-
`,
|
|
269
|
-
.ft-typography--
|
|
241
|
+
`,gd=_`
|
|
242
|
+
.ft-typography--body2 {
|
|
243
|
+
font-family: ${Ce.fontFamily};
|
|
244
|
+
font-size: ${Ce.fontSize};
|
|
245
|
+
font-weight: ${Ce.fontWeight};
|
|
246
|
+
letter-spacing: ${Ce.letterSpacing};
|
|
247
|
+
line-height: ${Ce.lineHeight};
|
|
248
|
+
text-transform: ${Ce.textTransform};
|
|
249
|
+
}
|
|
250
|
+
`,$i=_`
|
|
251
|
+
.ft-typography--caption {
|
|
270
252
|
font-family: ${jr.fontFamily};
|
|
271
253
|
font-size: ${jr.fontSize};
|
|
272
254
|
font-weight: ${jr.fontWeight};
|
|
@@ -274,28 +256,46 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
274
256
|
line-height: ${jr.lineHeight};
|
|
275
257
|
text-transform: ${jr.textTransform};
|
|
276
258
|
}
|
|
277
|
-
`,
|
|
259
|
+
`,bd=_`
|
|
260
|
+
.ft-typography--breadcrumb {
|
|
261
|
+
font-family: ${Gr.fontFamily};
|
|
262
|
+
font-size: ${Gr.fontSize};
|
|
263
|
+
font-weight: ${Gr.fontWeight};
|
|
264
|
+
letter-spacing: ${Gr.letterSpacing};
|
|
265
|
+
line-height: ${Gr.lineHeight};
|
|
266
|
+
text-transform: ${Gr.textTransform};
|
|
267
|
+
}
|
|
268
|
+
`,xd=_`
|
|
269
|
+
.ft-typography--overline {
|
|
270
|
+
font-family: ${Kr.fontFamily};
|
|
271
|
+
font-size: ${Kr.fontSize};
|
|
272
|
+
font-weight: ${Kr.fontWeight};
|
|
273
|
+
letter-spacing: ${Kr.letterSpacing};
|
|
274
|
+
line-height: ${Kr.lineHeight};
|
|
275
|
+
text-transform: ${Kr.textTransform};
|
|
276
|
+
}
|
|
277
|
+
`,vd=_`
|
|
278
278
|
.ft-typography--button {
|
|
279
|
-
font-family: ${
|
|
280
|
-
font-size: ${
|
|
281
|
-
font-weight: ${
|
|
282
|
-
letter-spacing: ${
|
|
283
|
-
line-height: ${
|
|
284
|
-
text-transform: ${
|
|
285
|
-
}
|
|
286
|
-
`,
|
|
279
|
+
font-family: ${ct.fontFamily};
|
|
280
|
+
font-size: ${ct.fontSize};
|
|
281
|
+
font-weight: ${ct.fontWeight};
|
|
282
|
+
letter-spacing: ${ct.letterSpacing};
|
|
283
|
+
line-height: ${ct.lineHeight};
|
|
284
|
+
text-transform: ${ct.textTransform};
|
|
285
|
+
}
|
|
286
|
+
`,Sd=_`
|
|
287
287
|
.ft-typography {
|
|
288
288
|
vertical-align: inherit;
|
|
289
289
|
}
|
|
290
|
-
`,
|
|
291
|
-
<${
|
|
290
|
+
`,Od=[Object.keys(ho).map(t=>dd(t))];var Cd=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},oe=class extends U{constructor(){super(...arguments),this.variant=Ke.body1}render(){return this.element?ms`
|
|
291
|
+
<${hs(this.element)}
|
|
292
292
|
part="text"
|
|
293
293
|
class="ft-typography ft-typography--${this.variant}">
|
|
294
294
|
<slot></slot>
|
|
295
|
-
</${
|
|
296
|
-
`:
|
|
295
|
+
</${hs(this.element)}>
|
|
296
|
+
`:ms`
|
|
297
297
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
298
|
-
`}};
|
|
298
|
+
`}};oe.styles=[fd,ud,hd,md,yd,gd,$i,bd,xd,vd,Sd,...Od];Cd([g()],oe.prototype,"element",void 0);Cd([g()],oe.prototype,"variant",void 0);H("ft-typography")(oe);var Zr;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.EYE="",t.SHARE="󨃱"})(Zr||(Zr={}));var R;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(R||(R={}));var hO=new Map([...["abw"].map(t=>[t,R.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(t=>[t,R.AUDIO]),...["avi"].map(t=>[t,R.AVI]),...["chm","xhs"].map(t=>[t,R.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(t=>[t,R.CODE]),...["csv"].map(t=>[t,R.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,R.DITA]),...["epub"].map(t=>[t,R.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,R.EXCEL]),...["flac"].map(t=>[t,R.FLAC]),...["gif"].map(t=>[t,R.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,R.GZIP]),...["html","htm","xhtml"].map(t=>[t,R.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(t=>[t,R.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,R.JPEG]),...["json"].map(t=>[t,R.JSON]),...["m4a","m4p"].map(t=>[t,R.M4A]),...["mov","qt"].map(t=>[t,R.MOV]),...["mp3"].map(t=>[t,R.MP3]),...["mp4","m4v"].map(t=>[t,R.MP4]),...["ogg","oga"].map(t=>[t,R.OGG]),...["pdf","ps"].map(t=>[t,R.PDF]),...["png"].map(t=>[t,R.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,R.POWERPOINT]),...["rar"].map(t=>[t,R.RAR]),...["stp"].map(t=>[t,R.STP]),...["txt","rtf","md","mdown"].map(t=>[t,R.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(t=>[t,R.VIDEO]),...["wav"].map(t=>[t,R.WAV]),...["wma"].map(t=>[t,R.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,R.WORD]),...["xml","xsl","rdf"].map(t=>[t,R.XML]),...["yaml","yml","x-yaml"].map(t=>[t,R.YAML]),...["zip"].map(t=>[t,R.ZIP])]);var mO={[R.ABW]:"#91ABC6",[R.AUDIO]:"#1795E3",[R.AVI]:"#E63324",[R.CHM]:"#71C3EB",[R.CODE]:"#71C3EB",[R.CSV]:"#1F7345",[R.DITA]:"#71C3EB",[R.EPUB]:"#85B926",[R.EXCEL]:"#1F7345",[R.FLAC]:"#1795E3",[R.GIF]:"#59B031",[R.GZIP]:"#F8AB36",[R.HTML]:"#71C3EB",[R.IMAGE]:"#59B031",[R.JPEG]:"#59B031",[R.JSON]:"#71C3EB",[R.M4A]:"#1795E3",[R.MOV]:"#E63324",[R.MP3]:"#1795E3",[R.MP4]:"#E63324",[R.OGG]:"#1795E3",[R.PDF]:"#E44948",[R.PNG]:"#59B031",[R.POWERPOINT]:"#B54A2B",[R.RAR]:"#F8AB36",[R.STP]:"#3764B1",[R.TEXT]:"#3162AB",[R.UNKNOWN]:"#999999",[R.VIDEO]:"#E63324",[R.WAV]:"#1795E3",[R.WMA]:"#1795E3",[R.WORD]:"#3162AB",[R.XML]:"#71C3EB",[R.YAML]:"#71C3EB",[R.ZIP]:"#F8AB36"};var he={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")},Ed=_`
|
|
299
299
|
:host, i.ft-icon {
|
|
300
300
|
display: inline-flex;
|
|
301
301
|
align-items: center;
|
|
@@ -304,14 +304,14 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
304
304
|
}
|
|
305
305
|
|
|
306
306
|
:host {
|
|
307
|
-
width: ${
|
|
308
|
-
height: ${
|
|
307
|
+
width: ${he.size};
|
|
308
|
+
height: ${he.size};
|
|
309
309
|
}
|
|
310
310
|
|
|
311
311
|
i.ft-icon {
|
|
312
312
|
width: 100%;
|
|
313
313
|
height: 100%;
|
|
314
|
-
font-size: ${
|
|
314
|
+
font-size: ${he.size};
|
|
315
315
|
line-height: 1;
|
|
316
316
|
font-weight: normal;
|
|
317
317
|
text-transform: none;
|
|
@@ -322,33 +322,33 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
322
322
|
text-rendering: auto;
|
|
323
323
|
-webkit-font-smoothing: antialiased;
|
|
324
324
|
-moz-osx-font-smoothing: grayscale;
|
|
325
|
-
vertical-align: ${
|
|
325
|
+
vertical-align: ${he.verticalAlign};
|
|
326
326
|
}
|
|
327
327
|
|
|
328
328
|
i.ft-icon.ft-icon--fluid-topics {
|
|
329
|
-
font-family: ${
|
|
329
|
+
font-family: ${he.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
330
330
|
|
|
331
331
|
/* Ugly fix because font is broken */
|
|
332
|
-
font-size: calc(0.75 * ${
|
|
333
|
-
line-height: ${
|
|
332
|
+
font-size: calc(0.75 * ${he.size});
|
|
333
|
+
line-height: ${he.size};
|
|
334
334
|
position: relative;
|
|
335
335
|
top: -4%;
|
|
336
336
|
justify-content: center;
|
|
337
337
|
}
|
|
338
338
|
|
|
339
339
|
.ft-icon--file-format {
|
|
340
|
-
font-family: ${
|
|
340
|
+
font-family: ${he.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
341
341
|
}
|
|
342
342
|
|
|
343
343
|
.ft-icon--material {
|
|
344
|
-
font-family: ${
|
|
344
|
+
font-family: ${he.materialFontFamily}, "Material Icons", sans-serif;
|
|
345
345
|
}
|
|
346
|
-
`;var
|
|
346
|
+
`;var Ze;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ze||(Ze={}));var Ii=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},xe=class extends U{constructor(){super(...arguments),this.resolvedIcon=B}render(){let e=this.variant&&Object.values(Ze).includes(this.variant)?this.variant:Ze.fluid_topics,r=e!==Ze.material||!!this.value;return T`
|
|
347
347
|
<i class="ft-icon ft-icon--${e}" part="icon icon-${e}">
|
|
348
|
-
${
|
|
348
|
+
${un(this.resolvedIcon)}
|
|
349
349
|
<slot ?hidden=${r}></slot>
|
|
350
350
|
</i>
|
|
351
|
-
`}get textContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let o=this.value||this.textContent;switch(this.variant){case
|
|
351
|
+
`}get textContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let o=this.value||this.textContent;switch(this.variant){case Ze.file_format:this.resolvedIcon=(e=R[o.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:o;break;case Ze.material:this.resolvedIcon=this.value||B;break;default:this.resolvedIcon=(r=Zr[o.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:o;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};xe.elementDefinitions={};xe.styles=Ed;Ii([g()],xe.prototype,"variant",void 0);Ii([g()],xe.prototype,"value",void 0);Ii([G()],xe.prototype,"resolvedIcon",void 0);Ii([z("slot")],xe.prototype,"slottedContent",void 0);H("ft-icon")(xe);var _e={color:i.extend("--ft-loader-color","",$.colorPrimary),size:i.create("--ft-loader-size","","SIZE","80px")},wd=_`
|
|
352
352
|
:host {
|
|
353
353
|
line-height: 0;
|
|
354
354
|
}
|
|
@@ -357,8 +357,8 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
357
357
|
display: inline-block;
|
|
358
358
|
position: relative;
|
|
359
359
|
|
|
360
|
-
width: ${
|
|
361
|
-
height: ${
|
|
360
|
+
width: ${_e.size};
|
|
361
|
+
height: ${_e.size};
|
|
362
362
|
}
|
|
363
363
|
|
|
364
364
|
.ft-loader div {
|
|
@@ -367,7 +367,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
367
367
|
width: 25%;
|
|
368
368
|
height: 25%;
|
|
369
369
|
border-radius: 50%;
|
|
370
|
-
background: ${
|
|
370
|
+
background: ${_e.color};
|
|
371
371
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
372
372
|
}
|
|
373
373
|
|
|
@@ -414,10 +414,10 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
414
414
|
transform: translate(0, 0);
|
|
415
415
|
}
|
|
416
416
|
100% {
|
|
417
|
-
transform: translate(calc(0.35 * ${
|
|
417
|
+
transform: translate(calc(0.35 * ${_e.size}), 0);
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
|
-
`;var
|
|
420
|
+
`;var Ad=i.extend("--ft-button-color","",$.colorPrimary),X={backgroundColor:i.extend("--ft-button-background-color","",$.colorSurface),borderRadius:i.extend("--ft-button-border-radius","",$.borderRadiusL),color:Ad,fontSize:i.extend("--ft-button-font-size","",ct.fontSize),iconSize:i.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:i.extend("--ft-button-ripple-color","",Ad),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")},Rd=i.extend("--ft-button-primary-color","",i.extend("--ft-button-color","",$.colorOnPrimary)),ys={backgroundColor:i.extend("--ft-button-primary-background-color","",i.extend("--ft-button-background-color","",$.colorPrimary)),color:Rd,rippleColor:i.extend("--ft-button-primary-ripple-color","",Rd)},dt={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")},Nd=[_`
|
|
421
421
|
:host {
|
|
422
422
|
display: inline-block;
|
|
423
423
|
max-width: 100%;
|
|
@@ -459,8 +459,8 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
459
459
|
|
|
460
460
|
--ft-button-internal-line-height: max(calc(${X.fontSize} + 2px), ${X.iconSize});
|
|
461
461
|
--ft-button-internal-color: ${X.color};
|
|
462
|
-
${
|
|
463
|
-
${
|
|
462
|
+
${L(he.size,X.iconSize)};
|
|
463
|
+
${L(j.color,X.rippleColor)};
|
|
464
464
|
|
|
465
465
|
border-radius: ${X.borderRadius};
|
|
466
466
|
padding: ${X.verticalPadding} ${X.horizontalPadding};
|
|
@@ -475,13 +475,13 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
475
475
|
}
|
|
476
476
|
|
|
477
477
|
.ft-button.ft-button--dense {
|
|
478
|
-
padding: ${
|
|
479
|
-
border-radius: ${
|
|
480
|
-
gap: ${
|
|
478
|
+
padding: ${dt.verticalPadding} ${dt.horizontalPadding};
|
|
479
|
+
border-radius: ${dt.borderRadius};
|
|
480
|
+
gap: ${dt.iconPadding};
|
|
481
481
|
}
|
|
482
482
|
|
|
483
483
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
484
|
-
padding: calc(${
|
|
484
|
+
padding: calc(${dt.verticalPadding} - 1px) calc(${dt.horizontalPadding} - 1px);
|
|
485
485
|
}
|
|
486
486
|
|
|
487
487
|
.ft-button:not([disabled]):hover {
|
|
@@ -493,7 +493,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
493
493
|
}
|
|
494
494
|
|
|
495
495
|
.ft-button--round.ft-button--dense {
|
|
496
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
496
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${dt.verticalPadding});
|
|
497
497
|
}
|
|
498
498
|
|
|
499
499
|
.ft-button[disabled] {
|
|
@@ -502,9 +502,9 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
502
502
|
}
|
|
503
503
|
|
|
504
504
|
.ft-button.ft-button--primary {
|
|
505
|
-
background-color: ${
|
|
506
|
-
--ft-button-internal-color: ${
|
|
507
|
-
${
|
|
505
|
+
background-color: ${ys.backgroundColor};
|
|
506
|
+
--ft-button-internal-color: ${ys.color};
|
|
507
|
+
${L(j.color,ys.rippleColor)};
|
|
508
508
|
}
|
|
509
509
|
|
|
510
510
|
.ft-button:focus {
|
|
@@ -518,12 +518,12 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
518
518
|
text-overflow: ellipsis;
|
|
519
519
|
display: block;
|
|
520
520
|
margin: 0 ${X.iconPadding};
|
|
521
|
-
${
|
|
522
|
-
${
|
|
521
|
+
${L(ct.fontSize,"1em")};
|
|
522
|
+
${L(ct.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
523
523
|
}
|
|
524
524
|
|
|
525
525
|
.ft-button--dense .ft-button--label {
|
|
526
|
-
margin: 0 ${
|
|
526
|
+
margin: 0 ${dt.iconPadding};
|
|
527
527
|
}
|
|
528
528
|
|
|
529
529
|
.ft-button--label[hidden] {
|
|
@@ -541,8 +541,8 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
541
541
|
}
|
|
542
542
|
|
|
543
543
|
.ft-button--dense .ft-button--label[hidden] + [part="icon"] {
|
|
544
|
-
margin: 0 calc(${
|
|
545
|
-
padding: 0 ${
|
|
544
|
+
margin: 0 calc(${dt.horizontalPadding} * -1);
|
|
545
|
+
padding: 0 ${dt.verticalPadding};
|
|
546
546
|
}
|
|
547
547
|
|
|
548
548
|
.ft-button:not(.ft-button--trailing-icon) [part="label"]{
|
|
@@ -550,10 +550,10 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
550
550
|
}
|
|
551
551
|
|
|
552
552
|
ft-loader {
|
|
553
|
-
${
|
|
554
|
-
${
|
|
553
|
+
${L(_e.size,X.iconSize)};
|
|
554
|
+
${L(_e.color,"var(--ft-button-internal-color)")};
|
|
555
555
|
}
|
|
556
|
-
`,
|
|
556
|
+
`,dr];var qr={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")},_d=_`
|
|
557
557
|
.ft-tooltip--container {
|
|
558
558
|
display: block;
|
|
559
559
|
}
|
|
@@ -568,21 +568,21 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
568
568
|
box-sizing: border-box;
|
|
569
569
|
overflow: hidden;
|
|
570
570
|
width: max-content;
|
|
571
|
-
max-width: ${
|
|
571
|
+
max-width: ${qr.maxWidth};
|
|
572
572
|
text-align: center;
|
|
573
|
-
padding: ${
|
|
574
|
-
z-index: ${
|
|
573
|
+
padding: ${qr.distance};
|
|
574
|
+
z-index: ${qr.zIndex};
|
|
575
575
|
}
|
|
576
576
|
|
|
577
577
|
.ft-tooltip--content {
|
|
578
578
|
padding: 4px 8px;
|
|
579
|
-
border-radius: ${
|
|
580
|
-
background-color: ${
|
|
581
|
-
color: ${
|
|
579
|
+
border-radius: ${qr.borderRadiusS};
|
|
580
|
+
background-color: ${qr.backgroundColor};
|
|
581
|
+
color: ${qr.color};
|
|
582
582
|
position: relative;
|
|
583
583
|
word-break: break-word;
|
|
584
584
|
}
|
|
585
|
-
`;var
|
|
585
|
+
`;var ke=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ne=class extends U{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 se,this.revealDebouncer=new se}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return T`
|
|
586
586
|
<div part="container"
|
|
587
587
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
588
588
|
@mouseenter=${this.onHover}
|
|
@@ -600,40 +600,40 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
600
600
|
</div>
|
|
601
601
|
</div>
|
|
602
602
|
</div>
|
|
603
|
-
`}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&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(r=>r.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="",
|
|
603
|
+
`}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&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(r=>r.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="",fa(this.slottedElement,this.tooltip,this.position).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${r}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",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,r){return Math.max(e,Math.min(0,-r))}};ne.elementDefinitions={"ft-typography":oe};ne.styles=_d;ke([g()],ne.prototype,"text",void 0);ke([g({type:Boolean})],ne.prototype,"manual",void 0);ke([g({type:Boolean})],ne.prototype,"inline",void 0);ke([g({type:Number})],ne.prototype,"delay",void 0);ke([g()],ne.prototype,"position",void 0);ke([ln()],ne.prototype,"slotNodes",void 0);ke([z(".ft-tooltip--container")],ne.prototype,"container",void 0);ke([z(".ft-tooltip")],ne.prototype,"tooltip",void 0);ke([z(".ft-tooltip--content")],ne.prototype,"tooltipContent",void 0);ke([G()],ne.prototype,"visible",void 0);ke([Cr({passive:!0})],ne.prototype,"onTouch",null);ke([Cr({passive:!0})],ne.prototype,"onHover",null);ke([Cr({passive:!0})],ne.prototype,"onOut",null);ke([Cr({passive:!0})],ne.prototype,"onClick",null);H("ft-tooltip")(ne);var br=class extends U{render(){return T`
|
|
604
604
|
<div class="ft-loader">
|
|
605
605
|
<div></div>
|
|
606
606
|
<div></div>
|
|
607
607
|
<div></div>
|
|
608
608
|
<div></div>
|
|
609
609
|
</div>
|
|
610
|
-
`}};
|
|
610
|
+
`}};br.styles=wd;H("ft-loader")(br);var De=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},de=class extends es(U,"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 r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e;return this.addTooltipIfNeeded(T`
|
|
611
611
|
<button part="button"
|
|
612
|
-
class="${
|
|
612
|
+
class="${Re(this.buttonClasses)}"
|
|
613
613
|
aria-label="${(e=this.ariaLabel)!==null&&e!==void 0?e:this.getLabel()}"
|
|
614
614
|
?disabled=${this.isDisabled()}>
|
|
615
615
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
616
616
|
<ft-typography part="label"
|
|
617
617
|
variant=${this.typographyVariant}
|
|
618
618
|
element="span"
|
|
619
|
-
class="ft-button--label ${
|
|
619
|
+
class="ft-button--label ${mr?"ft-safari-ellipsis-fix":""}"
|
|
620
620
|
?hidden=${!this.hasTextContent()}>
|
|
621
621
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
622
622
|
</ft-typography>
|
|
623
623
|
${this.resolveIcon()}
|
|
624
624
|
</button>
|
|
625
|
-
`)}addTooltipIfNeeded(e){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?
|
|
625
|
+
`)}addTooltipIfNeeded(e){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?T`
|
|
626
626
|
<ft-tooltip part="tooltip"
|
|
627
627
|
text="${this.getLabel()}"
|
|
628
628
|
position="${this.tooltipPosition}">
|
|
629
629
|
${e}
|
|
630
630
|
</ft-tooltip>
|
|
631
|
-
`:e}resolveIcon(){return this.loading?
|
|
632
|
-
<ft-loader part="loader icon"></ft-loader> `:this.icon?
|
|
631
|
+
`:e}resolveIcon(){return this.loading?T`
|
|
632
|
+
<ft-loader part="loader icon"></ft-loader> `:this.icon?T`
|
|
633
633
|
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
634
|
-
`:
|
|
634
|
+
`:T`
|
|
635
635
|
<slot part="icon" name="icon"></slot>
|
|
636
|
-
`}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(r=>this.unslotText(r)).join(""):e?.textContent||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};
|
|
636
|
+
`}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(r=>this.unslotText(r)).join(""):e?.textContent||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};de.elementDefinitions={"ft-ripple":q,"ft-tooltip":ne,"ft-typography":oe,"ft-icon":xe,"ft-loader":br};De([g({type:String,reflect:!0})],de.prototype,"role",void 0);De([g()],de.prototype,"type",void 0);De([g({type:Boolean})],de.prototype,"disabled",void 0);De([g()],de.prototype,"label",void 0);De([g()],de.prototype,"icon",void 0);De([g()],de.prototype,"iconVariant",void 0);De([g({type:Boolean})],de.prototype,"trailingIcon",void 0);De([g({type:Boolean})],de.prototype,"loading",void 0);De([g({attribute:"aria-label"})],de.prototype,"ariaLabel",void 0);De([g()],de.prototype,"tooltipPosition",void 0);De([g({type:Boolean})],de.prototype,"hideTooltip",void 0);De([g({type:Boolean})],de.prototype,"forceTooltip",void 0);De([z(".ft-button")],de.prototype,"button",void 0);De([z(".ft-button--label slot")],de.prototype,"slottedContent",void 0);var ki=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ee=class extends de{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"}};Ee.styles=[Co,Nd];ki([g({type:Boolean})],Ee.prototype,"primary",void 0);ki([g({type:Boolean})],Ee.prototype,"outlined",void 0);ki([g({type:Boolean})],Ee.prototype,"dense",void 0);ki([g({type:Boolean})],Ee.prototype,"round",void 0);var Td=[_`
|
|
637
637
|
:host {
|
|
638
638
|
display: inline-block;
|
|
639
639
|
max-width: 100%;
|
|
@@ -683,7 +683,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
683
683
|
}
|
|
684
684
|
|
|
685
685
|
.ft-button:focus-visible {
|
|
686
|
-
outline-color: ${
|
|
686
|
+
outline-color: ${A.focusFocusRingColor};
|
|
687
687
|
outline-style: solid;
|
|
688
688
|
}
|
|
689
689
|
|
|
@@ -717,167 +717,167 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
717
717
|
/** Primary styles **/
|
|
718
718
|
|
|
719
719
|
.ft-button--primary {
|
|
720
|
-
${
|
|
720
|
+
${L(_e.color,A.primaryIconColor)};
|
|
721
721
|
|
|
722
|
-
${
|
|
723
|
-
${
|
|
724
|
-
${
|
|
725
|
-
${
|
|
726
|
-
${
|
|
722
|
+
${L(j.color,A.primaryStateLayerColor)};
|
|
723
|
+
${L(j.opacityContentOnSurfaceHover,A.primaryHoverStateLayerOpacity)};
|
|
724
|
+
${L(j.opacityContentOnSurfaceFocused,A.primaryFocusStateLayerOpacity)};
|
|
725
|
+
${L(j.opacityContentOnSurfaceSelected,A.primaryActiveStateLayerOpacity)};
|
|
726
|
+
${L(j.opacityContentOnSurfacePressed,A.primaryActiveStateLayerOpacity)};
|
|
727
727
|
|
|
728
|
-
background-color: ${
|
|
729
|
-
color: ${
|
|
728
|
+
background-color: ${A.primaryBackgroundColor};
|
|
729
|
+
color: ${A.primaryColor};
|
|
730
730
|
border-style: none;
|
|
731
731
|
}
|
|
732
732
|
|
|
733
733
|
.ft-button--primary[disabled] {
|
|
734
|
-
opacity: ${
|
|
734
|
+
opacity: ${A.primaryDisabledComponentOpacity};
|
|
735
735
|
}
|
|
736
736
|
|
|
737
737
|
.ft-button--primary ft-icon {
|
|
738
|
-
color: ${
|
|
738
|
+
color: ${A.primaryIconColor};
|
|
739
739
|
}
|
|
740
740
|
|
|
741
741
|
/** Secondary styles **/
|
|
742
742
|
|
|
743
743
|
.ft-button--secondary {
|
|
744
|
-
${
|
|
744
|
+
${L(_e.color,A.secondaryIconColor)};
|
|
745
745
|
|
|
746
|
-
${
|
|
747
|
-
${
|
|
748
|
-
${
|
|
749
|
-
${
|
|
750
|
-
${
|
|
746
|
+
${L(j.color,A.secondaryStateLayerColor)};
|
|
747
|
+
${L(j.opacityContentOnSurfaceHover,A.secondaryHoverStateLayerOpacity)};
|
|
748
|
+
${L(j.opacityContentOnSurfaceFocused,A.secondaryFocusStateLayerOpacity)};
|
|
749
|
+
${L(j.opacityContentOnSurfaceSelected,A.secondaryActiveStateLayerOpacity)};
|
|
750
|
+
${L(j.opacityContentOnSurfacePressed,A.secondaryActiveStateLayerOpacity)};
|
|
751
751
|
|
|
752
|
-
background-color: ${
|
|
753
|
-
color: ${
|
|
754
|
-
border-color: ${
|
|
752
|
+
background-color: ${A.secondaryBackgroundColor};
|
|
753
|
+
color: ${A.secondaryColor};
|
|
754
|
+
border-color: ${A.secondaryBorderColor};
|
|
755
755
|
border-style: solid;
|
|
756
756
|
}
|
|
757
757
|
|
|
758
758
|
.ft-button--secondary[disabled] {
|
|
759
|
-
opacity: ${
|
|
759
|
+
opacity: ${A.secondaryDisabledComponentOpacity};
|
|
760
760
|
}
|
|
761
761
|
|
|
762
762
|
.ft-button--secondary ft-icon {
|
|
763
|
-
color: ${
|
|
763
|
+
color: ${A.secondaryIconColor};
|
|
764
764
|
}
|
|
765
765
|
|
|
766
766
|
/** Tertiary styles **/
|
|
767
767
|
|
|
768
768
|
.ft-button--tertiary {
|
|
769
|
-
${
|
|
769
|
+
${L(_e.color,A.tertiaryIconColor)};
|
|
770
770
|
|
|
771
|
-
${
|
|
772
|
-
${
|
|
773
|
-
${
|
|
774
|
-
${
|
|
775
|
-
${
|
|
771
|
+
${L(j.color,A.tertiaryStateLayerColor)};
|
|
772
|
+
${L(j.opacityContentOnSurfaceHover,A.tertiaryHoverStateLayerOpacity)};
|
|
773
|
+
${L(j.opacityContentOnSurfaceFocused,A.tertiaryFocusStateLayerOpacity)};
|
|
774
|
+
${L(j.opacityContentOnSurfaceSelected,A.tertiaryActiveStateLayerOpacity)};
|
|
775
|
+
${L(j.opacityContentOnSurfacePressed,A.tertiaryActiveStateLayerOpacity)};
|
|
776
776
|
|
|
777
|
-
background-color: ${
|
|
778
|
-
color: ${
|
|
777
|
+
background-color: ${A.tertiaryBackgroundColor};
|
|
778
|
+
color: ${A.tertiaryColor};
|
|
779
779
|
border-style: none;
|
|
780
780
|
}
|
|
781
781
|
|
|
782
782
|
.ft-button--tertiary[disabled] {
|
|
783
|
-
opacity: ${
|
|
783
|
+
opacity: ${A.tertiaryDisabledComponentOpacity};
|
|
784
784
|
}
|
|
785
785
|
|
|
786
786
|
.ft-button--tertiary ft-icon {
|
|
787
|
-
color: ${
|
|
787
|
+
color: ${A.tertiaryIconColor};
|
|
788
788
|
}
|
|
789
789
|
|
|
790
790
|
/** Neutral styles **/
|
|
791
791
|
|
|
792
792
|
.ftds--family-neutral {
|
|
793
|
-
${
|
|
793
|
+
${L(_e.color,A.neutralIconColor)};
|
|
794
794
|
|
|
795
|
-
${
|
|
796
|
-
${
|
|
797
|
-
${
|
|
798
|
-
${
|
|
799
|
-
${
|
|
795
|
+
${L(j.backgroundColor,A.neutralStateLayerColor)};
|
|
796
|
+
${L(j.opacityContentOnSurfaceHover,A.neutralHoverStateLayerOpacity)};
|
|
797
|
+
${L(j.opacityContentOnSurfaceFocused,A.neutralFocusStateLayerOpacity)};
|
|
798
|
+
${L(j.opacityContentOnSurfaceSelected,A.neutralActiveStateLayerOpacity)};
|
|
799
|
+
${L(j.opacityContentOnSurfacePressed,A.neutralActiveStateLayerOpacity)};
|
|
800
800
|
|
|
801
|
-
background-color: ${
|
|
802
|
-
color: ${
|
|
801
|
+
background-color: ${A.neutralBackgroundColor};
|
|
802
|
+
color: ${A.neutralColor};
|
|
803
803
|
border-style: none;
|
|
804
804
|
}
|
|
805
805
|
|
|
806
806
|
.ftds--family-neutral[disabled] {
|
|
807
|
-
opacity: ${
|
|
807
|
+
opacity: ${A.neutralDisabledComponentOpacity};
|
|
808
808
|
}
|
|
809
809
|
|
|
810
810
|
.ftds--family-neutral ft-icon {
|
|
811
|
-
color: ${
|
|
811
|
+
color: ${A.neutralIconColor};
|
|
812
812
|
}
|
|
813
813
|
|
|
814
814
|
/** Large styles **/
|
|
815
815
|
|
|
816
816
|
.ftds--size-large {
|
|
817
|
-
${
|
|
818
|
-
${
|
|
817
|
+
${L(he.size,A.largeIconSize)};
|
|
818
|
+
${L(_e.size,A.largeIconSize)};
|
|
819
819
|
|
|
820
|
-
height: ${
|
|
821
|
-
padding: 0 ${
|
|
822
|
-
gap: ${
|
|
823
|
-
border-radius: ${
|
|
824
|
-
border-width: ${
|
|
820
|
+
height: ${A.largeHeight};
|
|
821
|
+
padding: 0 ${A.largeHorizontalPadding};
|
|
822
|
+
gap: ${A.largeGap};
|
|
823
|
+
border-radius: ${A.largeBorderRadius};
|
|
824
|
+
border-width: ${A.largeBorderWidth};
|
|
825
825
|
}
|
|
826
826
|
|
|
827
827
|
.ftds--size-large:focus-visible {
|
|
828
|
-
outline-width: ${
|
|
829
|
-
outline-offset: ${
|
|
828
|
+
outline-width: ${A.largeFocusOutlineWidth};
|
|
829
|
+
outline-offset: ${A.largeFocusOutlineOffset};
|
|
830
830
|
}
|
|
831
831
|
|
|
832
832
|
.ftds--size-large.ft-button--icon-only {
|
|
833
|
-
width: ${
|
|
833
|
+
width: ${A.largeIconOnlyWidth};
|
|
834
834
|
}
|
|
835
835
|
|
|
836
836
|
/** Small styles **/
|
|
837
837
|
|
|
838
838
|
.ftds--size-medium {
|
|
839
|
-
${
|
|
840
|
-
${
|
|
839
|
+
${L(he.size,A.mediumIconSize)};
|
|
840
|
+
${L(_e.size,A.mediumIconSize)};
|
|
841
841
|
|
|
842
|
-
height: ${
|
|
843
|
-
padding: 0 ${
|
|
844
|
-
gap: ${
|
|
845
|
-
border-radius: ${
|
|
846
|
-
border-width: ${
|
|
842
|
+
height: ${A.mediumHeight};
|
|
843
|
+
padding: 0 ${A.mediumHorizontalPadding};
|
|
844
|
+
gap: ${A.mediumGap};
|
|
845
|
+
border-radius: ${A.mediumBorderRadius};
|
|
846
|
+
border-width: ${A.mediumBorderWidth};
|
|
847
847
|
}
|
|
848
848
|
|
|
849
849
|
.ftds--size-medium:focus-visible {
|
|
850
|
-
outline-width: ${
|
|
851
|
-
outline-offset: ${
|
|
850
|
+
outline-width: ${A.mediumFocusOutlineWidth};
|
|
851
|
+
outline-offset: ${A.mediumFocusOutlineOffset};
|
|
852
852
|
}
|
|
853
853
|
|
|
854
854
|
.ftds--size-medium.ft-button--icon-only {
|
|
855
|
-
width: ${
|
|
855
|
+
width: ${A.mediumIconOnlyWidth};
|
|
856
856
|
}
|
|
857
857
|
|
|
858
858
|
|
|
859
859
|
/** Small styles **/
|
|
860
860
|
|
|
861
861
|
.ftds--size-small {
|
|
862
|
-
${
|
|
863
|
-
${
|
|
862
|
+
${L(he.size,A.smallIconSize)};
|
|
863
|
+
${L(_e.size,A.smallIconSize)};
|
|
864
864
|
|
|
865
|
-
height: ${
|
|
866
|
-
padding: 0 ${
|
|
867
|
-
gap: ${
|
|
868
|
-
border-radius: ${
|
|
869
|
-
border-width: ${
|
|
865
|
+
height: ${A.smallHeight};
|
|
866
|
+
padding: 0 ${A.smallHorizontalPadding};
|
|
867
|
+
gap: ${A.smallGap};
|
|
868
|
+
border-radius: ${A.smallBorderRadius};
|
|
869
|
+
border-width: ${A.smallBorderWidth};
|
|
870
870
|
}
|
|
871
871
|
|
|
872
872
|
.ftds--size-small:focus-visible {
|
|
873
|
-
outline-width: ${
|
|
874
|
-
outline-offset: ${
|
|
873
|
+
outline-width: ${A.smallFocusOutlineWidth};
|
|
874
|
+
outline-offset: ${A.smallFocusOutlineOffset};
|
|
875
875
|
}
|
|
876
876
|
|
|
877
877
|
.ftds--size-small.ft-button--icon-only {
|
|
878
|
-
width: ${
|
|
878
|
+
width: ${A.smallIconOnlyWidth};
|
|
879
879
|
}
|
|
880
|
-
`,
|
|
880
|
+
`,dr];var Di=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Qe=class extends hi(de){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=bt.brand,this.iconVariant=Ze.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 ge.large:return Ke.body2medium;case ge.medium:return Ke.caption1medium;case ge.small:return Ke.caption2medium}}};Qe.styles=[Co,Td];Di([g({type:Boolean})],Qe.prototype,"primary",void 0);Di([g({type:Boolean})],Qe.prototype,"secondary",void 0);Di([g({type:Boolean})],Qe.prototype,"tertiary",void 0);Di([g({type:Boolean})],Qe.prototype,"round",void 0);H("ft-button")(Ee);H("ftds-button")(Qe);var Pd=i.extend("--ft-chip-color","",$.colorOnSurface),qe={backgroundColor:i.extend("--ft-chip-background-color","",$.colorSurface),color:Pd,fontSize:i.extend("--ft-chip-font-size","",Ce.fontSize),iconSize:i.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:i.create("--ft-chip-border-radius","","SIZE",""),rippleColor:i.extend("--ft-chip-ripple-color","",Pd),horizontalPadding:i.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:i.create("--ft-chip-vertical-padding","","SIZE","6px"),colorOutline:i.external($.colorOutline,"Design system"),opacityDisabled:i.external($.colorOpacityDisabled,"Design system")},Ld=i.extend("--ft-chip-highlighted-color","",i.extend("--ft-chip-color","",$.colorOnPrimary)),gs={backgroundColor:i.extend("--ft-chip-highlighted-background-color","",i.extend("--ft-chip-background-color","",$.colorPrimary)),color:Ld,rippleColor:i.extend("--ft-chip-highlighted-ripple-color","",Ld)},$d={horizontalPadding:i.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:i.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Id=[dr,_`
|
|
881
881
|
:host {
|
|
882
882
|
display: inline-block;
|
|
883
883
|
max-width: 100%;
|
|
@@ -893,20 +893,20 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
893
893
|
box-sizing: border-box;
|
|
894
894
|
pointer-events: auto;
|
|
895
895
|
|
|
896
|
-
--ft-chip-internal-font-size: ${
|
|
896
|
+
--ft-chip-internal-font-size: ${qe.fontSize};
|
|
897
897
|
--ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
898
|
-
${
|
|
899
|
-
--ft-chip-internal-vertical-padding: ${
|
|
900
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
898
|
+
${L(he.size,qe.iconSize)};
|
|
899
|
+
--ft-chip-internal-vertical-padding: ${qe.verticalPadding};
|
|
900
|
+
--ft-chip-internal-horizontal-padding: ${qe.horizontalPadding};
|
|
901
901
|
--ft-chip-internal-icon-padding: 3px;
|
|
902
|
-
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${
|
|
902
|
+
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${qe.iconSize});
|
|
903
903
|
|
|
904
|
-
border: 1px solid ${
|
|
905
|
-
color: ${
|
|
906
|
-
${
|
|
907
|
-
border-radius: var(${
|
|
904
|
+
border: 1px solid ${qe.colorOutline};
|
|
905
|
+
color: ${qe.color};
|
|
906
|
+
${L(j.color,qe.rippleColor)};
|
|
907
|
+
border-radius: var(${ut(qe.borderRadius.name)}, calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding)));
|
|
908
908
|
padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
|
|
909
|
-
background-color: ${
|
|
909
|
+
background-color: ${qe.backgroundColor};
|
|
910
910
|
line-height: var(--ft-chip-internal-content-height);
|
|
911
911
|
}
|
|
912
912
|
|
|
@@ -916,8 +916,8 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
916
916
|
|
|
917
917
|
.ft-chip--dense {
|
|
918
918
|
--ft-chip-internal-icon-padding: 3px;
|
|
919
|
-
--ft-chip-internal-vertical-padding: ${
|
|
920
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
919
|
+
--ft-chip-internal-vertical-padding: ${$d.verticalPadding};
|
|
920
|
+
--ft-chip-internal-horizontal-padding: ${$d.horizontalPadding};
|
|
921
921
|
--ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
922
922
|
}
|
|
923
923
|
|
|
@@ -929,15 +929,15 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
929
929
|
cursor: default;
|
|
930
930
|
pointer-events: none;
|
|
931
931
|
filter: grayscale(1);
|
|
932
|
-
opacity: ${
|
|
932
|
+
opacity: ${qe.opacityDisabled};
|
|
933
933
|
}
|
|
934
934
|
|
|
935
935
|
.ft-chip--highlighted {
|
|
936
936
|
border: none;
|
|
937
937
|
padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
|
|
938
|
-
background-color: ${
|
|
939
|
-
${
|
|
940
|
-
color: ${
|
|
938
|
+
background-color: ${gs.backgroundColor};
|
|
939
|
+
${L(j.color,gs.rippleColor)};
|
|
940
|
+
color: ${gs.color};
|
|
941
941
|
}
|
|
942
942
|
|
|
943
943
|
.ft-chip--clickable {
|
|
@@ -967,9 +967,9 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
967
967
|
}
|
|
968
968
|
|
|
969
969
|
.ft-chip--icon-button {
|
|
970
|
-
${
|
|
971
|
-
${
|
|
972
|
-
${
|
|
970
|
+
${L(X.iconSize,qe.iconSize)};
|
|
971
|
+
${L(X.horizontalPadding,"var(--ft-chip-internal-icon-padding)")};
|
|
972
|
+
${L(X.verticalPadding,"var(--ft-chip-internal-icon-padding)")};
|
|
973
973
|
margin: calc((-1) * var(--ft-chip-internal-icon-padding));
|
|
974
974
|
}
|
|
975
975
|
|
|
@@ -977,8 +977,8 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
977
977
|
vertical-align: bottom;
|
|
978
978
|
display: block;
|
|
979
979
|
margin: 0 var(--ft-chip-internal-horizontal-padding);
|
|
980
|
-
${
|
|
981
|
-
${
|
|
980
|
+
${L(Ce.fontSize,"var(--ft-chip-internal-font-size)")};
|
|
981
|
+
${L(Ce.lineHeight,"var(--ft-chip-internal-content-height)")};
|
|
982
982
|
}
|
|
983
983
|
|
|
984
984
|
.ft-chip--safari-fix .ft-chip--label {
|
|
@@ -1014,8 +1014,8 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1014
1014
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
|
|
1015
1015
|
order: -1;
|
|
1016
1016
|
}
|
|
1017
|
-
`];var
|
|
1018
|
-
<div class="${
|
|
1017
|
+
`];var Ve=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Fi=class extends CustomEvent{constructor(){super("icon-click")}},pe=class extends U{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.icon=void 0,this.trailingIcon=!1}render(){let e={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":mr};return T`
|
|
1018
|
+
<div class="${Re(e)}"
|
|
1019
1019
|
aria-label="${this.getLabel()}"
|
|
1020
1020
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
1021
1021
|
@keyup=${this.onKeyUp}
|
|
@@ -1026,7 +1026,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1026
1026
|
</ft-typography>
|
|
1027
1027
|
${this.internalIcon?this.renderIcon():null}
|
|
1028
1028
|
</div>
|
|
1029
|
-
`}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?
|
|
1029
|
+
`}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?T`
|
|
1030
1030
|
<ft-button round
|
|
1031
1031
|
class="ft-chip--icon-button"
|
|
1032
1032
|
@click=${this.onIconClick}
|
|
@@ -1036,11 +1036,11 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1036
1036
|
tooltipposition="top"
|
|
1037
1037
|
part="icon-button"
|
|
1038
1038
|
></ft-button>
|
|
1039
|
-
`:
|
|
1039
|
+
`:T`
|
|
1040
1040
|
<div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
|
|
1041
1041
|
<ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}" part="icon"></ft-icon>
|
|
1042
1042
|
</div>
|
|
1043
|
-
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new
|
|
1043
|
+
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new Fi))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new Fi))}getLabel(){return this.label||this.textContent}get textContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&r!==void 0?r:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};pe.elementDefinitions={"ft-ripple":q,"ft-typography":oe,"ft-icon":xe,"ft-button":Ee};pe.styles=Id;Ve([g({type:Boolean})],pe.prototype,"highlighted",void 0);Ve([g({type:Boolean})],pe.prototype,"removable",void 0);Ve([g({type:Boolean})],pe.prototype,"disabled",void 0);Ve([g({type:Boolean})],pe.prototype,"clickable",void 0);Ve([g({type:Boolean})],pe.prototype,"iconClickable",void 0);Ve([g({type:Boolean})],pe.prototype,"dense",void 0);Ve([g({type:Boolean})],pe.prototype,"multiLine",void 0);Ve([g()],pe.prototype,"label",void 0);Ve([g()],pe.prototype,"iconLabel",void 0);Ve([g()],pe.prototype,"icon",void 0);Ve([g()],pe.prototype,"iconVariant",void 0);Ve([g({type:Boolean})],pe.prototype,"trailingIcon",void 0);Ve([z("ft-typography slot")],pe.prototype,"slottedContent",void 0);var kd=[_`
|
|
1044
1044
|
:host {
|
|
1045
1045
|
display: inline-block;
|
|
1046
1046
|
max-width: 100%;
|
|
@@ -1064,7 +1064,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1064
1064
|
border-width: ${W.mediumBorderWidth};
|
|
1065
1065
|
border-style: solid;
|
|
1066
1066
|
gap: ${W.mediumGap};
|
|
1067
|
-
${
|
|
1067
|
+
${L(he.size,W.mediumIconSize)}
|
|
1068
1068
|
}
|
|
1069
1069
|
|
|
1070
1070
|
.ftds--size-medium.ftds-chip--removable {
|
|
@@ -1080,7 +1080,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1080
1080
|
border-width: ${W.largeBorderWidth};
|
|
1081
1081
|
border-style: solid;
|
|
1082
1082
|
gap: ${W.largeGap};
|
|
1083
|
-
${
|
|
1083
|
+
${L(he.size,W.largeIconSize)}
|
|
1084
1084
|
}
|
|
1085
1085
|
|
|
1086
1086
|
.ftds--size-large.ftds-chip--removable {
|
|
@@ -1146,8 +1146,8 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1146
1146
|
.ftds--family-error .ftds-chip--icon-container {
|
|
1147
1147
|
color: ${W.errorIconColor};
|
|
1148
1148
|
}
|
|
1149
|
-
`];var
|
|
1150
|
-
<div class="${
|
|
1149
|
+
`];var Po=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},bs=class extends CustomEvent{constructor(){super("remove")}},et=class extends So{constructor(){super(...arguments),this.removable=!1,this.removeButtonLabel="Remove",this.label=""}render(){let e={"ftds-chip":!0,"ftds-chip--removable":this.removable,"ftds-chip--with-icon":!!this.icon,...this.getDesignSystemBaseClasses()};return T`
|
|
1150
|
+
<div class="${Re(e)}"
|
|
1151
1151
|
aria-label="${this.getLabel()}"
|
|
1152
1152
|
part="chip">
|
|
1153
1153
|
${this.renderIcon()}
|
|
@@ -1156,38 +1156,38 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1156
1156
|
</ft-typography>
|
|
1157
1157
|
${this.renderRemoveButton()}
|
|
1158
1158
|
</div>
|
|
1159
|
-
`}renderIcon(){return this.icon?
|
|
1159
|
+
`}renderIcon(){return this.icon?T`
|
|
1160
1160
|
<div class="ftds-chip--icon-container" part="icon-container">
|
|
1161
|
-
<ft-icon .variant=${
|
|
1161
|
+
<ft-icon .variant=${Ze.fluid_topics} .value="${this.icon}" part="icon"></ft-icon>
|
|
1162
1162
|
</div>
|
|
1163
|
-
`:B}renderRemoveButton(){return this.removable?
|
|
1163
|
+
`:B}renderRemoveButton(){return this.removable?T`
|
|
1164
1164
|
<ftds-button round
|
|
1165
1165
|
class="ftds-chip--remove-button"
|
|
1166
1166
|
@click=${this.dispatchRemoveEvent}
|
|
1167
|
-
icon=${
|
|
1167
|
+
icon=${Zr.X_MARK}
|
|
1168
1168
|
label=${this.removeButtonLabel}
|
|
1169
|
-
family=${
|
|
1169
|
+
family=${bt.neutral}
|
|
1170
1170
|
size=${this.resolveButtonSize()}
|
|
1171
1171
|
part="icon-button"
|
|
1172
1172
|
></ftds-button>
|
|
1173
|
-
`:B}resolveButtonSize(){switch(this.size){case
|
|
1174
|
-
`;var
|
|
1173
|
+
`:B}resolveButtonSize(){switch(this.size){case ge.large:return ge.medium;case ge.medium:case ge.small:return ge.small}}getLabel(){return this.label||this.textContent}get textContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&r!==void 0?r:""}onSlotchange(){this.requestUpdate()}dispatchRemoveEvent(){this.dispatchEvent(new bs)}typographyVariant(){switch(this.size){case ge.large:return Ke.body2medium;case ge.medium:return Ke.caption1medium;case ge.small:return Ke.caption2medium}}};et.elementDefinitions={"ft-typography":oe,"ft-icon":xe,"ftds-button":Qe};et.styles=kd;Po([g({type:Boolean})],et.prototype,"removable",void 0);Po([g()],et.prototype,"removeButtonLabel",void 0);Po([g()],et.prototype,"label",void 0);Po([g()],et.prototype,"icon",void 0);Po([z("ft-typography slot")],et.prototype,"slottedContent",void 0);H("ft-chip")(pe);H("ftds-chip")(et);var Dd=_`
|
|
1174
|
+
`;var Fu=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},xs=Symbol("i18nAttributes"),Mi=Symbol("i18nProperties"),Lo=Symbol("i18nUnsubs");function Wt(t){var e;class r extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Qc:gr}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[xs])===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[Mi])===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[xs])===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[Mi])===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[Mi])===null||n===void 0?void 0:n.values())!==null&&a!==void 0?a:[],...[...(l=(s=this[xs])===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,Fu([g({type:Boolean})],r.prototype,"useCustomMessageContexts",void 0),r}var Fd=class extends Wt(U){},Ui=class extends Wt(je){};var $o=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},tt=class extends Ui{constructor(){super(),this.editorMode=!1,this.addStore(M)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":B:T`
|
|
1175
1175
|
<span class="ft-i18n">
|
|
1176
1176
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
1177
1177
|
</span>
|
|
1178
|
-
`}update(e){var r;super.update(e),["context","key","defaultMessage"].some(o=>e.has(o))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};
|
|
1179
|
-
`;var
|
|
1178
|
+
`}update(e){var r;super.update(e),["context","key","defaultMessage"].some(o=>e.has(o))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};tt.elementDefinitions={};tt.styles=Dd;$o([me()],tt.prototype,"editorMode",void 0);$o([g()],tt.prototype,"context",void 0);$o([g()],tt.prototype,"key",void 0);$o([Oe([])],tt.prototype,"args",void 0);$o([g()],tt.prototype,"defaultMessage",void 0);var Yr=class t{static build(e){return new t(e)}static fromGwt(e){return new t(e)}constructor(e){this.name=e,this.properties=new Proxy({},{get:(r,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:(r,o)=>(...n)=>gr.resolveMessage(this.name,o,...n)}),this.rawMessages=new Proxy({},{get:(r,o)=>gr.resolveRawMessage(this.name,o)})}};H("ft-i18n")(tt);var Md=_`
|
|
1179
|
+
`;var Te=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},vs=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e})}},Ss=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e})}},Os=class extends CustomEvent{constructor(e,r,o){super("ft-search-results-change",{detail:{request:e,paging:r,spellcheck:o}})}},fe=class extends je{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=_o.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),e),this._stateManager.errorHandler=r=>this.handleLoadError(r),this.addStore(this.stateManager.store,"search")}return this._stateManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.addStore(M)}render(){return T`
|
|
1180
1180
|
<slot @register-ft-search-component=${this.registerComponent}></slot>
|
|
1181
|
-
`}update(e){super.update(e),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.setContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("session")&&this.session!==void 0&&(this.stateManager.service.clearCache(),this.stateManager.initService())}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.stateManager.setQuery(this.query),this.stateManager.setContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort)}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new
|
|
1182
|
-
`;var
|
|
1181
|
+
`}update(e){super.update(e),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.setContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("session")&&this.session!==void 0&&(this.stateManager.service.clearCache(),this.stateManager.initService())}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.stateManager.setQuery(this.query),this.stateManager.setContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort)}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new Ss(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new Os(this.request,this.paging,this.autocorrect))}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new vs(e))}reloadSavedSearches(){ed.clearMySearches()}clear(){this.stateManager.clear()}};fe.elementDefinitions={};fe.styles=Md;Te([me({store:M.name})],fe.prototype,"session",void 0);Te([g()],fe.prototype,"query",void 0);Te([g()],fe.prototype,"contentLocale",void 0);Te([g({type:Number})],fe.prototype,"pageSize",void 0);Te([g({type:Boolean})],fe.prototype,"searchInDocumentTitlesOnly",void 0);Te([g()],fe.prototype,"scope",void 0);Te([g()],fe.prototype,"virtualField",void 0);Te([g({type:Boolean})],fe.prototype,"ignoreEmptyQuery",void 0);Te([me({store:M.name})],fe.prototype,"openExternalDocumentInNewTab",void 0);Te([Oe([])],fe.prototype,"filters",void 0);Te([Oe([])],fe.prototype,"sort",void 0);Te([me({store:"search"})],fe.prototype,"request",void 0);Te([me({store:"search"})],fe.prototype,"paging",void 0);Te([me({store:"search",selector:t=>t.spellcheck})],fe.prototype,"autocorrect",void 0);Te([g({attribute:!1})],fe.prototype,"searchServiceProvider",void 0);H("ft-search-context")(fe);var Ud=_`
|
|
1182
|
+
`;var wt={textColor:i.extend("--ft-checkbox-text-color","",$.colorOnSurfaceHigh),fontSize:i.extend("--ft-checkbox-font-size","",I.fontSize),colorPrimary:i.external($.colorPrimary,"Design system"),colorOnPrimary:i.external($.colorOnPrimary,"Design system"),borderColor:i.extend("--ft-checkbox-border-color","",$.colorOnSurfaceMedium),colorOnSurfaceDisabled:i.external($.colorOnSurfaceDisabled,"Design system")},Bd=_`
|
|
1183
1183
|
* {
|
|
1184
1184
|
box-sizing: border-box;
|
|
1185
1185
|
}
|
|
1186
1186
|
|
|
1187
1187
|
.ft-checkbox {
|
|
1188
1188
|
box-sizing: border-box;
|
|
1189
|
-
color: ${
|
|
1190
|
-
font-size: ${
|
|
1189
|
+
color: ${wt.textColor};
|
|
1190
|
+
font-size: ${wt.fontSize};
|
|
1191
1191
|
|
|
1192
1192
|
display: inline-flex;
|
|
1193
1193
|
align-items: center;
|
|
@@ -1195,7 +1195,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1195
1195
|
}
|
|
1196
1196
|
|
|
1197
1197
|
.ft-checkbox--disabled {
|
|
1198
|
-
color: ${
|
|
1198
|
+
color: ${wt.colorOnSurfaceDisabled};
|
|
1199
1199
|
}
|
|
1200
1200
|
|
|
1201
1201
|
input {
|
|
@@ -1219,26 +1219,26 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1219
1219
|
|
|
1220
1220
|
.ft-checkbox--box {
|
|
1221
1221
|
display: flex;
|
|
1222
|
-
border: 2px solid ${
|
|
1222
|
+
border: 2px solid ${wt.borderColor};
|
|
1223
1223
|
border-radius: 2px;
|
|
1224
1224
|
|
|
1225
1225
|
width: 18px;
|
|
1226
1226
|
height: 18px;
|
|
1227
1227
|
|
|
1228
|
-
color: ${
|
|
1228
|
+
color: ${wt.colorOnPrimary};
|
|
1229
1229
|
}
|
|
1230
1230
|
|
|
1231
1231
|
|
|
1232
1232
|
.ft-checkbox--checked .ft-checkbox--box,
|
|
1233
1233
|
.ft-checkbox--indeterminate .ft-checkbox--box {
|
|
1234
|
-
border-color: ${
|
|
1235
|
-
background-color: ${
|
|
1234
|
+
border-color: ${wt.colorPrimary};
|
|
1235
|
+
background-color: ${wt.colorPrimary};
|
|
1236
1236
|
}
|
|
1237
1237
|
|
|
1238
1238
|
.ft-checkbox--disabled .ft-checkbox--box {
|
|
1239
|
-
border-color: ${
|
|
1239
|
+
border-color: ${wt.colorOnSurfaceDisabled};
|
|
1240
1240
|
background-color: transparent;
|
|
1241
|
-
color: ${
|
|
1241
|
+
color: ${wt.colorOnSurfaceDisabled};
|
|
1242
1242
|
}
|
|
1243
1243
|
|
|
1244
1244
|
.ft-checkbox--checkmark {
|
|
@@ -1257,8 +1257,8 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1257
1257
|
.ft-checkbox--indeterminate .ft-checkbox--checkmark {
|
|
1258
1258
|
opacity: 1;
|
|
1259
1259
|
}
|
|
1260
|
-
`;var
|
|
1261
|
-
<label class="${
|
|
1260
|
+
`;var xr=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Pe=class extends U{constructor(){super(...arguments),this.name="",this.checked=!1,this.indeterminate=!1,this.disabled=!1}render(){let e={"ft-checkbox":!0,"ft-checkbox--checked":this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled};return T`
|
|
1261
|
+
<label class="${Re(e)}" for="checkbox-input">
|
|
1262
1262
|
<div class="ft-checkbox--box-container">
|
|
1263
1263
|
<ft-ripple
|
|
1264
1264
|
?disabled=${this.disabled}
|
|
@@ -1284,14 +1284,14 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1284
1284
|
<slot></slot>
|
|
1285
1285
|
</ft-typography>
|
|
1286
1286
|
</label>
|
|
1287
|
-
`}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}click(){this.input.click()}};
|
|
1287
|
+
`}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}click(){this.input.click()}};Pe.elementDefinitions={"ft-ripple":q,"ft-typography":oe};Pe.styles=Bd;xr([g()],Pe.prototype,"name",void 0);xr([g({type:Boolean,reflect:!0})],Pe.prototype,"checked",void 0);xr([g({type:Boolean})],Pe.prototype,"indeterminate",void 0);xr([g({type:Boolean})],Pe.prototype,"disabled",void 0);xr([z(".ft-checkbox")],Pe.prototype,"container",void 0);xr([z("ft-ripple")],Pe.prototype,"ripple",void 0);xr([z("input")],Pe.prototype,"input",void 0);H("ft-checkbox")(Pe);var vr={textColor:i.extend("--ft-radio-text-color","",$.colorOnSurfaceHigh),colorPrimary:i.external($.colorPrimary,"Design system"),colorOnPrimary:i.external($.colorOnPrimary,"Design system"),borderColor:i.extend("--ft-radio-border-color","",$.colorOnSurfaceMedium),colorOnSurfaceDisabled:i.external($.colorOnSurfaceDisabled,"Design system")},zd=_`
|
|
1288
1288
|
* {
|
|
1289
1289
|
box-sizing: border-box;
|
|
1290
1290
|
}
|
|
1291
1291
|
|
|
1292
1292
|
.ft-radio {
|
|
1293
1293
|
box-sizing: border-box;
|
|
1294
|
-
color: ${
|
|
1294
|
+
color: ${vr.textColor};
|
|
1295
1295
|
|
|
1296
1296
|
display: inline-flex;
|
|
1297
1297
|
align-items: center;
|
|
@@ -1299,7 +1299,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1299
1299
|
}
|
|
1300
1300
|
|
|
1301
1301
|
.ft-radio--disabled {
|
|
1302
|
-
color: ${
|
|
1302
|
+
color: ${vr.colorOnSurfaceDisabled};
|
|
1303
1303
|
}
|
|
1304
1304
|
|
|
1305
1305
|
input {
|
|
@@ -1322,7 +1322,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1322
1322
|
}
|
|
1323
1323
|
|
|
1324
1324
|
.ft-radio--box {
|
|
1325
|
-
border: 2px solid ${
|
|
1325
|
+
border: 2px solid ${vr.borderColor};
|
|
1326
1326
|
border-radius: 50%;
|
|
1327
1327
|
|
|
1328
1328
|
display: flex;
|
|
@@ -1335,7 +1335,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1335
1335
|
|
|
1336
1336
|
.ft-radio--box:after {
|
|
1337
1337
|
content: " ";
|
|
1338
|
-
background-color: ${
|
|
1338
|
+
background-color: ${vr.colorPrimary};
|
|
1339
1339
|
|
|
1340
1340
|
border-radius: 50%;
|
|
1341
1341
|
|
|
@@ -1347,7 +1347,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1347
1347
|
}
|
|
1348
1348
|
|
|
1349
1349
|
.ft-radio--checked .ft-radio--box {
|
|
1350
|
-
border-color: ${
|
|
1350
|
+
border-color: ${vr.colorPrimary};
|
|
1351
1351
|
}
|
|
1352
1352
|
|
|
1353
1353
|
|
|
@@ -1356,24 +1356,24 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1356
1356
|
}
|
|
1357
1357
|
|
|
1358
1358
|
.ft-radio--disabled .ft-radio--box {
|
|
1359
|
-
border-color: ${
|
|
1359
|
+
border-color: ${vr.colorOnSurfaceDisabled};
|
|
1360
1360
|
background-color: transparent;
|
|
1361
1361
|
}
|
|
1362
1362
|
|
|
1363
1363
|
.ft-radio--disabled .ft-radio--box:after {
|
|
1364
|
-
background-color: ${
|
|
1364
|
+
background-color: ${vr.colorOnSurfaceDisabled};
|
|
1365
1365
|
}
|
|
1366
1366
|
|
|
1367
1367
|
.ft-radio:has(:focus-visible) {
|
|
1368
|
-
outline: 2px solid ${
|
|
1368
|
+
outline: 2px solid ${$.colorPrimary};
|
|
1369
1369
|
outline-offset: -2px;
|
|
1370
1370
|
}
|
|
1371
1371
|
|
|
1372
1372
|
.ft-radio ft-typography {
|
|
1373
1373
|
padding-right: 2px;
|
|
1374
1374
|
}
|
|
1375
|
-
`;var
|
|
1376
|
-
<div class="${
|
|
1375
|
+
`;var At=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Bi=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},ye=class extends U{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.ariaChecked="false",this.disabled=!1,this.role="radio"}render(){let e={"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled};return T`
|
|
1376
|
+
<div class="${Re(e)}">
|
|
1377
1377
|
<div class="ft-radio--box-container">
|
|
1378
1378
|
<ft-ripple
|
|
1379
1379
|
?disabled=${this.disabled}
|
|
@@ -1397,7 +1397,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1397
1397
|
</ft-typography>
|
|
1398
1398
|
</label>
|
|
1399
1399
|
</div>
|
|
1400
|
-
`}update(e){super.update(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new
|
|
1400
|
+
`}update(e){super.update(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new Bi(this.value,this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new Bi(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}};ye.elementDefinitions={"ft-ripple":q,"ft-typography":oe};ye.styles=zd;At([g()],ye.prototype,"value",void 0);At([g()],ye.prototype,"name",void 0);At([g({type:Boolean,reflect:!0})],ye.prototype,"checked",void 0);At([g({attribute:"aria-checked",reflect:!0})],ye.prototype,"ariaChecked",void 0);At([g({type:Boolean})],ye.prototype,"disabled",void 0);At([g({reflect:!0,attribute:"role"})],ye.prototype,"role",void 0);At([z(".ft-radio")],ye.prototype,"container",void 0);At([z("ft-ripple")],ye.prototype,"ripple",void 0);At([z("input")],ye.prototype,"input",void 0);var Hd=_`
|
|
1401
1401
|
:host {
|
|
1402
1402
|
display: block;
|
|
1403
1403
|
}
|
|
@@ -1405,12 +1405,12 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1405
1405
|
:host(:focus-visible) {
|
|
1406
1406
|
outline: none;
|
|
1407
1407
|
}
|
|
1408
|
-
`;var
|
|
1408
|
+
`;var Xr=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Fe=class extends U{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.tabIndex=0,this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{this.tabIndex==0&&(this.tabIndex=-1,setTimeout(()=>this.focusCurrentChecked(),100))},this.onFocusOut=e=>{!this.contains(e.relatedTarget)&&(this.tabIndex=0)}}render(){return T`
|
|
1409
1409
|
<slot @slotchange=${this.onSlotChange}
|
|
1410
1410
|
@change=${this.onChange}
|
|
1411
1411
|
@keydown=${this.onKeyDown}
|
|
1412
1412
|
></slot>
|
|
1413
|
-
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus),this.addEventListener("focusout",this.onFocusOut)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus),this.removeEventListener("focusout",this.onFocusOut)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(r=>r.checked=e.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let r=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{r=!0;let o=this.currentSelectedIndex-1;this.radioButtons[o<0?this.radioButtons.length-1:o].select(),this.radioButtons[o<0?this.radioButtons.length-1:o].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let o=this.currentSelectedIndex+1;this.radioButtons[o>this.radioButtons.length-1?0:o].select(),this.radioButtons[o>this.radioButtons.length-1?0:o].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}r&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(r=>r.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};
|
|
1413
|
+
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus),this.addEventListener("focusout",this.onFocusOut)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus),this.removeEventListener("focusout",this.onFocusOut)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(r=>r.checked=e.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let r=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{r=!0;let o=this.currentSelectedIndex-1;this.radioButtons[o<0?this.radioButtons.length-1:o].select(),this.radioButtons[o<0?this.radioButtons.length-1:o].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let o=this.currentSelectedIndex+1;this.radioButtons[o>this.radioButtons.length-1?0:o].select(),this.radioButtons[o>this.radioButtons.length-1?0:o].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}r&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(r=>r.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};Fe.elementDefinitions={};Fe.styles=Hd;Xr([g()],Fe.prototype,"name",void 0);Xr([g({reflect:!0,attribute:"role"})],Fe.prototype,"role",void 0);Xr([g({reflect:!0})],Fe.prototype,"tabIndex",void 0);Xr([g({reflect:!0,attribute:"aria-labelledby"})],Fe.prototype,"ariaLabelledBy",void 0);Xr([sn()],Fe.prototype,"radioButtons",void 0);Xr([G()],Fe.prototype,"currentSelectedIndex",void 0);H("ft-radio")(ye);H("ft-radio-group")(Fe);var zi={borderRadiusM:i.external($.borderRadiusM,"Design system"),colorOutline:i.external($.colorOutline,"Design system"),colorOnSurface:i.external($.colorOnSurface,"Design system"),colorOnSurfaceMedium:i.external($.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:i.external($.colorOnSurfaceDisabled,"Design system"),colorPrimary:i.external($.colorPrimary,"Design system"),colorOnPrimary:i.external($.colorOnPrimary,"Design system"),fontFamily:i.external(Ce.fontFamily,"Body2 typography"),fontSize:i.external(Ce.fontSize,"Body2 typography"),fontWeight:i.external(Ce.fontWeight,"Body2 typography"),letterSpacing:i.external(Ce.letterSpacing,"Body2 typography"),lineHeight:i.external(Ce.lineHeight,"Body2 typography"),textTransform:i.external(Ce.textTransform,"Body2 typography")},Wd=_`
|
|
1414
1414
|
.ft-filter-level--container {
|
|
1415
1415
|
display: flex;
|
|
1416
1416
|
flex-direction: column;
|
|
@@ -1424,14 +1424,14 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1424
1424
|
flex-shrink: 0;
|
|
1425
1425
|
text-decoration: none;
|
|
1426
1426
|
position: relative;
|
|
1427
|
-
border-radius: ${
|
|
1427
|
+
border-radius: ${zi.borderRadiusM};
|
|
1428
1428
|
overflow: hidden;
|
|
1429
1429
|
display: flex;
|
|
1430
1430
|
align-items: center;
|
|
1431
1431
|
padding: 4px 4px;
|
|
1432
1432
|
gap: 4px;
|
|
1433
1433
|
cursor: pointer;
|
|
1434
|
-
color: ${
|
|
1434
|
+
color: ${zi.colorOnSurface};
|
|
1435
1435
|
}
|
|
1436
1436
|
|
|
1437
1437
|
.ft-filter-level--go-back:focus {
|
|
@@ -1460,7 +1460,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1460
1460
|
}
|
|
1461
1461
|
|
|
1462
1462
|
ft-button {
|
|
1463
|
-
${
|
|
1463
|
+
${L(X.color,zi.colorOnSurface)};
|
|
1464
1464
|
}
|
|
1465
1465
|
|
|
1466
1466
|
ft-radio, ft-checkbox {
|
|
@@ -1474,11 +1474,11 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1474
1474
|
|
|
1475
1475
|
.ft-filter-level--no-values {
|
|
1476
1476
|
margin: 10px 0;
|
|
1477
|
-
color: ${
|
|
1477
|
+
color: ${zi.colorOnSurfaceMedium};
|
|
1478
1478
|
}
|
|
1479
|
-
`;var
|
|
1479
|
+
`;var Le=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ue=class extends U{constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.displayCount=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1}get hasHiddenValues(){let e=this.limit;return e!=null&&e<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var e,r;return(r=(e=this.container)===null||e===void 0?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}render(){let e=[...this.options];this.hideSelectedOptions&&(e=e.filter(o=>!o.selected)),this.filter&&(e=e.filter(o=>o.label.toLowerCase().includes(this.filter.toLowerCase())));let r=e.slice(0,this.limit);return T`
|
|
1480
1480
|
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
1481
|
-
${this.parent==null?null:
|
|
1481
|
+
${this.parent==null?null:T`
|
|
1482
1482
|
<div tabindex="0"
|
|
1483
1483
|
part="controls go-back"
|
|
1484
1484
|
class="ft-filter-level--go-back"
|
|
@@ -1492,15 +1492,15 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1492
1492
|
<ft-typography variant="body2">${this.parent.label}</ft-typography>
|
|
1493
1493
|
</div>
|
|
1494
1494
|
`}
|
|
1495
|
-
${this.options.length===0&&this.noValuesLabel?
|
|
1495
|
+
${this.options.length===0&&this.noValuesLabel?T`
|
|
1496
1496
|
<ft-typography class="ft-filter-level--no-values" element="span" variant="body2">
|
|
1497
1497
|
${this.noValuesLabel}
|
|
1498
1498
|
</ft-typography>
|
|
1499
1499
|
`:B}
|
|
1500
|
-
${
|
|
1500
|
+
${ar(r,o=>o.value,o=>{var n;return T`
|
|
1501
1501
|
<div class="ft-filter-level--option" part="options" tabindex="-1">
|
|
1502
1502
|
${this.multivalued?this.buildMultiValuedOption(o):this.buildMonoValuedOption(o)}
|
|
1503
|
-
${this.preventNavigation||o.selected||((n=o.subOptions)!==null&&n!==void 0?n:[]).length===0?B:
|
|
1503
|
+
${this.preventNavigation||o.selected||((n=o.subOptions)!==null&&n!==void 0?n:[]).length===0?B:T`
|
|
1504
1504
|
<ft-button icon="thin_arrow_right"
|
|
1505
1505
|
part="controls navigate-hierarchy"
|
|
1506
1506
|
aria-label="Expand node"
|
|
@@ -1510,7 +1510,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1510
1510
|
`}
|
|
1511
1511
|
</div>
|
|
1512
1512
|
`})}
|
|
1513
|
-
${r.length<e.length?
|
|
1513
|
+
${r.length<e.length?T`
|
|
1514
1514
|
<ft-button
|
|
1515
1515
|
class="ft-filter-level--display-more"
|
|
1516
1516
|
icon="thin_arrow"
|
|
@@ -1521,17 +1521,17 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1521
1521
|
</ft-button>
|
|
1522
1522
|
`:B}
|
|
1523
1523
|
</div>
|
|
1524
|
-
`}goBackOnKeyPress(e){(e.key==="Enter"||e.key===" ")&&this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(e){e.stopPropagation(),e.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){this.displayedPages++}buildMultiValuedOption(e){var r;return
|
|
1524
|
+
`}goBackOnKeyPress(e){(e.key==="Enter"||e.key===" ")&&this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(e){e.stopPropagation(),e.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){this.displayedPages++}buildMultiValuedOption(e){var r;return T`
|
|
1525
1525
|
<ft-checkbox name="${this.filterId}"
|
|
1526
1526
|
part="multivalued-option"
|
|
1527
1527
|
data-value="${e.value}"
|
|
1528
1528
|
.checked=${e.selected}
|
|
1529
1529
|
.disabled=${this.disabled}
|
|
1530
|
-
.indeterminate=${
|
|
1530
|
+
.indeterminate=${yt((r=e.subOptions)!==null&&r!==void 0?r:[],o=>{var n;return(n=o.subOptions)!==null&&n!==void 0?n:[]}).some(o=>o.selected)}
|
|
1531
1531
|
@change=${o=>this.optionsChanged(o,e)}>
|
|
1532
1532
|
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
1533
1533
|
</ft-checkbox>
|
|
1534
|
-
`}buildMonoValuedOption(e){return
|
|
1534
|
+
`}buildMonoValuedOption(e){return T`
|
|
1535
1535
|
<ft-radio name="${this.filterId+Math.round(Math.random()*1e6)}"
|
|
1536
1536
|
part="monovalued-option"
|
|
1537
1537
|
data-value="${e.value}"
|
|
@@ -1542,7 +1542,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1542
1542
|
@change=${r=>this.optionsChanged(r,e)}>
|
|
1543
1543
|
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
1544
1544
|
</ft-radio>
|
|
1545
|
-
`}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}};
|
|
1545
|
+
`}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}};ue.elementDefinitions={"ft-button":Ee,"ft-ripple":q,"ft-typography":oe,"ft-checkbox":Pe,"ft-icon":xe,"ft-radio":ye};ue.styles=Wd;Le([g({type:String})],ue.prototype,"filterId",void 0);Le([g({type:Object})],ue.prototype,"parent",void 0);Le([g({type:Array})],ue.prototype,"options",void 0);Le([g({type:Boolean})],ue.prototype,"multivalued",void 0);Le([g({type:Boolean})],ue.prototype,"disabled",void 0);Le([g({type:Boolean})],ue.prototype,"hideSelectedOptions",void 0);Le([g({type:Boolean})],ue.prototype,"displayCount",void 0);Le([g({type:Boolean})],ue.prototype,"preventNavigation",void 0);Le([g({type:String})],ue.prototype,"filter",void 0);Le([g({type:String})],ue.prototype,"moreValuesButtonLabel",void 0);Le([g({type:String})],ue.prototype,"noValuesLabel",void 0);Le([g({type:Number})],ue.prototype,"displayedValuesLimit",void 0);Le([z(".ft-filter-level--container")],ue.prototype,"container",void 0);Le([G()],ue.prototype,"radios",void 0);Le([G()],ue.prototype,"displayedPages",void 0);var Vt={buttonsColor:i.extend("--ft-snap-scroll-buttons-color","",$.colorPrimary),buttonsZIndex:i.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:i.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:i.external($.colorSurface,"Design system")},Vd=_`
|
|
1546
1546
|
.ft-snap-scroll {
|
|
1547
1547
|
box-sizing: border-box;
|
|
1548
1548
|
position: relative;
|
|
@@ -1577,7 +1577,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1577
1577
|
flex-wrap: nowrap;
|
|
1578
1578
|
align-items: flex-start;
|
|
1579
1579
|
justify-content: flex-start;
|
|
1580
|
-
gap: ${
|
|
1580
|
+
gap: ${Vt.gap};
|
|
1581
1581
|
}
|
|
1582
1582
|
|
|
1583
1583
|
.ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
|
|
@@ -1620,11 +1620,11 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1620
1620
|
.ft-snap-scroll--next {
|
|
1621
1621
|
position: absolute;
|
|
1622
1622
|
display: flex;
|
|
1623
|
-
z-index: ${
|
|
1623
|
+
z-index: ${Vt.buttonsZIndex};
|
|
1624
1624
|
opacity: 1;
|
|
1625
1625
|
transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
|
|
1626
|
-
${
|
|
1627
|
-
${
|
|
1626
|
+
${L(X.backgroundColor,"transparent")};
|
|
1627
|
+
${L(X.color,Vt.buttonsColor)};
|
|
1628
1628
|
}
|
|
1629
1629
|
|
|
1630
1630
|
.ft-snap-scroll--previous[hidden],
|
|
@@ -1637,37 +1637,37 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1637
1637
|
top: 0;
|
|
1638
1638
|
left: -1px;
|
|
1639
1639
|
bottom: 0;
|
|
1640
|
-
background: linear-gradient(to right, ${
|
|
1640
|
+
background: linear-gradient(to right, ${Vt.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1641
1641
|
}
|
|
1642
1642
|
|
|
1643
1643
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous {
|
|
1644
1644
|
top: -1px;
|
|
1645
1645
|
left: 0;
|
|
1646
1646
|
right: 0;
|
|
1647
|
-
background: linear-gradient(to bottom, ${
|
|
1647
|
+
background: linear-gradient(to bottom, ${Vt.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1648
1648
|
}
|
|
1649
1649
|
|
|
1650
1650
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next {
|
|
1651
1651
|
top: 0;
|
|
1652
1652
|
right: -1px;
|
|
1653
1653
|
bottom: 0;
|
|
1654
|
-
background: linear-gradient(to left, ${
|
|
1654
|
+
background: linear-gradient(to left, ${Vt.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1655
1655
|
}
|
|
1656
1656
|
|
|
1657
1657
|
.ft-snap-scroll--vertical .ft-snap-scroll--next {
|
|
1658
1658
|
left: 0;
|
|
1659
1659
|
right: 0;
|
|
1660
1660
|
bottom: -1px;
|
|
1661
|
-
background: linear-gradient(to top, ${
|
|
1661
|
+
background: linear-gradient(to top, ${Vt.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1662
1662
|
}
|
|
1663
1663
|
|
|
1664
1664
|
.ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
|
|
1665
1665
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
|
|
1666
1666
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
|
|
1667
1667
|
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
1668
|
-
background-color: ${
|
|
1668
|
+
background-color: ${Vt.colorSurface};
|
|
1669
1669
|
}
|
|
1670
|
-
`;var
|
|
1670
|
+
`;var pt=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Cs=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},ve=class extends U{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver(()=>this.scheduleUpdateScroll()),this.scrollDebouncer=new se(200),this.updateScrollDebouncer=new se(100)}scrollToIndex(e){this.scrollToElement(this.elements[e])}scrollIndexIntoView(e){let r=this.elements[e];if(r){let o=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,n=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<n||r[this.offsetAttribute]+r[this.sizeAttribute]>o)&&this.scrollToElement(r)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){let e=Re({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":mr}),r=this.controls&&this.withScroll;return T`
|
|
1671
1671
|
<div part="container" class="${e}">
|
|
1672
1672
|
<ft-button
|
|
1673
1673
|
class="ft-snap-scroll--previous"
|
|
@@ -1691,7 +1691,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1691
1691
|
@click=${this.next}
|
|
1692
1692
|
></ft-button>
|
|
1693
1693
|
</div>
|
|
1694
|
-
`}update(e){super.update(e),e.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),e.has("currentElement")&&this.dispatchEvent(new
|
|
1694
|
+
`}update(e){super.update(e),e.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),e.has("currentElement")&&this.dispatchEvent(new Cs(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(r=this.listenedContainer)===null||r===void 0||r.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let r=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<r&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var r,o;e&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(o=this.contentSlot)===null||o===void 0||o.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,r;this.elements=(r=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(o=>o))!==null&&r!==void 0?r:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let r=0;r<this.elements.length;r++)(e<0||this.getDistanceFromStart(this.elements[r])<this.getDistanceFromStart(this.elements[e]))&&(e=r);return e}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let e=this.elements[0];return e?e[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(e){return e[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(e){let r=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-r)}};ve.elementDefinitions={"ft-button":Ee};ve.styles=Vd;pt([g({type:Boolean})],ve.prototype,"horizontal",void 0);pt([g({type:Boolean})],ve.prototype,"hideScrollbar",void 0);pt([g({type:Boolean})],ve.prototype,"controls",void 0);pt([g({type:Boolean})],ve.prototype,"limitSize",void 0);pt([G()],ve.prototype,"elements",void 0);pt([G()],ve.prototype,"currentElement",void 0);pt([G()],ve.prototype,"withScroll",void 0);pt([G()],ve.prototype,"startReached",void 0);pt([G()],ve.prototype,"endReached",void 0);pt([z(".ft-snap-scroll--content")],ve.prototype,"contentSlot",void 0);H("ft-snap-scroll")(ve);var Me={colorOutline:i.external($.colorOutline,"Design system"),colorOnSurface:i.external($.colorOnSurface,"Design system"),colorOnSurfaceMedium:i.external($.colorOnSurfaceMedium,"Design system"),colorPrimary:i.external($.colorPrimary,"Design system"),colorSurface:i.external($.colorSurface,"Design system"),transitionDuration:i.external($.transitionDuration,"Design system"),transitionTimingFunction:i.external($.transitionTimingFunction,"Design system"),labelColor:i.extend("--ft-filter-label-color","",$.colorOnSurface),labelFontSize:i.extend("--ft-filter-label-font-size","",I.fontSize,"16px")},jd=[$i,va,_`
|
|
1695
1695
|
:host {
|
|
1696
1696
|
display: flex;
|
|
1697
1697
|
max-height: 100%;
|
|
@@ -1719,7 +1719,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1719
1719
|
.ft-filter--header ft-button {
|
|
1720
1720
|
flex-shrink: 0;
|
|
1721
1721
|
margin-left: auto;
|
|
1722
|
-
${
|
|
1722
|
+
${L(X.iconSize,"18px")};
|
|
1723
1723
|
}
|
|
1724
1724
|
|
|
1725
1725
|
.filter-label {
|
|
@@ -1733,8 +1733,8 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1733
1733
|
word-break: break-word;
|
|
1734
1734
|
color: ${Me.labelColor};
|
|
1735
1735
|
font-size: ${Me.labelFontSize};
|
|
1736
|
-
${
|
|
1737
|
-
${
|
|
1736
|
+
${L(I.lineHeight,"22px")};
|
|
1737
|
+
${L(I.fontWeight,"bold")};
|
|
1738
1738
|
}
|
|
1739
1739
|
|
|
1740
1740
|
.ft-filter--filter {
|
|
@@ -1808,10 +1808,10 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1808
1808
|
slot:not([name]) {
|
|
1809
1809
|
display: none;
|
|
1810
1810
|
}
|
|
1811
|
-
`];var
|
|
1811
|
+
`];var ae=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Es=class extends CustomEvent{constructor(e){super("change",{detail:e})}},K=class extends U{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new se(300),this.changeDebouncer=new se(10),this.lastDispatchedValues=[]}get flatOptions(){return yt(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return yt(this.options,e=>{var r;return e.selected?[]:(r=e.subOptions)!==null&&r!==void 0?r:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(n=>n.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,o=this.filterPlaceHolder.replace("{0}",this.label);return T`
|
|
1812
1812
|
<div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
|
|
1813
1813
|
part="container">
|
|
1814
|
-
${!this.label&&!e?null:
|
|
1814
|
+
${!this.label&&!e?null:T`
|
|
1815
1815
|
|
|
1816
1816
|
<div class="ft-filter--header" part="header">
|
|
1817
1817
|
<div class="filter-label" id="id-group-${this.id}">
|
|
@@ -1820,7 +1820,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1820
1820
|
</ft-typography>
|
|
1821
1821
|
<slot name="label"></slot>
|
|
1822
1822
|
</div>
|
|
1823
|
-
${e&&!this.hideClearButton?
|
|
1823
|
+
${e&&!this.hideClearButton?T`
|
|
1824
1824
|
<ft-button icon="close" dense @click=${this.clear} part="clear-button">
|
|
1825
1825
|
${this.clearButtonLabel}
|
|
1826
1826
|
</ft-button>
|
|
@@ -1844,8 +1844,8 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1844
1844
|
@slotchange=${this.updateOptionsFromSlot}
|
|
1845
1845
|
@option-change=${this.optionsChanged}></slot>
|
|
1846
1846
|
</div>
|
|
1847
|
-
`}update(e){if(super.update(e),e.has("options")){let r=new Set(this.flatOptions.map(o=>o.value));this.displayedLevels=this.displayedLevels.filter(o=>r.has(o)),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(e){var r,o,n,a,s;super.contentAvailableCallback(e),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),e.has("options")&&(this.updateScroll(),(r=this.levelsContainer)===null||r===void 0||r.scrollToIndex(this.displayedLevels.length)),e.has("slideIn")&&this.slideIn&&setTimeout(()=>{var l;(l=this.levelsContainer)===null||l===void 0||l.next(),this.slideIn=void 0},0),e.has("slideOut")&&this.slideOut&&((o=this.levelsContainer)===null||o===void 0||o.previous(),setTimeout(()=>{this.displayedLevels.pop(),this.slideOut=void 0},300)),this.lastLevelHasHiddenvalues=(s=(a=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(".ft-filter--levels ft-filter-level:last-child"))===null||a===void 0?void 0:a.hasHiddenValues)!==null&&s!==void 0?s:!1}renderLevels(){let e=this.flatOptions,r=e.filter(a=>a.selected),o=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,n=o<0?"ft-filter--level-center":"ft-filter--level-left";return
|
|
1848
|
-
${this.raiseSelectedOptions&&r.length>0?
|
|
1847
|
+
`}update(e){if(super.update(e),e.has("options")){let r=new Set(this.flatOptions.map(o=>o.value));this.displayedLevels=this.displayedLevels.filter(o=>r.has(o)),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(e){var r,o,n,a,s;super.contentAvailableCallback(e),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),e.has("options")&&(this.updateScroll(),(r=this.levelsContainer)===null||r===void 0||r.scrollToIndex(this.displayedLevels.length)),e.has("slideIn")&&this.slideIn&&setTimeout(()=>{var l;(l=this.levelsContainer)===null||l===void 0||l.next(),this.slideIn=void 0},0),e.has("slideOut")&&this.slideOut&&((o=this.levelsContainer)===null||o===void 0||o.previous(),setTimeout(()=>{this.displayedLevels.pop(),this.slideOut=void 0},300)),this.lastLevelHasHiddenvalues=(s=(a=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(".ft-filter--levels ft-filter-level:last-child"))===null||a===void 0?void 0:a.hasHiddenValues)!==null&&s!==void 0?s:!1}renderLevels(){let e=this.flatOptions,r=e.filter(a=>a.selected),o=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,n=o<0?"ft-filter--level-center":"ft-filter--level-left";return T`
|
|
1848
|
+
${this.raiseSelectedOptions&&r.length>0?T`
|
|
1849
1849
|
<ft-filter-level
|
|
1850
1850
|
filterId="${this.id}"
|
|
1851
1851
|
?multivalued=${this.multivalued}
|
|
@@ -1865,7 +1865,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1865
1865
|
${this.renderLevel(n,this.options)}
|
|
1866
1866
|
${this.displayedLevels.map(a=>e.find(s=>s.value===a)).map((a,s)=>{var l;let c=a?.value===this.slideIn||a?.value===this.slideOut?"ft-filter--level-right":s===o?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(c,(l=a?.subOptions)!==null&&l!==void 0?l:[],a)})}
|
|
1867
1867
|
</ft-snap-scroll>
|
|
1868
|
-
`}renderLevel(e,r,o){return
|
|
1868
|
+
`}renderLevel(e,r,o){return T`
|
|
1869
1869
|
<ft-filter-level
|
|
1870
1870
|
class="${e}"
|
|
1871
1871
|
filterId="${this.id}"
|
|
@@ -1885,18 +1885,18 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1885
1885
|
.exportpartsPrefixes=${["values","available-values"]}
|
|
1886
1886
|
noValuesLabel="${this.noValuesLabel}"
|
|
1887
1887
|
></ft-filter-level>
|
|
1888
|
-
`}goBack(e){this.slideOut=e.detail.value}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var r;e.stopPropagation();let o=this.flatOptions.find(a=>a.value===e.detail.value);o.selected=!o.selected;let n=a=>{var s;a!==o&&(a.selected=!1),(s=a.subOptions)===null||s===void 0||s.forEach(n)};this.multivalued?(r=o.subOptions)===null||r===void 0||r.forEach(n):this.options.forEach(n),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(r=>r.requestUpdate())})}sendEventIfValuesChanged(){let e=this.selectedValues;
|
|
1888
|
+
`}goBack(e){this.slideOut=e.detail.value}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var r;e.stopPropagation();let o=this.flatOptions.find(a=>a.value===e.detail.value);o.selected=!o.selected;let n=a=>{var s;a!==o&&(a.selected=!1),(s=a.subOptions)===null||s===void 0||s.forEach(n)};this.multivalued?(r=o.subOptions)===null||r===void 0||r.forEach(n):this.options.forEach(n),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(r=>r.requestUpdate())})}sendEventIfValuesChanged(){let e=this.selectedValues;ze(this.lastDispatchedValues,e)||(this.dispatchEvent(new Es(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var e,r;this.filter=(r=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};K.elementDefinitions={"ft-button":Ee,"ft-filter-level":ue,"ft-snap-scroll":ve,"ft-typography":oe};K.styles=jd;ae([g({type:String})],K.prototype,"id",void 0);ae([g({type:String})],K.prototype,"label",void 0);ae([g({type:String})],K.prototype,"filterPlaceHolder",void 0);ae([g({type:String})],K.prototype,"clearButtonLabel",void 0);ae([g({type:String})],K.prototype,"moreValuesButtonLabel",void 0);ae([g({type:String})],K.prototype,"noValuesLabel",void 0);ae([Oe([])],K.prototype,"options",void 0);ae([g({type:Boolean})],K.prototype,"multivalued",void 0);ae([g({type:Boolean})],K.prototype,"disabled",void 0);ae([g({type:Boolean})],K.prototype,"raiseSelectedOptions",void 0);ae([g({type:Boolean})],K.prototype,"displayCount",void 0);ae([g({type:Number})],K.prototype,"displayedValuesLimit",void 0);ae([g({type:Boolean})],K.prototype,"hideClearButton",void 0);ae([z(".ft-filter--slot")],K.prototype,"slotElement",void 0);ae([z(".ft-filter--container")],K.prototype,"container",void 0);ae([z(".ft-filter--values")],K.prototype,"valuesContainer",void 0);ae([z(".ft-filter--levels")],K.prototype,"levelsContainer",void 0);ae([G()],K.prototype,"lastLevelHasHiddenvalues",void 0);ae([z(".ft-filter--filter input")],K.prototype,"filterInput",void 0);ae([an(".ft-filter--levels ft-filter-level")],K.prototype,"levels",void 0);ae([G()],K.prototype,"withScroll",void 0);ae([G()],K.prototype,"filter",void 0);ae([G()],K.prototype,"slideIn",void 0);ae([G()],K.prototype,"slideOut",void 0);var Jr=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},rt=class extends U{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return T`
|
|
1889
1889
|
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
1890
|
-
`}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};
|
|
1890
|
+
`}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};rt.elementDefinitions={};Jr([g({type:String})],rt.prototype,"label",void 0);Jr([g({type:Object,converter:t=>t})],rt.prototype,"value",void 0);Jr([g({type:Boolean,reflect:!0})],rt.prototype,"selected",void 0);Jr([g({type:Object})],rt.prototype,"subOptions",void 0);Jr([Oe({})],rt.prototype,"renderOption",void 0);Jr([z(".ft-filter-option--slot")],rt.prototype,"slotElement",void 0);H("ft-filter")(K);H("ft-filter-option")(rt);var jt=Yr.build("designedSearchType"),Hi={label:"Search scope",documentTitlesOnly:"Search in document titles only"};var Gd=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Gt=class extends Wt(Ht){constructor(){super(),this.options={searchInDocumentTitlesOnly:{label:()=>jt.messages.documentTitlesOnly(),selected:()=>!!this.searchInDocumentTitlesOnly,onChange:e=>{var r;return(r=this.stateManager)===null||r===void 0?void 0:r.setSearchInDocumentTitlesOnly(e)}}},this.addI18nContext(jt,Hi)}render(){return T`
|
|
1891
1891
|
<ft-filter
|
|
1892
|
-
label=${
|
|
1892
|
+
label=${jt.messages.label()}
|
|
1893
1893
|
.options=${Object.keys(this.options).map(e=>({value:e,label:this.options[e].label(),selected:this.options[e].selected()}))}
|
|
1894
1894
|
part="filter"
|
|
1895
1895
|
.exportpartsPrefixes=${["filter"]}
|
|
1896
1896
|
multivalued
|
|
1897
1897
|
@change=${()=>this.onSelectionChange()}
|
|
1898
1898
|
></ft-filter>
|
|
1899
|
-
`}onSelectionChange(){var e;(e=this.filter)===null||e===void 0||e.options.forEach(r=>this.options[r.value].onChange(!!r.selected))}};
|
|
1899
|
+
`}onSelectionChange(){var e;(e=this.filter)===null||e===void 0||e.options.forEach(r=>this.options[r.value].onChange(!!r.selected))}};Gt.elementDefinitions={"ft-filter":K};Gt.styles=Ud;Gd([me({selector:To})],Gt.prototype,"searchInDocumentTitlesOnly",void 0);Gd([z("ft-filter")],Gt.prototype,"filter",void 0);H("ft-search-type")(Gt);var Mu={headerColor:i.extend("--ft-search-period-filter-header-color","",$.colorOnSurface)},Kd=_`
|
|
1900
1900
|
[part="container"] {
|
|
1901
1901
|
flex-grow: 1;
|
|
1902
1902
|
display: flex;
|
|
@@ -1911,7 +1911,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1911
1911
|
overflow: auto;
|
|
1912
1912
|
display: flex;
|
|
1913
1913
|
flex-direction: column;
|
|
1914
|
-
${
|
|
1914
|
+
${L(I.lineHeight,"22px")};
|
|
1915
1915
|
}
|
|
1916
1916
|
|
|
1917
1917
|
[part="header"] {
|
|
@@ -1921,7 +1921,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1921
1921
|
flex-shrink: 0;
|
|
1922
1922
|
padding: 0 10px;
|
|
1923
1923
|
margin-bottom: 8px;
|
|
1924
|
-
color: ${
|
|
1924
|
+
color: ${Mu.headerColor};
|
|
1925
1925
|
}
|
|
1926
1926
|
|
|
1927
1927
|
[part="label"] {
|
|
@@ -1930,29 +1930,41 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1930
1930
|
flex-grow: 1;
|
|
1931
1931
|
word-break: break-word;
|
|
1932
1932
|
font-size: ${Me.labelFontSize};
|
|
1933
|
-
${
|
|
1933
|
+
${L(I.fontWeight,"bold")};
|
|
1934
1934
|
}
|
|
1935
1935
|
|
|
1936
|
-
`;var
|
|
1937
|
-
<div part="
|
|
1938
|
-
<
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
<ft-radio
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1936
|
+
`;var Ae=Yr.build("designedSearchPeriodFilter"),Wi={label:"Last update",anyTime:"Any time",LAST_WEEK:"Less than a week",LAST_MONTH:"Less than a month",LAST_QUARTER:"Less than a quarter",LAST_YEAR:"Less than a year",CUSTOM:"Custom period",customPeriod:"From {0} to {1}",period:"Period: {0}"};var Kt=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ue=class extends Wt(Ht){constructor(){super(),this.metadataDescriptors=[],this.dateFilter=void 0,this.addI18nContext(Ae,Wi),this.addStore(M)}get metadataKey(){var e;return(e=this.key)!==null&&e!==void 0?e:"ft:lastEdition"}update(e){var r;super.update(e),(e.has("filters")||e.has("key"))&&(this.dateFilter=(r=this.filters)===null||r===void 0?void 0:r.filter(o=>o.key===this.metadataKey).filter(o=>o.dateFilter).map(o=>o.dateFilter).find(Boolean))}render(){var e,r,o,n;return T`
|
|
1937
|
+
<div part="container">
|
|
1938
|
+
<div part="header">
|
|
1939
|
+
<ft-typography variant="overline" part="label" id="label">
|
|
1940
|
+
${this.header()}
|
|
1941
|
+
</ft-typography>
|
|
1942
|
+
</div>
|
|
1943
|
+
<ft-radio-group @change=${a=>this.setPeriodFilter(a)} aria-labelledby="label">
|
|
1944
|
+
<ft-radio value="anyTime" ?checked=${this.dateFilter===void 0||this.dateFilter.type===void 0}>
|
|
1945
|
+
${Ae.messages.anyTime()}
|
|
1946
|
+
</ft-radio>
|
|
1947
|
+
${this.lessThanAWeek?T`
|
|
1948
|
+
<ft-radio ?checked=${((e=this.dateFilter)===null||e===void 0?void 0:e.type)=="LAST_WEEK"} value="LAST_WEEK">${Ae.messages.LAST_WEEK()}
|
|
1949
|
+
</ft-radio>`:B}
|
|
1950
|
+
${this.lessThanAMonth?T`
|
|
1951
|
+
<ft-radio ?checked=${((r=this.dateFilter)===null||r===void 0?void 0:r.type)=="LAST_MONTH"} value="LAST_MONTH">${Ae.messages.LAST_MONTH()}
|
|
1952
|
+
</ft-radio>`:B}
|
|
1953
|
+
${this.lessThanAQuarter?T`
|
|
1954
|
+
<ft-radio ?checked=${((o=this.dateFilter)===null||o===void 0?void 0:o.type)=="LAST_QUARTER"} value="LAST_QUARTER">
|
|
1955
|
+
${Ae.messages.LAST_QUARTER()}
|
|
1956
|
+
</ft-radio>`:B}
|
|
1957
|
+
${this.lessThanAYear?T`
|
|
1958
|
+
<ft-radio ?checked=${((n=this.dateFilter)===null||n===void 0?void 0:n.type)=="LAST_YEAR"} value="LAST_YEAR">${Ae.messages.LAST_YEAR()}
|
|
1959
|
+
</ft-radio>`:B}
|
|
1960
|
+
</ft-radio-group>
|
|
1961
|
+
</div>`}setPeriodFilter(e){var r,o;let n=hr[e.detail];n?(r=this.stateManager)===null||r===void 0||r.setDateFilter(this.metadataKey,n):(o=this.stateManager)===null||o===void 0||o.removeDateFilter(this.metadataKey)}header(){var e,r,o;return this.metadataKey==="ft:lastEdition"?Ae.messages.label():(o=(r=(e=this.metadataDescriptors)===null||e===void 0?void 0:e.find(n=>n.key==this.metadataKey))===null||r===void 0?void 0:r.label)!==null&&o!==void 0?o:this.metadataKey}};Ue.elementDefinitions={"ft-radio-group":Fe,"ft-radio":ye,"ft-typography":oe};Ue.styles=Kd;Kt([g({type:String})],Ue.prototype,"key",void 0);Kt([g({type:Boolean})],Ue.prototype,"lessThanAWeek",void 0);Kt([g({type:Boolean})],Ue.prototype,"lessThanAMonth",void 0);Kt([g({type:Boolean})],Ue.prototype,"lessThanAQuarter",void 0);Kt([g({type:Boolean})],Ue.prototype,"lessThanAYear",void 0);Kt([me({store:"search",selector:t=>t.request.metadataFilters})],Ue.prototype,"filters",void 0);Kt([me({store:M.name,selector:t=>{var e,r;return(r=(e=t.metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&r!==void 0?r:[]}})],Ue.prototype,"metadataDescriptors",void 0);Kt([g({attribute:!1})],Ue.prototype,"dateFilter",void 0);H("ft-search-period-filter")(Ue);var ws=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Rt=class extends Wt(Ht){get hasSomethingToDisplay(){var e,r;return this.searchInDocumentTitlesOnly||((e=this.facets)===null||e===void 0?void 0:e.some(o=>this.getSelectedValues(o).length>0))||((r=this.filters)===null||r===void 0?void 0:r.some(o=>o.dateFilter||o.rangeFilter))}constructor(){super(),this.addI18nContext(jt,Hi),this.addI18nContext(Ae,Wi)}render(){var e,r;return this.hasSomethingToDisplay?T`
|
|
1950
1962
|
<div class="ft-search-selected-facets--container">
|
|
1951
|
-
${
|
|
1963
|
+
${ar(this.facets||[],o=>o.key,o=>{let n=this.getSelectedValues(o);return ar(n,a=>o.key+"-"+a,a=>this.renderFacet(o.key,o.label,n,a))})}
|
|
1952
1964
|
${this.renderSearchInDocumentTitlesOnly()}
|
|
1953
|
-
${
|
|
1965
|
+
${ar((r=(e=this.filters)===null||e===void 0?void 0:e.filter(o=>o.dateFilter||o.rangeFilter))!==null&&r!==void 0?r:[],o=>o.key,o=>this.renderPeriodFilter(o))}
|
|
1954
1966
|
</div>
|
|
1955
|
-
`:B}renderFacet(e,r,o,n){let a=r+": "+this.getBreadcrumbFromValue(n),s=e.replace(":","-");return
|
|
1967
|
+
`:B}renderFacet(e,r,o,n){let a=r+": "+this.getBreadcrumbFromValue(n),s=e.replace(":","-");return T`
|
|
1956
1968
|
<ft-tooltip inline text="${a}"
|
|
1957
1969
|
part="tooltips tooltip-${s}">
|
|
1958
1970
|
<ft-chip
|
|
@@ -1966,34 +1978,34 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1966
1978
|
${this.getLabelFromValue(n)}
|
|
1967
1979
|
</ft-chip>
|
|
1968
1980
|
</ft-tooltip>
|
|
1969
|
-
`}getSelectedValues(e){return
|
|
1970
|
-
<ft-tooltip inline text="${
|
|
1981
|
+
`}getSelectedValues(e){return yt(e.rootNodes,r=>r.selected?[]:r.childNodes).filter(r=>r.selected).map(r=>r.value)}getLabelFromValue(e){return this.unquote(e).split("|").pop()}getBreadcrumbFromValue(e){return this.unquote(e).split("|").join(" > ")}unquote(e){return e.startsWith('"')&&e.endsWith('"')?e.replace(/(^"+)|("+$)/g,""):e}renderSearchInDocumentTitlesOnly(){return this.searchInDocumentTitlesOnly?T`
|
|
1982
|
+
<ft-tooltip inline text="${jt.messages.documentTitlesOnly()}"
|
|
1971
1983
|
part="tooltips tooltip-search-in-document-titles-only">
|
|
1972
1984
|
<ft-chip
|
|
1973
1985
|
part="ft-search-selected-facets ft-search-selected-facet-search-in-document-titles-only"
|
|
1974
1986
|
removable
|
|
1975
1987
|
@icon-click=${()=>{var e;return(e=this.stateManager)===null||e===void 0?void 0:e.setSearchInDocumentTitlesOnly(!1)}}>
|
|
1976
|
-
${
|
|
1988
|
+
${jt.messages.documentTitlesOnly()}
|
|
1977
1989
|
</ft-chip>
|
|
1978
1990
|
</ft-tooltip>
|
|
1979
|
-
`:B}renderPeriodFilter(e){return e.dateFilter?this.renderDateFilter(e.key,e.dateFilter):e.rangeFilter?this.renderRangeFilter(e.key,e.rangeFilter):B}renderDateFilter(e,r){return
|
|
1980
|
-
<ft-tooltip inline text="${
|
|
1991
|
+
`:B}renderPeriodFilter(e){return e.dateFilter?this.renderDateFilter(e.key,e.dateFilter):e.rangeFilter?this.renderRangeFilter(e.key,e.rangeFilter):B}renderDateFilter(e,r){return T`
|
|
1992
|
+
<ft-tooltip inline text="${Ae.messages.period(Ae.messages[r.type]())}"
|
|
1981
1993
|
part=" tooltips tooltip-search-period-filter">
|
|
1982
1994
|
<ft-chip
|
|
1983
1995
|
part="ft-search-selected-facets ft-search-selected-facet-period-filter"
|
|
1984
1996
|
removable
|
|
1985
1997
|
@icon-click=${()=>{var o;return(o=this.stateManager)===null||o===void 0?void 0:o.removeDateFilter(e)}}>
|
|
1986
|
-
${
|
|
1998
|
+
${Ae.messages[r.type]()}
|
|
1987
1999
|
</ft-chip>
|
|
1988
|
-
</ft-tooltip>`}renderRangeFilter(e,r){return
|
|
1989
|
-
<ft-tooltip inline text="${
|
|
2000
|
+
</ft-tooltip>`}renderRangeFilter(e,r){return T`
|
|
2001
|
+
<ft-tooltip inline text="${Ae.messages.period(Ae.messages.customPeriod(r.from,r.to))}" part=" tooltips tooltip-search-period-filter">
|
|
1990
2002
|
<ft-chip
|
|
1991
2003
|
part="ft-search-selected-facets ft-search-selected-facet-period-filter"
|
|
1992
2004
|
removable
|
|
1993
2005
|
@icon-click=${()=>{var o;return(o=this.stateManager)===null||o===void 0?void 0:o.removeRangeFilter(e)}}>
|
|
1994
|
-
${
|
|
2006
|
+
${Ae.messages.CUSTOM()}
|
|
1995
2007
|
</ft-chip>
|
|
1996
|
-
</ft-tooltip>`}};
|
|
2008
|
+
</ft-tooltip>`}};Rt.elementDefinitions={"ft-chip":pe,"ft-tooltip":ne};Rt.styles=qc;ws([me({store:"search"})],Rt.prototype,"facets",void 0);ws([me({store:"search",selector:To})],Rt.prototype,"searchInDocumentTitlesOnly",void 0);ws([me({store:"search",selector:t=>t.request.metadataFilters})],Rt.prototype,"filters",void 0);H("ft-search-selected-facets")(Rt);})();
|
|
1997
2009
|
/*! Bundled license information:
|
|
1998
2010
|
|
|
1999
2011
|
@webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js:
|