@fluid-topics/ft-pager 1.3.51 → 1.3.53

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 Dc=Object.create;var ka=Object.defineProperty;var Bc=Object.getOwnPropertyDescriptor;var Mc=Object.getOwnPropertyNames;var Uc=Object.getPrototypeOf,$c=Object.prototype.hasOwnProperty;var jt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Fc=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Mc(t))!$c.call(e,a)&&a!==o&&ka(e,a,{get:()=>t[a],enumerable:!(n=Bc(t,a))||n.enumerable});return e};var v=(e,t,o)=>(o=e!=null?Dc(Uc(e)):{},Fc(t||!e||!e.__esModule?ka(o,"default",{value:e,enumerable:!0}):o,e));var P=jt((pu,Da)=>{Da.exports=ftGlobals.wcUtils});var H=jt((fu,Ba)=>{Ba.exports=ftGlobals.lit});var J=jt((hu,Ma)=>{Ma.exports=ftGlobals.litDecorators});var wr=jt((Vy,yi)=>{yi.exports=ftGlobals.litClassMap});var gs=jt((yt,ms)=>{var fo=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,ho=function(){function e(){this.fetch=!1,this.DOMException=fo.DOMException}return e.prototype=fo,new e}();(function(e){var t=function(o){var n=typeof e<"u"&&e||typeof self<"u"&&self||typeof global<"u"&&global||{},a={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};function i(y){return y&&DataView.prototype.isPrototypeOf(y)}if(a.arrayBuffer)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(y){return y&&l.indexOf(Object.prototype.toString.call(y))>-1};function u(y){if(typeof y!="string"&&(y=String(y)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(y)||y==="")throw new TypeError('Invalid character in header field name: "'+y+'"');return y.toLowerCase()}function p(y){return typeof y!="string"&&(y=String(y)),y}function m(y){var b={next:function(){var _=y.shift();return{done:_===void 0,value:_}}};return a.iterable&&(b[Symbol.iterator]=function(){return b}),b}function h(y){this.map={},y instanceof h?y.forEach(function(b,_){this.append(_,b)},this):Array.isArray(y)?y.forEach(function(b){if(b.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+b.length);this.append(b[0],b[1])},this):y&&Object.getOwnPropertyNames(y).forEach(function(b){this.append(b,y[b])},this)}h.prototype.append=function(y,b){y=u(y),b=p(b);var _=this.map[y];this.map[y]=_?_+", "+b:b},h.prototype.delete=function(y){delete this.map[u(y)]},h.prototype.get=function(y){return y=u(y),this.has(y)?this.map[y]:null},h.prototype.has=function(y){return this.map.hasOwnProperty(u(y))},h.prototype.set=function(y,b){this.map[u(y)]=p(b)},h.prototype.forEach=function(y,b){for(var _ in this.map)this.map.hasOwnProperty(_)&&y.call(b,this.map[_],_,this)},h.prototype.keys=function(){var y=[];return this.forEach(function(b,_){y.push(_)}),m(y)},h.prototype.values=function(){var y=[];return this.forEach(function(b){y.push(b)}),m(y)},h.prototype.entries=function(){var y=[];return this.forEach(function(b,_){y.push([_,b])}),m(y)},a.iterable&&(h.prototype[Symbol.iterator]=h.prototype.entries);function g(y){if(!y._noBody){if(y.bodyUsed)return Promise.reject(new TypeError("Already read"));y.bodyUsed=!0}}function S(y){return new Promise(function(b,_){y.onload=function(){b(y.result)},y.onerror=function(){_(y.error)}})}function x(y){var b=new FileReader,_=S(b);return b.readAsArrayBuffer(y),_}function O(y){var b=new FileReader,_=S(b),W=/charset=([A-Za-z0-9_-]+)/.exec(y.type),Y=W?W[1]:"utf-8";return b.readAsText(y,Y),_}function T(y){for(var b=new Uint8Array(y),_=new Array(b.length),W=0;W<b.length;W++)_[W]=String.fromCharCode(b[W]);return _.join("")}function R(y){if(y.slice)return y.slice(0);var b=new Uint8Array(y.byteLength);return b.set(new Uint8Array(y)),b.buffer}function L(){return this.bodyUsed=!1,this._initBody=function(y){this.bodyUsed=this.bodyUsed,this._bodyInit=y,y?typeof y=="string"?this._bodyText=y:a.blob&&Blob.prototype.isPrototypeOf(y)?this._bodyBlob=y:a.formData&&FormData.prototype.isPrototypeOf(y)?this._bodyFormData=y:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)?this._bodyText=y.toString():a.arrayBuffer&&a.blob&&i(y)?(this._bodyArrayBuffer=R(y.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(y)||c(y))?this._bodyArrayBuffer=R(y):this._bodyText=y=Object.prototype.toString.call(y):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof y=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var y=g(this);if(y)return y;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var y=g(this);return y||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(a.blob)return this.blob().then(x);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var y=g(this);if(y)return y;if(this._bodyBlob)return O(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(be)}),this.json=function(){return this.text().then(JSON.parse)},this}var k=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function M(y){var b=y.toUpperCase();return k.indexOf(b)>-1?b:y}function U(y,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 _=b.body;if(y instanceof U){if(y.bodyUsed)throw new TypeError("Already read");this.url=y.url,this.credentials=y.credentials,b.headers||(this.headers=new h(y.headers)),this.method=y.method,this.mode=y.mode,this.signal=y.signal,!_&&y._bodyInit!=null&&(_=y._bodyInit,y.bodyUsed=!0)}else this.url=String(y);if(this.credentials=b.credentials||this.credentials||"same-origin",(b.headers||!this.headers)&&(this.headers=new h(b.headers)),this.method=M(b.method||this.method||"GET"),this.mode=b.mode||this.mode||null,this.signal=b.signal||this.signal||function(){if("AbortController"in n){var $=new AbortController;return $.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&_)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(_),(this.method==="GET"||this.method==="HEAD")&&(b.cache==="no-store"||b.cache==="no-cache")){var W=/([?&])_=[^&]*/;if(W.test(this.url))this.url=this.url.replace(W,"$1_="+new Date().getTime());else{var Y=/\?/;this.url+=(Y.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}U.prototype.clone=function(){return new U(this,{body:this._bodyInit})};function be(y){var b=new FormData;return y.trim().split("&").forEach(function(_){if(_){var W=_.split("="),Y=W.shift().replace(/\+/g," "),$=W.join("=").replace(/\+/g," ");b.append(decodeURIComponent(Y),decodeURIComponent($))}}),b}function He(y){var b=new h,_=y.replace(/\r?\n[\t ]+/g," ");return _.split("\r").map(function(W){return W.indexOf(`
2
- `)===0?W.substr(1,W.length):W}).forEach(function(W){var Y=W.split(":"),$=Y.shift().trim();if($){var Yr=Y.join(":").trim();try{b.append($,Yr)}catch(Zo){console.warn("Response "+Zo.message)}}}),b}L.call(U.prototype);function ye(y,b){if(!(this instanceof ye))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(b||(b={}),this.type="default",this.status=b.status===void 0?200:b.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=b.statusText===void 0?"":""+b.statusText,this.headers=new h(b.headers),this.url=b.url||"",this._initBody(y)}L.call(ye.prototype),ye.prototype.clone=function(){return new ye(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},ye.error=function(){var y=new ye(null,{status:200,statusText:""});return y.ok=!1,y.status=0,y.type="error",y};var ze=[301,302,303,307,308];ye.redirect=function(y,b){if(ze.indexOf(b)===-1)throw new RangeError("Invalid status code");return new ye(null,{status:b,headers:{location:y}})},o.DOMException=n.DOMException;try{new o.DOMException}catch{o.DOMException=function(b,_){this.message=b,this.name=_;var W=Error(b);this.stack=W.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function ce(y,b){return new Promise(function(_,W){var Y=new U(y,b);if(Y.signal&&Y.signal.aborted)return W(new o.DOMException("Aborted","AbortError"));var $=new XMLHttpRequest;function Yr(){$.abort()}$.onload=function(){var de={statusText:$.statusText,headers:He($.getAllResponseHeaders()||"")};Y.url.indexOf("file://")===0&&($.status<200||$.status>599)?de.status=200:de.status=$.status,de.url="responseURL"in $?$.responseURL:de.headers.get("X-Request-URL");var At="response"in $?$.response:$.responseText;setTimeout(function(){_(new ye(At,de))},0)},$.onerror=function(){setTimeout(function(){W(new TypeError("Network request failed"))},0)},$.ontimeout=function(){setTimeout(function(){W(new TypeError("Network request timed out"))},0)},$.onabort=function(){setTimeout(function(){W(new o.DOMException("Aborted","AbortError"))},0)};function Zo(de){try{return de===""&&n.location.href?n.location.href:de}catch{return de}}if($.open(Y.method,Zo(Y.url),!0),Y.credentials==="include"?$.withCredentials=!0:Y.credentials==="omit"&&($.withCredentials=!1),"responseType"in $&&(a.blob?$.responseType="blob":a.arrayBuffer&&($.responseType="arraybuffer")),b&&typeof b.headers=="object"&&!(b.headers instanceof h||n.Headers&&b.headers instanceof n.Headers)){var _a=[];Object.getOwnPropertyNames(b.headers).forEach(function(de){_a.push(u(de)),$.setRequestHeader(de,p(b.headers[de]))}),Y.headers.forEach(function(de,At){_a.indexOf(At)===-1&&$.setRequestHeader(At,de)})}else Y.headers.forEach(function(de,At){$.setRequestHeader(At,de)});Y.signal&&(Y.signal.addEventListener("abort",Yr),$.onreadystatechange=function(){$.readyState===4&&Y.signal.removeEventListener("abort",Yr)}),$.send(typeof Y._bodyInit>"u"?null:Y._bodyInit)})}return ce.polyfill=!0,n.fetch||(n.fetch=ce,n.Headers=h,n.Request=U,n.Response=ye),o.Headers=h,o.Request=U,o.Response=ye,o.fetch=ce,o}({})})(ho);ho.fetch.ponyfill=!0;delete ho.fetch.polyfill;var hr=fo.fetch?fo:ho;yt=hr.fetch;yt.default=hr.fetch;yt.fetch=hr.fetch;yt.Headers=hr.Headers;yt.Request=hr.Request;yt.Response=hr.Response;ms.exports=yt});var cc=jt((N0,lc)=>{lc.exports=ftGlobals.litUnsafeHTML});var kc=v(P());var _c=v(H()),lt=v(J()),Vo=v(P());var Ua=v(H()),yu={},$a=Ua.css`
1
+ "use strict";(()=>{var Dc=Object.create;var ka=Object.defineProperty;var Bc=Object.getOwnPropertyDescriptor;var Mc=Object.getOwnPropertyNames;var Uc=Object.getPrototypeOf,$c=Object.prototype.hasOwnProperty;var jt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Fc=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Mc(t))!$c.call(e,a)&&a!==o&&ka(e,a,{get:()=>t[a],enumerable:!(n=Bc(t,a))||n.enumerable});return e};var v=(e,t,o)=>(o=e!=null?Dc(Uc(e)):{},Fc(t||!e||!e.__esModule?ka(o,"default",{value:e,enumerable:!0}):o,e));var P=jt((pu,Da)=>{Da.exports=ftGlobals.wcUtils});var H=jt((fu,Ba)=>{Ba.exports=ftGlobals.lit});var J=jt((hu,Ma)=>{Ma.exports=ftGlobals.litDecorators});var wr=jt((Vy,yi)=>{yi.exports=ftGlobals.litClassMap});var gs=jt((yt,ms)=>{var fo=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,ho=function(){function e(){this.fetch=!1,this.DOMException=fo.DOMException}return e.prototype=fo,new e}();(function(e){var t=function(o){var n=typeof e<"u"&&e||typeof self<"u"&&self||typeof global<"u"&&global||{},a={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};function i(y){return y&&DataView.prototype.isPrototypeOf(y)}if(a.arrayBuffer)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(y){return y&&l.indexOf(Object.prototype.toString.call(y))>-1};function u(y){if(typeof y!="string"&&(y=String(y)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(y)||y==="")throw new TypeError('Invalid character in header field name: "'+y+'"');return y.toLowerCase()}function p(y){return typeof y!="string"&&(y=String(y)),y}function m(y){var b={next:function(){var _=y.shift();return{done:_===void 0,value:_}}};return a.iterable&&(b[Symbol.iterator]=function(){return b}),b}function h(y){this.map={},y instanceof h?y.forEach(function(b,_){this.append(_,b)},this):Array.isArray(y)?y.forEach(function(b){if(b.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+b.length);this.append(b[0],b[1])},this):y&&Object.getOwnPropertyNames(y).forEach(function(b){this.append(b,y[b])},this)}h.prototype.append=function(y,b){y=u(y),b=p(b);var _=this.map[y];this.map[y]=_?_+", "+b:b},h.prototype.delete=function(y){delete this.map[u(y)]},h.prototype.get=function(y){return y=u(y),this.has(y)?this.map[y]:null},h.prototype.has=function(y){return this.map.hasOwnProperty(u(y))},h.prototype.set=function(y,b){this.map[u(y)]=p(b)},h.prototype.forEach=function(y,b){for(var _ in this.map)this.map.hasOwnProperty(_)&&y.call(b,this.map[_],_,this)},h.prototype.keys=function(){var y=[];return this.forEach(function(b,_){y.push(_)}),m(y)},h.prototype.values=function(){var y=[];return this.forEach(function(b){y.push(b)}),m(y)},h.prototype.entries=function(){var y=[];return this.forEach(function(b,_){y.push([_,b])}),m(y)},a.iterable&&(h.prototype[Symbol.iterator]=h.prototype.entries);function g(y){if(!y._noBody){if(y.bodyUsed)return Promise.reject(new TypeError("Already read"));y.bodyUsed=!0}}function S(y){return new Promise(function(b,_){y.onload=function(){b(y.result)},y.onerror=function(){_(y.error)}})}function x(y){var b=new FileReader,_=S(b);return b.readAsArrayBuffer(y),_}function O(y){var b=new FileReader,_=S(b),W=/charset=([A-Za-z0-9_-]+)/.exec(y.type),Y=W?W[1]:"utf-8";return b.readAsText(y,Y),_}function T(y){for(var b=new Uint8Array(y),_=new Array(b.length),W=0;W<b.length;W++)_[W]=String.fromCharCode(b[W]);return _.join("")}function R(y){if(y.slice)return y.slice(0);var b=new Uint8Array(y.byteLength);return b.set(new Uint8Array(y)),b.buffer}function L(){return this.bodyUsed=!1,this._initBody=function(y){this.bodyUsed=this.bodyUsed,this._bodyInit=y,y?typeof y=="string"?this._bodyText=y:a.blob&&Blob.prototype.isPrototypeOf(y)?this._bodyBlob=y:a.formData&&FormData.prototype.isPrototypeOf(y)?this._bodyFormData=y:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)?this._bodyText=y.toString():a.arrayBuffer&&a.blob&&i(y)?(this._bodyArrayBuffer=R(y.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(y)||c(y))?this._bodyArrayBuffer=R(y):this._bodyText=y=Object.prototype.toString.call(y):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof y=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var y=g(this);if(y)return y;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var y=g(this);return y||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(a.blob)return this.blob().then(x);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var y=g(this);if(y)return y;if(this._bodyBlob)return O(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(be)}),this.json=function(){return this.text().then(JSON.parse)},this}var k=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function M(y){var b=y.toUpperCase();return k.indexOf(b)>-1?b:y}function U(y,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 _=b.body;if(y instanceof U){if(y.bodyUsed)throw new TypeError("Already read");this.url=y.url,this.credentials=y.credentials,b.headers||(this.headers=new h(y.headers)),this.method=y.method,this.mode=y.mode,this.signal=y.signal,!_&&y._bodyInit!=null&&(_=y._bodyInit,y.bodyUsed=!0)}else this.url=String(y);if(this.credentials=b.credentials||this.credentials||"same-origin",(b.headers||!this.headers)&&(this.headers=new h(b.headers)),this.method=M(b.method||this.method||"GET"),this.mode=b.mode||this.mode||null,this.signal=b.signal||this.signal||function(){if("AbortController"in n){var $=new AbortController;return $.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&_)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(_),(this.method==="GET"||this.method==="HEAD")&&(b.cache==="no-store"||b.cache==="no-cache")){var W=/([?&])_=[^&]*/;if(W.test(this.url))this.url=this.url.replace(W,"$1_="+new Date().getTime());else{var Y=/\?/;this.url+=(Y.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}U.prototype.clone=function(){return new U(this,{body:this._bodyInit})};function be(y){var b=new FormData;return y.trim().split("&").forEach(function(_){if(_){var W=_.split("="),Y=W.shift().replace(/\+/g," "),$=W.join("=").replace(/\+/g," ");b.append(decodeURIComponent(Y),decodeURIComponent($))}}),b}function We(y){var b=new h,_=y.replace(/\r?\n[\t ]+/g," ");return _.split("\r").map(function(W){return W.indexOf(`
2
+ `)===0?W.substr(1,W.length):W}).forEach(function(W){var Y=W.split(":"),$=Y.shift().trim();if($){var Yr=Y.join(":").trim();try{b.append($,Yr)}catch(Zo){console.warn("Response "+Zo.message)}}}),b}L.call(U.prototype);function ye(y,b){if(!(this instanceof ye))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(b||(b={}),this.type="default",this.status=b.status===void 0?200:b.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=b.statusText===void 0?"":""+b.statusText,this.headers=new h(b.headers),this.url=b.url||"",this._initBody(y)}L.call(ye.prototype),ye.prototype.clone=function(){return new ye(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},ye.error=function(){var y=new ye(null,{status:200,statusText:""});return y.ok=!1,y.status=0,y.type="error",y};var Ge=[301,302,303,307,308];ye.redirect=function(y,b){if(Ge.indexOf(b)===-1)throw new RangeError("Invalid status code");return new ye(null,{status:b,headers:{location:y}})},o.DOMException=n.DOMException;try{new o.DOMException}catch{o.DOMException=function(b,_){this.message=b,this.name=_;var W=Error(b);this.stack=W.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function ce(y,b){return new Promise(function(_,W){var Y=new U(y,b);if(Y.signal&&Y.signal.aborted)return W(new o.DOMException("Aborted","AbortError"));var $=new XMLHttpRequest;function Yr(){$.abort()}$.onload=function(){var de={statusText:$.statusText,headers:We($.getAllResponseHeaders()||"")};Y.url.indexOf("file://")===0&&($.status<200||$.status>599)?de.status=200:de.status=$.status,de.url="responseURL"in $?$.responseURL:de.headers.get("X-Request-URL");var At="response"in $?$.response:$.responseText;setTimeout(function(){_(new ye(At,de))},0)},$.onerror=function(){setTimeout(function(){W(new TypeError("Network request failed"))},0)},$.ontimeout=function(){setTimeout(function(){W(new TypeError("Network request timed out"))},0)},$.onabort=function(){setTimeout(function(){W(new o.DOMException("Aborted","AbortError"))},0)};function Zo(de){try{return de===""&&n.location.href?n.location.href:de}catch{return de}}if($.open(Y.method,Zo(Y.url),!0),Y.credentials==="include"?$.withCredentials=!0:Y.credentials==="omit"&&($.withCredentials=!1),"responseType"in $&&(a.blob?$.responseType="blob":a.arrayBuffer&&($.responseType="arraybuffer")),b&&typeof b.headers=="object"&&!(b.headers instanceof h||n.Headers&&b.headers instanceof n.Headers)){var _a=[];Object.getOwnPropertyNames(b.headers).forEach(function(de){_a.push(u(de)),$.setRequestHeader(de,p(b.headers[de]))}),Y.headers.forEach(function(de,At){_a.indexOf(At)===-1&&$.setRequestHeader(At,de)})}else Y.headers.forEach(function(de,At){$.setRequestHeader(At,de)});Y.signal&&(Y.signal.addEventListener("abort",Yr),$.onreadystatechange=function(){$.readyState===4&&Y.signal.removeEventListener("abort",Yr)}),$.send(typeof Y._bodyInit>"u"?null:Y._bodyInit)})}return ce.polyfill=!0,n.fetch||(n.fetch=ce,n.Headers=h,n.Request=U,n.Response=ye),o.Headers=h,o.Request=U,o.Response=ye,o.fetch=ce,o}({})})(ho);ho.fetch.ponyfill=!0;delete ho.fetch.polyfill;var hr=fo.fetch?fo:ho;yt=hr.fetch;yt.default=hr.fetch;yt.fetch=hr.fetch;yt.Headers=hr.Headers;yt.Request=hr.Request;yt.Response=hr.Response;ms.exports=yt});var cc=jt((N0,lc)=>{lc.exports=ftGlobals.litUnsafeHTML});var kc=v(P());var _c=v(H()),lt=v(J()),Vo=v(P());var Ua=v(H()),yu={},$a=Ua.css`
3
3
 
4
4
  [part="container"] {
5
5
  display: flex;
@@ -131,7 +131,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
131
131
  text-decoration: ${o.textDecoration};
132
132
  text-transform: ${o.textCase};
133
133
  }
134
- `}var qa=w.FtCssVariableFactory.extend("--ft-typography-font-family","",w.designSystemVariables.titleFont),et=w.FtCssVariableFactory.extend("--ft-typography-font-family","",w.designSystemVariables.contentFont),I={fontFamily:et,fontSize:w.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:w.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:w.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:w.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:w.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Zt={fontFamily:w.FtCssVariableFactory.extend("--ft-typography-title-font-family","",qa),fontSize:w.FtCssVariableFactory.extend("--ft-typography-title-font-size","",I.fontSize,"20px"),fontWeight:w.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",I.fontWeight,"normal"),letterSpacing:w.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",I.letterSpacing,"0.15px"),lineHeight:w.FtCssVariableFactory.extend("--ft-typography-title-line-height","",I.lineHeight,"1.2"),textTransform:w.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",I.textTransform,"inherit")},qt={fontFamily:w.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",qa),fontSize:w.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",I.fontSize,"14px"),fontWeight:w.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",I.fontWeight,"normal"),letterSpacing:w.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",I.letterSpacing,"0.105px"),lineHeight:w.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",I.lineHeight,"1.7"),textTransform:w.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",I.textTransform,"inherit")},Yt={fontFamily:w.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",et),fontSize:w.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",I.fontSize,"16px"),fontWeight:w.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",I.fontWeight,"600"),letterSpacing:w.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",I.letterSpacing,"0.144px"),lineHeight:w.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",I.lineHeight,"1.5"),textTransform:w.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",I.textTransform,"inherit")},Xt={fontFamily:w.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",et),fontSize:w.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",I.fontSize,"14px"),fontWeight:w.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",I.fontWeight,"normal"),letterSpacing:w.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",I.letterSpacing,"0.098px"),lineHeight:w.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",I.lineHeight,"1.7"),textTransform:w.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",I.textTransform,"inherit")},Qe={fontFamily:w.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",et),fontSize:w.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",I.fontSize,"16px"),fontWeight:w.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",I.fontWeight,"normal"),letterSpacing:w.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",I.letterSpacing,"0.496px"),lineHeight:w.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",I.lineHeight,"1.5"),textTransform:w.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",I.textTransform,"inherit")},Jt={fontFamily:w.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",et),fontSize:w.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",I.fontSize,"14px"),fontWeight:w.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",I.fontWeight,"normal"),letterSpacing:w.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",I.letterSpacing,"0.252px"),lineHeight:w.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",I.lineHeight,"1.4"),textTransform:w.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",I.textTransform,"inherit")},ie={fontFamily:w.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",et),fontSize:w.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",I.fontSize,"12px"),fontWeight:w.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",I.fontWeight,"normal"),letterSpacing:w.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",I.letterSpacing,"0.396px"),lineHeight:w.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",I.lineHeight,"1.33"),textTransform:w.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",I.textTransform,"inherit")},Qt={fontFamily:w.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",et),fontSize:w.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",I.fontSize,"10px"),fontWeight:w.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",I.fontWeight,"normal"),letterSpacing:w.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",I.letterSpacing,"0.33px"),lineHeight:w.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",I.lineHeight,"1.6"),textTransform:w.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",I.textTransform,"inherit")},er={fontFamily:w.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",et),fontSize:w.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",I.fontSize,"10px"),fontWeight:w.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",I.fontWeight,"normal"),letterSpacing:w.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",I.letterSpacing,"1.5px"),lineHeight:w.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",I.lineHeight,"1.6"),textTransform:w.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",I.textTransform,"uppercase")},We={fontFamily:w.FtCssVariableFactory.extend("--ft-typography-button-font-family","",et),fontSize:w.FtCssVariableFactory.extend("--ft-typography-button-font-size","",I.fontSize,"14px"),fontWeight:w.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",I.fontWeight,"600"),letterSpacing:w.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",I.letterSpacing,"1.246px"),lineHeight:w.FtCssVariableFactory.extend("--ft-typography-button-line-height","",I.lineHeight,"1.15"),textTransform:w.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",I.textTransform,"uppercase")},Ya=Re.css`
134
+ `}var qa=w.FtCssVariableFactory.extend("--ft-typography-font-family","",w.designSystemVariables.titleFont),et=w.FtCssVariableFactory.extend("--ft-typography-font-family","",w.designSystemVariables.contentFont),I={fontFamily:et,fontSize:w.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:w.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:w.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:w.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:w.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Zt={fontFamily:w.FtCssVariableFactory.extend("--ft-typography-title-font-family","",qa),fontSize:w.FtCssVariableFactory.extend("--ft-typography-title-font-size","",I.fontSize,"20px"),fontWeight:w.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",I.fontWeight,"normal"),letterSpacing:w.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",I.letterSpacing,"0.15px"),lineHeight:w.FtCssVariableFactory.extend("--ft-typography-title-line-height","",I.lineHeight,"1.2"),textTransform:w.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",I.textTransform,"inherit")},qt={fontFamily:w.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",qa),fontSize:w.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",I.fontSize,"14px"),fontWeight:w.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",I.fontWeight,"normal"),letterSpacing:w.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",I.letterSpacing,"0.105px"),lineHeight:w.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",I.lineHeight,"1.7"),textTransform:w.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",I.textTransform,"inherit")},Yt={fontFamily:w.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",et),fontSize:w.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",I.fontSize,"16px"),fontWeight:w.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",I.fontWeight,"600"),letterSpacing:w.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",I.letterSpacing,"0.144px"),lineHeight:w.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",I.lineHeight,"1.5"),textTransform:w.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",I.textTransform,"inherit")},Xt={fontFamily:w.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",et),fontSize:w.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",I.fontSize,"14px"),fontWeight:w.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",I.fontWeight,"normal"),letterSpacing:w.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",I.letterSpacing,"0.098px"),lineHeight:w.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",I.lineHeight,"1.7"),textTransform:w.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",I.textTransform,"inherit")},Qe={fontFamily:w.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",et),fontSize:w.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",I.fontSize,"16px"),fontWeight:w.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",I.fontWeight,"normal"),letterSpacing:w.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",I.letterSpacing,"0.496px"),lineHeight:w.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",I.lineHeight,"1.5"),textTransform:w.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",I.textTransform,"inherit")},Jt={fontFamily:w.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",et),fontSize:w.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",I.fontSize,"14px"),fontWeight:w.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",I.fontWeight,"normal"),letterSpacing:w.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",I.letterSpacing,"0.252px"),lineHeight:w.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",I.lineHeight,"1.4"),textTransform:w.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",I.textTransform,"inherit")},se={fontFamily:w.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",et),fontSize:w.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",I.fontSize,"12px"),fontWeight:w.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",I.fontWeight,"normal"),letterSpacing:w.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",I.letterSpacing,"0.396px"),lineHeight:w.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",I.lineHeight,"1.33"),textTransform:w.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",I.textTransform,"inherit")},Qt={fontFamily:w.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",et),fontSize:w.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",I.fontSize,"10px"),fontWeight:w.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",I.fontWeight,"normal"),letterSpacing:w.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",I.letterSpacing,"0.33px"),lineHeight:w.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",I.lineHeight,"1.6"),textTransform:w.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",I.textTransform,"inherit")},er={fontFamily:w.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",et),fontSize:w.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",I.fontSize,"10px"),fontWeight:w.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",I.fontWeight,"normal"),letterSpacing:w.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",I.letterSpacing,"1.5px"),lineHeight:w.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",I.lineHeight,"1.6"),textTransform:w.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",I.textTransform,"uppercase")},je={fontFamily:w.FtCssVariableFactory.extend("--ft-typography-button-font-family","",et),fontSize:w.FtCssVariableFactory.extend("--ft-typography-button-font-size","",I.fontSize,"14px"),fontWeight:w.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",I.fontWeight,"600"),letterSpacing:w.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",I.letterSpacing,"1.246px"),lineHeight:w.FtCssVariableFactory.extend("--ft-typography-button-line-height","",I.lineHeight,"1.15"),textTransform:w.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",I.textTransform,"uppercase")},Ya=Re.css`
135
135
  .ft-typography--title {
136
136
  font-family: ${Zt.fontFamily};
137
137
  font-size: ${Zt.fontSize};
@@ -188,12 +188,12 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
188
188
  }
189
189
  `,tr=Re.css`
190
190
  .ft-typography--caption {
191
- font-family: ${ie.fontFamily};
192
- font-size: ${ie.fontSize};
193
- font-weight: ${ie.fontWeight};
194
- letter-spacing: ${ie.letterSpacing};
195
- line-height: ${ie.lineHeight};
196
- text-transform: ${ie.textTransform};
191
+ font-family: ${se.fontFamily};
192
+ font-size: ${se.fontSize};
193
+ font-weight: ${se.fontWeight};
194
+ letter-spacing: ${se.letterSpacing};
195
+ line-height: ${se.lineHeight};
196
+ text-transform: ${se.textTransform};
197
197
  }
198
198
  `,ri=Re.css`
199
199
  .ft-typography--breadcrumb {
@@ -215,12 +215,12 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
215
215
  }
216
216
  `,ni=Re.css`
217
217
  .ft-typography--button {
218
- font-family: ${We.fontFamily};
219
- font-size: ${We.fontSize};
220
- font-weight: ${We.fontWeight};
221
- letter-spacing: ${We.letterSpacing};
222
- line-height: ${We.lineHeight};
223
- text-transform: ${We.textTransform};
218
+ font-family: ${je.fontFamily};
219
+ font-size: ${je.fontSize};
220
+ font-weight: ${je.fontWeight};
221
+ letter-spacing: ${je.letterSpacing};
222
+ line-height: ${je.lineHeight};
223
+ text-transform: ${je.textTransform};
224
224
  }
225
225
  `,ai=Re.css`
226
226
  .ft-typography {
@@ -343,7 +343,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
343
343
  .ft-icon--material {
344
344
  font-family: ${me.materialFontFamily}, "Material Icons", sans-serif;
345
345
  }
346
- `,ke.noTextSelect];var ui=D.FtCssVariableFactory.extend("--ft-button-color","",D.designSystemVariables.colorPrimary),se={backgroundColor:D.FtCssVariableFactory.extend("--ft-button-background-color","",D.designSystemVariables.colorSurface),borderRadius:D.FtCssVariableFactory.extend("--ft-button-border-radius","",D.designSystemVariables.borderRadiusL),color:ui,fontSize:D.FtCssVariableFactory.extend("--ft-button-font-size","",We.fontSize),iconSize:D.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:D.FtCssVariableFactory.extend("--ft-button-ripple-color","",ui),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")},pi=D.FtCssVariableFactory.extend("--ft-button-primary-color","",D.FtCssVariableFactory.extend("--ft-button-color","",D.designSystemVariables.colorOnPrimary)),xn={backgroundColor:D.FtCssVariableFactory.extend("--ft-button-primary-background-color","",D.FtCssVariableFactory.extend("--ft-button-background-color","",D.designSystemVariables.colorPrimary)),color:pi,rippleColor:D.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",pi)},Ge={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")},hi=[fi.css`
346
+ `,ke.noTextSelect];var ui=D.FtCssVariableFactory.extend("--ft-button-color","",D.designSystemVariables.colorPrimary),le={backgroundColor:D.FtCssVariableFactory.extend("--ft-button-background-color","",D.designSystemVariables.colorSurface),borderRadius:D.FtCssVariableFactory.extend("--ft-button-border-radius","",D.designSystemVariables.borderRadiusL),color:ui,fontSize:D.FtCssVariableFactory.extend("--ft-button-font-size","",je.fontSize),iconSize:D.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:D.FtCssVariableFactory.extend("--ft-button-ripple-color","",ui),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")},pi=D.FtCssVariableFactory.extend("--ft-button-primary-color","",D.FtCssVariableFactory.extend("--ft-button-color","",D.designSystemVariables.colorOnPrimary)),xn={backgroundColor:D.FtCssVariableFactory.extend("--ft-button-primary-background-color","",D.FtCssVariableFactory.extend("--ft-button-background-color","",D.designSystemVariables.colorPrimary)),color:pi,rippleColor:D.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",pi)},Ke={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")},hi=[fi.css`
347
347
  :host {
348
348
  display: inline-block;
349
349
  max-width: 100%;
@@ -354,7 +354,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
354
354
  box-shadow: 0px 0px 0px transparent;
355
355
  border: 0px solid transparent;
356
356
  text-shadow: 0px 0px 0px transparent;
357
- font-size: ${se.fontSize};
357
+ font-size: ${le.fontSize};
358
358
  text-decoration: none;
359
359
  }
360
360
 
@@ -384,31 +384,31 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
384
384
  border: none;
385
385
  pointer-events: auto;
386
386
 
387
- --button-internal-line-height: max(calc(${se.fontSize} + 2px), ${se.iconSize});
388
- --button-internal-color: ${se.color};
389
- ${(0,D.setVariable)(me.size,se.iconSize)};
390
- ${(0,D.setVariable)(E.color,se.rippleColor)};
387
+ --button-internal-line-height: max(calc(${le.fontSize} + 2px), ${le.iconSize});
388
+ --button-internal-color: ${le.color};
389
+ ${(0,D.setVariable)(me.size,le.iconSize)};
390
+ ${(0,D.setVariable)(E.color,le.rippleColor)};
391
391
 
392
- border-radius: ${se.borderRadius};
393
- padding: ${se.verticalPadding} ${se.horizontalPadding};
394
- background-color: ${se.backgroundColor};
392
+ border-radius: ${le.borderRadius};
393
+ padding: ${le.verticalPadding} ${le.horizontalPadding};
394
+ background-color: ${le.backgroundColor};
395
395
  color: var(--button-internal-color);
396
396
  -webkit-mask-image: radial-gradient(white, black);
397
397
  }
398
398
 
399
399
  .ft-button.ft-button--outlined {
400
400
  border: 1px solid var(--button-internal-color);
401
- padding: calc(${se.verticalPadding} - 1px) calc(${se.horizontalPadding} - 1px);
401
+ padding: calc(${le.verticalPadding} - 1px) calc(${le.horizontalPadding} - 1px);
402
402
  }
403
403
 
404
404
  .ft-button.ft-button--dense {
405
- padding: ${Ge.verticalPadding} ${Ge.horizontalPadding};
406
- border-radius: ${Ge.borderRadius};
407
- gap: ${Ge.iconPadding};
405
+ padding: ${Ke.verticalPadding} ${Ke.horizontalPadding};
406
+ border-radius: ${Ke.borderRadius};
407
+ gap: ${Ke.iconPadding};
408
408
  }
409
409
 
410
410
  .ft-button.ft-button--dense.ft-button--outlined {
411
- padding: calc(${Ge.verticalPadding} - 1px) calc(${Ge.horizontalPadding} - 1px);
411
+ padding: calc(${Ke.verticalPadding} - 1px) calc(${Ke.horizontalPadding} - 1px);
412
412
  }
413
413
 
414
414
  .ft-button:not([disabled]):hover {
@@ -416,16 +416,16 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
416
416
  }
417
417
 
418
418
  .ft-button--round {
419
- border-radius: calc(var(--button-internal-line-height) / 2 + ${se.verticalPadding});
419
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${le.verticalPadding});
420
420
  }
421
421
 
422
422
  .ft-button--round.ft-button--dense {
423
- border-radius: calc(var(--button-internal-line-height) / 2 + ${Ge.verticalPadding});
423
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${Ke.verticalPadding});
424
424
  }
425
425
 
426
426
  .ft-button[disabled] {
427
427
  filter: grayscale(1);
428
- opacity: ${se.opacityDisabled};
428
+ opacity: ${le.opacityDisabled};
429
429
  }
430
430
 
431
431
  .ft-button.ft-button--primary {
@@ -444,13 +444,13 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
444
444
  white-space: nowrap;
445
445
  text-overflow: ellipsis;
446
446
  display: block;
447
- margin: 0 ${se.iconPadding};
448
- ${(0,D.setVariable)(We.fontSize,"1em")};
449
- ${(0,D.setVariable)(We.lineHeight,"var(--button-internal-line-height)")};
447
+ margin: 0 ${le.iconPadding};
448
+ ${(0,D.setVariable)(je.fontSize,"1em")};
449
+ ${(0,D.setVariable)(je.lineHeight,"var(--button-internal-line-height)")};
450
450
  }
451
451
 
452
452
  .ft-button--dense .ft-button--label {
453
- margin: 0 ${Ge.iconPadding};
453
+ margin: 0 ${Ke.iconPadding};
454
454
  }
455
455
 
456
456
  .ft-button--label[hidden] {
@@ -463,13 +463,13 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
463
463
  }
464
464
 
465
465
  .ft-button--label[hidden] + [part="icon"] {
466
- margin: 0 calc(${se.horizontalPadding} * -1);
467
- padding: 0 ${se.verticalPadding};
466
+ margin: 0 calc(${le.horizontalPadding} * -1);
467
+ padding: 0 ${le.verticalPadding};
468
468
  }
469
469
 
470
470
  .ft-button--dense .ft-button--label[hidden] + [part="icon"] {
471
- margin: 0 calc(${Ge.horizontalPadding} * -1);
472
- padding: 0 ${Ge.verticalPadding};
471
+ margin: 0 calc(${Ke.horizontalPadding} * -1);
472
+ padding: 0 ${Ke.verticalPadding};
473
473
  }
474
474
 
475
475
  .ft-button:not(.ft-button--trailing-icon) [part="label"] {
@@ -477,7 +477,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
477
477
  }
478
478
 
479
479
  ft-loader {
480
- ${(0,D.setVariable)(V.size,se.iconSize)};
480
+ ${(0,D.setVariable)(V.size,le.iconSize)};
481
481
  ${(0,D.setVariable)(V.color,"var(--button-internal-color)")};
482
482
  }
483
483
  `,D.noTextSelect];var Et=v(P());var bi=v(P());var mi=v(H()),ue=v(J()),gi=v(wr()),Rr=v(P());var xe=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var c=e.length-1;c>=0;c--)(l=e[c])&&(i=(a<3?l(i):a>3?l(t,o,i):l(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},Z=class extends Rr.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 Rr.Debouncer(1e3),this.onTransitionStart=t=>{t.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=t=>{t.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new Rr.Debouncer(10),this.moveRipple=t=>{var o,n;let{x:a,y:i}=this.getCoordinates(t),l=(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-l.x:l.width/2),this.originY=Math.round(i!=null?i-l.y:l.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(t?.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return mi.html`
@@ -519,7 +519,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
519
519
  </${nr(this.element)}>
520
520
  `:ar`
521
521
  <slot part="text" class="ftds-typography ftds-typography--${this.variant}"></slot>
522
- `}};tt.styles=[...Bi];Mi([(0,In.property)()],tt.prototype,"element",void 0);Mi([(0,In.property)()],tt.prototype,"variant",void 0);(0,Pn.customElement)("ft-typography")(ge);(0,Pn.customElement)("ftds-typography")(tt);var $i=v(H()),rt=v(P()),sr={distance:rt.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:rt.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:rt.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:rt.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:rt.FtCssVariableFactory.external(rt.designSystemVariables.borderRadiusS,"Design system"),maxWidth:rt.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Fi=$i.css`
522
+ `}};tt.styles=[...Bi];Mi([(0,In.property)()],tt.prototype,"element",void 0);Mi([(0,In.property)()],tt.prototype,"variant",void 0);(0,Pn.customElement)("ft-typography")(ge);(0,Pn.customElement)("ftds-typography")(tt);var $i=v(H()),rt=v(P()),sr={distance:rt.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:rt.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:rt.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:rt.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:rt.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",rt.designSystemVariables.borderRadiusS),maxWidth:rt.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Fi=$i.css`
523
523
  .ft-tooltip--container {
524
524
  display: block;
525
525
  }
@@ -548,10 +548,10 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
548
548
  position: relative;
549
549
  word-break: break-word;
550
550
  }
551
- `;var zi=["top","right","bottom","left"],Hi=["start","end"],kn=zi.reduce((e,t)=>e.concat(t,t+"-"+Hi[0],t+"-"+Hi[1]),[]),Wi=Math.min,Gi=Math.max;var Zc={left:"right",right:"left",bottom:"top",top:"bottom"},qc={start:"end",end:"start"};function Dn(e,t,o){return Gi(e,Wi(t,o))}function to(e,t){return typeof e=="function"?e(t):e}function lr(e){return e.split("-")[0]}function ht(e){return e.split("-")[1]}function Bn(e){return e==="x"?"y":"x"}function Mn(e){return e==="y"?"height":"width"}function ro(e){return["top","bottom"].includes(lr(e))?"y":"x"}function Un(e){return Bn(ro(e))}function ji(e,t,o){o===void 0&&(o=!1);let n=ht(e),a=Un(e),i=Mn(a),l=a==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=_n(l)),[l,_n(l)]}function Ki(e){return e.replace(/start|end/g,t=>qc[t])}function _n(e){return e.replace(/left|right|bottom|top/g,t=>Zc[t])}function Yc(e){return{top:0,right:0,bottom:0,left:0,...e}}function Vi(e){return typeof e!="number"?Yc(e):{top:e,right:e,bottom:e,left:e}}function It(e){let{x:t,y:o,width:n,height:a}=e;return{width:n,height:a,top:o,left:t,right:t+n,bottom:o+a,x:t,y:o}}function Zi(e,t,o){let{reference:n,floating:a}=e,i=ro(t),l=Un(t),c=Mn(l),u=lr(t),p=i==="y",m=n.x+n.width/2-a.width/2,h=n.y+n.height/2-a.height/2,g=n[c]/2-a[c]/2,S;switch(u){case"top":S={x:m,y:n.y-a.height};break;case"bottom":S={x:m,y:n.y+n.height};break;case"right":S={x:n.x+n.width,y:h};break;case"left":S={x:n.x-a.width,y:h};break;default:S={x:n.x,y:n.y}}switch(ht(t)){case"start":S[l]-=g*(o&&p?-1:1);break;case"end":S[l]+=g*(o&&p?-1:1);break}return S}var qi=async(e,t,o)=>{let{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:l}=o,c=i.filter(Boolean),u=await(l.isRTL==null?void 0:l.isRTL(t)),p=await l.getElementRects({reference:e,floating:t,strategy:a}),{x:m,y:h}=Zi(p,n,u),g=n,S={},x=0;for(let O=0;O<c.length;O++){let{name:T,fn:R}=c[O],{x:L,y:k,data:M,reset:U}=await R({x:m,y:h,initialPlacement:n,placement:g,strategy:a,middlewareData:S,rects:p,platform:l,elements:{reference:e,floating:t}});m=L??m,h=k??h,S={...S,[T]:{...S[T],...M}},U&&x<=50&&(x++,typeof U=="object"&&(U.placement&&(g=U.placement),U.rects&&(p=U.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:a}):U.rects),{x:m,y:h}=Zi(p,g,u)),O=-1)}return{x:m,y:h,placement:g,strategy:a,middlewareData:S}};async function $n(e,t){var o;t===void 0&&(t={});let{x:n,y:a,platform:i,rects:l,elements:c,strategy:u}=e,{boundary:p="clippingAncestors",rootBoundary:m="viewport",elementContext:h="floating",altBoundary:g=!1,padding:S=0}=to(t,e),x=Vi(S),T=c[g?h==="floating"?"reference":"floating":h],R=It(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(T)))==null||o?T:T.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:p,rootBoundary:m,strategy:u})),L=h==="floating"?{x:n,y:a,width:l.floating.width,height:l.floating.height}:l.reference,k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),M=await(i.isElement==null?void 0:i.isElement(k))?await(i.getScale==null?void 0:i.getScale(k))||{x:1,y:1}:{x:1,y:1},U=It(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:L,offsetParent:k,strategy:u}):L);return{top:(R.top-U.top+x.top)/M.y,bottom:(U.bottom-R.bottom+x.bottom)/M.y,left:(R.left-U.left+x.left)/M.x,right:(U.right-R.right+x.right)/M.x}}function Xc(e,t,o){return(e?[...o.filter(a=>ht(a)===e),...o.filter(a=>ht(a)!==e)]:o.filter(a=>lr(a)===a)).filter(a=>e?ht(a)===e||(t?Ki(a)!==a:!1):!0)}var Fn=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var o,n,a;let{rects:i,middlewareData:l,placement:c,platform:u,elements:p}=t,{crossAxis:m=!1,alignment:h,allowedPlacements:g=kn,autoAlignment:S=!0,...x}=to(e,t),O=h!==void 0||g===kn?Xc(h||null,S,g):g,T=await $n(t,x),R=((o=l.autoPlacement)==null?void 0:o.index)||0,L=O[R];if(L==null)return{};let k=ji(L,i,await(u.isRTL==null?void 0:u.isRTL(p.floating)));if(c!==L)return{reset:{placement:O[0]}};let M=[T[lr(L)],T[k[0]],T[k[1]]],U=[...((n=l.autoPlacement)==null?void 0:n.overflows)||[],{placement:L,overflows:M}],be=O[R+1];if(be)return{data:{index:R+1,overflows:U},reset:{placement:be}};let He=U.map(ce=>{let y=ht(ce.placement);return[ce.placement,y&&m?ce.overflows.slice(0,2).reduce((b,_)=>b+_,0):ce.overflows[0],ce.overflows]}).sort((ce,y)=>ce[1]-y[1]),ze=((a=He.filter(ce=>ce[2].slice(0,ht(ce[0])?2:3).every(y=>y<=0))[0])==null?void 0:a[0])||He[0][0];return ze!==c?{data:{index:R+1,overflows:U},reset:{placement:ze}}:{}}}};var Hn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:n,placement:a}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:c={fn:T=>{let{x:R,y:L}=T;return{x:R,y:L}}},...u}=to(e,t),p={x:o,y:n},m=await $n(t,u),h=ro(lr(a)),g=Bn(h),S=p[g],x=p[h];if(i){let T=g==="y"?"top":"left",R=g==="y"?"bottom":"right",L=S+m[T],k=S-m[R];S=Dn(L,S,k)}if(l){let T=h==="y"?"top":"left",R=h==="y"?"bottom":"right",L=x+m[T],k=x-m[R];x=Dn(L,x,k)}let O=c.fn({...t,[g]:S,[h]:x});return{...O,data:{x:O.x-o,y:O.y-n,enabled:{[g]:i,[h]:l}}}}}};var zn=Math.min,cr=Math.max,Pr=Math.round;var ot=e=>({x:e,y:e});function nt(e){return Xi(e)?(e.nodeName||"").toLowerCase():"#document"}function ve(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function at(e){var t;return(t=(Xi(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Xi(e){return e instanceof Node||e instanceof ve(e).Node}function je(e){return e instanceof Element||e instanceof ve(e).Element}function De(e){return e instanceof HTMLElement||e instanceof ve(e).HTMLElement}function Yi(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ve(e).ShadowRoot}function dr(e){let{overflow:t,overflowX:o,overflowY:n,display:a}=Se(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&!["inline","contents"].includes(a)}function Ji(e){return["table","td","th"].includes(nt(e))}function no(e){let t=ao(),o=Se(e);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!t&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!t&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(o.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(o.contain||"").includes(n))}function Qi(e){let t=Pt(e);for(;De(t)&&!_r(t);){if(no(t))return t;t=Pt(t)}return null}function ao(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function _r(e){return["html","body","#document"].includes(nt(e))}function Se(e){return ve(e).getComputedStyle(e)}function kr(e){return je(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Pt(e){if(nt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Yi(e)&&e.host||at(e);return Yi(t)?t.host:t}function es(e){let t=Pt(e);return _r(t)?e.ownerDocument?e.ownerDocument.body:e.body:De(t)&&dr(t)?t:es(t)}function oo(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);let a=es(e),i=a===((n=e.ownerDocument)==null?void 0:n.body),l=ve(a);return i?t.concat(l,l.visualViewport||[],dr(a)?a:[],l.frameElement&&o?oo(l.frameElement):[]):t.concat(a,oo(a,[],o))}function os(e){let t=Se(e),o=parseFloat(t.width)||0,n=parseFloat(t.height)||0,a=De(e),i=a?e.offsetWidth:o,l=a?e.offsetHeight:n,c=Pr(o)!==i||Pr(n)!==l;return c&&(o=i,n=l),{width:o,height:n,$:c}}function ns(e){return je(e)?e:e.contextElement}function ur(e){let t=ns(e);if(!De(t))return ot(1);let o=t.getBoundingClientRect(),{width:n,height:a,$:i}=os(t),l=(i?Pr(o.width):o.width)/n,c=(i?Pr(o.height):o.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}var ed=ot(0);function as(e){let t=ve(e);return!ao()||!t.visualViewport?ed:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function td(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==ve(e)?!1:t}function Dr(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);let a=e.getBoundingClientRect(),i=ns(e),l=ot(1);t&&(n?je(n)&&(l=ur(n)):l=ur(e));let c=td(i,o,n)?as(i):ot(0),u=(a.left+c.x)/l.x,p=(a.top+c.y)/l.y,m=a.width/l.x,h=a.height/l.y;if(i){let g=ve(i),S=n&&je(n)?ve(n):n,x=g.frameElement;for(;x&&n&&S!==g;){let O=ur(x),T=x.getBoundingClientRect(),R=Se(x),L=T.left+(x.clientLeft+parseFloat(R.paddingLeft))*O.x,k=T.top+(x.clientTop+parseFloat(R.paddingTop))*O.y;u*=O.x,p*=O.y,m*=O.x,h*=O.y,u+=L,p+=k,x=ve(x).frameElement}}return It({width:m,height:h,x:u,y:p})}function rd(e){let{rect:t,offsetParent:o,strategy:n}=e,a=De(o),i=at(o);if(o===i)return t;let l={scrollLeft:0,scrollTop:0},c=ot(1),u=ot(0);if((a||!a&&n!=="fixed")&&((nt(o)!=="body"||dr(i))&&(l=kr(o)),De(o))){let p=Dr(o);c=ur(o),u.x=p.x+o.clientLeft,u.y=p.y+o.clientTop}return{width:t.width*c.x,height:t.height*c.y,x:t.x*c.x-l.scrollLeft*c.x+u.x,y:t.y*c.y-l.scrollTop*c.y+u.y}}function od(e){return Array.from(e.getClientRects())}function is(e){return Dr(at(e)).left+kr(e).scrollLeft}function nd(e){let t=at(e),o=kr(e),n=e.ownerDocument.body,a=cr(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=cr(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),l=-o.scrollLeft+is(e),c=-o.scrollTop;return Se(n).direction==="rtl"&&(l+=cr(t.clientWidth,n.clientWidth)-a),{width:a,height:i,x:l,y:c}}function ad(e,t){let o=ve(e),n=at(e),a=o.visualViewport,i=n.clientWidth,l=n.clientHeight,c=0,u=0;if(a){i=a.width,l=a.height;let p=ao();(!p||p&&t==="fixed")&&(c=a.offsetLeft,u=a.offsetTop)}return{width:i,height:l,x:c,y:u}}function id(e,t){let o=Dr(e,!0,t==="fixed"),n=o.top+e.clientTop,a=o.left+e.clientLeft,i=De(e)?ur(e):ot(1),l=e.clientWidth*i.x,c=e.clientHeight*i.y,u=a*i.x,p=n*i.y;return{width:l,height:c,x:u,y:p}}function ts(e,t,o){let n;if(t==="viewport")n=ad(e,o);else if(t==="document")n=nd(at(e));else if(je(t))n=id(t,o);else{let a=as(e);n={...t,x:t.x-a.x,y:t.y-a.y}}return It(n)}function ss(e,t){let o=Pt(e);return o===t||!je(o)||_r(o)?!1:Se(o).position==="fixed"||ss(o,t)}function sd(e,t){let o=t.get(e);if(o)return o;let n=oo(e,[],!1).filter(c=>je(c)&&nt(c)!=="body"),a=null,i=Se(e).position==="fixed",l=i?Pt(e):e;for(;je(l)&&!_r(l);){let c=Se(l),u=no(l);!u&&c.position==="fixed"&&(a=null),(i?!u&&!a:!u&&c.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||dr(l)&&!u&&ss(e,l))?n=n.filter(m=>m!==l):a=c,l=Pt(l)}return t.set(e,n),n}function ld(e){let{element:t,boundary:o,rootBoundary:n,strategy:a}=e,l=[...o==="clippingAncestors"?sd(t,this._c):[].concat(o),n],c=l[0],u=l.reduce((p,m)=>{let h=ts(t,m,a);return p.top=cr(h.top,p.top),p.right=zn(h.right,p.right),p.bottom=zn(h.bottom,p.bottom),p.left=cr(h.left,p.left),p},ts(t,c,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function cd(e){return os(e)}function dd(e,t,o){let n=De(t),a=at(t),i=o==="fixed",l=Dr(e,!0,i,t),c={scrollLeft:0,scrollTop:0},u=ot(0);if(n||!n&&!i)if((nt(t)!=="body"||dr(a))&&(c=kr(t)),n){let p=Dr(t,!0,i,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else a&&(u.x=is(a));return{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function rs(e,t){return!De(e)||Se(e).position==="fixed"?null:t?t(e):e.offsetParent}function ls(e,t){let o=ve(e);if(!De(e))return o;let n=rs(e,t);for(;n&&Ji(n)&&Se(n).position==="static";)n=rs(n,t);return n&&(nt(n)==="html"||nt(n)==="body"&&Se(n).position==="static"&&!no(n))?o:n||Qi(e)||o}var ud=async function(e){let{reference:t,floating:o,strategy:n}=e,a=this.getOffsetParent||ls,i=this.getDimensions;return{reference:dd(t,await a(o),n),floating:{x:0,y:0,...await i(o)}}};function pd(e){return Se(e).direction==="rtl"}var io={convertOffsetParentRelativeRectToViewportRelativeRect:rd,getDocumentElement:at,getClippingRect:ld,getOffsetParent:ls,getElementRects:ud,getClientRects:od,getDimensions:cd,getScale:ur,isElement:je,isRTL:pd};var cs=(e,t,o)=>{let n=new Map,a={platform:io,...o},i={...a.platform,_c:n};return qi(e,t,{...a,platform:i})};function ds(e){return fd(e)}function Wn(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function fd(e){for(let t=e;t;t=Wn(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=Wn(e);t;t=Wn(t)){if(!(t instanceof Element))continue;let o=getComputedStyle(t);if(o.display!=="contents"&&(o.position!=="static"||o.filter!=="none"||t.tagName==="BODY"))return t}return null}async function us(e,t,o){return cs(e,t,{platform:{...io,getOffsetParent:n=>io.getOffsetParent(n,ds)},middleware:[Hn({crossAxis:!0}),Fn({allowedPlacements:[o]})]})}var Or=v(P());var Xl=v(P());var tl=v(H()),pe=v(J()),Be=v(P());var ps=v(H());var fs=ps.css`
551
+ `;var zi=["top","right","bottom","left"],Hi=["start","end"],kn=zi.reduce((e,t)=>e.concat(t,t+"-"+Hi[0],t+"-"+Hi[1]),[]),Wi=Math.min,Gi=Math.max;var Zc={left:"right",right:"left",bottom:"top",top:"bottom"},qc={start:"end",end:"start"};function Dn(e,t,o){return Gi(e,Wi(t,o))}function to(e,t){return typeof e=="function"?e(t):e}function lr(e){return e.split("-")[0]}function ht(e){return e.split("-")[1]}function Bn(e){return e==="x"?"y":"x"}function Mn(e){return e==="y"?"height":"width"}function ro(e){return["top","bottom"].includes(lr(e))?"y":"x"}function Un(e){return Bn(ro(e))}function ji(e,t,o){o===void 0&&(o=!1);let n=ht(e),a=Un(e),i=Mn(a),l=a==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=_n(l)),[l,_n(l)]}function Ki(e){return e.replace(/start|end/g,t=>qc[t])}function _n(e){return e.replace(/left|right|bottom|top/g,t=>Zc[t])}function Yc(e){return{top:0,right:0,bottom:0,left:0,...e}}function Vi(e){return typeof e!="number"?Yc(e):{top:e,right:e,bottom:e,left:e}}function It(e){let{x:t,y:o,width:n,height:a}=e;return{width:n,height:a,top:o,left:t,right:t+n,bottom:o+a,x:t,y:o}}function Zi(e,t,o){let{reference:n,floating:a}=e,i=ro(t),l=Un(t),c=Mn(l),u=lr(t),p=i==="y",m=n.x+n.width/2-a.width/2,h=n.y+n.height/2-a.height/2,g=n[c]/2-a[c]/2,S;switch(u){case"top":S={x:m,y:n.y-a.height};break;case"bottom":S={x:m,y:n.y+n.height};break;case"right":S={x:n.x+n.width,y:h};break;case"left":S={x:n.x-a.width,y:h};break;default:S={x:n.x,y:n.y}}switch(ht(t)){case"start":S[l]-=g*(o&&p?-1:1);break;case"end":S[l]+=g*(o&&p?-1:1);break}return S}var qi=async(e,t,o)=>{let{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:l}=o,c=i.filter(Boolean),u=await(l.isRTL==null?void 0:l.isRTL(t)),p=await l.getElementRects({reference:e,floating:t,strategy:a}),{x:m,y:h}=Zi(p,n,u),g=n,S={},x=0;for(let O=0;O<c.length;O++){let{name:T,fn:R}=c[O],{x:L,y:k,data:M,reset:U}=await R({x:m,y:h,initialPlacement:n,placement:g,strategy:a,middlewareData:S,rects:p,platform:l,elements:{reference:e,floating:t}});m=L??m,h=k??h,S={...S,[T]:{...S[T],...M}},U&&x<=50&&(x++,typeof U=="object"&&(U.placement&&(g=U.placement),U.rects&&(p=U.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:a}):U.rects),{x:m,y:h}=Zi(p,g,u)),O=-1)}return{x:m,y:h,placement:g,strategy:a,middlewareData:S}};async function $n(e,t){var o;t===void 0&&(t={});let{x:n,y:a,platform:i,rects:l,elements:c,strategy:u}=e,{boundary:p="clippingAncestors",rootBoundary:m="viewport",elementContext:h="floating",altBoundary:g=!1,padding:S=0}=to(t,e),x=Vi(S),T=c[g?h==="floating"?"reference":"floating":h],R=It(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(T)))==null||o?T:T.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:p,rootBoundary:m,strategy:u})),L=h==="floating"?{x:n,y:a,width:l.floating.width,height:l.floating.height}:l.reference,k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),M=await(i.isElement==null?void 0:i.isElement(k))?await(i.getScale==null?void 0:i.getScale(k))||{x:1,y:1}:{x:1,y:1},U=It(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:L,offsetParent:k,strategy:u}):L);return{top:(R.top-U.top+x.top)/M.y,bottom:(U.bottom-R.bottom+x.bottom)/M.y,left:(R.left-U.left+x.left)/M.x,right:(U.right-R.right+x.right)/M.x}}function Xc(e,t,o){return(e?[...o.filter(a=>ht(a)===e),...o.filter(a=>ht(a)!==e)]:o.filter(a=>lr(a)===a)).filter(a=>e?ht(a)===e||(t?Ki(a)!==a:!1):!0)}var Fn=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var o,n,a;let{rects:i,middlewareData:l,placement:c,platform:u,elements:p}=t,{crossAxis:m=!1,alignment:h,allowedPlacements:g=kn,autoAlignment:S=!0,...x}=to(e,t),O=h!==void 0||g===kn?Xc(h||null,S,g):g,T=await $n(t,x),R=((o=l.autoPlacement)==null?void 0:o.index)||0,L=O[R];if(L==null)return{};let k=ji(L,i,await(u.isRTL==null?void 0:u.isRTL(p.floating)));if(c!==L)return{reset:{placement:O[0]}};let M=[T[lr(L)],T[k[0]],T[k[1]]],U=[...((n=l.autoPlacement)==null?void 0:n.overflows)||[],{placement:L,overflows:M}],be=O[R+1];if(be)return{data:{index:R+1,overflows:U},reset:{placement:be}};let We=U.map(ce=>{let y=ht(ce.placement);return[ce.placement,y&&m?ce.overflows.slice(0,2).reduce((b,_)=>b+_,0):ce.overflows[0],ce.overflows]}).sort((ce,y)=>ce[1]-y[1]),Ge=((a=We.filter(ce=>ce[2].slice(0,ht(ce[0])?2:3).every(y=>y<=0))[0])==null?void 0:a[0])||We[0][0];return Ge!==c?{data:{index:R+1,overflows:U},reset:{placement:Ge}}:{}}}};var Hn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:n,placement:a}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:c={fn:T=>{let{x:R,y:L}=T;return{x:R,y:L}}},...u}=to(e,t),p={x:o,y:n},m=await $n(t,u),h=ro(lr(a)),g=Bn(h),S=p[g],x=p[h];if(i){let T=g==="y"?"top":"left",R=g==="y"?"bottom":"right",L=S+m[T],k=S-m[R];S=Dn(L,S,k)}if(l){let T=h==="y"?"top":"left",R=h==="y"?"bottom":"right",L=x+m[T],k=x-m[R];x=Dn(L,x,k)}let O=c.fn({...t,[g]:S,[h]:x});return{...O,data:{x:O.x-o,y:O.y-n,enabled:{[g]:i,[h]:l}}}}}};var zn=Math.min,cr=Math.max,Pr=Math.round;var ot=e=>({x:e,y:e});function nt(e){return Xi(e)?(e.nodeName||"").toLowerCase():"#document"}function ve(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function at(e){var t;return(t=(Xi(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Xi(e){return e instanceof Node||e instanceof ve(e).Node}function Ve(e){return e instanceof Element||e instanceof ve(e).Element}function De(e){return e instanceof HTMLElement||e instanceof ve(e).HTMLElement}function Yi(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ve(e).ShadowRoot}function dr(e){let{overflow:t,overflowX:o,overflowY:n,display:a}=Se(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&!["inline","contents"].includes(a)}function Ji(e){return["table","td","th"].includes(nt(e))}function no(e){let t=ao(),o=Se(e);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!t&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!t&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(o.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(o.contain||"").includes(n))}function Qi(e){let t=Pt(e);for(;De(t)&&!_r(t);){if(no(t))return t;t=Pt(t)}return null}function ao(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function _r(e){return["html","body","#document"].includes(nt(e))}function Se(e){return ve(e).getComputedStyle(e)}function kr(e){return Ve(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Pt(e){if(nt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Yi(e)&&e.host||at(e);return Yi(t)?t.host:t}function es(e){let t=Pt(e);return _r(t)?e.ownerDocument?e.ownerDocument.body:e.body:De(t)&&dr(t)?t:es(t)}function oo(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);let a=es(e),i=a===((n=e.ownerDocument)==null?void 0:n.body),l=ve(a);return i?t.concat(l,l.visualViewport||[],dr(a)?a:[],l.frameElement&&o?oo(l.frameElement):[]):t.concat(a,oo(a,[],o))}function os(e){let t=Se(e),o=parseFloat(t.width)||0,n=parseFloat(t.height)||0,a=De(e),i=a?e.offsetWidth:o,l=a?e.offsetHeight:n,c=Pr(o)!==i||Pr(n)!==l;return c&&(o=i,n=l),{width:o,height:n,$:c}}function ns(e){return Ve(e)?e:e.contextElement}function ur(e){let t=ns(e);if(!De(t))return ot(1);let o=t.getBoundingClientRect(),{width:n,height:a,$:i}=os(t),l=(i?Pr(o.width):o.width)/n,c=(i?Pr(o.height):o.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}var ed=ot(0);function as(e){let t=ve(e);return!ao()||!t.visualViewport?ed:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function td(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==ve(e)?!1:t}function Dr(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);let a=e.getBoundingClientRect(),i=ns(e),l=ot(1);t&&(n?Ve(n)&&(l=ur(n)):l=ur(e));let c=td(i,o,n)?as(i):ot(0),u=(a.left+c.x)/l.x,p=(a.top+c.y)/l.y,m=a.width/l.x,h=a.height/l.y;if(i){let g=ve(i),S=n&&Ve(n)?ve(n):n,x=g.frameElement;for(;x&&n&&S!==g;){let O=ur(x),T=x.getBoundingClientRect(),R=Se(x),L=T.left+(x.clientLeft+parseFloat(R.paddingLeft))*O.x,k=T.top+(x.clientTop+parseFloat(R.paddingTop))*O.y;u*=O.x,p*=O.y,m*=O.x,h*=O.y,u+=L,p+=k,x=ve(x).frameElement}}return It({width:m,height:h,x:u,y:p})}function rd(e){let{rect:t,offsetParent:o,strategy:n}=e,a=De(o),i=at(o);if(o===i)return t;let l={scrollLeft:0,scrollTop:0},c=ot(1),u=ot(0);if((a||!a&&n!=="fixed")&&((nt(o)!=="body"||dr(i))&&(l=kr(o)),De(o))){let p=Dr(o);c=ur(o),u.x=p.x+o.clientLeft,u.y=p.y+o.clientTop}return{width:t.width*c.x,height:t.height*c.y,x:t.x*c.x-l.scrollLeft*c.x+u.x,y:t.y*c.y-l.scrollTop*c.y+u.y}}function od(e){return Array.from(e.getClientRects())}function is(e){return Dr(at(e)).left+kr(e).scrollLeft}function nd(e){let t=at(e),o=kr(e),n=e.ownerDocument.body,a=cr(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=cr(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),l=-o.scrollLeft+is(e),c=-o.scrollTop;return Se(n).direction==="rtl"&&(l+=cr(t.clientWidth,n.clientWidth)-a),{width:a,height:i,x:l,y:c}}function ad(e,t){let o=ve(e),n=at(e),a=o.visualViewport,i=n.clientWidth,l=n.clientHeight,c=0,u=0;if(a){i=a.width,l=a.height;let p=ao();(!p||p&&t==="fixed")&&(c=a.offsetLeft,u=a.offsetTop)}return{width:i,height:l,x:c,y:u}}function id(e,t){let o=Dr(e,!0,t==="fixed"),n=o.top+e.clientTop,a=o.left+e.clientLeft,i=De(e)?ur(e):ot(1),l=e.clientWidth*i.x,c=e.clientHeight*i.y,u=a*i.x,p=n*i.y;return{width:l,height:c,x:u,y:p}}function ts(e,t,o){let n;if(t==="viewport")n=ad(e,o);else if(t==="document")n=nd(at(e));else if(Ve(t))n=id(t,o);else{let a=as(e);n={...t,x:t.x-a.x,y:t.y-a.y}}return It(n)}function ss(e,t){let o=Pt(e);return o===t||!Ve(o)||_r(o)?!1:Se(o).position==="fixed"||ss(o,t)}function sd(e,t){let o=t.get(e);if(o)return o;let n=oo(e,[],!1).filter(c=>Ve(c)&&nt(c)!=="body"),a=null,i=Se(e).position==="fixed",l=i?Pt(e):e;for(;Ve(l)&&!_r(l);){let c=Se(l),u=no(l);!u&&c.position==="fixed"&&(a=null),(i?!u&&!a:!u&&c.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||dr(l)&&!u&&ss(e,l))?n=n.filter(m=>m!==l):a=c,l=Pt(l)}return t.set(e,n),n}function ld(e){let{element:t,boundary:o,rootBoundary:n,strategy:a}=e,l=[...o==="clippingAncestors"?sd(t,this._c):[].concat(o),n],c=l[0],u=l.reduce((p,m)=>{let h=ts(t,m,a);return p.top=cr(h.top,p.top),p.right=zn(h.right,p.right),p.bottom=zn(h.bottom,p.bottom),p.left=cr(h.left,p.left),p},ts(t,c,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function cd(e){return os(e)}function dd(e,t,o){let n=De(t),a=at(t),i=o==="fixed",l=Dr(e,!0,i,t),c={scrollLeft:0,scrollTop:0},u=ot(0);if(n||!n&&!i)if((nt(t)!=="body"||dr(a))&&(c=kr(t)),n){let p=Dr(t,!0,i,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else a&&(u.x=is(a));return{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function rs(e,t){return!De(e)||Se(e).position==="fixed"?null:t?t(e):e.offsetParent}function ls(e,t){let o=ve(e);if(!De(e))return o;let n=rs(e,t);for(;n&&Ji(n)&&Se(n).position==="static";)n=rs(n,t);return n&&(nt(n)==="html"||nt(n)==="body"&&Se(n).position==="static"&&!no(n))?o:n||Qi(e)||o}var ud=async function(e){let{reference:t,floating:o,strategy:n}=e,a=this.getOffsetParent||ls,i=this.getDimensions;return{reference:dd(t,await a(o),n),floating:{x:0,y:0,...await i(o)}}};function pd(e){return Se(e).direction==="rtl"}var io={convertOffsetParentRelativeRectToViewportRelativeRect:rd,getDocumentElement:at,getClippingRect:ld,getOffsetParent:ls,getElementRects:ud,getClientRects:od,getDimensions:cd,getScale:ur,isElement:Ve,isRTL:pd};var cs=(e,t,o)=>{let n=new Map,a={platform:io,...o},i={...a.platform,_c:n};return qi(e,t,{...a,platform:i})};function ds(e){return fd(e)}function Wn(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function fd(e){for(let t=e;t;t=Wn(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=Wn(e);t;t=Wn(t)){if(!(t instanceof Element))continue;let o=getComputedStyle(t);if(o.display!=="contents"&&(o.position!=="static"||o.filter!=="none"||t.tagName==="BODY"))return t}return null}async function us(e,t,o){return cs(e,t,{platform:{...io,getOffsetParent:n=>io.getOffsetParent(n,ds)},middleware:[Hn({crossAxis:!0}),Fn({allowedPlacements:[o]})]})}var Or=v(P());var Xl=v(P());var tl=v(H()),pe=v(J()),Be=v(P());var ps=v(H());var fs=ps.css`
552
552
  `;var so=v(P()),hd="ft-app-info",_t=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};_t.eventName="authentication-change";var yd={session:(e,t)=>{(0,so.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>N.dispatchEvent(new _t(t.payload)),0))}},N=so.FtReduxStore.get({name:hd,reducers:yd,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var Gn=v(P());var kt=class e{static get(t){let{baseUrl:o,apiIntegrationIdentifier:n}=N.getState(),a=t??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(t){return new Promise(o=>{let n=e.get(t);if(n)o(n);else{let a=N.subscribe(()=>{n=e.get(t),n&&(a(),o(n))})}})}};var lo=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:kt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):kt.await()}};var Ce=class extends lo{constructor(t=!0,o){var n;super(o),this.sortObjectFields=(i,l)=>typeof l!="object"||l==null||Array.isArray(l)?l:Object.fromEntries(Object.entries(l).sort(([c],[u])=>c.localeCompare(u)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new Gn.CacheRegistry,this.cache=t?a.commonCache:new Gn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var co=class extends Ce{async listMyBookmarks(){let t=N.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var jn=class{addCommand(t,o=!1){N.commands.add(t,o)}consumeCommand(t){return N.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new jn;var Te=v(P());var hs,pr=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},md=Symbol("clearAfterUnitTest"),uo=class extends(0,Te.withEventBus)(Ce){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[hs]=()=>{this.defaultMessages={},this.cache=new Te.CacheRegistry,this.listeners={}},this.currentUiLocale=N.getState().uiLocale,N.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=N.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let o=t.name.toLowerCase();this.cache.setFinal(o,t),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,o){var n;if(t=t.toLowerCase(),o&&Object.keys(o).length>0){let a={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...o};(0,Te.deepEqual)(this.defaultMessages[t],a)||(this.defaultMessages[t]=a,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var o,n;return this.fetchContext(t),(n=(o=this.cache.getNow(t))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,o){let n=t.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(t,o,...n){var a;let i=t.toLowerCase(),l=this.resolveContext(i);return new Te.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},l).resolve(o,...n)}async fetchContext(t){let o=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),o&&await this.notify(t)}catch(a){!(a instanceof Te.CanceledPromiseError)&&o&&console.error(a)}return n}subscribe(t,o){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(o),()=>{var a;return(a=this.listeners[t])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new pr({loadedContexts:t})),this.dispatchEvent(new pr({loadedContexts:t})),await Promise.all(t.map(o=>this.notify(o,!1)))}async notify(t,o=!0){o&&(document.body.dispatchEvent(new pr({loadedContexts:[t]})),this.dispatchEvent(new pr({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,Te.delay)(0).then(()=>n()).catch(()=>null)))}};hs=md;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends uo{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends uo{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var fr=window.FluidTopicsI18nService,po=window.FluidTopicsCustomI18nService;var ys=v(P()),Kn=class{highlightHtml(t,o,n){(0,ys.highlightHtml)(t,o,n)}};window.FluidTopicsHighlightHtmlService=new Kn;var bd=v(gs(),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 xs;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(xs||(xs={}));var vs;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(vs||(vs={}));var Ss;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(Ss||(Ss={}));var Cs;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Cs||(Cs={}));var Os;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Os||(Os={}));var Es;(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.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__AI_TRANSLATE="DOCUMENT__AI_TRANSLATE",e.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",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"})(Es||(Es={}));var As;(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"})(As||(As={}));var ws;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW"})(ws||(ws={}));var Rs;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Rs||(Rs={}));var Ts;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Ts||(Ts={}));var Ls;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Ls||(Ls={}));var Ns;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Ns||(Ns={}));var Is;(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"})(Is||(Is={}));var Ps;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(Ps||(Ps={}));var _s;(function(e){e.ASC="ASC",e.DESC="DESC"})(_s||(_s={}));var ks;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(ks||(ks={}));var Ds;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Ds||(Ds={}));var Bs;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Bs||(Bs={}));var Ms;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Ms||(Ms={}));var Us;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Us||(Us={}));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 Fs;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Fs||(Fs={}));var Hs;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Hs||(Hs={}));var zs;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(zs||(zs={}));var re;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(re||(re={}));var Le;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(Le||(Le={}));var Ws;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(Ws||(Ws={}));var Gs;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Gs||(Gs={}));var js;(function(e){e.USER="USER",e.ASSISTANT="ASSISTANT"})(js||(js={}));var Ks;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(Ks||(Ks={}));var Vs;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(Vs||(Vs={}));var gd={[re.PERSONAL_BOOK_SHARE_USER]:[re.PERSONAL_BOOK_USER],[re.HTML_EXPORT_USER]:[re.PERSONAL_BOOK_USER],[re.PDF_EXPORT_USER]:[re.PERSONAL_BOOK_USER],[re.KHUB_ADMIN]:[re.CONTENT_PUBLISHER],[re.ADMIN]:[re.KHUB_ADMIN,re.USERS_ADMIN,re.PORTAL_ADMIN],[re.GENERATIVE_AI_EXPORT_USER]:[re.GENERATIVE_AI_USER]};function Zs(e,t){return e===t||(gd[e]??[]).some(o=>Zs(o,t))}function qs(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>Zs(n,t))}var yo=class extends Ce{async listMySearches(){let{session:t}=N.getState();return qs(t,re.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var Ys=v(P());var Vn=class{isDate(t){var o,n,a,i;return(i=(a=((n=(o=N.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(c=>c.key===t))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(t,o){var n,a,i;return Ys.DateFormatter.format(t,(n=o?.locale)!==null&&n!==void 0?n:N.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new Vn;var Xs=v(P());var Br=class{static get(t,o){var n,a;let i=N.getState(),{lang:l,region:c}=(a=(n=i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new Xs.SearchPlaceConverter(i.baseUrl,t??20,i.searchInAllLanguagesAllowed,o??`${l}-${c}`)}};var Zn=class{urlToSearchRequest(t){return Br.get().parse(t)}searchRequestToUrl(t){return Br.get().serialize(t)}};window.FluidTopicsUrlService=new Zn;var mt=v(P());var Dt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};Dt.eventName="change";var qn=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let o=sessionStorage.getItem(this.itemName(t));return o?JSON.parse(o):void 0}set(t,o){sessionStorage.setItem(this.itemName(t),JSON.stringify(o))}},Js=new qn;var mo=class e extends mt.WithEventBus{static build(){return new e(window.history,Js,()=>window.location,!1)}constructor(t,o,n,a){var i,l;super(),this.history=t,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(l=(i=t.state)===null||i===void 0?void 0:i.index)!==null&&l!==void 0?l:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(t,o=!1){let n=o&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,mt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Dt(this.currentItem())),0)}installProxies(){let t=o=>(n,a,[i,l,c])=>{let u=o(),p={...u===this.currentIndex?this.currentState:void 0,...i,index:u,href:typeof c=="string"?c:(c??this.windowLocation()).href};n.apply(a,[p,l,c]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let o=this.history.length-1;o>=0;o--)t?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(t){var o;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(o=t?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(t){this.addEventListener(Dt.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(Dt.eventName,t)}currentItem(){return(0,mt.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,mt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,mt.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var o;let n=(o=this.states[t])===null||o===void 0?void 0:o.majorStateId;if(!n)return t;let a=t,i=t+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(a=i),i++;return a}buildCurrentState(){var t,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&o!==void 0?o:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,o){var n;if(!this.hasState(t))return!1;let a=o??this.currentState.majorStateId,i=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=mo.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});var Qs=N;function el(e,t){var o;return Qs.getState().authenticationRequired&&!(!((o=Qs.getState().session)===null||o===void 0)&&o.sessionAuthenticated)?Promise.resolve(t):e()}var oe=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var c=e.length-1;c>=0;c--)(l=e[c])&&(i=(a<3?l(i):a>3?l(t,o,i):l(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},G=class extends Be.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>kt.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new Be.CacheRegistry,this.cleanSessionDebouncer=new Be.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return tl.html`
553
553
  <slot></slot>
554
- `}connectedCallback(){super.connectedCallback(),N.addEventListener(_t.eventName,this.reloadConfiguration)}disconnectedCallback(){N.addEventListener(_t.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(t){var o,n,a,i,l,c,u;super.update(t),t.has("baseUrl")&&(N.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&N.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&N.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&N.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&N.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&N.actions.noCustom(this.noCustom),t.has("editorMode")&&N.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&N.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&N.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(p=>fr.addContext(p)),t.has("openExternalDocumentInNewTab")&&N.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&N.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&N.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(N.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),N.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),N.actions.searchInAllLanguagesAllowed((l=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&l!==void 0?l:!1)),t.has("authenticationRequired")&&N.actions.authenticationRequired(this.authenticationRequired),t.has("availableContentLocales")&&N.actions.availableContentLocales((u=(c=this.availableContentLocales)===null||c===void 0?void 0:c.contentLocales)!==null&&u!==void 0?u:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>el(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};G.elementDefinitions={};G.styles=fs;oe([(0,pe.property)()],G.prototype,"baseUrl",void 0);oe([(0,pe.property)()],G.prototype,"apiIntegrationIdentifier",void 0);oe([(0,pe.property)()],G.prototype,"apiIntegrationAppVersion",void 0);oe([(0,pe.property)()],G.prototype,"uiLocale",void 0);oe([(0,Be.jsonProperty)(null)],G.prototype,"availableUiLocales",void 0);oe([(0,Be.jsonProperty)(null)],G.prototype,"metadataConfiguration",void 0);oe([(0,pe.property)({type:Boolean})],G.prototype,"editorMode",void 0);oe([(0,pe.property)({type:Boolean})],G.prototype,"noCustom",void 0);oe([(0,pe.property)({type:Boolean})],G.prototype,"openExternalDocumentInNewTab",void 0);oe([(0,pe.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],G.prototype,"noCustomComponent",void 0);oe([(0,pe.property)({type:Boolean})],G.prototype,"withManualResources",void 0);oe([(0,pe.property)({type:Boolean})],G.prototype,"navigatorOnline",void 0);oe([(0,pe.property)({type:Boolean})],G.prototype,"forcedOffline",void 0);oe([(0,pe.property)({type:Object})],G.prototype,"apiProvider",void 0);oe([(0,pe.property)({type:Boolean})],G.prototype,"authenticationRequired",void 0);oe([(0,Be.jsonProperty)([])],G.prototype,"messageContexts",void 0);oe([(0,Be.jsonProperty)(void 0)],G.prototype,"session",void 0);oe([(0,pe.state)()],G.prototype,"localesConfiguration",void 0);oe([(0,pe.state)()],G.prototype,"availableContentLocales",void 0);var va=v(J());function xd(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let o,n,a;if(Array.isArray(e)){if(o=e.length,o!=t.length)return!1;for(n=o;n--!==0;)if(!go(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!go(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let i=l=>Object.keys(l).filter(c=>l[c]!=null);if(a=i(e),o=a.length,o!==i(t).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[n]))return!1;for(n=o;n--!==0;){let l=a[n];if(!go(e[l],t[l]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function go(e,t){try{return xd(e,t)}catch{return!1}}function Mr(e,t){return!go(e,t)}function bo(e,t){let o=n=>n[e]===!0;return n=>{if(o(n))return n;let a=t(n);return a[e]=!0,a}}var rl=v(J(),1);var Yn=e=>{let t=e??{};return(o,n)=>{var a;let i={hasChanged:Mr,attribute:!1,...t};(0,rl.property)(i)(o,n);let l=o.constructor;l.reduxProperties=new Map(l.reduxProperties),l.reduxProperties.set(n,{selector:(a=t.selector)!==null&&a!==void 0?a:c=>c[n],store:t.store})}};var xo=class{constructor(){this.queue=[]}add(t,o=!1){o&&this.clear(t.type),this.queue.push(t)}consume(t){let o=this.queue.find(n=>n.type===t);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(t){typeof t=="string"?this.queue=this.queue.filter(o=>o.type!==t):this.queue=this.queue.filter(o=>!t.test(o.type))}};var Bt=v(J(),1);var ol=v(J(),1);function nl(e,t){let o=()=>JSON.parse(JSON.stringify(e));return(0,ol.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:Mr,...t??{}})}var vo=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,o;let n=[...this.callbacks];this.callbacks=[];let a=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let l of n)try{await l()}catch(c){a(c);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 il=v(H(),1);var So=globalThis,vd=So.ShadowRoot&&(So.ShadyCSS===void 0||So.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Xb=Symbol();var al=(e,t)=>{if(vd)e.adoptedStyleSheets=t.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of t){let n=document.createElement("style"),a=So.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,e.appendChild(n)}};var Co=class extends il.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([a,i])=>t.registry.define(a,i)));let o={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return al(n,t.elementStyles),n}};function sl(e,t,...o){var n;let a=e.querySelector(t);for(let i of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}var mr=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var c=e.length-1;c>=0;c--)(l=e[c])&&(i=(a<3?l(i):a>3?l(t,o,i):l(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},ul,ll=Symbol("constructorPrototype"),cl=Symbol("constructorName"),pl=Symbol("exportpartsDebouncer"),dl=Symbol("dynamicDependenciesLoaded"),yr=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};yr.eventName="exportparts-updated";var Ke=class extends Co{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[ul]=new vo(5),this.scheduleExportpartsUpdate=()=>{var t,o,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[pl].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)})},this[cl]=this.constructor.name,this[ll]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[cl]&&Object.setPrototypeOf(this,this[ll])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let o=this.constructor;o[dl]||(o[dl]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(yr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(yr.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new yr)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let i=[...a??[],n];o=sl(this.shadowRoot,...i)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}setExportpartsAttribute(t){var o,n,a,i,l,c;let u=g=>g!=null&&g.trim().length>0,p=t.filter(u).map(g=>g.trim());if(p.length===0){this.exportparts=void 0;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 S=(i=(a=g.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],x=(c=(l=g.getAttribute("exportparts"))===null||l===void 0?void 0:l.split(",").map(T=>T.split(":")[1]))!==null&&c!==void 0?c:[],O=[...S,...x].filter(u).map(T=>T.trim());for(let T of O)m.add(T)}if(m.size===0){this.exportparts=void 0;return}let h=[...m.values()].flatMap(g=>p.map(S=>`${g}:${S}--${g}`));this.exportparts=[...this.part,...h].join(", ")}};ul=pl;mr([(0,Bt.property)()],Ke.prototype,"exportpartsPrefix",void 0);mr([nl([])],Ke.prototype,"exportpartsPrefixes",void 0);mr([(0,Bt.property)({reflect:!0})],Ke.prototype,"exportparts",void 0);mr([(0,Bt.property)()],Ke.prototype,"customStylesheet",void 0);mr([(0,Bt.property)()],Ke.prototype,"elementToFocus",void 0);mr([(0,Bt.state)()],Ke.prototype,"useAdoptedStyleSheets",void 0);function Oo(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Ur=Symbol("internalReduxEventsUnsubscribers"),gt=Symbol("internalStoresUnsubscribers"),Mt=Symbol("internalStores"),Sd=bo(Symbol("withRedux"),function(e){var t,o,n;class a extends e{constructor(){super(...arguments),this[t]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(l){super.willUpdate(l),[...this.reduxConstructor.reduxReactiveProperties].some(c=>l.has(c))&&this.updateFromStores()}getUnnamedStore(){if(this[Mt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Mt].values()][0]}getStore(l){return l==null?this.getUnnamedStore():this[Mt].get(l)}addStore(l,c){var u;c=(u=c??l.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(c),this[Mt].set(c,l),this.subscribeToStore(c,l),this.updateFromStores()}removeStore(l){let c=typeof l=="string"?l:l.name;this.unsubscribeFromStore(c),this[Mt].delete(c)}setupStores(){this.unsubscribeFromStores(),this[Mt].forEach((l,c)=>this.subscribeToStore(c,l)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((l,c)=>{let u=this.constructor.getPropertyOptions(c);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:c)){let p=this.getStore(l.store);p&&(l.store?this[gt].has(l.store):this[gt].size>0)&&(this[c]=l.selector(p.getState(),this))}})}subscribeToStore(l,c){var u;this[gt].set(l,c.subscribe(()=>this.updateFromStores())),this[Ur].set(l,[]),Oo(c)&&c.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((p,m)=>{if(typeof this[m]=="function"&&(!p.store||c.name===p.store)){let h=g=>this[m](g);c.addEventListener(p.eventName,h),this[Ur].get(l).push(()=>c.removeEventListener(p.eventName,h))}})),this.onStoreAvailable(l)}unsubscribeFromStores(){this[gt].forEach((l,c)=>this.unsubscribeFromStore(c))}unsubscribeFromStore(l){var c;this[gt].has(l)&&this[gt].get(l)(),this[gt].delete(l),(c=this[Ur].get(l))===null||c===void 0||c.forEach(u=>u()),this[Ur].delete(l)}onStoreAvailable(l){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=gt,o=Mt,n=Ur,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),fl=class extends Sd(Ke){};function Ne(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(l){return"'"+l+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function it(e){return!!e&&!!e[q]}function Me(e){var t;return!!e&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===Ld}(e)||Array.isArray(e)||!!e[vl]||!!(!((t=e.constructor)===null||t===void 0)&&t[vl])||aa(e)||ia(e))}function Ut(e,t,o){o===void 0&&(o=!1),xr(e)===0?(o?Object.keys:br)(e).forEach(function(n){o&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,a){return t(a,n,e)})}function xr(e){var t=e[q];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:aa(e)?2:ia(e)?3:0}function gr(e,t){return xr(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Cd(e,t){return xr(e)===2?e.get(t):e[t]}function Sl(e,t,o){var n=xr(e);n===2?e.set(t,o):n===3?e.add(o):e[t]=o}function Cl(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function aa(e){return Rd&&e instanceof Map}function ia(e){return Td&&e instanceof Set}function bt(e){return e.o||e.t}function sa(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Al(e);delete t[q];for(var o=br(t),n=0;n<o.length;n++){var a=o[n],i=t[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function la(e,t){return t===void 0&&(t=!1),ca(e)||it(e)||!Me(e)||(xr(e)>1&&(e.set=e.add=e.clear=e.delete=Od),Object.freeze(e),t&&Ut(e,function(o,n){return la(n,!0)},!0)),e}function Od(){Ne(2)}function ca(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ve(e){var t=na[e];return t||Ne(18,e),t}function Ed(e,t){na[e]||(na[e]=t)}function ta(){return Fr}function Xn(e,t){t&&(Ve("Patches"),e.u=[],e.s=[],e.v=t)}function Eo(e){ra(e),e.p.forEach(Ad),e.p=null}function ra(e){e===Fr&&(Fr=e.l)}function hl(e){return Fr={p:[],l:Fr,h:e,m:!0,_:0}}function Ad(e){var t=e[q];t.i===0||t.i===1?t.j():t.g=!0}function Jn(e,t){t._=t.p.length;var o=t.p[0],n=e!==void 0&&e!==o;return t.h.O||Ve("ES5").S(t,e,n),n?(o[q].P&&(Eo(t),Ne(4)),Me(e)&&(e=Ao(t,e),t.l||wo(t,e)),t.u&&Ve("Patches").M(o[q].t,e,t.u,t.s)):e=Ao(t,o,[]),Eo(t),t.u&&t.v(t.u,t.s),e!==El?e:void 0}function Ao(e,t,o){if(ca(t))return t;var n=t[q];if(!n)return Ut(t,function(c,u){return yl(e,n,t,c,u,o)},!0),t;if(n.A!==e)return t;if(!n.P)return wo(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=sa(n.k):n.o,i=a,l=!1;n.i===3&&(i=new Set(a),a.clear(),l=!0),Ut(i,function(c,u){return yl(e,n,a,c,u,o,l)}),wo(e,a,!1),o&&e.u&&Ve("Patches").N(n,o,e.u,e.s)}return n.o}function yl(e,t,o,n,a,i,l){if(it(a)){var c=Ao(e,a,i&&t&&t.i!==3&&!gr(t.R,n)?i.concat(n):void 0);if(Sl(o,n,c),!it(c))return;e.m=!1}else l&&o.add(a);if(Me(a)&&!ca(a)){if(!e.h.D&&e._<1)return;Ao(e,a),t&&t.A.l||wo(e,a)}}function wo(e,t,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&la(t,o)}function Qn(e,t){var o=e[q];return(o?bt(o):e)[t]}function ml(e,t){if(t in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,t);if(n)return n;o=Object.getPrototypeOf(o)}}function xt(e){e.P||(e.P=!0,e.l&&xt(e.l))}function ea(e){e.o||(e.o=sa(e.t))}function oa(e,t,o){var n=aa(t)?Ve("MapSet").F(t,o):ia(t)?Ve("MapSet").T(t,o):e.O?function(a,i){var l=Array.isArray(a),c={i:l?1:0,A:i?i.A:ta(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},u=c,p=Hr;l&&(u=[c],p=$r);var m=Proxy.revocable(u,p),h=m.revoke,g=m.proxy;return c.k=g,c.j=h,g}(t,o):Ve("ES5").J(t,o);return(o?o.A:ta()).p.push(n),n}function wd(e){return it(e)||Ne(22,e),function t(o){if(!Me(o))return o;var n,a=o[q],i=xr(o);if(a){if(!a.P&&(a.i<4||!Ve("ES5").K(a)))return a.t;a.I=!0,n=gl(o,i),a.I=!1}else n=gl(o,i);return Ut(n,function(l,c){a&&Cd(a.t,l)===c||Sl(n,l,t(c))}),i===3?new Set(n):n}(e)}function gl(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return sa(e)}function Ol(){function e(l,c){var u=i[l];return u?u.enumerable=c:i[l]=u={configurable:!0,enumerable:c,get:function(){var p=this[q];return Hr.get(p,l)},set:function(p){var m=this[q];Hr.set(m,l,p)}},u}function t(l){for(var c=l.length-1;c>=0;c--){var u=l[c][q];if(!u.P)switch(u.i){case 5:n(u)&&xt(u);break;case 4:o(u)&&xt(u)}}}function o(l){for(var c=l.t,u=l.k,p=br(u),m=p.length-1;m>=0;m--){var h=p[m];if(h!==q){var g=c[h];if(g===void 0&&!gr(c,h))return!0;var S=u[h],x=S&&S[q];if(x?x.t!==g:!Cl(S,g))return!0}}var O=!!c[q];return p.length!==br(c).length+(O?0:1)}function n(l){var c=l.k;if(c.length!==l.t.length)return!0;var u=Object.getOwnPropertyDescriptor(c,c.length-1);if(u&&!u.get)return!0;for(var p=0;p<c.length;p++)if(!c.hasOwnProperty(p))return!0;return!1}function a(l){l.g&&Ne(3,JSON.stringify(bt(l)))}var i={};Ed("ES5",{J:function(l,c){var u=Array.isArray(l),p=function(h,g){if(h){for(var S=Array(g.length),x=0;x<g.length;x++)Object.defineProperty(S,""+x,e(x,!0));return S}var O=Al(g);delete O[q];for(var T=br(O),R=0;R<T.length;R++){var L=T[R];O[L]=e(L,h||!!O[L].enumerable)}return Object.create(Object.getPrototypeOf(g),O)}(u,l),m={i:u?5:4,A:c?c.A:ta(),P:!1,I:!1,R:{},l:c,t:l,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,q,{value:m,writable:!0}),p},S:function(l,c,u){u?it(c)&&c[q].A===l&&t(l.p):(l.u&&function p(m){if(m&&typeof m=="object"){var h=m[q];if(h){var g=h.t,S=h.k,x=h.R,O=h.i;if(O===4)Ut(S,function(M){M!==q&&(g[M]!==void 0||gr(g,M)?x[M]||p(S[M]):(x[M]=!0,xt(h)))}),Ut(g,function(M){S[M]!==void 0||gr(S,M)||(x[M]=!1,xt(h))});else if(O===5){if(n(h)&&(xt(h),x.length=!0),S.length<g.length)for(var T=S.length;T<g.length;T++)x[T]=!1;else for(var R=g.length;R<S.length;R++)x[R]=!0;for(var L=Math.min(S.length,g.length),k=0;k<L;k++)S.hasOwnProperty(k)||(x[k]=!0),x[k]===void 0&&p(S[k])}}}}(l.p[0]),t(l.p))},K:function(l){return l.i===4?o(l):n(l)}})}var bl,Fr,da=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Rd=typeof Map<"u",Td=typeof Set<"u",xl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",El=da?Symbol.for("immer-nothing"):((bl={})["immer-nothing"]=!0,bl),vl=da?Symbol.for("immer-draftable"):"__$immer_draftable",q=da?Symbol.for("immer-state"):"__$immer_state";var Ld=""+Object.prototype.constructor,br=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Al=Object.getOwnPropertyDescriptors||function(e){var t={};return br(e).forEach(function(o){t[o]=Object.getOwnPropertyDescriptor(e,o)}),t},na={},Hr={get:function(e,t){if(t===q)return e;var o=bt(e);if(!gr(o,t))return function(a,i,l){var c,u=ml(i,l);return u?"value"in u?u.value:(c=u.get)===null||c===void 0?void 0:c.call(a.k):void 0}(e,o,t);var n=o[t];return e.I||!Me(n)?n:n===Qn(e.t,t)?(ea(e),e.o[t]=oa(e.A.h,n,e)):n},has:function(e,t){return t in bt(e)},ownKeys:function(e){return Reflect.ownKeys(bt(e))},set:function(e,t,o){var n=ml(bt(e),t);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var a=Qn(bt(e),t),i=a?.[q];if(i&&i.t===o)return e.o[t]=o,e.R[t]=!1,!0;if(Cl(o,a)&&(o!==void 0||gr(e.t,t)))return!0;ea(e),xt(e)}return e.o[t]===o&&(o!==void 0||t in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[t])||(e.o[t]=o,e.R[t]=!0),!0},deleteProperty:function(e,t){return Qn(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,ea(e),xt(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var o=bt(e),n=Reflect.getOwnPropertyDescriptor(o,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:o[t]}},defineProperty:function(){Ne(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Ne(12)}},$r={};Ut(Hr,function(e,t){$r[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),$r.deleteProperty=function(e,t){return $r.set.call(this,e,t,void 0)},$r.set=function(e,t,o){return Hr.set.call(this,e[0],t,o,e[0])};var Nd=function(){function e(o){var n=this;this.O=xl,this.D=!0,this.produce=function(a,i,l){if(typeof a=="function"&&typeof i!="function"){var c=i;i=a;var u=n;return function(O){var T=this;O===void 0&&(O=c);for(var R=arguments.length,L=Array(R>1?R-1:0),k=1;k<R;k++)L[k-1]=arguments[k];return u.produce(O,function(M){var U;return(U=i).call.apply(U,[T,M].concat(L))})}}var p;if(typeof i!="function"&&Ne(6),l!==void 0&&typeof l!="function"&&Ne(7),Me(a)){var m=hl(n),h=oa(n,a,void 0),g=!0;try{p=i(h),g=!1}finally{g?Eo(m):ra(m)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return Xn(m,l),Jn(O,m)},function(O){throw Eo(m),O}):(Xn(m,l),Jn(p,m))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===El&&(p=void 0),n.D&&la(p,!0),l){var S=[],x=[];Ve("Patches").M(a,p,S,x),l(S,x)}return p}Ne(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var m=arguments.length,h=Array(m>1?m-1:0),g=1;g<m;g++)h[g-1]=arguments[g];return n.produceWithPatches(p,function(S){return a.apply(void 0,[S].concat(h))})};var l,c,u=n.produce(a,i,function(p,m){l=p,c=m});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,l,c]}):[u,l,c]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var t=e.prototype;return t.createDraft=function(o){Me(o)||Ne(8),it(o)&&(o=wd(o));var n=hl(this),a=oa(this,o,void 0);return a[q].C=!0,ra(n),a},t.finishDraft=function(o,n){var a=o&&o[q],i=a.A;return Xn(i,n),Jn(void 0,i)},t.setAutoFreeze=function(o){this.D=o},t.setUseProxies=function(o){o&&!xl&&Ne(20),this.O=o},t.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var l=Ve("Patches").$;return it(o)?l(o,n):this.produce(o,function(c){return l(c,n)})},e}(),Oe=new Nd,Id=Oe.produce,px=Oe.produceWithPatches.bind(Oe),fx=Oe.setAutoFreeze.bind(Oe),hx=Oe.setUseProxies.bind(Oe),yx=Oe.applyPatches.bind(Oe),mx=Oe.createDraft.bind(Oe),gx=Oe.finishDraft.bind(Oe),Ro=Id;function $t(e){"@babel/helpers - typeof";return $t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$t(e)}function wl(e,t){if($t(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,t||"default");if($t(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rl(e){var t=wl(e,"string");return $t(t)=="symbol"?t:t+""}function Tl(e,t,o){return(t=Rl(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Ll(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,n)}return o}function ua(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?Ll(Object(o),!0).forEach(function(n){Tl(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ll(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function fe(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 Nl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),pa=function(){return Math.random().toString(36).substring(7).split("").join(".")},To={INIT:"@@redux/INIT"+pa(),REPLACE:"@@redux/REPLACE"+pa(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+pa()}};function Pd(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function fa(e,t,o){var n;if(typeof t=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(fe(0));if(typeof t=="function"&&typeof o>"u"&&(o=t,t=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(fe(1));return o(fa)(e,t)}if(typeof e!="function")throw new Error(fe(2));var a=e,i=t,l=[],c=l,u=!1;function p(){c===l&&(c=l.slice())}function m(){if(u)throw new Error(fe(3));return i}function h(O){if(typeof O!="function")throw new Error(fe(4));if(u)throw new Error(fe(5));var T=!0;return p(),c.push(O),function(){if(T){if(u)throw new Error(fe(6));T=!1,p();var L=c.indexOf(O);c.splice(L,1),l=null}}}function g(O){if(!Pd(O))throw new Error(fe(7));if(typeof O.type>"u")throw new Error(fe(8));if(u)throw new Error(fe(9));try{u=!0,i=a(i,O)}finally{u=!1}for(var T=l=c,R=0;R<T.length;R++){var L=T[R];L()}return O}function S(O){if(typeof O!="function")throw new Error(fe(10));a=O,g({type:To.REPLACE})}function x(){var O,T=h;return O={subscribe:function(L){if(typeof L!="object"||L===null)throw new Error(fe(11));function k(){L.next&&L.next(m())}k();var M=T(k);return{unsubscribe:M}}},O[Nl]=function(){return this},O}return g({type:To.INIT}),n={dispatch:g,subscribe:h,getState:m,replaceReducer:S},n[Nl]=x,n}function _d(e){Object.keys(e).forEach(function(t){var o=e[t],n=o(void 0,{type:To.INIT});if(typeof n>"u")throw new Error(fe(12));if(typeof o(void 0,{type:To.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(fe(13))})}function Il(e){for(var t=Object.keys(e),o={},n=0;n<t.length;n++){var a=t[n];typeof e[a]=="function"&&(o[a]=e[a])}var i=Object.keys(o),l,c;try{_d(o)}catch(u){c=u}return function(p,m){if(p===void 0&&(p={}),c)throw c;if(0)var h;for(var g=!1,S={},x=0;x<i.length;x++){var O=i[x],T=o[O],R=p[O],L=T(R,m);if(typeof L>"u"){var k=m&&m.type;throw new Error(fe(14))}S[O]=L,g=g||L!==R}return g=g||i.length!==Object.keys(p).length,g?S:p}}function vr(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function Pl(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(fe(15))},l={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},c=t.map(function(u){return u(l)});return i=vr.apply(void 0,c)(a.dispatch),ua(ua({},a),{},{dispatch:i})}}}function _l(e){var t=function(n){var a=n.dispatch,i=n.getState;return function(l){return function(c){return typeof c=="function"?c(a,i,e):l(c)}}};return t}var kl=_l();kl.withExtraArgument=_l;var ha=kl;var $l=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(t,o)};return function(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(t,o);function n(){this.constructor=t}t.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),kd=function(e,t){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,l;return l={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function c(p){return function(m){return u([p,m])}}function u(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){o.label=p[1];break}if(p[0]===6&&o.label<i[1]){o.label=i[1],i=p;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(p);break}i[2]&&o.ops.pop(),o.trys.pop();continue}p=t.call(e,o)}catch(m){p=[6,m],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Sr=function(e,t){for(var o=0,n=t.length,a=e.length;o<n;o++,a++)e[a]=t[o];return e},Dd=Object.defineProperty,Bd=Object.defineProperties,Md=Object.getOwnPropertyDescriptors,Dl=Object.getOwnPropertySymbols,Ud=Object.prototype.hasOwnProperty,$d=Object.prototype.propertyIsEnumerable,Bl=function(e,t,o){return t in e?Dd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o},vt=function(e,t){for(var o in t||(t={}))Ud.call(t,o)&&Bl(e,o,t[o]);if(Dl)for(var n=0,a=Dl(t);n<a.length;n++){var o=a[n];$d.call(t,o)&&Bl(e,o,t[o])}return e},ya=function(e,t){return Bd(e,Md(t))},Fd=function(e,t,o){return new Promise(function(n,a){var i=function(u){try{c(o.next(u))}catch(p){a(p)}},l=function(u){try{c(o.throw(u))}catch(p){a(p)}},c=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(i,l)};c((o=o.apply(e,t)).next())})};var Hd=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?vr:vr.apply(null,arguments)},Dx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function zd(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var o=t;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return t===o}var Wd=function(e){$l(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(t.bind.apply(t,Sr([void 0],o[0].concat(this)))):new(t.bind.apply(t,Sr([void 0],o.concat(this))))},t}(Array),Gd=function(e){$l(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(t.bind.apply(t,Sr([void 0],o[0].concat(this)))):new(t.bind.apply(t,Sr([void 0],o.concat(this))))},t}(Array);function ba(e){return Me(e)?Ro(e,function(){}):e}function jd(e){return typeof e=="boolean"}function Kd(){return function(t){return Vd(t)}}function Vd(e){e===void 0&&(e={});var t=e.thunk,o=t===void 0?!0:t,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,l=i===void 0?!0:i,c=new Wd;if(o&&(jd(o)?c.push(ha):c.push(ha.withExtraArgument(o.extraArgument))),0){if(a)var u;if(l)var p}return c}var ma=!0;function Fl(e){var t=Kd(),o=e||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,l=i===void 0?t():i,c=o.devTools,u=c===void 0?!0:c,p=o.preloadedState,m=p===void 0?void 0:p,h=o.enhancers,g=h===void 0?void 0:h,S;if(typeof a=="function")S=a;else if(zd(a))S=Il(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=l;if(typeof x=="function"&&(x=x(t),!ma&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ma&&x.some(function(M){return typeof M!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=Pl.apply(void 0,x),T=vr;u&&(T=Hd(vt({trace:!ma},typeof u=="object"&&u)));var R=new Gd(O),L=R;Array.isArray(g)?L=Sr([O],g):typeof g=="function"&&(L=g(R));var k=T.apply(void 0,L);return fa(S,m,k)}function St(e,t){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(t){var i=t.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return vt(vt({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 Hl(e){var t={},o=[],n,a={addCase:function(i,l){var c=typeof i=="string"?i:i.type;if(c in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[c]=l,a},addMatcher:function(i,l){return o.push({matcher:i,reducer:l}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[t,o,n]}function Zd(e){return typeof e=="function"}function qd(e,t,o,n){o===void 0&&(o=[]);var a=typeof t=="function"?Hl(t):[t,o,n],i=a[0],l=a[1],c=a[2],u;if(Zd(e))u=function(){return ba(e())};else{var p=ba(e);u=function(){return p}}function m(h,g){h===void 0&&(h=u());var S=Sr([i[g.type]],l.filter(function(x){var O=x.matcher;return O(g)}).map(function(x){var O=x.reducer;return O}));return S.filter(function(x){return!!x}).length===0&&(S=[c]),S.reduce(function(x,O){if(O)if(it(x)){var T=x,R=O(T,g);return R===void 0?x:R}else{if(Me(x))return Ro(x,function(L){return O(L,g)});var R=O(x,g);if(R===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return R}return x},h)}return m.getInitialState=u,m}function Yd(e,t){return e+"/"+t}function zl(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:ba(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},l={},c={};a.forEach(function(m){var h=n[m],g=Yd(t,m),S,x;"reducer"in h?(S=h.reducer,x=h.prepare):S=h,i[m]=S,l[g]=S,c[m]=x?St(g,x):St(g)});function u(){var m=typeof e.extraReducers=="function"?Hl(e.extraReducers):[e.extraReducers],h=m[0],g=h===void 0?{}:h,S=m[1],x=S===void 0?[]:S,O=m[2],T=O===void 0?void 0:O,R=vt(vt({},g),l);return qd(o,function(L){for(var k in R)L.addCase(k,R[k]);for(var M=0,U=x;M<U.length;M++){var be=U[M];L.addMatcher(be.matcher,be.reducer)}T&&L.addDefaultCase(T)})}var p;return{name:t,reducer:function(m,h){return p||(p=u()),p(m,h)},actions:c,caseReducers:i,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var Xd="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Jd=function(e){e===void 0&&(e=21);for(var t="",o=e;o--;)t+=Xd[Math.random()*64|0];return t},Qd=["name","message","stack","code"],ga=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),Ml=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),eu=function(e){if(typeof e=="object"&&e!==null){for(var t={},o=0,n=Qd;o<n.length;o++){var a=n[o];typeof e[a]=="string"&&(t[a]=e[a])}return t}return{message:String(e)}},$x=function(){function e(t,o,n){var a=St(t+"/fulfilled",function(m,h,g,S){return{payload:m,meta:ya(vt({},S||{}),{arg:g,requestId:h,requestStatus:"fulfilled"})}}),i=St(t+"/pending",function(m,h,g){return{payload:void 0,meta:ya(vt({},g||{}),{arg:h,requestId:m,requestStatus:"pending"})}}),l=St(t+"/rejected",function(m,h,g,S,x){return{payload:S,error:(n&&n.serializeError||eu)(m||"Rejected"),meta:ya(vt({},x||{}),{arg:g,requestId:h,rejectedWithValue:!!S,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),c=!1,u=typeof AbortController<"u"?AbortController:function(){function m(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return m.prototype.abort=function(){},m}();function p(m){return function(h,g,S){var x=n?.idGenerator?n.idGenerator(m):Jd(),O=new u,T,R=!1;function L(M){T=M,O.abort()}var k=function(){return Fd(this,null,function(){var M,U,be,He,ye,ze,ce;return kd(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),He=(M=n?.condition)==null?void 0:M.call(n,m,{getState:g,extra:S}),ru(He)?[4,He]:[3,2];case 1:He=y.sent(),y.label=2;case 2:if(He===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return R=!0,ye=new Promise(function(b,_){return O.signal.addEventListener("abort",function(){return _({name:"AbortError",message:T||"Aborted"})})}),h(i(x,m,(U=n?.getPendingMeta)==null?void 0:U.call(n,{requestId:x,arg:m},{getState:g,extra:S}))),[4,Promise.race([ye,Promise.resolve(o(m,{dispatch:h,getState:g,extra:S,requestId:x,signal:O.signal,abort:L,rejectWithValue:function(b,_){return new ga(b,_)},fulfillWithValue:function(b,_){return new Ml(b,_)}})).then(function(b){if(b instanceof ga)throw b;return b instanceof Ml?a(b.payload,x,m,b.meta):a(b,x,m)})])];case 3:return be=y.sent(),[3,5];case 4:return ze=y.sent(),be=ze instanceof ga?l(null,x,m,ze.payload,ze.meta):l(ze,x,m),[3,5];case 5:return ce=n&&!n.dispatchConditionRejection&&l.match(be)&&be.meta.condition,ce||h(be),[2,be]}})})}();return Object.assign(k,{abort:L,requestId:x,arg:m,unwrap:function(){return k.then(tu)}})}}return Object.assign(p,{pending:i,rejected:l,fulfilled:a,typePrefix:t})}return e.withTypes=function(){return e},e}();function tu(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function ru(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Wl="listener",Gl="completed",jl="cancelled",Fx="task-"+jl,Hx="task-"+Gl,zx=Wl+"-"+jl,Wx=Wl+"-"+Gl;var xa="listenerMiddleware";var Gx=St(xa+"/add"),jx=St(xa+"/removeAll"),Kx=St(xa+"/remove");var Ul,Vx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(Ul||(Ul=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},ou=function(e){return function(t){setTimeout(t,e)}},Zx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ou(10);Ol();var nu=bo(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}),Lo=class extends nu(Object){};window.ftReduxStores||(window.ftReduxStores={});var Kl=class e extends Lo{static get(t){var o;let n=typeof t=="string"?t:t.name,a=typeof t=="string"?void 0:t,i=window.ftReduxStores[n];if(Oo(i))return i;if(a==null)return;let l=zl({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),c=Fl({reducer:(u,p)=>p.type==="CLEAR_FT_REDUX_STORE"?l.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...p.overwrites}:l.reducer(u,p)});return window.ftReduxStores[a.name]=new e(l,c,a.eventBus)}constructor(t,o,n){super(),this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new xo;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,l,c)=>{let u=l,p=i[u];return p?(...m)=>{let h=p(...m.map(a));return this.reduxStore.dispatch(h),h}:m=>{this.setState({[u]:a(m)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var No=class{static format(t,o,n,a){return window.moment?window.moment(t).locale(o).format(this.getMomentDateFormat(n,a)):this.getIntlDateTime(t,o,n,a)}static getMomentDateFormat(t,o){return t?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(t,o,n,a){let i=typeof t=="string"?new Date(t):t,l=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(i);if(!a)return l;let c=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(i);return`${l} ${c}`}static getTimezoneAsString(){let t=n=>String(Math.floor(n)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${t(Math.abs(o)/60)}:${t(Math.abs(o)%60)}`}};var Vl=v(P()),Io=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var c=e.length-1;c>=0;c--)(l=e[c])&&(i=(a<3?l(i):a>3?l(t,o,i):l(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},bv=(0,Vl.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(N)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,i;return((i=(a=this.metadataDescriptors.find(c=>c.key===n))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1)?c=>No.format(c,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Io([(0,va.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Io([(0,va.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Io([Yn({store:N.name,selector:o=>{var n,a;return(a=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],t.prototype,"metadataDescriptors",void 0),Io([Yn({store:N.name})],t.prototype,"uiLocale",void 0),t});var ko=v(P());var Po=class extends Ce{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=N.getState().session;return!!t?.sessionAuthenticated}};var _o=class extends Ce{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let t=N.getState().session;return!!t?.sessionAuthenticated}};var au="ft-user-assets",iu={setAssetCount:(e,t)=>{let{userAssetType:o,count:n}=t.payload.assetCount;e.assetCounts.allAsset[o]=n},clearAssetCount:e=>{Object.values(Le).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let o=t.payload.mapId;e.assetCounts.bookmarkByMap[o]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:o,mapId:n,asset:a}=t.payload;Ca(e,o,[...Sa(e,o),a]),Zl(e,o,1,n),ql(e,a)},editAsset:(e,t)=>{let{assetType:o,asset:n}=t.payload;Ca(e,o,Sa(e,o).map(a=>a.id===n.id?n:a)),ql(e,n)},removeAsset:(e,t)=>{let{assetType:o,mapId:n,assetId:a}=t.payload;Ca(e,o,Sa(e,o).filter(i=>i.id!==a)),Zl(e,o,-1,n)}},Yl={[Le.SEARCHES]:"savedSearches",[Le.BOOKMARKS]:"bookmarks",[Le.BOOKS]:void 0,[Le.COLLECTIONS]:void 0},Sa=(e,t)=>{var o;let n=Yl[t];return n?(o=e[n])!==null&&o!==void 0?o:[]:[]},Ca=(e,t,o)=>{let n=Yl[t];n&&(e[n]=o)},Zl=(e,t,o,n)=>{let a=e.assetCounts.allAsset[t];if(a!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,a+o),t===Le.BOOKMARKS&&n)){let i=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,i+o)}},ql=(e,t)=>{let o=e.assetLabels.map(a=>a.title),n=t.labels.filter(a=>!o.includes(a)).map(a=>({title:a}));e.assetLabels.push(...n)},Ee=ko.FtReduxStore.get({name:au,reducers:iu,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Le).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Oa=class{constructor(t=new Po,o=new _o){this.assetCountsService=t,this.assetLabelsService=o,this.currentSession=N.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new co,this.savedSearchesService=new yo,N.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:o}=N.getState();(0,ko.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Ee.actions.clearAssetCount(),Ee.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ee.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ee.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();Ee.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();Ee.actions.assetLabels(t)}async loadAssetCount(t){let o=await this.assetCountsService.getUserAssetCount(t);o&&Ee.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(t){let o=await this.assetCountsService.getUserBookmarkCountByMap(t);o&&Ee.actions.setBookmarkCountByMap({count:o.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let o=Object.keys(Ee.getState().assetCounts.bookmarkByMap).length!==0;t===Le.BOOKMARKS&&o&&Ee.actions.clearBookmarkCountByMap(),Ee.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let o=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Ee.actions.bookmarks(o)}}},su=new Oa;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=su);(0,Xl.customElement)("ft-app-context")(G);var Jl=v(J());var Ea=class{fromLocalizableLabel(t){return t.type=="PLAIN_TEXT"?{message:t.text}:{key:t.key,custom:t.type=="LOCALIZED_CUSTOM",context:t.context,message:t.key}}fromAttribute(t){if(t!=null)try{return JSON.parse(t)}catch{if(this.isI18nKey(t)){let[n,a]=t.split(".");return{context:n,key:a,custom:!0,message:""}}return{message:t}}}toAttribute(t){if(t!=null)return JSON.stringify(t)}isI18nKey(t){return t.match(/^[\w-]+\.[\w-]+$/)}},Cr=new Ea;var lu=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var c=e.length-1;c>=0;c--)(l=e[c])&&(i=(a<3?l(i):a>3?l(t,o,i):l(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},Wr=Symbol("i18nAttributes"),Ql=Symbol("i18nListAttributes"),ec=Symbol("i18nProperties"),Do=Symbol("i18nContexts"),zr=Symbol("i18nUnsubs"),Uo=(0,Or.applyMixinOnce)(Symbol("withI18n"),function(e){var t,o;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[o]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?po:fr}i18n(i){let{context:l,key:c,message:u}=i,{custom:p,args:m,argsProvider:h}=i;if(l&&c){this.hasI18nContext(l)||this.addI18nContext(l,void 0,p);let g=m??(h?h(this):[]);return this.getI18nService(p).resolveMessage(l,c,...g)}return u}async awaitI18n(i){let{context:l,custom:c}=i;return l&&await this.getI18nService(c).prepareContext(l),this.i18n(i)}customI18n(i,l){if(Cr.isI18nKey(i)){let[c,u]=i.split(".");return this.i18n({custom:!0,context:c,key:u,...l})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((l,c,u)=>i.has(c)||typeof l.argsProvider=="function"),this.updateI18nProperties(l=>typeof l.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((l,c,u)=>{var p;return((p=u?.context)===null||p===void 0?void 0:p.toLowerCase())===i}),this.updateI18nProperties(l=>l.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var l,c;let u=this,p=(m,h,g)=>g?.context&&g.key&&i(m,h,g)?{...g,message:this.i18n({context:g.context,key:g.key,custom:g.custom,...m})}:g;(l=this[Wr])===null||l===void 0||l.forEach((m,h)=>u[h]=p(m,h,u[h])),(c=this[Ql])===null||c===void 0||c.forEach((m,h)=>{var g;return u[h]=(g=u[h])===null||g===void 0?void 0:g.map(S=>p(m,h,S))})}updateI18nProperties(i){var l;(l=this[ec])===null||l===void 0||l.forEach((c,u)=>{i(c,u)&&(this[u]=this.i18n(c))})}addI18nMessages(i,l,c){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,l,c)}addI18nContext(i,l,c){let u=(typeof i=="string"?i:i.name).toLowerCase();c=typeof i=="string"?c:i.custom,this[Do].set(u,{isCustomContext:c}),this[zr].has(u)||this[zr].set(u,this.getI18nService(c).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(c).prepareContext(u,l)}hasI18nContext(i){return this[Do].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Do].forEach((i,l)=>this.addI18nContext(l,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[zr].forEach(i=>i()),this[zr].clear()}}return t=Do,o=zr,lu([(0,Jl.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),Bo=class extends Uo(Or.FtLitElement){},Mo=class extends Uo(Or.FtLitElementRedux){};var tc=v(P());var Aa=class{fromAttribute(t){if(!t)return[];try{let o=JSON.parse(t);return Array.isArray(o)?o.map(n=>typeof n=="string"?Cr.fromAttribute(n):n):[]}catch{return[]}}toAttribute(t){if(t!=null)return JSON.stringify(t)}},cu=new Aa;var rc=(e,t)=>(o,n)=>{var a;o.constructor.createProperty(n,{type:Object,hasChanged:tc.hasChanged,converter:Cr,...t}),o[Wr]=(a=o[Wr])!==null&&a!==void 0?a:new Map,o[Wr].set(n,e??{})};var ac=v(P());var $o=v(H()),Fo=v(J()),Ho=v(P());var oc=v(H());var nc=oc.css`
554
+ `}connectedCallback(){super.connectedCallback(),N.addEventListener(_t.eventName,this.reloadConfiguration)}disconnectedCallback(){N.addEventListener(_t.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(t){var o,n,a,i,l,c,u;super.update(t),t.has("baseUrl")&&(N.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&N.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&N.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&N.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&N.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&N.actions.noCustom(this.noCustom),t.has("editorMode")&&N.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&N.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&N.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(p=>fr.addContext(p)),t.has("openExternalDocumentInNewTab")&&N.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&N.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&N.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(N.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),N.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),N.actions.searchInAllLanguagesAllowed((l=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&l!==void 0?l:!1)),t.has("authenticationRequired")&&N.actions.authenticationRequired(this.authenticationRequired),t.has("availableContentLocales")&&N.actions.availableContentLocales((u=(c=this.availableContentLocales)===null||c===void 0?void 0:c.contentLocales)!==null&&u!==void 0?u:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>el(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};G.elementDefinitions={};G.styles=fs;oe([(0,pe.property)()],G.prototype,"baseUrl",void 0);oe([(0,pe.property)()],G.prototype,"apiIntegrationIdentifier",void 0);oe([(0,pe.property)()],G.prototype,"apiIntegrationAppVersion",void 0);oe([(0,pe.property)()],G.prototype,"uiLocale",void 0);oe([(0,Be.jsonProperty)(null)],G.prototype,"availableUiLocales",void 0);oe([(0,Be.jsonProperty)(null)],G.prototype,"metadataConfiguration",void 0);oe([(0,pe.property)({type:Boolean})],G.prototype,"editorMode",void 0);oe([(0,pe.property)({type:Boolean})],G.prototype,"noCustom",void 0);oe([(0,pe.property)({type:Boolean})],G.prototype,"openExternalDocumentInNewTab",void 0);oe([(0,pe.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],G.prototype,"noCustomComponent",void 0);oe([(0,pe.property)({type:Boolean})],G.prototype,"withManualResources",void 0);oe([(0,pe.property)({type:Boolean})],G.prototype,"navigatorOnline",void 0);oe([(0,pe.property)({type:Boolean})],G.prototype,"forcedOffline",void 0);oe([(0,pe.property)({type:Object})],G.prototype,"apiProvider",void 0);oe([(0,pe.property)({type:Boolean})],G.prototype,"authenticationRequired",void 0);oe([(0,Be.jsonProperty)([])],G.prototype,"messageContexts",void 0);oe([(0,Be.jsonProperty)(void 0)],G.prototype,"session",void 0);oe([(0,pe.state)()],G.prototype,"localesConfiguration",void 0);oe([(0,pe.state)()],G.prototype,"availableContentLocales",void 0);var va=v(J());function xd(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let o,n,a;if(Array.isArray(e)){if(o=e.length,o!=t.length)return!1;for(n=o;n--!==0;)if(!go(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!go(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let i=l=>Object.keys(l).filter(c=>l[c]!=null);if(a=i(e),o=a.length,o!==i(t).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[n]))return!1;for(n=o;n--!==0;){let l=a[n];if(!go(e[l],t[l]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function go(e,t){try{return xd(e,t)}catch{return!1}}function Mr(e,t){return!go(e,t)}function bo(e,t){let o=n=>n[e]===!0;return n=>{if(o(n))return n;let a=t(n);return a[e]=!0,a}}var rl=v(J(),1);var Yn=e=>{let t=e??{};return(o,n)=>{var a;let i={hasChanged:Mr,attribute:!1,...t};(0,rl.property)(i)(o,n);let l=o.constructor;l.reduxProperties=new Map(l.reduxProperties),l.reduxProperties.set(n,{selector:(a=t.selector)!==null&&a!==void 0?a:c=>c[n],store:t.store})}};var xo=class{constructor(){this.queue=[]}add(t,o=!1){o&&this.clear(t.type),this.queue.push(t)}consume(t){let o=this.queue.find(n=>n.type===t);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(t){typeof t=="string"?this.queue=this.queue.filter(o=>o.type!==t):this.queue=this.queue.filter(o=>!t.test(o.type))}};var Bt=v(J(),1);var ol=v(J(),1);function nl(e,t){let o=()=>JSON.parse(JSON.stringify(e));return(0,ol.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:Mr,...t??{}})}var vo=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,o;let n=[...this.callbacks];this.callbacks=[];let a=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let l of n)try{await l()}catch(c){a(c);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 il=v(H(),1);var So=globalThis,vd=So.ShadowRoot&&(So.ShadyCSS===void 0||So.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Xb=Symbol();var al=(e,t)=>{if(vd)e.adoptedStyleSheets=t.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of t){let n=document.createElement("style"),a=So.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,e.appendChild(n)}};var Co=class extends il.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([a,i])=>t.registry.define(a,i)));let o={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return al(n,t.elementStyles),n}};function sl(e,t,...o){var n;let a=e.querySelector(t);for(let i of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}var mr=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var c=e.length-1;c>=0;c--)(l=e[c])&&(i=(a<3?l(i):a>3?l(t,o,i):l(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},ul,ll=Symbol("constructorPrototype"),cl=Symbol("constructorName"),pl=Symbol("exportpartsDebouncer"),dl=Symbol("dynamicDependenciesLoaded"),yr=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};yr.eventName="exportparts-updated";var Ze=class extends Co{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[ul]=new vo(5),this.scheduleExportpartsUpdate=()=>{var t,o,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[pl].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)})},this[cl]=this.constructor.name,this[ll]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[cl]&&Object.setPrototypeOf(this,this[ll])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let o=this.constructor;o[dl]||(o[dl]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(yr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(yr.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new yr)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let i=[...a??[],n];o=sl(this.shadowRoot,...i)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}setExportpartsAttribute(t){var o,n,a,i,l,c;let u=g=>g!=null&&g.trim().length>0,p=t.filter(u).map(g=>g.trim());if(p.length===0){this.exportparts=void 0;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 S=(i=(a=g.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],x=(c=(l=g.getAttribute("exportparts"))===null||l===void 0?void 0:l.split(",").map(T=>T.split(":")[1]))!==null&&c!==void 0?c:[],O=[...S,...x].filter(u).map(T=>T.trim());for(let T of O)m.add(T)}if(m.size===0){this.exportparts=void 0;return}let h=[...m.values()].flatMap(g=>p.map(S=>`${g}:${S}--${g}`));this.exportparts=[...this.part,...h].join(", ")}};ul=pl;mr([(0,Bt.property)()],Ze.prototype,"exportpartsPrefix",void 0);mr([nl([])],Ze.prototype,"exportpartsPrefixes",void 0);mr([(0,Bt.property)({reflect:!0})],Ze.prototype,"exportparts",void 0);mr([(0,Bt.property)()],Ze.prototype,"customStylesheet",void 0);mr([(0,Bt.property)()],Ze.prototype,"elementToFocus",void 0);mr([(0,Bt.state)()],Ze.prototype,"useAdoptedStyleSheets",void 0);function Oo(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Ur=Symbol("internalReduxEventsUnsubscribers"),gt=Symbol("internalStoresUnsubscribers"),Mt=Symbol("internalStores"),Sd=bo(Symbol("withRedux"),function(e){var t,o,n;class a extends e{constructor(){super(...arguments),this[t]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(l){super.willUpdate(l),[...this.reduxConstructor.reduxReactiveProperties].some(c=>l.has(c))&&this.updateFromStores()}getUnnamedStore(){if(this[Mt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Mt].values()][0]}getStore(l){return l==null?this.getUnnamedStore():this[Mt].get(l)}addStore(l,c){var u;c=(u=c??l.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(c),this[Mt].set(c,l),this.subscribeToStore(c,l),this.updateFromStores()}removeStore(l){let c=typeof l=="string"?l:l.name;this.unsubscribeFromStore(c),this[Mt].delete(c)}setupStores(){this.unsubscribeFromStores(),this[Mt].forEach((l,c)=>this.subscribeToStore(c,l)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((l,c)=>{let u=this.constructor.getPropertyOptions(c);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:c)){let p=this.getStore(l.store);p&&(l.store?this[gt].has(l.store):this[gt].size>0)&&(this[c]=l.selector(p.getState(),this))}})}subscribeToStore(l,c){var u;this[gt].set(l,c.subscribe(()=>this.updateFromStores())),this[Ur].set(l,[]),Oo(c)&&c.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((p,m)=>{if(typeof this[m]=="function"&&(!p.store||c.name===p.store)){let h=g=>this[m](g);c.addEventListener(p.eventName,h),this[Ur].get(l).push(()=>c.removeEventListener(p.eventName,h))}})),this.onStoreAvailable(l)}unsubscribeFromStores(){this[gt].forEach((l,c)=>this.unsubscribeFromStore(c))}unsubscribeFromStore(l){var c;this[gt].has(l)&&this[gt].get(l)(),this[gt].delete(l),(c=this[Ur].get(l))===null||c===void 0||c.forEach(u=>u()),this[Ur].delete(l)}onStoreAvailable(l){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=gt,o=Mt,n=Ur,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),fl=class extends Sd(Ze){};function Ne(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(l){return"'"+l+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function it(e){return!!e&&!!e[q]}function Me(e){var t;return!!e&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===Ld}(e)||Array.isArray(e)||!!e[vl]||!!(!((t=e.constructor)===null||t===void 0)&&t[vl])||aa(e)||ia(e))}function Ut(e,t,o){o===void 0&&(o=!1),xr(e)===0?(o?Object.keys:br)(e).forEach(function(n){o&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,a){return t(a,n,e)})}function xr(e){var t=e[q];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:aa(e)?2:ia(e)?3:0}function gr(e,t){return xr(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Cd(e,t){return xr(e)===2?e.get(t):e[t]}function Sl(e,t,o){var n=xr(e);n===2?e.set(t,o):n===3?e.add(o):e[t]=o}function Cl(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function aa(e){return Rd&&e instanceof Map}function ia(e){return Td&&e instanceof Set}function bt(e){return e.o||e.t}function sa(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Al(e);delete t[q];for(var o=br(t),n=0;n<o.length;n++){var a=o[n],i=t[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function la(e,t){return t===void 0&&(t=!1),ca(e)||it(e)||!Me(e)||(xr(e)>1&&(e.set=e.add=e.clear=e.delete=Od),Object.freeze(e),t&&Ut(e,function(o,n){return la(n,!0)},!0)),e}function Od(){Ne(2)}function ca(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function qe(e){var t=na[e];return t||Ne(18,e),t}function Ed(e,t){na[e]||(na[e]=t)}function ta(){return Fr}function Xn(e,t){t&&(qe("Patches"),e.u=[],e.s=[],e.v=t)}function Eo(e){ra(e),e.p.forEach(Ad),e.p=null}function ra(e){e===Fr&&(Fr=e.l)}function hl(e){return Fr={p:[],l:Fr,h:e,m:!0,_:0}}function Ad(e){var t=e[q];t.i===0||t.i===1?t.j():t.g=!0}function Jn(e,t){t._=t.p.length;var o=t.p[0],n=e!==void 0&&e!==o;return t.h.O||qe("ES5").S(t,e,n),n?(o[q].P&&(Eo(t),Ne(4)),Me(e)&&(e=Ao(t,e),t.l||wo(t,e)),t.u&&qe("Patches").M(o[q].t,e,t.u,t.s)):e=Ao(t,o,[]),Eo(t),t.u&&t.v(t.u,t.s),e!==El?e:void 0}function Ao(e,t,o){if(ca(t))return t;var n=t[q];if(!n)return Ut(t,function(c,u){return yl(e,n,t,c,u,o)},!0),t;if(n.A!==e)return t;if(!n.P)return wo(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=sa(n.k):n.o,i=a,l=!1;n.i===3&&(i=new Set(a),a.clear(),l=!0),Ut(i,function(c,u){return yl(e,n,a,c,u,o,l)}),wo(e,a,!1),o&&e.u&&qe("Patches").N(n,o,e.u,e.s)}return n.o}function yl(e,t,o,n,a,i,l){if(it(a)){var c=Ao(e,a,i&&t&&t.i!==3&&!gr(t.R,n)?i.concat(n):void 0);if(Sl(o,n,c),!it(c))return;e.m=!1}else l&&o.add(a);if(Me(a)&&!ca(a)){if(!e.h.D&&e._<1)return;Ao(e,a),t&&t.A.l||wo(e,a)}}function wo(e,t,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&la(t,o)}function Qn(e,t){var o=e[q];return(o?bt(o):e)[t]}function ml(e,t){if(t in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,t);if(n)return n;o=Object.getPrototypeOf(o)}}function xt(e){e.P||(e.P=!0,e.l&&xt(e.l))}function ea(e){e.o||(e.o=sa(e.t))}function oa(e,t,o){var n=aa(t)?qe("MapSet").F(t,o):ia(t)?qe("MapSet").T(t,o):e.O?function(a,i){var l=Array.isArray(a),c={i:l?1:0,A:i?i.A:ta(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},u=c,p=Hr;l&&(u=[c],p=$r);var m=Proxy.revocable(u,p),h=m.revoke,g=m.proxy;return c.k=g,c.j=h,g}(t,o):qe("ES5").J(t,o);return(o?o.A:ta()).p.push(n),n}function wd(e){return it(e)||Ne(22,e),function t(o){if(!Me(o))return o;var n,a=o[q],i=xr(o);if(a){if(!a.P&&(a.i<4||!qe("ES5").K(a)))return a.t;a.I=!0,n=gl(o,i),a.I=!1}else n=gl(o,i);return Ut(n,function(l,c){a&&Cd(a.t,l)===c||Sl(n,l,t(c))}),i===3?new Set(n):n}(e)}function gl(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return sa(e)}function Ol(){function e(l,c){var u=i[l];return u?u.enumerable=c:i[l]=u={configurable:!0,enumerable:c,get:function(){var p=this[q];return Hr.get(p,l)},set:function(p){var m=this[q];Hr.set(m,l,p)}},u}function t(l){for(var c=l.length-1;c>=0;c--){var u=l[c][q];if(!u.P)switch(u.i){case 5:n(u)&&xt(u);break;case 4:o(u)&&xt(u)}}}function o(l){for(var c=l.t,u=l.k,p=br(u),m=p.length-1;m>=0;m--){var h=p[m];if(h!==q){var g=c[h];if(g===void 0&&!gr(c,h))return!0;var S=u[h],x=S&&S[q];if(x?x.t!==g:!Cl(S,g))return!0}}var O=!!c[q];return p.length!==br(c).length+(O?0:1)}function n(l){var c=l.k;if(c.length!==l.t.length)return!0;var u=Object.getOwnPropertyDescriptor(c,c.length-1);if(u&&!u.get)return!0;for(var p=0;p<c.length;p++)if(!c.hasOwnProperty(p))return!0;return!1}function a(l){l.g&&Ne(3,JSON.stringify(bt(l)))}var i={};Ed("ES5",{J:function(l,c){var u=Array.isArray(l),p=function(h,g){if(h){for(var S=Array(g.length),x=0;x<g.length;x++)Object.defineProperty(S,""+x,e(x,!0));return S}var O=Al(g);delete O[q];for(var T=br(O),R=0;R<T.length;R++){var L=T[R];O[L]=e(L,h||!!O[L].enumerable)}return Object.create(Object.getPrototypeOf(g),O)}(u,l),m={i:u?5:4,A:c?c.A:ta(),P:!1,I:!1,R:{},l:c,t:l,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,q,{value:m,writable:!0}),p},S:function(l,c,u){u?it(c)&&c[q].A===l&&t(l.p):(l.u&&function p(m){if(m&&typeof m=="object"){var h=m[q];if(h){var g=h.t,S=h.k,x=h.R,O=h.i;if(O===4)Ut(S,function(M){M!==q&&(g[M]!==void 0||gr(g,M)?x[M]||p(S[M]):(x[M]=!0,xt(h)))}),Ut(g,function(M){S[M]!==void 0||gr(S,M)||(x[M]=!1,xt(h))});else if(O===5){if(n(h)&&(xt(h),x.length=!0),S.length<g.length)for(var T=S.length;T<g.length;T++)x[T]=!1;else for(var R=g.length;R<S.length;R++)x[R]=!0;for(var L=Math.min(S.length,g.length),k=0;k<L;k++)S.hasOwnProperty(k)||(x[k]=!0),x[k]===void 0&&p(S[k])}}}}(l.p[0]),t(l.p))},K:function(l){return l.i===4?o(l):n(l)}})}var bl,Fr,da=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Rd=typeof Map<"u",Td=typeof Set<"u",xl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",El=da?Symbol.for("immer-nothing"):((bl={})["immer-nothing"]=!0,bl),vl=da?Symbol.for("immer-draftable"):"__$immer_draftable",q=da?Symbol.for("immer-state"):"__$immer_state";var Ld=""+Object.prototype.constructor,br=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Al=Object.getOwnPropertyDescriptors||function(e){var t={};return br(e).forEach(function(o){t[o]=Object.getOwnPropertyDescriptor(e,o)}),t},na={},Hr={get:function(e,t){if(t===q)return e;var o=bt(e);if(!gr(o,t))return function(a,i,l){var c,u=ml(i,l);return u?"value"in u?u.value:(c=u.get)===null||c===void 0?void 0:c.call(a.k):void 0}(e,o,t);var n=o[t];return e.I||!Me(n)?n:n===Qn(e.t,t)?(ea(e),e.o[t]=oa(e.A.h,n,e)):n},has:function(e,t){return t in bt(e)},ownKeys:function(e){return Reflect.ownKeys(bt(e))},set:function(e,t,o){var n=ml(bt(e),t);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var a=Qn(bt(e),t),i=a?.[q];if(i&&i.t===o)return e.o[t]=o,e.R[t]=!1,!0;if(Cl(o,a)&&(o!==void 0||gr(e.t,t)))return!0;ea(e),xt(e)}return e.o[t]===o&&(o!==void 0||t in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[t])||(e.o[t]=o,e.R[t]=!0),!0},deleteProperty:function(e,t){return Qn(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,ea(e),xt(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var o=bt(e),n=Reflect.getOwnPropertyDescriptor(o,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:o[t]}},defineProperty:function(){Ne(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Ne(12)}},$r={};Ut(Hr,function(e,t){$r[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),$r.deleteProperty=function(e,t){return $r.set.call(this,e,t,void 0)},$r.set=function(e,t,o){return Hr.set.call(this,e[0],t,o,e[0])};var Nd=function(){function e(o){var n=this;this.O=xl,this.D=!0,this.produce=function(a,i,l){if(typeof a=="function"&&typeof i!="function"){var c=i;i=a;var u=n;return function(O){var T=this;O===void 0&&(O=c);for(var R=arguments.length,L=Array(R>1?R-1:0),k=1;k<R;k++)L[k-1]=arguments[k];return u.produce(O,function(M){var U;return(U=i).call.apply(U,[T,M].concat(L))})}}var p;if(typeof i!="function"&&Ne(6),l!==void 0&&typeof l!="function"&&Ne(7),Me(a)){var m=hl(n),h=oa(n,a,void 0),g=!0;try{p=i(h),g=!1}finally{g?Eo(m):ra(m)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return Xn(m,l),Jn(O,m)},function(O){throw Eo(m),O}):(Xn(m,l),Jn(p,m))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===El&&(p=void 0),n.D&&la(p,!0),l){var S=[],x=[];qe("Patches").M(a,p,S,x),l(S,x)}return p}Ne(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var m=arguments.length,h=Array(m>1?m-1:0),g=1;g<m;g++)h[g-1]=arguments[g];return n.produceWithPatches(p,function(S){return a.apply(void 0,[S].concat(h))})};var l,c,u=n.produce(a,i,function(p,m){l=p,c=m});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,l,c]}):[u,l,c]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var t=e.prototype;return t.createDraft=function(o){Me(o)||Ne(8),it(o)&&(o=wd(o));var n=hl(this),a=oa(this,o,void 0);return a[q].C=!0,ra(n),a},t.finishDraft=function(o,n){var a=o&&o[q],i=a.A;return Xn(i,n),Jn(void 0,i)},t.setAutoFreeze=function(o){this.D=o},t.setUseProxies=function(o){o&&!xl&&Ne(20),this.O=o},t.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var l=qe("Patches").$;return it(o)?l(o,n):this.produce(o,function(c){return l(c,n)})},e}(),Oe=new Nd,Id=Oe.produce,px=Oe.produceWithPatches.bind(Oe),fx=Oe.setAutoFreeze.bind(Oe),hx=Oe.setUseProxies.bind(Oe),yx=Oe.applyPatches.bind(Oe),mx=Oe.createDraft.bind(Oe),gx=Oe.finishDraft.bind(Oe),Ro=Id;function $t(e){"@babel/helpers - typeof";return $t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$t(e)}function wl(e,t){if($t(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,t||"default");if($t(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rl(e){var t=wl(e,"string");return $t(t)=="symbol"?t:t+""}function Tl(e,t,o){return(t=Rl(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Ll(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,n)}return o}function ua(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?Ll(Object(o),!0).forEach(function(n){Tl(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ll(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function fe(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 Nl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),pa=function(){return Math.random().toString(36).substring(7).split("").join(".")},To={INIT:"@@redux/INIT"+pa(),REPLACE:"@@redux/REPLACE"+pa(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+pa()}};function Pd(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function fa(e,t,o){var n;if(typeof t=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(fe(0));if(typeof t=="function"&&typeof o>"u"&&(o=t,t=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(fe(1));return o(fa)(e,t)}if(typeof e!="function")throw new Error(fe(2));var a=e,i=t,l=[],c=l,u=!1;function p(){c===l&&(c=l.slice())}function m(){if(u)throw new Error(fe(3));return i}function h(O){if(typeof O!="function")throw new Error(fe(4));if(u)throw new Error(fe(5));var T=!0;return p(),c.push(O),function(){if(T){if(u)throw new Error(fe(6));T=!1,p();var L=c.indexOf(O);c.splice(L,1),l=null}}}function g(O){if(!Pd(O))throw new Error(fe(7));if(typeof O.type>"u")throw new Error(fe(8));if(u)throw new Error(fe(9));try{u=!0,i=a(i,O)}finally{u=!1}for(var T=l=c,R=0;R<T.length;R++){var L=T[R];L()}return O}function S(O){if(typeof O!="function")throw new Error(fe(10));a=O,g({type:To.REPLACE})}function x(){var O,T=h;return O={subscribe:function(L){if(typeof L!="object"||L===null)throw new Error(fe(11));function k(){L.next&&L.next(m())}k();var M=T(k);return{unsubscribe:M}}},O[Nl]=function(){return this},O}return g({type:To.INIT}),n={dispatch:g,subscribe:h,getState:m,replaceReducer:S},n[Nl]=x,n}function _d(e){Object.keys(e).forEach(function(t){var o=e[t],n=o(void 0,{type:To.INIT});if(typeof n>"u")throw new Error(fe(12));if(typeof o(void 0,{type:To.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(fe(13))})}function Il(e){for(var t=Object.keys(e),o={},n=0;n<t.length;n++){var a=t[n];typeof e[a]=="function"&&(o[a]=e[a])}var i=Object.keys(o),l,c;try{_d(o)}catch(u){c=u}return function(p,m){if(p===void 0&&(p={}),c)throw c;if(0)var h;for(var g=!1,S={},x=0;x<i.length;x++){var O=i[x],T=o[O],R=p[O],L=T(R,m);if(typeof L>"u"){var k=m&&m.type;throw new Error(fe(14))}S[O]=L,g=g||L!==R}return g=g||i.length!==Object.keys(p).length,g?S:p}}function vr(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function Pl(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(fe(15))},l={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},c=t.map(function(u){return u(l)});return i=vr.apply(void 0,c)(a.dispatch),ua(ua({},a),{},{dispatch:i})}}}function _l(e){var t=function(n){var a=n.dispatch,i=n.getState;return function(l){return function(c){return typeof c=="function"?c(a,i,e):l(c)}}};return t}var kl=_l();kl.withExtraArgument=_l;var ha=kl;var $l=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(t,o)};return function(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(t,o);function n(){this.constructor=t}t.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),kd=function(e,t){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,l;return l={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function c(p){return function(m){return u([p,m])}}function u(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){o.label=p[1];break}if(p[0]===6&&o.label<i[1]){o.label=i[1],i=p;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(p);break}i[2]&&o.ops.pop(),o.trys.pop();continue}p=t.call(e,o)}catch(m){p=[6,m],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Sr=function(e,t){for(var o=0,n=t.length,a=e.length;o<n;o++,a++)e[a]=t[o];return e},Dd=Object.defineProperty,Bd=Object.defineProperties,Md=Object.getOwnPropertyDescriptors,Dl=Object.getOwnPropertySymbols,Ud=Object.prototype.hasOwnProperty,$d=Object.prototype.propertyIsEnumerable,Bl=function(e,t,o){return t in e?Dd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o},vt=function(e,t){for(var o in t||(t={}))Ud.call(t,o)&&Bl(e,o,t[o]);if(Dl)for(var n=0,a=Dl(t);n<a.length;n++){var o=a[n];$d.call(t,o)&&Bl(e,o,t[o])}return e},ya=function(e,t){return Bd(e,Md(t))},Fd=function(e,t,o){return new Promise(function(n,a){var i=function(u){try{c(o.next(u))}catch(p){a(p)}},l=function(u){try{c(o.throw(u))}catch(p){a(p)}},c=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(i,l)};c((o=o.apply(e,t)).next())})};var Hd=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?vr:vr.apply(null,arguments)},Dx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function zd(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var o=t;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return t===o}var Wd=function(e){$l(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(t.bind.apply(t,Sr([void 0],o[0].concat(this)))):new(t.bind.apply(t,Sr([void 0],o.concat(this))))},t}(Array),Gd=function(e){$l(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(t.bind.apply(t,Sr([void 0],o[0].concat(this)))):new(t.bind.apply(t,Sr([void 0],o.concat(this))))},t}(Array);function ba(e){return Me(e)?Ro(e,function(){}):e}function jd(e){return typeof e=="boolean"}function Kd(){return function(t){return Vd(t)}}function Vd(e){e===void 0&&(e={});var t=e.thunk,o=t===void 0?!0:t,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,l=i===void 0?!0:i,c=new Wd;if(o&&(jd(o)?c.push(ha):c.push(ha.withExtraArgument(o.extraArgument))),0){if(a)var u;if(l)var p}return c}var ma=!0;function Fl(e){var t=Kd(),o=e||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,l=i===void 0?t():i,c=o.devTools,u=c===void 0?!0:c,p=o.preloadedState,m=p===void 0?void 0:p,h=o.enhancers,g=h===void 0?void 0:h,S;if(typeof a=="function")S=a;else if(zd(a))S=Il(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=l;if(typeof x=="function"&&(x=x(t),!ma&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ma&&x.some(function(M){return typeof M!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=Pl.apply(void 0,x),T=vr;u&&(T=Hd(vt({trace:!ma},typeof u=="object"&&u)));var R=new Gd(O),L=R;Array.isArray(g)?L=Sr([O],g):typeof g=="function"&&(L=g(R));var k=T.apply(void 0,L);return fa(S,m,k)}function St(e,t){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(t){var i=t.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return vt(vt({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 Hl(e){var t={},o=[],n,a={addCase:function(i,l){var c=typeof i=="string"?i:i.type;if(c in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[c]=l,a},addMatcher:function(i,l){return o.push({matcher:i,reducer:l}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[t,o,n]}function Zd(e){return typeof e=="function"}function qd(e,t,o,n){o===void 0&&(o=[]);var a=typeof t=="function"?Hl(t):[t,o,n],i=a[0],l=a[1],c=a[2],u;if(Zd(e))u=function(){return ba(e())};else{var p=ba(e);u=function(){return p}}function m(h,g){h===void 0&&(h=u());var S=Sr([i[g.type]],l.filter(function(x){var O=x.matcher;return O(g)}).map(function(x){var O=x.reducer;return O}));return S.filter(function(x){return!!x}).length===0&&(S=[c]),S.reduce(function(x,O){if(O)if(it(x)){var T=x,R=O(T,g);return R===void 0?x:R}else{if(Me(x))return Ro(x,function(L){return O(L,g)});var R=O(x,g);if(R===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return R}return x},h)}return m.getInitialState=u,m}function Yd(e,t){return e+"/"+t}function zl(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:ba(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},l={},c={};a.forEach(function(m){var h=n[m],g=Yd(t,m),S,x;"reducer"in h?(S=h.reducer,x=h.prepare):S=h,i[m]=S,l[g]=S,c[m]=x?St(g,x):St(g)});function u(){var m=typeof e.extraReducers=="function"?Hl(e.extraReducers):[e.extraReducers],h=m[0],g=h===void 0?{}:h,S=m[1],x=S===void 0?[]:S,O=m[2],T=O===void 0?void 0:O,R=vt(vt({},g),l);return qd(o,function(L){for(var k in R)L.addCase(k,R[k]);for(var M=0,U=x;M<U.length;M++){var be=U[M];L.addMatcher(be.matcher,be.reducer)}T&&L.addDefaultCase(T)})}var p;return{name:t,reducer:function(m,h){return p||(p=u()),p(m,h)},actions:c,caseReducers:i,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var Xd="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Jd=function(e){e===void 0&&(e=21);for(var t="",o=e;o--;)t+=Xd[Math.random()*64|0];return t},Qd=["name","message","stack","code"],ga=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),Ml=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),eu=function(e){if(typeof e=="object"&&e!==null){for(var t={},o=0,n=Qd;o<n.length;o++){var a=n[o];typeof e[a]=="string"&&(t[a]=e[a])}return t}return{message:String(e)}},$x=function(){function e(t,o,n){var a=St(t+"/fulfilled",function(m,h,g,S){return{payload:m,meta:ya(vt({},S||{}),{arg:g,requestId:h,requestStatus:"fulfilled"})}}),i=St(t+"/pending",function(m,h,g){return{payload:void 0,meta:ya(vt({},g||{}),{arg:h,requestId:m,requestStatus:"pending"})}}),l=St(t+"/rejected",function(m,h,g,S,x){return{payload:S,error:(n&&n.serializeError||eu)(m||"Rejected"),meta:ya(vt({},x||{}),{arg:g,requestId:h,rejectedWithValue:!!S,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),c=!1,u=typeof AbortController<"u"?AbortController:function(){function m(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return m.prototype.abort=function(){},m}();function p(m){return function(h,g,S){var x=n?.idGenerator?n.idGenerator(m):Jd(),O=new u,T,R=!1;function L(M){T=M,O.abort()}var k=function(){return Fd(this,null,function(){var M,U,be,We,ye,Ge,ce;return kd(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),We=(M=n?.condition)==null?void 0:M.call(n,m,{getState:g,extra:S}),ru(We)?[4,We]:[3,2];case 1:We=y.sent(),y.label=2;case 2:if(We===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return R=!0,ye=new Promise(function(b,_){return O.signal.addEventListener("abort",function(){return _({name:"AbortError",message:T||"Aborted"})})}),h(i(x,m,(U=n?.getPendingMeta)==null?void 0:U.call(n,{requestId:x,arg:m},{getState:g,extra:S}))),[4,Promise.race([ye,Promise.resolve(o(m,{dispatch:h,getState:g,extra:S,requestId:x,signal:O.signal,abort:L,rejectWithValue:function(b,_){return new ga(b,_)},fulfillWithValue:function(b,_){return new Ml(b,_)}})).then(function(b){if(b instanceof ga)throw b;return b instanceof Ml?a(b.payload,x,m,b.meta):a(b,x,m)})])];case 3:return be=y.sent(),[3,5];case 4:return Ge=y.sent(),be=Ge instanceof ga?l(null,x,m,Ge.payload,Ge.meta):l(Ge,x,m),[3,5];case 5:return ce=n&&!n.dispatchConditionRejection&&l.match(be)&&be.meta.condition,ce||h(be),[2,be]}})})}();return Object.assign(k,{abort:L,requestId:x,arg:m,unwrap:function(){return k.then(tu)}})}}return Object.assign(p,{pending:i,rejected:l,fulfilled:a,typePrefix:t})}return e.withTypes=function(){return e},e}();function tu(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function ru(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Wl="listener",Gl="completed",jl="cancelled",Fx="task-"+jl,Hx="task-"+Gl,zx=Wl+"-"+jl,Wx=Wl+"-"+Gl;var xa="listenerMiddleware";var Gx=St(xa+"/add"),jx=St(xa+"/removeAll"),Kx=St(xa+"/remove");var Ul,Vx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(Ul||(Ul=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},ou=function(e){return function(t){setTimeout(t,e)}},Zx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ou(10);Ol();var nu=bo(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}),Lo=class extends nu(Object){};window.ftReduxStores||(window.ftReduxStores={});var Kl=class e extends Lo{static get(t){var o;let n=typeof t=="string"?t:t.name,a=typeof t=="string"?void 0:t,i=window.ftReduxStores[n];if(Oo(i))return i;if(a==null)return;let l=zl({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),c=Fl({reducer:(u,p)=>p.type==="CLEAR_FT_REDUX_STORE"?l.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...p.overwrites}:l.reducer(u,p)});return window.ftReduxStores[a.name]=new e(l,c,a.eventBus)}constructor(t,o,n){super(),this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new xo;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,l,c)=>{let u=l,p=i[u];return p?(...m)=>{let h=p(...m.map(a));return this.reduxStore.dispatch(h),h}:m=>{this.setState({[u]:a(m)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var No=class{static format(t,o,n,a){return window.moment?window.moment(t).locale(o).format(this.getMomentDateFormat(n,a)):this.getIntlDateTime(t,o,n,a)}static getMomentDateFormat(t,o){return t?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(t,o,n,a){let i=typeof t=="string"?new Date(t):t,l=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(i);if(!a)return l;let c=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(i);return`${l} ${c}`}static getTimezoneAsString(){let t=n=>String(Math.floor(n)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${t(Math.abs(o)/60)}:${t(Math.abs(o)%60)}`}};var Vl=v(P()),Io=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var c=e.length-1;c>=0;c--)(l=e[c])&&(i=(a<3?l(i):a>3?l(t,o,i):l(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},bv=(0,Vl.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(N)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,i;return((i=(a=this.metadataDescriptors.find(c=>c.key===n))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1)?c=>No.format(c,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Io([(0,va.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Io([(0,va.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Io([Yn({store:N.name,selector:o=>{var n,a;return(a=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],t.prototype,"metadataDescriptors",void 0),Io([Yn({store:N.name})],t.prototype,"uiLocale",void 0),t});var ko=v(P());var Po=class extends Ce{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=N.getState().session;return!!t?.sessionAuthenticated}};var _o=class extends Ce{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let t=N.getState().session;return!!t?.sessionAuthenticated}};var au="ft-user-assets",iu={setAssetCount:(e,t)=>{let{userAssetType:o,count:n}=t.payload.assetCount;e.assetCounts.allAsset[o]=n},clearAssetCount:e=>{Object.values(Le).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let o=t.payload.mapId;e.assetCounts.bookmarkByMap[o]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:o,mapId:n,asset:a}=t.payload;Ca(e,o,[...Sa(e,o),a]),Zl(e,o,1,n),ql(e,a)},editAsset:(e,t)=>{let{assetType:o,asset:n}=t.payload;Ca(e,o,Sa(e,o).map(a=>a.id===n.id?n:a)),ql(e,n)},removeAsset:(e,t)=>{let{assetType:o,mapId:n,assetId:a}=t.payload;Ca(e,o,Sa(e,o).filter(i=>i.id!==a)),Zl(e,o,-1,n)}},Yl={[Le.SEARCHES]:"savedSearches",[Le.BOOKMARKS]:"bookmarks",[Le.BOOKS]:void 0,[Le.COLLECTIONS]:void 0},Sa=(e,t)=>{var o;let n=Yl[t];return n?(o=e[n])!==null&&o!==void 0?o:[]:[]},Ca=(e,t,o)=>{let n=Yl[t];n&&(e[n]=o)},Zl=(e,t,o,n)=>{let a=e.assetCounts.allAsset[t];if(a!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,a+o),t===Le.BOOKMARKS&&n)){let i=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,i+o)}},ql=(e,t)=>{let o=e.assetLabels.map(a=>a.title),n=t.labels.filter(a=>!o.includes(a)).map(a=>({title:a}));e.assetLabels.push(...n)},Ee=ko.FtReduxStore.get({name:au,reducers:iu,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Le).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Oa=class{constructor(t=new Po,o=new _o){this.assetCountsService=t,this.assetLabelsService=o,this.currentSession=N.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new co,this.savedSearchesService=new yo,N.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:o}=N.getState();(0,ko.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Ee.actions.clearAssetCount(),Ee.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ee.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ee.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();Ee.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();Ee.actions.assetLabels(t)}async loadAssetCount(t){let o=await this.assetCountsService.getUserAssetCount(t);o&&Ee.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(t){let o=await this.assetCountsService.getUserBookmarkCountByMap(t);o&&Ee.actions.setBookmarkCountByMap({count:o.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let o=Object.keys(Ee.getState().assetCounts.bookmarkByMap).length!==0;t===Le.BOOKMARKS&&o&&Ee.actions.clearBookmarkCountByMap(),Ee.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let o=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Ee.actions.bookmarks(o)}}},su=new Oa;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=su);(0,Xl.customElement)("ft-app-context")(G);var Jl=v(J());var Ea=class{fromLocalizableLabel(t){return t.type=="PLAIN_TEXT"?{message:t.text}:{key:t.key,custom:t.type=="LOCALIZED_CUSTOM",context:t.context,message:t.key}}fromAttribute(t){if(t!=null)try{return JSON.parse(t)}catch{if(this.isI18nKey(t)){let[n,a]=t.split(".");return{context:n,key:a,custom:!0,message:""}}return{message:t}}}toAttribute(t){if(t!=null)return JSON.stringify(t)}isI18nKey(t){return t.match(/^[\w-]+\.[\w-]+$/)}},Cr=new Ea;var lu=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var c=e.length-1;c>=0;c--)(l=e[c])&&(i=(a<3?l(i):a>3?l(t,o,i):l(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},Wr=Symbol("i18nAttributes"),Ql=Symbol("i18nListAttributes"),ec=Symbol("i18nProperties"),Do=Symbol("i18nContexts"),zr=Symbol("i18nUnsubs"),Uo=(0,Or.applyMixinOnce)(Symbol("withI18n"),function(e){var t,o;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[o]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?po:fr}i18n(i){let{context:l,key:c,message:u}=i,{custom:p,args:m,argsProvider:h}=i;if(l&&c){this.hasI18nContext(l)||this.addI18nContext(l,void 0,p);let g=m??(h?h(this):[]);return this.getI18nService(p).resolveMessage(l,c,...g)}return u}async awaitI18n(i){let{context:l,custom:c}=i;return l&&await this.getI18nService(c).prepareContext(l),this.i18n(i)}customI18n(i,l){if(Cr.isI18nKey(i)){let[c,u]=i.split(".");return this.i18n({custom:!0,context:c,key:u,...l})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((l,c,u)=>i.has(c)||typeof l.argsProvider=="function"),this.updateI18nProperties(l=>typeof l.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((l,c,u)=>{var p;return((p=u?.context)===null||p===void 0?void 0:p.toLowerCase())===i}),this.updateI18nProperties(l=>l.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var l,c;let u=this,p=(m,h,g)=>g?.context&&g.key&&i(m,h,g)?{...g,message:this.i18n({context:g.context,key:g.key,custom:g.custom,...m})}:g;(l=this[Wr])===null||l===void 0||l.forEach((m,h)=>u[h]=p(m,h,u[h])),(c=this[Ql])===null||c===void 0||c.forEach((m,h)=>{var g;return u[h]=(g=u[h])===null||g===void 0?void 0:g.map(S=>p(m,h,S))})}updateI18nProperties(i){var l;(l=this[ec])===null||l===void 0||l.forEach((c,u)=>{i(c,u)&&(this[u]=this.i18n(c))})}addI18nMessages(i,l,c){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,l,c)}addI18nContext(i,l,c){let u=(typeof i=="string"?i:i.name).toLowerCase();c=typeof i=="string"?c:i.custom,this[Do].set(u,{isCustomContext:c}),this[zr].has(u)||this[zr].set(u,this.getI18nService(c).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(c).prepareContext(u,l)}hasI18nContext(i){return this[Do].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Do].forEach((i,l)=>this.addI18nContext(l,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[zr].forEach(i=>i()),this[zr].clear()}}return t=Do,o=zr,lu([(0,Jl.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),Bo=class extends Uo(Or.FtLitElement){},Mo=class extends Uo(Or.FtLitElementRedux){};var tc=v(P());var Aa=class{fromAttribute(t){if(!t)return[];try{let o=JSON.parse(t);return Array.isArray(o)?o.map(n=>typeof n=="string"?Cr.fromAttribute(n):n):[]}catch{return[]}}toAttribute(t){if(t!=null)return JSON.stringify(t)}},cu=new Aa;var rc=(e,t)=>(o,n)=>{var a;o.constructor.createProperty(n,{type:Object,hasChanged:tc.hasChanged,converter:Cr,...t}),o[Wr]=(a=o[Wr])!==null&&a!==void 0?a:new Map,o[Wr].set(n,e??{})};var ac=v(P());var $o=v(H()),Fo=v(J()),Ho=v(P());var oc=v(H());var nc=oc.css`
555
555
  `;var Gr=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var c=e.length-1;c>=0;c--)(l=e[c])&&(i=(a<3?l(i):a>3?l(t,o,i):l(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},Ue=class extends Mo{constructor(){super(),this.editorMode=!1,this.addStore(N)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":$o.nothing:$o.html`
556
556
  <span class="ft-i18n">
557
557
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
@@ -571,12 +571,12 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
571
571
  </div>
572
572
  </div>
573
573
  </div>
574
- `}setupFor(t){this.eventsTarget!==t&&(this.removeHandlers(),this.eventsTarget=t,this.eventsTarget.addEventListener("mouseenter",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseenter",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(o=>t.has(o))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}async showTemporaryText(t,o){let n=this.manual;this.manual=!0;let a=this.text;this.text={message:t},await this.show(o),this.text=a,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",us(this.slottedElement,this.tooltip,this.position).then(({x:t,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${Ie.designSystemVariables.transitionDuration}, left ${Ie.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(t){return this.manual||(0,Ie.eventPathContainsMatchingElement)(t,this.ignoreMatchingElements,this.eventsTarget)}};ne.elementDefinitions={"ft-typography":ge};ne.styles=Fi;$e([rc()],ne.prototype,"text",void 0);$e([(0,Pe.property)({type:Boolean})],ne.prototype,"manual",void 0);$e([(0,Pe.property)({type:Boolean})],ne.prototype,"inline",void 0);$e([(0,Ie.numberProperty)()],ne.prototype,"delay",void 0);$e([(0,Pe.property)()],ne.prototype,"position",void 0);$e([(0,Ie.jsonProperty)([])],ne.prototype,"ignoreMatchingElements",void 0);$e([(0,Pe.queryAssignedNodes)()],ne.prototype,"slotNodes",void 0);$e([(0,Pe.query)(".ft-tooltip--container")],ne.prototype,"container",void 0);$e([(0,Pe.query)(".ft-tooltip")],ne.prototype,"tooltip",void 0);$e([(0,Pe.query)(".ft-tooltip--content")],ne.prototype,"tooltipContent",void 0);$e([(0,Pe.state)()],ne.prototype,"visible",void 0);(0,sc.customElement)("ft-tooltip")(ne);var pc=v(P());var jr=v(H()),Ct=v(J()),dc=v(P()),uc=v(cc());var Ft;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.OFFLINE="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.ONLINE="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.CIRCLE_STOP="&#xe984;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.ROUTE="&#xe992;",e.CIRCLE_USER_SLASH="&#xe993;",e.CIRCLE_USER_CHECK="&#xe994;",e.LIST_MAGNIFYING_GLASS="&#xe995;",e.MEDAL="&#xe996;",e.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",e.ARROW_TURN_DOWN_RIGHT="&#xe998;",e.FLASK="&#xe999;",e.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",e.HOURGLASS_END="&#xe99b;",e.CIRCLE_QUESTION="&#xe99c;",e.GRIP_LINES_SOLID="&#xe99d;",e.TRANSLATE_SPARKLE_SOLID="&#xe99e;",e.CODE="&#xe99f;",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",e.PAPER_PLANE_SLASH="&#xe9a1;",e.COMPRESS="&#xe9a2;",e.EXPAND="&#xe9a3;",e.ARROW_ROTATE_LEFT="&#xe9a4;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;",e.MOBILE_SMALL="&#xe9a5;",e.SPARKLES="&#xe9a6;",e.HAND_SOLID="&#xe9a7;",e.CLOCK_SOLID="&#xe9a8;",e.CONTEXT_MENU_CURSOR="&#xe9a9;",e.LANGUAGE_SLASH="&#xe9aa;",e.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",e.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",e.BOOKMARK_SLASH="&#xe9ad;",e.CIRCLE_PAUSE="&#xe9ae;",e.CIRCLE_PLAY="&#xe9af;",e.CIRCLE_STOP_PLAIN="&#xe9b0;",e.CLOUD_ARROW_DOWN="&#xe9b1;",e.SHARE_NODES="&#xe9b2;",e.BELL="&#xe9b3;",e.BELL_SLASH="&#xe9b4;",e.FILE="&#xe9b5;",e.HAND="&#xe9b6;",e.SQUARE_INFO_SOLID="&#xe9b7;",e.FILE_CODE="&#xe9b8;",e.BOX_CODE="&#xe9b9;"})(Ft||(Ft={}));var A;(function(e){e.UNKNOWN="&#xe90a;",e.ABW="&#xe900;",e.AUDIO="&#xe901;",e.AVI="&#xe902;",e.CHM="&#xe904;",e.CODE="&#xe905;",e.CSV="&#xe903;",e.DITA="&#xe906;",e.EPUB="&#xe907;",e.EXCEL="&#xe908;",e.FLAC="&#xe909;",e.GIF="&#xe90b;",e.GZIP="&#xe90c;",e.HTML="&#xe90d;",e.IMAGE="&#xe90e;",e.JPEG="&#xe90f;",e.JSON="&#xe910;",e.M4A="&#xe911;",e.MOV="&#xe912;",e.MP3="&#xe913;",e.MP4="&#xe914;",e.OGG="&#xe915;",e.PDF="&#xe916;",e.PNG="&#xe917;",e.POWERPOINT="&#xe918;",e.RAR="&#xe91a;",e.STP="&#xe91b;",e.TEXT="&#xe91c;",e.VIDEO="&#xe91e;",e.WAV="&#xe91f;",e.WMA="&#xe920;",e.WORD="&#xe921;",e.XML="&#xe922;",e.YAML="&#xe919;",e.ZIP="&#xe923;"})(A||(A={}));var I0=new Map([...["abw"].map(e=>[e,A.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,A.AUDIO]),...["avi"].map(e=>[e,A.AVI]),...["chm","xhs"].map(e=>[e,A.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,A.CODE]),...["csv"].map(e=>[e,A.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,A.DITA]),...["epub"].map(e=>[e,A.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,A.EXCEL]),...["flac"].map(e=>[e,A.FLAC]),...["gif"].map(e=>[e,A.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,A.GZIP]),...["html","htm","xhtml"].map(e=>[e,A.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,A.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,A.JPEG]),...["json"].map(e=>[e,A.JSON]),...["m4a","m4p"].map(e=>[e,A.M4A]),...["mov","qt"].map(e=>[e,A.MOV]),...["mp3"].map(e=>[e,A.MP3]),...["mp4","m4v"].map(e=>[e,A.MP4]),...["ogg","oga"].map(e=>[e,A.OGG]),...["pdf","ps"].map(e=>[e,A.PDF]),...["png"].map(e=>[e,A.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,A.POWERPOINT]),...["rar"].map(e=>[e,A.RAR]),...["stp"].map(e=>[e,A.STP]),...["txt","rtf","md","mdown"].map(e=>[e,A.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,A.VIDEO]),...["wav"].map(e=>[e,A.WAV]),...["wma"].map(e=>[e,A.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,A.WORD]),...["xml","xsl","rdf"].map(e=>[e,A.XML]),...["yaml","yml","x-yaml"].map(e=>[e,A.YAML]),...["zip"].map(e=>[e,A.ZIP])]);var P0={[A.ABW]:"#91ABC6",[A.AUDIO]:"#1795E3",[A.AVI]:"#E63324",[A.CHM]:"#71C3EB",[A.CODE]:"#71C3EB",[A.CSV]:"#1F7345",[A.DITA]:"#71C3EB",[A.EPUB]:"#85B926",[A.EXCEL]:"#1F7345",[A.FLAC]:"#1795E3",[A.GIF]:"#59B031",[A.GZIP]:"#F8AB36",[A.HTML]:"#71C3EB",[A.IMAGE]:"#59B031",[A.JPEG]:"#59B031",[A.JSON]:"#71C3EB",[A.M4A]:"#1795E3",[A.MOV]:"#E63324",[A.MP3]:"#1795E3",[A.MP4]:"#E63324",[A.OGG]:"#1795E3",[A.PDF]:"#E44948",[A.PNG]:"#59B031",[A.POWERPOINT]:"#B54A2B",[A.RAR]:"#F8AB36",[A.STP]:"#3764B1",[A.TEXT]:"#3162AB",[A.UNKNOWN]:"#999999",[A.VIDEO]:"#E63324",[A.WAV]:"#1795E3",[A.WMA]:"#1795E3",[A.WORD]:"#3162AB",[A.XML]:"#71C3EB",[A.YAML]:"#71C3EB",[A.ZIP]:"#F8AB36"};var Ze;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(Ze||(Ze={}));var Kr=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var c=e.length-1;c>=0;c--)(l=e[c])&&(i=(a<3?l(i):a>3?l(t,o,i):l(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},Ae=class extends dc.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=jr.nothing}render(){let t=this.variant&&Object.values(Ze).includes(this.variant)?this.variant:Ze.fluid_topics,o=t!==Ze.material||!!this.value;return jr.html`
574
+ `}setupFor(t){this.eventsTarget!==t&&(this.removeHandlers(),this.eventsTarget=t,this.eventsTarget.addEventListener("mouseenter",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseenter",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(o=>t.has(o))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}async showTemporaryText(t,o){let n=this.manual;this.manual=!0;let a=this.text;this.text={message:t},await this.show(o),this.text=a,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",us(this.slottedElement,this.tooltip,this.position).then(({x:t,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${Ie.designSystemVariables.transitionDuration}, left ${Ie.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(t){return this.manual||(0,Ie.eventPathContainsMatchingElement)(t,this.ignoreMatchingElements,this.eventsTarget)}};ne.elementDefinitions={"ft-typography":ge};ne.styles=Fi;$e([rc()],ne.prototype,"text",void 0);$e([(0,Pe.property)({type:Boolean})],ne.prototype,"manual",void 0);$e([(0,Pe.property)({type:Boolean})],ne.prototype,"inline",void 0);$e([(0,Ie.numberProperty)()],ne.prototype,"delay",void 0);$e([(0,Pe.property)()],ne.prototype,"position",void 0);$e([(0,Ie.jsonProperty)([])],ne.prototype,"ignoreMatchingElements",void 0);$e([(0,Pe.queryAssignedNodes)()],ne.prototype,"slotNodes",void 0);$e([(0,Pe.query)(".ft-tooltip--container")],ne.prototype,"container",void 0);$e([(0,Pe.query)(".ft-tooltip")],ne.prototype,"tooltip",void 0);$e([(0,Pe.query)(".ft-tooltip--content")],ne.prototype,"tooltipContent",void 0);$e([(0,Pe.state)()],ne.prototype,"visible",void 0);(0,sc.customElement)("ft-tooltip")(ne);var pc=v(P());var jr=v(H()),Ct=v(J()),dc=v(P()),uc=v(cc());var Ft;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.OFFLINE="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.ONLINE="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.CIRCLE_STOP="&#xe984;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.ROUTE="&#xe992;",e.CIRCLE_USER_SLASH="&#xe993;",e.CIRCLE_USER_CHECK="&#xe994;",e.LIST_MAGNIFYING_GLASS="&#xe995;",e.MEDAL="&#xe996;",e.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",e.ARROW_TURN_DOWN_RIGHT="&#xe998;",e.FLASK="&#xe999;",e.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",e.HOURGLASS_END="&#xe99b;",e.CIRCLE_QUESTION="&#xe99c;",e.GRIP_LINES_SOLID="&#xe99d;",e.TRANSLATE_SPARKLE_SOLID="&#xe99e;",e.CODE="&#xe99f;",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",e.PAPER_PLANE_SLASH="&#xe9a1;",e.COMPRESS="&#xe9a2;",e.EXPAND="&#xe9a3;",e.ARROW_ROTATE_LEFT="&#xe9a4;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;",e.MOBILE_SMALL="&#xe9a5;",e.SPARKLES="&#xe9a6;",e.HAND_SOLID="&#xe9a7;",e.CLOCK_SOLID="&#xe9a8;",e.CONTEXT_MENU_CURSOR="&#xe9a9;",e.LANGUAGE_SLASH="&#xe9aa;",e.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",e.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",e.BOOKMARK_SLASH="&#xe9ad;",e.CIRCLE_PAUSE="&#xe9ae;",e.CIRCLE_PLAY="&#xe9af;",e.CIRCLE_STOP_PLAIN="&#xe9b0;",e.CLOUD_ARROW_DOWN="&#xe9b1;",e.SHARE_NODES="&#xe9b2;",e.BELL="&#xe9b3;",e.BELL_SLASH="&#xe9b4;",e.FILE="&#xe9b5;",e.HAND="&#xe9b6;",e.SQUARE_INFO_SOLID="&#xe9b7;",e.FILE_CODE="&#xe9b8;",e.BOX_CODE="&#xe9b9;"})(Ft||(Ft={}));var A;(function(e){e.UNKNOWN="&#xe90a;",e.ABW="&#xe900;",e.AUDIO="&#xe901;",e.AVI="&#xe902;",e.CHM="&#xe904;",e.CODE="&#xe905;",e.CSV="&#xe903;",e.DITA="&#xe906;",e.EPUB="&#xe907;",e.EXCEL="&#xe908;",e.FLAC="&#xe909;",e.GIF="&#xe90b;",e.GZIP="&#xe90c;",e.HTML="&#xe90d;",e.IMAGE="&#xe90e;",e.JPEG="&#xe90f;",e.JSON="&#xe910;",e.M4A="&#xe911;",e.MOV="&#xe912;",e.MP3="&#xe913;",e.MP4="&#xe914;",e.OGG="&#xe915;",e.PDF="&#xe916;",e.PNG="&#xe917;",e.POWERPOINT="&#xe918;",e.RAR="&#xe91a;",e.STP="&#xe91b;",e.TEXT="&#xe91c;",e.VIDEO="&#xe91e;",e.WAV="&#xe91f;",e.WMA="&#xe920;",e.WORD="&#xe921;",e.XML="&#xe922;",e.YAML="&#xe919;",e.ZIP="&#xe923;"})(A||(A={}));var I0=new Map([...["abw"].map(e=>[e,A.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,A.AUDIO]),...["avi"].map(e=>[e,A.AVI]),...["chm","xhs"].map(e=>[e,A.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,A.CODE]),...["csv"].map(e=>[e,A.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,A.DITA]),...["epub"].map(e=>[e,A.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,A.EXCEL]),...["flac"].map(e=>[e,A.FLAC]),...["gif"].map(e=>[e,A.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,A.GZIP]),...["html","htm","xhtml"].map(e=>[e,A.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,A.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,A.JPEG]),...["json"].map(e=>[e,A.JSON]),...["m4a","m4p"].map(e=>[e,A.M4A]),...["mov","qt"].map(e=>[e,A.MOV]),...["mp3"].map(e=>[e,A.MP3]),...["mp4","m4v"].map(e=>[e,A.MP4]),...["ogg","oga"].map(e=>[e,A.OGG]),...["pdf","ps"].map(e=>[e,A.PDF]),...["png"].map(e=>[e,A.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,A.POWERPOINT]),...["rar"].map(e=>[e,A.RAR]),...["stp"].map(e=>[e,A.STP]),...["txt","rtf","md","mdown"].map(e=>[e,A.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,A.VIDEO]),...["wav"].map(e=>[e,A.WAV]),...["wma"].map(e=>[e,A.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,A.WORD]),...["xml","xsl","rdf"].map(e=>[e,A.XML]),...["yaml","yml","x-yaml"].map(e=>[e,A.YAML]),...["zip"].map(e=>[e,A.ZIP])]);var P0={[A.ABW]:"#91ABC6",[A.AUDIO]:"#1795E3",[A.AVI]:"#E63324",[A.CHM]:"#71C3EB",[A.CODE]:"#71C3EB",[A.CSV]:"#1F7345",[A.DITA]:"#71C3EB",[A.EPUB]:"#85B926",[A.EXCEL]:"#1F7345",[A.FLAC]:"#1795E3",[A.GIF]:"#59B031",[A.GZIP]:"#F8AB36",[A.HTML]:"#71C3EB",[A.IMAGE]:"#59B031",[A.JPEG]:"#59B031",[A.JSON]:"#71C3EB",[A.M4A]:"#1795E3",[A.MOV]:"#E63324",[A.MP3]:"#1795E3",[A.MP4]:"#E63324",[A.OGG]:"#1795E3",[A.PDF]:"#E44948",[A.PNG]:"#59B031",[A.POWERPOINT]:"#B54A2B",[A.RAR]:"#F8AB36",[A.STP]:"#3764B1",[A.TEXT]:"#3162AB",[A.UNKNOWN]:"#999999",[A.VIDEO]:"#E63324",[A.WAV]:"#1795E3",[A.WMA]:"#1795E3",[A.WORD]:"#3162AB",[A.XML]:"#71C3EB",[A.YAML]:"#71C3EB",[A.ZIP]:"#F8AB36"};var Ye;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(Ye||(Ye={}));var Kr=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var c=e.length-1;c>=0;c--)(l=e[c])&&(i=(a<3?l(i):a>3?l(t,o,i):l(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},Ae=class extends dc.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=jr.nothing}render(){let t=this.variant&&Object.values(Ye).includes(this.variant)?this.variant:Ye.fluid_topics,o=t!==Ye.material||!!this.value;return jr.html`
575
575
  <i class="ft-icon ft-icon--${t} ft-no-text-select" part="icon icon-${t}">
576
576
  ${(0,uc.unsafeHTML)(this.resolvedIcon)}
577
577
  <slot ?hidden=${o}></slot>
578
578
  </i>
579
- `}getTextContent(){var t,o;return(o=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&o!==void 0?o:""}update(t){super.update(t),["value","variant"].some(o=>t.has(o))&&this.resolveIcon()}resolveIcon(){var t,o;let n=this.value||this.getTextContent();switch(this.variant){case Ze.file_format:this.resolvedIcon=(t=A[n.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:n;break;case Ze.material:this.resolvedIcon=this.value||jr.nothing;break;default:this.resolvedIcon=(o=Ft[n.replace("-","_").toUpperCase()])!==null&&o!==void 0?o:n;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};Ae.elementDefinitions={};Ae.styles=di;Kr([(0,Ct.property)()],Ae.prototype,"variant",void 0);Kr([(0,Ct.property)()],Ae.prototype,"value",void 0);Kr([(0,Ct.property)({reflect:!0,attribute:"aria-hidden"})],Ae.prototype,"ariaHidden",void 0);Kr([(0,Ct.state)()],Ae.prototype,"resolvedIcon",void 0);Kr([(0,Ct.query)("slot")],Ae.prototype,"slottedContent",void 0);(0,pc.customElement)("ft-icon")(Ae);var yc=v(P());var fc=v(H()),hc=v(P());var Ht=class extends hc.FtLitElement{render(){return fc.html`
579
+ `}getTextContent(){var t,o;return(o=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&o!==void 0?o:""}update(t){super.update(t),["value","variant"].some(o=>t.has(o))&&this.resolveIcon()}resolveIcon(){var t,o;let n=this.value||this.getTextContent();switch(this.variant){case Ye.file_format:this.resolvedIcon=(t=A[n.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:n;break;case Ye.material:this.resolvedIcon=this.value||jr.nothing;break;default:this.resolvedIcon=(o=Ft[n.replace("-","_").toUpperCase()])!==null&&o!==void 0?o:n;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};Ae.elementDefinitions={};Ae.styles=di;Kr([(0,Ct.property)()],Ae.prototype,"variant",void 0);Kr([(0,Ct.property)()],Ae.prototype,"value",void 0);Kr([(0,Ct.property)({reflect:!0,attribute:"aria-hidden"})],Ae.prototype,"ariaHidden",void 0);Kr([(0,Ct.state)()],Ae.prototype,"resolvedIcon",void 0);Kr([(0,Ct.query)("slot")],Ae.prototype,"slottedContent",void 0);(0,pc.customElement)("ft-icon")(Ae);var yc=v(P());var fc=v(H()),hc=v(P());var Ht=class extends hc.FtLitElement{render(){return fc.html`
580
580
  <div class="ft-loader">
581
581
  <div></div>
582
582
  <div></div>
@@ -1095,7 +1095,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
1095
1095
  .ftds--size-small.ft-button--icon-only {
1096
1096
  width: ${f.smallIconOnlyWidth};
1097
1097
  }
1098
- `,C.noTextSelect];var Go=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var c=e.length-1;c>=0;c--)(l=e[c])&&(i=(a<3?l(i):a>3?l(t,o,i):l(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},qe=class extends(0,jo.toFtdsBase)(z){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=Xr.brand,this.iconVariant=Ze.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case Kt.large:return ft.body2medium;case Kt.medium:return ft.caption1medium;case Kt.small:return ft.caption2medium}}};qe.elementDefinitions={...z.elementDefinitions,"ft-or-ftds-typography":tt};qe.styles=[jo.safariEllipsisFix,bc];Go([(0,Zr.property)({type:Boolean})],qe.prototype,"primary",void 0);Go([(0,Zr.property)({type:Boolean})],qe.prototype,"secondary",void 0);Go([(0,Zr.property)({type:Boolean})],qe.prototype,"tertiary",void 0);Go([(0,Zr.property)({type:Boolean})],qe.prototype,"round",void 0);(0,Ta.customElement)("ft-button")(_e);(0,Ta.customElement)("ftds-button")(qe);var Ic=v(P());var zt=v(H()),Er=v(P());var Sc=v(H()),F=v(P());var xc=v(H()),j=v(P());var B={fontSize:j.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:j.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:j.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:j.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:j.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:j.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:j.FtCssVariableFactory.extend("--ft-input-label-border-color","",j.designSystemVariables.colorOutline),textColor:j.FtCssVariableFactory.extend("--ft-input-label-text-color","",j.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:j.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",j.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:j.FtCssVariableFactory.extend("--ft-input-label-background-color","",j.designSystemVariables.colorSurface),borderRadius:j.FtCssVariableFactory.extend("--ft-input-label-border-radius","",j.designSystemVariables.borderRadiusS),colorError:j.FtCssVariableFactory.external(j.designSystemVariables.colorError,"Design system")},vc=xc.css`
1098
+ `,C.noTextSelect];var Go=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var c=e.length-1;c>=0;c--)(l=e[c])&&(i=(a<3?l(i):a>3?l(t,o,i):l(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},Xe=class extends(0,jo.toFtdsBase)(z){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=Xr.brand,this.iconVariant=Ye.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 Kt.large:return ft.body2medium;case Kt.medium:return ft.caption1medium;case Kt.small:return ft.caption2medium}}};Xe.elementDefinitions={...z.elementDefinitions,"ft-or-ftds-typography":tt};Xe.styles=[jo.safariEllipsisFix,bc];Go([(0,Zr.property)({type:Boolean})],Xe.prototype,"primary",void 0);Go([(0,Zr.property)({type:Boolean})],Xe.prototype,"secondary",void 0);Go([(0,Zr.property)({type:Boolean})],Xe.prototype,"tertiary",void 0);Go([(0,Zr.property)({type:Boolean})],Xe.prototype,"round",void 0);(0,Ta.customElement)("ft-button")(_e);(0,Ta.customElement)("ftds-button")(Xe);var Ic=v(P());var zt=v(H()),Er=v(P());var Sc=v(H()),F=v(P());var xc=v(H()),j=v(P());var B={fontSize:j.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:j.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:j.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:j.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:j.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:j.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:j.FtCssVariableFactory.extend("--ft-input-label-border-color","",j.designSystemVariables.colorOutline),textColor:j.FtCssVariableFactory.extend("--ft-input-label-text-color","",j.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:j.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",j.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:j.FtCssVariableFactory.extend("--ft-input-label-background-color","",j.designSystemVariables.colorSurface),borderRadius:j.FtCssVariableFactory.extend("--ft-input-label-border-radius","",j.designSystemVariables.borderRadiusS),colorError:j.FtCssVariableFactory.external(j.designSystemVariables.colorError,"Design system")},vc=xc.css`
1099
1099
  .ft-input-label {
1100
1100
  position: absolute;
1101
1101
  inset: 0;
@@ -1146,8 +1146,8 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
1146
1146
  transition: font-size 250ms, line-height 250ms, color 250ms;
1147
1147
  max-width: calc(${B.labelMaxWidth} - 2 * (${B.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
1148
1148
  text-overflow: ellipsis;
1149
- ${(0,j.setVariable)(ie.fontSize,B.fontSize)};
1150
- ${(0,j.setVariable)(ie.lineHeight,B.fontSize)};
1149
+ ${(0,j.setVariable)(se.fontSize,B.fontSize)};
1150
+ ${(0,j.setVariable)(se.lineHeight,B.fontSize)};
1151
1151
  }
1152
1152
 
1153
1153
  .ft-input-label--in-error .ft-input-label--text {
@@ -1167,7 +1167,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
1167
1167
 
1168
1168
  .ft-input-label--floating-text {
1169
1169
  position: absolute;
1170
- top: calc(50% - ${ie.lineHeight} / 2);
1170
+ top: calc(50% - ${se.lineHeight} / 2);
1171
1171
  transition: top 250ms;
1172
1172
  overflow: hidden;
1173
1173
  white-space: nowrap;
@@ -1179,8 +1179,8 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
1179
1179
  }
1180
1180
 
1181
1181
  .ft-input-label--raised .ft-input-label--text {
1182
- ${(0,j.setVariable)(ie.fontSize,B.raisedFontSize)};
1183
- ${(0,j.setVariable)(ie.lineHeight,B.raisedFontSize)};
1182
+ ${(0,j.setVariable)(se.fontSize,B.raisedFontSize)};
1183
+ ${(0,j.setVariable)(se.lineHeight,B.raisedFontSize)};
1184
1184
  }
1185
1185
 
1186
1186
  .ft-input-label--raised .ft-input-label--floating-text {
@@ -1211,7 +1211,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
1211
1211
  z-index: ${B.raisedZIndex};
1212
1212
  background-color: ${B.backgroundColor};
1213
1213
  border-radius: ${B.borderRadius};
1214
- top: calc((${ie.lineHeight} / -2) + 2px);
1214
+ top: calc((${se.lineHeight} / -2) + 2px);
1215
1215
  }
1216
1216
 
1217
1217
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
@@ -1311,7 +1311,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
1311
1311
  padding: 0 12px 0 ${K.horizontalSpacing};
1312
1312
  color: ${K.helperColor};
1313
1313
  }
1314
- `;var Xe=v(J()),Nc=v(wr());var Pa=v(P());var Ko=v(J());var La=v(H()),Na=v(J());function Oc(e,t,o){return e?t(e):o?.(e)}var Ac=v(wr()),wc=v(P()),Ec=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var c=e.length-1;c>=0;c--)(l=e[c])&&(i=(a<3?l(i):a>3?l(t,o,i):l(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},st=class extends wc.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return La.html`
1314
+ `;var ze=v(J()),Nc=v(wr());var Pa=v(P());var Ko=v(J());var La=v(H()),Na=v(J());function Oc(e,t,o){return e?t(e):o?.(e)}var Ac=v(wr()),wc=v(P()),Ec=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var c=e.length-1;c>=0;c--)(l=e[c])&&(i=(a<3?l(i):a>3?l(t,o,i):l(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},st=class extends wc.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return La.html`
1315
1315
  <div class="${(0,Ac.classMap)(this.inputLabelClasses)}">
1316
1316
  ${Oc(this.text,()=>La.html`
1317
1317
  <div class="ft-input-label--text ft-typography--caption">
@@ -1362,8 +1362,8 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
1362
1362
  z-index: 10;
1363
1363
  width: 100%;
1364
1364
  transition: font-size 250ms, line-height 250ms, color 250ms;
1365
- ${(0,te.setVariable)(ie.fontSize,he.fontSize)};
1366
- ${(0,te.setVariable)(ie.lineHeight,he.lineHeight)};
1365
+ ${(0,te.setVariable)(se.fontSize,he.fontSize)};
1366
+ ${(0,te.setVariable)(se.lineHeight,he.lineHeight)};
1367
1367
  }
1368
1368
 
1369
1369
  .ft-input-label--hidden-text {
@@ -1394,15 +1394,15 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
1394
1394
  }
1395
1395
 
1396
1396
  .ft-input-label--raised .ft-input-label--text {
1397
- ${(0,te.setVariable)(ie.fontSize,he.fontSizeRaised)};
1398
- ${(0,te.setVariable)(ie.lineHeight,he.lineHeight)};
1397
+ ${(0,te.setVariable)(se.fontSize,he.fontSizeRaised)};
1398
+ ${(0,te.setVariable)(se.lineHeight,he.lineHeight)};
1399
1399
  }
1400
1400
 
1401
1401
  .ft-input-label--raised .ft-input-label--floating-text {
1402
1402
  top: var(--input-content-vertical-padding);
1403
1403
  }
1404
1404
 
1405
- `];var qr=class extends(0,Lc.toFtdsBase)(st){get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,...this.getDesignSystemBaseClasses()}}};qr.styles=[tr,Tc];(0,Pa.customElement)("ft-input-label")(Fe);(0,Pa.customElement)("ftds-input-label")(qr);var Ye=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var c=e.length-1;c>=0;c--)(l=e[c])&&(i=(a<3?l(i):a>3?l(t,o,i):l(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},le=class extends Er.FtLitElement{constructor(){super(...arguments),this.helper="",this.outlined=!1,this.disabled=!1,this.focused=!1}render(){var t;let o={"ft-number-field":!0,"ft-number-field--filled":!this.outlined,"ft-number-field--outlined":this.outlined,"ft-number-field--disabled":this.disabled,"ft-number-field--has-value":this.value!=null,"ft-number-field--with-label":!!this.label};return zt.html`
1405
+ `];var qr=class extends(0,Lc.toFtdsBase)(st){get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,...this.getDesignSystemBaseClasses()}}};qr.styles=[tr,Tc];(0,Pa.customElement)("ft-input-label")(Fe);(0,Pa.customElement)("ftds-input-label")(qr);var He=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var c=e.length-1;c>=0;c--)(l=e[c])&&(i=(a<3?l(i):a>3?l(t,o,i):l(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},ie=class extends Er.FtLitElement{constructor(){super(...arguments),this.integer=!1,this.helper="",this.outlined=!1,this.disabled=!1,this.focused=!1}render(){var t;let o={"ft-number-field":!0,"ft-number-field--filled":!this.outlined,"ft-number-field--outlined":this.outlined,"ft-number-field--disabled":this.disabled,"ft-number-field--has-value":this.value!=null,"ft-number-field--with-label":!!this.label};return zt.html`
1406
1406
  <div class="${(0,Nc.classMap)(o)}">
1407
1407
  <div class="ft-number-field--main-panel"
1408
1408
  @focusout=${this.onMainPanelBlur}>
@@ -1433,7 +1433,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
1433
1433
  ${this.helper}
1434
1434
  </ft-typography>`:zt.nothing}
1435
1435
  </div>
1436
- `}update(t){super.update(t),(t.has("max")||t.has("min"))&&this.setValue(this.value)}lowerBound(t){return this.min!=null?Math.max(this.min,t):t}upperBound(t){return this.max!=null?Math.min(this.max,t):t}onChange(t){t.preventDefault(),t.stopPropagation(),this.setValue(+t.target.value)}setValue(t){let o=this.value;this.value=t;let n=this.value==null?void 0:this.lowerBound(this.upperBound(this.value));setTimeout(()=>{this.value=n,o!==n&&this.dispatchEvent(new CustomEvent("change",{detail:this.value}))})}onFocus(){this.focused=!0}onMainPanelBlur(){var t;!((t=this.mainPanel)===null||t===void 0)&&t.matches(":focus-within")||(this.focused=!1)}};le.elementDefinitions={"ft-input-label":Fe,"ft-ripple":Z,"ft-typography":ge};le.styles=Cc;Ye([(0,Xe.property)()],le.prototype,"label",void 0);Ye([(0,Er.numberProperty)()],le.prototype,"value",void 0);Ye([(0,Xe.property)({type:String})],le.prototype,"helper",void 0);Ye([(0,Xe.property)({type:Boolean})],le.prototype,"outlined",void 0);Ye([(0,Xe.property)({type:Boolean})],le.prototype,"disabled",void 0);Ye([(0,Er.numberProperty)()],le.prototype,"min",void 0);Ye([(0,Er.numberProperty)()],le.prototype,"max",void 0);Ye([(0,Xe.state)()],le.prototype,"focused",void 0);Ye([(0,Xe.query)(".ft-number-field--input")],le.prototype,"input",void 0);Ye([(0,Xe.query)(".ft-number-field--main-panel")],le.prototype,"mainPanel",void 0);(0,Ic.customElement)("ft-number-field")(le);var Wt=zo.build("pagerComponent"),Pc={nextLabel:"Next",previousLabel:"Previous",currentPageNumberLabel:"current page number",openingPageAnnouncement:"Opening page {0}",lastPageSuffix:", last page"};var Gt=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var c=e.length-1;c>=0;c--)(l=e[c])&&(i=(a<3?l(i):a>3?l(t,o,i):l(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},we=class extends Uo(Vo.FtLitElement){constructor(){super(),this.currentPage=1,this.announcement="",this.addI18nContext(Wt,Pc)}get resolvedMaxPage(){return this.maxPage?Math.max(1,this.maxPage):this.totalItemsCount&&this.itemsPerPage?Math.ceil(Math.max(1,this.totalItemsCount)/Math.max(1,this.itemsPerPage)):1}render(){var t,o;let n=this.resolvedMaxPage;return _c.html`
1436
+ `}update(t){super.update(t),(t.has("max")||t.has("min"))&&this.setValue(this.value)}lowerBound(t){return this.min!=null?Math.max(this.min,t):t}upperBound(t){return this.max!=null?Math.min(this.max,t):t}round(t){return this.integer?Math.floor(t):t}onChange(t){t.preventDefault(),t.stopPropagation(),this.setValue(+t.target.value)}setValue(t){let o=this.value;this.value=t;let n=this.value==null?void 0:this.round(this.lowerBound(this.upperBound(this.value)));setTimeout(()=>{this.value=n,o!==n&&this.dispatchEvent(new CustomEvent("change",{detail:this.value}))})}onFocus(){this.focused=!0}onMainPanelBlur(){var t;!((t=this.mainPanel)===null||t===void 0)&&t.matches(":focus-within")||(this.focused=!1)}};ie.elementDefinitions={"ft-input-label":Fe,"ft-ripple":Z,"ft-typography":ge};ie.styles=Cc;He([(0,ze.property)()],ie.prototype,"label",void 0);He([(0,Er.numberProperty)()],ie.prototype,"value",void 0);He([(0,ze.property)({type:Boolean})],ie.prototype,"integer",void 0);He([(0,ze.property)({type:String})],ie.prototype,"helper",void 0);He([(0,ze.property)({type:Boolean})],ie.prototype,"outlined",void 0);He([(0,ze.property)({type:Boolean})],ie.prototype,"disabled",void 0);He([(0,Er.numberProperty)()],ie.prototype,"min",void 0);He([(0,Er.numberProperty)()],ie.prototype,"max",void 0);He([(0,ze.state)()],ie.prototype,"focused",void 0);He([(0,ze.query)(".ft-number-field--input")],ie.prototype,"input",void 0);He([(0,ze.query)(".ft-number-field--main-panel")],ie.prototype,"mainPanel",void 0);(0,Ic.customElement)("ft-number-field")(ie);var Wt=zo.build("pagerComponent"),Pc={nextLabel:"Next",previousLabel:"Previous",currentPageNumberLabel:"current page number",openingPageAnnouncement:"Opening page {0}",lastPageSuffix:", last page"};var Gt=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var c=e.length-1;c>=0;c--)(l=e[c])&&(i=(a<3?l(i):a>3?l(t,o,i):l(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},we=class extends Uo(Vo.FtLitElement){constructor(){super(),this.currentPage=1,this.announcement="",this.addI18nContext(Wt,Pc)}get resolvedMaxPage(){return this.maxPage?Math.max(1,this.maxPage):this.totalItemsCount&&this.itemsPerPage?Math.ceil(Math.max(1,this.totalItemsCount)/Math.max(1,this.itemsPerPage)):1}render(){var t,o;let n=this.resolvedMaxPage;return _c.html`
1437
1437
  <style>
1438
1438
  ft-number-field::part(input) {
1439
1439
  width: ${Math.max(2,(""+n).length)}ch;
@@ -1465,7 +1465,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
1465
1465
  ${this.announcement}
1466
1466
  </div>
1467
1467
  </nav>
1468
- `}onChange(t){t.stopPropagation(),this.setPage(t.detail)}setPage(t){this.currentPage=t,this.announcement=this.resolveAnnouncement(),this.dispatchEvent(new CustomEvent("change",{detail:t}))}resolveAnnouncement(){let t=Wt.messages.openingPageAnnouncement(this.currentPage);return this.currentPage===this.maxPage?t+Wt.messages.lastPageSuffix():t}};we.elementDefinitions={"ft-button":_e,"ft-number-field":le,"ft-typography":ge};we.styles=[$a,Vo.screenReaderStyles];Gt([(0,lt.property)({type:Number,reflect:!0})],we.prototype,"currentPage",void 0);Gt([(0,lt.property)({type:Number})],we.prototype,"maxPage",void 0);Gt([(0,lt.property)({type:Number})],we.prototype,"itemsPerPage",void 0);Gt([(0,lt.property)({type:Number})],we.prototype,"totalItemsCount",void 0);Gt([(0,lt.property)()],we.prototype,"nextLabel",void 0);Gt([(0,lt.property)()],we.prototype,"previousLabel",void 0);Gt([(0,lt.state)()],we.prototype,"announcement",void 0);(0,kc.customElement)("ft-pager")(we);})();
1468
+ `}onChange(t){t.stopPropagation(),this.setPage(t.detail)}setPage(t){this.currentPage=t,this.announcement=this.resolveAnnouncement(),this.dispatchEvent(new CustomEvent("change",{detail:t}))}resolveAnnouncement(){let t=Wt.messages.openingPageAnnouncement(this.currentPage);return this.currentPage===this.maxPage?t+Wt.messages.lastPageSuffix():t}};we.elementDefinitions={"ft-button":_e,"ft-number-field":ie,"ft-typography":ge};we.styles=[$a,Vo.screenReaderStyles];Gt([(0,lt.property)({type:Number,reflect:!0})],we.prototype,"currentPage",void 0);Gt([(0,lt.property)({type:Number})],we.prototype,"maxPage",void 0);Gt([(0,lt.property)({type:Number})],we.prototype,"itemsPerPage",void 0);Gt([(0,lt.property)({type:Number})],we.prototype,"totalItemsCount",void 0);Gt([(0,lt.property)()],we.prototype,"nextLabel",void 0);Gt([(0,lt.property)()],we.prototype,"previousLabel",void 0);Gt([(0,lt.state)()],we.prototype,"announcement",void 0);(0,kc.customElement)("ft-pager")(we);})();
1469
1469
  /*! Bundled license information:
1470
1470
 
1471
1471
  lit-html/lit-html.js: