@fluid-topics/ft-search-locale-selector 1.2.61 → 1.2.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";(()=>{var Xc=Object.create;var Sa=Object.defineProperty;var Qc=Object.getOwnPropertyDescriptor;var Jc=Object.getOwnPropertyNames;var ed=Object.getPrototypeOf,td=Object.prototype.hasOwnProperty;var Ft=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var rd=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Jc(e))!td.call(t,a)&&a!==o&&Sa(t,a,{get:()=>e[a],enumerable:!(n=Qc(e,a))||n.enumerable});return t};var b=(t,e,o)=>(o=t!=null?Xc(ed(t)):{},rd(e||!t||!t.__esModule?Sa(o,"default",{value:t,enumerable:!0}):o,t));var L=Ft((Nu,Oa)=>{Oa.exports=ftGlobals.wcUtils});var $=Ft((Lu,Ca)=>{Ca.exports=ftGlobals.lit});var K=Ft((zy,di)=>{di.exports=ftGlobals.litDecorators});var gn=Ft((im,Li)=>{Li.exports=ftGlobals.litRepeat});var ur=Ft((ym,ji)=>{ji.exports=ftGlobals.litClassMap});var Cs=Ft((tg,Os)=>{Os.exports=ftGlobals.litUnsafeHTML});var ic=Ft((Dt,ac)=>{var Bo=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,$o=function(){function t(){this.fetch=!1,this.DOMException=Bo.DOMException}return t.prototype=Bo,new t}();(function(t){var e=function(o){var n=typeof t<"u"&&t||typeof self<"u"&&self||typeof global<"u"&&global||{},a={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};function i(h){return h&&DataView.prototype.isPrototypeOf(h)}if(a.arrayBuffer)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(h){return h&&l.indexOf(Object.prototype.toString.call(h))>-1};function u(h){if(typeof h!="string"&&(h=String(h)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(h)||h==="")throw new TypeError('Invalid character in header field name: "'+h+'"');return h.toLowerCase()}function p(h){return typeof h!="string"&&(h=String(h)),h}function m(h){var x={next:function(){var I=h.shift();return{done:I===void 0,value:I}}};return a.iterable&&(x[Symbol.iterator]=function(){return x}),x}function y(h){this.map={},h instanceof y?h.forEach(function(x,I){this.append(I,x)},this):Array.isArray(h)?h.forEach(function(x){if(x.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+x.length);this.append(x[0],x[1])},this):h&&Object.getOwnPropertyNames(h).forEach(function(x){this.append(x,h[x])},this)}y.prototype.append=function(h,x){h=u(h),x=p(x);var I=this.map[h];this.map[h]=I?I+", "+x:x},y.prototype.delete=function(h){delete this.map[u(h)]},y.prototype.get=function(h){return h=u(h),this.has(h)?this.map[h]:null},y.prototype.has=function(h){return this.map.hasOwnProperty(u(h))},y.prototype.set=function(h,x){this.map[u(h)]=p(x)},y.prototype.forEach=function(h,x){for(var I in this.map)this.map.hasOwnProperty(I)&&h.call(x,this.map[I],I,this)},y.prototype.keys=function(){var h=[];return this.forEach(function(x,I){h.push(I)}),m(h)},y.prototype.values=function(){var h=[];return this.forEach(function(x){h.push(x)}),m(h)},y.prototype.entries=function(){var h=[];return this.forEach(function(x,I){h.push([I,x])}),m(h)},a.iterable&&(y.prototype[Symbol.iterator]=y.prototype.entries);function g(h){if(!h._noBody){if(h.bodyUsed)return Promise.reject(new TypeError("Already read"));h.bodyUsed=!0}}function S(h){return new Promise(function(x,I){h.onload=function(){x(h.result)},h.onerror=function(){I(h.error)}})}function v(h){var x=new FileReader,I=S(x);return x.readAsArrayBuffer(h),I}function O(h){var x=new FileReader,I=S(x),z=/charset=([A-Za-z0-9_-]+)/.exec(h.type),
|
|
2
|
-
`)===0?z.substr(1,z.length):z}).forEach(function(z){var
|
|
1
|
+
"use strict";(()=>{var Xc=Object.create;var Sa=Object.defineProperty;var Qc=Object.getOwnPropertyDescriptor;var Jc=Object.getOwnPropertyNames;var ed=Object.getPrototypeOf,td=Object.prototype.hasOwnProperty;var Ft=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var rd=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Jc(e))!td.call(t,a)&&a!==o&&Sa(t,a,{get:()=>e[a],enumerable:!(n=Qc(e,a))||n.enumerable});return t};var b=(t,e,o)=>(o=t!=null?Xc(ed(t)):{},rd(e||!t||!t.__esModule?Sa(o,"default",{value:t,enumerable:!0}):o,t));var L=Ft((Nu,Oa)=>{Oa.exports=ftGlobals.wcUtils});var $=Ft((Lu,Ca)=>{Ca.exports=ftGlobals.lit});var K=Ft((zy,di)=>{di.exports=ftGlobals.litDecorators});var gn=Ft((im,Li)=>{Li.exports=ftGlobals.litRepeat});var ur=Ft((ym,ji)=>{ji.exports=ftGlobals.litClassMap});var Cs=Ft((tg,Os)=>{Os.exports=ftGlobals.litUnsafeHTML});var ic=Ft((Dt,ac)=>{var Bo=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,$o=function(){function t(){this.fetch=!1,this.DOMException=Bo.DOMException}return t.prototype=Bo,new t}();(function(t){var e=function(o){var n=typeof t<"u"&&t||typeof self<"u"&&self||typeof global<"u"&&global||{},a={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};function i(h){return h&&DataView.prototype.isPrototypeOf(h)}if(a.arrayBuffer)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(h){return h&&l.indexOf(Object.prototype.toString.call(h))>-1};function u(h){if(typeof h!="string"&&(h=String(h)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(h)||h==="")throw new TypeError('Invalid character in header field name: "'+h+'"');return h.toLowerCase()}function p(h){return typeof h!="string"&&(h=String(h)),h}function m(h){var x={next:function(){var I=h.shift();return{done:I===void 0,value:I}}};return a.iterable&&(x[Symbol.iterator]=function(){return x}),x}function y(h){this.map={},h instanceof y?h.forEach(function(x,I){this.append(I,x)},this):Array.isArray(h)?h.forEach(function(x){if(x.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+x.length);this.append(x[0],x[1])},this):h&&Object.getOwnPropertyNames(h).forEach(function(x){this.append(x,h[x])},this)}y.prototype.append=function(h,x){h=u(h),x=p(x);var I=this.map[h];this.map[h]=I?I+", "+x:x},y.prototype.delete=function(h){delete this.map[u(h)]},y.prototype.get=function(h){return h=u(h),this.has(h)?this.map[h]:null},y.prototype.has=function(h){return this.map.hasOwnProperty(u(h))},y.prototype.set=function(h,x){this.map[u(h)]=p(x)},y.prototype.forEach=function(h,x){for(var I in this.map)this.map.hasOwnProperty(I)&&h.call(x,this.map[I],I,this)},y.prototype.keys=function(){var h=[];return this.forEach(function(x,I){h.push(I)}),m(h)},y.prototype.values=function(){var h=[];return this.forEach(function(x){h.push(x)}),m(h)},y.prototype.entries=function(){var h=[];return this.forEach(function(x,I){h.push([I,x])}),m(h)},a.iterable&&(y.prototype[Symbol.iterator]=y.prototype.entries);function g(h){if(!h._noBody){if(h.bodyUsed)return Promise.reject(new TypeError("Already read"));h.bodyUsed=!0}}function S(h){return new Promise(function(x,I){h.onload=function(){x(h.result)},h.onerror=function(){I(h.error)}})}function v(h){var x=new FileReader,I=S(x);return x.readAsArrayBuffer(h),I}function O(h){var x=new FileReader,I=S(x),z=/charset=([A-Za-z0-9_-]+)/.exec(h.type),J=z?z[1]:"utf-8";return x.readAsText(h,J),I}function _(h){for(var x=new Uint8Array(h),I=new Array(x.length),z=0;z<x.length;z++)I[z]=String.fromCharCode(x[z]);return I.join("")}function N(h){if(h.slice)return h.slice(0);var x=new Uint8Array(h.byteLength);return x.set(new Uint8Array(h)),x.buffer}function T(){return this.bodyUsed=!1,this._initBody=function(h){this.bodyUsed=this.bodyUsed,this._bodyInit=h,h?typeof h=="string"?this._bodyText=h:a.blob&&Blob.prototype.isPrototypeOf(h)?this._bodyBlob=h:a.formData&&FormData.prototype.isPrototypeOf(h)?this._bodyFormData=h:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(h)?this._bodyText=h.toString():a.arrayBuffer&&a.blob&&i(h)?(this._bodyArrayBuffer=N(h.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(h)||c(h))?this._bodyArrayBuffer=N(h):this._bodyText=h=Object.prototype.toString.call(h):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof h=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(h)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var h=g(this);if(h)return h;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var h=g(this);return h||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(a.blob)return this.blob().then(v);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var h=g(this);if(h)return h;if(this._bodyBlob)return O(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(_(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(we)}),this.json=function(){return this.text().then(JSON.parse)},this}var k=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function B(h){var x=h.toUpperCase();return k.indexOf(x)>-1?x:h}function F(h,x){if(!(this instanceof F))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');x=x||{};var I=x.body;if(h instanceof F){if(h.bodyUsed)throw new TypeError("Already read");this.url=h.url,this.credentials=h.credentials,x.headers||(this.headers=new y(h.headers)),this.method=h.method,this.mode=h.mode,this.signal=h.signal,!I&&h._bodyInit!=null&&(I=h._bodyInit,h.bodyUsed=!0)}else this.url=String(h);if(this.credentials=x.credentials||this.credentials||"same-origin",(x.headers||!this.headers)&&(this.headers=new y(x.headers)),this.method=B(x.method||this.method||"GET"),this.mode=x.mode||this.mode||null,this.signal=x.signal||this.signal||function(){if("AbortController"in n){var U=new AbortController;return U.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&I)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(I),(this.method==="GET"||this.method==="HEAD")&&(x.cache==="no-store"||x.cache==="no-cache")){var z=/([?&])_=[^&]*/;if(z.test(this.url))this.url=this.url.replace(z,"$1_="+new Date().getTime());else{var J=/\?/;this.url+=(J.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}F.prototype.clone=function(){return new F(this,{body:this._bodyInit})};function we(h){var x=new FormData;return h.trim().split("&").forEach(function(I){if(I){var z=I.split("="),J=z.shift().replace(/\+/g," "),U=z.join("=").replace(/\+/g," ");x.append(decodeURIComponent(J),decodeURIComponent(U))}}),x}function Ye(h){var x=new y,I=h.replace(/\r?\n[\t ]+/g," ");return I.split("\r").map(function(z){return z.indexOf(`
|
|
2
|
+
`)===0?z.substr(1,z.length):z}).forEach(function(z){var J=z.split(":"),U=J.shift().trim();if(U){var Jr=J.join(":").trim();try{x.append(U,Jr)}catch(rn){console.warn("Response "+rn.message)}}}),x}T.call(F.prototype);function Se(h,x){if(!(this instanceof Se))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(x||(x={}),this.type="default",this.status=x.status===void 0?200:x.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=x.statusText===void 0?"":""+x.statusText,this.headers=new y(x.headers),this.url=x.url||"",this._initBody(h)}T.call(Se.prototype),Se.prototype.clone=function(){return new Se(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},Se.error=function(){var h=new Se(null,{status:200,statusText:""});return h.ok=!1,h.status=0,h.type="error",h};var Xe=[301,302,303,307,308];Se.redirect=function(h,x){if(Xe.indexOf(x)===-1)throw new RangeError("Invalid status code");return new Se(null,{status:x,headers:{location:h}})},o.DOMException=n.DOMException;try{new o.DOMException}catch{o.DOMException=function(x,I){this.message=x,this.name=I;var z=Error(x);this.stack=z.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function ue(h,x){return new Promise(function(I,z){var J=new F(h,x);if(J.signal&&J.signal.aborted)return z(new o.DOMException("Aborted","AbortError"));var U=new XMLHttpRequest;function Jr(){U.abort()}U.onload=function(){var pe={statusText:U.statusText,headers:Ye(U.getAllResponseHeaders()||"")};J.url.indexOf("file://")===0&&(U.status<200||U.status>599)?pe.status=200:pe.status=U.status,pe.url="responseURL"in U?U.responseURL:pe.headers.get("X-Request-URL");var $t="response"in U?U.response:U.responseText;setTimeout(function(){I(new Se($t,pe))},0)},U.onerror=function(){setTimeout(function(){z(new TypeError("Network request failed"))},0)},U.ontimeout=function(){setTimeout(function(){z(new TypeError("Network request timed out"))},0)},U.onabort=function(){setTimeout(function(){z(new o.DOMException("Aborted","AbortError"))},0)};function rn(pe){try{return pe===""&&n.location.href?n.location.href:pe}catch{return pe}}if(U.open(J.method,rn(J.url),!0),J.credentials==="include"?U.withCredentials=!0:J.credentials==="omit"&&(U.withCredentials=!1),"responseType"in U&&(a.blob?U.responseType="blob":a.arrayBuffer&&(U.responseType="arraybuffer")),x&&typeof x.headers=="object"&&!(x.headers instanceof y||n.Headers&&x.headers instanceof n.Headers)){var va=[];Object.getOwnPropertyNames(x.headers).forEach(function(pe){va.push(u(pe)),U.setRequestHeader(pe,p(x.headers[pe]))}),J.headers.forEach(function(pe,$t){va.indexOf($t)===-1&&U.setRequestHeader($t,pe)})}else J.headers.forEach(function(pe,$t){U.setRequestHeader($t,pe)});J.signal&&(J.signal.addEventListener("abort",Jr),U.onreadystatechange=function(){U.readyState===4&&J.signal.removeEventListener("abort",Jr)}),U.send(typeof J._bodyInit>"u"?null:J._bodyInit)})}return ue.polyfill=!0,n.fetch||(n.fetch=ue,n.Headers=y,n.Request=F,n.Response=Se),o.Headers=y,o.Request=F,o.Response=Se,o.fetch=ue,o}({})})($o);$o.fetch.ponyfill=!0;delete $o.fetch.polyfill;var wr=Bo.fetch?Bo:$o;Dt=wr.fetch;Dt.default=wr.fetch;Dt.fetch=wr.fetch;Dt.Headers=wr.Headers;Dt.Request=wr.Request;Dt.Response=wr.Response;ac.exports=Dt});var Yc=b(L());var Jt=b($());var al=b($()),Ve=b(L());var Ea=b($()),st=b(L()),xt={distance:st.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:st.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:st.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:st.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:st.FtCssVariableFactory.external(st.designSystemVariables.borderRadiusS,"Design system"),maxWidth:st.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},wa=Ea.css`
|
|
3
3
|
.ft-tooltip--container {
|
|
4
4
|
display: block;
|
|
5
5
|
}
|
|
@@ -135,7 +135,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
135
135
|
}
|
|
136
136
|
`,ci=[Object.keys(eo).map(t=>Xa(t))];var Dn=b(L());var Vt=b($()),G=b(K()),be=b(L());var Ni=b(L());var dn=globalThis,no=dn.trustedTypes,ui=no?no.createPolicy("lit-html",{createHTML:t=>t}):void 0,gi="$lit$",St=`lit$${Math.random().toFixed(9).slice(2)}$`,bi="?"+St,nd=`<${bi}>`,Wt=document,ao=()=>Wt.createComment(""),Rr=t=>t===null||typeof t!="object"&&typeof t!="function",un=Array.isArray,ad=t=>un(t)||typeof t?.[Symbol.iterator]=="function",on=`[
|
|
137
137
|
\f\r]`,Ar=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,pi=/-->/g,fi=/>/g,Ut=RegExp(`>|${on}(?:([^\\s"'>=/]+)(${on}*=${on}*(?:[^
|
|
138
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),hi=/'/g,yi=/"/g,xi=/^(?:script|style|textarea|title)$/i,pn=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),vi=pn(1),Si=pn(2),Oi=pn(3),Nr=Symbol.for("lit-noChange"),
|
|
138
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),hi=/'/g,yi=/"/g,xi=/^(?:script|style|textarea|title)$/i,pn=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),vi=pn(1),Si=pn(2),Oi=pn(3),Nr=Symbol.for("lit-noChange"),le=Symbol.for("lit-nothing"),mi=new WeakMap,Mt=Wt.createTreeWalker(Wt,129);function Ci(t,e){if(!un(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return ui!==void 0?ui.createHTML(e):e}var id=(t,e)=>{let o=t.length-1,n=[],a,i=e===2?"<svg>":e===3?"<math>":"",l=Ar;for(let c=0;c<o;c++){let u=t[c],p,m,y=-1,g=0;for(;g<u.length&&(l.lastIndex=g,m=l.exec(u),m!==null);)g=l.lastIndex,l===Ar?m[1]==="!--"?l=pi:m[1]!==void 0?l=fi:m[2]!==void 0?(xi.test(m[2])&&(a=RegExp("</"+m[2],"g")),l=Ut):m[3]!==void 0&&(l=Ut):l===Ut?m[0]===">"?(l=a??Ar,y=-1):m[1]===void 0?y=-2:(y=l.lastIndex-m[2].length,p=m[1],l=m[3]===void 0?Ut:m[3]==='"'?yi:hi):l===yi||l===hi?l=Ut:l===pi||l===fi?l=Ar:(l=Ut,a=void 0);let S=l===Ut&&t[c+1].startsWith("/>")?" ":"";i+=l===Ar?u+nd:y>=0?(n.push(p),u.slice(0,y)+gi+u.slice(y)+St+S):u+St+(y===-2?c:S)}return[Ci(t,i+(t[o]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},Lr=class t{constructor({strings:e,_$litType$:o},n){let a;this.parts=[];let i=0,l=0,c=e.length-1,u=this.parts,[p,m]=id(e,o);if(this.el=t.createElement(p,n),Mt.currentNode=this.el.content,o===2||o===3){let y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(a=Mt.nextNode())!==null&&u.length<c;){if(a.nodeType===1){if(a.hasAttributes())for(let y of a.getAttributeNames())if(y.endsWith(gi)){let g=m[l++],S=a.getAttribute(y).split(St),v=/([.?@])?(.*)/.exec(g);u.push({type:1,index:i,name:v[2],strings:S,ctor:v[1]==="."?an:v[1]==="?"?sn:v[1]==="@"?ln:dr}),a.removeAttribute(y)}else y.startsWith(St)&&(u.push({type:6,index:i}),a.removeAttribute(y));if(xi.test(a.tagName)){let y=a.textContent.split(St),g=y.length-1;if(g>0){a.textContent=no?no.emptyScript:"";for(let S=0;S<g;S++)a.append(y[S],ao()),Mt.nextNode(),u.push({type:2,index:++i});a.append(y[g],ao())}}}else if(a.nodeType===8)if(a.data===bi)u.push({type:2,index:i});else{let y=-1;for(;(y=a.data.indexOf(St,y+1))!==-1;)u.push({type:7,index:i}),y+=St.length-1}i++}}static createElement(e,o){let n=Wt.createElement("template");return n.innerHTML=e,n}};function cr(t,e,o=t,n){if(e===Nr)return e;let a=n!==void 0?o._$Co?.[n]:o._$Cl,i=Rr(e)?void 0:e._$litDirective$;return a?.constructor!==i&&(a?._$AO?.(!1),i===void 0?a=void 0:(a=new i(t),a._$AT(t,o,n)),n!==void 0?(o._$Co??=[])[n]=a:o._$Cl=a),a!==void 0&&(e=cr(t,a._$AS(t,e.values),a,n)),e}var nn=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,a=(e?.creationScope??Wt).importNode(o,!0);Mt.currentNode=a;let i=Mt.nextNode(),l=0,c=0,u=n[0];for(;u!==void 0;){if(l===u.index){let p;u.type===2?p=new io(i,i.nextSibling,this,e):u.type===1?p=new u.ctor(i,u.name,u.strings,this,e):u.type===6&&(p=new cn(i,this,e)),this._$AV.push(p),u=n[++c]}l!==u?.index&&(i=Mt.nextNode(),l++)}return Mt.currentNode=Wt,a}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++}},io=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,o,n,a){this.type=2,this._$AH=le,this._$AN=void 0,this._$AA=e,this._$AB=o,this._$AM=n,this.options=a,this._$Cv=a?.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=cr(this,e,o),Rr(e)?e===le||e==null||e===""?(this._$AH!==le&&this._$AR(),this._$AH=le):e!==this._$AH&&e!==Nr&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):ad(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==le&&Rr(this._$AH)?this._$AA.nextSibling.data=e:this.T(Wt.createTextNode(e)),this._$AH=e}$(e){let{values:o,_$litType$:n}=e,a=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Lr.createElement(Ci(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(o);else{let i=new nn(a,this),l=i.u(this.options);i.p(o),this.T(l),this._$AH=i}}_$AC(e){let o=mi.get(e.strings);return o===void 0&&mi.set(e.strings,o=new Lr(e)),o}k(e){un(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,n,a=0;for(let i of e)a===o.length?o.push(n=new t(this.O(ao()),this.O(ao()),this,this.options)):n=o[a],n._$AI(i),a++;a<o.length&&(this._$AR(n&&n._$AB.nextSibling,a),o.length=a)}_$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))}},dr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,o,n,a,i){this.type=1,this._$AH=le,this._$AN=void 0,this.element=e,this.name=o,this._$AM=a,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=le}_$AI(e,o=this,n,a){let i=this.strings,l=!1;if(i===void 0)e=cr(this,e,o,0),l=!Rr(e)||e!==this._$AH&&e!==Nr,l&&(this._$AH=e);else{let c=e,u,p;for(e=i[0],u=0;u<i.length-1;u++)p=cr(this,c[n+u],o,u),p===Nr&&(p=this._$AH[u]),l||=!Rr(p)||p!==this._$AH[u],p===le?e=le:e!==le&&(e+=(p??"")+i[u+1]),this._$AH[u]=p}l&&!a&&this.j(e)}j(e){e===le?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},an=class extends dr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===le?void 0:e}},sn=class extends dr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==le)}},ln=class extends dr{constructor(e,o,n,a,i){super(e,o,n,a,i),this.type=5}_$AI(e,o=this){if((e=cr(this,e,o,0)??le)===Nr)return;let n=this._$AH,a=e===le&&n!==le||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==le&&(n===le||a);a&&this.element.removeEventListener(this.name,this,n),i&&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)}},cn=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){cr(this,e)}};var sd=dn.litHtmlPolyfillSupport;sd?.(Lr,io),(dn.litHtmlVersions??=[]).push("3.3.0");var wi=Symbol.for(""),ld=t=>{if(t?.r===wi)return t?._$litStatic$},fn=t=>({_$litStatic$:t,r:wi});var Ei=new Map,hn=t=>(e,...o)=>{let n=o.length,a,i,l=[],c=[],u,p=0,m=!1;for(;p<n;){for(u=e[p];p<n&&(i=o[p],(a=ld(i))!==void 0);)u+=a+e[++p],m=!0;p!==n&&c.push(i),l.push(u),p++}if(p===n&&l.push(e[n]),m){let y=l.join("$$lit$$");(e=Ei.get(y))===void 0&&(l.raw=l,Ei.set(y,e=l)),o=c}return t(e,...o)},yn=hn(vi),jy=hn(Si),Vy=hn(Oi);var mn=b(K()),Ri=b(L());var Ot;(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"})(Ot||(Ot={}));var Ai=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},te=class extends Ri.FtLitElement{constructor(){super(...arguments),this.variant=Ot.body1}render(){return this.element?yn`
|
|
139
139
|
<${fn(this.element)}
|
|
140
140
|
part="text"
|
|
141
141
|
class="ft-typography ft-typography--${this.variant}">
|
|
@@ -550,8 +550,11 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
550
550
|
<div></div>
|
|
551
551
|
<div></div>
|
|
552
552
|
</div>
|
|
553
|
-
`}};Gt.styles=Fi;(0,Ls.customElement)("ft-loader")(Gt);var wt=b($()),Tn=b(ur()),
|
|
554
|
-
<ft-ripple part="ripple"
|
|
553
|
+
`}};Gt.styles=Fi;(0,Ls.customElement)("ft-loader")(Gt);var wt=b($()),Tn=b(ur()),ae=b(K()),ye=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Y=class extends(0,At.toFtFormComponent)(At.FtLitElement){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.addEventListener("click",e=>{var o;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((o=this.form)===null||o===void 0||o.requestSubmit())})}render(){var e,o,n;let a=wt.html`
|
|
554
|
+
<ft-ripple part="ripple"
|
|
555
|
+
?disabled=${this.isDisabled()}
|
|
556
|
+
?activated=${this.activated}
|
|
557
|
+
></ft-ripple>
|
|
555
558
|
<ft-typography part="label"
|
|
556
559
|
variant=${this.typographyVariant}
|
|
557
560
|
element="span"
|
|
@@ -587,7 +590,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
587
590
|
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
588
591
|
`:wt.html`
|
|
589
592
|
<slot part="icon" name="icon"></slot>
|
|
590
|
-
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}focusWithoutTooltip(){var e;this.setTooltipManual(!0),(e=this.button)===null||e===void 0||e.focus(),this.setTooltipManual(!1)}showTemporaryTooltip(e,o){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(e,o)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,At.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};
|
|
593
|
+
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}focusWithoutTooltip(){var e;this.setTooltipManual(!0),(e=this.button)===null||e===void 0||e.focus(),this.setTooltipManual(!1)}showTemporaryTooltip(e,o){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(e,o)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,At.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};Y.elementDefinitions={"ft-ripple":W,"ft-tooltip":q,"ft-typography":te,"ft-icon":he,"ft-loader":Gt};ye([(0,ae.property)()],Y.prototype,"href",void 0);ye([(0,ae.property)()],Y.prototype,"target",void 0);ye([(0,ae.property)()],Y.prototype,"type",void 0);ye([(0,ae.property)({type:Boolean})],Y.prototype,"disabled",void 0);ye([(0,ae.property)()],Y.prototype,"label",void 0);ye([(0,ae.property)()],Y.prototype,"icon",void 0);ye([(0,ae.property)()],Y.prototype,"iconVariant",void 0);ye([(0,ae.property)({type:Boolean})],Y.prototype,"trailingIcon",void 0);ye([(0,ae.property)({type:Boolean})],Y.prototype,"loading",void 0);ye([(0,ae.property)({attribute:"aria-label"})],Y.prototype,"ariaLabel",void 0);ye([(0,ae.property)()],Y.prototype,"tooltipPosition",void 0);ye([(0,ae.property)({type:Boolean})],Y.prototype,"hideTooltip",void 0);ye([(0,ae.property)({type:Boolean})],Y.prototype,"forceTooltip",void 0);ye([(0,ae.property)({type:Boolean})],Y.prototype,"activated",void 0);ye([(0,ae.query)(".ft-button")],Y.prototype,"button",void 0);ye([(0,ae.query)(".ft-button--label slot")],Y.prototype,"slottedContent",void 0);ye([(0,ae.query)("[part=tooltip]")],Y.prototype,"tooltip",void 0);var yo=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Ce=class extends Y{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}};Ce.styles=[Ts.safariEllipsisFix,Gi];yo([(0,Ur.property)({type:Boolean})],Ce.prototype,"primary",void 0);yo([(0,Ur.property)({type:Boolean})],Ce.prototype,"outlined",void 0);yo([(0,Ur.property)({type:Boolean})],Ce.prototype,"dense",void 0);yo([(0,Ur.property)({type:Boolean})],Ce.prototype,"round",void 0);var Mr=b(K());var go=b(L());var _s=b($()),C=b(L());var Is=[_s.css`
|
|
591
594
|
:host {
|
|
592
595
|
display: inline-block;
|
|
593
596
|
max-width: 100%;
|
|
@@ -1053,7 +1056,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1053
1056
|
.ftds--size-small.ft-button--icon-only {
|
|
1054
1057
|
width: ${f.smallIconOnlyWidth};
|
|
1055
1058
|
}
|
|
1056
|
-
`,C.noTextSelect];var mo=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},ft=class extends(0,go.toFtdsBase)(
|
|
1059
|
+
`,C.noTextSelect];var mo=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},ft=class extends(0,go.toFtdsBase)(Y){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=to.brand,this.iconVariant=tt.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case er.large:return Ot.body2medium;case er.medium:return Ot.caption1medium;case er.small:return Ot.caption2medium}}};ft.styles=[go.safariEllipsisFix,Is];mo([(0,Mr.property)({type:Boolean})],ft.prototype,"primary",void 0);mo([(0,Mr.property)({type:Boolean})],ft.prototype,"secondary",void 0);mo([(0,Mr.property)({type:Boolean})],ft.prototype,"tertiary",void 0);mo([(0,Mr.property)({type:Boolean})],ft.prototype,"round",void 0);(0,_n.customElement)("ft-button")(Ce);(0,_n.customElement)("ftds-button")(ft);var Fs=b(L());var Ds=b($()),rt=b(K()),Bs=b(L()),$s=b(ur());var me=b(L()),Ps=b($());var De={textColor:me.FtCssVariableFactory.extend("--ft-checkbox-text-color","",me.designSystemVariables.colorOnSurfaceHigh),fontSize:me.FtCssVariableFactory.extend("--ft-checkbox-font-size","",R.fontSize),activeColor:me.FtCssVariableFactory.extend("--ft-checkbox-active-color","",me.designSystemVariables.colorPrimary),checkColor:me.FtCssVariableFactory.extend("--ft-checkbox-check-color","",me.designSystemVariables.colorOnPrimary),borderColor:me.FtCssVariableFactory.extend("--ft-checkbox-border-color","",me.designSystemVariables.colorOnSurfaceMedium),disabledColor:me.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",me.designSystemVariables.colorOnSurfaceDisabled),errorColor:me.FtCssVariableFactory.extend("--ft-checkbox-error-color","",me.designSystemVariables.colorError)},ks=Ps.css`
|
|
1057
1060
|
* {
|
|
1058
1061
|
box-sizing: border-box;
|
|
1059
1062
|
}
|
|
@@ -1134,7 +1137,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1134
1137
|
|
|
1135
1138
|
.ft-checkbox.ft-checkbox--error {
|
|
1136
1139
|
color: ${De.errorColor};
|
|
1137
|
-
${(0,
|
|
1140
|
+
${(0,me.setVariable)(E.color,De.errorColor)};
|
|
1138
1141
|
|
|
1139
1142
|
.ft-checkbox--box {
|
|
1140
1143
|
border-color: ${De.errorColor};
|
|
@@ -1262,7 +1265,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1262
1265
|
.ft-radio ft-typography {
|
|
1263
1266
|
padding-right: 2px;
|
|
1264
1267
|
}
|
|
1265
|
-
`;var ht=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},bo=class extends CustomEvent{constructor(e,o){super("change",{detail:{value:e,checked:o},bubbles:!0,composed:!0})}},
|
|
1268
|
+
`;var ht=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},bo=class extends CustomEvent{constructor(e,o){super("change",{detail:{value:e,checked:o},bubbles:!0,composed:!0})}},ie=class extends zs.FtLitElement{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.ariaChecked="false",this.disabled=!1,this.role="radio"}render(){let e={"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled};return Ws.html`
|
|
1266
1269
|
<div class="${(0,Hs.classMap)(e)}">
|
|
1267
1270
|
<div class="ft-radio--box-container">
|
|
1268
1271
|
<ft-ripple
|
|
@@ -1287,7 +1290,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1287
1290
|
</ft-typography>
|
|
1288
1291
|
</label>
|
|
1289
1292
|
</div>
|
|
1290
|
-
`}update(e){super.update(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new bo(this.value,this.checked))}contentAvailableCallback(e){var o;super.contentAvailableCallback(e),(o=this.ripple)===null||o===void 0||o.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new bo(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>{var o;(o=this.ripple)===null||o===void 0||o.forceFocusUpdate()},0)}};
|
|
1293
|
+
`}update(e){super.update(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new bo(this.value,this.checked))}contentAvailableCallback(e){var o;super.contentAvailableCallback(e),(o=this.ripple)===null||o===void 0||o.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new bo(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>{var o;(o=this.ripple)===null||o===void 0||o.forceFocusUpdate()},0)}};ie.elementDefinitions={"ft-ripple":W,"ft-typography":te};ie.styles=Ms;ht([(0,Ge.property)()],ie.prototype,"value",void 0);ht([(0,Ge.property)()],ie.prototype,"name",void 0);ht([(0,Ge.property)({type:Boolean,reflect:!0})],ie.prototype,"checked",void 0);ht([(0,Ge.property)({attribute:"aria-checked",reflect:!0})],ie.prototype,"ariaChecked",void 0);ht([(0,Ge.property)({type:Boolean})],ie.prototype,"disabled",void 0);ht([(0,Ge.property)({reflect:!0,attribute:"role"})],ie.prototype,"role",void 0);ht([(0,Ge.query)(".ft-radio")],ie.prototype,"container",void 0);ht([(0,Ge.query)("ft-ripple")],ie.prototype,"ripple",void 0);ht([(0,Ge.query)("input")],ie.prototype,"input",void 0);var Vs=b(L()),yt=b(K()),Ks=b($());var Gs=b($());var js=Gs.css`
|
|
1291
1294
|
:host {
|
|
1292
1295
|
display: block;
|
|
1293
1296
|
}
|
|
@@ -1300,7 +1303,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1300
1303
|
@change=${this.onChange}
|
|
1301
1304
|
@keydown=${this.onKeyDown}
|
|
1302
1305
|
></slot>
|
|
1303
|
-
`}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()}};Te.elementDefinitions={};Te.styles=js;mr([(0,yt.property)()],Te.prototype,"name",void 0);mr([(0,yt.property)({reflect:!0,attribute:"role"})],Te.prototype,"role",void 0);mr([(0,yt.property)({reflect:!0})],Te.prototype,"tabIndex",void 0);mr([(0,yt.property)({reflect:!0,attribute:"aria-labelledby"})],Te.prototype,"ariaLabelledBy",void 0);mr([(0,yt.queryAssignedElements)()],Te.prototype,"assignedElements",void 0);mr([(0,yt.state)()],Te.prototype,"currentSelectedIndex",void 0);(0,In.customElement)("ft-radio")(
|
|
1306
|
+
`}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()}};Te.elementDefinitions={};Te.styles=js;mr([(0,yt.property)()],Te.prototype,"name",void 0);mr([(0,yt.property)({reflect:!0,attribute:"role"})],Te.prototype,"role",void 0);mr([(0,yt.property)({reflect:!0})],Te.prototype,"tabIndex",void 0);mr([(0,yt.property)({reflect:!0,attribute:"aria-labelledby"})],Te.prototype,"ariaLabelledBy",void 0);mr([(0,yt.queryAssignedElements)()],Te.prototype,"assignedElements",void 0);mr([(0,yt.state)()],Te.prototype,"currentSelectedIndex",void 0);(0,In.customElement)("ft-radio")(ie);(0,In.customElement)("ft-radio-group")(Te);var Zs=b($()),H=b(L());var Wr={buttonMoreColor:H.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",H.designSystemVariables.colorOnSurface),borderRadiusM:H.FtCssVariableFactory.external(H.designSystemVariables.borderRadiusM,"Design system"),colorOutline:H.FtCssVariableFactory.external(H.designSystemVariables.colorOutline,"Design system"),colorOnSurface:H.FtCssVariableFactory.external(H.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:H.FtCssVariableFactory.external(H.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:H.FtCssVariableFactory.external(H.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:H.FtCssVariableFactory.external(H.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:H.FtCssVariableFactory.external(H.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:H.FtCssVariableFactory.external(Pe.fontFamily,"Body2 typography"),fontSize:H.FtCssVariableFactory.external(Pe.fontSize,"Body2 typography"),fontWeight:H.FtCssVariableFactory.external(Pe.fontWeight,"Body2 typography"),letterSpacing:H.FtCssVariableFactory.external(Pe.letterSpacing,"Body2 typography"),lineHeight:H.FtCssVariableFactory.external(Pe.lineHeight,"Body2 typography"),textTransform:H.FtCssVariableFactory.external(Pe.textTransform,"Body2 typography")},qs=Zs.css`
|
|
1304
1307
|
.ft-filter-level--container {
|
|
1305
1308
|
display: flex;
|
|
1306
1309
|
flex-direction: column;
|
|
@@ -1379,7 +1382,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1379
1382
|
aria-label="Back to ${this.parent.label}"
|
|
1380
1383
|
role="button"
|
|
1381
1384
|
?disabled=${this.disabled}
|
|
1382
|
-
@
|
|
1385
|
+
@keydown=${this.goBackOnKeyPress}
|
|
1383
1386
|
@click=${this.goBackOnClick}>
|
|
1384
1387
|
<ft-ripple></ft-ripple>
|
|
1385
1388
|
<ft-icon>thin_arrow_left</ft-icon>
|
|
@@ -1437,7 +1440,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1437
1440
|
@change=${o=>this.optionsChanged(o,e)}>
|
|
1438
1441
|
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
1439
1442
|
</ft-radio>
|
|
1440
|
-
`}onRadioKeyDown(e,o){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,o))}optionsChanged(e,o){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:o}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}};re.elementDefinitions={"ft-button":Ce,"ft-ripple":W,"ft-typography":te,"ft-checkbox":ge,"ft-icon":he,"ft-radio":
|
|
1443
|
+
`}onRadioKeyDown(e,o){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,o))}optionsChanged(e,o){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:o}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}};re.elementDefinitions={"ft-button":Ce,"ft-ripple":W,"ft-typography":te,"ft-checkbox":ge,"ft-icon":he,"ft-radio":ie};re.styles=qs;Ee([(0,ce.property)({type:String})],re.prototype,"filterId",void 0);Ee([(0,ce.property)({type:Object})],re.prototype,"parent",void 0);Ee([(0,ce.property)({type:Array})],re.prototype,"options",void 0);Ee([(0,ce.property)({type:Boolean})],re.prototype,"multivalued",void 0);Ee([(0,ce.property)({type:Boolean})],re.prototype,"disabled",void 0);Ee([(0,ce.property)({type:Boolean})],re.prototype,"hideSelectedOptions",void 0);Ee([(0,ce.property)({type:Boolean})],re.prototype,"displayCount",void 0);Ee([(0,ce.property)({type:Boolean})],re.prototype,"preventNavigation",void 0);Ee([(0,ce.property)({type:String})],re.prototype,"filter",void 0);Ee([(0,ce.property)({type:String})],re.prototype,"moreValuesButtonLabel",void 0);Ee([(0,ce.property)({type:String})],re.prototype,"noValuesLabel",void 0);Ee([(0,ce.property)({type:Number})],re.prototype,"displayedValuesLimit",void 0);Ee([(0,ce.query)(".ft-filter-level--container")],re.prototype,"container",void 0);Ee([(0,ce.state)()],re.prototype,"radios",void 0);Ee([(0,ce.state)()],re.prototype,"displayedPages",void 0);var tl=b(L());var Js=b($()),$e=b(K()),jt=b(L());var el=b(ur());var Xs=b($()),je=b(L());var Lt={buttonsColor:je.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",je.designSystemVariables.colorPrimary),buttonsZIndex:je.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:je.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:je.FtCssVariableFactory.external(je.designSystemVariables.colorSurface,"Design system")},Qs=Xs.css`
|
|
1441
1444
|
.ft-snap-scroll {
|
|
1442
1445
|
box-sizing: border-box;
|
|
1443
1446
|
position: relative;
|
|
@@ -1703,7 +1706,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1703
1706
|
slot:not([name]) {
|
|
1704
1707
|
display: none;
|
|
1705
1708
|
}
|
|
1706
|
-
`];var
|
|
1709
|
+
`];var X=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},kn=class extends CustomEvent{constructor(e){super("change",{detail:e})}},M=class extends be.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 be.Debouncer(300),this.changeDebouncer=new be.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,be.flatDeep)(this.options,e=>{var o;return(o=e.subOptions)!==null&&o!==void 0?o:[]})}get childrenFilteredFlatOptions(){return(0,be.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(a=>a.selected),o=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,n=this.filterPlaceHolder.replace("{0}",this.label);return Vt.html`
|
|
1707
1710
|
<div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
|
|
1708
1711
|
part="container">
|
|
1709
1712
|
${!this.label&&!e?null:Vt.html`
|
|
@@ -1784,7 +1787,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1784
1787
|
.exportpartsPrefixes=${["values","available-values"]}
|
|
1785
1788
|
noValuesLabel="${this.noValuesLabel}"
|
|
1786
1789
|
></ft-filter-level>
|
|
1787
|
-
`}goBack(e){this.slideOut=e.detail.value,(0,be.waitUntil)(()=>this.slideOut===void 0).then(()=>{var o;let n=(o=this.levelsContainer)===null||o===void 0?void 0:o.querySelector(".ft-filter--level-center");n?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,(0,be.waitUntil)(()=>this.slideIn===void 0).then(()=>{var o;let n=(o=this.levelsContainer)===null||o===void 0?void 0:o.querySelector(".ft-filter--level-center");n?.focusOnBackButton()})}focusOnFirstOption(){(0,be.waitUntil)(()=>this.slideOut===void 0).then(()=>{var e;let o=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");o?.focusOnFirstOption()})}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(i=>i.value===e.detail.value);n.selected=!n.selected;let a=i=>{var l;i!==n&&(i.selected=!1),(l=i.subOptions)===null||l===void 0||l.forEach(a)};this.multivalued?(o=n.subOptions)===null||o===void 0||o.forEach(a):this.options.forEach(a),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,be.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new kn(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)}};M.elementDefinitions={"ft-button":Ce,"ft-filter-level":re,"ft-snap-scroll":de,"ft-typography":te};M.styles=ol;
|
|
1790
|
+
`}goBack(e){this.slideOut=e.detail.value,(0,be.waitUntil)(()=>this.slideOut===void 0).then(()=>{var o;let n=(o=this.levelsContainer)===null||o===void 0?void 0:o.querySelector(".ft-filter--level-center");n?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,(0,be.waitUntil)(()=>this.slideIn===void 0).then(()=>{var o;let n=(o=this.levelsContainer)===null||o===void 0?void 0:o.querySelector(".ft-filter--level-center");n?.focusOnBackButton()})}focusOnFirstOption(){(0,be.waitUntil)(()=>this.slideOut===void 0).then(()=>{var e;let o=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");o?.focusOnFirstOption()})}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(i=>i.value===e.detail.value);n.selected=!n.selected;let a=i=>{var l;i!==n&&(i.selected=!1),(l=i.subOptions)===null||l===void 0||l.forEach(a)};this.multivalued?(o=n.subOptions)===null||o===void 0||o.forEach(a):this.options.forEach(a),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,be.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new kn(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)}};M.elementDefinitions={"ft-button":Ce,"ft-filter-level":re,"ft-snap-scroll":de,"ft-typography":te};M.styles=ol;X([(0,G.property)({type:String})],M.prototype,"id",void 0);X([(0,G.property)({type:String})],M.prototype,"label",void 0);X([(0,G.property)({type:String})],M.prototype,"filterPlaceHolder",void 0);X([(0,G.property)({type:String})],M.prototype,"clearButtonLabel",void 0);X([(0,G.property)({type:String})],M.prototype,"moreValuesButtonLabel",void 0);X([(0,G.property)({type:String})],M.prototype,"noValuesLabel",void 0);X([(0,be.jsonProperty)([])],M.prototype,"options",void 0);X([(0,G.property)({type:Boolean})],M.prototype,"multivalued",void 0);X([(0,G.property)({type:Boolean})],M.prototype,"disabled",void 0);X([(0,G.property)({type:Boolean})],M.prototype,"raiseSelectedOptions",void 0);X([(0,G.property)({type:Boolean})],M.prototype,"displayCount",void 0);X([(0,G.property)({type:Number})],M.prototype,"displayedValuesLimit",void 0);X([(0,G.property)({type:Boolean})],M.prototype,"hideClearButton",void 0);X([(0,G.query)(".ft-filter--slot")],M.prototype,"slotElement",void 0);X([(0,G.query)(".ft-filter--container")],M.prototype,"container",void 0);X([(0,G.query)(".ft-filter--values")],M.prototype,"valuesContainer",void 0);X([(0,G.query)(".ft-filter--levels")],M.prototype,"levelsContainer",void 0);X([(0,G.state)()],M.prototype,"lastLevelHasHiddenvalues",void 0);X([(0,G.query)(".ft-filter--filter input")],M.prototype,"filterInput",void 0);X([(0,G.queryAll)(".ft-filter--levels ft-filter-level")],M.prototype,"levels",void 0);X([(0,G.state)()],M.prototype,"withScroll",void 0);X([(0,G.state)()],M.prototype,"filter",void 0);X([(0,G.state)()],M.prototype,"slideIn",void 0);X([(0,G.state)()],M.prototype,"slideOut",void 0);var vo=b(L()),Kt=b(K()),nl=b($()),gr=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Fe=class extends vo.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return nl.html`
|
|
1788
1791
|
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
1789
1792
|
`}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}))}};Fe.elementDefinitions={};gr([(0,Kt.property)({type:String})],Fe.prototype,"label",void 0);gr([(0,Kt.property)({type:Object,converter:t=>t})],Fe.prototype,"value",void 0);gr([(0,Kt.property)({type:Boolean,reflect:!0})],Fe.prototype,"selected",void 0);gr([(0,Kt.property)({type:Object})],Fe.prototype,"subOptions",void 0);gr([(0,vo.jsonProperty)({})],Fe.prototype,"renderOption",void 0);gr([(0,Kt.query)(".ft-filter-option--slot")],Fe.prototype,"slotElement",void 0);(0,Dn.customElement)("ft-filter")(M);(0,Dn.customElement)("ft-filter-option")(Fe);var Bn={warningIconColor:Ve.FtCssVariableFactory.extend("--ft-search-locale-selector-warning-icon-color","",Ve.designSystemVariables.colorError),warningTooltipMaxWidth:Ve.FtCssVariableFactory.create("--ft-search-locale-selector-warning-tooltip-max-width","","SIZE","270px"),headerColor:Ve.FtCssVariableFactory.extend("--ft-search-locale-selector-header-color","",Ve.designSystemVariables.colorOnSurface)},il=al.css`
|
|
1790
1793
|
[part="container"] {
|
|
@@ -1838,7 +1841,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1838
1841
|
`;var jo=b(L());var Bc=b(L());var pl=b($()),Ie=b(K()),Ke=b(L());var cl=b($());var dl=cl.css`
|
|
1839
1842
|
`;var So=b(L()),Ld="ft-app-info",$n=class extends CustomEvent{constructor(e){super("authentication-change",{detail:e})}},Td={session:(t,e)=>{(0,So.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>P.dispatchEvent(new $n(e.payload)),0))}},P=So.FtReduxStore.get({name:Ld,reducers:Td,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var nt=b(L());var Fn=b(L());var Zt=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:n}=P.getState(),a=e??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(e){return new Promise(o=>{let n=t.get(e);if(n)o(n);else{let a=P.subscribe(()=>{n=t.get(e),n&&(a(),o(n))})}})}};var zr=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Zt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Zt.await()}};var mt=class extends zr{constructor(e=!0,o){var n;super(o);let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new Fn.CacheRegistry,this.cache=e?a.commonCache:new Fn.CacheRegistry}clearCache(){this.cache.clearAll()}};var ul,_d=Symbol("clearAfterUnitTest"),Oo=class extends mt{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[ul]=()=>{this.defaultMessages={},this.cache=new nt.CacheRegistry,this.listeners={}},this.currentUiLocale=P.getState().uiLocale,P.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=P.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(),o&&Object.keys(o).length>0){let a={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...o};(0,nt.deepEqual)(this.defaultMessages[e],a)||(this.defaultMessages[e]=a,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var o,n;return this.fetchContext(e),(n=(o=this.cache.getNow(e))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,o){let n=e.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(e,o,...n){var a;let i=e.toLowerCase(),l=this.resolveContext(i);return new nt.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},l).resolve(o,...n)}async fetchContext(e){let o=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e))}catch(a){!(a instanceof nt.CanceledPromiseError)&&o&&console.error(a)}return o&&await this.notify(e),n}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 a;return(a=this.listeners[e])===null||a===void 0?void 0:a.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,nt.delay)(0).then(()=>o()).catch(()=>null)))}};ul=_d;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Oo{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Oo{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var br=window.FluidTopicsI18nService,Co=window.FluidTopicsCustomI18nService;var xe=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},ee=class extends Ke.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=()=>Zt.get(),this.messageContexts=[],this.cache=new Ke.CacheRegistry,this.cleanSessionDebouncer=new Ke.Debouncer}render(){return pl.html`
|
|
1840
1843
|
<slot></slot>
|
|
1841
|
-
`}update(e){var o,n,a,i,l;super.update(e),e.has("baseUrl")&&(P.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&P.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&P.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&P.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&P.actions.noCustom(this.noCustom),e.has("editorMode")&&P.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&P.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&P.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(c=>br.addContext(c)),e.has("openExternalDocumentInNewTab")&&P.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&P.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&P.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(P.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),P.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),P.actions.searchInAllLanguagesAllowed((l=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&l!==void 0?l:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};ee.elementDefinitions={};ee.styles=dl;xe([(0,Ie.property)()],ee.prototype,"baseUrl",void 0);xe([(0,Ie.property)()],ee.prototype,"apiIntegrationIdentifier",void 0);xe([(0,Ie.property)()],ee.prototype,"uiLocale",void 0);xe([(0,Ke.jsonProperty)(null)],ee.prototype,"availableUiLocales",void 0);xe([(0,Ke.jsonProperty)(null)],ee.prototype,"metadataConfiguration",void 0);xe([(0,Ie.property)({type:Boolean})],ee.prototype,"editorMode",void 0);xe([(0,Ie.property)({type:Boolean})],ee.prototype,"noCustom",void 0);xe([(0,Ie.property)({type:Boolean})],ee.prototype,"openExternalDocumentInNewTab",void 0);xe([(0,Ie.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ee.prototype,"noCustomComponent",void 0);xe([(0,Ie.property)({type:Boolean})],ee.prototype,"withManualResources",void 0);xe([(0,Ie.property)({type:Boolean})],ee.prototype,"navigatorOnline",void 0);xe([(0,Ie.property)({type:Boolean})],ee.prototype,"forcedOffline",void 0);xe([(0,Ie.property)({type:Object})],ee.prototype,"apiProvider",void 0);xe([(0,Ke.jsonProperty)([])],ee.prototype,"messageContexts",void 0);xe([(0,Ke.jsonProperty)(void 0)],ee.prototype,"session",void 0);xe([(0,Ie.state)()],ee.prototype,"localesConfiguration",void 0);var bu=b(K());function Id(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,a;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(n=o;n--!==0;)if(!Eo(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(!Eo(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();let i=l=>Object.keys(l).filter(c=>l[c]!=null);if(a=i(t),o=a.length,o!==i(e).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[n]))return!1;for(n=o;n--!==0;){let l=a[n];if(!Eo(t[l],e[l]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Eo(t,e){try{return Id(t,e)}catch{return!1}}function wo(t,e){return!Eo(t,e)}var Pd=b(K(),1);var Ao=class{constructor(){this.queue=[]}add(e,o=!1){o&&this.clear(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}clear(e){typeof e=="string"?this.queue=this.queue.filter(o=>o.type!==e):this.queue=this.queue.filter(o=>!e.test(o.type))}};var xr=b(K(),1);var fl=b(K(),1);function hl(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,fl.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:wo,...e??{}})}var Ro=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 a=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let l of n)try{await l()}catch(c){a(c);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var ml=b($(),1);var No=globalThis,kd=No.ShadowRoot&&(No.ShadyCSS===void 0||No.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,jx=Symbol();var yl=(t,e)=>{if(kd)t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of e){let n=document.createElement("style"),a=No.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,t.appendChild(n)}};var Lo=class extends ml.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([a,i])=>e.registry.define(a,i)));let o={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return yl(n,e.elementStyles),n}};function gl(t,e,...o){var n;let a=t.querySelector(e);for(let i of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}var Hr=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Sl,bl=Symbol("constructorPrototype"),xl=Symbol("constructorName"),Ol=Symbol("exportpartsDebouncer"),vl=Symbol("dynamicDependenciesLoaded"),gt=class extends Lo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Sl]=new Ro(5),this[xl]=this.constructor.name,this[bl]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[xl]&&Object.setPrototypeOf(this,this[bl])}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[vl]||(e[vl]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let i=[...a??[],n];o=gl(this.shadowRoot,...i)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}scheduleExportpartsUpdate(){var 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[Ol].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var o,n,a,i,l,c;let u=g=>g!=null&&g.trim().length>0,p=e.filter(u).map(g=>g.trim());if(p.length===0){this.removeAttribute("exportparts");return}let m=new Set;for(let g of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let S=(i=(a=g.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],v=(c=(l=g.getAttribute("exportparts"))===null||l===void 0?void 0:l.split(",").map(O=>O.split(":")[1]))!==null&&c!==void 0?c:[];new Array(...S,...v).filter(u).map(O=>O.trim()).forEach(O=>m.add(O))}if(m.size===0){this.removeAttribute("exportparts");return}let y=[...m.values()].flatMap(g=>p.map(S=>`${g}:${S}--${g}`));this.setAttribute("exportparts",[...this.part,...y].join(", "))}};Sl=Ol;Hr([(0,xr.property)()],gt.prototype,"exportpartsPrefix",void 0);Hr([hl([])],gt.prototype,"exportpartsPrefixes",void 0);Hr([(0,xr.property)()],gt.prototype,"customStylesheet",void 0);Hr([(0,xr.property)()],gt.prototype,"elementToFocus",void 0);Hr([(0,xr.state)()],gt.prototype,"useAdoptedStyleSheets",void 0);function Gr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Cl,El,wl,jr=Symbol("internalReduxEventsUnsubscribers"),Tt=Symbol("internalStoresUnsubscribers"),qt=Symbol("internalStores"),Vr=class extends gt{constructor(){super(...arguments),this[Cl]=new Map,this[El]=new Map,this[wl]=new Map}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[qt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[qt].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[qt].get(e)}addStore(e,o){var n;o=(n=o??(Gr(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[qt].set(o,e),this.subscribeToStore(o,e),this.updateFromStores()}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[qt].delete(o)}setupStores(){this.unsubscribeFromStores(),this[qt].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 a=this.getStore(e.store);a&&(e.store?this[Tt].has(e.store):this[Tt].size>0)&&(this[o]=e.selector(a.getState(),this))}})}subscribeToStore(e,o){var n;this[Tt].set(e,o.subscribe(()=>this.updateFromStores())),this[jr].set(e,[]),Gr(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||o.name===a.store)){let l=c=>this[i](c);o.addEventListener(a.eventName,l),this[jr].get(e).push(()=>o.removeEventListener(a.eventName,l))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Tt].forEach((e,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(e){var o;this[Tt].has(e)&&this[Tt].get(e)(),this[Tt].delete(e),(o=this[jr].get(e))===null||o===void 0||o.forEach(n=>n()),this[jr].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Cl=Tt,El=qt,wl=jr;Vr.reduxProperties=new Map;Vr.reduxReactiveProperties=new Set;Vr.reduxEventListeners=new Map;function We(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 a,i;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(l){return"'"+l+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function bt(t){return!!t&&!!t[X]}function Ze(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 a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===zd}(t)||Array.isArray(t)||!!t[Il]||!!(!((e=t.constructor)===null||e===void 0)&&e[Il])||Kn(t)||Zn(t))}function Yt(t,e,o){o===void 0&&(o=!1),Or(t)===0?(o?Object.keys:Sr)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,a){return e(a,n,t)})}function Or(t){var e=t[X];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Kn(t)?2:Zn(t)?3:0}function vr(t,e){return Or(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Dd(t,e){return Or(t)===2?t.get(e):t[e]}function Pl(t,e,o){var n=Or(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function kl(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Kn(t){return Md&&t instanceof Map}function Zn(t){return Wd&&t instanceof Set}function _t(t){return t.o||t.t}function qn(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=$l(t);delete e[X];for(var o=Sr(e),n=0;n<o.length;n++){var a=o[n],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[a]})}return Object.create(Object.getPrototypeOf(t),e)}function Yn(t,e){return e===void 0&&(e=!1),Xn(t)||bt(t)||!Ze(t)||(Or(t)>1&&(t.set=t.add=t.clear=t.delete=Bd),Object.freeze(t),e&&Yt(t,function(o,n){return Yn(n,!0)},!0)),t}function Bd(){We(2)}function Xn(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function at(t){var e=Vn[t];return e||We(18,t),e}function $d(t,e){Vn[t]||(Vn[t]=e)}function Hn(){return Zr}function Un(t,e){e&&(at("Patches"),t.u=[],t.s=[],t.v=e)}function To(t){Gn(t),t.p.forEach(Fd),t.p=null}function Gn(t){t===Zr&&(Zr=t.l)}function Al(t){return Zr={p:[],l:Zr,h:t,m:!0,_:0}}function Fd(t){var e=t[X];e.i===0||e.i===1?e.j():e.g=!0}function Mn(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||at("ES5").S(e,t,n),n?(o[X].P&&(To(e),We(4)),Ze(t)&&(t=_o(e,t),e.l||Io(e,t)),e.u&&at("Patches").M(o[X].t,t,e.u,e.s)):t=_o(e,o,[]),To(e),e.u&&e.v(e.u,e.s),t!==Bl?t:void 0}function _o(t,e,o){if(Xn(e))return e;var n=e[X];if(!n)return Yt(e,function(c,u){return Rl(t,n,e,c,u,o)},!0),e;if(n.A!==t)return e;if(!n.P)return Io(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=qn(n.k):n.o,i=a,l=!1;n.i===3&&(i=new Set(a),a.clear(),l=!0),Yt(i,function(c,u){return Rl(t,n,a,c,u,o,l)}),Io(t,a,!1),o&&t.u&&at("Patches").N(n,o,t.u,t.s)}return n.o}function Rl(t,e,o,n,a,i,l){if(bt(a)){var c=_o(t,a,i&&e&&e.i!==3&&!vr(e.R,n)?i.concat(n):void 0);if(Pl(o,n,c),!bt(c))return;t.m=!1}else l&&o.add(a);if(Ze(a)&&!Xn(a)){if(!t.h.D&&t._<1)return;_o(t,a),e&&e.A.l||Io(t,a)}}function Io(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&Yn(e,o)}function Wn(t,e){var o=t[X];return(o?_t(o):t)[e]}function Nl(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 It(t){t.P||(t.P=!0,t.l&&It(t.l))}function zn(t){t.o||(t.o=qn(t.t))}function jn(t,e,o){var n=Kn(e)?at("MapSet").F(e,o):Zn(e)?at("MapSet").T(e,o):t.O?function(a,i){var l=Array.isArray(a),c={i:l?1:0,A:i?i.A:Hn(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},u=c,p=qr;l&&(u=[c],p=Kr);var m=Proxy.revocable(u,p),y=m.revoke,g=m.proxy;return c.k=g,c.j=y,g}(e,o):at("ES5").J(e,o);return(o?o.A:Hn()).p.push(n),n}function Ud(t){return bt(t)||We(22,t),function e(o){if(!Ze(o))return o;var n,a=o[X],i=Or(o);if(a){if(!a.P&&(a.i<4||!at("ES5").K(a)))return a.t;a.I=!0,n=Ll(o,i),a.I=!1}else n=Ll(o,i);return Yt(n,function(l,c){a&&Dd(a.t,l)===c||Pl(n,l,e(c))}),i===3?new Set(n):n}(t)}function Ll(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return qn(t)}function Dl(){function t(l,c){var u=i[l];return u?u.enumerable=c:i[l]=u={configurable:!0,enumerable:c,get:function(){var p=this[X];return qr.get(p,l)},set:function(p){var m=this[X];qr.set(m,l,p)}},u}function e(l){for(var c=l.length-1;c>=0;c--){var u=l[c][X];if(!u.P)switch(u.i){case 5:n(u)&&It(u);break;case 4:o(u)&&It(u)}}}function o(l){for(var c=l.t,u=l.k,p=Sr(u),m=p.length-1;m>=0;m--){var y=p[m];if(y!==X){var g=c[y];if(g===void 0&&!vr(c,y))return!0;var S=u[y],v=S&&S[X];if(v?v.t!==g:!kl(S,g))return!0}}var O=!!c[X];return p.length!==Sr(c).length+(O?0:1)}function n(l){var c=l.k;if(c.length!==l.t.length)return!0;var u=Object.getOwnPropertyDescriptor(c,c.length-1);if(u&&!u.get)return!0;for(var p=0;p<c.length;p++)if(!c.hasOwnProperty(p))return!0;return!1}function a(l){l.g&&We(3,JSON.stringify(_t(l)))}var i={};$d("ES5",{J:function(l,c){var u=Array.isArray(l),p=function(y,g){if(y){for(var S=Array(g.length),v=0;v<g.length;v++)Object.defineProperty(S,""+v,t(v,!0));return S}var O=$l(g);delete O[X];for(var _=Sr(O),N=0;N<_.length;N++){var T=_[N];O[T]=t(T,y||!!O[T].enumerable)}return Object.create(Object.getPrototypeOf(g),O)}(u,l),m={i:u?5:4,A:c?c.A:Hn(),P:!1,I:!1,R:{},l:c,t:l,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,X,{value:m,writable:!0}),p},S:function(l,c,u){u?bt(c)&&c[X].A===l&&e(l.p):(l.u&&function p(m){if(m&&typeof m=="object"){var y=m[X];if(y){var g=y.t,S=y.k,v=y.R,O=y.i;if(O===4)Yt(S,function(B){B!==X&&(g[B]!==void 0||vr(g,B)?v[B]||p(S[B]):(v[B]=!0,It(y)))}),Yt(g,function(B){S[B]!==void 0||vr(S,B)||(v[B]=!1,It(y))});else if(O===5){if(n(y)&&(It(y),v.length=!0),S.length<g.length)for(var _=S.length;_<g.length;_++)v[_]=!1;else for(var N=g.length;N<S.length;N++)v[N]=!0;for(var T=Math.min(S.length,g.length),k=0;k<T;k++)S.hasOwnProperty(k)||(v[k]=!0),v[k]===void 0&&p(S[k])}}}}(l.p[0]),e(l.p))},K:function(l){return l.i===4?o(l):n(l)}})}var Tl,Zr,Qn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Md=typeof Map<"u",Wd=typeof Set<"u",_l=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Bl=Qn?Symbol.for("immer-nothing"):((Tl={})["immer-nothing"]=!0,Tl),Il=Qn?Symbol.for("immer-draftable"):"__$immer_draftable",X=Qn?Symbol.for("immer-state"):"__$immer_state";var zd=""+Object.prototype.constructor,Sr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,$l=Object.getOwnPropertyDescriptors||function(t){var e={};return Sr(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},Vn={},qr={get:function(t,e){if(e===X)return t;var o=_t(t);if(!vr(o,e))return function(a,i,l){var c,u=Nl(i,l);return u?"value"in u?u.value:(c=u.get)===null||c===void 0?void 0:c.call(a.k):void 0}(t,o,e);var n=o[e];return t.I||!Ze(n)?n:n===Wn(t.t,e)?(zn(t),t.o[e]=jn(t.A.h,n,t)):n},has:function(t,e){return e in _t(t)},ownKeys:function(t){return Reflect.ownKeys(_t(t))},set:function(t,e,o){var n=Nl(_t(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=Wn(_t(t),e),i=a?.[X];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(kl(o,a)&&(o!==void 0||vr(t.t,e)))return!0;zn(t),It(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 Wn(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,zn(t),It(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=_t(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){We(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){We(12)}},Kr={};Yt(qr,function(t,e){Kr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Kr.deleteProperty=function(t,e){return Kr.set.call(this,t,e,void 0)},Kr.set=function(t,e,o){return qr.set.call(this,t[0],e,o,t[0])};var Hd=function(){function t(o){var n=this;this.O=_l,this.D=!0,this.produce=function(a,i,l){if(typeof a=="function"&&typeof i!="function"){var c=i;i=a;var u=n;return function(O){var _=this;O===void 0&&(O=c);for(var N=arguments.length,T=Array(N>1?N-1:0),k=1;k<N;k++)T[k-1]=arguments[k];return u.produce(O,function(B){var F;return(F=i).call.apply(F,[_,B].concat(T))})}}var p;if(typeof i!="function"&&We(6),l!==void 0&&typeof l!="function"&&We(7),Ze(a)){var m=Al(n),y=jn(n,a,void 0),g=!0;try{p=i(y),g=!1}finally{g?To(m):Gn(m)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return Un(m,l),Mn(O,m)},function(O){throw To(m),O}):(Un(m,l),Mn(p,m))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===Bl&&(p=void 0),n.D&&Yn(p,!0),l){var S=[],v=[];at("Patches").M(a,p,S,v),l(S,v)}return p}We(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var m=arguments.length,y=Array(m>1?m-1:0),g=1;g<m;g++)y[g-1]=arguments[g];return n.produceWithPatches(p,function(S){return a.apply(void 0,[S].concat(y))})};var l,c,u=n.produce(a,i,function(p,m){l=p,c=m});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,l,c]}):[u,l,c]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){Ze(o)||We(8),bt(o)&&(o=Ud(o));var n=Al(this),a=jn(this,o,void 0);return a[X].C=!0,Gn(n),a},e.finishDraft=function(o,n){var a=o&&o[X],i=a.A;return Un(i,n),Mn(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!_l&&We(20),this.O=o},e.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var l=at("Patches").$;return bt(o)?l(o,n):this.produce(o,function(c){return l(c,n)})},t}(),Ue=new Hd,Gd=Ue.produce,av=Ue.produceWithPatches.bind(Ue),iv=Ue.setAutoFreeze.bind(Ue),sv=Ue.setUseProxies.bind(Ue),lv=Ue.applyPatches.bind(Ue),cv=Ue.createDraft.bind(Ue),dv=Ue.finishDraft.bind(Ue),Po=Gd;function Xt(t){"@babel/helpers - typeof";return Xt=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},Xt(t)}function Fl(t,e){if(Xt(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(Xt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ul(t){var e=Fl(t,"string");return Xt(e)=="symbol"?e:e+""}function Ml(t,e,o){return(e=Ul(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Wl(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),o.push.apply(o,n)}return o}function Jn(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Wl(Object(o),!0).forEach(function(n){Ml(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Wl(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function ve(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 zl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ea=function(){return Math.random().toString(36).substring(7).split("").join(".")},ko={INIT:"@@redux/INIT"+ea(),REPLACE:"@@redux/REPLACE"+ea(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ea()}};function jd(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 ta(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ve(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ve(1));return o(ta)(t,e)}if(typeof t!="function")throw new Error(ve(2));var a=t,i=e,l=[],c=l,u=!1;function p(){c===l&&(c=l.slice())}function m(){if(u)throw new Error(ve(3));return i}function y(O){if(typeof O!="function")throw new Error(ve(4));if(u)throw new Error(ve(5));var _=!0;return p(),c.push(O),function(){if(_){if(u)throw new Error(ve(6));_=!1,p();var T=c.indexOf(O);c.splice(T,1),l=null}}}function g(O){if(!jd(O))throw new Error(ve(7));if(typeof O.type>"u")throw new Error(ve(8));if(u)throw new Error(ve(9));try{u=!0,i=a(i,O)}finally{u=!1}for(var _=l=c,N=0;N<_.length;N++){var T=_[N];T()}return O}function S(O){if(typeof O!="function")throw new Error(ve(10));a=O,g({type:ko.REPLACE})}function v(){var O,_=y;return O={subscribe:function(T){if(typeof T!="object"||T===null)throw new Error(ve(11));function k(){T.next&&T.next(m())}k();var B=_(k);return{unsubscribe:B}}},O[zl]=function(){return this},O}return g({type:ko.INIT}),n={dispatch:g,subscribe:y,getState:m,replaceReducer:S},n[zl]=v,n}function Vd(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:ko.INIT});if(typeof n>"u")throw new Error(ve(12));if(typeof o(void 0,{type:ko.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ve(13))})}function Hl(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var a=e[n];typeof t[a]=="function"&&(o[a]=t[a])}var i=Object.keys(o),l,c;try{Vd(o)}catch(u){c=u}return function(p,m){if(p===void 0&&(p={}),c)throw c;if(0)var y;for(var g=!1,S={},v=0;v<i.length;v++){var O=i[v],_=o[O],N=p[O],T=_(N,m);if(typeof T>"u"){var k=m&&m.type;throw new Error(ve(14))}S[O]=T,g=g||T!==N}return g=g||i.length!==Object.keys(p).length,g?S:p}}function Cr(){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,a){return function(){return n(a.apply(void 0,arguments))}})}function Gl(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(ve(15))},l={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},c=e.map(function(u){return u(l)});return i=Cr.apply(void 0,c)(a.dispatch),Jn(Jn({},a),{},{dispatch:i})}}}function jl(t){var e=function(n){var a=n.dispatch,i=n.getState;return function(l){return function(c){return typeof c=="function"?c(a,i,t):l(c)}}};return e}var Vl=jl();Vl.withExtraArgument=jl;var ra=Vl;var Xl=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},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)}}(),Kd=function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,l;return l={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function c(p){return function(m){return u([p,m])}}function u(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){o.label=p[1];break}if(p[0]===6&&o.label<i[1]){o.label=i[1],i=p;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(p);break}i[2]&&o.ops.pop(),o.trys.pop();continue}p=e.call(t,o)}catch(m){p=[6,m],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Er=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},Zd=Object.defineProperty,qd=Object.defineProperties,Yd=Object.getOwnPropertyDescriptors,Kl=Object.getOwnPropertySymbols,Xd=Object.prototype.hasOwnProperty,Qd=Object.prototype.propertyIsEnumerable,Zl=function(t,e,o){return e in t?Zd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Pt=function(t,e){for(var o in e||(e={}))Xd.call(e,o)&&Zl(t,o,e[o]);if(Kl)for(var n=0,a=Kl(e);n<a.length;n++){var o=a[n];Qd.call(e,o)&&Zl(t,o,e[o])}return t},oa=function(t,e){return qd(t,Yd(e))},Jd=function(t,e,o){return new Promise(function(n,a){var i=function(u){try{c(o.next(u))}catch(p){a(p)}},l=function(u){try{c(o.throw(u))}catch(p){a(p)}},c=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(i,l)};c((o=o.apply(t,e)).next())})};var eu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Cr:Cr.apply(null,arguments)},Nv=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function tu(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 ru=function(t){Xl(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}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,Er([void 0],o[0].concat(this)))):new(e.bind.apply(e,Er([void 0],o.concat(this))))},e}(Array),ou=function(t){Xl(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}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,Er([void 0],o[0].concat(this)))):new(e.bind.apply(e,Er([void 0],o.concat(this))))},e}(Array);function ia(t){return Ze(t)?Po(t,function(){}):t}function nu(t){return typeof t=="boolean"}function au(){return function(e){return iu(e)}}function iu(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,a=n===void 0?!0:n,i=t.serializableCheck,l=i===void 0?!0:i,c=new ru;if(o&&(nu(o)?c.push(ra):c.push(ra.withExtraArgument(o.extraArgument))),0){if(a)var u;if(l)var p}return c}var na=!0;function Ql(t){var e=au(),o=t||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,l=i===void 0?e():i,c=o.devTools,u=c===void 0?!0:c,p=o.preloadedState,m=p===void 0?void 0:p,y=o.enhancers,g=y===void 0?void 0:y,S;if(typeof a=="function")S=a;else if(tu(a))S=Hl(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var v=l;if(typeof v=="function"&&(v=v(e),!na&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!na&&v.some(function(B){return typeof B!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=Gl.apply(void 0,v),_=Cr;u&&(_=eu(Pt({trace:!na},typeof u=="object"&&u)));var N=new ou(O),T=N;Array.isArray(g)?T=Er([O],g):typeof g=="function"&&(T=g(N));var k=_.apply(void 0,T);return ta(S,m,k)}function kt(t,e){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return Pt(Pt({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.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 Jl(t){var e={},o=[],n,a={addCase:function(i,l){var c=typeof i=="string"?i:i.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=l,a},addMatcher:function(i,l){return o.push({matcher:i,reducer:l}),a},addDefaultCase:function(i){return n=i,a}};return t(a),[e,o,n]}function su(t){return typeof t=="function"}function lu(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?Jl(e):[e,o,n],i=a[0],l=a[1],c=a[2],u;if(su(t))u=function(){return ia(t())};else{var p=ia(t);u=function(){return p}}function m(y,g){y===void 0&&(y=u());var S=Er([i[g.type]],l.filter(function(v){var O=v.matcher;return O(g)}).map(function(v){var O=v.reducer;return O}));return S.filter(function(v){return!!v}).length===0&&(S=[c]),S.reduce(function(v,O){if(O)if(bt(v)){var _=v,N=O(_,g);return N===void 0?v:N}else{if(Ze(v))return Po(v,function(T){return O(T,g)});var N=O(v,g);if(N===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return N}return v},y)}return m.getInitialState=u,m}function cu(t,e){return t+"/"+e}function ec(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:ia(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},l={},c={};a.forEach(function(m){var y=n[m],g=cu(e,m),S,v;"reducer"in y?(S=y.reducer,v=y.prepare):S=y,i[m]=S,l[g]=S,c[m]=v?kt(g,v):kt(g)});function u(){var m=typeof t.extraReducers=="function"?Jl(t.extraReducers):[t.extraReducers],y=m[0],g=y===void 0?{}:y,S=m[1],v=S===void 0?[]:S,O=m[2],_=O===void 0?void 0:O,N=Pt(Pt({},g),l);return lu(o,function(T){for(var k in N)T.addCase(k,N[k]);for(var B=0,F=v;B<F.length;B++){var we=F[B];T.addMatcher(we.matcher,we.reducer)}_&&T.addDefaultCase(_)})}var p;return{name:e,reducer:function(m,y){return p||(p=u()),p(m,y)},actions:c,caseReducers:i,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var du="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",uu=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=du[Math.random()*64|0];return e},pu=["name","message","stack","code"],aa=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),ql=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),fu=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=pu;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},Iv=function(){function t(e,o,n){var a=kt(e+"/fulfilled",function(m,y,g,S){return{payload:m,meta:oa(Pt({},S||{}),{arg:g,requestId:y,requestStatus:"fulfilled"})}}),i=kt(e+"/pending",function(m,y,g){return{payload:void 0,meta:oa(Pt({},g||{}),{arg:y,requestId:m,requestStatus:"pending"})}}),l=kt(e+"/rejected",function(m,y,g,S,v){return{payload:S,error:(n&&n.serializeError||fu)(m||"Rejected"),meta:oa(Pt({},v||{}),{arg:g,requestId:y,rejectedWithValue:!!S,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),c=!1,u=typeof AbortController<"u"?AbortController:function(){function m(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return m.prototype.abort=function(){},m}();function p(m){return function(y,g,S){var v=n?.idGenerator?n.idGenerator(m):uu(),O=new u,_,N=!1;function T(B){_=B,O.abort()}var k=function(){return Jd(this,null,function(){var B,F,we,Ye,Se,Xe,ue;return Kd(this,function(h){switch(h.label){case 0:return h.trys.push([0,4,,5]),Ye=(B=n?.condition)==null?void 0:B.call(n,m,{getState:g,extra:S}),yu(Ye)?[4,Ye]:[3,2];case 1:Ye=h.sent(),h.label=2;case 2:if(Ye===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return N=!0,Se=new Promise(function(x,I){return O.signal.addEventListener("abort",function(){return I({name:"AbortError",message:_||"Aborted"})})}),y(i(v,m,(F=n?.getPendingMeta)==null?void 0:F.call(n,{requestId:v,arg:m},{getState:g,extra:S}))),[4,Promise.race([Se,Promise.resolve(o(m,{dispatch:y,getState:g,extra:S,requestId:v,signal:O.signal,abort:T,rejectWithValue:function(x,I){return new aa(x,I)},fulfillWithValue:function(x,I){return new ql(x,I)}})).then(function(x){if(x instanceof aa)throw x;return x instanceof ql?a(x.payload,v,m,x.meta):a(x,v,m)})])];case 3:return we=h.sent(),[3,5];case 4:return Xe=h.sent(),we=Xe instanceof aa?l(null,v,m,Xe.payload,Xe.meta):l(Xe,v,m),[3,5];case 5:return ue=n&&!n.dispatchConditionRejection&&l.match(we)&&we.meta.condition,ue||y(we),[2,we]}})})}();return Object.assign(k,{abort:T,requestId:v,arg:m,unwrap:function(){return k.then(hu)}})}}return Object.assign(p,{pending:i,rejected:l,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function hu(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function yu(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var tc="listener",rc="completed",oc="cancelled",Pv="task-"+oc,kv="task-"+rc,Dv=tc+"-"+oc,Bv=tc+"-"+rc;var sa="listenerMiddleware";var $v=kt(sa+"/add"),Fv=kt(sa+"/removeAll"),Uv=kt(sa+"/remove");var Yl,Mv=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Yl||(Yl=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},mu=function(t){return function(e){setTimeout(e,t)}},Wv=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:mu(10);Dl();function gu(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}var Do=class extends gu(Object){};window.ftReduxStores||(window.ftReduxStores={});var nc=class t extends Do{static get(e){var o;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[n];if(Gr(i))return i;if(a==null)return;let l=ec({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),c=Ql({reducer:(u,p)=>p.type==="CLEAR_FT_REDUX_STORE"?l.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...p.overwrites}:l.reducer(u,p)});return window.ftReduxStores[a.name]=new t(l,c,a.eventBus)}constructor(e,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Ao;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,l,c)=>{let u=l,p=i[u];return p?(...m)=>{let y=p(...m.map(a));return this.reduxStore.dispatch(y),y}:m=>{this.setState({[u]:a(m)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(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 Wo=b(L());var vu=b(ic(),1);var sc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(sc||(sc={}));var lc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(lc||(lc={}));var cc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.MAP_ATTACHMENT="MAP_ATTACHMENT",t.RESOURCE="RESOURCE"})(cc||(cc={}));var dc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(dc||(dc={}));var uc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(uc||(uc={}));var pc;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.GEN_AI__COMPLETED_QUERY="GEN_AI__COMPLETED_QUERY",t.GEN_AI__RATE="GEN_AI__RATE",t.GENAI_CASE_DEFLECTION__START="GENAI_CASE_DEFLECTION__START",t.GENAI_CASE_DEFLECTION__OPEN_TICKET="GENAI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__DISPLAY="TOPIC__DISPLAY",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(pc||(pc={}));var fc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(fc||(fc={}));var hc;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT"})(hc||(hc={}));var yc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(yc||(yc={}));var mc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(mc||(mc={}));var gc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(gc||(gc={}));var bc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(bc||(bc={}));var xc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(xc||(xc={}));var vc;(function(t){t.ASC="ASC",t.DESC="DESC"})(vc||(vc={}));var Sc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Sc||(Sc={}));var la;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(la||(la={}));var Oc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Oc||(Oc={}));var Cc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Cc||(Cc={}));var Ec;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Ec||(Ec={}));var wc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(wc||(wc={}));var Ac;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(Ac||(Ac={}));var ca;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(ca||(ca={}));var ie;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(ie||(ie={}));var Rc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Rc||(Rc={}));var Nc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Nc||(Nc={}));var Lc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Lc||(Lc={}));var xu={[ie.PERSONAL_BOOK_SHARE_USER]:[ie.PERSONAL_BOOK_USER],[ie.HTML_EXPORT_USER]:[ie.PERSONAL_BOOK_USER],[ie.PDF_EXPORT_USER]:[ie.PERSONAL_BOOK_USER],[ie.KHUB_ADMIN]:[ie.CONTENT_PUBLISHER],[ie.ADMIN]:[ie.KHUB_ADMIN,ie.USERS_ADMIN,ie.PORTAL_ADMIN],[ie.GENERATIVE_AI_EXPORT_USER]:[ie.GENERATIVE_AI_USER]};function Tc(t,e){return t===e||(xu[t]??[]).some(o=>Tc(o,e))}function _c(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(n=>Tc(n,e))}var Fo=class extends mt{async listMySearches(){let{session:e}=P.getState();return _c(e,ie.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Uo=class extends mt{async listMyBookmarks(){let e=P.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Su="ft-user-assets",Mo=Wo.FtReduxStore.get({name:Su,initialState:{savedSearches:void 0,bookmarks:void 0}}),da=class{constructor(){this.currentSession=P.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Uo,this.savedSearchesService=new Fo,P.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=P.getState();(0,Wo.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(),Mo.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Mo.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Mo.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;Mo.actions.bookmarks(o)}}},$0=new da;var ua=class{addCommand(e,o=!1){P.commands.add(e,o)}consumeCommand(e){return P.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new ua;var Ic=b(L()),pa=class{highlightHtml(e,o,n){(0,Ic.highlightHtml)(e,o,n)}};window.FluidTopicsHighlightHtmlService=new pa;var Pc=b(L());var fa=class{isDate(e){var o,n,a,i;return(i=(a=((n=(o=P.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(c=>c.key===e))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(e,o){var n,a,i;return Pc.DateFormatter.format(e,(n=o?.locale)!==null&&n!==void 0?n:P.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new fa;var kc=b(L());var Yr=class{static get(e,o){var n,a,i,l;let c=P.getState(),{lang:u,region:p}=(a=(n=c.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new kc.SearchPlaceConverter(c.baseUrl,(l=(i=window.FluidTopicsClientConfiguration)===null||i===void 0?void 0:i.predefinedSorts)!==null&&l!==void 0?l:{},e??20,c.searchInAllLanguagesAllowed,o??`${u}-${p}`)}};var ha=class{urlToSearchRequest(e){return Yr.get().parse(e)}searchRequestToUrl(e){return Yr.get().serialize(e)}};window.FluidTopicsUrlService=new ha;var Bt=b(L());var Qt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Qt.eventName="change";var ya=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let o=sessionStorage.getItem(this.itemName(e));return o?JSON.parse(o):void 0}set(e,o){sessionStorage.setItem(this.itemName(e),JSON.stringify(o))}},Dc=new ya;var zo=class t extends Bt.WithEventBus{static build(){return new t(window.history,Dc,()=>window.location,!1)}constructor(e,o,n,a){var i,l;super(),this.history=e,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(l=(i=e.state)===null||i===void 0?void 0:i.index)!==null&&l!==void 0?l:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(e,o=!1){let n=o&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Bt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Qt(this.currentItem())),0)}installProxies(){let e=o=>(n,a,[i,l,c])=>{let u=o(),p={...u===this.currentIndex?this.currentState:void 0,...i,index:u,href:typeof c=="string"?c:(c??this.windowLocation()).href};n.apply(a,[p,l,c]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let o=this.history.length-1;o>=0;o--)e?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(e,o=!1){var n,a,i;let l={...this.buildCurrentState(),...e,index:this.currentIndex,title:(n=e?.title)!==null&&n!==void 0?n:this.currentState.title},c=o?(a=e?.majorState)!==null&&a!==void 0?a:this.currentState.majorState:(i=this.currentState.majorState)!==null&&i!==void 0?i:e?.majorState;c!=null&&(l.majorState=c),this.setCurrentState(l)}addHistoryChangeListener(e){this.addEventListener(Qt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Qt.eventName,e)}currentItem(){return(0,Bt.deepCopy)(this.currentState)}back(){let e=this.previousMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Bt.deepCopy)(this.states[this.previousMajorPosition()])}previousMajorPosition(){let e=this.currentIndex;for(;e>0&&!this.isMajorState(e);)e--;return this.previousExistingPosition(e)}forward(){let e=this.nextMajorPosition();e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){return(0,Bt.deepCopy)(this.states[this.nextMajorPosition()])}nextMajorPosition(){let e=this.currentIndex;do e++;while(e<this.states.length&&!this.isMajorState(e));do e++;while(e<this.states.length&&!this.isMajorState(e));return this.previousExistingPosition(e)}previousExistingPosition(e){let o=e;do o--;while(o>0&&!this.hasState(o));return o}buildCurrentState(){var e,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&o!==void 0?o:document.title}}hasState(e){return this.states[e]!=null}isMajorState(e){var o,n;return this.hasState(e)&&((n=(o=this.states[e])===null||o===void 0?void 0:o.majorState)!==null&&n!==void 0?n:!0)}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=zo.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});(0,Bc.customElement)("ft-app-context")(ee);var Wc=b(K());var Ou=b(L());function $c(t){return t.match(/^[\w-]+\.[\w-]+$/)}var Cu=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Fc=Symbol("i18nAttributes"),Uc=Symbol("i18nListAttributes"),zc=Symbol("i18nProperties"),Ho=Symbol("i18nContexts"),Xr=Symbol("i18nUnsubs");function Vo(t){var e,o;class n extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[o]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?Co:br}i18n(i){var l;this.hasI18nContext(i.context)||this.addI18nContext(i.context,void 0,i.custom);let c=(l=i.args)!==null&&l!==void 0?l:i.argsProvider?i.argsProvider(this):[];return this.getI18nService(i.custom).resolveMessage(i.context,i.key,...c)}customI18n(i,l){if($c(i)){let[c,u]=i.split(".");return this.i18n({custom:!0,context:c,key:u,...l})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((l,c,u)=>i.has(c)||typeof l.argsProvider=="function"),this.updateI18nProperties(l=>typeof l.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((l,c,u)=>{var p;return((p=u?.context)===null||p===void 0?void 0:p.toLowerCase())===i}),this.updateI18nProperties(l=>l.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var l,c;let u=this,p=(m,y,g)=>g?.context&&g.key&&i(m,y,g)?{...g,message:this.i18n({context:g.context,key:g.key,...m})}:g;(l=this[Fc])===null||l===void 0||l.forEach((m,y)=>u[y]=p(m,y,u[y])),(c=this[Uc])===null||c===void 0||c.forEach((m,y)=>{var g;return u[y]=(g=u[y])===null||g===void 0?void 0:g.map(S=>p(m,y,S))})}updateI18nProperties(i){var l;(l=this[zc])===null||l===void 0||l.forEach((c,u)=>{i(c,u)&&(this[u]=this.i18n(c))})}addI18nMessages(i,l,c){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,l,c)}addI18nContext(i,l,c){let u=(typeof i=="string"?i:i.name).toLowerCase();c=typeof i=="string"?c:i.custom,this[Ho].set(u,{isCustomContext:c}),this[Xr].has(u)||this[Xr].set(u,this.getI18nService(c).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(c).prepareContext(u,l)}hasI18nContext(i){return this[Ho].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Ho].forEach((i,l)=>this.addI18nContext(l,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Xr].forEach(i=>i()),this[Xr].clear()}}return e=Ho,o=Xr,Cu([(0,Wc.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}var Mc=class extends Vo(jo.FtLitElement){},Go=class extends Vo(jo.FtLitElementRedux){};var Qr=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},qe=class extends Go{constructor(){super(),this.editorMode=!1,this.addStore(P)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Ko.nothing:Ko.html`
|
|
1844
|
+
`}update(e){var o,n,a,i,l;super.update(e),e.has("baseUrl")&&(P.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&P.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&P.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&P.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&P.actions.noCustom(this.noCustom),e.has("editorMode")&&P.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&P.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&P.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(c=>br.addContext(c)),e.has("openExternalDocumentInNewTab")&&P.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&P.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&P.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(P.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),P.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),P.actions.searchInAllLanguagesAllowed((l=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&l!==void 0?l:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};ee.elementDefinitions={};ee.styles=dl;xe([(0,Ie.property)()],ee.prototype,"baseUrl",void 0);xe([(0,Ie.property)()],ee.prototype,"apiIntegrationIdentifier",void 0);xe([(0,Ie.property)()],ee.prototype,"uiLocale",void 0);xe([(0,Ke.jsonProperty)(null)],ee.prototype,"availableUiLocales",void 0);xe([(0,Ke.jsonProperty)(null)],ee.prototype,"metadataConfiguration",void 0);xe([(0,Ie.property)({type:Boolean})],ee.prototype,"editorMode",void 0);xe([(0,Ie.property)({type:Boolean})],ee.prototype,"noCustom",void 0);xe([(0,Ie.property)({type:Boolean})],ee.prototype,"openExternalDocumentInNewTab",void 0);xe([(0,Ie.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ee.prototype,"noCustomComponent",void 0);xe([(0,Ie.property)({type:Boolean})],ee.prototype,"withManualResources",void 0);xe([(0,Ie.property)({type:Boolean})],ee.prototype,"navigatorOnline",void 0);xe([(0,Ie.property)({type:Boolean})],ee.prototype,"forcedOffline",void 0);xe([(0,Ie.property)({type:Object})],ee.prototype,"apiProvider",void 0);xe([(0,Ke.jsonProperty)([])],ee.prototype,"messageContexts",void 0);xe([(0,Ke.jsonProperty)(void 0)],ee.prototype,"session",void 0);xe([(0,Ie.state)()],ee.prototype,"localesConfiguration",void 0);var bu=b(K());function Id(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,a;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(n=o;n--!==0;)if(!Eo(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(!Eo(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();let i=l=>Object.keys(l).filter(c=>l[c]!=null);if(a=i(t),o=a.length,o!==i(e).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[n]))return!1;for(n=o;n--!==0;){let l=a[n];if(!Eo(t[l],e[l]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Eo(t,e){try{return Id(t,e)}catch{return!1}}function wo(t,e){return!Eo(t,e)}var Pd=b(K(),1);var Ao=class{constructor(){this.queue=[]}add(e,o=!1){o&&this.clear(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}clear(e){typeof e=="string"?this.queue=this.queue.filter(o=>o.type!==e):this.queue=this.queue.filter(o=>!e.test(o.type))}};var xr=b(K(),1);var fl=b(K(),1);function hl(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,fl.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:wo,...e??{}})}var Ro=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 a=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let l of n)try{await l()}catch(c){a(c);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var ml=b($(),1);var No=globalThis,kd=No.ShadowRoot&&(No.ShadyCSS===void 0||No.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,jx=Symbol();var yl=(t,e)=>{if(kd)t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of e){let n=document.createElement("style"),a=No.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,t.appendChild(n)}};var Lo=class extends ml.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([a,i])=>e.registry.define(a,i)));let o={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return yl(n,e.elementStyles),n}};function gl(t,e,...o){var n;let a=t.querySelector(e);for(let i of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}var Hr=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Sl,bl=Symbol("constructorPrototype"),xl=Symbol("constructorName"),Ol=Symbol("exportpartsDebouncer"),vl=Symbol("dynamicDependenciesLoaded"),gt=class extends Lo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Sl]=new Ro(5),this[xl]=this.constructor.name,this[bl]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[xl]&&Object.setPrototypeOf(this,this[bl])}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[vl]||(e[vl]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let i=[...a??[],n];o=gl(this.shadowRoot,...i)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}scheduleExportpartsUpdate(){var 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[Ol].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var o,n,a,i,l,c;let u=g=>g!=null&&g.trim().length>0,p=e.filter(u).map(g=>g.trim());if(p.length===0){this.removeAttribute("exportparts");return}let m=new Set;for(let g of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let S=(i=(a=g.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],v=(c=(l=g.getAttribute("exportparts"))===null||l===void 0?void 0:l.split(",").map(O=>O.split(":")[1]))!==null&&c!==void 0?c:[];new Array(...S,...v).filter(u).map(O=>O.trim()).forEach(O=>m.add(O))}if(m.size===0){this.removeAttribute("exportparts");return}let y=[...m.values()].flatMap(g=>p.map(S=>`${g}:${S}--${g}`));this.setAttribute("exportparts",[...this.part,...y].join(", "))}};Sl=Ol;Hr([(0,xr.property)()],gt.prototype,"exportpartsPrefix",void 0);Hr([hl([])],gt.prototype,"exportpartsPrefixes",void 0);Hr([(0,xr.property)()],gt.prototype,"customStylesheet",void 0);Hr([(0,xr.property)()],gt.prototype,"elementToFocus",void 0);Hr([(0,xr.state)()],gt.prototype,"useAdoptedStyleSheets",void 0);function Gr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Cl,El,wl,jr=Symbol("internalReduxEventsUnsubscribers"),Tt=Symbol("internalStoresUnsubscribers"),qt=Symbol("internalStores"),Vr=class extends gt{constructor(){super(...arguments),this[Cl]=new Map,this[El]=new Map,this[wl]=new Map}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[qt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[qt].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[qt].get(e)}addStore(e,o){var n;o=(n=o??(Gr(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[qt].set(o,e),this.subscribeToStore(o,e),this.updateFromStores()}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[qt].delete(o)}setupStores(){this.unsubscribeFromStores(),this[qt].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 a=this.getStore(e.store);a&&(e.store?this[Tt].has(e.store):this[Tt].size>0)&&(this[o]=e.selector(a.getState(),this))}})}subscribeToStore(e,o){var n;this[Tt].set(e,o.subscribe(()=>this.updateFromStores())),this[jr].set(e,[]),Gr(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||o.name===a.store)){let l=c=>this[i](c);o.addEventListener(a.eventName,l),this[jr].get(e).push(()=>o.removeEventListener(a.eventName,l))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Tt].forEach((e,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(e){var o;this[Tt].has(e)&&this[Tt].get(e)(),this[Tt].delete(e),(o=this[jr].get(e))===null||o===void 0||o.forEach(n=>n()),this[jr].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Cl=Tt,El=qt,wl=jr;Vr.reduxProperties=new Map;Vr.reduxReactiveProperties=new Set;Vr.reduxEventListeners=new Map;function We(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 a,i;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(l){return"'"+l+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function bt(t){return!!t&&!!t[Q]}function Ze(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 a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===zd}(t)||Array.isArray(t)||!!t[Il]||!!(!((e=t.constructor)===null||e===void 0)&&e[Il])||Kn(t)||Zn(t))}function Yt(t,e,o){o===void 0&&(o=!1),Or(t)===0?(o?Object.keys:Sr)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,a){return e(a,n,t)})}function Or(t){var e=t[Q];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Kn(t)?2:Zn(t)?3:0}function vr(t,e){return Or(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Dd(t,e){return Or(t)===2?t.get(e):t[e]}function Pl(t,e,o){var n=Or(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function kl(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Kn(t){return Md&&t instanceof Map}function Zn(t){return Wd&&t instanceof Set}function _t(t){return t.o||t.t}function qn(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=$l(t);delete e[Q];for(var o=Sr(e),n=0;n<o.length;n++){var a=o[n],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[a]})}return Object.create(Object.getPrototypeOf(t),e)}function Yn(t,e){return e===void 0&&(e=!1),Xn(t)||bt(t)||!Ze(t)||(Or(t)>1&&(t.set=t.add=t.clear=t.delete=Bd),Object.freeze(t),e&&Yt(t,function(o,n){return Yn(n,!0)},!0)),t}function Bd(){We(2)}function Xn(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function at(t){var e=Vn[t];return e||We(18,t),e}function $d(t,e){Vn[t]||(Vn[t]=e)}function Hn(){return Zr}function Un(t,e){e&&(at("Patches"),t.u=[],t.s=[],t.v=e)}function To(t){Gn(t),t.p.forEach(Fd),t.p=null}function Gn(t){t===Zr&&(Zr=t.l)}function Al(t){return Zr={p:[],l:Zr,h:t,m:!0,_:0}}function Fd(t){var e=t[Q];e.i===0||e.i===1?e.j():e.g=!0}function Mn(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||at("ES5").S(e,t,n),n?(o[Q].P&&(To(e),We(4)),Ze(t)&&(t=_o(e,t),e.l||Io(e,t)),e.u&&at("Patches").M(o[Q].t,t,e.u,e.s)):t=_o(e,o,[]),To(e),e.u&&e.v(e.u,e.s),t!==Bl?t:void 0}function _o(t,e,o){if(Xn(e))return e;var n=e[Q];if(!n)return Yt(e,function(c,u){return Rl(t,n,e,c,u,o)},!0),e;if(n.A!==t)return e;if(!n.P)return Io(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=qn(n.k):n.o,i=a,l=!1;n.i===3&&(i=new Set(a),a.clear(),l=!0),Yt(i,function(c,u){return Rl(t,n,a,c,u,o,l)}),Io(t,a,!1),o&&t.u&&at("Patches").N(n,o,t.u,t.s)}return n.o}function Rl(t,e,o,n,a,i,l){if(bt(a)){var c=_o(t,a,i&&e&&e.i!==3&&!vr(e.R,n)?i.concat(n):void 0);if(Pl(o,n,c),!bt(c))return;t.m=!1}else l&&o.add(a);if(Ze(a)&&!Xn(a)){if(!t.h.D&&t._<1)return;_o(t,a),e&&e.A.l||Io(t,a)}}function Io(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&Yn(e,o)}function Wn(t,e){var o=t[Q];return(o?_t(o):t)[e]}function Nl(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 It(t){t.P||(t.P=!0,t.l&&It(t.l))}function zn(t){t.o||(t.o=qn(t.t))}function jn(t,e,o){var n=Kn(e)?at("MapSet").F(e,o):Zn(e)?at("MapSet").T(e,o):t.O?function(a,i){var l=Array.isArray(a),c={i:l?1:0,A:i?i.A:Hn(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},u=c,p=qr;l&&(u=[c],p=Kr);var m=Proxy.revocable(u,p),y=m.revoke,g=m.proxy;return c.k=g,c.j=y,g}(e,o):at("ES5").J(e,o);return(o?o.A:Hn()).p.push(n),n}function Ud(t){return bt(t)||We(22,t),function e(o){if(!Ze(o))return o;var n,a=o[Q],i=Or(o);if(a){if(!a.P&&(a.i<4||!at("ES5").K(a)))return a.t;a.I=!0,n=Ll(o,i),a.I=!1}else n=Ll(o,i);return Yt(n,function(l,c){a&&Dd(a.t,l)===c||Pl(n,l,e(c))}),i===3?new Set(n):n}(t)}function Ll(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return qn(t)}function Dl(){function t(l,c){var u=i[l];return u?u.enumerable=c:i[l]=u={configurable:!0,enumerable:c,get:function(){var p=this[Q];return qr.get(p,l)},set:function(p){var m=this[Q];qr.set(m,l,p)}},u}function e(l){for(var c=l.length-1;c>=0;c--){var u=l[c][Q];if(!u.P)switch(u.i){case 5:n(u)&&It(u);break;case 4:o(u)&&It(u)}}}function o(l){for(var c=l.t,u=l.k,p=Sr(u),m=p.length-1;m>=0;m--){var y=p[m];if(y!==Q){var g=c[y];if(g===void 0&&!vr(c,y))return!0;var S=u[y],v=S&&S[Q];if(v?v.t!==g:!kl(S,g))return!0}}var O=!!c[Q];return p.length!==Sr(c).length+(O?0:1)}function n(l){var c=l.k;if(c.length!==l.t.length)return!0;var u=Object.getOwnPropertyDescriptor(c,c.length-1);if(u&&!u.get)return!0;for(var p=0;p<c.length;p++)if(!c.hasOwnProperty(p))return!0;return!1}function a(l){l.g&&We(3,JSON.stringify(_t(l)))}var i={};$d("ES5",{J:function(l,c){var u=Array.isArray(l),p=function(y,g){if(y){for(var S=Array(g.length),v=0;v<g.length;v++)Object.defineProperty(S,""+v,t(v,!0));return S}var O=$l(g);delete O[Q];for(var _=Sr(O),N=0;N<_.length;N++){var T=_[N];O[T]=t(T,y||!!O[T].enumerable)}return Object.create(Object.getPrototypeOf(g),O)}(u,l),m={i:u?5:4,A:c?c.A:Hn(),P:!1,I:!1,R:{},l:c,t:l,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,Q,{value:m,writable:!0}),p},S:function(l,c,u){u?bt(c)&&c[Q].A===l&&e(l.p):(l.u&&function p(m){if(m&&typeof m=="object"){var y=m[Q];if(y){var g=y.t,S=y.k,v=y.R,O=y.i;if(O===4)Yt(S,function(B){B!==Q&&(g[B]!==void 0||vr(g,B)?v[B]||p(S[B]):(v[B]=!0,It(y)))}),Yt(g,function(B){S[B]!==void 0||vr(S,B)||(v[B]=!1,It(y))});else if(O===5){if(n(y)&&(It(y),v.length=!0),S.length<g.length)for(var _=S.length;_<g.length;_++)v[_]=!1;else for(var N=g.length;N<S.length;N++)v[N]=!0;for(var T=Math.min(S.length,g.length),k=0;k<T;k++)S.hasOwnProperty(k)||(v[k]=!0),v[k]===void 0&&p(S[k])}}}}(l.p[0]),e(l.p))},K:function(l){return l.i===4?o(l):n(l)}})}var Tl,Zr,Qn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Md=typeof Map<"u",Wd=typeof Set<"u",_l=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Bl=Qn?Symbol.for("immer-nothing"):((Tl={})["immer-nothing"]=!0,Tl),Il=Qn?Symbol.for("immer-draftable"):"__$immer_draftable",Q=Qn?Symbol.for("immer-state"):"__$immer_state";var zd=""+Object.prototype.constructor,Sr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,$l=Object.getOwnPropertyDescriptors||function(t){var e={};return Sr(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},Vn={},qr={get:function(t,e){if(e===Q)return t;var o=_t(t);if(!vr(o,e))return function(a,i,l){var c,u=Nl(i,l);return u?"value"in u?u.value:(c=u.get)===null||c===void 0?void 0:c.call(a.k):void 0}(t,o,e);var n=o[e];return t.I||!Ze(n)?n:n===Wn(t.t,e)?(zn(t),t.o[e]=jn(t.A.h,n,t)):n},has:function(t,e){return e in _t(t)},ownKeys:function(t){return Reflect.ownKeys(_t(t))},set:function(t,e,o){var n=Nl(_t(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=Wn(_t(t),e),i=a?.[Q];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(kl(o,a)&&(o!==void 0||vr(t.t,e)))return!0;zn(t),It(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 Wn(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,zn(t),It(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=_t(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){We(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){We(12)}},Kr={};Yt(qr,function(t,e){Kr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Kr.deleteProperty=function(t,e){return Kr.set.call(this,t,e,void 0)},Kr.set=function(t,e,o){return qr.set.call(this,t[0],e,o,t[0])};var Hd=function(){function t(o){var n=this;this.O=_l,this.D=!0,this.produce=function(a,i,l){if(typeof a=="function"&&typeof i!="function"){var c=i;i=a;var u=n;return function(O){var _=this;O===void 0&&(O=c);for(var N=arguments.length,T=Array(N>1?N-1:0),k=1;k<N;k++)T[k-1]=arguments[k];return u.produce(O,function(B){var F;return(F=i).call.apply(F,[_,B].concat(T))})}}var p;if(typeof i!="function"&&We(6),l!==void 0&&typeof l!="function"&&We(7),Ze(a)){var m=Al(n),y=jn(n,a,void 0),g=!0;try{p=i(y),g=!1}finally{g?To(m):Gn(m)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return Un(m,l),Mn(O,m)},function(O){throw To(m),O}):(Un(m,l),Mn(p,m))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===Bl&&(p=void 0),n.D&&Yn(p,!0),l){var S=[],v=[];at("Patches").M(a,p,S,v),l(S,v)}return p}We(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var m=arguments.length,y=Array(m>1?m-1:0),g=1;g<m;g++)y[g-1]=arguments[g];return n.produceWithPatches(p,function(S){return a.apply(void 0,[S].concat(y))})};var l,c,u=n.produce(a,i,function(p,m){l=p,c=m});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,l,c]}):[u,l,c]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){Ze(o)||We(8),bt(o)&&(o=Ud(o));var n=Al(this),a=jn(this,o,void 0);return a[Q].C=!0,Gn(n),a},e.finishDraft=function(o,n){var a=o&&o[Q],i=a.A;return Un(i,n),Mn(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!_l&&We(20),this.O=o},e.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var l=at("Patches").$;return bt(o)?l(o,n):this.produce(o,function(c){return l(c,n)})},t}(),Ue=new Hd,Gd=Ue.produce,av=Ue.produceWithPatches.bind(Ue),iv=Ue.setAutoFreeze.bind(Ue),sv=Ue.setUseProxies.bind(Ue),lv=Ue.applyPatches.bind(Ue),cv=Ue.createDraft.bind(Ue),dv=Ue.finishDraft.bind(Ue),Po=Gd;function Xt(t){"@babel/helpers - typeof";return Xt=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},Xt(t)}function Fl(t,e){if(Xt(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(Xt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ul(t){var e=Fl(t,"string");return Xt(e)=="symbol"?e:e+""}function Ml(t,e,o){return(e=Ul(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Wl(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),o.push.apply(o,n)}return o}function Jn(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Wl(Object(o),!0).forEach(function(n){Ml(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Wl(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function ve(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 zl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ea=function(){return Math.random().toString(36).substring(7).split("").join(".")},ko={INIT:"@@redux/INIT"+ea(),REPLACE:"@@redux/REPLACE"+ea(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ea()}};function jd(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 ta(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ve(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ve(1));return o(ta)(t,e)}if(typeof t!="function")throw new Error(ve(2));var a=t,i=e,l=[],c=l,u=!1;function p(){c===l&&(c=l.slice())}function m(){if(u)throw new Error(ve(3));return i}function y(O){if(typeof O!="function")throw new Error(ve(4));if(u)throw new Error(ve(5));var _=!0;return p(),c.push(O),function(){if(_){if(u)throw new Error(ve(6));_=!1,p();var T=c.indexOf(O);c.splice(T,1),l=null}}}function g(O){if(!jd(O))throw new Error(ve(7));if(typeof O.type>"u")throw new Error(ve(8));if(u)throw new Error(ve(9));try{u=!0,i=a(i,O)}finally{u=!1}for(var _=l=c,N=0;N<_.length;N++){var T=_[N];T()}return O}function S(O){if(typeof O!="function")throw new Error(ve(10));a=O,g({type:ko.REPLACE})}function v(){var O,_=y;return O={subscribe:function(T){if(typeof T!="object"||T===null)throw new Error(ve(11));function k(){T.next&&T.next(m())}k();var B=_(k);return{unsubscribe:B}}},O[zl]=function(){return this},O}return g({type:ko.INIT}),n={dispatch:g,subscribe:y,getState:m,replaceReducer:S},n[zl]=v,n}function Vd(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:ko.INIT});if(typeof n>"u")throw new Error(ve(12));if(typeof o(void 0,{type:ko.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ve(13))})}function Hl(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var a=e[n];typeof t[a]=="function"&&(o[a]=t[a])}var i=Object.keys(o),l,c;try{Vd(o)}catch(u){c=u}return function(p,m){if(p===void 0&&(p={}),c)throw c;if(0)var y;for(var g=!1,S={},v=0;v<i.length;v++){var O=i[v],_=o[O],N=p[O],T=_(N,m);if(typeof T>"u"){var k=m&&m.type;throw new Error(ve(14))}S[O]=T,g=g||T!==N}return g=g||i.length!==Object.keys(p).length,g?S:p}}function Cr(){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,a){return function(){return n(a.apply(void 0,arguments))}})}function Gl(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(ve(15))},l={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},c=e.map(function(u){return u(l)});return i=Cr.apply(void 0,c)(a.dispatch),Jn(Jn({},a),{},{dispatch:i})}}}function jl(t){var e=function(n){var a=n.dispatch,i=n.getState;return function(l){return function(c){return typeof c=="function"?c(a,i,t):l(c)}}};return e}var Vl=jl();Vl.withExtraArgument=jl;var ra=Vl;var Xl=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},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)}}(),Kd=function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,l;return l={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function c(p){return function(m){return u([p,m])}}function u(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){o.label=p[1];break}if(p[0]===6&&o.label<i[1]){o.label=i[1],i=p;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(p);break}i[2]&&o.ops.pop(),o.trys.pop();continue}p=e.call(t,o)}catch(m){p=[6,m],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Er=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},Zd=Object.defineProperty,qd=Object.defineProperties,Yd=Object.getOwnPropertyDescriptors,Kl=Object.getOwnPropertySymbols,Xd=Object.prototype.hasOwnProperty,Qd=Object.prototype.propertyIsEnumerable,Zl=function(t,e,o){return e in t?Zd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Pt=function(t,e){for(var o in e||(e={}))Xd.call(e,o)&&Zl(t,o,e[o]);if(Kl)for(var n=0,a=Kl(e);n<a.length;n++){var o=a[n];Qd.call(e,o)&&Zl(t,o,e[o])}return t},oa=function(t,e){return qd(t,Yd(e))},Jd=function(t,e,o){return new Promise(function(n,a){var i=function(u){try{c(o.next(u))}catch(p){a(p)}},l=function(u){try{c(o.throw(u))}catch(p){a(p)}},c=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(i,l)};c((o=o.apply(t,e)).next())})};var eu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Cr:Cr.apply(null,arguments)},Nv=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function tu(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 ru=function(t){Xl(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}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,Er([void 0],o[0].concat(this)))):new(e.bind.apply(e,Er([void 0],o.concat(this))))},e}(Array),ou=function(t){Xl(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}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,Er([void 0],o[0].concat(this)))):new(e.bind.apply(e,Er([void 0],o.concat(this))))},e}(Array);function ia(t){return Ze(t)?Po(t,function(){}):t}function nu(t){return typeof t=="boolean"}function au(){return function(e){return iu(e)}}function iu(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,a=n===void 0?!0:n,i=t.serializableCheck,l=i===void 0?!0:i,c=new ru;if(o&&(nu(o)?c.push(ra):c.push(ra.withExtraArgument(o.extraArgument))),0){if(a)var u;if(l)var p}return c}var na=!0;function Ql(t){var e=au(),o=t||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,l=i===void 0?e():i,c=o.devTools,u=c===void 0?!0:c,p=o.preloadedState,m=p===void 0?void 0:p,y=o.enhancers,g=y===void 0?void 0:y,S;if(typeof a=="function")S=a;else if(tu(a))S=Hl(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var v=l;if(typeof v=="function"&&(v=v(e),!na&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!na&&v.some(function(B){return typeof B!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=Gl.apply(void 0,v),_=Cr;u&&(_=eu(Pt({trace:!na},typeof u=="object"&&u)));var N=new ou(O),T=N;Array.isArray(g)?T=Er([O],g):typeof g=="function"&&(T=g(N));var k=_.apply(void 0,T);return ta(S,m,k)}function kt(t,e){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return Pt(Pt({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.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 Jl(t){var e={},o=[],n,a={addCase:function(i,l){var c=typeof i=="string"?i:i.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=l,a},addMatcher:function(i,l){return o.push({matcher:i,reducer:l}),a},addDefaultCase:function(i){return n=i,a}};return t(a),[e,o,n]}function su(t){return typeof t=="function"}function lu(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?Jl(e):[e,o,n],i=a[0],l=a[1],c=a[2],u;if(su(t))u=function(){return ia(t())};else{var p=ia(t);u=function(){return p}}function m(y,g){y===void 0&&(y=u());var S=Er([i[g.type]],l.filter(function(v){var O=v.matcher;return O(g)}).map(function(v){var O=v.reducer;return O}));return S.filter(function(v){return!!v}).length===0&&(S=[c]),S.reduce(function(v,O){if(O)if(bt(v)){var _=v,N=O(_,g);return N===void 0?v:N}else{if(Ze(v))return Po(v,function(T){return O(T,g)});var N=O(v,g);if(N===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return N}return v},y)}return m.getInitialState=u,m}function cu(t,e){return t+"/"+e}function ec(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:ia(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},l={},c={};a.forEach(function(m){var y=n[m],g=cu(e,m),S,v;"reducer"in y?(S=y.reducer,v=y.prepare):S=y,i[m]=S,l[g]=S,c[m]=v?kt(g,v):kt(g)});function u(){var m=typeof t.extraReducers=="function"?Jl(t.extraReducers):[t.extraReducers],y=m[0],g=y===void 0?{}:y,S=m[1],v=S===void 0?[]:S,O=m[2],_=O===void 0?void 0:O,N=Pt(Pt({},g),l);return lu(o,function(T){for(var k in N)T.addCase(k,N[k]);for(var B=0,F=v;B<F.length;B++){var we=F[B];T.addMatcher(we.matcher,we.reducer)}_&&T.addDefaultCase(_)})}var p;return{name:e,reducer:function(m,y){return p||(p=u()),p(m,y)},actions:c,caseReducers:i,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var du="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",uu=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=du[Math.random()*64|0];return e},pu=["name","message","stack","code"],aa=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),ql=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),fu=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=pu;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},Iv=function(){function t(e,o,n){var a=kt(e+"/fulfilled",function(m,y,g,S){return{payload:m,meta:oa(Pt({},S||{}),{arg:g,requestId:y,requestStatus:"fulfilled"})}}),i=kt(e+"/pending",function(m,y,g){return{payload:void 0,meta:oa(Pt({},g||{}),{arg:y,requestId:m,requestStatus:"pending"})}}),l=kt(e+"/rejected",function(m,y,g,S,v){return{payload:S,error:(n&&n.serializeError||fu)(m||"Rejected"),meta:oa(Pt({},v||{}),{arg:g,requestId:y,rejectedWithValue:!!S,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),c=!1,u=typeof AbortController<"u"?AbortController:function(){function m(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return m.prototype.abort=function(){},m}();function p(m){return function(y,g,S){var v=n?.idGenerator?n.idGenerator(m):uu(),O=new u,_,N=!1;function T(B){_=B,O.abort()}var k=function(){return Jd(this,null,function(){var B,F,we,Ye,Se,Xe,ue;return Kd(this,function(h){switch(h.label){case 0:return h.trys.push([0,4,,5]),Ye=(B=n?.condition)==null?void 0:B.call(n,m,{getState:g,extra:S}),yu(Ye)?[4,Ye]:[3,2];case 1:Ye=h.sent(),h.label=2;case 2:if(Ye===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return N=!0,Se=new Promise(function(x,I){return O.signal.addEventListener("abort",function(){return I({name:"AbortError",message:_||"Aborted"})})}),y(i(v,m,(F=n?.getPendingMeta)==null?void 0:F.call(n,{requestId:v,arg:m},{getState:g,extra:S}))),[4,Promise.race([Se,Promise.resolve(o(m,{dispatch:y,getState:g,extra:S,requestId:v,signal:O.signal,abort:T,rejectWithValue:function(x,I){return new aa(x,I)},fulfillWithValue:function(x,I){return new ql(x,I)}})).then(function(x){if(x instanceof aa)throw x;return x instanceof ql?a(x.payload,v,m,x.meta):a(x,v,m)})])];case 3:return we=h.sent(),[3,5];case 4:return Xe=h.sent(),we=Xe instanceof aa?l(null,v,m,Xe.payload,Xe.meta):l(Xe,v,m),[3,5];case 5:return ue=n&&!n.dispatchConditionRejection&&l.match(we)&&we.meta.condition,ue||y(we),[2,we]}})})}();return Object.assign(k,{abort:T,requestId:v,arg:m,unwrap:function(){return k.then(hu)}})}}return Object.assign(p,{pending:i,rejected:l,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function hu(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function yu(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var tc="listener",rc="completed",oc="cancelled",Pv="task-"+oc,kv="task-"+rc,Dv=tc+"-"+oc,Bv=tc+"-"+rc;var sa="listenerMiddleware";var $v=kt(sa+"/add"),Fv=kt(sa+"/removeAll"),Uv=kt(sa+"/remove");var Yl,Mv=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Yl||(Yl=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},mu=function(t){return function(e){setTimeout(e,t)}},Wv=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:mu(10);Dl();function gu(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}var Do=class extends gu(Object){};window.ftReduxStores||(window.ftReduxStores={});var nc=class t extends Do{static get(e){var o;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[n];if(Gr(i))return i;if(a==null)return;let l=ec({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),c=Ql({reducer:(u,p)=>p.type==="CLEAR_FT_REDUX_STORE"?l.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...p.overwrites}:l.reducer(u,p)});return window.ftReduxStores[a.name]=new t(l,c,a.eventBus)}constructor(e,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Ao;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,l,c)=>{let u=l,p=i[u];return p?(...m)=>{let y=p(...m.map(a));return this.reduxStore.dispatch(y),y}:m=>{this.setState({[u]:a(m)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(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 Wo=b(L());var vu=b(ic(),1);var sc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(sc||(sc={}));var lc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(lc||(lc={}));var cc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.MAP_ATTACHMENT="MAP_ATTACHMENT",t.RESOURCE="RESOURCE"})(cc||(cc={}));var dc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(dc||(dc={}));var uc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(uc||(uc={}));var pc;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.GEN_AI__COMPLETED_QUERY="GEN_AI__COMPLETED_QUERY",t.GEN_AI__RATE="GEN_AI__RATE",t.GENAI_CASE_DEFLECTION__START="GENAI_CASE_DEFLECTION__START",t.GENAI_CASE_DEFLECTION__OPEN_TICKET="GENAI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__DISPLAY="TOPIC__DISPLAY",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(pc||(pc={}));var fc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(fc||(fc={}));var hc;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT"})(hc||(hc={}));var yc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(yc||(yc={}));var mc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(mc||(mc={}));var gc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(gc||(gc={}));var bc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(bc||(bc={}));var xc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(xc||(xc={}));var vc;(function(t){t.ASC="ASC",t.DESC="DESC"})(vc||(vc={}));var Sc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Sc||(Sc={}));var la;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(la||(la={}));var Oc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Oc||(Oc={}));var Cc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Cc||(Cc={}));var Ec;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Ec||(Ec={}));var wc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(wc||(wc={}));var Ac;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(Ac||(Ac={}));var ca;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(ca||(ca={}));var se;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(se||(se={}));var Rc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Rc||(Rc={}));var Nc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Nc||(Nc={}));var Lc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Lc||(Lc={}));var xu={[se.PERSONAL_BOOK_SHARE_USER]:[se.PERSONAL_BOOK_USER],[se.HTML_EXPORT_USER]:[se.PERSONAL_BOOK_USER],[se.PDF_EXPORT_USER]:[se.PERSONAL_BOOK_USER],[se.KHUB_ADMIN]:[se.CONTENT_PUBLISHER],[se.ADMIN]:[se.KHUB_ADMIN,se.USERS_ADMIN,se.PORTAL_ADMIN],[se.GENERATIVE_AI_EXPORT_USER]:[se.GENERATIVE_AI_USER]};function Tc(t,e){return t===e||(xu[t]??[]).some(o=>Tc(o,e))}function _c(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(n=>Tc(n,e))}var Fo=class extends mt{async listMySearches(){let{session:e}=P.getState();return _c(e,se.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Uo=class extends mt{async listMyBookmarks(){let e=P.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Su="ft-user-assets",Mo=Wo.FtReduxStore.get({name:Su,initialState:{savedSearches:void 0,bookmarks:void 0}}),da=class{constructor(){this.currentSession=P.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Uo,this.savedSearchesService=new Fo,P.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=P.getState();(0,Wo.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(),Mo.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Mo.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Mo.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;Mo.actions.bookmarks(o)}}},$0=new da;var ua=class{addCommand(e,o=!1){P.commands.add(e,o)}consumeCommand(e){return P.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new ua;var Ic=b(L()),pa=class{highlightHtml(e,o,n){(0,Ic.highlightHtml)(e,o,n)}};window.FluidTopicsHighlightHtmlService=new pa;var Pc=b(L());var fa=class{isDate(e){var o,n,a,i;return(i=(a=((n=(o=P.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(c=>c.key===e))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(e,o){var n,a,i;return Pc.DateFormatter.format(e,(n=o?.locale)!==null&&n!==void 0?n:P.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new fa;var kc=b(L());var Yr=class{static get(e,o){var n,a,i,l;let c=P.getState(),{lang:u,region:p}=(a=(n=c.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new kc.SearchPlaceConverter(c.baseUrl,(l=(i=window.FluidTopicsClientConfiguration)===null||i===void 0?void 0:i.predefinedSorts)!==null&&l!==void 0?l:{},e??20,c.searchInAllLanguagesAllowed,o??`${u}-${p}`)}};var ha=class{urlToSearchRequest(e){return Yr.get().parse(e)}searchRequestToUrl(e){return Yr.get().serialize(e)}};window.FluidTopicsUrlService=new ha;var Bt=b(L());var Qt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Qt.eventName="change";var ya=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let o=sessionStorage.getItem(this.itemName(e));return o?JSON.parse(o):void 0}set(e,o){sessionStorage.setItem(this.itemName(e),JSON.stringify(o))}},Dc=new ya;var zo=class t extends Bt.WithEventBus{static build(){return new t(window.history,Dc,()=>window.location,!1)}constructor(e,o,n,a){var i,l;super(),this.history=e,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(l=(i=e.state)===null||i===void 0?void 0:i.index)!==null&&l!==void 0?l:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(e,o=!1){let n=o&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Bt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Qt(this.currentItem())),0)}installProxies(){let e=o=>(n,a,[i,l,c])=>{let u=o(),p={...u===this.currentIndex?this.currentState:void 0,...i,index:u,href:typeof c=="string"?c:(c??this.windowLocation()).href};n.apply(a,[p,l,c]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let o=this.history.length-1;o>=0;o--)e?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(e,o=!1){var n,a,i;let l={...this.buildCurrentState(),...e,index:this.currentIndex,title:(n=e?.title)!==null&&n!==void 0?n:this.currentState.title},c=o?(a=e?.majorState)!==null&&a!==void 0?a:this.currentState.majorState:(i=this.currentState.majorState)!==null&&i!==void 0?i:e?.majorState;c!=null&&(l.majorState=c),this.setCurrentState(l)}addHistoryChangeListener(e){this.addEventListener(Qt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Qt.eventName,e)}currentItem(){return(0,Bt.deepCopy)(this.currentState)}back(){let e=this.previousMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Bt.deepCopy)(this.states[this.previousMajorPosition()])}previousMajorPosition(){let e=this.currentIndex;for(;e>0&&!this.isMajorState(e);)e--;return this.previousExistingPosition(e)}forward(){let e=this.nextMajorPosition();e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){return(0,Bt.deepCopy)(this.states[this.nextMajorPosition()])}nextMajorPosition(){let e=this.currentIndex;do e++;while(e<this.states.length&&!this.isMajorState(e));do e++;while(e<this.states.length&&!this.isMajorState(e));return this.previousExistingPosition(e)}previousExistingPosition(e){let o=e;do o--;while(o>0&&!this.hasState(o));return o}buildCurrentState(){var e,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&o!==void 0?o:document.title}}hasState(e){return this.states[e]!=null}isMajorState(e){var o,n;return this.hasState(e)&&((n=(o=this.states[e])===null||o===void 0?void 0:o.majorState)!==null&&n!==void 0?n:!0)}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=zo.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});(0,Bc.customElement)("ft-app-context")(ee);var Wc=b(K());var Ou=b(L());function $c(t){return t.match(/^[\w-]+\.[\w-]+$/)}var Cu=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Fc=Symbol("i18nAttributes"),Uc=Symbol("i18nListAttributes"),zc=Symbol("i18nProperties"),Ho=Symbol("i18nContexts"),Xr=Symbol("i18nUnsubs");function Vo(t){var e,o;class n extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[o]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?Co:br}i18n(i){var l;this.hasI18nContext(i.context)||this.addI18nContext(i.context,void 0,i.custom);let c=(l=i.args)!==null&&l!==void 0?l:i.argsProvider?i.argsProvider(this):[];return this.getI18nService(i.custom).resolveMessage(i.context,i.key,...c)}customI18n(i,l){if($c(i)){let[c,u]=i.split(".");return this.i18n({custom:!0,context:c,key:u,...l})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((l,c,u)=>i.has(c)||typeof l.argsProvider=="function"),this.updateI18nProperties(l=>typeof l.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((l,c,u)=>{var p;return((p=u?.context)===null||p===void 0?void 0:p.toLowerCase())===i}),this.updateI18nProperties(l=>l.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var l,c;let u=this,p=(m,y,g)=>g?.context&&g.key&&i(m,y,g)?{...g,message:this.i18n({context:g.context,key:g.key,...m})}:g;(l=this[Fc])===null||l===void 0||l.forEach((m,y)=>u[y]=p(m,y,u[y])),(c=this[Uc])===null||c===void 0||c.forEach((m,y)=>{var g;return u[y]=(g=u[y])===null||g===void 0?void 0:g.map(S=>p(m,y,S))})}updateI18nProperties(i){var l;(l=this[zc])===null||l===void 0||l.forEach((c,u)=>{i(c,u)&&(this[u]=this.i18n(c))})}addI18nMessages(i,l,c){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,l,c)}addI18nContext(i,l,c){let u=(typeof i=="string"?i:i.name).toLowerCase();c=typeof i=="string"?c:i.custom,this[Ho].set(u,{isCustomContext:c}),this[Xr].has(u)||this[Xr].set(u,this.getI18nService(c).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(c).prepareContext(u,l)}hasI18nContext(i){return this[Ho].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Ho].forEach((i,l)=>this.addI18nContext(l,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Xr].forEach(i=>i()),this[Xr].clear()}}return e=Ho,o=Xr,Cu([(0,Wc.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}var Mc=class extends Vo(jo.FtLitElement){},Go=class extends Vo(jo.FtLitElementRedux){};var Qr=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},qe=class extends Go{constructor(){super(),this.editorMode=!1,this.addStore(P)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Ko.nothing:Ko.html`
|
|
1842
1845
|
<span class="ft-i18n">
|
|
1843
1846
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
1844
1847
|
</span>
|
|
@@ -1865,7 +1868,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1865
1868
|
`})}
|
|
1866
1869
|
</ft-radio-group>
|
|
1867
1870
|
</div>
|
|
1868
|
-
`}setContentLocale(e){var o;this.selectedSearchLocale=(o=this.stateManager)===null||o===void 0?void 0:o.setContentLocale(e.detail==="all"?void 0:e.detail)}update(e){super.update(e),e.has("currentSearchLocale")&&(this.selectedSearchLocale=this.currentSearchLocale,this.dispatchEvent(new CustomEvent("current-search-locale-change",{detail:this.currentSearchLocale})))}};it.elementDefinitions={"ft-icon":he,"ft-tooltip":q,"ft-filter":M,"ft-filter-option":Fe,"ft-radio-group":Te,"ft-radio":
|
|
1871
|
+
`}setContentLocale(e){var o;this.selectedSearchLocale=(o=this.stateManager)===null||o===void 0?void 0:o.setContentLocale(e.detail==="all"?void 0:e.detail)}update(e){super.update(e),e.has("currentSearchLocale")&&(this.selectedSearchLocale=this.currentSearchLocale,this.dispatchEvent(new CustomEvent("current-search-locale-change",{detail:this.currentSearchLocale})))}};it.elementDefinitions={"ft-icon":he,"ft-tooltip":q,"ft-filter":M,"ft-filter-option":Fe,"ft-radio-group":Te,"ft-radio":ie,"ft-typography":te};it.styles=il;en([(0,tn.property)()],it.prototype,"warningTooltipPosition",void 0);en([(0,xa.redux)({store:"search"})],it.prototype,"locales",void 0);en([(0,xa.redux)({store:"search",selector:t=>t.request.contentLocale})],it.prototype,"currentSearchLocale",void 0);en([(0,tn.state)()],it.prototype,"selectedSearchLocale",void 0);(0,Yc.customElement)("ft-search-locale-selector")(it);})();
|
|
1869
1872
|
/*! Bundled license information:
|
|
1870
1873
|
|
|
1871
1874
|
lit-html/lit-html.js:
|