@fluid-topics/ft-search-type 1.1.94 → 1.1.95
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.
- package/build/ft-search-type.light.js +11 -11
- package/build/ft-search-type.min.js +65 -58
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var Pc=Object.create;var li=Object.defineProperty;var Tc=Object.getOwnPropertyDescriptor;var Ic=Object.getOwnPropertyNames;var kc=Object.getPrototypeOf,_c=Object.prototype.hasOwnProperty;var It=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Dc=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Ic(e))!_c.call(t,i)&&i!==o&&li(t,i,{get:()=>e[i],enumerable:!(n=Tc(e,i))||n.enumerable});return t};var m=(t,e,o)=>(o=t!=null?Pc(kc(t)):{},Dc(e||!t||!t.__esModule?li(o,"default",{value:t,enumerable:!0}):o,t));var R=It((tp,ci)=>{ci.exports=ftGlobals.wcUtils});var D=It((rp,di)=>{di.exports=ftGlobals.lit});var H=It((ip,ui)=>{ui.exports=ftGlobals.litDecorators});var xa=It((Jh,ba)=>{ba.exports=ftGlobals.litRepeat});var nr=It((lm,Da)=>{Da.exports=ftGlobals.litClassMap});var us=It((Ym,fs)=>{fs.exports=ftGlobals.litUnsafeHTML});var tc=It(ec=>{(function(t){var e=function(o){var n={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};function i(h){return h&&DataView.prototype.isPrototypeOf(h)}if(n.arrayBuffer)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(h){return h&&a.indexOf(Object.prototype.toString.call(h))>-1};function c(h){if(typeof h!="string"&&(h=String(h)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(h))throw new TypeError("Invalid character in header field name");return h.toLowerCase()}function p(h){return typeof h!="string"&&(h=String(h)),h}function f(h){var v={next:function(){var P=h.shift();return{done:P===void 0,value:P}}};return n.iterable&&(v[Symbol.iterator]=function(){return v}),v}function u(h){this.map={},h instanceof u?h.forEach(function(v,P){this.append(P,v)},this):Array.isArray(h)?h.forEach(function(v){this.append(v[0],v[1])},this):h&&Object.getOwnPropertyNames(h).forEach(function(v){this.append(v,h[v])},this)}u.prototype.append=function(h,v){h=c(h),v=p(v);var P=this.map[h];this.map[h]=P?P+", "+v:v},u.prototype.delete=function(h){delete this.map[c(h)]},u.prototype.get=function(h){return h=c(h),this.has(h)?this.map[h]:null},u.prototype.has=function(h){return this.map.hasOwnProperty(c(h))},u.prototype.set=function(h,v){this.map[c(h)]=p(v)},u.prototype.forEach=function(h,v){for(var P in this.map)this.map.hasOwnProperty(P)&&h.call(v,this.map[P],P,this)},u.prototype.keys=function(){var h=[];return this.forEach(function(v,P){h.push(P)}),f(h)},u.prototype.values=function(){var h=[];return this.forEach(function(v){h.push(v)}),f(h)},u.prototype.entries=function(){var h=[];return this.forEach(function(v,P){h.push([P,v])}),f(h)},n.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);function y(h){if(h.bodyUsed)return Promise.reject(new TypeError("Already read"));h.bodyUsed=!0}function g(h){return new Promise(function(v,P){h.onload=function(){v(h.result)},h.onerror=function(){P(h.error)}})}function x(h){var v=new FileReader,P=g(v);return v.readAsArrayBuffer(h),P}function b(h){var v=new FileReader,P=g(v);return v.readAsText(h),P}function S(h){for(var v=new Uint8Array(h),P=new Array(v.length),
|
|
1
|
+
"use strict";(()=>{var Pc=Object.create;var li=Object.defineProperty;var Tc=Object.getOwnPropertyDescriptor;var Ic=Object.getOwnPropertyNames;var kc=Object.getPrototypeOf,_c=Object.prototype.hasOwnProperty;var It=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Dc=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Ic(e))!_c.call(t,i)&&i!==o&&li(t,i,{get:()=>e[i],enumerable:!(n=Tc(e,i))||n.enumerable});return t};var m=(t,e,o)=>(o=t!=null?Pc(kc(t)):{},Dc(e||!t||!t.__esModule?li(o,"default",{value:t,enumerable:!0}):o,t));var R=It((tp,ci)=>{ci.exports=ftGlobals.wcUtils});var D=It((rp,di)=>{di.exports=ftGlobals.lit});var H=It((ip,ui)=>{ui.exports=ftGlobals.litDecorators});var xa=It((Jh,ba)=>{ba.exports=ftGlobals.litRepeat});var nr=It((lm,Da)=>{Da.exports=ftGlobals.litClassMap});var us=It((Ym,fs)=>{fs.exports=ftGlobals.litUnsafeHTML});var tc=It(ec=>{(function(t){var e=function(o){var n={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};function i(h){return h&&DataView.prototype.isPrototypeOf(h)}if(n.arrayBuffer)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(h){return h&&a.indexOf(Object.prototype.toString.call(h))>-1};function c(h){if(typeof h!="string"&&(h=String(h)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(h))throw new TypeError("Invalid character in header field name");return h.toLowerCase()}function p(h){return typeof h!="string"&&(h=String(h)),h}function f(h){var v={next:function(){var P=h.shift();return{done:P===void 0,value:P}}};return n.iterable&&(v[Symbol.iterator]=function(){return v}),v}function u(h){this.map={},h instanceof u?h.forEach(function(v,P){this.append(P,v)},this):Array.isArray(h)?h.forEach(function(v){this.append(v[0],v[1])},this):h&&Object.getOwnPropertyNames(h).forEach(function(v){this.append(v,h[v])},this)}u.prototype.append=function(h,v){h=c(h),v=p(v);var P=this.map[h];this.map[h]=P?P+", "+v:v},u.prototype.delete=function(h){delete this.map[c(h)]},u.prototype.get=function(h){return h=c(h),this.has(h)?this.map[h]:null},u.prototype.has=function(h){return this.map.hasOwnProperty(c(h))},u.prototype.set=function(h,v){this.map[c(h)]=p(v)},u.prototype.forEach=function(h,v){for(var P in this.map)this.map.hasOwnProperty(P)&&h.call(v,this.map[P],P,this)},u.prototype.keys=function(){var h=[];return this.forEach(function(v,P){h.push(P)}),f(h)},u.prototype.values=function(){var h=[];return this.forEach(function(v){h.push(v)}),f(h)},u.prototype.entries=function(){var h=[];return this.forEach(function(v,P){h.push([P,v])}),f(h)},n.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);function y(h){if(h.bodyUsed)return Promise.reject(new TypeError("Already read"));h.bodyUsed=!0}function g(h){return new Promise(function(v,P){h.onload=function(){v(h.result)},h.onerror=function(){P(h.error)}})}function x(h){var v=new FileReader,P=g(v);return v.readAsArrayBuffer(h),P}function b(h){var v=new FileReader,P=g(v);return v.readAsText(h),P}function S(h){for(var v=new Uint8Array(h),P=new Array(v.length),G=0;G<v.length;G++)P[G]=String.fromCharCode(v[G]);return P.join("")}function L(h){if(h.slice)return h.slice(0);var v=new Uint8Array(h.byteLength);return v.set(new Uint8Array(h)),v.buffer}function w(){return this.bodyUsed=!1,this._initBody=function(h){this._bodyInit=h,h?typeof h=="string"?this._bodyText=h:n.blob&&Blob.prototype.isPrototypeOf(h)?this._bodyBlob=h:n.formData&&FormData.prototype.isPrototypeOf(h)?this._bodyFormData=h:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(h)?this._bodyText=h.toString():n.arrayBuffer&&n.blob&&i(h)?(this._bodyArrayBuffer=L(h.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(h)||s(h))?this._bodyArrayBuffer=L(h):this._bodyText=h=Object.prototype.toString.call(h):this._bodyText="",this.headers.get("content-type")||(typeof h=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(h)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var h=y(this);if(h)return h;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?y(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(x)}),this.text=function(){var h=y(this);if(h)return h;if(this._bodyBlob)return b(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(S(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},n.formData&&(this.formData=function(){return this.text().then(z)}),this.json=function(){return this.text().then(JSON.parse)},this}var A=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function k(h){var v=h.toUpperCase();return A.indexOf(v)>-1?v:h}function T(h,v){v=v||{};var P=v.body;if(h instanceof T){if(h.bodyUsed)throw new TypeError("Already read");this.url=h.url,this.credentials=h.credentials,v.headers||(this.headers=new u(h.headers)),this.method=h.method,this.mode=h.mode,this.signal=h.signal,!P&&h._bodyInit!=null&&(P=h._bodyInit,h.bodyUsed=!0)}else this.url=String(h);if(this.credentials=v.credentials||this.credentials||"same-origin",(v.headers||!this.headers)&&(this.headers=new u(v.headers)),this.method=k(v.method||this.method||"GET"),this.mode=v.mode||this.mode||null,this.signal=v.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&P)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(P)}T.prototype.clone=function(){return new T(this,{body:this._bodyInit})};function z(h){var v=new FormData;return h.trim().split("&").forEach(function(P){if(P){var G=P.split("="),ce=G.shift().replace(/\+/g," "),F=G.join("=").replace(/\+/g," ");v.append(decodeURIComponent(ce),decodeURIComponent(F))}}),v}function ve(h){var v=new u,P=h.replace(/\r?\n[\t ]+/g," ");return P.split(/\r?\n/).forEach(function(G){var ce=G.split(":"),F=ce.shift().trim();if(F){var Zr=ce.join(":").trim();v.append(F,Zr)}}),v}w.call(T.prototype);function re(h,v){v||(v={}),this.type="default",this.status=v.status===void 0?200:v.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in v?v.statusText:"OK",this.headers=new u(v.headers),this.url=v.url||"",this._initBody(h)}w.call(re.prototype),re.prototype.clone=function(){return new re(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},re.error=function(){var h=new re(null,{status:0,statusText:""});return h.type="error",h};var Or=[301,302,303,307,308];re.redirect=function(h,v){if(Or.indexOf(v)===-1)throw new RangeError("Invalid status code");return new re(null,{status:v,headers:{location:h}})},o.DOMException=t.DOMException;try{new o.DOMException}catch{o.DOMException=function(v,P){this.message=v,this.name=P;var G=Error(v);this.stack=G.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function _e(h,v){return new Promise(function(P,G){var ce=new T(h,v);if(ce.signal&&ce.signal.aborted)return G(new o.DOMException("Aborted","AbortError"));var F=new XMLHttpRequest;function Zr(){F.abort()}F.onload=function(){var Cr={status:F.status,statusText:F.statusText,headers:ve(F.getAllResponseHeaders()||"")};Cr.url="responseURL"in F?F.responseURL:Cr.headers.get("X-Request-URL");var qo="response"in F?F.response:F.responseText;P(new re(qo,Cr))},F.onerror=function(){G(new TypeError("Network request failed"))},F.ontimeout=function(){G(new TypeError("Network request failed"))},F.onabort=function(){G(new o.DOMException("Aborted","AbortError"))},F.open(ce.method,ce.url,!0),ce.credentials==="include"?F.withCredentials=!0:ce.credentials==="omit"&&(F.withCredentials=!1),"responseType"in F&&n.blob&&(F.responseType="blob"),ce.headers.forEach(function(Cr,qo){F.setRequestHeader(qo,Cr)}),ce.signal&&(ce.signal.addEventListener("abort",Zr),F.onreadystatechange=function(){F.readyState===4&&ce.signal.removeEventListener("abort",Zr)}),F.send(typeof ce._bodyInit>"u"?null:ce._bodyInit)})}return _e.polyfill=!0,t.fetch||(t.fetch=_e,t.Headers=u,t.Request=T,t.Response=re),o.Headers=u,o.Request=T,o.Response=re,o.fetch=_e,Object.defineProperty(o,"__esModule",{value:!0}),o}({})})(typeof self<"u"?self:ec)});var Lc=m(R());var Ac=m(D()),Rc=m(R());var pi=m(D()),op={},fi=pi.css`
|
|
2
2
|
`;var On=m(R());var Wt=m(D()),W=m(H()),Me=m(R());var ga=m(R());var rn=globalThis,qr=rn.trustedTypes,hi=qr?qr.createPolicy("lit-html",{createHTML:t=>t}):void 0,vi="$lit$",yt=`lit$${(Math.random()+"").slice(9)}$`,Si="?"+yt,$c=`<${Si}>`,Dt=document,Yr=()=>Dt.createComment(""),wr=t=>t===null||typeof t!="object"&&typeof t!="function",Oi=Array.isArray,Bc=t=>Oi(t)||typeof t?.[Symbol.iterator]=="function",Yo=`[
|
|
3
3
|
\f\r]`,Er=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,mi=/-->/g,yi=/>/g,kt=RegExp(`>|${Yo}(?:([^\\s"'>=/]+)(${Yo}*=${Yo}*(?:[^
|
|
4
4
|
\f\r"'\`<>=]|("|')|))|$)`,"g"),gi=/'/g,bi=/"/g,Ci=/^(?:script|style|textarea|title)$/i,Ei=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),wi=Ei(1),Ai=Ei(2),Ar=Symbol.for("lit-noChange"),ie=Symbol.for("lit-nothing"),xi=new WeakMap,_t=Dt.createTreeWalker(Dt,129);function Ri(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return hi!==void 0?hi.createHTML(e):e}var Mc=(t,e)=>{let o=t.length-1,n=[],i,a=e===2?"<svg>":"",s=Er;for(let c=0;c<o;c++){let p=t[c],f,u,y=-1,g=0;for(;g<p.length&&(s.lastIndex=g,u=s.exec(p),u!==null);)g=s.lastIndex,s===Er?u[1]==="!--"?s=mi:u[1]!==void 0?s=yi:u[2]!==void 0?(Ci.test(u[2])&&(i=RegExp("</"+u[2],"g")),s=kt):u[3]!==void 0&&(s=kt):s===kt?u[0]===">"?(s=i??Er,y=-1):u[1]===void 0?y=-2:(y=s.lastIndex-u[2].length,f=u[1],s=u[3]===void 0?kt:u[3]==='"'?bi:gi):s===bi||s===gi?s=kt:s===mi||s===yi?s=Er:(s=kt,i=void 0);let x=s===kt&&t[c+1].startsWith("/>")?" ":"";a+=s===Er?p+$c:y>=0?(n.push(f),p.slice(0,y)+vi+p.slice(y)+yt+x):p+yt+(y===-2?c:x)}return[Ri(t,a+(t[o]||"<?>")+(e===2?"</svg>":"")),n]},Rr=class t{constructor({strings:e,_$litType$:o},n){let i;this.parts=[];let a=0,s=0,c=e.length-1,p=this.parts,[f,u]=Mc(e,o);if(this.el=t.createElement(f,n),_t.currentNode=this.el.content,o===2){let y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(i=_t.nextNode())!==null&&p.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(let y of i.getAttributeNames())if(y.endsWith(vi)){let g=u[s++],x=i.getAttribute(y).split(yt),b=/([.?@])?(.*)/.exec(g);p.push({type:1,index:a,name:b[2],strings:x,ctor:b[1]==="."?Qo:b[1]==="?"?Jo:b[1]==="@"?en:Zt}),i.removeAttribute(y)}else y.startsWith(yt)&&(p.push({type:6,index:a}),i.removeAttribute(y));if(Ci.test(i.tagName)){let y=i.textContent.split(yt),g=y.length-1;if(g>0){i.textContent=qr?qr.emptyScript:"";for(let x=0;x<g;x++)i.append(y[x],Yr()),_t.nextNode(),p.push({type:2,index:++a});i.append(y[g],Yr())}}}else if(i.nodeType===8)if(i.data===Si)p.push({type:2,index:a});else{let y=-1;for(;(y=i.data.indexOf(yt,y+1))!==-1;)p.push({type:7,index:a}),y+=yt.length-1}a++}}static createElement(e,o){let n=Dt.createElement("template");return n.innerHTML=e,n}};function Kt(t,e,o=t,n){if(e===Ar)return e;let i=n!==void 0?o._$Co?.[n]:o._$Cl,a=wr(e)?void 0:e._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(t),i._$AT(t,o,n)),n!==void 0?(o._$Co??=[])[n]=i:o._$Cl=i),i!==void 0&&(e=Kt(t,i._$AS(t,e.values),i,n)),e}var Xo=class{constructor(e,o){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:o},parts:n}=this._$AD,i=(e?.creationScope??Dt).importNode(o,!0);_t.currentNode=i;let a=_t.nextNode(),s=0,c=0,p=n[0];for(;p!==void 0;){if(s===p.index){let f;p.type===2?f=new Xr(a,a.nextSibling,this,e):p.type===1?f=new p.ctor(a,p.name,p.strings,this,e):p.type===6&&(f=new tn(a,this,e)),this._$AV.push(f),p=n[++c]}s!==p?.index&&(a=_t.nextNode(),s++)}return _t.currentNode=Dt,i}p(e){let o=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,o),o+=n.strings.length-2):n._$AI(e[o])),o++}},Xr=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,o,n,i){this.type=2,this._$AH=ie,this._$AN=void 0,this._$AA=e,this._$AB=o,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,o=this._$AM;return o!==void 0&&e?.nodeType===11&&(e=o.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,o=this){e=Kt(this,e,o),wr(e)?e===ie||e==null||e===""?(this._$AH!==ie&&this._$AR(),this._$AH=ie):e!==this._$AH&&e!==Ar&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Bc(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==ie&&wr(this._$AH)?this._$AA.nextSibling.data=e:this.$(Dt.createTextNode(e)),this._$AH=e}g(e){let{values:o,_$litType$:n}=e,i=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Rr.createElement(Ri(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(o);else{let a=new Xo(i,this),s=a.u(this.options);a.p(o),this.$(s),this._$AH=a}}_$AC(e){let o=xi.get(e.strings);return o===void 0&&xi.set(e.strings,o=new Rr(e)),o}T(e){Oi(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,n,i=0;for(let a of e)i===o.length?o.push(n=new t(this.k(Yr()),this.k(Yr()),this,this.options)):n=o[i],n._$AI(a),i++;i<o.length&&(this._$AR(n&&n._$AB.nextSibling,i),o.length=i)}_$AR(e=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Zt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,o,n,i,a){this.type=1,this._$AH=ie,this._$AN=void 0,this.element=e,this.name=o,this._$AM=i,this.options=a,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=ie}_$AI(e,o=this,n,i){let a=this.strings,s=!1;if(a===void 0)e=Kt(this,e,o,0),s=!wr(e)||e!==this._$AH&&e!==Ar,s&&(this._$AH=e);else{let c=e,p,f;for(e=a[0],p=0;p<a.length-1;p++)f=Kt(this,c[n+p],o,p),f===Ar&&(f=this._$AH[p]),s||=!wr(f)||f!==this._$AH[p],f===ie?e=ie:e!==ie&&(e+=(f??"")+a[p+1]),this._$AH[p]=f}s&&!i&&this.O(e)}O(e){e===ie?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Qo=class extends Zt{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===ie?void 0:e}},Jo=class extends Zt{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==ie)}},en=class extends Zt{constructor(e,o,n,i,a){super(e,o,n,i,a),this.type=5}_$AI(e,o=this){if((e=Kt(this,e,o,0)??ie)===Ar)return;let n=this._$AH,i=e===ie&&n!==ie||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,a=e!==ie&&(n===ie||i);i&&this.element.removeEventListener(this.name,this,n),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},tn=class{constructor(e,o,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=o,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){Kt(this,e)}};var Uc=rn.litHtmlPolyfillSupport;Uc?.(Rr,Xr),(rn.litHtmlVersions??=[]).push("3.1.0");var Li=Symbol.for(""),zc=t=>{if(t?.r===Li)return t?._$litStatic$},on=t=>({_$litStatic$:t,r:Li});var Ni=new Map,Pi=t=>(e,...o)=>{let n=o.length,i,a,s=[],c=[],p,f=0,u=!1;for(;f<n;){for(p=e[f];f<n&&(a=o[f],(i=zc(a))!==void 0);)p+=i+e[++f],u=!0;f!==n&&c.push(a),s.push(p),f++}if(f===n&&s.push(e[n]),u){let y=s.join("$$lit$$");(e=Ni.get(y))===void 0&&(s.raw=s,Ni.set(y,e=s)),o=c}return t(e,...o)},nn=Pi(wi),lp=Pi(Ai);var an=m(H()),ya=m(R());var gt;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"})(gt||(gt={}));var De=m(D()),E=m(R());var nt=m(D(),1),bt=t=>typeof t=="string"?(0,nt.unsafeCSS)(t):t,r=class{static create(e,o,n,i){let a=c=>bt(c??i),s=nt.css`var(${bt(e)}, ${a(i)})`;return s.name=e,s.description=o,s.category=n,s.defaultValue=i,s.defaultCssValue=a,s.get=c=>nt.css`var(${bt(e)}, ${a(c)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(e,o,n,i){let a=c=>n.get(c??i),s=nt.css`var(${bt(e)}, ${a(i)})`;return s.name=e,s.description=o,s.category=n.category,s.fallbackVariable=n,s.defaultValue=i,s.defaultCssValue=a,s.get=c=>nt.css`var(${bt(e)}, ${a(c)})`,s.breadcrumb=()=>[n.name,...n.breadcrumb()],s.lastResortDefaultValue=()=>i??n.lastResortDefaultValue(),s}static external(e,o){let n=a=>e.fallbackVariable?e.fallbackVariable.get(a??e.defaultValue):bt(a??e.lastResortDefaultValue()),i=nt.css`var(${bt(e.name)}, ${n(e.defaultValue)})`;return i.name=e.name,i.category=e.category,i.fallbackVariable=e.fallbackVariable,i.defaultValue=e.defaultValue,i.context=o,i.defaultCssValue=n,i.get=a=>nt.css`var(${bt(e.name)}, ${n(a)})`,i.breadcrumb=()=>e.fallbackVariable?[e.fallbackVariable.name,...e.fallbackVariable.breadcrumb()]:[],i.lastResortDefaultValue=()=>e.lastResortDefaultValue(),i}};var l={colorWhite:r.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:r.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:r.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:r.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:r.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:r.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:r.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:r.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:r.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:r.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:r.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:r.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:r.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:r.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:r.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:r.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:r.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:r.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:r.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:r.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:r.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:r.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:r.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:r.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:r.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:r.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:r.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:r.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:r.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:r.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:r.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:r.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:r.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:r.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:r.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:r.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:r.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:r.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:r.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:r.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:r.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:r.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:r.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:r.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:r.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:r.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:r.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:r.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:r.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:r.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:r.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:r.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:r.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:r.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:r.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:r.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:r.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:r.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:r.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:r.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:r.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:r.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:r.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:r.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:r.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:r.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:r.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:r.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:r.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:r.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:r.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:r.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:r.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:r.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:r.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:r.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:r.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:r.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:r.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:r.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:r.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:r.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:r.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:r.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:r.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:r.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:r.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:r.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:r.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:r.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:r.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:r.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:r.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:r.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:r.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:r.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:r.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:r.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:r.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:r.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:r.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:r.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:r.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:r.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:r.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:r.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:r.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:r.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:r.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:r.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:r.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:r.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:r.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:r.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:r.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:r.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:r.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:r.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:r.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:r.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:r.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:r.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:r.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:r.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:r.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:r.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:r.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:r.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:r.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:r.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:r.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:r.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:r.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:r.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:r.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:r.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:r.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:r.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:r.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:r.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:r.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:r.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:r.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:r.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:r.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:r.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:r.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:r.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:r.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:r.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:r.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:r.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:r.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:r.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:r.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:r.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:r.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:r.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:r.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:r.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:r.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:r.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:r.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:r.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:r.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:r.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:r.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:r.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:r.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:r.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:r.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:r.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:r.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:r.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:r.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:r.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:r.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:r.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:r.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:r.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:r.create("--ft-opacity-0","","NUMBER","0"),opacity8:r.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:r.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:r.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:r.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:r.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:r.create("--ft-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:r.create("--ft-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:r.create("--ft-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:r.create("--ft-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:r.create("--ft-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:r.create("--ft-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:r.create("--ft-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:r.create("--ft-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:r.create("--ft-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},Ti={fontFamily:r.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:r.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:r.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:r.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-display-textCase","","UNKNOWN","none")},Ii={fontFamily:r.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:r.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:r.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:r.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},ki={fontFamily:r.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:r.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:r.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:r.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},_i={fontFamily:r.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:r.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:r.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:r.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},Di={fontFamily:r.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:r.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:r.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:r.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},$i={fontFamily:r.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:r.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:r.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},Bi={fontFamily:r.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:r.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:r.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},Mi={fontFamily:r.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:r.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:r.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},Ui={fontFamily:r.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:r.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},Fc={fontFamily:r.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:r.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:r.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:r.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},zi={fontFamily:r.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:r.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},Fi={fontFamily:r.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},Wi={fontFamily:r.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},Hi={fontFamily:r.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},Vi={fontFamily:r.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},ji={fontFamily:r.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},Gi={fontFamily:r.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},Ki={fontFamily:r.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},Zi={fontFamily:r.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},qi={fontFamily:r.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},Yi={fontFamily:r.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:r.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},Xi={fontFamily:r.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:r.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},Qi={fontFamily:r.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:r.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},Ji={fontFamily:r.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:r.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},ea={fontFamily:r.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:r.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},ta={fontFamily:r.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:r.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},Qr={display:Ti,"title-1":Ii,"title-2":ki,"title-3":_i,"body-1-regular":Di,"body-1-medium":$i,"body-1-semibold":Bi,"body-2-regular":Mi,"body-2-medium":Ui,"body-2-medium-underline":Fc,"body-2-semibold":zi,"label-1-medium":Fi,"label-1-semibold":Wi,"label-1-bold":Hi,"label-2-medium":Vi,"label-2-semibold":ji,"label-2-bold":Gi,"caption-1-medium":Ki,"caption-1-semibold":Zi,"caption-1-bold":qi,"caption-2-medium":Yi,"caption-2-semibold":Xi,"caption-2-bold":Qi,"caption-3-medium":Ji,"caption-3-semibold":ea,"caption-3-bold":ta};var d={backgroundActionPrimary:r.extend("--ft-background-action-primary","Used as backgorund of primary action components.",l.colorBrand0),backgroundErrorSubtle:r.extend("--ft-background-error-subtle","Used as background of subtle error components.",l.colorRed10),backgroundInfoSubtle:r.extend("--ft-background-info-subtle","Used as background of subtle information components.",l.colorCyan10),backgroundWarningSubtle:r.extend("--ft-background-warning-subtle","Used as background of subtle information components.",l.colorOrange10),backgroundSuccessSubtle:r.extend("--ft-background-success-subtle","Used as background of subtle success components.",l.colorGreen10),backgroundGlobalSurface:r.extend("--ft-background-global-surface","Used as app background.",l.colorWhite),backgroundGlobalOnSurface:r.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",l.colorGray10),backgroundGlobalOnSurfaceDark:r.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",l.colorGray30),contentActionPrimary:r.extend("--ft-content-action-primary","Used on label of primary action on light surface.",l.colorBrand0),contentWarningPrimary:r.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",l.colorOrange200),contentWarningIconOnly:r.extend("--ft-content-warning-icon-only","Used on warning status icons alone",l.colorOrange0),contentErrorPrimary:r.extend("--ft-content-error-primary","Used on label of error messages on light surface.",l.colorRed0),contentErrorIconOnly:r.extend("--ft-content-error-icon-only","Used on error status icons alone",l.colorRed70),contentInfoPrimary:r.extend("--ft-content-info-primary","Used on label of information messages on light surface.",l.colorCyan200),contentInfoIconOnly:r.extend("--ft-content-info-icon-only","Used on info status icons alone",l.colorCyan0),contentSuccessPrimary:r.extend("--ft-content-success-primary","Used on label of success messages on light surface.",l.colorGreen200),contentSuccessIconOnly:r.extend("--ft-content-success-icon-only","Used on success status icons alone",l.colorGreen0),contentGlobalPrimary:r.extend("--ft-content-global-primary","Used for main content on the page.",l.colorGray500),contentGlobalSecondary:r.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
@@ -519,7 +519,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
519
519
|
position: relative;
|
|
520
520
|
word-break: break-word;
|
|
521
521
|
}
|
|
522
|
-
`;var Wa=["top","right","bottom","left"],Fa=["start","end"],cn=Wa.reduce((t,e)=>t.concat(e,e+"-"+Fa[0],e+"-"+Fa[1]),[]),Pr=Math.min,xt=Math.max,Tr=Math.round;var lt=t=>({x:t,y:t}),Wc={left:"right",right:"left",bottom:"top",top:"bottom"},Hc={start:"end",end:"start"};function dn(t,e,o){return xt(t,Pr(e,o))}function ro(t,e){return typeof t=="function"?t(e):t}function ar(t){return t.split("-")[0]}function vt(t){return t.split("-")[1]}function pn(t){return t==="x"?"y":"x"}function fn(t){return t==="y"?"height":"width"}function oo(t){return["top","bottom"].includes(ar(t))?"y":"x"}function un(t){return pn(oo(t))}function Ha(t,e,o){o===void 0&&(o=!1);let n=vt(t),i=un(t),a=fn(i),s=i==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=ln(s)),[s,ln(s)]}function Va(t){return t.replace(/start|end/g,e=>Hc[e])}function ln(t){return t.replace(/left|right|bottom|top/g,e=>Wc[e])}function Vc(t){return{top:0,right:0,bottom:0,left:0,...t}}function ja(t){return typeof t!="number"?Vc(t):{top:t,right:t,bottom:t,left:t}}function $t(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Ga(t,e,o){let{reference:n,floating:i}=t,a=oo(e),s=un(e),c=fn(s),p=ar(e),f=a==="y",u=n.x+n.width/2-i.width/2,y=n.y+n.height/2-i.height/2,g=n[c]/2-i[c]/2,x;switch(p){case"top":x={x:u,y:n.y-i.height};break;case"bottom":x={x:u,y:n.y+n.height};break;case"right":x={x:n.x+n.width,y};break;case"left":x={x:n.x-i.width,y};break;default:x={x:n.x,y:n.y}}switch(vt(e)){case"start":x[s]-=g*(o&&f?-1:1);break;case"end":x[s]+=g*(o&&f?-1:1);break}return x}var Ka=async(t,e,o)=>{let{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:s}=o,c=a.filter(Boolean),p=await(s.isRTL==null?void 0:s.isRTL(e)),f=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y}=Ga(f,n,p),g=n,x={},b=0;for(let S=0;S<c.length;S++){let{name:L,fn:w}=c[S],{x:A,y:k,data:T,reset:z}=await w({x:u,y,initialPlacement:n,placement:g,strategy:i,middlewareData:x,rects:f,platform:s,elements:{reference:t,floating:e}});if(u=A??u,y=k??y,x={...x,[L]:{...x[L],...T}},z&&b<=50){b++,typeof z=="object"&&(z.placement&&(g=z.placement),z.rects&&(f=z.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):z.rects),{x:u,y}=Ga(f,g,p)),S=-1;continue}}return{x:u,y,placement:g,strategy:i,middlewareData:x}};async function hn(t,e){var o;e===void 0&&(e={});let{x:n,y:i,platform:a,rects:s,elements:c,strategy:p}=t,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:y="floating",altBoundary:g=!1,padding:x=0}=ro(e,t),b=ja(x),L=c[g?y==="floating"?"reference":"floating":y],w=$t(await a.getClippingRect({element:(o=await(a.isElement==null?void 0:a.isElement(L)))==null||o?L:L.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:f,rootBoundary:u,strategy:p})),A=y==="floating"?{...s.floating,x:n,y:i}:s.reference,k=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),T=await(a.isElement==null?void 0:a.isElement(k))?await(a.getScale==null?void 0:a.getScale(k))||{x:1,y:1}:{x:1,y:1},z=$t(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:A,offsetParent:k,strategy:p}):A);return{top:(w.top-z.top+b.top)/T.y,bottom:(z.bottom-w.bottom+b.bottom)/T.y,left:(w.left-z.left+b.left)/T.x,right:(z.right-w.right+b.right)/T.x}}function jc(t,e,o){return(t?[...o.filter(i=>vt(i)===t),...o.filter(i=>vt(i)!==t)]:o.filter(i=>ar(i)===i)).filter(i=>t?vt(i)===t||(e?Va(i)!==i:!1):!0)}var mn=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,n,i;let{rects:a,middlewareData:s,placement:c,platform:p,elements:f}=e,{crossAxis:u=!1,alignment:y,allowedPlacements:g=cn,autoAlignment:x=!0,...b}=ro(t,e),S=y!==void 0||g===cn?jc(y||null,x,g):g,L=await hn(e,b),w=((o=s.autoPlacement)==null?void 0:o.index)||0,A=S[w];if(A==null)return{};let k=Ha(A,a,await(p.isRTL==null?void 0:p.isRTL(f.floating)));if(c!==A)return{reset:{placement:S[0]}};let T=[L[ar(A)],L[k[0]],L[k[1]]],z=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:A,overflows:T}],ve=S[w+1];if(ve)return{data:{index:w+1,overflows:z},reset:{placement:ve}};let re=z.map(h=>{let v=vt(h.placement);return[h.placement,v&&u?h.overflows.slice(0,2).reduce((P,j)=>P+j,0):h.overflows[0],h.overflows]}).sort((h,v)=>h[1]-v[1]),_e=((i=re.filter(h=>h[2].slice(0,vt(h[0])?2:3).every(v=>v<=0))[0])==null?void 0:i[0])||re[0][0];return _e!==c?{data:{index:w+1,overflows:z},reset:{placement:_e}}:{}}}};var yn=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:o,y:n,placement:i}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:L=>{let{x:w,y:A}=L;return{x:w,y:A}}},...p}=ro(t,e),f={x:o,y:n},u=await hn(e,p),y=oo(ar(i)),g=pn(y),x=f[g],b=f[y];if(a){let L=g==="y"?"top":"left",w=g==="y"?"bottom":"right",A=x+u[L],k=x-u[w];x=dn(A,x,k)}if(s){let L=y==="y"?"top":"left",w=y==="y"?"bottom":"right",A=b+u[L],k=b-u[w];b=dn(A,b,k)}let S=c.fn({...e,[g]:x,[y]:b});return{...S,data:{x:S.x-o,y:S.y-n}}}}};function ct(t){return qa(t)?(t.nodeName||"").toLowerCase():"#document"}function Oe(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function dt(t){var e;return(e=(qa(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function qa(t){return t instanceof Node||t instanceof Oe(t).Node}function Xe(t){return t instanceof Element||t instanceof Oe(t).Element}function Fe(t){return t instanceof HTMLElement||t instanceof Oe(t).HTMLElement}function Za(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Oe(t).ShadowRoot}function sr(t){let{overflow:e,overflowX:o,overflowY:n,display:i}=Re(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+o)&&!["inline","contents"].includes(i)}function Ya(t){return["table","td","th"].includes(ct(t))}function io(t){let e=ao(),o=Re(t);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!e&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!e&&(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 Xa(t){let e=Bt(t);for(;Fe(e)&&!Ir(e);){if(io(e))return e;e=Bt(e)}return null}function ao(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ir(t){return["html","body","#document"].includes(ct(t))}function Re(t){return Oe(t).getComputedStyle(t)}function kr(t){return Xe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Bt(t){if(ct(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Za(t)&&t.host||dt(t);return Za(e)?e.host:e}function Qa(t){let e=Bt(t);return Ir(e)?t.ownerDocument?t.ownerDocument.body:t.body:Fe(e)&&sr(e)?e:Qa(e)}function no(t,e,o){var n;e===void 0&&(e=[]),o===void 0&&(o=!0);let i=Qa(t),a=i===((n=t.ownerDocument)==null?void 0:n.body),s=Oe(i);return a?e.concat(s,s.visualViewport||[],sr(i)?i:[],s.frameElement&&o?no(s.frameElement):[]):e.concat(i,no(i,[],o))}function ts(t){let e=Re(t),o=parseFloat(e.width)||0,n=parseFloat(e.height)||0,i=Fe(t),a=i?t.offsetWidth:o,s=i?t.offsetHeight:n,c=Tr(o)!==a||Tr(n)!==s;return c&&(o=a,n=s),{width:o,height:n,$:c}}function rs(t){return Xe(t)?t:t.contextElement}function lr(t){let e=rs(t);if(!Fe(e))return lt(1);let o=e.getBoundingClientRect(),{width:n,height:i,$:a}=ts(e),s=(a?Tr(o.width):o.width)/n,c=(a?Tr(o.height):o.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var Gc=lt(0);function os(t){let e=Oe(t);return!ao()||!e.visualViewport?Gc:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Kc(t,e,o){return e===void 0&&(e=!1),!o||e&&o!==Oe(t)?!1:e}function _r(t,e,o,n){e===void 0&&(e=!1),o===void 0&&(o=!1);let i=t.getBoundingClientRect(),a=rs(t),s=lt(1);e&&(n?Xe(n)&&(s=lr(n)):s=lr(t));let c=Kc(a,o,n)?os(a):lt(0),p=(i.left+c.x)/s.x,f=(i.top+c.y)/s.y,u=i.width/s.x,y=i.height/s.y;if(a){let g=Oe(a),x=n&&Xe(n)?Oe(n):n,b=g.frameElement;for(;b&&n&&x!==g;){let S=lr(b),L=b.getBoundingClientRect(),w=Re(b),A=L.left+(b.clientLeft+parseFloat(w.paddingLeft))*S.x,k=L.top+(b.clientTop+parseFloat(w.paddingTop))*S.y;p*=S.x,f*=S.y,u*=S.x,y*=S.y,p+=A,f+=k,b=Oe(b).frameElement}}return $t({width:u,height:y,x:p,y:f})}function Zc(t){let{rect:e,offsetParent:o,strategy:n}=t,i=Fe(o),a=dt(o);if(o===a)return e;let s={scrollLeft:0,scrollTop:0},c=lt(1),p=lt(0);if((i||!i&&n!=="fixed")&&((ct(o)!=="body"||sr(a))&&(s=kr(o)),Fe(o))){let f=_r(o);c=lr(o),p.x=f.x+o.clientLeft,p.y=f.y+o.clientTop}return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-s.scrollLeft*c.x+p.x,y:e.y*c.y-s.scrollTop*c.y+p.y}}function qc(t){return Array.from(t.getClientRects())}function ns(t){return _r(dt(t)).left+kr(t).scrollLeft}function Yc(t){let e=dt(t),o=kr(t),n=t.ownerDocument.body,i=xt(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),a=xt(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),s=-o.scrollLeft+ns(t),c=-o.scrollTop;return Re(n).direction==="rtl"&&(s+=xt(e.clientWidth,n.clientWidth)-i),{width:i,height:a,x:s,y:c}}function Xc(t,e){let o=Oe(t),n=dt(t),i=o.visualViewport,a=n.clientWidth,s=n.clientHeight,c=0,p=0;if(i){a=i.width,s=i.height;let f=ao();(!f||f&&e==="fixed")&&(c=i.offsetLeft,p=i.offsetTop)}return{width:a,height:s,x:c,y:p}}function Qc(t,e){let o=_r(t,!0,e==="fixed"),n=o.top+t.clientTop,i=o.left+t.clientLeft,a=Fe(t)?lr(t):lt(1),s=t.clientWidth*a.x,c=t.clientHeight*a.y,p=i*a.x,f=n*a.y;return{width:s,height:c,x:p,y:f}}function Ja(t,e,o){let n;if(e==="viewport")n=Xc(t,o);else if(e==="document")n=Yc(dt(t));else if(Xe(e))n=Qc(e,o);else{let i=os(t);n={...e,x:e.x-i.x,y:e.y-i.y}}return $t(n)}function is(t,e){let o=Bt(t);return o===e||!Xe(o)||Ir(o)?!1:Re(o).position==="fixed"||is(o,e)}function Jc(t,e){let o=e.get(t);if(o)return o;let n=no(t,[],!1).filter(c=>Xe(c)&&ct(c)!=="body"),i=null,a=Re(t).position==="fixed",s=a?Bt(t):t;for(;Xe(s)&&!Ir(s);){let c=Re(s),p=io(s);!p&&c.position==="fixed"&&(i=null),(a?!p&&!i:!p&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||sr(s)&&!p&&is(t,s))?n=n.filter(u=>u!==s):i=c,s=Bt(s)}return e.set(t,n),n}function ed(t){let{element:e,boundary:o,rootBoundary:n,strategy:i}=t,s=[...o==="clippingAncestors"?Jc(e,this._c):[].concat(o),n],c=s[0],p=s.reduce((f,u)=>{let y=Ja(e,u,i);return f.top=xt(y.top,f.top),f.right=Pr(y.right,f.right),f.bottom=Pr(y.bottom,f.bottom),f.left=xt(y.left,f.left),f},Ja(e,c,i));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function td(t){return ts(t)}function rd(t,e,o){let n=Fe(e),i=dt(e),a=o==="fixed",s=_r(t,!0,a,e),c={scrollLeft:0,scrollTop:0},p=lt(0);if(n||!n&&!a)if((ct(e)!=="body"||sr(i))&&(c=kr(e)),n){let f=_r(e,!0,a,e);p.x=f.x+e.clientLeft,p.y=f.y+e.clientTop}else i&&(p.x=ns(i));return{x:s.left+c.scrollLeft-p.x,y:s.top+c.scrollTop-p.y,width:s.width,height:s.height}}function es(t,e){return!Fe(t)||Re(t).position==="fixed"?null:e?e(t):t.offsetParent}function as(t,e){let o=Oe(t);if(!Fe(t))return o;let n=es(t,e);for(;n&&Ya(n)&&Re(n).position==="static";)n=es(n,e);return n&&(ct(n)==="html"||ct(n)==="body"&&Re(n).position==="static"&&!io(n))?o:n||Xa(t)||o}var od=async function(t){let{reference:e,floating:o,strategy:n}=t,i=this.getOffsetParent||as,a=this.getDimensions;return{reference:rd(e,await i(o),n),floating:{x:0,y:0,...await a(o)}}};function nd(t){return Re(t).direction==="rtl"}var so={convertOffsetParentRelativeRectToViewportRelativeRect:Zc,getDocumentElement:dt,getClippingRect:ed,getOffsetParent:as,getElementRects:od,getClientRects:qc,getDimensions:td,getScale:lr,isElement:Xe,isRTL:nd};var ss=(t,e,o)=>{let n=new Map,i={platform:so,...o},a={...i.platform,_c:n};return Ka(t,e,{...i,platform:a})};function ls(t){return id(t)}function gn(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function id(t){for(let e=t;e;e=gn(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=gn(t);e;e=gn(e)){if(!(e instanceof Element))continue;let o=getComputedStyle(e);if(o.display!=="contents"&&(o.position!=="static"||o.filter!=="none"||e.tagName==="BODY"))return e}return null}async function cs(t,e,o){return ss(t,e,{platform:{...so,getOffsetParent:n=>so.getOffsetParent(n,ls)},middleware:[yn({crossAxis:!0}),mn({allowedPlacements:[o]})]})}var Ce=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Y=class extends Dr.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new Dr.Debouncer,this.revealDebouncer=new Dr.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return ds.html`
|
|
522
|
+
`;var Wa=["top","right","bottom","left"],Fa=["start","end"],cn=Wa.reduce((t,e)=>t.concat(e,e+"-"+Fa[0],e+"-"+Fa[1]),[]),Pr=Math.min,xt=Math.max,Tr=Math.round;var lt=t=>({x:t,y:t}),Wc={left:"right",right:"left",bottom:"top",top:"bottom"},Hc={start:"end",end:"start"};function dn(t,e,o){return xt(t,Pr(e,o))}function ro(t,e){return typeof t=="function"?t(e):t}function ar(t){return t.split("-")[0]}function vt(t){return t.split("-")[1]}function pn(t){return t==="x"?"y":"x"}function fn(t){return t==="y"?"height":"width"}function oo(t){return["top","bottom"].includes(ar(t))?"y":"x"}function un(t){return pn(oo(t))}function Ha(t,e,o){o===void 0&&(o=!1);let n=vt(t),i=un(t),a=fn(i),s=i==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=ln(s)),[s,ln(s)]}function Va(t){return t.replace(/start|end/g,e=>Hc[e])}function ln(t){return t.replace(/left|right|bottom|top/g,e=>Wc[e])}function Vc(t){return{top:0,right:0,bottom:0,left:0,...t}}function ja(t){return typeof t!="number"?Vc(t):{top:t,right:t,bottom:t,left:t}}function $t(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Ga(t,e,o){let{reference:n,floating:i}=t,a=oo(e),s=un(e),c=fn(s),p=ar(e),f=a==="y",u=n.x+n.width/2-i.width/2,y=n.y+n.height/2-i.height/2,g=n[c]/2-i[c]/2,x;switch(p){case"top":x={x:u,y:n.y-i.height};break;case"bottom":x={x:u,y:n.y+n.height};break;case"right":x={x:n.x+n.width,y};break;case"left":x={x:n.x-i.width,y};break;default:x={x:n.x,y:n.y}}switch(vt(e)){case"start":x[s]-=g*(o&&f?-1:1);break;case"end":x[s]+=g*(o&&f?-1:1);break}return x}var Ka=async(t,e,o)=>{let{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:s}=o,c=a.filter(Boolean),p=await(s.isRTL==null?void 0:s.isRTL(e)),f=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y}=Ga(f,n,p),g=n,x={},b=0;for(let S=0;S<c.length;S++){let{name:L,fn:w}=c[S],{x:A,y:k,data:T,reset:z}=await w({x:u,y,initialPlacement:n,placement:g,strategy:i,middlewareData:x,rects:f,platform:s,elements:{reference:t,floating:e}});if(u=A??u,y=k??y,x={...x,[L]:{...x[L],...T}},z&&b<=50){b++,typeof z=="object"&&(z.placement&&(g=z.placement),z.rects&&(f=z.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):z.rects),{x:u,y}=Ga(f,g,p)),S=-1;continue}}return{x:u,y,placement:g,strategy:i,middlewareData:x}};async function hn(t,e){var o;e===void 0&&(e={});let{x:n,y:i,platform:a,rects:s,elements:c,strategy:p}=t,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:y="floating",altBoundary:g=!1,padding:x=0}=ro(e,t),b=ja(x),L=c[g?y==="floating"?"reference":"floating":y],w=$t(await a.getClippingRect({element:(o=await(a.isElement==null?void 0:a.isElement(L)))==null||o?L:L.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:f,rootBoundary:u,strategy:p})),A=y==="floating"?{...s.floating,x:n,y:i}:s.reference,k=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),T=await(a.isElement==null?void 0:a.isElement(k))?await(a.getScale==null?void 0:a.getScale(k))||{x:1,y:1}:{x:1,y:1},z=$t(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:A,offsetParent:k,strategy:p}):A);return{top:(w.top-z.top+b.top)/T.y,bottom:(z.bottom-w.bottom+b.bottom)/T.y,left:(w.left-z.left+b.left)/T.x,right:(z.right-w.right+b.right)/T.x}}function jc(t,e,o){return(t?[...o.filter(i=>vt(i)===t),...o.filter(i=>vt(i)!==t)]:o.filter(i=>ar(i)===i)).filter(i=>t?vt(i)===t||(e?Va(i)!==i:!1):!0)}var mn=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,n,i;let{rects:a,middlewareData:s,placement:c,platform:p,elements:f}=e,{crossAxis:u=!1,alignment:y,allowedPlacements:g=cn,autoAlignment:x=!0,...b}=ro(t,e),S=y!==void 0||g===cn?jc(y||null,x,g):g,L=await hn(e,b),w=((o=s.autoPlacement)==null?void 0:o.index)||0,A=S[w];if(A==null)return{};let k=Ha(A,a,await(p.isRTL==null?void 0:p.isRTL(f.floating)));if(c!==A)return{reset:{placement:S[0]}};let T=[L[ar(A)],L[k[0]],L[k[1]]],z=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:A,overflows:T}],ve=S[w+1];if(ve)return{data:{index:w+1,overflows:z},reset:{placement:ve}};let re=z.map(h=>{let v=vt(h.placement);return[h.placement,v&&u?h.overflows.slice(0,2).reduce((P,G)=>P+G,0):h.overflows[0],h.overflows]}).sort((h,v)=>h[1]-v[1]),_e=((i=re.filter(h=>h[2].slice(0,vt(h[0])?2:3).every(v=>v<=0))[0])==null?void 0:i[0])||re[0][0];return _e!==c?{data:{index:w+1,overflows:z},reset:{placement:_e}}:{}}}};var yn=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:o,y:n,placement:i}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:L=>{let{x:w,y:A}=L;return{x:w,y:A}}},...p}=ro(t,e),f={x:o,y:n},u=await hn(e,p),y=oo(ar(i)),g=pn(y),x=f[g],b=f[y];if(a){let L=g==="y"?"top":"left",w=g==="y"?"bottom":"right",A=x+u[L],k=x-u[w];x=dn(A,x,k)}if(s){let L=y==="y"?"top":"left",w=y==="y"?"bottom":"right",A=b+u[L],k=b-u[w];b=dn(A,b,k)}let S=c.fn({...e,[g]:x,[y]:b});return{...S,data:{x:S.x-o,y:S.y-n}}}}};function ct(t){return qa(t)?(t.nodeName||"").toLowerCase():"#document"}function Oe(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function dt(t){var e;return(e=(qa(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function qa(t){return t instanceof Node||t instanceof Oe(t).Node}function Xe(t){return t instanceof Element||t instanceof Oe(t).Element}function Fe(t){return t instanceof HTMLElement||t instanceof Oe(t).HTMLElement}function Za(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Oe(t).ShadowRoot}function sr(t){let{overflow:e,overflowX:o,overflowY:n,display:i}=Re(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+o)&&!["inline","contents"].includes(i)}function Ya(t){return["table","td","th"].includes(ct(t))}function io(t){let e=ao(),o=Re(t);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!e&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!e&&(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 Xa(t){let e=Bt(t);for(;Fe(e)&&!Ir(e);){if(io(e))return e;e=Bt(e)}return null}function ao(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ir(t){return["html","body","#document"].includes(ct(t))}function Re(t){return Oe(t).getComputedStyle(t)}function kr(t){return Xe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Bt(t){if(ct(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Za(t)&&t.host||dt(t);return Za(e)?e.host:e}function Qa(t){let e=Bt(t);return Ir(e)?t.ownerDocument?t.ownerDocument.body:t.body:Fe(e)&&sr(e)?e:Qa(e)}function no(t,e,o){var n;e===void 0&&(e=[]),o===void 0&&(o=!0);let i=Qa(t),a=i===((n=t.ownerDocument)==null?void 0:n.body),s=Oe(i);return a?e.concat(s,s.visualViewport||[],sr(i)?i:[],s.frameElement&&o?no(s.frameElement):[]):e.concat(i,no(i,[],o))}function ts(t){let e=Re(t),o=parseFloat(e.width)||0,n=parseFloat(e.height)||0,i=Fe(t),a=i?t.offsetWidth:o,s=i?t.offsetHeight:n,c=Tr(o)!==a||Tr(n)!==s;return c&&(o=a,n=s),{width:o,height:n,$:c}}function rs(t){return Xe(t)?t:t.contextElement}function lr(t){let e=rs(t);if(!Fe(e))return lt(1);let o=e.getBoundingClientRect(),{width:n,height:i,$:a}=ts(e),s=(a?Tr(o.width):o.width)/n,c=(a?Tr(o.height):o.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var Gc=lt(0);function os(t){let e=Oe(t);return!ao()||!e.visualViewport?Gc:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Kc(t,e,o){return e===void 0&&(e=!1),!o||e&&o!==Oe(t)?!1:e}function _r(t,e,o,n){e===void 0&&(e=!1),o===void 0&&(o=!1);let i=t.getBoundingClientRect(),a=rs(t),s=lt(1);e&&(n?Xe(n)&&(s=lr(n)):s=lr(t));let c=Kc(a,o,n)?os(a):lt(0),p=(i.left+c.x)/s.x,f=(i.top+c.y)/s.y,u=i.width/s.x,y=i.height/s.y;if(a){let g=Oe(a),x=n&&Xe(n)?Oe(n):n,b=g.frameElement;for(;b&&n&&x!==g;){let S=lr(b),L=b.getBoundingClientRect(),w=Re(b),A=L.left+(b.clientLeft+parseFloat(w.paddingLeft))*S.x,k=L.top+(b.clientTop+parseFloat(w.paddingTop))*S.y;p*=S.x,f*=S.y,u*=S.x,y*=S.y,p+=A,f+=k,b=Oe(b).frameElement}}return $t({width:u,height:y,x:p,y:f})}function Zc(t){let{rect:e,offsetParent:o,strategy:n}=t,i=Fe(o),a=dt(o);if(o===a)return e;let s={scrollLeft:0,scrollTop:0},c=lt(1),p=lt(0);if((i||!i&&n!=="fixed")&&((ct(o)!=="body"||sr(a))&&(s=kr(o)),Fe(o))){let f=_r(o);c=lr(o),p.x=f.x+o.clientLeft,p.y=f.y+o.clientTop}return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-s.scrollLeft*c.x+p.x,y:e.y*c.y-s.scrollTop*c.y+p.y}}function qc(t){return Array.from(t.getClientRects())}function ns(t){return _r(dt(t)).left+kr(t).scrollLeft}function Yc(t){let e=dt(t),o=kr(t),n=t.ownerDocument.body,i=xt(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),a=xt(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),s=-o.scrollLeft+ns(t),c=-o.scrollTop;return Re(n).direction==="rtl"&&(s+=xt(e.clientWidth,n.clientWidth)-i),{width:i,height:a,x:s,y:c}}function Xc(t,e){let o=Oe(t),n=dt(t),i=o.visualViewport,a=n.clientWidth,s=n.clientHeight,c=0,p=0;if(i){a=i.width,s=i.height;let f=ao();(!f||f&&e==="fixed")&&(c=i.offsetLeft,p=i.offsetTop)}return{width:a,height:s,x:c,y:p}}function Qc(t,e){let o=_r(t,!0,e==="fixed"),n=o.top+t.clientTop,i=o.left+t.clientLeft,a=Fe(t)?lr(t):lt(1),s=t.clientWidth*a.x,c=t.clientHeight*a.y,p=i*a.x,f=n*a.y;return{width:s,height:c,x:p,y:f}}function Ja(t,e,o){let n;if(e==="viewport")n=Xc(t,o);else if(e==="document")n=Yc(dt(t));else if(Xe(e))n=Qc(e,o);else{let i=os(t);n={...e,x:e.x-i.x,y:e.y-i.y}}return $t(n)}function is(t,e){let o=Bt(t);return o===e||!Xe(o)||Ir(o)?!1:Re(o).position==="fixed"||is(o,e)}function Jc(t,e){let o=e.get(t);if(o)return o;let n=no(t,[],!1).filter(c=>Xe(c)&&ct(c)!=="body"),i=null,a=Re(t).position==="fixed",s=a?Bt(t):t;for(;Xe(s)&&!Ir(s);){let c=Re(s),p=io(s);!p&&c.position==="fixed"&&(i=null),(a?!p&&!i:!p&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||sr(s)&&!p&&is(t,s))?n=n.filter(u=>u!==s):i=c,s=Bt(s)}return e.set(t,n),n}function ed(t){let{element:e,boundary:o,rootBoundary:n,strategy:i}=t,s=[...o==="clippingAncestors"?Jc(e,this._c):[].concat(o),n],c=s[0],p=s.reduce((f,u)=>{let y=Ja(e,u,i);return f.top=xt(y.top,f.top),f.right=Pr(y.right,f.right),f.bottom=Pr(y.bottom,f.bottom),f.left=xt(y.left,f.left),f},Ja(e,c,i));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function td(t){return ts(t)}function rd(t,e,o){let n=Fe(e),i=dt(e),a=o==="fixed",s=_r(t,!0,a,e),c={scrollLeft:0,scrollTop:0},p=lt(0);if(n||!n&&!a)if((ct(e)!=="body"||sr(i))&&(c=kr(e)),n){let f=_r(e,!0,a,e);p.x=f.x+e.clientLeft,p.y=f.y+e.clientTop}else i&&(p.x=ns(i));return{x:s.left+c.scrollLeft-p.x,y:s.top+c.scrollTop-p.y,width:s.width,height:s.height}}function es(t,e){return!Fe(t)||Re(t).position==="fixed"?null:e?e(t):t.offsetParent}function as(t,e){let o=Oe(t);if(!Fe(t))return o;let n=es(t,e);for(;n&&Ya(n)&&Re(n).position==="static";)n=es(n,e);return n&&(ct(n)==="html"||ct(n)==="body"&&Re(n).position==="static"&&!io(n))?o:n||Xa(t)||o}var od=async function(t){let{reference:e,floating:o,strategy:n}=t,i=this.getOffsetParent||as,a=this.getDimensions;return{reference:rd(e,await i(o),n),floating:{x:0,y:0,...await a(o)}}};function nd(t){return Re(t).direction==="rtl"}var so={convertOffsetParentRelativeRectToViewportRelativeRect:Zc,getDocumentElement:dt,getClippingRect:ed,getOffsetParent:as,getElementRects:od,getClientRects:qc,getDimensions:td,getScale:lr,isElement:Xe,isRTL:nd};var ss=(t,e,o)=>{let n=new Map,i={platform:so,...o},a={...i.platform,_c:n};return Ka(t,e,{...i,platform:a})};function ls(t){return id(t)}function gn(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function id(t){for(let e=t;e;e=gn(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=gn(t);e;e=gn(e)){if(!(e instanceof Element))continue;let o=getComputedStyle(e);if(o.display!=="contents"&&(o.position!=="static"||o.filter!=="none"||e.tagName==="BODY"))return e}return null}async function cs(t,e,o){return ss(t,e,{platform:{...so,getOffsetParent:n=>so.getOffsetParent(n,ls)},middleware:[yn({crossAxis:!0}),mn({allowedPlacements:[o]})]})}var Ce=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Y=class extends Dr.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new Dr.Debouncer,this.revealDebouncer=new Dr.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return ds.html`
|
|
523
523
|
<div part="container"
|
|
524
524
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
525
525
|
@mouseenter=${this.onHover}
|
|
@@ -1050,7 +1050,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1050
1050
|
@change=${this.onChange}
|
|
1051
1051
|
@keydown=${this.onKeyDown}
|
|
1052
1052
|
></slot>
|
|
1053
|
-
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus),this.addEventListener("focusout",this.onFocusOut)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus),this.removeEventListener("focusout",this.onFocusOut)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(o=>o.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(o=>o.checked=e.detail.value===o.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let o=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{o=!0;let n=this.currentSelectedIndex-1;this.radioButtons[n<0?this.radioButtons.length-1:n].select(),this.radioButtons[n<0?this.radioButtons.length-1:n].focus();break}case"ArrowDown":case"ArrowRight":{o=!0;let n=this.currentSelectedIndex+1;this.radioButtons[n>this.radioButtons.length-1?0:n].select(),this.radioButtons[n>this.radioButtons.length-1?0:n].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}o&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(o=>o.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};$e.elementDefinitions={};$e.styles=$s;fr([(0,ht.property)()],$e.prototype,"name",void 0);fr([(0,ht.property)({reflect:!0,attribute:"role"})],$e.prototype,"role",void 0);fr([(0,ht.property)({reflect:!0})],$e.prototype,"tabIndex",void 0);fr([(0,ht.property)({reflect:!0,attribute:"aria-labelledby"})],$e.prototype,"ariaLabelledBy",void 0);fr([(0,ht.queryAssignedElements)()],$e.prototype,"radioButtons",void 0);fr([(0,ht.state)()],$e.prototype,"currentSelectedIndex",void 0);(0,xn.customElement)("ft-radio")(pe);(0,xn.customElement)("ft-radio-group")($e);var Us=m(D()),
|
|
1053
|
+
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus),this.addEventListener("focusout",this.onFocusOut)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus),this.removeEventListener("focusout",this.onFocusOut)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(o=>o.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(o=>o.checked=e.detail.value===o.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let o=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{o=!0;let n=this.currentSelectedIndex-1;this.radioButtons[n<0?this.radioButtons.length-1:n].select(),this.radioButtons[n<0?this.radioButtons.length-1:n].focus();break}case"ArrowDown":case"ArrowRight":{o=!0;let n=this.currentSelectedIndex+1;this.radioButtons[n>this.radioButtons.length-1?0:n].select(),this.radioButtons[n>this.radioButtons.length-1?0:n].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}o&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(o=>o.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};$e.elementDefinitions={};$e.styles=$s;fr([(0,ht.property)()],$e.prototype,"name",void 0);fr([(0,ht.property)({reflect:!0,attribute:"role"})],$e.prototype,"role",void 0);fr([(0,ht.property)({reflect:!0})],$e.prototype,"tabIndex",void 0);fr([(0,ht.property)({reflect:!0,attribute:"aria-labelledby"})],$e.prototype,"ariaLabelledBy",void 0);fr([(0,ht.queryAssignedElements)()],$e.prototype,"radioButtons",void 0);fr([(0,ht.state)()],$e.prototype,"currentSelectedIndex",void 0);(0,xn.customElement)("ft-radio")(pe);(0,xn.customElement)("ft-radio-group")($e);var Us=m(D()),K=m(R());var mo={borderRadiusM:K.FtCssVariableFactory.external(K.designSystemVariables.borderRadiusM,"Design system"),colorOutline:K.FtCssVariableFactory.external(K.designSystemVariables.colorOutline,"Design system"),colorOnSurface:K.FtCssVariableFactory.external(K.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:K.FtCssVariableFactory.external(K.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:K.FtCssVariableFactory.external(K.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:K.FtCssVariableFactory.external(K.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:K.FtCssVariableFactory.external(K.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:K.FtCssVariableFactory.external(Ae.fontFamily,"Body2 typography"),fontSize:K.FtCssVariableFactory.external(Ae.fontSize,"Body2 typography"),fontWeight:K.FtCssVariableFactory.external(Ae.fontWeight,"Body2 typography"),letterSpacing:K.FtCssVariableFactory.external(Ae.letterSpacing,"Body2 typography"),lineHeight:K.FtCssVariableFactory.external(Ae.lineHeight,"Body2 typography"),textTransform:K.FtCssVariableFactory.external(Ae.textTransform,"Body2 typography")},zs=Us.css`
|
|
1054
1054
|
.ft-filter-level--container {
|
|
1055
1055
|
display: flex;
|
|
1056
1056
|
flex-direction: column;
|
|
@@ -1100,7 +1100,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1100
1100
|
}
|
|
1101
1101
|
|
|
1102
1102
|
ft-button {
|
|
1103
|
-
${(0,
|
|
1103
|
+
${(0,K.setVariable)(V.color,mo.colorOnSurface)};
|
|
1104
1104
|
}
|
|
1105
1105
|
|
|
1106
1106
|
ft-radio, ft-checkbox {
|
|
@@ -1331,7 +1331,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1331
1331
|
@click=${this.next}
|
|
1332
1332
|
></ft-button>
|
|
1333
1333
|
</div>
|
|
1334
|
-
`}update(e){super.update(e),e.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),e.has("currentElement")&&this.dispatchEvent(new vn(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var o;super.contentAvailableCallback(e),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(o=this.listenedContainer)===null||o===void 0||o.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let o=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<o&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var o,n;e&&(this.horizontal?(o=this.contentSlot)===null||o===void 0||o.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(n=this.contentSlot)===null||n===void 0||n.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,o;this.elements=(o=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(n=>n))!==null&&o!==void 0?o:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let o=0;o<this.elements.length;o++)(e<0||this.getDistanceFromStart(this.elements[o])<this.getDistanceFromStart(this.elements[e]))&&(e=o);return e}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let e=this.elements[0];return e?e[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(e){return e[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(e){let o=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-o)}};se.elementDefinitions={"ft-button":ge};se.styles=Hs;Je([(0,Ie.property)({type:Boolean})],se.prototype,"horizontal",void 0);Je([(0,Ie.property)({type:Boolean})],se.prototype,"hideScrollbar",void 0);Je([(0,Ie.property)({type:Boolean})],se.prototype,"controls",void 0);Je([(0,Ie.property)({type:Boolean})],se.prototype,"limitSize",void 0);Je([(0,Ie.state)()],se.prototype,"elements",void 0);Je([(0,Ie.state)()],se.prototype,"currentElement",void 0);Je([(0,Ie.state)()],se.prototype,"withScroll",void 0);Je([(0,Ie.state)()],se.prototype,"startReached",void 0);Je([(0,Ie.state)()],se.prototype,"endReached",void 0);Je([(0,Ie.query)(".ft-snap-scroll--content")],se.prototype,"contentSlot",void 0);(0,Gs.customElement)("ft-snap-scroll")(se);var Ks=m(D()),
|
|
1334
|
+
`}update(e){super.update(e),e.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),e.has("currentElement")&&this.dispatchEvent(new vn(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var o;super.contentAvailableCallback(e),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(o=this.listenedContainer)===null||o===void 0||o.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let o=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<o&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var o,n;e&&(this.horizontal?(o=this.contentSlot)===null||o===void 0||o.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(n=this.contentSlot)===null||n===void 0||n.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,o;this.elements=(o=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(n=>n))!==null&&o!==void 0?o:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let o=0;o<this.elements.length;o++)(e<0||this.getDistanceFromStart(this.elements[o])<this.getDistanceFromStart(this.elements[e]))&&(e=o);return e}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let e=this.elements[0];return e?e[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(e){return e[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(e){let o=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-o)}};se.elementDefinitions={"ft-button":ge};se.styles=Hs;Je([(0,Ie.property)({type:Boolean})],se.prototype,"horizontal",void 0);Je([(0,Ie.property)({type:Boolean})],se.prototype,"hideScrollbar",void 0);Je([(0,Ie.property)({type:Boolean})],se.prototype,"controls",void 0);Je([(0,Ie.property)({type:Boolean})],se.prototype,"limitSize",void 0);Je([(0,Ie.state)()],se.prototype,"elements",void 0);Je([(0,Ie.state)()],se.prototype,"currentElement",void 0);Je([(0,Ie.state)()],se.prototype,"withScroll",void 0);Je([(0,Ie.state)()],se.prototype,"startReached",void 0);Je([(0,Ie.state)()],se.prototype,"endReached",void 0);Je([(0,Ie.query)(".ft-snap-scroll--content")],se.prototype,"contentSlot",void 0);(0,Gs.customElement)("ft-snap-scroll")(se);var Ks=m(D()),j=m(R());var Be={colorOutline:j.FtCssVariableFactory.external(j.designSystemVariables.colorOutline,"Design system"),colorOnSurface:j.FtCssVariableFactory.external(j.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:j.FtCssVariableFactory.external(j.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:j.FtCssVariableFactory.external(j.designSystemVariables.colorPrimary,"Design system"),colorSurface:j.FtCssVariableFactory.external(j.designSystemVariables.colorSurface,"Design system"),transitionDuration:j.FtCssVariableFactory.external(j.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:j.FtCssVariableFactory.external(j.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:j.FtCssVariableFactory.extend("--ft-filter-label-color","",j.designSystemVariables.colorOnSurface),labelFontSize:j.FtCssVariableFactory.extend("--ft-filter-label-font-size","",N.fontSize,"16px")},Zs=[to,j.noTextInputDefaultClearButton,Ks.css`
|
|
1335
1335
|
:host {
|
|
1336
1336
|
display: flex;
|
|
1337
1337
|
max-height: 100%;
|
|
@@ -1358,7 +1358,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1358
1358
|
.ft-filter--header ft-button {
|
|
1359
1359
|
flex-shrink: 0;
|
|
1360
1360
|
margin-left: auto;
|
|
1361
|
-
${(0,
|
|
1361
|
+
${(0,j.setVariable)(V.iconSize,"18px")};
|
|
1362
1362
|
}
|
|
1363
1363
|
.filter-label {
|
|
1364
1364
|
display: contents;
|
|
@@ -1371,8 +1371,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1371
1371
|
word-break: break-word;
|
|
1372
1372
|
color: ${Be.labelColor};
|
|
1373
1373
|
font-size: ${Be.labelFontSize};
|
|
1374
|
-
${(0,
|
|
1375
|
-
${(0,
|
|
1374
|
+
${(0,j.setVariable)(N.lineHeight,"22px")};
|
|
1375
|
+
${(0,j.setVariable)(N.fontWeight,"bold")};
|
|
1376
1376
|
}
|
|
1377
1377
|
|
|
1378
1378
|
.ft-filter--filter {
|
|
@@ -1446,7 +1446,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1446
1446
|
slot:not([name]) {
|
|
1447
1447
|
display: none;
|
|
1448
1448
|
}
|
|
1449
|
-
`];var
|
|
1449
|
+
`];var Z=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Sn=class extends CustomEvent{constructor(e){super("change",{detail:e})}},B=class extends Me.FtLitElement{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new Me.Debouncer(300),this.changeDebouncer=new Me.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,Me.flatDeep)(this.options,e=>{var o;return(o=e.subOptions)!==null&&o!==void 0?o:[]})}get childrenFilteredFlatOptions(){return(0,Me.flatDeep)(this.options,e=>{var o;return e.selected?[]:(o=e.subOptions)!==null&&o!==void 0?o:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(i=>i.selected),o=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,n=this.filterPlaceHolder.replace("{0}",this.label);return Wt.html`
|
|
1450
1450
|
<div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
|
|
1451
1451
|
part="container">
|
|
1452
1452
|
${!this.label&&!e?null:Wt.html`
|
|
@@ -1523,13 +1523,13 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1523
1523
|
.exportpartsPrefixes=${["values","available-values"]}
|
|
1524
1524
|
noValuesLabel="${this.noValuesLabel}"
|
|
1525
1525
|
></ft-filter-level>
|
|
1526
|
-
`}goBack(e){this.slideOut=e.detail.value}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var o;e.stopPropagation();let n=this.flatOptions.find(a=>a.value===e.detail.value);n.selected=!n.selected;let i=a=>{var s;a!==n&&(a.selected=!1),(s=a.subOptions)===null||s===void 0||s.forEach(i)};this.multivalued?(o=n.subOptions)===null||o===void 0||o.forEach(i):this.options.forEach(i),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(o=>o.requestUpdate())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,Me.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new Sn(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(o=>o),this.optionsChanged()}onFilterChange(){var e,o;this.filter=(o=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&o!==void 0?o:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};B.elementDefinitions={"ft-button":ge,"ft-filter-level":Q,"ft-snap-scroll":se,"ft-typography":oe};B.styles=Zs;
|
|
1526
|
+
`}goBack(e){this.slideOut=e.detail.value}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var o;e.stopPropagation();let n=this.flatOptions.find(a=>a.value===e.detail.value);n.selected=!n.selected;let i=a=>{var s;a!==n&&(a.selected=!1),(s=a.subOptions)===null||s===void 0||s.forEach(i)};this.multivalued?(o=n.subOptions)===null||o===void 0||o.forEach(i):this.options.forEach(i),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(o=>o.requestUpdate())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,Me.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new Sn(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(o=>o),this.optionsChanged()}onFilterChange(){var e,o;this.filter=(o=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&o!==void 0?o:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};B.elementDefinitions={"ft-button":ge,"ft-filter-level":Q,"ft-snap-scroll":se,"ft-typography":oe};B.styles=Zs;Z([(0,W.property)({type:String})],B.prototype,"id",void 0);Z([(0,W.property)({type:String})],B.prototype,"label",void 0);Z([(0,W.property)({type:String})],B.prototype,"filterPlaceHolder",void 0);Z([(0,W.property)({type:String})],B.prototype,"clearButtonLabel",void 0);Z([(0,W.property)({type:String})],B.prototype,"moreValuesButtonLabel",void 0);Z([(0,W.property)({type:String})],B.prototype,"noValuesLabel",void 0);Z([(0,Me.jsonProperty)([])],B.prototype,"options",void 0);Z([(0,W.property)({type:Boolean})],B.prototype,"multivalued",void 0);Z([(0,W.property)({type:Boolean})],B.prototype,"disabled",void 0);Z([(0,W.property)({type:Boolean})],B.prototype,"raiseSelectedOptions",void 0);Z([(0,W.property)({type:Boolean})],B.prototype,"displayCount",void 0);Z([(0,W.property)({type:Number})],B.prototype,"displayedValuesLimit",void 0);Z([(0,W.property)({type:Boolean})],B.prototype,"hideClearButton",void 0);Z([(0,W.query)(".ft-filter--slot")],B.prototype,"slotElement",void 0);Z([(0,W.query)(".ft-filter--container")],B.prototype,"container",void 0);Z([(0,W.query)(".ft-filter--values")],B.prototype,"valuesContainer",void 0);Z([(0,W.query)(".ft-filter--levels")],B.prototype,"levelsContainer",void 0);Z([(0,W.state)()],B.prototype,"lastLevelHasHiddenvalues",void 0);Z([(0,W.query)(".ft-filter--filter input")],B.prototype,"filterInput",void 0);Z([(0,W.queryAll)(".ft-filter--levels ft-filter-level")],B.prototype,"levels",void 0);Z([(0,W.state)()],B.prototype,"withScroll",void 0);Z([(0,W.state)()],B.prototype,"filter",void 0);Z([(0,W.state)()],B.prototype,"slideIn",void 0);Z([(0,W.state)()],B.prototype,"slideOut",void 0);var go=m(R()),Ht=m(H()),qs=m(D()),ur=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Ve=class extends go.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return qs.html`
|
|
1527
1527
|
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
1528
1528
|
`}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(o=>o)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Ve.elementDefinitions={};ur([(0,Ht.property)({type:String})],Ve.prototype,"label",void 0);ur([(0,Ht.property)({type:Object,converter:t=>t})],Ve.prototype,"value",void 0);ur([(0,Ht.property)({type:Boolean,reflect:!0})],Ve.prototype,"selected",void 0);ur([(0,Ht.property)({type:Object})],Ve.prototype,"subOptions",void 0);ur([(0,go.jsonProperty)({})],Ve.prototype,"renderOption",void 0);ur([(0,Ht.query)(".ft-filter-option--slot")],Ve.prototype,"slotElement",void 0);(0,On.customElement)("ft-filter")(B);(0,On.customElement)("ft-filter-option")(Ve);var Xl=m(R());var Fo=m(D()),Wo=m(H()),Ho=m(R());var Ys=m(D());var Xs=Ys.css`
|
|
1529
1529
|
`;var Uo=m(R());var Zl=m(R());var rl=m(D()),Ue=m(H()),je=m(R());var Qs=m(D());var Js=Qs.css`
|
|
1530
1530
|
`;var bo=m(R()),ad="ft-app-info",Cn=class extends CustomEvent{constructor(e){super("authentication-change",{detail:e})}},sd={session:(t,e)=>{(0,bo.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>I.eventBus.dispatchEvent(new Cn(e.payload)),0))}},I=bo.FtReduxStore.get({name:ad,reducers:sd,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var Ct=m(R());var En=m(R());var Vt=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:n}=I.getState(),i=e??n;if(o&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,i,!0)}static await(e){return new Promise(o=>{let n=t.get(e);if(n)o(n);else{let i=I.subscribe(()=>{n=t.get(e),n&&(i(),o(n))})}})}};var et=class{constructor(e=!0,o){var n;this.overrideApi=o;let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new En.CacheRegistry,this.cache=e?i.commonCache:new En.CacheRegistry}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Vt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Vt.await()}clearCache(){this.cache.clearAll()}};var el,ld=Symbol("clearAfterUnitTest"),xo=class extends et{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[el]=()=>{this.defaultMessages={},this.cache=new Ct.CacheRegistry,this.listeners={}},this.currentUiLocale=I.getState().uiLocale,I.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=I.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let o=e.name.toLowerCase();this.cache.setFinal(o,e),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,o){var n;if(e=e.toLowerCase(),Object.keys(o).length>0){let i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...o};(0,Ct.deepEqual)(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}await this.fetchContext(e)}resolveMessage(e,o,...n){var i,a,s;e=e.toLowerCase(),this.fetchContext(e);let c=(a=(i=this.cache.getNow(e))===null||i===void 0?void 0:i.messages)!==null&&a!==void 0?a:{};return new Ct.ParametrizedLabelResolver((s=this.defaultMessages[e])!==null&&s!==void 0?s:{},c).resolve(o,...n)}async fetchContext(e){if(!this.cache.has(e))try{await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),await this.notify(e)}catch(o){console.error(o)}}subscribe(e,o){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(o),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(o)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(e=>this.notify(e)))}async notify(e){this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>(0,Ct.delay)(0).then(()=>o()).catch(()=>null)))}};el=ld;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends xo{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends xo{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var hr=window.FluidTopicsI18nService,tl=window.FluidTopicsCustomI18nService;var xe=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},J=class extends je.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>Vt.get(),this.messageContexts=[],this.cache=new je.CacheRegistry,this.cleanSessionDebouncer=new je.Debouncer}render(){return rl.html`
|
|
1531
1531
|
<slot></slot>
|
|
1532
|
-
`}update(e){super.update(e),e.has("baseUrl")&&(I.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&I.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&I.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&I.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&I.actions.noCustom(this.noCustom),e.has("editorMode")&&I.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&I.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&I.actions.session(this.session),e.has("availableUiLocales")&&I.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(o=>hr.addContext(o)),e.has("openExternalDocumentInNewTab")&&I.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&I.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&I.actions.forcedOffline(this.forcedOffline),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(this.session==null&&this.updateSession(),this.availableUiLocales==null&&this.updateUiLocales(),this.metadataConfiguration==null&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};J.elementDefinitions={};J.styles=Js;xe([(0,Ue.property)()],J.prototype,"baseUrl",void 0);xe([(0,Ue.property)()],J.prototype,"apiIntegrationIdentifier",void 0);xe([(0,Ue.property)()],J.prototype,"uiLocale",void 0);xe([(0,je.jsonProperty)(null)],J.prototype,"availableUiLocales",void 0);xe([(0,je.jsonProperty)(null)],J.prototype,"metadataConfiguration",void 0);xe([(0,Ue.property)({type:Boolean})],J.prototype,"editorMode",void 0);xe([(0,Ue.property)({type:Boolean})],J.prototype,"noCustom",void 0);xe([(0,Ue.property)({type:Boolean})],J.prototype,"openExternalDocumentInNewTab",void 0);xe([(0,Ue.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],J.prototype,"noCustomComponent",void 0);xe([(0,Ue.property)({type:Boolean})],J.prototype,"withManualResources",void 0);xe([(0,Ue.property)({type:Boolean})],J.prototype,"navigatorOnline",void 0);xe([(0,Ue.property)({type:Boolean})],J.prototype,"forcedOffline",void 0);xe([(0,Ue.property)({type:Object})],J.prototype,"apiProvider",void 0);xe([(0,je.jsonProperty)([])],J.prototype,"messageContexts",void 0);xe([(0,je.jsonProperty)(void 0)],J.prototype,"session",void 0);var Zd=m(H());function cd(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var o,n,i;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(n=o;n--!==0;)if(!vo(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!vo(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(i=Object.keys(t),o=i.length,o!==Object.keys(e).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[n]))return!1;for(n=o;n--!==0;){var a=i[n];if(!vo(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function vo(t,e){try{return cd(t,e)}catch{return!1}}function wn(t,e){return!vo(t,e)}var dd=m(H(),1);var So=class{constructor(){this.queue=[]}add(e,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==e.type)),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}};var Ur=m(H(),1);var ol=m(H(),1);function nl(t,e){let o=()=>JSON.parse(JSON.stringify(t));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:wn,...e??{}})}var Oo=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,o){return this.callbacks=[e],this.debounce(o)}queue(e,o){return this.callbacks.push(e),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,o;let n=[...this.callbacks];this.callbacks=[];let i=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(c){i(c);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var al=m(D(),1);var Co=window,pd=Co.ShadowRoot&&(Co.ShadyCSS===void 0||Co.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ib=Symbol();var il=(t,e)=>{pd?t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):e.forEach(o=>{let n=document.createElement("style"),i=Co.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=o.cssText,t.appendChild(n)})};var Eo=class extends al.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([i,a])=>e.registry.define(i,a)));let o={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return il(n,e.elementStyles),n}};var wo=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},dl,sl=Symbol("constructorPrototype"),ll=Symbol("constructorName"),pl=Symbol("exportpartsDebouncer"),cl=Symbol("dynamicDependenciesLoaded"),Et=class extends Eo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[dl]=new Oo(5),this[ll]=this.constructor.name,this[sl]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ll]&&Object.setPrototypeOf(this,this[sl])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let e=this.constructor;e[cl]||(e[cl]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}applyCustomStylesheet(e){var o,n,i;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var e,o,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[pl].run(()=>{var i,a;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var o,n,i,a,s,c;let p=g=>g!=null&&g.trim().length>0,f=e.filter(p).map(g=>g.trim());if(f.length===0){this.removeAttribute("exportparts");return}let u=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 x=(a=(i=g.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&a!==void 0?a:[],b=(c=(s=g.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(S=>S.split(":")[1]))!==null&&c!==void 0?c:[];new Array(...x,...b).filter(p).map(S=>S.trim()).forEach(S=>u.add(S))}if(u.size===0){this.removeAttribute("exportparts");return}let y=[...u.values()].flatMap(g=>f.map(x=>`${g}:${x}--${g}`));this.setAttribute("exportparts",[...this.part,...y].join(", "))}};dl=pl;wo([(0,Ur.property)()],Et.prototype,"exportpartsPrefix",void 0);wo([nl([])],Et.prototype,"exportpartsPrefixes",void 0);wo([(0,Ur.property)()],Et.prototype,"customStylesheet",void 0);wo([(0,Ur.state)()],Et.prototype,"useAdoptedStyleSheets",void 0);function zr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var fl,ul,hl,Ao=Symbol("internalReduxEventsUnsubscribers"),wt=Symbol("internalStoresUnsubscribers"),jt=Symbol("internalStores"),Fr=class extends Et{constructor(){super(...arguments),this[fl]=new Map,this[ul]=new Map,this[hl]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[jt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[jt].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[jt].get(e)}addStore(e,o){var n;o=(n=o??(zr(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,e)}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[jt].delete(o)}setupStore(e,o){this[jt].set(e,o),this.subscribeToStore(e,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[jt].forEach((e,o)=>this.subscribeToStore(o,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let i=this.getStore(e.store);i&&(e.store?this[wt].has(e.store):this[wt].size>0)&&(this[o]=e.selector(i.getState(),this))}})}subscribeToStore(e,o){var n;this[wt].set(e,o.subscribe(()=>this.updateFromStores())),zr(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||o.name===i.store)){let s=c=>this[a](c);o.eventBus.addEventListener(i.eventName,s),this[Ao].push(()=>o.eventBus.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[wt].forEach((e,o)=>this.unsubscribeFromStore(o)),this[Ao].forEach(e=>e()),this[Ao]=[]}unsubscribeFromStore(e){this[wt].has(e)&&this[wt].get(e)(),this[wt].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};fl=wt,ul=jt,hl=Ao;Fr.reduxProperties=new Map;Fr.reduxReactiveProperties=new Set;Fr.reduxEventListeners=new Map;function ze(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function mt(t){return!!t&&!!t[Z]}function Ge(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===xd}(t)||Array.isArray(t)||!!t[Sl]||!!(!((e=t.constructor)===null||e===void 0)&&e[Sl])||_n(t)||Dn(t))}function Gt(t,e,o){o===void 0&&(o=!1),gr(t)===0?(o?Object.keys:yr)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function gr(t){var e=t[Z];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:_n(t)?2:Dn(t)?3:0}function mr(t,e){return gr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function fd(t,e){return gr(t)===2?t.get(e):t[e]}function Ol(t,e,o){var n=gr(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function Cl(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function _n(t){return gd&&t instanceof Map}function Dn(t){return bd&&t instanceof Set}function At(t){return t.o||t.t}function $n(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Al(t);delete e[Z];for(var o=yr(e),n=0;n<o.length;n++){var i=o[n],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function Bn(t,e){return e===void 0&&(e=!1),Mn(t)||mt(t)||!Ge(t)||(gr(t)>1&&(t.set=t.add=t.clear=t.delete=ud),Object.freeze(t),e&&Gt(t,function(o,n){return Bn(n,!0)},!0)),t}function ud(){ze(2)}function Mn(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function tt(t){var e=kn[t];return e||ze(18,t),e}function hd(t,e){kn[t]||(kn[t]=e)}function Pn(){return Hr}function An(t,e){e&&(tt("Patches"),t.u=[],t.s=[],t.v=e)}function Ro(t){Tn(t),t.p.forEach(md),t.p=null}function Tn(t){t===Hr&&(Hr=t.l)}function ml(t){return Hr={p:[],l:Hr,h:t,m:!0,_:0}}function md(t){var e=t[Z];e.i===0||e.i===1?e.j():e.g=!0}function Rn(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||tt("ES5").S(e,t,n),n?(o[Z].P&&(Ro(e),ze(4)),Ge(t)&&(t=No(e,t),e.l||Lo(e,t)),e.u&&tt("Patches").M(o[Z].t,t,e.u,e.s)):t=No(e,o,[]),Ro(e),e.u&&e.v(e.u,e.s),t!==wl?t:void 0}function No(t,e,o){if(Mn(e))return e;var n=e[Z];if(!n)return Gt(e,function(c,p){return yl(t,n,e,c,p,o)},!0),e;if(n.A!==t)return e;if(!n.P)return Lo(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=$n(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),Gt(a,function(c,p){return yl(t,n,i,c,p,o,s)}),Lo(t,i,!1),o&&t.u&&tt("Patches").N(n,o,t.u,t.s)}return n.o}function yl(t,e,o,n,i,a,s){if(mt(i)){var c=No(t,i,a&&e&&e.i!==3&&!mr(e.R,n)?a.concat(n):void 0);if(Ol(o,n,c),!mt(c))return;t.m=!1}else s&&o.add(i);if(Ge(i)&&!Mn(i)){if(!t.h.D&&t._<1)return;No(t,i),e&&e.A.l||Lo(t,i)}}function Lo(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&Bn(e,o)}function Nn(t,e){var o=t[Z];return(o?At(o):t)[e]}function gl(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function Rt(t){t.P||(t.P=!0,t.l&&Rt(t.l))}function Ln(t){t.o||(t.o=$n(t.t))}function In(t,e,o){var n=_n(e)?tt("MapSet").F(e,o):Dn(e)?tt("MapSet").T(e,o):t.O?function(i,a){var s=Array.isArray(i),c={i:s?1:0,A:a?a.A:Pn(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},p=c,f=Vr;s&&(p=[c],f=Wr);var u=Proxy.revocable(p,f),y=u.revoke,g=u.proxy;return c.k=g,c.j=y,g}(e,o):tt("ES5").J(e,o);return(o?o.A:Pn()).p.push(n),n}function yd(t){return mt(t)||ze(22,t),function e(o){if(!Ge(o))return o;var n,i=o[Z],a=gr(o);if(i){if(!i.P&&(i.i<4||!tt("ES5").K(i)))return i.t;i.I=!0,n=bl(o,a),i.I=!1}else n=bl(o,a);return Gt(n,function(s,c){i&&fd(i.t,s)===c||Ol(n,s,e(c))}),a===3?new Set(n):n}(t)}function bl(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return $n(t)}function El(){function t(s,c){var p=a[s];return p?p.enumerable=c:a[s]=p={configurable:!0,enumerable:c,get:function(){var f=this[Z];return Vr.get(f,s)},set:function(f){var u=this[Z];Vr.set(u,s,f)}},p}function e(s){for(var c=s.length-1;c>=0;c--){var p=s[c][Z];if(!p.P)switch(p.i){case 5:n(p)&&Rt(p);break;case 4:o(p)&&Rt(p)}}}function o(s){for(var c=s.t,p=s.k,f=yr(p),u=f.length-1;u>=0;u--){var y=f[u];if(y!==Z){var g=c[y];if(g===void 0&&!mr(c,y))return!0;var x=p[y],b=x&&x[Z];if(b?b.t!==g:!Cl(x,g))return!0}}var S=!!c[Z];return f.length!==yr(c).length+(S?0:1)}function n(s){var c=s.k;if(c.length!==s.t.length)return!0;var p=Object.getOwnPropertyDescriptor(c,c.length-1);if(p&&!p.get)return!0;for(var f=0;f<c.length;f++)if(!c.hasOwnProperty(f))return!0;return!1}function i(s){s.g&&ze(3,JSON.stringify(At(s)))}var a={};hd("ES5",{J:function(s,c){var p=Array.isArray(s),f=function(y,g){if(y){for(var x=Array(g.length),b=0;b<g.length;b++)Object.defineProperty(x,""+b,t(b,!0));return x}var S=Al(g);delete S[Z];for(var L=yr(S),w=0;w<L.length;w++){var A=L[w];S[A]=t(A,y||!!S[A].enumerable)}return Object.create(Object.getPrototypeOf(g),S)}(p,s),u={i:p?5:4,A:c?c.A:Pn(),P:!1,I:!1,R:{},l:c,t:s,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,Z,{value:u,writable:!0}),f},S:function(s,c,p){p?mt(c)&&c[Z].A===s&&e(s.p):(s.u&&function f(u){if(u&&typeof u=="object"){var y=u[Z];if(y){var g=y.t,x=y.k,b=y.R,S=y.i;if(S===4)Gt(x,function(T){T!==Z&&(g[T]!==void 0||mr(g,T)?b[T]||f(x[T]):(b[T]=!0,Rt(y)))}),Gt(g,function(T){x[T]!==void 0||mr(x,T)||(b[T]=!1,Rt(y))});else if(S===5){if(n(y)&&(Rt(y),b.length=!0),x.length<g.length)for(var L=x.length;L<g.length;L++)b[L]=!1;else for(var w=g.length;w<x.length;w++)b[w]=!0;for(var A=Math.min(x.length,g.length),k=0;k<A;k++)x.hasOwnProperty(k)||(b[k]=!0),b[k]===void 0&&f(x[k])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var xl,Hr,Un=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",gd=typeof Map<"u",bd=typeof Set<"u",vl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",wl=Un?Symbol.for("immer-nothing"):((xl={})["immer-nothing"]=!0,xl),Sl=Un?Symbol.for("immer-draftable"):"__$immer_draftable",Z=Un?Symbol.for("immer-state"):"__$immer_state";var xd=""+Object.prototype.constructor,yr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Al=Object.getOwnPropertyDescriptors||function(t){var e={};return yr(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},kn={},Vr={get:function(t,e){if(e===Z)return t;var o=At(t);if(!mr(o,e))return function(i,a,s){var c,p=gl(a,s);return p?"value"in p?p.value:(c=p.get)===null||c===void 0?void 0:c.call(i.k):void 0}(t,o,e);var n=o[e];return t.I||!Ge(n)?n:n===Nn(t.t,e)?(Ln(t),t.o[e]=In(t.A.h,n,t)):n},has:function(t,e){return e in At(t)},ownKeys:function(t){return Reflect.ownKeys(At(t))},set:function(t,e,o){var n=gl(At(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var i=Nn(At(t),e),a=i?.[Z];if(a&&a.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Cl(o,i)&&(o!==void 0||mr(t.t,e)))return!0;Ln(t),Rt(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return Nn(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Ln(t),Rt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=At(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){ze(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ze(12)}},Wr={};Gt(Vr,function(t,e){Wr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Wr.deleteProperty=function(t,e){return Wr.set.call(this,t,e,void 0)},Wr.set=function(t,e,o){return Vr.set.call(this,t[0],e,o,t[0])};var vd=function(){function t(o){var n=this;this.O=vl,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var c=a;a=i;var p=n;return function(S){var L=this;S===void 0&&(S=c);for(var w=arguments.length,A=Array(w>1?w-1:0),k=1;k<w;k++)A[k-1]=arguments[k];return p.produce(S,function(T){var z;return(z=a).call.apply(z,[L,T].concat(A))})}}var f;if(typeof a!="function"&&ze(6),s!==void 0&&typeof s!="function"&&ze(7),Ge(i)){var u=ml(n),y=In(n,i,void 0),g=!0;try{f=a(y),g=!1}finally{g?Ro(u):Tn(u)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(S){return An(u,s),Rn(S,u)},function(S){throw Ro(u),S}):(An(u,s),Rn(f,u))}if(!i||typeof i!="object"){if((f=a(i))===void 0&&(f=i),f===wl&&(f=void 0),n.D&&Bn(f,!0),s){var x=[],b=[];tt("Patches").M(i,f,x,b),s(x,b)}return f}ze(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(f){for(var u=arguments.length,y=Array(u>1?u-1:0),g=1;g<u;g++)y[g-1]=arguments[g];return n.produceWithPatches(f,function(x){return i.apply(void 0,[x].concat(y))})};var s,c,p=n.produce(i,a,function(f,u){s=f,c=u});return typeof Promise<"u"&&p instanceof Promise?p.then(function(f){return[f,s,c]}):[p,s,c]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){Ge(o)||ze(8),mt(o)&&(o=yd(o));var n=ml(this),i=In(this,o,void 0);return i[Z].C=!0,Tn(n),i},e.finishDraft=function(o,n){var i=o&&o[Z],a=i.A;return An(a,n),Rn(void 0,a)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!vl&&ze(20),this.O=o},e.applyPatches=function(o,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){o=a.value;break}}i>-1&&(n=n.slice(i+1));var s=tt("Patches").$;return mt(o)?s(o,n):this.produce(o,function(c){return s(c,n)})},t}(),ke=new vd,Sd=ke.produce,Vb=ke.produceWithPatches.bind(ke),jb=ke.setAutoFreeze.bind(ke),Gb=ke.setUseProxies.bind(ke),Kb=ke.applyPatches.bind(ke),Zb=ke.createDraft.bind(ke),qb=ke.finishDraft.bind(ke),Po=Sd;function Nt(t){"@babel/helpers - typeof";return Nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nt(t)}function zn(t,e){if(Nt(t)!=="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(Nt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Fn(t){var e=zn(t,"string");return Nt(e)==="symbol"?e:String(e)}function Wn(t,e,o){return e=Fn(e),e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Rl(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),o.push.apply(o,n)}return o}function To(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Rl(Object(o),!0).forEach(function(n){Wn(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Rl(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function fe(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Nl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Hn=function(){return Math.random().toString(36).substring(7).split("").join(".")},Io={INIT:"@@redux/INIT"+Hn(),REPLACE:"@@redux/REPLACE"+Hn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Hn()}};function Od(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Vn(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(fe(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(fe(1));return o(Vn)(t,e)}if(typeof t!="function")throw new Error(fe(2));var i=t,a=e,s=[],c=s,p=!1;function f(){c===s&&(c=s.slice())}function u(){if(p)throw new Error(fe(3));return a}function y(S){if(typeof S!="function")throw new Error(fe(4));if(p)throw new Error(fe(5));var L=!0;return f(),c.push(S),function(){if(L){if(p)throw new Error(fe(6));L=!1,f();var A=c.indexOf(S);c.splice(A,1),s=null}}}function g(S){if(!Od(S))throw new Error(fe(7));if(typeof S.type>"u")throw new Error(fe(8));if(p)throw new Error(fe(9));try{p=!0,a=i(a,S)}finally{p=!1}for(var L=s=c,w=0;w<L.length;w++){var A=L[w];A()}return S}function x(S){if(typeof S!="function")throw new Error(fe(10));i=S,g({type:Io.REPLACE})}function b(){var S,L=y;return S={subscribe:function(A){if(typeof A!="object"||A===null)throw new Error(fe(11));function k(){A.next&&A.next(u())}k();var T=L(k);return{unsubscribe:T}}},S[Nl]=function(){return this},S}return g({type:Io.INIT}),n={dispatch:g,subscribe:y,getState:u,replaceReducer:x},n[Nl]=b,n}function Cd(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:Io.INIT});if(typeof n>"u")throw new Error(fe(12));if(typeof o(void 0,{type:Io.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(fe(13))})}function Ll(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(o[i]=t[i])}var a=Object.keys(o),s,c;try{Cd(o)}catch(p){c=p}return function(f,u){if(f===void 0&&(f={}),c)throw c;if(0)var y;for(var g=!1,x={},b=0;b<a.length;b++){var S=a[b],L=o[S],w=f[S],A=L(w,u);if(typeof A>"u"){var k=u&&u.type;throw new Error(fe(14))}x[S]=A,g=g||A!==w}return g=g||a.length!==Object.keys(f).length,g?x:f}}function br(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function Pl(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(fe(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=e.map(function(p){return p(s)});return a=br.apply(void 0,c)(i.dispatch),To(To({},i),{},{dispatch:a})}}}function Tl(t){var e=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(c){return typeof c=="function"?c(i,a,t):s(c)}}};return e}var Il=Tl();Il.withExtraArgument=Tl;var jn=Il;var Bl=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Ed=function(t,e){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(f){return function(u){return p([f,u])}}function p(f){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(a=f[0]&2?i.return:f[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,f[1])).done)return a;switch(i=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return o.label++,{value:f[1],done:!1};case 5:o.label++,i=f[1],f=[0];continue;case 7:f=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){o=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){o.label=f[1];break}if(f[0]===6&&o.label<a[1]){o.label=a[1],a=f;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(f);break}a[2]&&o.ops.pop(),o.trys.pop();continue}f=e.call(t,o)}catch(u){f=[6,u],i=0}finally{n=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},xr=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},wd=Object.defineProperty,Ad=Object.defineProperties,Rd=Object.getOwnPropertyDescriptors,kl=Object.getOwnPropertySymbols,Nd=Object.prototype.hasOwnProperty,Ld=Object.prototype.propertyIsEnumerable,_l=function(t,e,o){return e in t?wd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Lt=function(t,e){for(var o in e||(e={}))Nd.call(e,o)&&_l(t,o,e[o]);if(kl)for(var n=0,i=kl(e);n<i.length;n++){var o=i[n];Ld.call(e,o)&&_l(t,o,e[o])}return t},Gn=function(t,e){return Ad(t,Rd(e))},Pd=function(t,e,o){return new Promise(function(n,i){var a=function(p){try{c(o.next(p))}catch(f){i(f)}},s=function(p){try{c(o.throw(p))}catch(f){i(f)}},c=function(p){return p.done?n(p.value):Promise.resolve(p.value).then(a,s)};c((o=o.apply(t,e)).next())})};var Td=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?br:br.apply(null,arguments)},ux=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Id(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var kd=function(t){Bl(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.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(e.bind.apply(e,xr([void 0],o[0].concat(this)))):new(e.bind.apply(e,xr([void 0],o.concat(this))))},e}(Array),_d=function(t){Bl(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.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(e.bind.apply(e,xr([void 0],o[0].concat(this)))):new(e.bind.apply(e,xr([void 0],o.concat(this))))},e}(Array);function qn(t){return Ge(t)?Po(t,function(){}):t}function Dd(t){return typeof t=="boolean"}function $d(){return function(e){return Bd(e)}}function Bd(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,a=t.serializableCheck,s=a===void 0?!0:a,c=new kd;if(o&&(Dd(o)?c.push(jn):c.push(jn.withExtraArgument(o.extraArgument))),0){if(i)var p;if(s)var f}return c}var Kn=!0;function Ml(t){var e=$d(),o=t||{},n=o.reducer,i=n===void 0?void 0:n,a=o.middleware,s=a===void 0?e():a,c=o.devTools,p=c===void 0?!0:c,f=o.preloadedState,u=f===void 0?void 0:f,y=o.enhancers,g=y===void 0?void 0:y,x;if(typeof i=="function")x=i;else if(Id(i))x=Ll(i);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 b=s;if(typeof b=="function"&&(b=b(e),!Kn&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Kn&&b.some(function(T){return typeof T!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=Pl.apply(void 0,b),L=br;p&&(L=Td(Lt({trace:!Kn},typeof p=="object"&&p)));var w=new _d(S),A=w;Array.isArray(g)?A=xr([S],g):typeof g=="function"&&(A=g(w));var k=L.apply(void 0,A);return Vn(x,u,k)}function Pt(t,e){function o(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var a=e.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return Lt(Lt({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function Ul(t){var e={},o=[],n,i={addCase:function(a,s){var c=typeof a=="string"?a:a.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=s,i},addMatcher:function(a,s){return o.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return t(i),[e,o,n]}function Md(t){return typeof t=="function"}function Ud(t,e,o,n){o===void 0&&(o=[]);var i=typeof e=="function"?Ul(e):[e,o,n],a=i[0],s=i[1],c=i[2],p;if(Md(t))p=function(){return qn(t())};else{var f=qn(t);p=function(){return f}}function u(y,g){y===void 0&&(y=p());var x=xr([a[g.type]],s.filter(function(b){var S=b.matcher;return S(g)}).map(function(b){var S=b.reducer;return S}));return x.filter(function(b){return!!b}).length===0&&(x=[c]),x.reduce(function(b,S){if(S)if(mt(b)){var L=b,w=S(L,g);return w===void 0?b:w}else{if(Ge(b))return Po(b,function(A){return S(A,g)});var w=S(b,g);if(w===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return w}return b},y)}return u.getInitialState=p,u}function zd(t,e){return t+"/"+e}function zl(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:qn(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},c={};i.forEach(function(u){var y=n[u],g=zd(e,u),x,b;"reducer"in y?(x=y.reducer,b=y.prepare):x=y,a[u]=x,s[g]=x,c[u]=b?Pt(g,b):Pt(g)});function p(){var u=typeof t.extraReducers=="function"?Ul(t.extraReducers):[t.extraReducers],y=u[0],g=y===void 0?{}:y,x=u[1],b=x===void 0?[]:x,S=u[2],L=S===void 0?void 0:S,w=Lt(Lt({},g),s);return Ud(o,function(A){for(var k in w)A.addCase(k,w[k]);for(var T=0,z=b;T<z.length;T++){var ve=z[T];A.addMatcher(ve.matcher,ve.reducer)}L&&A.addDefaultCase(L)})}var f;return{name:e,reducer:function(u,y){return f||(f=p()),f(u,y)},actions:c,caseReducers:a,getInitialState:function(){return f||(f=p()),f.getInitialState()}}}var Fd="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Wd=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=Fd[Math.random()*64|0];return e},Hd=["name","message","stack","code"],Zn=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Dl=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Vd=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=Hd;o<n.length;o++){var i=n[o];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},gx=function(){function t(e,o,n){var i=Pt(e+"/fulfilled",function(u,y,g,x){return{payload:u,meta:Gn(Lt({},x||{}),{arg:g,requestId:y,requestStatus:"fulfilled"})}}),a=Pt(e+"/pending",function(u,y,g){return{payload:void 0,meta:Gn(Lt({},g||{}),{arg:y,requestId:u,requestStatus:"pending"})}}),s=Pt(e+"/rejected",function(u,y,g,x,b){return{payload:x,error:(n&&n.serializeError||Vd)(u||"Rejected"),meta:Gn(Lt({},b||{}),{arg:g,requestId:y,rejectedWithValue:!!x,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"})}}),c=!1,p=typeof AbortController<"u"?AbortController:function(){function u(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return u.prototype.abort=function(){},u}();function f(u){return function(y,g,x){var b=n?.idGenerator?n.idGenerator(u):Wd(),S=new p,L,w=!1;function A(T){L=T,S.abort()}var k=function(){return Pd(this,null,function(){var T,z,ve,re,Or,_e,h;return Ed(this,function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),re=(T=n?.condition)==null?void 0:T.call(n,u,{getState:g,extra:x}),Gd(re)?[4,re]:[3,2];case 1:re=v.sent(),v.label=2;case 2:if(re===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return w=!0,Or=new Promise(function(P,j){return S.signal.addEventListener("abort",function(){return j({name:"AbortError",message:L||"Aborted"})})}),y(a(b,u,(z=n?.getPendingMeta)==null?void 0:z.call(n,{requestId:b,arg:u},{getState:g,extra:x}))),[4,Promise.race([Or,Promise.resolve(o(u,{dispatch:y,getState:g,extra:x,requestId:b,signal:S.signal,abort:A,rejectWithValue:function(P,j){return new Zn(P,j)},fulfillWithValue:function(P,j){return new Dl(P,j)}})).then(function(P){if(P instanceof Zn)throw P;return P instanceof Dl?i(P.payload,b,u,P.meta):i(P,b,u)})])];case 3:return ve=v.sent(),[3,5];case 4:return _e=v.sent(),ve=_e instanceof Zn?s(null,b,u,_e.payload,_e.meta):s(_e,b,u),[3,5];case 5:return h=n&&!n.dispatchConditionRejection&&s.match(ve)&&ve.meta.condition,h||y(ve),[2,ve]}})})}();return Object.assign(k,{abort:A,requestId:b,arg:u,unwrap:function(){return k.then(jd)}})}}return Object.assign(f,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function jd(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Gd(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Fl="listener",Wl="completed",Hl="cancelled",bx="task-"+Hl,xx="task-"+Wl,vx=Fl+"-"+Hl,Sx=Fl+"-"+Wl;var Yn="listenerMiddleware";var Ox=Pt(Yn+"/add"),Cx=Pt(Yn+"/removeAll"),Ex=Pt(Yn+"/remove");var $l,wx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return($l||($l=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Kd=function(t){return function(e){setTimeout(e,t)}},Ax=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Kd(10);El();window.ftReduxStores||(window.ftReduxStores={});var Vl=class t{static get(e){var o;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(zr(a))return a;if(i==null)return;let s=zl({...i,reducers:(o=i.reducers)!==null&&o!==void 0?o:{}}),c=Ml({reducer:(p,f)=>f.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...f.overwrites}:s.reducer(p,f)});return window.ftReduxStores[i.name]=new t(s,c)}constructor(e,o){this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new So,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,i,a)=>{let s=i,c=n[s];return c?(...p)=>{let f=c(...p);return this.reduxStore.dispatch(f),f}:p=>{this.setState({[s]:p})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var $o=m(R());var ko=class extends et{async listMySearches(){let e=I.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var _o=class extends et{async listMyBookmarks(){let e=I.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var qd="ft-user-assets",Do=$o.FtReduxStore.get({name:qd,initialState:{savedSearches:void 0,bookmarks:void 0}}),Xn=class{constructor(){this.currentSession=I.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new _o,this.savedSearchesService=new ko,I.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=I.getState();(0,$o.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Do.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Do.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Do.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Do.actions.bookmarks(o)}}},jl=new Xn;var Qn=class{addCommand(e,o=!1){I.commands.add(e,o)}consumeCommand(e){return I.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Qn;var Gl=m(R()),Jn=class{highlightHtml(e,o){(0,Gl.highlightHtml)(e,o)}};window.FluidTopicsHighlightHtmlService=new Jn;var Kl=m(R());var ei=class{isDate(e){var o,n,i,a;return(a=(i=((n=(o=I.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(c=>c.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,o){var n,i,a;return Kl.DateFormatter.format(e,(n=o?.locale)!==null&&n!==void 0?n:I.getState().uiLocale,(i=o?.longFormat)!==null&&i!==void 0?i:!1,(a=o?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new ei;(0,Zl.customElement)("ft-app-context")(J);var Yl=m(H()),Yd=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},ti=Symbol("i18nAttributes"),Bo=Symbol("i18nProperties"),jr=Symbol("i18nUnsubs");function zo(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?tl:hr}i18n(i,a,...s){var c;if(typeof i=="string")return this.i18nService.resolveMessage(i,a,...s);let p=(c=i.args)!==null&&c!==void 0?c:i.argsProvider?i.argsProvider(this):[];return this.i18nService.resolveMessage(i.context,i.key,...p)}onI18nUpdate(i){var a,s;(a=this[ti])===null||a===void 0||a.forEach((c,p)=>{var f;let u=this.getI18nAttributeValue(p);((f=u?.context)===null||f===void 0?void 0:f.toLowerCase())===i.toLowerCase()&&this.updateI18nAttributeMessage(p,u,c)}),(s=this[Bo])===null||s===void 0||s.forEach((c,p)=>{c.context.toLowerCase()===i.toLowerCase()&&(this[p]=this.i18n(c))}),setTimeout(()=>this.requestUpdate(),0)}updateI18nAttributeMessage(i,a,s){this[i]={...a,message:this.i18n({context:a.context,key:a.key,...s})}}update(i){var a,s;super.update(i),(a=this[ti])===null||a===void 0||a.forEach((c,p)=>{let f=this.getI18nAttributeValue(p);f?.context&&f.key&&(i.has(p)||c.argsProvider!=null)&&(i.has(p)&&this.addI18nContext(f.context),this.updateI18nAttributeMessage(p,f,c))}),(s=this[Bo])===null||s===void 0||s.forEach((c,p)=>{c.argsProvider!=null&&(this[p]=this.i18n(c))})}getI18nAttributeValue(i){return this[i]}connectedCallback(){var i,a,s,c;super.connectedCallback(),new Set([...(a=(i=this[Bo])===null||i===void 0?void 0:i.values())!==null&&a!==void 0?a:[],...[...(c=(s=this[ti])===null||s===void 0?void 0:s.keys())!==null&&c!==void 0?c:[]].map(p=>this.getI18nAttributeValue(p))].map(p=>p?.context)).forEach(p=>p&&this.addI18nMessages(p))}addI18nMessages(i,a){i=i.toLowerCase(),this[jr].has(i)||this[jr].set(i,this.i18nService.subscribe(i,()=>this.onI18nUpdate(i))),this.i18nService.prepareContext(i,a??{}),this.onI18nUpdate(i)}addI18nContext(i,a){this.addI18nMessages(typeof i=="string"?i:i.name,a)}disconnectedCallback(){super.disconnectedCallback(),this[jr].forEach(i=>i()),this[jr].clear()}}return e=jr,Yd([(0,Yl.property)({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}var ql=class extends zo(Uo.FtLitElement){},Mo=class extends zo(Uo.FtLitElementRedux){};var Gr=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Ke=class extends Mo{constructor(){super(),this.editorMode=!1,this.addStore(I)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Fo.nothing:Fo.html`
|
|
1532
|
+
`}update(e){super.update(e),e.has("baseUrl")&&(I.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&I.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&I.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&I.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&I.actions.noCustom(this.noCustom),e.has("editorMode")&&I.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&I.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&I.actions.session(this.session),e.has("availableUiLocales")&&I.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(o=>hr.addContext(o)),e.has("openExternalDocumentInNewTab")&&I.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&I.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&I.actions.forcedOffline(this.forcedOffline),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(this.session==null&&this.updateSession(),this.availableUiLocales==null&&this.updateUiLocales(),this.metadataConfiguration==null&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};J.elementDefinitions={};J.styles=Js;xe([(0,Ue.property)()],J.prototype,"baseUrl",void 0);xe([(0,Ue.property)()],J.prototype,"apiIntegrationIdentifier",void 0);xe([(0,Ue.property)()],J.prototype,"uiLocale",void 0);xe([(0,je.jsonProperty)(null)],J.prototype,"availableUiLocales",void 0);xe([(0,je.jsonProperty)(null)],J.prototype,"metadataConfiguration",void 0);xe([(0,Ue.property)({type:Boolean})],J.prototype,"editorMode",void 0);xe([(0,Ue.property)({type:Boolean})],J.prototype,"noCustom",void 0);xe([(0,Ue.property)({type:Boolean})],J.prototype,"openExternalDocumentInNewTab",void 0);xe([(0,Ue.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],J.prototype,"noCustomComponent",void 0);xe([(0,Ue.property)({type:Boolean})],J.prototype,"withManualResources",void 0);xe([(0,Ue.property)({type:Boolean})],J.prototype,"navigatorOnline",void 0);xe([(0,Ue.property)({type:Boolean})],J.prototype,"forcedOffline",void 0);xe([(0,Ue.property)({type:Object})],J.prototype,"apiProvider",void 0);xe([(0,je.jsonProperty)([])],J.prototype,"messageContexts",void 0);xe([(0,je.jsonProperty)(void 0)],J.prototype,"session",void 0);var Zd=m(H());function cd(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var o,n,i;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(n=o;n--!==0;)if(!vo(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!vo(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(i=Object.keys(t),o=i.length,o!==Object.keys(e).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[n]))return!1;for(n=o;n--!==0;){var a=i[n];if(!vo(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function vo(t,e){try{return cd(t,e)}catch{return!1}}function wn(t,e){return!vo(t,e)}var dd=m(H(),1);var So=class{constructor(){this.queue=[]}add(e,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==e.type)),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}};var Ur=m(H(),1);var ol=m(H(),1);function nl(t,e){let o=()=>JSON.parse(JSON.stringify(t));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:wn,...e??{}})}var Oo=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,o){return this.callbacks=[e],this.debounce(o)}queue(e,o){return this.callbacks.push(e),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,o;let n=[...this.callbacks];this.callbacks=[];let i=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(c){i(c);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var al=m(D(),1);var Co=window,pd=Co.ShadowRoot&&(Co.ShadyCSS===void 0||Co.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ib=Symbol();var il=(t,e)=>{pd?t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):e.forEach(o=>{let n=document.createElement("style"),i=Co.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=o.cssText,t.appendChild(n)})};var Eo=class extends al.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([i,a])=>e.registry.define(i,a)));let o={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return il(n,e.elementStyles),n}};var wo=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},dl,sl=Symbol("constructorPrototype"),ll=Symbol("constructorName"),pl=Symbol("exportpartsDebouncer"),cl=Symbol("dynamicDependenciesLoaded"),Et=class extends Eo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[dl]=new Oo(5),this[ll]=this.constructor.name,this[sl]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ll]&&Object.setPrototypeOf(this,this[sl])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let e=this.constructor;e[cl]||(e[cl]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}applyCustomStylesheet(e){var o,n,i;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var e,o,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[pl].run(()=>{var i,a;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var o,n,i,a,s,c;let p=g=>g!=null&&g.trim().length>0,f=e.filter(p).map(g=>g.trim());if(f.length===0){this.removeAttribute("exportparts");return}let u=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 x=(a=(i=g.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&a!==void 0?a:[],b=(c=(s=g.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(S=>S.split(":")[1]))!==null&&c!==void 0?c:[];new Array(...x,...b).filter(p).map(S=>S.trim()).forEach(S=>u.add(S))}if(u.size===0){this.removeAttribute("exportparts");return}let y=[...u.values()].flatMap(g=>f.map(x=>`${g}:${x}--${g}`));this.setAttribute("exportparts",[...this.part,...y].join(", "))}};dl=pl;wo([(0,Ur.property)()],Et.prototype,"exportpartsPrefix",void 0);wo([nl([])],Et.prototype,"exportpartsPrefixes",void 0);wo([(0,Ur.property)()],Et.prototype,"customStylesheet",void 0);wo([(0,Ur.state)()],Et.prototype,"useAdoptedStyleSheets",void 0);function zr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var fl,ul,hl,Ao=Symbol("internalReduxEventsUnsubscribers"),wt=Symbol("internalStoresUnsubscribers"),jt=Symbol("internalStores"),Fr=class extends Et{constructor(){super(...arguments),this[fl]=new Map,this[ul]=new Map,this[hl]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[jt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[jt].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[jt].get(e)}addStore(e,o){var n;o=(n=o??(zr(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,e)}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[jt].delete(o)}setupStore(e,o){this[jt].set(e,o),this.subscribeToStore(e,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[jt].forEach((e,o)=>this.subscribeToStore(o,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let i=this.getStore(e.store);i&&(e.store?this[wt].has(e.store):this[wt].size>0)&&(this[o]=e.selector(i.getState(),this))}})}subscribeToStore(e,o){var n;this[wt].set(e,o.subscribe(()=>this.updateFromStores())),zr(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||o.name===i.store)){let s=c=>this[a](c);o.eventBus.addEventListener(i.eventName,s),this[Ao].push(()=>o.eventBus.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[wt].forEach((e,o)=>this.unsubscribeFromStore(o)),this[Ao].forEach(e=>e()),this[Ao]=[]}unsubscribeFromStore(e){this[wt].has(e)&&this[wt].get(e)(),this[wt].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};fl=wt,ul=jt,hl=Ao;Fr.reduxProperties=new Map;Fr.reduxReactiveProperties=new Set;Fr.reduxEventListeners=new Map;function ze(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function mt(t){return!!t&&!!t[q]}function Ge(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===xd}(t)||Array.isArray(t)||!!t[Sl]||!!(!((e=t.constructor)===null||e===void 0)&&e[Sl])||_n(t)||Dn(t))}function Gt(t,e,o){o===void 0&&(o=!1),gr(t)===0?(o?Object.keys:yr)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function gr(t){var e=t[q];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:_n(t)?2:Dn(t)?3:0}function mr(t,e){return gr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function fd(t,e){return gr(t)===2?t.get(e):t[e]}function Ol(t,e,o){var n=gr(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function Cl(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function _n(t){return gd&&t instanceof Map}function Dn(t){return bd&&t instanceof Set}function At(t){return t.o||t.t}function $n(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Al(t);delete e[q];for(var o=yr(e),n=0;n<o.length;n++){var i=o[n],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function Bn(t,e){return e===void 0&&(e=!1),Mn(t)||mt(t)||!Ge(t)||(gr(t)>1&&(t.set=t.add=t.clear=t.delete=ud),Object.freeze(t),e&&Gt(t,function(o,n){return Bn(n,!0)},!0)),t}function ud(){ze(2)}function Mn(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function tt(t){var e=kn[t];return e||ze(18,t),e}function hd(t,e){kn[t]||(kn[t]=e)}function Pn(){return Hr}function An(t,e){e&&(tt("Patches"),t.u=[],t.s=[],t.v=e)}function Ro(t){Tn(t),t.p.forEach(md),t.p=null}function Tn(t){t===Hr&&(Hr=t.l)}function ml(t){return Hr={p:[],l:Hr,h:t,m:!0,_:0}}function md(t){var e=t[q];e.i===0||e.i===1?e.j():e.g=!0}function Rn(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||tt("ES5").S(e,t,n),n?(o[q].P&&(Ro(e),ze(4)),Ge(t)&&(t=No(e,t),e.l||Lo(e,t)),e.u&&tt("Patches").M(o[q].t,t,e.u,e.s)):t=No(e,o,[]),Ro(e),e.u&&e.v(e.u,e.s),t!==wl?t:void 0}function No(t,e,o){if(Mn(e))return e;var n=e[q];if(!n)return Gt(e,function(c,p){return yl(t,n,e,c,p,o)},!0),e;if(n.A!==t)return e;if(!n.P)return Lo(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=$n(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),Gt(a,function(c,p){return yl(t,n,i,c,p,o,s)}),Lo(t,i,!1),o&&t.u&&tt("Patches").N(n,o,t.u,t.s)}return n.o}function yl(t,e,o,n,i,a,s){if(mt(i)){var c=No(t,i,a&&e&&e.i!==3&&!mr(e.R,n)?a.concat(n):void 0);if(Ol(o,n,c),!mt(c))return;t.m=!1}else s&&o.add(i);if(Ge(i)&&!Mn(i)){if(!t.h.D&&t._<1)return;No(t,i),e&&e.A.l||Lo(t,i)}}function Lo(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&Bn(e,o)}function Nn(t,e){var o=t[q];return(o?At(o):t)[e]}function gl(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function Rt(t){t.P||(t.P=!0,t.l&&Rt(t.l))}function Ln(t){t.o||(t.o=$n(t.t))}function In(t,e,o){var n=_n(e)?tt("MapSet").F(e,o):Dn(e)?tt("MapSet").T(e,o):t.O?function(i,a){var s=Array.isArray(i),c={i:s?1:0,A:a?a.A:Pn(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},p=c,f=Vr;s&&(p=[c],f=Wr);var u=Proxy.revocable(p,f),y=u.revoke,g=u.proxy;return c.k=g,c.j=y,g}(e,o):tt("ES5").J(e,o);return(o?o.A:Pn()).p.push(n),n}function yd(t){return mt(t)||ze(22,t),function e(o){if(!Ge(o))return o;var n,i=o[q],a=gr(o);if(i){if(!i.P&&(i.i<4||!tt("ES5").K(i)))return i.t;i.I=!0,n=bl(o,a),i.I=!1}else n=bl(o,a);return Gt(n,function(s,c){i&&fd(i.t,s)===c||Ol(n,s,e(c))}),a===3?new Set(n):n}(t)}function bl(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return $n(t)}function El(){function t(s,c){var p=a[s];return p?p.enumerable=c:a[s]=p={configurable:!0,enumerable:c,get:function(){var f=this[q];return Vr.get(f,s)},set:function(f){var u=this[q];Vr.set(u,s,f)}},p}function e(s){for(var c=s.length-1;c>=0;c--){var p=s[c][q];if(!p.P)switch(p.i){case 5:n(p)&&Rt(p);break;case 4:o(p)&&Rt(p)}}}function o(s){for(var c=s.t,p=s.k,f=yr(p),u=f.length-1;u>=0;u--){var y=f[u];if(y!==q){var g=c[y];if(g===void 0&&!mr(c,y))return!0;var x=p[y],b=x&&x[q];if(b?b.t!==g:!Cl(x,g))return!0}}var S=!!c[q];return f.length!==yr(c).length+(S?0:1)}function n(s){var c=s.k;if(c.length!==s.t.length)return!0;var p=Object.getOwnPropertyDescriptor(c,c.length-1);if(p&&!p.get)return!0;for(var f=0;f<c.length;f++)if(!c.hasOwnProperty(f))return!0;return!1}function i(s){s.g&&ze(3,JSON.stringify(At(s)))}var a={};hd("ES5",{J:function(s,c){var p=Array.isArray(s),f=function(y,g){if(y){for(var x=Array(g.length),b=0;b<g.length;b++)Object.defineProperty(x,""+b,t(b,!0));return x}var S=Al(g);delete S[q];for(var L=yr(S),w=0;w<L.length;w++){var A=L[w];S[A]=t(A,y||!!S[A].enumerable)}return Object.create(Object.getPrototypeOf(g),S)}(p,s),u={i:p?5:4,A:c?c.A:Pn(),P:!1,I:!1,R:{},l:c,t:s,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,q,{value:u,writable:!0}),f},S:function(s,c,p){p?mt(c)&&c[q].A===s&&e(s.p):(s.u&&function f(u){if(u&&typeof u=="object"){var y=u[q];if(y){var g=y.t,x=y.k,b=y.R,S=y.i;if(S===4)Gt(x,function(T){T!==q&&(g[T]!==void 0||mr(g,T)?b[T]||f(x[T]):(b[T]=!0,Rt(y)))}),Gt(g,function(T){x[T]!==void 0||mr(x,T)||(b[T]=!1,Rt(y))});else if(S===5){if(n(y)&&(Rt(y),b.length=!0),x.length<g.length)for(var L=x.length;L<g.length;L++)b[L]=!1;else for(var w=g.length;w<x.length;w++)b[w]=!0;for(var A=Math.min(x.length,g.length),k=0;k<A;k++)x.hasOwnProperty(k)||(b[k]=!0),b[k]===void 0&&f(x[k])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var xl,Hr,Un=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",gd=typeof Map<"u",bd=typeof Set<"u",vl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",wl=Un?Symbol.for("immer-nothing"):((xl={})["immer-nothing"]=!0,xl),Sl=Un?Symbol.for("immer-draftable"):"__$immer_draftable",q=Un?Symbol.for("immer-state"):"__$immer_state";var xd=""+Object.prototype.constructor,yr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Al=Object.getOwnPropertyDescriptors||function(t){var e={};return yr(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},kn={},Vr={get:function(t,e){if(e===q)return t;var o=At(t);if(!mr(o,e))return function(i,a,s){var c,p=gl(a,s);return p?"value"in p?p.value:(c=p.get)===null||c===void 0?void 0:c.call(i.k):void 0}(t,o,e);var n=o[e];return t.I||!Ge(n)?n:n===Nn(t.t,e)?(Ln(t),t.o[e]=In(t.A.h,n,t)):n},has:function(t,e){return e in At(t)},ownKeys:function(t){return Reflect.ownKeys(At(t))},set:function(t,e,o){var n=gl(At(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var i=Nn(At(t),e),a=i?.[q];if(a&&a.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Cl(o,i)&&(o!==void 0||mr(t.t,e)))return!0;Ln(t),Rt(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return Nn(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Ln(t),Rt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=At(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){ze(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ze(12)}},Wr={};Gt(Vr,function(t,e){Wr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Wr.deleteProperty=function(t,e){return Wr.set.call(this,t,e,void 0)},Wr.set=function(t,e,o){return Vr.set.call(this,t[0],e,o,t[0])};var vd=function(){function t(o){var n=this;this.O=vl,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var c=a;a=i;var p=n;return function(S){var L=this;S===void 0&&(S=c);for(var w=arguments.length,A=Array(w>1?w-1:0),k=1;k<w;k++)A[k-1]=arguments[k];return p.produce(S,function(T){var z;return(z=a).call.apply(z,[L,T].concat(A))})}}var f;if(typeof a!="function"&&ze(6),s!==void 0&&typeof s!="function"&&ze(7),Ge(i)){var u=ml(n),y=In(n,i,void 0),g=!0;try{f=a(y),g=!1}finally{g?Ro(u):Tn(u)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(S){return An(u,s),Rn(S,u)},function(S){throw Ro(u),S}):(An(u,s),Rn(f,u))}if(!i||typeof i!="object"){if((f=a(i))===void 0&&(f=i),f===wl&&(f=void 0),n.D&&Bn(f,!0),s){var x=[],b=[];tt("Patches").M(i,f,x,b),s(x,b)}return f}ze(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(f){for(var u=arguments.length,y=Array(u>1?u-1:0),g=1;g<u;g++)y[g-1]=arguments[g];return n.produceWithPatches(f,function(x){return i.apply(void 0,[x].concat(y))})};var s,c,p=n.produce(i,a,function(f,u){s=f,c=u});return typeof Promise<"u"&&p instanceof Promise?p.then(function(f){return[f,s,c]}):[p,s,c]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){Ge(o)||ze(8),mt(o)&&(o=yd(o));var n=ml(this),i=In(this,o,void 0);return i[q].C=!0,Tn(n),i},e.finishDraft=function(o,n){var i=o&&o[q],a=i.A;return An(a,n),Rn(void 0,a)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!vl&&ze(20),this.O=o},e.applyPatches=function(o,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){o=a.value;break}}i>-1&&(n=n.slice(i+1));var s=tt("Patches").$;return mt(o)?s(o,n):this.produce(o,function(c){return s(c,n)})},t}(),ke=new vd,Sd=ke.produce,Vb=ke.produceWithPatches.bind(ke),jb=ke.setAutoFreeze.bind(ke),Gb=ke.setUseProxies.bind(ke),Kb=ke.applyPatches.bind(ke),Zb=ke.createDraft.bind(ke),qb=ke.finishDraft.bind(ke),Po=Sd;function Nt(t){"@babel/helpers - typeof";return Nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nt(t)}function zn(t,e){if(Nt(t)!=="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(Nt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Fn(t){var e=zn(t,"string");return Nt(e)==="symbol"?e:String(e)}function Wn(t,e,o){return e=Fn(e),e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Rl(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),o.push.apply(o,n)}return o}function To(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Rl(Object(o),!0).forEach(function(n){Wn(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Rl(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function fe(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Nl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Hn=function(){return Math.random().toString(36).substring(7).split("").join(".")},Io={INIT:"@@redux/INIT"+Hn(),REPLACE:"@@redux/REPLACE"+Hn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Hn()}};function Od(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Vn(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(fe(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(fe(1));return o(Vn)(t,e)}if(typeof t!="function")throw new Error(fe(2));var i=t,a=e,s=[],c=s,p=!1;function f(){c===s&&(c=s.slice())}function u(){if(p)throw new Error(fe(3));return a}function y(S){if(typeof S!="function")throw new Error(fe(4));if(p)throw new Error(fe(5));var L=!0;return f(),c.push(S),function(){if(L){if(p)throw new Error(fe(6));L=!1,f();var A=c.indexOf(S);c.splice(A,1),s=null}}}function g(S){if(!Od(S))throw new Error(fe(7));if(typeof S.type>"u")throw new Error(fe(8));if(p)throw new Error(fe(9));try{p=!0,a=i(a,S)}finally{p=!1}for(var L=s=c,w=0;w<L.length;w++){var A=L[w];A()}return S}function x(S){if(typeof S!="function")throw new Error(fe(10));i=S,g({type:Io.REPLACE})}function b(){var S,L=y;return S={subscribe:function(A){if(typeof A!="object"||A===null)throw new Error(fe(11));function k(){A.next&&A.next(u())}k();var T=L(k);return{unsubscribe:T}}},S[Nl]=function(){return this},S}return g({type:Io.INIT}),n={dispatch:g,subscribe:y,getState:u,replaceReducer:x},n[Nl]=b,n}function Cd(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:Io.INIT});if(typeof n>"u")throw new Error(fe(12));if(typeof o(void 0,{type:Io.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(fe(13))})}function Ll(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(o[i]=t[i])}var a=Object.keys(o),s,c;try{Cd(o)}catch(p){c=p}return function(f,u){if(f===void 0&&(f={}),c)throw c;if(0)var y;for(var g=!1,x={},b=0;b<a.length;b++){var S=a[b],L=o[S],w=f[S],A=L(w,u);if(typeof A>"u"){var k=u&&u.type;throw new Error(fe(14))}x[S]=A,g=g||A!==w}return g=g||a.length!==Object.keys(f).length,g?x:f}}function br(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function Pl(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(fe(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=e.map(function(p){return p(s)});return a=br.apply(void 0,c)(i.dispatch),To(To({},i),{},{dispatch:a})}}}function Tl(t){var e=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(c){return typeof c=="function"?c(i,a,t):s(c)}}};return e}var Il=Tl();Il.withExtraArgument=Tl;var jn=Il;var Bl=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Ed=function(t,e){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(f){return function(u){return p([f,u])}}function p(f){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(a=f[0]&2?i.return:f[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,f[1])).done)return a;switch(i=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return o.label++,{value:f[1],done:!1};case 5:o.label++,i=f[1],f=[0];continue;case 7:f=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){o=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){o.label=f[1];break}if(f[0]===6&&o.label<a[1]){o.label=a[1],a=f;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(f);break}a[2]&&o.ops.pop(),o.trys.pop();continue}f=e.call(t,o)}catch(u){f=[6,u],i=0}finally{n=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},xr=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},wd=Object.defineProperty,Ad=Object.defineProperties,Rd=Object.getOwnPropertyDescriptors,kl=Object.getOwnPropertySymbols,Nd=Object.prototype.hasOwnProperty,Ld=Object.prototype.propertyIsEnumerable,_l=function(t,e,o){return e in t?wd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Lt=function(t,e){for(var o in e||(e={}))Nd.call(e,o)&&_l(t,o,e[o]);if(kl)for(var n=0,i=kl(e);n<i.length;n++){var o=i[n];Ld.call(e,o)&&_l(t,o,e[o])}return t},Gn=function(t,e){return Ad(t,Rd(e))},Pd=function(t,e,o){return new Promise(function(n,i){var a=function(p){try{c(o.next(p))}catch(f){i(f)}},s=function(p){try{c(o.throw(p))}catch(f){i(f)}},c=function(p){return p.done?n(p.value):Promise.resolve(p.value).then(a,s)};c((o=o.apply(t,e)).next())})};var Td=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?br:br.apply(null,arguments)},ux=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Id(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var kd=function(t){Bl(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.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(e.bind.apply(e,xr([void 0],o[0].concat(this)))):new(e.bind.apply(e,xr([void 0],o.concat(this))))},e}(Array),_d=function(t){Bl(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.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(e.bind.apply(e,xr([void 0],o[0].concat(this)))):new(e.bind.apply(e,xr([void 0],o.concat(this))))},e}(Array);function qn(t){return Ge(t)?Po(t,function(){}):t}function Dd(t){return typeof t=="boolean"}function $d(){return function(e){return Bd(e)}}function Bd(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,a=t.serializableCheck,s=a===void 0?!0:a,c=new kd;if(o&&(Dd(o)?c.push(jn):c.push(jn.withExtraArgument(o.extraArgument))),0){if(i)var p;if(s)var f}return c}var Kn=!0;function Ml(t){var e=$d(),o=t||{},n=o.reducer,i=n===void 0?void 0:n,a=o.middleware,s=a===void 0?e():a,c=o.devTools,p=c===void 0?!0:c,f=o.preloadedState,u=f===void 0?void 0:f,y=o.enhancers,g=y===void 0?void 0:y,x;if(typeof i=="function")x=i;else if(Id(i))x=Ll(i);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 b=s;if(typeof b=="function"&&(b=b(e),!Kn&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Kn&&b.some(function(T){return typeof T!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=Pl.apply(void 0,b),L=br;p&&(L=Td(Lt({trace:!Kn},typeof p=="object"&&p)));var w=new _d(S),A=w;Array.isArray(g)?A=xr([S],g):typeof g=="function"&&(A=g(w));var k=L.apply(void 0,A);return Vn(x,u,k)}function Pt(t,e){function o(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var a=e.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return Lt(Lt({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function Ul(t){var e={},o=[],n,i={addCase:function(a,s){var c=typeof a=="string"?a:a.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=s,i},addMatcher:function(a,s){return o.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return t(i),[e,o,n]}function Md(t){return typeof t=="function"}function Ud(t,e,o,n){o===void 0&&(o=[]);var i=typeof e=="function"?Ul(e):[e,o,n],a=i[0],s=i[1],c=i[2],p;if(Md(t))p=function(){return qn(t())};else{var f=qn(t);p=function(){return f}}function u(y,g){y===void 0&&(y=p());var x=xr([a[g.type]],s.filter(function(b){var S=b.matcher;return S(g)}).map(function(b){var S=b.reducer;return S}));return x.filter(function(b){return!!b}).length===0&&(x=[c]),x.reduce(function(b,S){if(S)if(mt(b)){var L=b,w=S(L,g);return w===void 0?b:w}else{if(Ge(b))return Po(b,function(A){return S(A,g)});var w=S(b,g);if(w===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return w}return b},y)}return u.getInitialState=p,u}function zd(t,e){return t+"/"+e}function zl(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:qn(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},c={};i.forEach(function(u){var y=n[u],g=zd(e,u),x,b;"reducer"in y?(x=y.reducer,b=y.prepare):x=y,a[u]=x,s[g]=x,c[u]=b?Pt(g,b):Pt(g)});function p(){var u=typeof t.extraReducers=="function"?Ul(t.extraReducers):[t.extraReducers],y=u[0],g=y===void 0?{}:y,x=u[1],b=x===void 0?[]:x,S=u[2],L=S===void 0?void 0:S,w=Lt(Lt({},g),s);return Ud(o,function(A){for(var k in w)A.addCase(k,w[k]);for(var T=0,z=b;T<z.length;T++){var ve=z[T];A.addMatcher(ve.matcher,ve.reducer)}L&&A.addDefaultCase(L)})}var f;return{name:e,reducer:function(u,y){return f||(f=p()),f(u,y)},actions:c,caseReducers:a,getInitialState:function(){return f||(f=p()),f.getInitialState()}}}var Fd="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Wd=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=Fd[Math.random()*64|0];return e},Hd=["name","message","stack","code"],Zn=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Dl=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Vd=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=Hd;o<n.length;o++){var i=n[o];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},gx=function(){function t(e,o,n){var i=Pt(e+"/fulfilled",function(u,y,g,x){return{payload:u,meta:Gn(Lt({},x||{}),{arg:g,requestId:y,requestStatus:"fulfilled"})}}),a=Pt(e+"/pending",function(u,y,g){return{payload:void 0,meta:Gn(Lt({},g||{}),{arg:y,requestId:u,requestStatus:"pending"})}}),s=Pt(e+"/rejected",function(u,y,g,x,b){return{payload:x,error:(n&&n.serializeError||Vd)(u||"Rejected"),meta:Gn(Lt({},b||{}),{arg:g,requestId:y,rejectedWithValue:!!x,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"})}}),c=!1,p=typeof AbortController<"u"?AbortController:function(){function u(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return u.prototype.abort=function(){},u}();function f(u){return function(y,g,x){var b=n?.idGenerator?n.idGenerator(u):Wd(),S=new p,L,w=!1;function A(T){L=T,S.abort()}var k=function(){return Pd(this,null,function(){var T,z,ve,re,Or,_e,h;return Ed(this,function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),re=(T=n?.condition)==null?void 0:T.call(n,u,{getState:g,extra:x}),Gd(re)?[4,re]:[3,2];case 1:re=v.sent(),v.label=2;case 2:if(re===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return w=!0,Or=new Promise(function(P,G){return S.signal.addEventListener("abort",function(){return G({name:"AbortError",message:L||"Aborted"})})}),y(a(b,u,(z=n?.getPendingMeta)==null?void 0:z.call(n,{requestId:b,arg:u},{getState:g,extra:x}))),[4,Promise.race([Or,Promise.resolve(o(u,{dispatch:y,getState:g,extra:x,requestId:b,signal:S.signal,abort:A,rejectWithValue:function(P,G){return new Zn(P,G)},fulfillWithValue:function(P,G){return new Dl(P,G)}})).then(function(P){if(P instanceof Zn)throw P;return P instanceof Dl?i(P.payload,b,u,P.meta):i(P,b,u)})])];case 3:return ve=v.sent(),[3,5];case 4:return _e=v.sent(),ve=_e instanceof Zn?s(null,b,u,_e.payload,_e.meta):s(_e,b,u),[3,5];case 5:return h=n&&!n.dispatchConditionRejection&&s.match(ve)&&ve.meta.condition,h||y(ve),[2,ve]}})})}();return Object.assign(k,{abort:A,requestId:b,arg:u,unwrap:function(){return k.then(jd)}})}}return Object.assign(f,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function jd(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Gd(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Fl="listener",Wl="completed",Hl="cancelled",bx="task-"+Hl,xx="task-"+Wl,vx=Fl+"-"+Hl,Sx=Fl+"-"+Wl;var Yn="listenerMiddleware";var Ox=Pt(Yn+"/add"),Cx=Pt(Yn+"/removeAll"),Ex=Pt(Yn+"/remove");var $l,wx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return($l||($l=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Kd=function(t){return function(e){setTimeout(e,t)}},Ax=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Kd(10);El();window.ftReduxStores||(window.ftReduxStores={});var Vl=class t{static get(e){var o;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(zr(a))return a;if(i==null)return;let s=zl({...i,reducers:(o=i.reducers)!==null&&o!==void 0?o:{}}),c=Ml({reducer:(p,f)=>f.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...f.overwrites}:s.reducer(p,f)});return window.ftReduxStores[i.name]=new t(s,c)}constructor(e,o){this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new So,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,i,a)=>{let s=i,c=n[s];return c?(...p)=>{let f=c(...p);return this.reduxStore.dispatch(f),f}:p=>{this.setState({[s]:p})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var $o=m(R());var ko=class extends et{async listMySearches(){let e=I.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var _o=class extends et{async listMyBookmarks(){let e=I.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var qd="ft-user-assets",Do=$o.FtReduxStore.get({name:qd,initialState:{savedSearches:void 0,bookmarks:void 0}}),Xn=class{constructor(){this.currentSession=I.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new _o,this.savedSearchesService=new ko,I.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=I.getState();(0,$o.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Do.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Do.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Do.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Do.actions.bookmarks(o)}}},jl=new Xn;var Qn=class{addCommand(e,o=!1){I.commands.add(e,o)}consumeCommand(e){return I.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Qn;var Gl=m(R()),Jn=class{highlightHtml(e,o){(0,Gl.highlightHtml)(e,o)}};window.FluidTopicsHighlightHtmlService=new Jn;var Kl=m(R());var ei=class{isDate(e){var o,n,i,a;return(a=(i=((n=(o=I.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(c=>c.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,o){var n,i,a;return Kl.DateFormatter.format(e,(n=o?.locale)!==null&&n!==void 0?n:I.getState().uiLocale,(i=o?.longFormat)!==null&&i!==void 0?i:!1,(a=o?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new ei;(0,Zl.customElement)("ft-app-context")(J);var Yl=m(H()),Yd=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},ti=Symbol("i18nAttributes"),Bo=Symbol("i18nProperties"),jr=Symbol("i18nUnsubs");function zo(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?tl:hr}i18n(i,a,...s){var c;if(typeof i=="string")return this.i18nService.resolveMessage(i,a,...s);let p=(c=i.args)!==null&&c!==void 0?c:i.argsProvider?i.argsProvider(this):[];return this.i18nService.resolveMessage(i.context,i.key,...p)}onI18nUpdate(i){var a,s;(a=this[ti])===null||a===void 0||a.forEach((c,p)=>{var f;let u=this.getI18nAttributeValue(p);((f=u?.context)===null||f===void 0?void 0:f.toLowerCase())===i.toLowerCase()&&this.updateI18nAttributeMessage(p,u,c)}),(s=this[Bo])===null||s===void 0||s.forEach((c,p)=>{c.context.toLowerCase()===i.toLowerCase()&&(this[p]=this.i18n(c))}),setTimeout(()=>this.requestUpdate(),0)}updateI18nAttributeMessage(i,a,s){this[i]={...a,message:this.i18n({context:a.context,key:a.key,...s})}}update(i){var a,s;super.update(i),(a=this[ti])===null||a===void 0||a.forEach((c,p)=>{let f=this.getI18nAttributeValue(p);f?.context&&f.key&&(i.has(p)||c.argsProvider!=null)&&(i.has(p)&&this.addI18nContext(f.context),this.updateI18nAttributeMessage(p,f,c))}),(s=this[Bo])===null||s===void 0||s.forEach((c,p)=>{c.argsProvider!=null&&(this[p]=this.i18n(c))})}getI18nAttributeValue(i){return this[i]}connectedCallback(){var i,a,s,c;super.connectedCallback(),new Set([...(a=(i=this[Bo])===null||i===void 0?void 0:i.values())!==null&&a!==void 0?a:[],...[...(c=(s=this[ti])===null||s===void 0?void 0:s.keys())!==null&&c!==void 0?c:[]].map(p=>this.getI18nAttributeValue(p))].map(p=>p?.context)).forEach(p=>p&&this.addI18nMessages(p))}addI18nMessages(i,a){i=i.toLowerCase(),this[jr].has(i)||this[jr].set(i,this.i18nService.subscribe(i,()=>this.onI18nUpdate(i))),this.i18nService.prepareContext(i,a??{}),this.onI18nUpdate(i)}addI18nContext(i,a){this.addI18nMessages(typeof i=="string"?i:i.name,a)}disconnectedCallback(){super.disconnectedCallback(),this[jr].forEach(i=>i()),this[jr].clear()}}return e=jr,Yd([(0,Yl.property)({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}var ql=class extends zo(Uo.FtLitElement){},Mo=class extends zo(Uo.FtLitElementRedux){};var Gr=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Ke=class extends Mo{constructor(){super(),this.editorMode=!1,this.addStore(I)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Fo.nothing:Fo.html`
|
|
1533
1533
|
<span class="ft-i18n">
|
|
1534
1534
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
1535
1535
|
</span>
|