@fluid-topics/ft-reader-feedback 1.3.36 → 1.3.37

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,5 +1,5 @@
1
- "use strict";(()=>{var Au=Object.create;var Wa=Object.defineProperty;var Ru=Object.getOwnPropertyDescriptor;var Tu=Object.getOwnPropertyNames;var Iu=Object.getPrototypeOf,_u=Object.prototype.hasOwnProperty;var xr=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Nu=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Tu(e))!_u.call(t,n)&&n!==r&&Wa(t,n,{get:()=>e[n],enumerable:!(i=Ru(e,n))||i.enumerable});return t};var m=(t,e,r)=>(r=t!=null?Au(Iu(t)):{},Nu(e||!t||!t.__esModule?Wa(r,"default",{value:t,enumerable:!0}):r,t));var T=xr((lf,Ga)=>{Ga.exports=ftGlobals.wcUtils});var M=xr((cf,Va)=>{Va.exports=ftGlobals.lit});var Z=xr((df,ja)=>{ja.exports=ftGlobals.litDecorators});var Zs=xr((er,Ks)=>{var Zo=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,qo=function(){function t(){this.fetch=!1,this.DOMException=Zo.DOMException}return t.prototype=Zo,new t}();(function(t){var e=function(r){var i=typeof t<"u"&&t||typeof self<"u"&&self||typeof global<"u"&&global||{},n={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};function a(y){return y&&DataView.prototype.isPrototypeOf(y)}if(n.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(y){return y&&s.indexOf(Object.prototype.toString.call(y))>-1};function u(y){if(typeof y!="string"&&(y=String(y)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(y)||y==="")throw new TypeError('Invalid character in header field name: "'+y+'"');return y.toLowerCase()}function p(y){return typeof y!="string"&&(y=String(y)),y}function h(y){var v={next:function(){var P=y.shift();return{done:P===void 0,value:P}}};return n.iterable&&(v[Symbol.iterator]=function(){return v}),v}function g(y){this.map={},y instanceof g?y.forEach(function(v,P){this.append(P,v)},this):Array.isArray(y)?y.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):y&&Object.getOwnPropertyNames(y).forEach(function(v){this.append(v,y[v])},this)}g.prototype.append=function(y,v){y=u(y),v=p(v);var P=this.map[y];this.map[y]=P?P+", "+v:v},g.prototype.delete=function(y){delete this.map[u(y)]},g.prototype.get=function(y){return y=u(y),this.has(y)?this.map[y]:null},g.prototype.has=function(y){return this.map.hasOwnProperty(u(y))},g.prototype.set=function(y,v){this.map[u(y)]=p(v)},g.prototype.forEach=function(y,v){for(var P in this.map)this.map.hasOwnProperty(P)&&y.call(v,this.map[P],P,this)},g.prototype.keys=function(){var y=[];return this.forEach(function(v,P){y.push(P)}),h(y)},g.prototype.values=function(){var y=[];return this.forEach(function(v){y.push(v)}),h(y)},g.prototype.entries=function(){var y=[];return this.forEach(function(v,P){y.push([P,v])}),h(y)},n.iterable&&(g.prototype[Symbol.iterator]=g.prototype.entries);function b(y){if(!y._noBody){if(y.bodyUsed)return Promise.reject(new TypeError("Already read"));y.bodyUsed=!0}}function x(y){return new Promise(function(v,P){y.onload=function(){v(y.result)},y.onerror=function(){P(y.error)}})}function S(y){var v=new FileReader,P=x(v);return v.readAsArrayBuffer(y),P}function O(y){var v=new FileReader,P=x(v),Y=/charset=([A-Za-z0-9_-]+)/.exec(y.type),ce=Y?Y[1]:"utf-8";return v.readAsText(y,ce),P}function N(y){for(var v=new Uint8Array(y),P=new Array(v.length),Y=0;Y<v.length;Y++)P[Y]=String.fromCharCode(v[Y]);return P.join("")}function I(y){if(y.slice)return y.slice(0);var v=new Uint8Array(y.byteLength);return v.set(new Uint8Array(y)),v.buffer}function _(){return this.bodyUsed=!1,this._initBody=function(y){this.bodyUsed=this.bodyUsed,this._bodyInit=y,y?typeof y=="string"?this._bodyText=y:n.blob&&Blob.prototype.isPrototypeOf(y)?this._bodyBlob=y:n.formData&&FormData.prototype.isPrototypeOf(y)?this._bodyFormData=y:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)?this._bodyText=y.toString():n.arrayBuffer&&n.blob&&a(y)?(this._bodyArrayBuffer=I(y.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(y)||c(y))?this._bodyArrayBuffer=I(y):this._bodyText=y=Object.prototype.toString.call(y):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof y=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var y=b(this);if(y)return y;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var y=b(this);return y||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(n.blob)return this.blob().then(S);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var y=b(this);if(y)return y;if(this._bodyBlob)return O(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(N(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(qe)}),this.json=function(){return this.text().then(JSON.parse)},this}var $=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function H(y){var v=y.toUpperCase();return $.indexOf(v)>-1?v:y}function W(y,v){if(!(this instanceof W))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');v=v||{};var P=v.body;if(y instanceof W){if(y.bodyUsed)throw new TypeError("Already read");this.url=y.url,this.credentials=y.credentials,v.headers||(this.headers=new g(y.headers)),this.method=y.method,this.mode=y.mode,this.signal=y.signal,!P&&y._bodyInit!=null&&(P=y._bodyInit,y.bodyUsed=!0)}else this.url=String(y);if(this.credentials=v.credentials||this.credentials||"same-origin",(v.headers||!this.headers)&&(this.headers=new g(v.headers)),this.method=H(v.method||this.method||"GET"),this.mode=v.mode||this.mode||null,this.signal=v.signal||this.signal||function(){if("AbortController"in i){var G=new AbortController;return G.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&P)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(P),(this.method==="GET"||this.method==="HEAD")&&(v.cache==="no-store"||v.cache==="no-cache")){var Y=/([?&])_=[^&]*/;if(Y.test(this.url))this.url=this.url.replace(Y,"$1_="+new Date().getTime());else{var ce=/\?/;this.url+=(ce.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}W.prototype.clone=function(){return new W(this,{body:this._bodyInit})};function qe(y){var v=new FormData;return y.trim().split("&").forEach(function(P){if(P){var Y=P.split("="),ce=Y.shift().replace(/\+/g," "),G=Y.join("=").replace(/\+/g," ");v.append(decodeURIComponent(ce),decodeURIComponent(G))}}),v}function Rt(y){var v=new g,P=y.replace(/\r?\n[\t ]+/g," ");return P.split("\r").map(function(Y){return Y.indexOf(`
2
- `)===0?Y.substr(1,Y.length):Y}).forEach(function(Y){var ce=Y.split(":"),G=ce.shift().trim();if(G){var Go=ce.join(":").trim();try{v.append(G,Go)}catch(yn){console.warn("Response "+yn.message)}}}),v}_.call(W.prototype);function Ge(y,v){if(!(this instanceof Ge))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 g(v.headers),this.url=v.url||"",this._initBody(y)}_.call(Ge.prototype),Ge.prototype.clone=function(){return new Ge(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new g(this.headers),url:this.url})},Ge.error=function(){var y=new Ge(null,{status:200,statusText:""});return y.ok=!1,y.status=0,y.type="error",y};var Tt=[301,302,303,307,308];Ge.redirect=function(y,v){if(Tt.indexOf(v)===-1)throw new RangeError("Invalid status code");return new Ge(null,{status:v,headers:{location:y}})},r.DOMException=i.DOMException;try{new r.DOMException}catch{r.DOMException=function(v,P){this.message=v,this.name=P;var Y=Error(v);this.stack=Y.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function Ne(y,v){return new Promise(function(P,Y){var ce=new W(y,v);if(ce.signal&&ce.signal.aborted)return Y(new r.DOMException("Aborted","AbortError"));var G=new XMLHttpRequest;function Go(){G.abort()}G.onload=function(){var Le={statusText:G.statusText,headers:Rt(G.getAllResponseHeaders()||"")};ce.url.indexOf("file://")===0&&(G.status<200||G.status>599)?Le.status=200:Le.status=G.status,Le.url="responseURL"in G?G.responseURL:Le.headers.get("X-Request-URL");var br="response"in G?G.response:G.responseText;setTimeout(function(){P(new Ge(br,Le))},0)},G.onerror=function(){setTimeout(function(){Y(new TypeError("Network request failed"))},0)},G.ontimeout=function(){setTimeout(function(){Y(new TypeError("Network request timed out"))},0)},G.onabort=function(){setTimeout(function(){Y(new r.DOMException("Aborted","AbortError"))},0)};function yn(Le){try{return Le===""&&i.location.href?i.location.href:Le}catch{return Le}}if(G.open(ce.method,yn(ce.url),!0),ce.credentials==="include"?G.withCredentials=!0:ce.credentials==="omit"&&(G.withCredentials=!1),"responseType"in G&&(n.blob?G.responseType="blob":n.arrayBuffer&&(G.responseType="arraybuffer")),v&&typeof v.headers=="object"&&!(v.headers instanceof g||i.Headers&&v.headers instanceof i.Headers)){var Ha=[];Object.getOwnPropertyNames(v.headers).forEach(function(Le){Ha.push(u(Le)),G.setRequestHeader(Le,p(v.headers[Le]))}),ce.headers.forEach(function(Le,br){Ha.indexOf(br)===-1&&G.setRequestHeader(br,Le)})}else ce.headers.forEach(function(Le,br){G.setRequestHeader(br,Le)});ce.signal&&(ce.signal.addEventListener("abort",Go),G.onreadystatechange=function(){G.readyState===4&&ce.signal.removeEventListener("abort",Go)}),G.send(typeof ce._bodyInit>"u"?null:ce._bodyInit)})}return Ne.polyfill=!0,i.fetch||(i.fetch=Ne,i.Headers=g,i.Request=W,i.Response=Ge),r.Headers=g,r.Request=W,r.Response=Ge,r.fetch=Ne,r}({})})(qo);qo.fetch.ponyfill=!0;delete qo.fetch.polyfill;var Vr=Zo.fetch?Zo:qo;er=Vr.fetch;er.default=Vr.fetch;er.fetch=Vr.fetch;er.Headers=Vr.Headers;er.Request=Vr.Request;er.Response=Vr.Response;Ks.exports=er});var Bt=xr((Ab,zl)=>{zl.exports=ftGlobals.litClassMap});var Sc=xr((fx,vc)=>{vc.exports=ftGlobals.litUnsafeHTML});var Qn=xr((Yv,jc)=>{jc.exports=ftGlobals.litRepeat});var za=m(T());var Ou=m(M()),yt=m(Z()),He=m(T());var Vo=m(T()),Ka=m(Z());var yo;(function(t){t.clusteringHelperCreated="clustering-helper-created",t.mapAttachmentsUpdate="map-attachments-update",t.visibleTopicChange="visible-topic-change"})(yo||(yo={}));var lt;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(lt||(lt={}));var Lu=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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},bn=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},mn=Symbol("registerInterval"),ku=(0,Vo.applyMixinOnce)(Symbol("toFtReaderComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[mn]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[mn]):this.dispatchEvent(new bn)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=mn,Lu([(0,Ka.state)()],r.prototype,"stateManager",void 0),r}),Yt=class extends ku(Vo.FtLitElementRedux){};var ye=m(M()),me=m(Z()),pn=m(T());var Vs=m(M()),J=m(T());var Ws=m(M()),F=m(T());var Ja=m(M()),be=m(T()),Za=be.FtCssVariableFactory.extend("--ft-ripple-color","",be.designSystemVariables.colorContent),w={color:Za,backgroundColor:be.FtCssVariableFactory.extend("--ft-ripple-background-color","",Za),opacityContentOnSurfacePressed:be.FtCssVariableFactory.external(be.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:be.FtCssVariableFactory.external(be.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:be.FtCssVariableFactory.external(be.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:be.FtCssVariableFactory.external(be.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:be.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},qa=be.FtCssVariableFactory.extend("--ft-ripple-color","",be.designSystemVariables.colorPrimary),Ya={color:qa,backgroundColor:be.FtCssVariableFactory.extend("--ft-ripple-background-color","",qa)},Xa=be.FtCssVariableFactory.extend("--ft-ripple-color","",be.designSystemVariables.colorSecondary),Qa={color:Xa,backgroundColor:be.FtCssVariableFactory.extend("--ft-ripple-background-color","",Xa)},es=Ja.css`
1
+ "use strict";(()=>{var Ru=Object.create;var Ga=Object.defineProperty;var Tu=Object.getOwnPropertyDescriptor;var Iu=Object.getOwnPropertyNames;var _u=Object.getPrototypeOf,Nu=Object.prototype.hasOwnProperty;var xr=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Lu=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Iu(e))!Nu.call(t,n)&&n!==r&&Ga(t,n,{get:()=>e[n],enumerable:!(i=Tu(e,n))||i.enumerable});return t};var m=(t,e,r)=>(r=t!=null?Ru(_u(t)):{},Lu(e||!t||!t.__esModule?Ga(r,"default",{value:t,enumerable:!0}):r,t));var T=xr((cf,Va)=>{Va.exports=ftGlobals.wcUtils});var M=xr((df,ja)=>{ja.exports=ftGlobals.lit});var Z=xr((uf,Ka)=>{Ka.exports=ftGlobals.litDecorators});var qs=xr((er,Zs)=>{var qo=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Yo=function(){function t(){this.fetch=!1,this.DOMException=qo.DOMException}return t.prototype=qo,new t}();(function(t){var e=function(r){var i=typeof t<"u"&&t||typeof self<"u"&&self||typeof global<"u"&&global||{},n={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};function a(y){return y&&DataView.prototype.isPrototypeOf(y)}if(n.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(y){return y&&s.indexOf(Object.prototype.toString.call(y))>-1};function u(y){if(typeof y!="string"&&(y=String(y)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(y)||y==="")throw new TypeError('Invalid character in header field name: "'+y+'"');return y.toLowerCase()}function p(y){return typeof y!="string"&&(y=String(y)),y}function h(y){var v={next:function(){var P=y.shift();return{done:P===void 0,value:P}}};return n.iterable&&(v[Symbol.iterator]=function(){return v}),v}function g(y){this.map={},y instanceof g?y.forEach(function(v,P){this.append(P,v)},this):Array.isArray(y)?y.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):y&&Object.getOwnPropertyNames(y).forEach(function(v){this.append(v,y[v])},this)}g.prototype.append=function(y,v){y=u(y),v=p(v);var P=this.map[y];this.map[y]=P?P+", "+v:v},g.prototype.delete=function(y){delete this.map[u(y)]},g.prototype.get=function(y){return y=u(y),this.has(y)?this.map[y]:null},g.prototype.has=function(y){return this.map.hasOwnProperty(u(y))},g.prototype.set=function(y,v){this.map[u(y)]=p(v)},g.prototype.forEach=function(y,v){for(var P in this.map)this.map.hasOwnProperty(P)&&y.call(v,this.map[P],P,this)},g.prototype.keys=function(){var y=[];return this.forEach(function(v,P){y.push(P)}),h(y)},g.prototype.values=function(){var y=[];return this.forEach(function(v){y.push(v)}),h(y)},g.prototype.entries=function(){var y=[];return this.forEach(function(v,P){y.push([P,v])}),h(y)},n.iterable&&(g.prototype[Symbol.iterator]=g.prototype.entries);function b(y){if(!y._noBody){if(y.bodyUsed)return Promise.reject(new TypeError("Already read"));y.bodyUsed=!0}}function x(y){return new Promise(function(v,P){y.onload=function(){v(y.result)},y.onerror=function(){P(y.error)}})}function S(y){var v=new FileReader,P=x(v);return v.readAsArrayBuffer(y),P}function w(y){var v=new FileReader,P=x(v),Y=/charset=([A-Za-z0-9_-]+)/.exec(y.type),ce=Y?Y[1]:"utf-8";return v.readAsText(y,ce),P}function _(y){for(var v=new Uint8Array(y),P=new Array(v.length),Y=0;Y<v.length;Y++)P[Y]=String.fromCharCode(v[Y]);return P.join("")}function I(y){if(y.slice)return y.slice(0);var v=new Uint8Array(y.byteLength);return v.set(new Uint8Array(y)),v.buffer}function N(){return this.bodyUsed=!1,this._initBody=function(y){this.bodyUsed=this.bodyUsed,this._bodyInit=y,y?typeof y=="string"?this._bodyText=y:n.blob&&Blob.prototype.isPrototypeOf(y)?this._bodyBlob=y:n.formData&&FormData.prototype.isPrototypeOf(y)?this._bodyFormData=y:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)?this._bodyText=y.toString():n.arrayBuffer&&n.blob&&a(y)?(this._bodyArrayBuffer=I(y.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(y)||c(y))?this._bodyArrayBuffer=I(y):this._bodyText=y=Object.prototype.toString.call(y):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof y=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var y=b(this);if(y)return y;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var y=b(this);return y||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(n.blob)return this.blob().then(S);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var y=b(this);if(y)return y;if(this._bodyBlob)return w(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(_(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(qe)}),this.json=function(){return this.text().then(JSON.parse)},this}var $=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function H(y){var v=y.toUpperCase();return $.indexOf(v)>-1?v:y}function W(y,v){if(!(this instanceof W))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');v=v||{};var P=v.body;if(y instanceof W){if(y.bodyUsed)throw new TypeError("Already read");this.url=y.url,this.credentials=y.credentials,v.headers||(this.headers=new g(y.headers)),this.method=y.method,this.mode=y.mode,this.signal=y.signal,!P&&y._bodyInit!=null&&(P=y._bodyInit,y.bodyUsed=!0)}else this.url=String(y);if(this.credentials=v.credentials||this.credentials||"same-origin",(v.headers||!this.headers)&&(this.headers=new g(v.headers)),this.method=H(v.method||this.method||"GET"),this.mode=v.mode||this.mode||null,this.signal=v.signal||this.signal||function(){if("AbortController"in i){var G=new AbortController;return G.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&P)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(P),(this.method==="GET"||this.method==="HEAD")&&(v.cache==="no-store"||v.cache==="no-cache")){var Y=/([?&])_=[^&]*/;if(Y.test(this.url))this.url=this.url.replace(Y,"$1_="+new Date().getTime());else{var ce=/\?/;this.url+=(ce.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}W.prototype.clone=function(){return new W(this,{body:this._bodyInit})};function qe(y){var v=new FormData;return y.trim().split("&").forEach(function(P){if(P){var Y=P.split("="),ce=Y.shift().replace(/\+/g," "),G=Y.join("=").replace(/\+/g," ");v.append(decodeURIComponent(ce),decodeURIComponent(G))}}),v}function Rt(y){var v=new g,P=y.replace(/\r?\n[\t ]+/g," ");return P.split("\r").map(function(Y){return Y.indexOf(`
2
+ `)===0?Y.substr(1,Y.length):Y}).forEach(function(Y){var ce=Y.split(":"),G=ce.shift().trim();if(G){var Vo=ce.join(":").trim();try{v.append(G,Vo)}catch(mn){console.warn("Response "+mn.message)}}}),v}N.call(W.prototype);function Ge(y,v){if(!(this instanceof Ge))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 g(v.headers),this.url=v.url||"",this._initBody(y)}N.call(Ge.prototype),Ge.prototype.clone=function(){return new Ge(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new g(this.headers),url:this.url})},Ge.error=function(){var y=new Ge(null,{status:200,statusText:""});return y.ok=!1,y.status=0,y.type="error",y};var Tt=[301,302,303,307,308];Ge.redirect=function(y,v){if(Tt.indexOf(v)===-1)throw new RangeError("Invalid status code");return new Ge(null,{status:v,headers:{location:y}})},r.DOMException=i.DOMException;try{new r.DOMException}catch{r.DOMException=function(v,P){this.message=v,this.name=P;var Y=Error(v);this.stack=Y.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function Ne(y,v){return new Promise(function(P,Y){var ce=new W(y,v);if(ce.signal&&ce.signal.aborted)return Y(new r.DOMException("Aborted","AbortError"));var G=new XMLHttpRequest;function Vo(){G.abort()}G.onload=function(){var Le={statusText:G.statusText,headers:Rt(G.getAllResponseHeaders()||"")};ce.url.indexOf("file://")===0&&(G.status<200||G.status>599)?Le.status=200:Le.status=G.status,Le.url="responseURL"in G?G.responseURL:Le.headers.get("X-Request-URL");var br="response"in G?G.response:G.responseText;setTimeout(function(){P(new Ge(br,Le))},0)},G.onerror=function(){setTimeout(function(){Y(new TypeError("Network request failed"))},0)},G.ontimeout=function(){setTimeout(function(){Y(new TypeError("Network request timed out"))},0)},G.onabort=function(){setTimeout(function(){Y(new r.DOMException("Aborted","AbortError"))},0)};function mn(Le){try{return Le===""&&i.location.href?i.location.href:Le}catch{return Le}}if(G.open(ce.method,mn(ce.url),!0),ce.credentials==="include"?G.withCredentials=!0:ce.credentials==="omit"&&(G.withCredentials=!1),"responseType"in G&&(n.blob?G.responseType="blob":n.arrayBuffer&&(G.responseType="arraybuffer")),v&&typeof v.headers=="object"&&!(v.headers instanceof g||i.Headers&&v.headers instanceof i.Headers)){var Wa=[];Object.getOwnPropertyNames(v.headers).forEach(function(Le){Wa.push(u(Le)),G.setRequestHeader(Le,p(v.headers[Le]))}),ce.headers.forEach(function(Le,br){Wa.indexOf(br)===-1&&G.setRequestHeader(br,Le)})}else ce.headers.forEach(function(Le,br){G.setRequestHeader(br,Le)});ce.signal&&(ce.signal.addEventListener("abort",Vo),G.onreadystatechange=function(){G.readyState===4&&ce.signal.removeEventListener("abort",Vo)}),G.send(typeof ce._bodyInit>"u"?null:ce._bodyInit)})}return Ne.polyfill=!0,i.fetch||(i.fetch=Ne,i.Headers=g,i.Request=W,i.Response=Ge),r.Headers=g,r.Request=W,r.Response=Ge,r.fetch=Ne,r}({})})(Yo);Yo.fetch.ponyfill=!0;delete Yo.fetch.polyfill;var jr=qo.fetch?qo:Yo;er=jr.fetch;er.default=jr.fetch;er.fetch=jr.fetch;er.Headers=jr.Headers;er.Request=jr.Request;er.Response=jr.Response;Zs.exports=er});var Ft=xr((Rb,Hl)=>{Hl.exports=ftGlobals.litClassMap});var Cc=xr((hx,Sc)=>{Sc.exports=ftGlobals.litUnsafeHTML});var Jn=xr((Xv,Kc)=>{Kc.exports=ftGlobals.litRepeat});var Ha=m(T());var wu=m(M()),yt=m(Z()),He=m(T());var jo=m(T()),Za=m(Z());var bo;(function(t){t.clusteringHelperCreated="clustering-helper-created",t.mapAttachmentsUpdate="map-attachments-update",t.visibleTopicChange="visible-topic-change"})(bo||(bo={}));var lt;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(lt||(lt={}));var ku=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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},xn=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},bn=Symbol("registerInterval"),Pu=(0,jo.applyMixinOnce)(Symbol("toFtReaderComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[bn]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[bn]):this.dispatchEvent(new xn)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=bn,ku([(0,Za.state)()],r.prototype,"stateManager",void 0),r}),Yt=class extends Pu(jo.FtLitElementRedux){};var ye=m(M()),me=m(Z()),fn=m(T());var js=m(M()),J=m(T());var Gs=m(M()),F=m(T());var es=m(M()),be=m(T()),qa=be.FtCssVariableFactory.extend("--ft-ripple-color","",be.designSystemVariables.colorContent),O={color:qa,backgroundColor:be.FtCssVariableFactory.extend("--ft-ripple-background-color","",qa),opacityContentOnSurfacePressed:be.FtCssVariableFactory.external(be.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:be.FtCssVariableFactory.external(be.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:be.FtCssVariableFactory.external(be.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:be.FtCssVariableFactory.external(be.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:be.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Ya=be.FtCssVariableFactory.extend("--ft-ripple-color","",be.designSystemVariables.colorPrimary),Xa={color:Ya,backgroundColor:be.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ya)},Qa=be.FtCssVariableFactory.extend("--ft-ripple-color","",be.designSystemVariables.colorSecondary),Ja={color:Qa,backgroundColor:be.FtCssVariableFactory.extend("--ft-ripple-background-color","",Qa)},ts=es.css`
3
3
  :host {
4
4
  display: contents;
5
5
  }
@@ -12,7 +12,7 @@
12
12
 
13
13
  .ft-ripple:not(.ft-ripple--unbounded) {
14
14
  overflow: hidden;
15
- border-radius: ${w.borderRadius};
15
+ border-radius: ${O.borderRadius};
16
16
  }
17
17
 
18
18
  .ft-ripple .ft-ripple--background,
@@ -46,27 +46,27 @@
46
46
  }
47
47
 
48
48
  .ft-ripple .ft-ripple--background {
49
- background-color: ${w.backgroundColor};
49
+ background-color: ${O.backgroundColor};
50
50
  }
51
51
 
52
52
  .ft-ripple .ft-ripple--effect {
53
- background-color: ${w.color};
53
+ background-color: ${O.color};
54
54
  }
55
55
 
56
56
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
57
- background-color: ${Qa.backgroundColor};
57
+ background-color: ${Ja.backgroundColor};
58
58
  }
59
59
 
60
60
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
61
- background-color: ${Qa.color};
61
+ background-color: ${Ja.color};
62
62
  }
63
63
 
64
64
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
65
- background-color: ${Ya.backgroundColor};
65
+ background-color: ${Xa.backgroundColor};
66
66
  }
67
67
 
68
68
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
69
- background-color: ${Ya.color};
69
+ background-color: ${Xa.color};
70
70
  }
71
71
 
72
72
  .ft-ripple .ft-ripple--background {
@@ -96,24 +96,24 @@
96
96
  }
97
97
 
98
98
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
99
- opacity: ${w.opacityContentOnSurfaceHover};
99
+ opacity: ${O.opacityContentOnSurfaceHover};
100
100
  }
101
101
 
102
102
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
103
- opacity: ${w.opacityContentOnSurfaceSelected};
103
+ opacity: ${O.opacityContentOnSurfaceSelected};
104
104
  }
105
105
 
106
106
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
107
- opacity: ${w.opacityContentOnSurfaceFocused};
107
+ opacity: ${O.opacityContentOnSurfaceFocused};
108
108
  }
109
109
 
110
110
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
111
- opacity: ${w.opacityContentOnSurfacePressed};
111
+ opacity: ${O.opacityContentOnSurfacePressed};
112
112
  transform: translate(-50%, -50%) scale(1);
113
113
  }
114
- `;var dt=m(M()),R=m(T());var Dt=m(M(),1),Xt=t=>typeof t=="string"?(0,Dt.unsafeCSS)(t):t,o=class{static create(e,r,i,n){let a=c=>Xt(c??n),s=Dt.css`var(${Xt(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.set=c=>ts(s,c??a(n)),s.get=c=>Dt.css`var(${Xt(e)}, ${a(c)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,r,i,n){let a=c=>i.get(c??n),s=Dt.css`var(${Xt(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.set=c=>ts(s,c??a(n)),s.get=c=>Dt.css`var(${Xt(e)}, ${a(c)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(e,r){let i=a=>e.defaultCssValue(a),n=Dt.css`var(${Xt(e.name)}, ${i(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=r,n.defaultCssValue=i,n.set=a=>e.set(a),n.get=a=>Dt.css`var(${Xt(e.name)}, ${i(a)})`,n.breadcrumb=()=>e.breadcrumb(),n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};function ts(t,e){return Xt(`${t.name}: ${e}`)}var l={colorWhite:o.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:o.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:o.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:o.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:o.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:o.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:o.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:o.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:o.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:o.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:o.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:o.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:o.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:o.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:o.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:o.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:o.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ftds-icon-size-1","","SIZE","0.75rem"),iconSize2:o.create("--ftds-icon-size-2","","SIZE","1rem"),iconSize3:o.create("--ftds-icon-size-3","","SIZE","1.25rem"),iconSize4:o.create("--ftds-icon-size-4","","SIZE","1.5rem"),iconSize5:o.create("--ftds-icon-size-5","","SIZE","2rem"),iconSize6:o.create("--ftds-icon-size-6","","SIZE","3rem"),opacity0:o.create("--ftds-opacity-0","","NUMBER","0"),opacity8:o.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:o.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:o.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:o.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:o.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:o.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:o.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:o.create("--ftds-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:o.create("--ftds-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:o.create("--ftds-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:o.create("--ftds-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:o.create("--ftds-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:o.create("--ftds-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:o.create("--ftds-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:o.create("--ftds-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:o.create("--ftds-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)")},rs={fontFamily:o.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:o.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-display-text-case","","UNKNOWN","none")},os={fontFamily:o.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:o.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},is={fontFamily:o.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:o.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},ns={fontFamily:o.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:o.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:o.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},as={fontFamily:o.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},ss={fontFamily:o.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},ls={fontFamily:o.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},cs={fontFamily:o.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},Dr={fontFamily:o.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},Pu={fontFamily:o.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:o.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:o.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},ds={fontFamily:o.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},us={fontFamily:o.create("--ftds-typography-label-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-label-1-medium-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-1-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-label-1-medium-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-1-medium-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-1-medium-text-decoration","","UNKNOWN","none")},ps={fontFamily:o.create("--ftds-typography-label-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-label-1-semibold-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-1-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-label-1-semibold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-1-semibold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-1-semibold-text-decoration","","UNKNOWN","none")},fs={fontFamily:o.create("--ftds-typography-label-1-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-1-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-label-1-bold-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-1-bold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-label-1-bold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-1-bold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-1-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-1-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-1-bold-text-decoration","","UNKNOWN","none")},hs={fontFamily:o.create("--ftds-typography-label-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-label-2-medium-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-2-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-label-2-medium-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-2-medium-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-2-medium-text-decoration","","UNKNOWN","none")},gs={fontFamily:o.create("--ftds-typography-label-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-label-2-semibold-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-2-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-label-2-semibold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-2-semibold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-2-semibold-text-decoration","","UNKNOWN","none")},ys={fontFamily:o.create("--ftds-typography-label-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-label-2-bold-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-2-bold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-label-2-bold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-2-bold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-2-bold-text-decoration","","UNKNOWN","none")},ms={fontFamily:o.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},bs={fontFamily:o.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},xs={fontFamily:o.create("--ftds-typography-caption-1-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-caption-1-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-bold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-bold-text-decoration","","UNKNOWN","none")},vr={fontFamily:o.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},vs={fontFamily:o.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},Ss={fontFamily:o.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},Cs={fontFamily:o.create("--ftds-typography-caption-3-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-3-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-3-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-3-medium-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ftds-typography-caption-3-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-3-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-3-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-3-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-3-medium-text-decoration","","UNKNOWN","none")},Os={fontFamily:o.create("--ftds-typography-caption-3-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-3-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-3-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-3-semibold-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ftds-typography-caption-3-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-3-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-3-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-3-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-3-semibold-text-decoration","","UNKNOWN","none")},ws={fontFamily:o.create("--ftds-typography-caption-3-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-3-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-caption-3-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-3-bold-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ftds-typography-caption-3-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-3-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-3-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-3-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-3-bold-text-decoration","","UNKNOWN","none")},jo={display:rs,"title-1":os,"title-2":is,"title-3":ns,"body-1-regular":as,"body-1-medium":ss,"body-1-semibold":ls,"body-2-regular":cs,"body-2-medium":Dr,"body-2-medium-underline":Pu,"body-2-semibold":ds,"label-1-medium":us,"label-1-semibold":ps,"label-1-bold":fs,"label-2-medium":hs,"label-2-semibold":gs,"label-2-bold":ys,"caption-1-medium":ms,"caption-1-semibold":bs,"caption-1-bold":xs,"caption-2-medium":vr,"caption-2-semibold":vs,"caption-2-bold":Ss,"caption-3-medium":Cs,"caption-3-semibold":Os,"caption-3-bold":ws};var d={backgroundActionPrimary:o.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",l.colorBrand0),backgroundErrorSubtle:o.extend("--ftds-background-error-subtle","Used as background of subtle error components.",l.colorRed10),backgroundInfoSubtle:o.extend("--ftds-background-info-subtle","Used as background of subtle information components.",l.colorCyan10),backgroundWarningSubtle:o.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",l.colorOrange10),backgroundSuccessSubtle:o.extend("--ftds-background-success-subtle","Used as background of subtle success components.",l.colorGreen10),backgroundGlobalSurface:o.extend("--ftds-background-global-surface","Used as app background.",l.colorWhite),backgroundGlobalOnSurface:o.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",l.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",l.colorGray30),contentActionPrimary:o.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",l.colorBrand0),contentWarningPrimary:o.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",l.colorOrange200),contentWarningIconOnly:o.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",l.colorOrange0),contentErrorPrimary:o.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",l.colorRed0),contentErrorIconOnly:o.extend("--ftds-content-error-icon-only","Used on error status icons alone",l.colorRed70),contentInfoPrimary:o.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",l.colorCyan200),contentInfoIconOnly:o.extend("--ftds-content-info-icon-only","Used on info status icons alone",l.colorCyan0),contentSuccessPrimary:o.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",l.colorGreen200),contentSuccessIconOnly:o.extend("--ftds-content-success-icon-only","Used on success status icons alone",l.colorGreen0),contentGlobalPrimary:o.extend("--ftds-content-global-primary","Used for main content on the page.",l.colorGray500),contentGlobalSecondary:o.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
115
- Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",l.colorGray0),contentGlobalOnColor:o.extend("--ftds-content-global-on-color","Used for content on a dominant color.",l.colorWhite),borderActionPrimary:o.extend("--ftds-border-action-primary","Used as border for primary action components.",l.colorBrand0),borderActionFocusRing:o.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",l.colorCyan0),borderWarningPrimary:o.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",l.colorOrange200),borderWarningSubtle:o.extend("--ftds-border-warning-subtle","Used as border for warning components.",l.colorOrange30),borderSuccessPrimary:o.extend("--ftds-border-success-primary","Used as border for success buttons.",l.colorGreen200),borderSuccessSubtle:o.extend("--ftds-border-success-subtle","Used as border for success components.",l.colorGreen30),borderErrorPrimary:o.extend("--ftds-border-error-primary","Used as border for text fields in error states.",l.colorRed0),borderErrorSubtle:o.extend("--ftds-border-error-subtle","Used as border for error components.",l.colorRed30),borderInfoPrimary:o.extend("--ftds-border-info-primary","Used as border for buttons in info color.",l.colorCyan200),borderInfoSubtle:o.extend("--ftds-border-info-subtle","Used as border for information components.",l.colorCyan30),borderGlobalPrimary:o.extend("--ftds-border-global-primary","Used as border for element like input.",l.colorGray50),borderGlobalSubtle:o.extend("--ftds-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",l.colorGray30),borderInputPrimary:o.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",l.colorGray80),borderNeutralPrimary:o.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",l.colorGray200)};var f={largeHeight:o.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ftds-button-large-horizontal-padding","",l.spacing4),largeGap:o.extend("--ftds-button-large-gap","",l.spacing2),largeBorderRadius:o.extend("--ftds-button-large-border-radius","",l.borderRadiusS),largeIconSize:o.extend("--ftds-button-large-icon-size","",l.iconSize3),largeBorderWidth:o.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:o.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:o.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:o.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:o.extend("--ftds-button-medium-horizontal-padding","",l.spacing3),mediumGap:o.extend("--ftds-button-medium-gap","",l.spacing2),mediumBorderRadius:o.extend("--ftds-button-medium-border-radius","",l.borderRadiusS),mediumIconSize:o.extend("--ftds-button-medium-icon-size","",l.iconSize2),mediumBorderWidth:o.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:o.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:o.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:o.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ftds-button-small-horizontal-padding","",l.spacing2),smallGap:o.extend("--ftds-button-small-gap","",l.spacing1),smallBorderRadius:o.extend("--ftds-button-small-border-radius","",l.borderRadiusS),smallIconSize:o.extend("--ftds-button-small-icon-size","",l.iconSize1),smallBorderWidth:o.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:o.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:o.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:o.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:o.extend("--ftds-button-x-small-icon-size","",l.iconSize1),xSmallFocusOutlineOffset:o.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:o.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:o.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:o.extend("--ftds-button-round-border-radius","",l.borderRadiusPill),primaryBrandBackgroundColor:o.extend("--ftds-button-primary-brand-background-color","",d.backgroundActionPrimary),primaryBrandColor:o.extend("--ftds-button-primary-brand-color","",d.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ftds-button-primary-brand-icon-color","",d.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ftds-button-primary-brand-state-layer-color","",d.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",l.opacity16),primaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",l.opacity16),primaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-primary-brand-active-state-layer-opacity","",l.opacity24),primaryBrandDisabledComponentOpacity:o.extend("--ftds-button-primary-brand-disabled-component-opacity","",l.opacity40),focusFocusRingColor:o.extend("--ftds-button-focus-focus-ring-color","",d.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ftds-button-tertiary-brand-color","",d.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ftds-button-tertiary-brand-icon-color","",d.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ftds-button-tertiary-brand-state-layer-color","",d.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",l.opacity8),tertiaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",l.opacity8),tertiaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",l.opacity16),tertiaryBrandDisabledComponentOpacity:o.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",l.opacity40),tertiaryInfoBackgroundColor:o.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:o.extend("--ftds-button-tertiary-info-color","",d.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ftds-button-tertiary-info-icon-color","",d.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ftds-button-tertiary-info-state-layer-color","",d.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",l.opacity8),tertiaryInfoHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",l.opacity8),tertiaryInfoActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",l.opacity16),tertiaryInfoDisabledComponentOpacity:o.extend("--ftds-button-tertiary-info-disabled-component-opacity","",l.opacity40),tertiarySuccessBackgroundColor:o.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:o.extend("--ftds-button-tertiary-success-color","",d.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ftds-button-tertiary-success-icon-color","",d.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ftds-button-tertiary-success-state-layer-color","",d.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",l.opacity8),tertiarySuccessFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",l.opacity8),tertiarySuccessActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",l.opacity16),tertiarySuccessDisabledComponentOpacity:o.extend("--ftds-button-tertiary-success-disabled-component-opacity","",l.opacity40),tertiaryWarningBackgroundColor:o.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:o.extend("--ftds-button-tertiary-warning-color","",d.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ftds-button-tertiary-warning-icon-color","",d.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ftds-button-tertiary-warning-state-layer-color","",d.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",l.opacity8),tertiaryWarningFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",l.opacity8),tertiaryWarningActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",l.opacity16),tertiaryWarningDisabledComponentOpacity:o.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",l.opacity40),tertiaryErrorBackgroundColor:o.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:o.extend("--ftds-button-tertiary-error-color","",d.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ftds-button-tertiary-error-icon-color","",d.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ftds-button-tertiary-error-state-layer-color","",d.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",l.opacity8),tertiaryErrorFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",l.opacity8),tertiaryErrorActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",l.opacity16),tertiaryErrorDisabledComponentOpacity:o.extend("--ftds-button-tertiary-error-disabled-component-opacity","",l.opacity40),tertiaryNeutralBackgroundColor:o.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:o.extend("--ftds-button-tertiary-neutral-icon-color","",d.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ftds-button-tertiary-neutral-color","",d.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ftds-button-tertiary-neutral-state-layer-color","",d.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",l.opacity8),tertiaryNeutralFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",l.opacity8),tertiaryNeutralActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",l.opacity16),tertiaryNeutralDisabledComponentOpacity:o.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",l.opacity40),secondaryBrandBackgroundColor:o.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:o.extend("--ftds-button-secondary-brand-color","",d.contentActionPrimary),secondaryBrandIconColor:o.extend("--ftds-button-secondary-brand-icon-color","",d.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ftds-button-secondary-brand-state-layer-color","",d.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",l.opacity8),secondaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",l.opacity8),secondaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",l.opacity16),secondaryBrandDisabledComponentOpacity:o.extend("--ftds-button-secondary-brand-disabled-component-opacity","",l.opacity40),secondaryBrandBorderColor:o.extend("--ftds-button-secondary-brand-border-color","",d.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",l.opacity8),secondaryNeutralFocusStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",l.opacity8),secondaryNeutralActiveStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",l.opacity16),secondaryNeutralDisabledComponentOpacity:o.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",l.opacity40),secondaryNeutralBackgroundColor:o.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:o.extend("--ftds-button-secondary-neutral-color","",d.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ftds-button-secondary-neutral-icon-color","",d.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ftds-button-secondary-neutral-state-layer-color","",d.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ftds-button-secondary-neutral-border-color","",d.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:o.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",l.opacity8),secondaryInfoFocusStateLayerOpacity:o.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",l.opacity8),secondaryInfoActiveStateLayerOpacity:o.extend("--ftds-button-secondary-info-active-state-layer-opacity","",l.opacity16),secondaryInfoDisabledComponentOpacity:o.extend("--ftds-button-secondary-info-disabled-component-opacity","",l.opacity40),secondaryInfoBackgroundColor:o.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:o.extend("--ftds-button-secondary-info-border-color","",d.borderInfoPrimary),secondaryInfoColor:o.extend("--ftds-button-secondary-info-color","",d.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ftds-button-secondary-info-icon-color","",d.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ftds-button-secondary-info-state-layer-color","",d.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:o.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",l.opacity8),secondarySuccessFocusStateLayerOpacity:o.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",l.opacity8),secondarySuccessActiveStateLayerOpacity:o.extend("--ftds-button-secondary-success-active-state-layer-opacity","",l.opacity16),secondarySuccessDisabledComponentOpacity:o.extend("--ftds-button-secondary-success-disabled-component-opacity","",l.opacity40),secondarySuccessBackgroundColor:o.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:o.extend("--ftds-button-secondary-success-border-color","",d.borderSuccessPrimary),secondarySuccessColor:o.extend("--ftds-button-secondary-success-color","",d.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ftds-button-secondary-success-icon-color","",d.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ftds-button-secondary-success-state-layer-color","",d.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:o.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",l.opacity8),secondaryWarningFocusStateLayerOpacity:o.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",l.opacity8),secondaryWarningActiveStateLayerOpacity:o.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",l.opacity16),secondaryWarningDisabledComponentOpacity:o.extend("--ftds-button-secondary-warning-disabled-component-opacity","",l.opacity40),secondaryWarningBackgroundColor:o.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:o.extend("--ftds-button-secondary-warning-border-color","",d.borderWarningPrimary),secondaryWarningColor:o.extend("--ftds-button-secondary-warning-color","",d.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ftds-button-secondary-warning-icon-color","",d.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ftds-button-secondary-warning-state-layer-color","",d.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:o.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",l.opacity8),secondaryErrorFocusStateLayerOpacity:o.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",l.opacity8),secondaryErrorActiveStateLayerOpacity:o.extend("--ftds-button-secondary-error-active-state-layer-opacity","",l.opacity16),secondaryErrorDisabledComponentOpacity:o.extend("--ftds-button-secondary-error-disabled-component-opacity","",l.opacity40),secondaryErrorBackgroundColor:o.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:o.extend("--ftds-button-secondary-error-border-color","",d.contentErrorPrimary),secondaryErrorColor:o.extend("--ftds-button-secondary-error-color","",d.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ftds-button-secondary-error-icon-color","",d.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ftds-button-secondary-error-state-layer-color","",d.contentErrorPrimary)};var Tf={loadMoreIconSize:o.extend("--ftds-tree-list-load-more-icon-size","",l.iconSize2),loadMorePaddingLeft:o.extend("--ftds-tree-list-load-more-padding-left","",l.spacing6),loadMoreUnselectedDefaultBorderColor:o.extend("--ftds-tree-list-load-more-unselected-default-border-color","",d.borderGlobalSubtle),loadMoreIconColor:o.extend("--ftds-tree-list-load-more-icon-color","",d.contentActionPrimary),loadMoreLabelColor:o.extend("--ftds-tree-list-load-more-label-color","",d.contentActionPrimary),loadMoreHoverBorderColor:o.extend("--ftds-tree-list-load-more-hover-border-color","",l.colorBrand20),loadMoreHoverBackgroundColor:o.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:o.extend("--ftds-tree-list-load-more-active-border-color","",l.colorBrand20),loadMoreActiveBackgroundColor:o.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:o.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:o.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:o.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",d.borderGlobalPrimary),loadMoreLabelMarginLeft:o.extend("--ftds-tree-list-load-more-label-margin-left","",l.spacing1),nodeIconSize:o.extend("--ftds-tree-list-node-icon-size","",l.iconSize2),nodeHeight:o.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:o.extend("--ftds-tree-list-node-parent-label-margin-left","",l.spacing2),nodeParentLabelMarginRight:o.extend("--ftds-tree-list-node-parent-label-margin-right","",l.spacing2),nodeRootPaddingLeft:o.extend("--ftds-tree-list-node-root-padding-left","",l.spacing3),nodeChildPaddingLeft:o.extend("--ftds-tree-list-node-child-padding-left","",l.spacing5),nodeLeafPaddingLeft:o.extend("--ftds-tree-list-node-leaf-padding-left","",l.spacing6),nodeUnselectedDefaultBorderColor:o.extend("--ftds-tree-list-node-unselected-default-border-color","",d.borderGlobalSubtle),nodeUnselectedIconColor:o.extend("--ftds-tree-list-node-unselected-icon-color","",d.contentGlobalSecondary),nodeUnselectedLabelColor:o.extend("--ftds-tree-list-node-unselected-label-color","",d.contentGlobalSecondary),nodeUnselectedCounterColor:o.extend("--ftds-tree-list-node-unselected-counter-color","",d.contentGlobalSecondary),nodeHoverBorderColor:o.extend("--ftds-tree-list-node-hover-border-color","",d.borderActionPrimary),nodeFocusFocusRingColor:o.extend("--ftds-tree-list-node-focus-focus-ring-color","",d.borderActionFocusRing),nodeFocusOutlineWidth:o.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:o.extend("--ftds-tree-list-node-selected-default-border-color","",d.borderGlobalPrimary),nodeSelectedIconColor:o.extend("--ftds-tree-list-node-selected-icon-color","",d.contentGlobalSecondary),nodeSelectedLabelColor:o.extend("--ftds-tree-list-node-selected-label-color","",d.contentGlobalPrimary),nodeSelectedCounterColor:o.extend("--ftds-tree-list-node-selected-counter-color","",d.contentGlobalSecondary),nodeSelectedBackgroundColor:o.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:o.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",d.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:o.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",d.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:o.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",d.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:o.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",d.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:o.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:o.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:o.extend("--ftds-tree-list-header-section-padding-left","",l.spacing3),headerSectionPaddingRight:o.extend("--ftds-tree-list-header-section-padding-right","",l.spacing3),headerSectionHorizontalGap:o.extend("--ftds-tree-list-header-section-horizontal-gap","",l.spacing2),headerSectionMarginBottom:o.extend("--ftds-tree-list-header-section-margin-bottom","",l.spacing2),headerSectionColor:o.extend("--ftds-tree-list-header-section-color","",d.contentGlobalPrimary),headerSectionCounterColor:o.extend("--ftds-tree-list-header-section-counter-color","",d.contentGlobalSecondary),listContainerBorderWidth:o.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:o.extend("--ftds-tree-list-list-container-background-color","",d.backgroundGlobalSurface),listContainerBorderColor:o.extend("--ftds-tree-list-list-container-border-color","",d.borderGlobalSubtle),emptyStateIllustrationWidth:o.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:o.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:o.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",l.spacing10),emptyStateContainerPaddingTop:o.extend("--ftds-tree-list-empty-state-container-padding-top","",l.spacing10),emptyStateContainerPaddingBottom:o.extend("--ftds-tree-list-empty-state-container-padding-bottom","",l.spacing10),emptyStateTitleMarginBottom:o.extend("--ftds-tree-list-empty-state-title-margin-bottom","",l.spacing2),emptyStateTitleLabelColor:o.extend("--ftds-tree-list-empty-state-title-label-color","",d.contentGlobalSecondary),emptyStateDescriptionLabelColor:o.extend("--ftds-tree-list-empty-state-description-label-color","",d.contentGlobalSecondary)};var kf={iconSize:o.extend("--ftds-checkbox-icon-size","",l.iconSize2),boxSize:o.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:o.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:o.create("--ftds-checkbox-border-radius","","SIZE","1px"),color:o.extend("--ftds-checkbox-color","",d.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ftds-checkbox-checked-background-color","",d.contentActionPrimary),checkedStateLayerColor:o.extend("--ftds-checkbox-checked-state-layer-color","",d.contentActionPrimary),checkedIconColor:o.extend("--ftds-checkbox-checked-icon-color","",d.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",l.opacity16),checkedFocusStateLayerOpacity:o.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",l.opacity16),checkedActiveStateLayerOpacity:o.extend("--ftds-checkbox-checked-active-state-layer-opacity","",l.opacity24),checkedDisabledComponentOpacity:o.extend("--ftds-checkbox-checked-disabled-component-opacity","",l.opacity40),uncheckedBorderColor:o.extend("--ftds-checkbox-unchecked-border-color","",l.colorGray80),uncheckedStateLayerColor:o.extend("--ftds-checkbox-unchecked-state-layer-color","",l.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",l.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",l.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",l.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",l.opacity40),focusFocusRingColor:o.extend("--ftds-checkbox-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),borderWidth:o.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:o.extend("--ftds-checkbox-horizontal-gap","",l.spacing3),leftPadding:o.extend("--ftds-checkbox-left-padding","",l.spacing2)};var Bf={circleSize:o.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:o.create("--ftds-radio-border-width","","SIZE","2px"),color:o.extend("--ftds-radio-color","",d.contentGlobalPrimary),selectedRadioColor:o.extend("--ftds-radio-selected-radio-color","",d.contentActionPrimary),selectedStateLayerColor:o.extend("--ftds-radio-selected-state-layer-color","",d.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ftds-radio-selected-hover-state-layer-opacity","",l.opacity16),selectedFocusStateLayerOpacity:o.extend("--ftds-radio-selected-focus-state-layer-opacity","",l.opacity16),selectedActiveStateLayerOpacity:o.extend("--ftds-radio-selected-active-state-layer-opacity","",l.opacity24),selectedDisabledComponentOpacity:o.extend("--ftds-radio-selected-disabled-component-opacity","",l.opacity40),unselectedStateLayerColor:o.extend("--ftds-radio-unselected-state-layer-color","",d.borderInputPrimary),unselectedBorderColor:o.extend("--ftds-radio-unselected-border-color","",d.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ftds-radio-unselected-hover-state-layer-opacity","",l.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ftds-radio-unselected-focus-state-layer-opacity","",l.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ftds-radio-unselected-active-state-layer-opacity","",l.opacity24),unselectedDisabledComponentOpacity:o.extend("--ftds-radio-unselected-disabled-component-opacity","",l.opacity40),focusFocusRingColor:o.extend("--ftds-radio-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:o.extend("--ftds-radio-vertical-gap","",l.spacing3),horizontalGap:o.extend("--ftds-radio-horizontal-gap","",l.spacing3)};var Wf={headerRowBorderWidth:o.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:o.extend("--ftds-table-header-row-background-color","",d.backgroundGlobalOnSurfaceDark),headerRowBorderColor:o.extend("--ftds-table-header-row-border-color","",d.borderGlobalPrimary),headerRowColor:o.extend("--ftds-table-header-row-color","",d.contentGlobalPrimary),dataRowBorderWidth:o.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:o.extend("--ftds-table-data-row-background-color","",d.backgroundGlobalOnSurface),dataRowBorderColor:o.extend("--ftds-table-data-row-border-color","",d.borderGlobalSubtle),dataRowColor:o.extend("--ftds-table-data-row-color","",d.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:o.extend("--ftds-table-data-row-default-hover-background-color","",l.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:o.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",l.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:o.extend("--ftds-table-data-row-selectable-selected-default-background-color","",l.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:o.extend("--ftds-table-data-row-selectable-selected-default-border-color","",l.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:o.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",l.colorBrand20),dataRowSelectableSelectedHoverBorderColor:o.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",l.colorBrand30),dataRowSelectableSelectedColor:o.extend("--ftds-table-data-row-selectable-selected-color","",d.contentActionPrimary),dataRowClickableHoverBackgroundColor:o.extend("--ftds-table-data-row-clickable-hover-background-color","",l.colorGray30),dataRowClickableFocusBorderColor:o.extend("--ftds-table-data-row-clickable-focus-border-color","",d.borderActionFocusRing),dataRowClickableFocusBackgroundColor:o.extend("--ftds-table-data-row-clickable-focus-background-color","",l.colorGray30),dataRowClickableActiveBackgroundColor:o.extend("--ftds-table-data-row-clickable-active-background-color","",l.colorGray40),headerCellHorizontalGap:o.extend("--ftds-table-header-cell-horizontal-gap","",l.spacing1),headerCellVerticalPadding:o.extend("--ftds-table-header-cell-vertical-padding","",l.spacing2),headerCellHorizontalPadding:o.extend("--ftds-table-header-cell-horizontal-padding","",l.spacing3),dataCellVerticalPadding:o.extend("--ftds-table-data-cell-vertical-padding","",l.spacing2),dataCellHorizontalPadding:o.extend("--ftds-table-data-cell-horizontal-padding","",l.spacing3),dataCellVerticalGap:o.extend("--ftds-table-data-cell-vertical-gap","",l.spacing1)};var Zf={neutralOffHoverStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",l.opacity8),neutralOffFocusStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",l.opacity8),neutralOffFocusFocusRingColor:o.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",d.borderActionFocusRing),neutralOffActiveStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",l.opacity16),neutralOffBackgroundColor:o.extend("--ftds-chip-choice-neutral-off-background-color","",d.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ftds-chip-choice-neutral-off-border-color","",d.borderGlobalPrimary),neutralOffColor:o.extend("--ftds-chip-choice-neutral-off-color","",d.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ftds-chip-choice-neutral-off-state-layer-color","",d.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",l.opacity16),neutralOnHoverStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",l.opacity24),neutralOnFocusStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",l.opacity24),neutralOnFocusFocusRingColor:o.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",d.borderActionFocusRing),neutralOnActiveStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",l.opacity32),neutralOnBackgroundColor:o.extend("--ftds-chip-choice-neutral-on-background-color","",d.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ftds-chip-choice-neutral-on-border-color","",d.borderGlobalPrimary),neutralOnColor:o.extend("--ftds-chip-choice-neutral-on-color","",d.contentGlobalPrimary),neutralOnIconColor:o.extend("--ftds-chip-choice-neutral-on-icon-color","",d.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ftds-chip-choice-neutral-on-state-layer-color","",d.contentGlobalPrimary),largeMinHeight:o.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ftds-chip-choice-large-horizontal-padding","",l.spacing3),largeGap:o.extend("--ftds-chip-choice-large-gap","",l.spacing1),largeBorderRadius:o.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ftds-chip-choice-large-icon-size","",l.iconSize3),mediumMinHeight:o.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ftds-chip-choice-medium-horizontal-padding","",l.spacing2),mediumGap:o.extend("--ftds-chip-choice-medium-gap","",l.spacing1),mediumBorderRadius:o.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ftds-chip-choice-medium-icon-size","",l.iconSize2)};var Jf={largeMinHeight:o.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ftds-chip-large-horizontal-padding","",l.spacing3),largeButtonRightPadding:o.extend("--ftds-chip-large-button-right-padding","",l.spacing1),largeGap:o.extend("--ftds-chip-large-gap","",l.spacing1),largeFocusOutlineOffset:o.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:o.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ftds-chip-large-icon-size","",l.iconSize3),mediumMinHeight:o.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ftds-chip-medium-horizontal-padding","",l.spacing2),mediumButtonRightPadding:o.extend("--ftds-chip-medium-button-right-padding","",l.spacing05),mediumGap:o.extend("--ftds-chip-medium-gap","",l.spacing1),mediumFocusOutlineOffset:o.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:o.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ftds-chip-medium-icon-size","",l.iconSize2),smallMinHeight:o.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ftds-chip-small-horizontal-padding","",l.spacing1),smallButtonRightPadding:o.extend("--ftds-chip-small-button-right-padding","",l.spacing05),smallGap:o.extend("--ftds-chip-small-gap","",l.spacing1),smallFocusOutlineOffset:o.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:o.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:o.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:o.extend("--ftds-chip-small-icon-size","",l.iconSize1),neutralBackgroundColor:o.extend("--ftds-chip-neutral-background-color","",d.backgroundGlobalOnSurface),neutralColor:o.extend("--ftds-chip-neutral-color","",d.contentGlobalSecondary),neutralIconColor:o.extend("--ftds-chip-neutral-icon-color","",d.contentGlobalSecondary),neutralBorderColor:o.extend("--ftds-chip-neutral-border-color","",d.borderGlobalSubtle),infoBackgroundColor:o.extend("--ftds-chip-info-background-color","",d.backgroundInfoSubtle),infoColor:o.extend("--ftds-chip-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-chip-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-chip-info-border-color","",d.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-chip-success-background-color","",d.backgroundSuccessSubtle),successColor:o.extend("--ftds-chip-success-color","",d.contentSuccessPrimary),successIconColor:o.extend("--ftds-chip-success-icon-color","",d.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-chip-success-border-color","",d.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-chip-warning-background-color","",d.backgroundWarningSubtle),warningColor:o.extend("--ftds-chip-warning-color","",d.contentWarningPrimary),warningIconColor:o.extend("--ftds-chip-warning-icon-color","",d.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-chip-warning-border-color","",d.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-chip-error-background-color","",d.backgroundErrorSubtle),errorColor:o.extend("--ftds-chip-error-color","",d.contentErrorPrimary),errorIconColor:o.extend("--ftds-chip-error-icon-color","",d.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-chip-error-border-color","",d.borderErrorSubtle)};var ih={brandHoverOpacity:o.extend("--ftds-link-brand-hover-opacity","",l.opacity80),brandHoverColor:o.extend("--ftds-link-brand-hover-color","",d.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ftds-link-brand-focus-focus-ring-color","",d.borderActionFocusRing),brandFocusColor:o.extend("--ftds-link-brand-focus-color","",d.contentActionPrimary),brandDefaultColor:o.extend("--ftds-link-brand-default-color","",d.contentActionPrimary),brandActiveColor:o.extend("--ftds-link-brand-active-color","",d.contentActionPrimary),infoHoverOpacity:o.extend("--ftds-link-info-hover-opacity","",l.opacity80),infoHoverColor:o.extend("--ftds-link-info-hover-color","",d.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ftds-link-info-focus-focus-ring-color","",d.borderActionFocusRing),infoFocusColor:o.extend("--ftds-link-info-focus-color","",d.contentInfoPrimary),infoDefaultColor:o.extend("--ftds-link-info-default-color","",d.contentInfoPrimary),infoActiveColor:o.extend("--ftds-link-info-active-color","",d.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ftds-link-neutral-focus-focus-ring-color","",d.borderActionFocusRing),neutralFocusColor:o.extend("--ftds-link-neutral-focus-color","",d.contentActionPrimary),neutralDefaultColor:o.extend("--ftds-link-neutral-default-color","",d.contentGlobalPrimary),neutralHoverColor:o.extend("--ftds-link-neutral-hover-color","",d.contentActionPrimary),neutralActiveColor:o.extend("--ftds-link-neutral-active-color","",d.contentActionPrimary),neutralVisitedColor:o.extend("--ftds-link-neutral-visited-color","",l.colorBrand100)};var ch={iconSize:o.extend("--ftds-banner-icon-size","",l.iconSize5),borderWidth:o.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:o.extend("--ftds-banner-left-padding","",l.spacing6),rightPadding:o.extend("--ftds-banner-right-padding","",l.spacing6),verticalPadding:o.extend("--ftds-banner-vertical-padding","",l.spacing6),horizontalSideGap:o.extend("--ftds-banner-horizontal-side-gap","",l.spacing6),horizontalMobileGap:o.extend("--ftds-banner-horizontal-mobile-gap","",l.spacing4),verticalMobileGap:o.extend("--ftds-banner-vertical-mobile-gap","",l.spacing6),horizontalMiddleGap:o.extend("--ftds-banner-horizontal-middle-gap","",l.spacing20),infoBackgroundColor:o.extend("--ftds-banner-info-background-color","",d.backgroundInfoSubtle),infoColor:o.extend("--ftds-banner-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-banner-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-banner-info-border-color","",d.borderInfoSubtle)};var hh={horizontalPadding:o.extend("--ftds-badge-horizontal-padding","",l.spacing1),verticalPadding:o.extend("--ftds-badge-vertical-padding","",l.spacing1),borderRadius:o.extend("--ftds-badge-border-radius","",l.borderRadiusPill),color:o.extend("--ftds-badge-color","",d.contentGlobalOnColor),backgroundColor:o.extend("--ftds-badge-background-color","",d.contentActionPrimary)};var xh={horizontalGap:o.extend("--ftds-title-breadcrumb-horizontal-gap","",l.spacing1),currentColor:o.extend("--ftds-title-breadcrumb-current-color","",d.contentGlobalPrimary),previousNonClickableColor:o.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",d.contentGlobalSecondary),iconColor:o.extend("--ftds-title-breadcrumb-icon-color","",d.contentGlobalSubtle)};var wh={parentHorizontalPadding:o.extend("--ftds-page-header-parent-horizontal-padding","",l.spacing6),parentTopPadding:o.extend("--ftds-page-header-parent-top-padding","",l.spacing4),parentBottomPadding:o.extend("--ftds-page-header-parent-bottom-padding","",l.spacing6),parentHelpLeftMargin:o.extend("--ftds-page-header-parent-help-left-margin","",l.spacing1),parentTitleColor:o.extend("--ftds-page-header-parent-title-color","",d.contentGlobalPrimary),parentSubtitleColor:o.extend("--ftds-page-header-parent-subtitle-color","",d.contentGlobalSecondary),parentChipLeftMargin:o.extend("--ftds-page-header-parent-chip-left-margin","",l.spacing4),parentVerticalGap:o.extend("--ftds-page-header-parent-vertical-gap","",l.spacing2),parentButtonsGroupHorizontalGap:o.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",l.spacing4),parentButtonsGroupVerticalGap:o.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",l.spacing4),parentChipsGroupHorizontalGap:o.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",l.spacing2),parentChipsGroupVerticalGap:o.extend("--ftds-page-header-parent-chips-group-vertical-gap","",l.spacing2),childHorizontalPadding:o.extend("--ftds-page-header-child-horizontal-padding","",l.spacing6),childTopPadding:o.extend("--ftds-page-header-child-top-padding","",l.spacing2),childBottomPadding:o.extend("--ftds-page-header-child-bottom-padding","",l.spacing2),childHelpLeftMargin:o.extend("--ftds-page-header-child-help-left-margin","",l.spacing1),childChipLeftMargin:o.extend("--ftds-page-header-child-chip-left-margin","",l.spacing4),childVerticalGap:o.extend("--ftds-page-header-child-vertical-gap","",l.spacing2),childMinHeight:o.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:o.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",l.spacing4),childButtonsGroupVerticalGap:o.extend("--ftds-page-header-child-buttons-group-vertical-gap","",l.spacing4),childChipsGroupHorizontalGap:o.extend("--ftds-page-header-child-chips-group-horizontal-gap","",l.spacing2),childChipsGroupVerticalGap:o.extend("--ftds-page-header-child-chips-group-vertical-gap","",l.spacing2),backgroundColor:o.extend("--ftds-page-header-background-color","",l.colorWhite),bottomBorderColor:o.extend("--ftds-page-header-bottom-border-color","",d.borderGlobalSubtle),bottomBorderWidth:o.create("--ftds-page-header-bottom-border-width","","SIZE","1px")};var Ih={horizontalPadding:o.extend("--ftds-page-footer-horizontal-padding","",l.spacing6),verticalPadding:o.extend("--ftds-page-footer-vertical-padding","",l.spacing2),verticalGap:o.extend("--ftds-page-footer-vertical-gap","",l.spacing2),minHeight:o.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:o.extend("--ftds-page-footer-background-color","",l.colorWhite),topBorderColor:o.extend("--ftds-page-footer-top-border-color","",d.borderGlobalSubtle),topBorderWidth:o.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:o.extend("--ftds-page-footer-buttons-group-gap","",l.spacing4)};var kh={contentHorizontalPadding:o.extend("--ftds-page-layout-content-horizontal-padding","",l.spacing6),contentVerticalPadding:o.extend("--ftds-page-layout-content-vertical-padding","",l.spacing6)};var Bh={smallContainerTargetWidth:o.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:o.extend("--ftds-modal-small-container-margin","",l.spacing6),mediumContainerTargetWidth:o.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:o.extend("--ftds-modal-medium-container-margin","",l.spacing6),largeContainerTargetWidth:o.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:o.extend("--ftds-modal-large-container-margin","",l.spacing6),overlayBackgroundColor:o.extend("--ftds-modal-overlay-background-color","",l.colorGray700),overlayOpacity:o.extend("--ftds-modal-overlay-opacity","",l.opacity40),shadow:o.extend("--ftds-modal-shadow","",l.shadowElevation03),bodyBackgroundColor:o.extend("--ftds-modal-body-background-color","",l.colorWhite),bodyColor:o.extend("--ftds-modal-body-color","",d.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ftds-modal-body-horizontal-padding","",l.spacing6),bodyVerticalPadding:o.extend("--ftds-modal-body-vertical-padding","",l.spacing6),bodyVerticalGap:o.extend("--ftds-modal-body-vertical-gap","",l.spacing6),headerBackgroundColor:o.extend("--ftds-modal-header-background-color","",d.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-modal-header-border-color","",d.borderGlobalSubtle),headerColor:o.extend("--ftds-modal-header-color","",d.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ftds-modal-header-leading-icon-color","",d.contentGlobalPrimary),headerVerticalPadding:o.extend("--ftds-modal-header-vertical-padding","",l.spacing1),headerRightPadding:o.extend("--ftds-modal-header-right-padding","",l.spacing1),headerLeftPadding:o.extend("--ftds-modal-header-left-padding","",l.spacing6),headerGap:o.extend("--ftds-modal-header-gap","",l.spacing2),headerBorderBottomWidth:o.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:o.extend("--ftds-modal-border-radius","",l.borderRadiusM)};var Wh={overlayOpacity:o.extend("--ftds-drawer-overlay-opacity","",l.opacity40),shadow:o.extend("--ftds-drawer-shadow","",l.shadowElevation03),bodyColor:o.extend("--ftds-drawer-body-color","",d.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ftds-drawer-body-horizontal-padding","",l.spacing6),bodyVerticalPadding:o.extend("--ftds-drawer-body-vertical-padding","",l.spacing6),bodyGap:o.extend("--ftds-drawer-body-gap","",l.spacing6),bodyBackgroundColor:o.extend("--ftds-drawer-body-background-color","",l.colorWhite),headerBackgroundColor:o.extend("--ftds-drawer-header-background-color","",d.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-drawer-header-border-color","",d.borderGlobalSubtle),headerColor:o.extend("--ftds-drawer-header-color","",d.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ftds-drawer-header-trailing-icon-color","",d.contentGlobalSecondary),headerHeight:o.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ftds-drawer-header-horizontal-padding","",l.spacing2),headerBorderWidth:o.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ftds-drawer-header-gap","",l.spacing3),buttonsBarBackgroundColor:o.extend("--ftds-drawer-buttons-bar-background-color","",d.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ftds-drawer-buttons-bar-border-color","",d.borderGlobalSubtle),buttonsBarColor:o.extend("--ftds-drawer-buttons-bar-color","",d.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ftds-drawer-buttons-bar-horizontal-padding","",l.spacing6),buttonsBarVerticalPadding:o.extend("--ftds-drawer-buttons-bar-vertical-padding","",l.spacing4),buttonsBarGap:o.extend("--ftds-drawer-buttons-bar-gap","",l.spacing3),buttonsBarBorderWidth:o.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:o.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:o.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:o.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:o.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:o.extend("--ftds-drawer-overlay-background-color","",l.colorGray700)};var Zh={offBorderBottomWidth:o.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:o.extend("--ftds-tabs-off-hover-state-layer-opacity","",l.opacity8),offDefaultStateLayerOpacity:o.extend("--ftds-tabs-off-default-state-layer-opacity","",l.opacity0),offFocusStateLayerOpacity:o.extend("--ftds-tabs-off-focus-state-layer-opacity","",l.opacity8),offDisabledComponentOpacity:o.extend("--ftds-tabs-off-disabled-component-opacity","",l.opacity40),offColor:o.extend("--ftds-tabs-off-color","",d.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-tabs-off-state-layer-color","",d.contentGlobalSubtle),offBorderBottomColor:o.extend("--ftds-tabs-off-border-bottom-color","",d.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:o.extend("--ftds-tabs-top-left-border-radius","",l.borderRadiusS),topRightBorderRadius:o.extend("--ftds-tabs-top-right-border-radius","",l.borderRadiusS),withLabelHorizontalPadding:o.extend("--ftds-tabs-with-label-horizontal-padding","",l.spacing4),withLabelVerticalPadding:o.extend("--ftds-tabs-with-label-vertical-padding","",l.spacing3),horizontalGap:o.extend("--ftds-tabs-horizontal-gap","",l.spacing1),verticalGap:o.extend("--ftds-tabs-vertical-gap","",l.spacing1),onHoverStateLayerOpacity:o.extend("--ftds-tabs-on-hover-state-layer-opacity","",l.opacity16),onDefaultStateLayerOpacity:o.extend("--ftds-tabs-on-default-state-layer-opacity","",l.opacity8),onFocusStateLayerOpacity:o.extend("--ftds-tabs-on-focus-state-layer-opacity","",l.opacity16),onActiveStateLayerOpacity:o.extend("--ftds-tabs-on-active-state-layer-opacity","",l.opacity24),onColor:o.extend("--ftds-tabs-on-color","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-tabs-on-state-layer-color","",d.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ftds-tabs-on-active-tab-indicator-color","",d.contentActionPrimary),iconOnlyHorizontalPadding:o.extend("--ftds-tabs-icon-only-horizontal-padding","",l.spacing4),iconOnlyVerticalPadding:o.extend("--ftds-tabs-icon-only-vertical-padding","",l.spacing4),alertTopPadding:o.extend("--ftds-tabs-alert-top-padding","",l.spacing1),alertRightPadding:o.extend("--ftds-tabs-alert-right-padding","",l.spacing05),focusOutlineWidth:o.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-tabs-focus-focus-ring-color","",d.borderActionFocusRing)};var Jh={largeFieldHorizontalPadding:o.extend("--ftds-text-input-large-field-horizontal-padding","",l.spacing4),largeFieldHorizontalGap:o.extend("--ftds-text-input-large-field-horizontal-gap","",l.spacing3),largeFieldVerticalGap:o.extend("--ftds-text-input-large-field-vertical-gap","",l.spacing05),largeFieldHeight:o.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ftds-text-input-large-field-icon-size","",l.iconSize3),mediumFieldHorizontalPadding:o.extend("--ftds-text-input-medium-field-horizontal-padding","",l.spacing4),mediumFieldHorizontalGap:o.extend("--ftds-text-input-medium-field-horizontal-gap","",l.spacing3),mediumFieldVerticalGap:o.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ftds-text-input-medium-field-icon-size","",l.iconSize3),helperHorizontalPadding:o.extend("--ftds-text-input-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:o.extend("--ftds-text-input-helper-horizontal-gap","",l.spacing1),helperIconSize:o.extend("--ftds-text-input-helper-icon-size","",l.iconSize2),borderRadius:o.extend("--ftds-text-input-border-radius","",l.borderRadiusS),backgroundColor:o.extend("--ftds-text-input-background-color","",l.colorWhite),contentValueColor:o.extend("--ftds-text-input-content-value-color","",d.contentGlobalPrimary),trailingIconColor:o.extend("--ftds-text-input-trailing-icon-color","",d.contentGlobalSubtle),labelColor:o.extend("--ftds-text-input-label-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-text-input-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-text-input-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-text-input-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-text-input-error-helper-text-color","",d.contentErrorPrimary),errorHelperIconColor:o.extend("--ftds-text-input-error-helper-icon-color","",d.contentErrorIconOnly),warningBorderColor:o.extend("--ftds-text-input-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-text-input-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-text-input-warning-helper-icon-color","",d.contentWarningIconOnly),warningBorderWidth:o.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:o.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-text-input-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-text-input-disabled-component-opacity","",l.opacity40)};var ig={backgroundColor:o.extend("--ftds-text-area-background-color","",l.colorWhite),contentValueColor:o.extend("--ftds-text-area-content-value-color","",d.contentGlobalPrimary),labelColor:o.extend("--ftds-text-area-label-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-text-area-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-text-area-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-text-area-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-text-area-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-text-area-error-helper-text-color","",d.contentErrorPrimary),errorHelperIconColor:o.extend("--ftds-text-area-error-helper-icon-color","",d.contentErrorIconOnly),focusFocusRingColor:o.extend("--ftds-text-area-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ftds-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-text-area-disabled-component-opacity","",l.opacity40),fieldHorizontalLeftPadding:o.extend("--ftds-text-area-field-horizontal-left-padding","",l.spacing4),fieldHorizontalGap:o.extend("--ftds-text-area-field-horizontal-gap","",l.spacing3),fieldVerticalGap:o.extend("--ftds-text-area-field-vertical-gap","",l.spacing05),fieldMinHeight:o.create("--ftds-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:o.extend("--ftds-text-area-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:o.extend("--ftds-text-area-helper-horizontal-gap","",l.spacing1),helperIconSize:o.extend("--ftds-text-area-helper-icon-size","",l.iconSize2),borderRadius:o.extend("--ftds-text-area-border-radius","",l.borderRadiusS)};var cg={height:o.create("--ftds-floating-menu-height","","SIZE","50px"),horizontalPadding:o.extend("--ftds-floating-menu-horizontal-padding","",l.spacing4),offIconColor:o.extend("--ftds-floating-menu-off-icon-color","",d.contentGlobalPrimary),offColor:o.extend("--ftds-floating-menu-off-color","",d.contentGlobalPrimary),onColor:o.extend("--ftds-floating-menu-on-color","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-floating-menu-on-state-layer-color","",d.contentActionPrimary),gap:o.extend("--ftds-floating-menu-gap","",l.spacing3),focusFocusRingColor:o.extend("--ftds-floating-menu-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ftds-floating-menu-focus-state-layer-opacity","",l.opacity8),hoverStateLayerOpacity:o.extend("--ftds-floating-menu-hover-state-layer-opacity","",l.opacity8),activeStateLayerOpacity:o.extend("--ftds-floating-menu-active-state-layer-opacity","",l.opacity16),disabledComponentOpacity:o.extend("--ftds-floating-menu-disabled-component-opacity","",l.opacity40),iconSize:o.extend("--ftds-floating-menu-icon-size","",l.iconSize3),backgroundColor:o.extend("--ftds-floating-menu-background-color","",d.backgroundGlobalOnSurface),shadow:o.extend("--ftds-floating-menu-shadow","",l.shadowElevation02)};var hg={largeFieldHorizontalPadding:o.extend("--ftds-combobox-single-select-large-field-horizontal-padding","",l.spacing4),largeFieldHorizontalGap:o.extend("--ftds-combobox-single-select-large-field-horizontal-gap","",l.spacing3),largeFieldVerticalGap:o.extend("--ftds-combobox-single-select-large-field-vertical-gap","",l.spacing05),largeFieldHeight:o.create("--ftds-combobox-single-select-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ftds-combobox-single-select-large-field-icon-size","",l.iconSize3),mediumFieldHorizontalPadding:o.extend("--ftds-combobox-single-select-medium-field-horizontal-padding","",l.spacing4),mediumFieldHorizontalGap:o.extend("--ftds-combobox-single-select-medium-field-horizontal-gap","",l.spacing3),mediumFieldVerticalGap:o.create("--ftds-combobox-single-select-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ftds-combobox-single-select-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ftds-combobox-single-select-medium-field-icon-size","",l.iconSize3),helperHorizontalPadding:o.extend("--ftds-combobox-single-select-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:o.extend("--ftds-combobox-single-select-helper-horizontal-gap","",l.spacing1),helperVerticalGap:o.extend("--ftds-combobox-single-select-helper-vertical-gap","",l.spacing1),helperIconSize:o.extend("--ftds-combobox-single-select-helper-icon-size","",l.iconSize2),menuVerticalGap:o.extend("--ftds-combobox-single-select-menu-vertical-gap","",l.spacing2),borderRadius:o.extend("--ftds-combobox-single-select-border-radius","",l.borderRadiusS),backgroundColor:o.extend("--ftds-combobox-single-select-background-color","",l.colorWhite),labelColor:o.extend("--ftds-combobox-single-select-label-color","",d.contentGlobalSubtle),contentValueColor:o.extend("--ftds-combobox-single-select-content-value-color","",d.contentGlobalPrimary),trailingIconColor:o.extend("--ftds-combobox-single-select-trailing-icon-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-combobox-single-select-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-combobox-single-select-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-combobox-single-select-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-combobox-single-select-error-helper-text-color","",d.contentErrorPrimary),warningBorderWidth:o.create("--ftds-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ftds-combobox-single-select-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-combobox-single-select-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-combobox-single-select-warning-helper-icon-color","",d.contentWarningIconOnly),focusOutlineWidth:o.create("--ftds-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-combobox-single-select-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-combobox-single-select-disabled-component-opacity","",l.opacity40)};var xg={backgroundColor:o.extend("--ftds-combobox-multi-select-background-color","",l.colorWhite),labelColor:o.extend("--ftds-combobox-multi-select-label-color","",d.contentGlobalSubtle),trailingIconColor:o.extend("--ftds-combobox-multi-select-trailing-icon-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-combobox-multi-select-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-combobox-multi-select-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:o.extend("--ftds-combobox-multi-select-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-combobox-multi-select-error-helper-text-color","",d.contentErrorPrimary),errorHelperIcon:o.extend("--ftds-combobox-multi-select-error-helper-icon","",d.contentErrorIconOnly),errorBorderWidth:o.create("--ftds-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ftds-combobox-multi-select-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-combobox-multi-select-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-combobox-multi-select-warning-helper-icon-color","",d.contentWarningIconOnly),warningBorderWidth:o.create("--ftds-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-combobox-multi-select-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ftds-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-combobox-multi-select-disabled-component-opacity","",l.opacity40),helperHorizontalPadding:o.extend("--ftds-combobox-multi-select-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:o.extend("--ftds-combobox-multi-select-helper-horizontal-gap","",l.spacing1),helperVerticalGap:o.extend("--ftds-combobox-multi-select-helper-vertical-gap","",l.spacing1),helperIconSize:o.extend("--ftds-combobox-multi-select-helper-icon-size","",l.iconSize2),fieldHorizontalPadding:o.extend("--ftds-combobox-multi-select-field-horizontal-padding","",l.spacing4),fieldHorizontalGap:o.extend("--ftds-combobox-multi-select-field-horizontal-gap","",l.spacing3),fieldVerticalGap:o.extend("--ftds-combobox-multi-select-field-vertical-gap","",l.spacing05),fieldIconSize:o.extend("--ftds-combobox-multi-select-field-icon-size","",l.iconSize3),fieldMaxHeight:o.create("--ftds-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:o.extend("--ftds-combobox-multi-select-content-values-horizontal-gap","",l.spacing1),contentValuesVerticalGap:o.extend("--ftds-combobox-multi-select-content-values-vertical-gap","",l.spacing1),borderRadius:o.extend("--ftds-combobox-multi-select-border-radius","",l.borderRadiusS)};var wg={backgroundColor:o.extend("--ftds-popover-background-color","",d.backgroundGlobalOnSurface),horizontalPadding:o.extend("--ftds-popover-horizontal-padding","",l.spacing6),verticalPadding:o.extend("--ftds-popover-vertical-padding","",l.spacing6),titleColor:o.extend("--ftds-popover-title-color","",d.contentGlobalPrimary),bodyColor:o.extend("--ftds-popover-body-color","",d.contentGlobalSecondary),gap:o.extend("--ftds-popover-gap","",l.spacing2),borderRadius:o.extend("--ftds-popover-border-radius","",l.borderRadiusM),shadow:o.extend("--ftds-popover-shadow","",l.shadowElevation02),maxWidth:o.create("--ftds-popover-max-width","","SIZE","440px"),contentSectionVerticalGap:o.extend("--ftds-popover-content-section-vertical-gap","",l.spacing2),multiSectionVerticalGap:o.extend("--ftds-popover-multi-section-vertical-gap","",l.spacing6)};var Ig={hoverStateLayerOpacity:o.extend("--ftds-collapsible-hover-state-layer-opacity","",l.opacity8),focusStateLayerOpacity:o.extend("--ftds-collapsible-focus-state-layer-opacity","",l.opacity8),focusOutlineWidth:o.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ftds-collapsible-focus-focus-ring-color","",d.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ftds-collapsible-active-state-layer-opacity","",l.opacity16),disabledComponentOpacity:o.extend("--ftds-collapsible-disabled-component-opacity","",l.opacity40),horizontalPadding:o.extend("--ftds-collapsible-horizontal-padding","",l.spacing4),verticalPadding:o.extend("--ftds-collapsible-vertical-padding","",l.spacing3),color:o.extend("--ftds-collapsible-color","",d.contentGlobalPrimary),stateLayerColor:o.extend("--ftds-collapsible-state-layer-color","",d.contentGlobalPrimary),backgroundColor:o.extend("--ftds-collapsible-background-color","",d.backgroundGlobalOnSurface),borderColor:o.extend("--ftds-collapsible-border-color","",d.borderGlobalSubtle),iconSize:o.extend("--ftds-collapsible-icon-size","",l.iconSize3)};var Pg={groupHorizontalPadding:o.extend("--ftds-switch-group-horizontal-padding","",l.spacing1),groupVerticalPadding:o.extend("--ftds-switch-group-vertical-padding","",l.spacing1),groupGap:o.extend("--ftds-switch-group-gap","",l.spacing1),groupBackgroundColor:o.extend("--ftds-switch-group-background-color","",d.backgroundGlobalSurface),groupBorderColor:o.extend("--ftds-switch-group-border-color","",d.borderGlobalSubtle),groupBorderRadius:o.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ftds-switch-label-horizontal-padding","",l.spacing2),labelVerticalPadding:o.extend("--ftds-switch-label-vertical-padding","",l.spacing1),offHoverStateLayerOpacity:o.extend("--ftds-switch-off-hover-state-layer-opacity","",l.opacity8),offFocusStateLayerOpacity:o.extend("--ftds-switch-off-focus-state-layer-opacity","",l.opacity8),offActiveStateLayerOpacity:o.extend("--ftds-switch-off-active-state-layer-opacity","",l.opacity16),offDisabledComponentOpacity:o.extend("--ftds-switch-off-disabled-component-opacity","",l.opacity40),offColor:o.extend("--ftds-switch-off-color","",d.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-switch-off-state-layer-color","",d.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ftds-switch-on-hover-state-layer-opacity","",l.opacity8),onFocusStateLayerOpacity:o.extend("--ftds-switch-on-focus-state-layer-opacity","",l.opacity8),onActiveStateLayerOpacity:o.extend("--ftds-switch-on-active-state-layer-opacity","",l.opacity16),onDisabledComponentOpacity:o.extend("--ftds-switch-on-disabled-component-opacity","",l.opacity40),onColor:o.extend("--ftds-switch-on-color","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-switch-on-state-layer-color","",d.contentActionPrimary),iconHorizontalPadding:o.extend("--ftds-switch-icon-horizontal-padding","",l.spacing1),iconVerticalPadding:o.extend("--ftds-switch-icon-vertical-padding","",l.spacing1),focusOutlineWidth:o.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-switch-focus-focus-ring-color","",d.borderActionFocusRing),optionBorderRadius:o.extend("--ftds-switch-option-border-radius","",l.borderRadiusS)};var Bg={color1Light:o.extend("--ftds-chart-1-light","for area color charts",l.colorBrand40),color1Base:o.extend("--ftds-chart-1-base","for line charts",l.colorBrand0),color2Light:o.extend("--ftds-chart-2-light","for area color charts",l.colorYellow60),color2Base:o.extend("--ftds-chart-2-base","for line charts",l.colorYellow100),color3Light:o.extend("--ftds-chart-3-light","",l.colorUltramarine40),color3Base:o.extend("--ftds-chart-3-base","",l.colorUltramarine70),color4Light:o.extend("--ftds-chart-4-light","",l.colorCyan50),color4Base:o.extend("--ftds-chart-4-base","",l.colorCyan100),color5Light:o.extend("--ftds-chart-5-light","",l.colorRed40),color5Base:o.extend("--ftds-chart-5-base","",l.colorRed60),color6Light:o.extend("--ftds-chart-6-light","",l.colorGreen40),color6Base:o.extend("--ftds-chart-6-base","",l.colorGreen70),color7Light:o.extend("--ftds-chart-7-light","",l.colorOrange70),color7Base:o.extend("--ftds-chart-7-base","",l.colorOrange100),color8Light:o.extend("--ftds-chart-8-light","",l.colorAvocado70),color8Base:o.extend("--ftds-chart-8-base","",l.colorAvocado200),color9Light:o.extend("--ftds-chart-9-light","",l.colorBrown50),color9Base:o.extend("--ftds-chart-9-base","",l.colorBrown200),color10Light:o.extend("--ftds-chart-10-light","",l.colorGray50),color10Base:o.extend("--ftds-chart-10-base","",l.colorGray80),monochrome10:o.extend("--ftds-chart-monochrome-10","",l.colorBrand10),monochrome20:o.extend("--ftds-chart-monochrome-20","",l.colorBrand20),monochrome30:o.extend("--ftds-chart-monochrome-30","",l.colorBrand40),monochrome40:o.extend("--ftds-chart-monochrome-40","",l.colorBrand60),monochrome50:o.extend("--ftds-chart-monochrome-50","",l.colorBrand0),monochrome60:o.extend("--ftds-chart-monochrome-60","",l.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-popular-old-background-color","",l.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-popular-new-background-color","",l.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-unpopular-old-background-color","",l.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-unpopular-new-background-color","",l.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-color","",l.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:o.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-opacity","",l.opacity48),scatterplotDatapointInitialHoverBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-initial-hover-background-color","",l.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-selected-default-background-color","",l.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-selected-hover-background-color","",l.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-color","",l.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:o.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-opacity","",l.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-unselected-hover-background-color","",l.colorGray70),scatterplotDatapointHoverHoverRingColor:o.extend("--ftds-chart-scatterplot-datapoint-hover-hover-ring-color","",l.colorCyan200)};var Hg={color1IconColor:o.extend("--ftds-page-designer-1-icon-color","for area color charts",l.colorCyan0),color1ToolbarColor:o.extend("--ftds-page-designer-1-toolbar-color","for area color charts",l.colorCyan0),color2IconColor:o.extend("--ftds-page-designer-2-icon-color","for area color charts",l.colorBrand0),color2ToolbarColor:o.extend("--ftds-page-designer-2-toolbar-color","for area color charts",l.colorBrand0),color3IconColor:o.extend("--ftds-page-designer-3-icon-color","for area color charts",l.colorYellow200),color3ToolbarColor:o.extend("--ftds-page-designer-3-toolbar-color","for area color charts",l.colorYellow200),color4IconColor:o.extend("--ftds-page-designer-4-icon-color","for area color charts",l.colorUltramarine50),color4ToolbarColor:o.extend("--ftds-page-designer-4-toolbar-color","for area color charts",l.colorUltramarine50),color5IconColor:o.extend("--ftds-page-designer-5-icon-color","for area color charts",l.colorGreen0),color5ToolbarColor:o.extend("--ftds-page-designer-5-toolbar-color","for area color charts",l.colorGreen0),color6IconColor:o.extend("--ftds-page-designer-6-icon-color","for area color charts",l.colorOrange0),color6ToolbarColor:o.extend("--ftds-page-designer-6-toolbar-color","for area color charts",l.colorOrange0),color7IconColor:o.extend("--ftds-page-designer-7-icon-color","for area color charts",l.colorAvocado200),color7ToolbarColor:o.extend("--ftds-page-designer-7-toolbar-color","for area color charts",l.colorAvocado200),color8IconColor:o.extend("--ftds-page-designer-8-icon-color","for area color charts",l.colorBrown0),color8ToolbarColor:o.extend("--ftds-page-designer-8-toolbar-color","for area color charts",l.colorBrown0)};var Kg={borderWidth:o.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ftds-notice-horizontal-padding","",l.spacing3),verticalPadding:o.extend("--ftds-notice-vertical-padding","",l.spacing2),borderRadius:o.extend("--ftds-notice-border-radius","",l.borderRadiusS),gap:o.extend("--ftds-notice-gap","",l.spacing2),iconSize:o.extend("--ftds-notice-icon-size","",l.iconSize3),infoBackgroundColor:o.extend("--ftds-notice-info-background-color","",d.backgroundInfoSubtle),infoBorderColor:o.extend("--ftds-notice-info-border-color","",d.borderInfoSubtle),infoColor:o.extend("--ftds-notice-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-notice-info-icon-color","",d.contentInfoIconOnly),warningBackgroundColor:o.extend("--ftds-notice-warning-background-color","",d.backgroundWarningSubtle),warningBorderColor:o.extend("--ftds-notice-warning-border-color","",d.borderWarningSubtle),warningColor:o.extend("--ftds-notice-warning-color","",d.contentWarningPrimary),warningIconColor:o.extend("--ftds-notice-warning-icon-color","",d.contentWarningIconOnly),errorBackgroundColor:o.extend("--ftds-notice-error-background-color","",d.backgroundErrorSubtle),errorBorderColor:o.extend("--ftds-notice-error-border-color","",d.borderErrorSubtle),errorColor:o.extend("--ftds-notice-error-color","",d.contentErrorPrimary),errorIconColor:o.extend("--ftds-notice-error-icon-color","",d.contentErrorIconOnly),successBackgroundColor:o.extend("--ftds-notice-success-background-color","",d.backgroundSuccessSubtle),successBorderColor:o.extend("--ftds-notice-success-border-color","",d.borderSuccessSubtle),successColor:o.extend("--ftds-notice-success-color","",d.contentSuccessPrimary),successIconColor:o.extend("--ftds-notice-success-icon-color","",d.contentSuccessIconOnly),denseHorizontalPadding:o.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:o.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:o.extend("--ftds-notice-dense-gap","",l.spacing1),denseIconSize:o.extend("--ftds-notice-dense-icon-size","",l.iconSize2),denseBorderWidth:o.create("--ftds-notice-dense-border-width","","SIZE","0")};var Qg={offHoverStateLayerOpacity:o.extend("--ftds-toggle-off-hover-state-layer-opacity","",l.opacity16),offFocusStateLayerOpacity:o.extend("--ftds-toggle-off-focus-state-layer-opacity","",l.opacity16),offActiveStateLayerOpacity:o.extend("--ftds-toggle-off-active-state-layer-opacity","",l.opacity24),offDisabledComponentOpacity:o.extend("--ftds-toggle-off-disabled-component-opacity","",l.opacity40),offBackgroundColor:o.extend("--ftds-toggle-off-background-color","",d.contentGlobalSubtle),offIconColor:o.extend("--ftds-toggle-off-icon-color","",d.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-toggle-off-state-layer-color","",d.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ftds-toggle-on-hover-state-layer-opacity","",l.opacity16),onFocusStateLayerOpacity:o.extend("--ftds-toggle-on-focus-state-layer-opacity","",l.opacity16),onActiveStateLayerOpacity:o.extend("--ftds-toggle-on-active-state-layer-opacity","",l.opacity24),onDisabledComponentOpacity:o.extend("--ftds-toggle-on-disabled-component-opacity","",l.opacity40),onBackgroundColor:o.extend("--ftds-toggle-on-background-color","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-toggle-on-state-layer-color","",d.contentActionPrimary),onIconColor:o.extend("--ftds-toggle-on-icon-color","",d.contentActionPrimary),color:o.extend("--ftds-toggle-color","",d.contentGlobalPrimary),focusFocusRingColor:o.extend("--ftds-toggle-focus-focus-ring-color","",d.borderActionFocusRing),gap:o.extend("--ftds-toggle-gap","",l.spacing3)};var oy={iconSize:o.extend("--ftds-notification-icon-size","",l.iconSize4),leftPadding:o.extend("--ftds-notification-left-padding","",l.spacing5),rightPadding:o.extend("--ftds-notification-right-padding","",l.spacing4),verticalPadding:o.extend("--ftds-notification-vertical-padding","",l.spacing3),infoBackgroundColor:o.extend("--ftds-notification-info-background-color","",d.backgroundInfoSubtle),infoColor:o.extend("--ftds-notification-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-notification-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-notification-info-border-color","",d.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-notification-success-background-color","",d.backgroundSuccessSubtle),successColor:o.extend("--ftds-notification-success-color","",d.contentSuccessPrimary),successIconColor:o.extend("--ftds-notification-success-icon-color","",d.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-notification-success-border-color","",d.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-notification-warning-background-color","",d.backgroundWarningSubtle),warningColor:o.extend("--ftds-notification-warning-color","",d.contentWarningPrimary),warningIconColor:o.extend("--ftds-notification-warning-icon-color","",d.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-notification-warning-border-color","",d.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-notification-error-background-color","",d.backgroundErrorSubtle),errorColor:o.extend("--ftds-notification-error-color","",d.contentErrorPrimary),errorIconColor:o.extend("--ftds-notification-error-icon-color","",d.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-notification-error-border-color","",d.borderErrorSubtle),borderRadius:o.extend("--ftds-notification-border-radius","",l.borderRadiusPill),borderWidth:o.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ftds-notification-leading-gap","",l.spacing2),trailingGap:o.extend("--ftds-notification-trailing-gap","",l.spacing8)};var ly={horizontalPadding:o.extend("--ftds-tooltip-horizontal-padding","",l.spacing2),verticalPadding:o.extend("--ftds-tooltip-vertical-padding","",l.spacing2),borderRadius:o.extend("--ftds-tooltip-border-radius","",l.borderRadiusS),color:o.extend("--ftds-tooltip-color","",d.contentGlobalOnColor),backgroundColor:o.extend("--ftds-tooltip-background-color","",d.contentGlobalPrimary),backgroundOpacity:o.extend("--ftds-tooltip-background-opacity","",l.opacity80),shadow:o.extend("--ftds-tooltip-shadow","",l.shadowElevation02),maxWidth:o.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ftds-tooltip-gap","",l.spacing05)};var fy={verticalPadding:o.extend("--ftds-reorderable-list-vertical-padding","",l.spacing4),gap:o.extend("--ftds-reorderable-list-gap","",l.spacing1),borderRadius:o.extend("--ftds-reorderable-list-border-radius","",l.borderRadiusM),reorderableItemTitleMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",l.spacing6),reorderableItemTitleColor:o.extend("--ftds-reorderable-list-reorderable-item-title-color","",d.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",l.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:o.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",l.spacing2),reorderableItemRightButtonsGroupHorizontalGap:o.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",l.spacing2),reorderableItemUsersCountColor:o.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",d.contentGlobalPrimary),reorderableItemUsersCountMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",l.spacing6),reorderableItemBackgroundColor:o.extend("--ftds-reorderable-list-reorderable-item-background-color","",d.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",l.spacing1),reorderableItemWarningMessageColor:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",d.contentWarningPrimary),reorderableItemWarningMessageIconColor:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",d.contentWarningIconOnly),reorderableItemGripColor:o.extend("--ftds-reorderable-list-reorderable-item-grip-color","",d.contentGlobalSecondary),reorderableItemGripOpacity:o.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",l.opacity48),boxShadow:o.extend("--ftds-reorderable-list-box-shadow","",l.shadowElevation01),borderWidth:o.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:o.extend("--ftds-reorderable-list-reorderable-items-gap","",l.spacing2),leftPadding:o.extend("--ftds-reorderable-list-left-padding","",l.spacing2),rightPadding:o.extend("--ftds-reorderable-list-right-padding","",l.spacing6),borderColor:o.extend("--ftds-reorderable-list-border-color","",d.borderGlobalPrimary),backgroundColor:o.extend("--ftds-reorderable-list-background-color","",d.backgroundGlobalOnSurfaceDark)};var my={menuHorizontalPadding:o.extend("--ftds-date-range-picker-menu-horizontal-padding","",l.spacing4),menuVerticalPadding:o.extend("--ftds-date-range-picker-menu-vertical-padding","",l.spacing4),menuVerticalGap:o.extend("--ftds-date-range-picker-menu-vertical-gap","",l.spacing4),menuButtonsVerticalGap:o.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",l.spacing2)};var Ko;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(Ko||(Ko={}));var $r;(function(t){t.large="large",t.medium="medium",t.small="small"})($r||($r={}));var Mr=m(M());function Es(t,e){let r=jo[t];return Mr.css`
116
- ${e?(0,Mr.unsafeCSS)(e):Mr.css`.ft-typography--${(0,Mr.unsafeCSS)(t)}`} {
114
+ `;var dt=m(M()),R=m(T());var $t=m(M(),1),Xt=t=>typeof t=="string"?(0,$t.unsafeCSS)(t):t,o=class{static create(e,r,i,n){let a=c=>Xt(c??n),s=$t.css`var(${Xt(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.set=c=>rs(s,c??a(n)),s.get=c=>$t.css`var(${Xt(e)}, ${a(c)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,r,i,n){let a=c=>i.get(c??n),s=$t.css`var(${Xt(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.set=c=>rs(s,c??a(n)),s.get=c=>$t.css`var(${Xt(e)}, ${a(c)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(e,r){let i=a=>e.defaultCssValue(a),n=$t.css`var(${Xt(e.name)}, ${i(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=r,n.defaultCssValue=i,n.set=a=>e.set(a),n.get=a=>$t.css`var(${Xt(e.name)}, ${i(a)})`,n.breadcrumb=()=>e.breadcrumb(),n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};function rs(t,e){return Xt(`${t.name}: ${e}`)}var l={colorWhite:o.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:o.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:o.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:o.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:o.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:o.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:o.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:o.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:o.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:o.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:o.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:o.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:o.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:o.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:o.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:o.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:o.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ftds-icon-size-1","","SIZE","0.75rem"),iconSize2:o.create("--ftds-icon-size-2","","SIZE","1rem"),iconSize3:o.create("--ftds-icon-size-3","","SIZE","1.25rem"),iconSize4:o.create("--ftds-icon-size-4","","SIZE","1.5rem"),iconSize5:o.create("--ftds-icon-size-5","","SIZE","2rem"),iconSize6:o.create("--ftds-icon-size-6","","SIZE","3rem"),opacity0:o.create("--ftds-opacity-0","","NUMBER","0"),opacity8:o.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:o.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:o.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:o.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:o.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:o.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:o.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:o.create("--ftds-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:o.create("--ftds-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:o.create("--ftds-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:o.create("--ftds-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:o.create("--ftds-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:o.create("--ftds-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:o.create("--ftds-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:o.create("--ftds-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:o.create("--ftds-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)")},os={fontFamily:o.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:o.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-display-text-case","","UNKNOWN","none")},is={fontFamily:o.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:o.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},ns={fontFamily:o.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:o.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},as={fontFamily:o.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:o.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:o.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},ss={fontFamily:o.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},ls={fontFamily:o.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},cs={fontFamily:o.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},ds={fontFamily:o.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},$r={fontFamily:o.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},Du={fontFamily:o.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:o.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:o.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},us={fontFamily:o.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},ps={fontFamily:o.create("--ftds-typography-label-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-label-1-medium-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-1-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-label-1-medium-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-1-medium-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-1-medium-text-decoration","","UNKNOWN","none")},fs={fontFamily:o.create("--ftds-typography-label-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-label-1-semibold-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-1-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-label-1-semibold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-1-semibold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-1-semibold-text-decoration","","UNKNOWN","none")},hs={fontFamily:o.create("--ftds-typography-label-1-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-1-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-label-1-bold-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-1-bold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-label-1-bold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-1-bold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-1-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-1-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-1-bold-text-decoration","","UNKNOWN","none")},gs={fontFamily:o.create("--ftds-typography-label-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-label-2-medium-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-2-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-label-2-medium-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-2-medium-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-2-medium-text-decoration","","UNKNOWN","none")},ys={fontFamily:o.create("--ftds-typography-label-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-label-2-semibold-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-2-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-label-2-semibold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-2-semibold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-2-semibold-text-decoration","","UNKNOWN","none")},ms={fontFamily:o.create("--ftds-typography-label-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-label-2-bold-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-2-bold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-label-2-bold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-2-bold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-2-bold-text-decoration","","UNKNOWN","none")},bs={fontFamily:o.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},xs={fontFamily:o.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},vs={fontFamily:o.create("--ftds-typography-caption-1-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-caption-1-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-bold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-bold-text-decoration","","UNKNOWN","none")},vr={fontFamily:o.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},Ss={fontFamily:o.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},Cs={fontFamily:o.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},Os={fontFamily:o.create("--ftds-typography-caption-3-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-3-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-3-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-3-medium-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ftds-typography-caption-3-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-3-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-3-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-3-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-3-medium-text-decoration","","UNKNOWN","none")},ws={fontFamily:o.create("--ftds-typography-caption-3-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-3-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-3-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-3-semibold-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ftds-typography-caption-3-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-3-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-3-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-3-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-3-semibold-text-decoration","","UNKNOWN","none")},Es={fontFamily:o.create("--ftds-typography-caption-3-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-3-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-caption-3-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-3-bold-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ftds-typography-caption-3-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-3-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-3-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-3-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-3-bold-text-decoration","","UNKNOWN","none")},Ko={display:os,"title-1":is,"title-2":ns,"title-3":as,"body-1-regular":ss,"body-1-medium":ls,"body-1-semibold":cs,"body-2-regular":ds,"body-2-medium":$r,"body-2-medium-underline":Du,"body-2-semibold":us,"label-1-medium":ps,"label-1-semibold":fs,"label-1-bold":hs,"label-2-medium":gs,"label-2-semibold":ys,"label-2-bold":ms,"caption-1-medium":bs,"caption-1-semibold":xs,"caption-1-bold":vs,"caption-2-medium":vr,"caption-2-semibold":Ss,"caption-2-bold":Cs,"caption-3-medium":Os,"caption-3-semibold":ws,"caption-3-bold":Es};var d={backgroundActionPrimary:o.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",l.colorBrand0),backgroundErrorSubtle:o.extend("--ftds-background-error-subtle","Used as background of subtle error components.",l.colorRed10),backgroundInfoSubtle:o.extend("--ftds-background-info-subtle","Used as background of subtle information components.",l.colorCyan10),backgroundWarningSubtle:o.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",l.colorOrange10),backgroundSuccessSubtle:o.extend("--ftds-background-success-subtle","Used as background of subtle success components.",l.colorGreen10),backgroundGlobalSurface:o.extend("--ftds-background-global-surface","Used as app background.",l.colorWhite),backgroundGlobalOnSurface:o.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",l.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",l.colorGray30),contentActionPrimary:o.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",l.colorBrand0),contentWarningPrimary:o.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",l.colorOrange200),contentWarningIconOnly:o.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",l.colorOrange0),contentErrorPrimary:o.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",l.colorRed0),contentErrorIconOnly:o.extend("--ftds-content-error-icon-only","Used on error status icons alone",l.colorRed70),contentInfoPrimary:o.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",l.colorCyan200),contentInfoIconOnly:o.extend("--ftds-content-info-icon-only","Used on info status icons alone",l.colorCyan0),contentSuccessPrimary:o.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",l.colorGreen200),contentSuccessIconOnly:o.extend("--ftds-content-success-icon-only","Used on success status icons alone",l.colorGreen0),contentGlobalPrimary:o.extend("--ftds-content-global-primary","Used for main content on the page.",l.colorGray500),contentGlobalSecondary:o.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
115
+ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",l.colorGray0),contentGlobalOnColor:o.extend("--ftds-content-global-on-color","Used for content on a dominant color.",l.colorWhite),borderActionPrimary:o.extend("--ftds-border-action-primary","Used as border for primary action components.",l.colorBrand0),borderActionFocusRing:o.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",l.colorCyan0),borderWarningPrimary:o.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",l.colorOrange200),borderWarningSubtle:o.extend("--ftds-border-warning-subtle","Used as border for warning components.",l.colorOrange30),borderSuccessPrimary:o.extend("--ftds-border-success-primary","Used as border for success buttons.",l.colorGreen200),borderSuccessSubtle:o.extend("--ftds-border-success-subtle","Used as border for success components.",l.colorGreen30),borderErrorPrimary:o.extend("--ftds-border-error-primary","Used as border for text fields in error states.",l.colorRed0),borderErrorSubtle:o.extend("--ftds-border-error-subtle","Used as border for error components.",l.colorRed30),borderInfoPrimary:o.extend("--ftds-border-info-primary","Used as border for buttons in info color.",l.colorCyan200),borderInfoSubtle:o.extend("--ftds-border-info-subtle","Used as border for information components.",l.colorCyan30),borderGlobalPrimary:o.extend("--ftds-border-global-primary","Used as border for element like input.",l.colorGray50),borderGlobalSubtle:o.extend("--ftds-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",l.colorGray30),borderInputPrimary:o.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",l.colorGray80),borderNeutralPrimary:o.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",l.colorGray200)};var f={largeHeight:o.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ftds-button-large-horizontal-padding","",l.spacing4),largeGap:o.extend("--ftds-button-large-gap","",l.spacing2),largeBorderRadius:o.extend("--ftds-button-large-border-radius","",l.borderRadiusS),largeIconSize:o.extend("--ftds-button-large-icon-size","",l.iconSize3),largeBorderWidth:o.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:o.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:o.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:o.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:o.extend("--ftds-button-medium-horizontal-padding","",l.spacing3),mediumGap:o.extend("--ftds-button-medium-gap","",l.spacing2),mediumBorderRadius:o.extend("--ftds-button-medium-border-radius","",l.borderRadiusS),mediumIconSize:o.extend("--ftds-button-medium-icon-size","",l.iconSize2),mediumBorderWidth:o.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:o.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:o.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:o.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ftds-button-small-horizontal-padding","",l.spacing2),smallGap:o.extend("--ftds-button-small-gap","",l.spacing1),smallBorderRadius:o.extend("--ftds-button-small-border-radius","",l.borderRadiusS),smallIconSize:o.extend("--ftds-button-small-icon-size","",l.iconSize1),smallBorderWidth:o.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:o.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:o.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:o.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:o.extend("--ftds-button-x-small-icon-size","",l.iconSize1),xSmallFocusOutlineOffset:o.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:o.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:o.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:o.extend("--ftds-button-round-border-radius","",l.borderRadiusPill),primaryBrandBackgroundColor:o.extend("--ftds-button-primary-brand-background-color","",d.backgroundActionPrimary),primaryBrandColor:o.extend("--ftds-button-primary-brand-color","",d.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ftds-button-primary-brand-icon-color","",d.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ftds-button-primary-brand-state-layer-color","",d.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",l.opacity16),primaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",l.opacity16),primaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-primary-brand-active-state-layer-opacity","",l.opacity24),primaryBrandDisabledComponentOpacity:o.extend("--ftds-button-primary-brand-disabled-component-opacity","",l.opacity40),focusFocusRingColor:o.extend("--ftds-button-focus-focus-ring-color","",d.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ftds-button-tertiary-brand-color","",d.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ftds-button-tertiary-brand-icon-color","",d.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ftds-button-tertiary-brand-state-layer-color","",d.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",l.opacity8),tertiaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",l.opacity8),tertiaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",l.opacity16),tertiaryBrandDisabledComponentOpacity:o.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",l.opacity40),tertiaryInfoBackgroundColor:o.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:o.extend("--ftds-button-tertiary-info-color","",d.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ftds-button-tertiary-info-icon-color","",d.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ftds-button-tertiary-info-state-layer-color","",d.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",l.opacity8),tertiaryInfoHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",l.opacity8),tertiaryInfoActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",l.opacity16),tertiaryInfoDisabledComponentOpacity:o.extend("--ftds-button-tertiary-info-disabled-component-opacity","",l.opacity40),tertiarySuccessBackgroundColor:o.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:o.extend("--ftds-button-tertiary-success-color","",d.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ftds-button-tertiary-success-icon-color","",d.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ftds-button-tertiary-success-state-layer-color","",d.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",l.opacity8),tertiarySuccessFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",l.opacity8),tertiarySuccessActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",l.opacity16),tertiarySuccessDisabledComponentOpacity:o.extend("--ftds-button-tertiary-success-disabled-component-opacity","",l.opacity40),tertiaryWarningBackgroundColor:o.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:o.extend("--ftds-button-tertiary-warning-color","",d.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ftds-button-tertiary-warning-icon-color","",d.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ftds-button-tertiary-warning-state-layer-color","",d.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",l.opacity8),tertiaryWarningFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",l.opacity8),tertiaryWarningActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",l.opacity16),tertiaryWarningDisabledComponentOpacity:o.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",l.opacity40),tertiaryErrorBackgroundColor:o.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:o.extend("--ftds-button-tertiary-error-color","",d.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ftds-button-tertiary-error-icon-color","",d.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ftds-button-tertiary-error-state-layer-color","",d.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",l.opacity8),tertiaryErrorFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",l.opacity8),tertiaryErrorActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",l.opacity16),tertiaryErrorDisabledComponentOpacity:o.extend("--ftds-button-tertiary-error-disabled-component-opacity","",l.opacity40),tertiaryNeutralBackgroundColor:o.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:o.extend("--ftds-button-tertiary-neutral-icon-color","",d.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ftds-button-tertiary-neutral-color","",d.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ftds-button-tertiary-neutral-state-layer-color","",d.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",l.opacity8),tertiaryNeutralFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",l.opacity8),tertiaryNeutralActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",l.opacity16),tertiaryNeutralDisabledComponentOpacity:o.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",l.opacity40),secondaryBrandBackgroundColor:o.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:o.extend("--ftds-button-secondary-brand-color","",d.contentActionPrimary),secondaryBrandIconColor:o.extend("--ftds-button-secondary-brand-icon-color","",d.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ftds-button-secondary-brand-state-layer-color","",d.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",l.opacity8),secondaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",l.opacity8),secondaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",l.opacity16),secondaryBrandDisabledComponentOpacity:o.extend("--ftds-button-secondary-brand-disabled-component-opacity","",l.opacity40),secondaryBrandBorderColor:o.extend("--ftds-button-secondary-brand-border-color","",d.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",l.opacity8),secondaryNeutralFocusStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",l.opacity8),secondaryNeutralActiveStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",l.opacity16),secondaryNeutralDisabledComponentOpacity:o.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",l.opacity40),secondaryNeutralBackgroundColor:o.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:o.extend("--ftds-button-secondary-neutral-color","",d.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ftds-button-secondary-neutral-icon-color","",d.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ftds-button-secondary-neutral-state-layer-color","",d.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ftds-button-secondary-neutral-border-color","",d.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:o.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",l.opacity8),secondaryInfoFocusStateLayerOpacity:o.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",l.opacity8),secondaryInfoActiveStateLayerOpacity:o.extend("--ftds-button-secondary-info-active-state-layer-opacity","",l.opacity16),secondaryInfoDisabledComponentOpacity:o.extend("--ftds-button-secondary-info-disabled-component-opacity","",l.opacity40),secondaryInfoBackgroundColor:o.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:o.extend("--ftds-button-secondary-info-border-color","",d.borderInfoPrimary),secondaryInfoColor:o.extend("--ftds-button-secondary-info-color","",d.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ftds-button-secondary-info-icon-color","",d.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ftds-button-secondary-info-state-layer-color","",d.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:o.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",l.opacity8),secondarySuccessFocusStateLayerOpacity:o.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",l.opacity8),secondarySuccessActiveStateLayerOpacity:o.extend("--ftds-button-secondary-success-active-state-layer-opacity","",l.opacity16),secondarySuccessDisabledComponentOpacity:o.extend("--ftds-button-secondary-success-disabled-component-opacity","",l.opacity40),secondarySuccessBackgroundColor:o.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:o.extend("--ftds-button-secondary-success-border-color","",d.borderSuccessPrimary),secondarySuccessColor:o.extend("--ftds-button-secondary-success-color","",d.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ftds-button-secondary-success-icon-color","",d.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ftds-button-secondary-success-state-layer-color","",d.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:o.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",l.opacity8),secondaryWarningFocusStateLayerOpacity:o.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",l.opacity8),secondaryWarningActiveStateLayerOpacity:o.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",l.opacity16),secondaryWarningDisabledComponentOpacity:o.extend("--ftds-button-secondary-warning-disabled-component-opacity","",l.opacity40),secondaryWarningBackgroundColor:o.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:o.extend("--ftds-button-secondary-warning-border-color","",d.borderWarningPrimary),secondaryWarningColor:o.extend("--ftds-button-secondary-warning-color","",d.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ftds-button-secondary-warning-icon-color","",d.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ftds-button-secondary-warning-state-layer-color","",d.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:o.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",l.opacity8),secondaryErrorFocusStateLayerOpacity:o.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",l.opacity8),secondaryErrorActiveStateLayerOpacity:o.extend("--ftds-button-secondary-error-active-state-layer-opacity","",l.opacity16),secondaryErrorDisabledComponentOpacity:o.extend("--ftds-button-secondary-error-disabled-component-opacity","",l.opacity40),secondaryErrorBackgroundColor:o.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:o.extend("--ftds-button-secondary-error-border-color","",d.contentErrorPrimary),secondaryErrorColor:o.extend("--ftds-button-secondary-error-color","",d.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ftds-button-secondary-error-icon-color","",d.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ftds-button-secondary-error-state-layer-color","",d.contentErrorPrimary)};var If={loadMoreIconSize:o.extend("--ftds-tree-list-load-more-icon-size","",l.iconSize2),loadMorePaddingLeft:o.extend("--ftds-tree-list-load-more-padding-left","",l.spacing6),loadMoreUnselectedDefaultBorderColor:o.extend("--ftds-tree-list-load-more-unselected-default-border-color","",d.borderGlobalSubtle),loadMoreIconColor:o.extend("--ftds-tree-list-load-more-icon-color","",d.contentActionPrimary),loadMoreLabelColor:o.extend("--ftds-tree-list-load-more-label-color","",d.contentActionPrimary),loadMoreHoverBorderColor:o.extend("--ftds-tree-list-load-more-hover-border-color","",l.colorBrand20),loadMoreHoverBackgroundColor:o.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:o.extend("--ftds-tree-list-load-more-active-border-color","",l.colorBrand20),loadMoreActiveBackgroundColor:o.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:o.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:o.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:o.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",d.borderGlobalPrimary),loadMoreLabelMarginLeft:o.extend("--ftds-tree-list-load-more-label-margin-left","",l.spacing1),nodeIconSize:o.extend("--ftds-tree-list-node-icon-size","",l.iconSize2),nodeHeight:o.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:o.extend("--ftds-tree-list-node-parent-label-margin-left","",l.spacing2),nodeParentLabelMarginRight:o.extend("--ftds-tree-list-node-parent-label-margin-right","",l.spacing2),nodeRootPaddingLeft:o.extend("--ftds-tree-list-node-root-padding-left","",l.spacing3),nodeChildPaddingLeft:o.extend("--ftds-tree-list-node-child-padding-left","",l.spacing5),nodeLeafPaddingLeft:o.extend("--ftds-tree-list-node-leaf-padding-left","",l.spacing6),nodeUnselectedDefaultBorderColor:o.extend("--ftds-tree-list-node-unselected-default-border-color","",d.borderGlobalSubtle),nodeUnselectedIconColor:o.extend("--ftds-tree-list-node-unselected-icon-color","",d.contentGlobalSecondary),nodeUnselectedLabelColor:o.extend("--ftds-tree-list-node-unselected-label-color","",d.contentGlobalSecondary),nodeUnselectedCounterColor:o.extend("--ftds-tree-list-node-unselected-counter-color","",d.contentGlobalSecondary),nodeHoverBorderColor:o.extend("--ftds-tree-list-node-hover-border-color","",d.borderActionPrimary),nodeFocusFocusRingColor:o.extend("--ftds-tree-list-node-focus-focus-ring-color","",d.borderActionFocusRing),nodeFocusOutlineWidth:o.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:o.extend("--ftds-tree-list-node-selected-default-border-color","",d.borderGlobalPrimary),nodeSelectedIconColor:o.extend("--ftds-tree-list-node-selected-icon-color","",d.contentGlobalSecondary),nodeSelectedLabelColor:o.extend("--ftds-tree-list-node-selected-label-color","",d.contentGlobalPrimary),nodeSelectedCounterColor:o.extend("--ftds-tree-list-node-selected-counter-color","",d.contentGlobalSecondary),nodeSelectedBackgroundColor:o.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:o.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",d.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:o.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",d.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:o.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",d.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:o.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",d.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:o.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:o.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:o.extend("--ftds-tree-list-header-section-padding-left","",l.spacing3),headerSectionPaddingRight:o.extend("--ftds-tree-list-header-section-padding-right","",l.spacing3),headerSectionHorizontalGap:o.extend("--ftds-tree-list-header-section-horizontal-gap","",l.spacing2),headerSectionMarginBottom:o.extend("--ftds-tree-list-header-section-margin-bottom","",l.spacing2),headerSectionColor:o.extend("--ftds-tree-list-header-section-color","",d.contentGlobalPrimary),headerSectionCounterColor:o.extend("--ftds-tree-list-header-section-counter-color","",d.contentGlobalSecondary),listContainerBorderWidth:o.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:o.extend("--ftds-tree-list-list-container-background-color","",d.backgroundGlobalSurface),listContainerBorderColor:o.extend("--ftds-tree-list-list-container-border-color","",d.borderGlobalSubtle),emptyStateIllustrationWidth:o.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:o.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:o.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",l.spacing10),emptyStateContainerPaddingTop:o.extend("--ftds-tree-list-empty-state-container-padding-top","",l.spacing10),emptyStateContainerPaddingBottom:o.extend("--ftds-tree-list-empty-state-container-padding-bottom","",l.spacing10),emptyStateTitleMarginBottom:o.extend("--ftds-tree-list-empty-state-title-margin-bottom","",l.spacing2),emptyStateTitleLabelColor:o.extend("--ftds-tree-list-empty-state-title-label-color","",d.contentGlobalSecondary),emptyStateDescriptionLabelColor:o.extend("--ftds-tree-list-empty-state-description-label-color","",d.contentGlobalSecondary)};var Pf={iconSize:o.extend("--ftds-checkbox-icon-size","",l.iconSize2),boxSize:o.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:o.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:o.create("--ftds-checkbox-border-radius","","SIZE","1px"),color:o.extend("--ftds-checkbox-color","",d.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ftds-checkbox-checked-background-color","",d.contentActionPrimary),checkedStateLayerColor:o.extend("--ftds-checkbox-checked-state-layer-color","",d.contentActionPrimary),checkedIconColor:o.extend("--ftds-checkbox-checked-icon-color","",d.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",l.opacity16),checkedFocusStateLayerOpacity:o.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",l.opacity16),checkedActiveStateLayerOpacity:o.extend("--ftds-checkbox-checked-active-state-layer-opacity","",l.opacity24),checkedDisabledComponentOpacity:o.extend("--ftds-checkbox-checked-disabled-component-opacity","",l.opacity40),uncheckedBorderColor:o.extend("--ftds-checkbox-unchecked-border-color","",l.colorGray80),uncheckedStateLayerColor:o.extend("--ftds-checkbox-unchecked-state-layer-color","",l.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",l.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",l.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",l.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",l.opacity40),focusFocusRingColor:o.extend("--ftds-checkbox-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),borderWidth:o.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:o.extend("--ftds-checkbox-horizontal-gap","",l.spacing3),leftPadding:o.extend("--ftds-checkbox-left-padding","",l.spacing2)};var Ff={circleSize:o.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:o.create("--ftds-radio-border-width","","SIZE","2px"),color:o.extend("--ftds-radio-color","",d.contentGlobalPrimary),selectedRadioColor:o.extend("--ftds-radio-selected-radio-color","",d.contentActionPrimary),selectedStateLayerColor:o.extend("--ftds-radio-selected-state-layer-color","",d.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ftds-radio-selected-hover-state-layer-opacity","",l.opacity16),selectedFocusStateLayerOpacity:o.extend("--ftds-radio-selected-focus-state-layer-opacity","",l.opacity16),selectedActiveStateLayerOpacity:o.extend("--ftds-radio-selected-active-state-layer-opacity","",l.opacity24),selectedDisabledComponentOpacity:o.extend("--ftds-radio-selected-disabled-component-opacity","",l.opacity40),unselectedStateLayerColor:o.extend("--ftds-radio-unselected-state-layer-color","",d.borderInputPrimary),unselectedBorderColor:o.extend("--ftds-radio-unselected-border-color","",d.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ftds-radio-unselected-hover-state-layer-opacity","",l.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ftds-radio-unselected-focus-state-layer-opacity","",l.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ftds-radio-unselected-active-state-layer-opacity","",l.opacity24),unselectedDisabledComponentOpacity:o.extend("--ftds-radio-unselected-disabled-component-opacity","",l.opacity40),focusFocusRingColor:o.extend("--ftds-radio-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:o.extend("--ftds-radio-vertical-gap","",l.spacing3),horizontalGap:o.extend("--ftds-radio-horizontal-gap","",l.spacing3)};var Gf={headerRowBorderWidth:o.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:o.extend("--ftds-table-header-row-background-color","",d.backgroundGlobalOnSurfaceDark),headerRowBorderColor:o.extend("--ftds-table-header-row-border-color","",d.borderGlobalPrimary),headerRowColor:o.extend("--ftds-table-header-row-color","",d.contentGlobalPrimary),dataRowBorderWidth:o.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:o.extend("--ftds-table-data-row-background-color","",d.backgroundGlobalOnSurface),dataRowBorderColor:o.extend("--ftds-table-data-row-border-color","",d.borderGlobalSubtle),dataRowColor:o.extend("--ftds-table-data-row-color","",d.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:o.extend("--ftds-table-data-row-default-hover-background-color","",l.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:o.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",l.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:o.extend("--ftds-table-data-row-selectable-selected-default-background-color","",l.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:o.extend("--ftds-table-data-row-selectable-selected-default-border-color","",l.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:o.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",l.colorBrand20),dataRowSelectableSelectedHoverBorderColor:o.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",l.colorBrand30),dataRowSelectableSelectedColor:o.extend("--ftds-table-data-row-selectable-selected-color","",d.contentActionPrimary),dataRowClickableHoverBackgroundColor:o.extend("--ftds-table-data-row-clickable-hover-background-color","",l.colorGray30),dataRowClickableFocusBorderColor:o.extend("--ftds-table-data-row-clickable-focus-border-color","",d.borderActionFocusRing),dataRowClickableFocusBackgroundColor:o.extend("--ftds-table-data-row-clickable-focus-background-color","",l.colorGray30),dataRowClickableActiveBackgroundColor:o.extend("--ftds-table-data-row-clickable-active-background-color","",l.colorGray40),headerCellHorizontalGap:o.extend("--ftds-table-header-cell-horizontal-gap","",l.spacing1),headerCellVerticalPadding:o.extend("--ftds-table-header-cell-vertical-padding","",l.spacing2),headerCellHorizontalPadding:o.extend("--ftds-table-header-cell-horizontal-padding","",l.spacing3),dataCellVerticalPadding:o.extend("--ftds-table-data-cell-vertical-padding","",l.spacing2),dataCellHorizontalPadding:o.extend("--ftds-table-data-cell-horizontal-padding","",l.spacing3),dataCellVerticalGap:o.extend("--ftds-table-data-cell-vertical-gap","",l.spacing1)};var qf={neutralOffHoverStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",l.opacity8),neutralOffFocusStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",l.opacity8),neutralOffFocusFocusRingColor:o.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",d.borderActionFocusRing),neutralOffActiveStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",l.opacity16),neutralOffBackgroundColor:o.extend("--ftds-chip-choice-neutral-off-background-color","",d.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ftds-chip-choice-neutral-off-border-color","",d.borderGlobalPrimary),neutralOffColor:o.extend("--ftds-chip-choice-neutral-off-color","",d.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ftds-chip-choice-neutral-off-state-layer-color","",d.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",l.opacity16),neutralOnHoverStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",l.opacity24),neutralOnFocusStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",l.opacity24),neutralOnFocusFocusRingColor:o.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",d.borderActionFocusRing),neutralOnActiveStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",l.opacity32),neutralOnBackgroundColor:o.extend("--ftds-chip-choice-neutral-on-background-color","",d.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ftds-chip-choice-neutral-on-border-color","",d.borderGlobalPrimary),neutralOnColor:o.extend("--ftds-chip-choice-neutral-on-color","",d.contentGlobalPrimary),neutralOnIconColor:o.extend("--ftds-chip-choice-neutral-on-icon-color","",d.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ftds-chip-choice-neutral-on-state-layer-color","",d.contentGlobalPrimary),largeMinHeight:o.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ftds-chip-choice-large-horizontal-padding","",l.spacing3),largeGap:o.extend("--ftds-chip-choice-large-gap","",l.spacing1),largeBorderRadius:o.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ftds-chip-choice-large-icon-size","",l.iconSize3),mediumMinHeight:o.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ftds-chip-choice-medium-horizontal-padding","",l.spacing2),mediumGap:o.extend("--ftds-chip-choice-medium-gap","",l.spacing1),mediumBorderRadius:o.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ftds-chip-choice-medium-icon-size","",l.iconSize2)};var eh={largeMinHeight:o.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ftds-chip-large-horizontal-padding","",l.spacing3),largeButtonRightPadding:o.extend("--ftds-chip-large-button-right-padding","",l.spacing1),largeGap:o.extend("--ftds-chip-large-gap","",l.spacing1),largeFocusOutlineOffset:o.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:o.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ftds-chip-large-icon-size","",l.iconSize3),mediumMinHeight:o.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ftds-chip-medium-horizontal-padding","",l.spacing2),mediumButtonRightPadding:o.extend("--ftds-chip-medium-button-right-padding","",l.spacing05),mediumGap:o.extend("--ftds-chip-medium-gap","",l.spacing1),mediumFocusOutlineOffset:o.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:o.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ftds-chip-medium-icon-size","",l.iconSize2),smallMinHeight:o.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ftds-chip-small-horizontal-padding","",l.spacing1),smallButtonRightPadding:o.extend("--ftds-chip-small-button-right-padding","",l.spacing05),smallGap:o.extend("--ftds-chip-small-gap","",l.spacing1),smallFocusOutlineOffset:o.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:o.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:o.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:o.extend("--ftds-chip-small-icon-size","",l.iconSize1),neutralBackgroundColor:o.extend("--ftds-chip-neutral-background-color","",d.backgroundGlobalOnSurface),neutralColor:o.extend("--ftds-chip-neutral-color","",d.contentGlobalSecondary),neutralIconColor:o.extend("--ftds-chip-neutral-icon-color","",d.contentGlobalSecondary),neutralBorderColor:o.extend("--ftds-chip-neutral-border-color","",d.borderGlobalSubtle),infoBackgroundColor:o.extend("--ftds-chip-info-background-color","",d.backgroundInfoSubtle),infoColor:o.extend("--ftds-chip-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-chip-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-chip-info-border-color","",d.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-chip-success-background-color","",d.backgroundSuccessSubtle),successColor:o.extend("--ftds-chip-success-color","",d.contentSuccessPrimary),successIconColor:o.extend("--ftds-chip-success-icon-color","",d.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-chip-success-border-color","",d.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-chip-warning-background-color","",d.backgroundWarningSubtle),warningColor:o.extend("--ftds-chip-warning-color","",d.contentWarningPrimary),warningIconColor:o.extend("--ftds-chip-warning-icon-color","",d.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-chip-warning-border-color","",d.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-chip-error-background-color","",d.backgroundErrorSubtle),errorColor:o.extend("--ftds-chip-error-color","",d.contentErrorPrimary),errorIconColor:o.extend("--ftds-chip-error-icon-color","",d.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-chip-error-border-color","",d.borderErrorSubtle)};var nh={brandHoverOpacity:o.extend("--ftds-link-brand-hover-opacity","",l.opacity80),brandHoverColor:o.extend("--ftds-link-brand-hover-color","",d.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ftds-link-brand-focus-focus-ring-color","",d.borderActionFocusRing),brandFocusColor:o.extend("--ftds-link-brand-focus-color","",d.contentActionPrimary),brandDefaultColor:o.extend("--ftds-link-brand-default-color","",d.contentActionPrimary),brandActiveColor:o.extend("--ftds-link-brand-active-color","",d.contentActionPrimary),infoHoverOpacity:o.extend("--ftds-link-info-hover-opacity","",l.opacity80),infoHoverColor:o.extend("--ftds-link-info-hover-color","",d.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ftds-link-info-focus-focus-ring-color","",d.borderActionFocusRing),infoFocusColor:o.extend("--ftds-link-info-focus-color","",d.contentInfoPrimary),infoDefaultColor:o.extend("--ftds-link-info-default-color","",d.contentInfoPrimary),infoActiveColor:o.extend("--ftds-link-info-active-color","",d.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ftds-link-neutral-focus-focus-ring-color","",d.borderActionFocusRing),neutralFocusColor:o.extend("--ftds-link-neutral-focus-color","",d.contentActionPrimary),neutralDefaultColor:o.extend("--ftds-link-neutral-default-color","",d.contentGlobalPrimary),neutralHoverColor:o.extend("--ftds-link-neutral-hover-color","",d.contentActionPrimary),neutralActiveColor:o.extend("--ftds-link-neutral-active-color","",d.contentActionPrimary),neutralVisitedColor:o.extend("--ftds-link-neutral-visited-color","",l.colorBrand100)};var dh={iconSize:o.extend("--ftds-banner-icon-size","",l.iconSize5),borderWidth:o.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:o.extend("--ftds-banner-left-padding","",l.spacing6),rightPadding:o.extend("--ftds-banner-right-padding","",l.spacing6),verticalPadding:o.extend("--ftds-banner-vertical-padding","",l.spacing6),horizontalSideGap:o.extend("--ftds-banner-horizontal-side-gap","",l.spacing6),horizontalMobileGap:o.extend("--ftds-banner-horizontal-mobile-gap","",l.spacing4),verticalMobileGap:o.extend("--ftds-banner-vertical-mobile-gap","",l.spacing6),horizontalMiddleGap:o.extend("--ftds-banner-horizontal-middle-gap","",l.spacing20),infoBackgroundColor:o.extend("--ftds-banner-info-background-color","",d.backgroundInfoSubtle),infoColor:o.extend("--ftds-banner-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-banner-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-banner-info-border-color","",d.borderInfoSubtle)};var gh={horizontalPadding:o.extend("--ftds-badge-horizontal-padding","",l.spacing1),verticalPadding:o.extend("--ftds-badge-vertical-padding","",l.spacing1),borderRadius:o.extend("--ftds-badge-border-radius","",l.borderRadiusPill),color:o.extend("--ftds-badge-color","",d.contentGlobalOnColor),backgroundColor:o.extend("--ftds-badge-background-color","",d.contentActionPrimary)};var vh={horizontalGap:o.extend("--ftds-title-breadcrumb-horizontal-gap","",l.spacing1),currentColor:o.extend("--ftds-title-breadcrumb-current-color","",d.contentGlobalPrimary),previousNonClickableColor:o.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",d.contentGlobalSecondary),iconColor:o.extend("--ftds-title-breadcrumb-icon-color","",d.contentGlobalSubtle)};var Eh={parentHorizontalPadding:o.extend("--ftds-page-header-parent-horizontal-padding","",l.spacing6),parentTopPadding:o.extend("--ftds-page-header-parent-top-padding","",l.spacing4),parentBottomPadding:o.extend("--ftds-page-header-parent-bottom-padding","",l.spacing6),parentHelpLeftMargin:o.extend("--ftds-page-header-parent-help-left-margin","",l.spacing1),parentTitleColor:o.extend("--ftds-page-header-parent-title-color","",d.contentGlobalPrimary),parentSubtitleColor:o.extend("--ftds-page-header-parent-subtitle-color","",d.contentGlobalSecondary),parentChipLeftMargin:o.extend("--ftds-page-header-parent-chip-left-margin","",l.spacing4),parentVerticalGap:o.extend("--ftds-page-header-parent-vertical-gap","",l.spacing2),parentButtonsGroupHorizontalGap:o.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",l.spacing4),parentButtonsGroupVerticalGap:o.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",l.spacing4),parentChipsGroupHorizontalGap:o.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",l.spacing2),parentChipsGroupVerticalGap:o.extend("--ftds-page-header-parent-chips-group-vertical-gap","",l.spacing2),childHorizontalPadding:o.extend("--ftds-page-header-child-horizontal-padding","",l.spacing6),childTopPadding:o.extend("--ftds-page-header-child-top-padding","",l.spacing2),childBottomPadding:o.extend("--ftds-page-header-child-bottom-padding","",l.spacing2),childHelpLeftMargin:o.extend("--ftds-page-header-child-help-left-margin","",l.spacing1),childChipLeftMargin:o.extend("--ftds-page-header-child-chip-left-margin","",l.spacing4),childVerticalGap:o.extend("--ftds-page-header-child-vertical-gap","",l.spacing2),childMinHeight:o.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:o.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",l.spacing4),childButtonsGroupVerticalGap:o.extend("--ftds-page-header-child-buttons-group-vertical-gap","",l.spacing4),childChipsGroupHorizontalGap:o.extend("--ftds-page-header-child-chips-group-horizontal-gap","",l.spacing2),childChipsGroupVerticalGap:o.extend("--ftds-page-header-child-chips-group-vertical-gap","",l.spacing2),backgroundColor:o.extend("--ftds-page-header-background-color","",l.colorWhite),bottomBorderColor:o.extend("--ftds-page-header-bottom-border-color","",d.borderGlobalSubtle),bottomBorderWidth:o.create("--ftds-page-header-bottom-border-width","","SIZE","1px")};var _h={horizontalPadding:o.extend("--ftds-page-footer-horizontal-padding","",l.spacing6),verticalPadding:o.extend("--ftds-page-footer-vertical-padding","",l.spacing2),verticalGap:o.extend("--ftds-page-footer-vertical-gap","",l.spacing2),minHeight:o.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:o.extend("--ftds-page-footer-background-color","",l.colorWhite),topBorderColor:o.extend("--ftds-page-footer-top-border-color","",d.borderGlobalSubtle),topBorderWidth:o.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:o.extend("--ftds-page-footer-buttons-group-gap","",l.spacing4)};var Ph={contentHorizontalPadding:o.extend("--ftds-page-layout-content-horizontal-padding","",l.spacing6),contentVerticalPadding:o.extend("--ftds-page-layout-content-vertical-padding","",l.spacing6)};var Fh={smallContainerTargetWidth:o.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:o.extend("--ftds-modal-small-container-margin","",l.spacing6),mediumContainerTargetWidth:o.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:o.extend("--ftds-modal-medium-container-margin","",l.spacing6),largeContainerTargetWidth:o.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:o.extend("--ftds-modal-large-container-margin","",l.spacing6),overlayBackgroundColor:o.extend("--ftds-modal-overlay-background-color","",l.colorGray700),overlayOpacity:o.extend("--ftds-modal-overlay-opacity","",l.opacity40),shadow:o.extend("--ftds-modal-shadow","",l.shadowElevation03),bodyBackgroundColor:o.extend("--ftds-modal-body-background-color","",l.colorWhite),bodyColor:o.extend("--ftds-modal-body-color","",d.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ftds-modal-body-horizontal-padding","",l.spacing6),bodyVerticalPadding:o.extend("--ftds-modal-body-vertical-padding","",l.spacing6),bodyVerticalGap:o.extend("--ftds-modal-body-vertical-gap","",l.spacing6),headerBackgroundColor:o.extend("--ftds-modal-header-background-color","",d.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-modal-header-border-color","",d.borderGlobalSubtle),headerColor:o.extend("--ftds-modal-header-color","",d.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ftds-modal-header-leading-icon-color","",d.contentGlobalPrimary),headerVerticalPadding:o.extend("--ftds-modal-header-vertical-padding","",l.spacing1),headerRightPadding:o.extend("--ftds-modal-header-right-padding","",l.spacing1),headerLeftPadding:o.extend("--ftds-modal-header-left-padding","",l.spacing6),headerGap:o.extend("--ftds-modal-header-gap","",l.spacing2),headerBorderBottomWidth:o.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:o.extend("--ftds-modal-border-radius","",l.borderRadiusM)};var Gh={overlayOpacity:o.extend("--ftds-drawer-overlay-opacity","",l.opacity40),shadow:o.extend("--ftds-drawer-shadow","",l.shadowElevation03),bodyColor:o.extend("--ftds-drawer-body-color","",d.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ftds-drawer-body-horizontal-padding","",l.spacing6),bodyVerticalPadding:o.extend("--ftds-drawer-body-vertical-padding","",l.spacing6),bodyGap:o.extend("--ftds-drawer-body-gap","",l.spacing6),bodyBackgroundColor:o.extend("--ftds-drawer-body-background-color","",l.colorWhite),headerBackgroundColor:o.extend("--ftds-drawer-header-background-color","",d.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-drawer-header-border-color","",d.borderGlobalSubtle),headerColor:o.extend("--ftds-drawer-header-color","",d.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ftds-drawer-header-trailing-icon-color","",d.contentGlobalSecondary),headerHeight:o.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ftds-drawer-header-horizontal-padding","",l.spacing2),headerBorderWidth:o.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ftds-drawer-header-gap","",l.spacing3),buttonsBarBackgroundColor:o.extend("--ftds-drawer-buttons-bar-background-color","",d.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ftds-drawer-buttons-bar-border-color","",d.borderGlobalSubtle),buttonsBarColor:o.extend("--ftds-drawer-buttons-bar-color","",d.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ftds-drawer-buttons-bar-horizontal-padding","",l.spacing6),buttonsBarVerticalPadding:o.extend("--ftds-drawer-buttons-bar-vertical-padding","",l.spacing4),buttonsBarGap:o.extend("--ftds-drawer-buttons-bar-gap","",l.spacing3),buttonsBarBorderWidth:o.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:o.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:o.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:o.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:o.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:o.extend("--ftds-drawer-overlay-background-color","",l.colorGray700)};var qh={offBorderBottomWidth:o.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:o.extend("--ftds-tabs-off-hover-state-layer-opacity","",l.opacity8),offDefaultStateLayerOpacity:o.extend("--ftds-tabs-off-default-state-layer-opacity","",l.opacity0),offFocusStateLayerOpacity:o.extend("--ftds-tabs-off-focus-state-layer-opacity","",l.opacity8),offDisabledComponentOpacity:o.extend("--ftds-tabs-off-disabled-component-opacity","",l.opacity40),offColor:o.extend("--ftds-tabs-off-color","",d.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-tabs-off-state-layer-color","",d.contentGlobalSubtle),offBorderBottomColor:o.extend("--ftds-tabs-off-border-bottom-color","",d.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:o.extend("--ftds-tabs-top-left-border-radius","",l.borderRadiusS),topRightBorderRadius:o.extend("--ftds-tabs-top-right-border-radius","",l.borderRadiusS),withLabelHorizontalPadding:o.extend("--ftds-tabs-with-label-horizontal-padding","",l.spacing4),withLabelVerticalPadding:o.extend("--ftds-tabs-with-label-vertical-padding","",l.spacing3),horizontalGap:o.extend("--ftds-tabs-horizontal-gap","",l.spacing1),verticalGap:o.extend("--ftds-tabs-vertical-gap","",l.spacing1),onHoverStateLayerOpacity:o.extend("--ftds-tabs-on-hover-state-layer-opacity","",l.opacity16),onDefaultStateLayerOpacity:o.extend("--ftds-tabs-on-default-state-layer-opacity","",l.opacity8),onFocusStateLayerOpacity:o.extend("--ftds-tabs-on-focus-state-layer-opacity","",l.opacity16),onActiveStateLayerOpacity:o.extend("--ftds-tabs-on-active-state-layer-opacity","",l.opacity24),onColor:o.extend("--ftds-tabs-on-color","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-tabs-on-state-layer-color","",d.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ftds-tabs-on-active-tab-indicator-color","",d.contentActionPrimary),iconOnlyHorizontalPadding:o.extend("--ftds-tabs-icon-only-horizontal-padding","",l.spacing4),iconOnlyVerticalPadding:o.extend("--ftds-tabs-icon-only-vertical-padding","",l.spacing4),alertTopPadding:o.extend("--ftds-tabs-alert-top-padding","",l.spacing1),alertRightPadding:o.extend("--ftds-tabs-alert-right-padding","",l.spacing05),focusOutlineWidth:o.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-tabs-focus-focus-ring-color","",d.borderActionFocusRing)};var eg={largeFieldHorizontalPadding:o.extend("--ftds-text-input-large-field-horizontal-padding","",l.spacing4),largeFieldHorizontalGap:o.extend("--ftds-text-input-large-field-horizontal-gap","",l.spacing3),largeFieldVerticalGap:o.extend("--ftds-text-input-large-field-vertical-gap","",l.spacing05),largeFieldHeight:o.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ftds-text-input-large-field-icon-size","",l.iconSize3),mediumFieldHorizontalPadding:o.extend("--ftds-text-input-medium-field-horizontal-padding","",l.spacing4),mediumFieldHorizontalGap:o.extend("--ftds-text-input-medium-field-horizontal-gap","",l.spacing3),mediumFieldVerticalGap:o.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ftds-text-input-medium-field-icon-size","",l.iconSize3),helperHorizontalPadding:o.extend("--ftds-text-input-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:o.extend("--ftds-text-input-helper-horizontal-gap","",l.spacing1),helperIconSize:o.extend("--ftds-text-input-helper-icon-size","",l.iconSize2),borderRadius:o.extend("--ftds-text-input-border-radius","",l.borderRadiusS),backgroundColor:o.extend("--ftds-text-input-background-color","",l.colorWhite),contentValueColor:o.extend("--ftds-text-input-content-value-color","",d.contentGlobalPrimary),trailingIconColor:o.extend("--ftds-text-input-trailing-icon-color","",d.contentGlobalSubtle),labelColor:o.extend("--ftds-text-input-label-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-text-input-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-text-input-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-text-input-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-text-input-error-helper-text-color","",d.contentErrorPrimary),errorHelperIconColor:o.extend("--ftds-text-input-error-helper-icon-color","",d.contentErrorIconOnly),warningBorderColor:o.extend("--ftds-text-input-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-text-input-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-text-input-warning-helper-icon-color","",d.contentWarningIconOnly),warningBorderWidth:o.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:o.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-text-input-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-text-input-disabled-component-opacity","",l.opacity40)};var ng={backgroundColor:o.extend("--ftds-text-area-background-color","",l.colorWhite),contentValueColor:o.extend("--ftds-text-area-content-value-color","",d.contentGlobalPrimary),labelColor:o.extend("--ftds-text-area-label-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-text-area-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-text-area-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-text-area-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-text-area-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-text-area-error-helper-text-color","",d.contentErrorPrimary),errorHelperIconColor:o.extend("--ftds-text-area-error-helper-icon-color","",d.contentErrorIconOnly),focusFocusRingColor:o.extend("--ftds-text-area-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ftds-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-text-area-disabled-component-opacity","",l.opacity40),fieldHorizontalLeftPadding:o.extend("--ftds-text-area-field-horizontal-left-padding","",l.spacing4),fieldHorizontalGap:o.extend("--ftds-text-area-field-horizontal-gap","",l.spacing3),fieldVerticalGap:o.extend("--ftds-text-area-field-vertical-gap","",l.spacing05),fieldMinHeight:o.create("--ftds-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:o.extend("--ftds-text-area-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:o.extend("--ftds-text-area-helper-horizontal-gap","",l.spacing1),helperIconSize:o.extend("--ftds-text-area-helper-icon-size","",l.iconSize2),borderRadius:o.extend("--ftds-text-area-border-radius","",l.borderRadiusS)};var dg={height:o.create("--ftds-floating-menu-height","","SIZE","50px"),horizontalPadding:o.extend("--ftds-floating-menu-horizontal-padding","",l.spacing4),offIconColor:o.extend("--ftds-floating-menu-off-icon-color","",d.contentGlobalPrimary),offColor:o.extend("--ftds-floating-menu-off-color","",d.contentGlobalPrimary),onColor:o.extend("--ftds-floating-menu-on-color","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-floating-menu-on-state-layer-color","",d.contentActionPrimary),gap:o.extend("--ftds-floating-menu-gap","",l.spacing3),focusFocusRingColor:o.extend("--ftds-floating-menu-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ftds-floating-menu-focus-state-layer-opacity","",l.opacity8),hoverStateLayerOpacity:o.extend("--ftds-floating-menu-hover-state-layer-opacity","",l.opacity8),activeStateLayerOpacity:o.extend("--ftds-floating-menu-active-state-layer-opacity","",l.opacity16),disabledComponentOpacity:o.extend("--ftds-floating-menu-disabled-component-opacity","",l.opacity40),iconSize:o.extend("--ftds-floating-menu-icon-size","",l.iconSize3),backgroundColor:o.extend("--ftds-floating-menu-background-color","",d.backgroundGlobalOnSurface),shadow:o.extend("--ftds-floating-menu-shadow","",l.shadowElevation02)};var gg={largeFieldHorizontalPadding:o.extend("--ftds-combobox-single-select-large-field-horizontal-padding","",l.spacing4),largeFieldHorizontalGap:o.extend("--ftds-combobox-single-select-large-field-horizontal-gap","",l.spacing3),largeFieldVerticalGap:o.extend("--ftds-combobox-single-select-large-field-vertical-gap","",l.spacing05),largeFieldHeight:o.create("--ftds-combobox-single-select-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ftds-combobox-single-select-large-field-icon-size","",l.iconSize3),mediumFieldHorizontalPadding:o.extend("--ftds-combobox-single-select-medium-field-horizontal-padding","",l.spacing4),mediumFieldHorizontalGap:o.extend("--ftds-combobox-single-select-medium-field-horizontal-gap","",l.spacing3),mediumFieldVerticalGap:o.create("--ftds-combobox-single-select-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ftds-combobox-single-select-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ftds-combobox-single-select-medium-field-icon-size","",l.iconSize3),helperHorizontalPadding:o.extend("--ftds-combobox-single-select-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:o.extend("--ftds-combobox-single-select-helper-horizontal-gap","",l.spacing1),helperVerticalGap:o.extend("--ftds-combobox-single-select-helper-vertical-gap","",l.spacing1),helperIconSize:o.extend("--ftds-combobox-single-select-helper-icon-size","",l.iconSize2),menuVerticalGap:o.extend("--ftds-combobox-single-select-menu-vertical-gap","",l.spacing2),borderRadius:o.extend("--ftds-combobox-single-select-border-radius","",l.borderRadiusS),backgroundColor:o.extend("--ftds-combobox-single-select-background-color","",l.colorWhite),labelColor:o.extend("--ftds-combobox-single-select-label-color","",d.contentGlobalSubtle),contentValueColor:o.extend("--ftds-combobox-single-select-content-value-color","",d.contentGlobalPrimary),trailingIconColor:o.extend("--ftds-combobox-single-select-trailing-icon-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-combobox-single-select-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-combobox-single-select-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-combobox-single-select-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-combobox-single-select-error-helper-text-color","",d.contentErrorPrimary),warningBorderWidth:o.create("--ftds-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ftds-combobox-single-select-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-combobox-single-select-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-combobox-single-select-warning-helper-icon-color","",d.contentWarningIconOnly),focusOutlineWidth:o.create("--ftds-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-combobox-single-select-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-combobox-single-select-disabled-component-opacity","",l.opacity40)};var vg={backgroundColor:o.extend("--ftds-combobox-multi-select-background-color","",l.colorWhite),labelColor:o.extend("--ftds-combobox-multi-select-label-color","",d.contentGlobalSubtle),trailingIconColor:o.extend("--ftds-combobox-multi-select-trailing-icon-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-combobox-multi-select-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-combobox-multi-select-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:o.extend("--ftds-combobox-multi-select-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-combobox-multi-select-error-helper-text-color","",d.contentErrorPrimary),errorHelperIcon:o.extend("--ftds-combobox-multi-select-error-helper-icon","",d.contentErrorIconOnly),errorBorderWidth:o.create("--ftds-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ftds-combobox-multi-select-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-combobox-multi-select-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-combobox-multi-select-warning-helper-icon-color","",d.contentWarningIconOnly),warningBorderWidth:o.create("--ftds-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-combobox-multi-select-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ftds-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-combobox-multi-select-disabled-component-opacity","",l.opacity40),helperHorizontalPadding:o.extend("--ftds-combobox-multi-select-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:o.extend("--ftds-combobox-multi-select-helper-horizontal-gap","",l.spacing1),helperVerticalGap:o.extend("--ftds-combobox-multi-select-helper-vertical-gap","",l.spacing1),helperIconSize:o.extend("--ftds-combobox-multi-select-helper-icon-size","",l.iconSize2),fieldHorizontalPadding:o.extend("--ftds-combobox-multi-select-field-horizontal-padding","",l.spacing4),fieldHorizontalGap:o.extend("--ftds-combobox-multi-select-field-horizontal-gap","",l.spacing3),fieldVerticalGap:o.extend("--ftds-combobox-multi-select-field-vertical-gap","",l.spacing05),fieldIconSize:o.extend("--ftds-combobox-multi-select-field-icon-size","",l.iconSize3),fieldMaxHeight:o.create("--ftds-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:o.extend("--ftds-combobox-multi-select-content-values-horizontal-gap","",l.spacing1),contentValuesVerticalGap:o.extend("--ftds-combobox-multi-select-content-values-vertical-gap","",l.spacing1),borderRadius:o.extend("--ftds-combobox-multi-select-border-radius","",l.borderRadiusS)};var Eg={backgroundColor:o.extend("--ftds-popover-background-color","",d.backgroundGlobalOnSurface),horizontalPadding:o.extend("--ftds-popover-horizontal-padding","",l.spacing6),verticalPadding:o.extend("--ftds-popover-vertical-padding","",l.spacing6),titleColor:o.extend("--ftds-popover-title-color","",d.contentGlobalPrimary),bodyColor:o.extend("--ftds-popover-body-color","",d.contentGlobalSecondary),gap:o.extend("--ftds-popover-gap","",l.spacing2),borderRadius:o.extend("--ftds-popover-border-radius","",l.borderRadiusM),shadow:o.extend("--ftds-popover-shadow","",l.shadowElevation02),maxWidth:o.create("--ftds-popover-max-width","","SIZE","440px"),contentSectionVerticalGap:o.extend("--ftds-popover-content-section-vertical-gap","",l.spacing2),multiSectionVerticalGap:o.extend("--ftds-popover-multi-section-vertical-gap","",l.spacing6)};var _g={hoverStateLayerOpacity:o.extend("--ftds-collapsible-hover-state-layer-opacity","",l.opacity8),focusStateLayerOpacity:o.extend("--ftds-collapsible-focus-state-layer-opacity","",l.opacity8),focusOutlineWidth:o.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ftds-collapsible-focus-focus-ring-color","",d.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ftds-collapsible-active-state-layer-opacity","",l.opacity16),disabledComponentOpacity:o.extend("--ftds-collapsible-disabled-component-opacity","",l.opacity40),horizontalPadding:o.extend("--ftds-collapsible-horizontal-padding","",l.spacing4),verticalPadding:o.extend("--ftds-collapsible-vertical-padding","",l.spacing3),color:o.extend("--ftds-collapsible-color","",d.contentGlobalPrimary),stateLayerColor:o.extend("--ftds-collapsible-state-layer-color","",d.contentGlobalPrimary),backgroundColor:o.extend("--ftds-collapsible-background-color","",d.backgroundGlobalOnSurface),borderColor:o.extend("--ftds-collapsible-border-color","",d.borderGlobalSubtle),iconSize:o.extend("--ftds-collapsible-icon-size","",l.iconSize3)};var Dg={groupHorizontalPadding:o.extend("--ftds-switch-group-horizontal-padding","",l.spacing1),groupVerticalPadding:o.extend("--ftds-switch-group-vertical-padding","",l.spacing1),groupGap:o.extend("--ftds-switch-group-gap","",l.spacing1),groupBackgroundColor:o.extend("--ftds-switch-group-background-color","",d.backgroundGlobalSurface),groupBorderColor:o.extend("--ftds-switch-group-border-color","",d.borderGlobalSubtle),groupBorderRadius:o.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ftds-switch-label-horizontal-padding","",l.spacing2),labelVerticalPadding:o.extend("--ftds-switch-label-vertical-padding","",l.spacing1),offHoverStateLayerOpacity:o.extend("--ftds-switch-off-hover-state-layer-opacity","",l.opacity8),offFocusStateLayerOpacity:o.extend("--ftds-switch-off-focus-state-layer-opacity","",l.opacity8),offActiveStateLayerOpacity:o.extend("--ftds-switch-off-active-state-layer-opacity","",l.opacity16),offDisabledComponentOpacity:o.extend("--ftds-switch-off-disabled-component-opacity","",l.opacity40),offColor:o.extend("--ftds-switch-off-color","",d.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-switch-off-state-layer-color","",d.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ftds-switch-on-hover-state-layer-opacity","",l.opacity8),onFocusStateLayerOpacity:o.extend("--ftds-switch-on-focus-state-layer-opacity","",l.opacity8),onActiveStateLayerOpacity:o.extend("--ftds-switch-on-active-state-layer-opacity","",l.opacity16),onDisabledComponentOpacity:o.extend("--ftds-switch-on-disabled-component-opacity","",l.opacity40),onColor:o.extend("--ftds-switch-on-color","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-switch-on-state-layer-color","",d.contentActionPrimary),iconHorizontalPadding:o.extend("--ftds-switch-icon-horizontal-padding","",l.spacing1),iconVerticalPadding:o.extend("--ftds-switch-icon-vertical-padding","",l.spacing1),focusOutlineWidth:o.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-switch-focus-focus-ring-color","",d.borderActionFocusRing),optionBorderRadius:o.extend("--ftds-switch-option-border-radius","",l.borderRadiusS)};var Fg={color1Light:o.extend("--ftds-chart-1-light","for area color charts",l.colorBrand40),color1Base:o.extend("--ftds-chart-1-base","for line charts",l.colorBrand0),color2Light:o.extend("--ftds-chart-2-light","for area color charts",l.colorYellow60),color2Base:o.extend("--ftds-chart-2-base","for line charts",l.colorYellow100),color3Light:o.extend("--ftds-chart-3-light","",l.colorUltramarine40),color3Base:o.extend("--ftds-chart-3-base","",l.colorUltramarine70),color4Light:o.extend("--ftds-chart-4-light","",l.colorCyan50),color4Base:o.extend("--ftds-chart-4-base","",l.colorCyan100),color5Light:o.extend("--ftds-chart-5-light","",l.colorRed40),color5Base:o.extend("--ftds-chart-5-base","",l.colorRed60),color6Light:o.extend("--ftds-chart-6-light","",l.colorGreen40),color6Base:o.extend("--ftds-chart-6-base","",l.colorGreen70),color7Light:o.extend("--ftds-chart-7-light","",l.colorOrange70),color7Base:o.extend("--ftds-chart-7-base","",l.colorOrange100),color8Light:o.extend("--ftds-chart-8-light","",l.colorAvocado70),color8Base:o.extend("--ftds-chart-8-base","",l.colorAvocado200),color9Light:o.extend("--ftds-chart-9-light","",l.colorBrown50),color9Base:o.extend("--ftds-chart-9-base","",l.colorBrown200),color10Light:o.extend("--ftds-chart-10-light","",l.colorGray50),color10Base:o.extend("--ftds-chart-10-base","",l.colorGray80),monochrome10:o.extend("--ftds-chart-monochrome-10","",l.colorBrand10),monochrome20:o.extend("--ftds-chart-monochrome-20","",l.colorBrand20),monochrome30:o.extend("--ftds-chart-monochrome-30","",l.colorBrand40),monochrome40:o.extend("--ftds-chart-monochrome-40","",l.colorBrand60),monochrome50:o.extend("--ftds-chart-monochrome-50","",l.colorBrand0),monochrome60:o.extend("--ftds-chart-monochrome-60","",l.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-popular-old-background-color","",l.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-popular-new-background-color","",l.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-unpopular-old-background-color","",l.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-unpopular-new-background-color","",l.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-color","",l.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:o.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-opacity","",l.opacity48),scatterplotDatapointInitialHoverBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-initial-hover-background-color","",l.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-selected-default-background-color","",l.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-selected-hover-background-color","",l.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-color","",l.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:o.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-opacity","",l.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-unselected-hover-background-color","",l.colorGray70),scatterplotDatapointHoverHoverRingColor:o.extend("--ftds-chart-scatterplot-datapoint-hover-hover-ring-color","",l.colorCyan200)};var Wg={color1IconColor:o.extend("--ftds-page-designer-1-icon-color","for area color charts",l.colorCyan0),color1ToolbarColor:o.extend("--ftds-page-designer-1-toolbar-color","for area color charts",l.colorCyan0),color2IconColor:o.extend("--ftds-page-designer-2-icon-color","for area color charts",l.colorBrand0),color2ToolbarColor:o.extend("--ftds-page-designer-2-toolbar-color","for area color charts",l.colorBrand0),color3IconColor:o.extend("--ftds-page-designer-3-icon-color","for area color charts",l.colorYellow200),color3ToolbarColor:o.extend("--ftds-page-designer-3-toolbar-color","for area color charts",l.colorYellow200),color4IconColor:o.extend("--ftds-page-designer-4-icon-color","for area color charts",l.colorUltramarine50),color4ToolbarColor:o.extend("--ftds-page-designer-4-toolbar-color","for area color charts",l.colorUltramarine50),color5IconColor:o.extend("--ftds-page-designer-5-icon-color","for area color charts",l.colorGreen0),color5ToolbarColor:o.extend("--ftds-page-designer-5-toolbar-color","for area color charts",l.colorGreen0),color6IconColor:o.extend("--ftds-page-designer-6-icon-color","for area color charts",l.colorOrange0),color6ToolbarColor:o.extend("--ftds-page-designer-6-toolbar-color","for area color charts",l.colorOrange0),color7IconColor:o.extend("--ftds-page-designer-7-icon-color","for area color charts",l.colorAvocado200),color7ToolbarColor:o.extend("--ftds-page-designer-7-toolbar-color","for area color charts",l.colorAvocado200),color8IconColor:o.extend("--ftds-page-designer-8-icon-color","for area color charts",l.colorBrown0),color8ToolbarColor:o.extend("--ftds-page-designer-8-toolbar-color","for area color charts",l.colorBrown0)};var Zg={borderWidth:o.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ftds-notice-horizontal-padding","",l.spacing3),verticalPadding:o.extend("--ftds-notice-vertical-padding","",l.spacing2),borderRadius:o.extend("--ftds-notice-border-radius","",l.borderRadiusS),gap:o.extend("--ftds-notice-gap","",l.spacing2),iconSize:o.extend("--ftds-notice-icon-size","",l.iconSize3),infoBackgroundColor:o.extend("--ftds-notice-info-background-color","",d.backgroundInfoSubtle),infoBorderColor:o.extend("--ftds-notice-info-border-color","",d.borderInfoSubtle),infoColor:o.extend("--ftds-notice-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-notice-info-icon-color","",d.contentInfoIconOnly),warningBackgroundColor:o.extend("--ftds-notice-warning-background-color","",d.backgroundWarningSubtle),warningBorderColor:o.extend("--ftds-notice-warning-border-color","",d.borderWarningSubtle),warningColor:o.extend("--ftds-notice-warning-color","",d.contentWarningPrimary),warningIconColor:o.extend("--ftds-notice-warning-icon-color","",d.contentWarningIconOnly),errorBackgroundColor:o.extend("--ftds-notice-error-background-color","",d.backgroundErrorSubtle),errorBorderColor:o.extend("--ftds-notice-error-border-color","",d.borderErrorSubtle),errorColor:o.extend("--ftds-notice-error-color","",d.contentErrorPrimary),errorIconColor:o.extend("--ftds-notice-error-icon-color","",d.contentErrorIconOnly),successBackgroundColor:o.extend("--ftds-notice-success-background-color","",d.backgroundSuccessSubtle),successBorderColor:o.extend("--ftds-notice-success-border-color","",d.borderSuccessSubtle),successColor:o.extend("--ftds-notice-success-color","",d.contentSuccessPrimary),successIconColor:o.extend("--ftds-notice-success-icon-color","",d.contentSuccessIconOnly),denseHorizontalPadding:o.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:o.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:o.extend("--ftds-notice-dense-gap","",l.spacing1),denseIconSize:o.extend("--ftds-notice-dense-icon-size","",l.iconSize2),denseBorderWidth:o.create("--ftds-notice-dense-border-width","","SIZE","0")};var Jg={offHoverStateLayerOpacity:o.extend("--ftds-toggle-off-hover-state-layer-opacity","",l.opacity16),offFocusStateLayerOpacity:o.extend("--ftds-toggle-off-focus-state-layer-opacity","",l.opacity16),offActiveStateLayerOpacity:o.extend("--ftds-toggle-off-active-state-layer-opacity","",l.opacity24),offDisabledComponentOpacity:o.extend("--ftds-toggle-off-disabled-component-opacity","",l.opacity40),offBackgroundColor:o.extend("--ftds-toggle-off-background-color","",d.contentGlobalSubtle),offIconColor:o.extend("--ftds-toggle-off-icon-color","",d.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-toggle-off-state-layer-color","",d.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ftds-toggle-on-hover-state-layer-opacity","",l.opacity16),onFocusStateLayerOpacity:o.extend("--ftds-toggle-on-focus-state-layer-opacity","",l.opacity16),onActiveStateLayerOpacity:o.extend("--ftds-toggle-on-active-state-layer-opacity","",l.opacity24),onDisabledComponentOpacity:o.extend("--ftds-toggle-on-disabled-component-opacity","",l.opacity40),onBackgroundColor:o.extend("--ftds-toggle-on-background-color","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-toggle-on-state-layer-color","",d.contentActionPrimary),onIconColor:o.extend("--ftds-toggle-on-icon-color","",d.contentActionPrimary),color:o.extend("--ftds-toggle-color","",d.contentGlobalPrimary),focusFocusRingColor:o.extend("--ftds-toggle-focus-focus-ring-color","",d.borderActionFocusRing),gap:o.extend("--ftds-toggle-gap","",l.spacing3)};var iy={iconSize:o.extend("--ftds-notification-icon-size","",l.iconSize4),leftPadding:o.extend("--ftds-notification-left-padding","",l.spacing5),rightPadding:o.extend("--ftds-notification-right-padding","",l.spacing4),verticalPadding:o.extend("--ftds-notification-vertical-padding","",l.spacing3),infoBackgroundColor:o.extend("--ftds-notification-info-background-color","",d.backgroundInfoSubtle),infoColor:o.extend("--ftds-notification-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-notification-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-notification-info-border-color","",d.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-notification-success-background-color","",d.backgroundSuccessSubtle),successColor:o.extend("--ftds-notification-success-color","",d.contentSuccessPrimary),successIconColor:o.extend("--ftds-notification-success-icon-color","",d.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-notification-success-border-color","",d.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-notification-warning-background-color","",d.backgroundWarningSubtle),warningColor:o.extend("--ftds-notification-warning-color","",d.contentWarningPrimary),warningIconColor:o.extend("--ftds-notification-warning-icon-color","",d.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-notification-warning-border-color","",d.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-notification-error-background-color","",d.backgroundErrorSubtle),errorColor:o.extend("--ftds-notification-error-color","",d.contentErrorPrimary),errorIconColor:o.extend("--ftds-notification-error-icon-color","",d.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-notification-error-border-color","",d.borderErrorSubtle),borderRadius:o.extend("--ftds-notification-border-radius","",l.borderRadiusPill),borderWidth:o.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ftds-notification-leading-gap","",l.spacing2),trailingGap:o.extend("--ftds-notification-trailing-gap","",l.spacing8)};var cy={horizontalPadding:o.extend("--ftds-tooltip-horizontal-padding","",l.spacing2),verticalPadding:o.extend("--ftds-tooltip-vertical-padding","",l.spacing2),borderRadius:o.extend("--ftds-tooltip-border-radius","",l.borderRadiusS),color:o.extend("--ftds-tooltip-color","",d.contentGlobalOnColor),backgroundColor:o.extend("--ftds-tooltip-background-color","",d.contentGlobalPrimary),backgroundOpacity:o.extend("--ftds-tooltip-background-opacity","",l.opacity80),shadow:o.extend("--ftds-tooltip-shadow","",l.shadowElevation02),maxWidth:o.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ftds-tooltip-gap","",l.spacing05)};var hy={verticalPadding:o.extend("--ftds-reorderable-list-vertical-padding","",l.spacing4),gap:o.extend("--ftds-reorderable-list-gap","",l.spacing1),borderRadius:o.extend("--ftds-reorderable-list-border-radius","",l.borderRadiusM),reorderableItemTitleMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",l.spacing6),reorderableItemTitleColor:o.extend("--ftds-reorderable-list-reorderable-item-title-color","",d.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",l.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:o.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",l.spacing2),reorderableItemRightButtonsGroupHorizontalGap:o.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",l.spacing2),reorderableItemUsersCountColor:o.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",d.contentGlobalPrimary),reorderableItemUsersCountMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",l.spacing6),reorderableItemBackgroundColor:o.extend("--ftds-reorderable-list-reorderable-item-background-color","",d.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",l.spacing1),reorderableItemWarningMessageColor:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",d.contentWarningPrimary),reorderableItemWarningMessageIconColor:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",d.contentWarningIconOnly),reorderableItemGripColor:o.extend("--ftds-reorderable-list-reorderable-item-grip-color","",d.contentGlobalSecondary),reorderableItemGripOpacity:o.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",l.opacity48),boxShadow:o.extend("--ftds-reorderable-list-box-shadow","",l.shadowElevation01),borderWidth:o.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:o.extend("--ftds-reorderable-list-reorderable-items-gap","",l.spacing2),leftPadding:o.extend("--ftds-reorderable-list-left-padding","",l.spacing2),rightPadding:o.extend("--ftds-reorderable-list-right-padding","",l.spacing6),borderColor:o.extend("--ftds-reorderable-list-border-color","",d.borderGlobalPrimary),backgroundColor:o.extend("--ftds-reorderable-list-background-color","",d.backgroundGlobalOnSurfaceDark)};var by={menuHorizontalPadding:o.extend("--ftds-date-range-picker-menu-horizontal-padding","",l.spacing4),menuVerticalPadding:o.extend("--ftds-date-range-picker-menu-vertical-padding","",l.spacing4),menuVerticalGap:o.extend("--ftds-date-range-picker-menu-vertical-gap","",l.spacing4),menuButtonsVerticalGap:o.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",l.spacing2)};var Zo;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(Zo||(Zo={}));var Mr;(function(t){t.large="large",t.medium="medium",t.small="small"})(Mr||(Mr={}));var Br=m(M());function As(t,e){let r=Ko[t];return Br.css`
116
+ ${e?(0,Br.unsafeCSS)(e):Br.css`.ft-typography--${(0,Br.unsafeCSS)(t)}`} {
117
117
  font-family: ${r.fontFamily};
118
118
  font-size: ${r.fontSize};
119
119
  font-weight: ${r.fontWeight};
@@ -122,7 +122,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
122
122
  text-decoration: ${r.textDecoration};
123
123
  text-transform: ${r.textCase};
124
124
  }
125
- `}var As=R.FtCssVariableFactory.extend("--ft-typography-font-family","",R.designSystemVariables.titleFont),$t=R.FtCssVariableFactory.extend("--ft-typography-font-family","",R.designSystemVariables.contentFont),L={fontFamily:$t,fontSize:R.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:R.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:R.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:R.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:R.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Qt={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-title-font-family","",As),fontSize:R.FtCssVariableFactory.extend("--ft-typography-title-font-size","",L.fontSize,"20px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",L.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",L.letterSpacing,"0.15px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-title-line-height","",L.lineHeight,"1.2"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",L.textTransform,"inherit")},Jt={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",As),fontSize:R.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",L.fontSize,"14px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",L.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",L.letterSpacing,"0.105px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",L.lineHeight,"1.7"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",L.textTransform,"inherit")},Br={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",$t),fontSize:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",L.fontSize,"16px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",L.fontWeight,"600"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",L.letterSpacing,"0.144px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",L.lineHeight,"1.5"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",L.textTransform,"inherit")},Fr={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",$t),fontSize:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",L.fontSize,"14px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",L.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",L.letterSpacing,"0.098px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",L.lineHeight,"1.7"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",L.textTransform,"inherit")},ct={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",$t),fontSize:R.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",L.fontSize,"16px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",L.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",L.letterSpacing,"0.496px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",L.lineHeight,"1.5"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",L.textTransform,"inherit")},Ur={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",$t),fontSize:R.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",L.fontSize,"14px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",L.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",L.letterSpacing,"0.252px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",L.lineHeight,"1.4"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",L.textTransform,"inherit")},Ie={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",$t),fontSize:R.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",L.fontSize,"12px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",L.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",L.letterSpacing,"0.396px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",L.lineHeight,"1.33"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",L.textTransform,"inherit")},zr={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",$t),fontSize:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",L.fontSize,"10px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",L.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",L.letterSpacing,"0.33px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",L.lineHeight,"1.6"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",L.textTransform,"inherit")},Hr={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",$t),fontSize:R.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",L.fontSize,"10px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",L.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",L.letterSpacing,"1.5px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",L.lineHeight,"1.6"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",L.textTransform,"uppercase")},Ve={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-button-font-family","",$t),fontSize:R.FtCssVariableFactory.extend("--ft-typography-button-font-size","",L.fontSize,"14px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",L.fontWeight,"600"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",L.letterSpacing,"1.246px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-button-line-height","",L.lineHeight,"1.15"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",L.textTransform,"uppercase")},Rs=dt.css`
125
+ `}var Rs=R.FtCssVariableFactory.extend("--ft-typography-font-family","",R.designSystemVariables.titleFont),Mt=R.FtCssVariableFactory.extend("--ft-typography-font-family","",R.designSystemVariables.contentFont),L={fontFamily:Mt,fontSize:R.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:R.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:R.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:R.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:R.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Qt={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Rs),fontSize:R.FtCssVariableFactory.extend("--ft-typography-title-font-size","",L.fontSize,"20px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",L.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",L.letterSpacing,"0.15px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-title-line-height","",L.lineHeight,"1.2"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",L.textTransform,"inherit")},Jt={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Rs),fontSize:R.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",L.fontSize,"14px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",L.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",L.letterSpacing,"0.105px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",L.lineHeight,"1.7"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",L.textTransform,"inherit")},Fr={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Mt),fontSize:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",L.fontSize,"16px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",L.fontWeight,"600"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",L.letterSpacing,"0.144px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",L.lineHeight,"1.5"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",L.textTransform,"inherit")},Ur={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Mt),fontSize:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",L.fontSize,"14px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",L.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",L.letterSpacing,"0.098px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",L.lineHeight,"1.7"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",L.textTransform,"inherit")},ct={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Mt),fontSize:R.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",L.fontSize,"16px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",L.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",L.letterSpacing,"0.496px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",L.lineHeight,"1.5"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",L.textTransform,"inherit")},zr={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Mt),fontSize:R.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",L.fontSize,"14px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",L.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",L.letterSpacing,"0.252px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",L.lineHeight,"1.4"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",L.textTransform,"inherit")},Ie={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Mt),fontSize:R.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",L.fontSize,"12px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",L.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",L.letterSpacing,"0.396px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",L.lineHeight,"1.33"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",L.textTransform,"inherit")},Hr={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Mt),fontSize:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",L.fontSize,"10px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",L.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",L.letterSpacing,"0.33px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",L.lineHeight,"1.6"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",L.textTransform,"inherit")},Wr={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Mt),fontSize:R.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",L.fontSize,"10px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",L.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",L.letterSpacing,"1.5px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",L.lineHeight,"1.6"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",L.textTransform,"uppercase")},Ve={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Mt),fontSize:R.FtCssVariableFactory.extend("--ft-typography-button-font-size","",L.fontSize,"14px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",L.fontWeight,"600"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",L.letterSpacing,"1.246px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-button-line-height","",L.lineHeight,"1.15"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",L.textTransform,"uppercase")},Ts=dt.css`
126
126
  .ft-typography--title {
127
127
  font-family: ${Qt.fontFamily};
128
128
  font-size: ${Qt.fontSize};
@@ -131,7 +131,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
131
131
  line-height: ${Qt.lineHeight};
132
132
  text-transform: ${Qt.textTransform};
133
133
  }
134
- `,Ts=dt.css`
134
+ `,Is=dt.css`
135
135
  .ft-typography--title-dense {
136
136
  font-family: ${Jt.fontFamily};
137
137
  font-size: ${Jt.fontSize};
@@ -140,17 +140,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
140
140
  line-height: ${Jt.lineHeight};
141
141
  text-transform: ${Jt.textTransform};
142
142
  }
143
- `,Is=dt.css`
144
- .ft-typography--subtitle1 {
145
- font-family: ${Br.fontFamily};
146
- font-size: ${Br.fontSize};
147
- font-weight: ${Br.fontWeight};
148
- letter-spacing: ${Br.letterSpacing};
149
- line-height: ${Br.lineHeight};
150
- text-transform: ${Br.textTransform};
151
- }
152
143
  `,_s=dt.css`
153
- .ft-typography--subtitle2 {
144
+ .ft-typography--subtitle1 {
154
145
  font-family: ${Fr.fontFamily};
155
146
  font-size: ${Fr.fontSize};
156
147
  font-weight: ${Fr.fontWeight};
@@ -158,8 +149,17 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
158
149
  line-height: ${Fr.lineHeight};
159
150
  text-transform: ${Fr.textTransform};
160
151
  }
152
+ `,Ns=dt.css`
153
+ .ft-typography--subtitle2 {
154
+ font-family: ${Ur.fontFamily};
155
+ font-size: ${Ur.fontSize};
156
+ font-weight: ${Ur.fontWeight};
157
+ letter-spacing: ${Ur.letterSpacing};
158
+ line-height: ${Ur.lineHeight};
159
+ text-transform: ${Ur.textTransform};
160
+ }
161
161
 
162
- `,Wr=dt.css`
162
+ `,Gr=dt.css`
163
163
  .ft-typography--body1 {
164
164
  font-family: ${ct.fontFamily};
165
165
  font-size: ${ct.fontSize};
@@ -168,16 +168,16 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
168
168
  line-height: ${ct.lineHeight};
169
169
  text-transform: ${ct.textTransform};
170
170
  }
171
- `,Ns=dt.css`
171
+ `,Ls=dt.css`
172
172
  .ft-typography--body2 {
173
- font-family: ${Ur.fontFamily};
174
- font-size: ${Ur.fontSize};
175
- font-weight: ${Ur.fontWeight};
176
- letter-spacing: ${Ur.letterSpacing};
177
- line-height: ${Ur.lineHeight};
178
- text-transform: ${Ur.textTransform};
173
+ font-family: ${zr.fontFamily};
174
+ font-size: ${zr.fontSize};
175
+ font-weight: ${zr.fontWeight};
176
+ letter-spacing: ${zr.letterSpacing};
177
+ line-height: ${zr.lineHeight};
178
+ text-transform: ${zr.textTransform};
179
179
  }
180
- `,Gr=dt.css`
180
+ `,Vr=dt.css`
181
181
  .ft-typography--caption {
182
182
  font-family: ${Ie.fontFamily};
183
183
  font-size: ${Ie.fontSize};
@@ -186,17 +186,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
186
186
  line-height: ${Ie.lineHeight};
187
187
  text-transform: ${Ie.textTransform};
188
188
  }
189
- `,Ls=dt.css`
190
- .ft-typography--breadcrumb {
191
- font-family: ${zr.fontFamily};
192
- font-size: ${zr.fontSize};
193
- font-weight: ${zr.fontWeight};
194
- letter-spacing: ${zr.letterSpacing};
195
- line-height: ${zr.lineHeight};
196
- text-transform: ${zr.textTransform};
197
- }
198
189
  `,ks=dt.css`
199
- .ft-typography--overline {
190
+ .ft-typography--breadcrumb {
200
191
  font-family: ${Hr.fontFamily};
201
192
  font-size: ${Hr.fontSize};
202
193
  font-weight: ${Hr.fontWeight};
@@ -205,6 +196,15 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
205
196
  text-transform: ${Hr.textTransform};
206
197
  }
207
198
  `,Ps=dt.css`
199
+ .ft-typography--overline {
200
+ font-family: ${Wr.fontFamily};
201
+ font-size: ${Wr.fontSize};
202
+ font-weight: ${Wr.fontWeight};
203
+ letter-spacing: ${Wr.letterSpacing};
204
+ line-height: ${Wr.lineHeight};
205
+ text-transform: ${Wr.textTransform};
206
+ }
207
+ `,Ds=dt.css`
208
208
  .ft-typography--button {
209
209
  font-family: ${Ve.fontFamily};
210
210
  font-size: ${Ve.fontSize};
@@ -213,11 +213,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
213
213
  line-height: ${Ve.lineHeight};
214
214
  text-transform: ${Ve.textTransform};
215
215
  }
216
- `,Ds=dt.css`
216
+ `,$s=dt.css`
217
217
  .ft-typography {
218
218
  vertical-align: inherit;
219
219
  }
220
- `,$s=[Object.keys(jo).map(t=>Es(t))];var Ms=m(M()),mo=m(T()),ne={color:mo.FtCssVariableFactory.extend("--ft-loader-color","",mo.designSystemVariables.colorPrimary),size:mo.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Bs=Ms.css`
220
+ `,Ms=[Object.keys(Ko).map(t=>As(t))];var Bs=m(M()),xo=m(T()),ne={color:xo.FtCssVariableFactory.extend("--ft-loader-color","",xo.designSystemVariables.colorPrimary),size:xo.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Fs=Bs.css`
221
221
  :host {
222
222
  line-height: 0;
223
223
  }
@@ -286,7 +286,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
286
286
  transform: translate(calc(0.35 * ${ne.size}), 0);
287
287
  }
288
288
  }
289
- `;var Fs=m(M()),bt=m(T()),Oe={size:bt.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:bt.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",bt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:bt.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",bt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:bt.FtCssVariableFactory.extend("--ft-icon-material-font-family","",bt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:bt.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Us=[Fs.css`
289
+ `;var Us=m(M()),bt=m(T()),Oe={size:bt.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:bt.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",bt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:bt.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",bt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:bt.FtCssVariableFactory.extend("--ft-icon-material-font-family","",bt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:bt.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},zs=[Us.css`
290
290
  :host, i.ft-icon {
291
291
  display: inline-flex;
292
292
  align-items: center;
@@ -334,7 +334,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
334
334
  .ft-icon--material {
335
335
  font-family: ${Oe.materialFontFamily}, "Material Icons", sans-serif;
336
336
  }
337
- `,bt.noTextSelect];var zs=F.FtCssVariableFactory.extend("--ft-button-color","",F.designSystemVariables.colorPrimary),ee={backgroundColor:F.FtCssVariableFactory.extend("--ft-button-background-color","",F.designSystemVariables.colorSurface),borderRadius:F.FtCssVariableFactory.extend("--ft-button-border-radius","",F.designSystemVariables.borderRadiusL),color:zs,fontSize:F.FtCssVariableFactory.extend("--ft-button-font-size","",Ve.fontSize),iconSize:F.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:F.FtCssVariableFactory.extend("--ft-button-ripple-color","",zs),verticalPadding:F.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:F.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:F.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:F.FtCssVariableFactory.external(F.designSystemVariables.colorOpacityDisabled,"Design system")},Hs=F.FtCssVariableFactory.extend("--ft-button-primary-color","",F.FtCssVariableFactory.extend("--ft-button-color","",F.designSystemVariables.colorOnPrimary)),xn={backgroundColor:F.FtCssVariableFactory.extend("--ft-button-primary-background-color","",F.FtCssVariableFactory.extend("--ft-button-background-color","",F.designSystemVariables.colorPrimary)),color:Hs,rippleColor:F.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Hs)},It={borderRadius:F.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",F.FtCssVariableFactory.extend("--ft-button-border-radius","",F.designSystemVariables.borderRadiusM)),verticalPadding:F.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:F.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:F.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Gs=[Ws.css`
337
+ `,bt.noTextSelect];var Hs=F.FtCssVariableFactory.extend("--ft-button-color","",F.designSystemVariables.colorPrimary),ee={backgroundColor:F.FtCssVariableFactory.extend("--ft-button-background-color","",F.designSystemVariables.colorSurface),borderRadius:F.FtCssVariableFactory.extend("--ft-button-border-radius","",F.designSystemVariables.borderRadiusL),color:Hs,fontSize:F.FtCssVariableFactory.extend("--ft-button-font-size","",Ve.fontSize),iconSize:F.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:F.FtCssVariableFactory.extend("--ft-button-ripple-color","",Hs),verticalPadding:F.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:F.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:F.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:F.FtCssVariableFactory.external(F.designSystemVariables.colorOpacityDisabled,"Design system")},Ws=F.FtCssVariableFactory.extend("--ft-button-primary-color","",F.FtCssVariableFactory.extend("--ft-button-color","",F.designSystemVariables.colorOnPrimary)),vn={backgroundColor:F.FtCssVariableFactory.extend("--ft-button-primary-background-color","",F.FtCssVariableFactory.extend("--ft-button-background-color","",F.designSystemVariables.colorPrimary)),color:Ws,rippleColor:F.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Ws)},It={borderRadius:F.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",F.FtCssVariableFactory.extend("--ft-button-border-radius","",F.designSystemVariables.borderRadiusM)),verticalPadding:F.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:F.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:F.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Vs=[Gs.css`
338
338
  :host {
339
339
  display: inline-block;
340
340
  max-width: 100%;
@@ -378,7 +378,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
378
378
  --button-internal-line-height: max(calc(${ee.fontSize} + 2px), ${ee.iconSize});
379
379
  --button-internal-color: ${ee.color};
380
380
  ${(0,F.setVariable)(Oe.size,ee.iconSize)};
381
- ${(0,F.setVariable)(w.color,ee.rippleColor)};
381
+ ${(0,F.setVariable)(O.color,ee.rippleColor)};
382
382
 
383
383
  border-radius: ${ee.borderRadius};
384
384
  padding: ${ee.verticalPadding} ${ee.horizontalPadding};
@@ -420,9 +420,9 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
420
420
  }
421
421
 
422
422
  .ft-button.ft-button--primary {
423
- background-color: ${xn.backgroundColor};
424
- --button-internal-color: ${xn.color};
425
- ${(0,F.setVariable)(w.color,xn.rippleColor)};
423
+ background-color: ${vn.backgroundColor};
424
+ --button-internal-color: ${vn.color};
425
+ ${(0,F.setVariable)(O.color,vn.rippleColor)};
426
426
  }
427
427
 
428
428
  .ft-button:focus {
@@ -471,7 +471,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
471
471
  ${(0,F.setVariable)(ne.size,ee.iconSize)};
472
472
  ${(0,F.setVariable)(ne.color,"var(--button-internal-color)")};
473
473
  }
474
- `,F.noTextSelect];var de=m(T());var ue={textColor:de.FtCssVariableFactory.extend("--ft-switch-text-color","",de.designSystemVariables.colorOnSurfaceHigh),backgroundColor:de.FtCssVariableFactory.extend("--ft-switch-background-color","",de.designSystemVariables.colorSurface),selectedTextColor:de.FtCssVariableFactory.extend("--ft-switch-selected-text-color","",de.designSystemVariables.colorPrimary),selectedBackgroundColor:de.FtCssVariableFactory.extend("--ft-switch-selected-background-color","",de.designSystemVariables.colorPrimary),borderColor:de.FtCssVariableFactory.extend("--ft-switch-border-color","",de.designSystemVariables.colorOutline),borderRadius:de.FtCssVariableFactory.extend("--ft-switch-border-radius","",de.designSystemVariables.borderRadiusL),fontSize:de.FtCssVariableFactory.extend("--ft-switch-font-size","",Ve.fontSize),iconSize:de.FtCssVariableFactory.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:de.FtCssVariableFactory.extend("--ft-switch-text-color","",de.designSystemVariables.colorOnSurfaceMedium),rippleColor:de.FtCssVariableFactory.extend("--ft-switch-ripple-color","",de.designSystemVariables.colorPrimary),outlineColor:de.FtCssVariableFactory.extend("--ft-switch-outline-color","",de.designSystemVariables.colorPrimary)};var _t={feedbackInputMinWidth:J.FtCssVariableFactory.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:J.FtCssVariableFactory.external(J.designSystemVariables.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:J.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-color","",J.designSystemVariables.colorOnPrimary),sendFeedbackBackgroundColor:J.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-background-color","",J.designSystemVariables.colorPrimary),filledRatingColor:J.FtCssVariableFactory.extend("--ft-reader-feedback-filled-rating-color","",J.designSystemVariables.colorPrimary),emptyRatingColor:J.FtCssVariableFactory.extend("--ft-reader-feedback-empty-rating-color","",J.designSystemVariables.colorOnSurfaceMedium),mainTitleFontSize:J.FtCssVariableFactory.external(Qt.fontSize,"Typography"),sectionTitleFontSize:J.FtCssVariableFactory.external(Jt.fontSize,"Typography"),starsBackgroundColor:J.FtCssVariableFactory.create("--ft-reader-feedback-stars-background-color","","COLOR",J.designSystemVariables.colorSurface)},js=Vs.css`
474
+ `,F.noTextSelect];var de=m(T());var ue={textColor:de.FtCssVariableFactory.extend("--ft-switch-text-color","",de.designSystemVariables.colorOnSurfaceHigh),backgroundColor:de.FtCssVariableFactory.extend("--ft-switch-background-color","",de.designSystemVariables.colorSurface),selectedTextColor:de.FtCssVariableFactory.extend("--ft-switch-selected-text-color","",de.designSystemVariables.colorPrimary),selectedBackgroundColor:de.FtCssVariableFactory.extend("--ft-switch-selected-background-color","",de.designSystemVariables.colorPrimary),borderColor:de.FtCssVariableFactory.extend("--ft-switch-border-color","",de.designSystemVariables.colorOutline),borderRadius:de.FtCssVariableFactory.extend("--ft-switch-border-radius","",de.designSystemVariables.borderRadiusL),fontSize:de.FtCssVariableFactory.extend("--ft-switch-font-size","",Ve.fontSize),iconSize:de.FtCssVariableFactory.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:de.FtCssVariableFactory.extend("--ft-switch-text-color","",de.designSystemVariables.colorOnSurfaceMedium),rippleColor:de.FtCssVariableFactory.extend("--ft-switch-ripple-color","",de.designSystemVariables.colorPrimary),outlineColor:de.FtCssVariableFactory.extend("--ft-switch-outline-color","",de.designSystemVariables.colorPrimary)};var _t={feedbackInputMinWidth:J.FtCssVariableFactory.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:J.FtCssVariableFactory.external(J.designSystemVariables.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:J.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-color","",J.designSystemVariables.colorOnPrimary),sendFeedbackBackgroundColor:J.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-background-color","",J.designSystemVariables.colorPrimary),filledRatingColor:J.FtCssVariableFactory.extend("--ft-reader-feedback-filled-rating-color","",J.designSystemVariables.colorPrimary),emptyRatingColor:J.FtCssVariableFactory.extend("--ft-reader-feedback-empty-rating-color","",J.designSystemVariables.colorOnSurfaceMedium),mainTitleFontSize:J.FtCssVariableFactory.external(Qt.fontSize,"Typography"),sectionTitleFontSize:J.FtCssVariableFactory.external(Jt.fontSize,"Typography"),starsBackgroundColor:J.FtCssVariableFactory.create("--ft-reader-feedback-stars-background-color","","COLOR",J.designSystemVariables.colorSurface)},Ks=js.css`
475
475
  .ft-reader-feedback {
476
476
  box-sizing: border-box;
477
477
  display: flex;
@@ -527,28 +527,28 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
527
527
  [part="buttons-container"] {
528
528
  align-self: flex-end;
529
529
  }
530
- `;var $u=m(Zs(),1);var qs;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(qs||(qs={}));var Ys;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Ys||(Ys={}));var Xs;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Xs||(Xs={}));var Qs;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Qs||(Qs={}));var Js;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Js||(Js={}));var el;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(el||(el={}));var tl;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__DISPLAY="TOPIC__DISPLAY",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(tl||(tl={}));var rl;(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"})(rl||(rl={}));var ol;(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",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT"})(ol||(ol={}));var il;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(il||(il={}));var nl;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(nl||(nl={}));var al;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(al||(al={}));var xe;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(xe||(xe={}));var sl;(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"})(sl||(sl={}));var ll;(function(t){t.ASC="ASC",t.DESC="DESC"})(ll||(ll={}));var cl;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(cl||(cl={}));var dl;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(dl||(dl={}));var ul;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(ul||(ul={}));var pl;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(pl||(pl={}));var fl;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(fl||(fl={}));var hl;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(hl||(hl={}));var gl;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(gl||(gl={}));var yl;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(yl||(yl={}));var ml;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(ml||(ml={}));var te;(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.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_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.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(te||(te={}));var rt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(rt||(rt={}));var bl;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(bl||(bl={}));var xl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(xl||(xl={}));var vl;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(vl||(vl={}));var Sl;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Sl||(Sl={}));var Du={[te.PERSONAL_BOOK_SHARE_USER]:[te.PERSONAL_BOOK_USER],[te.HTML_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.PDF_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.KHUB_ADMIN]:[te.CONTENT_PUBLISHER],[te.ADMIN]:[te.KHUB_ADMIN,te.USERS_ADMIN,te.PORTAL_ADMIN],[te.GENERATIVE_AI_EXPORT_USER]:[te.GENERATIVE_AI_USER]};function Cl(t,e){return t===e||(Du[t]??[]).some(r=>Cl(r,e))}function Mt(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>Cl(i,e))}var Ul=m(T());var An=globalThis,Yo=An.trustedTypes,Ol=Yo?Yo.createPolicy("lit-html",{createHTML:t=>t}):void 0,Il="$lit$",tr=`lit$${Math.random().toFixed(9).slice(2)}$`,_l="?"+tr,Mu=`<${_l}>`,Or=document,Xo=()=>Or.createComment(""),xo=t=>t===null||typeof t!="object"&&typeof t!="function",Rn=Array.isArray,Bu=t=>Rn(t)||typeof t?.[Symbol.iterator]=="function",vn=`[
531
- \f\r]`,bo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,wl=/-->/g,El=/>/g,Sr=RegExp(`>|${vn}(?:([^\\s"'>=/]+)(${vn}*=${vn}*(?:[^
532
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Al=/'/g,Rl=/"/g,Nl=/^(?:script|style|textarea|title)$/i,Tn=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Ll=Tn(1),kl=Tn(2),Pl=Tn(3),vo=Symbol.for("lit-noChange"),ve=Symbol.for("lit-nothing"),Tl=new WeakMap,Cr=Or.createTreeWalker(Or,129);function Dl(t,e){if(!Rn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ol!==void 0?Ol.createHTML(e):e}var Fu=(t,e)=>{let r=t.length-1,i=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=bo;for(let c=0;c<r;c++){let u=t[c],p,h,g=-1,b=0;for(;b<u.length&&(s.lastIndex=b,h=s.exec(u),h!==null);)b=s.lastIndex,s===bo?h[1]==="!--"?s=wl:h[1]!==void 0?s=El:h[2]!==void 0?(Nl.test(h[2])&&(n=RegExp("</"+h[2],"g")),s=Sr):h[3]!==void 0&&(s=Sr):s===Sr?h[0]===">"?(s=n??bo,g=-1):h[1]===void 0?g=-2:(g=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?Sr:h[3]==='"'?Rl:Al):s===Rl||s===Al?s=Sr:s===wl||s===El?s=bo:(s=Sr,n=void 0);let x=s===Sr&&t[c+1].startsWith("/>")?" ":"";a+=s===bo?u+Mu:g>=0?(i.push(p),u.slice(0,g)+Il+u.slice(g)+tr+x):u+tr+(g===-2?c:x)}return[Dl(t,a+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},So=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let a=0,s=0,c=e.length-1,u=this.parts,[p,h]=Fu(e,r);if(this.el=t.createElement(p,i),Cr.currentNode=this.el.content,r===2||r===3){let g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(n=Cr.nextNode())!==null&&u.length<c;){if(n.nodeType===1){if(n.hasAttributes())for(let g of n.getAttributeNames())if(g.endsWith(Il)){let b=h[s++],x=n.getAttribute(g).split(tr),S=/([.?@])?(.*)/.exec(b);u.push({type:1,index:a,name:S[2],strings:x,ctor:S[1]==="."?Cn:S[1]==="?"?On:S[1]==="@"?wn:Kr}),n.removeAttribute(g)}else g.startsWith(tr)&&(u.push({type:6,index:a}),n.removeAttribute(g));if(Nl.test(n.tagName)){let g=n.textContent.split(tr),b=g.length-1;if(b>0){n.textContent=Yo?Yo.emptyScript:"";for(let x=0;x<b;x++)n.append(g[x],Xo()),Cr.nextNode(),u.push({type:2,index:++a});n.append(g[b],Xo())}}}else if(n.nodeType===8)if(n.data===_l)u.push({type:2,index:a});else{let g=-1;for(;(g=n.data.indexOf(tr,g+1))!==-1;)u.push({type:7,index:a}),g+=tr.length-1}a++}}static createElement(e,r){let i=Or.createElement("template");return i.innerHTML=e,i}};function jr(t,e,r=t,i){if(e===vo)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,a=xo(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,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=jr(t,n._$AS(t,e.values),n,i)),e}var Sn=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:i}=this._$AD,n=(e?.creationScope??Or).importNode(r,!0);Cr.currentNode=n;let a=Cr.nextNode(),s=0,c=0,u=i[0];for(;u!==void 0;){if(s===u.index){let p;u.type===2?p=new Qo(a,a.nextSibling,this,e):u.type===1?p=new u.ctor(a,u.name,u.strings,this,e):u.type===6&&(p=new En(a,this,e)),this._$AV.push(p),u=i[++c]}s!==u?.index&&(a=Cr.nextNode(),s++)}return Cr.currentNode=Or,n}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},Qo=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=ve,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,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=jr(this,e,r),xo(e)?e===ve||e==null||e===""?(this._$AH!==ve&&this._$AR(),this._$AH=ve):e!==this._$AH&&e!==vo&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Bu(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==ve&&xo(this._$AH)?this._$AA.nextSibling.data=e:this.T(Or.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=So.createElement(Dl(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new Sn(n,this),s=a.u(this.options);a.p(r),this.T(s),this._$AH=a}}_$AC(e){let r=Tl.get(e.strings);return r===void 0&&Tl.set(e.strings,r=new So(e)),r}k(e){Rn(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let a of e)n===r.length?r.push(i=new t(this.O(Xo()),this.O(Xo()),this,this.options)):i=r[n],i._$AI(a),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let i=e.nextSibling;e.remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Kr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,a){this.type=1,this._$AH=ve,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ve}_$AI(e,r=this,i,n){let a=this.strings,s=!1;if(a===void 0)e=jr(this,e,r,0),s=!xo(e)||e!==this._$AH&&e!==vo,s&&(this._$AH=e);else{let c=e,u,p;for(e=a[0],u=0;u<a.length-1;u++)p=jr(this,c[i+u],r,u),p===vo&&(p=this._$AH[u]),s||=!xo(p)||p!==this._$AH[u],p===ve?e=ve:e!==ve&&(e+=(p??"")+a[u+1]),this._$AH[u]=p}s&&!n&&this.j(e)}j(e){e===ve?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Cn=class extends Kr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ve?void 0:e}},On=class extends Kr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ve)}},wn=class extends Kr{constructor(e,r,i,n,a){super(e,r,i,n,a),this.type=5}_$AI(e,r=this){if((e=jr(this,e,r,0)??ve)===vo)return;let i=this._$AH,n=e===ve&&i!==ve||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==ve&&(i===ve||n);n&&this.element.removeEventListener(this.name,this,i),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)}},En=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){jr(this,e)}};var Uu=An.litHtmlPolyfillSupport;Uu?.(So,Qo),(An.litHtmlVersions??=[]).push("3.3.0");var Ml=Symbol.for(""),zu=t=>{if(t?.r===Ml)return t?._$litStatic$},In=t=>({_$litStatic$:t,r:Ml});var $l=new Map,_n=t=>(e,...r)=>{let i=r.length,n,a,s=[],c=[],u,p=0,h=!1;for(;p<i;){for(u=e[p];p<i&&(a=r[p],(n=zu(a))!==void 0);)u+=n+e[++p],h=!0;p!==i&&c.push(a),s.push(u),p++}if(p===i&&s.push(e[i]),h){let g=s.join("$$lit$$");(e=$l.get(g))===void 0&&(s.raw=s,$l.set(g,e=s)),r=c}return t(e,...r)},Nn=_n(Ll),ub=_n(kl),pb=_n(Pl);var Ln=m(Z()),Fl=m(T());var rr;(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"})(rr||(rr={}));var Bl=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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 Fl.FtLitElement{constructor(){super(...arguments),this.variant=rr.body1}render(){return this.element?Nn`
533
- <${In(this.element)}
530
+ `;var Mu=m(qs(),1);var Ys;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Ys||(Ys={}));var Xs;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Xs||(Xs={}));var Qs;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Qs||(Qs={}));var Js;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Js||(Js={}));var el;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(el||(el={}));var tl;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(tl||(tl={}));var rl;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__DISPLAY="TOPIC__DISPLAY",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(rl||(rl={}));var ol;(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"})(ol||(ol={}));var il;(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",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT"})(il||(il={}));var nl;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(nl||(nl={}));var al;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(al||(al={}));var sl;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(sl||(sl={}));var xe;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(xe||(xe={}));var ll;(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"})(ll||(ll={}));var cl;(function(t){t.ASC="ASC",t.DESC="DESC"})(cl||(cl={}));var dl;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(dl||(dl={}));var ul;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(ul||(ul={}));var pl;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(pl||(pl={}));var fl;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(fl||(fl={}));var hl;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(hl||(hl={}));var gl;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(gl||(gl={}));var yl;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(yl||(yl={}));var ml;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(ml||(ml={}));var bl;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(bl||(bl={}));var te;(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.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_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.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(te||(te={}));var rt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(rt||(rt={}));var xl;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(xl||(xl={}));var vl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(vl||(vl={}));var Sl;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(Sl||(Sl={}));var Cl;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Cl||(Cl={}));var $u={[te.PERSONAL_BOOK_SHARE_USER]:[te.PERSONAL_BOOK_USER],[te.HTML_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.PDF_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.KHUB_ADMIN]:[te.CONTENT_PUBLISHER],[te.ADMIN]:[te.KHUB_ADMIN,te.USERS_ADMIN,te.PORTAL_ADMIN],[te.GENERATIVE_AI_EXPORT_USER]:[te.GENERATIVE_AI_USER]};function Ol(t,e){return t===e||($u[t]??[]).some(r=>Ol(r,e))}function Bt(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>Ol(i,e))}var zl=m(T());var Rn=globalThis,Xo=Rn.trustedTypes,wl=Xo?Xo.createPolicy("lit-html",{createHTML:t=>t}):void 0,_l="$lit$",tr=`lit$${Math.random().toFixed(9).slice(2)}$`,Nl="?"+tr,Bu=`<${Nl}>`,Or=document,Qo=()=>Or.createComment(""),So=t=>t===null||typeof t!="object"&&typeof t!="function",Tn=Array.isArray,Fu=t=>Tn(t)||typeof t?.[Symbol.iterator]=="function",Sn=`[
531
+ \f\r]`,vo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,El=/-->/g,Al=/>/g,Sr=RegExp(`>|${Sn}(?:([^\\s"'>=/]+)(${Sn}*=${Sn}*(?:[^
532
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Rl=/'/g,Tl=/"/g,Ll=/^(?:script|style|textarea|title)$/i,In=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),kl=In(1),Pl=In(2),Dl=In(3),Co=Symbol.for("lit-noChange"),ve=Symbol.for("lit-nothing"),Il=new WeakMap,Cr=Or.createTreeWalker(Or,129);function $l(t,e){if(!Tn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return wl!==void 0?wl.createHTML(e):e}var Uu=(t,e)=>{let r=t.length-1,i=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=vo;for(let c=0;c<r;c++){let u=t[c],p,h,g=-1,b=0;for(;b<u.length&&(s.lastIndex=b,h=s.exec(u),h!==null);)b=s.lastIndex,s===vo?h[1]==="!--"?s=El:h[1]!==void 0?s=Al:h[2]!==void 0?(Ll.test(h[2])&&(n=RegExp("</"+h[2],"g")),s=Sr):h[3]!==void 0&&(s=Sr):s===Sr?h[0]===">"?(s=n??vo,g=-1):h[1]===void 0?g=-2:(g=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?Sr:h[3]==='"'?Tl:Rl):s===Tl||s===Rl?s=Sr:s===El||s===Al?s=vo:(s=Sr,n=void 0);let x=s===Sr&&t[c+1].startsWith("/>")?" ":"";a+=s===vo?u+Bu:g>=0?(i.push(p),u.slice(0,g)+_l+u.slice(g)+tr+x):u+tr+(g===-2?c:x)}return[$l(t,a+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},Oo=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let a=0,s=0,c=e.length-1,u=this.parts,[p,h]=Uu(e,r);if(this.el=t.createElement(p,i),Cr.currentNode=this.el.content,r===2||r===3){let g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(n=Cr.nextNode())!==null&&u.length<c;){if(n.nodeType===1){if(n.hasAttributes())for(let g of n.getAttributeNames())if(g.endsWith(_l)){let b=h[s++],x=n.getAttribute(g).split(tr),S=/([.?@])?(.*)/.exec(b);u.push({type:1,index:a,name:S[2],strings:x,ctor:S[1]==="."?On:S[1]==="?"?wn:S[1]==="@"?En:Zr}),n.removeAttribute(g)}else g.startsWith(tr)&&(u.push({type:6,index:a}),n.removeAttribute(g));if(Ll.test(n.tagName)){let g=n.textContent.split(tr),b=g.length-1;if(b>0){n.textContent=Xo?Xo.emptyScript:"";for(let x=0;x<b;x++)n.append(g[x],Qo()),Cr.nextNode(),u.push({type:2,index:++a});n.append(g[b],Qo())}}}else if(n.nodeType===8)if(n.data===Nl)u.push({type:2,index:a});else{let g=-1;for(;(g=n.data.indexOf(tr,g+1))!==-1;)u.push({type:7,index:a}),g+=tr.length-1}a++}}static createElement(e,r){let i=Or.createElement("template");return i.innerHTML=e,i}};function Kr(t,e,r=t,i){if(e===Co)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,a=So(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,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=Kr(t,n._$AS(t,e.values),n,i)),e}var Cn=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:i}=this._$AD,n=(e?.creationScope??Or).importNode(r,!0);Cr.currentNode=n;let a=Cr.nextNode(),s=0,c=0,u=i[0];for(;u!==void 0;){if(s===u.index){let p;u.type===2?p=new Jo(a,a.nextSibling,this,e):u.type===1?p=new u.ctor(a,u.name,u.strings,this,e):u.type===6&&(p=new An(a,this,e)),this._$AV.push(p),u=i[++c]}s!==u?.index&&(a=Cr.nextNode(),s++)}return Cr.currentNode=Or,n}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},Jo=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=ve,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,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=Kr(this,e,r),So(e)?e===ve||e==null||e===""?(this._$AH!==ve&&this._$AR(),this._$AH=ve):e!==this._$AH&&e!==Co&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Fu(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==ve&&So(this._$AH)?this._$AA.nextSibling.data=e:this.T(Or.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Oo.createElement($l(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new Cn(n,this),s=a.u(this.options);a.p(r),this.T(s),this._$AH=a}}_$AC(e){let r=Il.get(e.strings);return r===void 0&&Il.set(e.strings,r=new Oo(e)),r}k(e){Tn(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let a of e)n===r.length?r.push(i=new t(this.O(Qo()),this.O(Qo()),this,this.options)):i=r[n],i._$AI(a),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let i=e.nextSibling;e.remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Zr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,a){this.type=1,this._$AH=ve,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ve}_$AI(e,r=this,i,n){let a=this.strings,s=!1;if(a===void 0)e=Kr(this,e,r,0),s=!So(e)||e!==this._$AH&&e!==Co,s&&(this._$AH=e);else{let c=e,u,p;for(e=a[0],u=0;u<a.length-1;u++)p=Kr(this,c[i+u],r,u),p===Co&&(p=this._$AH[u]),s||=!So(p)||p!==this._$AH[u],p===ve?e=ve:e!==ve&&(e+=(p??"")+a[u+1]),this._$AH[u]=p}s&&!n&&this.j(e)}j(e){e===ve?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},On=class extends Zr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ve?void 0:e}},wn=class extends Zr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ve)}},En=class extends Zr{constructor(e,r,i,n,a){super(e,r,i,n,a),this.type=5}_$AI(e,r=this){if((e=Kr(this,e,r,0)??ve)===Co)return;let i=this._$AH,n=e===ve&&i!==ve||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==ve&&(i===ve||n);n&&this.element.removeEventListener(this.name,this,i),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)}},An=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Kr(this,e)}};var zu=Rn.litHtmlPolyfillSupport;zu?.(Oo,Jo),(Rn.litHtmlVersions??=[]).push("3.3.0");var Bl=Symbol.for(""),Hu=t=>{if(t?.r===Bl)return t?._$litStatic$},_n=t=>({_$litStatic$:t,r:Bl});var Ml=new Map,Nn=t=>(e,...r)=>{let i=r.length,n,a,s=[],c=[],u,p=0,h=!1;for(;p<i;){for(u=e[p];p<i&&(a=r[p],(n=Hu(a))!==void 0);)u+=n+e[++p],h=!0;p!==i&&c.push(a),s.push(u),p++}if(p===i&&s.push(e[i]),h){let g=s.join("$$lit$$");(e=Ml.get(g))===void 0&&(s.raw=s,Ml.set(g,e=s)),r=c}return t(e,...r)},Ln=Nn(kl),pb=Nn(Pl),fb=Nn(Dl);var kn=m(Z()),Ul=m(T());var rr;(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"})(rr||(rr={}));var Fl=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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 Ul.FtLitElement{constructor(){super(...arguments),this.variant=rr.body1}render(){return this.element?Ln`
533
+ <${_n(this.element)}
534
534
  part="text"
535
535
  class="ft-typography ft-typography--${this.variant}">
536
536
  <slot></slot>
537
- </${In(this.element)}>
538
- `:Nn`
537
+ </${_n(this.element)}>
538
+ `:Ln`
539
539
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
540
- `}};pe.styles=[Rs,Ts,Is,_s,Wr,Ns,Gr,Ls,ks,Ps,Ds,...$s];Bl([(0,Ln.property)()],pe.prototype,"element",void 0);Bl([(0,Ln.property)()],pe.prototype,"variant",void 0);(0,Ul.customElement)("ft-typography")(pe);var Kn=m(T());var ni=m(M()),Lt=m(Z()),Tc=m(Bt()),Wt=m(T());var Jr=m(M()),Je=m(Z()),eo=m(T());var Gl=m(T());var Hl=m(M()),ke=m(Z()),Wl=m(Bt()),Co=m(T());var Ye=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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},K=class extends Co.FtLitElement{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 Co.Debouncer(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 Co.Debouncer(10),this.moveRipple=e=>{var r,i;let{x:n,y:a}=this.getCoordinates(e),s=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(a!=null?a-s.y:s.height/2)},this.startPress=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 Hl.html`
540
+ `}};pe.styles=[Ts,Is,_s,Ns,Gr,Ls,Vr,ks,Ps,Ds,$s,...Ms];Fl([(0,kn.property)()],pe.prototype,"element",void 0);Fl([(0,kn.property)()],pe.prototype,"variant",void 0);(0,zl.customElement)("ft-typography")(pe);var Zn=m(T());var ai=m(M()),Lt=m(Z()),Ic=m(Ft()),Gt=m(T());var eo=m(M()),Je=m(Z()),to=m(T());var Vl=m(T());var Wl=m(M()),ke=m(Z()),Gl=m(Ft()),wo=m(T());var Ye=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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},K=class extends wo.FtLitElement{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 wo.Debouncer(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 wo.Debouncer(10),this.moveRipple=e=>{var r,i;let{x:n,y:a}=this.getCoordinates(e),s=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(a!=null?a-s.y:s.height/2)},this.startPress=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 Wl.html`
541
541
  <style>
542
542
  .ft-ripple .ft-ripple--effect {
543
543
  left: ${this.originX}px;
544
544
  top: ${this.originY}px;
545
545
  }
546
546
  </style>
547
- <div class="${(0,Wl.classMap)(e)}">
547
+ <div class="${(0,Gl.classMap)(e)}">
548
548
  <div class="ft-ripple--background"></div>
549
549
  <div class="ft-ripple--effect"></div>
550
550
  </div>
551
- `}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,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}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=(...c)=>u=>{c.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(u)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),a=c=>{["Enter"," "].includes(c.key)&&r("keyup")(c)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",i,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",i,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,i=e,n,a;return r.x!=null?{x:n,y:a}=r:i.touches!=null&&(n=i.touches[0].clientX,a=i.touches[0].clientY),{x:n,y:a}}isFocusVisible(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()}};K.elementDefinitions={};K.styles=es;Ye([(0,ke.property)({type:Boolean})],K.prototype,"primary",void 0);Ye([(0,ke.property)({type:Boolean})],K.prototype,"secondary",void 0);Ye([(0,ke.property)({type:Boolean})],K.prototype,"unbounded",void 0);Ye([(0,ke.property)({type:Boolean})],K.prototype,"activated",void 0);Ye([(0,ke.property)({type:Boolean})],K.prototype,"selected",void 0);Ye([(0,ke.property)({type:Boolean})],K.prototype,"disabled",void 0);Ye([(0,ke.state)()],K.prototype,"hovered",void 0);Ye([(0,ke.state)()],K.prototype,"focused",void 0);Ye([(0,ke.state)()],K.prototype,"pressed",void 0);Ye([(0,ke.state)()],K.prototype,"rippling",void 0);Ye([(0,ke.state)()],K.prototype,"originX",void 0);Ye([(0,ke.state)()],K.prototype,"originY",void 0);Ye([(0,ke.query)(".ft-ripple")],K.prototype,"ripple",void 0);Ye([(0,ke.query)(".ft-ripple--effect")],K.prototype,"rippleEffect",void 0);(0,Gl.customElement)("ft-ripple")(K);var Rc=m(Bt());var xc=m(T());var bc=m(M()),it=m(Z()),Qe=m(T());var Vl=m(M()),Ft=m(T()),Zr={distance:Ft.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Ft.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Ft.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:Ft.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:Ft.FtCssVariableFactory.external(Ft.designSystemVariables.borderRadiusS,"Design system"),maxWidth:Ft.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},jl=Vl.css`
551
+ `}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,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}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=(...c)=>u=>{c.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(u)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),a=c=>{["Enter"," "].includes(c.key)&&r("keyup")(c)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",i,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",i,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,i=e,n,a;return r.x!=null?{x:n,y:a}=r:i.touches!=null&&(n=i.touches[0].clientX,a=i.touches[0].clientY),{x:n,y:a}}isFocusVisible(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()}};K.elementDefinitions={};K.styles=ts;Ye([(0,ke.property)({type:Boolean})],K.prototype,"primary",void 0);Ye([(0,ke.property)({type:Boolean})],K.prototype,"secondary",void 0);Ye([(0,ke.property)({type:Boolean})],K.prototype,"unbounded",void 0);Ye([(0,ke.property)({type:Boolean})],K.prototype,"activated",void 0);Ye([(0,ke.property)({type:Boolean})],K.prototype,"selected",void 0);Ye([(0,ke.property)({type:Boolean})],K.prototype,"disabled",void 0);Ye([(0,ke.state)()],K.prototype,"hovered",void 0);Ye([(0,ke.state)()],K.prototype,"focused",void 0);Ye([(0,ke.state)()],K.prototype,"pressed",void 0);Ye([(0,ke.state)()],K.prototype,"rippling",void 0);Ye([(0,ke.state)()],K.prototype,"originX",void 0);Ye([(0,ke.state)()],K.prototype,"originY",void 0);Ye([(0,ke.query)(".ft-ripple")],K.prototype,"ripple",void 0);Ye([(0,ke.query)(".ft-ripple--effect")],K.prototype,"rippleEffect",void 0);(0,Vl.customElement)("ft-ripple")(K);var Tc=m(Ft());var vc=m(T());var xc=m(M()),it=m(Z()),Qe=m(T());var jl=m(M()),Ut=m(T()),qr={distance:Ut.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Ut.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Ut.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:Ut.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:Ut.FtCssVariableFactory.external(Ut.designSystemVariables.borderRadiusS,"Design system"),maxWidth:Ut.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Kl=jl.css`
552
552
  .ft-tooltip--container {
553
553
  display: block;
554
554
  }
@@ -563,21 +563,21 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
563
563
  box-sizing: border-box;
564
564
  overflow: hidden;
565
565
  width: max-content;
566
- max-width: ${Zr.maxWidth};
566
+ max-width: ${qr.maxWidth};
567
567
  text-align: center;
568
- padding: ${Zr.distance};
569
- z-index: ${Zr.zIndex};
568
+ padding: ${qr.distance};
569
+ z-index: ${qr.zIndex};
570
570
  }
571
571
 
572
572
  .ft-tooltip--content {
573
573
  padding: 4px 8px;
574
- border-radius: ${Zr.borderRadiusS};
575
- background-color: ${Zr.backgroundColor};
576
- color: ${Zr.color};
574
+ border-radius: ${qr.borderRadiusS};
575
+ background-color: ${qr.backgroundColor};
576
+ color: ${qr.color};
577
577
  position: relative;
578
578
  word-break: break-word;
579
579
  }
580
- `;var Zl=["top","right","bottom","left"],Kl=["start","end"],Pn=Zl.reduce((t,e)=>t.concat(e,e+"-"+Kl[0],e+"-"+Kl[1]),[]),ql=Math.min,Yl=Math.max;var Hu={left:"right",right:"left",bottom:"top",top:"bottom"},Wu={start:"end",end:"start"};function Dn(t,e,r){return Yl(t,ql(e,r))}function Jo(t,e){return typeof t=="function"?t(e):t}function qr(t){return t.split("-")[0]}function or(t){return t.split("-")[1]}function $n(t){return t==="x"?"y":"x"}function Mn(t){return t==="y"?"height":"width"}function ei(t){return["top","bottom"].includes(qr(t))?"y":"x"}function Bn(t){return $n(ei(t))}function Xl(t,e,r){r===void 0&&(r=!1);let i=or(t),n=Bn(t),a=Mn(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=kn(s)),[s,kn(s)]}function Ql(t){return t.replace(/start|end/g,e=>Wu[e])}function kn(t){return t.replace(/left|right|bottom|top/g,e=>Hu[e])}function Gu(t){return{top:0,right:0,bottom:0,left:0,...t}}function Jl(t){return typeof t!="number"?Gu(t):{top:t,right:t,bottom:t,left:t}}function wr(t){let{x:e,y:r,width:i,height:n}=t;return{width:i,height:n,top:r,left:e,right:e+i,bottom:r+n,x:e,y:r}}function ec(t,e,r){let{reference:i,floating:n}=t,a=ei(e),s=Bn(e),c=Mn(s),u=qr(e),p=a==="y",h=i.x+i.width/2-n.width/2,g=i.y+i.height/2-n.height/2,b=i[c]/2-n[c]/2,x;switch(u){case"top":x={x:h,y:i.y-n.height};break;case"bottom":x={x:h,y:i.y+i.height};break;case"right":x={x:i.x+i.width,y:g};break;case"left":x={x:i.x-n.width,y:g};break;default:x={x:i.x,y:i.y}}switch(or(e)){case"start":x[s]-=b*(r&&p?-1:1);break;case"end":x[s]+=b*(r&&p?-1:1);break}return x}var tc=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=r,c=a.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:h,y:g}=ec(p,i,u),b=i,x={},S=0;for(let O=0;O<c.length;O++){let{name:N,fn:I}=c[O],{x:_,y:$,data:H,reset:W}=await I({x:h,y:g,initialPlacement:i,placement:b,strategy:n,middlewareData:x,rects:p,platform:s,elements:{reference:t,floating:e}});h=_??h,g=$??g,x={...x,[N]:{...x[N],...H}},W&&S<=50&&(S++,typeof W=="object"&&(W.placement&&(b=W.placement),W.rects&&(p=W.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):W.rects),{x:h,y:g}=ec(p,b,u)),O=-1)}return{x:h,y:g,placement:b,strategy:n,middlewareData:x}};async function Fn(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:a,rects:s,elements:c,strategy:u}=t,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:g="floating",altBoundary:b=!1,padding:x=0}=Jo(e,t),S=Jl(x),N=c[b?g==="floating"?"reference":"floating":g],I=wr(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(N)))==null||r?N:N.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:p,rootBoundary:h,strategy:u})),_=g==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,$=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),H=await(a.isElement==null?void 0:a.isElement($))?await(a.getScale==null?void 0:a.getScale($))||{x:1,y:1}:{x:1,y:1},W=wr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:_,offsetParent:$,strategy:u}):_);return{top:(I.top-W.top+S.top)/H.y,bottom:(W.bottom-I.bottom+S.bottom)/H.y,left:(I.left-W.left+S.left)/H.x,right:(W.right-I.right+S.right)/H.x}}function Vu(t,e,r){return(t?[...r.filter(n=>or(n)===t),...r.filter(n=>or(n)!==t)]:r.filter(n=>qr(n)===n)).filter(n=>t?or(n)===t||(e?Ql(n)!==n:!1):!0)}var Un=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:a,middlewareData:s,placement:c,platform:u,elements:p}=e,{crossAxis:h=!1,alignment:g,allowedPlacements:b=Pn,autoAlignment:x=!0,...S}=Jo(t,e),O=g!==void 0||b===Pn?Vu(g||null,x,b):b,N=await Fn(e,S),I=((r=s.autoPlacement)==null?void 0:r.index)||0,_=O[I];if(_==null)return{};let $=Xl(_,a,await(u.isRTL==null?void 0:u.isRTL(p.floating)));if(c!==_)return{reset:{placement:O[0]}};let H=[N[qr(_)],N[$[0]],N[$[1]]],W=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:_,overflows:H}],qe=O[I+1];if(qe)return{data:{index:I+1,overflows:W},reset:{placement:qe}};let Rt=W.map(Ne=>{let y=or(Ne.placement);return[Ne.placement,y&&h?Ne.overflows.slice(0,2).reduce((v,P)=>v+P,0):Ne.overflows[0],Ne.overflows]}).sort((Ne,y)=>Ne[1]-y[1]),Tt=((n=Rt.filter(Ne=>Ne[2].slice(0,or(Ne[0])?2:3).every(y=>y<=0))[0])==null?void 0:n[0])||Rt[0][0];return Tt!==c?{data:{index:I+1,overflows:W},reset:{placement:Tt}}:{}}}};var zn=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:N=>{let{x:I,y:_}=N;return{x:I,y:_}}},...u}=Jo(t,e),p={x:r,y:i},h=await Fn(e,u),g=ei(qr(n)),b=$n(g),x=p[b],S=p[g];if(a){let N=b==="y"?"top":"left",I=b==="y"?"bottom":"right",_=x+h[N],$=x-h[I];x=Dn(_,x,$)}if(s){let N=g==="y"?"top":"left",I=g==="y"?"bottom":"right",_=S+h[N],$=S-h[I];S=Dn(_,S,$)}let O=c.fn({...e,[b]:x,[g]:S});return{...O,data:{x:O.x-r,y:O.y-i,enabled:{[b]:a,[g]:s}}}}}};var Hn=Math.min,Yr=Math.max,Oo=Math.round;var Ut=t=>({x:t,y:t});function zt(t){return oc(t)?(t.nodeName||"").toLowerCase():"#document"}function Xe(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ht(t){var e;return(e=(oc(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function oc(t){return t instanceof Node||t instanceof Xe(t).Node}function Nt(t){return t instanceof Element||t instanceof Xe(t).Element}function xt(t){return t instanceof HTMLElement||t instanceof Xe(t).HTMLElement}function rc(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Xe(t).ShadowRoot}function Xr(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=ot(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&!["inline","contents"].includes(n)}function ic(t){return["table","td","th"].includes(zt(t))}function ri(t){let e=oi(),r=ot(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(i=>(r.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(r.contain||"").includes(i))}function nc(t){let e=Er(t);for(;xt(e)&&!wo(e);){if(ri(e))return e;e=Er(e)}return null}function oi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function wo(t){return["html","body","#document"].includes(zt(t))}function ot(t){return Xe(t).getComputedStyle(t)}function Eo(t){return Nt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Er(t){if(zt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||rc(t)&&t.host||Ht(t);return rc(e)?e.host:e}function ac(t){let e=Er(t);return wo(e)?t.ownerDocument?t.ownerDocument.body:t.body:xt(e)&&Xr(e)?e:ac(e)}function ti(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=ac(t),a=n===((i=t.ownerDocument)==null?void 0:i.body),s=Xe(n);return a?e.concat(s,s.visualViewport||[],Xr(n)?n:[],s.frameElement&&r?ti(s.frameElement):[]):e.concat(n,ti(n,[],r))}function cc(t){let e=ot(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=xt(t),a=n?t.offsetWidth:r,s=n?t.offsetHeight:i,c=Oo(r)!==a||Oo(i)!==s;return c&&(r=a,i=s),{width:r,height:i,$:c}}function dc(t){return Nt(t)?t:t.contextElement}function Qr(t){let e=dc(t);if(!xt(e))return Ut(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:a}=cc(e),s=(a?Oo(r.width):r.width)/i,c=(a?Oo(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var Zu=Ut(0);function uc(t){let e=Xe(t);return!oi()||!e.visualViewport?Zu:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function qu(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Xe(t)?!1:e}function Ao(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),a=dc(t),s=Ut(1);e&&(i?Nt(i)&&(s=Qr(i)):s=Qr(t));let c=qu(a,r,i)?uc(a):Ut(0),u=(n.left+c.x)/s.x,p=(n.top+c.y)/s.y,h=n.width/s.x,g=n.height/s.y;if(a){let b=Xe(a),x=i&&Nt(i)?Xe(i):i,S=b.frameElement;for(;S&&i&&x!==b;){let O=Qr(S),N=S.getBoundingClientRect(),I=ot(S),_=N.left+(S.clientLeft+parseFloat(I.paddingLeft))*O.x,$=N.top+(S.clientTop+parseFloat(I.paddingTop))*O.y;u*=O.x,p*=O.y,h*=O.x,g*=O.y,u+=_,p+=$,S=Xe(S).frameElement}}return wr({width:h,height:g,x:u,y:p})}function Yu(t){let{rect:e,offsetParent:r,strategy:i}=t,n=xt(r),a=Ht(r);if(r===a)return e;let s={scrollLeft:0,scrollTop:0},c=Ut(1),u=Ut(0);if((n||!n&&i!=="fixed")&&((zt(r)!=="body"||Xr(a))&&(s=Eo(r)),xt(r))){let p=Ao(r);c=Qr(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-s.scrollLeft*c.x+u.x,y:e.y*c.y-s.scrollTop*c.y+u.y}}function Xu(t){return Array.from(t.getClientRects())}function pc(t){return Ao(Ht(t)).left+Eo(t).scrollLeft}function Qu(t){let e=Ht(t),r=Eo(t),i=t.ownerDocument.body,n=Yr(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),a=Yr(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-r.scrollLeft+pc(t),c=-r.scrollTop;return ot(i).direction==="rtl"&&(s+=Yr(e.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:c}}function Ju(t,e){let r=Xe(t),i=Ht(t),n=r.visualViewport,a=i.clientWidth,s=i.clientHeight,c=0,u=0;if(n){a=n.width,s=n.height;let p=oi();(!p||p&&e==="fixed")&&(c=n.offsetLeft,u=n.offsetTop)}return{width:a,height:s,x:c,y:u}}function ep(t,e){let r=Ao(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,a=xt(t)?Qr(t):Ut(1),s=t.clientWidth*a.x,c=t.clientHeight*a.y,u=n*a.x,p=i*a.y;return{width:s,height:c,x:u,y:p}}function sc(t,e,r){let i;if(e==="viewport")i=Ju(t,r);else if(e==="document")i=Qu(Ht(t));else if(Nt(e))i=ep(e,r);else{let n=uc(t);i={...e,x:e.x-n.x,y:e.y-n.y}}return wr(i)}function fc(t,e){let r=Er(t);return r===e||!Nt(r)||wo(r)?!1:ot(r).position==="fixed"||fc(r,e)}function tp(t,e){let r=e.get(t);if(r)return r;let i=ti(t,[],!1).filter(c=>Nt(c)&&zt(c)!=="body"),n=null,a=ot(t).position==="fixed",s=a?Er(t):t;for(;Nt(s)&&!wo(s);){let c=ot(s),u=ri(s);!u&&c.position==="fixed"&&(n=null),(a?!u&&!n:!u&&c.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Xr(s)&&!u&&fc(t,s))?i=i.filter(h=>h!==s):n=c,s=Er(s)}return e.set(t,i),i}function rp(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,s=[...r==="clippingAncestors"?tp(e,this._c):[].concat(r),i],c=s[0],u=s.reduce((p,h)=>{let g=sc(e,h,n);return p.top=Yr(g.top,p.top),p.right=Hn(g.right,p.right),p.bottom=Hn(g.bottom,p.bottom),p.left=Yr(g.left,p.left),p},sc(e,c,n));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function op(t){return cc(t)}function ip(t,e,r){let i=xt(e),n=Ht(e),a=r==="fixed",s=Ao(t,!0,a,e),c={scrollLeft:0,scrollTop:0},u=Ut(0);if(i||!i&&!a)if((zt(e)!=="body"||Xr(n))&&(c=Eo(e)),i){let p=Ao(e,!0,a,e);u.x=p.x+e.clientLeft,u.y=p.y+e.clientTop}else n&&(u.x=pc(n));return{x:s.left+c.scrollLeft-u.x,y:s.top+c.scrollTop-u.y,width:s.width,height:s.height}}function lc(t,e){return!xt(t)||ot(t).position==="fixed"?null:e?e(t):t.offsetParent}function hc(t,e){let r=Xe(t);if(!xt(t))return r;let i=lc(t,e);for(;i&&ic(i)&&ot(i).position==="static";)i=lc(i,e);return i&&(zt(i)==="html"||zt(i)==="body"&&ot(i).position==="static"&&!ri(i))?r:i||nc(t)||r}var np=async function(t){let{reference:e,floating:r,strategy:i}=t,n=this.getOffsetParent||hc,a=this.getDimensions;return{reference:ip(e,await n(r),i),floating:{x:0,y:0,...await a(r)}}};function ap(t){return ot(t).direction==="rtl"}var ii={convertOffsetParentRelativeRectToViewportRelativeRect:Yu,getDocumentElement:Ht,getClippingRect:rp,getOffsetParent:hc,getElementRects:np,getClientRects:Xu,getDimensions:op,getScale:Qr,isElement:Nt,isRTL:ap};var gc=(t,e,r)=>{let i=new Map,n={platform:ii,...r},a={...n.platform,_c:i};return tc(t,e,{...n,platform:a})};function yc(t){return sp(t)}function Wn(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function sp(t){for(let e=t;e;e=Wn(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Wn(t);e;e=Wn(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 mc(t,e,r){return gc(t,e,{platform:{...ii,getOffsetParent:i=>ii.getOffsetParent(i,yc)},middleware:[zn({crossAxis:!0}),Un({allowedPlacements:[r]})]})}var vt=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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 Qe.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new Qe.Debouncer,this.revealDebouncer=new Qe.Debouncer,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)||this.show()},this.onFocusIn=e=>{!this.isIgnored(e)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return bc.html`
580
+ `;var ql=["top","right","bottom","left"],Zl=["start","end"],Dn=ql.reduce((t,e)=>t.concat(e,e+"-"+Zl[0],e+"-"+Zl[1]),[]),Yl=Math.min,Xl=Math.max;var Wu={left:"right",right:"left",bottom:"top",top:"bottom"},Gu={start:"end",end:"start"};function $n(t,e,r){return Xl(t,Yl(e,r))}function ei(t,e){return typeof t=="function"?t(e):t}function Yr(t){return t.split("-")[0]}function or(t){return t.split("-")[1]}function Mn(t){return t==="x"?"y":"x"}function Bn(t){return t==="y"?"height":"width"}function ti(t){return["top","bottom"].includes(Yr(t))?"y":"x"}function Fn(t){return Mn(ti(t))}function Ql(t,e,r){r===void 0&&(r=!1);let i=or(t),n=Fn(t),a=Bn(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=Pn(s)),[s,Pn(s)]}function Jl(t){return t.replace(/start|end/g,e=>Gu[e])}function Pn(t){return t.replace(/left|right|bottom|top/g,e=>Wu[e])}function Vu(t){return{top:0,right:0,bottom:0,left:0,...t}}function ec(t){return typeof t!="number"?Vu(t):{top:t,right:t,bottom:t,left:t}}function wr(t){let{x:e,y:r,width:i,height:n}=t;return{width:i,height:n,top:r,left:e,right:e+i,bottom:r+n,x:e,y:r}}function tc(t,e,r){let{reference:i,floating:n}=t,a=ti(e),s=Fn(e),c=Bn(s),u=Yr(e),p=a==="y",h=i.x+i.width/2-n.width/2,g=i.y+i.height/2-n.height/2,b=i[c]/2-n[c]/2,x;switch(u){case"top":x={x:h,y:i.y-n.height};break;case"bottom":x={x:h,y:i.y+i.height};break;case"right":x={x:i.x+i.width,y:g};break;case"left":x={x:i.x-n.width,y:g};break;default:x={x:i.x,y:i.y}}switch(or(e)){case"start":x[s]-=b*(r&&p?-1:1);break;case"end":x[s]+=b*(r&&p?-1:1);break}return x}var rc=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=r,c=a.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:h,y:g}=tc(p,i,u),b=i,x={},S=0;for(let w=0;w<c.length;w++){let{name:_,fn:I}=c[w],{x:N,y:$,data:H,reset:W}=await I({x:h,y:g,initialPlacement:i,placement:b,strategy:n,middlewareData:x,rects:p,platform:s,elements:{reference:t,floating:e}});h=N??h,g=$??g,x={...x,[_]:{...x[_],...H}},W&&S<=50&&(S++,typeof W=="object"&&(W.placement&&(b=W.placement),W.rects&&(p=W.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):W.rects),{x:h,y:g}=tc(p,b,u)),w=-1)}return{x:h,y:g,placement:b,strategy:n,middlewareData:x}};async function Un(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:a,rects:s,elements:c,strategy:u}=t,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:g="floating",altBoundary:b=!1,padding:x=0}=ei(e,t),S=ec(x),_=c[b?g==="floating"?"reference":"floating":g],I=wr(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(_)))==null||r?_:_.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:p,rootBoundary:h,strategy:u})),N=g==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,$=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),H=await(a.isElement==null?void 0:a.isElement($))?await(a.getScale==null?void 0:a.getScale($))||{x:1,y:1}:{x:1,y:1},W=wr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:N,offsetParent:$,strategy:u}):N);return{top:(I.top-W.top+S.top)/H.y,bottom:(W.bottom-I.bottom+S.bottom)/H.y,left:(I.left-W.left+S.left)/H.x,right:(W.right-I.right+S.right)/H.x}}function ju(t,e,r){return(t?[...r.filter(n=>or(n)===t),...r.filter(n=>or(n)!==t)]:r.filter(n=>Yr(n)===n)).filter(n=>t?or(n)===t||(e?Jl(n)!==n:!1):!0)}var zn=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:a,middlewareData:s,placement:c,platform:u,elements:p}=e,{crossAxis:h=!1,alignment:g,allowedPlacements:b=Dn,autoAlignment:x=!0,...S}=ei(t,e),w=g!==void 0||b===Dn?ju(g||null,x,b):b,_=await Un(e,S),I=((r=s.autoPlacement)==null?void 0:r.index)||0,N=w[I];if(N==null)return{};let $=Ql(N,a,await(u.isRTL==null?void 0:u.isRTL(p.floating)));if(c!==N)return{reset:{placement:w[0]}};let H=[_[Yr(N)],_[$[0]],_[$[1]]],W=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:N,overflows:H}],qe=w[I+1];if(qe)return{data:{index:I+1,overflows:W},reset:{placement:qe}};let Rt=W.map(Ne=>{let y=or(Ne.placement);return[Ne.placement,y&&h?Ne.overflows.slice(0,2).reduce((v,P)=>v+P,0):Ne.overflows[0],Ne.overflows]}).sort((Ne,y)=>Ne[1]-y[1]),Tt=((n=Rt.filter(Ne=>Ne[2].slice(0,or(Ne[0])?2:3).every(y=>y<=0))[0])==null?void 0:n[0])||Rt[0][0];return Tt!==c?{data:{index:I+1,overflows:W},reset:{placement:Tt}}:{}}}};var Hn=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:_=>{let{x:I,y:N}=_;return{x:I,y:N}}},...u}=ei(t,e),p={x:r,y:i},h=await Un(e,u),g=ti(Yr(n)),b=Mn(g),x=p[b],S=p[g];if(a){let _=b==="y"?"top":"left",I=b==="y"?"bottom":"right",N=x+h[_],$=x-h[I];x=$n(N,x,$)}if(s){let _=g==="y"?"top":"left",I=g==="y"?"bottom":"right",N=S+h[_],$=S-h[I];S=$n(N,S,$)}let w=c.fn({...e,[b]:x,[g]:S});return{...w,data:{x:w.x-r,y:w.y-i,enabled:{[b]:a,[g]:s}}}}}};var Wn=Math.min,Xr=Math.max,Eo=Math.round;var zt=t=>({x:t,y:t});function Ht(t){return ic(t)?(t.nodeName||"").toLowerCase():"#document"}function Xe(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Wt(t){var e;return(e=(ic(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ic(t){return t instanceof Node||t instanceof Xe(t).Node}function Nt(t){return t instanceof Element||t instanceof Xe(t).Element}function xt(t){return t instanceof HTMLElement||t instanceof Xe(t).HTMLElement}function oc(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Xe(t).ShadowRoot}function Qr(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=ot(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&!["inline","contents"].includes(n)}function nc(t){return["table","td","th"].includes(Ht(t))}function oi(t){let e=ii(),r=ot(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(i=>(r.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(r.contain||"").includes(i))}function ac(t){let e=Er(t);for(;xt(e)&&!Ao(e);){if(oi(e))return e;e=Er(e)}return null}function ii(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ao(t){return["html","body","#document"].includes(Ht(t))}function ot(t){return Xe(t).getComputedStyle(t)}function Ro(t){return Nt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Er(t){if(Ht(t)==="html")return t;let e=t.assignedSlot||t.parentNode||oc(t)&&t.host||Wt(t);return oc(e)?e.host:e}function sc(t){let e=Er(t);return Ao(e)?t.ownerDocument?t.ownerDocument.body:t.body:xt(e)&&Qr(e)?e:sc(e)}function ri(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=sc(t),a=n===((i=t.ownerDocument)==null?void 0:i.body),s=Xe(n);return a?e.concat(s,s.visualViewport||[],Qr(n)?n:[],s.frameElement&&r?ri(s.frameElement):[]):e.concat(n,ri(n,[],r))}function dc(t){let e=ot(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=xt(t),a=n?t.offsetWidth:r,s=n?t.offsetHeight:i,c=Eo(r)!==a||Eo(i)!==s;return c&&(r=a,i=s),{width:r,height:i,$:c}}function uc(t){return Nt(t)?t:t.contextElement}function Jr(t){let e=uc(t);if(!xt(e))return zt(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:a}=dc(e),s=(a?Eo(r.width):r.width)/i,c=(a?Eo(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var qu=zt(0);function pc(t){let e=Xe(t);return!ii()||!e.visualViewport?qu:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Yu(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Xe(t)?!1:e}function To(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),a=uc(t),s=zt(1);e&&(i?Nt(i)&&(s=Jr(i)):s=Jr(t));let c=Yu(a,r,i)?pc(a):zt(0),u=(n.left+c.x)/s.x,p=(n.top+c.y)/s.y,h=n.width/s.x,g=n.height/s.y;if(a){let b=Xe(a),x=i&&Nt(i)?Xe(i):i,S=b.frameElement;for(;S&&i&&x!==b;){let w=Jr(S),_=S.getBoundingClientRect(),I=ot(S),N=_.left+(S.clientLeft+parseFloat(I.paddingLeft))*w.x,$=_.top+(S.clientTop+parseFloat(I.paddingTop))*w.y;u*=w.x,p*=w.y,h*=w.x,g*=w.y,u+=N,p+=$,S=Xe(S).frameElement}}return wr({width:h,height:g,x:u,y:p})}function Xu(t){let{rect:e,offsetParent:r,strategy:i}=t,n=xt(r),a=Wt(r);if(r===a)return e;let s={scrollLeft:0,scrollTop:0},c=zt(1),u=zt(0);if((n||!n&&i!=="fixed")&&((Ht(r)!=="body"||Qr(a))&&(s=Ro(r)),xt(r))){let p=To(r);c=Jr(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-s.scrollLeft*c.x+u.x,y:e.y*c.y-s.scrollTop*c.y+u.y}}function Qu(t){return Array.from(t.getClientRects())}function fc(t){return To(Wt(t)).left+Ro(t).scrollLeft}function Ju(t){let e=Wt(t),r=Ro(t),i=t.ownerDocument.body,n=Xr(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),a=Xr(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-r.scrollLeft+fc(t),c=-r.scrollTop;return ot(i).direction==="rtl"&&(s+=Xr(e.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:c}}function ep(t,e){let r=Xe(t),i=Wt(t),n=r.visualViewport,a=i.clientWidth,s=i.clientHeight,c=0,u=0;if(n){a=n.width,s=n.height;let p=ii();(!p||p&&e==="fixed")&&(c=n.offsetLeft,u=n.offsetTop)}return{width:a,height:s,x:c,y:u}}function tp(t,e){let r=To(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,a=xt(t)?Jr(t):zt(1),s=t.clientWidth*a.x,c=t.clientHeight*a.y,u=n*a.x,p=i*a.y;return{width:s,height:c,x:u,y:p}}function lc(t,e,r){let i;if(e==="viewport")i=ep(t,r);else if(e==="document")i=Ju(Wt(t));else if(Nt(e))i=tp(e,r);else{let n=pc(t);i={...e,x:e.x-n.x,y:e.y-n.y}}return wr(i)}function hc(t,e){let r=Er(t);return r===e||!Nt(r)||Ao(r)?!1:ot(r).position==="fixed"||hc(r,e)}function rp(t,e){let r=e.get(t);if(r)return r;let i=ri(t,[],!1).filter(c=>Nt(c)&&Ht(c)!=="body"),n=null,a=ot(t).position==="fixed",s=a?Er(t):t;for(;Nt(s)&&!Ao(s);){let c=ot(s),u=oi(s);!u&&c.position==="fixed"&&(n=null),(a?!u&&!n:!u&&c.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Qr(s)&&!u&&hc(t,s))?i=i.filter(h=>h!==s):n=c,s=Er(s)}return e.set(t,i),i}function op(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,s=[...r==="clippingAncestors"?rp(e,this._c):[].concat(r),i],c=s[0],u=s.reduce((p,h)=>{let g=lc(e,h,n);return p.top=Xr(g.top,p.top),p.right=Wn(g.right,p.right),p.bottom=Wn(g.bottom,p.bottom),p.left=Xr(g.left,p.left),p},lc(e,c,n));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function ip(t){return dc(t)}function np(t,e,r){let i=xt(e),n=Wt(e),a=r==="fixed",s=To(t,!0,a,e),c={scrollLeft:0,scrollTop:0},u=zt(0);if(i||!i&&!a)if((Ht(e)!=="body"||Qr(n))&&(c=Ro(e)),i){let p=To(e,!0,a,e);u.x=p.x+e.clientLeft,u.y=p.y+e.clientTop}else n&&(u.x=fc(n));return{x:s.left+c.scrollLeft-u.x,y:s.top+c.scrollTop-u.y,width:s.width,height:s.height}}function cc(t,e){return!xt(t)||ot(t).position==="fixed"?null:e?e(t):t.offsetParent}function gc(t,e){let r=Xe(t);if(!xt(t))return r;let i=cc(t,e);for(;i&&nc(i)&&ot(i).position==="static";)i=cc(i,e);return i&&(Ht(i)==="html"||Ht(i)==="body"&&ot(i).position==="static"&&!oi(i))?r:i||ac(t)||r}var ap=async function(t){let{reference:e,floating:r,strategy:i}=t,n=this.getOffsetParent||gc,a=this.getDimensions;return{reference:np(e,await n(r),i),floating:{x:0,y:0,...await a(r)}}};function sp(t){return ot(t).direction==="rtl"}var ni={convertOffsetParentRelativeRectToViewportRelativeRect:Xu,getDocumentElement:Wt,getClippingRect:op,getOffsetParent:gc,getElementRects:ap,getClientRects:Qu,getDimensions:ip,getScale:Jr,isElement:Nt,isRTL:sp};var yc=(t,e,r)=>{let i=new Map,n={platform:ni,...r},a={...n.platform,_c:i};return rc(t,e,{...n,platform:a})};function mc(t){return lp(t)}function Gn(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function lp(t){for(let e=t;e;e=Gn(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Gn(t);e;e=Gn(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 bc(t,e,r){return yc(t,e,{platform:{...ni,getOffsetParent:i=>ni.getOffsetParent(i,mc)},middleware:[Hn({crossAxis:!0}),zn({allowedPlacements:[r]})]})}var vt=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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 Qe.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new Qe.Debouncer,this.revealDebouncer=new Qe.Debouncer,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)||this.show()},this.onFocusIn=e=>{!this.isIgnored(e)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return xc.html`
581
581
  <div part="container"
582
582
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
583
583
  <slot part="slot"></slot>
@@ -590,12 +590,12 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
590
590
  </div>
591
591
  </div>
592
592
  </div>
593
- `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseenter",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseenter",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}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()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let n=this.text;this.text=e,await this.show(r),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return 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="",mc(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 ${Qe.designSystemVariables.transitionDuration}, left ${Qe.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||(0,Qe.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}};fe.elementDefinitions={"ft-typography":pe};fe.styles=jl;vt([(0,it.property)()],fe.prototype,"text",void 0);vt([(0,it.property)({type:Boolean})],fe.prototype,"manual",void 0);vt([(0,it.property)({type:Boolean})],fe.prototype,"inline",void 0);vt([(0,Qe.numberProperty)()],fe.prototype,"delay",void 0);vt([(0,it.property)()],fe.prototype,"position",void 0);vt([(0,Qe.jsonProperty)([])],fe.prototype,"ignoreMatchingElements",void 0);vt([(0,it.queryAssignedNodes)()],fe.prototype,"slotNodes",void 0);vt([(0,it.query)(".ft-tooltip--container")],fe.prototype,"container",void 0);vt([(0,it.query)(".ft-tooltip")],fe.prototype,"tooltip",void 0);vt([(0,it.query)(".ft-tooltip--content")],fe.prototype,"tooltipContent",void 0);vt([(0,it.state)()],fe.prototype,"visible",void 0);(0,xc.customElement)("ft-tooltip")(fe);var wc=m(T());var Ro=m(M()),ir=m(Z()),Cc=m(T()),Oc=m(Sc());var Ar;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.COMPRESS="&#xe9a2;",t.EXPAND="&#xe9a3;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;",t.MOBILE_SMALL="&#xe9a5;",t.SPARKLES="&#xe9a6;",t.HAND_SOLID="&#xe9a7;",t.CLOCK_SOLID="&#xe9a8;",t.CONTEXT_MENU_CURSOR="&#xe9a9;",t.LANGUAGE_SLASH="&#xe9aa;",t.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",t.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",t.BOOKMARK_SLASH="&#xe9ad;",t.CIRCLE_PAUSE="&#xe9ae;",t.CIRCLE_PLAY="&#xe9af;",t.CIRCLE_STOP_PLAIN="&#xe9b0;",t.CLOUD_ARROW_DOWN="&#xe9b1;",t.SHARE_NODES="&#xe9b2;",t.BELL="&#xe9b3;",t.BELL_SLASH="&#xe9b4;",t.FILE="&#xe9b5;",t.HAND="&#xe9b6;",t.SQUARE_INFO_SOLID="&#xe9b7;"})(Ar||(Ar={}));var A;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(A||(A={}));var hx=new Map([...["abw"].map(t=>[t,A.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,A.AUDIO]),...["avi"].map(t=>[t,A.AVI]),...["chm","xhs"].map(t=>[t,A.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,A.CODE]),...["csv"].map(t=>[t,A.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,A.DITA]),...["epub"].map(t=>[t,A.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,A.EXCEL]),...["flac"].map(t=>[t,A.FLAC]),...["gif"].map(t=>[t,A.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,A.GZIP]),...["html","htm","xhtml"].map(t=>[t,A.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,A.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,A.JPEG]),...["json"].map(t=>[t,A.JSON]),...["m4a","m4p"].map(t=>[t,A.M4A]),...["mov","qt"].map(t=>[t,A.MOV]),...["mp3"].map(t=>[t,A.MP3]),...["mp4","m4v"].map(t=>[t,A.MP4]),...["ogg","oga"].map(t=>[t,A.OGG]),...["pdf","ps"].map(t=>[t,A.PDF]),...["png"].map(t=>[t,A.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,A.POWERPOINT]),...["rar"].map(t=>[t,A.RAR]),...["stp"].map(t=>[t,A.STP]),...["txt","rtf","md","mdown"].map(t=>[t,A.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,A.VIDEO]),...["wav"].map(t=>[t,A.WAV]),...["wma"].map(t=>[t,A.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,A.WORD]),...["xml","xsl","rdf"].map(t=>[t,A.XML]),...["yaml","yml","x-yaml"].map(t=>[t,A.YAML]),...["zip"].map(t=>[t,A.ZIP])]);var gx={[A.ABW]:"#91ABC6",[A.AUDIO]:"#1795E3",[A.AVI]:"#E63324",[A.CHM]:"#71C3EB",[A.CODE]:"#71C3EB",[A.CSV]:"#1F7345",[A.DITA]:"#71C3EB",[A.EPUB]:"#85B926",[A.EXCEL]:"#1F7345",[A.FLAC]:"#1795E3",[A.GIF]:"#59B031",[A.GZIP]:"#F8AB36",[A.HTML]:"#71C3EB",[A.IMAGE]:"#59B031",[A.JPEG]:"#59B031",[A.JSON]:"#71C3EB",[A.M4A]:"#1795E3",[A.MOV]:"#E63324",[A.MP3]:"#1795E3",[A.MP4]:"#E63324",[A.OGG]:"#1795E3",[A.PDF]:"#E44948",[A.PNG]:"#59B031",[A.POWERPOINT]:"#B54A2B",[A.RAR]:"#F8AB36",[A.STP]:"#3764B1",[A.TEXT]:"#3162AB",[A.UNKNOWN]:"#999999",[A.VIDEO]:"#E63324",[A.WAV]:"#1795E3",[A.WMA]:"#1795E3",[A.WORD]:"#3162AB",[A.XML]:"#71C3EB",[A.YAML]:"#71C3EB",[A.ZIP]:"#F8AB36"};var Fe;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Fe||(Fe={}));var To=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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},he=class extends Cc.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Ro.nothing}render(){let e=this.variant&&Object.values(Fe).includes(this.variant)?this.variant:Fe.fluid_topics,r=e!==Fe.material||!!this.value;return Ro.html`
593
+ `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseenter",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseenter",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}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()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let n=this.text;this.text=e,await this.show(r),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return 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="",bc(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 ${Qe.designSystemVariables.transitionDuration}, left ${Qe.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||(0,Qe.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}};fe.elementDefinitions={"ft-typography":pe};fe.styles=Kl;vt([(0,it.property)()],fe.prototype,"text",void 0);vt([(0,it.property)({type:Boolean})],fe.prototype,"manual",void 0);vt([(0,it.property)({type:Boolean})],fe.prototype,"inline",void 0);vt([(0,Qe.numberProperty)()],fe.prototype,"delay",void 0);vt([(0,it.property)()],fe.prototype,"position",void 0);vt([(0,Qe.jsonProperty)([])],fe.prototype,"ignoreMatchingElements",void 0);vt([(0,it.queryAssignedNodes)()],fe.prototype,"slotNodes",void 0);vt([(0,it.query)(".ft-tooltip--container")],fe.prototype,"container",void 0);vt([(0,it.query)(".ft-tooltip")],fe.prototype,"tooltip",void 0);vt([(0,it.query)(".ft-tooltip--content")],fe.prototype,"tooltipContent",void 0);vt([(0,it.state)()],fe.prototype,"visible",void 0);(0,vc.customElement)("ft-tooltip")(fe);var Ec=m(T());var Io=m(M()),ir=m(Z()),Oc=m(T()),wc=m(Cc());var Ar;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.COMPRESS="&#xe9a2;",t.EXPAND="&#xe9a3;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;",t.MOBILE_SMALL="&#xe9a5;",t.SPARKLES="&#xe9a6;",t.HAND_SOLID="&#xe9a7;",t.CLOCK_SOLID="&#xe9a8;",t.CONTEXT_MENU_CURSOR="&#xe9a9;",t.LANGUAGE_SLASH="&#xe9aa;",t.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",t.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",t.BOOKMARK_SLASH="&#xe9ad;",t.CIRCLE_PAUSE="&#xe9ae;",t.CIRCLE_PLAY="&#xe9af;",t.CIRCLE_STOP_PLAIN="&#xe9b0;",t.CLOUD_ARROW_DOWN="&#xe9b1;",t.SHARE_NODES="&#xe9b2;",t.BELL="&#xe9b3;",t.BELL_SLASH="&#xe9b4;",t.FILE="&#xe9b5;",t.HAND="&#xe9b6;",t.SQUARE_INFO_SOLID="&#xe9b7;"})(Ar||(Ar={}));var A;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(A||(A={}));var gx=new Map([...["abw"].map(t=>[t,A.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,A.AUDIO]),...["avi"].map(t=>[t,A.AVI]),...["chm","xhs"].map(t=>[t,A.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,A.CODE]),...["csv"].map(t=>[t,A.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,A.DITA]),...["epub"].map(t=>[t,A.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,A.EXCEL]),...["flac"].map(t=>[t,A.FLAC]),...["gif"].map(t=>[t,A.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,A.GZIP]),...["html","htm","xhtml"].map(t=>[t,A.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,A.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,A.JPEG]),...["json"].map(t=>[t,A.JSON]),...["m4a","m4p"].map(t=>[t,A.M4A]),...["mov","qt"].map(t=>[t,A.MOV]),...["mp3"].map(t=>[t,A.MP3]),...["mp4","m4v"].map(t=>[t,A.MP4]),...["ogg","oga"].map(t=>[t,A.OGG]),...["pdf","ps"].map(t=>[t,A.PDF]),...["png"].map(t=>[t,A.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,A.POWERPOINT]),...["rar"].map(t=>[t,A.RAR]),...["stp"].map(t=>[t,A.STP]),...["txt","rtf","md","mdown"].map(t=>[t,A.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,A.VIDEO]),...["wav"].map(t=>[t,A.WAV]),...["wma"].map(t=>[t,A.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,A.WORD]),...["xml","xsl","rdf"].map(t=>[t,A.XML]),...["yaml","yml","x-yaml"].map(t=>[t,A.YAML]),...["zip"].map(t=>[t,A.ZIP])]);var yx={[A.ABW]:"#91ABC6",[A.AUDIO]:"#1795E3",[A.AVI]:"#E63324",[A.CHM]:"#71C3EB",[A.CODE]:"#71C3EB",[A.CSV]:"#1F7345",[A.DITA]:"#71C3EB",[A.EPUB]:"#85B926",[A.EXCEL]:"#1F7345",[A.FLAC]:"#1795E3",[A.GIF]:"#59B031",[A.GZIP]:"#F8AB36",[A.HTML]:"#71C3EB",[A.IMAGE]:"#59B031",[A.JPEG]:"#59B031",[A.JSON]:"#71C3EB",[A.M4A]:"#1795E3",[A.MOV]:"#E63324",[A.MP3]:"#1795E3",[A.MP4]:"#E63324",[A.OGG]:"#1795E3",[A.PDF]:"#E44948",[A.PNG]:"#59B031",[A.POWERPOINT]:"#B54A2B",[A.RAR]:"#F8AB36",[A.STP]:"#3764B1",[A.TEXT]:"#3162AB",[A.UNKNOWN]:"#999999",[A.VIDEO]:"#E63324",[A.WAV]:"#1795E3",[A.WMA]:"#1795E3",[A.WORD]:"#3162AB",[A.XML]:"#71C3EB",[A.YAML]:"#71C3EB",[A.ZIP]:"#F8AB36"};var Fe;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Fe||(Fe={}));var _o=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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},he=class extends Oc.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Io.nothing}render(){let e=this.variant&&Object.values(Fe).includes(this.variant)?this.variant:Fe.fluid_topics,r=e!==Fe.material||!!this.value;return Io.html`
594
594
  <i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
595
- ${(0,Oc.unsafeHTML)(this.resolvedIcon)}
595
+ ${(0,wc.unsafeHTML)(this.resolvedIcon)}
596
596
  <slot ?hidden=${r}></slot>
597
597
  </i>
598
- `}get textContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.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 i=this.value||this.textContent;switch(this.variant){case Fe.file_format:this.resolvedIcon=(e=A[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Fe.material:this.resolvedIcon=this.value||Ro.nothing;break;default:this.resolvedIcon=(r=Ar[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};he.elementDefinitions={};he.styles=Us;To([(0,ir.property)()],he.prototype,"variant",void 0);To([(0,ir.property)()],he.prototype,"value",void 0);To([(0,ir.property)({reflect:!0,attribute:"aria-hidden"})],he.prototype,"ariaHidden",void 0);To([(0,ir.state)()],he.prototype,"resolvedIcon",void 0);To([(0,ir.query)("slot")],he.prototype,"slottedContent",void 0);(0,wc.customElement)("ft-icon")(he);var Ec=m(M()),je=m(T());var we={borderRadiusLeft:je.FtCssVariableFactory.extend("--ft-switch-option-border-radius-left","",je.designSystemVariables.borderRadiusL),borderRadiusRight:je.FtCssVariableFactory.extend("--ft-switch-option-border-radius-right","",je.designSystemVariables.borderRadiusL),borderWidthLeft:je.FtCssVariableFactory.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:je.FtCssVariableFactory.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:je.FtCssVariableFactory.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},Ac=Ec.css`
598
+ `}get textContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.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 i=this.value||this.textContent;switch(this.variant){case Fe.file_format:this.resolvedIcon=(e=A[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Fe.material:this.resolvedIcon=this.value||Io.nothing;break;default:this.resolvedIcon=(r=Ar[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};he.elementDefinitions={};he.styles=zs;_o([(0,ir.property)()],he.prototype,"variant",void 0);_o([(0,ir.property)()],he.prototype,"value",void 0);_o([(0,ir.property)({reflect:!0,attribute:"aria-hidden"})],he.prototype,"ariaHidden",void 0);_o([(0,ir.state)()],he.prototype,"resolvedIcon",void 0);_o([(0,ir.query)("slot")],he.prototype,"slottedContent",void 0);(0,Ec.customElement)("ft-icon")(he);var Ac=m(M()),je=m(T());var we={borderRadiusLeft:je.FtCssVariableFactory.extend("--ft-switch-option-border-radius-left","",je.designSystemVariables.borderRadiusL),borderRadiusRight:je.FtCssVariableFactory.extend("--ft-switch-option-border-radius-right","",je.designSystemVariables.borderRadiusL),borderWidthLeft:je.FtCssVariableFactory.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:je.FtCssVariableFactory.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:je.FtCssVariableFactory.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},Rc=Ac.css`
599
599
  .ft-switch-option {
600
600
  position: relative;
601
601
  display: inline-block;
@@ -664,7 +664,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
664
664
  }
665
665
 
666
666
  .ft-switch-option--ripple {
667
- ${(0,je.setVariable)(w.color,ue.rippleColor)};
667
+ ${(0,je.setVariable)(O.color,ue.rippleColor)};
668
668
  }
669
669
 
670
670
  ft-icon, ft-ripple, ft-typography {
@@ -683,14 +683,14 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
683
683
  .ft-switch-option--selected ft-icon {
684
684
  color: ${ue.selectedTextColor};
685
685
  }
686
- `;var St=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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},Gn=class extends CustomEvent{constructor(e){super("option-change-by-user",{detail:e,bubbles:!0,composed:!0})}},Vn=class extends CustomEvent{constructor(e){super("option-change",{detail:e,bubbles:!0,composed:!0})}},ge=class extends eo.FtLitElement{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1,this.isFocused=!1}focus(){this.input.focus()}update(e){super.update(e),e.has("selected")&&this.dispatchEvent(new Vn(this.selected))}render(){let e={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected,"ft-switch-option--focused":this.isFocused};return this.addTooltip(Jr.html`
687
- <label part="label" for="input" class="${(0,Rc.classMap)(e)}"
686
+ `;var St=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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},Vn=class extends CustomEvent{constructor(e){super("option-change-by-user",{detail:e,bubbles:!0,composed:!0})}},jn=class extends CustomEvent{constructor(e){super("option-change",{detail:e,bubbles:!0,composed:!0})}},ge=class extends to.FtLitElement{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1,this.isFocused=!1}focus(){this.input.focus()}update(e){super.update(e),e.has("selected")&&this.dispatchEvent(new jn(this.selected))}render(){let e={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected,"ft-switch-option--focused":this.isFocused};return this.addTooltip(eo.html`
687
+ <label part="label" for="input" class="${(0,Tc.classMap)(e)}"
688
688
  @click=${this.onChange}>
689
689
  <div class="ft-switch-option--content">
690
690
  <ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
691
691
  <ft-typography part="text"
692
692
  variant="button"
693
- class="ft-switch-option--label ${eo.isSafari?"ft-safari-ellipsis-fix":""}"
693
+ class="ft-switch-option--label ${to.isSafari?"ft-safari-ellipsis-fix":""}"
694
694
  ?hidden=${!this.hasTextContent()}>
695
695
  <slot @slotchange=${this.onSlotchange}></slot>
696
696
  </ft-typography>
@@ -699,22 +699,22 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
699
699
  </label>
700
700
  <input id="input" type="radio" class="ft-switch-option--input"
701
701
  .checked=${this.selected}>
702
- `)}addTooltip(e){return this.hasTextContent()||this.getLabel().trim().length===0?e:Jr.html`
702
+ `)}addTooltip(e){return this.hasTextContent()||this.getLabel().trim().length===0?e:eo.html`
703
703
  <ft-tooltip part="tooltip"
704
704
  text="${this.getLabel()}"
705
705
  position="${this.tooltipPosition}">
706
706
  ${e}
707
707
  </ft-tooltip>
708
- `}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.onFocusout)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this.onFocusout)}onFocusout(e){this.isFocused=!1}onChange(){this.selected=this.unselectable?!this.selected:!0,this.dispatchEvent(new Gn(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?Jr.html`
708
+ `}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.onFocusout)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this.onFocusout)}onFocusout(e){this.isFocused=!1}onChange(){this.selected=this.unselectable?!this.selected:!0,this.dispatchEvent(new Vn(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?eo.html`
709
709
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
710
- `:Jr.nothing}get textContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}};ge.elementDefinitions={"ft-ripple":K,"ft-typography":pe,"ft-tooltip":fe,"ft-icon":he};ge.styles=[eo.safariEllipsisFix,Ac];St([(0,Je.property)()],ge.prototype,"value",void 0);St([(0,Je.property)()],ge.prototype,"icon",void 0);St([(0,Je.property)()],ge.prototype,"iconVariant",void 0);St([(0,Je.property)()],ge.prototype,"label",void 0);St([(0,Je.property)()],ge.prototype,"tooltipPosition",void 0);St([(0,Je.property)({type:Boolean,reflect:!0})],ge.prototype,"selected",void 0);St([(0,Je.property)({type:Boolean})],ge.prototype,"trailingIcon",void 0);St([(0,Je.property)({type:Boolean})],ge.prototype,"unselectable",void 0);St([(0,Je.query)(".ft-switch-option--content slot")],ge.prototype,"slottedContent",void 0);St([(0,Je.query)(".ft-switch-option--input")],ge.prototype,"input",void 0);St([(0,Je.state)()],ge.prototype,"isFocused",void 0);var Rr=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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},jn=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Ke=class extends Wt.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.displayFocusWhenUsingKeyboard=!1,this.options=[]}get value(){var e;return(e=this.selectedOption)===null||e===void 0?void 0:e.value}update(e){super.update(e),e.has("selectedOption")&&this.updateOptions(),e.has("unselectable")&&this.options.forEach(r=>r.unselectable=this.unselectable)}render(){let e={"ft-switch":!0,"ft-switch--dense":this.dense};return ni.html`
711
- <div @keydown=${this.onKeyDown} tabindex="-1" class="${(0,Tc.classMap)(e)}" role="radiogroup" aria-label="${this.label}">
710
+ `:eo.nothing}get textContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}};ge.elementDefinitions={"ft-ripple":K,"ft-typography":pe,"ft-tooltip":fe,"ft-icon":he};ge.styles=[to.safariEllipsisFix,Rc];St([(0,Je.property)()],ge.prototype,"value",void 0);St([(0,Je.property)()],ge.prototype,"icon",void 0);St([(0,Je.property)()],ge.prototype,"iconVariant",void 0);St([(0,Je.property)()],ge.prototype,"label",void 0);St([(0,Je.property)()],ge.prototype,"tooltipPosition",void 0);St([(0,Je.property)({type:Boolean,reflect:!0})],ge.prototype,"selected",void 0);St([(0,Je.property)({type:Boolean})],ge.prototype,"trailingIcon",void 0);St([(0,Je.property)({type:Boolean})],ge.prototype,"unselectable",void 0);St([(0,Je.query)(".ft-switch-option--content slot")],ge.prototype,"slottedContent",void 0);St([(0,Je.query)(".ft-switch-option--input")],ge.prototype,"input",void 0);St([(0,Je.state)()],ge.prototype,"isFocused",void 0);var Rr=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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},Kn=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Ke=class extends Gt.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.displayFocusWhenUsingKeyboard=!1,this.options=[]}get value(){var e;return(e=this.selectedOption)===null||e===void 0?void 0:e.value}update(e){super.update(e),e.has("selectedOption")&&this.updateOptions(),e.has("unselectable")&&this.options.forEach(r=>r.unselectable=this.unselectable)}render(){let e={"ft-switch":!0,"ft-switch--dense":this.dense};return ai.html`
711
+ <div @keydown=${this.onKeyDown} tabindex="-1" class="${(0,Ic.classMap)(e)}" role="radiogroup" aria-label="${this.label}">
712
712
  <slot @slotchange=${this.onSlotchange}
713
713
  @option-change=${this.onOptionChangeByScript}
714
714
  @option-change-by-user=${this.onOptionChangeByUser}
715
715
  ></slot>
716
716
  </div>
717
- `}onKeyDown(e){let r;(e.key=="ArrowDown"||e.key=="ArrowRight")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),(e.key=="ArrowUp"||e.key=="ArrowLeft")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),e.code=="Space"&&(r=this.options.indexOf(e.target)),r!=null&&(e.preventDefault(),this.options[this.fixIndex(r)].focus(),this.displayFocusWhenUsingKeyboard=!0,this.options[this.fixIndex(r)].selected=!0)}fixIndex(e){return e<0?this.options.length-1:e>this.options.length-1?0:e}onSlotchange(){var e;this.options=[],(e=this.slottedContent)===null||e===void 0||e.assignedElements().forEach(r=>{r instanceof ge&&this.registerOption(r)}),this.selectedOption=this.options.find(r=>r.selected)}registerOption(e){var r;(r=e.shadowRoot)===null||r===void 0||r.querySelectorAll("input").forEach(i=>{i.setAttribute("tabindex","-1")}),e.setAttribute("tabindex","0"),e.unselectable=this.unselectable,this.options.push(e)}onOptionChangeByScript(e){e.stopPropagation();let r=e.target;this.onOptionChange(r)}onOptionChangeByUser(e){var r;e.stopPropagation(),this.displayFocusWhenUsingKeyboard=!1,this.onOptionChange(e.target),this.dispatchEvent(new jn((r=this.selectedOption)===null||r===void 0?void 0:r.value))}onOptionChange(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(r=>r.selected)}private(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(r=>r.selected)}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach(e=>{e.selected=e===this.selectedOption,this.displayFocusWhenUsingKeyboard&&(e.isFocused=e===this.selectedOption)})}};Ke.elementDefinitions={};Ke.styles=ni.css`
717
+ `}onKeyDown(e){let r;(e.key=="ArrowDown"||e.key=="ArrowRight")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),(e.key=="ArrowUp"||e.key=="ArrowLeft")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),e.code=="Space"&&(r=this.options.indexOf(e.target)),r!=null&&(e.preventDefault(),this.options[this.fixIndex(r)].focus(),this.displayFocusWhenUsingKeyboard=!0,this.options[this.fixIndex(r)].selected=!0)}fixIndex(e){return e<0?this.options.length-1:e>this.options.length-1?0:e}onSlotchange(){var e;this.options=[],(e=this.slottedContent)===null||e===void 0||e.assignedElements().forEach(r=>{r instanceof ge&&this.registerOption(r)}),this.selectedOption=this.options.find(r=>r.selected)}registerOption(e){var r;(r=e.shadowRoot)===null||r===void 0||r.querySelectorAll("input").forEach(i=>{i.setAttribute("tabindex","-1")}),e.setAttribute("tabindex","0"),e.unselectable=this.unselectable,this.options.push(e)}onOptionChangeByScript(e){e.stopPropagation();let r=e.target;this.onOptionChange(r)}onOptionChangeByUser(e){var r;e.stopPropagation(),this.displayFocusWhenUsingKeyboard=!1,this.onOptionChange(e.target),this.dispatchEvent(new Kn((r=this.selectedOption)===null||r===void 0?void 0:r.value))}onOptionChange(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(r=>r.selected)}private(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(r=>r.selected)}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach(e=>{e.selected=e===this.selectedOption,this.displayFocusWhenUsingKeyboard&&(e.isFocused=e===this.selectedOption)})}};Ke.elementDefinitions={};Ke.styles=ai.css`
718
718
  :host {
719
719
  display: inline-block;
720
720
  }
@@ -730,25 +730,25 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
730
730
  }
731
731
 
732
732
  .ft-switch slot::slotted(ft-switch-option) {
733
- ${(0,Wt.setVariable)(we.borderRadiusLeft,"0")};
734
- ${(0,Wt.setVariable)(we.borderRadiusRight,"0")};
735
- ${(0,Wt.setVariable)(we.borderWidthLeft,"0")};
733
+ ${(0,Gt.setVariable)(we.borderRadiusLeft,"0")};
734
+ ${(0,Gt.setVariable)(we.borderRadiusRight,"0")};
735
+ ${(0,Gt.setVariable)(we.borderWidthLeft,"0")};
736
736
  }
737
737
 
738
738
  .ft-switch slot::slotted(ft-switch-option:first-child) {
739
- ${(0,Wt.setVariable)(we.borderRadiusLeft,ue.borderRadius)};
740
- ${(0,Wt.setVariable)(we.borderWidthLeft,"1px")};
739
+ ${(0,Gt.setVariable)(we.borderRadiusLeft,ue.borderRadius)};
740
+ ${(0,Gt.setVariable)(we.borderWidthLeft,"1px")};
741
741
  }
742
742
 
743
743
  .ft-switch slot::slotted(ft-switch-option:last-child) {
744
- ${(0,Wt.setVariable)(we.borderRadiusRight,ue.borderRadius)};
744
+ ${(0,Gt.setVariable)(we.borderRadiusRight,ue.borderRadius)};
745
745
  }
746
746
 
747
747
  .ft-switch--dense slot::slotted(ft-switch-option) {
748
748
  --switch-internal-vertical-padding: 2px;
749
749
  --switch-internal-horizontal-padding: 4px;
750
750
  }
751
- `;Rr([(0,Lt.property)({type:Boolean})],Ke.prototype,"dense",void 0);Rr([(0,Lt.property)({type:Boolean})],Ke.prototype,"unselectable",void 0);Rr([(0,Lt.property)()],Ke.prototype,"label",void 0);Rr([(0,Lt.query)(".ft-switch slot")],Ke.prototype,"slottedContent",void 0);Rr([(0,Lt.state)()],Ke.prototype,"selectedOption",void 0);Rr([(0,Lt.state)()],Ke.prototype,"displayFocusWhenUsingKeyboard",void 0);Rr([(0,Lt.query)(".ft-switch")],Ke.prototype,"ftSwitchDiv",void 0);(0,Kn.customElement)("ft-switch")(Ke);(0,Kn.customElement)("ft-switch-option")(ge);var Vc=m(T());var di=m(M()),pt=m(Z()),Gc=m(Bt()),ui=m(T());var Lc=m(T());var si=m(M()),ut=m(Z()),li=m(T());var _c=m(M()),to=m(T()),Ic={colorOutline:to.FtCssVariableFactory.external(to.designSystemVariables.colorOutline,"Design system"),colorOnSurfaceMedium:to.FtCssVariableFactory.external(to.designSystemVariables.colorOnSurfaceMedium,"Design system")},Nc=_c.css`
751
+ `;Rr([(0,Lt.property)({type:Boolean})],Ke.prototype,"dense",void 0);Rr([(0,Lt.property)({type:Boolean})],Ke.prototype,"unselectable",void 0);Rr([(0,Lt.property)()],Ke.prototype,"label",void 0);Rr([(0,Lt.query)(".ft-switch slot")],Ke.prototype,"slottedContent",void 0);Rr([(0,Lt.state)()],Ke.prototype,"selectedOption",void 0);Rr([(0,Lt.state)()],Ke.prototype,"displayFocusWhenUsingKeyboard",void 0);Rr([(0,Lt.query)(".ft-switch")],Ke.prototype,"ftSwitchDiv",void 0);(0,Zn.customElement)("ft-switch")(Ke);(0,Zn.customElement)("ft-switch-option")(ge);var jc=m(T());var ui=m(M()),pt=m(Z()),Vc=m(Ft()),pi=m(T());var kc=m(T());var li=m(M()),ut=m(Z()),ci=m(T());var Nc=m(M()),ro=m(T()),_c={colorOutline:ro.FtCssVariableFactory.external(ro.designSystemVariables.colorOutline,"Design system"),colorOnSurfaceMedium:ro.FtCssVariableFactory.external(ro.designSystemVariables.colorOnSurfaceMedium,"Design system")},Lc=Nc.css`
752
752
  :host {
753
753
  display: block;
754
754
  }
@@ -759,18 +759,18 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
759
759
 
760
760
  ft-icon {
761
761
  transform: rotate(-45deg);
762
- color: ${Ic.colorOutline};
762
+ color: ${_c.colorOutline};
763
763
  }
764
764
 
765
765
  .ft-resizer--dragging ft-icon,
766
766
  .ft-resizer:hover ft-icon,
767
767
  [role="button"][aria-pressed="true"] ft-icon{
768
- color: ${Ic.colorOnSurfaceMedium};
768
+ color: ${_c.colorOnSurfaceMedium};
769
769
  }
770
- `;var Gt=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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},ai=class extends CustomEvent{constructor(e,r){super("resize",{detail:{width:e,height:r}})}},Pe=class extends li.FtLitElement{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=Fe.material,this.cursor="nwse-resize",this.dragging=!1,this.isAriaPressed=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=e=>this.doDrag(e.clientX,e.clientY),this.doDragFromTouch=e=>this.doDrag(e.touches[0].clientX,e.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return si.html`
770
+ `;var Vt=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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},si=class extends CustomEvent{constructor(e,r){super("resize",{detail:{width:e,height:r}})}},Pe=class extends ci.FtLitElement{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=Fe.material,this.cursor="nwse-resize",this.dragging=!1,this.isAriaPressed=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=e=>this.doDrag(e.clientX,e.clientY),this.doDragFromTouch=e=>this.doDrag(e.touches[0].clientX,e.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return li.html`
771
771
  <style>
772
772
  .ft-resizer {
773
- cursor: ${(0,si.unsafeCSS)(this.cursor)}
773
+ cursor: ${(0,li.unsafeCSS)(this.cursor)}
774
774
  }
775
775
  </style>
776
776
  <div class="ft-resizer ft-no-text-select ${this.dragging?"ft-resizer--dragging":""}"
@@ -781,7 +781,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
781
781
  @keydown="${this.initKeydownPress}">
782
782
  <ft-icon .variant="${this.iconVariant}" .value="${this.icon}" focusable="false" aria-hidden="true"></ft-icon>
783
783
  </div>
784
- `}initDragFromMouse(e){this.initDrag(e.clientX,e.clientY)}initDragFromTouch(e){e.preventDefault(),e.stopPropagation(),this.initDrag(e.touches[0].clientX,e.touches[0].clientY)}initKeydownPress(e){let r=e.key;if(["Enter","Space","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(r)&&(e.preventDefault(),e.stopPropagation()),this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,r==="Enter"||r==="Space"){let n=e.currentTarget;this.isAriaPressed=!this.isAriaPressed,n.setAttribute("aria-pressed",this.isAriaPressed.toString())}else r==="Escape"&&(this.isAriaPressed=!1);this.isAriaPressed&&(r==="ArrowLeft"?this.fixedWidth-=10:r==="ArrowRight"?this.fixedWidth+=10:r==="ArrowUp"?this.fixedHeight-=10:r==="ArrowDown"&&(this.fixedHeight+=10)),this.dispatchEvent(new ai(this.fixedWidth,this.fixedHeight))}initDrag(e,r){this.dragging=!0,this.startX=e,this.startY=r,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(e,r){let i=this.fixedWidth+e-this.startX,n=this.fixedHeight+r-this.startY;this.dispatchEvent(new ai(i,n))}};Pe.elementDefinitions={"ft-icon":he};Pe.styles=[li.noTextSelect,Nc];Gt([(0,ut.property)({type:Number})],Pe.prototype,"initialWidth",void 0);Gt([(0,ut.property)({type:Number})],Pe.prototype,"initialHeight",void 0);Gt([(0,ut.property)()],Pe.prototype,"icon",void 0);Gt([(0,ut.property)()],Pe.prototype,"iconVariant",void 0);Gt([(0,ut.property)()],Pe.prototype,"cursor",void 0);Gt([(0,ut.state)()],Pe.prototype,"dragging",void 0);Gt([(0,ut.state)()],Pe.prototype,"isAriaPressed",void 0);Gt([(0,ut.eventOptions)({passive:!0})],Pe.prototype,"initDragFromMouse",null);Gt([(0,ut.eventOptions)({passive:!0})],Pe.prototype,"initDragFromTouch",null);(0,Lc.customElement)("ft-resizer")(Pe);var Xn=m(T());var ci=m(Z());var kc=m(M()),re=m(T());var k={fontSize:re.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:re.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:re.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:re.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:re.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:re.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:re.FtCssVariableFactory.extend("--ft-input-label-border-color","",re.designSystemVariables.colorOutline),textColor:re.FtCssVariableFactory.extend("--ft-input-label-text-color","",re.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:re.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",re.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:re.FtCssVariableFactory.extend("--ft-input-label-background-color","",re.designSystemVariables.colorSurface),borderRadius:re.FtCssVariableFactory.extend("--ft-input-label-border-radius","",re.designSystemVariables.borderRadiusS),colorError:re.FtCssVariableFactory.external(re.designSystemVariables.colorError,"Design system")},Pc=kc.css`
784
+ `}initDragFromMouse(e){this.initDrag(e.clientX,e.clientY)}initDragFromTouch(e){e.preventDefault(),e.stopPropagation(),this.initDrag(e.touches[0].clientX,e.touches[0].clientY)}initKeydownPress(e){let r=e.key;if(["Enter","Space","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(r)&&(e.preventDefault(),e.stopPropagation()),this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,r==="Enter"||r==="Space"){let n=e.currentTarget;this.isAriaPressed=!this.isAriaPressed,n.setAttribute("aria-pressed",this.isAriaPressed.toString())}else r==="Escape"&&(this.isAriaPressed=!1);this.isAriaPressed&&(r==="ArrowLeft"?this.fixedWidth-=10:r==="ArrowRight"?this.fixedWidth+=10:r==="ArrowUp"?this.fixedHeight-=10:r==="ArrowDown"&&(this.fixedHeight+=10)),this.dispatchEvent(new si(this.fixedWidth,this.fixedHeight))}initDrag(e,r){this.dragging=!0,this.startX=e,this.startY=r,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(e,r){let i=this.fixedWidth+e-this.startX,n=this.fixedHeight+r-this.startY;this.dispatchEvent(new si(i,n))}};Pe.elementDefinitions={"ft-icon":he};Pe.styles=[ci.noTextSelect,Lc];Vt([(0,ut.property)({type:Number})],Pe.prototype,"initialWidth",void 0);Vt([(0,ut.property)({type:Number})],Pe.prototype,"initialHeight",void 0);Vt([(0,ut.property)()],Pe.prototype,"icon",void 0);Vt([(0,ut.property)()],Pe.prototype,"iconVariant",void 0);Vt([(0,ut.property)()],Pe.prototype,"cursor",void 0);Vt([(0,ut.state)()],Pe.prototype,"dragging",void 0);Vt([(0,ut.state)()],Pe.prototype,"isAriaPressed",void 0);Vt([(0,ut.eventOptions)({passive:!0})],Pe.prototype,"initDragFromMouse",null);Vt([(0,ut.eventOptions)({passive:!0})],Pe.prototype,"initDragFromTouch",null);(0,kc.customElement)("ft-resizer")(Pe);var Qn=m(T());var di=m(Z());var Pc=m(M()),re=m(T());var k={fontSize:re.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:re.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:re.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:re.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:re.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:re.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:re.FtCssVariableFactory.extend("--ft-input-label-border-color","",re.designSystemVariables.colorOutline),textColor:re.FtCssVariableFactory.extend("--ft-input-label-text-color","",re.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:re.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",re.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:re.FtCssVariableFactory.extend("--ft-input-label-background-color","",re.designSystemVariables.colorSurface),borderRadius:re.FtCssVariableFactory.extend("--ft-input-label-border-radius","",re.designSystemVariables.borderRadiusS),colorError:re.FtCssVariableFactory.external(re.designSystemVariables.colorError,"Design system")},Dc=Pc.css`
785
785
  .ft-input-label {
786
786
  position: absolute;
787
787
  inset: 0;
@@ -903,16 +903,16 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
903
903
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
904
904
  border-top: none;
905
905
  }
906
- `;var Zn=m(M()),qn=m(Z());function Dc(t,e,r){return t?e(t):r?.(t)}var Mc=m(Bt()),Bc=m(T()),$c=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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},Vt=class extends Bc.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return Zn.html`
907
- <div class="${(0,Mc.classMap)(this.inputLabelClasses)}">
908
- ${Dc(this.text,()=>Zn.html`
906
+ `;var qn=m(M()),Yn=m(Z());function $c(t,e,r){return t?e(t):r?.(t)}var Bc=m(Ft()),Fc=m(T()),Mc=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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},jt=class extends Fc.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return qn.html`
907
+ <div class="${(0,Bc.classMap)(this.inputLabelClasses)}">
908
+ ${$c(this.text,()=>qn.html`
909
909
  <div class="ft-input-label--text ft-typography--caption">
910
910
  <label class="ft-input-label--floating-text">${this.text}</label>
911
911
  <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
912
912
  </div>
913
913
  `)}
914
914
  </div>
915
- `}};Vt.elementDefinitions={};$c([(0,qn.property)({type:String})],Vt.prototype,"text",void 0);$c([(0,qn.property)({type:Boolean})],Vt.prototype,"raised",void 0);var Yn=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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},nt=class extends Vt{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error}}};nt.elementDefinitions={};nt.styles=[Gr,Pc];Yn([(0,ci.property)({type:Boolean})],nt.prototype,"outlined",void 0);Yn([(0,ci.property)({type:Boolean})],nt.prototype,"error",void 0);Yn([(0,ci.property)({type:Boolean})],nt.prototype,"disabled",void 0);var zc=m(T());var Fc=m(M());var Se=m(T()),Ue={fontSize:Se.FtCssVariableFactory.extend("--ft-input-label-font-size","",Dr.fontSize),fontSizeRaised:Se.FtCssVariableFactory.extend("--ft-input-label-font-size-raised","",vr.fontSize),lineHeight:Se.FtCssVariableFactory.extend("--ft-input-label-line-height","",vr.lineHeight),color:Se.FtCssVariableFactory.extend("--ft-input-label-color","",Se.semantic.contentGlobalSubtle),largeFieldHeight:Se.FtCssVariableFactory.create("--ft-input-label-large-height","","SIZE","50px"),largeFieldVerticalGap:Se.FtCssVariableFactory.extend("--ft-input-label-large-field-vertical-gap","",l.spacing05),largeFieldHorizontalPadding:Se.FtCssVariableFactory.extend("--ft-input-label-large-field-horizontal-padding","",l.spacing4),mediumFieldHeight:Se.FtCssVariableFactory.create("--ft-input-label-medium-height","","SIZE","40px"),mediumFieldVerticalGap:Se.FtCssVariableFactory.create("--ft-input-label-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHorizontalPadding:Se.FtCssVariableFactory.extend("--ft-input-label-medium-field-horizontal-padding","",l.spacing4),additionalPaddingLeft:Se.FtCssVariableFactory.create("--ft-input-label-additional-padding-left","","SIZE","0px"),additionalPaddingRight:Se.FtCssVariableFactory.create("--ft-input-label-additional-padding-right","","SIZE","0px")},Uc=[Fc.css`
915
+ `}};jt.elementDefinitions={};Mc([(0,Yn.property)({type:String})],jt.prototype,"text",void 0);Mc([(0,Yn.property)({type:Boolean})],jt.prototype,"raised",void 0);var Xn=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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},nt=class extends jt{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error}}};nt.elementDefinitions={};nt.styles=[Vr,Dc];Xn([(0,di.property)({type:Boolean})],nt.prototype,"outlined",void 0);Xn([(0,di.property)({type:Boolean})],nt.prototype,"error",void 0);Xn([(0,di.property)({type:Boolean})],nt.prototype,"disabled",void 0);var Hc=m(T());var Uc=m(M());var Se=m(T()),Ue={fontSize:Se.FtCssVariableFactory.extend("--ft-input-label-font-size","",$r.fontSize),fontSizeRaised:Se.FtCssVariableFactory.extend("--ft-input-label-font-size-raised","",vr.fontSize),lineHeight:Se.FtCssVariableFactory.extend("--ft-input-label-line-height","",vr.lineHeight),color:Se.FtCssVariableFactory.extend("--ft-input-label-color","",Se.semantic.contentGlobalSubtle),largeFieldHeight:Se.FtCssVariableFactory.create("--ft-input-label-large-height","","SIZE","50px"),largeFieldVerticalGap:Se.FtCssVariableFactory.extend("--ft-input-label-large-field-vertical-gap","",l.spacing05),largeFieldHorizontalPadding:Se.FtCssVariableFactory.extend("--ft-input-label-large-field-horizontal-padding","",l.spacing4),mediumFieldHeight:Se.FtCssVariableFactory.create("--ft-input-label-medium-height","","SIZE","40px"),mediumFieldVerticalGap:Se.FtCssVariableFactory.create("--ft-input-label-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHorizontalPadding:Se.FtCssVariableFactory.extend("--ft-input-label-medium-field-horizontal-padding","",l.spacing4),additionalPaddingLeft:Se.FtCssVariableFactory.create("--ft-input-label-additional-padding-left","","SIZE","0px"),additionalPaddingRight:Se.FtCssVariableFactory.create("--ft-input-label-additional-padding-right","","SIZE","0px")},zc=[Uc.css`
916
916
 
917
917
  :root {
918
918
  --field-height: ${Ue.largeFieldHeight};
@@ -920,7 +920,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
920
920
  --field-horizontal-padding: ${Ue.largeFieldHorizontalPadding};
921
921
 
922
922
  --typo-caption-height: calc(${vr.lineHeight} * ${vr.fontSize});
923
- --typo-body-height: calc(${Dr.lineHeight} * ${Dr.fontSize});
923
+ --typo-body-height: calc(${$r.lineHeight} * ${$r.fontSize});
924
924
  --caption-label-and-value-combined-height: calc(var(--field-vertical-gap) + var(--typo-caption-height) + var(--typo-body-height));
925
925
  --input-content-vertical-padding: calc((var(--field-height) - var(--caption-label-and-value-combined-height)) / 2);
926
926
  }
@@ -994,7 +994,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
994
994
  top: var(--input-content-vertical-padding);
995
995
  }
996
996
 
997
- `];var Io=class extends(0,zc.toFtdsBase)(Vt){get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,...this.getDesignSystemBaseClasses()}}};Io.styles=[Gr,Uc];(0,Xn.customElement)("ft-input-label")(nt);(0,Xn.customElement)("ftds-input-label")(Io);var Hc=m(M()),q=m(T());var X={fontSize:q.FtCssVariableFactory.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:q.FtCssVariableFactory.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:q.FtCssVariableFactory.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:q.FtCssVariableFactory.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:q.FtCssVariableFactory.extend("--ft-text-area-helper-color","",q.designSystemVariables.colorOnSurfaceMedium),colorPrimary:q.FtCssVariableFactory.external(q.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:q.FtCssVariableFactory.external(q.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:q.FtCssVariableFactory.external(q.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:q.FtCssVariableFactory.external(q.designSystemVariables.borderRadiusS,"Design system"),colorError:q.FtCssVariableFactory.external(q.designSystemVariables.colorError,"Design system")},Wc=Hc.css`
997
+ `];var No=class extends(0,Hc.toFtdsBase)(jt){get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,...this.getDesignSystemBaseClasses()}}};No.styles=[Vr,zc];(0,Qn.customElement)("ft-input-label")(nt);(0,Qn.customElement)("ftds-input-label")(No);var Wc=m(M()),q=m(T());var X={fontSize:q.FtCssVariableFactory.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:q.FtCssVariableFactory.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:q.FtCssVariableFactory.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:q.FtCssVariableFactory.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:q.FtCssVariableFactory.extend("--ft-text-area-helper-color","",q.designSystemVariables.colorOnSurfaceMedium),colorPrimary:q.FtCssVariableFactory.external(q.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:q.FtCssVariableFactory.external(q.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:q.FtCssVariableFactory.external(q.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:q.FtCssVariableFactory.external(q.designSystemVariables.borderRadiusS,"Design system"),colorError:q.FtCssVariableFactory.external(q.designSystemVariables.colorError,"Design system")},Gc=Wc.css`
998
998
  *:focus {
999
999
  outline: none;
1000
1000
  }
@@ -1027,8 +1027,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1027
1027
  }
1028
1028
 
1029
1029
  .ft-text-area--input-panel ft-ripple {
1030
- ${(0,q.setVariable)(w.opacityContentOnSurfaceHover,"0.08")};
1031
- ${(0,q.setVariable)(w.opacityContentOnSurfacePressed,"0.04")};
1030
+ ${(0,q.setVariable)(O.opacityContentOnSurfaceHover,"0.08")};
1031
+ ${(0,q.setVariable)(O.opacityContentOnSurfacePressed,"0.04")};
1032
1032
  }
1033
1033
 
1034
1034
  .ft-text-area--input {
@@ -1094,7 +1094,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1094
1094
  position: absolute;
1095
1095
  bottom: 0;
1096
1096
  }
1097
- `;var jt=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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(0,ui.toFtFormComponent)(ui.FtLitElement){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){let e={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return di.html`
1097
+ `;var Kt=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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(0,pi.toFtFormComponent)(pi.FtLitElement){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){let e={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return ui.html`
1098
1098
  <style>
1099
1099
  .ft-text-area--main-panel {
1100
1100
  height: calc(4 * ${X.verticalSpacing} + ${X.labelSize} + ${X.fontSize} + ${this.height}px);
@@ -1104,7 +1104,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1104
1104
  right: ${this.textarea!=null?this.textarea.offsetWidth-this.textarea.clientWidth:0}px;
1105
1105
  }
1106
1106
  </style>
1107
- <div class="${(0,Gc.classMap)(e)}">
1107
+ <div class="${(0,Vc.classMap)(e)}">
1108
1108
  <div class="ft-text-area--main-panel">
1109
1109
  <ft-input-label text="${this.label}"
1110
1110
  ?disabled=${this.disabled}
@@ -1114,7 +1114,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1114
1114
  aria-hidden="true"
1115
1115
  ></ft-input-label>
1116
1116
  <div class="ft-text-area--input-panel">
1117
- ${this.outlined?null:di.html`
1117
+ ${this.outlined?null:ui.html`
1118
1118
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
1119
1119
  `}
1120
1120
  <textarea
@@ -1133,19 +1133,19 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1133
1133
  initialHeight="${this.height}"
1134
1134
  cursor="ns-resize"></ft-resizer>
1135
1135
  </div>
1136
- ${this.helper?di.html`
1136
+ ${this.helper?ui.html`
1137
1137
  <ft-typography class="ft-text-area--helper-text" variant="caption">
1138
1138
  ${this.helper}
1139
1139
  </ft-typography>`:void 0}
1140
1140
  </div>
1141
- `}setValue(e,r=!1){this.value=e,this.setFormValue(e),r&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(e){(e.key==="Enter"||e.key===" ")&&e.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var e;this.value=((e=this.textarea)===null||e===void 0?void 0:e.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(e){e.detail.height>=50&&(this.height=e.detail.height)}};De.elementDefinitions={"ft-input-label":nt,"ft-resizer":Pe,"ft-ripple":K,"ft-typography":pe};De.styles=[Wr,Wc];jt([(0,pt.property)({type:String})],De.prototype,"label",void 0);jt([(0,pt.property)({reflect:!0})],De.prototype,"value",void 0);jt([(0,pt.property)({type:String})],De.prototype,"helper",void 0);jt([(0,pt.property)({type:Boolean})],De.prototype,"outlined",void 0);jt([(0,pt.property)({type:Boolean})],De.prototype,"disabled",void 0);jt([(0,pt.property)({type:Boolean})],De.prototype,"error",void 0);jt([(0,pt.property)({type:Number,reflect:!0})],De.prototype,"height",void 0);jt([(0,pt.query)("textarea")],De.prototype,"textarea",void 0);jt([(0,pt.state)()],De.prototype,"focused",void 0);(0,Vc.customElement)("ft-text-area")(De);var Cu=m(Qn());var ea=m(T());var _o=m(Z()),Yc=m(T());var ar=m(T());var qc=m(T());var Kc=m(M()),Zc=m(T());var Tr=class extends Zc.FtLitElement{render(){return Kc.html`
1141
+ `}setValue(e,r=!1){this.value=e,this.setFormValue(e),r&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(e){(e.key==="Enter"||e.key===" ")&&e.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var e;this.value=((e=this.textarea)===null||e===void 0?void 0:e.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(e){e.detail.height>=50&&(this.height=e.detail.height)}};De.elementDefinitions={"ft-input-label":nt,"ft-resizer":Pe,"ft-ripple":K,"ft-typography":pe};De.styles=[Gr,Gc];Kt([(0,pt.property)({type:String})],De.prototype,"label",void 0);Kt([(0,pt.property)({reflect:!0})],De.prototype,"value",void 0);Kt([(0,pt.property)({type:String})],De.prototype,"helper",void 0);Kt([(0,pt.property)({type:Boolean})],De.prototype,"outlined",void 0);Kt([(0,pt.property)({type:Boolean})],De.prototype,"disabled",void 0);Kt([(0,pt.property)({type:Boolean})],De.prototype,"error",void 0);Kt([(0,pt.property)({type:Number,reflect:!0})],De.prototype,"height",void 0);Kt([(0,pt.query)("textarea")],De.prototype,"textarea",void 0);Kt([(0,pt.state)()],De.prototype,"focused",void 0);(0,jc.customElement)("ft-text-area")(De);var Ou=m(Jn());var ta=m(T());var Lo=m(Z()),Xc=m(T());var ar=m(T());var Yc=m(T());var Zc=m(M()),qc=m(T());var Tr=class extends qc.FtLitElement{render(){return Zc.html`
1142
1142
  <div class="ft-loader">
1143
1143
  <div></div>
1144
1144
  <div></div>
1145
1145
  <div></div>
1146
1146
  <div></div>
1147
1147
  </div>
1148
- `}};Tr.styles=Bs;(0,qc.customElement)("ft-loader")(Tr);var nr=m(M()),Jn=m(Bt()),Ce=m(Z());var ro=t=>t??ve;var _e=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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(0,ar.toFtFormComponent)(ar.FtLitElement){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!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,r,i;let n=nr.html`
1148
+ `}};Tr.styles=Fs;(0,Yc.customElement)("ft-loader")(Tr);var nr=m(M()),ea=m(Ft()),Ce=m(Z());var oo=t=>t??ve;var _e=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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(0,ar.toFtFormComponent)(ar.FtLitElement){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!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,r,i;let n=nr.html`
1149
1149
  <ft-ripple part="ripple"
1150
1150
  ?disabled=${this.isDisabled()}
1151
1151
  ?activated=${this.activated}
@@ -1162,16 +1162,16 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1162
1162
  <a href="${a}"
1163
1163
  target="${(e=this.target)!==null&&e!==void 0?e:"_self"}"
1164
1164
  part="button"
1165
- class="${(0,Jn.classMap)(this.buttonClasses)}"
1165
+ class="${(0,ea.classMap)(this.buttonClasses)}"
1166
1166
  aria-label="${(r=this.ariaLabel)!==null&&r!==void 0?r:this.getLabel()}"
1167
1167
  ?disabled=${this.isDisabled()}>
1168
1168
  ${n}
1169
1169
  </a>
1170
1170
  `:nr.html`
1171
1171
  <button part="button"
1172
- class="${(0,Jn.classMap)(this.buttonClasses)}"
1172
+ class="${(0,ea.classMap)(this.buttonClasses)}"
1173
1173
  aria-label="${(i=this.ariaLabel)!==null&&i!==void 0?i:this.getLabel()}"
1174
- aria-haspopup="${ro(this.ariaHasPopup)}"
1174
+ aria-haspopup="${oo(this.ariaHasPopup)}"
1175
1175
  ?disabled=${this.isDisabled()}>
1176
1176
  ${n}
1177
1177
  </button>
@@ -1186,7 +1186,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1186
1186
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
1187
1187
  `:nr.html`
1188
1188
  <slot part="icon" name="icon"></slot>
1189
- `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,ar.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};oe.elementDefinitions={"ft-ripple":K,"ft-tooltip":fe,"ft-typography":pe,"ft-icon":he,"ft-loader":Tr};_e([(0,Ce.property)()],oe.prototype,"href",void 0);_e([(0,Ce.property)()],oe.prototype,"target",void 0);_e([(0,Ce.property)()],oe.prototype,"type",void 0);_e([(0,Ce.property)({type:Boolean})],oe.prototype,"disabled",void 0);_e([(0,Ce.property)()],oe.prototype,"label",void 0);_e([(0,Ce.property)()],oe.prototype,"icon",void 0);_e([(0,Ce.property)()],oe.prototype,"iconVariant",void 0);_e([(0,Ce.property)({type:Boolean})],oe.prototype,"trailingIcon",void 0);_e([(0,Ce.property)({type:Boolean})],oe.prototype,"loading",void 0);_e([(0,Ce.property)({attribute:"aria-label"})],oe.prototype,"ariaLabel",void 0);_e([(0,Ce.property)()],oe.prototype,"ariaHasPopup",void 0);_e([(0,Ce.property)()],oe.prototype,"tooltipPosition",void 0);_e([(0,Ce.property)({type:Boolean})],oe.prototype,"hideTooltip",void 0);_e([(0,Ce.property)({type:Boolean})],oe.prototype,"forceTooltip",void 0);_e([(0,Ce.property)({type:Boolean})],oe.prototype,"activated",void 0);_e([(0,Ce.query)(".ft-button")],oe.prototype,"button",void 0);_e([(0,Ce.query)(".ft-button--label slot")],oe.prototype,"slottedContent",void 0);_e([(0,Ce.query)("[part=tooltip]")],oe.prototype,"tooltip",void 0);var pi=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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},Ct=class extends oe{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"}};Ct.styles=[Yc.safariEllipsisFix,Gs];pi([(0,_o.property)({type:Boolean})],Ct.prototype,"primary",void 0);pi([(0,_o.property)({type:Boolean})],Ct.prototype,"outlined",void 0);pi([(0,_o.property)({type:Boolean})],Ct.prototype,"dense",void 0);pi([(0,_o.property)({type:Boolean})],Ct.prototype,"round",void 0);var No=m(Z());var hi=m(T());var Xc=m(M()),C=m(T());var lp={...f,iconOnlyScale:C.FtCssVariableFactory.create("--ft-button-icon-only-scale","","NUMBER","1")},Qc=[Xc.css`
1189
+ `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,ar.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};oe.elementDefinitions={"ft-ripple":K,"ft-tooltip":fe,"ft-typography":pe,"ft-icon":he,"ft-loader":Tr};_e([(0,Ce.property)()],oe.prototype,"href",void 0);_e([(0,Ce.property)()],oe.prototype,"target",void 0);_e([(0,Ce.property)()],oe.prototype,"type",void 0);_e([(0,Ce.property)({type:Boolean})],oe.prototype,"disabled",void 0);_e([(0,Ce.property)()],oe.prototype,"label",void 0);_e([(0,Ce.property)()],oe.prototype,"icon",void 0);_e([(0,Ce.property)()],oe.prototype,"iconVariant",void 0);_e([(0,Ce.property)({type:Boolean})],oe.prototype,"trailingIcon",void 0);_e([(0,Ce.property)({type:Boolean})],oe.prototype,"loading",void 0);_e([(0,Ce.property)({attribute:"aria-label"})],oe.prototype,"ariaLabel",void 0);_e([(0,Ce.property)()],oe.prototype,"ariaHasPopup",void 0);_e([(0,Ce.property)()],oe.prototype,"tooltipPosition",void 0);_e([(0,Ce.property)({type:Boolean})],oe.prototype,"hideTooltip",void 0);_e([(0,Ce.property)({type:Boolean})],oe.prototype,"forceTooltip",void 0);_e([(0,Ce.property)({type:Boolean})],oe.prototype,"activated",void 0);_e([(0,Ce.query)(".ft-button")],oe.prototype,"button",void 0);_e([(0,Ce.query)(".ft-button--label slot")],oe.prototype,"slottedContent",void 0);_e([(0,Ce.query)("[part=tooltip]")],oe.prototype,"tooltip",void 0);var fi=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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},Ct=class extends oe{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"}};Ct.styles=[Xc.safariEllipsisFix,Vs];fi([(0,Lo.property)({type:Boolean})],Ct.prototype,"primary",void 0);fi([(0,Lo.property)({type:Boolean})],Ct.prototype,"outlined",void 0);fi([(0,Lo.property)({type:Boolean})],Ct.prototype,"dense",void 0);fi([(0,Lo.property)({type:Boolean})],Ct.prototype,"round",void 0);var ko=m(Z());var gi=m(T());var Qc=m(M()),C=m(T());var cp={...f,iconOnlyScale:C.FtCssVariableFactory.create("--ft-button-icon-only-scale","","NUMBER","1")},Jc=[Qc.css`
1190
1190
  :host {
1191
1191
  display: inline-block;
1192
1192
  max-width: 100%;
@@ -1269,7 +1269,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1269
1269
  }
1270
1270
 
1271
1271
  .ft-button.ft-button--icon-only ft-icon {
1272
- transform: scale(${lp.iconOnlyScale});
1272
+ transform: scale(${cp.iconOnlyScale});
1273
1273
  }
1274
1274
 
1275
1275
  /** Brand Primary styles **/
@@ -1277,11 +1277,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1277
1277
  .ftds--family-brand.ft-button--primary {
1278
1278
  ${(0,C.setVariable)(ne.color,f.primaryBrandIconColor)};
1279
1279
 
1280
- ${(0,C.setVariable)(w.color,f.primaryBrandStateLayerColor)};
1281
- ${(0,C.setVariable)(w.opacityContentOnSurfaceHover,f.primaryBrandHoverStateLayerOpacity)};
1282
- ${(0,C.setVariable)(w.opacityContentOnSurfaceFocused,f.primaryBrandFocusStateLayerOpacity)};
1283
- ${(0,C.setVariable)(w.opacityContentOnSurfaceSelected,f.primaryBrandActiveStateLayerOpacity)};
1284
- ${(0,C.setVariable)(w.opacityContentOnSurfacePressed,f.primaryBrandActiveStateLayerOpacity)};
1280
+ ${(0,C.setVariable)(O.color,f.primaryBrandStateLayerColor)};
1281
+ ${(0,C.setVariable)(O.opacityContentOnSurfaceHover,f.primaryBrandHoverStateLayerOpacity)};
1282
+ ${(0,C.setVariable)(O.opacityContentOnSurfaceFocused,f.primaryBrandFocusStateLayerOpacity)};
1283
+ ${(0,C.setVariable)(O.opacityContentOnSurfaceSelected,f.primaryBrandActiveStateLayerOpacity)};
1284
+ ${(0,C.setVariable)(O.opacityContentOnSurfacePressed,f.primaryBrandActiveStateLayerOpacity)};
1285
1285
 
1286
1286
  background-color: ${f.primaryBrandBackgroundColor};
1287
1287
  color: ${f.primaryBrandColor};
@@ -1301,11 +1301,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1301
1301
  .ftds--family-brand.ft-button--secondary {
1302
1302
  ${(0,C.setVariable)(ne.color,f.secondaryBrandIconColor)};
1303
1303
 
1304
- ${(0,C.setVariable)(w.color,f.secondaryBrandStateLayerColor)};
1305
- ${(0,C.setVariable)(w.opacityContentOnSurfaceHover,f.secondaryBrandHoverStateLayerOpacity)};
1306
- ${(0,C.setVariable)(w.opacityContentOnSurfaceFocused,f.secondaryBrandFocusStateLayerOpacity)};
1307
- ${(0,C.setVariable)(w.opacityContentOnSurfaceSelected,f.secondaryBrandActiveStateLayerOpacity)};
1308
- ${(0,C.setVariable)(w.opacityContentOnSurfacePressed,f.secondaryBrandActiveStateLayerOpacity)};
1304
+ ${(0,C.setVariable)(O.color,f.secondaryBrandStateLayerColor)};
1305
+ ${(0,C.setVariable)(O.opacityContentOnSurfaceHover,f.secondaryBrandHoverStateLayerOpacity)};
1306
+ ${(0,C.setVariable)(O.opacityContentOnSurfaceFocused,f.secondaryBrandFocusStateLayerOpacity)};
1307
+ ${(0,C.setVariable)(O.opacityContentOnSurfaceSelected,f.secondaryBrandActiveStateLayerOpacity)};
1308
+ ${(0,C.setVariable)(O.opacityContentOnSurfacePressed,f.secondaryBrandActiveStateLayerOpacity)};
1309
1309
 
1310
1310
  background-color: ${f.secondaryBrandBackgroundColor};
1311
1311
  color: ${f.secondaryBrandColor};
@@ -1326,11 +1326,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1326
1326
  .ftds--family-brand.ft-button--tertiary {
1327
1327
  ${(0,C.setVariable)(ne.color,f.tertiaryBrandIconColor)};
1328
1328
 
1329
- ${(0,C.setVariable)(w.color,f.tertiaryBrandStateLayerColor)};
1330
- ${(0,C.setVariable)(w.opacityContentOnSurfaceHover,f.tertiaryBrandHoverStateLayerOpacity)};
1331
- ${(0,C.setVariable)(w.opacityContentOnSurfaceFocused,f.tertiaryBrandFocusStateLayerOpacity)};
1332
- ${(0,C.setVariable)(w.opacityContentOnSurfaceSelected,f.tertiaryBrandActiveStateLayerOpacity)};
1333
- ${(0,C.setVariable)(w.opacityContentOnSurfacePressed,f.tertiaryBrandActiveStateLayerOpacity)};
1329
+ ${(0,C.setVariable)(O.color,f.tertiaryBrandStateLayerColor)};
1330
+ ${(0,C.setVariable)(O.opacityContentOnSurfaceHover,f.tertiaryBrandHoverStateLayerOpacity)};
1331
+ ${(0,C.setVariable)(O.opacityContentOnSurfaceFocused,f.tertiaryBrandFocusStateLayerOpacity)};
1332
+ ${(0,C.setVariable)(O.opacityContentOnSurfaceSelected,f.tertiaryBrandActiveStateLayerOpacity)};
1333
+ ${(0,C.setVariable)(O.opacityContentOnSurfacePressed,f.tertiaryBrandActiveStateLayerOpacity)};
1334
1334
 
1335
1335
  background-color: ${f.tertiaryBrandBackgroundColor};
1336
1336
  color: ${f.tertiaryBrandColor};
@@ -1350,11 +1350,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1350
1350
  .ftds--family-neutral.ft-button--secondary {
1351
1351
  ${(0,C.setVariable)(ne.color,f.secondaryNeutralIconColor)};
1352
1352
 
1353
- ${(0,C.setVariable)(w.backgroundColor,f.secondaryNeutralStateLayerColor)};
1354
- ${(0,C.setVariable)(w.opacityContentOnSurfaceHover,f.secondaryNeutralHoverStateLayerOpacity)};
1355
- ${(0,C.setVariable)(w.opacityContentOnSurfaceFocused,f.secondaryNeutralFocusStateLayerOpacity)};
1356
- ${(0,C.setVariable)(w.opacityContentOnSurfaceSelected,f.secondaryNeutralActiveStateLayerOpacity)};
1357
- ${(0,C.setVariable)(w.opacityContentOnSurfacePressed,f.secondaryNeutralActiveStateLayerOpacity)};
1353
+ ${(0,C.setVariable)(O.backgroundColor,f.secondaryNeutralStateLayerColor)};
1354
+ ${(0,C.setVariable)(O.opacityContentOnSurfaceHover,f.secondaryNeutralHoverStateLayerOpacity)};
1355
+ ${(0,C.setVariable)(O.opacityContentOnSurfaceFocused,f.secondaryNeutralFocusStateLayerOpacity)};
1356
+ ${(0,C.setVariable)(O.opacityContentOnSurfaceSelected,f.secondaryNeutralActiveStateLayerOpacity)};
1357
+ ${(0,C.setVariable)(O.opacityContentOnSurfacePressed,f.secondaryNeutralActiveStateLayerOpacity)};
1358
1358
 
1359
1359
  background-color: ${f.secondaryNeutralBackgroundColor};
1360
1360
  color: ${f.secondaryNeutralColor};
@@ -1375,11 +1375,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1375
1375
  .ftds--family-neutral.ft-button--tertiary {
1376
1376
  ${(0,C.setVariable)(ne.color,f.tertiaryNeutralIconColor)};
1377
1377
 
1378
- ${(0,C.setVariable)(w.backgroundColor,f.tertiaryNeutralStateLayerColor)};
1379
- ${(0,C.setVariable)(w.opacityContentOnSurfaceHover,f.tertiaryNeutralHoverStateLayerOpacity)};
1380
- ${(0,C.setVariable)(w.opacityContentOnSurfaceFocused,f.tertiaryNeutralFocusStateLayerOpacity)};
1381
- ${(0,C.setVariable)(w.opacityContentOnSurfaceSelected,f.tertiaryNeutralActiveStateLayerOpacity)};
1382
- ${(0,C.setVariable)(w.opacityContentOnSurfacePressed,f.tertiaryNeutralActiveStateLayerOpacity)};
1378
+ ${(0,C.setVariable)(O.backgroundColor,f.tertiaryNeutralStateLayerColor)};
1379
+ ${(0,C.setVariable)(O.opacityContentOnSurfaceHover,f.tertiaryNeutralHoverStateLayerOpacity)};
1380
+ ${(0,C.setVariable)(O.opacityContentOnSurfaceFocused,f.tertiaryNeutralFocusStateLayerOpacity)};
1381
+ ${(0,C.setVariable)(O.opacityContentOnSurfaceSelected,f.tertiaryNeutralActiveStateLayerOpacity)};
1382
+ ${(0,C.setVariable)(O.opacityContentOnSurfacePressed,f.tertiaryNeutralActiveStateLayerOpacity)};
1383
1383
 
1384
1384
  background-color: ${f.tertiaryNeutralBackgroundColor};
1385
1385
  color: ${f.tertiaryNeutralColor};
@@ -1399,11 +1399,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1399
1399
  .ftds--family-info.ft-button--secondary {
1400
1400
  ${(0,C.setVariable)(ne.color,f.secondaryInfoIconColor)};
1401
1401
 
1402
- ${(0,C.setVariable)(w.backgroundColor,f.secondaryInfoStateLayerColor)};
1403
- ${(0,C.setVariable)(w.opacityContentOnSurfaceHover,f.secondaryInfoHoverStateLayerOpacity)};
1404
- ${(0,C.setVariable)(w.opacityContentOnSurfaceFocused,f.secondaryInfoFocusStateLayerOpacity)};
1405
- ${(0,C.setVariable)(w.opacityContentOnSurfaceSelected,f.secondaryInfoActiveStateLayerOpacity)};
1406
- ${(0,C.setVariable)(w.opacityContentOnSurfacePressed,f.secondaryInfoActiveStateLayerOpacity)};
1402
+ ${(0,C.setVariable)(O.backgroundColor,f.secondaryInfoStateLayerColor)};
1403
+ ${(0,C.setVariable)(O.opacityContentOnSurfaceHover,f.secondaryInfoHoverStateLayerOpacity)};
1404
+ ${(0,C.setVariable)(O.opacityContentOnSurfaceFocused,f.secondaryInfoFocusStateLayerOpacity)};
1405
+ ${(0,C.setVariable)(O.opacityContentOnSurfaceSelected,f.secondaryInfoActiveStateLayerOpacity)};
1406
+ ${(0,C.setVariable)(O.opacityContentOnSurfacePressed,f.secondaryInfoActiveStateLayerOpacity)};
1407
1407
 
1408
1408
  background-color: ${f.secondaryInfoBackgroundColor};
1409
1409
  color: ${f.secondaryInfoColor};
@@ -1424,11 +1424,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1424
1424
  .ftds--family-info.ft-button--tertiary {
1425
1425
  ${(0,C.setVariable)(ne.color,f.tertiaryInfoIconColor)};
1426
1426
 
1427
- ${(0,C.setVariable)(w.backgroundColor,f.tertiaryInfoStateLayerColor)};
1428
- ${(0,C.setVariable)(w.opacityContentOnSurfaceHover,f.tertiaryInfoHoverStateLayerOpacity)};
1429
- ${(0,C.setVariable)(w.opacityContentOnSurfaceFocused,f.tertiaryInfoFocusStateLayerOpacity)};
1430
- ${(0,C.setVariable)(w.opacityContentOnSurfaceSelected,f.tertiaryInfoActiveStateLayerOpacity)};
1431
- ${(0,C.setVariable)(w.opacityContentOnSurfacePressed,f.tertiaryInfoActiveStateLayerOpacity)};
1427
+ ${(0,C.setVariable)(O.backgroundColor,f.tertiaryInfoStateLayerColor)};
1428
+ ${(0,C.setVariable)(O.opacityContentOnSurfaceHover,f.tertiaryInfoHoverStateLayerOpacity)};
1429
+ ${(0,C.setVariable)(O.opacityContentOnSurfaceFocused,f.tertiaryInfoFocusStateLayerOpacity)};
1430
+ ${(0,C.setVariable)(O.opacityContentOnSurfaceSelected,f.tertiaryInfoActiveStateLayerOpacity)};
1431
+ ${(0,C.setVariable)(O.opacityContentOnSurfacePressed,f.tertiaryInfoActiveStateLayerOpacity)};
1432
1432
 
1433
1433
  background-color: ${f.tertiaryInfoBackgroundColor};
1434
1434
  color: ${f.tertiaryInfoColor};
@@ -1448,11 +1448,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1448
1448
  .ftds--family-success.ft-button--secondary {
1449
1449
  ${(0,C.setVariable)(ne.color,f.secondarySuccessIconColor)};
1450
1450
 
1451
- ${(0,C.setVariable)(w.backgroundColor,f.secondarySuccessStateLayerColor)};
1452
- ${(0,C.setVariable)(w.opacityContentOnSurfaceHover,f.secondarySuccessHoverStateLayerOpacity)};
1453
- ${(0,C.setVariable)(w.opacityContentOnSurfaceFocused,f.secondarySuccessFocusStateLayerOpacity)};
1454
- ${(0,C.setVariable)(w.opacityContentOnSurfaceSelected,f.secondarySuccessActiveStateLayerOpacity)};
1455
- ${(0,C.setVariable)(w.opacityContentOnSurfacePressed,f.secondarySuccessActiveStateLayerOpacity)};
1451
+ ${(0,C.setVariable)(O.backgroundColor,f.secondarySuccessStateLayerColor)};
1452
+ ${(0,C.setVariable)(O.opacityContentOnSurfaceHover,f.secondarySuccessHoverStateLayerOpacity)};
1453
+ ${(0,C.setVariable)(O.opacityContentOnSurfaceFocused,f.secondarySuccessFocusStateLayerOpacity)};
1454
+ ${(0,C.setVariable)(O.opacityContentOnSurfaceSelected,f.secondarySuccessActiveStateLayerOpacity)};
1455
+ ${(0,C.setVariable)(O.opacityContentOnSurfacePressed,f.secondarySuccessActiveStateLayerOpacity)};
1456
1456
 
1457
1457
  background-color: ${f.secondarySuccessBackgroundColor};
1458
1458
  color: ${f.secondarySuccessColor};
@@ -1473,11 +1473,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1473
1473
  .ftds--family-success.ft-button--tertiary {
1474
1474
  ${(0,C.setVariable)(ne.color,f.tertiarySuccessIconColor)};
1475
1475
 
1476
- ${(0,C.setVariable)(w.backgroundColor,f.tertiarySuccessStateLayerColor)};
1477
- ${(0,C.setVariable)(w.opacityContentOnSurfaceHover,f.tertiarySuccessHoverStateLayerOpacity)};
1478
- ${(0,C.setVariable)(w.opacityContentOnSurfaceFocused,f.tertiarySuccessFocusStateLayerOpacity)};
1479
- ${(0,C.setVariable)(w.opacityContentOnSurfaceSelected,f.tertiarySuccessActiveStateLayerOpacity)};
1480
- ${(0,C.setVariable)(w.opacityContentOnSurfacePressed,f.tertiarySuccessActiveStateLayerOpacity)};
1476
+ ${(0,C.setVariable)(O.backgroundColor,f.tertiarySuccessStateLayerColor)};
1477
+ ${(0,C.setVariable)(O.opacityContentOnSurfaceHover,f.tertiarySuccessHoverStateLayerOpacity)};
1478
+ ${(0,C.setVariable)(O.opacityContentOnSurfaceFocused,f.tertiarySuccessFocusStateLayerOpacity)};
1479
+ ${(0,C.setVariable)(O.opacityContentOnSurfaceSelected,f.tertiarySuccessActiveStateLayerOpacity)};
1480
+ ${(0,C.setVariable)(O.opacityContentOnSurfacePressed,f.tertiarySuccessActiveStateLayerOpacity)};
1481
1481
 
1482
1482
  background-color: ${f.tertiarySuccessBackgroundColor};
1483
1483
  color: ${f.tertiarySuccessColor};
@@ -1497,11 +1497,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1497
1497
  .ftds--family-warning.ft-button--secondary {
1498
1498
  ${(0,C.setVariable)(ne.color,f.secondaryWarningIconColor)};
1499
1499
 
1500
- ${(0,C.setVariable)(w.backgroundColor,f.secondaryWarningStateLayerColor)};
1501
- ${(0,C.setVariable)(w.opacityContentOnSurfaceHover,f.secondaryWarningHoverStateLayerOpacity)};
1502
- ${(0,C.setVariable)(w.opacityContentOnSurfaceFocused,f.secondaryWarningFocusStateLayerOpacity)};
1503
- ${(0,C.setVariable)(w.opacityContentOnSurfaceSelected,f.secondaryWarningActiveStateLayerOpacity)};
1504
- ${(0,C.setVariable)(w.opacityContentOnSurfacePressed,f.secondaryWarningActiveStateLayerOpacity)};
1500
+ ${(0,C.setVariable)(O.backgroundColor,f.secondaryWarningStateLayerColor)};
1501
+ ${(0,C.setVariable)(O.opacityContentOnSurfaceHover,f.secondaryWarningHoverStateLayerOpacity)};
1502
+ ${(0,C.setVariable)(O.opacityContentOnSurfaceFocused,f.secondaryWarningFocusStateLayerOpacity)};
1503
+ ${(0,C.setVariable)(O.opacityContentOnSurfaceSelected,f.secondaryWarningActiveStateLayerOpacity)};
1504
+ ${(0,C.setVariable)(O.opacityContentOnSurfacePressed,f.secondaryWarningActiveStateLayerOpacity)};
1505
1505
 
1506
1506
  background-color: ${f.secondaryWarningBackgroundColor};
1507
1507
  color: ${f.secondaryWarningColor};
@@ -1522,11 +1522,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1522
1522
  .ftds--family-warning.ft-button--tertiary {
1523
1523
  ${(0,C.setVariable)(ne.color,f.tertiaryWarningIconColor)};
1524
1524
 
1525
- ${(0,C.setVariable)(w.backgroundColor,f.tertiaryWarningStateLayerColor)};
1526
- ${(0,C.setVariable)(w.opacityContentOnSurfaceHover,f.tertiaryWarningHoverStateLayerOpacity)};
1527
- ${(0,C.setVariable)(w.opacityContentOnSurfaceFocused,f.tertiaryWarningFocusStateLayerOpacity)};
1528
- ${(0,C.setVariable)(w.opacityContentOnSurfaceSelected,f.tertiaryWarningActiveStateLayerOpacity)};
1529
- ${(0,C.setVariable)(w.opacityContentOnSurfacePressed,f.tertiaryWarningActiveStateLayerOpacity)};
1525
+ ${(0,C.setVariable)(O.backgroundColor,f.tertiaryWarningStateLayerColor)};
1526
+ ${(0,C.setVariable)(O.opacityContentOnSurfaceHover,f.tertiaryWarningHoverStateLayerOpacity)};
1527
+ ${(0,C.setVariable)(O.opacityContentOnSurfaceFocused,f.tertiaryWarningFocusStateLayerOpacity)};
1528
+ ${(0,C.setVariable)(O.opacityContentOnSurfaceSelected,f.tertiaryWarningActiveStateLayerOpacity)};
1529
+ ${(0,C.setVariable)(O.opacityContentOnSurfacePressed,f.tertiaryWarningActiveStateLayerOpacity)};
1530
1530
 
1531
1531
  background-color: ${f.tertiaryWarningBackgroundColor};
1532
1532
  color: ${f.tertiaryWarningColor};
@@ -1546,11 +1546,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1546
1546
  .ftds--family-error.ft-button--secondary {
1547
1547
  ${(0,C.setVariable)(ne.color,f.secondaryErrorIconColor)};
1548
1548
 
1549
- ${(0,C.setVariable)(w.backgroundColor,f.secondaryErrorStateLayerColor)};
1550
- ${(0,C.setVariable)(w.opacityContentOnSurfaceHover,f.secondaryErrorHoverStateLayerOpacity)};
1551
- ${(0,C.setVariable)(w.opacityContentOnSurfaceFocused,f.secondaryErrorFocusStateLayerOpacity)};
1552
- ${(0,C.setVariable)(w.opacityContentOnSurfaceSelected,f.secondaryErrorActiveStateLayerOpacity)};
1553
- ${(0,C.setVariable)(w.opacityContentOnSurfacePressed,f.secondaryErrorActiveStateLayerOpacity)};
1549
+ ${(0,C.setVariable)(O.backgroundColor,f.secondaryErrorStateLayerColor)};
1550
+ ${(0,C.setVariable)(O.opacityContentOnSurfaceHover,f.secondaryErrorHoverStateLayerOpacity)};
1551
+ ${(0,C.setVariable)(O.opacityContentOnSurfaceFocused,f.secondaryErrorFocusStateLayerOpacity)};
1552
+ ${(0,C.setVariable)(O.opacityContentOnSurfaceSelected,f.secondaryErrorActiveStateLayerOpacity)};
1553
+ ${(0,C.setVariable)(O.opacityContentOnSurfacePressed,f.secondaryErrorActiveStateLayerOpacity)};
1554
1554
 
1555
1555
  background-color: ${f.secondaryErrorBackgroundColor};
1556
1556
  color: ${f.secondaryErrorColor};
@@ -1571,11 +1571,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1571
1571
  .ftds--family-error.ft-button--tertiary {
1572
1572
  ${(0,C.setVariable)(ne.color,f.tertiaryErrorIconColor)};
1573
1573
 
1574
- ${(0,C.setVariable)(w.backgroundColor,f.tertiaryErrorStateLayerColor)};
1575
- ${(0,C.setVariable)(w.opacityContentOnSurfaceHover,f.tertiaryErrorHoverStateLayerOpacity)};
1576
- ${(0,C.setVariable)(w.opacityContentOnSurfaceFocused,f.tertiaryErrorFocusStateLayerOpacity)};
1577
- ${(0,C.setVariable)(w.opacityContentOnSurfaceSelected,f.tertiaryErrorActiveStateLayerOpacity)};
1578
- ${(0,C.setVariable)(w.opacityContentOnSurfacePressed,f.tertiaryErrorActiveStateLayerOpacity)};
1574
+ ${(0,C.setVariable)(O.backgroundColor,f.tertiaryErrorStateLayerColor)};
1575
+ ${(0,C.setVariable)(O.opacityContentOnSurfaceHover,f.tertiaryErrorHoverStateLayerOpacity)};
1576
+ ${(0,C.setVariable)(O.opacityContentOnSurfaceFocused,f.tertiaryErrorFocusStateLayerOpacity)};
1577
+ ${(0,C.setVariable)(O.opacityContentOnSurfaceSelected,f.tertiaryErrorActiveStateLayerOpacity)};
1578
+ ${(0,C.setVariable)(O.opacityContentOnSurfacePressed,f.tertiaryErrorActiveStateLayerOpacity)};
1579
1579
 
1580
1580
  background-color: ${f.tertiaryErrorBackgroundColor};
1581
1581
  color: ${f.tertiaryErrorColor};
@@ -1656,15 +1656,15 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1656
1656
  .ftds--size-small.ft-button--icon-only {
1657
1657
  width: ${f.smallIconOnlyWidth};
1658
1658
  }
1659
- `,C.noTextSelect];var fi=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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},Kt=class extends(0,hi.toFtdsBase)(oe){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=Ko.brand,this.iconVariant=Fe.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 $r.large:return rr.body2medium;case $r.medium:return rr.caption1medium;case $r.small:return rr.caption2medium}}};Kt.styles=[hi.safariEllipsisFix,Qc];fi([(0,No.property)({type:Boolean})],Kt.prototype,"primary",void 0);fi([(0,No.property)({type:Boolean})],Kt.prototype,"secondary",void 0);fi([(0,No.property)({type:Boolean})],Kt.prototype,"tertiary",void 0);fi([(0,No.property)({type:Boolean})],Kt.prototype,"round",void 0);(0,ea.customElement)("ft-button")(Ct);(0,ea.customElement)("ftds-button")(Kt);var su=m(T());var Hi=m(M()),Wi=m(Z()),Gi=m(T());var Jc=m(M());var ed=Jc.css`
1660
- `;var fo=m(T());var ou=m(T());var dd=m(M()),$e=m(Z()),Ot=m(T());var td=m(M());var rd=td.css`
1661
- `;var gi=m(T()),cp="ft-app-info",kt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};kt.eventName="authentication-change";var dp={session:(t,e)=>{(0,gi.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>E.dispatchEvent(new kt(e.payload)),0))}},E=gi.FtReduxStore.get({name:cp,reducers:dp,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var ta=m(T());var Ir=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=E.getState(),n=e??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let n=E.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var yi=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Ir.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ir.await()}};var Ze=class extends yi{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([c],[u])=>c.localeCompare(u)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new ta.CacheRegistry,this.cache=e?n.commonCache:new ta.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var mi=class extends Ze{async listMyBookmarks(){let e=E.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var ra=class{addCommand(e,r=!1){E.commands.add(e,r)}consumeCommand(e){return E.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new ra;var ft=m(T());var od,oo=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},up=Symbol("clearAfterUnitTest"),bi=class extends(0,ft.withEventBus)(Ze){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[od]=()=>{this.defaultMessages={},this.cache=new ft.CacheRegistry,this.listeners={}},this.currentUiLocale=E.getState().uiLocale,E.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=E.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 i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,ft.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new ft.ParametrizedLabelResolver((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof ft.CanceledPromiseError)&&r&&console.error(n)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i: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(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new oo({loadedContexts:e})),this.dispatchEvent(new oo({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new oo({loadedContexts:[e]})),this.dispatchEvent(new oo({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,ft.delay)(0).then(()=>i()).catch(()=>null)))}};od=up;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends bi{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends bi{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var io=window.FluidTopicsI18nService,xi=window.FluidTopicsCustomI18nService;var id=m(T()),oa=class{highlightHtml(e,r,i){(0,id.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new oa;var vi=class extends Ze{async listMySearches(){let{session:e}=E.getState();return Mt(e,te.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var nd=m(T());var ia=class{isDate(e){var r,i,n,a;return(a=(n=((i=(r=E.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(c=>c.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,r){var i,n,a;return nd.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:E.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new ia;var ad=m(T());var Lo=class{static get(e,r){var i,n;let a=E.getState(),{lang:s,region:c}=(n=(i=a.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new ad.SearchPlaceConverter(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,r??`${s}-${c}`)}};var na=class{urlToSearchRequest(e){return Lo.get().parse(e)}searchRequestToUrl(e){return Lo.get().serialize(e)}};window.FluidTopicsUrlService=new na;var sr=m(T());var _r=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};_r.eventName="change";var aa=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},sd=new aa;var Si=class t extends sr.WithEventBus{static build(){return new t(window.history,sd,()=>window.location,!1)}constructor(e,r,i,n){var a,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,sr.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new _r(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[a,s,c])=>{let u=r(),p={...u===this.currentIndex?this.currentState:void 0,...a,index:u,href:typeof c=="string"?c:(c??this.windowLocation()).href};i.apply(n,[p,s,c]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addHistoryChangeListener(e){this.addEventListener(_r.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(_r.eventName,e)}currentItem(){return(0,sr.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,sr.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,sr.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let n=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,i);)this.hasState(a)&&(n=a),a++;return n}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,a=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return a==null||a!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Si.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var no=class{constructor(){this.storeListeners=[]}store(e,r){if(this.isAuthenticated())return;let i=JSON.stringify(r);window.localStorage.setItem(e,i),window.dispatchEvent(new StorageEvent("storage",{key:e,newValue:i,storageArea:window.localStorage}))}get(e){var r,i;if(!this.isAuthenticated())return(i=JSON.parse((r=window.localStorage.getItem(e))!==null&&r!==void 0?r:"null"))!==null&&i!==void 0?i:void 0}addStoreListener(e,r){let i=n=>{n.key===e()&&!this.isAuthenticated()&&r()};this.storeListeners.push(i),window.addEventListener("storage",i)}clearStoreListeners(){this.storeListeners.forEach(e=>window.removeEventListener("storage",e)),this.storeListeners.length=0}isAuthenticated(){let e=E.getState().session;return!!e?.sessionAuthenticated}};var ld=E;function cd(t,e){var r;return ld.getState().authenticationRequired&&!(!((r=ld.getState().session)===null||r===void 0)&&r.sessionAuthenticated)?Promise.resolve(e):t()}var Ee=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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},ie=class extends Ot.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",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=()=>Ir.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new Ot.CacheRegistry,this.cleanSessionDebouncer=new Ot.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return dd.html`
1659
+ `,C.noTextSelect];var hi=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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},Zt=class extends(0,gi.toFtdsBase)(oe){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=Zo.brand,this.iconVariant=Fe.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 Mr.large:return rr.body2medium;case Mr.medium:return rr.caption1medium;case Mr.small:return rr.caption2medium}}};Zt.styles=[gi.safariEllipsisFix,Jc];hi([(0,ko.property)({type:Boolean})],Zt.prototype,"primary",void 0);hi([(0,ko.property)({type:Boolean})],Zt.prototype,"secondary",void 0);hi([(0,ko.property)({type:Boolean})],Zt.prototype,"tertiary",void 0);hi([(0,ko.property)({type:Boolean})],Zt.prototype,"round",void 0);(0,ta.customElement)("ft-button")(Ct);(0,ta.customElement)("ftds-button")(Zt);var lu=m(T());var Wi=m(M()),Gi=m(Z()),Vi=m(T());var ed=m(M());var td=ed.css`
1660
+ `;var go=m(T());var iu=m(T());var ud=m(M()),$e=m(Z()),Ot=m(T());var rd=m(M());var od=rd.css`
1661
+ `;var yi=m(T()),dp="ft-app-info",kt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};kt.eventName="authentication-change";var up={session:(t,e)=>{(0,yi.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>E.dispatchEvent(new kt(e.payload)),0))}},E=yi.FtReduxStore.get({name:dp,reducers:up,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var ra=m(T());var Ir=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=E.getState(),n=e??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let n=E.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var mi=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Ir.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ir.await()}};var Ze=class extends mi{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([c],[u])=>c.localeCompare(u)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new ra.CacheRegistry,this.cache=e?n.commonCache:new ra.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var bi=class extends Ze{async listMyBookmarks(){let e=E.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var oa=class{addCommand(e,r=!1){E.commands.add(e,r)}consumeCommand(e){return E.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new oa;var ft=m(T());var id,io=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},pp=Symbol("clearAfterUnitTest"),xi=class extends(0,ft.withEventBus)(Ze){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[id]=()=>{this.defaultMessages={},this.cache=new ft.CacheRegistry,this.listeners={}},this.currentUiLocale=E.getState().uiLocale,E.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=E.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 i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,ft.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new ft.ParametrizedLabelResolver((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof ft.CanceledPromiseError)&&r&&console.error(n)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i: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(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new io({loadedContexts:e})),this.dispatchEvent(new io({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new io({loadedContexts:[e]})),this.dispatchEvent(new io({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,ft.delay)(0).then(()=>i()).catch(()=>null)))}};id=pp;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends xi{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends xi{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var no=window.FluidTopicsI18nService,vi=window.FluidTopicsCustomI18nService;var nd=m(T()),ia=class{highlightHtml(e,r,i){(0,nd.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new ia;var Si=class extends Ze{async listMySearches(){let{session:e}=E.getState();return Bt(e,te.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var ad=m(T());var na=class{isDate(e){var r,i,n,a;return(a=(n=((i=(r=E.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(c=>c.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,r){var i,n,a;return ad.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:E.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new na;var sd=m(T());var Po=class{static get(e,r){var i,n;let a=E.getState(),{lang:s,region:c}=(n=(i=a.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new sd.SearchPlaceConverter(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,r??`${s}-${c}`)}};var aa=class{urlToSearchRequest(e){return Po.get().parse(e)}searchRequestToUrl(e){return Po.get().serialize(e)}};window.FluidTopicsUrlService=new aa;var sr=m(T());var _r=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};_r.eventName="change";var sa=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},ld=new sa;var Ci=class t extends sr.WithEventBus{static build(){return new t(window.history,ld,()=>window.location,!1)}constructor(e,r,i,n){var a,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,sr.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new _r(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[a,s,c])=>{let u=r(),p={...u===this.currentIndex?this.currentState:void 0,...a,index:u,href:typeof c=="string"?c:(c??this.windowLocation()).href};i.apply(n,[p,s,c]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addHistoryChangeListener(e){this.addEventListener(_r.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(_r.eventName,e)}currentItem(){return(0,sr.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,sr.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,sr.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let n=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,i);)this.hasState(a)&&(n=a),a++;return n}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,a=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return a==null||a!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Ci.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var ao=class{constructor(){this.storeListeners=[]}store(e,r){if(this.isAuthenticated())return;let i=JSON.stringify(r);window.localStorage.setItem(e,i),window.dispatchEvent(new StorageEvent("storage",{key:e,newValue:i,storageArea:window.localStorage}))}get(e){var r,i;if(!this.isAuthenticated())return(i=JSON.parse((r=window.localStorage.getItem(e))!==null&&r!==void 0?r:"null"))!==null&&i!==void 0?i:void 0}addStoreListener(e,r){let i=n=>{n.key===e()&&!this.isAuthenticated()&&r()};this.storeListeners.push(i),window.addEventListener("storage",i)}clearStoreListeners(){this.storeListeners.forEach(e=>window.removeEventListener("storage",e)),this.storeListeners.length=0}isAuthenticated(){let e=E.getState().session;return!!e?.sessionAuthenticated}};var cd=E;function dd(t,e){var r;return cd.getState().authenticationRequired&&!(!((r=cd.getState().session)===null||r===void 0)&&r.sessionAuthenticated)?Promise.resolve(e):t()}var Ee=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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},ie=class extends Ot.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",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=()=>Ir.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new Ot.CacheRegistry,this.cleanSessionDebouncer=new Ot.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return ud.html`
1662
1662
  <slot></slot>
1663
- `}connectedCallback(){super.connectedCallback(),E.addEventListener(kt.eventName,this.reloadConfiguration)}disconnectedCallback(){E.addEventListener(kt.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var r,i,n,a,s,c,u;super.update(e),e.has("baseUrl")&&(E.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&E.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&E.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&E.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&E.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&E.actions.noCustom(this.noCustom),e.has("editorMode")&&E.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&E.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&E.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(p=>io.addContext(p)),e.has("openExternalDocumentInNewTab")&&E.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&E.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&E.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(E.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),E.actions.availableUiLocales((n=(i=this.localesConfiguration)===null||i===void 0?void 0:i.availableUiLocales)!==null&&n!==void 0?n:[]),E.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&E.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&E.actions.availableContentLocales((u=(c=this.availableContentLocales)===null||c===void 0?void 0:c.contentLocales)!==null&&u!==void 0?u:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}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 updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>cd(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};ie.elementDefinitions={};ie.styles=rd;Ee([(0,$e.property)()],ie.prototype,"baseUrl",void 0);Ee([(0,$e.property)()],ie.prototype,"apiIntegrationIdentifier",void 0);Ee([(0,$e.property)()],ie.prototype,"apiIntegrationAppVersion",void 0);Ee([(0,$e.property)()],ie.prototype,"uiLocale",void 0);Ee([(0,Ot.jsonProperty)(null)],ie.prototype,"availableUiLocales",void 0);Ee([(0,Ot.jsonProperty)(null)],ie.prototype,"metadataConfiguration",void 0);Ee([(0,$e.property)({type:Boolean})],ie.prototype,"editorMode",void 0);Ee([(0,$e.property)({type:Boolean})],ie.prototype,"noCustom",void 0);Ee([(0,$e.property)({type:Boolean})],ie.prototype,"openExternalDocumentInNewTab",void 0);Ee([(0,$e.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ie.prototype,"noCustomComponent",void 0);Ee([(0,$e.property)({type:Boolean})],ie.prototype,"withManualResources",void 0);Ee([(0,$e.property)({type:Boolean})],ie.prototype,"navigatorOnline",void 0);Ee([(0,$e.property)({type:Boolean})],ie.prototype,"forcedOffline",void 0);Ee([(0,$e.property)({type:Object})],ie.prototype,"apiProvider",void 0);Ee([(0,$e.property)({type:Boolean})],ie.prototype,"authenticationRequired",void 0);Ee([(0,Ot.jsonProperty)([])],ie.prototype,"messageContexts",void 0);Ee([(0,Ot.jsonProperty)(void 0)],ie.prototype,"session",void 0);Ee([(0,$e.state)()],ie.prototype,"localesConfiguration",void 0);Ee([(0,$e.state)()],ie.prototype,"availableContentLocales",void 0);var Na=m(Z());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;let r,i,n;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!Ci(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!Ci(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[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();let a=s=>Object.keys(s).filter(c=>s[c]!=null);if(n=a(t),r=n.length,r!==a(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=r;i--!==0;){let s=n[i];if(!Ci(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Ci(t,e){try{return pp(t,e)}catch{return!1}}function ko(t,e){return!Ci(t,e)}function Oi(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let n=e(i);return n[t]=!0,n}}var ud=m(Z(),1);var sa=t=>{let e=t??{};return(r,i)=>{var n;let a={hasChanged:ko,attribute:!1,...e};(0,ud.property)(a)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:c=>c[i],store:e.store})}};var wi=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var ao=m(Z(),1);var pd=m(Z(),1);function fd(t,e){let r=()=>JSON.parse(JSON.stringify(t));return(0,pd.property)({type:Object,converter:{fromAttribute:i=>{if(i==null)return r();try{return JSON.parse(i)}catch{return r()}},toAttribute:i=>JSON.stringify(i)},hasChanged:ko,...e??{}})}var Ei=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,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...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 i)try{await s()}catch(c){n(c);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 gd=m(M(),1);var Ai=globalThis,fp=Ai.ShadowRoot&&(Ai.ShadyCSS===void 0||Ai.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,QS=Symbol();var hd=(t,e)=>{if(fp)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=Ai.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}};var Ri=class extends gd.LitElement{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},i=this.renderOptions.creationScope=this.attachShadow(r);return hd(i,e.elementStyles),i}};function yd(t,e,...r){var i;let n=t.querySelector(e);for(let a of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}var Po=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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},vd,md=Symbol("constructorPrototype"),bd=Symbol("constructorName"),Sd=Symbol("exportpartsDebouncer"),xd=Symbol("dynamicDependenciesLoaded"),Zt=class extends Ri{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[vd]=new Ei(5),this[bd]=this.constructor.name,this[md]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[bd]&&Object.setPrototypeOf(this,this[md])}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[xd]||(e[xd]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let a=[...n??[],i];r=yd(this.shadowRoot,...a)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(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,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[Sd].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,i,n,a,s,c;let u=b=>b!=null&&b.trim().length>0,p=e.filter(u).map(b=>b.trim());if(p.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let b of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let x=(a=(n=b.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],S=(c=(s=b.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(O=>O.split(":")[1]))!==null&&c!==void 0?c:[];new Array(...x,...S).filter(u).map(O=>O.trim()).forEach(O=>h.add(O))}if(h.size===0){this.removeAttribute("exportparts");return}let g=[...h.values()].flatMap(b=>p.map(x=>`${b}:${x}--${b}`));this.setAttribute("exportparts",[...this.part,...g].join(", "))}};vd=Sd;Po([(0,ao.property)()],Zt.prototype,"exportpartsPrefix",void 0);Po([fd([])],Zt.prototype,"exportpartsPrefixes",void 0);Po([(0,ao.property)()],Zt.prototype,"customStylesheet",void 0);Po([(0,ao.property)()],Zt.prototype,"elementToFocus",void 0);Po([(0,ao.state)()],Zt.prototype,"useAdoptedStyleSheets",void 0);function Ti(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Do=Symbol("internalReduxEventsUnsubscribers"),lr=Symbol("internalStoresUnsubscribers"),Nr=Symbol("internalStores"),hp=Oi(Symbol("withRedux"),function(t){var e,r,i;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(c=>s.has(c))&&this.updateFromStores()}getUnnamedStore(){if(this[Nr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Nr].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Nr].get(s)}addStore(s,c){var u;c=(u=c??s.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(c),this[Nr].set(c,s),this.subscribeToStore(c,s),this.updateFromStores()}removeStore(s){let c=typeof s=="string"?s:s.name;this.unsubscribeFromStore(c),this[Nr].delete(c)}setupStores(){this.unsubscribeFromStores(),this[Nr].forEach((s,c)=>this.subscribeToStore(c,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,c)=>{let u=this.constructor.getPropertyOptions(c);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:c)){let p=this.getStore(s.store);p&&(s.store?this[lr].has(s.store):this[lr].size>0)&&(this[c]=s.selector(p.getState(),this))}})}subscribeToStore(s,c){var u;this[lr].set(s,c.subscribe(()=>this.updateFromStores())),this[Do].set(s,[]),Ti(c)&&c.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((p,h)=>{if(typeof this[h]=="function"&&(!p.store||c.name===p.store)){let g=b=>this[h](b);c.addEventListener(p.eventName,g),this[Do].get(s).push(()=>c.removeEventListener(p.eventName,g))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[lr].forEach((s,c)=>this.unsubscribeFromStore(c))}unsubscribeFromStore(s){var c;this[lr].has(s)&&this[lr].get(s)(),this[lr].delete(s),(c=this[Do].get(s))===null||c===void 0||c.forEach(u=>u()),this[Do].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=lr,r=Nr,i=Do,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),Cd=class extends hp(Zt){};function ht(t){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];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 qt(t){return!!t&&!!t[ae]}function wt(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var i=Object.getPrototypeOf(r);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===Cp}(t)||Array.isArray(t)||!!t[Id]||!!(!((e=t.constructor)===null||e===void 0)&&e[Id])||ya(t)||ma(t))}function Lr(t,e,r){r===void 0&&(r=!1),co(t)===0?(r?Object.keys:lo)(t).forEach(function(i){r&&typeof i=="symbol"||e(i,t[i],t)}):t.forEach(function(i,n){return e(n,i,t)})}function co(t){var e=t[ae];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ya(t)?2:ma(t)?3:0}function so(t,e){return co(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function gp(t,e){return co(t)===2?t.get(e):t[e]}function _d(t,e,r){var i=co(t);i===2?t.set(e,r):i===3?t.add(r):t[e]=r}function Nd(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function ya(t){return vp&&t instanceof Map}function ma(t){return Sp&&t instanceof Set}function cr(t){return t.o||t.t}function ba(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Pd(t);delete e[ae];for(var r=lo(e),i=0;i<r.length;i++){var n=r[i],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 xa(t,e){return e===void 0&&(e=!1),va(t)||qt(t)||!wt(t)||(co(t)>1&&(t.set=t.add=t.clear=t.delete=yp),Object.freeze(t),e&&Lr(t,function(r,i){return xa(i,!0)},!0)),t}function yp(){ht(2)}function va(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Pt(t){var e=ga[t];return e||ht(18,t),e}function mp(t,e){ga[t]||(ga[t]=e)}function pa(){return Mo}function la(t,e){e&&(Pt("Patches"),t.u=[],t.s=[],t.v=e)}function Ii(t){fa(t),t.p.forEach(bp),t.p=null}function fa(t){t===Mo&&(Mo=t.l)}function Od(t){return Mo={p:[],l:Mo,h:t,m:!0,_:0}}function bp(t){var e=t[ae];e.i===0||e.i===1?e.j():e.g=!0}function ca(t,e){e._=e.p.length;var r=e.p[0],i=t!==void 0&&t!==r;return e.h.O||Pt("ES5").S(e,t,i),i?(r[ae].P&&(Ii(e),ht(4)),wt(t)&&(t=_i(e,t),e.l||Ni(e,t)),e.u&&Pt("Patches").M(r[ae].t,t,e.u,e.s)):t=_i(e,r,[]),Ii(e),e.u&&e.v(e.u,e.s),t!==kd?t:void 0}function _i(t,e,r){if(va(e))return e;var i=e[ae];if(!i)return Lr(e,function(c,u){return wd(t,i,e,c,u,r)},!0),e;if(i.A!==t)return e;if(!i.P)return Ni(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=ba(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),Lr(a,function(c,u){return wd(t,i,n,c,u,r,s)}),Ni(t,n,!1),r&&t.u&&Pt("Patches").N(i,r,t.u,t.s)}return i.o}function wd(t,e,r,i,n,a,s){if(qt(n)){var c=_i(t,n,a&&e&&e.i!==3&&!so(e.R,i)?a.concat(i):void 0);if(_d(r,i,c),!qt(c))return;t.m=!1}else s&&r.add(n);if(wt(n)&&!va(n)){if(!t.h.D&&t._<1)return;_i(t,n),e&&e.A.l||Ni(t,n)}}function Ni(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&xa(e,r)}function da(t,e){var r=t[ae];return(r?cr(r):t)[e]}function Ed(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Object.getPrototypeOf(r)}}function dr(t){t.P||(t.P=!0,t.l&&dr(t.l))}function ua(t){t.o||(t.o=ba(t.t))}function ha(t,e,r){var i=ya(e)?Pt("MapSet").F(e,r):ma(e)?Pt("MapSet").T(e,r):t.O?function(n,a){var s=Array.isArray(n),c={i:s?1:0,A:a?a.A:pa(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},u=c,p=Bo;s&&(u=[c],p=$o);var h=Proxy.revocable(u,p),g=h.revoke,b=h.proxy;return c.k=b,c.j=g,b}(e,r):Pt("ES5").J(e,r);return(r?r.A:pa()).p.push(i),i}function xp(t){return qt(t)||ht(22,t),function e(r){if(!wt(r))return r;var i,n=r[ae],a=co(r);if(n){if(!n.P&&(n.i<4||!Pt("ES5").K(n)))return n.t;n.I=!0,i=Ad(r,a),n.I=!1}else i=Ad(r,a);return Lr(i,function(s,c){n&&gp(n.t,s)===c||_d(i,s,e(c))}),a===3?new Set(i):i}(t)}function Ad(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ba(t)}function Ld(){function t(s,c){var u=a[s];return u?u.enumerable=c:a[s]=u={configurable:!0,enumerable:c,get:function(){var p=this[ae];return Bo.get(p,s)},set:function(p){var h=this[ae];Bo.set(h,s,p)}},u}function e(s){for(var c=s.length-1;c>=0;c--){var u=s[c][ae];if(!u.P)switch(u.i){case 5:i(u)&&dr(u);break;case 4:r(u)&&dr(u)}}}function r(s){for(var c=s.t,u=s.k,p=lo(u),h=p.length-1;h>=0;h--){var g=p[h];if(g!==ae){var b=c[g];if(b===void 0&&!so(c,g))return!0;var x=u[g],S=x&&x[ae];if(S?S.t!==b:!Nd(x,b))return!0}}var O=!!c[ae];return p.length!==lo(c).length+(O?0:1)}function i(s){var c=s.k;if(c.length!==s.t.length)return!0;var u=Object.getOwnPropertyDescriptor(c,c.length-1);if(u&&!u.get)return!0;for(var p=0;p<c.length;p++)if(!c.hasOwnProperty(p))return!0;return!1}function n(s){s.g&&ht(3,JSON.stringify(cr(s)))}var a={};mp("ES5",{J:function(s,c){var u=Array.isArray(s),p=function(g,b){if(g){for(var x=Array(b.length),S=0;S<b.length;S++)Object.defineProperty(x,""+S,t(S,!0));return x}var O=Pd(b);delete O[ae];for(var N=lo(O),I=0;I<N.length;I++){var _=N[I];O[_]=t(_,g||!!O[_].enumerable)}return Object.create(Object.getPrototypeOf(b),O)}(u,s),h={i:u?5:4,A:c?c.A:pa(),P:!1,I:!1,R:{},l:c,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,ae,{value:h,writable:!0}),p},S:function(s,c,u){u?qt(c)&&c[ae].A===s&&e(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var g=h[ae];if(g){var b=g.t,x=g.k,S=g.R,O=g.i;if(O===4)Lr(x,function(H){H!==ae&&(b[H]!==void 0||so(b,H)?S[H]||p(x[H]):(S[H]=!0,dr(g)))}),Lr(b,function(H){x[H]!==void 0||so(x,H)||(S[H]=!1,dr(g))});else if(O===5){if(i(g)&&(dr(g),S.length=!0),x.length<b.length)for(var N=x.length;N<b.length;N++)S[N]=!1;else for(var I=b.length;I<x.length;I++)S[I]=!0;for(var _=Math.min(x.length,b.length),$=0;$<_;$++)x.hasOwnProperty($)||(S[$]=!0),S[$]===void 0&&p(x[$])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):i(s)}})}var Rd,Mo,Sa=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",vp=typeof Map<"u",Sp=typeof Set<"u",Td=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",kd=Sa?Symbol.for("immer-nothing"):((Rd={})["immer-nothing"]=!0,Rd),Id=Sa?Symbol.for("immer-draftable"):"__$immer_draftable",ae=Sa?Symbol.for("immer-state"):"__$immer_state";var Cp=""+Object.prototype.constructor,lo=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Pd=Object.getOwnPropertyDescriptors||function(t){var e={};return lo(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},ga={},Bo={get:function(t,e){if(e===ae)return t;var r=cr(t);if(!so(r,e))return function(n,a,s){var c,u=Ed(a,s);return u?"value"in u?u.value:(c=u.get)===null||c===void 0?void 0:c.call(n.k):void 0}(t,r,e);var i=r[e];return t.I||!wt(i)?i:i===da(t.t,e)?(ua(t),t.o[e]=ha(t.A.h,i,t)):i},has:function(t,e){return e in cr(t)},ownKeys:function(t){return Reflect.ownKeys(cr(t))},set:function(t,e,r){var i=Ed(cr(t),e);if(i?.set)return i.set.call(t.k,r),!0;if(!t.P){var n=da(cr(t),e),a=n?.[ae];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(Nd(r,n)&&(r!==void 0||so(t.t,e)))return!0;ua(t),dr(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 da(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,ua(t),dr(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=cr(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:r[e]}},defineProperty:function(){ht(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ht(12)}},$o={};Lr(Bo,function(t,e){$o[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),$o.deleteProperty=function(t,e){return $o.set.call(this,t,e,void 0)},$o.set=function(t,e,r){return Bo.set.call(this,t[0],e,r,t[0])};var Op=function(){function t(r){var i=this;this.O=Td,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var c=a;a=n;var u=i;return function(O){var N=this;O===void 0&&(O=c);for(var I=arguments.length,_=Array(I>1?I-1:0),$=1;$<I;$++)_[$-1]=arguments[$];return u.produce(O,function(H){var W;return(W=a).call.apply(W,[N,H].concat(_))})}}var p;if(typeof a!="function"&&ht(6),s!==void 0&&typeof s!="function"&&ht(7),wt(n)){var h=Od(i),g=ha(i,n,void 0),b=!0;try{p=a(g),b=!1}finally{b?Ii(h):fa(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return la(h,s),ca(O,h)},function(O){throw Ii(h),O}):(la(h,s),ca(p,h))}if(!n||typeof n!="object"){if((p=a(n))===void 0&&(p=n),p===kd&&(p=void 0),i.D&&xa(p,!0),s){var x=[],S=[];Pt("Patches").M(n,p,x,S),s(x,S)}return p}ht(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(p){for(var h=arguments.length,g=Array(h>1?h-1:0),b=1;b<h;b++)g[b-1]=arguments[b];return i.produceWithPatches(p,function(x){return n.apply(void 0,[x].concat(g))})};var s,c,u=i.produce(n,a,function(p,h){s=p,c=h});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,s,c]}):[u,s,c]},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){wt(r)||ht(8),qt(r)&&(r=xp(r));var i=Od(this),n=ha(this,r,void 0);return n[ae].C=!0,fa(i),n},e.finishDraft=function(r,i){var n=r&&r[ae],a=n.A;return la(a,i),ca(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Td&&ht(20),this.O=r},e.applyPatches=function(r,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}n>-1&&(i=i.slice(n+1));var s=Pt("Patches").$;return qt(r)?s(r,i):this.produce(r,function(c){return s(c,i)})},t}(),at=new Op,wp=at.produce,fC=at.produceWithPatches.bind(at),hC=at.setAutoFreeze.bind(at),gC=at.setUseProxies.bind(at),yC=at.applyPatches.bind(at),mC=at.createDraft.bind(at),bC=at.finishDraft.bind(at),Li=wp;function kr(t){"@babel/helpers - typeof";return kr=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},kr(t)}function Dd(t,e){if(kr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(kr(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function $d(t){var e=Dd(t,"string");return kr(e)=="symbol"?e:e+""}function Md(t,e,r){return(e=$d(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Bd(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function Ca(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Bd(Object(r),!0).forEach(function(i){Md(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Bd(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function ze(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 Fd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Oa=function(){return Math.random().toString(36).substring(7).split("").join(".")},ki={INIT:"@@redux/INIT"+Oa(),REPLACE:"@@redux/REPLACE"+Oa(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Oa()}};function Ep(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 wa(t,e,r){var i;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ze(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ze(1));return r(wa)(t,e)}if(typeof t!="function")throw new Error(ze(2));var n=t,a=e,s=[],c=s,u=!1;function p(){c===s&&(c=s.slice())}function h(){if(u)throw new Error(ze(3));return a}function g(O){if(typeof O!="function")throw new Error(ze(4));if(u)throw new Error(ze(5));var N=!0;return p(),c.push(O),function(){if(N){if(u)throw new Error(ze(6));N=!1,p();var _=c.indexOf(O);c.splice(_,1),s=null}}}function b(O){if(!Ep(O))throw new Error(ze(7));if(typeof O.type>"u")throw new Error(ze(8));if(u)throw new Error(ze(9));try{u=!0,a=n(a,O)}finally{u=!1}for(var N=s=c,I=0;I<N.length;I++){var _=N[I];_()}return O}function x(O){if(typeof O!="function")throw new Error(ze(10));n=O,b({type:ki.REPLACE})}function S(){var O,N=g;return O={subscribe:function(_){if(typeof _!="object"||_===null)throw new Error(ze(11));function $(){_.next&&_.next(h())}$();var H=N($);return{unsubscribe:H}}},O[Fd]=function(){return this},O}return b({type:ki.INIT}),i={dispatch:b,subscribe:g,getState:h,replaceReducer:x},i[Fd]=S,i}function Ap(t){Object.keys(t).forEach(function(e){var r=t[e],i=r(void 0,{type:ki.INIT});if(typeof i>"u")throw new Error(ze(12));if(typeof r(void 0,{type:ki.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ze(13))})}function Ud(t){for(var e=Object.keys(t),r={},i=0;i<e.length;i++){var n=e[i];typeof t[n]=="function"&&(r[n]=t[n])}var a=Object.keys(r),s,c;try{Ap(r)}catch(u){c=u}return function(p,h){if(p===void 0&&(p={}),c)throw c;if(0)var g;for(var b=!1,x={},S=0;S<a.length;S++){var O=a[S],N=r[O],I=p[O],_=N(I,h);if(typeof _>"u"){var $=h&&h.type;throw new Error(ze(14))}x[O]=_,b=b||_!==I}return b=b||a.length!==Object.keys(p).length,b?x:p}}function uo(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(i){return i}:e.length===1?e[0]:e.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function zd(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(ze(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=e.map(function(u){return u(s)});return a=uo.apply(void 0,c)(n.dispatch),Ca(Ca({},n),{},{dispatch:a})}}}function Hd(t){var e=function(i){var n=i.dispatch,a=i.getState;return function(s){return function(c){return typeof c=="function"?c(n,a,t):s(c)}}};return e}var Wd=Hd();Wd.withExtraArgument=Hd;var Ea=Wd;var Zd=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a])},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 i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),Rp=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(p){return function(h){return u([p,h])}}function u(p){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,n&&(a=p[0]&2?n.return:p[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,p[1])).done)return a;switch(n=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,n=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){r.label=p[1];break}if(p[0]===6&&r.label<a[1]){r.label=a[1],a=p;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(p);break}a[2]&&r.ops.pop(),r.trys.pop();continue}p=e.call(t,r)}catch(h){p=[6,h],n=0}finally{i=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},po=function(t,e){for(var r=0,i=e.length,n=t.length;r<i;r++,n++)t[n]=e[r];return t},Tp=Object.defineProperty,Ip=Object.defineProperties,_p=Object.getOwnPropertyDescriptors,Gd=Object.getOwnPropertySymbols,Np=Object.prototype.hasOwnProperty,Lp=Object.prototype.propertyIsEnumerable,Vd=function(t,e,r){return e in t?Tp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},ur=function(t,e){for(var r in e||(e={}))Np.call(e,r)&&Vd(t,r,e[r]);if(Gd)for(var i=0,n=Gd(e);i<n.length;i++){var r=n[i];Lp.call(e,r)&&Vd(t,r,e[r])}return t},Aa=function(t,e){return Ip(t,_p(e))},kp=function(t,e,r){return new Promise(function(i,n){var a=function(u){try{c(r.next(u))}catch(p){n(p)}},s=function(u){try{c(r.throw(u))}catch(p){n(p)}},c=function(u){return u.done?i(u.value):Promise.resolve(u.value).then(a,s)};c((r=r.apply(t,e)).next())})};var Pp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?uo:uo.apply(null,arguments)},$C=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Dp(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 $p=function(t){Zd(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];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=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,po([void 0],r[0].concat(this)))):new(e.bind.apply(e,po([void 0],r.concat(this))))},e}(Array),Mp=function(t){Zd(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];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=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,po([void 0],r[0].concat(this)))):new(e.bind.apply(e,po([void 0],r.concat(this))))},e}(Array);function Ia(t){return wt(t)?Li(t,function(){}):t}function Bp(t){return typeof t=="boolean"}function Fp(){return function(e){return Up(e)}}function Up(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,i=t.immutableCheck,n=i===void 0?!0:i,a=t.serializableCheck,s=a===void 0?!0:a,c=new $p;if(r&&(Bp(r)?c.push(Ea):c.push(Ea.withExtraArgument(r.extraArgument))),0){if(n)var u;if(s)var p}return c}var Ra=!0;function qd(t){var e=Fp(),r=t||{},i=r.reducer,n=i===void 0?void 0:i,a=r.middleware,s=a===void 0?e():a,c=r.devTools,u=c===void 0?!0:c,p=r.preloadedState,h=p===void 0?void 0:p,g=r.enhancers,b=g===void 0?void 0:g,x;if(typeof n=="function")x=n;else if(Dp(n))x=Ud(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var S=s;if(typeof S=="function"&&(S=S(e),!Ra&&!Array.isArray(S)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ra&&S.some(function(H){return typeof H!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=zd.apply(void 0,S),N=uo;u&&(N=Pp(ur({trace:!Ra},typeof u=="object"&&u)));var I=new Mp(O),_=I;Array.isArray(b)?_=po([O],b):typeof b=="function"&&(_=b(I));var $=N.apply(void 0,_);return wa(x,h,$)}function pr(t,e){function r(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var a=e.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return ur(ur({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:i[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(i){return i.type===t},r}function Yd(t){var e={},r=[],i,n={addCase:function(a,s){var c=typeof a=="string"?a:a.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=s,n},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return t(n),[e,r,i]}function zp(t){return typeof t=="function"}function Hp(t,e,r,i){r===void 0&&(r=[]);var n=typeof e=="function"?Yd(e):[e,r,i],a=n[0],s=n[1],c=n[2],u;if(zp(t))u=function(){return Ia(t())};else{var p=Ia(t);u=function(){return p}}function h(g,b){g===void 0&&(g=u());var x=po([a[b.type]],s.filter(function(S){var O=S.matcher;return O(b)}).map(function(S){var O=S.reducer;return O}));return x.filter(function(S){return!!S}).length===0&&(x=[c]),x.reduce(function(S,O){if(O)if(qt(S)){var N=S,I=O(N,b);return I===void 0?S:I}else{if(wt(S))return Li(S,function(_){return O(_,b)});var I=O(S,b);if(I===void 0){if(S===null)return S;throw Error("A case reducer on a non-draftable value must not return undefined")}return I}return S},g)}return h.getInitialState=u,h}function Wp(t,e){return t+"/"+e}function Xd(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:Ia(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},c={};n.forEach(function(h){var g=i[h],b=Wp(e,h),x,S;"reducer"in g?(x=g.reducer,S=g.prepare):x=g,a[h]=x,s[b]=x,c[h]=S?pr(b,S):pr(b)});function u(){var h=typeof t.extraReducers=="function"?Yd(t.extraReducers):[t.extraReducers],g=h[0],b=g===void 0?{}:g,x=h[1],S=x===void 0?[]:x,O=h[2],N=O===void 0?void 0:O,I=ur(ur({},b),s);return Hp(r,function(_){for(var $ in I)_.addCase($,I[$]);for(var H=0,W=S;H<W.length;H++){var qe=W[H];_.addMatcher(qe.matcher,qe.reducer)}N&&_.addDefaultCase(N)})}var p;return{name:e,reducer:function(h,g){return p||(p=u()),p(h,g)},actions:c,caseReducers:a,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var Gp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Vp=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Gp[Math.random()*64|0];return e},jp=["name","message","stack","code"],Ta=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),jd=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),Kp=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,i=jp;r<i.length;r++){var n=i[r];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},UC=function(){function t(e,r,i){var n=pr(e+"/fulfilled",function(h,g,b,x){return{payload:h,meta:Aa(ur({},x||{}),{arg:b,requestId:g,requestStatus:"fulfilled"})}}),a=pr(e+"/pending",function(h,g,b){return{payload:void 0,meta:Aa(ur({},b||{}),{arg:g,requestId:h,requestStatus:"pending"})}}),s=pr(e+"/rejected",function(h,g,b,x,S){return{payload:x,error:(i&&i.serializeError||Kp)(h||"Rejected"),meta:Aa(ur({},S||{}),{arg:b,requestId:g,rejectedWithValue:!!x,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),c=!1,u=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(g,b,x){var S=i?.idGenerator?i.idGenerator(h):Vp(),O=new u,N,I=!1;function _(H){N=H,O.abort()}var $=function(){return kp(this,null,function(){var H,W,qe,Rt,Ge,Tt,Ne;return Rp(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),Rt=(H=i?.condition)==null?void 0:H.call(i,h,{getState:b,extra:x}),qp(Rt)?[4,Rt]:[3,2];case 1:Rt=y.sent(),y.label=2;case 2:if(Rt===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return I=!0,Ge=new Promise(function(v,P){return O.signal.addEventListener("abort",function(){return P({name:"AbortError",message:N||"Aborted"})})}),g(a(S,h,(W=i?.getPendingMeta)==null?void 0:W.call(i,{requestId:S,arg:h},{getState:b,extra:x}))),[4,Promise.race([Ge,Promise.resolve(r(h,{dispatch:g,getState:b,extra:x,requestId:S,signal:O.signal,abort:_,rejectWithValue:function(v,P){return new Ta(v,P)},fulfillWithValue:function(v,P){return new jd(v,P)}})).then(function(v){if(v instanceof Ta)throw v;return v instanceof jd?n(v.payload,S,h,v.meta):n(v,S,h)})])];case 3:return qe=y.sent(),[3,5];case 4:return Tt=y.sent(),qe=Tt instanceof Ta?s(null,S,h,Tt.payload,Tt.meta):s(Tt,S,h),[3,5];case 5:return Ne=i&&!i.dispatchConditionRejection&&s.match(qe)&&qe.meta.condition,Ne||g(qe),[2,qe]}})})}();return Object.assign($,{abort:_,requestId:S,arg:h,unwrap:function(){return $.then(Zp)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t}();function Zp(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function qp(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Qd="listener",Jd="completed",eu="cancelled",zC="task-"+eu,HC="task-"+Jd,WC=Qd+"-"+eu,GC=Qd+"-"+Jd;var _a="listenerMiddleware";var VC=pr(_a+"/add"),jC=pr(_a+"/removeAll"),KC=pr(_a+"/remove");var Kd,ZC=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Kd||(Kd=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Yp=function(t){return function(e){setTimeout(e,t)}},qC=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Yp(10);Ld();var Xp=Oi(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),Pi=class extends Xp(Object){};window.ftReduxStores||(window.ftReduxStores={});var tu=class t extends Pi{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[i];if(Ti(a))return a;if(n==null)return;let s=Xd({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),c=qd({reducer:(u,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...p.overwrites}:s.reducer(u,p)});return window.ftReduxStores[n.name]=new t(s,c,n.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new wi;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,c)=>{let u=s,p=a[u];return p?(...h)=>{let g=p(...h.map(n));return this.reduxStore.dispatch(g),g}:h=>{this.setState({[u]:n(h)})}}}),this.eventBus=i??this.eventBus}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()}};var Di=class{static format(e,r,i,n){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,n)):this.getIntlDateTime(e,r,i,n)}static getMomentDateFormat(e,r){return e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,n){let a=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(a);if(!n)return s;let c=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(a);return`${s} ${c}`}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var ru=m(T()),$i=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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},xO=(0,ru.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(E)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,a;return((a=(n=this.metadataDescriptors.find(c=>c.key===i))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1)?c=>Di.format(c,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return $i([(0,Na.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),$i([(0,Na.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),$i([sa({store:E.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),$i([sa({store:E.name})],e.prototype,"uiLocale",void 0),e});var Fi=m(T());var Mi=class extends Ze{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=E.getState().session;return!!e?.sessionAuthenticated}};var Bi=class extends Ze{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=E.getState().session;return!!e?.sessionAuthenticated}};var Qp="ft-user-assets",Jp={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(rt).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:n}=e.payload;switch(r){case rt.BOOKMARKS:t.bookmarks?t.bookmarks.push(n):t.bookmarks=[n];break;case rt.SEARCHES:t.savedSearches?t.savedSearches.push(n):t.savedSearches=[n];break}let a=t.assetCounts.allAsset[r];if(a!==void 0&&(t.assetCounts.allAsset[r]=a+1),r===rt.BOOKMARKS&&i!==void 0){let s=t.assetCounts.bookmarkByMap[i];s!==void 0&&(t.assetCounts.bookmarkByMap[i]=s+1)}},removeAsset:(t,e)=>{var r,i;let{assetType:n,mapId:a,assetId:s}=e.payload;switch(n){case rt.BOOKMARKS:t.bookmarks=(r=t.bookmarks)===null||r===void 0?void 0:r.filter(u=>u.id!==s);break;case rt.SEARCHES:t.savedSearches=(i=t.savedSearches)===null||i===void 0?void 0:i.filter(u=>u.id!==s);break}let c=t.assetCounts.allAsset[n];if(c!==void 0&&c>0&&(t.assetCounts.allAsset[n]=c-1),n===rt.BOOKMARKS&&a!==void 0){let u=t.assetCounts.bookmarkByMap[a];u!==void 0&&u>0&&(t.assetCounts.bookmarkByMap[a]=u-1)}}},st=Fi.FtReduxStore.get({name:Qp,reducers:Jp,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(rt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),La=class{constructor(e=new Mi,r=new Bi){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=E.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new mi,this.savedSearchesService=new vi,E.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=E.getState();(0,Fi.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),st.actions.clearAssetCount(),st.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),st.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),st.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();st.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();st.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&st.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&st.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(st.getState().assetCounts.bookmarkByMap).length!==0;e===rt.BOOKMARKS&&r&&st.actions.clearBookmarkCountByMap(),st.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}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;st.actions.bookmarks(r)}}},ka=new La;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=ka);(0,ou.customElement)("ft-app-context")(ie);var au=m(Z());var Pa=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[i,n]=e.split(".");return{context:i,key:n,message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},iu=new Pa;var ef=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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},tf=Symbol("i18nAttributes"),rf=Symbol("i18nListAttributes"),Uo=Symbol("i18nProperties"),Ui=Symbol("i18nContexts"),Fo=Symbol("i18nUnsubs"),fr=(0,fo.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?xi:io}i18n(a){let{context:s,key:c,message:u}=a,{custom:p,args:h,argsProvider:g}=a;if(s&&c){this.hasI18nContext(s)||this.addI18nContext(s,void 0,p);let b=h??(g?g(this):[]);return this.getI18nService(p).resolveMessage(s,c,...b)}return u}async awaitI18n(a){let{context:s,custom:c}=a;return s&&await this.getI18nService(c).prepareContext(s),this.i18n(a)}customI18n(a,s){if(iu.isI18nKey(a)){let[c,u]=a.split(".");return this.i18n({custom:!0,context:c,key:u,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,c,u)=>a.has(c)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,c,u)=>{var p;return((p=u?.context)===null||p===void 0?void 0:p.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,c;let u=this,p=(h,g,b)=>b?.context&&b.key&&a(h,g,b)?{...b,message:this.i18n({context:b.context,key:b.key,custom:b.custom,...h})}:b;(s=this[tf])===null||s===void 0||s.forEach((h,g)=>u[g]=p(h,g,u[g])),(c=this[rf])===null||c===void 0||c.forEach((h,g)=>{var b;return u[g]=(b=u[g])===null||b===void 0?void 0:b.map(x=>p(h,g,x))})}updateI18nProperties(a){var s;(s=this[Uo])===null||s===void 0||s.forEach((c,u)=>{a(c,u)&&(this[u]=this.i18n(c))})}addI18nMessages(a,s,c){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,c)}addI18nContext(a,s,c){let u=(typeof a=="string"?a:a.name).toLowerCase();c=typeof a=="string"?c:a.custom,this[Ui].set(u,{isCustomContext:c}),this[Fo].has(u)||this[Fo].set(u,this.getI18nService(c).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(c).prepareContext(u,s)}hasI18nContext(a){return this[Ui].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Ui].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Fo].forEach(a=>a()),this[Fo].clear()}}return e=Ui,r=Fo,ef([(0,au.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),nu=class extends fr(fo.FtLitElement){},zi=class extends fr(fo.FtLitElementRedux){};var zo=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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},Et=class extends zi{constructor(){super(),this.editorMode=!1,this.addStore(E)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Hi.nothing:Hi.html`
1663
+ `}connectedCallback(){super.connectedCallback(),E.addEventListener(kt.eventName,this.reloadConfiguration)}disconnectedCallback(){E.addEventListener(kt.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var r,i,n,a,s,c,u;super.update(e),e.has("baseUrl")&&(E.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&E.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&E.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&E.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&E.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&E.actions.noCustom(this.noCustom),e.has("editorMode")&&E.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&E.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&E.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(p=>no.addContext(p)),e.has("openExternalDocumentInNewTab")&&E.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&E.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&E.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(E.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),E.actions.availableUiLocales((n=(i=this.localesConfiguration)===null||i===void 0?void 0:i.availableUiLocales)!==null&&n!==void 0?n:[]),E.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&E.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&E.actions.availableContentLocales((u=(c=this.availableContentLocales)===null||c===void 0?void 0:c.contentLocales)!==null&&u!==void 0?u:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}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 updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>dd(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};ie.elementDefinitions={};ie.styles=od;Ee([(0,$e.property)()],ie.prototype,"baseUrl",void 0);Ee([(0,$e.property)()],ie.prototype,"apiIntegrationIdentifier",void 0);Ee([(0,$e.property)()],ie.prototype,"apiIntegrationAppVersion",void 0);Ee([(0,$e.property)()],ie.prototype,"uiLocale",void 0);Ee([(0,Ot.jsonProperty)(null)],ie.prototype,"availableUiLocales",void 0);Ee([(0,Ot.jsonProperty)(null)],ie.prototype,"metadataConfiguration",void 0);Ee([(0,$e.property)({type:Boolean})],ie.prototype,"editorMode",void 0);Ee([(0,$e.property)({type:Boolean})],ie.prototype,"noCustom",void 0);Ee([(0,$e.property)({type:Boolean})],ie.prototype,"openExternalDocumentInNewTab",void 0);Ee([(0,$e.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ie.prototype,"noCustomComponent",void 0);Ee([(0,$e.property)({type:Boolean})],ie.prototype,"withManualResources",void 0);Ee([(0,$e.property)({type:Boolean})],ie.prototype,"navigatorOnline",void 0);Ee([(0,$e.property)({type:Boolean})],ie.prototype,"forcedOffline",void 0);Ee([(0,$e.property)({type:Object})],ie.prototype,"apiProvider",void 0);Ee([(0,$e.property)({type:Boolean})],ie.prototype,"authenticationRequired",void 0);Ee([(0,Ot.jsonProperty)([])],ie.prototype,"messageContexts",void 0);Ee([(0,Ot.jsonProperty)(void 0)],ie.prototype,"session",void 0);Ee([(0,$e.state)()],ie.prototype,"localesConfiguration",void 0);Ee([(0,$e.state)()],ie.prototype,"availableContentLocales",void 0);var La=m(Z());function fp(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i,n;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!Oi(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!Oi(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[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();let a=s=>Object.keys(s).filter(c=>s[c]!=null);if(n=a(t),r=n.length,r!==a(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=r;i--!==0;){let s=n[i];if(!Oi(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Oi(t,e){try{return fp(t,e)}catch{return!1}}function Do(t,e){return!Oi(t,e)}function wi(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let n=e(i);return n[t]=!0,n}}var pd=m(Z(),1);var la=t=>{let e=t??{};return(r,i)=>{var n;let a={hasChanged:Do,attribute:!1,...e};(0,pd.property)(a)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:c=>c[i],store:e.store})}};var Ei=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var Nr=m(Z(),1);var fd=m(Z(),1);function hd(t,e){let r=()=>JSON.parse(JSON.stringify(t));return(0,fd.property)({type:Object,converter:{fromAttribute:i=>{if(i==null)return r();try{return JSON.parse(i)}catch{return r()}},toAttribute:i=>JSON.stringify(i)},hasChanged:Do,...e??{}})}var Ai=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,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...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 i)try{await s()}catch(c){n(c);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 yd=m(M(),1);var Ri=globalThis,hp=Ri.ShadowRoot&&(Ri.ShadyCSS===void 0||Ri.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,JS=Symbol();var gd=(t,e)=>{if(hp)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=Ri.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}};var Ti=class extends yd.LitElement{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},i=this.renderOptions.creationScope=this.attachShadow(r);return gd(i,e.elementStyles),i}};function md(t,e,...r){var i;let n=t.querySelector(e);for(let a of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}var lo=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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},Sd,bd=Symbol("constructorPrototype"),xd=Symbol("constructorName"),Cd=Symbol("exportpartsDebouncer"),vd=Symbol("dynamicDependenciesLoaded"),so=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};so.eventName="exportparts-updated";var Pt=class extends Ti{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Sd]=new Ai(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[Cd].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)})},this[xd]=this.constructor.name,this[bd]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[xd]&&Object.setPrototypeOf(this,this[bd])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[vd]||(r[vd]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(so.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(so.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new so)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let a=[...n??[],i];r=md(this.shadowRoot,...a)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(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)}}setExportpartsAttribute(e){var r,i,n,a,s,c;let u=b=>b!=null&&b.trim().length>0,p=e.filter(u).map(b=>b.trim());if(p.length===0){this.exportparts=void 0;return}let h=new Set;for(let b of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let x=(a=(n=b.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],S=(c=(s=b.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(_=>_.split(":")[1]))!==null&&c!==void 0?c:[],w=[...x,...S].filter(u).map(_=>_.trim());for(let _ of w)h.add(_)}if(h.size===0){this.exportparts=void 0;return}let g=[...h.values()].flatMap(b=>p.map(x=>`${b}:${x}--${b}`));this.exportparts=[...this.part,...g].join(", ")}};Sd=Cd;lo([(0,Nr.property)()],Pt.prototype,"exportpartsPrefix",void 0);lo([hd([])],Pt.prototype,"exportpartsPrefixes",void 0);lo([(0,Nr.property)({reflect:!0})],Pt.prototype,"exportparts",void 0);lo([(0,Nr.property)()],Pt.prototype,"customStylesheet",void 0);lo([(0,Nr.property)()],Pt.prototype,"elementToFocus",void 0);lo([(0,Nr.state)()],Pt.prototype,"useAdoptedStyleSheets",void 0);function Ii(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var $o=Symbol("internalReduxEventsUnsubscribers"),lr=Symbol("internalStoresUnsubscribers"),Lr=Symbol("internalStores"),gp=wi(Symbol("withRedux"),function(t){var e,r,i;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(c=>s.has(c))&&this.updateFromStores()}getUnnamedStore(){if(this[Lr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Lr].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Lr].get(s)}addStore(s,c){var u;c=(u=c??s.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(c),this[Lr].set(c,s),this.subscribeToStore(c,s),this.updateFromStores()}removeStore(s){let c=typeof s=="string"?s:s.name;this.unsubscribeFromStore(c),this[Lr].delete(c)}setupStores(){this.unsubscribeFromStores(),this[Lr].forEach((s,c)=>this.subscribeToStore(c,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,c)=>{let u=this.constructor.getPropertyOptions(c);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:c)){let p=this.getStore(s.store);p&&(s.store?this[lr].has(s.store):this[lr].size>0)&&(this[c]=s.selector(p.getState(),this))}})}subscribeToStore(s,c){var u;this[lr].set(s,c.subscribe(()=>this.updateFromStores())),this[$o].set(s,[]),Ii(c)&&c.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((p,h)=>{if(typeof this[h]=="function"&&(!p.store||c.name===p.store)){let g=b=>this[h](b);c.addEventListener(p.eventName,g),this[$o].get(s).push(()=>c.removeEventListener(p.eventName,g))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[lr].forEach((s,c)=>this.unsubscribeFromStore(c))}unsubscribeFromStore(s){var c;this[lr].has(s)&&this[lr].get(s)(),this[lr].delete(s),(c=this[$o].get(s))===null||c===void 0||c.forEach(u=>u()),this[$o].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=lr,r=Lr,i=$o,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),Od=class extends gp(Pt){};function ht(t){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];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 qt(t){return!!t&&!!t[ae]}function wt(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var i=Object.getPrototypeOf(r);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===Op}(t)||Array.isArray(t)||!!t[_d]||!!(!((e=t.constructor)===null||e===void 0)&&e[_d])||ma(t)||ba(t))}function kr(t,e,r){r===void 0&&(r=!1),po(t)===0?(r?Object.keys:uo)(t).forEach(function(i){r&&typeof i=="symbol"||e(i,t[i],t)}):t.forEach(function(i,n){return e(n,i,t)})}function po(t){var e=t[ae];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ma(t)?2:ba(t)?3:0}function co(t,e){return po(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function yp(t,e){return po(t)===2?t.get(e):t[e]}function Nd(t,e,r){var i=po(t);i===2?t.set(e,r):i===3?t.add(r):t[e]=r}function Ld(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function ma(t){return Sp&&t instanceof Map}function ba(t){return Cp&&t instanceof Set}function cr(t){return t.o||t.t}function xa(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Dd(t);delete e[ae];for(var r=uo(e),i=0;i<r.length;i++){var n=r[i],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 va(t,e){return e===void 0&&(e=!1),Sa(t)||qt(t)||!wt(t)||(po(t)>1&&(t.set=t.add=t.clear=t.delete=mp),Object.freeze(t),e&&kr(t,function(r,i){return va(i,!0)},!0)),t}function mp(){ht(2)}function Sa(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Dt(t){var e=ya[t];return e||ht(18,t),e}function bp(t,e){ya[t]||(ya[t]=e)}function fa(){return Bo}function ca(t,e){e&&(Dt("Patches"),t.u=[],t.s=[],t.v=e)}function _i(t){ha(t),t.p.forEach(xp),t.p=null}function ha(t){t===Bo&&(Bo=t.l)}function wd(t){return Bo={p:[],l:Bo,h:t,m:!0,_:0}}function xp(t){var e=t[ae];e.i===0||e.i===1?e.j():e.g=!0}function da(t,e){e._=e.p.length;var r=e.p[0],i=t!==void 0&&t!==r;return e.h.O||Dt("ES5").S(e,t,i),i?(r[ae].P&&(_i(e),ht(4)),wt(t)&&(t=Ni(e,t),e.l||Li(e,t)),e.u&&Dt("Patches").M(r[ae].t,t,e.u,e.s)):t=Ni(e,r,[]),_i(e),e.u&&e.v(e.u,e.s),t!==Pd?t:void 0}function Ni(t,e,r){if(Sa(e))return e;var i=e[ae];if(!i)return kr(e,function(c,u){return Ed(t,i,e,c,u,r)},!0),e;if(i.A!==t)return e;if(!i.P)return Li(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=xa(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),kr(a,function(c,u){return Ed(t,i,n,c,u,r,s)}),Li(t,n,!1),r&&t.u&&Dt("Patches").N(i,r,t.u,t.s)}return i.o}function Ed(t,e,r,i,n,a,s){if(qt(n)){var c=Ni(t,n,a&&e&&e.i!==3&&!co(e.R,i)?a.concat(i):void 0);if(Nd(r,i,c),!qt(c))return;t.m=!1}else s&&r.add(n);if(wt(n)&&!Sa(n)){if(!t.h.D&&t._<1)return;Ni(t,n),e&&e.A.l||Li(t,n)}}function Li(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&va(e,r)}function ua(t,e){var r=t[ae];return(r?cr(r):t)[e]}function Ad(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Object.getPrototypeOf(r)}}function dr(t){t.P||(t.P=!0,t.l&&dr(t.l))}function pa(t){t.o||(t.o=xa(t.t))}function ga(t,e,r){var i=ma(e)?Dt("MapSet").F(e,r):ba(e)?Dt("MapSet").T(e,r):t.O?function(n,a){var s=Array.isArray(n),c={i:s?1:0,A:a?a.A:fa(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},u=c,p=Fo;s&&(u=[c],p=Mo);var h=Proxy.revocable(u,p),g=h.revoke,b=h.proxy;return c.k=b,c.j=g,b}(e,r):Dt("ES5").J(e,r);return(r?r.A:fa()).p.push(i),i}function vp(t){return qt(t)||ht(22,t),function e(r){if(!wt(r))return r;var i,n=r[ae],a=po(r);if(n){if(!n.P&&(n.i<4||!Dt("ES5").K(n)))return n.t;n.I=!0,i=Rd(r,a),n.I=!1}else i=Rd(r,a);return kr(i,function(s,c){n&&yp(n.t,s)===c||Nd(i,s,e(c))}),a===3?new Set(i):i}(t)}function Rd(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return xa(t)}function kd(){function t(s,c){var u=a[s];return u?u.enumerable=c:a[s]=u={configurable:!0,enumerable:c,get:function(){var p=this[ae];return Fo.get(p,s)},set:function(p){var h=this[ae];Fo.set(h,s,p)}},u}function e(s){for(var c=s.length-1;c>=0;c--){var u=s[c][ae];if(!u.P)switch(u.i){case 5:i(u)&&dr(u);break;case 4:r(u)&&dr(u)}}}function r(s){for(var c=s.t,u=s.k,p=uo(u),h=p.length-1;h>=0;h--){var g=p[h];if(g!==ae){var b=c[g];if(b===void 0&&!co(c,g))return!0;var x=u[g],S=x&&x[ae];if(S?S.t!==b:!Ld(x,b))return!0}}var w=!!c[ae];return p.length!==uo(c).length+(w?0:1)}function i(s){var c=s.k;if(c.length!==s.t.length)return!0;var u=Object.getOwnPropertyDescriptor(c,c.length-1);if(u&&!u.get)return!0;for(var p=0;p<c.length;p++)if(!c.hasOwnProperty(p))return!0;return!1}function n(s){s.g&&ht(3,JSON.stringify(cr(s)))}var a={};bp("ES5",{J:function(s,c){var u=Array.isArray(s),p=function(g,b){if(g){for(var x=Array(b.length),S=0;S<b.length;S++)Object.defineProperty(x,""+S,t(S,!0));return x}var w=Dd(b);delete w[ae];for(var _=uo(w),I=0;I<_.length;I++){var N=_[I];w[N]=t(N,g||!!w[N].enumerable)}return Object.create(Object.getPrototypeOf(b),w)}(u,s),h={i:u?5:4,A:c?c.A:fa(),P:!1,I:!1,R:{},l:c,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,ae,{value:h,writable:!0}),p},S:function(s,c,u){u?qt(c)&&c[ae].A===s&&e(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var g=h[ae];if(g){var b=g.t,x=g.k,S=g.R,w=g.i;if(w===4)kr(x,function(H){H!==ae&&(b[H]!==void 0||co(b,H)?S[H]||p(x[H]):(S[H]=!0,dr(g)))}),kr(b,function(H){x[H]!==void 0||co(x,H)||(S[H]=!1,dr(g))});else if(w===5){if(i(g)&&(dr(g),S.length=!0),x.length<b.length)for(var _=x.length;_<b.length;_++)S[_]=!1;else for(var I=b.length;I<x.length;I++)S[I]=!0;for(var N=Math.min(x.length,b.length),$=0;$<N;$++)x.hasOwnProperty($)||(S[$]=!0),S[$]===void 0&&p(x[$])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):i(s)}})}var Td,Bo,Ca=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Sp=typeof Map<"u",Cp=typeof Set<"u",Id=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Pd=Ca?Symbol.for("immer-nothing"):((Td={})["immer-nothing"]=!0,Td),_d=Ca?Symbol.for("immer-draftable"):"__$immer_draftable",ae=Ca?Symbol.for("immer-state"):"__$immer_state";var Op=""+Object.prototype.constructor,uo=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Dd=Object.getOwnPropertyDescriptors||function(t){var e={};return uo(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},ya={},Fo={get:function(t,e){if(e===ae)return t;var r=cr(t);if(!co(r,e))return function(n,a,s){var c,u=Ad(a,s);return u?"value"in u?u.value:(c=u.get)===null||c===void 0?void 0:c.call(n.k):void 0}(t,r,e);var i=r[e];return t.I||!wt(i)?i:i===ua(t.t,e)?(pa(t),t.o[e]=ga(t.A.h,i,t)):i},has:function(t,e){return e in cr(t)},ownKeys:function(t){return Reflect.ownKeys(cr(t))},set:function(t,e,r){var i=Ad(cr(t),e);if(i?.set)return i.set.call(t.k,r),!0;if(!t.P){var n=ua(cr(t),e),a=n?.[ae];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(Ld(r,n)&&(r!==void 0||co(t.t,e)))return!0;pa(t),dr(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 ua(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,pa(t),dr(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=cr(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:r[e]}},defineProperty:function(){ht(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ht(12)}},Mo={};kr(Fo,function(t,e){Mo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Mo.deleteProperty=function(t,e){return Mo.set.call(this,t,e,void 0)},Mo.set=function(t,e,r){return Fo.set.call(this,t[0],e,r,t[0])};var wp=function(){function t(r){var i=this;this.O=Id,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var c=a;a=n;var u=i;return function(w){var _=this;w===void 0&&(w=c);for(var I=arguments.length,N=Array(I>1?I-1:0),$=1;$<I;$++)N[$-1]=arguments[$];return u.produce(w,function(H){var W;return(W=a).call.apply(W,[_,H].concat(N))})}}var p;if(typeof a!="function"&&ht(6),s!==void 0&&typeof s!="function"&&ht(7),wt(n)){var h=wd(i),g=ga(i,n,void 0),b=!0;try{p=a(g),b=!1}finally{b?_i(h):ha(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(w){return ca(h,s),da(w,h)},function(w){throw _i(h),w}):(ca(h,s),da(p,h))}if(!n||typeof n!="object"){if((p=a(n))===void 0&&(p=n),p===Pd&&(p=void 0),i.D&&va(p,!0),s){var x=[],S=[];Dt("Patches").M(n,p,x,S),s(x,S)}return p}ht(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(p){for(var h=arguments.length,g=Array(h>1?h-1:0),b=1;b<h;b++)g[b-1]=arguments[b];return i.produceWithPatches(p,function(x){return n.apply(void 0,[x].concat(g))})};var s,c,u=i.produce(n,a,function(p,h){s=p,c=h});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,s,c]}):[u,s,c]},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){wt(r)||ht(8),qt(r)&&(r=vp(r));var i=wd(this),n=ga(this,r,void 0);return n[ae].C=!0,ha(i),n},e.finishDraft=function(r,i){var n=r&&r[ae],a=n.A;return ca(a,i),da(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Id&&ht(20),this.O=r},e.applyPatches=function(r,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}n>-1&&(i=i.slice(n+1));var s=Dt("Patches").$;return qt(r)?s(r,i):this.produce(r,function(c){return s(c,i)})},t}(),at=new wp,Ep=at.produce,hC=at.produceWithPatches.bind(at),gC=at.setAutoFreeze.bind(at),yC=at.setUseProxies.bind(at),mC=at.applyPatches.bind(at),bC=at.createDraft.bind(at),xC=at.finishDraft.bind(at),ki=Ep;function Pr(t){"@babel/helpers - typeof";return Pr=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},Pr(t)}function $d(t,e){if(Pr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(Pr(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Md(t){var e=$d(t,"string");return Pr(e)=="symbol"?e:e+""}function Bd(t,e,r){return(e=Md(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Fd(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function Oa(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Fd(Object(r),!0).forEach(function(i){Bd(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Fd(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function ze(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 Ud=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),wa=function(){return Math.random().toString(36).substring(7).split("").join(".")},Pi={INIT:"@@redux/INIT"+wa(),REPLACE:"@@redux/REPLACE"+wa(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+wa()}};function Ap(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 Ea(t,e,r){var i;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ze(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ze(1));return r(Ea)(t,e)}if(typeof t!="function")throw new Error(ze(2));var n=t,a=e,s=[],c=s,u=!1;function p(){c===s&&(c=s.slice())}function h(){if(u)throw new Error(ze(3));return a}function g(w){if(typeof w!="function")throw new Error(ze(4));if(u)throw new Error(ze(5));var _=!0;return p(),c.push(w),function(){if(_){if(u)throw new Error(ze(6));_=!1,p();var N=c.indexOf(w);c.splice(N,1),s=null}}}function b(w){if(!Ap(w))throw new Error(ze(7));if(typeof w.type>"u")throw new Error(ze(8));if(u)throw new Error(ze(9));try{u=!0,a=n(a,w)}finally{u=!1}for(var _=s=c,I=0;I<_.length;I++){var N=_[I];N()}return w}function x(w){if(typeof w!="function")throw new Error(ze(10));n=w,b({type:Pi.REPLACE})}function S(){var w,_=g;return w={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(ze(11));function $(){N.next&&N.next(h())}$();var H=_($);return{unsubscribe:H}}},w[Ud]=function(){return this},w}return b({type:Pi.INIT}),i={dispatch:b,subscribe:g,getState:h,replaceReducer:x},i[Ud]=S,i}function Rp(t){Object.keys(t).forEach(function(e){var r=t[e],i=r(void 0,{type:Pi.INIT});if(typeof i>"u")throw new Error(ze(12));if(typeof r(void 0,{type:Pi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ze(13))})}function zd(t){for(var e=Object.keys(t),r={},i=0;i<e.length;i++){var n=e[i];typeof t[n]=="function"&&(r[n]=t[n])}var a=Object.keys(r),s,c;try{Rp(r)}catch(u){c=u}return function(p,h){if(p===void 0&&(p={}),c)throw c;if(0)var g;for(var b=!1,x={},S=0;S<a.length;S++){var w=a[S],_=r[w],I=p[w],N=_(I,h);if(typeof N>"u"){var $=h&&h.type;throw new Error(ze(14))}x[w]=N,b=b||N!==I}return b=b||a.length!==Object.keys(p).length,b?x:p}}function fo(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(i){return i}:e.length===1?e[0]:e.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function Hd(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(ze(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=e.map(function(u){return u(s)});return a=fo.apply(void 0,c)(n.dispatch),Oa(Oa({},n),{},{dispatch:a})}}}function Wd(t){var e=function(i){var n=i.dispatch,a=i.getState;return function(s){return function(c){return typeof c=="function"?c(n,a,t):s(c)}}};return e}var Gd=Wd();Gd.withExtraArgument=Wd;var Aa=Gd;var qd=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a])},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 i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),Tp=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(p){return function(h){return u([p,h])}}function u(p){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,n&&(a=p[0]&2?n.return:p[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,p[1])).done)return a;switch(n=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,n=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){r.label=p[1];break}if(p[0]===6&&r.label<a[1]){r.label=a[1],a=p;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(p);break}a[2]&&r.ops.pop(),r.trys.pop();continue}p=e.call(t,r)}catch(h){p=[6,h],n=0}finally{i=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},ho=function(t,e){for(var r=0,i=e.length,n=t.length;r<i;r++,n++)t[n]=e[r];return t},Ip=Object.defineProperty,_p=Object.defineProperties,Np=Object.getOwnPropertyDescriptors,Vd=Object.getOwnPropertySymbols,Lp=Object.prototype.hasOwnProperty,kp=Object.prototype.propertyIsEnumerable,jd=function(t,e,r){return e in t?Ip(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},ur=function(t,e){for(var r in e||(e={}))Lp.call(e,r)&&jd(t,r,e[r]);if(Vd)for(var i=0,n=Vd(e);i<n.length;i++){var r=n[i];kp.call(e,r)&&jd(t,r,e[r])}return t},Ra=function(t,e){return _p(t,Np(e))},Pp=function(t,e,r){return new Promise(function(i,n){var a=function(u){try{c(r.next(u))}catch(p){n(p)}},s=function(u){try{c(r.throw(u))}catch(p){n(p)}},c=function(u){return u.done?i(u.value):Promise.resolve(u.value).then(a,s)};c((r=r.apply(t,e)).next())})};var Dp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?fo:fo.apply(null,arguments)},MC=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function $p(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 Mp=function(t){qd(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];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=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,ho([void 0],r[0].concat(this)))):new(e.bind.apply(e,ho([void 0],r.concat(this))))},e}(Array),Bp=function(t){qd(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];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=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,ho([void 0],r[0].concat(this)))):new(e.bind.apply(e,ho([void 0],r.concat(this))))},e}(Array);function _a(t){return wt(t)?ki(t,function(){}):t}function Fp(t){return typeof t=="boolean"}function Up(){return function(e){return zp(e)}}function zp(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,i=t.immutableCheck,n=i===void 0?!0:i,a=t.serializableCheck,s=a===void 0?!0:a,c=new Mp;if(r&&(Fp(r)?c.push(Aa):c.push(Aa.withExtraArgument(r.extraArgument))),0){if(n)var u;if(s)var p}return c}var Ta=!0;function Yd(t){var e=Up(),r=t||{},i=r.reducer,n=i===void 0?void 0:i,a=r.middleware,s=a===void 0?e():a,c=r.devTools,u=c===void 0?!0:c,p=r.preloadedState,h=p===void 0?void 0:p,g=r.enhancers,b=g===void 0?void 0:g,x;if(typeof n=="function")x=n;else if($p(n))x=zd(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var S=s;if(typeof S=="function"&&(S=S(e),!Ta&&!Array.isArray(S)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ta&&S.some(function(H){return typeof H!="function"}))throw new Error("each middleware provided to configureStore must be a function");var w=Hd.apply(void 0,S),_=fo;u&&(_=Dp(ur({trace:!Ta},typeof u=="object"&&u)));var I=new Bp(w),N=I;Array.isArray(b)?N=ho([w],b):typeof b=="function"&&(N=b(I));var $=_.apply(void 0,N);return Ea(x,h,$)}function pr(t,e){function r(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var a=e.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return ur(ur({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:i[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(i){return i.type===t},r}function Xd(t){var e={},r=[],i,n={addCase:function(a,s){var c=typeof a=="string"?a:a.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=s,n},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return t(n),[e,r,i]}function Hp(t){return typeof t=="function"}function Wp(t,e,r,i){r===void 0&&(r=[]);var n=typeof e=="function"?Xd(e):[e,r,i],a=n[0],s=n[1],c=n[2],u;if(Hp(t))u=function(){return _a(t())};else{var p=_a(t);u=function(){return p}}function h(g,b){g===void 0&&(g=u());var x=ho([a[b.type]],s.filter(function(S){var w=S.matcher;return w(b)}).map(function(S){var w=S.reducer;return w}));return x.filter(function(S){return!!S}).length===0&&(x=[c]),x.reduce(function(S,w){if(w)if(qt(S)){var _=S,I=w(_,b);return I===void 0?S:I}else{if(wt(S))return ki(S,function(N){return w(N,b)});var I=w(S,b);if(I===void 0){if(S===null)return S;throw Error("A case reducer on a non-draftable value must not return undefined")}return I}return S},g)}return h.getInitialState=u,h}function Gp(t,e){return t+"/"+e}function Qd(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:_a(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},c={};n.forEach(function(h){var g=i[h],b=Gp(e,h),x,S;"reducer"in g?(x=g.reducer,S=g.prepare):x=g,a[h]=x,s[b]=x,c[h]=S?pr(b,S):pr(b)});function u(){var h=typeof t.extraReducers=="function"?Xd(t.extraReducers):[t.extraReducers],g=h[0],b=g===void 0?{}:g,x=h[1],S=x===void 0?[]:x,w=h[2],_=w===void 0?void 0:w,I=ur(ur({},b),s);return Wp(r,function(N){for(var $ in I)N.addCase($,I[$]);for(var H=0,W=S;H<W.length;H++){var qe=W[H];N.addMatcher(qe.matcher,qe.reducer)}_&&N.addDefaultCase(_)})}var p;return{name:e,reducer:function(h,g){return p||(p=u()),p(h,g)},actions:c,caseReducers:a,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var Vp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",jp=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Vp[Math.random()*64|0];return e},Kp=["name","message","stack","code"],Ia=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),Kd=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),Zp=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,i=Kp;r<i.length;r++){var n=i[r];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},zC=function(){function t(e,r,i){var n=pr(e+"/fulfilled",function(h,g,b,x){return{payload:h,meta:Ra(ur({},x||{}),{arg:b,requestId:g,requestStatus:"fulfilled"})}}),a=pr(e+"/pending",function(h,g,b){return{payload:void 0,meta:Ra(ur({},b||{}),{arg:g,requestId:h,requestStatus:"pending"})}}),s=pr(e+"/rejected",function(h,g,b,x,S){return{payload:x,error:(i&&i.serializeError||Zp)(h||"Rejected"),meta:Ra(ur({},S||{}),{arg:b,requestId:g,rejectedWithValue:!!x,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),c=!1,u=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(g,b,x){var S=i?.idGenerator?i.idGenerator(h):jp(),w=new u,_,I=!1;function N(H){_=H,w.abort()}var $=function(){return Pp(this,null,function(){var H,W,qe,Rt,Ge,Tt,Ne;return Tp(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),Rt=(H=i?.condition)==null?void 0:H.call(i,h,{getState:b,extra:x}),Yp(Rt)?[4,Rt]:[3,2];case 1:Rt=y.sent(),y.label=2;case 2:if(Rt===!1||w.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return I=!0,Ge=new Promise(function(v,P){return w.signal.addEventListener("abort",function(){return P({name:"AbortError",message:_||"Aborted"})})}),g(a(S,h,(W=i?.getPendingMeta)==null?void 0:W.call(i,{requestId:S,arg:h},{getState:b,extra:x}))),[4,Promise.race([Ge,Promise.resolve(r(h,{dispatch:g,getState:b,extra:x,requestId:S,signal:w.signal,abort:N,rejectWithValue:function(v,P){return new Ia(v,P)},fulfillWithValue:function(v,P){return new Kd(v,P)}})).then(function(v){if(v instanceof Ia)throw v;return v instanceof Kd?n(v.payload,S,h,v.meta):n(v,S,h)})])];case 3:return qe=y.sent(),[3,5];case 4:return Tt=y.sent(),qe=Tt instanceof Ia?s(null,S,h,Tt.payload,Tt.meta):s(Tt,S,h),[3,5];case 5:return Ne=i&&!i.dispatchConditionRejection&&s.match(qe)&&qe.meta.condition,Ne||g(qe),[2,qe]}})})}();return Object.assign($,{abort:N,requestId:S,arg:h,unwrap:function(){return $.then(qp)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t}();function qp(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Yp(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Jd="listener",eu="completed",tu="cancelled",HC="task-"+tu,WC="task-"+eu,GC=Jd+"-"+tu,VC=Jd+"-"+eu;var Na="listenerMiddleware";var jC=pr(Na+"/add"),KC=pr(Na+"/removeAll"),ZC=pr(Na+"/remove");var Zd,qC=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Zd||(Zd=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Xp=function(t){return function(e){setTimeout(e,t)}},YC=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Xp(10);kd();var Qp=wi(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),Di=class extends Qp(Object){};window.ftReduxStores||(window.ftReduxStores={});var ru=class t extends Di{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[i];if(Ii(a))return a;if(n==null)return;let s=Qd({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),c=Yd({reducer:(u,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...p.overwrites}:s.reducer(u,p)});return window.ftReduxStores[n.name]=new t(s,c,n.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Ei;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,c)=>{let u=s,p=a[u];return p?(...h)=>{let g=p(...h.map(n));return this.reduxStore.dispatch(g),g}:h=>{this.setState({[u]:n(h)})}}}),this.eventBus=i??this.eventBus}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()}};var $i=class{static format(e,r,i,n){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,n)):this.getIntlDateTime(e,r,i,n)}static getMomentDateFormat(e,r){return e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,n){let a=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(a);if(!n)return s;let c=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(a);return`${s} ${c}`}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var ou=m(T()),Mi=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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},vO=(0,ou.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(E)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,a;return((a=(n=this.metadataDescriptors.find(c=>c.key===i))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1)?c=>$i.format(c,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Mi([(0,La.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Mi([(0,La.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Mi([la({store:E.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),Mi([la({store:E.name})],e.prototype,"uiLocale",void 0),e});var Ui=m(T());var Bi=class extends Ze{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=E.getState().session;return!!e?.sessionAuthenticated}};var Fi=class extends Ze{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=E.getState().session;return!!e?.sessionAuthenticated}};var Jp="ft-user-assets",ef={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(rt).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:n}=e.payload;switch(r){case rt.BOOKMARKS:t.bookmarks?t.bookmarks.push(n):t.bookmarks=[n];break;case rt.SEARCHES:t.savedSearches?t.savedSearches.push(n):t.savedSearches=[n];break}let a=t.assetCounts.allAsset[r];if(a!==void 0&&(t.assetCounts.allAsset[r]=a+1),r===rt.BOOKMARKS&&i!==void 0){let s=t.assetCounts.bookmarkByMap[i];s!==void 0&&(t.assetCounts.bookmarkByMap[i]=s+1)}},removeAsset:(t,e)=>{var r,i;let{assetType:n,mapId:a,assetId:s}=e.payload;switch(n){case rt.BOOKMARKS:t.bookmarks=(r=t.bookmarks)===null||r===void 0?void 0:r.filter(u=>u.id!==s);break;case rt.SEARCHES:t.savedSearches=(i=t.savedSearches)===null||i===void 0?void 0:i.filter(u=>u.id!==s);break}let c=t.assetCounts.allAsset[n];if(c!==void 0&&c>0&&(t.assetCounts.allAsset[n]=c-1),n===rt.BOOKMARKS&&a!==void 0){let u=t.assetCounts.bookmarkByMap[a];u!==void 0&&u>0&&(t.assetCounts.bookmarkByMap[a]=u-1)}}},st=Ui.FtReduxStore.get({name:Jp,reducers:ef,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(rt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),ka=class{constructor(e=new Bi,r=new Fi){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=E.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new bi,this.savedSearchesService=new Si,E.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=E.getState();(0,Ui.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),st.actions.clearAssetCount(),st.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),st.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),st.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();st.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();st.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&st.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&st.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(st.getState().assetCounts.bookmarkByMap).length!==0;e===rt.BOOKMARKS&&r&&st.actions.clearBookmarkCountByMap(),st.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}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;st.actions.bookmarks(r)}}},Pa=new ka;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Pa);(0,iu.customElement)("ft-app-context")(ie);var su=m(Z());var Da=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[i,n]=e.split(".");return{context:i,key:n,message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},nu=new Da;var tf=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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},rf=Symbol("i18nAttributes"),of=Symbol("i18nListAttributes"),zo=Symbol("i18nProperties"),zi=Symbol("i18nContexts"),Uo=Symbol("i18nUnsubs"),fr=(0,go.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?vi:no}i18n(a){let{context:s,key:c,message:u}=a,{custom:p,args:h,argsProvider:g}=a;if(s&&c){this.hasI18nContext(s)||this.addI18nContext(s,void 0,p);let b=h??(g?g(this):[]);return this.getI18nService(p).resolveMessage(s,c,...b)}return u}async awaitI18n(a){let{context:s,custom:c}=a;return s&&await this.getI18nService(c).prepareContext(s),this.i18n(a)}customI18n(a,s){if(nu.isI18nKey(a)){let[c,u]=a.split(".");return this.i18n({custom:!0,context:c,key:u,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,c,u)=>a.has(c)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,c,u)=>{var p;return((p=u?.context)===null||p===void 0?void 0:p.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,c;let u=this,p=(h,g,b)=>b?.context&&b.key&&a(h,g,b)?{...b,message:this.i18n({context:b.context,key:b.key,custom:b.custom,...h})}:b;(s=this[rf])===null||s===void 0||s.forEach((h,g)=>u[g]=p(h,g,u[g])),(c=this[of])===null||c===void 0||c.forEach((h,g)=>{var b;return u[g]=(b=u[g])===null||b===void 0?void 0:b.map(x=>p(h,g,x))})}updateI18nProperties(a){var s;(s=this[zo])===null||s===void 0||s.forEach((c,u)=>{a(c,u)&&(this[u]=this.i18n(c))})}addI18nMessages(a,s,c){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,c)}addI18nContext(a,s,c){let u=(typeof a=="string"?a:a.name).toLowerCase();c=typeof a=="string"?c:a.custom,this[zi].set(u,{isCustomContext:c}),this[Uo].has(u)||this[Uo].set(u,this.getI18nService(c).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(c).prepareContext(u,s)}hasI18nContext(a){return this[zi].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[zi].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Uo].forEach(a=>a()),this[Uo].clear()}}return e=zi,r=Uo,tf([(0,su.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),au=class extends fr(go.FtLitElement){},Hi=class extends fr(go.FtLitElementRedux){};var Ho=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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},Et=class extends Hi{constructor(){super(),this.editorMode=!1,this.addStore(E)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Wi.nothing:Wi.html`
1664
1664
  <span class="ft-i18n">
1665
1665
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
1666
1666
  </span>
1667
- `}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Et.elementDefinitions={};Et.styles=ed;zo([(0,Gi.redux)()],Et.prototype,"editorMode",void 0);zo([(0,Wi.property)()],Et.prototype,"context",void 0);zo([(0,Wi.property)()],Et.prototype,"key",void 0);zo([(0,Gi.jsonProperty)([])],Et.prototype,"args",void 0);zo([(0,Wi.property)()],Et.prototype,"defaultMessage",void 0);var hr=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?xi:io}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,n)=>{let a=n;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...a)=>this.service.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(i,n)=>()=>n}),this.attributes=new Proxy({},{get:(i,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var Vi=(t,e)=>(r,i)=>{var n,a;r.constructor.createProperty(i,e??{attribute:!1,type:String});let s={...t,key:(n=t.key)!==null&&n!==void 0?n:i};r[Uo]=(a=r[Uo])!==null&&a!==void 0?a:new Map,r[Uo].set(i,s)};(0,su.customElement)("ft-i18n")(Et);var V=hr.build("integratedFeedbackComponent"),lu={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",moreOptionsButton:"More options",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"};var $a=m(T());var Ae=m(M()),z=m(Z()),gu=m(Qn()),yu=m(Bt());var gr=m(T());var cu=m(M()),D=m(T());var U={fontSize:D.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:D.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:D.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:D.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:D.FtCssVariableFactory.extend("--ft-text-field-helper-color","",D.designSystemVariables.colorOnSurfaceMedium),colorPrimary:D.FtCssVariableFactory.external(D.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:D.FtCssVariableFactory.external(D.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:D.FtCssVariableFactory.external(D.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:D.FtCssVariableFactory.external(D.designSystemVariables.borderRadiusS,"Design system"),colorError:D.FtCssVariableFactory.external(D.designSystemVariables.colorError,"Design system"),prefixColor:D.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",D.designSystemVariables.colorOnSurfaceMedium),iconColor:D.FtCssVariableFactory.extend("--ft-text-field-icon-color","",D.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:D.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),backgroundColor:D.FtCssVariableFactory.extend("--ft-text-field-background-color","",D.designSystemVariables.colorSurface),colorOutline:D.FtCssVariableFactory.external(D.designSystemVariables.colorOutline,"Design system"),elevation02:D.FtCssVariableFactory.external(D.designSystemVariables.elevation02,"Design system"),suggestSize:D.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},du=cu.css`
1667
+ `}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Et.elementDefinitions={};Et.styles=td;Ho([(0,Vi.redux)()],Et.prototype,"editorMode",void 0);Ho([(0,Gi.property)()],Et.prototype,"context",void 0);Ho([(0,Gi.property)()],Et.prototype,"key",void 0);Ho([(0,Vi.jsonProperty)([])],Et.prototype,"args",void 0);Ho([(0,Gi.property)()],Et.prototype,"defaultMessage",void 0);var hr=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?vi:no}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,n)=>{let a=n;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...a)=>this.service.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(i,n)=>()=>n}),this.attributes=new Proxy({},{get:(i,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var ji=(t,e)=>(r,i)=>{var n,a;r.constructor.createProperty(i,e??{attribute:!1,type:String});let s={...t,key:(n=t.key)!==null&&n!==void 0?n:i};r[zo]=(a=r[zo])!==null&&a!==void 0?a:new Map,r[zo].set(i,s)};(0,lu.customElement)("ft-i18n")(Et);var V=hr.build("integratedFeedbackComponent"),cu={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",moreOptionsButton:"More options",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"};var Ma=m(T());var Ae=m(M()),z=m(Z()),yu=m(Jn()),mu=m(Ft());var gr=m(T());var du=m(M()),D=m(T());var U={fontSize:D.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:D.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:D.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:D.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:D.FtCssVariableFactory.extend("--ft-text-field-helper-color","",D.designSystemVariables.colorOnSurfaceMedium),colorPrimary:D.FtCssVariableFactory.external(D.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:D.FtCssVariableFactory.external(D.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:D.FtCssVariableFactory.external(D.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:D.FtCssVariableFactory.external(D.designSystemVariables.borderRadiusS,"Design system"),colorError:D.FtCssVariableFactory.external(D.designSystemVariables.colorError,"Design system"),prefixColor:D.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",D.designSystemVariables.colorOnSurfaceMedium),iconColor:D.FtCssVariableFactory.extend("--ft-text-field-icon-color","",D.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:D.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),backgroundColor:D.FtCssVariableFactory.extend("--ft-text-field-background-color","",D.designSystemVariables.colorSurface),colorOutline:D.FtCssVariableFactory.external(D.designSystemVariables.colorOutline,"Design system"),elevation02:D.FtCssVariableFactory.external(D.designSystemVariables.elevation02,"Design system"),suggestSize:D.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},uu=du.css`
1668
1668
  *:focus {
1669
1669
  outline: none;
1670
1670
  }
@@ -1704,8 +1704,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1704
1704
  }
1705
1705
 
1706
1706
  .ft-text-field--input-panel ft-ripple {
1707
- ${(0,D.setVariable)(w.opacityContentOnSurfaceHover,"0.08")};
1708
- ${(0,D.setVariable)(w.opacityContentOnSurfacePressed,"0.04")};
1707
+ ${(0,D.setVariable)(O.opacityContentOnSurfaceHover,"0.08")};
1708
+ ${(0,D.setVariable)(O.opacityContentOnSurfacePressed,"0.04")};
1709
1709
  }
1710
1710
 
1711
1711
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
@@ -1823,7 +1823,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1823
1823
  .ft-text-field--with-password ft-icon:hover {
1824
1824
  cursor: pointer;
1825
1825
  }
1826
- `;var fu=m(T()),Ho=m(M()),Pr=m(Z());var uu=m(M());var pu=uu.css`
1826
+ `;var hu=m(T()),Wo=m(M()),Dr=m(Z());var pu=m(M());var fu=pu.css`
1827
1827
  .ft-text-field-suggestion {
1828
1828
  position: relative;
1829
1829
  padding: 8px 16px;
@@ -1859,24 +1859,24 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1859
1859
  slot {
1860
1860
  pointer-events: none;
1861
1861
  }
1862
- `;var hu=m(Bt()),ji=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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},Da=class extends CustomEvent{constructor(e){super("suggestion-selected",{detail:e,bubbles:!0,composed:!0})}},gt=class extends fu.FtLitElement{render(){let e={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return Ho.html`
1863
- <div class=${(0,hu.classMap)(e)}
1862
+ `;var gu=m(Ft()),Ki=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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},$a=class extends CustomEvent{constructor(e){super("suggestion-selected",{detail:e,bubbles:!0,composed:!0})}},gt=class extends hu.FtLitElement{render(){let e={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return Wo.html`
1863
+ <div class=${(0,gu.classMap)(e)}
1864
1864
  tabindex="-1"
1865
1865
  @keydown=${this.onKeyDown}
1866
1866
  @click=${this.confirmSuggestion}>
1867
1867
  <ft-ripple></ft-ripple>
1868
- ${this.helper?Ho.html`
1868
+ ${this.helper?Wo.html`
1869
1869
  <ft-typography class="ft-text-field-suggestion--helper-text" variant="caption">
1870
1870
  ${this.helper}
1871
- </ft-typography>`:Ho.nothing}
1871
+ </ft-typography>`:Wo.nothing}
1872
1872
  <ft-typography part="label"
1873
1873
  variant="body1"
1874
1874
  class="ft-text-field-suggestion--label">
1875
1875
  <slot></slot>
1876
1876
  </ft-typography>
1877
1877
  </div>
1878
- `}focus(e){var r;(r=this.container)===null||r===void 0||r.focus(e)}click(){var e;(e=this.container)===null||e===void 0||e.click()}confirmSuggestion(){this.dispatchEvent(new Da(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map(e=>e.textContent).join("").trim()}onKeyDown(e){["Enter"," "].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),this.confirmSuggestion())}};gt.elementDefinitions={"ft-ripple":K,"ft-typography":pe,"ft-icon":he};gt.styles=pu;ji([(0,Pr.property)()],gt.prototype,"value",void 0);ji([(0,Pr.property)()],gt.prototype,"helper",void 0);ji([(0,Pr.query)(".ft-text-field-suggestion")],gt.prototype,"container",void 0);ji([(0,Pr.queryAssignedNodes)()],gt.prototype,"assignedNodes",void 0);var j=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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},B=class extends(0,gr.toFtFormComponent)(gr.FtLitElement){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=Ar.EYE_SLASH,this.passwordRevealedIcon=Ar.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[],this.providedSuggestions=[]}get value(){return this._value||""}set value(e){this.setInternalValue(e||""),this.dispatchedValue=e||""}setInternalValue(e){let r=this._value;this._value=e||"",this.setFormValue(this._value),this.requestUpdate("value",r)}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}blur(){var e;(e=this.input)===null||e===void 0||e.blur()}render(){let e={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":!this.suggestionsShouldBeDisplayed(),"ft-text-field--raised-label":this.focused||this.value!="","ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.isPasswordField()},r=this.suggestionsProvider&&this.value&&this.value!=""&&!this.providedSuggestions.map(a=>a.label).includes(this.value),n=!this.suggestionsProvider&&this.filterSuggestions&&this.value&&this.value!=""||r;return Ae.html`
1879
- <div class="${(0,yu.classMap)(e)}">
1878
+ `}focus(e){var r;(r=this.container)===null||r===void 0||r.focus(e)}click(){var e;(e=this.container)===null||e===void 0||e.click()}confirmSuggestion(){this.dispatchEvent(new $a(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map(e=>e.textContent).join("").trim()}onKeyDown(e){["Enter"," "].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),this.confirmSuggestion())}};gt.elementDefinitions={"ft-ripple":K,"ft-typography":pe,"ft-icon":he};gt.styles=fu;Ki([(0,Dr.property)()],gt.prototype,"value",void 0);Ki([(0,Dr.property)()],gt.prototype,"helper",void 0);Ki([(0,Dr.query)(".ft-text-field-suggestion")],gt.prototype,"container",void 0);Ki([(0,Dr.queryAssignedNodes)()],gt.prototype,"assignedNodes",void 0);var j=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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},B=class extends(0,gr.toFtFormComponent)(gr.FtLitElement){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=Ar.EYE_SLASH,this.passwordRevealedIcon=Ar.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[],this.providedSuggestions=[]}get value(){return this._value||""}set value(e){this.setInternalValue(e||""),this.dispatchedValue=e||""}setInternalValue(e){let r=this._value;this._value=e||"",this.setFormValue(this._value),this.requestUpdate("value",r)}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}blur(){var e;(e=this.input)===null||e===void 0||e.blur()}render(){let e={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":!this.suggestionsShouldBeDisplayed(),"ft-text-field--raised-label":this.focused||this.value!="","ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.isPasswordField()},r=this.suggestionsProvider&&this.value&&this.value!=""&&!this.providedSuggestions.map(a=>a.label).includes(this.value),n=!this.suggestionsProvider&&this.filterSuggestions&&this.value&&this.value!=""||r;return Ae.html`
1879
+ <div class="${(0,mu.classMap)(e)}">
1880
1880
  <div class="ft-text-field--main-panel"
1881
1881
  @keydown=${this.handleKeyboardNavigation}
1882
1882
  @focusout=${this.onMainPanelBlur}>
@@ -1895,10 +1895,10 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1895
1895
  </ft-typography>
1896
1896
  `:Ae.nothing}
1897
1897
  <input type="${this.resolveInputType()}"
1898
- name="${ro(this.name)}"
1899
- maxlength="${ro(this.maxLength||void 0)}"
1898
+ name="${oo(this.name)}"
1899
+ maxlength="${oo(this.maxLength||void 0)}"
1900
1900
  aria-label="${this.label}"
1901
- autocomplete="${ro(this.autocomplete)}"
1901
+ autocomplete="${oo(this.autocomplete)}"
1902
1902
  class="ft-typography--body1 ft-text-field--input"
1903
1903
  part="input"
1904
1904
  ?disabled=${this.disabled}
@@ -1925,7 +1925,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1925
1925
  `:Ae.nothing}
1926
1926
  </div>
1927
1927
  `}resolveInputType(){var e;return this.isPasswordField()?this.hidePassword?"password":"text":(e=this.type)!==null&&e!==void 0?e:"text"}renderSuggestions(){return this.suggestionsProvider?Ae.html`
1928
- ${(0,gu.repeat)(this.providedSuggestions,e=>Ae.html`
1928
+ ${(0,yu.repeat)(this.providedSuggestions,e=>Ae.html`
1929
1929
  <ft-text-field-suggestion value="${e.value}" @click=${r=>this.onSuggestionClick(r,e.clickHandler)}>
1930
1930
  ${e.icon?Ae.html`
1931
1931
  <ft-icon .value=${e.icon}></ft-icon>
@@ -1944,15 +1944,15 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1944
1944
  .variant=${this.iconVariant}
1945
1945
  .value=${this.icon}
1946
1946
  @click=${()=>{var e;return(e=this.input)===null||e===void 0?void 0:e.focus()}}></ft-icon>
1947
- `:Ae.nothing}update(e){super.update(e),(e.has("value")||e.has("filterSuggestions")||e.has("suggestionsProvider"))&&this.updateSuggestions(),e.has("value")&&e.get("value")!=null&&(this.hideSuggestions=!1),e.has("dispatchedValue")&&e.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}async updateSuggestions(){this.suggestionsProvider?this.providedSuggestions=await this.suggestionsProvider(this.value):this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.slottedSuggestions.forEach(e=>e.hidden=!e.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.slottedSuggestions.filter(e=>!e.hidden)):this.visibleSuggestions=this.slottedSuggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion]),this.hideSuggestions=this.visibleSuggestions.length<=0}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&this.setSuggestionPosition(),e.has("value")&&this.suggestionsProvider&&(this.visibleSuggestions=[...this.providedSuggestionsInDom]),e.has("autocomplete")&&this.setupWatchAutofill(),this.suggestionsShouldBeDisplayed()&&this.setSuggestionPosition()}setupWatchAutofill(){var e;this.clearWatchAutofill(),((e=this.autocomplete)!==null&&e!==void 0?e:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var r,i,n;!((r=this.input)===null||r===void 0)&&r.matches(":autofill")&&this.dispatchedValue!==((i=this.input)===null||i===void 0?void 0:i.value)&&this.setValue((n=this.input)===null||n===void 0?void 0:n.value,!0)},200))}clearWatchAutofill(){this.watchAutofillInterval&&clearInterval(this.watchAutofillInterval)}connectedCallback(){super.connectedCallback(),this.setupWatchAutofill()}disconnectedCallback(){super.disconnectedCallback(),this.clearWatchAutofill()}setValue(e,r=!1){this.value!==e&&(this.setInternalValue(e),this.dispatchEvent(new CustomEvent("live-change",{detail:e}))),r&&this.dispatchedValue!==e&&(this.dispatchedValue=e,this.dispatchEvent(new CustomEvent("change",{detail:e})))}handleInput(e){var r;let i=((r=this.input)===null||r===void 0?void 0:r.value)||"";this.setValue(i,e.key=="Escape"||e.key=="Enter")}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(e){var r;if(e.key==="ArrowDown"||e.key==="ArrowUp"){e.preventDefault(),e.stopPropagation(),this.hideSuggestions=!1;let i=this.visibleSuggestions.findIndex(a=>a.matches(":focus-within")),n;e.key==="ArrowDown"?n=i<this.visibleSuggestions.length-1?i+1:0:n=i>0?i-1:this.visibleSuggestions.length-1,(r=this.visibleSuggestions[n])===null||r===void 0||r.focus()}(e.key=="Escape"||e.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(e){var r;this.setValue(e.detail,!0),(r=this.input)===null||r===void 0||r.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var e,r;!((e=this.mainPanel)===null||e===void 0)&&e.matches(":focus-within")||(this.focused=!1,this.setValue(((r=this.input)===null||r===void 0?void 0:r.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}isPasswordField(){return this.password||this.type==="password"}setSuggestionPosition(){this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px";let e=["bottom","top"];(0,gr.computeOffsetAutoPosition)(this.mainPanel,this.suggestionsContainer,"bottom",e,"fixed","--text-field-internal-suggest-size",0).then(({x:r,y:i})=>{this.suggestionsContainer.style.left=`${r}px`,this.suggestionsContainer.style.top=`${i}px`})}suggestionsShouldBeDisplayed(){return!this.hideSuggestions&&(this.visibleSuggestions.length||this.providedSuggestions.length)}};B.elementDefinitions={"ft-input-label":nt,"ft-ripple":K,"ft-typography":pe,"ft-icon":he,"ft-text-field-suggestion":gt};B.styles=[Wr,gr.noTextInputDefaultClearButton,du];j([(0,z.property)()],B.prototype,"label",void 0);j([(0,z.property)({noAccessor:!0})],B.prototype,"value",null);j([(0,z.state)()],B.prototype,"dispatchedValue",void 0);j([(0,z.property)()],B.prototype,"helper",void 0);j([(0,z.property)()],B.prototype,"suggestionsHelper",void 0);j([(0,z.property)({type:Boolean})],B.prototype,"outlined",void 0);j([(0,z.property)({type:Boolean})],B.prototype,"disabled",void 0);j([(0,z.property)({type:Boolean})],B.prototype,"error",void 0);j([(0,z.property)({type:Boolean})],B.prototype,"fixedMenuPosition",void 0);j([(0,z.property)()],B.prototype,"prefix",void 0);j([(0,z.property)()],B.prototype,"icon",void 0);j([(0,z.property)()],B.prototype,"name",void 0);j([(0,z.property)()],B.prototype,"type",void 0);j([(0,z.property)()],B.prototype,"passwordHiddenIcon",void 0);j([(0,z.property)()],B.prototype,"passwordRevealedIcon",void 0);j([(0,z.property)()],B.prototype,"iconVariant",void 0);j([(0,z.property)({type:Boolean})],B.prototype,"filterSuggestions",void 0);j([(0,z.property)({type:Number})],B.prototype,"maxLength",void 0);j([(0,z.property)({type:Boolean})],B.prototype,"password",void 0);j([(0,z.property)({type:String})],B.prototype,"autocomplete",void 0);j([(0,z.property)({attribute:!1})],B.prototype,"suggestionsProvider",void 0);j([(0,z.state)()],B.prototype,"focused",void 0);j([(0,z.state)()],B.prototype,"hidePassword",void 0);j([(0,z.state)()],B.prototype,"hideSuggestions",void 0);j([(0,z.state)()],B.prototype,"visibleSuggestions",void 0);j([(0,z.state)()],B.prototype,"providedSuggestions",void 0);j([(0,z.query)(".ft-text-field--main-panel")],B.prototype,"mainPanel",void 0);j([(0,z.query)(".ft-text-field--input")],B.prototype,"input",void 0);j([(0,z.query)(".ft-text-field-suggestion--new-value")],B.prototype,"newValueSuggestion",void 0);j([(0,z.query)(".ft-text-field--suggestions")],B.prototype,"suggestionsContainer",void 0);j([(0,z.queryAll)("ft-text-field-suggestion")],B.prototype,"providedSuggestionsInDom",void 0);j([(0,z.queryAssignedElements)({selector:"ft-text-field-suggestion"})],B.prototype,"slottedSuggestions",void 0);(0,$a.customElement)("ft-text-field")(B);(0,$a.customElement)("ft-text-field-suggestion")(gt);var Su=m(T());var Wo=m(M()),yr=m(Z()),et=m(T());var At=m(T());var mu=m(T()),of={setTranslationDestinationLanguage:(t,e)=>{t.translation.destinationLanguage=e.payload},setTranslationSourceLanguage:(t,e)=>{t.translation.sourceLanguage=e.payload},setTranslationProfileId:(t,e)=>{t.translation.profileId=e.payload},setTranslationLoading:(t,e)=>{t.translation.isLoading=e.payload},setTranslationError:(t,e)=>{t.translation.isError=e.payload},setTopicsRating:(t,e)=>{for(let r in e.payload)t.topicsRating[r]=e.payload[r]}},bu=t=>mu.FtReduxStore.get({name:"ft-reader-"+t,initialState:{mapId:void 0,renderedTopics:[],visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0,mapRating:void 0,topicsRating:{},translation:{sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1}},reducers:of});var Ma=class{constructor(e,r){this.mapId=e,this.paginatedToc=r,this.nodeByTocId={},this.nodeByUrl={},this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId,translationError:this.paginatedToc.translationError}}extractPagesToc(e,r,i){return e.flatMap(n=>{var a;return n.pageConfiguration&&this.registerPage(this.buildPage(n,i)),n.tocId==null?this.extractPagesToc(n.children,r,i):[{tocId:n.tocId,title:(a=n.title)!==null&&a!==void 0?a:"",untranslatedTitle:n.untranslatedTitle,depth:r,children:this.extractPagesToc(n.children,r+1,n.tocId)}]})}convertNodes(e,r,i){return e.flatMap(n=>{var a,s,c;if(n.tocId==null)return[...this.convertSectionNodes((a=n.pageToc)!==null&&a!==void 0?a:[],r,n.tocId),...this.convertNodes(n.children,r,n.tocId)];let u=(s=n.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),p={tocId:n.tocId,contentId:n.contentId,title:n.title,untranslatedTitle:n.untranslatedTitle,hasRating:n.hasRating,origin:n.origin,prettyUrl:u,depth:r,parentTocId:i,children:[]};this.register(p);let h=this.convertSectionNodes((c=n.pageToc)!==null&&c!==void 0?c:[],r+1,n.tocId),g=this.convertNodes(n.children,r+1,p.tocId);return p.children=[...h,...g],[p]})}convertSectionNodes(e,r,i){return e.flatMap(n=>{var a;let s=(a=n.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),c={...n,prettyUrl:s,depth:r,parentTocId:i,children:[]};return this.register(c),c.children=this.convertSectionNodes(n.children,r+1,n.tocId),[c]})}buildPage(e,r){var i,n,a,s,c,u;let p={number:this.pages.length+1,title:(i=e.title)!==null&&i!==void 0?i:"",untranslatedTitle:e.untranslatedTitle,rootTocId:(n=e.tocId)!==null&&n!==void 0?n:"root",toc:((a=e.pageToc)!==null&&a!==void 0?a:[]).map(b=>this.nodeByTocId[b.tocId]),topics:[],hiddenTopics:[],breadcrumb:r?this.buildBreadcrumb(this.nodeByTocId[r]):[]},h=(b,x)=>(x?p.topics:p.hiddenTopics).push(b),g=(c=(s=e.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&c!==void 0?c:[];return p.breadcrumb.forEach((b,x)=>{h(b,g[x])}),e.tocId&&h(e.tocId,e.pageConfiguration.isVisible),p.topics.push(...this.tocIds((u=e.pageToc)!==null&&u!==void 0?u:[])),p}registerPage(e){for(let r of[...e.topics,...e.hiddenTopics])this.pageByTocId[r]||(this.pageByTocId[r]=e);this.pages.push(e)}tocIds(e){return e.flatMap(r=>[r.tocId,...this.tocIds(r.children)])}buildBreadcrumb(e){let r=[e.tocId];for(;e?.parentTocId;)r.unshift(e.parentTocId),e=this.nodeByTocId[e.parentTocId];return r}register(e){e.prettyUrl&&(this.nodeByUrl[e.prettyUrl]==null?this.nodeByUrl[e.prettyUrl]=e:this.duplicatedPrettyUrls.add(e.prettyUrl)),this.nodeByUrl[`${this.mapId}/${e.tocId}`]=e,this.nodeByTocId[e.tocId]=e}},Ki=class{convertPaginatedToc(e,r){return new Ma(e,r).build()}};var Zi=class extends Ze{get mapId(){return this._mapId}set mapId(e){e!==this._mapId&&this.clear(),this._mapId=e}constructor(e,r,i){super(!1,r),this.converter=e,this._mapId=i,this.initCache()}async withMapId(e){return this._mapId?e(this._mapId):void 0}initCache(){this.cache.register("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(e=>this.fetchMap(e))),this.cache.register("enrichedToc",()=>this.withMapId(e=>this.fetchPages(e).then(r=>this.converter.convertPaginatedToc(e,r)))),this.cache.register("ratingSummary",()=>{var e,r;return Mt((r=(e=E.getState().session)===null||e===void 0?void 0:e.profile.roles)!==null&&r!==void 0?r:[],"RATING_USER")?this.withMapId(n=>this.fetchMapRating(n)):Promise.resolve()})}clear(){this.cache.clearMatching(e=>e!=="configuration")}makeCacheKey(e,r){return e+(r?"-destinationLanguage-"+r?.destinationLanguage:"")}getMap(e){return this.cache.get(this.makeCacheKey("map",e),()=>this.fetchMap(this.mapId,e))}getMapNow(e){return this.cache.getNow(this.makeCacheKey("map",e))}getConfiguration(){return this.cache.get("configuration")}clearConfiguration(){this.cache.clear("configuration")}getEnrichedToc(e){return this.cache.get(this.makeCacheKey("enrichedToc",e),()=>this.fetchPages(this.mapId,e).then(r=>this.converter.convertPaginatedToc(this.mapId,r)))}getEnrichedTocNow(e){return this.cache.getNow(this.makeCacheKey("enrichedToc",e))}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(e){return(await this.getEnrichedToc(e)).toc}async getPagesToc(e){return(await this.getEnrichedToc(e)).pagesToc}async getTranslationError(e){return(await this.getEnrichedToc(e)).translationError}async getTocNode(e,r){return(await this.getEnrichedToc(r)).nodeByTocId[e]}getTocNodeNow(e,r){var i;return(i=this.getEnrichedTocNow(r))===null||i===void 0?void 0:i.nodeByTocId[e]}getTocNodeNowByUrl(e,r){var i,n;let a=this.getMapNow(r);return a?.prettyUrl==e||`${a?.id}/root`===e?(i=this.getEnrichedTocNow(r))===null||i===void 0?void 0:i.toc[0]:(n=this.getEnrichedTocNow(r))===null||n===void 0?void 0:n.nodeByUrl[e]}async getPage(e,r){let i=await this.getEnrichedToc(r);return i.pages[e-1]||i.pages[0]}async getPageByTocId(e,r){let i=await this.getEnrichedToc(r);return i.pageByTocId[e]||i.pages[0]}getTopicInfo(e){return this.cache.get("topic-"+e.tocId,()=>this.fetchTopicMetadata(e))}getTopicContent(e){return this.cache.get("topic-content-"+e.tocId,()=>this.fetchTopicHTMLContent(e))}getTranslatedTopicContent(e,r){return this.cache.get(this.makeCacheKey("translated-topic-content-"+e.tocId,r),()=>this.fetchTranslatedTopicHTMLContent(e,r))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}clearMapAttachments(){this.cache.clear("map-attachments")}getRelativesForDocument(e,r){return this.cache.get("document-relatives-"+e+"-"+r.join("-"),()=>this.fetchRelativesForDocument(e,r))}getRelativesForTopicInMap(e,r,i){return this.cache.get("topic-relatives-"+[e,r,...i].join("-"),()=>this.fetchRelativesForTopicInMap(e,r,i))}getAttachmentDownloadLink(e){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(e).content}?download=true&locationValue=reader`)}getLink(e,r,i){let n=this.getNavigationData(e,r,i),a=this.getReaderLinkPrefix()+(n.prettyUrl?n.prettyUrl:`${n.mapId}/${n.tocId}`),s=new URL(a,this.api.tenantBaseUrl);return n.page!=null&&s.searchParams.set("page",`${n.page}`),n.prettyUrlDuplicated&&s.searchParams.set("tocId",n.tocId),n.section!=null&&s.searchParams.set("section",n.section),s.href}getNavigationData(e,r,i,n){var a,s;e=e||"root";let c=this.getEnrichedTocNow(n),u=c?.pageByTocId[e],p=c?.nodeByTocId[e],h=p?.prettyUrl;return{mapId:this.mapId,tocId:e,topicTitle:(a=p?.title)!==null&&a!==void 0?a:"",untranslatedTopicTitle:p?.untranslatedTitle,page:r&&u&&u.number!==r?r:void 0,prettyUrl:h?.replace(/^r\//,""),prettyUrlDuplicated:(s=c?.duplicatedPrettyUrls.has(h??""))!==null&&s!==void 0?s:!1,section:i}}async getAccurateNavigationData(e,r,i,n){return await this.getEnrichedToc(n),this.getNavigationData(e,r,i,n)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(e=>e?.publication)}getTopicRating(e){return this.getRatingSummary().then(r=>{var i;return r?{type:r.topics.type,rating:(i=r.topics)===null||i===void 0?void 0:i.ratings.find(n=>n.tocId===e)}:void 0})}rateMap(e,r){return this.makeRateMapRequest(e,r).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(e,r){return this.makeMapFeedbackRequest(e,r)}rateTopic(e,r,i){return this.makeRateTopicRequest(e,r,i).then(()=>this.clearRatingIfNecessary())}unrateTopic(e){return this.makeUnrateTopicRequest(e).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let e=E.getState().session;e?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(e,r,i){return this.makeTopicFeedbackRequest(e,r,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(e,r){let i=this.getTocNodeNow(e,r),n=[{tocId:i.tocId,title:i.title,untranslatedTitle:i.untranslatedTitle}],a=this.getTocNodeNow(i.parentTocId,r);for(;a;)n.unshift({tocId:a.tocId,title:a.title,untranslatedTitle:a.untranslatedTitle}),a=this.getTocNodeNow(a.parentTocId,r);return n}isFeatureAccessible(e,{session:r}){var i;if(!this.isFeatureAvailable(e))return!1;switch(e){case lt.FEEDBACK:return Mt(r??[],te.FEEDBACK_USER);case lt.RATING:return Mt(r??[],te.RATING_USER);case lt.PRINT:return Mt(r??[],te.PRINT_USER);case lt.BOOKMARK:return!!r?.sessionAuthenticated;case lt.COLLECTIONS:return Mt(r??[],te.COLLECTION_USER);case lt.PERSONAL_BOOKS:return Mt(r??[],te.PERSONAL_BOOK_USER)&&!(!((i=this.getMapNow())===null||i===void 0)&&i.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var qi=class t extends Zi{static async build(e){return new t(new Ki,void 0,e)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(e,r){let i=await this.api.getMap(e,r);return this.fingerprint=i.fingerprint,i}fetchMapRating(e){return this.api.getMapRating(e)}async fetchPages(e,r){return await this.getMap(r),this.api.getPages(e,this.fingerprint,r)}fetchTopicHTMLContent(e){return this.api.getTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint)}fetchTranslatedTopicHTMLContent(e,r){return this.api.getTranslatedTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint,r)}fetchTopicMetadata(e){return this.api.getTopic(this.mapId,e.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(e,r){let i={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:r}}],sort:[],facets:[]};return this.api.search(i)}fetchRelativesForTopicInMap(e,r,i){let n={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:r,valueFilter:{negative:!1,values:i}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[e]}}],sort:[],facets:[]};return this.api.search(n)}makeMapFeedbackRequest(e,r){return this.api.sendMapFeedback(this.mapId,e,r)}makeRateMapRequest(e,r){return this.api.rateMap(this.mapId,e,r)}makeRateTopicRequest(e,r,i){return this.api.rateTopic(this.mapId,e,r,i)}makeTopicFeedbackRequest(e,r,i){return this.api.sendTopicFeedback(this.mapId,e,r,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(e){return this.api.unrateTopic(this.mapId,e)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(e){return!0}};var Yi=class t{static build(e,r){return new t(bu(e.trim()||"context"),r??qi.build)}loaded(){return(0,At.waitUntil)(()=>this._loaded)}constructor(e,r,i){this.store=e,this.clusteringHelperProvider=i,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new At.Debouncer(10),this.initService(r)}async initService(e){return this.service=await e(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(e){e!==this.store.getState().mapId&&(this.store.actions.mapId(e),this.service&&(this.service.mapId=e),await this.reload())}setRenderedTopics(e){this.store.actions.renderedTopics(e)}setVisibleTopics(e){this.store.actions.visibleTopics(e)}async awaitService(){return(0,At.waitFor)(()=>this.service)}async navigateToTopic(e,r,i){await this.loaded();let n=await this.awaitService(),a=await(i!=null?n.getPage(i,this.getTranslationSettings()):n.getPageByTocId(e??"root",this.getTranslationSettings()));this.store.actions.currentPage(a);let s=this.resolveValidNonRootTocId(e,a);this.store.actions.scrollTarget({tocId:s,section:r}),this.store.getState().visibleTopics[0]!==s&&this.store.actions.visibleTopics([])}resolveValidNonRootTocId(e,r){var i,n,a;let s=(i=e==="root"?void 0:e)!==null&&i!==void 0?i:r.rootTocId;return r.topics.includes(s)?s:(a=(n=r.topics[0])!==null&&n!==void 0?n:r.hiddenTopics[0])!==null&&a!==void 0?a:"root"}async navigateToPage(e){await this.loaded();let i=await(await this.awaitService()).getPage(e,this.getTranslationSettings());this.store.actions.currentPage(i)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var e;!((e=this.service)===null||e===void 0)&&e.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}clear(){var e;this._loaded=!1,this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),this.store.actions.renderedTopics([]),this.store.actions.visibleTopics([]),this.store.actions.translation({sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1}),this.store.actions.mapRating(void 0),(e=this.service)===null||e===void 0||e.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(e){var r,i,n,a,s;try{e&&this.setTranslationLoading(!0);let c=u=>{throw e&&this.setTranslationError(!0),u};await Promise.all([this.loadConfiguration(),(r=this.service)===null||r===void 0?void 0:r.getMap(e).then(u=>this.store.actions.map(u)).catch(c),(i=this.service)===null||i===void 0?void 0:i.getToc(e).then(u=>this.store.actions.toc(u)).catch(c),(n=this.service)===null||n===void 0?void 0:n.getPagesToc(e).then(u=>this.store.actions.pagesToc(u)).catch(c),(a=this.service)===null||a===void 0?void 0:a.getPaginationConfiguration().then(u=>this.store.actions.paginationConfiguration(u)).catch(c),(s=this.service)===null||s===void 0?void 0:s.getTranslationError(e).then(u=>this.setTranslationError(u))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0,e&&this.setTranslationLoading(!1)}catch(c){this.errorHandler&&!(c instanceof At.CanceledPromiseError)&&this.errorHandler(c)}}loadConfiguration(){var e;return(e=this.service)===null||e===void 0?void 0:e.getConfiguration().then(r=>this.store.actions.configuration(r))}reloadConfiguration(){var e;return(e=this.service)===null||e===void 0||e.clearConfiguration(),this.loadConfiguration()}fetchRelatives(){var e,r;let i=(e=this.store.getState().map)===null||e===void 0?void 0:e.metadata.filter(n=>{var a;return n.key==((a=this.store.getState().configuration)===null||a===void 0?void 0:a.relativePivotMetadata)}).flatMap(n=>n.values);i!==void 0&&i.length>0?(r=this.service)===null||r===void 0||r.getRelativesForDocument(this.store.getState().configuration.relativePivotMetadata,i).then(n=>{let a=n.results.flatMap(s=>s.entries);this.store.actions.relatives(a),this.updateClusteringHelper()}):this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new Event(yo.clusteringHelperCreated))}createClusteringHelper(){var e,r;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let i=this.store.getState().relatives;if(i){let n=i.find(s=>{var c;return((c=s.map)===null||c===void 0?void 0:c.mapId)==this.store.getState().mapId}),a=(r=(e=E.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&r!==void 0?r:[];return new At.ClusteringHelper(i,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(e){var r,i,n;await this.loaded();let a=await(0,At.waitFor)(()=>{var p;return(p=this.store.getState().configuration)===null||p===void 0?void 0:p.relativeTopicPivotMetadata}),s=this.store.getState().mapId,u=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[e]);if(!((n=(i=(r=u?.results)===null||r===void 0?void 0:r[0])===null||i===void 0?void 0:i.entries)===null||n===void 0)&&n[0]){let p=u.results[0].entries[0].topic.tocId;return await this.navigateToTopic(p),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(e){this.store.actions.searchInDocumentQuery(e)}async setTranslationDestinationLanguage(e){this.store.actions.setTranslationDestinationLanguage(e),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationSourceLanguage(e){this.store.actions.setTranslationSourceLanguage(e),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationProfileId(e){this.store.actions.setTranslationProfileId(e)}async setTranslationLoading(e){this.store.actions.setTranslationLoading(e)}async setTranslationError(e){this.store.actions.setTranslationError(e)}getTranslationSettings(){var e;let r=this.store.getState();return r.translation.profileId&&r.translation.destinationLanguage?{profileId:r.translation.profileId,destinationLanguage:r.translation.destinationLanguage.code,sourceLanguage:(e=r.map)===null||e===void 0?void 0:e.lang}:void 0}async fetchMapRating(){var e;this.store.actions.mapRating(await((e=this.service)===null||e===void 0?void 0:e.getMapRating()))}async fetchTopicRating(e){var r;let i=await((r=this.service)===null||r===void 0?void 0:r.getTopicRating(e));i&&this.store.actions.setTopicsRating({[e]:i})}registerMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.add(e),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.delete(e),this.updateClusteringHelper()}getAccurateNavigationData(e,r,i){return this.service.getAccurateNavigationData(e,r?.number,i?.section,this.getTranslationSettings())}buildBreadcrumb(e){var r;return(r=this.service)===null||r===void 0?void 0:r.buildBreadcrumb(e,this.getTranslationSettings())}fetchTopicContent(e){var r,i;let n=this.getTranslationSettings();return n?(r=this.service)===null||r===void 0?void 0:r.getTranslatedTopicContent(e,n).then(a=>(a.isTranslationError&&this.setTranslationError(!0),a.content)):(i=this.service)===null||i===void 0?void 0:i.getTopicContent(e)}getTocNode(e){return this.service.getTocNode(e,this.getTranslationSettings())}getPage(e){return this.service.getPage(e,this.getTranslationSettings())}onMapAttachmentsUpdate(){var e;(e=this.service)===null||e===void 0||e.clearMapAttachments(),this.store.dispatchEvent(new Event(yo.mapAttachmentsUpdate))}};var xu=m(M());var vu=xu.css`
1948
- `;var Xi=class extends CustomEvent{constructor(e,r){super("ft-reader-map-loaded",{detail:{map:e,toc:r}})}},Qi=class extends CustomEvent{constructor(e,r){super("ft-reader-visible-topics-change",{detail:{visibleTopics:r}})}},Ji=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},en=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},tn=class extends Event{constructor(){super("ft-reader-map-not-found")}},rn=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},on=class extends Event{constructor(){super("ft-reader-map-forbidden")}},nn=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var an=class{constructor(e){this.stateManager=e}searchInDocument(e){this.stateManager.setSearchInDocumentQuery(e??"")}};var tt=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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},nf=t=>e=>+(e??"NaN")>0?+e:t,Re=class extends et.FtLitElementRedux{constructor(){super(),this.visibleTopics=[],this.updateConfiguration=()=>{this.stateManager.reloadConfiguration()},this.scrollToTargetDebouncer=new et.Debouncer(5),this.navigationDebouncer=new et.Debouncer(10),this.mapLoadedEventDebouncer=new et.Debouncer(50),this.addStore(E)}render(){return Wo.html`
1947
+ `:Ae.nothing}update(e){super.update(e),(e.has("value")||e.has("filterSuggestions")||e.has("suggestionsProvider"))&&this.updateSuggestions(),e.has("value")&&e.get("value")!=null&&(this.hideSuggestions=!1),e.has("dispatchedValue")&&e.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}async updateSuggestions(){this.suggestionsProvider?this.providedSuggestions=await this.suggestionsProvider(this.value):this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.slottedSuggestions.forEach(e=>e.hidden=!e.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.slottedSuggestions.filter(e=>!e.hidden)):this.visibleSuggestions=this.slottedSuggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion]),this.hideSuggestions=this.visibleSuggestions.length<=0}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&this.setSuggestionPosition(),e.has("value")&&this.suggestionsProvider&&(this.visibleSuggestions=[...this.providedSuggestionsInDom]),e.has("autocomplete")&&this.setupWatchAutofill(),this.suggestionsShouldBeDisplayed()&&this.setSuggestionPosition()}setupWatchAutofill(){var e;this.clearWatchAutofill(),((e=this.autocomplete)!==null&&e!==void 0?e:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var r,i,n;!((r=this.input)===null||r===void 0)&&r.matches(":autofill")&&this.dispatchedValue!==((i=this.input)===null||i===void 0?void 0:i.value)&&this.setValue((n=this.input)===null||n===void 0?void 0:n.value,!0)},200))}clearWatchAutofill(){this.watchAutofillInterval&&clearInterval(this.watchAutofillInterval)}connectedCallback(){super.connectedCallback(),this.setupWatchAutofill()}disconnectedCallback(){super.disconnectedCallback(),this.clearWatchAutofill()}setValue(e,r=!1){this.value!==e&&(this.setInternalValue(e),this.dispatchEvent(new CustomEvent("live-change",{detail:e}))),r&&this.dispatchedValue!==e&&(this.dispatchedValue=e,this.dispatchEvent(new CustomEvent("change",{detail:e})))}handleInput(e){var r;let i=((r=this.input)===null||r===void 0?void 0:r.value)||"";this.setValue(i,e.key=="Escape"||e.key=="Enter")}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(e){var r;if(e.key==="ArrowDown"||e.key==="ArrowUp"){e.preventDefault(),e.stopPropagation(),this.hideSuggestions=!1;let i=this.visibleSuggestions.findIndex(a=>a.matches(":focus-within")),n;e.key==="ArrowDown"?n=i<this.visibleSuggestions.length-1?i+1:0:n=i>0?i-1:this.visibleSuggestions.length-1,(r=this.visibleSuggestions[n])===null||r===void 0||r.focus()}(e.key=="Escape"||e.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(e){var r;this.setValue(e.detail,!0),(r=this.input)===null||r===void 0||r.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var e,r;!((e=this.mainPanel)===null||e===void 0)&&e.matches(":focus-within")||(this.focused=!1,this.setValue(((r=this.input)===null||r===void 0?void 0:r.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}isPasswordField(){return this.password||this.type==="password"}setSuggestionPosition(){this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px";let e=["bottom","top"];(0,gr.computeOffsetAutoPosition)(this.mainPanel,this.suggestionsContainer,"bottom",e,"fixed","--text-field-internal-suggest-size",0).then(({x:r,y:i})=>{this.suggestionsContainer.style.left=`${r}px`,this.suggestionsContainer.style.top=`${i}px`})}suggestionsShouldBeDisplayed(){return!this.hideSuggestions&&(this.visibleSuggestions.length||this.providedSuggestions.length)}};B.elementDefinitions={"ft-input-label":nt,"ft-ripple":K,"ft-typography":pe,"ft-icon":he,"ft-text-field-suggestion":gt};B.styles=[Gr,gr.noTextInputDefaultClearButton,uu];j([(0,z.property)()],B.prototype,"label",void 0);j([(0,z.property)({noAccessor:!0})],B.prototype,"value",null);j([(0,z.state)()],B.prototype,"dispatchedValue",void 0);j([(0,z.property)()],B.prototype,"helper",void 0);j([(0,z.property)()],B.prototype,"suggestionsHelper",void 0);j([(0,z.property)({type:Boolean})],B.prototype,"outlined",void 0);j([(0,z.property)({type:Boolean})],B.prototype,"disabled",void 0);j([(0,z.property)({type:Boolean})],B.prototype,"error",void 0);j([(0,z.property)({type:Boolean})],B.prototype,"fixedMenuPosition",void 0);j([(0,z.property)()],B.prototype,"prefix",void 0);j([(0,z.property)()],B.prototype,"icon",void 0);j([(0,z.property)()],B.prototype,"name",void 0);j([(0,z.property)()],B.prototype,"type",void 0);j([(0,z.property)()],B.prototype,"passwordHiddenIcon",void 0);j([(0,z.property)()],B.prototype,"passwordRevealedIcon",void 0);j([(0,z.property)()],B.prototype,"iconVariant",void 0);j([(0,z.property)({type:Boolean})],B.prototype,"filterSuggestions",void 0);j([(0,z.property)({type:Number})],B.prototype,"maxLength",void 0);j([(0,z.property)({type:Boolean})],B.prototype,"password",void 0);j([(0,z.property)({type:String})],B.prototype,"autocomplete",void 0);j([(0,z.property)({attribute:!1})],B.prototype,"suggestionsProvider",void 0);j([(0,z.state)()],B.prototype,"focused",void 0);j([(0,z.state)()],B.prototype,"hidePassword",void 0);j([(0,z.state)()],B.prototype,"hideSuggestions",void 0);j([(0,z.state)()],B.prototype,"visibleSuggestions",void 0);j([(0,z.state)()],B.prototype,"providedSuggestions",void 0);j([(0,z.query)(".ft-text-field--main-panel")],B.prototype,"mainPanel",void 0);j([(0,z.query)(".ft-text-field--input")],B.prototype,"input",void 0);j([(0,z.query)(".ft-text-field-suggestion--new-value")],B.prototype,"newValueSuggestion",void 0);j([(0,z.query)(".ft-text-field--suggestions")],B.prototype,"suggestionsContainer",void 0);j([(0,z.queryAll)("ft-text-field-suggestion")],B.prototype,"providedSuggestionsInDom",void 0);j([(0,z.queryAssignedElements)({selector:"ft-text-field-suggestion"})],B.prototype,"slottedSuggestions",void 0);(0,Ma.customElement)("ft-text-field")(B);(0,Ma.customElement)("ft-text-field-suggestion")(gt);var Cu=m(T());var Go=m(M()),yr=m(Z()),et=m(T());var At=m(T());var bu=m(T()),nf={setTranslationDestinationLanguage:(t,e)=>{t.translation.destinationLanguage=e.payload},setTranslationSourceLanguage:(t,e)=>{t.translation.sourceLanguage=e.payload},setTranslationProfileId:(t,e)=>{t.translation.profileId=e.payload},setTranslationLoading:(t,e)=>{t.translation.isLoading=e.payload},setTranslationError:(t,e)=>{t.translation.isError=e.payload},setTopicsRating:(t,e)=>{for(let r in e.payload)t.topicsRating[r]=e.payload[r]}},xu=t=>bu.FtReduxStore.get({name:"ft-reader-"+t,initialState:{mapId:void 0,renderedTopics:[],visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0,mapRating:void 0,topicsRating:{},translation:{sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1}},reducers:nf});var Ba=class{constructor(e,r){this.mapId=e,this.paginatedToc=r,this.nodeByTocId={},this.nodeByUrl={},this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId,translationError:this.paginatedToc.translationError}}extractPagesToc(e,r,i){return e.flatMap(n=>{var a;return n.pageConfiguration&&this.registerPage(this.buildPage(n,i)),n.tocId==null?this.extractPagesToc(n.children,r,i):[{tocId:n.tocId,title:(a=n.title)!==null&&a!==void 0?a:"",untranslatedTitle:n.untranslatedTitle,depth:r,children:this.extractPagesToc(n.children,r+1,n.tocId)}]})}convertNodes(e,r,i){return e.flatMap(n=>{var a,s,c;if(n.tocId==null)return[...this.convertSectionNodes((a=n.pageToc)!==null&&a!==void 0?a:[],r,n.tocId),...this.convertNodes(n.children,r,n.tocId)];let u=(s=n.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),p={tocId:n.tocId,contentId:n.contentId,title:n.title,untranslatedTitle:n.untranslatedTitle,hasRating:n.hasRating,origin:n.origin,prettyUrl:u,depth:r,parentTocId:i,children:[]};this.register(p);let h=this.convertSectionNodes((c=n.pageToc)!==null&&c!==void 0?c:[],r+1,n.tocId),g=this.convertNodes(n.children,r+1,p.tocId);return p.children=[...h,...g],[p]})}convertSectionNodes(e,r,i){return e.flatMap(n=>{var a;let s=(a=n.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),c={...n,prettyUrl:s,depth:r,parentTocId:i,children:[]};return this.register(c),c.children=this.convertSectionNodes(n.children,r+1,n.tocId),[c]})}buildPage(e,r){var i,n,a,s,c,u;let p={number:this.pages.length+1,title:(i=e.title)!==null&&i!==void 0?i:"",untranslatedTitle:e.untranslatedTitle,rootTocId:(n=e.tocId)!==null&&n!==void 0?n:"root",toc:((a=e.pageToc)!==null&&a!==void 0?a:[]).map(b=>this.nodeByTocId[b.tocId]),topics:[],hiddenTopics:[],breadcrumb:r?this.buildBreadcrumb(this.nodeByTocId[r]):[]},h=(b,x)=>(x?p.topics:p.hiddenTopics).push(b),g=(c=(s=e.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&c!==void 0?c:[];return p.breadcrumb.forEach((b,x)=>{h(b,g[x])}),e.tocId&&h(e.tocId,e.pageConfiguration.isVisible),p.topics.push(...this.tocIds((u=e.pageToc)!==null&&u!==void 0?u:[])),p}registerPage(e){for(let r of[...e.topics,...e.hiddenTopics])this.pageByTocId[r]||(this.pageByTocId[r]=e);this.pages.push(e)}tocIds(e){return e.flatMap(r=>[r.tocId,...this.tocIds(r.children)])}buildBreadcrumb(e){let r=[e.tocId];for(;e?.parentTocId;)r.unshift(e.parentTocId),e=this.nodeByTocId[e.parentTocId];return r}register(e){e.prettyUrl&&(this.nodeByUrl[e.prettyUrl]==null?this.nodeByUrl[e.prettyUrl]=e:this.duplicatedPrettyUrls.add(e.prettyUrl)),this.nodeByUrl[`${this.mapId}/${e.tocId}`]=e,this.nodeByTocId[e.tocId]=e}},Zi=class{convertPaginatedToc(e,r){return new Ba(e,r).build()}};var qi=class extends Ze{get mapId(){return this._mapId}set mapId(e){e!==this._mapId&&this.clear(),this._mapId=e}constructor(e,r,i){super(!1,r),this.converter=e,this._mapId=i,this.initCache()}async withMapId(e){return this._mapId?e(this._mapId):void 0}initCache(){this.cache.register("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(e=>this.fetchMap(e))),this.cache.register("enrichedToc",()=>this.withMapId(e=>this.fetchPages(e).then(r=>this.converter.convertPaginatedToc(e,r)))),this.cache.register("ratingSummary",()=>{var e,r;return Bt((r=(e=E.getState().session)===null||e===void 0?void 0:e.profile.roles)!==null&&r!==void 0?r:[],"RATING_USER")?this.withMapId(n=>this.fetchMapRating(n)):Promise.resolve()})}clear(){this.cache.clearMatching(e=>e!=="configuration")}makeCacheKey(e,r){return e+(r?"-destinationLanguage-"+r?.destinationLanguage:"")}getMap(e){return this.cache.get(this.makeCacheKey("map",e),()=>this.fetchMap(this.mapId,e))}getMapNow(e){return this.cache.getNow(this.makeCacheKey("map",e))}getConfiguration(){return this.cache.get("configuration")}clearConfiguration(){this.cache.clear("configuration")}getEnrichedToc(e){return this.cache.get(this.makeCacheKey("enrichedToc",e),()=>this.fetchPages(this.mapId,e).then(r=>this.converter.convertPaginatedToc(this.mapId,r)))}getEnrichedTocNow(e){return this.cache.getNow(this.makeCacheKey("enrichedToc",e))}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(e){return(await this.getEnrichedToc(e)).toc}async getPagesToc(e){return(await this.getEnrichedToc(e)).pagesToc}async getTranslationError(e){return(await this.getEnrichedToc(e)).translationError}async getTocNode(e,r){return(await this.getEnrichedToc(r)).nodeByTocId[e]}getTocNodeNow(e,r){var i;return(i=this.getEnrichedTocNow(r))===null||i===void 0?void 0:i.nodeByTocId[e]}getTocNodeNowByUrl(e,r){var i,n;let a=this.getMapNow(r);return a?.prettyUrl==e||`${a?.id}/root`===e?(i=this.getEnrichedTocNow(r))===null||i===void 0?void 0:i.toc[0]:(n=this.getEnrichedTocNow(r))===null||n===void 0?void 0:n.nodeByUrl[e]}async getPage(e,r){let i=await this.getEnrichedToc(r);return i.pages[e-1]||i.pages[0]}async getPageByTocId(e,r){let i=await this.getEnrichedToc(r);return i.pageByTocId[e]||i.pages[0]}getTopicInfo(e){return this.cache.get("topic-"+e.tocId,()=>this.fetchTopicMetadata(e))}getTopicContent(e){return this.cache.get("topic-content-"+e.tocId,()=>this.fetchTopicHTMLContent(e))}getTranslatedTopicContent(e,r){return this.cache.get(this.makeCacheKey("translated-topic-content-"+e.tocId,r),()=>this.fetchTranslatedTopicHTMLContent(e,r))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}clearMapAttachments(){this.cache.clear("map-attachments")}getRelativesForDocument(e,r){return this.cache.get("document-relatives-"+e+"-"+r.join("-"),()=>this.fetchRelativesForDocument(e,r))}getRelativesForTopicInMap(e,r,i){return this.cache.get("topic-relatives-"+[e,r,...i].join("-"),()=>this.fetchRelativesForTopicInMap(e,r,i))}getAttachmentDownloadLink(e){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(e).content}?download=true&locationValue=reader`)}getLink(e,r,i){let n=this.getNavigationData(e,r,i),a=this.getReaderLinkPrefix()+(n.prettyUrl?n.prettyUrl:`${n.mapId}/${n.tocId}`),s=new URL(a,this.api.tenantBaseUrl);return n.page!=null&&s.searchParams.set("page",`${n.page}`),n.prettyUrlDuplicated&&s.searchParams.set("tocId",n.tocId),n.section!=null&&s.searchParams.set("section",n.section),s.href}getNavigationData(e,r,i,n){var a,s;e=e||"root";let c=this.getEnrichedTocNow(n),u=c?.pageByTocId[e],p=c?.nodeByTocId[e],h=p?.prettyUrl;return{mapId:this.mapId,tocId:e,topicTitle:(a=p?.title)!==null&&a!==void 0?a:"",untranslatedTopicTitle:p?.untranslatedTitle,page:r&&u&&u.number!==r?r:void 0,prettyUrl:h?.replace(/^r\//,""),prettyUrlDuplicated:(s=c?.duplicatedPrettyUrls.has(h??""))!==null&&s!==void 0?s:!1,section:i}}async getAccurateNavigationData(e,r,i,n){return await this.getEnrichedToc(n),this.getNavigationData(e,r,i,n)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(e=>e?.publication)}getTopicRating(e){return this.getRatingSummary().then(r=>{var i;return r?{type:r.topics.type,rating:(i=r.topics)===null||i===void 0?void 0:i.ratings.find(n=>n.tocId===e)}:void 0})}rateMap(e,r){return this.makeRateMapRequest(e,r).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(e,r){return this.makeMapFeedbackRequest(e,r)}rateTopic(e,r,i){return this.makeRateTopicRequest(e,r,i).then(()=>this.clearRatingIfNecessary())}unrateTopic(e){return this.makeUnrateTopicRequest(e).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let e=E.getState().session;e?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(e,r,i){return this.makeTopicFeedbackRequest(e,r,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(e,r){let i=this.getTocNodeNow(e,r),n=[{tocId:i.tocId,title:i.title,untranslatedTitle:i.untranslatedTitle}],a=this.getTocNodeNow(i.parentTocId,r);for(;a;)n.unshift({tocId:a.tocId,title:a.title,untranslatedTitle:a.untranslatedTitle}),a=this.getTocNodeNow(a.parentTocId,r);return n}isFeatureAccessible(e,{session:r}){var i;if(!this.isFeatureAvailable(e))return!1;switch(e){case lt.FEEDBACK:return Bt(r??[],te.FEEDBACK_USER);case lt.RATING:return Bt(r??[],te.RATING_USER);case lt.PRINT:return Bt(r??[],te.PRINT_USER);case lt.BOOKMARK:return!!r?.sessionAuthenticated;case lt.COLLECTIONS:return Bt(r??[],te.COLLECTION_USER);case lt.PERSONAL_BOOKS:return Bt(r??[],te.PERSONAL_BOOK_USER)&&!(!((i=this.getMapNow())===null||i===void 0)&&i.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var Yi=class t extends qi{static async build(e){return new t(new Zi,void 0,e)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(e,r){let i=await this.api.getMap(e,r);return this.fingerprint=i.fingerprint,i}fetchMapRating(e){return this.api.getMapRating(e)}async fetchPages(e,r){return await this.getMap(r),this.api.getPages(e,this.fingerprint,r)}fetchTopicHTMLContent(e){return this.api.getTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint)}fetchTranslatedTopicHTMLContent(e,r){return this.api.getTranslatedTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint,r)}fetchTopicMetadata(e){return this.api.getTopic(this.mapId,e.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(e,r){let i={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:r}}],sort:[],facets:[]};return this.api.search(i)}fetchRelativesForTopicInMap(e,r,i){let n={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:r,valueFilter:{negative:!1,values:i}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[e]}}],sort:[],facets:[]};return this.api.search(n)}makeMapFeedbackRequest(e,r){return this.api.sendMapFeedback(this.mapId,e,r)}makeRateMapRequest(e,r){return this.api.rateMap(this.mapId,e,r)}makeRateTopicRequest(e,r,i){return this.api.rateTopic(this.mapId,e,r,i)}makeTopicFeedbackRequest(e,r,i){return this.api.sendTopicFeedback(this.mapId,e,r,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(e){return this.api.unrateTopic(this.mapId,e)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(e){return!0}};var Xi=class t{static build(e,r){return new t(xu(e.trim()||"context"),r??Yi.build)}loaded(){return(0,At.waitUntil)(()=>this._loaded)}constructor(e,r,i){this.store=e,this.clusteringHelperProvider=i,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new At.Debouncer(10),this.initService(r)}async initService(e){return this.service=await e(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(e){e!==this.store.getState().mapId&&(this.store.actions.mapId(e),this.service&&(this.service.mapId=e),await this.reload())}setRenderedTopics(e){this.store.actions.renderedTopics(e)}setVisibleTopics(e){this.store.actions.visibleTopics(e)}async awaitService(){return(0,At.waitFor)(()=>this.service)}async navigateToTopic(e,r,i){await this.loaded();let n=await this.awaitService(),a=await(i!=null?n.getPage(i,this.getTranslationSettings()):n.getPageByTocId(e??"root",this.getTranslationSettings()));this.store.actions.currentPage(a);let s=this.resolveValidNonRootTocId(e,a);this.store.actions.scrollTarget({tocId:s,section:r}),this.store.getState().visibleTopics[0]!==s&&this.store.actions.visibleTopics([])}resolveValidNonRootTocId(e,r){var i,n,a;let s=(i=e==="root"?void 0:e)!==null&&i!==void 0?i:r.rootTocId;return r.topics.includes(s)?s:(a=(n=r.topics[0])!==null&&n!==void 0?n:r.hiddenTopics[0])!==null&&a!==void 0?a:"root"}async navigateToPage(e){await this.loaded();let i=await(await this.awaitService()).getPage(e,this.getTranslationSettings());this.store.actions.currentPage(i)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var e;!((e=this.service)===null||e===void 0)&&e.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}clear(){var e;this._loaded=!1,this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),this.store.actions.renderedTopics([]),this.store.actions.visibleTopics([]),this.store.actions.translation({sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1}),this.store.actions.mapRating(void 0),(e=this.service)===null||e===void 0||e.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(e){var r,i,n,a,s;try{e&&this.setTranslationLoading(!0);let c=u=>{throw e&&this.setTranslationError(!0),u};await Promise.all([this.loadConfiguration(),(r=this.service)===null||r===void 0?void 0:r.getMap(e).then(u=>this.store.actions.map(u)).catch(c),(i=this.service)===null||i===void 0?void 0:i.getToc(e).then(u=>this.store.actions.toc(u)).catch(c),(n=this.service)===null||n===void 0?void 0:n.getPagesToc(e).then(u=>this.store.actions.pagesToc(u)).catch(c),(a=this.service)===null||a===void 0?void 0:a.getPaginationConfiguration().then(u=>this.store.actions.paginationConfiguration(u)).catch(c),(s=this.service)===null||s===void 0?void 0:s.getTranslationError(e).then(u=>this.setTranslationError(u))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0,e&&this.setTranslationLoading(!1)}catch(c){this.errorHandler&&!(c instanceof At.CanceledPromiseError)&&this.errorHandler(c)}}loadConfiguration(){var e;return(e=this.service)===null||e===void 0?void 0:e.getConfiguration().then(r=>this.store.actions.configuration(r))}reloadConfiguration(){var e;return(e=this.service)===null||e===void 0||e.clearConfiguration(),this.loadConfiguration()}fetchRelatives(){var e,r;let i=(e=this.store.getState().map)===null||e===void 0?void 0:e.metadata.filter(n=>{var a;return n.key==((a=this.store.getState().configuration)===null||a===void 0?void 0:a.relativePivotMetadata)}).flatMap(n=>n.values);i!==void 0&&i.length>0?(r=this.service)===null||r===void 0||r.getRelativesForDocument(this.store.getState().configuration.relativePivotMetadata,i).then(n=>{let a=n.results.flatMap(s=>s.entries);this.store.actions.relatives(a),this.updateClusteringHelper()}):this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new Event(bo.clusteringHelperCreated))}createClusteringHelper(){var e,r;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let i=this.store.getState().relatives;if(i){let n=i.find(s=>{var c;return((c=s.map)===null||c===void 0?void 0:c.mapId)==this.store.getState().mapId}),a=(r=(e=E.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&r!==void 0?r:[];return new At.ClusteringHelper(i,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(e){var r,i,n;await this.loaded();let a=await(0,At.waitFor)(()=>{var p;return(p=this.store.getState().configuration)===null||p===void 0?void 0:p.relativeTopicPivotMetadata}),s=this.store.getState().mapId,u=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[e]);if(!((n=(i=(r=u?.results)===null||r===void 0?void 0:r[0])===null||i===void 0?void 0:i.entries)===null||n===void 0)&&n[0]){let p=u.results[0].entries[0].topic.tocId;return await this.navigateToTopic(p),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(e){this.store.actions.searchInDocumentQuery(e)}async setTranslationDestinationLanguage(e){this.store.actions.setTranslationDestinationLanguage(e),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationSourceLanguage(e){this.store.actions.setTranslationSourceLanguage(e),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationProfileId(e){this.store.actions.setTranslationProfileId(e)}async setTranslationLoading(e){this.store.actions.setTranslationLoading(e)}async setTranslationError(e){this.store.actions.setTranslationError(e)}getTranslationSettings(){var e;let r=this.store.getState();return r.translation.profileId&&r.translation.destinationLanguage?{profileId:r.translation.profileId,destinationLanguage:r.translation.destinationLanguage.code,sourceLanguage:(e=r.map)===null||e===void 0?void 0:e.lang}:void 0}async fetchMapRating(){var e;this.store.actions.mapRating(await((e=this.service)===null||e===void 0?void 0:e.getMapRating()))}async fetchTopicRating(e){var r;let i=await((r=this.service)===null||r===void 0?void 0:r.getTopicRating(e));i&&this.store.actions.setTopicsRating({[e]:i})}registerMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.add(e),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.delete(e),this.updateClusteringHelper()}getAccurateNavigationData(e,r,i){return this.service.getAccurateNavigationData(e,r?.number,i?.section,this.getTranslationSettings())}buildBreadcrumb(e){var r;return(r=this.service)===null||r===void 0?void 0:r.buildBreadcrumb(e,this.getTranslationSettings())}fetchTopicContent(e){var r,i;let n=this.getTranslationSettings();return n?(r=this.service)===null||r===void 0?void 0:r.getTranslatedTopicContent(e,n).then(a=>(a.isTranslationError&&this.setTranslationError(!0),a.content)):(i=this.service)===null||i===void 0?void 0:i.getTopicContent(e)}getTocNode(e){return this.service.getTocNode(e,this.getTranslationSettings())}getPage(e){return this.service.getPage(e,this.getTranslationSettings())}onMapAttachmentsUpdate(){var e;(e=this.service)===null||e===void 0||e.clearMapAttachments(),this.store.dispatchEvent(new Event(bo.mapAttachmentsUpdate))}};var vu=m(M());var Su=vu.css`
1948
+ `;var Qi=class extends CustomEvent{constructor(e,r){super("ft-reader-map-loaded",{detail:{map:e,toc:r}})}},Ji=class extends CustomEvent{constructor(e,r){super("ft-reader-visible-topics-change",{detail:{visibleTopics:r}})}},en=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},tn=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},rn=class extends Event{constructor(){super("ft-reader-map-not-found")}},on=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},nn=class extends Event{constructor(){super("ft-reader-map-forbidden")}},an=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var sn=class{constructor(e){this.stateManager=e}searchInDocument(e){this.stateManager.setSearchInDocumentQuery(e??"")}};var tt=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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},af=t=>e=>+(e??"NaN")>0?+e:t,Re=class extends et.FtLitElementRedux{constructor(){super(),this.visibleTopics=[],this.updateConfiguration=()=>{this.stateManager.reloadConfiguration()},this.scrollToTargetDebouncer=new et.Debouncer(5),this.navigationDebouncer=new et.Debouncer(10),this.mapLoadedEventDebouncer=new et.Debouncer(50),this.addStore(E)}render(){return Go.html`
1949
1949
  ${this.importStyleIfNeeded()}
1950
1950
  <slot @register-ft-reader-component=${this.registerComponent}></slot>
1951
- `}importStyleIfNeeded(){var e,r;let i=(e=this.stateManager.service)===null||e===void 0?void 0:e.themeStylesheet();return!i||window.location.href.startsWith((r=this.baseUrl)!==null&&r!==void 0?r:"")?Wo.nothing:Wo.html`
1951
+ `}importStyleIfNeeded(){var e,r;let i=(e=this.stateManager.service)===null||e===void 0?void 0:e.themeStylesheet();return!i||window.location.href.startsWith((r=this.baseUrl)!==null&&r!==void 0?r:"")?Go.nothing:Go.html`
1952
1952
  <style>
1953
1953
  @import "${i}"
1954
1954
  </style>
1955
- `}get stateManager(){return this._stateManager==null&&(this._stateManager=Yi.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=e=>this.handleLoadError(e),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(e=>{let r=e.fontsStylesheet();if(r&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${r}"]`)){let i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",r),document.head.append(i)}window.FluidTopicsReaderService=new an(this.stateManager)}),E.addEventListener(kt.eventName,this.updateConfiguration)}disconnectedCallback(){super.disconnectedCallback(),E.addEventListener(kt.eventName,this.updateConfiguration)}update(e){super.update(e),e.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),e.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),e.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(r=>e.has(r))&&this.mapId&&this.navigateToTarget(),e.has("session")&&this.reload()}contentAvailableCallback(e){var r,i;if(super.contentAvailableCallback(e),(e.has("map")||e.has("toc"))&&this.sendLoadedEventIfLoaded(),e.has("scrollTarget")&&((r=this.scrollTarget)===null||r===void 0?void 0:r.tocId)==null){let n=e.get("scrollTarget");n?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>this.stateManager.getAccurateNavigationData(n.tocId,this.currentPage,n).then(a=>this.dispatchEvent(new Ji(a))))}(e.has("visibleTopics")||e.has("scrollTarget"))&&((i=this.scrollTarget)===null||i===void 0?void 0:i.tocId)==null&&Promise.all(this.visibleTopics.map(n=>this.stateManager.getAccurateNavigationData(n,this.currentPage))).then(n=>{let a=n.filter(s=>s!=null&&s.topicTitle!=="").map(s=>({tocId:s.tocId,title:s.topicTitle,page:s.page,prettyUrl:s.prettyUrl,prettyUrlDuplicated:s.prettyUrlDuplicated,breadcrumb:this.stateManager.buildBreadcrumb(s.tocId)}));this.dispatchEvent(new Qi(this.map,a))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload()}async navigateToTarget(){await this.stateManager.loaded(),await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new nn),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot):this.lastNotifiedNotFoundRelative=void 0:this.tocId!=null?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):this.page!=null&&await this.stateManager.navigateToPage(this.page)}),this.tocId&&!this.section&&(this.stateManager.store.commands.clear(/^focus-topic-/),this.stateManager.store.commands.add({type:`focus-topic-${this.tocId}`}))}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){e.setReaderStateManager(this.stateManager)}handleLoadError(e){let r=e;r.status===401?this.dispatchEvent(new rn):r.status===403?this.dispatchEvent(new on):r.status===404?this.dispatchEvent(new tn):this.dispatchEvent(new en(e))}reloadBookmarks(){ka.reloadBookmarks()}async reloadRating(){var e,r;await((e=this.stateManager.service)===null||e===void 0?void 0:e.reloadRating()),(r=this.stateManager.store)===null||r===void 0||r.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new Xi(this.map,this.toc))})}};Re.styles=vu;tt([(0,et.redux)({store:E.name})],Re.prototype,"baseUrl",void 0);tt([(0,et.redux)({store:E.name})],Re.prototype,"session",void 0);tt([(0,yr.property)()],Re.prototype,"mapId",void 0);tt([(0,yr.property)()],Re.prototype,"tocId",void 0);tt([(0,yr.property)()],Re.prototype,"section",void 0);tt([(0,yr.property)()],Re.prototype,"topicPivot",void 0);tt([(0,yr.property)()],Re.prototype,"searchInDocumentQuery",void 0);tt([(0,yr.property)({type:Number,converter:{fromAttribute:nf()}})],Re.prototype,"page",void 0);tt([(0,et.redux)({store:"reader"})],Re.prototype,"map",void 0);tt([(0,et.redux)({store:"reader"})],Re.prototype,"toc",void 0);tt([(0,et.redux)({store:"reader"})],Re.prototype,"visibleTopics",void 0);tt([(0,et.redux)({store:"reader"})],Re.prototype,"currentPage",void 0);tt([(0,et.redux)({store:"reader"})],Re.prototype,"scrollTarget",void 0);tt([(0,yr.property)({attribute:!1})],Re.prototype,"readerServiceProvider",void 0);(0,Su.customElement)("ft-reader-context")(Re);var sn=class extends CustomEvent{constructor(e){super("send-feedback",{detail:e})}},ln=class extends CustomEvent{constructor(e){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:e})}},cn=class extends CustomEvent{constructor(e){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:e})}},dn=class extends CustomEvent{constructor(e){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:e}})}},un=class extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}};var Te=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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 fr(Yt){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.ratingAllowed=!1,this.from="",this.feedbackMessage="",this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(V,lu)}get canAccessFeedback(){var e;return(e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(lt.FEEDBACK,{session:this.session})}get canRateThisContent(){var e;return((e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(lt.RATING,{session:this.session}))&&this.ratingAllowed&&this.configuredRatingType!=xe.NO_RATING}get configuredRatingType(){var e,r;return(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.type)!==null&&r!==void 0?r:xe.NO_RATING}get ratingTypeOfDoneRatingOfThisContent(){var e,r,i;return(i=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.type)!==null&&i!==void 0?i:xe.NO_RATING}get ratingValue(){var e,r,i;return(i=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.value)!==null&&i!==void 0?i:-1}get ratingDate(){var e,r;let i=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.date;return typeof i=="string"?(0,pn.parseDate)(i):i}render(){return!this.canAccessFeedback&&!this.canRateThisContent?ye.nothing:ye.html`
1955
+ `}get stateManager(){return this._stateManager==null&&(this._stateManager=Xi.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=e=>this.handleLoadError(e),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(e=>{let r=e.fontsStylesheet();if(r&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${r}"]`)){let i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",r),document.head.append(i)}window.FluidTopicsReaderService=new sn(this.stateManager)}),E.addEventListener(kt.eventName,this.updateConfiguration)}disconnectedCallback(){super.disconnectedCallback(),E.addEventListener(kt.eventName,this.updateConfiguration)}update(e){super.update(e),e.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),e.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),e.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(r=>e.has(r))&&this.mapId&&this.navigateToTarget(),e.has("session")&&this.reload()}contentAvailableCallback(e){var r,i;if(super.contentAvailableCallback(e),(e.has("map")||e.has("toc"))&&this.sendLoadedEventIfLoaded(),e.has("scrollTarget")&&((r=this.scrollTarget)===null||r===void 0?void 0:r.tocId)==null){let n=e.get("scrollTarget");n?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>this.stateManager.getAccurateNavigationData(n.tocId,this.currentPage,n).then(a=>this.dispatchEvent(new en(a))))}(e.has("visibleTopics")||e.has("scrollTarget"))&&((i=this.scrollTarget)===null||i===void 0?void 0:i.tocId)==null&&Promise.all(this.visibleTopics.map(n=>this.stateManager.getAccurateNavigationData(n,this.currentPage))).then(n=>{let a=n.filter(s=>s!=null&&s.topicTitle!=="").map(s=>({tocId:s.tocId,title:s.topicTitle,page:s.page,prettyUrl:s.prettyUrl,prettyUrlDuplicated:s.prettyUrlDuplicated,breadcrumb:this.stateManager.buildBreadcrumb(s.tocId)}));this.dispatchEvent(new Ji(this.map,a))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload()}async navigateToTarget(){await this.stateManager.loaded(),await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new an),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot):this.lastNotifiedNotFoundRelative=void 0:this.tocId!=null?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):this.page!=null&&await this.stateManager.navigateToPage(this.page)}),this.tocId&&!this.section&&(this.stateManager.store.commands.clear(/^focus-topic-/),this.stateManager.store.commands.add({type:`focus-topic-${this.tocId}`}))}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){e.setReaderStateManager(this.stateManager)}handleLoadError(e){let r=e;r.status===401?this.dispatchEvent(new on):r.status===403?this.dispatchEvent(new nn):r.status===404?this.dispatchEvent(new rn):this.dispatchEvent(new tn(e))}reloadBookmarks(){Pa.reloadBookmarks()}async reloadRating(){var e,r;await((e=this.stateManager.service)===null||e===void 0?void 0:e.reloadRating()),(r=this.stateManager.store)===null||r===void 0||r.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new Qi(this.map,this.toc))})}};Re.styles=Su;tt([(0,et.redux)({store:E.name})],Re.prototype,"baseUrl",void 0);tt([(0,et.redux)({store:E.name})],Re.prototype,"session",void 0);tt([(0,yr.property)()],Re.prototype,"mapId",void 0);tt([(0,yr.property)()],Re.prototype,"tocId",void 0);tt([(0,yr.property)()],Re.prototype,"section",void 0);tt([(0,yr.property)()],Re.prototype,"topicPivot",void 0);tt([(0,yr.property)()],Re.prototype,"searchInDocumentQuery",void 0);tt([(0,yr.property)({type:Number,converter:{fromAttribute:af()}})],Re.prototype,"page",void 0);tt([(0,et.redux)({store:"reader"})],Re.prototype,"map",void 0);tt([(0,et.redux)({store:"reader"})],Re.prototype,"toc",void 0);tt([(0,et.redux)({store:"reader"})],Re.prototype,"visibleTopics",void 0);tt([(0,et.redux)({store:"reader"})],Re.prototype,"currentPage",void 0);tt([(0,et.redux)({store:"reader"})],Re.prototype,"scrollTarget",void 0);tt([(0,yr.property)({attribute:!1})],Re.prototype,"readerServiceProvider",void 0);(0,Cu.customElement)("ft-reader-context")(Re);var ln=class extends CustomEvent{constructor(e){super("send-feedback",{detail:e})}},cn=class extends CustomEvent{constructor(e){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:e})}},dn=class extends CustomEvent{constructor(e){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:e})}},un=class extends CustomEvent{constructor(e){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:e}})}},pn=class extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}};var Te=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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 fr(Yt){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.ratingAllowed=!1,this.from="",this.feedbackMessage="",this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(V,cu)}get canAccessFeedback(){var e;return(e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(lt.FEEDBACK,{session:this.session})}get canRateThisContent(){var e;return((e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(lt.RATING,{session:this.session}))&&this.ratingAllowed&&this.configuredRatingType!=xe.NO_RATING}get configuredRatingType(){var e,r;return(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.type)!==null&&r!==void 0?r:xe.NO_RATING}get ratingTypeOfDoneRatingOfThisContent(){var e,r,i;return(i=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.type)!==null&&i!==void 0?i:xe.NO_RATING}get ratingValue(){var e,r,i;return(i=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.value)!==null&&i!==void 0?i:-1}get ratingDate(){var e,r;let i=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.date;return typeof i=="string"?(0,fn.parseDate)(i):i}render(){return!this.canAccessFeedback&&!this.canRateThisContent?ye.nothing:ye.html`
1956
1956
  <div class="ft-reader-feedback">
1957
1957
  ${this.hideTitle?ye.nothing:ye.html`
1958
1958
  <ft-typography variant="title" part="main-title">
@@ -1974,7 +1974,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1974
1974
  </div>
1975
1975
  `:ye.nothing}renderRatingDate(){let e=this.ratingDate;if(e==null)return V.messages.notRated();if(e.getTime()>new Date().getTime()-6e4)return V.messages.ratedNow();let r=new Date().toLocaleDateString(),i=e.toLocaleDateString();return r===i?V.messages.ratedToday():V.messages.ratedOn(e)}renderRating(){switch(this.configuredRatingType){case xe.STARS:return ye.html`
1976
1976
  <div class="ft-reader-feedback--stars" part="rating rating-stars">
1977
- ${(0,Cu.repeat)(new Array(5),(a,s)=>s,(a,s)=>{let c=this.ratingTypeOfDoneRatingOfThisContent===xe.STARS&&this.ratingValue>s,u=s+1;return ye.html`
1977
+ ${(0,Ou.repeat)(new Array(5),(a,s)=>s,(a,s)=>{let c=this.ratingTypeOfDoneRatingOfThisContent===xe.STARS&&this.ratingValue>s,u=s+1;return ye.html`
1978
1978
  <ft-button round part="rating-stars-${u}"
1979
1979
  label="${V.messages.starsRating(u)}"
1980
1980
  tooltipPosition="top"
@@ -2063,7 +2063,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2063
2063
  ${c}
2064
2064
  </div>
2065
2065
  </form>
2066
- `}return ye.nothing}onFormSubmitEvent(e,r){e.preventDefault(),r?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var e,r,i;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((r=(e=this.session)===null||e===void 0?void 0:e.profile)===null||r===void 0?void 0:r.userId)==null&&(!((i=this.configuration)===null||i===void 0)&&i.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var e;this.dispatchEvent(new sn({message:this.feedbackInput.value,...((e=this.configuration)===null||e===void 0?void 0:e.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}onOpenMoreDetails(){this.dispatchEvent(new CustomEvent("open-more-options"))}clearFeedbackInput(){setTimeout(()=>this.feedbackInput.setValue("",!0),0)}};Q.elementDefinitions={"ft-button":Ct,"ft-typography":pe,"ft-switch":Ke,"ft-switch-option":ge,"ft-text-area":De,"ft-text-field":B};Q.styles=js;Te([(0,me.property)({type:Boolean})],Q.prototype,"editorMode",void 0);Te([(0,me.property)({type:Boolean})],Q.prototype,"hideTitle",void 0);Te([(0,me.property)({type:Boolean})],Q.prototype,"withMoreOptionsButton",void 0);Te([(0,me.property)({type:Boolean})],Q.prototype,"ratingAllowed",void 0);Te([(0,me.property)({attribute:!1})],Q.prototype,"i18nProperties",void 0);Te([(0,me.property)({attribute:!1})],Q.prototype,"ratingSummary",void 0);Te([(0,me.property)({attribute:!1})],Q.prototype,"session",void 0);Te([(0,me.query)(".ft-reader-feedback--feedback-input")],Q.prototype,"feedbackInput",void 0);Te([(0,me.state)()],Q.prototype,"from",void 0);Te([(0,me.state)()],Q.prototype,"feedbackMessage",void 0);Te([(0,me.property)()],Q.prototype,"iconVariant",void 0);Te([(0,me.property)()],Q.prototype,"emptyStarIcon",void 0);Te([(0,me.property)()],Q.prototype,"filledStarIcon",void 0);Te([(0,me.property)()],Q.prototype,"emptyLikeIcon",void 0);Te([(0,me.property)()],Q.prototype,"filledLikeIcon",void 0);Te([(0,me.property)()],Q.prototype,"emptyDislikeIcon",void 0);Te([(0,me.property)()],Q.prototype,"filledDislikeIcon",void 0);Te([(0,pn.redux)({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],Q.prototype,"configuration",void 0);Te([(0,me.property)()],Q.prototype,"feedbackMailLinkBuilder",void 0);var ho=hr.fromGwt("server");var go=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(e,r,i,n,a){var s;this.subject=e,this.url=r,this.configuration=n,this.isAuthenticated=a,this.subjectMetadata=this.filterMetadata(i,n.subjectMetadataIds).map(c=>"["+c.values[c.values.length-1]+"]").join(""),this.bodyMetadata=this.filterMetadata(i,(s=n.bodyMetadataIds)!==null&&s!==void 0?s:[]).map(c=>"["+c.values.join(", ")+"]").join(" ")}filterMetadata(e,r){return r.map(i=>e.find(n=>n.key===i)).filter(i=>i!=null&&i.values.length>0)}shouldUseMailer(){var e,r;let i=this.isAuthenticated&&!(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers);return i||n}build(e){var r;if(e!=null&&e.length===0||!this.shouldUseMailer())return;let i=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
2066
+ `}return ye.nothing}onFormSubmitEvent(e,r){e.preventDefault(),r?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var e,r,i;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((r=(e=this.session)===null||e===void 0?void 0:e.profile)===null||r===void 0?void 0:r.userId)==null&&(!((i=this.configuration)===null||i===void 0)&&i.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var e;this.dispatchEvent(new ln({message:this.feedbackInput.value,...((e=this.configuration)===null||e===void 0?void 0:e.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}onOpenMoreDetails(){this.dispatchEvent(new CustomEvent("open-more-options"))}clearFeedbackInput(){setTimeout(()=>this.feedbackInput.setValue("",!0),0)}};Q.elementDefinitions={"ft-button":Ct,"ft-typography":pe,"ft-switch":Ke,"ft-switch-option":ge,"ft-text-area":De,"ft-text-field":B};Q.styles=Ks;Te([(0,me.property)({type:Boolean})],Q.prototype,"editorMode",void 0);Te([(0,me.property)({type:Boolean})],Q.prototype,"hideTitle",void 0);Te([(0,me.property)({type:Boolean})],Q.prototype,"withMoreOptionsButton",void 0);Te([(0,me.property)({type:Boolean})],Q.prototype,"ratingAllowed",void 0);Te([(0,me.property)({attribute:!1})],Q.prototype,"i18nProperties",void 0);Te([(0,me.property)({attribute:!1})],Q.prototype,"ratingSummary",void 0);Te([(0,me.property)({attribute:!1})],Q.prototype,"session",void 0);Te([(0,me.query)(".ft-reader-feedback--feedback-input")],Q.prototype,"feedbackInput",void 0);Te([(0,me.state)()],Q.prototype,"from",void 0);Te([(0,me.state)()],Q.prototype,"feedbackMessage",void 0);Te([(0,me.property)()],Q.prototype,"iconVariant",void 0);Te([(0,me.property)()],Q.prototype,"emptyStarIcon",void 0);Te([(0,me.property)()],Q.prototype,"filledStarIcon",void 0);Te([(0,me.property)()],Q.prototype,"emptyLikeIcon",void 0);Te([(0,me.property)()],Q.prototype,"filledLikeIcon",void 0);Te([(0,me.property)()],Q.prototype,"emptyDislikeIcon",void 0);Te([(0,me.property)()],Q.prototype,"filledDislikeIcon",void 0);Te([(0,fn.redux)({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],Q.prototype,"configuration",void 0);Te([(0,me.property)()],Q.prototype,"feedbackMailLinkBuilder",void 0);var yo=hr.fromGwt("server");var mo=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(e,r,i,n,a){var s;this.subject=e,this.url=r,this.configuration=n,this.isAuthenticated=a,this.subjectMetadata=this.filterMetadata(i,n.subjectMetadataIds).map(c=>"["+c.values[c.values.length-1]+"]").join(""),this.bodyMetadata=this.filterMetadata(i,(s=n.bodyMetadataIds)!==null&&s!==void 0?s:[]).map(c=>"["+c.values.join(", ")+"]").join(" ")}filterMetadata(e,r){return r.map(i=>e.find(n=>n.key===i)).filter(i=>i!=null&&i.values.length>0)}shouldUseMailer(){var e,r;let i=this.isAuthenticated&&!(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers);return i||n}build(e){var r;if(e!=null&&e.length===0||!this.shouldUseMailer())return;let i=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
2067
2067
  ${this.bodyMetadata}
2068
2068
  ${this.url}
2069
2069
  _________________________________________________________________
@@ -2071,7 +2071,7 @@ _________________________________________________________________
2071
2071
  ${e??""}
2072
2072
 
2073
2073
  _________________________________________________________________
2074
- ${ho.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configuration)===null||r===void 0?void 0:r.recipients.join(",")}?subject=${i}&body=${n}`}};var mr=hr.build("inDesignerFeedbackComponent"),fn={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var Me=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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},se=class extends fr(Yt){constructor(e=new no){super(),this.guestStorage=e,this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Fe.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new go,this.i18nProperties={feedbackMainTitle:V.properties.mapFeedbackMainTitle(),ratingSectionTitle:V.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:V.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:V.properties.mapFeedbackSectionTitle()},this.loadGuestRating=()=>{let r=this.guestStorage.get(this.guestRatingKey());r&&(this.ratingSummary=r)},this.guestRatingKey=()=>{var r;return"ft-reader-map-feedback-guest-rating-"+((r=this.map)===null||r===void 0?void 0:r.id)},this.sendRatingDebouncer=new He.Debouncer(500),this.addStore(E)}render(){return Ou.html`
2074
+ ${yo.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configuration)===null||r===void 0?void 0:r.recipients.join(",")}?subject=${i}&body=${n}`}};var mr=hr.build("inDesignerFeedbackComponent"),hn={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var Me=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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},se=class extends fr(Yt){constructor(e=new ao){super(),this.guestStorage=e,this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Fe.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new mo,this.i18nProperties={feedbackMainTitle:V.properties.mapFeedbackMainTitle(),ratingSectionTitle:V.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:V.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:V.properties.mapFeedbackSectionTitle()},this.loadGuestRating=()=>{let r=this.guestStorage.get(this.guestRatingKey());r&&(this.ratingSummary=r)},this.guestRatingKey=()=>{var r;return"ft-reader-map-feedback-guest-rating-"+((r=this.map)===null||r===void 0?void 0:r.id)},this.sendRatingDebouncer=new He.Debouncer(500),this.addStore(E)}render(){return wu.html`
2075
2075
  <ft-reader-feedback
2076
2076
  ratingAllowed
2077
2077
  .i18nProperties=${this.i18nProperties}
@@ -2093,7 +2093,7 @@ ${ho.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2093
2093
  @mailer-feedback="${this.onMailerFeedbackSent}"
2094
2094
  @open-more-options="${this.openMoreOptions}"
2095
2095
  ></ft-reader-feedback>
2096
- `}willUpdate(e){var r,i,n,a,s;super.willUpdate(e),e.has("map")&&this.map&&((r=this.stateManager)===null||r===void 0||r.fetchMapRating()),e.has("editorMode")&&this.editorMode&&this.addI18nContext(mr,fn),["map","configuration","user","mailSubject"].some(c=>e.has(c))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(n=(i=this.service)===null||i===void 0?void 0:i.getLink())!==null&&n!==void 0?n:"",this.map.metadata,this.configuration,((s=(a=this.session)===null||a===void 0?void 0:a.profile)===null||s===void 0?void 0:s.userId)!=null),["session","map"].some(c=>e.has(c))&&this.session&&this.map&&this.loadGuestRating()}connectedCallback(){super.connectedCallback(),this.guestStorage.addStoreListener(this.guestRatingKey,this.loadGuestRating)}disconnectedCallback(){super.disconnectedCallback(),this.guestStorage.clearStoreListeners()}async fetchRatingSummary(){var e;await((e=this.stateManager)===null||e===void 0?void 0:e.fetchMapRating())}rate(e){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:e.detail==null?void 0:{type:this.ratingSummary.type,value:e.detail,date:new Date}},this.guestStorage.store(this.guestRatingKey(),this.ratingSummary),this.sendRatingDebouncer.run(()=>this.sendRating(e.detail)))}async sendRating(e){var r,i,n,a;if(!this.editorMode&&this.ratingSummary){try{e==null?await((r=this.service)===null||r===void 0?void 0:r.unrateMap()):await((i=this.service)===null||i===void 0?void 0:i.rateMap((n=this.ratingSummary)===null||n===void 0?void 0:n.type,e))}catch{this.dispatchEvent(new He.FtNotificationEvent({type:"error",message:V.messages.ratingFailure()}))}await((a=this.stateManager)===null||a===void 0?void 0:a.fetchMapRating())}else this.editorMode&&this.dispatchEvent(new He.FtNotificationEvent({type:"info",message:mr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(e){var r;try{this.editorMode?this.dispatchEvent(new He.FtNotificationEvent({type:"info",message:mr.messages.feedbackAndRatingDisabledInEditor()})):(await((r=this.service)===null||r===void 0?void 0:r.sendMapFeedback(e.detail.message,e.detail.from)),this.dispatchEvent(new He.FtNotificationEvent({type:"info",message:V.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new He.FtNotificationEvent({type:"error",message:V.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new un)}openMoreOptions(){var e,r,i;this.dispatchEvent(new cn({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:((e=this.map)===null||e===void 0?void 0:e.metadata)||[],ratingType:((r=this.ratingSummary)===null||r===void 0?void 0:r.type)||xe.NO_RATING,ratingValue:(i=this.ratingSummary)===null||i===void 0?void 0:i.rating}))}};se.elementDefinitions={"ft-reader-feedback":Q};se.storedRatingIfAuthenticated=(t,e)=>{var r,i;return!((r=e.session)===null||r===void 0)&&r.sessionAuthenticated?t.mapRating:(i=e.ratingSummary)!==null&&i!==void 0?i:t.mapRating};Me([(0,He.redux)({store:E.name})],se.prototype,"session",void 0);Me([(0,He.redux)({store:"reader"})],se.prototype,"map",void 0);Me([(0,He.redux)({store:E.name})],se.prototype,"editorMode",void 0);Me([(0,He.redux)({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],se.prototype,"configuration",void 0);Me([(0,He.redux)({store:"reader",selector:se.storedRatingIfAuthenticated})],se.prototype,"ratingSummary",void 0);Me([(0,yt.property)({type:Boolean})],se.prototype,"hideTitle",void 0);Me([(0,yt.property)({type:Boolean})],se.prototype,"withMoreOptionsButton",void 0);Me([(0,yt.property)()],se.prototype,"iconVariant",void 0);Me([(0,yt.property)()],se.prototype,"emptyStarIcon",void 0);Me([(0,yt.property)()],se.prototype,"filledStarIcon",void 0);Me([(0,yt.property)()],se.prototype,"emptyLikeIcon",void 0);Me([(0,yt.property)()],se.prototype,"filledLikeIcon",void 0);Me([(0,yt.property)()],se.prototype,"emptyDislikeIcon",void 0);Me([(0,yt.property)()],se.prototype,"filledDislikeIcon",void 0);Me([(0,yt.query)("ft-reader-feedback")],se.prototype,"readerFeedback",void 0);Me([Vi(ho.properties["mail.map_feedback.subject"](t=>{var e;return[(e=t.map)===null||e===void 0?void 0:e.title]}))],se.prototype,"mailSubject",void 0);Me([(0,He.reduxEventListener)({eventName:"rating-changed"})],se.prototype,"fetchRatingSummary",null);var Eu=m(M()),mt=m(Z()),We=m(T());var hn=m(Z()),wu=m(T());var Ba=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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},Ua=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},Fa=Symbol("registerInterval"),af=(0,wu.applyMixinOnce)(Symbol("toFtReaderTopicComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this.headingLevelsShift=0,this[e]=0}connectedCallback(){super.connectedCallback(),this[Fa]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[Fa]):this.dispatchEvent(new Ua)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=Fa,Ba([(0,hn.state)()],r.prototype,"tocNode",void 0),Ba([(0,hn.state)()],r.prototype,"disableContextInteractions",void 0),Ba([(0,hn.state)()],r.prototype,"headingLevelsShift",void 0),r}),gn=class extends af(Yt){};var Be=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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},le=class extends fr(gn){constructor(e=new no){super(),this.guestStorage=e,this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Fe.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new go,this.i18nProperties={feedbackMainTitle:V.properties.topicFeedbackMainTitle(),ratingSectionTitle:V.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:V.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:V.properties.topicFeedbackSectionTitle()},this.loadGuestRating=()=>{let r=this.guestStorage.get(this.guestRatingKey());r&&(this.ratingSummary=r)},this.guestRatingKey=()=>{var r;return"ft-reader-topic-feedback-guest-rating-"+((r=this.tocNode)===null||r===void 0?void 0:r.tocId)},this.sendRatingDebouncer=new We.Debouncer(500),this.addStore(E)}render(){var e;return Eu.html`
2096
+ `}willUpdate(e){var r,i,n,a,s;super.willUpdate(e),e.has("map")&&this.map&&((r=this.stateManager)===null||r===void 0||r.fetchMapRating()),e.has("editorMode")&&this.editorMode&&this.addI18nContext(mr,hn),["map","configuration","user","mailSubject"].some(c=>e.has(c))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(n=(i=this.service)===null||i===void 0?void 0:i.getLink())!==null&&n!==void 0?n:"",this.map.metadata,this.configuration,((s=(a=this.session)===null||a===void 0?void 0:a.profile)===null||s===void 0?void 0:s.userId)!=null),["session","map"].some(c=>e.has(c))&&this.session&&this.map&&this.loadGuestRating()}connectedCallback(){super.connectedCallback(),this.guestStorage.addStoreListener(this.guestRatingKey,this.loadGuestRating)}disconnectedCallback(){super.disconnectedCallback(),this.guestStorage.clearStoreListeners()}async fetchRatingSummary(){var e;await((e=this.stateManager)===null||e===void 0?void 0:e.fetchMapRating())}rate(e){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:e.detail==null?void 0:{type:this.ratingSummary.type,value:e.detail,date:new Date}},this.guestStorage.store(this.guestRatingKey(),this.ratingSummary),this.sendRatingDebouncer.run(()=>this.sendRating(e.detail)))}async sendRating(e){var r,i,n,a;if(!this.editorMode&&this.ratingSummary){try{e==null?await((r=this.service)===null||r===void 0?void 0:r.unrateMap()):await((i=this.service)===null||i===void 0?void 0:i.rateMap((n=this.ratingSummary)===null||n===void 0?void 0:n.type,e))}catch{this.dispatchEvent(new He.FtNotificationEvent({type:"error",message:V.messages.ratingFailure()}))}await((a=this.stateManager)===null||a===void 0?void 0:a.fetchMapRating())}else this.editorMode&&this.dispatchEvent(new He.FtNotificationEvent({type:"info",message:mr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(e){var r;try{this.editorMode?this.dispatchEvent(new He.FtNotificationEvent({type:"info",message:mr.messages.feedbackAndRatingDisabledInEditor()})):(await((r=this.service)===null||r===void 0?void 0:r.sendMapFeedback(e.detail.message,e.detail.from)),this.dispatchEvent(new He.FtNotificationEvent({type:"info",message:V.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new He.FtNotificationEvent({type:"error",message:V.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new pn)}openMoreOptions(){var e,r,i;this.dispatchEvent(new dn({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:((e=this.map)===null||e===void 0?void 0:e.metadata)||[],ratingType:((r=this.ratingSummary)===null||r===void 0?void 0:r.type)||xe.NO_RATING,ratingValue:(i=this.ratingSummary)===null||i===void 0?void 0:i.rating}))}};se.elementDefinitions={"ft-reader-feedback":Q};se.storedRatingIfAuthenticated=(t,e)=>{var r,i;return!((r=e.session)===null||r===void 0)&&r.sessionAuthenticated?t.mapRating:(i=e.ratingSummary)!==null&&i!==void 0?i:t.mapRating};Me([(0,He.redux)({store:E.name})],se.prototype,"session",void 0);Me([(0,He.redux)({store:"reader"})],se.prototype,"map",void 0);Me([(0,He.redux)({store:E.name})],se.prototype,"editorMode",void 0);Me([(0,He.redux)({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],se.prototype,"configuration",void 0);Me([(0,He.redux)({store:"reader",selector:se.storedRatingIfAuthenticated})],se.prototype,"ratingSummary",void 0);Me([(0,yt.property)({type:Boolean})],se.prototype,"hideTitle",void 0);Me([(0,yt.property)({type:Boolean})],se.prototype,"withMoreOptionsButton",void 0);Me([(0,yt.property)()],se.prototype,"iconVariant",void 0);Me([(0,yt.property)()],se.prototype,"emptyStarIcon",void 0);Me([(0,yt.property)()],se.prototype,"filledStarIcon",void 0);Me([(0,yt.property)()],se.prototype,"emptyLikeIcon",void 0);Me([(0,yt.property)()],se.prototype,"filledLikeIcon",void 0);Me([(0,yt.property)()],se.prototype,"emptyDislikeIcon",void 0);Me([(0,yt.property)()],se.prototype,"filledDislikeIcon",void 0);Me([(0,yt.query)("ft-reader-feedback")],se.prototype,"readerFeedback",void 0);Me([ji(yo.properties["mail.map_feedback.subject"](t=>{var e;return[(e=t.map)===null||e===void 0?void 0:e.title]}))],se.prototype,"mailSubject",void 0);Me([(0,He.reduxEventListener)({eventName:"rating-changed"})],se.prototype,"fetchRatingSummary",null);var Au=m(M()),mt=m(Z()),We=m(T());var gn=m(Z()),Eu=m(T());var Fa=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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},za=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},Ua=Symbol("registerInterval"),sf=(0,Eu.applyMixinOnce)(Symbol("toFtReaderTopicComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this.headingLevelsShift=0,this[e]=0}connectedCallback(){super.connectedCallback(),this[Ua]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[Ua]):this.dispatchEvent(new za)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=Ua,Fa([(0,gn.state)()],r.prototype,"tocNode",void 0),Fa([(0,gn.state)()],r.prototype,"disableContextInteractions",void 0),Fa([(0,gn.state)()],r.prototype,"headingLevelsShift",void 0),r}),yn=class extends sf(Yt){};var Be=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(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},le=class extends fr(yn){constructor(e=new ao){super(),this.guestStorage=e,this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Fe.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new mo,this.i18nProperties={feedbackMainTitle:V.properties.topicFeedbackMainTitle(),ratingSectionTitle:V.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:V.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:V.properties.topicFeedbackSectionTitle()},this.loadGuestRating=()=>{let r=this.guestStorage.get(this.guestRatingKey());r&&(this.ratingSummary=r)},this.guestRatingKey=()=>{var r;return"ft-reader-topic-feedback-guest-rating-"+((r=this.tocNode)===null||r===void 0?void 0:r.tocId)},this.sendRatingDebouncer=new We.Debouncer(500),this.addStore(E)}render(){var e;return Au.html`
2097
2097
  <ft-reader-feedback
2098
2098
  .i18nProperties=${this.i18nProperties}
2099
2099
  ?ratingAllowed=${(e=this.tocNode)===null||e===void 0?void 0:e.hasRating}
@@ -2115,7 +2115,7 @@ ${ho.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2115
2115
  @mailer-feedback="${this.onMailerFeedbackSent}"
2116
2116
  @open-more-options="${this.openMoreOptions}"
2117
2117
  ></ft-reader-feedback>
2118
- `}willUpdate(e){var r,i,n,a,s;super.willUpdate(e),["tocNode","user"].some(c=>e.has(c))&&this.tocNode&&((r=this.stateManager)===null||r===void 0||r.fetchTopicRating(this.tocNode.tocId)),e.has("editorMode")&&this.editorMode&&this.addI18nContext(mr,fn),["map","tocNode","configuration","user","mailSubject"].some(c=>e.has(c))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(n=(i=this.service)===null||i===void 0?void 0:i.getLink(this.tocNode.tocId))!==null&&n!==void 0?n:"",this.map.metadata,this.configuration,((s=(a=this.session)===null||a===void 0?void 0:a.profile)===null||s===void 0?void 0:s.userId)!=null),["session","tocNode"].some(c=>e.has(c))&&this.session&&this.tocNode&&this.loadGuestRating()}connectedCallback(){super.connectedCallback(),this.guestStorage.addStoreListener(this.guestRatingKey,this.loadGuestRating)}disconnectedCallback(){super.disconnectedCallback(),this.guestStorage.clearStoreListeners()}async fetchRatingSummary(){var e;await((e=this.stateManager)===null||e===void 0?void 0:e.fetchTopicRating(this.tocNode.tocId))}rate(e){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:e.detail==null?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:e.detail,date:new Date}},this.guestStorage.store(this.guestRatingKey(),this.ratingSummary),this.sendRatingDebouncer.run(()=>this.sendRating(e.detail)))}async sendRating(e){var r,i,n,a;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{e==null?await((r=this.service)===null||r===void 0?void 0:r.unrateTopic(this.tocNode.tocId)):await((i=this.service)===null||i===void 0?void 0:i.rateTopic(this.tocNode.tocId,(n=this.ratingSummary)===null||n===void 0?void 0:n.type,e))}catch{this.dispatchEvent(new We.FtNotificationEvent({type:"error",message:V.messages.ratingFailure()}))}await((a=this.stateManager)===null||a===void 0?void 0:a.fetchTopicRating(this.tocNode.tocId))}else this.editorMode&&this.dispatchEvent(new We.FtNotificationEvent({type:"info",message:mr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(e){var r;try{!this.editorMode&&this.tocNode?(await((r=this.service)===null||r===void 0?void 0:r.sendTopicFeedback(this.tocNode.tocId,e.detail.message,e.detail.from)),this.dispatchEvent(new We.FtNotificationEvent({type:"info",message:V.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new We.FtNotificationEvent({type:"info",message:mr.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new We.FtNotificationEvent({type:"error",message:V.messages.feedbackFailure()}))}}onMailerFeedbackSent(){let e=this.tocNode;this.dispatchEvent(new dn(e))}openMoreOptions(){var e,r,i,n,a,s,c,u;this.dispatchEvent(new ln({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:(r=(e=this.service)===null||e===void 0?void 0:e.getLink(this.tocNode.tocId))!==null&&r!==void 0?r:"",mapMetadata:((i=this.map)===null||i===void 0?void 0:i.metadata)||[],breadcrumb:((a=(n=this.stateManager)===null||n===void 0?void 0:n.service)===null||a===void 0?void 0:a.buildBreadcrumb(this.tocNode.tocId))||[],ratingType:(!((s=this.tocNode)===null||s===void 0)&&s.hasRating?(c=this.ratingSummary)===null||c===void 0?void 0:c.type:xe.NO_RATING)||xe.NO_RATING,ratingValue:(u=this.ratingSummary)===null||u===void 0?void 0:u.rating}))}};le.elementDefinitions={"ft-reader-feedback":Q};le.storedRatingIfAuthenticated=(t,e)=>{var r,i,n,a;let s=t.topicsRating[(i=(r=e.tocNode)===null||r===void 0?void 0:r.tocId)!==null&&i!==void 0?i:""];return!((n=e.session)===null||n===void 0)&&n.sessionAuthenticated?s:(a=e.ratingSummary)!==null&&a!==void 0?a:s};Be([(0,We.redux)({store:E.name})],le.prototype,"session",void 0);Be([(0,We.redux)({store:"reader"})],le.prototype,"map",void 0);Be([(0,We.redux)({store:E.name})],le.prototype,"editorMode",void 0);Be([(0,We.redux)({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],le.prototype,"configuration",void 0);Be([(0,We.redux)({store:"reader",selector:le.storedRatingIfAuthenticated})],le.prototype,"ratingSummary",void 0);Be([(0,mt.property)({type:Boolean})],le.prototype,"hideTitle",void 0);Be([(0,mt.property)({type:Boolean})],le.prototype,"withMoreOptionsButton",void 0);Be([(0,mt.property)()],le.prototype,"iconVariant",void 0);Be([(0,mt.property)()],le.prototype,"emptyStarIcon",void 0);Be([(0,mt.property)()],le.prototype,"filledStarIcon",void 0);Be([(0,mt.property)()],le.prototype,"emptyLikeIcon",void 0);Be([(0,mt.property)()],le.prototype,"filledLikeIcon",void 0);Be([(0,mt.property)()],le.prototype,"emptyDislikeIcon",void 0);Be([(0,mt.property)()],le.prototype,"filledDislikeIcon",void 0);Be([(0,mt.query)("ft-reader-feedback")],le.prototype,"readerFeedback",void 0);Be([Vi(ho.properties["mail.feedback.subject"](t=>{var e,r;return[(e=t.tocNode)===null||e===void 0?void 0:e.title,(r=t.map)===null||r===void 0?void 0:r.title]}))],le.prototype,"mailSubject",void 0);Be([(0,We.reduxEventListener)({eventName:"rating-changed"})],le.prototype,"fetchRatingSummary",null);(0,za.customElement)("ft-reader-map-feedback")(se);(0,za.customElement)("ft-reader-topic-feedback")(le);})();
2118
+ `}willUpdate(e){var r,i,n,a,s;super.willUpdate(e),["tocNode","user"].some(c=>e.has(c))&&this.tocNode&&((r=this.stateManager)===null||r===void 0||r.fetchTopicRating(this.tocNode.tocId)),e.has("editorMode")&&this.editorMode&&this.addI18nContext(mr,hn),["map","tocNode","configuration","user","mailSubject"].some(c=>e.has(c))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(n=(i=this.service)===null||i===void 0?void 0:i.getLink(this.tocNode.tocId))!==null&&n!==void 0?n:"",this.map.metadata,this.configuration,((s=(a=this.session)===null||a===void 0?void 0:a.profile)===null||s===void 0?void 0:s.userId)!=null),["session","tocNode"].some(c=>e.has(c))&&this.session&&this.tocNode&&this.loadGuestRating()}connectedCallback(){super.connectedCallback(),this.guestStorage.addStoreListener(this.guestRatingKey,this.loadGuestRating)}disconnectedCallback(){super.disconnectedCallback(),this.guestStorage.clearStoreListeners()}async fetchRatingSummary(){var e;await((e=this.stateManager)===null||e===void 0?void 0:e.fetchTopicRating(this.tocNode.tocId))}rate(e){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:e.detail==null?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:e.detail,date:new Date}},this.guestStorage.store(this.guestRatingKey(),this.ratingSummary),this.sendRatingDebouncer.run(()=>this.sendRating(e.detail)))}async sendRating(e){var r,i,n,a;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{e==null?await((r=this.service)===null||r===void 0?void 0:r.unrateTopic(this.tocNode.tocId)):await((i=this.service)===null||i===void 0?void 0:i.rateTopic(this.tocNode.tocId,(n=this.ratingSummary)===null||n===void 0?void 0:n.type,e))}catch{this.dispatchEvent(new We.FtNotificationEvent({type:"error",message:V.messages.ratingFailure()}))}await((a=this.stateManager)===null||a===void 0?void 0:a.fetchTopicRating(this.tocNode.tocId))}else this.editorMode&&this.dispatchEvent(new We.FtNotificationEvent({type:"info",message:mr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(e){var r;try{!this.editorMode&&this.tocNode?(await((r=this.service)===null||r===void 0?void 0:r.sendTopicFeedback(this.tocNode.tocId,e.detail.message,e.detail.from)),this.dispatchEvent(new We.FtNotificationEvent({type:"info",message:V.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new We.FtNotificationEvent({type:"info",message:mr.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new We.FtNotificationEvent({type:"error",message:V.messages.feedbackFailure()}))}}onMailerFeedbackSent(){let e=this.tocNode;this.dispatchEvent(new un(e))}openMoreOptions(){var e,r,i,n,a,s,c,u;this.dispatchEvent(new cn({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:(r=(e=this.service)===null||e===void 0?void 0:e.getLink(this.tocNode.tocId))!==null&&r!==void 0?r:"",mapMetadata:((i=this.map)===null||i===void 0?void 0:i.metadata)||[],breadcrumb:((a=(n=this.stateManager)===null||n===void 0?void 0:n.service)===null||a===void 0?void 0:a.buildBreadcrumb(this.tocNode.tocId))||[],ratingType:(!((s=this.tocNode)===null||s===void 0)&&s.hasRating?(c=this.ratingSummary)===null||c===void 0?void 0:c.type:xe.NO_RATING)||xe.NO_RATING,ratingValue:(u=this.ratingSummary)===null||u===void 0?void 0:u.rating}))}};le.elementDefinitions={"ft-reader-feedback":Q};le.storedRatingIfAuthenticated=(t,e)=>{var r,i,n,a;let s=t.topicsRating[(i=(r=e.tocNode)===null||r===void 0?void 0:r.tocId)!==null&&i!==void 0?i:""];return!((n=e.session)===null||n===void 0)&&n.sessionAuthenticated?s:(a=e.ratingSummary)!==null&&a!==void 0?a:s};Be([(0,We.redux)({store:E.name})],le.prototype,"session",void 0);Be([(0,We.redux)({store:"reader"})],le.prototype,"map",void 0);Be([(0,We.redux)({store:E.name})],le.prototype,"editorMode",void 0);Be([(0,We.redux)({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],le.prototype,"configuration",void 0);Be([(0,We.redux)({store:"reader",selector:le.storedRatingIfAuthenticated})],le.prototype,"ratingSummary",void 0);Be([(0,mt.property)({type:Boolean})],le.prototype,"hideTitle",void 0);Be([(0,mt.property)({type:Boolean})],le.prototype,"withMoreOptionsButton",void 0);Be([(0,mt.property)()],le.prototype,"iconVariant",void 0);Be([(0,mt.property)()],le.prototype,"emptyStarIcon",void 0);Be([(0,mt.property)()],le.prototype,"filledStarIcon",void 0);Be([(0,mt.property)()],le.prototype,"emptyLikeIcon",void 0);Be([(0,mt.property)()],le.prototype,"filledLikeIcon",void 0);Be([(0,mt.property)()],le.prototype,"emptyDislikeIcon",void 0);Be([(0,mt.property)()],le.prototype,"filledDislikeIcon",void 0);Be([(0,mt.query)("ft-reader-feedback")],le.prototype,"readerFeedback",void 0);Be([ji(yo.properties["mail.feedback.subject"](t=>{var e,r;return[(e=t.tocNode)===null||e===void 0?void 0:e.title,(r=t.map)===null||r===void 0?void 0:r.title]}))],le.prototype,"mailSubject",void 0);Be([(0,We.reduxEventListener)({eventName:"rating-changed"})],le.prototype,"fetchRatingSummary",null);(0,Ha.customElement)("ft-reader-map-feedback")(se);(0,Ha.customElement)("ft-reader-topic-feedback")(le);})();
2119
2119
  /*! Bundled license information:
2120
2120
 
2121
2121
  lit-html/lit-html.js: