@fluid-topics/ft-copy-block 1.2.59 → 1.2.61

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 Ec=Object.create;var On=Object.defineProperty;var wc=Object.getOwnPropertyDescriptor;var Ac=Object.getOwnPropertyNames;var Rc=Object.getPrototypeOf,Nc=Object.prototype.hasOwnProperty;var xt=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var Tc=(e,r,o,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of Ac(r))!Nc.call(e,a)&&a!==o&&On(e,a,{get:()=>r[a],enumerable:!(n=wc(r,a))||n.enumerable});return e};var C=(e,r,o)=>(o=e!=null?Ec(Rc(e)):{},Tc(r||!e||!e.__esModule?On(o,"default",{value:e,enumerable:!0}):o,e));var k=xt((Jl,Cn)=>{Cn.exports=ftGlobals.wcUtils});var j=xt((ed,En)=>{En.exports=ftGlobals.lit});var ne=xt((td,wn)=>{wn.exports=ftGlobals.litDecorators});var mo=xt((Sh,Aa)=>{Aa.exports=ftGlobals.litClassMap});var Ei=xt((wy,Ci)=>{Ci.exports=ftGlobals.litUnsafeHTML});var Ds=xt((nt,ks)=>{var Yr=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Xr=function(){function e(){this.fetch=!1,this.DOMException=Yr.DOMException}return e.prototype=Yr,new e}();(function(e){var r=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(h){return h&&DataView.prototype.isPrototypeOf(h)}if(a.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(h){return h&&c.indexOf(Object.prototype.toString.call(h))>-1};function u(h){if(typeof h!="string"&&(h=String(h)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(h)||h==="")throw new TypeError('Invalid character in header field name: "'+h+'"');return h.toLowerCase()}function p(h){return typeof h!="string"&&(h=String(h)),h}function m(h){var b={next:function(){var I=h.shift();return{done:I===void 0,value:I}}};return a.iterable&&(b[Symbol.iterator]=function(){return b}),b}function y(h){this.map={},h instanceof y?h.forEach(function(b,I){this.append(I,b)},this):Array.isArray(h)?h.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):h&&Object.getOwnPropertyNames(h).forEach(function(b){this.append(b,h[b])},this)}y.prototype.append=function(h,b){h=u(h),b=p(b);var I=this.map[h];this.map[h]=I?I+", "+b:b},y.prototype.delete=function(h){delete this.map[u(h)]},y.prototype.get=function(h){return h=u(h),this.has(h)?this.map[h]:null},y.prototype.has=function(h){return this.map.hasOwnProperty(u(h))},y.prototype.set=function(h,b){this.map[u(h)]=p(b)},y.prototype.forEach=function(h,b){for(var I in this.map)this.map.hasOwnProperty(I)&&h.call(b,this.map[I],I,this)},y.prototype.keys=function(){var h=[];return this.forEach(function(b,I){h.push(I)}),m(h)},y.prototype.values=function(){var h=[];return this.forEach(function(b){h.push(b)}),m(h)},y.prototype.entries=function(){var h=[];return this.forEach(function(b,I){h.push([I,b])}),m(h)},a.iterable&&(y.prototype[Symbol.iterator]=y.prototype.entries);function g(h){if(!h._noBody){if(h.bodyUsed)return Promise.reject(new TypeError("Already read"));h.bodyUsed=!0}}function v(h){return new Promise(function(b,I){h.onload=function(){b(h.result)},h.onerror=function(){I(h.error)}})}function x(h){var b=new FileReader,I=v(b);return b.readAsArrayBuffer(h),I}function S(h){var b=new FileReader,I=v(b),$=/charset=([A-Za-z0-9_-]+)/.exec(h.type),G=$?$[1]:"utf-8";return b.readAsText(h,G),I}function T(h){for(var b=new Uint8Array(h),I=new Array(b.length),$=0;$<b.length;$++)I[$]=String.fromCharCode(b[$]);return I.join("")}function R(h){if(h.slice)return h.slice(0);var b=new Uint8Array(h.byteLength);return b.set(new Uint8Array(h)),b.buffer}function N(){return this.bodyUsed=!1,this._initBody=function(h){this.bodyUsed=this.bodyUsed,this._bodyInit=h,h?typeof h=="string"?this._bodyText=h:a.blob&&Blob.prototype.isPrototypeOf(h)?this._bodyBlob=h:a.formData&&FormData.prototype.isPrototypeOf(h)?this._bodyFormData=h:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(h)?this._bodyText=h.toString():a.arrayBuffer&&a.blob&&i(h)?(this._bodyArrayBuffer=R(h.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(h)||d(h))?this._bodyArrayBuffer=R(h):this._bodyText=h=Object.prototype.toString.call(h):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof h=="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(h)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var h=g(this);if(h)return h;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 h=g(this);return h||(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 h=g(this);if(h)return h;if(this._bodyBlob)return S(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(T(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(le)}),this.json=function(){return this.text().then(JSON.parse)},this}var P=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function B(h){var b=h.toUpperCase();return P.indexOf(b)>-1?b:h}function U(h,b){if(!(this instanceof U))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');b=b||{};var I=b.body;if(h instanceof U){if(h.bodyUsed)throw new TypeError("Already read");this.url=h.url,this.credentials=h.credentials,b.headers||(this.headers=new y(h.headers)),this.method=h.method,this.mode=h.mode,this.signal=h.signal,!I&&h._bodyInit!=null&&(I=h._bodyInit,h.bodyUsed=!0)}else this.url=String(h);if(this.credentials=b.credentials||this.credentials||"same-origin",(b.headers||!this.headers)&&(this.headers=new y(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 M=new AbortController;return M.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&I)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(I),(this.method==="GET"||this.method==="HEAD")&&(b.cache==="no-store"||b.cache==="no-cache")){var $=/([?&])_=[^&]*/;if($.test(this.url))this.url=this.url.replace($,"$1_="+new Date().getTime());else{var G=/\?/;this.url+=(G.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}U.prototype.clone=function(){return new U(this,{body:this._bodyInit})};function le(h){var b=new FormData;return h.trim().split("&").forEach(function(I){if(I){var $=I.split("="),G=$.shift().replace(/\+/g," "),M=$.join("=").replace(/\+/g," ");b.append(decodeURIComponent(G),decodeURIComponent(M))}}),b}function Ne(h){var b=new y,I=h.replace(/\r?\n[\t ]+/g," ");return I.split("\r").map(function($){return $.indexOf(`
2
- `)===0?$.substr(1,$.length):$}).forEach(function($){var G=$.split(":"),M=G.shift().trim();if(M){var br=G.join(":").trim();try{b.append(M,br)}catch(ho){console.warn("Response "+ho.message)}}}),b}N.call(U.prototype);function se(h,b){if(!(this instanceof se))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 y(b.headers),this.url=b.url||"",this._initBody(h)}N.call(se.prototype),se.prototype.clone=function(){return new se(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},se.error=function(){var h=new se(null,{status:200,statusText:""});return h.ok=!1,h.status=0,h.type="error",h};var Te=[301,302,303,307,308];se.redirect=function(h,b){if(Te.indexOf(b)===-1)throw new RangeError("Invalid status code");return new se(null,{status:b,headers:{location:h}})},o.DOMException=n.DOMException;try{new o.DOMException}catch{o.DOMException=function(b,I){this.message=b,this.name=I;var $=Error(b);this.stack=$.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function ee(h,b){return new Promise(function(I,$){var G=new U(h,b);if(G.signal&&G.signal.aborted)return $(new o.DOMException("Aborted","AbortError"));var M=new XMLHttpRequest;function br(){M.abort()}M.onload=function(){var te={statusText:M.statusText,headers:Ne(M.getAllResponseHeaders()||"")};G.url.indexOf("file://")===0&&(M.status<200||M.status>599)?te.status=200:te.status=M.status,te.url="responseURL"in M?M.responseURL:te.headers.get("X-Request-URL");var it="response"in M?M.response:M.responseText;setTimeout(function(){I(new se(it,te))},0)},M.onerror=function(){setTimeout(function(){$(new TypeError("Network request failed"))},0)},M.ontimeout=function(){setTimeout(function(){$(new TypeError("Network request timed out"))},0)},M.onabort=function(){setTimeout(function(){$(new o.DOMException("Aborted","AbortError"))},0)};function ho(te){try{return te===""&&n.location.href?n.location.href:te}catch{return te}}if(M.open(G.method,ho(G.url),!0),G.credentials==="include"?M.withCredentials=!0:G.credentials==="omit"&&(M.withCredentials=!1),"responseType"in M&&(a.blob?M.responseType="blob":a.arrayBuffer&&(M.responseType="arraybuffer")),b&&typeof b.headers=="object"&&!(b.headers instanceof y||n.Headers&&b.headers instanceof n.Headers)){var Sn=[];Object.getOwnPropertyNames(b.headers).forEach(function(te){Sn.push(u(te)),M.setRequestHeader(te,p(b.headers[te]))}),G.headers.forEach(function(te,it){Sn.indexOf(it)===-1&&M.setRequestHeader(it,te)})}else G.headers.forEach(function(te,it){M.setRequestHeader(it,te)});G.signal&&(G.signal.addEventListener("abort",br),M.onreadystatechange=function(){M.readyState===4&&G.signal.removeEventListener("abort",br)}),M.send(typeof G._bodyInit>"u"?null:G._bodyInit)})}return ee.polyfill=!0,n.fetch||(n.fetch=ee,n.Headers=y,n.Request=U,n.Response=se),o.Headers=y,o.Request=U,o.Response=se,o.fetch=ee,o}({})})(Xr);Xr.fetch.ponyfill=!0;delete Xr.fetch.polyfill;var Gt=Yr.fetch?Yr:Xr;nt=Gt.fetch;nt.default=Gt.fetch;nt.fetch=Gt.fetch;nt.Headers=Gt.Headers;nt.Request=Gt.Request;nt.Response=Gt.Response;ks.exports=nt});var Cc=C(k());var gr=C(j()),Oc=C(ne()),fo=C(k());var Fo=C(k());var nr=C(ne()),Ii=C(k());var Ea=C(j()),D=C(k());var In=C(j()),Z=C(k()),An=Z.FtCssVariableFactory.extend("--ft-ripple-color","",Z.designSystemVariables.colorContent),E={color:An,backgroundColor:Z.FtCssVariableFactory.extend("--ft-ripple-background-color","",An),opacityContentOnSurfacePressed:Z.FtCssVariableFactory.external(Z.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Z.FtCssVariableFactory.external(Z.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Z.FtCssVariableFactory.external(Z.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Z.FtCssVariableFactory.external(Z.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Z.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Rn=Z.FtCssVariableFactory.extend("--ft-ripple-color","",Z.designSystemVariables.colorPrimary),Nn={color:Rn,backgroundColor:Z.FtCssVariableFactory.extend("--ft-ripple-background-color","",Rn)},Tn=Z.FtCssVariableFactory.extend("--ft-ripple-color","",Z.designSystemVariables.colorSecondary),Ln={color:Tn,backgroundColor:Z.FtCssVariableFactory.extend("--ft-ripple-background-color","",Tn)},_n=In.css`
1
+ "use strict";(()=>{var Ec=Object.create;var On=Object.defineProperty;var wc=Object.getOwnPropertyDescriptor;var Ac=Object.getOwnPropertyNames;var Rc=Object.getPrototypeOf,Nc=Object.prototype.hasOwnProperty;var xt=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var Tc=(e,r,o,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of Ac(r))!Nc.call(e,a)&&a!==o&&On(e,a,{get:()=>r[a],enumerable:!(n=wc(r,a))||n.enumerable});return e};var C=(e,r,o)=>(o=e!=null?Ec(Rc(e)):{},Tc(r||!e||!e.__esModule?On(o,"default",{value:e,enumerable:!0}):o,e));var k=xt((Jl,Cn)=>{Cn.exports=ftGlobals.wcUtils});var j=xt((ed,En)=>{En.exports=ftGlobals.lit});var oe=xt((td,wn)=>{wn.exports=ftGlobals.litDecorators});var mo=xt((Sh,Aa)=>{Aa.exports=ftGlobals.litClassMap});var Ei=xt((wy,Ci)=>{Ci.exports=ftGlobals.litUnsafeHTML});var Ds=xt((nt,ks)=>{var Yr=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Xr=function(){function e(){this.fetch=!1,this.DOMException=Yr.DOMException}return e.prototype=Yr,new e}();(function(e){var r=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(h){return h&&DataView.prototype.isPrototypeOf(h)}if(a.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(h){return h&&c.indexOf(Object.prototype.toString.call(h))>-1};function u(h){if(typeof h!="string"&&(h=String(h)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(h)||h==="")throw new TypeError('Invalid character in header field name: "'+h+'"');return h.toLowerCase()}function p(h){return typeof h!="string"&&(h=String(h)),h}function m(h){var b={next:function(){var I=h.shift();return{done:I===void 0,value:I}}};return a.iterable&&(b[Symbol.iterator]=function(){return b}),b}function y(h){this.map={},h instanceof y?h.forEach(function(b,I){this.append(I,b)},this):Array.isArray(h)?h.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):h&&Object.getOwnPropertyNames(h).forEach(function(b){this.append(b,h[b])},this)}y.prototype.append=function(h,b){h=u(h),b=p(b);var I=this.map[h];this.map[h]=I?I+", "+b:b},y.prototype.delete=function(h){delete this.map[u(h)]},y.prototype.get=function(h){return h=u(h),this.has(h)?this.map[h]:null},y.prototype.has=function(h){return this.map.hasOwnProperty(u(h))},y.prototype.set=function(h,b){this.map[u(h)]=p(b)},y.prototype.forEach=function(h,b){for(var I in this.map)this.map.hasOwnProperty(I)&&h.call(b,this.map[I],I,this)},y.prototype.keys=function(){var h=[];return this.forEach(function(b,I){h.push(I)}),m(h)},y.prototype.values=function(){var h=[];return this.forEach(function(b){h.push(b)}),m(h)},y.prototype.entries=function(){var h=[];return this.forEach(function(b,I){h.push([I,b])}),m(h)},a.iterable&&(y.prototype[Symbol.iterator]=y.prototype.entries);function g(h){if(!h._noBody){if(h.bodyUsed)return Promise.reject(new TypeError("Already read"));h.bodyUsed=!0}}function v(h){return new Promise(function(b,I){h.onload=function(){b(h.result)},h.onerror=function(){I(h.error)}})}function x(h){var b=new FileReader,I=v(b);return b.readAsArrayBuffer(h),I}function S(h){var b=new FileReader,I=v(b),$=/charset=([A-Za-z0-9_-]+)/.exec(h.type),z=$?$[1]:"utf-8";return b.readAsText(h,z),I}function T(h){for(var b=new Uint8Array(h),I=new Array(b.length),$=0;$<b.length;$++)I[$]=String.fromCharCode(b[$]);return I.join("")}function R(h){if(h.slice)return h.slice(0);var b=new Uint8Array(h.byteLength);return b.set(new Uint8Array(h)),b.buffer}function N(){return this.bodyUsed=!1,this._initBody=function(h){this.bodyUsed=this.bodyUsed,this._bodyInit=h,h?typeof h=="string"?this._bodyText=h:a.blob&&Blob.prototype.isPrototypeOf(h)?this._bodyBlob=h:a.formData&&FormData.prototype.isPrototypeOf(h)?this._bodyFormData=h:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(h)?this._bodyText=h.toString():a.arrayBuffer&&a.blob&&i(h)?(this._bodyArrayBuffer=R(h.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(h)||d(h))?this._bodyArrayBuffer=R(h):this._bodyText=h=Object.prototype.toString.call(h):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof h=="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(h)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var h=g(this);if(h)return h;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 h=g(this);return h||(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 h=g(this);if(h)return h;if(this._bodyBlob)return S(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(T(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(le)}),this.json=function(){return this.text().then(JSON.parse)},this}var P=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function B(h){var b=h.toUpperCase();return P.indexOf(b)>-1?b:h}function U(h,b){if(!(this instanceof U))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');b=b||{};var I=b.body;if(h instanceof U){if(h.bodyUsed)throw new TypeError("Already read");this.url=h.url,this.credentials=h.credentials,b.headers||(this.headers=new y(h.headers)),this.method=h.method,this.mode=h.mode,this.signal=h.signal,!I&&h._bodyInit!=null&&(I=h._bodyInit,h.bodyUsed=!0)}else this.url=String(h);if(this.credentials=b.credentials||this.credentials||"same-origin",(b.headers||!this.headers)&&(this.headers=new y(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 M=new AbortController;return M.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&I)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(I),(this.method==="GET"||this.method==="HEAD")&&(b.cache==="no-store"||b.cache==="no-cache")){var $=/([?&])_=[^&]*/;if($.test(this.url))this.url=this.url.replace($,"$1_="+new Date().getTime());else{var z=/\?/;this.url+=(z.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}U.prototype.clone=function(){return new U(this,{body:this._bodyInit})};function le(h){var b=new FormData;return h.trim().split("&").forEach(function(I){if(I){var $=I.split("="),z=$.shift().replace(/\+/g," "),M=$.join("=").replace(/\+/g," ");b.append(decodeURIComponent(z),decodeURIComponent(M))}}),b}function Ne(h){var b=new y,I=h.replace(/\r?\n[\t ]+/g," ");return I.split("\r").map(function($){return $.indexOf(`
2
+ `)===0?$.substr(1,$.length):$}).forEach(function($){var z=$.split(":"),M=z.shift().trim();if(M){var br=z.join(":").trim();try{b.append(M,br)}catch(ho){console.warn("Response "+ho.message)}}}),b}N.call(U.prototype);function se(h,b){if(!(this instanceof se))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 y(b.headers),this.url=b.url||"",this._initBody(h)}N.call(se.prototype),se.prototype.clone=function(){return new se(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},se.error=function(){var h=new se(null,{status:200,statusText:""});return h.ok=!1,h.status=0,h.type="error",h};var Te=[301,302,303,307,308];se.redirect=function(h,b){if(Te.indexOf(b)===-1)throw new RangeError("Invalid status code");return new se(null,{status:b,headers:{location:h}})},o.DOMException=n.DOMException;try{new o.DOMException}catch{o.DOMException=function(b,I){this.message=b,this.name=I;var $=Error(b);this.stack=$.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function ee(h,b){return new Promise(function(I,$){var z=new U(h,b);if(z.signal&&z.signal.aborted)return $(new o.DOMException("Aborted","AbortError"));var M=new XMLHttpRequest;function br(){M.abort()}M.onload=function(){var te={statusText:M.statusText,headers:Ne(M.getAllResponseHeaders()||"")};z.url.indexOf("file://")===0&&(M.status<200||M.status>599)?te.status=200:te.status=M.status,te.url="responseURL"in M?M.responseURL:te.headers.get("X-Request-URL");var it="response"in M?M.response:M.responseText;setTimeout(function(){I(new se(it,te))},0)},M.onerror=function(){setTimeout(function(){$(new TypeError("Network request failed"))},0)},M.ontimeout=function(){setTimeout(function(){$(new TypeError("Network request timed out"))},0)},M.onabort=function(){setTimeout(function(){$(new o.DOMException("Aborted","AbortError"))},0)};function ho(te){try{return te===""&&n.location.href?n.location.href:te}catch{return te}}if(M.open(z.method,ho(z.url),!0),z.credentials==="include"?M.withCredentials=!0:z.credentials==="omit"&&(M.withCredentials=!1),"responseType"in M&&(a.blob?M.responseType="blob":a.arrayBuffer&&(M.responseType="arraybuffer")),b&&typeof b.headers=="object"&&!(b.headers instanceof y||n.Headers&&b.headers instanceof n.Headers)){var Sn=[];Object.getOwnPropertyNames(b.headers).forEach(function(te){Sn.push(u(te)),M.setRequestHeader(te,p(b.headers[te]))}),z.headers.forEach(function(te,it){Sn.indexOf(it)===-1&&M.setRequestHeader(it,te)})}else z.headers.forEach(function(te,it){M.setRequestHeader(it,te)});z.signal&&(z.signal.addEventListener("abort",br),M.onreadystatechange=function(){M.readyState===4&&z.signal.removeEventListener("abort",br)}),M.send(typeof z._bodyInit>"u"?null:z._bodyInit)})}return ee.polyfill=!0,n.fetch||(n.fetch=ee,n.Headers=y,n.Request=U,n.Response=se),o.Headers=y,o.Request=U,o.Response=se,o.fetch=ee,o}({})})(Xr);Xr.fetch.ponyfill=!0;delete Xr.fetch.polyfill;var Gt=Yr.fetch?Yr:Xr;nt=Gt.fetch;nt.default=Gt.fetch;nt.fetch=Gt.fetch;nt.Headers=Gt.Headers;nt.Request=Gt.Request;nt.Response=Gt.Response;ks.exports=nt});var Cc=C(k());var gr=C(j()),Oc=C(oe()),fo=C(k());var Fo=C(k());var nr=C(oe()),Ii=C(k());var Ea=C(j()),D=C(k());var In=C(j()),Z=C(k()),An=Z.FtCssVariableFactory.extend("--ft-ripple-color","",Z.designSystemVariables.colorContent),E={color:An,backgroundColor:Z.FtCssVariableFactory.extend("--ft-ripple-background-color","",An),opacityContentOnSurfacePressed:Z.FtCssVariableFactory.external(Z.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Z.FtCssVariableFactory.external(Z.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Z.FtCssVariableFactory.external(Z.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Z.FtCssVariableFactory.external(Z.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Z.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Rn=Z.FtCssVariableFactory.extend("--ft-ripple-color","",Z.designSystemVariables.colorPrimary),Nn={color:Rn,backgroundColor:Z.FtCssVariableFactory.extend("--ft-ripple-background-color","",Rn)},Tn=Z.FtCssVariableFactory.extend("--ft-ripple-color","",Z.designSystemVariables.colorSecondary),Ln={color:Tn,backgroundColor:Z.FtCssVariableFactory.extend("--ft-ripple-background-color","",Tn)},_n=In.css`
3
3
  :host {
4
4
  display: contents;
5
5
  }
@@ -333,7 +333,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
333
333
  .ft-icon--material {
334
334
  font-family: ${ce.materialFontFamily}, "Material Icons", sans-serif;
335
335
  }
336
- `,ve.noTextSelect];var Oa=D.FtCssVariableFactory.extend("--ft-button-color","",D.designSystemVariables.colorPrimary),Q={backgroundColor:D.FtCssVariableFactory.extend("--ft-button-background-color","",D.designSystemVariables.colorSurface),borderRadius:D.FtCssVariableFactory.extend("--ft-button-border-radius","",D.designSystemVariables.borderRadiusL),color:Oa,fontSize:D.FtCssVariableFactory.extend("--ft-button-font-size","",Le.fontSize),iconSize:D.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:D.FtCssVariableFactory.extend("--ft-button-ripple-color","",Oa),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")},Ca=D.FtCssVariableFactory.extend("--ft-button-primary-color","",D.FtCssVariableFactory.extend("--ft-button-color","",D.designSystemVariables.colorOnPrimary)),yo={backgroundColor:D.FtCssVariableFactory.extend("--ft-button-primary-background-color","",D.FtCssVariableFactory.extend("--ft-button-background-color","",D.designSystemVariables.colorPrimary)),color:Ca,rippleColor:D.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Ca)},Ie={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")},wa=[Ea.css`
336
+ `,ve.noTextSelect];var Oa=D.FtCssVariableFactory.extend("--ft-button-color","",D.designSystemVariables.colorPrimary),X={backgroundColor:D.FtCssVariableFactory.extend("--ft-button-background-color","",D.designSystemVariables.colorSurface),borderRadius:D.FtCssVariableFactory.extend("--ft-button-border-radius","",D.designSystemVariables.borderRadiusL),color:Oa,fontSize:D.FtCssVariableFactory.extend("--ft-button-font-size","",Le.fontSize),iconSize:D.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:D.FtCssVariableFactory.extend("--ft-button-ripple-color","",Oa),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")},Ca=D.FtCssVariableFactory.extend("--ft-button-primary-color","",D.FtCssVariableFactory.extend("--ft-button-color","",D.designSystemVariables.colorOnPrimary)),yo={backgroundColor:D.FtCssVariableFactory.extend("--ft-button-primary-background-color","",D.FtCssVariableFactory.extend("--ft-button-background-color","",D.designSystemVariables.colorPrimary)),color:Ca,rippleColor:D.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Ca)},Ie={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")},wa=[Ea.css`
337
337
  :host {
338
338
  display: inline-block;
339
339
  max-width: 100%;
@@ -344,7 +344,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
344
344
  box-shadow: 0px 0px 0px transparent;
345
345
  border: 0px solid transparent;
346
346
  text-shadow: 0px 0px 0px transparent;
347
- font-size: ${Q.fontSize};
347
+ font-size: ${X.fontSize};
348
348
  text-decoration: none;
349
349
  }
350
350
 
@@ -374,21 +374,21 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
374
374
  border: none;
375
375
  pointer-events: auto;
376
376
 
377
- --ft-button-internal-line-height: max(calc(${Q.fontSize} + 2px), ${Q.iconSize});
378
- --ft-button-internal-color: ${Q.color};
379
- ${(0,D.setVariable)(ce.size,Q.iconSize)};
380
- ${(0,D.setVariable)(E.color,Q.rippleColor)};
377
+ --ft-button-internal-line-height: max(calc(${X.fontSize} + 2px), ${X.iconSize});
378
+ --ft-button-internal-color: ${X.color};
379
+ ${(0,D.setVariable)(ce.size,X.iconSize)};
380
+ ${(0,D.setVariable)(E.color,X.rippleColor)};
381
381
 
382
- border-radius: ${Q.borderRadius};
383
- padding: ${Q.verticalPadding} ${Q.horizontalPadding};
384
- background-color: ${Q.backgroundColor};
382
+ border-radius: ${X.borderRadius};
383
+ padding: ${X.verticalPadding} ${X.horizontalPadding};
384
+ background-color: ${X.backgroundColor};
385
385
  color: var(--ft-button-internal-color);
386
386
  -webkit-mask-image: radial-gradient(white, black);
387
387
  }
388
388
 
389
389
  .ft-button.ft-button--outlined {
390
390
  border: 1px solid var(--ft-button-internal-color);
391
- padding: calc(${Q.verticalPadding} - 1px) calc(${Q.horizontalPadding} - 1px);
391
+ padding: calc(${X.verticalPadding} - 1px) calc(${X.horizontalPadding} - 1px);
392
392
  }
393
393
 
394
394
  .ft-button.ft-button--dense {
@@ -406,7 +406,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
406
406
  }
407
407
 
408
408
  .ft-button--round {
409
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Q.verticalPadding});
409
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${X.verticalPadding});
410
410
  }
411
411
 
412
412
  .ft-button--round.ft-button--dense {
@@ -415,7 +415,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
415
415
 
416
416
  .ft-button[disabled] {
417
417
  filter: grayscale(1);
418
- opacity: ${Q.opacityDisabled};
418
+ opacity: ${X.opacityDisabled};
419
419
  }
420
420
 
421
421
  .ft-button.ft-button--primary {
@@ -434,7 +434,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
434
434
  white-space: nowrap;
435
435
  text-overflow: ellipsis;
436
436
  display: block;
437
- margin: 0 ${Q.iconPadding};
437
+ margin: 0 ${X.iconPadding};
438
438
  ${(0,D.setVariable)(Le.fontSize,"1em")};
439
439
  ${(0,D.setVariable)(Le.lineHeight,"var(--ft-button-internal-line-height)")};
440
440
  }
@@ -453,8 +453,8 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
453
453
  }
454
454
 
455
455
  .ft-button--label[hidden] + [part="icon"] {
456
- margin: 0 calc(${Q.horizontalPadding} * -1);
457
- padding: 0 ${Q.verticalPadding};
456
+ margin: 0 calc(${X.horizontalPadding} * -1);
457
+ padding: 0 ${X.verticalPadding};
458
458
  }
459
459
 
460
460
  .ft-button--dense .ft-button--label[hidden] + [part="icon"] {
@@ -467,10 +467,10 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
467
467
  }
468
468
 
469
469
  ft-loader {
470
- ${(0,D.setVariable)(W.size,Q.iconSize)};
470
+ ${(0,D.setVariable)(W.size,X.iconSize)};
471
471
  ${(0,D.setVariable)(W.color,"var(--ft-button-internal-color)")};
472
472
  }
473
- `,D.noTextSelect];var Xe=C(k());var Ta=C(k());var Ra=C(j()),re=C(ne()),Na=C(mo()),Kt=C(k());var de=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},K=class extends Kt.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 Kt.Debouncer(1e3),this.onTransitionStart=r=>{r.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=r=>{r.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new Kt.Debouncer(10),this.moveRipple=r=>{var o,n;let{x:a,y:i}=this.getCoordinates(r),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=r=>{this.moveRipple(r),this.pressed=!this.isIgnored(r)},this.endPress=()=>{this.pressed=!1},this.startHover=r=>{this.hovered=!this.isIgnored(r)},this.endHover=()=>{this.hovered=!1},this.startFocus=r=>{this.focused=this.isFocusVisible(r?.target)&&!this.isIgnored(r)},this.endFocus=()=>{this.focused=!1}}render(){let r={"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 Ra.html`
473
+ `,D.noTextSelect];var Xe=C(k());var Ta=C(k());var Ra=C(j()),re=C(oe()),Na=C(mo()),Kt=C(k());var de=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},K=class extends Kt.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 Kt.Debouncer(1e3),this.onTransitionStart=r=>{r.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=r=>{r.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new Kt.Debouncer(10),this.moveRipple=r=>{var o,n;let{x:a,y:i}=this.getCoordinates(r),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=r=>{this.moveRipple(r),this.pressed=!this.isIgnored(r)},this.endPress=()=>{this.pressed=!1},this.startHover=r=>{this.hovered=!this.isIgnored(r)},this.endHover=()=>{this.hovered=!1},this.startFocus=r=>{this.focused=this.isFocusVisible(r?.target)&&!this.isIgnored(r)},this.endFocus=()=>{this.focused=!1}}render(){let r={"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 Ra.html`
474
474
  <style>
475
475
  .ft-ripple .ft-ripple--effect {
476
476
  left: ${this.originX}px;
@@ -481,9 +481,9 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
481
481
  <div class="ft-ripple--background"></div>
482
482
  <div class="ft-ripple--effect"></div>
483
483
  </div>
484
- `}contentAvailableCallback(r){super.contentAvailableCallback(r),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(r){var o,n;super.update(r),r.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 r,o;let n=(r=this.shadowRoot)===null||r===void 0?void 0:r.host.parentElement;n&&this.setupFor((o=this.target)!==null&&o!==void 0?o:n)}forceFocusUpdate(){var r;!((r=this.target)===null||r===void 0)&&r.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(r){if(this.setupDebouncer.cancel(),this.target===r)return;this.onDisconnect&&this.onDisconnect(),this.target=r,r.setAttribute("data-is-ft-ripple-target","true");let o=(...d)=>u=>{d.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(u)},n=o("mouseup","contextmenu"),a=o("touchend","touchcancel"),i=d=>{["Enter"," "].includes(d.key)&&o("keyup")(d)},c={passive:!0};r.addEventListener("mouseover",this.startHover,c),r.addEventListener("mousemove",this.moveRipple,c),r.addEventListener("mouseleave",this.endHover,c),r.addEventListener("mousedown",n,c),r.addEventListener("touchstart",a,c),r.addEventListener("touchmove",this.moveRipple,c),r.addEventListener("keydown",i,c),r.addEventListener("focus",this.startFocus,c),r.addEventListener("blur",this.endFocus,c),r.addEventListener("focusin",this.startFocus,c),r.addEventListener("focusout",this.endFocus,c),this.onDisconnect=()=>{r.removeAttribute("data-is-ft-ripple-target"),r.removeEventListener("mouseover",this.startHover,c),r.removeEventListener("mousemove",this.moveRipple,c),r.removeEventListener("mouseleave",this.endHover,c),r.removeEventListener("mousedown",n,c),r.removeEventListener("touchstart",a,c),r.removeEventListener("touchmove",this.moveRipple,c),r.removeEventListener("keydown",i,c),r.removeEventListener("focus",this.startFocus,c),r.removeEventListener("blur",this.endFocus,c),r.removeEventListener("focusin",this.startFocus,c),r.removeEventListener("focusout",this.endFocus,c),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(r){let o=r,n=r,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(r){return r instanceof HTMLElement?r.matches(":focus-visible"):!0}isIgnored(r){if(this.disabled)return!0;if(r!=null)for(let o of r.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()}};K.elementDefinitions={};K.styles=_n;de([(0,re.property)({type:Boolean})],K.prototype,"primary",void 0);de([(0,re.property)({type:Boolean})],K.prototype,"secondary",void 0);de([(0,re.property)({type:Boolean})],K.prototype,"unbounded",void 0);de([(0,re.property)({type:Boolean})],K.prototype,"activated",void 0);de([(0,re.property)({type:Boolean})],K.prototype,"selected",void 0);de([(0,re.property)({type:Boolean})],K.prototype,"disabled",void 0);de([(0,re.state)()],K.prototype,"hovered",void 0);de([(0,re.state)()],K.prototype,"focused",void 0);de([(0,re.state)()],K.prototype,"pressed",void 0);de([(0,re.state)()],K.prototype,"rippling",void 0);de([(0,re.state)()],K.prototype,"originX",void 0);de([(0,re.state)()],K.prototype,"originY",void 0);de([(0,re.query)(".ft-ripple")],K.prototype,"ripple",void 0);de([(0,re.query)(".ft-ripple--effect")],K.prototype,"rippleEffect",void 0);(0,Ta.customElement)("ft-ripple")(K);var Oi=C(k());var Si=C(j()),q=C(ne()),tr=C(k());var Va=C(k());var Co=globalThis,Or=Co.trustedTypes,La=Or?Or.createPolicy("lit-html",{createHTML:e=>e}):void 0,Ba="$lit$",Ke=`lit$${Math.random().toFixed(9).slice(2)}$`,Ua="?"+Ke,Ic=`<${Ua}>`,lt=document,Cr=()=>lt.createComment(""),Zt=e=>e===null||typeof e!="object"&&typeof e!="function",Eo=Array.isArray,_c=e=>Eo(e)||typeof e?.[Symbol.iterator]=="function",go=`[
484
+ `}contentAvailableCallback(r){super.contentAvailableCallback(r),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(r){var o,n;super.update(r),r.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 r,o;let n=(r=this.shadowRoot)===null||r===void 0?void 0:r.host.parentElement;n&&this.setupFor((o=this.target)!==null&&o!==void 0?o:n)}forceFocusUpdate(){var r;!((r=this.target)===null||r===void 0)&&r.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(r){if(this.setupDebouncer.cancel(),this.target===r)return;this.onDisconnect&&this.onDisconnect(),this.target=r,r.setAttribute("data-is-ft-ripple-target","true");let o=(...d)=>u=>{d.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(u)},n=o("mouseup","contextmenu"),a=o("touchend","touchcancel"),i=d=>{["Enter"," "].includes(d.key)&&o("keyup")(d)},c={passive:!0};r.addEventListener("mouseover",this.startHover,c),r.addEventListener("mousemove",this.moveRipple,c),r.addEventListener("mouseleave",this.endHover,c),r.addEventListener("mousedown",n,c),r.addEventListener("touchstart",a,c),r.addEventListener("touchmove",this.moveRipple,c),r.addEventListener("keydown",i,c),r.addEventListener("focus",this.startFocus,c),r.addEventListener("blur",this.endFocus,c),r.addEventListener("focusin",this.startFocus,c),r.addEventListener("focusout",this.endFocus,c),this.onDisconnect=()=>{r.removeAttribute("data-is-ft-ripple-target"),r.removeEventListener("mouseover",this.startHover,c),r.removeEventListener("mousemove",this.moveRipple,c),r.removeEventListener("mouseleave",this.endHover,c),r.removeEventListener("mousedown",n,c),r.removeEventListener("touchstart",a,c),r.removeEventListener("touchmove",this.moveRipple,c),r.removeEventListener("keydown",i,c),r.removeEventListener("focus",this.startFocus,c),r.removeEventListener("blur",this.endFocus,c),r.removeEventListener("focusin",this.startFocus,c),r.removeEventListener("focusout",this.endFocus,c),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(r){let o=r,n=r,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(r){return r instanceof HTMLElement?r.matches(":focus-visible"):!0}isIgnored(r){if(this.disabled)return!0;if(r!=null)for(let o of r.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()}};K.elementDefinitions={};K.styles=_n;de([(0,re.property)({type:Boolean})],K.prototype,"primary",void 0);de([(0,re.property)({type:Boolean})],K.prototype,"secondary",void 0);de([(0,re.property)({type:Boolean})],K.prototype,"unbounded",void 0);de([(0,re.property)({type:Boolean})],K.prototype,"activated",void 0);de([(0,re.property)({type:Boolean})],K.prototype,"selected",void 0);de([(0,re.property)({type:Boolean})],K.prototype,"disabled",void 0);de([(0,re.state)()],K.prototype,"hovered",void 0);de([(0,re.state)()],K.prototype,"focused",void 0);de([(0,re.state)()],K.prototype,"pressed",void 0);de([(0,re.state)()],K.prototype,"rippling",void 0);de([(0,re.state)()],K.prototype,"originX",void 0);de([(0,re.state)()],K.prototype,"originY",void 0);de([(0,re.query)(".ft-ripple")],K.prototype,"ripple",void 0);de([(0,re.query)(".ft-ripple--effect")],K.prototype,"rippleEffect",void 0);(0,Ta.customElement)("ft-ripple")(K);var Oi=C(k());var Si=C(j()),q=C(oe()),tr=C(k());var Va=C(k());var Co=globalThis,Or=Co.trustedTypes,La=Or?Or.createPolicy("lit-html",{createHTML:e=>e}):void 0,Ba="$lit$",Ke=`lit$${Math.random().toFixed(9).slice(2)}$`,Ua="?"+Ke,Ic=`<${Ua}>`,lt=document,Cr=()=>lt.createComment(""),Zt=e=>e===null||typeof e!="object"&&typeof e!="function",Eo=Array.isArray,_c=e=>Eo(e)||typeof e?.[Symbol.iterator]=="function",go=`[
485
485
  \f\r]`,Vt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ia=/-->/g,_a=/>/g,st=RegExp(`>|${go}(?:([^\\s"'>=/]+)(${go}*=${go}*(?:[^
486
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Pa=/'/g,ka=/"/g,Ma=/^(?:script|style|textarea|title)$/i,wo=e=>(r,...o)=>({_$litType$:e,strings:r,values:o}),$a=wo(1),Wa=wo(2),Ha=wo(3),qt=Symbol.for("lit-noChange"),J=Symbol.for("lit-nothing"),Da=new WeakMap,ct=lt.createTreeWalker(lt,129);function Fa(e,r){if(!Eo(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return La!==void 0?La.createHTML(r):r}var Pc=(e,r)=>{let o=e.length-1,n=[],a,i=r===2?"<svg>":r===3?"<math>":"",c=Vt;for(let d=0;d<o;d++){let u=e[d],p,m,y=-1,g=0;for(;g<u.length&&(c.lastIndex=g,m=c.exec(u),m!==null);)g=c.lastIndex,c===Vt?m[1]==="!--"?c=Ia:m[1]!==void 0?c=_a:m[2]!==void 0?(Ma.test(m[2])&&(a=RegExp("</"+m[2],"g")),c=st):m[3]!==void 0&&(c=st):c===st?m[0]===">"?(c=a??Vt,y=-1):m[1]===void 0?y=-2:(y=c.lastIndex-m[2].length,p=m[1],c=m[3]===void 0?st:m[3]==='"'?ka:Pa):c===ka||c===Pa?c=st:c===Ia||c===_a?c=Vt:(c=st,a=void 0);let v=c===st&&e[d+1].startsWith("/>")?" ":"";i+=c===Vt?u+Ic:y>=0?(n.push(p),u.slice(0,y)+Ba+u.slice(y)+Ke+v):u+Ke+(y===-2?d:v)}return[Fa(e,i+(e[o]||"<?>")+(r===2?"</svg>":r===3?"</math>":"")),n]},Yt=class e{constructor({strings:r,_$litType$:o},n){let a;this.parts=[];let i=0,c=0,d=r.length-1,u=this.parts,[p,m]=Pc(r,o);if(this.el=e.createElement(p,n),ct.currentNode=this.el.content,o===2||o===3){let y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(a=ct.nextNode())!==null&&u.length<d;){if(a.nodeType===1){if(a.hasAttributes())for(let y of a.getAttributeNames())if(y.endsWith(Ba)){let g=m[c++],v=a.getAttribute(y).split(Ke),x=/([.?@])?(.*)/.exec(g);u.push({type:1,index:i,name:x[2],strings:v,ctor:x[1]==="."?xo:x[1]==="?"?vo:x[1]==="@"?So:It}),a.removeAttribute(y)}else y.startsWith(Ke)&&(u.push({type:6,index:i}),a.removeAttribute(y));if(Ma.test(a.tagName)){let y=a.textContent.split(Ke),g=y.length-1;if(g>0){a.textContent=Or?Or.emptyScript:"";for(let v=0;v<g;v++)a.append(y[v],Cr()),ct.nextNode(),u.push({type:2,index:++i});a.append(y[g],Cr())}}}else if(a.nodeType===8)if(a.data===Ua)u.push({type:2,index:i});else{let y=-1;for(;(y=a.data.indexOf(Ke,y+1))!==-1;)u.push({type:7,index:i}),y+=Ke.length-1}i++}}static createElement(r,o){let n=lt.createElement("template");return n.innerHTML=r,n}};function Lt(e,r,o=e,n){if(r===qt)return r;let a=n!==void 0?o._$Co?.[n]:o._$Cl,i=Zt(r)?void 0:r._$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&&(r=Lt(e,a._$AS(e,r.values),a,n)),r}var bo=class{constructor(r,o){this._$AV=[],this._$AN=void 0,this._$AD=r,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(r){let{el:{content:o},parts:n}=this._$AD,a=(r?.creationScope??lt).importNode(o,!0);ct.currentNode=a;let i=ct.nextNode(),c=0,d=0,u=n[0];for(;u!==void 0;){if(c===u.index){let p;u.type===2?p=new Er(i,i.nextSibling,this,r):u.type===1?p=new u.ctor(i,u.name,u.strings,this,r):u.type===6&&(p=new Oo(i,this,r)),this._$AV.push(p),u=n[++d]}c!==u?.index&&(i=ct.nextNode(),c++)}return ct.currentNode=lt,a}p(r){let o=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(r,n,o),o+=n.strings.length-2):n._$AI(r[o])),o++}},Er=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(r,o,n,a){this.type=2,this._$AH=J,this._$AN=void 0,this._$AA=r,this._$AB=o,this._$AM=n,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let r=this._$AA.parentNode,o=this._$AM;return o!==void 0&&r?.nodeType===11&&(r=o.parentNode),r}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(r,o=this){r=Lt(this,r,o),Zt(r)?r===J||r==null||r===""?(this._$AH!==J&&this._$AR(),this._$AH=J):r!==this._$AH&&r!==qt&&this._(r):r._$litType$!==void 0?this.$(r):r.nodeType!==void 0?this.T(r):_c(r)?this.k(r):this._(r)}O(r){return this._$AA.parentNode.insertBefore(r,this._$AB)}T(r){this._$AH!==r&&(this._$AR(),this._$AH=this.O(r))}_(r){this._$AH!==J&&Zt(this._$AH)?this._$AA.nextSibling.data=r:this.T(lt.createTextNode(r)),this._$AH=r}$(r){let{values:o,_$litType$:n}=r,a=typeof n=="number"?this._$AC(r):(n.el===void 0&&(n.el=Yt.createElement(Fa(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(o);else{let i=new bo(a,this),c=i.u(this.options);i.p(o),this.T(c),this._$AH=i}}_$AC(r){let o=Da.get(r.strings);return o===void 0&&Da.set(r.strings,o=new Yt(r)),o}k(r){Eo(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,n,a=0;for(let i of r)a===o.length?o.push(n=new e(this.O(Cr()),this.O(Cr()),this,this.options)):n=o[a],n._$AI(i),a++;a<o.length&&(this._$AR(n&&n._$AB.nextSibling,a),o.length=a)}_$AR(r=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);r&&r!==this._$AB;){let n=r.nextSibling;r.remove(),r=n}}setConnected(r){this._$AM===void 0&&(this._$Cv=r,this._$AP?.(r))}},It=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(r,o,n,a,i){this.type=1,this._$AH=J,this._$AN=void 0,this.element=r,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(r,o=this,n,a){let i=this.strings,c=!1;if(i===void 0)r=Lt(this,r,o,0),c=!Zt(r)||r!==this._$AH&&r!==qt,c&&(this._$AH=r);else{let d=r,u,p;for(r=i[0],u=0;u<i.length-1;u++)p=Lt(this,d[n+u],o,u),p===qt&&(p=this._$AH[u]),c||=!Zt(p)||p!==this._$AH[u],p===J?r=J:r!==J&&(r+=(p??"")+i[u+1]),this._$AH[u]=p}c&&!a&&this.j(r)}j(r){r===J?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,r??"")}},xo=class extends It{constructor(){super(...arguments),this.type=3}j(r){this.element[this.name]=r===J?void 0:r}},vo=class extends It{constructor(){super(...arguments),this.type=4}j(r){this.element.toggleAttribute(this.name,!!r&&r!==J)}},So=class extends It{constructor(r,o,n,a,i){super(r,o,n,a,i),this.type=5}_$AI(r,o=this){if((r=Lt(this,r,o,0)??J)===qt)return;let n=this._$AH,a=r===J&&n!==J||r.capture!==n.capture||r.once!==n.once||r.passive!==n.passive,i=r!==J&&(n===J||a);a&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,r),this._$AH=r}handleEvent(r){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,r):this._$AH.handleEvent(r)}},Oo=class{constructor(r,o,n){this.element=r,this.type=6,this._$AN=void 0,this._$AM=o,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(r){Lt(this,r)}};var kc=Co.litHtmlPolyfillSupport;kc?.(Yt,Er),(Co.litHtmlVersions??=[]).push("3.3.0");var Ga=Symbol.for(""),Dc=e=>{if(e?.r===Ga)return e?._$litStatic$},Ao=e=>({_$litStatic$:e,r:Ga});var za=new Map,Ro=e=>(r,...o)=>{let n=o.length,a,i,c=[],d=[],u,p=0,m=!1;for(;p<n;){for(u=r[p];p<n&&(i=o[p],(a=Dc(i))!==void 0);)u+=a+r[++p],m=!0;p!==n&&d.push(i),c.push(u),p++}if(p===n&&c.push(r[n]),m){let y=c.join("$$lit$$");(r=za.get(y))===void 0&&(c.raw=c,za.set(y,r=c)),o=d}return e(r,...o)},No=Ro($a),Ih=Ro(Wa),_h=Ro(Ha);var To=C(ne()),Ka=C(k());var Ve;(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"})(Ve||(Ve={}));var ja=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Se=class extends Ka.FtLitElement{constructor(){super(...arguments),this.variant=Ve.body1}render(){return this.element?No`
486
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Pa=/'/g,ka=/"/g,Ma=/^(?:script|style|textarea|title)$/i,wo=e=>(r,...o)=>({_$litType$:e,strings:r,values:o}),$a=wo(1),Wa=wo(2),Ha=wo(3),qt=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),Da=new WeakMap,ct=lt.createTreeWalker(lt,129);function Fa(e,r){if(!Eo(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return La!==void 0?La.createHTML(r):r}var Pc=(e,r)=>{let o=e.length-1,n=[],a,i=r===2?"<svg>":r===3?"<math>":"",c=Vt;for(let d=0;d<o;d++){let u=e[d],p,m,y=-1,g=0;for(;g<u.length&&(c.lastIndex=g,m=c.exec(u),m!==null);)g=c.lastIndex,c===Vt?m[1]==="!--"?c=Ia:m[1]!==void 0?c=_a:m[2]!==void 0?(Ma.test(m[2])&&(a=RegExp("</"+m[2],"g")),c=st):m[3]!==void 0&&(c=st):c===st?m[0]===">"?(c=a??Vt,y=-1):m[1]===void 0?y=-2:(y=c.lastIndex-m[2].length,p=m[1],c=m[3]===void 0?st:m[3]==='"'?ka:Pa):c===ka||c===Pa?c=st:c===Ia||c===_a?c=Vt:(c=st,a=void 0);let v=c===st&&e[d+1].startsWith("/>")?" ":"";i+=c===Vt?u+Ic:y>=0?(n.push(p),u.slice(0,y)+Ba+u.slice(y)+Ke+v):u+Ke+(y===-2?d:v)}return[Fa(e,i+(e[o]||"<?>")+(r===2?"</svg>":r===3?"</math>":"")),n]},Yt=class e{constructor({strings:r,_$litType$:o},n){let a;this.parts=[];let i=0,c=0,d=r.length-1,u=this.parts,[p,m]=Pc(r,o);if(this.el=e.createElement(p,n),ct.currentNode=this.el.content,o===2||o===3){let y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(a=ct.nextNode())!==null&&u.length<d;){if(a.nodeType===1){if(a.hasAttributes())for(let y of a.getAttributeNames())if(y.endsWith(Ba)){let g=m[c++],v=a.getAttribute(y).split(Ke),x=/([.?@])?(.*)/.exec(g);u.push({type:1,index:i,name:x[2],strings:v,ctor:x[1]==="."?xo:x[1]==="?"?vo:x[1]==="@"?So:It}),a.removeAttribute(y)}else y.startsWith(Ke)&&(u.push({type:6,index:i}),a.removeAttribute(y));if(Ma.test(a.tagName)){let y=a.textContent.split(Ke),g=y.length-1;if(g>0){a.textContent=Or?Or.emptyScript:"";for(let v=0;v<g;v++)a.append(y[v],Cr()),ct.nextNode(),u.push({type:2,index:++i});a.append(y[g],Cr())}}}else if(a.nodeType===8)if(a.data===Ua)u.push({type:2,index:i});else{let y=-1;for(;(y=a.data.indexOf(Ke,y+1))!==-1;)u.push({type:7,index:i}),y+=Ke.length-1}i++}}static createElement(r,o){let n=lt.createElement("template");return n.innerHTML=r,n}};function Lt(e,r,o=e,n){if(r===qt)return r;let a=n!==void 0?o._$Co?.[n]:o._$Cl,i=Zt(r)?void 0:r._$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&&(r=Lt(e,a._$AS(e,r.values),a,n)),r}var bo=class{constructor(r,o){this._$AV=[],this._$AN=void 0,this._$AD=r,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(r){let{el:{content:o},parts:n}=this._$AD,a=(r?.creationScope??lt).importNode(o,!0);ct.currentNode=a;let i=ct.nextNode(),c=0,d=0,u=n[0];for(;u!==void 0;){if(c===u.index){let p;u.type===2?p=new Er(i,i.nextSibling,this,r):u.type===1?p=new u.ctor(i,u.name,u.strings,this,r):u.type===6&&(p=new Oo(i,this,r)),this._$AV.push(p),u=n[++d]}c!==u?.index&&(i=ct.nextNode(),c++)}return ct.currentNode=lt,a}p(r){let o=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(r,n,o),o+=n.strings.length-2):n._$AI(r[o])),o++}},Er=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(r,o,n,a){this.type=2,this._$AH=Q,this._$AN=void 0,this._$AA=r,this._$AB=o,this._$AM=n,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let r=this._$AA.parentNode,o=this._$AM;return o!==void 0&&r?.nodeType===11&&(r=o.parentNode),r}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(r,o=this){r=Lt(this,r,o),Zt(r)?r===Q||r==null||r===""?(this._$AH!==Q&&this._$AR(),this._$AH=Q):r!==this._$AH&&r!==qt&&this._(r):r._$litType$!==void 0?this.$(r):r.nodeType!==void 0?this.T(r):_c(r)?this.k(r):this._(r)}O(r){return this._$AA.parentNode.insertBefore(r,this._$AB)}T(r){this._$AH!==r&&(this._$AR(),this._$AH=this.O(r))}_(r){this._$AH!==Q&&Zt(this._$AH)?this._$AA.nextSibling.data=r:this.T(lt.createTextNode(r)),this._$AH=r}$(r){let{values:o,_$litType$:n}=r,a=typeof n=="number"?this._$AC(r):(n.el===void 0&&(n.el=Yt.createElement(Fa(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(o);else{let i=new bo(a,this),c=i.u(this.options);i.p(o),this.T(c),this._$AH=i}}_$AC(r){let o=Da.get(r.strings);return o===void 0&&Da.set(r.strings,o=new Yt(r)),o}k(r){Eo(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,n,a=0;for(let i of r)a===o.length?o.push(n=new e(this.O(Cr()),this.O(Cr()),this,this.options)):n=o[a],n._$AI(i),a++;a<o.length&&(this._$AR(n&&n._$AB.nextSibling,a),o.length=a)}_$AR(r=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);r&&r!==this._$AB;){let n=r.nextSibling;r.remove(),r=n}}setConnected(r){this._$AM===void 0&&(this._$Cv=r,this._$AP?.(r))}},It=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(r,o,n,a,i){this.type=1,this._$AH=Q,this._$AN=void 0,this.element=r,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=Q}_$AI(r,o=this,n,a){let i=this.strings,c=!1;if(i===void 0)r=Lt(this,r,o,0),c=!Zt(r)||r!==this._$AH&&r!==qt,c&&(this._$AH=r);else{let d=r,u,p;for(r=i[0],u=0;u<i.length-1;u++)p=Lt(this,d[n+u],o,u),p===qt&&(p=this._$AH[u]),c||=!Zt(p)||p!==this._$AH[u],p===Q?r=Q:r!==Q&&(r+=(p??"")+i[u+1]),this._$AH[u]=p}c&&!a&&this.j(r)}j(r){r===Q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,r??"")}},xo=class extends It{constructor(){super(...arguments),this.type=3}j(r){this.element[this.name]=r===Q?void 0:r}},vo=class extends It{constructor(){super(...arguments),this.type=4}j(r){this.element.toggleAttribute(this.name,!!r&&r!==Q)}},So=class extends It{constructor(r,o,n,a,i){super(r,o,n,a,i),this.type=5}_$AI(r,o=this){if((r=Lt(this,r,o,0)??Q)===qt)return;let n=this._$AH,a=r===Q&&n!==Q||r.capture!==n.capture||r.once!==n.once||r.passive!==n.passive,i=r!==Q&&(n===Q||a);a&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,r),this._$AH=r}handleEvent(r){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,r):this._$AH.handleEvent(r)}},Oo=class{constructor(r,o,n){this.element=r,this.type=6,this._$AN=void 0,this._$AM=o,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(r){Lt(this,r)}};var kc=Co.litHtmlPolyfillSupport;kc?.(Yt,Er),(Co.litHtmlVersions??=[]).push("3.3.0");var Ga=Symbol.for(""),Dc=e=>{if(e?.r===Ga)return e?._$litStatic$},Ao=e=>({_$litStatic$:e,r:Ga});var za=new Map,Ro=e=>(r,...o)=>{let n=o.length,a,i,c=[],d=[],u,p=0,m=!1;for(;p<n;){for(u=r[p];p<n&&(i=o[p],(a=Dc(i))!==void 0);)u+=a+r[++p],m=!0;p!==n&&d.push(i),c.push(u),p++}if(p===n&&c.push(r[n]),m){let y=c.join("$$lit$$");(r=za.get(y))===void 0&&(c.raw=c,za.set(y,r=c)),o=d}return e(r,...o)},No=Ro($a),Ih=Ro(Wa),_h=Ro(Ha);var To=C(oe()),Ka=C(k());var Ve;(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"})(Ve||(Ve={}));var ja=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Se=class extends Ka.FtLitElement{constructor(){super(...arguments),this.variant=Ve.body1}render(){return this.element?No`
487
487
  <${Ao(this.element)}
488
488
  part="text"
489
489
  class="ft-typography ft-typography--${this.variant}">
@@ -538,7 +538,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
538
538
  </div>
539
539
  </div>
540
540
  </div>
541
- `}updated(r){r.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(r)}contentAvailableCallback(r){super.contentAvailableCallback(r),["visible","text"].some(o=>r.has(o))&&this.visible&&this.positionTooltip()}async show(r){this.visible=!0,r!=null&&await this.hideDebounce.run(()=>{this.hide()},r)}async showTemporaryText(r,o){let n=this.manual;this.manual=!0;let a=this.text;this.text=r,await this.show(o),this.text=a,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var r;return((r=this.slotNodes)!==null&&r!==void 0?r:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let r=this.tooltipContent.style;switch(r.transition="none",this.validPosition){case"top":r.top=this.tooltip.clientHeight+"px",r.left="0";break;case"bottom":r.top=-this.tooltip.clientHeight+"px",r.left="0";break;case"left":r.top="0",r.left=this.tooltip.clientWidth+"px";break;case"right":r.top="0",r.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",vi(this.slottedElement,this.tooltip,this.position).then(({x:r,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${r}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(r,o){return Math.max(r,Math.min(0,-o))}};H.elementDefinitions={"ft-typography":Se};H.styles=qa;pe([(0,q.property)()],H.prototype,"text",void 0);pe([(0,q.property)({type:Boolean})],H.prototype,"manual",void 0);pe([(0,q.property)({type:Boolean})],H.prototype,"inline",void 0);pe([(0,q.property)({type:Number})],H.prototype,"delay",void 0);pe([(0,q.property)()],H.prototype,"position",void 0);pe([(0,q.queryAssignedNodes)()],H.prototype,"slotNodes",void 0);pe([(0,q.query)(".ft-tooltip--container")],H.prototype,"container",void 0);pe([(0,q.query)(".ft-tooltip")],H.prototype,"tooltip",void 0);pe([(0,q.query)(".ft-tooltip--content")],H.prototype,"tooltipContent",void 0);pe([(0,q.state)()],H.prototype,"visible",void 0);pe([(0,q.eventOptions)({passive:!0})],H.prototype,"onTouch",null);pe([(0,q.eventOptions)({passive:!0})],H.prototype,"onHover",null);pe([(0,q.eventOptions)({passive:!0})],H.prototype,"onOut",null);pe([(0,q.eventOptions)({passive:!0})],H.prototype,"onClick",null);(0,Oi.customElement)("ft-tooltip")(H);var Ri=C(k());var rr=C(j()),qe=C(ne()),wi=C(k()),Ai=C(Ei());var Ir;(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;"})(Ir||(Ir={}));var w;(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;"})(w||(w={}));var Ay=new Map([...["abw"].map(e=>[e,w.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,w.AUDIO]),...["avi"].map(e=>[e,w.AVI]),...["chm","xhs"].map(e=>[e,w.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,w.CODE]),...["csv"].map(e=>[e,w.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,w.DITA]),...["epub"].map(e=>[e,w.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,w.EXCEL]),...["flac"].map(e=>[e,w.FLAC]),...["gif"].map(e=>[e,w.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,w.GZIP]),...["html","htm","xhtml"].map(e=>[e,w.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,w.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,w.JPEG]),...["json"].map(e=>[e,w.JSON]),...["m4a","m4p"].map(e=>[e,w.M4A]),...["mov","qt"].map(e=>[e,w.MOV]),...["mp3"].map(e=>[e,w.MP3]),...["mp4","m4v"].map(e=>[e,w.MP4]),...["ogg","oga"].map(e=>[e,w.OGG]),...["pdf","ps"].map(e=>[e,w.PDF]),...["png"].map(e=>[e,w.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,w.POWERPOINT]),...["rar"].map(e=>[e,w.RAR]),...["stp"].map(e=>[e,w.STP]),...["txt","rtf","md","mdown"].map(e=>[e,w.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,w.VIDEO]),...["wav"].map(e=>[e,w.WAV]),...["wma"].map(e=>[e,w.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,w.WORD]),...["xml","xsl","rdf"].map(e=>[e,w.XML]),...["yaml","yml","x-yaml"].map(e=>[e,w.YAML]),...["zip"].map(e=>[e,w.ZIP])]);var Ry={[w.ABW]:"#91ABC6",[w.AUDIO]:"#1795E3",[w.AVI]:"#E63324",[w.CHM]:"#71C3EB",[w.CODE]:"#71C3EB",[w.CSV]:"#1F7345",[w.DITA]:"#71C3EB",[w.EPUB]:"#85B926",[w.EXCEL]:"#1F7345",[w.FLAC]:"#1795E3",[w.GIF]:"#59B031",[w.GZIP]:"#F8AB36",[w.HTML]:"#71C3EB",[w.IMAGE]:"#59B031",[w.JPEG]:"#59B031",[w.JSON]:"#71C3EB",[w.M4A]:"#1795E3",[w.MOV]:"#E63324",[w.MP3]:"#1795E3",[w.MP4]:"#E63324",[w.OGG]:"#1795E3",[w.PDF]:"#E44948",[w.PNG]:"#59B031",[w.POWERPOINT]:"#B54A2B",[w.RAR]:"#F8AB36",[w.STP]:"#3764B1",[w.TEXT]:"#3162AB",[w.UNKNOWN]:"#999999",[w.VIDEO]:"#E63324",[w.WAV]:"#1795E3",[w.WMA]:"#1795E3",[w.WORD]:"#3162AB",[w.XML]:"#71C3EB",[w.YAML]:"#71C3EB",[w.ZIP]:"#F8AB36"};var Pe;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(Pe||(Pe={}));var or=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},ye=class extends wi.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=rr.nothing}render(){let r=this.variant&&Object.values(Pe).includes(this.variant)?this.variant:Pe.fluid_topics,o=r!==Pe.material||!!this.value;return rr.html`
541
+ `}updated(r){r.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(r)}contentAvailableCallback(r){super.contentAvailableCallback(r),["visible","text"].some(o=>r.has(o))&&this.visible&&this.positionTooltip()}async show(r){this.visible=!0,r!=null&&await this.hideDebounce.run(()=>{this.hide()},r)}async showTemporaryText(r,o){let n=this.manual;this.manual=!0;let a=this.text;this.text=r,await this.show(o),this.text=a,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var r;return((r=this.slotNodes)!==null&&r!==void 0?r:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let r=this.tooltipContent.style;switch(r.transition="none",this.validPosition){case"top":r.top=this.tooltip.clientHeight+"px",r.left="0";break;case"bottom":r.top=-this.tooltip.clientHeight+"px",r.left="0";break;case"left":r.top="0",r.left=this.tooltip.clientWidth+"px";break;case"right":r.top="0",r.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",vi(this.slottedElement,this.tooltip,this.position).then(({x:r,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${r}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(r,o){return Math.max(r,Math.min(0,-o))}};H.elementDefinitions={"ft-typography":Se};H.styles=qa;pe([(0,q.property)()],H.prototype,"text",void 0);pe([(0,q.property)({type:Boolean})],H.prototype,"manual",void 0);pe([(0,q.property)({type:Boolean})],H.prototype,"inline",void 0);pe([(0,q.property)({type:Number})],H.prototype,"delay",void 0);pe([(0,q.property)()],H.prototype,"position",void 0);pe([(0,q.queryAssignedNodes)()],H.prototype,"slotNodes",void 0);pe([(0,q.query)(".ft-tooltip--container")],H.prototype,"container",void 0);pe([(0,q.query)(".ft-tooltip")],H.prototype,"tooltip",void 0);pe([(0,q.query)(".ft-tooltip--content")],H.prototype,"tooltipContent",void 0);pe([(0,q.state)()],H.prototype,"visible",void 0);pe([(0,q.eventOptions)({passive:!0})],H.prototype,"onTouch",null);pe([(0,q.eventOptions)({passive:!0})],H.prototype,"onHover",null);pe([(0,q.eventOptions)({passive:!0})],H.prototype,"onOut",null);pe([(0,q.eventOptions)({passive:!0})],H.prototype,"onClick",null);(0,Oi.customElement)("ft-tooltip")(H);var Ri=C(k());var rr=C(j()),qe=C(oe()),wi=C(k()),Ai=C(Ei());var Ir;(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;"})(Ir||(Ir={}));var w;(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;"})(w||(w={}));var Ay=new Map([...["abw"].map(e=>[e,w.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,w.AUDIO]),...["avi"].map(e=>[e,w.AVI]),...["chm","xhs"].map(e=>[e,w.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,w.CODE]),...["csv"].map(e=>[e,w.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,w.DITA]),...["epub"].map(e=>[e,w.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,w.EXCEL]),...["flac"].map(e=>[e,w.FLAC]),...["gif"].map(e=>[e,w.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,w.GZIP]),...["html","htm","xhtml"].map(e=>[e,w.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,w.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,w.JPEG]),...["json"].map(e=>[e,w.JSON]),...["m4a","m4p"].map(e=>[e,w.M4A]),...["mov","qt"].map(e=>[e,w.MOV]),...["mp3"].map(e=>[e,w.MP3]),...["mp4","m4v"].map(e=>[e,w.MP4]),...["ogg","oga"].map(e=>[e,w.OGG]),...["pdf","ps"].map(e=>[e,w.PDF]),...["png"].map(e=>[e,w.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,w.POWERPOINT]),...["rar"].map(e=>[e,w.RAR]),...["stp"].map(e=>[e,w.STP]),...["txt","rtf","md","mdown"].map(e=>[e,w.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,w.VIDEO]),...["wav"].map(e=>[e,w.WAV]),...["wma"].map(e=>[e,w.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,w.WORD]),...["xml","xsl","rdf"].map(e=>[e,w.XML]),...["yaml","yml","x-yaml"].map(e=>[e,w.YAML]),...["zip"].map(e=>[e,w.ZIP])]);var Ry={[w.ABW]:"#91ABC6",[w.AUDIO]:"#1795E3",[w.AVI]:"#E63324",[w.CHM]:"#71C3EB",[w.CODE]:"#71C3EB",[w.CSV]:"#1F7345",[w.DITA]:"#71C3EB",[w.EPUB]:"#85B926",[w.EXCEL]:"#1F7345",[w.FLAC]:"#1795E3",[w.GIF]:"#59B031",[w.GZIP]:"#F8AB36",[w.HTML]:"#71C3EB",[w.IMAGE]:"#59B031",[w.JPEG]:"#59B031",[w.JSON]:"#71C3EB",[w.M4A]:"#1795E3",[w.MOV]:"#E63324",[w.MP3]:"#1795E3",[w.MP4]:"#E63324",[w.OGG]:"#1795E3",[w.PDF]:"#E44948",[w.PNG]:"#59B031",[w.POWERPOINT]:"#B54A2B",[w.RAR]:"#F8AB36",[w.STP]:"#3764B1",[w.TEXT]:"#3162AB",[w.UNKNOWN]:"#999999",[w.VIDEO]:"#E63324",[w.WAV]:"#1795E3",[w.WMA]:"#1795E3",[w.WORD]:"#3162AB",[w.XML]:"#71C3EB",[w.YAML]:"#71C3EB",[w.ZIP]:"#F8AB36"};var Pe;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(Pe||(Pe={}));var or=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},ye=class extends wi.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=rr.nothing}render(){let r=this.variant&&Object.values(Pe).includes(this.variant)?this.variant:Pe.fluid_topics,o=r!==Pe.material||!!this.value;return rr.html`
542
542
  <i class="ft-icon ft-icon--${r} ft-no-text-select" part="icon icon-${r}">
543
543
  ${(0,Ai.unsafeHTML)(this.resolvedIcon)}
544
544
  <slot ?hidden=${o}></slot>
@@ -550,7 +550,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
550
550
  <div></div>
551
551
  <div></div>
552
552
  </div>
553
- `}};pt.styles=xa;(0,Li.customElement)("ft-loader")(pt);var Ye=C(j()),Ho=C(mo()),Y=C(ne()),oe=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},F=class extends(0,Xe.toFtFormComponent)(Xe.FtLitElement,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",r=>{var o;this.isDisabled()?(r.preventDefault(),r.stopPropagation(),r.stopImmediatePropagation()):this.type=="submit"&&((o=this.form)===null||o===void 0||o.requestSubmit())})}render(){var r,o,n;let a=Ye.html`
553
+ `}};pt.styles=xa;(0,Li.customElement)("ft-loader")(pt);var Ye=C(j()),Ho=C(mo()),J=C(oe()),ne=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},G=class extends(0,Xe.toFtFormComponent)(Xe.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.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",r=>{var o;this.isDisabled()?(r.preventDefault(),r.stopPropagation(),r.stopImmediatePropagation()):this.type=="submit"&&((o=this.form)===null||o===void 0||o.requestSubmit())})}render(){var r,o,n;let a=Ye.html`
554
554
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
555
555
  <ft-typography part="label"
556
556
  variant=${this.typographyVariant}
@@ -587,7 +587,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
587
587
  <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
588
588
  `:Ye.html`
589
589
  <slot part="icon" name="icon"></slot>
590
- `}focus(){var r;(r=this.button)===null||r===void 0||r.focus()}focusWithoutTooltip(){var r;this.setTooltipManual(!0),(r=this.button)===null||r===void 0||r.focus(),this.setTooltipManual(!1)}showTemporaryTooltip(r,o){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(r,o)}setTooltipManual(r){this.tooltip&&(this.tooltip.manual=r)}click(){var r;(r=this.button)===null||r===void 0||r.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,Xe.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};F.elementDefinitions={"ft-ripple":K,"ft-tooltip":H,"ft-typography":Se,"ft-icon":ye,"ft-loader":pt};oe([(0,Y.property)()],F.prototype,"href",void 0);oe([(0,Y.property)()],F.prototype,"target",void 0);oe([(0,Y.property)({type:String,reflect:!0})],F.prototype,"role",void 0);oe([(0,Y.property)()],F.prototype,"type",void 0);oe([(0,Y.property)({type:Boolean})],F.prototype,"disabled",void 0);oe([(0,Y.property)()],F.prototype,"label",void 0);oe([(0,Y.property)()],F.prototype,"icon",void 0);oe([(0,Y.property)()],F.prototype,"iconVariant",void 0);oe([(0,Y.property)({type:Boolean})],F.prototype,"trailingIcon",void 0);oe([(0,Y.property)({type:Boolean})],F.prototype,"loading",void 0);oe([(0,Y.property)({attribute:"aria-label"})],F.prototype,"ariaLabel",void 0);oe([(0,Y.property)()],F.prototype,"tooltipPosition",void 0);oe([(0,Y.property)({type:Boolean})],F.prototype,"hideTooltip",void 0);oe([(0,Y.property)({type:Boolean})],F.prototype,"forceTooltip",void 0);oe([(0,Y.query)(".ft-button")],F.prototype,"button",void 0);oe([(0,Y.query)(".ft-button--label slot")],F.prototype,"slottedContent",void 0);oe([(0,Y.query)("[part=tooltip]")],F.prototype,"tooltip",void 0);var _r=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Ce=class extends F{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}};Ce.styles=[Ii.safariEllipsisFix,wa];_r([(0,nr.property)({type:Boolean})],Ce.prototype,"primary",void 0);_r([(0,nr.property)({type:Boolean})],Ce.prototype,"outlined",void 0);_r([(0,nr.property)({type:Boolean})],Ce.prototype,"dense",void 0);_r([(0,nr.property)({type:Boolean})],Ce.prototype,"round",void 0);var ar=C(ne());var kr=C(k());var _i=C(j()),O=C(k());var Pi=[_i.css`
590
+ `}focus(){var r;(r=this.button)===null||r===void 0||r.focus()}focusWithoutTooltip(){var r;this.setTooltipManual(!0),(r=this.button)===null||r===void 0||r.focus(),this.setTooltipManual(!1)}showTemporaryTooltip(r,o){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(r,o)}setTooltipManual(r){this.tooltip&&(this.tooltip.manual=r)}click(){var r;(r=this.button)===null||r===void 0||r.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,Xe.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};G.elementDefinitions={"ft-ripple":K,"ft-tooltip":H,"ft-typography":Se,"ft-icon":ye,"ft-loader":pt};ne([(0,J.property)()],G.prototype,"href",void 0);ne([(0,J.property)()],G.prototype,"target",void 0);ne([(0,J.property)()],G.prototype,"type",void 0);ne([(0,J.property)({type:Boolean})],G.prototype,"disabled",void 0);ne([(0,J.property)()],G.prototype,"label",void 0);ne([(0,J.property)()],G.prototype,"icon",void 0);ne([(0,J.property)()],G.prototype,"iconVariant",void 0);ne([(0,J.property)({type:Boolean})],G.prototype,"trailingIcon",void 0);ne([(0,J.property)({type:Boolean})],G.prototype,"loading",void 0);ne([(0,J.property)({attribute:"aria-label"})],G.prototype,"ariaLabel",void 0);ne([(0,J.property)()],G.prototype,"tooltipPosition",void 0);ne([(0,J.property)({type:Boolean})],G.prototype,"hideTooltip",void 0);ne([(0,J.property)({type:Boolean})],G.prototype,"forceTooltip",void 0);ne([(0,J.query)(".ft-button")],G.prototype,"button",void 0);ne([(0,J.query)(".ft-button--label slot")],G.prototype,"slottedContent",void 0);ne([(0,J.query)("[part=tooltip]")],G.prototype,"tooltip",void 0);var _r=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Ce=class extends G{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}};Ce.styles=[Ii.safariEllipsisFix,wa];_r([(0,nr.property)({type:Boolean})],Ce.prototype,"primary",void 0);_r([(0,nr.property)({type:Boolean})],Ce.prototype,"outlined",void 0);_r([(0,nr.property)({type:Boolean})],Ce.prototype,"dense",void 0);_r([(0,nr.property)({type:Boolean})],Ce.prototype,"round",void 0);var ar=C(oe());var kr=C(k());var _i=C(j()),O=C(k());var Pi=[_i.css`
591
591
  :host {
592
592
  display: inline-block;
593
593
  max-width: 100%;
@@ -1053,7 +1053,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
1053
1053
  .ftds--size-small.ft-button--icon-only {
1054
1054
  width: ${f.smallIconOnlyWidth};
1055
1055
  }
1056
- `,O.noTextSelect];var Pr=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Fe=class extends(0,kr.toFtdsBase)(F){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=vr.brand,this.iconVariant=Pe.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 vt.large:return Ve.body2medium;case vt.medium:return Ve.caption1medium;case vt.small:return Ve.caption2medium}}};Fe.styles=[kr.safariEllipsisFix,Pi];Pr([(0,ar.property)({type:Boolean})],Fe.prototype,"primary",void 0);Pr([(0,ar.property)({type:Boolean})],Fe.prototype,"secondary",void 0);Pr([(0,ar.property)({type:Boolean})],Fe.prototype,"tertiary",void 0);Pr([(0,ar.property)({type:Boolean})],Fe.prototype,"round",void 0);(0,Fo.customElement)("ft-button")(Ce);(0,Fo.customElement)("ftds-button")(Fe);var ki=C(j()),be=C(k()),Ee={spacing:be.FtCssVariableFactory.create("--ft-copy-block-spacing","","SIZE","12px 48px 12px 12px"),borderRadius:be.FtCssVariableFactory.extend("--ft-copy-block-border-radius","",be.designSystemVariables.borderRadiusS),borderStyle:be.FtCssVariableFactory.create("--ft-copy-block-border-style","","BORDER-STYLE","solid"),borderColor:be.FtCssVariableFactory.extend("--ft-copy-block-border-color","",be.designSystemVariables.colorOutline),borderWidth:be.FtCssVariableFactory.create("--ft-copy-block-border-width","","SIZE","1px"),backgroundColor:be.FtCssVariableFactory.extend("--ft-copy-block-background-color","",be.designSystemVariables.colorSurface),buttonHeight:be.FtCssVariableFactory.create("--ft-copy-block-button-height","","SIZE","unset")},Di=ki.css`
1056
+ `,O.noTextSelect];var Pr=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Fe=class extends(0,kr.toFtdsBase)(G){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=vr.brand,this.iconVariant=Pe.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 vt.large:return Ve.body2medium;case vt.medium:return Ve.caption1medium;case vt.small:return Ve.caption2medium}}};Fe.styles=[kr.safariEllipsisFix,Pi];Pr([(0,ar.property)({type:Boolean})],Fe.prototype,"primary",void 0);Pr([(0,ar.property)({type:Boolean})],Fe.prototype,"secondary",void 0);Pr([(0,ar.property)({type:Boolean})],Fe.prototype,"tertiary",void 0);Pr([(0,ar.property)({type:Boolean})],Fe.prototype,"round",void 0);(0,Fo.customElement)("ft-button")(Ce);(0,Fo.customElement)("ftds-button")(Fe);var ki=C(j()),be=C(k()),Ee={spacing:be.FtCssVariableFactory.create("--ft-copy-block-spacing","","SIZE","12px 48px 12px 12px"),borderRadius:be.FtCssVariableFactory.extend("--ft-copy-block-border-radius","",be.designSystemVariables.borderRadiusS),borderStyle:be.FtCssVariableFactory.create("--ft-copy-block-border-style","","BORDER-STYLE","solid"),borderColor:be.FtCssVariableFactory.extend("--ft-copy-block-border-color","",be.designSystemVariables.colorOutline),borderWidth:be.FtCssVariableFactory.create("--ft-copy-block-border-width","","SIZE","1px"),backgroundColor:be.FtCssVariableFactory.extend("--ft-copy-block-background-color","",be.designSystemVariables.colorSurface),buttonHeight:be.FtCssVariableFactory.create("--ft-copy-block-button-height","","SIZE","unset")},Di=ki.css`
1057
1057
  :host {
1058
1058
  display: block;
1059
1059
  }
@@ -1096,11 +1096,11 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
1096
1096
  height: ${Ee.buttonHeight}
1097
1097
  }
1098
1098
 
1099
- `;var vc=C(k());var so=C(j()),co=C(ne()),lo=C(k());var Bi=C(j());var Ui=Bi.css`
1100
- `;var io=C(k());var fc=C(k());var Hi=C(j()),fe=C(ne()),we=C(k());var Mi=C(j());var $i=Mi.css`
1099
+ `;var vc=C(k());var so=C(j()),co=C(oe()),lo=C(k());var Bi=C(j());var Ui=Bi.css`
1100
+ `;var io=C(k());var fc=C(k());var Hi=C(j()),fe=C(oe()),we=C(k());var Mi=C(j());var $i=Mi.css`
1101
1101
  `;var Dr=C(k()),rl="ft-app-info",zo=class extends CustomEvent{constructor(r){super("authentication-change",{detail:r})}},ol={session:(e,r)=>{(0,Dr.deepEqual)(e.session,r.payload)||(e.session=r.payload,setTimeout(()=>_.dispatchEvent(new zo(r.payload)),0))}},_=Dr.FtReduxStore.get({name:rl,reducers:ol,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var ke=C(k());var Go=C(k());var ft=class e{static get(r){let{baseUrl:o,apiIntegrationIdentifier:n}=_.getState(),a=r??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(r){return new Promise(o=>{let n=e.get(r);if(n)o(n);else{let a=_.subscribe(()=>{n=e.get(r),n&&(a(),o(n))})}})}};var ir=class{constructor(r){this.overrideApi=r}get api(){var r;return(r=this.overrideApi)!==null&&r!==void 0?r:ft.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):ft.await()}};var Qe=class extends ir{constructor(r=!0,o){var n;super(o);let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new Go.CacheRegistry,this.cache=r?a.commonCache:new Go.CacheRegistry}clearCache(){this.cache.clearAll()}};var Wi,nl=Symbol("clearAfterUnitTest"),Br=class extends Qe{constructor(r){super(),this.messageContextProvider=r,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Wi]=()=>{this.defaultMessages={},this.cache=new ke.CacheRegistry,this.listeners={}},this.currentUiLocale=_.getState().uiLocale,_.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:r}=_.getState();this.currentUiLocale!==r&&(this.currentUiLocale=r,this.cache.clearAll(),this.notifyAll())}addContext(r){let o=r.name.toLowerCase();this.cache.setFinal(o,r),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(r,o){var n;if(r=r.toLowerCase(),o&&Object.keys(o).length>0){let a={...(n=this.defaultMessages[r])!==null&&n!==void 0?n:{},...o};(0,ke.deepEqual)(this.defaultMessages[r],a)||(this.defaultMessages[r]=a,await this.notify(r))}return this.fetchContext(r)}resolveContext(r){var o,n;return this.fetchContext(r),(n=(o=this.cache.getNow(r))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(r,o){let n=r.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(r,o,...n){var a;let i=r.toLowerCase(),c=this.resolveContext(i);return new ke.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},c).resolve(o,...n)}async fetchContext(r){let o=!this.cache.has(r),n;try{n=await this.cache.get(r,()=>this.messageContextProvider(this.currentUiLocale,r))}catch(a){!(a instanceof ke.CanceledPromiseError)&&o&&console.error(a)}return o&&await this.notify(r),n}subscribe(r,o){var n;return r=r.toLowerCase(),this.listeners[r]=(n=this.listeners[r])!==null&&n!==void 0?n:new Set,this.listeners[r].add(o),()=>{var a;return(a=this.listeners[r])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(r=>this.notify(r)))}async notify(r){this.listeners[r]!=null&&await Promise.all([...this.listeners[r].values()].map(o=>(0,ke.delay)(0).then(()=>o()).catch(()=>null)))}};Wi=nl;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Br{constructor(){super(async(e,r)=>(await this.awaitApi).getFluidTopicsMessageContext(e,r))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Br{constructor(){super(async(e,r)=>(await this.awaitApi).getCustomMessageContext(e,r))}});var Ut=window.FluidTopicsI18nService,Ur=window.FluidTopicsCustomI18nService;var ae=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},V=class extends we.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>ft.get(),this.messageContexts=[],this.cache=new we.CacheRegistry,this.cleanSessionDebouncer=new we.Debouncer}render(){return Hi.html`
1102
1102
  <slot></slot>
1103
- `}update(r){var o,n,a,i,c;super.update(r),r.has("baseUrl")&&(_.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),r.has("apiIntegrationIdentifier")&&_.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),r.has("uiLocale")&&_.actions.uiLocale(this.uiLocale),r.has("metadataConfiguration")&&_.actions.metadataConfiguration(this.metadataConfiguration),r.has("noCustom")&&_.actions.noCustom(this.noCustom),r.has("editorMode")&&_.actions.editorMode(this.editorMode),r.has("noCustomComponent")&&_.actions.noCustomComponent(this.noCustomComponent),r.has("session")&&_.actions.session(this.session),r.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(d=>Ut.addContext(d)),r.has("openExternalDocumentInNewTab")&&_.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),r.has("navigatorOnline")&&_.actions.navigatorOnline(this.navigatorOnline),r.has("forcedOffline")&&_.actions.forcedOffline(this.forcedOffline),r.has("localesConfiguration")&&(_.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),_.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),_.actions.searchInAllLanguagesAllowed((c=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&c!==void 0?c:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},r.idleTimeoutInMillis),r})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};V.elementDefinitions={};V.styles=$i;ae([(0,fe.property)()],V.prototype,"baseUrl",void 0);ae([(0,fe.property)()],V.prototype,"apiIntegrationIdentifier",void 0);ae([(0,fe.property)()],V.prototype,"uiLocale",void 0);ae([(0,we.jsonProperty)(null)],V.prototype,"availableUiLocales",void 0);ae([(0,we.jsonProperty)(null)],V.prototype,"metadataConfiguration",void 0);ae([(0,fe.property)({type:Boolean})],V.prototype,"editorMode",void 0);ae([(0,fe.property)({type:Boolean})],V.prototype,"noCustom",void 0);ae([(0,fe.property)({type:Boolean})],V.prototype,"openExternalDocumentInNewTab",void 0);ae([(0,fe.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],V.prototype,"noCustomComponent",void 0);ae([(0,fe.property)({type:Boolean})],V.prototype,"withManualResources",void 0);ae([(0,fe.property)({type:Boolean})],V.prototype,"navigatorOnline",void 0);ae([(0,fe.property)({type:Boolean})],V.prototype,"forcedOffline",void 0);ae([(0,fe.property)({type:Object})],V.prototype,"apiProvider",void 0);ae([(0,we.jsonProperty)([])],V.prototype,"messageContexts",void 0);ae([(0,we.jsonProperty)(void 0)],V.prototype,"session",void 0);ae([(0,fe.state)()],V.prototype,"localesConfiguration",void 0);var jl=C(ne());function al(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var o,n,a;if(Array.isArray(e)){if(o=e.length,o!=r.length)return!1;for(n=o;n--!==0;)if(!Mr(e[n],r[n]))return!1;return!0}if(e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(n of e.entries())if(!r.has(n[0]))return!1;for(n of e.entries())if(!Mr(n[1],r.get(n[0])))return!1;return!0}if(e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(n of e.entries())if(!r.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();let i=c=>Object.keys(c).filter(d=>c[d]!=null);if(a=i(e),o=a.length,o!==i(r).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[n]))return!1;for(n=o;n--!==0;){let c=a[n];if(!Mr(e[c],r[c]))return!1}return!0}return e!==e&&r!==r||e==null&&r==null}function Mr(e,r){try{return al(e,r)}catch{return!1}}function $r(e,r){return!Mr(e,r)}var il=C(ne(),1);var Wr=class{constructor(){this.queue=[]}add(r,o=!1){o&&this.clear(r.type),this.queue.push(r)}consume(r){let o=this.queue.find(n=>n.type===r);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(r){typeof r=="string"?this.queue=this.queue.filter(o=>o.type!==r):this.queue=this.queue.filter(o=>!r.test(o.type))}};var Mt=C(ne(),1);var Fi=C(ne(),1);function zi(e,r){let o=()=>JSON.parse(JSON.stringify(e));return(0,Fi.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:$r,...r??{}})}var Hr=class{constructor(r=0){this.timeout=r,this.callbacks=[]}run(r,o){return this.callbacks=[r],this.debounce(o)}queue(r,o){return this.callbacks.push(r),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(r){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),r??this.timeout),this.promise}async runCallbacks(){var r,o;let n=[...this.callbacks];this.callbacks=[];let a=(r=this.rejectPromise)!==null&&r!==void 0?r:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let c of n)try{await c()}catch(d){a(d);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 ji=C(j(),1);var Fr=globalThis,sl=Fr.ShadowRoot&&(Fr.ShadyCSS===void 0||Fr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ym=Symbol();var Gi=(e,r)=>{if(sl)e.adoptedStyleSheets=r.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of r){let n=document.createElement("style"),a=Fr.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,e.appendChild(n)}};var zr=class extends ji.LitElement{createRenderRoot(){let r=this.constructor;r.elementDefinitions&&!r.registry&&(r.registry=new CustomElementRegistry,Object.entries(r.elementDefinitions).forEach(([a,i])=>r.registry.define(a,i)));let o={...r.shadowRootOptions,customElements:r.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return Gi(n,r.elementStyles),n}};function Ki(e,r,...o){var n;let a=e.querySelector(r);for(let i of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}var sr=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Yi,Vi=Symbol("constructorPrototype"),Zi=Symbol("constructorName"),Xi=Symbol("exportpartsDebouncer"),qi=Symbol("dynamicDependenciesLoaded"),ze=class extends zr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Yi]=new Hr(5),this[Zi]=this.constructor.name,this[Vi]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Zi]&&Object.setPrototypeOf(this,this[Vi])}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 r=this.constructor;r[qi]||(r[qi]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(r){super.updated(r),this.updateComplete.then(()=>{this.contentAvailableCallback(r),this.focusElementToFocus(r),this.applyCustomStylesheet(r),this.scheduleExportpartsUpdate()})}contentAvailableCallback(r){}focusElementToFocus(r){if(r.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let i=[...a??[],n];o=Ki(this.shadowRoot,...i)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(r){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(r.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 r,o,n;(!((r=this.exportpartsPrefix)===null||r===void 0)&&r.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[Xi].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(r){var o,n,a,i,c,d;let u=g=>g!=null&&g.trim().length>0,p=r.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=(d=(c=g.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(S=>S.split(":")[1]))!==null&&d!==void 0?d:[];new Array(...v,...x).filter(u).map(S=>S.trim()).forEach(S=>m.add(S))}if(m.size===0){this.removeAttribute("exportparts");return}let y=[...m.values()].flatMap(g=>p.map(v=>`${g}:${v}--${g}`));this.setAttribute("exportparts",[...this.part,...y].join(", "))}};Yi=Xi;sr([(0,Mt.property)()],ze.prototype,"exportpartsPrefix",void 0);sr([zi([])],ze.prototype,"exportpartsPrefixes",void 0);sr([(0,Mt.property)()],ze.prototype,"customStylesheet",void 0);sr([(0,Mt.property)()],ze.prototype,"elementToFocus",void 0);sr([(0,Mt.state)()],ze.prototype,"useAdoptedStyleSheets",void 0);function cr(e){var r;return(r=e?.isFtReduxStore)!==null&&r!==void 0?r:!1}var Qi,Ji,es,lr=Symbol("internalReduxEventsUnsubscribers"),Je=Symbol("internalStoresUnsubscribers"),ht=Symbol("internalStores"),dr=class extends ze{constructor(){super(...arguments),this[Qi]=new Map,this[Ji]=new Map,this[es]=new Map}get reduxConstructor(){return this.constructor}update(r){super.update(r),[...this.reduxConstructor.reduxReactiveProperties].some(o=>r.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[ht].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ht].values()][0]}getStore(r){return r==null?this.getUnnamedStore():this[ht].get(r)}addStore(r,o){var n;o=(n=o??(cr(r)?r.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[ht].set(o,r),this.subscribeToStore(o,r),this.updateFromStores()}removeStore(r){let o=typeof r=="string"?r:r.name;this.unsubscribeFromStore(o),this[ht].delete(o)}setupStores(){this.unsubscribeFromStores(),this[ht].forEach((r,o)=>this.subscribeToStore(o,r)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((r,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let a=this.getStore(r.store);a&&(r.store?this[Je].has(r.store):this[Je].size>0)&&(this[o]=r.selector(a.getState(),this))}})}subscribeToStore(r,o){var n;this[Je].set(r,o.subscribe(()=>this.updateFromStores())),this[lr].set(r,[]),cr(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||o.name===a.store)){let c=d=>this[i](d);o.addEventListener(a.eventName,c),this[lr].get(r).push(()=>o.removeEventListener(a.eventName,c))}})),this.onStoreAvailable(r)}unsubscribeFromStores(){this[Je].forEach((r,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(r){var o;this[Je].has(r)&&this[Je].get(r)(),this[Je].delete(r),(o=this[lr].get(r))===null||o===void 0||o.forEach(n=>n()),this[lr].delete(r)}onStoreAvailable(r){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Qi=Je,Ji=ht,es=lr;dr.reduxProperties=new Map;dr.reduxReactiveProperties=new Set;dr.reduxEventListeners=new Map;function xe(e){for(var r=arguments.length,o=Array(r>1?r-1:0),n=1;n<r;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 Ge(e){return!!e&&!!e[z]}function Ae(e){var r;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)===yl}(e)||Array.isArray(e)||!!e[ss]||!!(!((r=e.constructor)===null||r===void 0)&&r[ss])||Jo(e)||en(e))}function yt(e,r,o){o===void 0&&(o=!1),Ht(e)===0?(o?Object.keys:Wt)(e).forEach(function(n){o&&typeof n=="symbol"||r(n,e[n],e)}):e.forEach(function(n,a){return r(a,n,e)})}function Ht(e){var r=e[z];return r?r.i>3?r.i-4:r.i:Array.isArray(e)?1:Jo(e)?2:en(e)?3:0}function $t(e,r){return Ht(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function cl(e,r){return Ht(e)===2?e.get(r):e[r]}function cs(e,r,o){var n=Ht(e);n===2?e.set(r,o):n===3?e.add(o):e[r]=o}function ls(e,r){return e===r?e!==0||1/e==1/r:e!=e&&r!=r}function Jo(e){return fl&&e instanceof Map}function en(e){return hl&&e instanceof Set}function et(e){return e.o||e.t}function tn(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var r=ps(e);delete r[z];for(var o=Wt(r),n=0;n<o.length;n++){var a=o[n],i=r[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(r[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),r)}function rn(e,r){return r===void 0&&(r=!1),on(e)||Ge(e)||!Ae(e)||(Ht(e)>1&&(e.set=e.add=e.clear=e.delete=ll),Object.freeze(e),r&&yt(e,function(o,n){return rn(n,!0)},!0)),e}function ll(){xe(2)}function on(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function De(e){var r=Qo[e];return r||xe(18,e),r}function dl(e,r){Qo[e]||(Qo[e]=r)}function qo(){return pr}function jo(e,r){r&&(De("Patches"),e.u=[],e.s=[],e.v=r)}function Gr(e){Yo(e),e.p.forEach(ul),e.p=null}function Yo(e){e===pr&&(pr=e.l)}function ts(e){return pr={p:[],l:pr,h:e,m:!0,_:0}}function ul(e){var r=e[z];r.i===0||r.i===1?r.j():r.g=!0}function Ko(e,r){r._=r.p.length;var o=r.p[0],n=e!==void 0&&e!==o;return r.h.O||De("ES5").S(r,e,n),n?(o[z].P&&(Gr(r),xe(4)),Ae(e)&&(e=jr(r,e),r.l||Kr(r,e)),r.u&&De("Patches").M(o[z].t,e,r.u,r.s)):e=jr(r,o,[]),Gr(r),r.u&&r.v(r.u,r.s),e!==us?e:void 0}function jr(e,r,o){if(on(r))return r;var n=r[z];if(!n)return yt(r,function(d,u){return rs(e,n,r,d,u,o)},!0),r;if(n.A!==e)return r;if(!n.P)return Kr(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=tn(n.k):n.o,i=a,c=!1;n.i===3&&(i=new Set(a),a.clear(),c=!0),yt(i,function(d,u){return rs(e,n,a,d,u,o,c)}),Kr(e,a,!1),o&&e.u&&De("Patches").N(n,o,e.u,e.s)}return n.o}function rs(e,r,o,n,a,i,c){if(Ge(a)){var d=jr(e,a,i&&r&&r.i!==3&&!$t(r.R,n)?i.concat(n):void 0);if(cs(o,n,d),!Ge(d))return;e.m=!1}else c&&o.add(a);if(Ae(a)&&!on(a)){if(!e.h.D&&e._<1)return;jr(e,a),r&&r.A.l||Kr(e,a)}}function Kr(e,r,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&rn(r,o)}function Vo(e,r){var o=e[z];return(o?et(o):e)[r]}function os(e,r){if(r in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,r);if(n)return n;o=Object.getPrototypeOf(o)}}function tt(e){e.P||(e.P=!0,e.l&&tt(e.l))}function Zo(e){e.o||(e.o=tn(e.t))}function Xo(e,r,o){var n=Jo(r)?De("MapSet").F(r,o):en(r)?De("MapSet").T(r,o):e.O?function(a,i){var c=Array.isArray(a),d={i:c?1:0,A:i?i.A:qo(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},u=d,p=fr;c&&(u=[d],p=ur);var m=Proxy.revocable(u,p),y=m.revoke,g=m.proxy;return d.k=g,d.j=y,g}(r,o):De("ES5").J(r,o);return(o?o.A:qo()).p.push(n),n}function pl(e){return Ge(e)||xe(22,e),function r(o){if(!Ae(o))return o;var n,a=o[z],i=Ht(o);if(a){if(!a.P&&(a.i<4||!De("ES5").K(a)))return a.t;a.I=!0,n=ns(o,i),a.I=!1}else n=ns(o,i);return yt(n,function(c,d){a&&cl(a.t,c)===d||cs(n,c,r(d))}),i===3?new Set(n):n}(e)}function ns(e,r){switch(r){case 2:return new Map(e);case 3:return Array.from(e)}return tn(e)}function ds(){function e(c,d){var u=i[c];return u?u.enumerable=d:i[c]=u={configurable:!0,enumerable:d,get:function(){var p=this[z];return fr.get(p,c)},set:function(p){var m=this[z];fr.set(m,c,p)}},u}function r(c){for(var d=c.length-1;d>=0;d--){var u=c[d][z];if(!u.P)switch(u.i){case 5:n(u)&&tt(u);break;case 4:o(u)&&tt(u)}}}function o(c){for(var d=c.t,u=c.k,p=Wt(u),m=p.length-1;m>=0;m--){var y=p[m];if(y!==z){var g=d[y];if(g===void 0&&!$t(d,y))return!0;var v=u[y],x=v&&v[z];if(x?x.t!==g:!ls(v,g))return!0}}var S=!!d[z];return p.length!==Wt(d).length+(S?0:1)}function n(c){var d=c.k;if(d.length!==c.t.length)return!0;var u=Object.getOwnPropertyDescriptor(d,d.length-1);if(u&&!u.get)return!0;for(var p=0;p<d.length;p++)if(!d.hasOwnProperty(p))return!0;return!1}function a(c){c.g&&xe(3,JSON.stringify(et(c)))}var i={};dl("ES5",{J:function(c,d){var u=Array.isArray(c),p=function(y,g){if(y){for(var v=Array(g.length),x=0;x<g.length;x++)Object.defineProperty(v,""+x,e(x,!0));return v}var S=ps(g);delete S[z];for(var T=Wt(S),R=0;R<T.length;R++){var N=T[R];S[N]=e(N,y||!!S[N].enumerable)}return Object.create(Object.getPrototypeOf(g),S)}(u,c),m={i:u?5:4,A:d?d.A:qo(),P:!1,I:!1,R:{},l:d,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,z,{value:m,writable:!0}),p},S:function(c,d,u){u?Ge(d)&&d[z].A===c&&r(c.p):(c.u&&function p(m){if(m&&typeof m=="object"){var y=m[z];if(y){var g=y.t,v=y.k,x=y.R,S=y.i;if(S===4)yt(v,function(B){B!==z&&(g[B]!==void 0||$t(g,B)?x[B]||p(v[B]):(x[B]=!0,tt(y)))}),yt(g,function(B){v[B]!==void 0||$t(v,B)||(x[B]=!1,tt(y))});else if(S===5){if(n(y)&&(tt(y),x.length=!0),v.length<g.length)for(var T=v.length;T<g.length;T++)x[T]=!1;else for(var R=g.length;R<v.length;R++)x[R]=!0;for(var N=Math.min(v.length,g.length),P=0;P<N;P++)v.hasOwnProperty(P)||(x[P]=!0),x[P]===void 0&&p(v[P])}}}}(c.p[0]),r(c.p))},K:function(c){return c.i===4?o(c):n(c)}})}var as,pr,nn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",fl=typeof Map<"u",hl=typeof Set<"u",is=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",us=nn?Symbol.for("immer-nothing"):((as={})["immer-nothing"]=!0,as),ss=nn?Symbol.for("immer-draftable"):"__$immer_draftable",z=nn?Symbol.for("immer-state"):"__$immer_state";var yl=""+Object.prototype.constructor,Wt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,ps=Object.getOwnPropertyDescriptors||function(e){var r={};return Wt(e).forEach(function(o){r[o]=Object.getOwnPropertyDescriptor(e,o)}),r},Qo={},fr={get:function(e,r){if(r===z)return e;var o=et(e);if(!$t(o,r))return function(a,i,c){var d,u=os(i,c);return u?"value"in u?u.value:(d=u.get)===null||d===void 0?void 0:d.call(a.k):void 0}(e,o,r);var n=o[r];return e.I||!Ae(n)?n:n===Vo(e.t,r)?(Zo(e),e.o[r]=Xo(e.A.h,n,e)):n},has:function(e,r){return r in et(e)},ownKeys:function(e){return Reflect.ownKeys(et(e))},set:function(e,r,o){var n=os(et(e),r);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var a=Vo(et(e),r),i=a?.[z];if(i&&i.t===o)return e.o[r]=o,e.R[r]=!1,!0;if(ls(o,a)&&(o!==void 0||$t(e.t,r)))return!0;Zo(e),tt(e)}return e.o[r]===o&&(o!==void 0||r in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[r])||(e.o[r]=o,e.R[r]=!0),!0},deleteProperty:function(e,r){return Vo(e.t,r)!==void 0||r in e.t?(e.R[r]=!1,Zo(e),tt(e)):delete e.R[r],e.o&&delete e.o[r],!0},getOwnPropertyDescriptor:function(e,r){var o=et(e),n=Reflect.getOwnPropertyDescriptor(o,r);return n&&{writable:!0,configurable:e.i!==1||r!=="length",enumerable:n.enumerable,value:o[r]}},defineProperty:function(){xe(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){xe(12)}},ur={};yt(fr,function(e,r){ur[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}}),ur.deleteProperty=function(e,r){return ur.set.call(this,e,r,void 0)},ur.set=function(e,r,o){return fr.set.call(this,e[0],r,o,e[0])};var ml=function(){function e(o){var n=this;this.O=is,this.D=!0,this.produce=function(a,i,c){if(typeof a=="function"&&typeof i!="function"){var d=i;i=a;var u=n;return function(S){var T=this;S===void 0&&(S=d);for(var R=arguments.length,N=Array(R>1?R-1:0),P=1;P<R;P++)N[P-1]=arguments[P];return u.produce(S,function(B){var U;return(U=i).call.apply(U,[T,B].concat(N))})}}var p;if(typeof i!="function"&&xe(6),c!==void 0&&typeof c!="function"&&xe(7),Ae(a)){var m=ts(n),y=Xo(n,a,void 0),g=!0;try{p=i(y),g=!1}finally{g?Gr(m):Yo(m)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(S){return jo(m,c),Ko(S,m)},function(S){throw Gr(m),S}):(jo(m,c),Ko(p,m))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===us&&(p=void 0),n.D&&rn(p,!0),c){var v=[],x=[];De("Patches").M(a,p,v,x),c(v,x)}return p}xe(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var m=arguments.length,y=Array(m>1?m-1:0),g=1;g<m;g++)y[g-1]=arguments[g];return n.produceWithPatches(p,function(v){return a.apply(void 0,[v].concat(y))})};var c,d,u=n.produce(a,i,function(p,m){c=p,d=m});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,c,d]}):[u,c,d]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var r=e.prototype;return r.createDraft=function(o){Ae(o)||xe(8),Ge(o)&&(o=pl(o));var n=ts(this),a=Xo(this,o,void 0);return a[z].C=!0,Yo(n),a},r.finishDraft=function(o,n){var a=o&&o[z],i=a.A;return jo(i,n),Ko(void 0,i)},r.setAutoFreeze=function(o){this.D=o},r.setUseProxies=function(o){o&&!is&&xe(20),this.O=o},r.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=De("Patches").$;return Ge(o)?c(o,n):this.produce(o,function(d){return c(d,n)})},e}(),me=new ml,gl=me.produce,dg=me.produceWithPatches.bind(me),ug=me.setAutoFreeze.bind(me),pg=me.setUseProxies.bind(me),fg=me.applyPatches.bind(me),hg=me.createDraft.bind(me),yg=me.finishDraft.bind(me),Vr=gl;function mt(e){"@babel/helpers - typeof";return mt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},mt(e)}function fs(e,r){if(mt(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,r||"default");if(mt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function hs(e){var r=fs(e,"string");return mt(r)=="symbol"?r:r+""}function ys(e,r,o){return(r=hs(r))in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e}function ms(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,n)}return o}function an(e){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?ms(Object(o),!0).forEach(function(n){ys(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ms(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function ie(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 gs=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),sn=function(){return Math.random().toString(36).substring(7).split("").join(".")},Zr={INIT:"@@redux/INIT"+sn(),REPLACE:"@@redux/REPLACE"+sn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+sn()}};function bl(e){if(typeof e!="object"||e===null)return!1;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}function cn(e,r,o){var n;if(typeof r=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ie(0));if(typeof r=="function"&&typeof o>"u"&&(o=r,r=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ie(1));return o(cn)(e,r)}if(typeof e!="function")throw new Error(ie(2));var a=e,i=r,c=[],d=c,u=!1;function p(){d===c&&(d=c.slice())}function m(){if(u)throw new Error(ie(3));return i}function y(S){if(typeof S!="function")throw new Error(ie(4));if(u)throw new Error(ie(5));var T=!0;return p(),d.push(S),function(){if(T){if(u)throw new Error(ie(6));T=!1,p();var N=d.indexOf(S);d.splice(N,1),c=null}}}function g(S){if(!bl(S))throw new Error(ie(7));if(typeof S.type>"u")throw new Error(ie(8));if(u)throw new Error(ie(9));try{u=!0,i=a(i,S)}finally{u=!1}for(var T=c=d,R=0;R<T.length;R++){var N=T[R];N()}return S}function v(S){if(typeof S!="function")throw new Error(ie(10));a=S,g({type:Zr.REPLACE})}function x(){var S,T=y;return S={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(ie(11));function P(){N.next&&N.next(m())}P();var B=T(P);return{unsubscribe:B}}},S[gs]=function(){return this},S}return g({type:Zr.INIT}),n={dispatch:g,subscribe:y,getState:m,replaceReducer:v},n[gs]=x,n}function xl(e){Object.keys(e).forEach(function(r){var o=e[r],n=o(void 0,{type:Zr.INIT});if(typeof n>"u")throw new Error(ie(12));if(typeof o(void 0,{type:Zr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ie(13))})}function bs(e){for(var r=Object.keys(e),o={},n=0;n<r.length;n++){var a=r[n];typeof e[a]=="function"&&(o[a]=e[a])}var i=Object.keys(o),c,d;try{xl(o)}catch(u){d=u}return function(p,m){if(p===void 0&&(p={}),d)throw d;if(0)var y;for(var g=!1,v={},x=0;x<i.length;x++){var S=i[x],T=o[S],R=p[S],N=T(R,m);if(typeof N>"u"){var P=m&&m.type;throw new Error(ie(14))}v[S]=N,g=g||N!==R}return g=g||i.length!==Object.keys(p).length,g?v:p}}function Ft(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return r.length===0?function(n){return n}:r.length===1?r[0]:r.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function xs(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(ie(15))},c={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},d=r.map(function(u){return u(c)});return i=Ft.apply(void 0,d)(a.dispatch),an(an({},a),{},{dispatch:i})}}}function vs(e){var r=function(n){var a=n.dispatch,i=n.getState;return function(c){return function(d){return typeof d=="function"?d(a,i,e):c(d)}}};return r}var Ss=vs();Ss.withExtraArgument=vs;var ln=Ss;var As=function(){var e=function(r,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(r,o)};return function(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(r,o);function n(){this.constructor=r}r.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),vl=function(e,r){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:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function d(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=r.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}}},zt=function(e,r){for(var o=0,n=r.length,a=e.length;o<n;o++,a++)e[a]=r[o];return e},Sl=Object.defineProperty,Ol=Object.defineProperties,Cl=Object.getOwnPropertyDescriptors,Os=Object.getOwnPropertySymbols,El=Object.prototype.hasOwnProperty,wl=Object.prototype.propertyIsEnumerable,Cs=function(e,r,o){return r in e?Sl(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o},rt=function(e,r){for(var o in r||(r={}))El.call(r,o)&&Cs(e,o,r[o]);if(Os)for(var n=0,a=Os(r);n<a.length;n++){var o=a[n];wl.call(r,o)&&Cs(e,o,r[o])}return e},dn=function(e,r){return Ol(e,Cl(r))},Al=function(e,r,o){return new Promise(function(n,a){var i=function(u){try{d(o.next(u))}catch(p){a(p)}},c=function(u){try{d(o.throw(u))}catch(p){a(p)}},d=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(i,c)};d((o=o.apply(e,r)).next())})};var Rl=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ft:Ft.apply(null,arguments)},Pg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Nl(e){if(typeof e!="object"||e===null)return!1;var r=Object.getPrototypeOf(e);if(r===null)return!0;for(var o=r;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return r===o}var Tl=function(e){As(r,e);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},r.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(r.bind.apply(r,zt([void 0],o[0].concat(this)))):new(r.bind.apply(r,zt([void 0],o.concat(this))))},r}(Array),Ll=function(e){As(r,e);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},r.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(r.bind.apply(r,zt([void 0],o[0].concat(this)))):new(r.bind.apply(r,zt([void 0],o.concat(this))))},r}(Array);function fn(e){return Ae(e)?Vr(e,function(){}):e}function Il(e){return typeof e=="boolean"}function _l(){return function(r){return Pl(r)}}function Pl(e){e===void 0&&(e={});var r=e.thunk,o=r===void 0?!0:r,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,c=i===void 0?!0:i,d=new Tl;if(o&&(Il(o)?d.push(ln):d.push(ln.withExtraArgument(o.extraArgument))),0){if(a)var u;if(c)var p}return d}var un=!0;function Rs(e){var r=_l(),o=e||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,c=i===void 0?r():i,d=o.devTools,u=d===void 0?!0:d,p=o.preloadedState,m=p===void 0?void 0:p,y=o.enhancers,g=y===void 0?void 0:y,v;if(typeof a=="function")v=a;else if(Nl(a))v=bs(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(r),!un&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!un&&x.some(function(B){return typeof B!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=xs.apply(void 0,x),T=Ft;u&&(T=Rl(rt({trace:!un},typeof u=="object"&&u)));var R=new Ll(S),N=R;Array.isArray(g)?N=zt([S],g):typeof g=="function"&&(N=g(R));var P=T.apply(void 0,N);return cn(v,m,P)}function ot(e,r){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(r){var i=r.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return rt(rt({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 Ns(e){var r={},o=[],n,a={addCase:function(i,c){var d=typeof i=="string"?i:i.type;if(d in r)throw new Error("addCase cannot be called with two reducers for the same action type");return r[d]=c,a},addMatcher:function(i,c){return o.push({matcher:i,reducer:c}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[r,o,n]}function kl(e){return typeof e=="function"}function Dl(e,r,o,n){o===void 0&&(o=[]);var a=typeof r=="function"?Ns(r):[r,o,n],i=a[0],c=a[1],d=a[2],u;if(kl(e))u=function(){return fn(e())};else{var p=fn(e);u=function(){return p}}function m(y,g){y===void 0&&(y=u());var v=zt([i[g.type]],c.filter(function(x){var S=x.matcher;return S(g)}).map(function(x){var S=x.reducer;return S}));return v.filter(function(x){return!!x}).length===0&&(v=[d]),v.reduce(function(x,S){if(S)if(Ge(x)){var T=x,R=S(T,g);return R===void 0?x:R}else{if(Ae(x))return Vr(x,function(N){return S(N,g)});var R=S(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},y)}return m.getInitialState=u,m}function Bl(e,r){return e+"/"+r}function Ts(e){var r=e.name;if(!r)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:fn(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},c={},d={};a.forEach(function(m){var y=n[m],g=Bl(r,m),v,x;"reducer"in y?(v=y.reducer,x=y.prepare):v=y,i[m]=v,c[g]=v,d[m]=x?ot(g,x):ot(g)});function u(){var m=typeof e.extraReducers=="function"?Ns(e.extraReducers):[e.extraReducers],y=m[0],g=y===void 0?{}:y,v=m[1],x=v===void 0?[]:v,S=m[2],T=S===void 0?void 0:S,R=rt(rt({},g),c);return Dl(o,function(N){for(var P in R)N.addCase(P,R[P]);for(var B=0,U=x;B<U.length;B++){var le=U[B];N.addMatcher(le.matcher,le.reducer)}T&&N.addDefaultCase(T)})}var p;return{name:r,reducer:function(m,y){return p||(p=u()),p(m,y)},actions:d,caseReducers:i,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var Ul="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ml=function(e){e===void 0&&(e=21);for(var r="",o=e;o--;)r+=Ul[Math.random()*64|0];return r},$l=["name","message","stack","code"],pn=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),Es=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),Wl=function(e){if(typeof e=="object"&&e!==null){for(var r={},o=0,n=$l;o<n.length;o++){var a=n[o];typeof e[a]=="string"&&(r[a]=e[a])}return r}return{message:String(e)}},Ug=function(){function e(r,o,n){var a=ot(r+"/fulfilled",function(m,y,g,v){return{payload:m,meta:dn(rt({},v||{}),{arg:g,requestId:y,requestStatus:"fulfilled"})}}),i=ot(r+"/pending",function(m,y,g){return{payload:void 0,meta:dn(rt({},g||{}),{arg:y,requestId:m,requestStatus:"pending"})}}),c=ot(r+"/rejected",function(m,y,g,v,x){return{payload:v,error:(n&&n.serializeError||Wl)(m||"Rejected"),meta:dn(rt({},x||{}),{arg:g,requestId:y,rejectedWithValue:!!v,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),d=!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(y,g,v){var x=n?.idGenerator?n.idGenerator(m):Ml(),S=new u,T,R=!1;function N(B){T=B,S.abort()}var P=function(){return Al(this,null,function(){var B,U,le,Ne,se,Te,ee;return vl(this,function(h){switch(h.label){case 0:return h.trys.push([0,4,,5]),Ne=(B=n?.condition)==null?void 0:B.call(n,m,{getState:g,extra:v}),Fl(Ne)?[4,Ne]:[3,2];case 1:Ne=h.sent(),h.label=2;case 2:if(Ne===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return R=!0,se=new Promise(function(b,I){return S.signal.addEventListener("abort",function(){return I({name:"AbortError",message:T||"Aborted"})})}),y(i(x,m,(U=n?.getPendingMeta)==null?void 0:U.call(n,{requestId:x,arg:m},{getState:g,extra:v}))),[4,Promise.race([se,Promise.resolve(o(m,{dispatch:y,getState:g,extra:v,requestId:x,signal:S.signal,abort:N,rejectWithValue:function(b,I){return new pn(b,I)},fulfillWithValue:function(b,I){return new Es(b,I)}})).then(function(b){if(b instanceof pn)throw b;return b instanceof Es?a(b.payload,x,m,b.meta):a(b,x,m)})])];case 3:return le=h.sent(),[3,5];case 4:return Te=h.sent(),le=Te instanceof pn?c(null,x,m,Te.payload,Te.meta):c(Te,x,m),[3,5];case 5:return ee=n&&!n.dispatchConditionRejection&&c.match(le)&&le.meta.condition,ee||y(le),[2,le]}})})}();return Object.assign(P,{abort:N,requestId:x,arg:m,unwrap:function(){return P.then(Hl)}})}}return Object.assign(p,{pending:i,rejected:c,fulfilled:a,typePrefix:r})}return e.withTypes=function(){return e},e}();function Hl(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Fl(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Ls="listener",Is="completed",_s="cancelled",Mg="task-"+_s,$g="task-"+Is,Wg=Ls+"-"+_s,Hg=Ls+"-"+Is;var hn="listenerMiddleware";var Fg=ot(hn+"/add"),zg=ot(hn+"/removeAll"),Gg=ot(hn+"/remove");var ws,jg=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(ws||(ws=Promise.resolve())).then(e).catch(function(r){return setTimeout(function(){throw r},0)})},zl=function(e){return function(r){setTimeout(r,e)}},Kg=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:zl(10);ds();function Gl(e,r){return class extends e{constructor(){super(...arguments),this.eventBus=r??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)}}}var qr=class extends Gl(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ps=class e extends qr{static get(r){var o;let n=typeof r=="string"?r:r.name,a=typeof r=="string"?void 0:r,i=window.ftReduxStores[n];if(cr(i))return i;if(a==null)return;let c=Ts({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),d=Rs({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,d,a.eventBus)}constructor(r,o,n){super(),this.reduxSlice=r,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Wr;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,c,d)=>{let u=c,p=i[u];return p?(...m)=>{let y=p(...m.map(a));return this.reduxStore.dispatch(y),y}:m=>{this.setState({[u]:a(m)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(r){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(r).join("_"),overwrites:r})}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(r){throw new Error("Not implemented yet.")}subscribe(r){return this.reduxStore.subscribe(r)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var to=C(k());var Vl=C(Ds(),1);var Bs;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Bs||(Bs={}));var Us;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Us||(Us={}));var Ms;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.MAP_ATTACHMENT="MAP_ATTACHMENT",e.RESOURCE="RESOURCE"})(Ms||(Ms={}));var $s;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})($s||($s={}));var Ws;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Ws||(Ws={}));var Hs;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.GEN_AI__COMPLETED_QUERY="GEN_AI__COMPLETED_QUERY",e.GEN_AI__RATE="GEN_AI__RATE",e.GENAI_CASE_DEFLECTION__START="GENAI_CASE_DEFLECTION__START",e.GENAI_CASE_DEFLECTION__OPEN_TICKET="GENAI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_CONTEXT_MENU="SEARCH_RESULT__OPEN_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"})(Hs||(Hs={}));var Fs;(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"})(Fs||(Fs={}));var zs;(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"})(zs||(zs={}));var Gs;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Gs||(Gs={}));var js;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(js||(js={}));var Ks;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Ks||(Ks={}));var Vs;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Vs||(Vs={}));var Zs;(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"})(Zs||(Zs={}));var qs;(function(e){e.ASC="ASC",e.DESC="DESC"})(qs||(qs={}));var Ys;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Ys||(Ys={}));var Xs;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Xs||(Xs={}));var Qs;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Qs||(Qs={}));var Js;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Js||(Js={}));var ec;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(ec||(ec={}));var tc;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(tc||(tc={}));var rc;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(rc||(rc={}));var oc;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(oc||(oc={}));var X;(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.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(X||(X={}));var nc;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(nc||(nc={}));var ac;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(ac||(ac={}));var ic;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(ic||(ic={}));var Kl={[X.PERSONAL_BOOK_SHARE_USER]:[X.PERSONAL_BOOK_USER],[X.HTML_EXPORT_USER]:[X.PERSONAL_BOOK_USER],[X.PDF_EXPORT_USER]:[X.PERSONAL_BOOK_USER],[X.KHUB_ADMIN]:[X.CONTENT_PUBLISHER],[X.ADMIN]:[X.KHUB_ADMIN,X.USERS_ADMIN,X.PORTAL_ADMIN],[X.GENERATIVE_AI_EXPORT_USER]:[X.GENERATIVE_AI_USER]};function sc(e,r){return e===r||(Kl[e]??[]).some(o=>sc(o,r))}function cc(e,r){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>sc(n,r))}var Qr=class extends Qe{async listMySearches(){let{session:r}=_.getState();return cc(r,X.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(r.profile.userId),5*60*1e3):[]}};var Jr=class extends Qe{async listMyBookmarks(){let r=_.getState().session;return r?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(r.profile.userId),5*60*1e3):[]}};var Zl="ft-user-assets",eo=to.FtReduxStore.get({name:Zl,initialState:{savedSearches:void 0,bookmarks:void 0}}),yn=class{constructor(){this.currentSession=_.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Jr,this.savedSearchesService=new Qr,_.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var r;let{session:o}=_.getState();(0,to.deepEqual)((r=this.currentSession)===null||r===void 0?void 0:r.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),eo.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),eo.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let r=await this.savedSearchesService.listMySearches();eo.actions.savedSearches(r)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var r;if(this.bookmarksAreUsed){let o=!((r=this.currentSession)===null||r===void 0)&&r.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;eo.actions.bookmarks(o)}}},Fb=new yn;var mn=class{addCommand(r,o=!1){_.commands.add(r,o)}consumeCommand(r){return _.commands.consume(r)}};window.FluidTopicsAppInfoStoreService=new mn;var lc=C(k()),gn=class{highlightHtml(r,o,n){(0,lc.highlightHtml)(r,o,n)}};window.FluidTopicsHighlightHtmlService=new gn;var dc=C(k());var bn=class{isDate(r){var o,n,a,i;return(i=(a=((n=(o=_.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(d=>d.key===r))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(r,o){var n,a,i;return dc.DateFormatter.format(r,(n=o?.locale)!==null&&n!==void 0?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 uc=C(k());var hr=class{static get(r,o){var n,a,i,c;let d=_.getState(),{lang:u,region:p}=(a=(n=d.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new uc.SearchPlaceConverter(d.baseUrl,(c=(i=window.FluidTopicsClientConfiguration)===null||i===void 0?void 0:i.predefinedSorts)!==null&&c!==void 0?c:{},r??20,d.searchInAllLanguagesAllowed,o??`${u}-${p}`)}};var xn=class{urlToSearchRequest(r){return hr.get().parse(r)}searchRequestToUrl(r){return hr.get().serialize(r)}};window.FluidTopicsUrlService=new xn;var at=C(k());var gt=class e extends CustomEvent{constructor(r){super(e.eventName,{detail:{currentItem:r}})}};gt.eventName="change";var vn=class{itemName(r){return`fluid-topics-history-item-${r}`}get(r){let o=sessionStorage.getItem(this.itemName(r));return o?JSON.parse(o):void 0}set(r,o){sessionStorage.setItem(this.itemName(r),JSON.stringify(o))}},pc=new vn;var ro=class e extends at.WithEventBus{static build(){return new e(window.history,pc,()=>window.location,!1)}constructor(r,o,n,a){var i,c;super(),this.history=r,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=r.pushState,this.realReplaceState=r.replaceState,this.initialIndex=(c=(i=r.state)===null||i===void 0?void 0:i.index)!==null&&c!==void 0?c:r.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(r,o=!1){let n=o&&this.currentIndex===r.index-1;this.currentState={...this.buildCurrentState(),...r},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,at.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new gt(this.currentItem())),0)}installProxies(){let r=o=>(n,a,[i,c,d])=>{let u=o(),p={...u===this.currentIndex?this.currentState:void 0,...i,index:u,href:typeof d=="string"?d:(d??this.windowLocation()).href};n.apply(a,[p,c,d]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:r(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:r(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",r=>this.setCurrentState(r.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(r){for(let o=this.history.length-1;o>=0;o--)r?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(r,o=!1){var n,a,i;let c={...this.buildCurrentState(),...r,index:this.currentIndex,title:(n=r?.title)!==null&&n!==void 0?n:this.currentState.title},d=o?(a=r?.majorState)!==null&&a!==void 0?a:this.currentState.majorState:(i=this.currentState.majorState)!==null&&i!==void 0?i:r?.majorState;d!=null&&(c.majorState=d),this.setCurrentState(c)}addHistoryChangeListener(r){this.addEventListener(gt.eventName,r)}removeHistoryChangeListener(r){this.removeEventListener(gt.eventName,r)}currentItem(){return(0,at.deepCopy)(this.currentState)}back(){let r=this.previousMajorPosition();r>=0?this.history.go(r-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,at.deepCopy)(this.states[this.previousMajorPosition()])}previousMajorPosition(){let r=this.currentIndex;for(;r>0&&!this.isMajorState(r);)r--;return this.previousExistingPosition(r)}forward(){let r=this.nextMajorPosition();r<this.states.length?this.history.go(r-this.currentIndex):this.history.forward()}forwardItem(){return(0,at.deepCopy)(this.states[this.nextMajorPosition()])}nextMajorPosition(){let r=this.currentIndex;do r++;while(r<this.states.length&&!this.isMajorState(r));do r++;while(r<this.states.length&&!this.isMajorState(r));return this.previousExistingPosition(r)}previousExistingPosition(r){let o=r;do o--;while(o>0&&!this.hasState(o));return o}buildCurrentState(){var r,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(r=this.history.state)===null||r===void 0?void 0:r.title)!==null&&o!==void 0?o:document.title}}hasState(r){return this.states[r]!=null}isMajorState(r){var o,n;return this.hasState(r)&&((n=(o=this.states[r])===null||o===void 0?void 0:o.majorState)!==null&&n!==void 0?n:!0)}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=ro.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)});(0,fc.customElement)("ft-app-context")(V);var gc=C(ne());var ql=C(k());function hc(e){return e.match(/^[\w-]+\.[\w-]+$/)}var Yl=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},yc=Symbol("i18nAttributes"),mc=Symbol("i18nListAttributes"),bc=Symbol("i18nProperties"),oo=Symbol("i18nContexts"),yr=Symbol("i18nUnsubs");function xc(e){var r,o;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[r]=new Map,this[o]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?Ur:Ut}i18n(i){var c;this.hasI18nContext(i.context)||this.addI18nContext(i.context,void 0,i.custom);let d=(c=i.args)!==null&&c!==void 0?c:i.argsProvider?i.argsProvider(this):[];return this.getI18nService(i.custom).resolveMessage(i.context,i.key,...d)}customI18n(i,c){if(hc(i)){let[d,u]=i.split(".");return this.i18n({custom:!0,context:d,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,d,u)=>i.has(d)||typeof c.argsProvider=="function"),this.updateI18nProperties(c=>typeof c.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((c,d,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,d;let u=this,p=(m,y,g)=>g?.context&&g.key&&i(m,y,g)?{...g,message:this.i18n({context:g.context,key:g.key,...m})}:g;(c=this[yc])===null||c===void 0||c.forEach((m,y)=>u[y]=p(m,y,u[y])),(d=this[mc])===null||d===void 0||d.forEach((m,y)=>{var g;return u[y]=(g=u[y])===null||g===void 0?void 0:g.map(v=>p(m,y,v))})}updateI18nProperties(i){var c;(c=this[bc])===null||c===void 0||c.forEach((d,u)=>{i(d,u)&&(this[u]=this.i18n(d))})}addI18nMessages(i,c,d){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,c,d)}addI18nContext(i,c,d){let u=(typeof i=="string"?i:i.name).toLowerCase();d=typeof i=="string"?d:i.custom,this[oo].set(u,{isCustomContext:d}),this[yr].has(u)||this[yr].set(u,this.getI18nService(d).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(d).prepareContext(u,c)}hasI18nContext(i){return this[oo].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[oo].forEach((i,c)=>this.addI18nContext(c,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[yr].forEach(i=>i()),this[yr].clear()}}return r=oo,o=yr,Yl([(0,gc.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}var no=class extends xc(io.FtLitElement){},ao=class extends xc(io.FtLitElementRedux){};var mr=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Re=class extends ao{constructor(){super(),this.editorMode=!1,this.addStore(_)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":so.nothing:so.html`
1103
+ `}update(r){var o,n,a,i,c;super.update(r),r.has("baseUrl")&&(_.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),r.has("apiIntegrationIdentifier")&&_.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),r.has("uiLocale")&&_.actions.uiLocale(this.uiLocale),r.has("metadataConfiguration")&&_.actions.metadataConfiguration(this.metadataConfiguration),r.has("noCustom")&&_.actions.noCustom(this.noCustom),r.has("editorMode")&&_.actions.editorMode(this.editorMode),r.has("noCustomComponent")&&_.actions.noCustomComponent(this.noCustomComponent),r.has("session")&&_.actions.session(this.session),r.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(d=>Ut.addContext(d)),r.has("openExternalDocumentInNewTab")&&_.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),r.has("navigatorOnline")&&_.actions.navigatorOnline(this.navigatorOnline),r.has("forcedOffline")&&_.actions.forcedOffline(this.forcedOffline),r.has("localesConfiguration")&&(_.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),_.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),_.actions.searchInAllLanguagesAllowed((c=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&c!==void 0?c:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},r.idleTimeoutInMillis),r})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};V.elementDefinitions={};V.styles=$i;ae([(0,fe.property)()],V.prototype,"baseUrl",void 0);ae([(0,fe.property)()],V.prototype,"apiIntegrationIdentifier",void 0);ae([(0,fe.property)()],V.prototype,"uiLocale",void 0);ae([(0,we.jsonProperty)(null)],V.prototype,"availableUiLocales",void 0);ae([(0,we.jsonProperty)(null)],V.prototype,"metadataConfiguration",void 0);ae([(0,fe.property)({type:Boolean})],V.prototype,"editorMode",void 0);ae([(0,fe.property)({type:Boolean})],V.prototype,"noCustom",void 0);ae([(0,fe.property)({type:Boolean})],V.prototype,"openExternalDocumentInNewTab",void 0);ae([(0,fe.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],V.prototype,"noCustomComponent",void 0);ae([(0,fe.property)({type:Boolean})],V.prototype,"withManualResources",void 0);ae([(0,fe.property)({type:Boolean})],V.prototype,"navigatorOnline",void 0);ae([(0,fe.property)({type:Boolean})],V.prototype,"forcedOffline",void 0);ae([(0,fe.property)({type:Object})],V.prototype,"apiProvider",void 0);ae([(0,we.jsonProperty)([])],V.prototype,"messageContexts",void 0);ae([(0,we.jsonProperty)(void 0)],V.prototype,"session",void 0);ae([(0,fe.state)()],V.prototype,"localesConfiguration",void 0);var jl=C(oe());function al(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var o,n,a;if(Array.isArray(e)){if(o=e.length,o!=r.length)return!1;for(n=o;n--!==0;)if(!Mr(e[n],r[n]))return!1;return!0}if(e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(n of e.entries())if(!r.has(n[0]))return!1;for(n of e.entries())if(!Mr(n[1],r.get(n[0])))return!1;return!0}if(e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(n of e.entries())if(!r.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();let i=c=>Object.keys(c).filter(d=>c[d]!=null);if(a=i(e),o=a.length,o!==i(r).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[n]))return!1;for(n=o;n--!==0;){let c=a[n];if(!Mr(e[c],r[c]))return!1}return!0}return e!==e&&r!==r||e==null&&r==null}function Mr(e,r){try{return al(e,r)}catch{return!1}}function $r(e,r){return!Mr(e,r)}var il=C(oe(),1);var Wr=class{constructor(){this.queue=[]}add(r,o=!1){o&&this.clear(r.type),this.queue.push(r)}consume(r){let o=this.queue.find(n=>n.type===r);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(r){typeof r=="string"?this.queue=this.queue.filter(o=>o.type!==r):this.queue=this.queue.filter(o=>!r.test(o.type))}};var Mt=C(oe(),1);var Fi=C(oe(),1);function zi(e,r){let o=()=>JSON.parse(JSON.stringify(e));return(0,Fi.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:$r,...r??{}})}var Hr=class{constructor(r=0){this.timeout=r,this.callbacks=[]}run(r,o){return this.callbacks=[r],this.debounce(o)}queue(r,o){return this.callbacks.push(r),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(r){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),r??this.timeout),this.promise}async runCallbacks(){var r,o;let n=[...this.callbacks];this.callbacks=[];let a=(r=this.rejectPromise)!==null&&r!==void 0?r:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let c of n)try{await c()}catch(d){a(d);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 ji=C(j(),1);var Fr=globalThis,sl=Fr.ShadowRoot&&(Fr.ShadyCSS===void 0||Fr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ym=Symbol();var Gi=(e,r)=>{if(sl)e.adoptedStyleSheets=r.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of r){let n=document.createElement("style"),a=Fr.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,e.appendChild(n)}};var zr=class extends ji.LitElement{createRenderRoot(){let r=this.constructor;r.elementDefinitions&&!r.registry&&(r.registry=new CustomElementRegistry,Object.entries(r.elementDefinitions).forEach(([a,i])=>r.registry.define(a,i)));let o={...r.shadowRootOptions,customElements:r.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return Gi(n,r.elementStyles),n}};function Ki(e,r,...o){var n;let a=e.querySelector(r);for(let i of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}var sr=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Yi,Vi=Symbol("constructorPrototype"),Zi=Symbol("constructorName"),Xi=Symbol("exportpartsDebouncer"),qi=Symbol("dynamicDependenciesLoaded"),ze=class extends zr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Yi]=new Hr(5),this[Zi]=this.constructor.name,this[Vi]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Zi]&&Object.setPrototypeOf(this,this[Vi])}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 r=this.constructor;r[qi]||(r[qi]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(r){super.updated(r),this.updateComplete.then(()=>{this.contentAvailableCallback(r),this.focusElementToFocus(r),this.applyCustomStylesheet(r),this.scheduleExportpartsUpdate()})}contentAvailableCallback(r){}focusElementToFocus(r){if(r.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let i=[...a??[],n];o=Ki(this.shadowRoot,...i)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(r){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(r.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 r,o,n;(!((r=this.exportpartsPrefix)===null||r===void 0)&&r.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[Xi].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(r){var o,n,a,i,c,d;let u=g=>g!=null&&g.trim().length>0,p=r.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=(d=(c=g.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(S=>S.split(":")[1]))!==null&&d!==void 0?d:[];new Array(...v,...x).filter(u).map(S=>S.trim()).forEach(S=>m.add(S))}if(m.size===0){this.removeAttribute("exportparts");return}let y=[...m.values()].flatMap(g=>p.map(v=>`${g}:${v}--${g}`));this.setAttribute("exportparts",[...this.part,...y].join(", "))}};Yi=Xi;sr([(0,Mt.property)()],ze.prototype,"exportpartsPrefix",void 0);sr([zi([])],ze.prototype,"exportpartsPrefixes",void 0);sr([(0,Mt.property)()],ze.prototype,"customStylesheet",void 0);sr([(0,Mt.property)()],ze.prototype,"elementToFocus",void 0);sr([(0,Mt.state)()],ze.prototype,"useAdoptedStyleSheets",void 0);function cr(e){var r;return(r=e?.isFtReduxStore)!==null&&r!==void 0?r:!1}var Qi,Ji,es,lr=Symbol("internalReduxEventsUnsubscribers"),Je=Symbol("internalStoresUnsubscribers"),ht=Symbol("internalStores"),dr=class extends ze{constructor(){super(...arguments),this[Qi]=new Map,this[Ji]=new Map,this[es]=new Map}get reduxConstructor(){return this.constructor}update(r){super.update(r),[...this.reduxConstructor.reduxReactiveProperties].some(o=>r.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[ht].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ht].values()][0]}getStore(r){return r==null?this.getUnnamedStore():this[ht].get(r)}addStore(r,o){var n;o=(n=o??(cr(r)?r.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[ht].set(o,r),this.subscribeToStore(o,r),this.updateFromStores()}removeStore(r){let o=typeof r=="string"?r:r.name;this.unsubscribeFromStore(o),this[ht].delete(o)}setupStores(){this.unsubscribeFromStores(),this[ht].forEach((r,o)=>this.subscribeToStore(o,r)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((r,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let a=this.getStore(r.store);a&&(r.store?this[Je].has(r.store):this[Je].size>0)&&(this[o]=r.selector(a.getState(),this))}})}subscribeToStore(r,o){var n;this[Je].set(r,o.subscribe(()=>this.updateFromStores())),this[lr].set(r,[]),cr(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||o.name===a.store)){let c=d=>this[i](d);o.addEventListener(a.eventName,c),this[lr].get(r).push(()=>o.removeEventListener(a.eventName,c))}})),this.onStoreAvailable(r)}unsubscribeFromStores(){this[Je].forEach((r,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(r){var o;this[Je].has(r)&&this[Je].get(r)(),this[Je].delete(r),(o=this[lr].get(r))===null||o===void 0||o.forEach(n=>n()),this[lr].delete(r)}onStoreAvailable(r){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Qi=Je,Ji=ht,es=lr;dr.reduxProperties=new Map;dr.reduxReactiveProperties=new Set;dr.reduxEventListeners=new Map;function xe(e){for(var r=arguments.length,o=Array(r>1?r-1:0),n=1;n<r;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 Ge(e){return!!e&&!!e[F]}function Ae(e){var r;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)===yl}(e)||Array.isArray(e)||!!e[ss]||!!(!((r=e.constructor)===null||r===void 0)&&r[ss])||Jo(e)||en(e))}function yt(e,r,o){o===void 0&&(o=!1),Ht(e)===0?(o?Object.keys:Wt)(e).forEach(function(n){o&&typeof n=="symbol"||r(n,e[n],e)}):e.forEach(function(n,a){return r(a,n,e)})}function Ht(e){var r=e[F];return r?r.i>3?r.i-4:r.i:Array.isArray(e)?1:Jo(e)?2:en(e)?3:0}function $t(e,r){return Ht(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function cl(e,r){return Ht(e)===2?e.get(r):e[r]}function cs(e,r,o){var n=Ht(e);n===2?e.set(r,o):n===3?e.add(o):e[r]=o}function ls(e,r){return e===r?e!==0||1/e==1/r:e!=e&&r!=r}function Jo(e){return fl&&e instanceof Map}function en(e){return hl&&e instanceof Set}function et(e){return e.o||e.t}function tn(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var r=ps(e);delete r[F];for(var o=Wt(r),n=0;n<o.length;n++){var a=o[n],i=r[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(r[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),r)}function rn(e,r){return r===void 0&&(r=!1),on(e)||Ge(e)||!Ae(e)||(Ht(e)>1&&(e.set=e.add=e.clear=e.delete=ll),Object.freeze(e),r&&yt(e,function(o,n){return rn(n,!0)},!0)),e}function ll(){xe(2)}function on(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function De(e){var r=Qo[e];return r||xe(18,e),r}function dl(e,r){Qo[e]||(Qo[e]=r)}function qo(){return pr}function jo(e,r){r&&(De("Patches"),e.u=[],e.s=[],e.v=r)}function Gr(e){Yo(e),e.p.forEach(ul),e.p=null}function Yo(e){e===pr&&(pr=e.l)}function ts(e){return pr={p:[],l:pr,h:e,m:!0,_:0}}function ul(e){var r=e[F];r.i===0||r.i===1?r.j():r.g=!0}function Ko(e,r){r._=r.p.length;var o=r.p[0],n=e!==void 0&&e!==o;return r.h.O||De("ES5").S(r,e,n),n?(o[F].P&&(Gr(r),xe(4)),Ae(e)&&(e=jr(r,e),r.l||Kr(r,e)),r.u&&De("Patches").M(o[F].t,e,r.u,r.s)):e=jr(r,o,[]),Gr(r),r.u&&r.v(r.u,r.s),e!==us?e:void 0}function jr(e,r,o){if(on(r))return r;var n=r[F];if(!n)return yt(r,function(d,u){return rs(e,n,r,d,u,o)},!0),r;if(n.A!==e)return r;if(!n.P)return Kr(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=tn(n.k):n.o,i=a,c=!1;n.i===3&&(i=new Set(a),a.clear(),c=!0),yt(i,function(d,u){return rs(e,n,a,d,u,o,c)}),Kr(e,a,!1),o&&e.u&&De("Patches").N(n,o,e.u,e.s)}return n.o}function rs(e,r,o,n,a,i,c){if(Ge(a)){var d=jr(e,a,i&&r&&r.i!==3&&!$t(r.R,n)?i.concat(n):void 0);if(cs(o,n,d),!Ge(d))return;e.m=!1}else c&&o.add(a);if(Ae(a)&&!on(a)){if(!e.h.D&&e._<1)return;jr(e,a),r&&r.A.l||Kr(e,a)}}function Kr(e,r,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&rn(r,o)}function Vo(e,r){var o=e[F];return(o?et(o):e)[r]}function os(e,r){if(r in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,r);if(n)return n;o=Object.getPrototypeOf(o)}}function tt(e){e.P||(e.P=!0,e.l&&tt(e.l))}function Zo(e){e.o||(e.o=tn(e.t))}function Xo(e,r,o){var n=Jo(r)?De("MapSet").F(r,o):en(r)?De("MapSet").T(r,o):e.O?function(a,i){var c=Array.isArray(a),d={i:c?1:0,A:i?i.A:qo(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},u=d,p=fr;c&&(u=[d],p=ur);var m=Proxy.revocable(u,p),y=m.revoke,g=m.proxy;return d.k=g,d.j=y,g}(r,o):De("ES5").J(r,o);return(o?o.A:qo()).p.push(n),n}function pl(e){return Ge(e)||xe(22,e),function r(o){if(!Ae(o))return o;var n,a=o[F],i=Ht(o);if(a){if(!a.P&&(a.i<4||!De("ES5").K(a)))return a.t;a.I=!0,n=ns(o,i),a.I=!1}else n=ns(o,i);return yt(n,function(c,d){a&&cl(a.t,c)===d||cs(n,c,r(d))}),i===3?new Set(n):n}(e)}function ns(e,r){switch(r){case 2:return new Map(e);case 3:return Array.from(e)}return tn(e)}function ds(){function e(c,d){var u=i[c];return u?u.enumerable=d:i[c]=u={configurable:!0,enumerable:d,get:function(){var p=this[F];return fr.get(p,c)},set:function(p){var m=this[F];fr.set(m,c,p)}},u}function r(c){for(var d=c.length-1;d>=0;d--){var u=c[d][F];if(!u.P)switch(u.i){case 5:n(u)&&tt(u);break;case 4:o(u)&&tt(u)}}}function o(c){for(var d=c.t,u=c.k,p=Wt(u),m=p.length-1;m>=0;m--){var y=p[m];if(y!==F){var g=d[y];if(g===void 0&&!$t(d,y))return!0;var v=u[y],x=v&&v[F];if(x?x.t!==g:!ls(v,g))return!0}}var S=!!d[F];return p.length!==Wt(d).length+(S?0:1)}function n(c){var d=c.k;if(d.length!==c.t.length)return!0;var u=Object.getOwnPropertyDescriptor(d,d.length-1);if(u&&!u.get)return!0;for(var p=0;p<d.length;p++)if(!d.hasOwnProperty(p))return!0;return!1}function a(c){c.g&&xe(3,JSON.stringify(et(c)))}var i={};dl("ES5",{J:function(c,d){var u=Array.isArray(c),p=function(y,g){if(y){for(var v=Array(g.length),x=0;x<g.length;x++)Object.defineProperty(v,""+x,e(x,!0));return v}var S=ps(g);delete S[F];for(var T=Wt(S),R=0;R<T.length;R++){var N=T[R];S[N]=e(N,y||!!S[N].enumerable)}return Object.create(Object.getPrototypeOf(g),S)}(u,c),m={i:u?5:4,A:d?d.A:qo(),P:!1,I:!1,R:{},l:d,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,F,{value:m,writable:!0}),p},S:function(c,d,u){u?Ge(d)&&d[F].A===c&&r(c.p):(c.u&&function p(m){if(m&&typeof m=="object"){var y=m[F];if(y){var g=y.t,v=y.k,x=y.R,S=y.i;if(S===4)yt(v,function(B){B!==F&&(g[B]!==void 0||$t(g,B)?x[B]||p(v[B]):(x[B]=!0,tt(y)))}),yt(g,function(B){v[B]!==void 0||$t(v,B)||(x[B]=!1,tt(y))});else if(S===5){if(n(y)&&(tt(y),x.length=!0),v.length<g.length)for(var T=v.length;T<g.length;T++)x[T]=!1;else for(var R=g.length;R<v.length;R++)x[R]=!0;for(var N=Math.min(v.length,g.length),P=0;P<N;P++)v.hasOwnProperty(P)||(x[P]=!0),x[P]===void 0&&p(v[P])}}}}(c.p[0]),r(c.p))},K:function(c){return c.i===4?o(c):n(c)}})}var as,pr,nn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",fl=typeof Map<"u",hl=typeof Set<"u",is=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",us=nn?Symbol.for("immer-nothing"):((as={})["immer-nothing"]=!0,as),ss=nn?Symbol.for("immer-draftable"):"__$immer_draftable",F=nn?Symbol.for("immer-state"):"__$immer_state";var yl=""+Object.prototype.constructor,Wt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,ps=Object.getOwnPropertyDescriptors||function(e){var r={};return Wt(e).forEach(function(o){r[o]=Object.getOwnPropertyDescriptor(e,o)}),r},Qo={},fr={get:function(e,r){if(r===F)return e;var o=et(e);if(!$t(o,r))return function(a,i,c){var d,u=os(i,c);return u?"value"in u?u.value:(d=u.get)===null||d===void 0?void 0:d.call(a.k):void 0}(e,o,r);var n=o[r];return e.I||!Ae(n)?n:n===Vo(e.t,r)?(Zo(e),e.o[r]=Xo(e.A.h,n,e)):n},has:function(e,r){return r in et(e)},ownKeys:function(e){return Reflect.ownKeys(et(e))},set:function(e,r,o){var n=os(et(e),r);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var a=Vo(et(e),r),i=a?.[F];if(i&&i.t===o)return e.o[r]=o,e.R[r]=!1,!0;if(ls(o,a)&&(o!==void 0||$t(e.t,r)))return!0;Zo(e),tt(e)}return e.o[r]===o&&(o!==void 0||r in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[r])||(e.o[r]=o,e.R[r]=!0),!0},deleteProperty:function(e,r){return Vo(e.t,r)!==void 0||r in e.t?(e.R[r]=!1,Zo(e),tt(e)):delete e.R[r],e.o&&delete e.o[r],!0},getOwnPropertyDescriptor:function(e,r){var o=et(e),n=Reflect.getOwnPropertyDescriptor(o,r);return n&&{writable:!0,configurable:e.i!==1||r!=="length",enumerable:n.enumerable,value:o[r]}},defineProperty:function(){xe(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){xe(12)}},ur={};yt(fr,function(e,r){ur[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}}),ur.deleteProperty=function(e,r){return ur.set.call(this,e,r,void 0)},ur.set=function(e,r,o){return fr.set.call(this,e[0],r,o,e[0])};var ml=function(){function e(o){var n=this;this.O=is,this.D=!0,this.produce=function(a,i,c){if(typeof a=="function"&&typeof i!="function"){var d=i;i=a;var u=n;return function(S){var T=this;S===void 0&&(S=d);for(var R=arguments.length,N=Array(R>1?R-1:0),P=1;P<R;P++)N[P-1]=arguments[P];return u.produce(S,function(B){var U;return(U=i).call.apply(U,[T,B].concat(N))})}}var p;if(typeof i!="function"&&xe(6),c!==void 0&&typeof c!="function"&&xe(7),Ae(a)){var m=ts(n),y=Xo(n,a,void 0),g=!0;try{p=i(y),g=!1}finally{g?Gr(m):Yo(m)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(S){return jo(m,c),Ko(S,m)},function(S){throw Gr(m),S}):(jo(m,c),Ko(p,m))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===us&&(p=void 0),n.D&&rn(p,!0),c){var v=[],x=[];De("Patches").M(a,p,v,x),c(v,x)}return p}xe(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var m=arguments.length,y=Array(m>1?m-1:0),g=1;g<m;g++)y[g-1]=arguments[g];return n.produceWithPatches(p,function(v){return a.apply(void 0,[v].concat(y))})};var c,d,u=n.produce(a,i,function(p,m){c=p,d=m});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,c,d]}):[u,c,d]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var r=e.prototype;return r.createDraft=function(o){Ae(o)||xe(8),Ge(o)&&(o=pl(o));var n=ts(this),a=Xo(this,o,void 0);return a[F].C=!0,Yo(n),a},r.finishDraft=function(o,n){var a=o&&o[F],i=a.A;return jo(i,n),Ko(void 0,i)},r.setAutoFreeze=function(o){this.D=o},r.setUseProxies=function(o){o&&!is&&xe(20),this.O=o},r.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=De("Patches").$;return Ge(o)?c(o,n):this.produce(o,function(d){return c(d,n)})},e}(),me=new ml,gl=me.produce,dg=me.produceWithPatches.bind(me),ug=me.setAutoFreeze.bind(me),pg=me.setUseProxies.bind(me),fg=me.applyPatches.bind(me),hg=me.createDraft.bind(me),yg=me.finishDraft.bind(me),Vr=gl;function mt(e){"@babel/helpers - typeof";return mt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},mt(e)}function fs(e,r){if(mt(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,r||"default");if(mt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function hs(e){var r=fs(e,"string");return mt(r)=="symbol"?r:r+""}function ys(e,r,o){return(r=hs(r))in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e}function ms(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,n)}return o}function an(e){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?ms(Object(o),!0).forEach(function(n){ys(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ms(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function ie(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 gs=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),sn=function(){return Math.random().toString(36).substring(7).split("").join(".")},Zr={INIT:"@@redux/INIT"+sn(),REPLACE:"@@redux/REPLACE"+sn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+sn()}};function bl(e){if(typeof e!="object"||e===null)return!1;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}function cn(e,r,o){var n;if(typeof r=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ie(0));if(typeof r=="function"&&typeof o>"u"&&(o=r,r=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ie(1));return o(cn)(e,r)}if(typeof e!="function")throw new Error(ie(2));var a=e,i=r,c=[],d=c,u=!1;function p(){d===c&&(d=c.slice())}function m(){if(u)throw new Error(ie(3));return i}function y(S){if(typeof S!="function")throw new Error(ie(4));if(u)throw new Error(ie(5));var T=!0;return p(),d.push(S),function(){if(T){if(u)throw new Error(ie(6));T=!1,p();var N=d.indexOf(S);d.splice(N,1),c=null}}}function g(S){if(!bl(S))throw new Error(ie(7));if(typeof S.type>"u")throw new Error(ie(8));if(u)throw new Error(ie(9));try{u=!0,i=a(i,S)}finally{u=!1}for(var T=c=d,R=0;R<T.length;R++){var N=T[R];N()}return S}function v(S){if(typeof S!="function")throw new Error(ie(10));a=S,g({type:Zr.REPLACE})}function x(){var S,T=y;return S={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(ie(11));function P(){N.next&&N.next(m())}P();var B=T(P);return{unsubscribe:B}}},S[gs]=function(){return this},S}return g({type:Zr.INIT}),n={dispatch:g,subscribe:y,getState:m,replaceReducer:v},n[gs]=x,n}function xl(e){Object.keys(e).forEach(function(r){var o=e[r],n=o(void 0,{type:Zr.INIT});if(typeof n>"u")throw new Error(ie(12));if(typeof o(void 0,{type:Zr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ie(13))})}function bs(e){for(var r=Object.keys(e),o={},n=0;n<r.length;n++){var a=r[n];typeof e[a]=="function"&&(o[a]=e[a])}var i=Object.keys(o),c,d;try{xl(o)}catch(u){d=u}return function(p,m){if(p===void 0&&(p={}),d)throw d;if(0)var y;for(var g=!1,v={},x=0;x<i.length;x++){var S=i[x],T=o[S],R=p[S],N=T(R,m);if(typeof N>"u"){var P=m&&m.type;throw new Error(ie(14))}v[S]=N,g=g||N!==R}return g=g||i.length!==Object.keys(p).length,g?v:p}}function Ft(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return r.length===0?function(n){return n}:r.length===1?r[0]:r.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function xs(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(ie(15))},c={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},d=r.map(function(u){return u(c)});return i=Ft.apply(void 0,d)(a.dispatch),an(an({},a),{},{dispatch:i})}}}function vs(e){var r=function(n){var a=n.dispatch,i=n.getState;return function(c){return function(d){return typeof d=="function"?d(a,i,e):c(d)}}};return r}var Ss=vs();Ss.withExtraArgument=vs;var ln=Ss;var As=function(){var e=function(r,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(r,o)};return function(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(r,o);function n(){this.constructor=r}r.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),vl=function(e,r){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:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function d(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=r.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}}},zt=function(e,r){for(var o=0,n=r.length,a=e.length;o<n;o++,a++)e[a]=r[o];return e},Sl=Object.defineProperty,Ol=Object.defineProperties,Cl=Object.getOwnPropertyDescriptors,Os=Object.getOwnPropertySymbols,El=Object.prototype.hasOwnProperty,wl=Object.prototype.propertyIsEnumerable,Cs=function(e,r,o){return r in e?Sl(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o},rt=function(e,r){for(var o in r||(r={}))El.call(r,o)&&Cs(e,o,r[o]);if(Os)for(var n=0,a=Os(r);n<a.length;n++){var o=a[n];wl.call(r,o)&&Cs(e,o,r[o])}return e},dn=function(e,r){return Ol(e,Cl(r))},Al=function(e,r,o){return new Promise(function(n,a){var i=function(u){try{d(o.next(u))}catch(p){a(p)}},c=function(u){try{d(o.throw(u))}catch(p){a(p)}},d=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(i,c)};d((o=o.apply(e,r)).next())})};var Rl=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ft:Ft.apply(null,arguments)},Pg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Nl(e){if(typeof e!="object"||e===null)return!1;var r=Object.getPrototypeOf(e);if(r===null)return!0;for(var o=r;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return r===o}var Tl=function(e){As(r,e);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},r.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(r.bind.apply(r,zt([void 0],o[0].concat(this)))):new(r.bind.apply(r,zt([void 0],o.concat(this))))},r}(Array),Ll=function(e){As(r,e);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},r.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(r.bind.apply(r,zt([void 0],o[0].concat(this)))):new(r.bind.apply(r,zt([void 0],o.concat(this))))},r}(Array);function fn(e){return Ae(e)?Vr(e,function(){}):e}function Il(e){return typeof e=="boolean"}function _l(){return function(r){return Pl(r)}}function Pl(e){e===void 0&&(e={});var r=e.thunk,o=r===void 0?!0:r,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,c=i===void 0?!0:i,d=new Tl;if(o&&(Il(o)?d.push(ln):d.push(ln.withExtraArgument(o.extraArgument))),0){if(a)var u;if(c)var p}return d}var un=!0;function Rs(e){var r=_l(),o=e||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,c=i===void 0?r():i,d=o.devTools,u=d===void 0?!0:d,p=o.preloadedState,m=p===void 0?void 0:p,y=o.enhancers,g=y===void 0?void 0:y,v;if(typeof a=="function")v=a;else if(Nl(a))v=bs(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(r),!un&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!un&&x.some(function(B){return typeof B!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=xs.apply(void 0,x),T=Ft;u&&(T=Rl(rt({trace:!un},typeof u=="object"&&u)));var R=new Ll(S),N=R;Array.isArray(g)?N=zt([S],g):typeof g=="function"&&(N=g(R));var P=T.apply(void 0,N);return cn(v,m,P)}function ot(e,r){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(r){var i=r.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return rt(rt({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 Ns(e){var r={},o=[],n,a={addCase:function(i,c){var d=typeof i=="string"?i:i.type;if(d in r)throw new Error("addCase cannot be called with two reducers for the same action type");return r[d]=c,a},addMatcher:function(i,c){return o.push({matcher:i,reducer:c}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[r,o,n]}function kl(e){return typeof e=="function"}function Dl(e,r,o,n){o===void 0&&(o=[]);var a=typeof r=="function"?Ns(r):[r,o,n],i=a[0],c=a[1],d=a[2],u;if(kl(e))u=function(){return fn(e())};else{var p=fn(e);u=function(){return p}}function m(y,g){y===void 0&&(y=u());var v=zt([i[g.type]],c.filter(function(x){var S=x.matcher;return S(g)}).map(function(x){var S=x.reducer;return S}));return v.filter(function(x){return!!x}).length===0&&(v=[d]),v.reduce(function(x,S){if(S)if(Ge(x)){var T=x,R=S(T,g);return R===void 0?x:R}else{if(Ae(x))return Vr(x,function(N){return S(N,g)});var R=S(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},y)}return m.getInitialState=u,m}function Bl(e,r){return e+"/"+r}function Ts(e){var r=e.name;if(!r)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:fn(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},c={},d={};a.forEach(function(m){var y=n[m],g=Bl(r,m),v,x;"reducer"in y?(v=y.reducer,x=y.prepare):v=y,i[m]=v,c[g]=v,d[m]=x?ot(g,x):ot(g)});function u(){var m=typeof e.extraReducers=="function"?Ns(e.extraReducers):[e.extraReducers],y=m[0],g=y===void 0?{}:y,v=m[1],x=v===void 0?[]:v,S=m[2],T=S===void 0?void 0:S,R=rt(rt({},g),c);return Dl(o,function(N){for(var P in R)N.addCase(P,R[P]);for(var B=0,U=x;B<U.length;B++){var le=U[B];N.addMatcher(le.matcher,le.reducer)}T&&N.addDefaultCase(T)})}var p;return{name:r,reducer:function(m,y){return p||(p=u()),p(m,y)},actions:d,caseReducers:i,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var Ul="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ml=function(e){e===void 0&&(e=21);for(var r="",o=e;o--;)r+=Ul[Math.random()*64|0];return r},$l=["name","message","stack","code"],pn=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),Es=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),Wl=function(e){if(typeof e=="object"&&e!==null){for(var r={},o=0,n=$l;o<n.length;o++){var a=n[o];typeof e[a]=="string"&&(r[a]=e[a])}return r}return{message:String(e)}},Ug=function(){function e(r,o,n){var a=ot(r+"/fulfilled",function(m,y,g,v){return{payload:m,meta:dn(rt({},v||{}),{arg:g,requestId:y,requestStatus:"fulfilled"})}}),i=ot(r+"/pending",function(m,y,g){return{payload:void 0,meta:dn(rt({},g||{}),{arg:y,requestId:m,requestStatus:"pending"})}}),c=ot(r+"/rejected",function(m,y,g,v,x){return{payload:v,error:(n&&n.serializeError||Wl)(m||"Rejected"),meta:dn(rt({},x||{}),{arg:g,requestId:y,rejectedWithValue:!!v,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),d=!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(y,g,v){var x=n?.idGenerator?n.idGenerator(m):Ml(),S=new u,T,R=!1;function N(B){T=B,S.abort()}var P=function(){return Al(this,null,function(){var B,U,le,Ne,se,Te,ee;return vl(this,function(h){switch(h.label){case 0:return h.trys.push([0,4,,5]),Ne=(B=n?.condition)==null?void 0:B.call(n,m,{getState:g,extra:v}),Fl(Ne)?[4,Ne]:[3,2];case 1:Ne=h.sent(),h.label=2;case 2:if(Ne===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return R=!0,se=new Promise(function(b,I){return S.signal.addEventListener("abort",function(){return I({name:"AbortError",message:T||"Aborted"})})}),y(i(x,m,(U=n?.getPendingMeta)==null?void 0:U.call(n,{requestId:x,arg:m},{getState:g,extra:v}))),[4,Promise.race([se,Promise.resolve(o(m,{dispatch:y,getState:g,extra:v,requestId:x,signal:S.signal,abort:N,rejectWithValue:function(b,I){return new pn(b,I)},fulfillWithValue:function(b,I){return new Es(b,I)}})).then(function(b){if(b instanceof pn)throw b;return b instanceof Es?a(b.payload,x,m,b.meta):a(b,x,m)})])];case 3:return le=h.sent(),[3,5];case 4:return Te=h.sent(),le=Te instanceof pn?c(null,x,m,Te.payload,Te.meta):c(Te,x,m),[3,5];case 5:return ee=n&&!n.dispatchConditionRejection&&c.match(le)&&le.meta.condition,ee||y(le),[2,le]}})})}();return Object.assign(P,{abort:N,requestId:x,arg:m,unwrap:function(){return P.then(Hl)}})}}return Object.assign(p,{pending:i,rejected:c,fulfilled:a,typePrefix:r})}return e.withTypes=function(){return e},e}();function Hl(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Fl(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Ls="listener",Is="completed",_s="cancelled",Mg="task-"+_s,$g="task-"+Is,Wg=Ls+"-"+_s,Hg=Ls+"-"+Is;var hn="listenerMiddleware";var Fg=ot(hn+"/add"),zg=ot(hn+"/removeAll"),Gg=ot(hn+"/remove");var ws,jg=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(ws||(ws=Promise.resolve())).then(e).catch(function(r){return setTimeout(function(){throw r},0)})},zl=function(e){return function(r){setTimeout(r,e)}},Kg=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:zl(10);ds();function Gl(e,r){return class extends e{constructor(){super(...arguments),this.eventBus=r??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)}}}var qr=class extends Gl(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ps=class e extends qr{static get(r){var o;let n=typeof r=="string"?r:r.name,a=typeof r=="string"?void 0:r,i=window.ftReduxStores[n];if(cr(i))return i;if(a==null)return;let c=Ts({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),d=Rs({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,d,a.eventBus)}constructor(r,o,n){super(),this.reduxSlice=r,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Wr;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,c,d)=>{let u=c,p=i[u];return p?(...m)=>{let y=p(...m.map(a));return this.reduxStore.dispatch(y),y}:m=>{this.setState({[u]:a(m)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(r){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(r).join("_"),overwrites:r})}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(r){throw new Error("Not implemented yet.")}subscribe(r){return this.reduxStore.subscribe(r)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var to=C(k());var Vl=C(Ds(),1);var Bs;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Bs||(Bs={}));var Us;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Us||(Us={}));var Ms;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.MAP_ATTACHMENT="MAP_ATTACHMENT",e.RESOURCE="RESOURCE"})(Ms||(Ms={}));var $s;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})($s||($s={}));var Ws;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Ws||(Ws={}));var Hs;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.GEN_AI__COMPLETED_QUERY="GEN_AI__COMPLETED_QUERY",e.GEN_AI__RATE="GEN_AI__RATE",e.GENAI_CASE_DEFLECTION__START="GENAI_CASE_DEFLECTION__START",e.GENAI_CASE_DEFLECTION__OPEN_TICKET="GENAI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.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"})(Hs||(Hs={}));var Fs;(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"})(Fs||(Fs={}));var zs;(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"})(zs||(zs={}));var Gs;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Gs||(Gs={}));var js;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(js||(js={}));var Ks;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Ks||(Ks={}));var Vs;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Vs||(Vs={}));var Zs;(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"})(Zs||(Zs={}));var qs;(function(e){e.ASC="ASC",e.DESC="DESC"})(qs||(qs={}));var Ys;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Ys||(Ys={}));var Xs;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Xs||(Xs={}));var Qs;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Qs||(Qs={}));var Js;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Js||(Js={}));var ec;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(ec||(ec={}));var tc;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(tc||(tc={}));var rc;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(rc||(rc={}));var oc;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(oc||(oc={}));var Y;(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.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(Y||(Y={}));var nc;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(nc||(nc={}));var ac;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(ac||(ac={}));var ic;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(ic||(ic={}));var Kl={[Y.PERSONAL_BOOK_SHARE_USER]:[Y.PERSONAL_BOOK_USER],[Y.HTML_EXPORT_USER]:[Y.PERSONAL_BOOK_USER],[Y.PDF_EXPORT_USER]:[Y.PERSONAL_BOOK_USER],[Y.KHUB_ADMIN]:[Y.CONTENT_PUBLISHER],[Y.ADMIN]:[Y.KHUB_ADMIN,Y.USERS_ADMIN,Y.PORTAL_ADMIN],[Y.GENERATIVE_AI_EXPORT_USER]:[Y.GENERATIVE_AI_USER]};function sc(e,r){return e===r||(Kl[e]??[]).some(o=>sc(o,r))}function cc(e,r){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>sc(n,r))}var Qr=class extends Qe{async listMySearches(){let{session:r}=_.getState();return cc(r,Y.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(r.profile.userId),5*60*1e3):[]}};var Jr=class extends Qe{async listMyBookmarks(){let r=_.getState().session;return r?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(r.profile.userId),5*60*1e3):[]}};var Zl="ft-user-assets",eo=to.FtReduxStore.get({name:Zl,initialState:{savedSearches:void 0,bookmarks:void 0}}),yn=class{constructor(){this.currentSession=_.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Jr,this.savedSearchesService=new Qr,_.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var r;let{session:o}=_.getState();(0,to.deepEqual)((r=this.currentSession)===null||r===void 0?void 0:r.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),eo.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),eo.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let r=await this.savedSearchesService.listMySearches();eo.actions.savedSearches(r)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var r;if(this.bookmarksAreUsed){let o=!((r=this.currentSession)===null||r===void 0)&&r.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;eo.actions.bookmarks(o)}}},Fb=new yn;var mn=class{addCommand(r,o=!1){_.commands.add(r,o)}consumeCommand(r){return _.commands.consume(r)}};window.FluidTopicsAppInfoStoreService=new mn;var lc=C(k()),gn=class{highlightHtml(r,o,n){(0,lc.highlightHtml)(r,o,n)}};window.FluidTopicsHighlightHtmlService=new gn;var dc=C(k());var bn=class{isDate(r){var o,n,a,i;return(i=(a=((n=(o=_.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(d=>d.key===r))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(r,o){var n,a,i;return dc.DateFormatter.format(r,(n=o?.locale)!==null&&n!==void 0?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 uc=C(k());var hr=class{static get(r,o){var n,a,i,c;let d=_.getState(),{lang:u,region:p}=(a=(n=d.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new uc.SearchPlaceConverter(d.baseUrl,(c=(i=window.FluidTopicsClientConfiguration)===null||i===void 0?void 0:i.predefinedSorts)!==null&&c!==void 0?c:{},r??20,d.searchInAllLanguagesAllowed,o??`${u}-${p}`)}};var xn=class{urlToSearchRequest(r){return hr.get().parse(r)}searchRequestToUrl(r){return hr.get().serialize(r)}};window.FluidTopicsUrlService=new xn;var at=C(k());var gt=class e extends CustomEvent{constructor(r){super(e.eventName,{detail:{currentItem:r}})}};gt.eventName="change";var vn=class{itemName(r){return`fluid-topics-history-item-${r}`}get(r){let o=sessionStorage.getItem(this.itemName(r));return o?JSON.parse(o):void 0}set(r,o){sessionStorage.setItem(this.itemName(r),JSON.stringify(o))}},pc=new vn;var ro=class e extends at.WithEventBus{static build(){return new e(window.history,pc,()=>window.location,!1)}constructor(r,o,n,a){var i,c;super(),this.history=r,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=r.pushState,this.realReplaceState=r.replaceState,this.initialIndex=(c=(i=r.state)===null||i===void 0?void 0:i.index)!==null&&c!==void 0?c:r.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(r,o=!1){let n=o&&this.currentIndex===r.index-1;this.currentState={...this.buildCurrentState(),...r},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,at.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new gt(this.currentItem())),0)}installProxies(){let r=o=>(n,a,[i,c,d])=>{let u=o(),p={...u===this.currentIndex?this.currentState:void 0,...i,index:u,href:typeof d=="string"?d:(d??this.windowLocation()).href};n.apply(a,[p,c,d]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:r(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:r(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",r=>this.setCurrentState(r.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(r){for(let o=this.history.length-1;o>=0;o--)r?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(r,o=!1){var n,a,i;let c={...this.buildCurrentState(),...r,index:this.currentIndex,title:(n=r?.title)!==null&&n!==void 0?n:this.currentState.title},d=o?(a=r?.majorState)!==null&&a!==void 0?a:this.currentState.majorState:(i=this.currentState.majorState)!==null&&i!==void 0?i:r?.majorState;d!=null&&(c.majorState=d),this.setCurrentState(c)}addHistoryChangeListener(r){this.addEventListener(gt.eventName,r)}removeHistoryChangeListener(r){this.removeEventListener(gt.eventName,r)}currentItem(){return(0,at.deepCopy)(this.currentState)}back(){let r=this.previousMajorPosition();r>=0?this.history.go(r-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,at.deepCopy)(this.states[this.previousMajorPosition()])}previousMajorPosition(){let r=this.currentIndex;for(;r>0&&!this.isMajorState(r);)r--;return this.previousExistingPosition(r)}forward(){let r=this.nextMajorPosition();r<this.states.length?this.history.go(r-this.currentIndex):this.history.forward()}forwardItem(){return(0,at.deepCopy)(this.states[this.nextMajorPosition()])}nextMajorPosition(){let r=this.currentIndex;do r++;while(r<this.states.length&&!this.isMajorState(r));do r++;while(r<this.states.length&&!this.isMajorState(r));return this.previousExistingPosition(r)}previousExistingPosition(r){let o=r;do o--;while(o>0&&!this.hasState(o));return o}buildCurrentState(){var r,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(r=this.history.state)===null||r===void 0?void 0:r.title)!==null&&o!==void 0?o:document.title}}hasState(r){return this.states[r]!=null}isMajorState(r){var o,n;return this.hasState(r)&&((n=(o=this.states[r])===null||o===void 0?void 0:o.majorState)!==null&&n!==void 0?n:!0)}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=ro.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)});(0,fc.customElement)("ft-app-context")(V);var gc=C(oe());var ql=C(k());function hc(e){return e.match(/^[\w-]+\.[\w-]+$/)}var Yl=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},yc=Symbol("i18nAttributes"),mc=Symbol("i18nListAttributes"),bc=Symbol("i18nProperties"),oo=Symbol("i18nContexts"),yr=Symbol("i18nUnsubs");function xc(e){var r,o;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[r]=new Map,this[o]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?Ur:Ut}i18n(i){var c;this.hasI18nContext(i.context)||this.addI18nContext(i.context,void 0,i.custom);let d=(c=i.args)!==null&&c!==void 0?c:i.argsProvider?i.argsProvider(this):[];return this.getI18nService(i.custom).resolveMessage(i.context,i.key,...d)}customI18n(i,c){if(hc(i)){let[d,u]=i.split(".");return this.i18n({custom:!0,context:d,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,d,u)=>i.has(d)||typeof c.argsProvider=="function"),this.updateI18nProperties(c=>typeof c.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((c,d,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,d;let u=this,p=(m,y,g)=>g?.context&&g.key&&i(m,y,g)?{...g,message:this.i18n({context:g.context,key:g.key,...m})}:g;(c=this[yc])===null||c===void 0||c.forEach((m,y)=>u[y]=p(m,y,u[y])),(d=this[mc])===null||d===void 0||d.forEach((m,y)=>{var g;return u[y]=(g=u[y])===null||g===void 0?void 0:g.map(v=>p(m,y,v))})}updateI18nProperties(i){var c;(c=this[bc])===null||c===void 0||c.forEach((d,u)=>{i(d,u)&&(this[u]=this.i18n(d))})}addI18nMessages(i,c,d){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,c,d)}addI18nContext(i,c,d){let u=(typeof i=="string"?i:i.name).toLowerCase();d=typeof i=="string"?d:i.custom,this[oo].set(u,{isCustomContext:d}),this[yr].has(u)||this[yr].set(u,this.getI18nService(d).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(d).prepareContext(u,c)}hasI18nContext(i){return this[oo].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[oo].forEach((i,c)=>this.addI18nContext(c,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[yr].forEach(i=>i()),this[yr].clear()}}return r=oo,o=yr,Yl([(0,gc.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}var no=class extends xc(io.FtLitElement){},ao=class extends xc(io.FtLitElementRedux){};var mr=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Re=class extends ao{constructor(){super(),this.editorMode=!1,this.addStore(_)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":so.nothing:so.html`
1104
1104
  <span class="ft-i18n">
1105
1105
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
1106
1106
  </span>