@fluid-topics/ft-confirm-button 1.3.32 → 1.3.33

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 yl=Object.create;var ea=Object.defineProperty;var ml=Object.getOwnPropertyDescriptor;var gl=Object.getOwnPropertyNames;var bl=Object.getPrototypeOf,xl=Object.prototype.hasOwnProperty;var kt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var vl=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of gl(t))!xl.call(e,a)&&a!==o&&ea(e,a,{get:()=>t[a],enumerable:!(n=ml(t,a))||n.enumerable});return e};var S=(e,t,o)=>(o=e!=null?yl(bl(e)):{},vl(t||!e||!e.__esModule?ea(o,"default",{value:e,enumerable:!0}):o,e));var te=kt((Kd,ta)=>{ta.exports=ftGlobals.litDecorators});var P=kt((Vd,ra)=>{ra.exports=ftGlobals.wcUtils});var H=kt((Zd,oa)=>{oa.exports=ftGlobals.lit});var fr=kt((Ey,ai)=>{ai.exports=ftGlobals.litClassMap});var os=kt((Tm,rs)=>{rs.exports=ftGlobals.litUnsafeHTML});var Os=kt((pt,Ss)=>{var co=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,lo=function(){function e(){this.fetch=!1,this.DOMException=co.DOMException}return e.prototype=co,new e}();(function(e){var t=function(o){var n=typeof e<"u"&&e||typeof self<"u"&&self||typeof global<"u"&&global||{},a={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};function i(y){return y&&DataView.prototype.isPrototypeOf(y)}if(a.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(y){return y&&c.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 m(y){var b={next:function(){var _=y.shift();return{done:_===void 0,value:_}}};return a.iterable&&(b[Symbol.iterator]=function(){return b}),b}function h(y){this.map={},y instanceof h?y.forEach(function(b,_){this.append(_,b)},this):Array.isArray(y)?y.forEach(function(b){if(b.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+b.length);this.append(b[0],b[1])},this):y&&Object.getOwnPropertyNames(y).forEach(function(b){this.append(b,y[b])},this)}h.prototype.append=function(y,b){y=u(y),b=p(b);var _=this.map[y];this.map[y]=_?_+", "+b:b},h.prototype.delete=function(y){delete this.map[u(y)]},h.prototype.get=function(y){return y=u(y),this.has(y)?this.map[y]:null},h.prototype.has=function(y){return this.map.hasOwnProperty(u(y))},h.prototype.set=function(y,b){this.map[u(y)]=p(b)},h.prototype.forEach=function(y,b){for(var _ in this.map)this.map.hasOwnProperty(_)&&y.call(b,this.map[_],_,this)},h.prototype.keys=function(){var y=[];return this.forEach(function(b,_){y.push(_)}),m(y)},h.prototype.values=function(){var y=[];return this.forEach(function(b){y.push(b)}),m(y)},h.prototype.entries=function(){var y=[];return this.forEach(function(b,_){y.push([_,b])}),m(y)},a.iterable&&(h.prototype[Symbol.iterator]=h.prototype.entries);function g(y){if(!y._noBody){if(y.bodyUsed)return Promise.reject(new TypeError("Already read"));y.bodyUsed=!0}}function v(y){return new Promise(function(b,_){y.onload=function(){b(y.result)},y.onerror=function(){_(y.error)}})}function x(y){var b=new FileReader,_=v(b);return b.readAsArrayBuffer(y),_}function C(y){var b=new FileReader,_=v(b),F=/charset=([A-Za-z0-9_-]+)/.exec(y.type),V=F?F[1]:"utf-8";return b.readAsText(y,V),_}function L(y){for(var b=new Uint8Array(y),_=new Array(b.length),F=0;F<b.length;F++)_[F]=String.fromCharCode(b[F]);return _.join("")}function R(y){if(y.slice)return y.slice(0);var b=new Uint8Array(y.byteLength);return b.set(new Uint8Array(y)),b.buffer}function T(){return this.bodyUsed=!1,this._initBody=function(y){this.bodyUsed=this.bodyUsed,this._bodyInit=y,y?typeof y=="string"?this._bodyText=y:a.blob&&Blob.prototype.isPrototypeOf(y)?this._bodyBlob=y:a.formData&&FormData.prototype.isPrototypeOf(y)?this._bodyFormData=y:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)?this._bodyText=y.toString():a.arrayBuffer&&a.blob&&i(y)?(this._bodyArrayBuffer=R(y.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(y)||l(y))?this._bodyArrayBuffer=R(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):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var y=g(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=g(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(a.blob)return this.blob().then(x);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var y=g(this);if(y)return y;if(this._bodyBlob)return C(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(L(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(Se)}),this.json=function(){return this.text().then(JSON.parse)},this}var k=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function B(y){var b=y.toUpperCase();return k.indexOf(b)>-1?b:y}function M(y,b){if(!(this instanceof M))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');b=b||{};var _=b.body;if(y instanceof M){if(y.bodyUsed)throw new TypeError("Already read");this.url=y.url,this.credentials=y.credentials,b.headers||(this.headers=new h(y.headers)),this.method=y.method,this.mode=y.mode,this.signal=y.signal,!_&&y._bodyInit!=null&&(_=y._bodyInit,y.bodyUsed=!0)}else this.url=String(y);if(this.credentials=b.credentials||this.credentials||"same-origin",(b.headers||!this.headers)&&(this.headers=new h(b.headers)),this.method=B(b.method||this.method||"GET"),this.mode=b.mode||this.mode||null,this.signal=b.signal||this.signal||function(){if("AbortController"in n){var U=new AbortController;return U.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&_)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(_),(this.method==="GET"||this.method==="HEAD")&&(b.cache==="no-store"||b.cache==="no-cache")){var F=/([?&])_=[^&]*/;if(F.test(this.url))this.url=this.url.replace(F,"$1_="+new Date().getTime());else{var V=/\?/;this.url+=(V.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}M.prototype.clone=function(){return new M(this,{body:this._bodyInit})};function Se(y){var b=new FormData;return y.trim().split("&").forEach(function(_){if(_){var F=_.split("="),V=F.shift().replace(/\+/g," "),U=F.join("=").replace(/\+/g," ");b.append(decodeURIComponent(V),decodeURIComponent(U))}}),b}function Ge(y){var b=new h,_=y.replace(/\r?\n[\t ]+/g," ");return _.split("\r").map(function(F){return F.indexOf(`
2
- `)===0?F.substr(1,F.length):F}).forEach(function(F){var V=F.split(":"),U=V.shift().trim();if(U){var Wr=V.join(":").trim();try{b.append(U,Wr)}catch($o){console.warn("Response "+$o.message)}}}),b}T.call(M.prototype);function ge(y,b){if(!(this instanceof ge))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(b||(b={}),this.type="default",this.status=b.status===void 0?200:b.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=b.statusText===void 0?"":""+b.statusText,this.headers=new h(b.headers),this.url=b.url||"",this._initBody(y)}T.call(ge.prototype),ge.prototype.clone=function(){return new ge(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(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 je=[301,302,303,307,308];ge.redirect=function(y,b){if(je.indexOf(b)===-1)throw new RangeError("Invalid status code");return new ge(null,{status:b,headers:{location:y}})},o.DOMException=n.DOMException;try{new o.DOMException}catch{o.DOMException=function(b,_){this.message=b,this.name=_;var F=Error(b);this.stack=F.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function ce(y,b){return new Promise(function(_,F){var V=new M(y,b);if(V.signal&&V.signal.aborted)return F(new o.DOMException("Aborted","AbortError"));var U=new XMLHttpRequest;function Wr(){U.abort()}U.onload=function(){var le={statusText:U.statusText,headers:Ge(U.getAllResponseHeaders()||"")};V.url.indexOf("file://")===0&&(U.status<200||U.status>599)?le.status=200:le.status=U.status,le.url="responseURL"in U?U.responseURL:le.headers.get("X-Request-URL");var xt="response"in U?U.response:U.responseText;setTimeout(function(){_(new ge(xt,le))},0)},U.onerror=function(){setTimeout(function(){F(new TypeError("Network request failed"))},0)},U.ontimeout=function(){setTimeout(function(){F(new TypeError("Network request timed out"))},0)},U.onabort=function(){setTimeout(function(){F(new o.DOMException("Aborted","AbortError"))},0)};function $o(le){try{return le===""&&n.location.href?n.location.href:le}catch{return le}}if(U.open(V.method,$o(V.url),!0),V.credentials==="include"?U.withCredentials=!0:V.credentials==="omit"&&(U.withCredentials=!1),"responseType"in U&&(a.blob?U.responseType="blob":a.arrayBuffer&&(U.responseType="arraybuffer")),b&&typeof b.headers=="object"&&!(b.headers instanceof h||n.Headers&&b.headers instanceof n.Headers)){var Qn=[];Object.getOwnPropertyNames(b.headers).forEach(function(le){Qn.push(u(le)),U.setRequestHeader(le,p(b.headers[le]))}),V.headers.forEach(function(le,xt){Qn.indexOf(xt)===-1&&U.setRequestHeader(xt,le)})}else V.headers.forEach(function(le,xt){U.setRequestHeader(xt,le)});V.signal&&(V.signal.addEventListener("abort",Wr),U.onreadystatechange=function(){U.readyState===4&&V.signal.removeEventListener("abort",Wr)}),U.send(typeof V._bodyInit>"u"?null:V._bodyInit)})}return ce.polyfill=!0,n.fetch||(n.fetch=ce,n.Headers=h,n.Request=M,n.Response=ge),o.Headers=h,o.Request=M,o.Response=ge,o.fetch=ce,o}({})})(lo);lo.fetch.ponyfill=!0;delete lo.fetch.polyfill;var tr=co.fetch?co:lo;pt=tr.fetch;pt.default=tr.fetch;pt.fetch=tr.fetch;pt.Headers=tr.Headers;pt.Request=tr.Request;pt.Response=tr.Response;Ss.exports=pt});var q=S(te()),fl=S(P()),ur=S(H());var fn=S(P());var Ar=S(te()),ds=S(P());var oi=S(H()),D=S(P());var la=S(H()),X=S(P()),na=X.FtCssVariableFactory.extend("--ft-ripple-color","",X.designSystemVariables.colorContent),E={color:na,backgroundColor:X.FtCssVariableFactory.extend("--ft-ripple-background-color","",na),opacityContentOnSurfacePressed:X.FtCssVariableFactory.external(X.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:X.FtCssVariableFactory.external(X.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:X.FtCssVariableFactory.external(X.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:X.FtCssVariableFactory.external(X.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:X.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},aa=X.FtCssVariableFactory.extend("--ft-ripple-color","",X.designSystemVariables.colorPrimary),ia={color:aa,backgroundColor:X.FtCssVariableFactory.extend("--ft-ripple-background-color","",aa)},sa=X.FtCssVariableFactory.extend("--ft-ripple-color","",X.designSystemVariables.colorSecondary),ca={color:sa,backgroundColor:X.FtCssVariableFactory.extend("--ft-ripple-background-color","",sa)},da=la.css`
1
+ "use strict";(()=>{var yl=Object.create;var ea=Object.defineProperty;var ml=Object.getOwnPropertyDescriptor;var gl=Object.getOwnPropertyNames;var bl=Object.getPrototypeOf,xl=Object.prototype.hasOwnProperty;var kt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var vl=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of gl(t))!xl.call(e,a)&&a!==o&&ea(e,a,{get:()=>t[a],enumerable:!(n=ml(t,a))||n.enumerable});return e};var S=(e,t,o)=>(o=e!=null?yl(bl(e)):{},vl(t||!e||!e.__esModule?ea(o,"default",{value:e,enumerable:!0}):o,e));var re=kt((Kd,ta)=>{ta.exports=ftGlobals.litDecorators});var P=kt((Vd,ra)=>{ra.exports=ftGlobals.wcUtils});var H=kt((Zd,oa)=>{oa.exports=ftGlobals.lit});var fr=kt((Ey,ai)=>{ai.exports=ftGlobals.litClassMap});var os=kt((Tm,rs)=>{rs.exports=ftGlobals.litUnsafeHTML});var Os=kt((pt,Ss)=>{var co=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,lo=function(){function e(){this.fetch=!1,this.DOMException=co.DOMException}return e.prototype=co,new e}();(function(e){var t=function(o){var n=typeof e<"u"&&e||typeof self<"u"&&self||typeof global<"u"&&global||{},a={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};function i(y){return y&&DataView.prototype.isPrototypeOf(y)}if(a.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(y){return y&&c.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 m(y){var b={next:function(){var _=y.shift();return{done:_===void 0,value:_}}};return a.iterable&&(b[Symbol.iterator]=function(){return b}),b}function h(y){this.map={},y instanceof h?y.forEach(function(b,_){this.append(_,b)},this):Array.isArray(y)?y.forEach(function(b){if(b.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+b.length);this.append(b[0],b[1])},this):y&&Object.getOwnPropertyNames(y).forEach(function(b){this.append(b,y[b])},this)}h.prototype.append=function(y,b){y=u(y),b=p(b);var _=this.map[y];this.map[y]=_?_+", "+b:b},h.prototype.delete=function(y){delete this.map[u(y)]},h.prototype.get=function(y){return y=u(y),this.has(y)?this.map[y]:null},h.prototype.has=function(y){return this.map.hasOwnProperty(u(y))},h.prototype.set=function(y,b){this.map[u(y)]=p(b)},h.prototype.forEach=function(y,b){for(var _ in this.map)this.map.hasOwnProperty(_)&&y.call(b,this.map[_],_,this)},h.prototype.keys=function(){var y=[];return this.forEach(function(b,_){y.push(_)}),m(y)},h.prototype.values=function(){var y=[];return this.forEach(function(b){y.push(b)}),m(y)},h.prototype.entries=function(){var y=[];return this.forEach(function(b,_){y.push([_,b])}),m(y)},a.iterable&&(h.prototype[Symbol.iterator]=h.prototype.entries);function g(y){if(!y._noBody){if(y.bodyUsed)return Promise.reject(new TypeError("Already read"));y.bodyUsed=!0}}function v(y){return new Promise(function(b,_){y.onload=function(){b(y.result)},y.onerror=function(){_(y.error)}})}function x(y){var b=new FileReader,_=v(b);return b.readAsArrayBuffer(y),_}function C(y){var b=new FileReader,_=v(b),F=/charset=([A-Za-z0-9_-]+)/.exec(y.type),V=F?F[1]:"utf-8";return b.readAsText(y,V),_}function L(y){for(var b=new Uint8Array(y),_=new Array(b.length),F=0;F<b.length;F++)_[F]=String.fromCharCode(b[F]);return _.join("")}function R(y){if(y.slice)return y.slice(0);var b=new Uint8Array(y.byteLength);return b.set(new Uint8Array(y)),b.buffer}function T(){return this.bodyUsed=!1,this._initBody=function(y){this.bodyUsed=this.bodyUsed,this._bodyInit=y,y?typeof y=="string"?this._bodyText=y:a.blob&&Blob.prototype.isPrototypeOf(y)?this._bodyBlob=y:a.formData&&FormData.prototype.isPrototypeOf(y)?this._bodyFormData=y:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)?this._bodyText=y.toString():a.arrayBuffer&&a.blob&&i(y)?(this._bodyArrayBuffer=R(y.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(y)||l(y))?this._bodyArrayBuffer=R(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):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var y=g(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=g(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(a.blob)return this.blob().then(x);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var y=g(this);if(y)return y;if(this._bodyBlob)return C(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(L(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(Se)}),this.json=function(){return this.text().then(JSON.parse)},this}var k=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function B(y){var b=y.toUpperCase();return k.indexOf(b)>-1?b:y}function M(y,b){if(!(this instanceof M))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');b=b||{};var _=b.body;if(y instanceof M){if(y.bodyUsed)throw new TypeError("Already read");this.url=y.url,this.credentials=y.credentials,b.headers||(this.headers=new h(y.headers)),this.method=y.method,this.mode=y.mode,this.signal=y.signal,!_&&y._bodyInit!=null&&(_=y._bodyInit,y.bodyUsed=!0)}else this.url=String(y);if(this.credentials=b.credentials||this.credentials||"same-origin",(b.headers||!this.headers)&&(this.headers=new h(b.headers)),this.method=B(b.method||this.method||"GET"),this.mode=b.mode||this.mode||null,this.signal=b.signal||this.signal||function(){if("AbortController"in n){var U=new AbortController;return U.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&_)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(_),(this.method==="GET"||this.method==="HEAD")&&(b.cache==="no-store"||b.cache==="no-cache")){var F=/([?&])_=[^&]*/;if(F.test(this.url))this.url=this.url.replace(F,"$1_="+new Date().getTime());else{var V=/\?/;this.url+=(V.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}M.prototype.clone=function(){return new M(this,{body:this._bodyInit})};function Se(y){var b=new FormData;return y.trim().split("&").forEach(function(_){if(_){var F=_.split("="),V=F.shift().replace(/\+/g," "),U=F.join("=").replace(/\+/g," ");b.append(decodeURIComponent(V),decodeURIComponent(U))}}),b}function Ge(y){var b=new h,_=y.replace(/\r?\n[\t ]+/g," ");return _.split("\r").map(function(F){return F.indexOf(`
2
+ `)===0?F.substr(1,F.length):F}).forEach(function(F){var V=F.split(":"),U=V.shift().trim();if(U){var Wr=V.join(":").trim();try{b.append(U,Wr)}catch($o){console.warn("Response "+$o.message)}}}),b}T.call(M.prototype);function ge(y,b){if(!(this instanceof ge))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(b||(b={}),this.type="default",this.status=b.status===void 0?200:b.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=b.statusText===void 0?"":""+b.statusText,this.headers=new h(b.headers),this.url=b.url||"",this._initBody(y)}T.call(ge.prototype),ge.prototype.clone=function(){return new ge(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(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 je=[301,302,303,307,308];ge.redirect=function(y,b){if(je.indexOf(b)===-1)throw new RangeError("Invalid status code");return new ge(null,{status:b,headers:{location:y}})},o.DOMException=n.DOMException;try{new o.DOMException}catch{o.DOMException=function(b,_){this.message=b,this.name=_;var F=Error(b);this.stack=F.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function ce(y,b){return new Promise(function(_,F){var V=new M(y,b);if(V.signal&&V.signal.aborted)return F(new o.DOMException("Aborted","AbortError"));var U=new XMLHttpRequest;function Wr(){U.abort()}U.onload=function(){var le={statusText:U.statusText,headers:Ge(U.getAllResponseHeaders()||"")};V.url.indexOf("file://")===0&&(U.status<200||U.status>599)?le.status=200:le.status=U.status,le.url="responseURL"in U?U.responseURL:le.headers.get("X-Request-URL");var xt="response"in U?U.response:U.responseText;setTimeout(function(){_(new ge(xt,le))},0)},U.onerror=function(){setTimeout(function(){F(new TypeError("Network request failed"))},0)},U.ontimeout=function(){setTimeout(function(){F(new TypeError("Network request timed out"))},0)},U.onabort=function(){setTimeout(function(){F(new o.DOMException("Aborted","AbortError"))},0)};function $o(le){try{return le===""&&n.location.href?n.location.href:le}catch{return le}}if(U.open(V.method,$o(V.url),!0),V.credentials==="include"?U.withCredentials=!0:V.credentials==="omit"&&(U.withCredentials=!1),"responseType"in U&&(a.blob?U.responseType="blob":a.arrayBuffer&&(U.responseType="arraybuffer")),b&&typeof b.headers=="object"&&!(b.headers instanceof h||n.Headers&&b.headers instanceof n.Headers)){var Qn=[];Object.getOwnPropertyNames(b.headers).forEach(function(le){Qn.push(u(le)),U.setRequestHeader(le,p(b.headers[le]))}),V.headers.forEach(function(le,xt){Qn.indexOf(xt)===-1&&U.setRequestHeader(xt,le)})}else V.headers.forEach(function(le,xt){U.setRequestHeader(xt,le)});V.signal&&(V.signal.addEventListener("abort",Wr),U.onreadystatechange=function(){U.readyState===4&&V.signal.removeEventListener("abort",Wr)}),U.send(typeof V._bodyInit>"u"?null:V._bodyInit)})}return ce.polyfill=!0,n.fetch||(n.fetch=ce,n.Headers=h,n.Request=M,n.Response=ge),o.Headers=h,o.Request=M,o.Response=ge,o.fetch=ce,o}({})})(lo);lo.fetch.ponyfill=!0;delete lo.fetch.polyfill;var tr=co.fetch?co:lo;pt=tr.fetch;pt.default=tr.fetch;pt.fetch=tr.fetch;pt.Headers=tr.Headers;pt.Request=tr.Request;pt.Response=tr.Response;Ss.exports=pt});var q=S(re()),fl=S(P()),ur=S(H());var fn=S(P());var Ar=S(re()),ds=S(P());var oi=S(H()),D=S(P());var la=S(H()),X=S(P()),na=X.FtCssVariableFactory.extend("--ft-ripple-color","",X.designSystemVariables.colorContent),E={color:na,backgroundColor:X.FtCssVariableFactory.extend("--ft-ripple-background-color","",na),opacityContentOnSurfacePressed:X.FtCssVariableFactory.external(X.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:X.FtCssVariableFactory.external(X.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:X.FtCssVariableFactory.external(X.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:X.FtCssVariableFactory.external(X.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:X.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},aa=X.FtCssVariableFactory.extend("--ft-ripple-color","",X.designSystemVariables.colorPrimary),ia={color:aa,backgroundColor:X.FtCssVariableFactory.extend("--ft-ripple-background-color","",aa)},sa=X.FtCssVariableFactory.extend("--ft-ripple-color","",X.designSystemVariables.colorSecondary),ca={color:sa,backgroundColor:X.FtCssVariableFactory.extend("--ft-ripple-background-color","",sa)},da=la.css`
3
3
  :host {
4
4
  display: contents;
5
5
  }
@@ -334,7 +334,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
334
334
  .ft-icon--material {
335
335
  font-family: ${be.materialFontFamily}, "Material Icons", sans-serif;
336
336
  }
337
- `,De.noTextSelect];var ti=D.FtCssVariableFactory.extend("--ft-button-color","",D.designSystemVariables.colorPrimary),ae={backgroundColor:D.FtCssVariableFactory.extend("--ft-button-background-color","",D.designSystemVariables.colorSurface),borderRadius:D.FtCssVariableFactory.extend("--ft-button-border-radius","",D.designSystemVariables.borderRadiusL),color:ti,fontSize:D.FtCssVariableFactory.extend("--ft-button-font-size","",Ke.fontSize),iconSize:D.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:D.FtCssVariableFactory.extend("--ft-button-ripple-color","",ti),verticalPadding:D.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:D.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:D.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:D.FtCssVariableFactory.external(D.designSystemVariables.colorOpacityDisabled,"Design system")},ri=D.FtCssVariableFactory.extend("--ft-button-primary-color","",D.FtCssVariableFactory.extend("--ft-button-color","",D.designSystemVariables.colorOnPrimary)),Fo={backgroundColor:D.FtCssVariableFactory.extend("--ft-button-primary-background-color","",D.FtCssVariableFactory.extend("--ft-button-background-color","",D.designSystemVariables.colorPrimary)),color:ri,rippleColor:D.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",ri)},Ve={borderRadius:D.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",D.FtCssVariableFactory.extend("--ft-button-border-radius","",D.designSystemVariables.borderRadiusM)),verticalPadding:D.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:D.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:D.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},ni=[oi.css`
337
+ `,De.noTextSelect];var ti=D.FtCssVariableFactory.extend("--ft-button-color","",D.designSystemVariables.colorPrimary),ie={backgroundColor:D.FtCssVariableFactory.extend("--ft-button-background-color","",D.designSystemVariables.colorSurface),borderRadius:D.FtCssVariableFactory.extend("--ft-button-border-radius","",D.designSystemVariables.borderRadiusL),color:ti,fontSize:D.FtCssVariableFactory.extend("--ft-button-font-size","",Ke.fontSize),iconSize:D.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:D.FtCssVariableFactory.extend("--ft-button-ripple-color","",ti),verticalPadding:D.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:D.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:D.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:D.FtCssVariableFactory.external(D.designSystemVariables.colorOpacityDisabled,"Design system")},ri=D.FtCssVariableFactory.extend("--ft-button-primary-color","",D.FtCssVariableFactory.extend("--ft-button-color","",D.designSystemVariables.colorOnPrimary)),Fo={backgroundColor:D.FtCssVariableFactory.extend("--ft-button-primary-background-color","",D.FtCssVariableFactory.extend("--ft-button-background-color","",D.designSystemVariables.colorPrimary)),color:ri,rippleColor:D.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",ri)},Ve={borderRadius:D.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",D.FtCssVariableFactory.extend("--ft-button-border-radius","",D.designSystemVariables.borderRadiusM)),verticalPadding:D.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:D.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:D.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},ni=[oi.css`
338
338
  :host {
339
339
  display: inline-block;
340
340
  max-width: 100%;
@@ -345,7 +345,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
345
345
  box-shadow: 0px 0px 0px transparent;
346
346
  border: 0px solid transparent;
347
347
  text-shadow: 0px 0px 0px transparent;
348
- font-size: ${ae.fontSize};
348
+ font-size: ${ie.fontSize};
349
349
  text-decoration: none;
350
350
  }
351
351
 
@@ -375,21 +375,21 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
375
375
  border: none;
376
376
  pointer-events: auto;
377
377
 
378
- --button-internal-line-height: max(calc(${ae.fontSize} + 2px), ${ae.iconSize});
379
- --button-internal-color: ${ae.color};
380
- ${(0,D.setVariable)(be.size,ae.iconSize)};
381
- ${(0,D.setVariable)(E.color,ae.rippleColor)};
378
+ --button-internal-line-height: max(calc(${ie.fontSize} + 2px), ${ie.iconSize});
379
+ --button-internal-color: ${ie.color};
380
+ ${(0,D.setVariable)(be.size,ie.iconSize)};
381
+ ${(0,D.setVariable)(E.color,ie.rippleColor)};
382
382
 
383
- border-radius: ${ae.borderRadius};
384
- padding: ${ae.verticalPadding} ${ae.horizontalPadding};
385
- background-color: ${ae.backgroundColor};
383
+ border-radius: ${ie.borderRadius};
384
+ padding: ${ie.verticalPadding} ${ie.horizontalPadding};
385
+ background-color: ${ie.backgroundColor};
386
386
  color: var(--button-internal-color);
387
387
  -webkit-mask-image: radial-gradient(white, black);
388
388
  }
389
389
 
390
390
  .ft-button.ft-button--outlined {
391
391
  border: 1px solid var(--button-internal-color);
392
- padding: calc(${ae.verticalPadding} - 1px) calc(${ae.horizontalPadding} - 1px);
392
+ padding: calc(${ie.verticalPadding} - 1px) calc(${ie.horizontalPadding} - 1px);
393
393
  }
394
394
 
395
395
  .ft-button.ft-button--dense {
@@ -407,7 +407,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
407
407
  }
408
408
 
409
409
  .ft-button--round {
410
- border-radius: calc(var(--button-internal-line-height) / 2 + ${ae.verticalPadding});
410
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${ie.verticalPadding});
411
411
  }
412
412
 
413
413
  .ft-button--round.ft-button--dense {
@@ -416,7 +416,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
416
416
 
417
417
  .ft-button[disabled] {
418
418
  filter: grayscale(1);
419
- opacity: ${ae.opacityDisabled};
419
+ opacity: ${ie.opacityDisabled};
420
420
  }
421
421
 
422
422
  .ft-button.ft-button--primary {
@@ -435,7 +435,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
435
435
  white-space: nowrap;
436
436
  text-overflow: ellipsis;
437
437
  display: block;
438
- margin: 0 ${ae.iconPadding};
438
+ margin: 0 ${ie.iconPadding};
439
439
  ${(0,D.setVariable)(Ke.fontSize,"1em")};
440
440
  ${(0,D.setVariable)(Ke.lineHeight,"var(--button-internal-line-height)")};
441
441
  }
@@ -454,8 +454,8 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
454
454
  }
455
455
 
456
456
  .ft-button--label[hidden] + [part="icon"] {
457
- margin: 0 calc(${ae.horizontalPadding} * -1);
458
- padding: 0 ${ae.verticalPadding};
457
+ margin: 0 calc(${ie.horizontalPadding} * -1);
458
+ padding: 0 ${ie.verticalPadding};
459
459
  }
460
460
 
461
461
  .ft-button--dense .ft-button--label[hidden] + [part="icon"] {
@@ -468,10 +468,10 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
468
468
  }
469
469
 
470
470
  ft-loader {
471
- ${(0,D.setVariable)(j.size,ae.iconSize)};
471
+ ${(0,D.setVariable)(j.size,ie.iconSize)};
472
472
  ${(0,D.setVariable)(j.color,"var(--button-internal-color)")};
473
473
  }
474
- `,D.noTextSelect];var ut=S(P());var ci=S(P());var ii=S(H()),ue=S(te()),si=S(fr()),hr=S(P());var Oe=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},Y=class extends hr.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 hr.Debouncer(1e3),this.onTransitionStart=t=>{t.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=t=>{t.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new hr.Debouncer(10),this.moveRipple=t=>{var o,n;let{x:a,y:i}=this.getCoordinates(t),c=(n=(o=this.ripple)===null||o===void 0?void 0:o.getBoundingClientRect())!==null&&n!==void 0?n:{x:0,y:0,width:0,height:0};this.originX=Math.round(a!=null?a-c.x:c.width/2),this.originY=Math.round(i!=null?i-c.y:c.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(t?.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return ii.html`
474
+ `,D.noTextSelect];var ut=S(P());var ci=S(P());var ii=S(H()),ue=S(re()),si=S(fr()),hr=S(P());var Oe=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},Y=class extends hr.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 hr.Debouncer(1e3),this.onTransitionStart=t=>{t.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=t=>{t.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new hr.Debouncer(10),this.moveRipple=t=>{var o,n;let{x:a,y:i}=this.getCoordinates(t),c=(n=(o=this.ripple)===null||o===void 0?void 0:o.getBoundingClientRect())!==null&&n!==void 0?n:{x:0,y:0,width:0,height:0};this.originX=Math.round(a!=null?a-c.x:c.width/2),this.originY=Math.round(i!=null?i-c.y:c.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(t?.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return ii.html`
475
475
  <style>
476
476
  .ft-ripple .ft-ripple--effect {
477
477
  left: ${this.originX}px;
@@ -482,9 +482,9 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
482
482
  <div class="ft-ripple--background"></div>
483
483
  <div class="ft-ripple--effect"></div>
484
484
  </div>
485
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,n;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var t,o;let n=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;n&&this.setupFor((o=this.target)!==null&&o!==void 0?o:n)}forceFocusUpdate(){var t;!((t=this.target)===null||t===void 0)&&t.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let o=(...l)=>u=>{l.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(u)},n=o("mouseup","contextmenu"),a=o("touchend","touchcancel"),i=l=>{["Enter"," "].includes(l.key)&&o("keyup")(l)},c={passive:!0};t.addEventListener("mouseover",this.startHover,c),t.addEventListener("mousemove",this.moveRipple,c),t.addEventListener("mouseleave",this.endHover,c),t.addEventListener("mousedown",n,c),t.addEventListener("touchstart",a,c),t.addEventListener("touchmove",this.moveRipple,c),t.addEventListener("keydown",i,c),t.addEventListener("focus",this.startFocus,c),t.addEventListener("blur",this.endFocus,c),t.addEventListener("focusin",this.startFocus,c),t.addEventListener("focusout",this.endFocus,c),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,c),t.removeEventListener("mousemove",this.moveRipple,c),t.removeEventListener("mouseleave",this.endHover,c),t.removeEventListener("mousedown",n,c),t.removeEventListener("touchstart",a,c),t.removeEventListener("touchmove",this.moveRipple,c),t.removeEventListener("keydown",i,c),t.removeEventListener("focus",this.startFocus,c),t.removeEventListener("blur",this.endFocus,c),t.removeEventListener("focusin",this.startFocus,c),t.removeEventListener("focusout",this.endFocus,c),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let o=t,n=t,a,i;return o.x!=null?{x:a,y:i}=o:n.touches!=null&&(a=n.touches[0].clientX,i=n.touches[0].clientY),{x:a,y:i}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};Y.elementDefinitions={};Y.styles=da;Oe([(0,ue.property)({type:Boolean})],Y.prototype,"primary",void 0);Oe([(0,ue.property)({type:Boolean})],Y.prototype,"secondary",void 0);Oe([(0,ue.property)({type:Boolean})],Y.prototype,"unbounded",void 0);Oe([(0,ue.property)({type:Boolean})],Y.prototype,"activated",void 0);Oe([(0,ue.property)({type:Boolean})],Y.prototype,"selected",void 0);Oe([(0,ue.property)({type:Boolean})],Y.prototype,"disabled",void 0);Oe([(0,ue.state)()],Y.prototype,"hovered",void 0);Oe([(0,ue.state)()],Y.prototype,"focused",void 0);Oe([(0,ue.state)()],Y.prototype,"pressed",void 0);Oe([(0,ue.state)()],Y.prototype,"rippling",void 0);Oe([(0,ue.state)()],Y.prototype,"originX",void 0);Oe([(0,ue.state)()],Y.prototype,"originY",void 0);Oe([(0,ue.query)(".ft-ripple")],Y.prototype,"ripple",void 0);Oe([(0,ue.query)(".ft-ripple--effect")],Y.prototype,"rippleEffect",void 0);(0,ci.customElement)("ft-ripple")(Y);var ts=S(P());var es=S(H()),Re=S(te()),Ee=S(P());var wi=S(P());var Vo=globalThis,Gr=Vo.trustedTypes,li=Gr?Gr.createPolicy("lit-html",{createHTML:e=>e}):void 0,yi="$lit$",st=`lit$${Math.random().toFixed(9).slice(2)}$`,mi="?"+st,Ol=`<${mi}>`,Ot=document,jr=()=>Ot.createComment(""),mr=e=>e===null||typeof e!="object"&&typeof e!="function",Zo=Array.isArray,Cl=e=>Zo(e)||typeof e?.[Symbol.iterator]=="function",Ho=`[
485
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,n;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var t,o;let n=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;n&&this.setupFor((o=this.target)!==null&&o!==void 0?o:n)}forceFocusUpdate(){var t;!((t=this.target)===null||t===void 0)&&t.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let o=(...l)=>u=>{l.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(u)},n=o("mouseup","contextmenu"),a=o("touchend","touchcancel"),i=l=>{["Enter"," "].includes(l.key)&&o("keyup")(l)},c={passive:!0};t.addEventListener("mouseover",this.startHover,c),t.addEventListener("mousemove",this.moveRipple,c),t.addEventListener("mouseleave",this.endHover,c),t.addEventListener("mousedown",n,c),t.addEventListener("touchstart",a,c),t.addEventListener("touchmove",this.moveRipple,c),t.addEventListener("keydown",i,c),t.addEventListener("focus",this.startFocus,c),t.addEventListener("blur",this.endFocus,c),t.addEventListener("focusin",this.startFocus,c),t.addEventListener("focusout",this.endFocus,c),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,c),t.removeEventListener("mousemove",this.moveRipple,c),t.removeEventListener("mouseleave",this.endHover,c),t.removeEventListener("mousedown",n,c),t.removeEventListener("touchstart",a,c),t.removeEventListener("touchmove",this.moveRipple,c),t.removeEventListener("keydown",i,c),t.removeEventListener("focus",this.startFocus,c),t.removeEventListener("blur",this.endFocus,c),t.removeEventListener("focusin",this.startFocus,c),t.removeEventListener("focusout",this.endFocus,c),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let o=t,n=t,a,i;return o.x!=null?{x:a,y:i}=o:n.touches!=null&&(a=n.touches[0].clientX,i=n.touches[0].clientY),{x:a,y:i}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};Y.elementDefinitions={};Y.styles=da;Oe([(0,ue.property)({type:Boolean})],Y.prototype,"primary",void 0);Oe([(0,ue.property)({type:Boolean})],Y.prototype,"secondary",void 0);Oe([(0,ue.property)({type:Boolean})],Y.prototype,"unbounded",void 0);Oe([(0,ue.property)({type:Boolean})],Y.prototype,"activated",void 0);Oe([(0,ue.property)({type:Boolean})],Y.prototype,"selected",void 0);Oe([(0,ue.property)({type:Boolean})],Y.prototype,"disabled",void 0);Oe([(0,ue.state)()],Y.prototype,"hovered",void 0);Oe([(0,ue.state)()],Y.prototype,"focused",void 0);Oe([(0,ue.state)()],Y.prototype,"pressed",void 0);Oe([(0,ue.state)()],Y.prototype,"rippling",void 0);Oe([(0,ue.state)()],Y.prototype,"originX",void 0);Oe([(0,ue.state)()],Y.prototype,"originY",void 0);Oe([(0,ue.query)(".ft-ripple")],Y.prototype,"ripple",void 0);Oe([(0,ue.query)(".ft-ripple--effect")],Y.prototype,"rippleEffect",void 0);(0,ci.customElement)("ft-ripple")(Y);var ts=S(P());var es=S(H()),Re=S(re()),Ee=S(P());var wi=S(P());var Vo=globalThis,Gr=Vo.trustedTypes,li=Gr?Gr.createPolicy("lit-html",{createHTML:e=>e}):void 0,yi="$lit$",st=`lit$${Math.random().toFixed(9).slice(2)}$`,mi="?"+st,Ol=`<${mi}>`,Ot=document,jr=()=>Ot.createComment(""),mr=e=>e===null||typeof e!="object"&&typeof e!="function",Zo=Array.isArray,Cl=e=>Zo(e)||typeof e?.[Symbol.iterator]=="function",Ho=`[
486
486
  \f\r]`,yr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,di=/-->/g,ui=/>/g,vt=RegExp(`>|${Ho}(?:([^\\s"'>=/]+)(${Ho}*=${Ho}*(?:[^
487
- \f\r"'\`<>=]|("|')|))|$)`,"g"),pi=/'/g,fi=/"/g,gi=/^(?:script|style|textarea|title)$/i,qo=e=>(t,...o)=>({_$litType$:e,strings:t,values:o}),bi=qo(1),xi=qo(2),vi=qo(3),gr=Symbol.for("lit-noChange"),J=Symbol.for("lit-nothing"),hi=new WeakMap,St=Ot.createTreeWalker(Ot,129);function Si(e,t){if(!Zo(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return li!==void 0?li.createHTML(t):t}var El=(e,t)=>{let o=e.length-1,n=[],a,i=t===2?"<svg>":t===3?"<math>":"",c=yr;for(let l=0;l<o;l++){let u=e[l],p,m,h=-1,g=0;for(;g<u.length&&(c.lastIndex=g,m=c.exec(u),m!==null);)g=c.lastIndex,c===yr?m[1]==="!--"?c=di:m[1]!==void 0?c=ui:m[2]!==void 0?(gi.test(m[2])&&(a=RegExp("</"+m[2],"g")),c=vt):m[3]!==void 0&&(c=vt):c===vt?m[0]===">"?(c=a??yr,h=-1):m[1]===void 0?h=-2:(h=c.lastIndex-m[2].length,p=m[1],c=m[3]===void 0?vt:m[3]==='"'?fi:pi):c===fi||c===pi?c=vt:c===di||c===ui?c=yr:(c=vt,a=void 0);let v=c===vt&&e[l+1].startsWith("/>")?" ":"";i+=c===yr?u+Ol:h>=0?(n.push(p),u.slice(0,h)+yi+u.slice(h)+st+v):u+st+(h===-2?l:v)}return[Si(e,i+(e[o]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},br=class e{constructor({strings:t,_$litType$:o},n){let a;this.parts=[];let i=0,c=0,l=t.length-1,u=this.parts,[p,m]=El(t,o);if(this.el=e.createElement(p,n),St.currentNode=this.el.content,o===2||o===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(a=St.nextNode())!==null&&u.length<l;){if(a.nodeType===1){if(a.hasAttributes())for(let h of a.getAttributeNames())if(h.endsWith(yi)){let g=m[c++],v=a.getAttribute(h).split(st),x=/([.?@])?(.*)/.exec(g);u.push({type:1,index:i,name:x[2],strings:v,ctor:x[1]==="."?zo:x[1]==="?"?Go:x[1]==="@"?jo:Vt}),a.removeAttribute(h)}else h.startsWith(st)&&(u.push({type:6,index:i}),a.removeAttribute(h));if(gi.test(a.tagName)){let h=a.textContent.split(st),g=h.length-1;if(g>0){a.textContent=Gr?Gr.emptyScript:"";for(let v=0;v<g;v++)a.append(h[v],jr()),St.nextNode(),u.push({type:2,index:++i});a.append(h[g],jr())}}}else if(a.nodeType===8)if(a.data===mi)u.push({type:2,index:i});else{let h=-1;for(;(h=a.data.indexOf(st,h+1))!==-1;)u.push({type:7,index:i}),h+=st.length-1}i++}}static createElement(t,o){let n=Ot.createElement("template");return n.innerHTML=t,n}};function Kt(e,t,o=e,n){if(t===gr)return t;let a=n!==void 0?o._$Co?.[n]:o._$Cl,i=mr(t)?void 0:t._$litDirective$;return a?.constructor!==i&&(a?._$AO?.(!1),i===void 0?a=void 0:(a=new i(e),a._$AT(e,o,n)),n!==void 0?(o._$Co??=[])[n]=a:o._$Cl=a),a!==void 0&&(t=Kt(e,a._$AS(e,t.values),a,n)),t}var Wo=class{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:o},parts:n}=this._$AD,a=(t?.creationScope??Ot).importNode(o,!0);St.currentNode=a;let i=St.nextNode(),c=0,l=0,u=n[0];for(;u!==void 0;){if(c===u.index){let p;u.type===2?p=new Kr(i,i.nextSibling,this,t):u.type===1?p=new u.ctor(i,u.name,u.strings,this,t):u.type===6&&(p=new Ko(i,this,t)),this._$AV.push(p),u=n[++l]}c!==u?.index&&(i=St.nextNode(),c++)}return St.currentNode=Ot,a}p(t){let o=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,o),o+=n.strings.length-2):n._$AI(t[o])),o++}},Kr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,o,n,a){this.type=2,this._$AH=J,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=n,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,o=this._$AM;return o!==void 0&&t?.nodeType===11&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=Kt(this,t,o),mr(t)?t===J||t==null||t===""?(this._$AH!==J&&this._$AR(),this._$AH=J):t!==this._$AH&&t!==gr&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Cl(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==J&&mr(this._$AH)?this._$AA.nextSibling.data=t:this.T(Ot.createTextNode(t)),this._$AH=t}$(t){let{values:o,_$litType$:n}=t,a=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=br.createElement(Si(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(o);else{let i=new Wo(a,this),c=i.u(this.options);i.p(o),this.T(c),this._$AH=i}}_$AC(t){let o=hi.get(t.strings);return o===void 0&&hi.set(t.strings,o=new br(t)),o}k(t){Zo(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,n,a=0;for(let i of t)a===o.length?o.push(n=new e(this.O(jr()),this.O(jr()),this,this.options)):n=o[a],n._$AI(i),a++;a<o.length&&(this._$AR(n&&n._$AB.nextSibling,a),o.length=a)}_$AR(t=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);t&&t!==this._$AB;){let n=t.nextSibling;t.remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Vt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,n,a,i){this.type=1,this._$AH=J,this._$AN=void 0,this.element=t,this.name=o,this._$AM=a,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=J}_$AI(t,o=this,n,a){let i=this.strings,c=!1;if(i===void 0)t=Kt(this,t,o,0),c=!mr(t)||t!==this._$AH&&t!==gr,c&&(this._$AH=t);else{let l=t,u,p;for(t=i[0],u=0;u<i.length-1;u++)p=Kt(this,l[n+u],o,u),p===gr&&(p=this._$AH[u]),c||=!mr(p)||p!==this._$AH[u],p===J?t=J:t!==J&&(t+=(p??"")+i[u+1]),this._$AH[u]=p}c&&!a&&this.j(t)}j(t){t===J?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},zo=class extends Vt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===J?void 0:t}},Go=class extends Vt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==J)}},jo=class extends Vt{constructor(t,o,n,a,i){super(t,o,n,a,i),this.type=5}_$AI(t,o=this){if((t=Kt(this,t,o,0)??J)===gr)return;let n=this._$AH,a=t===J&&n!==J||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,i=t!==J&&(n===J||a);a&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Ko=class{constructor(t,o,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Kt(this,t)}};var Al=Vo.litHtmlPolyfillSupport;Al?.(br,Kr),(Vo.litHtmlVersions??=[]).push("3.3.0");var Ci=Symbol.for(""),wl=e=>{if(e?.r===Ci)return e?._$litStatic$},Yo=e=>({_$litStatic$:e,r:Ci});var Oi=new Map,Xo=e=>(t,...o)=>{let n=o.length,a,i,c=[],l=[],u,p=0,m=!1;for(;p<n;){for(u=t[p];p<n&&(i=o[p],(a=wl(i))!==void 0);)u+=a+t[++p],m=!0;p!==n&&l.push(i),c.push(u),p++}if(p===n&&c.push(t[n]),m){let h=c.join("$$lit$$");(t=Oi.get(h))===void 0&&(c.raw=c,Oi.set(h,t=c)),o=l}return e(t,...o)},Jo=Xo(bi),ky=Xo(xi),Dy=Xo(vi);var Qo=S(te()),Ai=S(P());var ye;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button",e.display="display",e.title1="title-1",e.title2="title-2",e.title3="title-3",e.body1regular="body-1-regular",e.body1medium="body-1-medium",e.body1semibold="body-1-semibold",e.body2regular="body-2-regular",e.body2medium="body-2-medium",e.body2semibold="body-2-semibold",e.label1medium="label-1-medium",e.label1semibold="label-1-semibold",e.label1bold="label-1-bold",e.label2medium="label-2-medium",e.label2semibold="label-2-semibold",e.label2bold="label-2-bold",e.caption1medium="caption-1-medium",e.caption1semibold="caption-1-semibold",e.caption1bold="caption-1-bold",e.caption2medium="caption-2-medium",e.caption2semibold="caption-2-semibold",e.caption2bold="caption-2-bold"})(ye||(ye={}));var Ei=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},pe=class extends Ai.FtLitElement{constructor(){super(...arguments),this.variant=ye.body1}render(){return this.element?Jo`
487
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),pi=/'/g,fi=/"/g,gi=/^(?:script|style|textarea|title)$/i,qo=e=>(t,...o)=>({_$litType$:e,strings:t,values:o}),bi=qo(1),xi=qo(2),vi=qo(3),gr=Symbol.for("lit-noChange"),J=Symbol.for("lit-nothing"),hi=new WeakMap,St=Ot.createTreeWalker(Ot,129);function Si(e,t){if(!Zo(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return li!==void 0?li.createHTML(t):t}var El=(e,t)=>{let o=e.length-1,n=[],a,i=t===2?"<svg>":t===3?"<math>":"",c=yr;for(let l=0;l<o;l++){let u=e[l],p,m,h=-1,g=0;for(;g<u.length&&(c.lastIndex=g,m=c.exec(u),m!==null);)g=c.lastIndex,c===yr?m[1]==="!--"?c=di:m[1]!==void 0?c=ui:m[2]!==void 0?(gi.test(m[2])&&(a=RegExp("</"+m[2],"g")),c=vt):m[3]!==void 0&&(c=vt):c===vt?m[0]===">"?(c=a??yr,h=-1):m[1]===void 0?h=-2:(h=c.lastIndex-m[2].length,p=m[1],c=m[3]===void 0?vt:m[3]==='"'?fi:pi):c===fi||c===pi?c=vt:c===di||c===ui?c=yr:(c=vt,a=void 0);let v=c===vt&&e[l+1].startsWith("/>")?" ":"";i+=c===yr?u+Ol:h>=0?(n.push(p),u.slice(0,h)+yi+u.slice(h)+st+v):u+st+(h===-2?l:v)}return[Si(e,i+(e[o]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},br=class e{constructor({strings:t,_$litType$:o},n){let a;this.parts=[];let i=0,c=0,l=t.length-1,u=this.parts,[p,m]=El(t,o);if(this.el=e.createElement(p,n),St.currentNode=this.el.content,o===2||o===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(a=St.nextNode())!==null&&u.length<l;){if(a.nodeType===1){if(a.hasAttributes())for(let h of a.getAttributeNames())if(h.endsWith(yi)){let g=m[c++],v=a.getAttribute(h).split(st),x=/([.?@])?(.*)/.exec(g);u.push({type:1,index:i,name:x[2],strings:v,ctor:x[1]==="."?zo:x[1]==="?"?Go:x[1]==="@"?jo:Vt}),a.removeAttribute(h)}else h.startsWith(st)&&(u.push({type:6,index:i}),a.removeAttribute(h));if(gi.test(a.tagName)){let h=a.textContent.split(st),g=h.length-1;if(g>0){a.textContent=Gr?Gr.emptyScript:"";for(let v=0;v<g;v++)a.append(h[v],jr()),St.nextNode(),u.push({type:2,index:++i});a.append(h[g],jr())}}}else if(a.nodeType===8)if(a.data===mi)u.push({type:2,index:i});else{let h=-1;for(;(h=a.data.indexOf(st,h+1))!==-1;)u.push({type:7,index:i}),h+=st.length-1}i++}}static createElement(t,o){let n=Ot.createElement("template");return n.innerHTML=t,n}};function Kt(e,t,o=e,n){if(t===gr)return t;let a=n!==void 0?o._$Co?.[n]:o._$Cl,i=mr(t)?void 0:t._$litDirective$;return a?.constructor!==i&&(a?._$AO?.(!1),i===void 0?a=void 0:(a=new i(e),a._$AT(e,o,n)),n!==void 0?(o._$Co??=[])[n]=a:o._$Cl=a),a!==void 0&&(t=Kt(e,a._$AS(e,t.values),a,n)),t}var Wo=class{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:o},parts:n}=this._$AD,a=(t?.creationScope??Ot).importNode(o,!0);St.currentNode=a;let i=St.nextNode(),c=0,l=0,u=n[0];for(;u!==void 0;){if(c===u.index){let p;u.type===2?p=new Kr(i,i.nextSibling,this,t):u.type===1?p=new u.ctor(i,u.name,u.strings,this,t):u.type===6&&(p=new Ko(i,this,t)),this._$AV.push(p),u=n[++l]}c!==u?.index&&(i=St.nextNode(),c++)}return St.currentNode=Ot,a}p(t){let o=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,o),o+=n.strings.length-2):n._$AI(t[o])),o++}},Kr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,o,n,a){this.type=2,this._$AH=J,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=n,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,o=this._$AM;return o!==void 0&&t?.nodeType===11&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=Kt(this,t,o),mr(t)?t===J||t==null||t===""?(this._$AH!==J&&this._$AR(),this._$AH=J):t!==this._$AH&&t!==gr&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Cl(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==J&&mr(this._$AH)?this._$AA.nextSibling.data=t:this.T(Ot.createTextNode(t)),this._$AH=t}$(t){let{values:o,_$litType$:n}=t,a=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=br.createElement(Si(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(o);else{let i=new Wo(a,this),c=i.u(this.options);i.p(o),this.T(c),this._$AH=i}}_$AC(t){let o=hi.get(t.strings);return o===void 0&&hi.set(t.strings,o=new br(t)),o}k(t){Zo(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,n,a=0;for(let i of t)a===o.length?o.push(n=new e(this.O(jr()),this.O(jr()),this,this.options)):n=o[a],n._$AI(i),a++;a<o.length&&(this._$AR(n&&n._$AB.nextSibling,a),o.length=a)}_$AR(t=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);t&&t!==this._$AB;){let n=t.nextSibling;t.remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Vt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,n,a,i){this.type=1,this._$AH=J,this._$AN=void 0,this.element=t,this.name=o,this._$AM=a,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=J}_$AI(t,o=this,n,a){let i=this.strings,c=!1;if(i===void 0)t=Kt(this,t,o,0),c=!mr(t)||t!==this._$AH&&t!==gr,c&&(this._$AH=t);else{let l=t,u,p;for(t=i[0],u=0;u<i.length-1;u++)p=Kt(this,l[n+u],o,u),p===gr&&(p=this._$AH[u]),c||=!mr(p)||p!==this._$AH[u],p===J?t=J:t!==J&&(t+=(p??"")+i[u+1]),this._$AH[u]=p}c&&!a&&this.j(t)}j(t){t===J?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},zo=class extends Vt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===J?void 0:t}},Go=class extends Vt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==J)}},jo=class extends Vt{constructor(t,o,n,a,i){super(t,o,n,a,i),this.type=5}_$AI(t,o=this){if((t=Kt(this,t,o,0)??J)===gr)return;let n=this._$AH,a=t===J&&n!==J||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,i=t!==J&&(n===J||a);a&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Ko=class{constructor(t,o,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Kt(this,t)}};var Al=Vo.litHtmlPolyfillSupport;Al?.(br,Kr),(Vo.litHtmlVersions??=[]).push("3.3.0");var Ci=Symbol.for(""),wl=e=>{if(e?.r===Ci)return e?._$litStatic$},Yo=e=>({_$litStatic$:e,r:Ci});var Oi=new Map,Xo=e=>(t,...o)=>{let n=o.length,a,i,c=[],l=[],u,p=0,m=!1;for(;p<n;){for(u=t[p];p<n&&(i=o[p],(a=wl(i))!==void 0);)u+=a+t[++p],m=!0;p!==n&&l.push(i),c.push(u),p++}if(p===n&&c.push(t[n]),m){let h=c.join("$$lit$$");(t=Oi.get(h))===void 0&&(c.raw=c,Oi.set(h,t=c)),o=l}return e(t,...o)},Jo=Xo(bi),ky=Xo(xi),Dy=Xo(vi);var Qo=S(re()),Ai=S(P());var ye;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button",e.display="display",e.title1="title-1",e.title2="title-2",e.title3="title-3",e.body1regular="body-1-regular",e.body1medium="body-1-medium",e.body1semibold="body-1-semibold",e.body2regular="body-2-regular",e.body2medium="body-2-medium",e.body2semibold="body-2-semibold",e.label1medium="label-1-medium",e.label1semibold="label-1-semibold",e.label1bold="label-1-bold",e.label2medium="label-2-medium",e.label2semibold="label-2-semibold",e.label2bold="label-2-bold",e.caption1medium="caption-1-medium",e.caption1semibold="caption-1-semibold",e.caption1bold="caption-1-bold",e.caption2medium="caption-2-medium",e.caption2semibold="caption-2-semibold",e.caption2bold="caption-2-bold"})(ye||(ye={}));var Ei=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},pe=class extends Ai.FtLitElement{constructor(){super(...arguments),this.variant=ye.body1}render(){return this.element?Jo`
488
488
  <${Yo(this.element)}
489
489
  part="text"
490
490
  class="ft-typography ft-typography--${this.variant}">
@@ -521,7 +521,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
521
521
  position: relative;
522
522
  word-break: break-word;
523
523
  }
524
- `;var Li=["top","right","bottom","left"],Ni=["start","end"],tn=Li.reduce((e,t)=>e.concat(t,t+"-"+Ni[0],t+"-"+Ni[1]),[]),Ii=Math.min,_i=Math.max;var Rl={left:"right",right:"left",bottom:"top",top:"bottom"},Tl={start:"end",end:"start"};function rn(e,t,o){return _i(e,Ii(t,o))}function Vr(e,t){return typeof e=="function"?e(t):e}function qt(e){return e.split("-")[0]}function ct(e){return e.split("-")[1]}function on(e){return e==="x"?"y":"x"}function nn(e){return e==="y"?"height":"width"}function Zr(e){return["top","bottom"].includes(qt(e))?"y":"x"}function an(e){return on(Zr(e))}function Pi(e,t,o){o===void 0&&(o=!1);let n=ct(e),a=an(e),i=nn(a),c=a==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(c=en(c)),[c,en(c)]}function ki(e){return e.replace(/start|end/g,t=>Tl[t])}function en(e){return e.replace(/left|right|bottom|top/g,t=>Rl[t])}function Nl(e){return{top:0,right:0,bottom:0,left:0,...e}}function Di(e){return typeof e!="number"?Nl(e):{top:e,right:e,bottom:e,left:e}}function Ct(e){let{x:t,y:o,width:n,height:a}=e;return{width:n,height:a,top:o,left:t,right:t+n,bottom:o+a,x:t,y:o}}function Bi(e,t,o){let{reference:n,floating:a}=e,i=Zr(t),c=an(t),l=nn(c),u=qt(t),p=i==="y",m=n.x+n.width/2-a.width/2,h=n.y+n.height/2-a.height/2,g=n[l]/2-a[l]/2,v;switch(u){case"top":v={x:m,y:n.y-a.height};break;case"bottom":v={x:m,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y:h};break;case"left":v={x:n.x-a.width,y:h};break;default:v={x:n.x,y:n.y}}switch(ct(t)){case"start":v[c]-=g*(o&&p?-1:1);break;case"end":v[c]+=g*(o&&p?-1:1);break}return v}var Mi=async(e,t,o)=>{let{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:c}=o,l=i.filter(Boolean),u=await(c.isRTL==null?void 0:c.isRTL(t)),p=await c.getElementRects({reference:e,floating:t,strategy:a}),{x:m,y:h}=Bi(p,n,u),g=n,v={},x=0;for(let C=0;C<l.length;C++){let{name:L,fn:R}=l[C],{x:T,y:k,data:B,reset:M}=await R({x:m,y:h,initialPlacement:n,placement:g,strategy:a,middlewareData:v,rects:p,platform:c,elements:{reference:e,floating:t}});m=T??m,h=k??h,v={...v,[L]:{...v[L],...B}},M&&x<=50&&(x++,typeof M=="object"&&(M.placement&&(g=M.placement),M.rects&&(p=M.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:a}):M.rects),{x:m,y:h}=Bi(p,g,u)),C=-1)}return{x:m,y:h,placement:g,strategy:a,middlewareData:v}};async function sn(e,t){var o;t===void 0&&(t={});let{x:n,y:a,platform:i,rects:c,elements:l,strategy:u}=e,{boundary:p="clippingAncestors",rootBoundary:m="viewport",elementContext:h="floating",altBoundary:g=!1,padding:v=0}=Vr(t,e),x=Di(v),L=l[g?h==="floating"?"reference":"floating":h],R=Ct(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(L)))==null||o?L:L.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:p,rootBoundary:m,strategy:u})),T=h==="floating"?{x:n,y:a,width:c.floating.width,height:c.floating.height}:c.reference,k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),B=await(i.isElement==null?void 0:i.isElement(k))?await(i.getScale==null?void 0:i.getScale(k))||{x:1,y:1}:{x:1,y:1},M=Ct(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:T,offsetParent:k,strategy:u}):T);return{top:(R.top-M.top+x.top)/B.y,bottom:(M.bottom-R.bottom+x.bottom)/B.y,left:(R.left-M.left+x.left)/B.x,right:(M.right-R.right+x.right)/B.x}}function Ll(e,t,o){return(e?[...o.filter(a=>ct(a)===e),...o.filter(a=>ct(a)!==e)]:o.filter(a=>qt(a)===a)).filter(a=>e?ct(a)===e||(t?ki(a)!==a:!1):!0)}var cn=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var o,n,a;let{rects:i,middlewareData:c,placement:l,platform:u,elements:p}=t,{crossAxis:m=!1,alignment:h,allowedPlacements:g=tn,autoAlignment:v=!0,...x}=Vr(e,t),C=h!==void 0||g===tn?Ll(h||null,v,g):g,L=await sn(t,x),R=((o=c.autoPlacement)==null?void 0:o.index)||0,T=C[R];if(T==null)return{};let k=Pi(T,i,await(u.isRTL==null?void 0:u.isRTL(p.floating)));if(l!==T)return{reset:{placement:C[0]}};let B=[L[qt(T)],L[k[0]],L[k[1]]],M=[...((n=c.autoPlacement)==null?void 0:n.overflows)||[],{placement:T,overflows:B}],Se=C[R+1];if(Se)return{data:{index:R+1,overflows:M},reset:{placement:Se}};let Ge=M.map(ce=>{let y=ct(ce.placement);return[ce.placement,y&&m?ce.overflows.slice(0,2).reduce((b,_)=>b+_,0):ce.overflows[0],ce.overflows]}).sort((ce,y)=>ce[1]-y[1]),je=((a=Ge.filter(ce=>ce[2].slice(0,ct(ce[0])?2:3).every(y=>y<=0))[0])==null?void 0:a[0])||Ge[0][0];return je!==l?{data:{index:R+1,overflows:M},reset:{placement:je}}:{}}}};var ln=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:n,placement:a}=t,{mainAxis:i=!0,crossAxis:c=!1,limiter:l={fn:L=>{let{x:R,y:T}=L;return{x:R,y:T}}},...u}=Vr(e,t),p={x:o,y:n},m=await sn(t,u),h=Zr(qt(a)),g=on(h),v=p[g],x=p[h];if(i){let L=g==="y"?"top":"left",R=g==="y"?"bottom":"right",T=v+m[L],k=v-m[R];v=rn(T,v,k)}if(c){let L=h==="y"?"top":"left",R=h==="y"?"bottom":"right",T=x+m[L],k=x-m[R];x=rn(T,x,k)}let C=l.fn({...t,[g]:v,[h]:x});return{...C,data:{x:C.x-o,y:C.y-n,enabled:{[g]:i,[h]:c}}}}}};var dn=Math.min,Yt=Math.max,xr=Math.round;var et=e=>({x:e,y:e});function tt(e){return $i(e)?(e.nodeName||"").toLowerCase():"#document"}function Ce(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function rt(e){var t;return(t=($i(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function $i(e){return e instanceof Node||e instanceof Ce(e).Node}function Ze(e){return e instanceof Element||e instanceof Ce(e).Element}function Be(e){return e instanceof HTMLElement||e instanceof Ce(e).HTMLElement}function Ui(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ce(e).ShadowRoot}function Xt(e){let{overflow:t,overflowX:o,overflowY:n,display:a}=we(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&!["inline","contents"].includes(a)}function Fi(e){return["table","td","th"].includes(tt(e))}function Yr(e){let t=Xr(),o=we(e);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!t&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!t&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(o.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(o.contain||"").includes(n))}function Hi(e){let t=Et(e);for(;Be(t)&&!vr(t);){if(Yr(t))return t;t=Et(t)}return null}function Xr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function vr(e){return["html","body","#document"].includes(tt(e))}function we(e){return Ce(e).getComputedStyle(e)}function Sr(e){return Ze(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Et(e){if(tt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Ui(e)&&e.host||rt(e);return Ui(t)?t.host:t}function Wi(e){let t=Et(e);return vr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Be(t)&&Xt(t)?t:Wi(t)}function qr(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);let a=Wi(e),i=a===((n=e.ownerDocument)==null?void 0:n.body),c=Ce(a);return i?t.concat(c,c.visualViewport||[],Xt(a)?a:[],c.frameElement&&o?qr(c.frameElement):[]):t.concat(a,qr(a,[],o))}function ji(e){let t=we(e),o=parseFloat(t.width)||0,n=parseFloat(t.height)||0,a=Be(e),i=a?e.offsetWidth:o,c=a?e.offsetHeight:n,l=xr(o)!==i||xr(n)!==c;return l&&(o=i,n=c),{width:o,height:n,$:l}}function Ki(e){return Ze(e)?e:e.contextElement}function Jt(e){let t=Ki(e);if(!Be(t))return et(1);let o=t.getBoundingClientRect(),{width:n,height:a,$:i}=ji(t),c=(i?xr(o.width):o.width)/n,l=(i?xr(o.height):o.height)/a;return(!c||!Number.isFinite(c))&&(c=1),(!l||!Number.isFinite(l))&&(l=1),{x:c,y:l}}var Pl=et(0);function Vi(e){let t=Ce(e);return!Xr()||!t.visualViewport?Pl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function kl(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==Ce(e)?!1:t}function Or(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);let a=e.getBoundingClientRect(),i=Ki(e),c=et(1);t&&(n?Ze(n)&&(c=Jt(n)):c=Jt(e));let l=kl(i,o,n)?Vi(i):et(0),u=(a.left+l.x)/c.x,p=(a.top+l.y)/c.y,m=a.width/c.x,h=a.height/c.y;if(i){let g=Ce(i),v=n&&Ze(n)?Ce(n):n,x=g.frameElement;for(;x&&n&&v!==g;){let C=Jt(x),L=x.getBoundingClientRect(),R=we(x),T=L.left+(x.clientLeft+parseFloat(R.paddingLeft))*C.x,k=L.top+(x.clientTop+parseFloat(R.paddingTop))*C.y;u*=C.x,p*=C.y,m*=C.x,h*=C.y,u+=T,p+=k,x=Ce(x).frameElement}}return Ct({width:m,height:h,x:u,y:p})}function Dl(e){let{rect:t,offsetParent:o,strategy:n}=e,a=Be(o),i=rt(o);if(o===i)return t;let c={scrollLeft:0,scrollTop:0},l=et(1),u=et(0);if((a||!a&&n!=="fixed")&&((tt(o)!=="body"||Xt(i))&&(c=Sr(o)),Be(o))){let p=Or(o);l=Jt(o),u.x=p.x+o.clientLeft,u.y=p.y+o.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-c.scrollLeft*l.x+u.x,y:t.y*l.y-c.scrollTop*l.y+u.y}}function Bl(e){return Array.from(e.getClientRects())}function Zi(e){return Or(rt(e)).left+Sr(e).scrollLeft}function Ml(e){let t=rt(e),o=Sr(e),n=e.ownerDocument.body,a=Yt(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Yt(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),c=-o.scrollLeft+Zi(e),l=-o.scrollTop;return we(n).direction==="rtl"&&(c+=Yt(t.clientWidth,n.clientWidth)-a),{width:a,height:i,x:c,y:l}}function Ul(e,t){let o=Ce(e),n=rt(e),a=o.visualViewport,i=n.clientWidth,c=n.clientHeight,l=0,u=0;if(a){i=a.width,c=a.height;let p=Xr();(!p||p&&t==="fixed")&&(l=a.offsetLeft,u=a.offsetTop)}return{width:i,height:c,x:l,y:u}}function $l(e,t){let o=Or(e,!0,t==="fixed"),n=o.top+e.clientTop,a=o.left+e.clientLeft,i=Be(e)?Jt(e):et(1),c=e.clientWidth*i.x,l=e.clientHeight*i.y,u=a*i.x,p=n*i.y;return{width:c,height:l,x:u,y:p}}function zi(e,t,o){let n;if(t==="viewport")n=Ul(e,o);else if(t==="document")n=Ml(rt(e));else if(Ze(t))n=$l(t,o);else{let a=Vi(e);n={...t,x:t.x-a.x,y:t.y-a.y}}return Ct(n)}function qi(e,t){let o=Et(e);return o===t||!Ze(o)||vr(o)?!1:we(o).position==="fixed"||qi(o,t)}function Fl(e,t){let o=t.get(e);if(o)return o;let n=qr(e,[],!1).filter(l=>Ze(l)&&tt(l)!=="body"),a=null,i=we(e).position==="fixed",c=i?Et(e):e;for(;Ze(c)&&!vr(c);){let l=we(c),u=Yr(c);!u&&l.position==="fixed"&&(a=null),(i?!u&&!a:!u&&l.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Xt(c)&&!u&&qi(e,c))?n=n.filter(m=>m!==c):a=l,c=Et(c)}return t.set(e,n),n}function Hl(e){let{element:t,boundary:o,rootBoundary:n,strategy:a}=e,c=[...o==="clippingAncestors"?Fl(t,this._c):[].concat(o),n],l=c[0],u=c.reduce((p,m)=>{let h=zi(t,m,a);return p.top=Yt(h.top,p.top),p.right=dn(h.right,p.right),p.bottom=dn(h.bottom,p.bottom),p.left=Yt(h.left,p.left),p},zi(t,l,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Wl(e){return ji(e)}function zl(e,t,o){let n=Be(t),a=rt(t),i=o==="fixed",c=Or(e,!0,i,t),l={scrollLeft:0,scrollTop:0},u=et(0);if(n||!n&&!i)if((tt(t)!=="body"||Xt(a))&&(l=Sr(t)),n){let p=Or(t,!0,i,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else a&&(u.x=Zi(a));return{x:c.left+l.scrollLeft-u.x,y:c.top+l.scrollTop-u.y,width:c.width,height:c.height}}function Gi(e,t){return!Be(e)||we(e).position==="fixed"?null:t?t(e):e.offsetParent}function Yi(e,t){let o=Ce(e);if(!Be(e))return o;let n=Gi(e,t);for(;n&&Fi(n)&&we(n).position==="static";)n=Gi(n,t);return n&&(tt(n)==="html"||tt(n)==="body"&&we(n).position==="static"&&!Yr(n))?o:n||Hi(e)||o}var Gl=async function(e){let{reference:t,floating:o,strategy:n}=e,a=this.getOffsetParent||Yi,i=this.getDimensions;return{reference:zl(t,await a(o),n),floating:{x:0,y:0,...await i(o)}}};function jl(e){return we(e).direction==="rtl"}var Jr={convertOffsetParentRelativeRectToViewportRelativeRect:Dl,getDocumentElement:rt,getClippingRect:Hl,getOffsetParent:Yi,getElementRects:Gl,getClientRects:Bl,getDimensions:Wl,getScale:Jt,isElement:Ze,isRTL:jl};var Xi=(e,t,o)=>{let n=new Map,a={platform:Jr,...o},i={...a.platform,_c:n};return Mi(e,t,{...a,platform:i})};function Ji(e){return Kl(e)}function un(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Kl(e){for(let t=e;t;t=un(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=un(e);t;t=un(t)){if(!(t instanceof Element))continue;let o=getComputedStyle(t);if(o.display!=="contents"&&(o.position!=="static"||o.filter!=="none"||t.tagName==="BODY"))return t}return null}async function Qi(e,t,o){return Xi(e,t,{platform:{...Jr,getOffsetParent:n=>Jr.getOffsetParent(n,Ji)},middleware:[ln({crossAxis:!0}),cn({allowedPlacements:[o]})]})}var Me=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},re=class extends Ee.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 Ee.Debouncer,this.revealDebouncer=new Ee.Debouncer,this.onTouch=t=>{this.isIgnored(t)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",o=>{o.composedPath().includes(this.container)||this.onOut(o)},{once:!0}),100))},this.onHover=t=>{this.isIgnored(t)||this.show()},this.onFocusIn=t=>{!this.isIgnored(t)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=t=>{this.isIgnored(t)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=t=>{this.isIgnored(t)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return es.html`
524
+ `;var Li=["top","right","bottom","left"],Ni=["start","end"],tn=Li.reduce((e,t)=>e.concat(t,t+"-"+Ni[0],t+"-"+Ni[1]),[]),Ii=Math.min,_i=Math.max;var Rl={left:"right",right:"left",bottom:"top",top:"bottom"},Tl={start:"end",end:"start"};function rn(e,t,o){return _i(e,Ii(t,o))}function Vr(e,t){return typeof e=="function"?e(t):e}function qt(e){return e.split("-")[0]}function ct(e){return e.split("-")[1]}function on(e){return e==="x"?"y":"x"}function nn(e){return e==="y"?"height":"width"}function Zr(e){return["top","bottom"].includes(qt(e))?"y":"x"}function an(e){return on(Zr(e))}function Pi(e,t,o){o===void 0&&(o=!1);let n=ct(e),a=an(e),i=nn(a),c=a==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(c=en(c)),[c,en(c)]}function ki(e){return e.replace(/start|end/g,t=>Tl[t])}function en(e){return e.replace(/left|right|bottom|top/g,t=>Rl[t])}function Nl(e){return{top:0,right:0,bottom:0,left:0,...e}}function Di(e){return typeof e!="number"?Nl(e):{top:e,right:e,bottom:e,left:e}}function Ct(e){let{x:t,y:o,width:n,height:a}=e;return{width:n,height:a,top:o,left:t,right:t+n,bottom:o+a,x:t,y:o}}function Bi(e,t,o){let{reference:n,floating:a}=e,i=Zr(t),c=an(t),l=nn(c),u=qt(t),p=i==="y",m=n.x+n.width/2-a.width/2,h=n.y+n.height/2-a.height/2,g=n[l]/2-a[l]/2,v;switch(u){case"top":v={x:m,y:n.y-a.height};break;case"bottom":v={x:m,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y:h};break;case"left":v={x:n.x-a.width,y:h};break;default:v={x:n.x,y:n.y}}switch(ct(t)){case"start":v[c]-=g*(o&&p?-1:1);break;case"end":v[c]+=g*(o&&p?-1:1);break}return v}var Mi=async(e,t,o)=>{let{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:c}=o,l=i.filter(Boolean),u=await(c.isRTL==null?void 0:c.isRTL(t)),p=await c.getElementRects({reference:e,floating:t,strategy:a}),{x:m,y:h}=Bi(p,n,u),g=n,v={},x=0;for(let C=0;C<l.length;C++){let{name:L,fn:R}=l[C],{x:T,y:k,data:B,reset:M}=await R({x:m,y:h,initialPlacement:n,placement:g,strategy:a,middlewareData:v,rects:p,platform:c,elements:{reference:e,floating:t}});m=T??m,h=k??h,v={...v,[L]:{...v[L],...B}},M&&x<=50&&(x++,typeof M=="object"&&(M.placement&&(g=M.placement),M.rects&&(p=M.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:a}):M.rects),{x:m,y:h}=Bi(p,g,u)),C=-1)}return{x:m,y:h,placement:g,strategy:a,middlewareData:v}};async function sn(e,t){var o;t===void 0&&(t={});let{x:n,y:a,platform:i,rects:c,elements:l,strategy:u}=e,{boundary:p="clippingAncestors",rootBoundary:m="viewport",elementContext:h="floating",altBoundary:g=!1,padding:v=0}=Vr(t,e),x=Di(v),L=l[g?h==="floating"?"reference":"floating":h],R=Ct(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(L)))==null||o?L:L.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:p,rootBoundary:m,strategy:u})),T=h==="floating"?{x:n,y:a,width:c.floating.width,height:c.floating.height}:c.reference,k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),B=await(i.isElement==null?void 0:i.isElement(k))?await(i.getScale==null?void 0:i.getScale(k))||{x:1,y:1}:{x:1,y:1},M=Ct(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:T,offsetParent:k,strategy:u}):T);return{top:(R.top-M.top+x.top)/B.y,bottom:(M.bottom-R.bottom+x.bottom)/B.y,left:(R.left-M.left+x.left)/B.x,right:(M.right-R.right+x.right)/B.x}}function Ll(e,t,o){return(e?[...o.filter(a=>ct(a)===e),...o.filter(a=>ct(a)!==e)]:o.filter(a=>qt(a)===a)).filter(a=>e?ct(a)===e||(t?ki(a)!==a:!1):!0)}var cn=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var o,n,a;let{rects:i,middlewareData:c,placement:l,platform:u,elements:p}=t,{crossAxis:m=!1,alignment:h,allowedPlacements:g=tn,autoAlignment:v=!0,...x}=Vr(e,t),C=h!==void 0||g===tn?Ll(h||null,v,g):g,L=await sn(t,x),R=((o=c.autoPlacement)==null?void 0:o.index)||0,T=C[R];if(T==null)return{};let k=Pi(T,i,await(u.isRTL==null?void 0:u.isRTL(p.floating)));if(l!==T)return{reset:{placement:C[0]}};let B=[L[qt(T)],L[k[0]],L[k[1]]],M=[...((n=c.autoPlacement)==null?void 0:n.overflows)||[],{placement:T,overflows:B}],Se=C[R+1];if(Se)return{data:{index:R+1,overflows:M},reset:{placement:Se}};let Ge=M.map(ce=>{let y=ct(ce.placement);return[ce.placement,y&&m?ce.overflows.slice(0,2).reduce((b,_)=>b+_,0):ce.overflows[0],ce.overflows]}).sort((ce,y)=>ce[1]-y[1]),je=((a=Ge.filter(ce=>ce[2].slice(0,ct(ce[0])?2:3).every(y=>y<=0))[0])==null?void 0:a[0])||Ge[0][0];return je!==l?{data:{index:R+1,overflows:M},reset:{placement:je}}:{}}}};var ln=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:n,placement:a}=t,{mainAxis:i=!0,crossAxis:c=!1,limiter:l={fn:L=>{let{x:R,y:T}=L;return{x:R,y:T}}},...u}=Vr(e,t),p={x:o,y:n},m=await sn(t,u),h=Zr(qt(a)),g=on(h),v=p[g],x=p[h];if(i){let L=g==="y"?"top":"left",R=g==="y"?"bottom":"right",T=v+m[L],k=v-m[R];v=rn(T,v,k)}if(c){let L=h==="y"?"top":"left",R=h==="y"?"bottom":"right",T=x+m[L],k=x-m[R];x=rn(T,x,k)}let C=l.fn({...t,[g]:v,[h]:x});return{...C,data:{x:C.x-o,y:C.y-n,enabled:{[g]:i,[h]:c}}}}}};var dn=Math.min,Yt=Math.max,xr=Math.round;var et=e=>({x:e,y:e});function tt(e){return $i(e)?(e.nodeName||"").toLowerCase():"#document"}function Ce(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function rt(e){var t;return(t=($i(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function $i(e){return e instanceof Node||e instanceof Ce(e).Node}function Ze(e){return e instanceof Element||e instanceof Ce(e).Element}function Be(e){return e instanceof HTMLElement||e instanceof Ce(e).HTMLElement}function Ui(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ce(e).ShadowRoot}function Xt(e){let{overflow:t,overflowX:o,overflowY:n,display:a}=we(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&!["inline","contents"].includes(a)}function Fi(e){return["table","td","th"].includes(tt(e))}function Yr(e){let t=Xr(),o=we(e);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!t&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!t&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(o.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(o.contain||"").includes(n))}function Hi(e){let t=Et(e);for(;Be(t)&&!vr(t);){if(Yr(t))return t;t=Et(t)}return null}function Xr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function vr(e){return["html","body","#document"].includes(tt(e))}function we(e){return Ce(e).getComputedStyle(e)}function Sr(e){return Ze(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Et(e){if(tt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Ui(e)&&e.host||rt(e);return Ui(t)?t.host:t}function Wi(e){let t=Et(e);return vr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Be(t)&&Xt(t)?t:Wi(t)}function qr(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);let a=Wi(e),i=a===((n=e.ownerDocument)==null?void 0:n.body),c=Ce(a);return i?t.concat(c,c.visualViewport||[],Xt(a)?a:[],c.frameElement&&o?qr(c.frameElement):[]):t.concat(a,qr(a,[],o))}function ji(e){let t=we(e),o=parseFloat(t.width)||0,n=parseFloat(t.height)||0,a=Be(e),i=a?e.offsetWidth:o,c=a?e.offsetHeight:n,l=xr(o)!==i||xr(n)!==c;return l&&(o=i,n=c),{width:o,height:n,$:l}}function Ki(e){return Ze(e)?e:e.contextElement}function Jt(e){let t=Ki(e);if(!Be(t))return et(1);let o=t.getBoundingClientRect(),{width:n,height:a,$:i}=ji(t),c=(i?xr(o.width):o.width)/n,l=(i?xr(o.height):o.height)/a;return(!c||!Number.isFinite(c))&&(c=1),(!l||!Number.isFinite(l))&&(l=1),{x:c,y:l}}var Pl=et(0);function Vi(e){let t=Ce(e);return!Xr()||!t.visualViewport?Pl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function kl(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==Ce(e)?!1:t}function Or(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);let a=e.getBoundingClientRect(),i=Ki(e),c=et(1);t&&(n?Ze(n)&&(c=Jt(n)):c=Jt(e));let l=kl(i,o,n)?Vi(i):et(0),u=(a.left+l.x)/c.x,p=(a.top+l.y)/c.y,m=a.width/c.x,h=a.height/c.y;if(i){let g=Ce(i),v=n&&Ze(n)?Ce(n):n,x=g.frameElement;for(;x&&n&&v!==g;){let C=Jt(x),L=x.getBoundingClientRect(),R=we(x),T=L.left+(x.clientLeft+parseFloat(R.paddingLeft))*C.x,k=L.top+(x.clientTop+parseFloat(R.paddingTop))*C.y;u*=C.x,p*=C.y,m*=C.x,h*=C.y,u+=T,p+=k,x=Ce(x).frameElement}}return Ct({width:m,height:h,x:u,y:p})}function Dl(e){let{rect:t,offsetParent:o,strategy:n}=e,a=Be(o),i=rt(o);if(o===i)return t;let c={scrollLeft:0,scrollTop:0},l=et(1),u=et(0);if((a||!a&&n!=="fixed")&&((tt(o)!=="body"||Xt(i))&&(c=Sr(o)),Be(o))){let p=Or(o);l=Jt(o),u.x=p.x+o.clientLeft,u.y=p.y+o.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-c.scrollLeft*l.x+u.x,y:t.y*l.y-c.scrollTop*l.y+u.y}}function Bl(e){return Array.from(e.getClientRects())}function Zi(e){return Or(rt(e)).left+Sr(e).scrollLeft}function Ml(e){let t=rt(e),o=Sr(e),n=e.ownerDocument.body,a=Yt(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Yt(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),c=-o.scrollLeft+Zi(e),l=-o.scrollTop;return we(n).direction==="rtl"&&(c+=Yt(t.clientWidth,n.clientWidth)-a),{width:a,height:i,x:c,y:l}}function Ul(e,t){let o=Ce(e),n=rt(e),a=o.visualViewport,i=n.clientWidth,c=n.clientHeight,l=0,u=0;if(a){i=a.width,c=a.height;let p=Xr();(!p||p&&t==="fixed")&&(l=a.offsetLeft,u=a.offsetTop)}return{width:i,height:c,x:l,y:u}}function $l(e,t){let o=Or(e,!0,t==="fixed"),n=o.top+e.clientTop,a=o.left+e.clientLeft,i=Be(e)?Jt(e):et(1),c=e.clientWidth*i.x,l=e.clientHeight*i.y,u=a*i.x,p=n*i.y;return{width:c,height:l,x:u,y:p}}function zi(e,t,o){let n;if(t==="viewport")n=Ul(e,o);else if(t==="document")n=Ml(rt(e));else if(Ze(t))n=$l(t,o);else{let a=Vi(e);n={...t,x:t.x-a.x,y:t.y-a.y}}return Ct(n)}function qi(e,t){let o=Et(e);return o===t||!Ze(o)||vr(o)?!1:we(o).position==="fixed"||qi(o,t)}function Fl(e,t){let o=t.get(e);if(o)return o;let n=qr(e,[],!1).filter(l=>Ze(l)&&tt(l)!=="body"),a=null,i=we(e).position==="fixed",c=i?Et(e):e;for(;Ze(c)&&!vr(c);){let l=we(c),u=Yr(c);!u&&l.position==="fixed"&&(a=null),(i?!u&&!a:!u&&l.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Xt(c)&&!u&&qi(e,c))?n=n.filter(m=>m!==c):a=l,c=Et(c)}return t.set(e,n),n}function Hl(e){let{element:t,boundary:o,rootBoundary:n,strategy:a}=e,c=[...o==="clippingAncestors"?Fl(t,this._c):[].concat(o),n],l=c[0],u=c.reduce((p,m)=>{let h=zi(t,m,a);return p.top=Yt(h.top,p.top),p.right=dn(h.right,p.right),p.bottom=dn(h.bottom,p.bottom),p.left=Yt(h.left,p.left),p},zi(t,l,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Wl(e){return ji(e)}function zl(e,t,o){let n=Be(t),a=rt(t),i=o==="fixed",c=Or(e,!0,i,t),l={scrollLeft:0,scrollTop:0},u=et(0);if(n||!n&&!i)if((tt(t)!=="body"||Xt(a))&&(l=Sr(t)),n){let p=Or(t,!0,i,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else a&&(u.x=Zi(a));return{x:c.left+l.scrollLeft-u.x,y:c.top+l.scrollTop-u.y,width:c.width,height:c.height}}function Gi(e,t){return!Be(e)||we(e).position==="fixed"?null:t?t(e):e.offsetParent}function Yi(e,t){let o=Ce(e);if(!Be(e))return o;let n=Gi(e,t);for(;n&&Fi(n)&&we(n).position==="static";)n=Gi(n,t);return n&&(tt(n)==="html"||tt(n)==="body"&&we(n).position==="static"&&!Yr(n))?o:n||Hi(e)||o}var Gl=async function(e){let{reference:t,floating:o,strategy:n}=e,a=this.getOffsetParent||Yi,i=this.getDimensions;return{reference:zl(t,await a(o),n),floating:{x:0,y:0,...await i(o)}}};function jl(e){return we(e).direction==="rtl"}var Jr={convertOffsetParentRelativeRectToViewportRelativeRect:Dl,getDocumentElement:rt,getClippingRect:Hl,getOffsetParent:Yi,getElementRects:Gl,getClientRects:Bl,getDimensions:Wl,getScale:Jt,isElement:Ze,isRTL:jl};var Xi=(e,t,o)=>{let n=new Map,a={platform:Jr,...o},i={...a.platform,_c:n};return Mi(e,t,{...a,platform:i})};function Ji(e){return Kl(e)}function un(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Kl(e){for(let t=e;t;t=un(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=un(e);t;t=un(t)){if(!(t instanceof Element))continue;let o=getComputedStyle(t);if(o.display!=="contents"&&(o.position!=="static"||o.filter!=="none"||t.tagName==="BODY"))return t}return null}async function Qi(e,t,o){return Xi(e,t,{platform:{...Jr,getOffsetParent:n=>Jr.getOffsetParent(n,Ji)},middleware:[ln({crossAxis:!0}),cn({allowedPlacements:[o]})]})}var Me=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},oe=class extends Ee.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 Ee.Debouncer,this.revealDebouncer=new Ee.Debouncer,this.onTouch=t=>{this.isIgnored(t)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",o=>{o.composedPath().includes(this.container)||this.onOut(o)},{once:!0}),100))},this.onHover=t=>{this.isIgnored(t)||this.show()},this.onFocusIn=t=>{!this.isIgnored(t)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=t=>{this.isIgnored(t)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=t=>{this.isIgnored(t)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return es.html`
525
525
  <div part="container"
526
526
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
527
527
  <slot part="slot"></slot>
@@ -534,7 +534,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
534
534
  </div>
535
535
  </div>
536
536
  </div>
537
- `}setupFor(t){this.eventsTarget!==t&&(this.removeHandlers(),this.eventsTarget=t,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(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(o=>t.has(o))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}async showTemporaryText(t,o){let n=this.manual;this.manual=!0;let a=this.text;this.text=t,await this.show(o),this.text=a,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Qi(this.slottedElement,this.tooltip,this.position).then(({x:t,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${Ee.designSystemVariables.transitionDuration}, left ${Ee.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(t){return this.manual||(0,Ee.eventPathContainsMatchingElement)(t,this.ignoreMatchingElements,this.eventsTarget)}};re.elementDefinitions={"ft-typography":pe};re.styles=Ti;Me([(0,Re.property)()],re.prototype,"text",void 0);Me([(0,Re.property)({type:Boolean})],re.prototype,"manual",void 0);Me([(0,Re.property)({type:Boolean})],re.prototype,"inline",void 0);Me([(0,Ee.numberProperty)()],re.prototype,"delay",void 0);Me([(0,Re.property)()],re.prototype,"position",void 0);Me([(0,Ee.jsonProperty)([])],re.prototype,"ignoreMatchingElements",void 0);Me([(0,Re.queryAssignedNodes)()],re.prototype,"slotNodes",void 0);Me([(0,Re.query)(".ft-tooltip--container")],re.prototype,"container",void 0);Me([(0,Re.query)(".ft-tooltip")],re.prototype,"tooltip",void 0);Me([(0,Re.query)(".ft-tooltip--content")],re.prototype,"tooltipContent",void 0);Me([(0,Re.state)()],re.prototype,"visible",void 0);(0,ts.customElement)("ft-tooltip")(re);var is=S(P());var Cr=S(H()),lt=S(te()),ns=S(P()),as=S(os());var xe;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.OFFLINE="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.ONLINE="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.CIRCLE_STOP="&#xe984;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.ROUTE="&#xe992;",e.CIRCLE_USER_SLASH="&#xe993;",e.CIRCLE_USER_CHECK="&#xe994;",e.LIST_MAGNIFYING_GLASS="&#xe995;",e.MEDAL="&#xe996;",e.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",e.ARROW_TURN_DOWN_RIGHT="&#xe998;",e.FLASK="&#xe999;",e.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",e.HOURGLASS_END="&#xe99b;",e.CIRCLE_QUESTION="&#xe99c;",e.GRIP_LINES_SOLID="&#xe99d;",e.TRANSLATE_SPARKLE_SOLID="&#xe99e;",e.CODE="&#xe99f;",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",e.PAPER_PLANE_SLASH="&#xe9a1;",e.COMPRESS="&#xe9a2;",e.EXPAND="&#xe9a3;",e.ARROW_ROTATE_LEFT="&#xe9a4;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;",e.MOBILE_SMALL="&#xe9a5;",e.SPARKLES="&#xe9a6;",e.HAND_SOLID="&#xe9a7;",e.CLOCK_SOLID="&#xe9a8;",e.CONTEXT_MENU_CURSOR="&#xe9a9;",e.LANGUAGE_SLASH="&#xe9aa;",e.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",e.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",e.BOOKMARK_SLASH="&#xe9ad;",e.CIRCLE_PAUSE="&#xe9ae;",e.CIRCLE_PLAY="&#xe9af;",e.CIRCLE_STOP_PLAIN="&#xe9b0;",e.CLOUD_ARROW_DOWN="&#xe9b1;",e.SHARE_NODES="&#xe9b2;",e.BELL="&#xe9b3;",e.BELL_SLASH="&#xe9b4;",e.FILE="&#xe9b5;",e.HAND="&#xe9b6;",e.SQUARE_INFO_SOLID="&#xe9b7;"})(xe||(xe={}));var A;(function(e){e.UNKNOWN="&#xe90a;",e.ABW="&#xe900;",e.AUDIO="&#xe901;",e.AVI="&#xe902;",e.CHM="&#xe904;",e.CODE="&#xe905;",e.CSV="&#xe903;",e.DITA="&#xe906;",e.EPUB="&#xe907;",e.EXCEL="&#xe908;",e.FLAC="&#xe909;",e.GIF="&#xe90b;",e.GZIP="&#xe90c;",e.HTML="&#xe90d;",e.IMAGE="&#xe90e;",e.JPEG="&#xe90f;",e.JSON="&#xe910;",e.M4A="&#xe911;",e.MOV="&#xe912;",e.MP3="&#xe913;",e.MP4="&#xe914;",e.OGG="&#xe915;",e.PDF="&#xe916;",e.PNG="&#xe917;",e.POWERPOINT="&#xe918;",e.RAR="&#xe91a;",e.STP="&#xe91b;",e.TEXT="&#xe91c;",e.VIDEO="&#xe91e;",e.WAV="&#xe91f;",e.WMA="&#xe920;",e.WORD="&#xe921;",e.XML="&#xe922;",e.YAML="&#xe919;",e.ZIP="&#xe923;"})(A||(A={}));var Nm=new Map([...["abw"].map(e=>[e,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(e=>[e,A.AUDIO]),...["avi"].map(e=>[e,A.AVI]),...["chm","xhs"].map(e=>[e,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(e=>[e,A.CODE]),...["csv"].map(e=>[e,A.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,A.DITA]),...["epub"].map(e=>[e,A.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,A.EXCEL]),...["flac"].map(e=>[e,A.FLAC]),...["gif"].map(e=>[e,A.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,A.GZIP]),...["html","htm","xhtml"].map(e=>[e,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(e=>[e,A.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,A.JPEG]),...["json"].map(e=>[e,A.JSON]),...["m4a","m4p"].map(e=>[e,A.M4A]),...["mov","qt"].map(e=>[e,A.MOV]),...["mp3"].map(e=>[e,A.MP3]),...["mp4","m4v"].map(e=>[e,A.MP4]),...["ogg","oga"].map(e=>[e,A.OGG]),...["pdf","ps"].map(e=>[e,A.PDF]),...["png"].map(e=>[e,A.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,A.POWERPOINT]),...["rar"].map(e=>[e,A.RAR]),...["stp"].map(e=>[e,A.STP]),...["txt","rtf","md","mdown"].map(e=>[e,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(e=>[e,A.VIDEO]),...["wav"].map(e=>[e,A.WAV]),...["wma"].map(e=>[e,A.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,A.WORD]),...["xml","xsl","rdf"].map(e=>[e,A.XML]),...["yaml","yml","x-yaml"].map(e=>[e,A.YAML]),...["zip"].map(e=>[e,A.ZIP])]);var Lm={[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 qe;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(qe||(qe={}));var Er=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},fe=class extends ns.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Cr.nothing}render(){let t=this.variant&&Object.values(qe).includes(this.variant)?this.variant:qe.fluid_topics,o=t!==qe.material||!!this.value;return Cr.html`
537
+ `}setupFor(t){this.eventsTarget!==t&&(this.removeHandlers(),this.eventsTarget=t,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(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(o=>t.has(o))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}async showTemporaryText(t,o){let n=this.manual;this.manual=!0;let a=this.text;this.text=t,await this.show(o),this.text=a,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Qi(this.slottedElement,this.tooltip,this.position).then(({x:t,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${Ee.designSystemVariables.transitionDuration}, left ${Ee.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(t){return this.manual||(0,Ee.eventPathContainsMatchingElement)(t,this.ignoreMatchingElements,this.eventsTarget)}};oe.elementDefinitions={"ft-typography":pe};oe.styles=Ti;Me([(0,Re.property)()],oe.prototype,"text",void 0);Me([(0,Re.property)({type:Boolean})],oe.prototype,"manual",void 0);Me([(0,Re.property)({type:Boolean})],oe.prototype,"inline",void 0);Me([(0,Ee.numberProperty)()],oe.prototype,"delay",void 0);Me([(0,Re.property)()],oe.prototype,"position",void 0);Me([(0,Ee.jsonProperty)([])],oe.prototype,"ignoreMatchingElements",void 0);Me([(0,Re.queryAssignedNodes)()],oe.prototype,"slotNodes",void 0);Me([(0,Re.query)(".ft-tooltip--container")],oe.prototype,"container",void 0);Me([(0,Re.query)(".ft-tooltip")],oe.prototype,"tooltip",void 0);Me([(0,Re.query)(".ft-tooltip--content")],oe.prototype,"tooltipContent",void 0);Me([(0,Re.state)()],oe.prototype,"visible",void 0);(0,ts.customElement)("ft-tooltip")(oe);var is=S(P());var Cr=S(H()),lt=S(re()),ns=S(P()),as=S(os());var xe;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.OFFLINE="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.ONLINE="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.CIRCLE_STOP="&#xe984;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.ROUTE="&#xe992;",e.CIRCLE_USER_SLASH="&#xe993;",e.CIRCLE_USER_CHECK="&#xe994;",e.LIST_MAGNIFYING_GLASS="&#xe995;",e.MEDAL="&#xe996;",e.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",e.ARROW_TURN_DOWN_RIGHT="&#xe998;",e.FLASK="&#xe999;",e.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",e.HOURGLASS_END="&#xe99b;",e.CIRCLE_QUESTION="&#xe99c;",e.GRIP_LINES_SOLID="&#xe99d;",e.TRANSLATE_SPARKLE_SOLID="&#xe99e;",e.CODE="&#xe99f;",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",e.PAPER_PLANE_SLASH="&#xe9a1;",e.COMPRESS="&#xe9a2;",e.EXPAND="&#xe9a3;",e.ARROW_ROTATE_LEFT="&#xe9a4;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;",e.MOBILE_SMALL="&#xe9a5;",e.SPARKLES="&#xe9a6;",e.HAND_SOLID="&#xe9a7;",e.CLOCK_SOLID="&#xe9a8;",e.CONTEXT_MENU_CURSOR="&#xe9a9;",e.LANGUAGE_SLASH="&#xe9aa;",e.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",e.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",e.BOOKMARK_SLASH="&#xe9ad;",e.CIRCLE_PAUSE="&#xe9ae;",e.CIRCLE_PLAY="&#xe9af;",e.CIRCLE_STOP_PLAIN="&#xe9b0;",e.CLOUD_ARROW_DOWN="&#xe9b1;",e.SHARE_NODES="&#xe9b2;",e.BELL="&#xe9b3;",e.BELL_SLASH="&#xe9b4;",e.FILE="&#xe9b5;",e.HAND="&#xe9b6;",e.SQUARE_INFO_SOLID="&#xe9b7;"})(xe||(xe={}));var A;(function(e){e.UNKNOWN="&#xe90a;",e.ABW="&#xe900;",e.AUDIO="&#xe901;",e.AVI="&#xe902;",e.CHM="&#xe904;",e.CODE="&#xe905;",e.CSV="&#xe903;",e.DITA="&#xe906;",e.EPUB="&#xe907;",e.EXCEL="&#xe908;",e.FLAC="&#xe909;",e.GIF="&#xe90b;",e.GZIP="&#xe90c;",e.HTML="&#xe90d;",e.IMAGE="&#xe90e;",e.JPEG="&#xe90f;",e.JSON="&#xe910;",e.M4A="&#xe911;",e.MOV="&#xe912;",e.MP3="&#xe913;",e.MP4="&#xe914;",e.OGG="&#xe915;",e.PDF="&#xe916;",e.PNG="&#xe917;",e.POWERPOINT="&#xe918;",e.RAR="&#xe91a;",e.STP="&#xe91b;",e.TEXT="&#xe91c;",e.VIDEO="&#xe91e;",e.WAV="&#xe91f;",e.WMA="&#xe920;",e.WORD="&#xe921;",e.XML="&#xe922;",e.YAML="&#xe919;",e.ZIP="&#xe923;"})(A||(A={}));var Nm=new Map([...["abw"].map(e=>[e,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(e=>[e,A.AUDIO]),...["avi"].map(e=>[e,A.AVI]),...["chm","xhs"].map(e=>[e,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(e=>[e,A.CODE]),...["csv"].map(e=>[e,A.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,A.DITA]),...["epub"].map(e=>[e,A.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,A.EXCEL]),...["flac"].map(e=>[e,A.FLAC]),...["gif"].map(e=>[e,A.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,A.GZIP]),...["html","htm","xhtml"].map(e=>[e,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(e=>[e,A.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,A.JPEG]),...["json"].map(e=>[e,A.JSON]),...["m4a","m4p"].map(e=>[e,A.M4A]),...["mov","qt"].map(e=>[e,A.MOV]),...["mp3"].map(e=>[e,A.MP3]),...["mp4","m4v"].map(e=>[e,A.MP4]),...["ogg","oga"].map(e=>[e,A.OGG]),...["pdf","ps"].map(e=>[e,A.PDF]),...["png"].map(e=>[e,A.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,A.POWERPOINT]),...["rar"].map(e=>[e,A.RAR]),...["stp"].map(e=>[e,A.STP]),...["txt","rtf","md","mdown"].map(e=>[e,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(e=>[e,A.VIDEO]),...["wav"].map(e=>[e,A.WAV]),...["wma"].map(e=>[e,A.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,A.WORD]),...["xml","xsl","rdf"].map(e=>[e,A.XML]),...["yaml","yml","x-yaml"].map(e=>[e,A.YAML]),...["zip"].map(e=>[e,A.ZIP])]);var Lm={[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 qe;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(qe||(qe={}));var Er=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},fe=class extends ns.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Cr.nothing}render(){let t=this.variant&&Object.values(qe).includes(this.variant)?this.variant:qe.fluid_topics,o=t!==qe.material||!!this.value;return Cr.html`
538
538
  <i class="ft-icon ft-icon--${t} ft-no-text-select" part="icon icon-${t}">
539
539
  ${(0,as.unsafeHTML)(this.resolvedIcon)}
540
540
  <slot ?hidden=${o}></slot>
@@ -546,7 +546,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
546
546
  <div></div>
547
547
  <div></div>
548
548
  </div>
549
- `}};At.styles=Ja;(0,ls.customElement)("ft-loader")(At);var dt=S(H()),pn=S(fr()),Q=S(te());var Qr=e=>e??J;var ie=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},W=class extends(0,ut.toFtFormComponent)(ut.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",t=>{var o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):this.type=="submit"&&((o=this.form)===null||o===void 0||o.requestSubmit())})}render(){var t,o,n;let a=dt.html`
549
+ `}};At.styles=Ja;(0,ls.customElement)("ft-loader")(At);var dt=S(H()),pn=S(fr()),Q=S(re());var Qr=e=>e??J;var se=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},W=class extends(0,ut.toFtFormComponent)(ut.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",t=>{var o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):this.type=="submit"&&((o=this.form)===null||o===void 0||o.requestSubmit())})}render(){var t,o,n;let a=dt.html`
550
550
  <ft-ripple part="ripple"
551
551
  ?disabled=${this.isDisabled()}
552
552
  ?activated=${this.activated}
@@ -587,7 +587,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
587
587
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
588
588
  `:dt.html`
589
589
  <slot part="icon" name="icon"></slot>
590
- `}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}showTooltip(){var t;(t=this.tooltip)===null||t===void 0||t.show()}showTemporaryTooltip(t,o){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(t,o)}setTooltipManual(t){this.tooltip&&(this.tooltip.manual=t)}click(){var t;(t=this.button)===null||t===void 0||t.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,ut.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};W.elementDefinitions={"ft-ripple":Y,"ft-tooltip":re,"ft-typography":pe,"ft-icon":fe,"ft-loader":At};ie([(0,Q.property)()],W.prototype,"href",void 0);ie([(0,Q.property)()],W.prototype,"target",void 0);ie([(0,Q.property)()],W.prototype,"type",void 0);ie([(0,Q.property)({type:Boolean})],W.prototype,"disabled",void 0);ie([(0,Q.property)()],W.prototype,"label",void 0);ie([(0,Q.property)()],W.prototype,"icon",void 0);ie([(0,Q.property)()],W.prototype,"iconVariant",void 0);ie([(0,Q.property)({type:Boolean})],W.prototype,"trailingIcon",void 0);ie([(0,Q.property)({type:Boolean})],W.prototype,"loading",void 0);ie([(0,Q.property)({attribute:"aria-label"})],W.prototype,"ariaLabel",void 0);ie([(0,Q.property)()],W.prototype,"ariaHasPopup",void 0);ie([(0,Q.property)()],W.prototype,"tooltipPosition",void 0);ie([(0,Q.property)({type:Boolean})],W.prototype,"hideTooltip",void 0);ie([(0,Q.property)({type:Boolean})],W.prototype,"forceTooltip",void 0);ie([(0,Q.property)({type:Boolean})],W.prototype,"activated",void 0);ie([(0,Q.query)(".ft-button")],W.prototype,"button",void 0);ie([(0,Q.query)(".ft-button--label slot")],W.prototype,"slottedContent",void 0);ie([(0,Q.query)("[part=tooltip]")],W.prototype,"tooltip",void 0);var eo=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},Ue=class extends W{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"}};Ue.styles=[ds.safariEllipsisFix,ni];eo([(0,Ar.property)({type:Boolean})],Ue.prototype,"primary",void 0);eo([(0,Ar.property)({type:Boolean})],Ue.prototype,"outlined",void 0);eo([(0,Ar.property)({type:Boolean})],Ue.prototype,"dense",void 0);eo([(0,Ar.property)({type:Boolean})],Ue.prototype,"round",void 0);var wr=S(te());var ro=S(P());var us=S(H()),O=S(P());var Vl={...f,iconOnlyScale:O.FtCssVariableFactory.create("--ft-button-icon-only-scale","","NUMBER","1")},ps=[us.css`
590
+ `}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}showTooltip(){var t;(t=this.tooltip)===null||t===void 0||t.show()}showTemporaryTooltip(t,o){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(t,o)}setTooltipManual(t){this.tooltip&&(this.tooltip.manual=t)}click(){var t;(t=this.button)===null||t===void 0||t.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,ut.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};W.elementDefinitions={"ft-ripple":Y,"ft-tooltip":oe,"ft-typography":pe,"ft-icon":fe,"ft-loader":At};se([(0,Q.property)()],W.prototype,"href",void 0);se([(0,Q.property)()],W.prototype,"target",void 0);se([(0,Q.property)()],W.prototype,"type",void 0);se([(0,Q.property)({type:Boolean})],W.prototype,"disabled",void 0);se([(0,Q.property)()],W.prototype,"label",void 0);se([(0,Q.property)()],W.prototype,"icon",void 0);se([(0,Q.property)()],W.prototype,"iconVariant",void 0);se([(0,Q.property)({type:Boolean})],W.prototype,"trailingIcon",void 0);se([(0,Q.property)({type:Boolean})],W.prototype,"loading",void 0);se([(0,Q.property)({attribute:"aria-label"})],W.prototype,"ariaLabel",void 0);se([(0,Q.property)()],W.prototype,"ariaHasPopup",void 0);se([(0,Q.property)()],W.prototype,"tooltipPosition",void 0);se([(0,Q.property)({type:Boolean})],W.prototype,"hideTooltip",void 0);se([(0,Q.property)({type:Boolean})],W.prototype,"forceTooltip",void 0);se([(0,Q.property)({type:Boolean})],W.prototype,"activated",void 0);se([(0,Q.query)(".ft-button")],W.prototype,"button",void 0);se([(0,Q.query)(".ft-button--label slot")],W.prototype,"slottedContent",void 0);se([(0,Q.query)("[part=tooltip]")],W.prototype,"tooltip",void 0);var eo=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},Ue=class extends W{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"}};Ue.styles=[ds.safariEllipsisFix,ni];eo([(0,Ar.property)({type:Boolean})],Ue.prototype,"primary",void 0);eo([(0,Ar.property)({type:Boolean})],Ue.prototype,"outlined",void 0);eo([(0,Ar.property)({type:Boolean})],Ue.prototype,"dense",void 0);eo([(0,Ar.property)({type:Boolean})],Ue.prototype,"round",void 0);var wr=S(re());var ro=S(P());var us=S(H()),O=S(P());var Vl={...f,iconOnlyScale:O.FtCssVariableFactory.create("--ft-button-icon-only-scale","","NUMBER","1")},ps=[us.css`
591
591
  :host {
592
592
  display: inline-block;
593
593
  max-width: 100%;
@@ -1057,7 +1057,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1057
1057
  .ftds--size-small.ft-button--icon-only {
1058
1058
  width: ${f.smallIconOnlyWidth};
1059
1059
  }
1060
- `,O.noTextSelect];var to=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},ve=class extends(0,ro.toFtdsBase)(W){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=Dt.brand,this.iconVariant=qe.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 de.large:return ye.body2medium;case de.medium:return ye.caption1medium;case de.small:return ye.caption2medium}}};ve.styles=[ro.safariEllipsisFix,ps];to([(0,wr.property)({type:Boolean})],ve.prototype,"primary",void 0);to([(0,wr.property)({type:Boolean})],ve.prototype,"secondary",void 0);to([(0,wr.property)({type:Boolean})],ve.prototype,"tertiary",void 0);to([(0,wr.property)({type:Boolean})],ve.prototype,"round",void 0);(0,fn.customElement)("ft-button")(Ue);(0,fn.customElement)("ftds-button")(ve);var Uo=S(P());var Mr=S(H()),Ur=S(te()),Bo=S(P()),nl=S(fr());var fs=S(H());var hn=S(P());var hs=[fs.css`
1060
+ `,O.noTextSelect];var to=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},ve=class extends(0,ro.toFtdsBase)(W){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=Dt.brand,this.iconVariant=qe.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 de.large:return ye.body2medium;case de.medium:return ye.caption1medium;case de.small:return ye.caption2medium}}};ve.styles=[ro.safariEllipsisFix,ps];to([(0,wr.property)({type:Boolean})],ve.prototype,"primary",void 0);to([(0,wr.property)({type:Boolean})],ve.prototype,"secondary",void 0);to([(0,wr.property)({type:Boolean})],ve.prototype,"tertiary",void 0);to([(0,wr.property)({type:Boolean})],ve.prototype,"round",void 0);(0,fn.customElement)("ft-button")(Ue);(0,fn.customElement)("ftds-button")(ve);var Uo=S(P());var Mr=S(H()),Ur=S(re()),Bo=S(P()),nl=S(fr());var fs=S(H());var hn=S(P());var hs=[fs.css`
1061
1061
  .ftds--size-small [part=dialog] {
1062
1062
  --ftds-modal--target-width: ${G.smallContainerTargetWidth};
1063
1063
  }
@@ -1142,11 +1142,11 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1142
1142
  display: flex;
1143
1143
  gap: ${hn.foundation.spacing3}
1144
1144
  }
1145
- `];var rl=S(P());var Po=S(H()),ko=S(te()),Do=S(P());var ys=S(H());var ms=ys.css`
1146
- `;var cr=S(P());var Xc=S(P());var nc=S(H()),he=S(te()),$e=S(P());var gs=S(H());var bs=gs.css`
1147
- `;var oo=S(P()),Zl="ft-app-info",wt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};wt.eventName="authentication-change";var ql={session:(e,t)=>{(0,oo.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>N.dispatchEvent(new wt(t.payload)),0))}},N=oo.FtReduxStore.get({name:Zl,reducers:ql,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 yn=S(P());var Rt=class e{static get(t){let{baseUrl:o,apiIntegrationIdentifier:n}=N.getState(),a=t??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(t){return new Promise(o=>{let n=e.get(t);if(n)o(n);else{let a=N.subscribe(()=>{n=e.get(t),n&&(a(),o(n))})}})}};var no=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:Rt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Rt.await()}};var Te=class extends no{constructor(t=!0,o){var n;super(o),this.sortObjectFields=(i,c)=>typeof c!="object"||c==null||Array.isArray(c)?c:Object.fromEntries(Object.entries(c).sort(([l],[u])=>l.localeCompare(u)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new yn.CacheRegistry,this.cache=t?a.commonCache:new yn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var ao=class extends Te{async listMyBookmarks(){let t=N.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var mn=class{addCommand(t,o=!1){N.commands.add(t,o)}consumeCommand(t){return N.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new mn;var Pe=S(P());var xs,Qt=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},Yl=Symbol("clearAfterUnitTest"),io=class extends(0,Pe.withEventBus)(Te){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[xs]=()=>{this.defaultMessages={},this.cache=new Pe.CacheRegistry,this.listeners={}},this.currentUiLocale=N.getState().uiLocale,N.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=N.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let o=t.name.toLowerCase();this.cache.setFinal(o,t),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,o){var n;if(t=t.toLowerCase(),o&&Object.keys(o).length>0){let a={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...o};(0,Pe.deepEqual)(this.defaultMessages[t],a)||(this.defaultMessages[t]=a,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var o,n;return this.fetchContext(t),(n=(o=this.cache.getNow(t))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,o){let n=t.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(t,o,...n){var a;let i=t.toLowerCase(),c=this.resolveContext(i);return new Pe.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},c).resolve(o,...n)}async fetchContext(t){let o=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),o&&await this.notify(t)}catch(a){!(a instanceof Pe.CanceledPromiseError)&&o&&console.error(a)}return n}subscribe(t,o){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(o),()=>{var a;return(a=this.listeners[t])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new Qt({loadedContexts:t})),this.dispatchEvent(new Qt({loadedContexts:t})),await Promise.all(t.map(o=>this.notify(o,!1)))}async notify(t,o=!0){o&&(document.body.dispatchEvent(new Qt({loadedContexts:[t]})),this.dispatchEvent(new Qt({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,Pe.delay)(0).then(()=>n()).catch(()=>null)))}};xs=Yl;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends io{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends io{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var er=window.FluidTopicsI18nService,so=window.FluidTopicsCustomI18nService;var vs=S(P()),gn=class{highlightHtml(t,o,n){(0,vs.highlightHtml)(t,o,n)}};window.FluidTopicsHighlightHtmlService=new gn;var Jl=S(Os(),1);var Cs;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Cs||(Cs={}));var Es;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Es||(Es={}));var As;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(As||(As={}));var ws;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(ws||(ws={}));var Rs;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Rs||(Rs={}));var Ts;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Ts||(Ts={}));var Ns;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__DISPLAY="TOPIC__DISPLAY",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(Ns||(Ns={}));var Ls;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(Ls||(Ls={}));var Is;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT"})(Is||(Is={}));var _s;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(_s||(_s={}));var Ps;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Ps||(Ps={}));var ks;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(ks||(ks={}));var Ds;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Ds||(Ds={}));var Bs;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(Bs||(Bs={}));var Ms;(function(e){e.ASC="ASC",e.DESC="DESC"})(Ms||(Ms={}));var Us;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Us||(Us={}));var $s;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})($s||($s={}));var Fs;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Fs||(Fs={}));var Hs;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Hs||(Hs={}));var Ws;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Ws||(Ws={}));var zs;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(zs||(zs={}));var Gs;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(Gs||(Gs={}));var js;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(js||(js={}));var Ks;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Ks||(Ks={}));var oe;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(oe||(oe={}));var Ne;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(Ne||(Ne={}));var Vs;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(Vs||(Vs={}));var Zs;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Zs||(Zs={}));var qs;(function(e){e.USER="USER",e.ASSISTANT="ASSISTANT"})(qs||(qs={}));var Ys;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(Ys||(Ys={}));var Xl={[oe.PERSONAL_BOOK_SHARE_USER]:[oe.PERSONAL_BOOK_USER],[oe.HTML_EXPORT_USER]:[oe.PERSONAL_BOOK_USER],[oe.PDF_EXPORT_USER]:[oe.PERSONAL_BOOK_USER],[oe.KHUB_ADMIN]:[oe.CONTENT_PUBLISHER],[oe.ADMIN]:[oe.KHUB_ADMIN,oe.USERS_ADMIN,oe.PORTAL_ADMIN],[oe.GENERATIVE_AI_EXPORT_USER]:[oe.GENERATIVE_AI_USER]};function Xs(e,t){return e===t||(Xl[e]??[]).some(o=>Xs(o,t))}function Js(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>Xs(n,t))}var uo=class extends Te{async listMySearches(){let{session:t}=N.getState();return Js(t,oe.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var Qs=S(P());var bn=class{isDate(t){var o,n,a,i;return(i=(a=((n=(o=N.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===t))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(t,o){var n,a,i;return Qs.DateFormatter.format(t,(n=o?.locale)!==null&&n!==void 0?n:N.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new bn;var ec=S(P());var Rr=class{static get(t,o){var n,a;let i=N.getState(),{lang:c,region:l}=(a=(n=i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new ec.SearchPlaceConverter(i.baseUrl,t??20,i.searchInAllLanguagesAllowed,o??`${c}-${l}`)}};var xn=class{urlToSearchRequest(t){return Rr.get().parse(t)}searchRequestToUrl(t){return Rr.get().serialize(t)}};window.FluidTopicsUrlService=new xn;var ft=S(P());var Tt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};Tt.eventName="change";var vn=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let o=sessionStorage.getItem(this.itemName(t));return o?JSON.parse(o):void 0}set(t,o){sessionStorage.setItem(this.itemName(t),JSON.stringify(o))}},tc=new vn;var po=class e extends ft.WithEventBus{static build(){return new e(window.history,tc,()=>window.location,!1)}constructor(t,o,n,a){var i,c;super(),this.history=t,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(c=(i=t.state)===null||i===void 0?void 0:i.index)!==null&&c!==void 0?c:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(t,o=!1){let n=o&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,ft.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Tt(this.currentItem())),0)}installProxies(){let t=o=>(n,a,[i,c,l])=>{let u=o(),p={...u===this.currentIndex?this.currentState:void 0,...i,index:u,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(a,[p,c,l]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.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(t){for(let o=this.history.length-1;o>=0;o--)t?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(t){var o;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(o=t?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(t){this.addEventListener(Tt.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(Tt.eventName,t)}currentItem(){return(0,ft.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,ft.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,ft.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var o;let n=(o=this.states[t])===null||o===void 0?void 0:o.majorStateId;if(!n)return t;let a=t,i=t+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(a=i),i++;return a}buildCurrentState(){var t,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&o!==void 0?o:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,o){var n;if(!this.hasState(t))return!1;let a=o??this.currentState.majorStateId,i=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=po.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});var rc=N;function oc(e,t){var o;return rc.getState().authenticationRequired&&!(!((o=rc.getState().session)===null||o===void 0)&&o.sessionAuthenticated)?Promise.resolve(t):e()}var ne=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},z=class extends $e.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=()=>Rt.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new $e.CacheRegistry,this.cleanSessionDebouncer=new $e.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return nc.html`
1145
+ `];var rl=S(P());var Po=S(H()),ko=S(re()),Do=S(P());var ys=S(H());var ms=ys.css`
1146
+ `;var cr=S(P());var Xc=S(P());var nc=S(H()),he=S(re()),$e=S(P());var gs=S(H());var bs=gs.css`
1147
+ `;var oo=S(P()),Zl="ft-app-info",wt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};wt.eventName="authentication-change";var ql={session:(e,t)=>{(0,oo.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>N.dispatchEvent(new wt(t.payload)),0))}},N=oo.FtReduxStore.get({name:Zl,reducers:ql,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 yn=S(P());var Rt=class e{static get(t){let{baseUrl:o,apiIntegrationIdentifier:n}=N.getState(),a=t??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(t){return new Promise(o=>{let n=e.get(t);if(n)o(n);else{let a=N.subscribe(()=>{n=e.get(t),n&&(a(),o(n))})}})}};var no=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:Rt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Rt.await()}};var Te=class extends no{constructor(t=!0,o){var n;super(o),this.sortObjectFields=(i,c)=>typeof c!="object"||c==null||Array.isArray(c)?c:Object.fromEntries(Object.entries(c).sort(([l],[u])=>l.localeCompare(u)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new yn.CacheRegistry,this.cache=t?a.commonCache:new yn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var ao=class extends Te{async listMyBookmarks(){let t=N.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var mn=class{addCommand(t,o=!1){N.commands.add(t,o)}consumeCommand(t){return N.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new mn;var Pe=S(P());var xs,Qt=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},Yl=Symbol("clearAfterUnitTest"),io=class extends(0,Pe.withEventBus)(Te){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[xs]=()=>{this.defaultMessages={},this.cache=new Pe.CacheRegistry,this.listeners={}},this.currentUiLocale=N.getState().uiLocale,N.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=N.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let o=t.name.toLowerCase();this.cache.setFinal(o,t),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,o){var n;if(t=t.toLowerCase(),o&&Object.keys(o).length>0){let a={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...o};(0,Pe.deepEqual)(this.defaultMessages[t],a)||(this.defaultMessages[t]=a,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var o,n;return this.fetchContext(t),(n=(o=this.cache.getNow(t))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,o){let n=t.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(t,o,...n){var a;let i=t.toLowerCase(),c=this.resolveContext(i);return new Pe.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},c).resolve(o,...n)}async fetchContext(t){let o=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),o&&await this.notify(t)}catch(a){!(a instanceof Pe.CanceledPromiseError)&&o&&console.error(a)}return n}subscribe(t,o){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(o),()=>{var a;return(a=this.listeners[t])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new Qt({loadedContexts:t})),this.dispatchEvent(new Qt({loadedContexts:t})),await Promise.all(t.map(o=>this.notify(o,!1)))}async notify(t,o=!0){o&&(document.body.dispatchEvent(new Qt({loadedContexts:[t]})),this.dispatchEvent(new Qt({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,Pe.delay)(0).then(()=>n()).catch(()=>null)))}};xs=Yl;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends io{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends io{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var er=window.FluidTopicsI18nService,so=window.FluidTopicsCustomI18nService;var vs=S(P()),gn=class{highlightHtml(t,o,n){(0,vs.highlightHtml)(t,o,n)}};window.FluidTopicsHighlightHtmlService=new gn;var Jl=S(Os(),1);var Cs;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Cs||(Cs={}));var Es;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Es||(Es={}));var As;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(As||(As={}));var ws;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(ws||(ws={}));var Rs;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Rs||(Rs={}));var Ts;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Ts||(Ts={}));var Ns;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__DISPLAY="TOPIC__DISPLAY",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(Ns||(Ns={}));var Ls;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(Ls||(Ls={}));var Is;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT"})(Is||(Is={}));var _s;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(_s||(_s={}));var Ps;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Ps||(Ps={}));var ks;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(ks||(ks={}));var Ds;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Ds||(Ds={}));var Bs;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(Bs||(Bs={}));var Ms;(function(e){e.ASC="ASC",e.DESC="DESC"})(Ms||(Ms={}));var Us;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Us||(Us={}));var $s;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})($s||($s={}));var Fs;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Fs||(Fs={}));var Hs;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Hs||(Hs={}));var Ws;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Ws||(Ws={}));var zs;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(zs||(zs={}));var Gs;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(Gs||(Gs={}));var js;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(js||(js={}));var Ks;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Ks||(Ks={}));var ne;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(ne||(ne={}));var Ne;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(Ne||(Ne={}));var Vs;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(Vs||(Vs={}));var Zs;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Zs||(Zs={}));var qs;(function(e){e.USER="USER",e.ASSISTANT="ASSISTANT"})(qs||(qs={}));var Ys;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(Ys||(Ys={}));var Xl={[ne.PERSONAL_BOOK_SHARE_USER]:[ne.PERSONAL_BOOK_USER],[ne.HTML_EXPORT_USER]:[ne.PERSONAL_BOOK_USER],[ne.PDF_EXPORT_USER]:[ne.PERSONAL_BOOK_USER],[ne.KHUB_ADMIN]:[ne.CONTENT_PUBLISHER],[ne.ADMIN]:[ne.KHUB_ADMIN,ne.USERS_ADMIN,ne.PORTAL_ADMIN],[ne.GENERATIVE_AI_EXPORT_USER]:[ne.GENERATIVE_AI_USER]};function Xs(e,t){return e===t||(Xl[e]??[]).some(o=>Xs(o,t))}function Js(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>Xs(n,t))}var uo=class extends Te{async listMySearches(){let{session:t}=N.getState();return Js(t,ne.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var Qs=S(P());var bn=class{isDate(t){var o,n,a,i;return(i=(a=((n=(o=N.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===t))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(t,o){var n,a,i;return Qs.DateFormatter.format(t,(n=o?.locale)!==null&&n!==void 0?n:N.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new bn;var ec=S(P());var Rr=class{static get(t,o){var n,a;let i=N.getState(),{lang:c,region:l}=(a=(n=i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new ec.SearchPlaceConverter(i.baseUrl,t??20,i.searchInAllLanguagesAllowed,o??`${c}-${l}`)}};var xn=class{urlToSearchRequest(t){return Rr.get().parse(t)}searchRequestToUrl(t){return Rr.get().serialize(t)}};window.FluidTopicsUrlService=new xn;var ft=S(P());var Tt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};Tt.eventName="change";var vn=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let o=sessionStorage.getItem(this.itemName(t));return o?JSON.parse(o):void 0}set(t,o){sessionStorage.setItem(this.itemName(t),JSON.stringify(o))}},tc=new vn;var po=class e extends ft.WithEventBus{static build(){return new e(window.history,tc,()=>window.location,!1)}constructor(t,o,n,a){var i,c;super(),this.history=t,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(c=(i=t.state)===null||i===void 0?void 0:i.index)!==null&&c!==void 0?c:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(t,o=!1){let n=o&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,ft.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Tt(this.currentItem())),0)}installProxies(){let t=o=>(n,a,[i,c,l])=>{let u=o(),p={...u===this.currentIndex?this.currentState:void 0,...i,index:u,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(a,[p,c,l]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.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(t){for(let o=this.history.length-1;o>=0;o--)t?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(t){var o;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(o=t?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(t){this.addEventListener(Tt.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(Tt.eventName,t)}currentItem(){return(0,ft.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,ft.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,ft.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var o;let n=(o=this.states[t])===null||o===void 0?void 0:o.majorStateId;if(!n)return t;let a=t,i=t+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(a=i),i++;return a}buildCurrentState(){var t,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&o!==void 0?o:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,o){var n;if(!this.hasState(t))return!1;let a=o??this.currentState.majorStateId,i=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=po.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});var rc=N;function oc(e,t){var o;return rc.getState().authenticationRequired&&!(!((o=rc.getState().session)===null||o===void 0)&&o.sessionAuthenticated)?Promise.resolve(t):e()}var ae=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},z=class extends $e.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=()=>Rt.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new $e.CacheRegistry,this.cleanSessionDebouncer=new $e.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return nc.html`
1148
1148
  <slot></slot>
1149
- `}connectedCallback(){super.connectedCallback(),N.addEventListener(wt.eventName,this.reloadConfiguration)}disconnectedCallback(){N.addEventListener(wt.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(t){var o,n,a,i,c,l,u;super.update(t),t.has("baseUrl")&&(N.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&N.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&N.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&N.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&N.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&N.actions.noCustom(this.noCustom),t.has("editorMode")&&N.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&N.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&N.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(p=>er.addContext(p)),t.has("openExternalDocumentInNewTab")&&N.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&N.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&N.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(N.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),N.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),N.actions.searchInAllLanguagesAllowed((c=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&c!==void 0?c:!1)),t.has("authenticationRequired")&&N.actions.authenticationRequired(this.authenticationRequired),t.has("availableContentLocales")&&N.actions.availableContentLocales((u=(l=this.availableContentLocales)===null||l===void 0?void 0:l.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 t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>oc(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};z.elementDefinitions={};z.styles=bs;ne([(0,he.property)()],z.prototype,"baseUrl",void 0);ne([(0,he.property)()],z.prototype,"apiIntegrationIdentifier",void 0);ne([(0,he.property)()],z.prototype,"apiIntegrationAppVersion",void 0);ne([(0,he.property)()],z.prototype,"uiLocale",void 0);ne([(0,$e.jsonProperty)(null)],z.prototype,"availableUiLocales",void 0);ne([(0,$e.jsonProperty)(null)],z.prototype,"metadataConfiguration",void 0);ne([(0,he.property)({type:Boolean})],z.prototype,"editorMode",void 0);ne([(0,he.property)({type:Boolean})],z.prototype,"noCustom",void 0);ne([(0,he.property)({type:Boolean})],z.prototype,"openExternalDocumentInNewTab",void 0);ne([(0,he.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],z.prototype,"noCustomComponent",void 0);ne([(0,he.property)({type:Boolean})],z.prototype,"withManualResources",void 0);ne([(0,he.property)({type:Boolean})],z.prototype,"navigatorOnline",void 0);ne([(0,he.property)({type:Boolean})],z.prototype,"forcedOffline",void 0);ne([(0,he.property)({type:Object})],z.prototype,"apiProvider",void 0);ne([(0,he.property)({type:Boolean})],z.prototype,"authenticationRequired",void 0);ne([(0,$e.jsonProperty)([])],z.prototype,"messageContexts",void 0);ne([(0,$e.jsonProperty)(void 0)],z.prototype,"session",void 0);ne([(0,he.state)()],z.prototype,"localesConfiguration",void 0);ne([(0,he.state)()],z.prototype,"availableContentLocales",void 0);var jn=S(te());function Ql(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let o,n,a;if(Array.isArray(e)){if(o=e.length,o!=t.length)return!1;for(n=o;n--!==0;)if(!fo(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!fo(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let i=c=>Object.keys(c).filter(l=>c[l]!=null);if(a=i(e),o=a.length,o!==i(t).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[n]))return!1;for(n=o;n--!==0;){let c=a[n];if(!fo(e[c],t[c]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function fo(e,t){try{return Ql(e,t)}catch{return!1}}function Tr(e,t){return!fo(e,t)}function ho(e,t){let o=n=>n[e]===!0;return n=>{if(o(n))return n;let a=t(n);return a[e]=!0,a}}var ac=S(te(),1);var Sn=e=>{let t=e??{};return(o,n)=>{var a;let i={hasChanged:Tr,attribute:!1,...t};(0,ac.property)(i)(o,n);let c=o.constructor;c.reduxProperties=new Map(c.reduxProperties),c.reduxProperties.set(n,{selector:(a=t.selector)!==null&&a!==void 0?a:l=>l[n],store:t.store})}};var yo=class{constructor(){this.queue=[]}add(t,o=!1){o&&this.clear(t.type),this.queue.push(t)}consume(t){let o=this.queue.find(n=>n.type===t);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(t){typeof t=="string"?this.queue=this.queue.filter(o=>o.type!==t):this.queue=this.queue.filter(o=>!t.test(o.type))}};var rr=S(te(),1);var ic=S(te(),1);function sc(e,t){let o=()=>JSON.parse(JSON.stringify(e));return(0,ic.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return o();try{return JSON.parse(n)}catch{return o()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Tr,...t??{}})}var mo=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,o;let n=[...this.callbacks];this.callbacks=[];let a=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let c of n)try{await c()}catch(l){a(l);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var lc=S(H(),1);var go=globalThis,ed=go.ShadowRoot&&(go.ShadyCSS===void 0||go.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ix=Symbol();var cc=(e,t)=>{if(ed)e.adoptedStyleSheets=t.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of t){let n=document.createElement("style"),a=go.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,e.appendChild(n)}};var bo=class extends lc.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([a,i])=>t.registry.define(a,i)));let o={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return cc(n,t.elementStyles),n}};function dc(e,t,...o){var n;let a=e.querySelector(t);for(let i of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}var Nr=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},hc,uc=Symbol("constructorPrototype"),pc=Symbol("constructorName"),yc=Symbol("exportpartsDebouncer"),fc=Symbol("dynamicDependenciesLoaded"),ot=class extends bo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[hc]=new mo(5),this[pc]=this.constructor.name,this[uc]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[pc]&&Object.setPrototypeOf(this,this[uc])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let t=this.constructor;t[fc]||(t[fc]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let i=[...a??[],n];o=dc(this.shadowRoot,...i)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}scheduleExportpartsUpdate(){var t,o,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[yc].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(t){var o,n,a,i,c,l;let u=g=>g!=null&&g.trim().length>0,p=t.filter(u).map(g=>g.trim());if(p.length===0){this.removeAttribute("exportparts");return}let m=new Set;for(let g of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let v=(i=(a=g.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],x=(l=(c=g.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(C=>C.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...v,...x).filter(u).map(C=>C.trim()).forEach(C=>m.add(C))}if(m.size===0){this.removeAttribute("exportparts");return}let h=[...m.values()].flatMap(g=>p.map(v=>`${g}:${v}--${g}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};hc=yc;Nr([(0,rr.property)()],ot.prototype,"exportpartsPrefix",void 0);Nr([sc([])],ot.prototype,"exportpartsPrefixes",void 0);Nr([(0,rr.property)()],ot.prototype,"customStylesheet",void 0);Nr([(0,rr.property)()],ot.prototype,"elementToFocus",void 0);Nr([(0,rr.state)()],ot.prototype,"useAdoptedStyleSheets",void 0);function xo(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Lr=Symbol("internalReduxEventsUnsubscribers"),ht=Symbol("internalStoresUnsubscribers"),Nt=Symbol("internalStores"),td=ho(Symbol("withRedux"),function(e){var t,o,n;class a extends e{constructor(){super(...arguments),this[t]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(c){super.willUpdate(c),[...this.reduxConstructor.reduxReactiveProperties].some(l=>c.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[Nt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Nt].values()][0]}getStore(c){return c==null?this.getUnnamedStore():this[Nt].get(c)}addStore(c,l){var u;l=(u=l??c.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(l),this[Nt].set(l,c),this.subscribeToStore(l,c),this.updateFromStores()}removeStore(c){let l=typeof c=="string"?c:c.name;this.unsubscribeFromStore(l),this[Nt].delete(l)}setupStores(){this.unsubscribeFromStores(),this[Nt].forEach((c,l)=>this.subscribeToStore(l,c)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((c,l)=>{let u=this.constructor.getPropertyOptions(l);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:l)){let p=this.getStore(c.store);p&&(c.store?this[ht].has(c.store):this[ht].size>0)&&(this[l]=c.selector(p.getState(),this))}})}subscribeToStore(c,l){var u;this[ht].set(c,l.subscribe(()=>this.updateFromStores())),this[Lr].set(c,[]),xo(l)&&l.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((p,m)=>{if(typeof this[m]=="function"&&(!p.store||l.name===p.store)){let h=g=>this[m](g);l.addEventListener(p.eventName,h),this[Lr].get(c).push(()=>l.removeEventListener(p.eventName,h))}})),this.onStoreAvailable(c)}unsubscribeFromStores(){this[ht].forEach((c,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(c){var l;this[ht].has(c)&&this[ht].get(c)(),this[ht].delete(c),(l=this[Lr].get(c))===null||l===void 0||l.forEach(u=>u()),this[Lr].delete(c)}onStoreAvailable(c){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=ht,o=Nt,n=Lr,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),mc=class extends td(ot){};function ke(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function nt(e){return!!e&&!!e[K]}function Fe(e){var t;return!!e&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===ld}(e)||Array.isArray(e)||!!e[Cc]||!!(!((t=e.constructor)===null||t===void 0)&&t[Cc])||Ln(e)||In(e))}function Lt(e,t,o){o===void 0&&(o=!1),ar(e)===0?(o?Object.keys:nr)(e).forEach(function(n){o&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,a){return t(a,n,e)})}function ar(e){var t=e[K];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Ln(e)?2:In(e)?3:0}function or(e,t){return ar(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function rd(e,t){return ar(e)===2?e.get(t):e[t]}function Ec(e,t,o){var n=ar(e);n===2?e.set(t,o):n===3?e.add(o):e[t]=o}function Ac(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Ln(e){return sd&&e instanceof Map}function In(e){return cd&&e instanceof Set}function yt(e){return e.o||e.t}function _n(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Tc(e);delete t[K];for(var o=nr(t),n=0;n<o.length;n++){var a=o[n],i=t[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function Pn(e,t){return t===void 0&&(t=!1),kn(e)||nt(e)||!Fe(e)||(ar(e)>1&&(e.set=e.add=e.clear=e.delete=od),Object.freeze(e),t&&Lt(e,function(o,n){return Pn(n,!0)},!0)),e}function od(){ke(2)}function kn(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ye(e){var t=Nn[e];return t||ke(18,e),t}function nd(e,t){Nn[e]||(Nn[e]=t)}function wn(){return _r}function On(e,t){t&&(Ye("Patches"),e.u=[],e.s=[],e.v=t)}function vo(e){Rn(e),e.p.forEach(ad),e.p=null}function Rn(e){e===_r&&(_r=e.l)}function gc(e){return _r={p:[],l:_r,h:e,m:!0,_:0}}function ad(e){var t=e[K];t.i===0||t.i===1?t.j():t.g=!0}function Cn(e,t){t._=t.p.length;var o=t.p[0],n=e!==void 0&&e!==o;return t.h.O||Ye("ES5").S(t,e,n),n?(o[K].P&&(vo(t),ke(4)),Fe(e)&&(e=So(t,e),t.l||Oo(t,e)),t.u&&Ye("Patches").M(o[K].t,e,t.u,t.s)):e=So(t,o,[]),vo(t),t.u&&t.v(t.u,t.s),e!==Rc?e:void 0}function So(e,t,o){if(kn(t))return t;var n=t[K];if(!n)return Lt(t,function(l,u){return bc(e,n,t,l,u,o)},!0),t;if(n.A!==e)return t;if(!n.P)return Oo(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=_n(n.k):n.o,i=a,c=!1;n.i===3&&(i=new Set(a),a.clear(),c=!0),Lt(i,function(l,u){return bc(e,n,a,l,u,o,c)}),Oo(e,a,!1),o&&e.u&&Ye("Patches").N(n,o,e.u,e.s)}return n.o}function bc(e,t,o,n,a,i,c){if(nt(a)){var l=So(e,a,i&&t&&t.i!==3&&!or(t.R,n)?i.concat(n):void 0);if(Ec(o,n,l),!nt(l))return;e.m=!1}else c&&o.add(a);if(Fe(a)&&!kn(a)){if(!e.h.D&&e._<1)return;So(e,a),t&&t.A.l||Oo(e,a)}}function Oo(e,t,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&Pn(t,o)}function En(e,t){var o=e[K];return(o?yt(o):e)[t]}function xc(e,t){if(t in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,t);if(n)return n;o=Object.getPrototypeOf(o)}}function mt(e){e.P||(e.P=!0,e.l&&mt(e.l))}function An(e){e.o||(e.o=_n(e.t))}function Tn(e,t,o){var n=Ln(t)?Ye("MapSet").F(t,o):In(t)?Ye("MapSet").T(t,o):e.O?function(a,i){var c=Array.isArray(a),l={i:c?1:0,A:i?i.A:wn(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},u=l,p=Pr;c&&(u=[l],p=Ir);var m=Proxy.revocable(u,p),h=m.revoke,g=m.proxy;return l.k=g,l.j=h,g}(t,o):Ye("ES5").J(t,o);return(o?o.A:wn()).p.push(n),n}function id(e){return nt(e)||ke(22,e),function t(o){if(!Fe(o))return o;var n,a=o[K],i=ar(o);if(a){if(!a.P&&(a.i<4||!Ye("ES5").K(a)))return a.t;a.I=!0,n=vc(o,i),a.I=!1}else n=vc(o,i);return Lt(n,function(c,l){a&&rd(a.t,c)===l||Ec(n,c,t(l))}),i===3?new Set(n):n}(e)}function vc(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return _n(e)}function wc(){function e(c,l){var u=i[c];return u?u.enumerable=l:i[c]=u={configurable:!0,enumerable:l,get:function(){var p=this[K];return Pr.get(p,c)},set:function(p){var m=this[K];Pr.set(m,c,p)}},u}function t(c){for(var l=c.length-1;l>=0;l--){var u=c[l][K];if(!u.P)switch(u.i){case 5:n(u)&&mt(u);break;case 4:o(u)&&mt(u)}}}function o(c){for(var l=c.t,u=c.k,p=nr(u),m=p.length-1;m>=0;m--){var h=p[m];if(h!==K){var g=l[h];if(g===void 0&&!or(l,h))return!0;var v=u[h],x=v&&v[K];if(x?x.t!==g:!Ac(v,g))return!0}}var C=!!l[K];return p.length!==nr(l).length+(C?0:1)}function n(c){var l=c.k;if(l.length!==c.t.length)return!0;var u=Object.getOwnPropertyDescriptor(l,l.length-1);if(u&&!u.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function a(c){c.g&&ke(3,JSON.stringify(yt(c)))}var i={};nd("ES5",{J:function(c,l){var u=Array.isArray(c),p=function(h,g){if(h){for(var v=Array(g.length),x=0;x<g.length;x++)Object.defineProperty(v,""+x,e(x,!0));return v}var C=Tc(g);delete C[K];for(var L=nr(C),R=0;R<L.length;R++){var T=L[R];C[T]=e(T,h||!!C[T].enumerable)}return Object.create(Object.getPrototypeOf(g),C)}(u,c),m={i:u?5:4,A:l?l.A:wn(),P:!1,I:!1,R:{},l,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,K,{value:m,writable:!0}),p},S:function(c,l,u){u?nt(l)&&l[K].A===c&&t(c.p):(c.u&&function p(m){if(m&&typeof m=="object"){var h=m[K];if(h){var g=h.t,v=h.k,x=h.R,C=h.i;if(C===4)Lt(v,function(B){B!==K&&(g[B]!==void 0||or(g,B)?x[B]||p(v[B]):(x[B]=!0,mt(h)))}),Lt(g,function(B){v[B]!==void 0||or(v,B)||(x[B]=!1,mt(h))});else if(C===5){if(n(h)&&(mt(h),x.length=!0),v.length<g.length)for(var L=v.length;L<g.length;L++)x[L]=!1;else for(var R=g.length;R<v.length;R++)x[R]=!0;for(var T=Math.min(v.length,g.length),k=0;k<T;k++)v.hasOwnProperty(k)||(x[k]=!0),x[k]===void 0&&p(v[k])}}}}(c.p[0]),t(c.p))},K:function(c){return c.i===4?o(c):n(c)}})}var Sc,_r,Dn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",sd=typeof Map<"u",cd=typeof Set<"u",Oc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Rc=Dn?Symbol.for("immer-nothing"):((Sc={})["immer-nothing"]=!0,Sc),Cc=Dn?Symbol.for("immer-draftable"):"__$immer_draftable",K=Dn?Symbol.for("immer-state"):"__$immer_state";var ld=""+Object.prototype.constructor,nr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Tc=Object.getOwnPropertyDescriptors||function(e){var t={};return nr(e).forEach(function(o){t[o]=Object.getOwnPropertyDescriptor(e,o)}),t},Nn={},Pr={get:function(e,t){if(t===K)return e;var o=yt(e);if(!or(o,t))return function(a,i,c){var l,u=xc(i,c);return u?"value"in u?u.value:(l=u.get)===null||l===void 0?void 0:l.call(a.k):void 0}(e,o,t);var n=o[t];return e.I||!Fe(n)?n:n===En(e.t,t)?(An(e),e.o[t]=Tn(e.A.h,n,e)):n},has:function(e,t){return t in yt(e)},ownKeys:function(e){return Reflect.ownKeys(yt(e))},set:function(e,t,o){var n=xc(yt(e),t);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var a=En(yt(e),t),i=a?.[K];if(i&&i.t===o)return e.o[t]=o,e.R[t]=!1,!0;if(Ac(o,a)&&(o!==void 0||or(e.t,t)))return!0;An(e),mt(e)}return e.o[t]===o&&(o!==void 0||t in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[t])||(e.o[t]=o,e.R[t]=!0),!0},deleteProperty:function(e,t){return En(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,An(e),mt(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var o=yt(e),n=Reflect.getOwnPropertyDescriptor(o,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:o[t]}},defineProperty:function(){ke(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){ke(12)}},Ir={};Lt(Pr,function(e,t){Ir[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Ir.deleteProperty=function(e,t){return Ir.set.call(this,e,t,void 0)},Ir.set=function(e,t,o){return Pr.set.call(this,e[0],t,o,e[0])};var dd=function(){function e(o){var n=this;this.O=Oc,this.D=!0,this.produce=function(a,i,c){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var u=n;return function(C){var L=this;C===void 0&&(C=l);for(var R=arguments.length,T=Array(R>1?R-1:0),k=1;k<R;k++)T[k-1]=arguments[k];return u.produce(C,function(B){var M;return(M=i).call.apply(M,[L,B].concat(T))})}}var p;if(typeof i!="function"&&ke(6),c!==void 0&&typeof c!="function"&&ke(7),Fe(a)){var m=gc(n),h=Tn(n,a,void 0),g=!0;try{p=i(h),g=!1}finally{g?vo(m):Rn(m)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(C){return On(m,c),Cn(C,m)},function(C){throw vo(m),C}):(On(m,c),Cn(p,m))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===Rc&&(p=void 0),n.D&&Pn(p,!0),c){var v=[],x=[];Ye("Patches").M(a,p,v,x),c(v,x)}return p}ke(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var m=arguments.length,h=Array(m>1?m-1:0),g=1;g<m;g++)h[g-1]=arguments[g];return n.produceWithPatches(p,function(v){return a.apply(void 0,[v].concat(h))})};var c,l,u=n.produce(a,i,function(p,m){c=p,l=m});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,c,l]}):[u,c,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var t=e.prototype;return t.createDraft=function(o){Fe(o)||ke(8),nt(o)&&(o=id(o));var n=gc(this),a=Tn(this,o,void 0);return a[K].C=!0,Rn(n),a},t.finishDraft=function(o,n){var a=o&&o[K],i=a.A;return On(i,n),Cn(void 0,i)},t.setAutoFreeze=function(o){this.D=o},t.setUseProxies=function(o){o&&!Oc&&ke(20),this.O=o},t.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var c=Ye("Patches").$;return nt(o)?c(o,n):this.produce(o,function(l){return c(l,n)})},e}(),Le=new dd,ud=Le.produce,Sx=Le.produceWithPatches.bind(Le),Ox=Le.setAutoFreeze.bind(Le),Cx=Le.setUseProxies.bind(Le),Ex=Le.applyPatches.bind(Le),Ax=Le.createDraft.bind(Le),wx=Le.finishDraft.bind(Le),Co=ud;function It(e){"@babel/helpers - typeof";return It=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},It(e)}function Nc(e,t){if(It(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,t||"default");if(It(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Lc(e){var t=Nc(e,"string");return It(t)=="symbol"?t:t+""}function Ic(e,t,o){return(t=Lc(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function _c(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,n)}return o}function Bn(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?_c(Object(o),!0).forEach(function(n){Ic(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):_c(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function me(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Pc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Mn=function(){return Math.random().toString(36).substring(7).split("").join(".")},Eo={INIT:"@@redux/INIT"+Mn(),REPLACE:"@@redux/REPLACE"+Mn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Mn()}};function pd(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Un(e,t,o){var n;if(typeof t=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(me(0));if(typeof t=="function"&&typeof o>"u"&&(o=t,t=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(me(1));return o(Un)(e,t)}if(typeof e!="function")throw new Error(me(2));var a=e,i=t,c=[],l=c,u=!1;function p(){l===c&&(l=c.slice())}function m(){if(u)throw new Error(me(3));return i}function h(C){if(typeof C!="function")throw new Error(me(4));if(u)throw new Error(me(5));var L=!0;return p(),l.push(C),function(){if(L){if(u)throw new Error(me(6));L=!1,p();var T=l.indexOf(C);l.splice(T,1),c=null}}}function g(C){if(!pd(C))throw new Error(me(7));if(typeof C.type>"u")throw new Error(me(8));if(u)throw new Error(me(9));try{u=!0,i=a(i,C)}finally{u=!1}for(var L=c=l,R=0;R<L.length;R++){var T=L[R];T()}return C}function v(C){if(typeof C!="function")throw new Error(me(10));a=C,g({type:Eo.REPLACE})}function x(){var C,L=h;return C={subscribe:function(T){if(typeof T!="object"||T===null)throw new Error(me(11));function k(){T.next&&T.next(m())}k();var B=L(k);return{unsubscribe:B}}},C[Pc]=function(){return this},C}return g({type:Eo.INIT}),n={dispatch:g,subscribe:h,getState:m,replaceReducer:v},n[Pc]=x,n}function fd(e){Object.keys(e).forEach(function(t){var o=e[t],n=o(void 0,{type:Eo.INIT});if(typeof n>"u")throw new Error(me(12));if(typeof o(void 0,{type:Eo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(me(13))})}function kc(e){for(var t=Object.keys(e),o={},n=0;n<t.length;n++){var a=t[n];typeof e[a]=="function"&&(o[a]=e[a])}var i=Object.keys(o),c,l;try{fd(o)}catch(u){l=u}return function(p,m){if(p===void 0&&(p={}),l)throw l;if(0)var h;for(var g=!1,v={},x=0;x<i.length;x++){var C=i[x],L=o[C],R=p[C],T=L(R,m);if(typeof T>"u"){var k=m&&m.type;throw new Error(me(14))}v[C]=T,g=g||T!==R}return g=g||i.length!==Object.keys(p).length,g?v:p}}function ir(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function Dc(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(me(15))},c={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=t.map(function(u){return u(c)});return i=ir.apply(void 0,l)(a.dispatch),Bn(Bn({},a),{},{dispatch:i})}}}function Bc(e){var t=function(n){var a=n.dispatch,i=n.getState;return function(c){return function(l){return typeof l=="function"?l(a,i,e):c(l)}}};return t}var Mc=Bc();Mc.withExtraArgument=Bc;var $n=Mc;var Wc=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(t,o)};return function(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(t,o);function n(){this.constructor=t}t.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),hd=function(e,t){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(p){return function(m){return u([p,m])}}function u(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){o.label=p[1];break}if(p[0]===6&&o.label<i[1]){o.label=i[1],i=p;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(p);break}i[2]&&o.ops.pop(),o.trys.pop();continue}p=t.call(e,o)}catch(m){p=[6,m],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},sr=function(e,t){for(var o=0,n=t.length,a=e.length;o<n;o++,a++)e[a]=t[o];return e},yd=Object.defineProperty,md=Object.defineProperties,gd=Object.getOwnPropertyDescriptors,Uc=Object.getOwnPropertySymbols,bd=Object.prototype.hasOwnProperty,xd=Object.prototype.propertyIsEnumerable,$c=function(e,t,o){return t in e?yd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o},gt=function(e,t){for(var o in t||(t={}))bd.call(t,o)&&$c(e,o,t[o]);if(Uc)for(var n=0,a=Uc(t);n<a.length;n++){var o=a[n];xd.call(t,o)&&$c(e,o,t[o])}return e},Fn=function(e,t){return md(e,gd(t))},vd=function(e,t,o){return new Promise(function(n,a){var i=function(u){try{l(o.next(u))}catch(p){a(p)}},c=function(u){try{l(o.throw(u))}catch(p){a(p)}},l=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(i,c)};l((o=o.apply(e,t)).next())})};var Sd=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ir:ir.apply(null,arguments)},Gx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Od(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var o=t;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return t===o}var Cd=function(e){Wc(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(t.bind.apply(t,sr([void 0],o[0].concat(this)))):new(t.bind.apply(t,sr([void 0],o.concat(this))))},t}(Array),Ed=function(e){Wc(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(t.bind.apply(t,sr([void 0],o[0].concat(this)))):new(t.bind.apply(t,sr([void 0],o.concat(this))))},t}(Array);function zn(e){return Fe(e)?Co(e,function(){}):e}function Ad(e){return typeof e=="boolean"}function wd(){return function(t){return Rd(t)}}function Rd(e){e===void 0&&(e={});var t=e.thunk,o=t===void 0?!0:t,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,c=i===void 0?!0:i,l=new Cd;if(o&&(Ad(o)?l.push($n):l.push($n.withExtraArgument(o.extraArgument))),0){if(a)var u;if(c)var p}return l}var Hn=!0;function zc(e){var t=wd(),o=e||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,c=i===void 0?t():i,l=o.devTools,u=l===void 0?!0:l,p=o.preloadedState,m=p===void 0?void 0:p,h=o.enhancers,g=h===void 0?void 0:h,v;if(typeof a=="function")v=a;else if(Od(a))v=kc(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var x=c;if(typeof x=="function"&&(x=x(t),!Hn&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Hn&&x.some(function(B){return typeof B!="function"}))throw new Error("each middleware provided to configureStore must be a function");var C=Dc.apply(void 0,x),L=ir;u&&(L=Sd(gt({trace:!Hn},typeof u=="object"&&u)));var R=new Ed(C),T=R;Array.isArray(g)?T=sr([C],g):typeof g=="function"&&(T=g(R));var k=L.apply(void 0,T);return Un(v,m,k)}function bt(e,t){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(t){var i=t.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return gt(gt({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return o.toString=function(){return""+e},o.type=e,o.match=function(n){return n.type===e},o}function Gc(e){var t={},o=[],n,a={addCase:function(i,c){var l=typeof i=="string"?i:i.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=c,a},addMatcher:function(i,c){return o.push({matcher:i,reducer:c}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[t,o,n]}function Td(e){return typeof e=="function"}function Nd(e,t,o,n){o===void 0&&(o=[]);var a=typeof t=="function"?Gc(t):[t,o,n],i=a[0],c=a[1],l=a[2],u;if(Td(e))u=function(){return zn(e())};else{var p=zn(e);u=function(){return p}}function m(h,g){h===void 0&&(h=u());var v=sr([i[g.type]],c.filter(function(x){var C=x.matcher;return C(g)}).map(function(x){var C=x.reducer;return C}));return v.filter(function(x){return!!x}).length===0&&(v=[l]),v.reduce(function(x,C){if(C)if(nt(x)){var L=x,R=C(L,g);return R===void 0?x:R}else{if(Fe(x))return Co(x,function(T){return C(T,g)});var R=C(x,g);if(R===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return R}return x},h)}return m.getInitialState=u,m}function Ld(e,t){return e+"/"+t}function jc(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:zn(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},c={},l={};a.forEach(function(m){var h=n[m],g=Ld(t,m),v,x;"reducer"in h?(v=h.reducer,x=h.prepare):v=h,i[m]=v,c[g]=v,l[m]=x?bt(g,x):bt(g)});function u(){var m=typeof e.extraReducers=="function"?Gc(e.extraReducers):[e.extraReducers],h=m[0],g=h===void 0?{}:h,v=m[1],x=v===void 0?[]:v,C=m[2],L=C===void 0?void 0:C,R=gt(gt({},g),c);return Nd(o,function(T){for(var k in R)T.addCase(k,R[k]);for(var B=0,M=x;B<M.length;B++){var Se=M[B];T.addMatcher(Se.matcher,Se.reducer)}L&&T.addDefaultCase(L)})}var p;return{name:t,reducer:function(m,h){return p||(p=u()),p(m,h)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var Id="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",_d=function(e){e===void 0&&(e=21);for(var t="",o=e;o--;)t+=Id[Math.random()*64|0];return t},Pd=["name","message","stack","code"],Wn=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),Fc=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),kd=function(e){if(typeof e=="object"&&e!==null){for(var t={},o=0,n=Pd;o<n.length;o++){var a=n[o];typeof e[a]=="string"&&(t[a]=e[a])}return t}return{message:String(e)}},Zx=function(){function e(t,o,n){var a=bt(t+"/fulfilled",function(m,h,g,v){return{payload:m,meta:Fn(gt({},v||{}),{arg:g,requestId:h,requestStatus:"fulfilled"})}}),i=bt(t+"/pending",function(m,h,g){return{payload:void 0,meta:Fn(gt({},g||{}),{arg:h,requestId:m,requestStatus:"pending"})}}),c=bt(t+"/rejected",function(m,h,g,v,x){return{payload:v,error:(n&&n.serializeError||kd)(m||"Rejected"),meta:Fn(gt({},x||{}),{arg:g,requestId:h,rejectedWithValue:!!v,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),l=!1,u=typeof AbortController<"u"?AbortController:function(){function m(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return m.prototype.abort=function(){},m}();function p(m){return function(h,g,v){var x=n?.idGenerator?n.idGenerator(m):_d(),C=new u,L,R=!1;function T(B){L=B,C.abort()}var k=function(){return vd(this,null,function(){var B,M,Se,Ge,ge,je,ce;return hd(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),Ge=(B=n?.condition)==null?void 0:B.call(n,m,{getState:g,extra:v}),Bd(Ge)?[4,Ge]:[3,2];case 1:Ge=y.sent(),y.label=2;case 2:if(Ge===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return R=!0,ge=new Promise(function(b,_){return C.signal.addEventListener("abort",function(){return _({name:"AbortError",message:L||"Aborted"})})}),h(i(x,m,(M=n?.getPendingMeta)==null?void 0:M.call(n,{requestId:x,arg:m},{getState:g,extra:v}))),[4,Promise.race([ge,Promise.resolve(o(m,{dispatch:h,getState:g,extra:v,requestId:x,signal:C.signal,abort:T,rejectWithValue:function(b,_){return new Wn(b,_)},fulfillWithValue:function(b,_){return new Fc(b,_)}})).then(function(b){if(b instanceof Wn)throw b;return b instanceof Fc?a(b.payload,x,m,b.meta):a(b,x,m)})])];case 3:return Se=y.sent(),[3,5];case 4:return je=y.sent(),Se=je instanceof Wn?c(null,x,m,je.payload,je.meta):c(je,x,m),[3,5];case 5:return ce=n&&!n.dispatchConditionRejection&&c.match(Se)&&Se.meta.condition,ce||h(Se),[2,Se]}})})}();return Object.assign(k,{abort:T,requestId:x,arg:m,unwrap:function(){return k.then(Dd)}})}}return Object.assign(p,{pending:i,rejected:c,fulfilled:a,typePrefix:t})}return e.withTypes=function(){return e},e}();function Dd(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Bd(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Kc="listener",Vc="completed",Zc="cancelled",qx="task-"+Zc,Yx="task-"+Vc,Xx=Kc+"-"+Zc,Jx=Kc+"-"+Vc;var Gn="listenerMiddleware";var Qx=bt(Gn+"/add"),ev=bt(Gn+"/removeAll"),tv=bt(Gn+"/remove");var Hc,rv=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(Hc||(Hc=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},Md=function(e){return function(t){setTimeout(t,e)}},ov=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Md(10);wc();var Ud=ho(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}),Ao=class extends Ud(Object){};window.ftReduxStores||(window.ftReduxStores={});var qc=class e extends Ao{static get(t){var o;let n=typeof t=="string"?t:t.name,a=typeof t=="string"?void 0:t,i=window.ftReduxStores[n];if(xo(i))return i;if(a==null)return;let c=jc({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=zc({reducer:(u,p)=>p.type==="CLEAR_FT_REDUX_STORE"?c.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...p.overwrites}:c.reducer(u,p)});return window.ftReduxStores[a.name]=new e(c,l,a.eventBus)}constructor(t,o,n){super(),this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new yo;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,c,l)=>{let u=c,p=i[u];return p?(...m)=>{let h=p(...m.map(a));return this.reduxStore.dispatch(h),h}:m=>{this.setState({[u]:a(m)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var wo=class{static format(t,o,n,a){return window.moment?window.moment(t).locale(o).format(this.getMomentDateFormat(n,a)):this.getIntlDateTime(t,o,n,a)}static getMomentDateFormat(t,o){return t?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(t,o,n,a){let i=typeof t=="string"?new Date(t):t,c=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(i);if(!a)return c;let l=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(i);return`${c} ${l}`}static getTimezoneAsString(){let t=n=>String(Math.floor(n)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${t(Math.abs(o)/60)}:${t(Math.abs(o)%60)}`}};var Yc=S(P()),Ro=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},Rv=(0,Yc.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(N)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,i;return((i=(a=this.metadataDescriptors.find(l=>l.key===n))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1)?l=>wo.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Ro([(0,jn.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Ro([(0,jn.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Ro([Sn({store:N.name,selector:o=>{var n,a;return(a=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],t.prototype,"metadataDescriptors",void 0),Ro([Sn({store:N.name})],t.prototype,"uiLocale",void 0),t});var Lo=S(P());var To=class extends Te{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=N.getState().session;return!!t?.sessionAuthenticated}};var No=class extends Te{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 t=N.getState().session;return!!t?.sessionAuthenticated}};var $d="ft-user-assets",Fd={setAssetCount:(e,t)=>{let{userAssetType:o,count:n}=t.payload.assetCount;e.assetCounts.allAsset[o]=n},clearAssetCount:e=>{Object.values(Ne).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let o=t.payload.mapId;e.assetCounts.bookmarkByMap[o]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:o,mapId:n,asset:a}=t.payload;switch(o){case Ne.BOOKMARKS:e.bookmarks?e.bookmarks.push(a):e.bookmarks=[a];break;case Ne.SEARCHES:e.savedSearches?e.savedSearches.push(a):e.savedSearches=[a];break}let i=e.assetCounts.allAsset[o];if(i!==void 0&&(e.assetCounts.allAsset[o]=i+1),o===Ne.BOOKMARKS&&n!==void 0){let c=e.assetCounts.bookmarkByMap[n];c!==void 0&&(e.assetCounts.bookmarkByMap[n]=c+1)}},removeAsset:(e,t)=>{var o,n;let{assetType:a,mapId:i,assetId:c}=t.payload;switch(a){case Ne.BOOKMARKS:e.bookmarks=(o=e.bookmarks)===null||o===void 0?void 0:o.filter(u=>u.id!==c);break;case Ne.SEARCHES:e.savedSearches=(n=e.savedSearches)===null||n===void 0?void 0:n.filter(u=>u.id!==c);break}let l=e.assetCounts.allAsset[a];if(l!==void 0&&l>0&&(e.assetCounts.allAsset[a]=l-1),a===Ne.BOOKMARKS&&i!==void 0){let u=e.assetCounts.bookmarkByMap[i];u!==void 0&&u>0&&(e.assetCounts.bookmarkByMap[i]=u-1)}}},Ie=Lo.FtReduxStore.get({name:$d,reducers:Fd,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ne).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Kn=class{constructor(t=new To,o=new No){this.assetCountsService=t,this.assetLabelsService=o,this.currentSession=N.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ao,this.savedSearchesService=new uo,N.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:o}=N.getState();(0,Lo.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Ie.actions.clearAssetCount(),Ie.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ie.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ie.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();Ie.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();Ie.actions.assetLabels(t)}async loadAssetCount(t){let o=await this.assetCountsService.getUserAssetCount(t);o&&Ie.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(t){let o=await this.assetCountsService.getUserBookmarkCountByMap(t);o&&Ie.actions.setBookmarkCountByMap({count:o.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let o=Object.keys(Ie.getState().assetCounts.bookmarkByMap).length!==0;t===Ne.BOOKMARKS&&o&&Ie.actions.clearBookmarkCountByMap(),Ie.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let o=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Ie.actions.bookmarks(o)}}},Hd=new Kn;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Hd);(0,Xc.customElement)("ft-app-context")(z);var el=S(te());var Vn=class{fromLocalizableLabel(t){return t.type=="PLAIN_TEXT"?{message:t.text}:{key:t.key,custom:t.type=="LOCALIZED_CUSTOM",context:t.context,message:t.key}}fromAttribute(t){if(t!=null)try{return JSON.parse(t)}catch{if(this.isI18nKey(t)){let[n,a]=t.split(".");return{context:n,key:a,message:""}}return{message:t}}}toAttribute(t){if(t!=null)return JSON.stringify(t)}isI18nKey(t){return t.match(/^[\w-]+\.[\w-]+$/)}},Jc=new Vn;var Wd=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},zd=Symbol("i18nAttributes"),Gd=Symbol("i18nListAttributes"),tl=Symbol("i18nProperties"),Io=Symbol("i18nContexts"),kr=Symbol("i18nUnsubs"),lr=(0,cr.applyMixinOnce)(Symbol("withI18n"),function(e){var t,o;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[o]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?so:er}i18n(i){let{context:c,key:l,message:u}=i,{custom:p,args:m,argsProvider:h}=i;if(c&&l){this.hasI18nContext(c)||this.addI18nContext(c,void 0,p);let g=m??(h?h(this):[]);return this.getI18nService(p).resolveMessage(c,l,...g)}return u}async awaitI18n(i){let{context:c,custom:l}=i;return c&&await this.getI18nService(l).prepareContext(c),this.i18n(i)}customI18n(i,c){if(Jc.isI18nKey(i)){let[l,u]=i.split(".");return this.i18n({custom:!0,context:l,key:u,...c})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((c,l,u)=>i.has(l)||typeof c.argsProvider=="function"),this.updateI18nProperties(c=>typeof c.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((c,l,u)=>{var p;return((p=u?.context)===null||p===void 0?void 0:p.toLowerCase())===i}),this.updateI18nProperties(c=>c.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var c,l;let u=this,p=(m,h,g)=>g?.context&&g.key&&i(m,h,g)?{...g,message:this.i18n({context:g.context,key:g.key,custom:g.custom,...m})}:g;(c=this[zd])===null||c===void 0||c.forEach((m,h)=>u[h]=p(m,h,u[h])),(l=this[Gd])===null||l===void 0||l.forEach((m,h)=>{var g;return u[h]=(g=u[h])===null||g===void 0?void 0:g.map(v=>p(m,h,v))})}updateI18nProperties(i){var c;(c=this[tl])===null||c===void 0||c.forEach((l,u)=>{i(l,u)&&(this[u]=this.i18n(l))})}addI18nMessages(i,c,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,c,l)}addI18nContext(i,c,l){let u=(typeof i=="string"?i:i.name).toLowerCase();l=typeof i=="string"?l:i.custom,this[Io].set(u,{isCustomContext:l}),this[kr].has(u)||this[kr].set(u,this.getI18nService(l).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(l).prepareContext(u,c)}hasI18nContext(i){return this[Io].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Io].forEach((i,c)=>this.addI18nContext(c,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[kr].forEach(i=>i()),this[kr].clear()}}return t=Io,o=kr,Wd([(0,el.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),Qc=class extends lr(cr.FtLitElement){},_o=class extends lr(cr.FtLitElementRedux){};var Dr=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},He=class extends _o{constructor(){super(),this.editorMode=!1,this.addStore(N)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Po.nothing:Po.html`
1149
+ `}connectedCallback(){super.connectedCallback(),N.addEventListener(wt.eventName,this.reloadConfiguration)}disconnectedCallback(){N.addEventListener(wt.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(t){var o,n,a,i,c,l,u;super.update(t),t.has("baseUrl")&&(N.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&N.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&N.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&N.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&N.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&N.actions.noCustom(this.noCustom),t.has("editorMode")&&N.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&N.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&N.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(p=>er.addContext(p)),t.has("openExternalDocumentInNewTab")&&N.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&N.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&N.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(N.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),N.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),N.actions.searchInAllLanguagesAllowed((c=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&c!==void 0?c:!1)),t.has("authenticationRequired")&&N.actions.authenticationRequired(this.authenticationRequired),t.has("availableContentLocales")&&N.actions.availableContentLocales((u=(l=this.availableContentLocales)===null||l===void 0?void 0:l.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 t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>oc(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};z.elementDefinitions={};z.styles=bs;ae([(0,he.property)()],z.prototype,"baseUrl",void 0);ae([(0,he.property)()],z.prototype,"apiIntegrationIdentifier",void 0);ae([(0,he.property)()],z.prototype,"apiIntegrationAppVersion",void 0);ae([(0,he.property)()],z.prototype,"uiLocale",void 0);ae([(0,$e.jsonProperty)(null)],z.prototype,"availableUiLocales",void 0);ae([(0,$e.jsonProperty)(null)],z.prototype,"metadataConfiguration",void 0);ae([(0,he.property)({type:Boolean})],z.prototype,"editorMode",void 0);ae([(0,he.property)({type:Boolean})],z.prototype,"noCustom",void 0);ae([(0,he.property)({type:Boolean})],z.prototype,"openExternalDocumentInNewTab",void 0);ae([(0,he.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],z.prototype,"noCustomComponent",void 0);ae([(0,he.property)({type:Boolean})],z.prototype,"withManualResources",void 0);ae([(0,he.property)({type:Boolean})],z.prototype,"navigatorOnline",void 0);ae([(0,he.property)({type:Boolean})],z.prototype,"forcedOffline",void 0);ae([(0,he.property)({type:Object})],z.prototype,"apiProvider",void 0);ae([(0,he.property)({type:Boolean})],z.prototype,"authenticationRequired",void 0);ae([(0,$e.jsonProperty)([])],z.prototype,"messageContexts",void 0);ae([(0,$e.jsonProperty)(void 0)],z.prototype,"session",void 0);ae([(0,he.state)()],z.prototype,"localesConfiguration",void 0);ae([(0,he.state)()],z.prototype,"availableContentLocales",void 0);var jn=S(re());function Ql(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let o,n,a;if(Array.isArray(e)){if(o=e.length,o!=t.length)return!1;for(n=o;n--!==0;)if(!fo(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!fo(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let i=c=>Object.keys(c).filter(l=>c[l]!=null);if(a=i(e),o=a.length,o!==i(t).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[n]))return!1;for(n=o;n--!==0;){let c=a[n];if(!fo(e[c],t[c]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function fo(e,t){try{return Ql(e,t)}catch{return!1}}function Tr(e,t){return!fo(e,t)}function ho(e,t){let o=n=>n[e]===!0;return n=>{if(o(n))return n;let a=t(n);return a[e]=!0,a}}var ac=S(re(),1);var Sn=e=>{let t=e??{};return(o,n)=>{var a;let i={hasChanged:Tr,attribute:!1,...t};(0,ac.property)(i)(o,n);let c=o.constructor;c.reduxProperties=new Map(c.reduxProperties),c.reduxProperties.set(n,{selector:(a=t.selector)!==null&&a!==void 0?a:l=>l[n],store:t.store})}};var yo=class{constructor(){this.queue=[]}add(t,o=!1){o&&this.clear(t.type),this.queue.push(t)}consume(t){let o=this.queue.find(n=>n.type===t);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(t){typeof t=="string"?this.queue=this.queue.filter(o=>o.type!==t):this.queue=this.queue.filter(o=>!t.test(o.type))}};var rr=S(re(),1);var ic=S(re(),1);function sc(e,t){let o=()=>JSON.parse(JSON.stringify(e));return(0,ic.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return o();try{return JSON.parse(n)}catch{return o()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Tr,...t??{}})}var mo=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,o;let n=[...this.callbacks];this.callbacks=[];let a=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let c of n)try{await c()}catch(l){a(l);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var lc=S(H(),1);var go=globalThis,ed=go.ShadowRoot&&(go.ShadyCSS===void 0||go.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ix=Symbol();var cc=(e,t)=>{if(ed)e.adoptedStyleSheets=t.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of t){let n=document.createElement("style"),a=go.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,e.appendChild(n)}};var bo=class extends lc.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([a,i])=>t.registry.define(a,i)));let o={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return cc(n,t.elementStyles),n}};function dc(e,t,...o){var n;let a=e.querySelector(t);for(let i of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}var Nr=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},hc,uc=Symbol("constructorPrototype"),pc=Symbol("constructorName"),yc=Symbol("exportpartsDebouncer"),fc=Symbol("dynamicDependenciesLoaded"),ot=class extends bo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[hc]=new mo(5),this[pc]=this.constructor.name,this[uc]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[pc]&&Object.setPrototypeOf(this,this[uc])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let t=this.constructor;t[fc]||(t[fc]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let i=[...a??[],n];o=dc(this.shadowRoot,...i)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}scheduleExportpartsUpdate(){var t,o,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[yc].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(t){var o,n,a,i,c,l;let u=g=>g!=null&&g.trim().length>0,p=t.filter(u).map(g=>g.trim());if(p.length===0){this.removeAttribute("exportparts");return}let m=new Set;for(let g of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let v=(i=(a=g.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],x=(l=(c=g.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(C=>C.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...v,...x).filter(u).map(C=>C.trim()).forEach(C=>m.add(C))}if(m.size===0){this.removeAttribute("exportparts");return}let h=[...m.values()].flatMap(g=>p.map(v=>`${g}:${v}--${g}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};hc=yc;Nr([(0,rr.property)()],ot.prototype,"exportpartsPrefix",void 0);Nr([sc([])],ot.prototype,"exportpartsPrefixes",void 0);Nr([(0,rr.property)()],ot.prototype,"customStylesheet",void 0);Nr([(0,rr.property)()],ot.prototype,"elementToFocus",void 0);Nr([(0,rr.state)()],ot.prototype,"useAdoptedStyleSheets",void 0);function xo(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Lr=Symbol("internalReduxEventsUnsubscribers"),ht=Symbol("internalStoresUnsubscribers"),Nt=Symbol("internalStores"),td=ho(Symbol("withRedux"),function(e){var t,o,n;class a extends e{constructor(){super(...arguments),this[t]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(c){super.willUpdate(c),[...this.reduxConstructor.reduxReactiveProperties].some(l=>c.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[Nt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Nt].values()][0]}getStore(c){return c==null?this.getUnnamedStore():this[Nt].get(c)}addStore(c,l){var u;l=(u=l??c.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(l),this[Nt].set(l,c),this.subscribeToStore(l,c),this.updateFromStores()}removeStore(c){let l=typeof c=="string"?c:c.name;this.unsubscribeFromStore(l),this[Nt].delete(l)}setupStores(){this.unsubscribeFromStores(),this[Nt].forEach((c,l)=>this.subscribeToStore(l,c)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((c,l)=>{let u=this.constructor.getPropertyOptions(l);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:l)){let p=this.getStore(c.store);p&&(c.store?this[ht].has(c.store):this[ht].size>0)&&(this[l]=c.selector(p.getState(),this))}})}subscribeToStore(c,l){var u;this[ht].set(c,l.subscribe(()=>this.updateFromStores())),this[Lr].set(c,[]),xo(l)&&l.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((p,m)=>{if(typeof this[m]=="function"&&(!p.store||l.name===p.store)){let h=g=>this[m](g);l.addEventListener(p.eventName,h),this[Lr].get(c).push(()=>l.removeEventListener(p.eventName,h))}})),this.onStoreAvailable(c)}unsubscribeFromStores(){this[ht].forEach((c,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(c){var l;this[ht].has(c)&&this[ht].get(c)(),this[ht].delete(c),(l=this[Lr].get(c))===null||l===void 0||l.forEach(u=>u()),this[Lr].delete(c)}onStoreAvailable(c){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=ht,o=Nt,n=Lr,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),mc=class extends td(ot){};function ke(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function nt(e){return!!e&&!!e[K]}function Fe(e){var t;return!!e&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===ld}(e)||Array.isArray(e)||!!e[Cc]||!!(!((t=e.constructor)===null||t===void 0)&&t[Cc])||Ln(e)||In(e))}function Lt(e,t,o){o===void 0&&(o=!1),ar(e)===0?(o?Object.keys:nr)(e).forEach(function(n){o&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,a){return t(a,n,e)})}function ar(e){var t=e[K];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Ln(e)?2:In(e)?3:0}function or(e,t){return ar(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function rd(e,t){return ar(e)===2?e.get(t):e[t]}function Ec(e,t,o){var n=ar(e);n===2?e.set(t,o):n===3?e.add(o):e[t]=o}function Ac(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Ln(e){return sd&&e instanceof Map}function In(e){return cd&&e instanceof Set}function yt(e){return e.o||e.t}function _n(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Tc(e);delete t[K];for(var o=nr(t),n=0;n<o.length;n++){var a=o[n],i=t[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function Pn(e,t){return t===void 0&&(t=!1),kn(e)||nt(e)||!Fe(e)||(ar(e)>1&&(e.set=e.add=e.clear=e.delete=od),Object.freeze(e),t&&Lt(e,function(o,n){return Pn(n,!0)},!0)),e}function od(){ke(2)}function kn(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ye(e){var t=Nn[e];return t||ke(18,e),t}function nd(e,t){Nn[e]||(Nn[e]=t)}function wn(){return _r}function On(e,t){t&&(Ye("Patches"),e.u=[],e.s=[],e.v=t)}function vo(e){Rn(e),e.p.forEach(ad),e.p=null}function Rn(e){e===_r&&(_r=e.l)}function gc(e){return _r={p:[],l:_r,h:e,m:!0,_:0}}function ad(e){var t=e[K];t.i===0||t.i===1?t.j():t.g=!0}function Cn(e,t){t._=t.p.length;var o=t.p[0],n=e!==void 0&&e!==o;return t.h.O||Ye("ES5").S(t,e,n),n?(o[K].P&&(vo(t),ke(4)),Fe(e)&&(e=So(t,e),t.l||Oo(t,e)),t.u&&Ye("Patches").M(o[K].t,e,t.u,t.s)):e=So(t,o,[]),vo(t),t.u&&t.v(t.u,t.s),e!==Rc?e:void 0}function So(e,t,o){if(kn(t))return t;var n=t[K];if(!n)return Lt(t,function(l,u){return bc(e,n,t,l,u,o)},!0),t;if(n.A!==e)return t;if(!n.P)return Oo(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=_n(n.k):n.o,i=a,c=!1;n.i===3&&(i=new Set(a),a.clear(),c=!0),Lt(i,function(l,u){return bc(e,n,a,l,u,o,c)}),Oo(e,a,!1),o&&e.u&&Ye("Patches").N(n,o,e.u,e.s)}return n.o}function bc(e,t,o,n,a,i,c){if(nt(a)){var l=So(e,a,i&&t&&t.i!==3&&!or(t.R,n)?i.concat(n):void 0);if(Ec(o,n,l),!nt(l))return;e.m=!1}else c&&o.add(a);if(Fe(a)&&!kn(a)){if(!e.h.D&&e._<1)return;So(e,a),t&&t.A.l||Oo(e,a)}}function Oo(e,t,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&Pn(t,o)}function En(e,t){var o=e[K];return(o?yt(o):e)[t]}function xc(e,t){if(t in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,t);if(n)return n;o=Object.getPrototypeOf(o)}}function mt(e){e.P||(e.P=!0,e.l&&mt(e.l))}function An(e){e.o||(e.o=_n(e.t))}function Tn(e,t,o){var n=Ln(t)?Ye("MapSet").F(t,o):In(t)?Ye("MapSet").T(t,o):e.O?function(a,i){var c=Array.isArray(a),l={i:c?1:0,A:i?i.A:wn(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},u=l,p=Pr;c&&(u=[l],p=Ir);var m=Proxy.revocable(u,p),h=m.revoke,g=m.proxy;return l.k=g,l.j=h,g}(t,o):Ye("ES5").J(t,o);return(o?o.A:wn()).p.push(n),n}function id(e){return nt(e)||ke(22,e),function t(o){if(!Fe(o))return o;var n,a=o[K],i=ar(o);if(a){if(!a.P&&(a.i<4||!Ye("ES5").K(a)))return a.t;a.I=!0,n=vc(o,i),a.I=!1}else n=vc(o,i);return Lt(n,function(c,l){a&&rd(a.t,c)===l||Ec(n,c,t(l))}),i===3?new Set(n):n}(e)}function vc(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return _n(e)}function wc(){function e(c,l){var u=i[c];return u?u.enumerable=l:i[c]=u={configurable:!0,enumerable:l,get:function(){var p=this[K];return Pr.get(p,c)},set:function(p){var m=this[K];Pr.set(m,c,p)}},u}function t(c){for(var l=c.length-1;l>=0;l--){var u=c[l][K];if(!u.P)switch(u.i){case 5:n(u)&&mt(u);break;case 4:o(u)&&mt(u)}}}function o(c){for(var l=c.t,u=c.k,p=nr(u),m=p.length-1;m>=0;m--){var h=p[m];if(h!==K){var g=l[h];if(g===void 0&&!or(l,h))return!0;var v=u[h],x=v&&v[K];if(x?x.t!==g:!Ac(v,g))return!0}}var C=!!l[K];return p.length!==nr(l).length+(C?0:1)}function n(c){var l=c.k;if(l.length!==c.t.length)return!0;var u=Object.getOwnPropertyDescriptor(l,l.length-1);if(u&&!u.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function a(c){c.g&&ke(3,JSON.stringify(yt(c)))}var i={};nd("ES5",{J:function(c,l){var u=Array.isArray(c),p=function(h,g){if(h){for(var v=Array(g.length),x=0;x<g.length;x++)Object.defineProperty(v,""+x,e(x,!0));return v}var C=Tc(g);delete C[K];for(var L=nr(C),R=0;R<L.length;R++){var T=L[R];C[T]=e(T,h||!!C[T].enumerable)}return Object.create(Object.getPrototypeOf(g),C)}(u,c),m={i:u?5:4,A:l?l.A:wn(),P:!1,I:!1,R:{},l,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,K,{value:m,writable:!0}),p},S:function(c,l,u){u?nt(l)&&l[K].A===c&&t(c.p):(c.u&&function p(m){if(m&&typeof m=="object"){var h=m[K];if(h){var g=h.t,v=h.k,x=h.R,C=h.i;if(C===4)Lt(v,function(B){B!==K&&(g[B]!==void 0||or(g,B)?x[B]||p(v[B]):(x[B]=!0,mt(h)))}),Lt(g,function(B){v[B]!==void 0||or(v,B)||(x[B]=!1,mt(h))});else if(C===5){if(n(h)&&(mt(h),x.length=!0),v.length<g.length)for(var L=v.length;L<g.length;L++)x[L]=!1;else for(var R=g.length;R<v.length;R++)x[R]=!0;for(var T=Math.min(v.length,g.length),k=0;k<T;k++)v.hasOwnProperty(k)||(x[k]=!0),x[k]===void 0&&p(v[k])}}}}(c.p[0]),t(c.p))},K:function(c){return c.i===4?o(c):n(c)}})}var Sc,_r,Dn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",sd=typeof Map<"u",cd=typeof Set<"u",Oc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Rc=Dn?Symbol.for("immer-nothing"):((Sc={})["immer-nothing"]=!0,Sc),Cc=Dn?Symbol.for("immer-draftable"):"__$immer_draftable",K=Dn?Symbol.for("immer-state"):"__$immer_state";var ld=""+Object.prototype.constructor,nr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Tc=Object.getOwnPropertyDescriptors||function(e){var t={};return nr(e).forEach(function(o){t[o]=Object.getOwnPropertyDescriptor(e,o)}),t},Nn={},Pr={get:function(e,t){if(t===K)return e;var o=yt(e);if(!or(o,t))return function(a,i,c){var l,u=xc(i,c);return u?"value"in u?u.value:(l=u.get)===null||l===void 0?void 0:l.call(a.k):void 0}(e,o,t);var n=o[t];return e.I||!Fe(n)?n:n===En(e.t,t)?(An(e),e.o[t]=Tn(e.A.h,n,e)):n},has:function(e,t){return t in yt(e)},ownKeys:function(e){return Reflect.ownKeys(yt(e))},set:function(e,t,o){var n=xc(yt(e),t);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var a=En(yt(e),t),i=a?.[K];if(i&&i.t===o)return e.o[t]=o,e.R[t]=!1,!0;if(Ac(o,a)&&(o!==void 0||or(e.t,t)))return!0;An(e),mt(e)}return e.o[t]===o&&(o!==void 0||t in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[t])||(e.o[t]=o,e.R[t]=!0),!0},deleteProperty:function(e,t){return En(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,An(e),mt(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var o=yt(e),n=Reflect.getOwnPropertyDescriptor(o,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:o[t]}},defineProperty:function(){ke(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){ke(12)}},Ir={};Lt(Pr,function(e,t){Ir[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Ir.deleteProperty=function(e,t){return Ir.set.call(this,e,t,void 0)},Ir.set=function(e,t,o){return Pr.set.call(this,e[0],t,o,e[0])};var dd=function(){function e(o){var n=this;this.O=Oc,this.D=!0,this.produce=function(a,i,c){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var u=n;return function(C){var L=this;C===void 0&&(C=l);for(var R=arguments.length,T=Array(R>1?R-1:0),k=1;k<R;k++)T[k-1]=arguments[k];return u.produce(C,function(B){var M;return(M=i).call.apply(M,[L,B].concat(T))})}}var p;if(typeof i!="function"&&ke(6),c!==void 0&&typeof c!="function"&&ke(7),Fe(a)){var m=gc(n),h=Tn(n,a,void 0),g=!0;try{p=i(h),g=!1}finally{g?vo(m):Rn(m)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(C){return On(m,c),Cn(C,m)},function(C){throw vo(m),C}):(On(m,c),Cn(p,m))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===Rc&&(p=void 0),n.D&&Pn(p,!0),c){var v=[],x=[];Ye("Patches").M(a,p,v,x),c(v,x)}return p}ke(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var m=arguments.length,h=Array(m>1?m-1:0),g=1;g<m;g++)h[g-1]=arguments[g];return n.produceWithPatches(p,function(v){return a.apply(void 0,[v].concat(h))})};var c,l,u=n.produce(a,i,function(p,m){c=p,l=m});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,c,l]}):[u,c,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var t=e.prototype;return t.createDraft=function(o){Fe(o)||ke(8),nt(o)&&(o=id(o));var n=gc(this),a=Tn(this,o,void 0);return a[K].C=!0,Rn(n),a},t.finishDraft=function(o,n){var a=o&&o[K],i=a.A;return On(i,n),Cn(void 0,i)},t.setAutoFreeze=function(o){this.D=o},t.setUseProxies=function(o){o&&!Oc&&ke(20),this.O=o},t.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var c=Ye("Patches").$;return nt(o)?c(o,n):this.produce(o,function(l){return c(l,n)})},e}(),Le=new dd,ud=Le.produce,Sx=Le.produceWithPatches.bind(Le),Ox=Le.setAutoFreeze.bind(Le),Cx=Le.setUseProxies.bind(Le),Ex=Le.applyPatches.bind(Le),Ax=Le.createDraft.bind(Le),wx=Le.finishDraft.bind(Le),Co=ud;function It(e){"@babel/helpers - typeof";return It=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},It(e)}function Nc(e,t){if(It(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,t||"default");if(It(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Lc(e){var t=Nc(e,"string");return It(t)=="symbol"?t:t+""}function Ic(e,t,o){return(t=Lc(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function _c(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,n)}return o}function Bn(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?_c(Object(o),!0).forEach(function(n){Ic(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):_c(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function me(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Pc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Mn=function(){return Math.random().toString(36).substring(7).split("").join(".")},Eo={INIT:"@@redux/INIT"+Mn(),REPLACE:"@@redux/REPLACE"+Mn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Mn()}};function pd(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Un(e,t,o){var n;if(typeof t=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(me(0));if(typeof t=="function"&&typeof o>"u"&&(o=t,t=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(me(1));return o(Un)(e,t)}if(typeof e!="function")throw new Error(me(2));var a=e,i=t,c=[],l=c,u=!1;function p(){l===c&&(l=c.slice())}function m(){if(u)throw new Error(me(3));return i}function h(C){if(typeof C!="function")throw new Error(me(4));if(u)throw new Error(me(5));var L=!0;return p(),l.push(C),function(){if(L){if(u)throw new Error(me(6));L=!1,p();var T=l.indexOf(C);l.splice(T,1),c=null}}}function g(C){if(!pd(C))throw new Error(me(7));if(typeof C.type>"u")throw new Error(me(8));if(u)throw new Error(me(9));try{u=!0,i=a(i,C)}finally{u=!1}for(var L=c=l,R=0;R<L.length;R++){var T=L[R];T()}return C}function v(C){if(typeof C!="function")throw new Error(me(10));a=C,g({type:Eo.REPLACE})}function x(){var C,L=h;return C={subscribe:function(T){if(typeof T!="object"||T===null)throw new Error(me(11));function k(){T.next&&T.next(m())}k();var B=L(k);return{unsubscribe:B}}},C[Pc]=function(){return this},C}return g({type:Eo.INIT}),n={dispatch:g,subscribe:h,getState:m,replaceReducer:v},n[Pc]=x,n}function fd(e){Object.keys(e).forEach(function(t){var o=e[t],n=o(void 0,{type:Eo.INIT});if(typeof n>"u")throw new Error(me(12));if(typeof o(void 0,{type:Eo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(me(13))})}function kc(e){for(var t=Object.keys(e),o={},n=0;n<t.length;n++){var a=t[n];typeof e[a]=="function"&&(o[a]=e[a])}var i=Object.keys(o),c,l;try{fd(o)}catch(u){l=u}return function(p,m){if(p===void 0&&(p={}),l)throw l;if(0)var h;for(var g=!1,v={},x=0;x<i.length;x++){var C=i[x],L=o[C],R=p[C],T=L(R,m);if(typeof T>"u"){var k=m&&m.type;throw new Error(me(14))}v[C]=T,g=g||T!==R}return g=g||i.length!==Object.keys(p).length,g?v:p}}function ir(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function Dc(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(me(15))},c={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=t.map(function(u){return u(c)});return i=ir.apply(void 0,l)(a.dispatch),Bn(Bn({},a),{},{dispatch:i})}}}function Bc(e){var t=function(n){var a=n.dispatch,i=n.getState;return function(c){return function(l){return typeof l=="function"?l(a,i,e):c(l)}}};return t}var Mc=Bc();Mc.withExtraArgument=Bc;var $n=Mc;var Wc=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(t,o)};return function(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(t,o);function n(){this.constructor=t}t.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),hd=function(e,t){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(p){return function(m){return u([p,m])}}function u(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){o.label=p[1];break}if(p[0]===6&&o.label<i[1]){o.label=i[1],i=p;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(p);break}i[2]&&o.ops.pop(),o.trys.pop();continue}p=t.call(e,o)}catch(m){p=[6,m],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},sr=function(e,t){for(var o=0,n=t.length,a=e.length;o<n;o++,a++)e[a]=t[o];return e},yd=Object.defineProperty,md=Object.defineProperties,gd=Object.getOwnPropertyDescriptors,Uc=Object.getOwnPropertySymbols,bd=Object.prototype.hasOwnProperty,xd=Object.prototype.propertyIsEnumerable,$c=function(e,t,o){return t in e?yd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o},gt=function(e,t){for(var o in t||(t={}))bd.call(t,o)&&$c(e,o,t[o]);if(Uc)for(var n=0,a=Uc(t);n<a.length;n++){var o=a[n];xd.call(t,o)&&$c(e,o,t[o])}return e},Fn=function(e,t){return md(e,gd(t))},vd=function(e,t,o){return new Promise(function(n,a){var i=function(u){try{l(o.next(u))}catch(p){a(p)}},c=function(u){try{l(o.throw(u))}catch(p){a(p)}},l=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(i,c)};l((o=o.apply(e,t)).next())})};var Sd=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ir:ir.apply(null,arguments)},Gx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Od(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var o=t;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return t===o}var Cd=function(e){Wc(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(t.bind.apply(t,sr([void 0],o[0].concat(this)))):new(t.bind.apply(t,sr([void 0],o.concat(this))))},t}(Array),Ed=function(e){Wc(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(t.bind.apply(t,sr([void 0],o[0].concat(this)))):new(t.bind.apply(t,sr([void 0],o.concat(this))))},t}(Array);function zn(e){return Fe(e)?Co(e,function(){}):e}function Ad(e){return typeof e=="boolean"}function wd(){return function(t){return Rd(t)}}function Rd(e){e===void 0&&(e={});var t=e.thunk,o=t===void 0?!0:t,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,c=i===void 0?!0:i,l=new Cd;if(o&&(Ad(o)?l.push($n):l.push($n.withExtraArgument(o.extraArgument))),0){if(a)var u;if(c)var p}return l}var Hn=!0;function zc(e){var t=wd(),o=e||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,c=i===void 0?t():i,l=o.devTools,u=l===void 0?!0:l,p=o.preloadedState,m=p===void 0?void 0:p,h=o.enhancers,g=h===void 0?void 0:h,v;if(typeof a=="function")v=a;else if(Od(a))v=kc(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var x=c;if(typeof x=="function"&&(x=x(t),!Hn&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Hn&&x.some(function(B){return typeof B!="function"}))throw new Error("each middleware provided to configureStore must be a function");var C=Dc.apply(void 0,x),L=ir;u&&(L=Sd(gt({trace:!Hn},typeof u=="object"&&u)));var R=new Ed(C),T=R;Array.isArray(g)?T=sr([C],g):typeof g=="function"&&(T=g(R));var k=L.apply(void 0,T);return Un(v,m,k)}function bt(e,t){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(t){var i=t.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return gt(gt({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return o.toString=function(){return""+e},o.type=e,o.match=function(n){return n.type===e},o}function Gc(e){var t={},o=[],n,a={addCase:function(i,c){var l=typeof i=="string"?i:i.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=c,a},addMatcher:function(i,c){return o.push({matcher:i,reducer:c}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[t,o,n]}function Td(e){return typeof e=="function"}function Nd(e,t,o,n){o===void 0&&(o=[]);var a=typeof t=="function"?Gc(t):[t,o,n],i=a[0],c=a[1],l=a[2],u;if(Td(e))u=function(){return zn(e())};else{var p=zn(e);u=function(){return p}}function m(h,g){h===void 0&&(h=u());var v=sr([i[g.type]],c.filter(function(x){var C=x.matcher;return C(g)}).map(function(x){var C=x.reducer;return C}));return v.filter(function(x){return!!x}).length===0&&(v=[l]),v.reduce(function(x,C){if(C)if(nt(x)){var L=x,R=C(L,g);return R===void 0?x:R}else{if(Fe(x))return Co(x,function(T){return C(T,g)});var R=C(x,g);if(R===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return R}return x},h)}return m.getInitialState=u,m}function Ld(e,t){return e+"/"+t}function jc(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:zn(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},c={},l={};a.forEach(function(m){var h=n[m],g=Ld(t,m),v,x;"reducer"in h?(v=h.reducer,x=h.prepare):v=h,i[m]=v,c[g]=v,l[m]=x?bt(g,x):bt(g)});function u(){var m=typeof e.extraReducers=="function"?Gc(e.extraReducers):[e.extraReducers],h=m[0],g=h===void 0?{}:h,v=m[1],x=v===void 0?[]:v,C=m[2],L=C===void 0?void 0:C,R=gt(gt({},g),c);return Nd(o,function(T){for(var k in R)T.addCase(k,R[k]);for(var B=0,M=x;B<M.length;B++){var Se=M[B];T.addMatcher(Se.matcher,Se.reducer)}L&&T.addDefaultCase(L)})}var p;return{name:t,reducer:function(m,h){return p||(p=u()),p(m,h)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var Id="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",_d=function(e){e===void 0&&(e=21);for(var t="",o=e;o--;)t+=Id[Math.random()*64|0];return t},Pd=["name","message","stack","code"],Wn=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),Fc=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),kd=function(e){if(typeof e=="object"&&e!==null){for(var t={},o=0,n=Pd;o<n.length;o++){var a=n[o];typeof e[a]=="string"&&(t[a]=e[a])}return t}return{message:String(e)}},Zx=function(){function e(t,o,n){var a=bt(t+"/fulfilled",function(m,h,g,v){return{payload:m,meta:Fn(gt({},v||{}),{arg:g,requestId:h,requestStatus:"fulfilled"})}}),i=bt(t+"/pending",function(m,h,g){return{payload:void 0,meta:Fn(gt({},g||{}),{arg:h,requestId:m,requestStatus:"pending"})}}),c=bt(t+"/rejected",function(m,h,g,v,x){return{payload:v,error:(n&&n.serializeError||kd)(m||"Rejected"),meta:Fn(gt({},x||{}),{arg:g,requestId:h,rejectedWithValue:!!v,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),l=!1,u=typeof AbortController<"u"?AbortController:function(){function m(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return m.prototype.abort=function(){},m}();function p(m){return function(h,g,v){var x=n?.idGenerator?n.idGenerator(m):_d(),C=new u,L,R=!1;function T(B){L=B,C.abort()}var k=function(){return vd(this,null,function(){var B,M,Se,Ge,ge,je,ce;return hd(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),Ge=(B=n?.condition)==null?void 0:B.call(n,m,{getState:g,extra:v}),Bd(Ge)?[4,Ge]:[3,2];case 1:Ge=y.sent(),y.label=2;case 2:if(Ge===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return R=!0,ge=new Promise(function(b,_){return C.signal.addEventListener("abort",function(){return _({name:"AbortError",message:L||"Aborted"})})}),h(i(x,m,(M=n?.getPendingMeta)==null?void 0:M.call(n,{requestId:x,arg:m},{getState:g,extra:v}))),[4,Promise.race([ge,Promise.resolve(o(m,{dispatch:h,getState:g,extra:v,requestId:x,signal:C.signal,abort:T,rejectWithValue:function(b,_){return new Wn(b,_)},fulfillWithValue:function(b,_){return new Fc(b,_)}})).then(function(b){if(b instanceof Wn)throw b;return b instanceof Fc?a(b.payload,x,m,b.meta):a(b,x,m)})])];case 3:return Se=y.sent(),[3,5];case 4:return je=y.sent(),Se=je instanceof Wn?c(null,x,m,je.payload,je.meta):c(je,x,m),[3,5];case 5:return ce=n&&!n.dispatchConditionRejection&&c.match(Se)&&Se.meta.condition,ce||h(Se),[2,Se]}})})}();return Object.assign(k,{abort:T,requestId:x,arg:m,unwrap:function(){return k.then(Dd)}})}}return Object.assign(p,{pending:i,rejected:c,fulfilled:a,typePrefix:t})}return e.withTypes=function(){return e},e}();function Dd(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Bd(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Kc="listener",Vc="completed",Zc="cancelled",qx="task-"+Zc,Yx="task-"+Vc,Xx=Kc+"-"+Zc,Jx=Kc+"-"+Vc;var Gn="listenerMiddleware";var Qx=bt(Gn+"/add"),ev=bt(Gn+"/removeAll"),tv=bt(Gn+"/remove");var Hc,rv=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(Hc||(Hc=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},Md=function(e){return function(t){setTimeout(t,e)}},ov=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Md(10);wc();var Ud=ho(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}),Ao=class extends Ud(Object){};window.ftReduxStores||(window.ftReduxStores={});var qc=class e extends Ao{static get(t){var o;let n=typeof t=="string"?t:t.name,a=typeof t=="string"?void 0:t,i=window.ftReduxStores[n];if(xo(i))return i;if(a==null)return;let c=jc({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=zc({reducer:(u,p)=>p.type==="CLEAR_FT_REDUX_STORE"?c.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...p.overwrites}:c.reducer(u,p)});return window.ftReduxStores[a.name]=new e(c,l,a.eventBus)}constructor(t,o,n){super(),this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new yo;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,c,l)=>{let u=c,p=i[u];return p?(...m)=>{let h=p(...m.map(a));return this.reduxStore.dispatch(h),h}:m=>{this.setState({[u]:a(m)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var wo=class{static format(t,o,n,a){return window.moment?window.moment(t).locale(o).format(this.getMomentDateFormat(n,a)):this.getIntlDateTime(t,o,n,a)}static getMomentDateFormat(t,o){return t?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(t,o,n,a){let i=typeof t=="string"?new Date(t):t,c=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(i);if(!a)return c;let l=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(i);return`${c} ${l}`}static getTimezoneAsString(){let t=n=>String(Math.floor(n)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${t(Math.abs(o)/60)}:${t(Math.abs(o)%60)}`}};var Yc=S(P()),Ro=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},Rv=(0,Yc.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(N)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,i;return((i=(a=this.metadataDescriptors.find(l=>l.key===n))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1)?l=>wo.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Ro([(0,jn.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Ro([(0,jn.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Ro([Sn({store:N.name,selector:o=>{var n,a;return(a=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],t.prototype,"metadataDescriptors",void 0),Ro([Sn({store:N.name})],t.prototype,"uiLocale",void 0),t});var Lo=S(P());var To=class extends Te{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=N.getState().session;return!!t?.sessionAuthenticated}};var No=class extends Te{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 t=N.getState().session;return!!t?.sessionAuthenticated}};var $d="ft-user-assets",Fd={setAssetCount:(e,t)=>{let{userAssetType:o,count:n}=t.payload.assetCount;e.assetCounts.allAsset[o]=n},clearAssetCount:e=>{Object.values(Ne).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let o=t.payload.mapId;e.assetCounts.bookmarkByMap[o]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:o,mapId:n,asset:a}=t.payload;switch(o){case Ne.BOOKMARKS:e.bookmarks?e.bookmarks.push(a):e.bookmarks=[a];break;case Ne.SEARCHES:e.savedSearches?e.savedSearches.push(a):e.savedSearches=[a];break}let i=e.assetCounts.allAsset[o];if(i!==void 0&&(e.assetCounts.allAsset[o]=i+1),o===Ne.BOOKMARKS&&n!==void 0){let c=e.assetCounts.bookmarkByMap[n];c!==void 0&&(e.assetCounts.bookmarkByMap[n]=c+1)}},removeAsset:(e,t)=>{var o,n;let{assetType:a,mapId:i,assetId:c}=t.payload;switch(a){case Ne.BOOKMARKS:e.bookmarks=(o=e.bookmarks)===null||o===void 0?void 0:o.filter(u=>u.id!==c);break;case Ne.SEARCHES:e.savedSearches=(n=e.savedSearches)===null||n===void 0?void 0:n.filter(u=>u.id!==c);break}let l=e.assetCounts.allAsset[a];if(l!==void 0&&l>0&&(e.assetCounts.allAsset[a]=l-1),a===Ne.BOOKMARKS&&i!==void 0){let u=e.assetCounts.bookmarkByMap[i];u!==void 0&&u>0&&(e.assetCounts.bookmarkByMap[i]=u-1)}}},Ie=Lo.FtReduxStore.get({name:$d,reducers:Fd,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ne).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Kn=class{constructor(t=new To,o=new No){this.assetCountsService=t,this.assetLabelsService=o,this.currentSession=N.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ao,this.savedSearchesService=new uo,N.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:o}=N.getState();(0,Lo.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Ie.actions.clearAssetCount(),Ie.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ie.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ie.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();Ie.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();Ie.actions.assetLabels(t)}async loadAssetCount(t){let o=await this.assetCountsService.getUserAssetCount(t);o&&Ie.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(t){let o=await this.assetCountsService.getUserBookmarkCountByMap(t);o&&Ie.actions.setBookmarkCountByMap({count:o.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let o=Object.keys(Ie.getState().assetCounts.bookmarkByMap).length!==0;t===Ne.BOOKMARKS&&o&&Ie.actions.clearBookmarkCountByMap(),Ie.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let o=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Ie.actions.bookmarks(o)}}},Hd=new Kn;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Hd);(0,Xc.customElement)("ft-app-context")(z);var el=S(re());var Vn=class{fromLocalizableLabel(t){return t.type=="PLAIN_TEXT"?{message:t.text}:{key:t.key,custom:t.type=="LOCALIZED_CUSTOM",context:t.context,message:t.key}}fromAttribute(t){if(t!=null)try{return JSON.parse(t)}catch{if(this.isI18nKey(t)){let[n,a]=t.split(".");return{context:n,key:a,message:""}}return{message:t}}}toAttribute(t){if(t!=null)return JSON.stringify(t)}isI18nKey(t){return t.match(/^[\w-]+\.[\w-]+$/)}},Jc=new Vn;var Wd=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},zd=Symbol("i18nAttributes"),Gd=Symbol("i18nListAttributes"),tl=Symbol("i18nProperties"),Io=Symbol("i18nContexts"),kr=Symbol("i18nUnsubs"),lr=(0,cr.applyMixinOnce)(Symbol("withI18n"),function(e){var t,o;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[o]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?so:er}i18n(i){let{context:c,key:l,message:u}=i,{custom:p,args:m,argsProvider:h}=i;if(c&&l){this.hasI18nContext(c)||this.addI18nContext(c,void 0,p);let g=m??(h?h(this):[]);return this.getI18nService(p).resolveMessage(c,l,...g)}return u}async awaitI18n(i){let{context:c,custom:l}=i;return c&&await this.getI18nService(l).prepareContext(c),this.i18n(i)}customI18n(i,c){if(Jc.isI18nKey(i)){let[l,u]=i.split(".");return this.i18n({custom:!0,context:l,key:u,...c})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((c,l,u)=>i.has(l)||typeof c.argsProvider=="function"),this.updateI18nProperties(c=>typeof c.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((c,l,u)=>{var p;return((p=u?.context)===null||p===void 0?void 0:p.toLowerCase())===i}),this.updateI18nProperties(c=>c.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var c,l;let u=this,p=(m,h,g)=>g?.context&&g.key&&i(m,h,g)?{...g,message:this.i18n({context:g.context,key:g.key,custom:g.custom,...m})}:g;(c=this[zd])===null||c===void 0||c.forEach((m,h)=>u[h]=p(m,h,u[h])),(l=this[Gd])===null||l===void 0||l.forEach((m,h)=>{var g;return u[h]=(g=u[h])===null||g===void 0?void 0:g.map(v=>p(m,h,v))})}updateI18nProperties(i){var c;(c=this[tl])===null||c===void 0||c.forEach((l,u)=>{i(l,u)&&(this[u]=this.i18n(l))})}addI18nMessages(i,c,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,c,l)}addI18nContext(i,c,l){let u=(typeof i=="string"?i:i.name).toLowerCase();l=typeof i=="string"?l:i.custom,this[Io].set(u,{isCustomContext:l}),this[kr].has(u)||this[kr].set(u,this.getI18nService(l).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(l).prepareContext(u,c)}hasI18nContext(i){return this[Io].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Io].forEach((i,c)=>this.addI18nContext(c,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[kr].forEach(i=>i()),this[kr].clear()}}return t=Io,o=kr,Wd([(0,el.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),Qc=class extends lr(cr.FtLitElement){},_o=class extends lr(cr.FtLitElementRedux){};var Dr=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},He=class extends _o{constructor(){super(),this.editorMode=!1,this.addStore(N)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Po.nothing:Po.html`
1150
1150
  <span class="ft-i18n">
1151
1151
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
1152
1152
  </span>
@@ -1183,7 +1183,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1183
1183
  </div>
1184
1184
  </dialog>
1185
1185
  </div>
1186
- `}open(){this.dialog.showModal()}close(){this.dialog.close()}disconnectedCallback(){super.disconnectedCallback(),this.close()}onOverlayClick(t){this.close()}};We.elementDefinitions={"ftds-button":ve,"ft-typography":pe,"ft-icon":fe};We.styles=hs;qn([(0,Ur.property)({type:String})],We.prototype,"heading",void 0);qn([(0,Ur.property)({type:String})],We.prototype,"icon",void 0);qn([(0,Ur.query)("dialog")],We.prototype,"dialog",void 0);var Mo=S(P()),il=S(H());var al=ye.body2regular;var at=S(te());var _t=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},Ae=class extends Mo.FtLitElement{constructor(){super(...arguments),this.confirmText="Confirm",this.cancelText="Cancel",this.confirmIcon=xe.CHECK,this.cancelIcon=xe.CLOSE}render(){return il.html`
1186
+ `}open(){this.dialog.showModal()}close(){this.dialog.close()}disconnectedCallback(){super.disconnectedCallback(),this.close()}onOverlayClick(t){this.close()}};We.elementDefinitions={"ftds-button":ve,"ft-typography":pe,"ft-icon":fe};We.styles=hs;qn([(0,Ur.property)({type:String})],We.prototype,"heading",void 0);qn([(0,Ur.property)({type:String})],We.prototype,"icon",void 0);qn([(0,Ur.query)("dialog")],We.prototype,"dialog",void 0);var Mo=S(P()),il=S(H());var al=ye.body2regular;var at=S(re());var _t=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},Ae=class extends Mo.FtLitElement{constructor(){super(...arguments),this.confirmText="Confirm",this.cancelText="Cancel",this.confirmIcon=xe.CHECK,this.cancelIcon=xe.CLOSE}render(){return il.html`
1187
1187
  <ftds-modal
1188
1188
  heading="${this.heading}"
1189
1189
  size="${de.small}"
@@ -1209,7 +1209,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1209
1209
  ${this.confirmText}
1210
1210
  </ftds-button>
1211
1211
  </ftds-modal>
1212
- `}async askConfirmation(){this.modal.open();let t=await new Promise(o=>{this.promiseResolve=o});return this.modal.close(),t}onConfirm(){var t;(t=this.promiseResolve)===null||t===void 0||t.call(this,!0),this.promiseResolve=void 0}onCancel(){var t;(t=this.promiseResolve)===null||t===void 0||t.call(this,!1),this.promiseResolve=void 0}};Ae.elementDefinitions={"ftds-modal":We,"ft-typography":pe,"ftds-button":ve};_t([(0,at.property)({type:String})],Ae.prototype,"heading",void 0);_t([(0,at.property)({type:String})],Ae.prototype,"text",void 0);_t([(0,at.property)({type:String})],Ae.prototype,"confirmText",void 0);_t([(0,at.property)({type:String})],Ae.prototype,"cancelText",void 0);_t([(0,at.property)({type:String})],Ae.prototype,"confirmIcon",void 0);_t([(0,at.property)({type:String})],Ae.prototype,"cancelIcon",void 0);_t([(0,at.query)("ftds-modal")],Ae.prototype,"modal",void 0);var $r=S(H()),Pt=S(te()),ul=S(P()),pl=S(fr());var sl=S(H()),$=S(P()),se={shadow:$.FtCssVariableFactory.extend("--ft-modal-shadow","",$.designSystemVariables.elevation03),borderRadius:$.FtCssVariableFactory.extend("--ft-modal-border-radius","",$.designSystemVariables.borderRadiusM),width:$.FtCssVariableFactory.create("--ft-modal-width","","SIZE","800px"),headerPadding:$.FtCssVariableFactory.create("--ft-modal-header-padding","","SIZE","8px 16px"),headerGap:$.FtCssVariableFactory.create("--ft-modal-header-gap","","SIZE","8px"),headerBorderColor:$.FtCssVariableFactory.extend("--ft-modal-header-border-color","",$.designSystemVariables.colorOutline),headerBorderWidth:$.FtCssVariableFactory.create("--ft-modal-header-border-width","","SIZE","1px"),headerBackgroundColor:$.FtCssVariableFactory.extend("--ft-modal-header-background-color","",$.designSystemVariables.colorSurface),headerColor:$.FtCssVariableFactory.extend("--ft-modal-header-color","",$.designSystemVariables.colorOnSurfaceHigh),headerIconColor:$.FtCssVariableFactory.extend("--ft-modal-header-icon-color","",$.designSystemVariables.colorOnSurfaceHigh),contentMargin:$.FtCssVariableFactory.create("--ft-modal-content-margin","","SIZE","16px"),contentPadding:$.FtCssVariableFactory.create("--ft-modal-content-padding","","SIZE","16px"),contentGap:$.FtCssVariableFactory.create("--ft-modal-content-gap","","SIZE","16px"),contentBackgroundColor:$.FtCssVariableFactory.extend("--ft-modal-content-background-color","",$.designSystemVariables.colorSurface),contentColor:$.FtCssVariableFactory.extend("--ft-modal-content-color","",$.designSystemVariables.colorOnSurfaceMedium),actionsGap:$.FtCssVariableFactory.create("--ft-modal-action-gap","","SIZE","8px"),overlayBackgroundColor:$.FtCssVariableFactory.create("--ft-modal-overlay-background-color","","COLOR","rgba(10, 10, 13, 0.4)"),closingButtonColor:$.FtCssVariableFactory.extend("--ft-modal-closing-button-color","",$.designSystemVariables.colorOnSurfaceMedium)},cl=sl.css`
1212
+ `}async askConfirmation(){this.modal.open();let t=await new Promise(o=>{this.promiseResolve=o});return this.modal.close(),t}onConfirm(){var t;(t=this.promiseResolve)===null||t===void 0||t.call(this,!0),this.promiseResolve=void 0}onCancel(){var t;(t=this.promiseResolve)===null||t===void 0||t.call(this,!1),this.promiseResolve=void 0}};Ae.elementDefinitions={"ftds-modal":We,"ft-typography":pe,"ftds-button":ve};_t([(0,at.property)({type:String})],Ae.prototype,"heading",void 0);_t([(0,at.property)({type:String})],Ae.prototype,"text",void 0);_t([(0,at.property)({type:String})],Ae.prototype,"confirmText",void 0);_t([(0,at.property)({type:String})],Ae.prototype,"cancelText",void 0);_t([(0,at.property)({type:String})],Ae.prototype,"confirmIcon",void 0);_t([(0,at.property)({type:String})],Ae.prototype,"cancelIcon",void 0);_t([(0,at.query)("ftds-modal")],Ae.prototype,"modal",void 0);var $r=S(H()),Pt=S(re()),ul=S(P()),pl=S(fr());var sl=S(H()),$=S(P()),ee={shadow:$.FtCssVariableFactory.extend("--ft-modal-shadow","",$.designSystemVariables.elevation03),borderRadius:$.FtCssVariableFactory.extend("--ft-modal-border-radius","",$.designSystemVariables.borderRadiusM),height:$.FtCssVariableFactory.create("--ft-modal-height","","SIZE","fit-content"),width:$.FtCssVariableFactory.create("--ft-modal-width","","SIZE","800px"),headerPadding:$.FtCssVariableFactory.create("--ft-modal-header-padding","","SIZE","8px 16px"),headerGap:$.FtCssVariableFactory.create("--ft-modal-header-gap","","SIZE","8px"),headerBorderColor:$.FtCssVariableFactory.extend("--ft-modal-header-border-color","",$.designSystemVariables.colorOutline),headerBorderWidth:$.FtCssVariableFactory.create("--ft-modal-header-border-width","","SIZE","1px"),headerBackgroundColor:$.FtCssVariableFactory.extend("--ft-modal-header-background-color","",$.designSystemVariables.colorSurface),headerColor:$.FtCssVariableFactory.extend("--ft-modal-header-color","",$.designSystemVariables.colorOnSurfaceHigh),headerIconColor:$.FtCssVariableFactory.extend("--ft-modal-header-icon-color","",$.designSystemVariables.colorOnSurfaceHigh),contentPadding:$.FtCssVariableFactory.create("--ft-modal-content-padding","","SIZE","16px"),contentGap:$.FtCssVariableFactory.create("--ft-modal-content-gap","","SIZE","16px"),contentBackgroundColor:$.FtCssVariableFactory.extend("--ft-modal-content-background-color","",$.designSystemVariables.colorSurface),contentColor:$.FtCssVariableFactory.extend("--ft-modal-content-color","",$.designSystemVariables.colorOnSurfaceMedium),actionsGap:$.FtCssVariableFactory.create("--ft-modal-action-gap","","SIZE","8px"),overlayBackgroundColor:$.FtCssVariableFactory.create("--ft-modal-overlay-background-color","","COLOR","rgb(10, 10, 13)"),overlayOpacity:$.FtCssVariableFactory.create("--ft-modal-overlay-opacity","","NUMBER","0.4"),closingButtonColor:$.FtCssVariableFactory.extend("--ft-modal-closing-button-color","",$.designSystemVariables.colorOnSurfaceMedium)},cl=sl.css`
1213
1213
  [part=container] {
1214
1214
  display: contents;
1215
1215
  }
@@ -1226,13 +1226,14 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1226
1226
  [part=overlay] {
1227
1227
  position: absolute;
1228
1228
  inset: 0;
1229
- background-color: ${se.overlayBackgroundColor};
1229
+ background-color: ${ee.overlayBackgroundColor};
1230
+ opacity: ${ee.overlayOpacity};
1230
1231
  }
1231
1232
 
1232
1233
  [part=inner-container] {
1233
1234
  position: fixed;
1234
1235
  inset: 0;
1235
- background-color: ${se.contentBackgroundColor};
1236
+ background-color: ${ee.contentBackgroundColor};
1236
1237
  display: flex;
1237
1238
  flex-direction: column;
1238
1239
  overflow: hidden;
@@ -1243,10 +1244,11 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1243
1244
  top: 50%;
1244
1245
  bottom: unset;
1245
1246
  transform: translate(0, -50%);
1246
- box-shadow: ${se.shadow};
1247
- border-radius: ${se.borderRadius};
1247
+ box-shadow: ${ee.shadow};
1248
+ border-radius: ${ee.borderRadius};
1248
1249
  overflow: hidden;
1249
- width: ${se.width};
1250
+ height: ${ee.height};
1251
+ width: ${ee.width};
1250
1252
  margin: auto;
1251
1253
  max-height: calc(100% - 24px);
1252
1254
  max-width: calc(100% - 24px);
@@ -1255,15 +1257,15 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1255
1257
 
1256
1258
 
1257
1259
  [part=header] {
1258
- padding: ${se.headerPadding};
1260
+ padding: ${ee.headerPadding};
1259
1261
  display: flex;
1260
1262
  align-items: center;
1261
- gap: ${se.headerGap};
1262
- border-color: ${se.headerBorderColor};
1263
- border-bottom-width: ${se.headerBorderWidth};
1263
+ gap: ${ee.headerGap};
1264
+ border-color: ${ee.headerBorderColor};
1265
+ border-bottom-width: ${ee.headerBorderWidth};
1264
1266
  border-bottom-style: solid;
1265
- color: ${se.headerColor};
1266
- background-color: ${se.headerBackgroundColor};
1267
+ color: ${ee.headerColor};
1268
+ background-color: ${ee.headerBackgroundColor};
1267
1269
  }
1268
1270
 
1269
1271
  [part=heading] {
@@ -1271,7 +1273,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1271
1273
  }
1272
1274
 
1273
1275
  [part=icon] {
1274
- color: ${se.headerIconColor};
1276
+ color: ${ee.headerIconColor};
1275
1277
  }
1276
1278
 
1277
1279
  [part=closing-button] {
@@ -1282,12 +1284,12 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1282
1284
  flex-shrink: 1;
1283
1285
  flex-grow: 1;
1284
1286
  overflow: auto;
1285
- padding: ${se.contentPadding};
1287
+ padding: ${ee.contentPadding};
1286
1288
  display: flex;
1287
1289
  flex-direction: column;
1288
- gap: ${se.contentGap};
1289
- color: ${se.contentColor};
1290
- background-color: ${se.contentBackgroundColor};
1290
+ gap: ${ee.contentGap};
1291
+ color: ${ee.contentColor};
1292
+ background-color: ${ee.contentBackgroundColor};
1291
1293
  }
1292
1294
 
1293
1295
  [part=content] {
@@ -1297,15 +1299,15 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1297
1299
  [part=actions] {
1298
1300
  align-self: flex-end;
1299
1301
  display: flex;
1300
- gap: ${se.actionsGap};
1302
+ gap: ${ee.actionsGap};
1301
1303
  }
1302
1304
 
1303
1305
  [part=closing-button] {
1304
- color: ${se.closingButtonColor};
1306
+ color: ${ee.closingButtonColor};
1305
1307
  }
1306
1308
  `;function Yn(e,t,o){return e?t(e):o?.(e)}var ll=dr.build("ftModal"),dl={closeModal:"Close modal"};var Fr=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},Xn=class extends Event{constructor(){super("close")}},Jn=class extends Event{constructor(){super("open")}},ze=class extends lr(ul.FtdsBase){constructor(){super(),this.buttonLabel="",this.heading="",this.size=de.small,this.intersectionObserver=new IntersectionObserver(()=>{this.dialog&&!this.dialog.checkVisibility()&&this.close()}),this.addI18nContext(ll,dl)}render(){return $r.html`
1307
1309
  <div class="${(0,pl.classMap)({"ft-modal":!0})}" part="container">
1308
- <slot @click=${this.onTriggerClick} @keyup=${this.onKeyUp} name="trigger">
1310
+ <slot @click=${this.onTriggerClick} name="trigger">
1309
1311
  <ft-button part="button" icon="${Qr(this.buttonIcon)}" label="${this.buttonLabel}" ariaHasPopup="dialog">
1310
1312
  ${Yn(this.buttonIcon,()=>$r.nothing,()=>this.buttonLabel)}
1311
1313
  </ft-button>
@@ -1339,7 +1341,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1339
1341
  </div>
1340
1342
  </dialog>
1341
1343
  </div>
1342
- `}onKeyUp(t){(t.key==="Enter"||t.key===" ")&&this.open(t.target)}onTriggerClick(t){this.open(t.target)}open(t){this.elementToFocusOnClose=t,this.dialog&&(this.dialog.showModal(),this.intersectionObserver.observe(this.dialog),this.dispatchEvent(new Jn))}close(){var t;(t=this.dialog)===null||t===void 0||t.close(),this.onClose()}disconnectedCallback(){super.disconnectedCallback(),this.close()}onClose(){var t;this.intersectionObserver.disconnect(),(t=this.elementToFocusOnClose)===null||t===void 0||t.focus(),this.dispatchEvent(new Xn)}onOverlayClick(){this.close()}};ze.elementDefinitions={"ft-button":Ue,"ft-typography":pe,"ft-icon":fe};ze.styles=cl;Fr([(0,Pt.property)()],ze.prototype,"buttonLabel",void 0);Fr([(0,Pt.property)()],ze.prototype,"buttonIcon",void 0);Fr([(0,Pt.property)()],ze.prototype,"heading",void 0);Fr([(0,Pt.property)()],ze.prototype,"icon",void 0);Fr([(0,Pt.query)("dialog")],ze.prototype,"dialog",void 0);var nS=ye.body1;(0,Uo.customElement)("ft-modal")(ze);(0,Uo.customElement)("ftds-modal")(We);(0,Uo.customElement)("ftds-modal-confirm")(Ae);var ee=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},Hr=class extends CustomEvent{constructor(){super("confirm")}},Z=class extends fl.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.buttonIcon=xe.CLOSE,this.buttonSize=de.medium,this.buttonFamily=Dt.brand,this.buttonForceTooltip=!1,this.buttonTooltipPosition="bottom",this.buttonLabel="",this.heading="",this.text="",this.confirmText="",this.cancelText="",this.confirmIcon=xe.CHECK,this.cancelIcon=xe.CLOSE,this.loading=!1,this.disabled=!1,this.hasSlottedContent=!1}render(){return ur.html`
1344
+ `}onTriggerClick(t){this.open(t.target)}open(t){this.elementToFocusOnClose=t,this.dialog&&(this.dialog.showModal(),this.intersectionObserver.observe(this.dialog),this.dispatchEvent(new Jn))}close(){var t;(t=this.dialog)===null||t===void 0||t.close(),this.onClose()}disconnectedCallback(){super.disconnectedCallback(),this.close()}onClose(){var t;this.intersectionObserver.disconnect(),(t=this.elementToFocusOnClose)===null||t===void 0||t.focus(),this.dispatchEvent(new Xn)}onOverlayClick(){this.close()}};ze.elementDefinitions={"ft-button":Ue,"ft-typography":pe,"ft-icon":fe};ze.styles=cl;Fr([(0,Pt.property)()],ze.prototype,"buttonLabel",void 0);Fr([(0,Pt.property)()],ze.prototype,"buttonIcon",void 0);Fr([(0,Pt.property)()],ze.prototype,"heading",void 0);Fr([(0,Pt.property)()],ze.prototype,"icon",void 0);Fr([(0,Pt.query)("dialog")],ze.prototype,"dialog",void 0);var nS=ye.body1;(0,Uo.customElement)("ft-modal")(ze);(0,Uo.customElement)("ftds-modal")(We);(0,Uo.customElement)("ftds-modal-confirm")(Ae);var te=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},Hr=class extends CustomEvent{constructor(){super("confirm")}},Z=class extends fl.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.buttonIcon=xe.CLOSE,this.buttonSize=de.medium,this.buttonFamily=Dt.brand,this.buttonForceTooltip=!1,this.buttonTooltipPosition="bottom",this.buttonLabel="",this.heading="",this.text="",this.confirmText="",this.cancelText="",this.confirmIcon=xe.CHECK,this.cancelIcon=xe.CLOSE,this.loading=!1,this.disabled=!1,this.hasSlottedContent=!1}render(){return ur.html`
1343
1345
  <ftds-button icon=${this.buttonIcon}
1344
1346
  ?primary=${this.primary}
1345
1347
  ?secondary=${this.secondary}
@@ -1361,7 +1363,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1361
1363
  cancelText=${this.cancelText}
1362
1364
  cancelIcon=${this.cancelIcon}
1363
1365
  ></ftds-modal-confirm>
1364
- `}async askConfirmation(){await this.modal.askConfirmation()&&this.dispatchEvent(new Hr)}onSlotchange(){this.hasSlottedContent=this.slotElement.assignedNodes().length>0,this.requestUpdate()}};Z.elementDefinitions={"ftds-button":ve,"ftds-modal-confirm":Ae};Z.styles=ur.css``;ee([(0,q.property)({type:Boolean})],Z.prototype,"primary",void 0);ee([(0,q.property)({type:Boolean})],Z.prototype,"secondary",void 0);ee([(0,q.property)()],Z.prototype,"buttonText",void 0);ee([(0,q.property)()],Z.prototype,"buttonIcon",void 0);ee([(0,q.property)()],Z.prototype,"buttonSize",void 0);ee([(0,q.property)()],Z.prototype,"buttonFamily",void 0);ee([(0,q.property)({type:Boolean})],Z.prototype,"buttonForceTooltip",void 0);ee([(0,q.property)()],Z.prototype,"buttonTooltipPosition",void 0);ee([(0,q.property)()],Z.prototype,"buttonLabel",void 0);ee([(0,q.property)()],Z.prototype,"heading",void 0);ee([(0,q.property)()],Z.prototype,"text",void 0);ee([(0,q.property)()],Z.prototype,"confirmText",void 0);ee([(0,q.property)()],Z.prototype,"cancelText",void 0);ee([(0,q.property)()],Z.prototype,"confirmIcon",void 0);ee([(0,q.property)()],Z.prototype,"cancelIcon",void 0);ee([(0,q.property)({type:Boolean})],Z.prototype,"loading",void 0);ee([(0,q.property)({type:Boolean})],Z.prototype,"disabled",void 0);ee([(0,q.query)("ftds-modal-confirm")],Z.prototype,"modal",void 0);ee([(0,q.query)("slot")],Z.prototype,"slotElement",void 0);Z=ee([(0,q.customElement)("ftds-confirm-button")],Z);var hl=class{constructor(t){this.confirmButton=t}clickAndConfirm(){this.confirmButton.dispatchEvent(new Hr)}};})();
1366
+ `}async askConfirmation(){await this.modal.askConfirmation()&&this.dispatchEvent(new Hr)}onSlotchange(){this.hasSlottedContent=this.slotElement.assignedNodes().length>0,this.requestUpdate()}};Z.elementDefinitions={"ftds-button":ve,"ftds-modal-confirm":Ae};Z.styles=ur.css``;te([(0,q.property)({type:Boolean})],Z.prototype,"primary",void 0);te([(0,q.property)({type:Boolean})],Z.prototype,"secondary",void 0);te([(0,q.property)()],Z.prototype,"buttonText",void 0);te([(0,q.property)()],Z.prototype,"buttonIcon",void 0);te([(0,q.property)()],Z.prototype,"buttonSize",void 0);te([(0,q.property)()],Z.prototype,"buttonFamily",void 0);te([(0,q.property)({type:Boolean})],Z.prototype,"buttonForceTooltip",void 0);te([(0,q.property)()],Z.prototype,"buttonTooltipPosition",void 0);te([(0,q.property)()],Z.prototype,"buttonLabel",void 0);te([(0,q.property)()],Z.prototype,"heading",void 0);te([(0,q.property)()],Z.prototype,"text",void 0);te([(0,q.property)()],Z.prototype,"confirmText",void 0);te([(0,q.property)()],Z.prototype,"cancelText",void 0);te([(0,q.property)()],Z.prototype,"confirmIcon",void 0);te([(0,q.property)()],Z.prototype,"cancelIcon",void 0);te([(0,q.property)({type:Boolean})],Z.prototype,"loading",void 0);te([(0,q.property)({type:Boolean})],Z.prototype,"disabled",void 0);te([(0,q.query)("ftds-modal-confirm")],Z.prototype,"modal",void 0);te([(0,q.query)("slot")],Z.prototype,"slotElement",void 0);Z=te([(0,q.customElement)("ftds-confirm-button")],Z);var hl=class{constructor(t){this.confirmButton=t}clickAndConfirm(){this.confirmButton.dispatchEvent(new Hr)}};})();
1365
1367
  /*! Bundled license information:
1366
1368
 
1367
1369
  lit-html/lit-html.js: