@fluid-topics/ft-search-input 1.2.59 → 1.2.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-search-input.light.js +13 -13
- package/build/ft-search-input.min.js +52 -52
- package/package.json +11 -11
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";(()=>{var Vc=Object.create;var $n=Object.defineProperty;var Zc=Object.getOwnPropertyDescriptor;var qc=Object.getOwnPropertyNames;var Yc=Object.getPrototypeOf,Xc=Object.prototype.hasOwnProperty;var ht=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Qc=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of qc(t))!Xc.call(e,a)&&a!==o&&$n(e,a,{get:()=>t[a],enumerable:!(n=Zc(t,a))||n.enumerable});return e};var S=(e,t,o)=>(o=e!=null?Vc(Yc(e)):{},Qc(t||!e||!e.__esModule?$n(o,"default",{value:e,enumerable:!0}):o,e));var L=ht((wd,Fn)=>{Fn.exports=ftGlobals.wcUtils});var W=ht((Ad,Wn)=>{Wn.exports=ftGlobals.lit});var
|
|
2
|
-
`)===0?F.substr(1,F.length):F}).forEach(function(F){var
|
|
1
|
+
"use strict";(()=>{var Vc=Object.create;var $n=Object.defineProperty;var Zc=Object.getOwnPropertyDescriptor;var qc=Object.getOwnPropertyNames;var Yc=Object.getPrototypeOf,Xc=Object.prototype.hasOwnProperty;var ht=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Qc=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of qc(t))!Xc.call(e,a)&&a!==o&&$n(e,a,{get:()=>t[a],enumerable:!(n=Zc(t,a))||n.enumerable});return e};var S=(e,t,o)=>(o=e!=null?Vc(Yc(e)):{},Qc(t||!e||!e.__esModule?$n(o,"default",{value:e,enumerable:!0}):o,e));var L=ht((wd,Fn)=>{Fn.exports=ftGlobals.wcUtils});var W=ht((Ad,Wn)=>{Wn.exports=ftGlobals.lit});var ee=ht((Rd,Hn)=>{Hn.exports=ftGlobals.litDecorators});var Lr=ht((Vh,Ha)=>{Ha.exports=ftGlobals.litClassMap});var Fi=ht((Xy,$i)=>{$i.exports=ftGlobals.litUnsafeHTML});var ts=ht((it,es)=>{var jr=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Kr=function(){function e(){this.fetch=!1,this.DOMException=jr.DOMException}return e.prototype=jr,new e}();(function(e){var t=function(o){var n=typeof e<"u"&&e||typeof self<"u"&&self||typeof global<"u"&&global||{},a={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};function i(h){return h&&DataView.prototype.isPrototypeOf(h)}if(a.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(h){return h&&c.indexOf(Object.prototype.toString.call(h))>-1};function u(h){if(typeof h!="string"&&(h=String(h)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(h)||h==="")throw new TypeError('Invalid character in header field name: "'+h+'"');return h.toLowerCase()}function p(h){return typeof h!="string"&&(h=String(h)),h}function g(h){var b={next:function(){var P=h.shift();return{done:P===void 0,value:P}}};return a.iterable&&(b[Symbol.iterator]=function(){return b}),b}function y(h){this.map={},h instanceof y?h.forEach(function(b,P){this.append(P,b)},this):Array.isArray(h)?h.forEach(function(b){if(b.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+b.length);this.append(b[0],b[1])},this):h&&Object.getOwnPropertyNames(h).forEach(function(b){this.append(b,h[b])},this)}y.prototype.append=function(h,b){h=u(h),b=p(b);var P=this.map[h];this.map[h]=P?P+", "+b:b},y.prototype.delete=function(h){delete this.map[u(h)]},y.prototype.get=function(h){return h=u(h),this.has(h)?this.map[h]:null},y.prototype.has=function(h){return this.map.hasOwnProperty(u(h))},y.prototype.set=function(h,b){this.map[u(h)]=p(b)},y.prototype.forEach=function(h,b){for(var P in this.map)this.map.hasOwnProperty(P)&&h.call(b,this.map[P],P,this)},y.prototype.keys=function(){var h=[];return this.forEach(function(b,P){h.push(P)}),g(h)},y.prototype.values=function(){var h=[];return this.forEach(function(b){h.push(b)}),g(h)},y.prototype.entries=function(){var h=[];return this.forEach(function(b,P){h.push([P,b])}),g(h)},a.iterable&&(y.prototype[Symbol.iterator]=y.prototype.entries);function m(h){if(!h._noBody){if(h.bodyUsed)return Promise.reject(new TypeError("Already read"));h.bodyUsed=!0}}function v(h){return new Promise(function(b,P){h.onload=function(){b(h.result)},h.onerror=function(){P(h.error)}})}function x(h){var b=new FileReader,P=v(b);return b.readAsArrayBuffer(h),P}function O(h){var b=new FileReader,P=v(b),F=/charset=([A-Za-z0-9_-]+)/.exec(h.type),j=F?F[1]:"utf-8";return b.readAsText(h,j),P}function T(h){for(var b=new Uint8Array(h),P=new Array(b.length),F=0;F<b.length;F++)P[F]=String.fromCharCode(b[F]);return P.join("")}function R(h){if(h.slice)return h.slice(0);var b=new Uint8Array(h.byteLength);return b.set(new Uint8Array(h)),b.buffer}function N(){return this.bodyUsed=!1,this._initBody=function(h){this.bodyUsed=this.bodyUsed,this._bodyInit=h,h?typeof h=="string"?this._bodyText=h:a.blob&&Blob.prototype.isPrototypeOf(h)?this._bodyBlob=h:a.formData&&FormData.prototype.isPrototypeOf(h)?this._bodyFormData=h:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(h)?this._bodyText=h.toString():a.arrayBuffer&&a.blob&&i(h)?(this._bodyArrayBuffer=R(h.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(h)||l(h))?this._bodyArrayBuffer=R(h):this._bodyText=h=Object.prototype.toString.call(h):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof h=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(h)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var h=m(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=m(this);return h||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(a.blob)return this.blob().then(x);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var h=m(this);if(h)return h;if(this._bodyBlob)return O(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(T(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(fe)}),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 b=h.toUpperCase();return k.indexOf(b)>-1?b:h}function U(h,b){if(!(this instanceof U))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');b=b||{};var P=b.body;if(h instanceof U){if(h.bodyUsed)throw new TypeError("Already read");this.url=h.url,this.credentials=h.credentials,b.headers||(this.headers=new y(h.headers)),this.method=h.method,this.mode=h.mode,this.signal=h.signal,!P&&h._bodyInit!=null&&(P=h._bodyInit,h.bodyUsed=!0)}else this.url=String(h);if(this.credentials=b.credentials||this.credentials||"same-origin",(b.headers||!this.headers)&&(this.headers=new y(b.headers)),this.method=B(b.method||this.method||"GET"),this.mode=b.mode||this.mode||null,this.signal=b.signal||this.signal||function(){if("AbortController"in n){var M=new AbortController;return M.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&P)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(P),(this.method==="GET"||this.method==="HEAD")&&(b.cache==="no-store"||b.cache==="no-cache")){var F=/([?&])_=[^&]*/;if(F.test(this.url))this.url=this.url.replace(F,"$1_="+new Date().getTime());else{var j=/\?/;this.url+=(j.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}U.prototype.clone=function(){return new U(this,{body:this._bodyInit})};function fe(h){var b=new FormData;return h.trim().split("&").forEach(function(P){if(P){var F=P.split("="),j=F.shift().replace(/\+/g," "),M=F.join("=").replace(/\+/g," ");b.append(decodeURIComponent(j),decodeURIComponent(M))}}),b}function Ie(h){var b=new y,P=h.replace(/\r?\n[\t ]+/g," ");return P.split("\r").map(function(F){return F.indexOf(`
|
|
2
|
+
`)===0?F.substr(1,F.length):F}).forEach(function(F){var j=F.split(":"),M=j.shift().trim();if(M){var Rr=j.join(":").trim();try{b.append(M,Rr)}catch(wo){console.warn("Response "+wo.message)}}}),b}N.call(U.prototype);function de(h,b){if(!(this instanceof de))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(b||(b={}),this.type="default",this.status=b.status===void 0?200:b.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=b.statusText===void 0?"":""+b.statusText,this.headers=new y(b.headers),this.url=b.url||"",this._initBody(h)}N.call(de.prototype),de.prototype.clone=function(){return new de(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},de.error=function(){var h=new de(null,{status:200,statusText:""});return h.ok=!1,h.status=0,h.type="error",h};var Pe=[301,302,303,307,308];de.redirect=function(h,b){if(Pe.indexOf(b)===-1)throw new RangeError("Invalid status code");return new de(null,{status:b,headers:{location:h}})},o.DOMException=n.DOMException;try{new o.DOMException}catch{o.DOMException=function(b,P){this.message=b,this.name=P;var F=Error(b);this.stack=F.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function oe(h,b){return new Promise(function(P,F){var j=new U(h,b);if(j.signal&&j.signal.aborted)return F(new o.DOMException("Aborted","AbortError"));var M=new XMLHttpRequest;function Rr(){M.abort()}M.onload=function(){var ne={statusText:M.statusText,headers:Ie(M.getAllResponseHeaders()||"")};j.url.indexOf("file://")===0&&(M.status<200||M.status>599)?ne.status=200:ne.status=M.status,ne.url="responseURL"in M?M.responseURL:ne.headers.get("X-Request-URL");var ft="response"in M?M.response:M.responseText;setTimeout(function(){P(new de(ft,ne))},0)},M.onerror=function(){setTimeout(function(){F(new TypeError("Network request failed"))},0)},M.ontimeout=function(){setTimeout(function(){F(new TypeError("Network request timed out"))},0)},M.onabort=function(){setTimeout(function(){F(new o.DOMException("Aborted","AbortError"))},0)};function wo(ne){try{return ne===""&&n.location.href?n.location.href:ne}catch{return ne}}if(M.open(j.method,wo(j.url),!0),j.credentials==="include"?M.withCredentials=!0:j.credentials==="omit"&&(M.withCredentials=!1),"responseType"in M&&(a.blob?M.responseType="blob":a.arrayBuffer&&(M.responseType="arraybuffer")),b&&typeof b.headers=="object"&&!(b.headers instanceof y||n.Headers&&b.headers instanceof n.Headers)){var Mn=[];Object.getOwnPropertyNames(b.headers).forEach(function(ne){Mn.push(u(ne)),M.setRequestHeader(ne,p(b.headers[ne]))}),j.headers.forEach(function(ne,ft){Mn.indexOf(ft)===-1&&M.setRequestHeader(ft,ne)})}else j.headers.forEach(function(ne,ft){M.setRequestHeader(ft,ne)});j.signal&&(j.signal.addEventListener("abort",Rr),M.onreadystatechange=function(){M.readyState===4&&j.signal.removeEventListener("abort",Rr)}),M.send(typeof j._bodyInit>"u"?null:j._bodyInit)})}return oe.polyfill=!0,n.fetch||(n.fetch=oe,n.Headers=y,n.Request=U,n.Response=de),o.Headers=y,o.Request=U,o.Response=de,o.fetch=oe,o}({})})(Kr);Kr.fetch.ponyfill=!0;delete Kr.fetch.polyfill;var Ht=jr.fetch?jr:Kr;it=Ht.fetch;it.default=Ht.fetch;it.fetch=Ht.fetch;it.Headers=Ht.Headers;it.Request=Ht.Request;it.Response=Ht.Response;es.exports=it});var zc=ht((Fv,Hc)=>{Hc.exports=ftGlobals.litRepeat});var Kc=S(L());var Ar=S(W()),Qt=S(L());var Xi=S(W()),$=S(L());var Jo=S(L());var pr=S(ee()),Zi=S(L());var Fa=S(W()),D=S(L());var Zn=S(W()),Y=S(L()),zn=Y.FtCssVariableFactory.extend("--ft-ripple-color","",Y.designSystemVariables.colorContent),E={color:zn,backgroundColor:Y.FtCssVariableFactory.extend("--ft-ripple-background-color","",zn),opacityContentOnSurfacePressed:Y.FtCssVariableFactory.external(Y.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Y.FtCssVariableFactory.external(Y.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Y.FtCssVariableFactory.external(Y.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Y.FtCssVariableFactory.external(Y.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Y.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Gn=Y.FtCssVariableFactory.extend("--ft-ripple-color","",Y.designSystemVariables.colorPrimary),jn={color:Gn,backgroundColor:Y.FtCssVariableFactory.extend("--ft-ripple-background-color","",Gn)},Kn=Y.FtCssVariableFactory.extend("--ft-ripple-color","",Y.designSystemVariables.colorSecondary),Vn={color:Kn,backgroundColor:Y.FtCssVariableFactory.extend("--ft-ripple-background-color","",Kn)},qn=Zn.css`
|
|
3
3
|
:host {
|
|
4
4
|
display: contents;
|
|
5
5
|
}
|
|
@@ -470,7 +470,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
470
470
|
${(0,D.setVariable)(H.size,V.iconSize)};
|
|
471
471
|
${(0,D.setVariable)(H.color,"var(--ft-button-internal-color)")};
|
|
472
472
|
}
|
|
473
|
-
`,D.noTextSelect];var at=S(L());var ja=S(L());var za=S(W()),ae=S(
|
|
473
|
+
`,D.noTextSelect];var at=S(L());var ja=S(L());var za=S(W()),ae=S(ee()),Ga=S(Lr()),er=S(L());var he=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},z=class extends er.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new er.Debouncer(1e3),this.onTransitionStart=t=>{t.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=t=>{t.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new er.Debouncer(10),this.moveRipple=t=>{var o,n;let{x:a,y:i}=this.getCoordinates(t),c=(n=(o=this.ripple)===null||o===void 0?void 0:o.getBoundingClientRect())!==null&&n!==void 0?n:{x:0,y:0,width:0,height:0};this.originX=Math.round(a!=null?a-c.x:c.width/2),this.originY=Math.round(i!=null?i-c.y:c.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(t?.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return za.html`
|
|
474
474
|
<style>
|
|
475
475
|
.ft-ripple .ft-ripple--effect {
|
|
476
476
|
left: ${this.originX}px;
|
|
@@ -481,9 +481,9 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
481
481
|
<div class="ft-ripple--background"></div>
|
|
482
482
|
<div class="ft-ripple--effect"></div>
|
|
483
483
|
</div>
|
|
484
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,n;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var t,o;let n=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;n&&this.setupFor((o=this.target)!==null&&o!==void 0?o:n)}forceFocusUpdate(){var t;!((t=this.target)===null||t===void 0)&&t.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let o=(...l)=>u=>{l.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(u)},n=o("mouseup","contextmenu"),a=o("touchend","touchcancel"),i=l=>{["Enter"," "].includes(l.key)&&o("keyup")(l)},c={passive:!0};t.addEventListener("mouseover",this.startHover,c),t.addEventListener("mousemove",this.moveRipple,c),t.addEventListener("mouseleave",this.endHover,c),t.addEventListener("mousedown",n,c),t.addEventListener("touchstart",a,c),t.addEventListener("touchmove",this.moveRipple,c),t.addEventListener("keydown",i,c),t.addEventListener("focus",this.startFocus,c),t.addEventListener("blur",this.endFocus,c),t.addEventListener("focusin",this.startFocus,c),t.addEventListener("focusout",this.endFocus,c),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,c),t.removeEventListener("mousemove",this.moveRipple,c),t.removeEventListener("mouseleave",this.endHover,c),t.removeEventListener("mousedown",n,c),t.removeEventListener("touchstart",a,c),t.removeEventListener("touchmove",this.moveRipple,c),t.removeEventListener("keydown",i,c),t.removeEventListener("focus",this.startFocus,c),t.removeEventListener("blur",this.endFocus,c),t.removeEventListener("focusin",this.startFocus,c),t.removeEventListener("focusout",this.endFocus,c),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let o=t,n=t,a,i;return o.x!=null?{x:a,y:i}=o:n.touches!=null&&(a=n.touches[0].clientX,i=n.touches[0].clientY),{x:a,y:i}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};z.elementDefinitions={};z.styles=qn;he([(0,ae.property)({type:Boolean})],z.prototype,"primary",void 0);he([(0,ae.property)({type:Boolean})],z.prototype,"secondary",void 0);he([(0,ae.property)({type:Boolean})],z.prototype,"unbounded",void 0);he([(0,ae.property)({type:Boolean})],z.prototype,"activated",void 0);he([(0,ae.property)({type:Boolean})],z.prototype,"selected",void 0);he([(0,ae.property)({type:Boolean})],z.prototype,"disabled",void 0);he([(0,ae.state)()],z.prototype,"hovered",void 0);he([(0,ae.state)()],z.prototype,"focused",void 0);he([(0,ae.state)()],z.prototype,"pressed",void 0);he([(0,ae.state)()],z.prototype,"rippling",void 0);he([(0,ae.state)()],z.prototype,"originX",void 0);he([(0,ae.state)()],z.prototype,"originY",void 0);he([(0,ae.query)(".ft-ripple")],z.prototype,"ripple",void 0);he([(0,ae.query)(".ft-ripple--effect")],z.prototype,"rippleEffect",void 0);(0,ja.customElement)("ft-ripple")(z);var Mi=S(L());var Ui=S(W()),Q=S(
|
|
484
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,n;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var t,o;let n=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;n&&this.setupFor((o=this.target)!==null&&o!==void 0?o:n)}forceFocusUpdate(){var t;!((t=this.target)===null||t===void 0)&&t.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let o=(...l)=>u=>{l.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(u)},n=o("mouseup","contextmenu"),a=o("touchend","touchcancel"),i=l=>{["Enter"," "].includes(l.key)&&o("keyup")(l)},c={passive:!0};t.addEventListener("mouseover",this.startHover,c),t.addEventListener("mousemove",this.moveRipple,c),t.addEventListener("mouseleave",this.endHover,c),t.addEventListener("mousedown",n,c),t.addEventListener("touchstart",a,c),t.addEventListener("touchmove",this.moveRipple,c),t.addEventListener("keydown",i,c),t.addEventListener("focus",this.startFocus,c),t.addEventListener("blur",this.endFocus,c),t.addEventListener("focusin",this.startFocus,c),t.addEventListener("focusout",this.endFocus,c),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,c),t.removeEventListener("mousemove",this.moveRipple,c),t.removeEventListener("mouseleave",this.endHover,c),t.removeEventListener("mousedown",n,c),t.removeEventListener("touchstart",a,c),t.removeEventListener("touchmove",this.moveRipple,c),t.removeEventListener("keydown",i,c),t.removeEventListener("focus",this.startFocus,c),t.removeEventListener("blur",this.endFocus,c),t.removeEventListener("focusin",this.startFocus,c),t.removeEventListener("focusout",this.endFocus,c),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let o=t,n=t,a,i;return o.x!=null?{x:a,y:i}=o:n.touches!=null&&(a=n.touches[0].clientX,i=n.touches[0].clientY),{x:a,y:i}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};z.elementDefinitions={};z.styles=qn;he([(0,ae.property)({type:Boolean})],z.prototype,"primary",void 0);he([(0,ae.property)({type:Boolean})],z.prototype,"secondary",void 0);he([(0,ae.property)({type:Boolean})],z.prototype,"unbounded",void 0);he([(0,ae.property)({type:Boolean})],z.prototype,"activated",void 0);he([(0,ae.property)({type:Boolean})],z.prototype,"selected",void 0);he([(0,ae.property)({type:Boolean})],z.prototype,"disabled",void 0);he([(0,ae.state)()],z.prototype,"hovered",void 0);he([(0,ae.state)()],z.prototype,"focused",void 0);he([(0,ae.state)()],z.prototype,"pressed",void 0);he([(0,ae.state)()],z.prototype,"rippling",void 0);he([(0,ae.state)()],z.prototype,"originX",void 0);he([(0,ae.state)()],z.prototype,"originY",void 0);he([(0,ae.query)(".ft-ripple")],z.prototype,"ripple",void 0);he([(0,ae.query)(".ft-ripple--effect")],z.prototype,"rippleEffect",void 0);(0,ja.customElement)("ft-ripple")(z);var Mi=S(L());var Ui=S(W()),Q=S(ee()),lr=S(L());var li=S(L());var _o=globalThis,_r=_o.trustedTypes,Ka=_r?_r.createPolicy("lit-html",{createHTML:e=>e}):void 0,Qa="$lit$",Qe=`lit$${Math.random().toFixed(9).slice(2)}$`,Ja="?"+Qe,el=`<${Ja}>`,mt=document,kr=()=>mt.createComment(""),rr=e=>e===null||typeof e!="object"&&typeof e!="function",ko=Array.isArray,tl=e=>ko(e)||typeof e?.[Symbol.iterator]=="function",Ro=`[
|
|
485
485
|
\f\r]`,tr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Va=/-->/g,Za=/>/g,yt=RegExp(`>|${Ro}(?:([^\\s"'>=/]+)(${Ro}*=${Ro}*(?:[^
|
|
486
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),qa=/'/g,Ya=/"/g,ei=/^(?:script|style|textarea|title)$/i,Do=e=>(t,...o)=>({_$litType$:e,strings:t,values:o}),ti=Do(1),ri=Do(2),oi=Do(3),or=Symbol.for("lit-noChange"),
|
|
486
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),qa=/'/g,Ya=/"/g,ei=/^(?:script|style|textarea|title)$/i,Do=e=>(t,...o)=>({_$litType$:e,strings:t,values:o}),ti=Do(1),ri=Do(2),oi=Do(3),or=Symbol.for("lit-noChange"),te=Symbol.for("lit-nothing"),Xa=new WeakMap,gt=mt.createTreeWalker(mt,129);function ni(e,t){if(!ko(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ka!==void 0?Ka.createHTML(t):t}var rl=(e,t)=>{let o=e.length-1,n=[],a,i=t===2?"<svg>":t===3?"<math>":"",c=tr;for(let l=0;l<o;l++){let u=e[l],p,g,y=-1,m=0;for(;m<u.length&&(c.lastIndex=m,g=c.exec(u),g!==null);)m=c.lastIndex,c===tr?g[1]==="!--"?c=Va:g[1]!==void 0?c=Za:g[2]!==void 0?(ei.test(g[2])&&(a=RegExp("</"+g[2],"g")),c=yt):g[3]!==void 0&&(c=yt):c===yt?g[0]===">"?(c=a??tr,y=-1):g[1]===void 0?y=-2:(y=c.lastIndex-g[2].length,p=g[1],c=g[3]===void 0?yt:g[3]==='"'?Ya:qa):c===Ya||c===qa?c=yt:c===Va||c===Za?c=tr:(c=yt,a=void 0);let v=c===yt&&e[l+1].startsWith("/>")?" ":"";i+=c===tr?u+el:y>=0?(n.push(p),u.slice(0,y)+Qa+u.slice(y)+Qe+v):u+Qe+(y===-2?l:v)}return[ni(e,i+(e[o]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},nr=class e{constructor({strings:t,_$litType$:o},n){let a;this.parts=[];let i=0,c=0,l=t.length-1,u=this.parts,[p,g]=rl(t,o);if(this.el=e.createElement(p,n),gt.currentNode=this.el.content,o===2||o===3){let y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(a=gt.nextNode())!==null&&u.length<l;){if(a.nodeType===1){if(a.hasAttributes())for(let y of a.getAttributeNames())if(y.endsWith(Qa)){let m=g[c++],v=a.getAttribute(y).split(Qe),x=/([.?@])?(.*)/.exec(m);u.push({type:1,index:i,name:x[2],strings:v,ctor:x[1]==="."?To:x[1]==="?"?Io:x[1]==="@"?Po:Ut}),a.removeAttribute(y)}else y.startsWith(Qe)&&(u.push({type:6,index:i}),a.removeAttribute(y));if(ei.test(a.tagName)){let y=a.textContent.split(Qe),m=y.length-1;if(m>0){a.textContent=_r?_r.emptyScript:"";for(let v=0;v<m;v++)a.append(y[v],kr()),gt.nextNode(),u.push({type:2,index:++i});a.append(y[m],kr())}}}else if(a.nodeType===8)if(a.data===Ja)u.push({type:2,index:i});else{let y=-1;for(;(y=a.data.indexOf(Qe,y+1))!==-1;)u.push({type:7,index:i}),y+=Qe.length-1}i++}}static createElement(t,o){let n=mt.createElement("template");return n.innerHTML=t,n}};function Bt(e,t,o=e,n){if(t===or)return t;let a=n!==void 0?o._$Co?.[n]:o._$Cl,i=rr(t)?void 0:t._$litDirective$;return a?.constructor!==i&&(a?._$AO?.(!1),i===void 0?a=void 0:(a=new i(e),a._$AT(e,o,n)),n!==void 0?(o._$Co??=[])[n]=a:o._$Cl=a),a!==void 0&&(t=Bt(e,a._$AS(e,t.values),a,n)),t}var No=class{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:o},parts:n}=this._$AD,a=(t?.creationScope??mt).importNode(o,!0);gt.currentNode=a;let i=gt.nextNode(),c=0,l=0,u=n[0];for(;u!==void 0;){if(c===u.index){let p;u.type===2?p=new Dr(i,i.nextSibling,this,t):u.type===1?p=new u.ctor(i,u.name,u.strings,this,t):u.type===6&&(p=new Lo(i,this,t)),this._$AV.push(p),u=n[++l]}c!==u?.index&&(i=gt.nextNode(),c++)}return gt.currentNode=mt,a}p(t){let o=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,o),o+=n.strings.length-2):n._$AI(t[o])),o++}},Dr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,o,n,a){this.type=2,this._$AH=te,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=n,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,o=this._$AM;return o!==void 0&&t?.nodeType===11&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=Bt(this,t,o),rr(t)?t===te||t==null||t===""?(this._$AH!==te&&this._$AR(),this._$AH=te):t!==this._$AH&&t!==or&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):tl(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==te&&rr(this._$AH)?this._$AA.nextSibling.data=t:this.T(mt.createTextNode(t)),this._$AH=t}$(t){let{values:o,_$litType$:n}=t,a=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=nr.createElement(ni(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(o);else{let i=new No(a,this),c=i.u(this.options);i.p(o),this.T(c),this._$AH=i}}_$AC(t){let o=Xa.get(t.strings);return o===void 0&&Xa.set(t.strings,o=new nr(t)),o}k(t){ko(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,n,a=0;for(let i of t)a===o.length?o.push(n=new e(this.O(kr()),this.O(kr()),this,this.options)):n=o[a],n._$AI(i),a++;a<o.length&&(this._$AR(n&&n._$AB.nextSibling,a),o.length=a)}_$AR(t=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);t&&t!==this._$AB;){let n=t.nextSibling;t.remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Ut=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,n,a,i){this.type=1,this._$AH=te,this._$AN=void 0,this.element=t,this.name=o,this._$AM=a,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=te}_$AI(t,o=this,n,a){let i=this.strings,c=!1;if(i===void 0)t=Bt(this,t,o,0),c=!rr(t)||t!==this._$AH&&t!==or,c&&(this._$AH=t);else{let l=t,u,p;for(t=i[0],u=0;u<i.length-1;u++)p=Bt(this,l[n+u],o,u),p===or&&(p=this._$AH[u]),c||=!rr(p)||p!==this._$AH[u],p===te?t=te:t!==te&&(t+=(p??"")+i[u+1]),this._$AH[u]=p}c&&!a&&this.j(t)}j(t){t===te?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},To=class extends Ut{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===te?void 0:t}},Io=class extends Ut{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==te)}},Po=class extends Ut{constructor(t,o,n,a,i){super(t,o,n,a,i),this.type=5}_$AI(t,o=this){if((t=Bt(this,t,o,0)??te)===or)return;let n=this._$AH,a=t===te&&n!==te||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,i=t!==te&&(n===te||a);a&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Lo=class{constructor(t,o,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Bt(this,t)}};var ol=_o.litHtmlPolyfillSupport;ol?.(nr,Dr),(_o.litHtmlVersions??=[]).push("3.3.0");var ii=Symbol.for(""),nl=e=>{if(e?.r===ii)return e?._$litStatic$},Bo=e=>({_$litStatic$:e,r:ii});var ai=new Map,Uo=e=>(t,...o)=>{let n=o.length,a,i,c=[],l=[],u,p=0,g=!1;for(;p<n;){for(u=t[p];p<n&&(i=o[p],(a=nl(i))!==void 0);)u+=a+t[++p],g=!0;p!==n&&l.push(i),c.push(u),p++}if(p===n&&c.push(t[n]),g){let y=c.join("$$lit$$");(t=ai.get(y))===void 0&&(c.raw=c,ai.set(y,t=c)),o=l}return e(t,...o)},Mo=Uo(ti),oy=Uo(ri),ny=Uo(oi);var $o=S(ee()),ci=S(L());var Je;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button",e.display="display",e.title1="title-1",e.title2="title-2",e.title3="title-3",e.body1regular="body-1-regular",e.body1medium="body-1-medium",e.body1semibold="body-1-semibold",e.body2regular="body-2-regular",e.body2medium="body-2-medium",e.body2semibold="body-2-semibold",e.label1medium="label-1-medium",e.label1semibold="label-1-semibold",e.label1bold="label-1-bold",e.label2medium="label-2-medium",e.label2semibold="label-2-semibold",e.label2bold="label-2-bold",e.caption1medium="caption-1-medium",e.caption1semibold="caption-1-semibold",e.caption1bold="caption-1-bold",e.caption2medium="caption-2-medium",e.caption2semibold="caption-2-semibold",e.caption2bold="caption-2-bold"})(Je||(Je={}));var si=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},be=class extends ci.FtLitElement{constructor(){super(...arguments),this.variant=Je.body1}render(){return this.element?Mo`
|
|
487
487
|
<${Bo(this.element)}
|
|
488
488
|
part="text"
|
|
489
489
|
class="ft-typography ft-typography--${this.variant}">
|
|
@@ -538,7 +538,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
538
538
|
</div>
|
|
539
539
|
</div>
|
|
540
540
|
</div>
|
|
541
|
-
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(o=>t.has(o))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}async showTemporaryText(t,o){let n=this.manual;this.manual=!0;let a=this.text;this.text=t,await this.show(o),this.text=a,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Bi(this.slottedElement,this.tooltip,this.position).then(({x:t,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",t=>{t.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}};Z.elementDefinitions={"ft-typography":be};Z.styles=ui;ge([(0,Q.property)()],Z.prototype,"text",void 0);ge([(0,Q.property)({type:Boolean})],Z.prototype,"manual",void 0);ge([(0,Q.property)({type:Boolean})],Z.prototype,"inline",void 0);ge([(0,Q.property)({type:Number})],Z.prototype,"delay",void 0);ge([(0,Q.property)()],Z.prototype,"position",void 0);ge([(0,Q.queryAssignedNodes)()],Z.prototype,"slotNodes",void 0);ge([(0,Q.query)(".ft-tooltip--container")],Z.prototype,"container",void 0);ge([(0,Q.query)(".ft-tooltip")],Z.prototype,"tooltip",void 0);ge([(0,Q.query)(".ft-tooltip--content")],Z.prototype,"tooltipContent",void 0);ge([(0,Q.state)()],Z.prototype,"visible",void 0);ge([(0,Q.eventOptions)({passive:!0})],Z.prototype,"onTouch",null);ge([(0,Q.eventOptions)({passive:!0})],Z.prototype,"onHover",null);ge([(0,Q.eventOptions)({passive:!0})],Z.prototype,"onOut",null);ge([(0,Q.eventOptions)({passive:!0})],Z.prototype,"onClick",null);(0,Mi.customElement)("ft-tooltip")(Z);var Gi=S(L());var dr=S(W()),ot=S(te()),Hi=S(L()),zi=S(Fi());var rt;(function(e){e.ADD_TO_PBK="",e.ALERT="",e.ADD_ALERT="",e.BACK_TO_SEARCH="",e.ADD_BOOKMARK="",e.BOOKMARK="",e.BOOKS="",e.MENU="",e.DOWNLOAD="",e.EDIT="",e.FEEDBACK="",e.HOME="",e.MODIFY_PBK="",e.SCHEDULED="",e.SEARCH="",e.EXPORT="",e.TOC="",e.WRITE_UGC="",e.TRASH="",e.USER="",e.EXTLINK="",e.CALENDAR="",e.OFFLINE="",e.BOOK="",e.DOWNLOAD_PLAIN="",e.CHECK="",e.STAR_PLAIN="",e.TOPICS="",e.DISC="",e.CIRCLE="",e.SHARED="",e.SORT_UNSORTED="",e.SORT_UP="",e.SORT_DOWN="",e.WORKING="",e.CLOSE="",e.ZOOM_OUT="",e.ZOOM_IN="",e.ZOOM_REALSIZE="",e.ZOOM_FULLSCREEN="",e.ADMIN_RESTRICTED="",e.ADMIN="",e.ADMIN_KHUB="",e.ADMIN_THEME="",e.ADMIN_USERS="",e.WARNING="",e.CONTEXT="",e.SEARCH_HOME="",e.STEPS="",e.ICON_EXPAND="",e.ICON_COLLAPSE="",e.INFO="",e.MINUS_PLAIN="",e.PLUS_PLAIN="",e.FACET_HAS_DESCENDANT="",e.TRIANGLE_BOTTOM="",e.TRIANGLE_LEFT="",e.TRIANGLE_RIGHT="",e.TRIANGLE_TOP="",e.THIN_ARROW="",e.SIGN_IN="",e.LOGOUT="",e.TRANSLATE="",e.CLOSE_PLAIN="",e.CHECK_PLAIN="",e.ARTICLE="",e.COLUMNS="",e.ANALYTICS="",e.COLLECTIONS="",e.ARROW_DOWN="",e.ARROW_LEFT="",e.ARROW_RIGHT="",e.ARROW_UP="",e.SEARCH_IN_PUBLICATION="",e.COPY_TO_CLIPBOARD="",e.SHARED_PBK="",e.ATTACHMENTS="",e.STRIPE_ARROW_LEFT="",e.STRIPE_ARROW_RIGHT="",e.FILTERS="",e.DOT="",e.MINUS="",e.PLUS="",e.MAILS_AND_NOTIFICATIONS="",e.SAVE="",e.LOCKER="",e.ADMIN_INTEGRATION="",e.SYNC="",e.TAG="",e.BOOK_PLAIN="",e.UPLOAD="",e.ONLINE="",e.TAG_PLAIN="",e.ACCOUNT_SETTINGS="",e.PRINT="",e.DEFAULT_ROLES="",e.SHORTCUT_MENU="",e.RELATIVES_PLAIN="",e.RELATIVES="",e.PAUSE="",e.PLAY="",e.ADMIN_PORTAL="",e.STAR="",e.THUMBS_DOWN="",e.THUMBS_DOWN_PLAIN="",e.THUMBS_UP="",e.THUMBS_UP_PLAIN="",e.FEEDBACK_PLAIN="",e.RATE_PLAIN="",e.RATE="",e.OFFLINE_SETTINGS="",e.MY_COLLECTIONS="",e.THIN_ARROW_LEFT="",e.THIN_ARROW_RIGHT="",e.RESET="",e.MY_LIBRARY="",e.UNSTRUCTURED_DOC="",e.CONTEXTUAL="",e.THIN_ARROW_UP="",e.ARROW_RIGHT_TO_LINE="",e.DESKTOP="",e.TABLET_LANDSCAPE="",e.TABLET_PORTRAIT="",e.MOBILE_LANDSCAPE="",e.MOBILE_PORTRAIT="",e.DIAGRAM_SUNBURST="",e.DIAGRAM_SANKEY="",e.COMMENT_QUESTION="",e.COMMENT_QUESTION_PLAIN="",e.MESSAGE_BOT="",e.CHART_SIMPLE="",e.BARS_PROGRESS="",e.BOOK_OPEN_GEAR="",e.BOOK_OPEN_GEAR_SLASH="",e.LINE_CHART="",e.STACKED_CHART="",e.CHART_BAR_STACKED="",e.CHART_BAR_GROUPED="",e.EYE_SLASH="",e.X_MARK="",e.EXPAND_WIDE="",e.PIP="",e.PIP_WIDE="",e.LIFE_RING="",e.GLOBE="",e.PIGGY_BANK="",e.EXTLINK_LIGHT="",e.CLONE="",e.CLONE_LINK_SIMPLE="",e.CHART_BAR_NORMALIZED="",e.CONSUMER="",e.OCTAGON_XMARK="",e.HOURGLASS_HALF="",e.CLOCK="",e.CLOCK_THREE="",e.CALENDAR_DAY="",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="",e.WAND_MAGIC_SPARKLES="",e.PAPER_PLANE="",e.CIRCLE_STOP="",e.ARROW_ROTATE_RIGHT="",e.ARROWS_ROTATE="",e.ALIGN_RIGHT="",e.FORMAT_CLEAR="",e.ALIGN_CENTER="",e.ALIGN_LEFT="",e.PALETTE="",e.BOLD="",e.ITALIC="",e.UNDERLINE="",e.STRIKETHROUGH="",e.LINK_SIMPLE_SLASH="",e.LINK_SIMPLE="",e.ROUTE="",e.CIRCLE_USER_SLASH="",e.CIRCLE_USER_CHECK="",e.LIST_MAGNIFYING_GLASS="",e.MEDAL="",e.THUMBS_UP_THUMBS_DOWN_SOLID="",e.ARROW_TURN_DOWN_RIGHT="",e.FLASK="",e.LOCK_KEYHOLE_OPEN_SOLID="",e.HOURGLASS_END="",e.CIRCLE_QUESTION="",e.GRIP_LINES_SOLID="",e.TRANSLATE_SPARKLE_SOLID="",e.CODE="",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",e.PAPER_PLANE_SLASH="",e.COMPRESS="",e.EXPAND="",e.ARROW_ROTATE_LEFT="",e.EYE="",e.SHARE="󨃱",e.MOBILE_SMALL="",e.SPARKLES="",e.HAND_SOLID=""})(rt||(rt={}));var w;(function(e){e.UNKNOWN="",e.ABW="",e.AUDIO="",e.AVI="",e.CHM="",e.CODE="",e.CSV="",e.DITA="",e.EPUB="",e.EXCEL="",e.FLAC="",e.GIF="",e.GZIP="",e.HTML="",e.IMAGE="",e.JPEG="",e.JSON="",e.M4A="",e.MOV="",e.MP3="",e.MP4="",e.OGG="",e.PDF="",e.PNG="",e.POWERPOINT="",e.RAR="",e.STP="",e.TEXT="",e.VIDEO="",e.WAV="",e.WMA="",e.WORD="",e.XML="",e.YAML="",e.ZIP=""})(w||(w={}));var Xo=new Map([...["abw"].map(e=>[e,w.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,w.AUDIO]),...["avi"].map(e=>[e,w.AVI]),...["chm","xhs"].map(e=>[e,w.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,w.CODE]),...["csv"].map(e=>[e,w.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,w.DITA]),...["epub"].map(e=>[e,w.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,w.EXCEL]),...["flac"].map(e=>[e,w.FLAC]),...["gif"].map(e=>[e,w.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,w.GZIP]),...["html","htm","xhtml"].map(e=>[e,w.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,w.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,w.JPEG]),...["json"].map(e=>[e,w.JSON]),...["m4a","m4p"].map(e=>[e,w.M4A]),...["mov","qt"].map(e=>[e,w.MOV]),...["mp3"].map(e=>[e,w.MP3]),...["mp4","m4v"].map(e=>[e,w.MP4]),...["ogg","oga"].map(e=>[e,w.OGG]),...["pdf","ps"].map(e=>[e,w.PDF]),...["png"].map(e=>[e,w.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,w.POWERPOINT]),...["rar"].map(e=>[e,w.RAR]),...["stp"].map(e=>[e,w.STP]),...["txt","rtf","md","mdown"].map(e=>[e,w.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,w.VIDEO]),...["wav"].map(e=>[e,w.WAV]),...["wma"].map(e=>[e,w.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,w.WORD]),...["xml","xsl","rdf"].map(e=>[e,w.XML]),...["yaml","yml","x-yaml"].map(e=>[e,w.YAML]),...["zip"].map(e=>[e,w.ZIP])]),wl=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);function Wi(e,t){var o,n,a,i;e=(e??"").toLowerCase(),t=(t??"").toLowerCase();let[c,l]=(((o=wl.get(e))!==null&&o!==void 0?o:e)+"/").split("/");return(i=(a=(n=Xo.get(l))!==null&&n!==void 0?n:Xo.get(t))!==null&&a!==void 0?a:Xo.get(c))!==null&&i!==void 0?i:w.UNKNOWN}var Qy={[w.ABW]:"#91ABC6",[w.AUDIO]:"#1795E3",[w.AVI]:"#E63324",[w.CHM]:"#71C3EB",[w.CODE]:"#71C3EB",[w.CSV]:"#1F7345",[w.DITA]:"#71C3EB",[w.EPUB]:"#85B926",[w.EXCEL]:"#1F7345",[w.FLAC]:"#1795E3",[w.GIF]:"#59B031",[w.GZIP]:"#F8AB36",[w.HTML]:"#71C3EB",[w.IMAGE]:"#59B031",[w.JPEG]:"#59B031",[w.JSON]:"#71C3EB",[w.M4A]:"#1795E3",[w.MOV]:"#E63324",[w.MP3]:"#1795E3",[w.MP4]:"#E63324",[w.OGG]:"#1795E3",[w.PDF]:"#E44948",[w.PNG]:"#59B031",[w.POWERPOINT]:"#B54A2B",[w.RAR]:"#F8AB36",[w.STP]:"#3764B1",[w.TEXT]:"#3162AB",[w.UNKNOWN]:"#999999",[w.VIDEO]:"#E63324",[w.WAV]:"#1795E3",[w.WMA]:"#1795E3",[w.WORD]:"#3162AB",[w.XML]:"#71C3EB",[w.YAML]:"#71C3EB",[w.ZIP]:"#F8AB36"};var ve;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(ve||(ve={}));var ur=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},pe=class extends Hi.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=dr.nothing}render(){let t=this.variant&&Object.values(ve).includes(this.variant)?this.variant:ve.fluid_topics,o=t!==ve.material||!!this.value;return dr.html`
|
|
541
|
+
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(o=>t.has(o))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}async showTemporaryText(t,o){let n=this.manual;this.manual=!0;let a=this.text;this.text=t,await this.show(o),this.text=a,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Bi(this.slottedElement,this.tooltip,this.position).then(({x:t,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",t=>{t.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}};Z.elementDefinitions={"ft-typography":be};Z.styles=ui;ge([(0,Q.property)()],Z.prototype,"text",void 0);ge([(0,Q.property)({type:Boolean})],Z.prototype,"manual",void 0);ge([(0,Q.property)({type:Boolean})],Z.prototype,"inline",void 0);ge([(0,Q.property)({type:Number})],Z.prototype,"delay",void 0);ge([(0,Q.property)()],Z.prototype,"position",void 0);ge([(0,Q.queryAssignedNodes)()],Z.prototype,"slotNodes",void 0);ge([(0,Q.query)(".ft-tooltip--container")],Z.prototype,"container",void 0);ge([(0,Q.query)(".ft-tooltip")],Z.prototype,"tooltip",void 0);ge([(0,Q.query)(".ft-tooltip--content")],Z.prototype,"tooltipContent",void 0);ge([(0,Q.state)()],Z.prototype,"visible",void 0);ge([(0,Q.eventOptions)({passive:!0})],Z.prototype,"onTouch",null);ge([(0,Q.eventOptions)({passive:!0})],Z.prototype,"onHover",null);ge([(0,Q.eventOptions)({passive:!0})],Z.prototype,"onOut",null);ge([(0,Q.eventOptions)({passive:!0})],Z.prototype,"onClick",null);(0,Mi.customElement)("ft-tooltip")(Z);var Gi=S(L());var dr=S(W()),ot=S(ee()),Hi=S(L()),zi=S(Fi());var rt;(function(e){e.ADD_TO_PBK="",e.ALERT="",e.ADD_ALERT="",e.BACK_TO_SEARCH="",e.ADD_BOOKMARK="",e.BOOKMARK="",e.BOOKS="",e.MENU="",e.DOWNLOAD="",e.EDIT="",e.FEEDBACK="",e.HOME="",e.MODIFY_PBK="",e.SCHEDULED="",e.SEARCH="",e.EXPORT="",e.TOC="",e.WRITE_UGC="",e.TRASH="",e.USER="",e.EXTLINK="",e.CALENDAR="",e.OFFLINE="",e.BOOK="",e.DOWNLOAD_PLAIN="",e.CHECK="",e.STAR_PLAIN="",e.TOPICS="",e.DISC="",e.CIRCLE="",e.SHARED="",e.SORT_UNSORTED="",e.SORT_UP="",e.SORT_DOWN="",e.WORKING="",e.CLOSE="",e.ZOOM_OUT="",e.ZOOM_IN="",e.ZOOM_REALSIZE="",e.ZOOM_FULLSCREEN="",e.ADMIN_RESTRICTED="",e.ADMIN="",e.ADMIN_KHUB="",e.ADMIN_THEME="",e.ADMIN_USERS="",e.WARNING="",e.CONTEXT="",e.SEARCH_HOME="",e.STEPS="",e.ICON_EXPAND="",e.ICON_COLLAPSE="",e.INFO="",e.MINUS_PLAIN="",e.PLUS_PLAIN="",e.FACET_HAS_DESCENDANT="",e.TRIANGLE_BOTTOM="",e.TRIANGLE_LEFT="",e.TRIANGLE_RIGHT="",e.TRIANGLE_TOP="",e.THIN_ARROW="",e.SIGN_IN="",e.LOGOUT="",e.TRANSLATE="",e.CLOSE_PLAIN="",e.CHECK_PLAIN="",e.ARTICLE="",e.COLUMNS="",e.ANALYTICS="",e.COLLECTIONS="",e.ARROW_DOWN="",e.ARROW_LEFT="",e.ARROW_RIGHT="",e.ARROW_UP="",e.SEARCH_IN_PUBLICATION="",e.COPY_TO_CLIPBOARD="",e.SHARED_PBK="",e.ATTACHMENTS="",e.STRIPE_ARROW_LEFT="",e.STRIPE_ARROW_RIGHT="",e.FILTERS="",e.DOT="",e.MINUS="",e.PLUS="",e.MAILS_AND_NOTIFICATIONS="",e.SAVE="",e.LOCKER="",e.ADMIN_INTEGRATION="",e.SYNC="",e.TAG="",e.BOOK_PLAIN="",e.UPLOAD="",e.ONLINE="",e.TAG_PLAIN="",e.ACCOUNT_SETTINGS="",e.PRINT="",e.DEFAULT_ROLES="",e.SHORTCUT_MENU="",e.RELATIVES_PLAIN="",e.RELATIVES="",e.PAUSE="",e.PLAY="",e.ADMIN_PORTAL="",e.STAR="",e.THUMBS_DOWN="",e.THUMBS_DOWN_PLAIN="",e.THUMBS_UP="",e.THUMBS_UP_PLAIN="",e.FEEDBACK_PLAIN="",e.RATE_PLAIN="",e.RATE="",e.OFFLINE_SETTINGS="",e.MY_COLLECTIONS="",e.THIN_ARROW_LEFT="",e.THIN_ARROW_RIGHT="",e.RESET="",e.MY_LIBRARY="",e.UNSTRUCTURED_DOC="",e.CONTEXTUAL="",e.THIN_ARROW_UP="",e.ARROW_RIGHT_TO_LINE="",e.DESKTOP="",e.TABLET_LANDSCAPE="",e.TABLET_PORTRAIT="",e.MOBILE_LANDSCAPE="",e.MOBILE_PORTRAIT="",e.DIAGRAM_SUNBURST="",e.DIAGRAM_SANKEY="",e.COMMENT_QUESTION="",e.COMMENT_QUESTION_PLAIN="",e.MESSAGE_BOT="",e.CHART_SIMPLE="",e.BARS_PROGRESS="",e.BOOK_OPEN_GEAR="",e.BOOK_OPEN_GEAR_SLASH="",e.LINE_CHART="",e.STACKED_CHART="",e.CHART_BAR_STACKED="",e.CHART_BAR_GROUPED="",e.EYE_SLASH="",e.X_MARK="",e.EXPAND_WIDE="",e.PIP="",e.PIP_WIDE="",e.LIFE_RING="",e.GLOBE="",e.PIGGY_BANK="",e.EXTLINK_LIGHT="",e.CLONE="",e.CLONE_LINK_SIMPLE="",e.CHART_BAR_NORMALIZED="",e.CONSUMER="",e.OCTAGON_XMARK="",e.HOURGLASS_HALF="",e.CLOCK="",e.CLOCK_THREE="",e.CALENDAR_DAY="",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="",e.WAND_MAGIC_SPARKLES="",e.PAPER_PLANE="",e.CIRCLE_STOP="",e.ARROW_ROTATE_RIGHT="",e.ARROWS_ROTATE="",e.ALIGN_RIGHT="",e.FORMAT_CLEAR="",e.ALIGN_CENTER="",e.ALIGN_LEFT="",e.PALETTE="",e.BOLD="",e.ITALIC="",e.UNDERLINE="",e.STRIKETHROUGH="",e.LINK_SIMPLE_SLASH="",e.LINK_SIMPLE="",e.ROUTE="",e.CIRCLE_USER_SLASH="",e.CIRCLE_USER_CHECK="",e.LIST_MAGNIFYING_GLASS="",e.MEDAL="",e.THUMBS_UP_THUMBS_DOWN_SOLID="",e.ARROW_TURN_DOWN_RIGHT="",e.FLASK="",e.LOCK_KEYHOLE_OPEN_SOLID="",e.HOURGLASS_END="",e.CIRCLE_QUESTION="",e.GRIP_LINES_SOLID="",e.TRANSLATE_SPARKLE_SOLID="",e.CODE="",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",e.PAPER_PLANE_SLASH="",e.COMPRESS="",e.EXPAND="",e.ARROW_ROTATE_LEFT="",e.EYE="",e.SHARE="󨃱",e.MOBILE_SMALL="",e.SPARKLES="",e.HAND_SOLID=""})(rt||(rt={}));var w;(function(e){e.UNKNOWN="",e.ABW="",e.AUDIO="",e.AVI="",e.CHM="",e.CODE="",e.CSV="",e.DITA="",e.EPUB="",e.EXCEL="",e.FLAC="",e.GIF="",e.GZIP="",e.HTML="",e.IMAGE="",e.JPEG="",e.JSON="",e.M4A="",e.MOV="",e.MP3="",e.MP4="",e.OGG="",e.PDF="",e.PNG="",e.POWERPOINT="",e.RAR="",e.STP="",e.TEXT="",e.VIDEO="",e.WAV="",e.WMA="",e.WORD="",e.XML="",e.YAML="",e.ZIP=""})(w||(w={}));var Xo=new Map([...["abw"].map(e=>[e,w.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,w.AUDIO]),...["avi"].map(e=>[e,w.AVI]),...["chm","xhs"].map(e=>[e,w.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,w.CODE]),...["csv"].map(e=>[e,w.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,w.DITA]),...["epub"].map(e=>[e,w.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,w.EXCEL]),...["flac"].map(e=>[e,w.FLAC]),...["gif"].map(e=>[e,w.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,w.GZIP]),...["html","htm","xhtml"].map(e=>[e,w.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,w.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,w.JPEG]),...["json"].map(e=>[e,w.JSON]),...["m4a","m4p"].map(e=>[e,w.M4A]),...["mov","qt"].map(e=>[e,w.MOV]),...["mp3"].map(e=>[e,w.MP3]),...["mp4","m4v"].map(e=>[e,w.MP4]),...["ogg","oga"].map(e=>[e,w.OGG]),...["pdf","ps"].map(e=>[e,w.PDF]),...["png"].map(e=>[e,w.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,w.POWERPOINT]),...["rar"].map(e=>[e,w.RAR]),...["stp"].map(e=>[e,w.STP]),...["txt","rtf","md","mdown"].map(e=>[e,w.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,w.VIDEO]),...["wav"].map(e=>[e,w.WAV]),...["wma"].map(e=>[e,w.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,w.WORD]),...["xml","xsl","rdf"].map(e=>[e,w.XML]),...["yaml","yml","x-yaml"].map(e=>[e,w.YAML]),...["zip"].map(e=>[e,w.ZIP])]),wl=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);function Wi(e,t){var o,n,a,i;e=(e??"").toLowerCase(),t=(t??"").toLowerCase();let[c,l]=(((o=wl.get(e))!==null&&o!==void 0?o:e)+"/").split("/");return(i=(a=(n=Xo.get(l))!==null&&n!==void 0?n:Xo.get(t))!==null&&a!==void 0?a:Xo.get(c))!==null&&i!==void 0?i:w.UNKNOWN}var Qy={[w.ABW]:"#91ABC6",[w.AUDIO]:"#1795E3",[w.AVI]:"#E63324",[w.CHM]:"#71C3EB",[w.CODE]:"#71C3EB",[w.CSV]:"#1F7345",[w.DITA]:"#71C3EB",[w.EPUB]:"#85B926",[w.EXCEL]:"#1F7345",[w.FLAC]:"#1795E3",[w.GIF]:"#59B031",[w.GZIP]:"#F8AB36",[w.HTML]:"#71C3EB",[w.IMAGE]:"#59B031",[w.JPEG]:"#59B031",[w.JSON]:"#71C3EB",[w.M4A]:"#1795E3",[w.MOV]:"#E63324",[w.MP3]:"#1795E3",[w.MP4]:"#E63324",[w.OGG]:"#1795E3",[w.PDF]:"#E44948",[w.PNG]:"#59B031",[w.POWERPOINT]:"#B54A2B",[w.RAR]:"#F8AB36",[w.STP]:"#3764B1",[w.TEXT]:"#3162AB",[w.UNKNOWN]:"#999999",[w.VIDEO]:"#E63324",[w.WAV]:"#1795E3",[w.WMA]:"#1795E3",[w.WORD]:"#3162AB",[w.XML]:"#71C3EB",[w.YAML]:"#71C3EB",[w.ZIP]:"#F8AB36"};var ve;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(ve||(ve={}));var ur=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},pe=class extends Hi.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=dr.nothing}render(){let t=this.variant&&Object.values(ve).includes(this.variant)?this.variant:ve.fluid_topics,o=t!==ve.material||!!this.value;return dr.html`
|
|
542
542
|
<i class="ft-icon ft-icon--${t} ft-no-text-select" part="icon icon-${t}">
|
|
543
543
|
${(0,zi.unsafeHTML)(this.resolvedIcon)}
|
|
544
544
|
<slot ?hidden=${o}></slot>
|
|
@@ -550,7 +550,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
550
550
|
<div></div>
|
|
551
551
|
<div></div>
|
|
552
552
|
</div>
|
|
553
|
-
`}};vt.styles=Da;(0,Vi.customElement)("ft-loader")(vt);var nt=S(W()),Qo=S(Lr()),
|
|
553
|
+
`}};vt.styles=Da;(0,Vi.customElement)("ft-loader")(vt);var nt=S(W()),Qo=S(Lr()),re=S(ee()),ie=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},K=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.addEventListener("click",t=>{var o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):this.type=="submit"&&((o=this.form)===null||o===void 0||o.requestSubmit())})}render(){var t,o,n;let a=nt.html`
|
|
554
554
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
555
555
|
<ft-typography part="label"
|
|
556
556
|
variant=${this.typographyVariant}
|
|
@@ -587,7 +587,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
587
587
|
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
588
588
|
`:nt.html`
|
|
589
589
|
<slot part="icon" name="icon"></slot>
|
|
590
|
-
`}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}focusWithoutTooltip(){var t;this.setTooltipManual(!0),(t=this.button)===null||t===void 0||t.focus(),this.setTooltipManual(!1)}showTemporaryTooltip(t,o){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(t,o)}setTooltipManual(t){this.tooltip&&(this.tooltip.manual=t)}click(){var t;(t=this.button)===null||t===void 0||t.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,at.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};
|
|
590
|
+
`}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}focusWithoutTooltip(){var t;this.setTooltipManual(!0),(t=this.button)===null||t===void 0||t.focus(),this.setTooltipManual(!1)}showTemporaryTooltip(t,o){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(t,o)}setTooltipManual(t){this.tooltip&&(this.tooltip.manual=t)}click(){var t;(t=this.button)===null||t===void 0||t.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,at.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};K.elementDefinitions={"ft-ripple":z,"ft-tooltip":Z,"ft-typography":be,"ft-icon":pe,"ft-loader":vt};ie([(0,re.property)()],K.prototype,"href",void 0);ie([(0,re.property)()],K.prototype,"target",void 0);ie([(0,re.property)()],K.prototype,"type",void 0);ie([(0,re.property)({type:Boolean})],K.prototype,"disabled",void 0);ie([(0,re.property)()],K.prototype,"label",void 0);ie([(0,re.property)()],K.prototype,"icon",void 0);ie([(0,re.property)()],K.prototype,"iconVariant",void 0);ie([(0,re.property)({type:Boolean})],K.prototype,"trailingIcon",void 0);ie([(0,re.property)({type:Boolean})],K.prototype,"loading",void 0);ie([(0,re.property)({attribute:"aria-label"})],K.prototype,"ariaLabel",void 0);ie([(0,re.property)()],K.prototype,"tooltipPosition",void 0);ie([(0,re.property)({type:Boolean})],K.prototype,"hideTooltip",void 0);ie([(0,re.property)({type:Boolean})],K.prototype,"forceTooltip",void 0);ie([(0,re.query)(".ft-button")],K.prototype,"button",void 0);ie([(0,re.query)(".ft-button--label slot")],K.prototype,"slottedContent",void 0);ie([(0,re.query)("[part=tooltip]")],K.prototype,"tooltip",void 0);var Hr=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},Ae=class extends K{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"}};Ae.styles=[Zi.safariEllipsisFix,Wa];Hr([(0,pr.property)({type:Boolean})],Ae.prototype,"primary",void 0);Hr([(0,pr.property)({type:Boolean})],Ae.prototype,"outlined",void 0);Hr([(0,pr.property)({type:Boolean})],Ae.prototype,"dense",void 0);Hr([(0,pr.property)({type:Boolean})],Ae.prototype,"round",void 0);var fr=S(ee());var Gr=S(L());var qi=S(W()),C=S(L());var Yi=[qi.css`
|
|
591
591
|
:host {
|
|
592
592
|
display: inline-block;
|
|
593
593
|
max-width: 100%;
|
|
@@ -1053,7 +1053,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1053
1053
|
.ftds--size-small.ft-button--icon-only {
|
|
1054
1054
|
width: ${f.smallIconOnlyWidth};
|
|
1055
1055
|
}
|
|
1056
|
-
`,C.noTextSelect];var zr=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},je=class extends(0,Gr.toFtdsBase)(
|
|
1056
|
+
`,C.noTextSelect];var zr=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},je=class extends(0,Gr.toFtdsBase)(K){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=Tr.brand,this.iconVariant=ve.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 At.large:return Je.body2medium;case At.medium:return Je.caption1medium;case At.small:return Je.caption2medium}}};je.styles=[Gr.safariEllipsisFix,Yi];zr([(0,fr.property)({type:Boolean})],je.prototype,"primary",void 0);zr([(0,fr.property)({type:Boolean})],je.prototype,"secondary",void 0);zr([(0,fr.property)({type:Boolean})],je.prototype,"tertiary",void 0);zr([(0,fr.property)({type:Boolean})],je.prototype,"round",void 0);(0,Jo.customElement)("ft-button")(Ae);(0,Jo.customElement)("ftds-button")(je);var X={height:$.FtCssVariableFactory.create("--ft-search-input-height","","SIZE","38px"),borderRadius:$.FtCssVariableFactory.extend("--ft-search-input-border-radius","",$.designSystemVariables.borderRadiusS),desktopFiltersHeight:$.FtCssVariableFactory.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:$.FtCssVariableFactory.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:$.FtCssVariableFactory.extend("--ft-search-input-background-color","",$.designSystemVariables.colorSurface),colorOnSurface:$.FtCssVariableFactory.extend("--ft-search-input-color","",$.designSystemVariables.colorOnSurface),colorOnSurfaceMedium:$.FtCssVariableFactory.extend("--ft-search-input-placeholder-color","",$.designSystemVariables.colorOnSurfaceMedium),colorOutline:$.FtCssVariableFactory.extend("--ft-search-input-outline-color","",$.designSystemVariables.colorOutline),elevation02:$.FtCssVariableFactory.extend("--ft-search-input-elevation","",$.designSystemVariables.elevation02),focusOutlineColor:$.FtCssVariableFactory.extend("--ft-search-input-focused-outline-color","",$.designSystemVariables.colorPrimary),buttonColor:$.FtCssVariableFactory.extend("--ft-search-input-button-color","",$.designSystemVariables.colorPrimary),buttonRippleColor:$.FtCssVariableFactory.extend("--ft-search-input-button-ripple-color","",$.designSystemVariables.colorPrimary)},Qi=Xi.css`
|
|
1057
1057
|
* {
|
|
1058
1058
|
box-sizing: border-box;
|
|
1059
1059
|
${(0,$.setVariable)(V.color,X.buttonColor)};
|
|
@@ -1137,15 +1137,15 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1137
1137
|
height: 20px;
|
|
1138
1138
|
border-right: 1px solid ${X.colorOutline};
|
|
1139
1139
|
}
|
|
1140
|
-
`;var Tc=S(L()),Ic=S(
|
|
1140
|
+
`;var Tc=S(L()),Ic=S(ee());var ho=S(L());var Ji=S(L());var Rl=S(ts(),1);var rs;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(rs||(rs={}));var os;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(os||(os={}));var ns;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.MAP_ATTACHMENT="MAP_ATTACHMENT",e.RESOURCE="RESOURCE"})(ns||(ns={}));var as;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(as||(as={}));var is;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(is||(is={}));var ss;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.GEN_AI__COMPLETED_QUERY="GEN_AI__COMPLETED_QUERY",e.GEN_AI__RATE="GEN_AI__RATE",e.GENAI_CASE_DEFLECTION__START="GENAI_CASE_DEFLECTION__START",e.GENAI_CASE_DEFLECTION__OPEN_TICKET="GENAI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__DISPLAY="TOPIC__DISPLAY",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(ss||(ss={}));var cs;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(cs||(cs={}));var ls;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT"})(ls||(ls={}));var ds;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(ds||(ds={}));var us;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(us||(us={}));var ps;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(ps||(ps={}));var fs;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(fs||(fs={}));var hs;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(hs||(hs={}));var ys;(function(e){e.ASC="ASC",e.DESC="DESC"})(ys||(ys={}));var gs;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(gs||(gs={}));var en;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(en||(en={}));var ms;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})(ms||(ms={}));var bs;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(bs||(bs={}));var xs;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(xs||(xs={}));var vs;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(vs||(vs={}));var Ss;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(Ss||(Ss={}));var tn;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(tn||(tn={}));var J;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(J||(J={}));var Os;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(Os||(Os={}));var Cs;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Cs||(Cs={}));var Es;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(Es||(Es={}));var Al={[J.PERSONAL_BOOK_SHARE_USER]:[J.PERSONAL_BOOK_USER],[J.HTML_EXPORT_USER]:[J.PERSONAL_BOOK_USER],[J.PDF_EXPORT_USER]:[J.PERSONAL_BOOK_USER],[J.KHUB_ADMIN]:[J.CONTENT_PUBLISHER],[J.ADMIN]:[J.KHUB_ADMIN,J.USERS_ADMIN,J.PORTAL_ADMIN],[J.GENERATIVE_AI_EXPORT_USER]:[J.GENERATIVE_AI_USER]};function ws(e,t){return e===t||(Al[e]??[]).some(o=>ws(o,t))}function As(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>ws(n,t))}var Rc=S(L());var Is=S(W()),me=S(ee()),Re=S(L());var Rs=S(W());var Ns=Rs.css`
|
|
1141
1141
|
`;var Vr=S(L()),Nl="ft-app-info",rn=class extends CustomEvent{constructor(t){super("authentication-change",{detail:t})}},Tl={session:(e,t)=>{(0,Vr.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>_.dispatchEvent(new rn(t.payload)),0))}},_=Vr.FtReduxStore.get({name:Nl,reducers:Tl,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 De=S(L());var on=S(L());var St=class e{static get(t){let{baseUrl:o,apiIntegrationIdentifier:n}=_.getState(),a=t??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(t){return new Promise(o=>{let n=e.get(t);if(n)o(n);else{let a=_.subscribe(()=>{n=e.get(t),n&&(a(),o(n))})}})}};var hr=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:St.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):St.await()}};var Ke=class extends hr{constructor(t=!0,o){var n;super(o);let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new on.CacheRegistry,this.cache=t?a.commonCache:new on.CacheRegistry}clearCache(){this.cache.clearAll()}};var Ts,Il=Symbol("clearAfterUnitTest"),Zr=class extends Ke{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ts]=()=>{this.defaultMessages={},this.cache=new De.CacheRegistry,this.listeners={}},this.currentUiLocale=_.getState().uiLocale,_.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=_.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let o=t.name.toLowerCase();this.cache.setFinal(o,t),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,o){var n;if(t=t.toLowerCase(),o&&Object.keys(o).length>0){let a={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...o};(0,De.deepEqual)(this.defaultMessages[t],a)||(this.defaultMessages[t]=a,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var o,n;return this.fetchContext(t),(n=(o=this.cache.getNow(t))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,o){let n=t.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(t,o,...n){var a;let i=t.toLowerCase(),c=this.resolveContext(i);return new De.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},c).resolve(o,...n)}async fetchContext(t){let o=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t))}catch(a){!(a instanceof De.CanceledPromiseError)&&o&&console.error(a)}return o&&await this.notify(t),n}subscribe(t,o){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(o),()=>{var a;return(a=this.listeners[t])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(t=>this.notify(t)))}async notify(t){this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(o=>(0,De.delay)(0).then(()=>o()).catch(()=>null)))}};Ts=Il;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Zr{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Zr{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var zt=window.FluidTopicsI18nService,qr=window.FluidTopicsCustomI18nService;var se=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},q=class extends Re.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=()=>St.get(),this.messageContexts=[],this.cache=new Re.CacheRegistry,this.cleanSessionDebouncer=new Re.Debouncer}render(){return Is.html`
|
|
1142
1142
|
<slot></slot>
|
|
1143
|
-
`}update(t){var o,n,a,i,c;super.update(t),t.has("baseUrl")&&(_.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&_.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&_.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&_.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&_.actions.noCustom(this.noCustom),t.has("editorMode")&&_.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&_.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&_.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(l=>zt.addContext(l)),t.has("openExternalDocumentInNewTab")&&_.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&_.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&_.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(_.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),_.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),_.actions.searchInAllLanguagesAllowed((c=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&c!==void 0?c:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};q.elementDefinitions={};q.styles=Ns;se([(0,me.property)()],q.prototype,"baseUrl",void 0);se([(0,me.property)()],q.prototype,"apiIntegrationIdentifier",void 0);se([(0,me.property)()],q.prototype,"uiLocale",void 0);se([(0,Re.jsonProperty)(null)],q.prototype,"availableUiLocales",void 0);se([(0,Re.jsonProperty)(null)],q.prototype,"metadataConfiguration",void 0);se([(0,me.property)({type:Boolean})],q.prototype,"editorMode",void 0);se([(0,me.property)({type:Boolean})],q.prototype,"noCustom",void 0);se([(0,me.property)({type:Boolean})],q.prototype,"openExternalDocumentInNewTab",void 0);se([(0,me.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],q.prototype,"noCustomComponent",void 0);se([(0,me.property)({type:Boolean})],q.prototype,"withManualResources",void 0);se([(0,me.property)({type:Boolean})],q.prototype,"navigatorOnline",void 0);se([(0,me.property)({type:Boolean})],q.prototype,"forcedOffline",void 0);se([(0,me.property)({type:Object})],q.prototype,"apiProvider",void 0);se([(0,Re.jsonProperty)([])],q.prototype,"messageContexts",void 0);se([(0,Re.jsonProperty)(void 0)],q.prototype,"session",void 0);se([(0,me.state)()],q.prototype,"localesConfiguration",void 0);var md=S(te());function Pl(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var o,n,a;if(Array.isArray(e)){if(o=e.length,o!=t.length)return!1;for(n=o;n--!==0;)if(!Yr(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!Yr(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let i=c=>Object.keys(c).filter(l=>c[l]!=null);if(a=i(e),o=a.length,o!==i(t).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[n]))return!1;for(n=o;n--!==0;){let c=a[n];if(!Yr(e[c],t[c]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Yr(e,t){try{return Pl(e,t)}catch{return!1}}function Xr(e,t){return!Yr(e,t)}var Ll=S(te(),1);var Qr=class{constructor(){this.queue=[]}add(t,o=!1){o&&this.clear(t.type),this.queue.push(t)}consume(t){let o=this.queue.find(n=>n.type===t);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(t){typeof t=="string"?this.queue=this.queue.filter(o=>o.type!==t):this.queue=this.queue.filter(o=>!t.test(o.type))}};var Gt=S(te(),1);var Ps=S(te(),1);function Ls(e,t){let o=()=>JSON.parse(JSON.stringify(e));return(0,Ps.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:Xr,...t??{}})}var Jr=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,o;let n=[...this.callbacks];this.callbacks=[];let a=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let c of n)try{await c()}catch(l){a(l);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var ks=S(W(),1);var eo=globalThis,_l=eo.ShadowRoot&&(eo.ShadyCSS===void 0||eo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Um=Symbol();var _s=(e,t)=>{if(_l)e.adoptedStyleSheets=t.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of t){let n=document.createElement("style"),a=eo.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,e.appendChild(n)}};var to=class extends ks.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([a,i])=>t.registry.define(a,i)));let o={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return _s(n,t.elementStyles),n}};function Ds(e,t,...o){var n;let a=e.querySelector(t);for(let i of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}var yr=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},$s,Bs=Symbol("constructorPrototype"),Us=Symbol("constructorName"),Fs=Symbol("exportpartsDebouncer"),Ms=Symbol("dynamicDependenciesLoaded"),Ve=class extends to{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[$s]=new Jr(5),this[Us]=this.constructor.name,this[Bs]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Us]&&Object.setPrototypeOf(this,this[Bs])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let t=this.constructor;t[Ms]||(t[Ms]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let i=[...a??[],n];o=Ds(this.shadowRoot,...i)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}scheduleExportpartsUpdate(){var t,o,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[Fs].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(t){var o,n,a,i,c,l;let u=m=>m!=null&&m.trim().length>0,p=t.filter(u).map(m=>m.trim());if(p.length===0){this.removeAttribute("exportparts");return}let g=new Set;for(let m of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let v=(i=(a=m.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],x=(l=(c=m.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(O=>O.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...v,...x).filter(u).map(O=>O.trim()).forEach(O=>g.add(O))}if(g.size===0){this.removeAttribute("exportparts");return}let y=[...g.values()].flatMap(m=>p.map(v=>`${m}:${v}--${m}`));this.setAttribute("exportparts",[...this.part,...y].join(", "))}};$s=Fs;yr([(0,Gt.property)()],Ve.prototype,"exportpartsPrefix",void 0);yr([Ls([])],Ve.prototype,"exportpartsPrefixes",void 0);yr([(0,Gt.property)()],Ve.prototype,"customStylesheet",void 0);yr([(0,Gt.property)()],Ve.prototype,"elementToFocus",void 0);yr([(0,Gt.state)()],Ve.prototype,"useAdoptedStyleSheets",void 0);function gr(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Ws,Hs,zs,mr=Symbol("internalReduxEventsUnsubscribers"),st=Symbol("internalStoresUnsubscribers"),Ot=Symbol("internalStores"),br=class extends Ve{constructor(){super(...arguments),this[Ws]=new Map,this[Hs]=new Map,this[zs]=new Map}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(o=>t.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[Ot].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ot].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[Ot].get(t)}addStore(t,o){var n;o=(n=o??(gr(t)?t.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[Ot].set(o,t),this.subscribeToStore(o,t),this.updateFromStores()}removeStore(t){let o=typeof t=="string"?t:t.name;this.unsubscribeFromStore(o),this[Ot].delete(o)}setupStores(){this.unsubscribeFromStores(),this[Ot].forEach((t,o)=>this.subscribeToStore(o,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let a=this.getStore(t.store);a&&(t.store?this[st].has(t.store):this[st].size>0)&&(this[o]=t.selector(a.getState(),this))}})}subscribeToStore(t,o){var n;this[st].set(t,o.subscribe(()=>this.updateFromStores())),this[mr].set(t,[]),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 c=l=>this[i](l);o.addEventListener(a.eventName,c),this[mr].get(t).push(()=>o.removeEventListener(a.eventName,c))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[st].forEach((t,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(t){var o;this[st].has(t)&&this[st].get(t)(),this[st].delete(t),(o=this[mr].get(t))===null||o===void 0||o.forEach(n=>n()),this[mr].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Ws=st,Hs=Ot,zs=mr;br.reduxProperties=new Map;br.reduxReactiveProperties=new Set;br.reduxEventListeners=new Map;function Ce(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ze(e){return!!e&&!!e[j]}function Ne(e){var t;return!!e&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===Wl}(e)||Array.isArray(e)||!!e[Ys]||!!(!((t=e.constructor)===null||t===void 0)&&t[Ys])||fn(e)||hn(e))}function Ct(e,t,o){o===void 0&&(o=!1),Vt(e)===0?(o?Object.keys:Kt)(e).forEach(function(n){o&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,a){return t(a,n,e)})}function Vt(e){var t=e[j];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:fn(e)?2:hn(e)?3:0}function jt(e,t){return Vt(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function kl(e,t){return Vt(e)===2?e.get(t):e[t]}function Xs(e,t,o){var n=Vt(e);n===2?e.set(t,o):n===3?e.add(o):e[t]=o}function Qs(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function fn(e){return $l&&e instanceof Map}function hn(e){return Fl&&e instanceof Set}function ct(e){return e.o||e.t}function yn(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=tc(e);delete t[j];for(var o=Kt(t),n=0;n<o.length;n++){var a=o[n],i=t[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function gn(e,t){return t===void 0&&(t=!1),mn(e)||Ze(e)||!Ne(e)||(Vt(e)>1&&(e.set=e.add=e.clear=e.delete=Dl),Object.freeze(e),t&&Ct(e,function(o,n){return gn(n,!0)},!0)),e}function Dl(){Ce(2)}function mn(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Be(e){var t=pn[e];return t||Ce(18,e),t}function Bl(e,t){pn[e]||(pn[e]=t)}function ln(){return vr}function nn(e,t){t&&(Be("Patches"),e.u=[],e.s=[],e.v=t)}function ro(e){dn(e),e.p.forEach(Ul),e.p=null}function dn(e){e===vr&&(vr=e.l)}function Gs(e){return vr={p:[],l:vr,h:e,m:!0,_:0}}function Ul(e){var t=e[j];t.i===0||t.i===1?t.j():t.g=!0}function an(e,t){t._=t.p.length;var o=t.p[0],n=e!==void 0&&e!==o;return t.h.O||Be("ES5").S(t,e,n),n?(o[j].P&&(ro(t),Ce(4)),Ne(e)&&(e=oo(t,e),t.l||no(t,e)),t.u&&Be("Patches").M(o[j].t,e,t.u,t.s)):e=oo(t,o,[]),ro(t),t.u&&t.v(t.u,t.s),e!==ec?e:void 0}function oo(e,t,o){if(mn(t))return t;var n=t[j];if(!n)return Ct(t,function(l,u){return js(e,n,t,l,u,o)},!0),t;if(n.A!==e)return t;if(!n.P)return no(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=yn(n.k):n.o,i=a,c=!1;n.i===3&&(i=new Set(a),a.clear(),c=!0),Ct(i,function(l,u){return js(e,n,a,l,u,o,c)}),no(e,a,!1),o&&e.u&&Be("Patches").N(n,o,e.u,e.s)}return n.o}function js(e,t,o,n,a,i,c){if(Ze(a)){var l=oo(e,a,i&&t&&t.i!==3&&!jt(t.R,n)?i.concat(n):void 0);if(Xs(o,n,l),!Ze(l))return;e.m=!1}else c&&o.add(a);if(Ne(a)&&!mn(a)){if(!e.h.D&&e._<1)return;oo(e,a),t&&t.A.l||no(e,a)}}function no(e,t,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&gn(t,o)}function sn(e,t){var o=e[j];return(o?ct(o):e)[t]}function Ks(e,t){if(t in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,t);if(n)return n;o=Object.getPrototypeOf(o)}}function lt(e){e.P||(e.P=!0,e.l&<(e.l))}function cn(e){e.o||(e.o=yn(e.t))}function un(e,t,o){var n=fn(t)?Be("MapSet").F(t,o):hn(t)?Be("MapSet").T(t,o):e.O?function(a,i){var c=Array.isArray(a),l={i:c?1:0,A:i?i.A:ln(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},u=l,p=Sr;c&&(u=[l],p=xr);var g=Proxy.revocable(u,p),y=g.revoke,m=g.proxy;return l.k=m,l.j=y,m}(t,o):Be("ES5").J(t,o);return(o?o.A:ln()).p.push(n),n}function Ml(e){return Ze(e)||Ce(22,e),function t(o){if(!Ne(o))return o;var n,a=o[j],i=Vt(o);if(a){if(!a.P&&(a.i<4||!Be("ES5").K(a)))return a.t;a.I=!0,n=Vs(o,i),a.I=!1}else n=Vs(o,i);return Ct(n,function(c,l){a&&kl(a.t,c)===l||Xs(n,c,t(l))}),i===3?new Set(n):n}(e)}function Vs(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return yn(e)}function Js(){function e(c,l){var u=i[c];return u?u.enumerable=l:i[c]=u={configurable:!0,enumerable:l,get:function(){var p=this[j];return Sr.get(p,c)},set:function(p){var g=this[j];Sr.set(g,c,p)}},u}function t(c){for(var l=c.length-1;l>=0;l--){var u=c[l][j];if(!u.P)switch(u.i){case 5:n(u)&<(u);break;case 4:o(u)&<(u)}}}function o(c){for(var l=c.t,u=c.k,p=Kt(u),g=p.length-1;g>=0;g--){var y=p[g];if(y!==j){var m=l[y];if(m===void 0&&!jt(l,y))return!0;var v=u[y],x=v&&v[j];if(x?x.t!==m:!Qs(v,m))return!0}}var O=!!l[j];return p.length!==Kt(l).length+(O?0:1)}function n(c){var l=c.k;if(l.length!==c.t.length)return!0;var u=Object.getOwnPropertyDescriptor(l,l.length-1);if(u&&!u.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function a(c){c.g&&Ce(3,JSON.stringify(ct(c)))}var i={};Bl("ES5",{J:function(c,l){var u=Array.isArray(c),p=function(y,m){if(y){for(var v=Array(m.length),x=0;x<m.length;x++)Object.defineProperty(v,""+x,e(x,!0));return v}var O=tc(m);delete O[j];for(var T=Kt(O),R=0;R<T.length;R++){var N=T[R];O[N]=e(N,y||!!O[N].enumerable)}return Object.create(Object.getPrototypeOf(m),O)}(u,c),g={i:u?5:4,A:l?l.A:ln(),P:!1,I:!1,R:{},l,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,j,{value:g,writable:!0}),p},S:function(c,l,u){u?Ze(l)&&l[j].A===c&&t(c.p):(c.u&&function p(g){if(g&&typeof g=="object"){var y=g[j];if(y){var m=y.t,v=y.k,x=y.R,O=y.i;if(O===4)Ct(v,function(B){B!==j&&(m[B]!==void 0||jt(m,B)?x[B]||p(v[B]):(x[B]=!0,lt(y)))}),Ct(m,function(B){v[B]!==void 0||jt(v,B)||(x[B]=!1,lt(y))});else if(O===5){if(n(y)&&(lt(y),x.length=!0),v.length<m.length)for(var T=v.length;T<m.length;T++)x[T]=!1;else for(var R=m.length;R<v.length;R++)x[R]=!0;for(var N=Math.min(v.length,m.length),k=0;k<N;k++)v.hasOwnProperty(k)||(x[k]=!0),x[k]===void 0&&p(v[k])}}}}(c.p[0]),t(c.p))},K:function(c){return c.i===4?o(c):n(c)}})}var Zs,vr,bn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",$l=typeof Map<"u",Fl=typeof Set<"u",qs=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",ec=bn?Symbol.for("immer-nothing"):((Zs={})["immer-nothing"]=!0,Zs),Ys=bn?Symbol.for("immer-draftable"):"__$immer_draftable",j=bn?Symbol.for("immer-state"):"__$immer_state";var Wl=""+Object.prototype.constructor,Kt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,tc=Object.getOwnPropertyDescriptors||function(e){var t={};return Kt(e).forEach(function(o){t[o]=Object.getOwnPropertyDescriptor(e,o)}),t},pn={},Sr={get:function(e,t){if(t===j)return e;var o=ct(e);if(!jt(o,t))return function(a,i,c){var l,u=Ks(i,c);return u?"value"in u?u.value:(l=u.get)===null||l===void 0?void 0:l.call(a.k):void 0}(e,o,t);var n=o[t];return e.I||!Ne(n)?n:n===sn(e.t,t)?(cn(e),e.o[t]=un(e.A.h,n,e)):n},has:function(e,t){return t in ct(e)},ownKeys:function(e){return Reflect.ownKeys(ct(e))},set:function(e,t,o){var n=Ks(ct(e),t);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var a=sn(ct(e),t),i=a?.[j];if(i&&i.t===o)return e.o[t]=o,e.R[t]=!1,!0;if(Qs(o,a)&&(o!==void 0||jt(e.t,t)))return!0;cn(e),lt(e)}return e.o[t]===o&&(o!==void 0||t in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[t])||(e.o[t]=o,e.R[t]=!0),!0},deleteProperty:function(e,t){return sn(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,cn(e),lt(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var o=ct(e),n=Reflect.getOwnPropertyDescriptor(o,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:o[t]}},defineProperty:function(){Ce(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Ce(12)}},xr={};Ct(Sr,function(e,t){xr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),xr.deleteProperty=function(e,t){return xr.set.call(this,e,t,void 0)},xr.set=function(e,t,o){return Sr.set.call(this,e[0],t,o,e[0])};var Hl=function(){function e(o){var n=this;this.O=qs,this.D=!0,this.produce=function(a,i,c){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var u=n;return function(O){var T=this;O===void 0&&(O=l);for(var R=arguments.length,N=Array(R>1?R-1:0),k=1;k<R;k++)N[k-1]=arguments[k];return u.produce(O,function(B){var U;return(U=i).call.apply(U,[T,B].concat(N))})}}var p;if(typeof i!="function"&&Ce(6),c!==void 0&&typeof c!="function"&&Ce(7),Ne(a)){var g=Gs(n),y=un(n,a,void 0),m=!0;try{p=i(y),m=!1}finally{m?ro(g):dn(g)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return nn(g,c),an(O,g)},function(O){throw ro(g),O}):(nn(g,c),an(p,g))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===ec&&(p=void 0),n.D&&gn(p,!0),c){var v=[],x=[];Be("Patches").M(a,p,v,x),c(v,x)}return p}Ce(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var g=arguments.length,y=Array(g>1?g-1:0),m=1;m<g;m++)y[m-1]=arguments[m];return n.produceWithPatches(p,function(v){return a.apply(void 0,[v].concat(y))})};var c,l,u=n.produce(a,i,function(p,g){c=p,l=g});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,c,l]}):[u,c,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var t=e.prototype;return t.createDraft=function(o){Ne(o)||Ce(8),Ze(o)&&(o=Ml(o));var n=Gs(this),a=un(this,o,void 0);return a[j].C=!0,dn(n),a},t.finishDraft=function(o,n){var a=o&&o[j],i=a.A;return nn(i,n),an(void 0,i)},t.setAutoFreeze=function(o){this.D=o},t.setUseProxies=function(o){o&&!qs&&Ce(20),this.O=o},t.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var c=Be("Patches").$;return Ze(o)?c(o,n):this.produce(o,function(l){return c(l,n)})},e}(),Se=new Hl,zl=Se.produce,Xm=Se.produceWithPatches.bind(Se),Qm=Se.setAutoFreeze.bind(Se),Jm=Se.setUseProxies.bind(Se),eb=Se.applyPatches.bind(Se),tb=Se.createDraft.bind(Se),rb=Se.finishDraft.bind(Se),ao=zl;function Et(e){"@babel/helpers - typeof";return Et=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Et(e)}function rc(e,t){if(Et(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,t||"default");if(Et(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oc(e){var t=rc(e,"string");return Et(t)=="symbol"?t:t+""}function nc(e,t,o){return(t=oc(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function ac(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,n)}return o}function xn(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?ac(Object(o),!0).forEach(function(n){nc(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ac(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function ce(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var ic=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),vn=function(){return Math.random().toString(36).substring(7).split("").join(".")},io={INIT:"@@redux/INIT"+vn(),REPLACE:"@@redux/REPLACE"+vn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+vn()}};function Gl(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Sn(e,t,o){var n;if(typeof t=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ce(0));if(typeof t=="function"&&typeof o>"u"&&(o=t,t=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ce(1));return o(Sn)(e,t)}if(typeof e!="function")throw new Error(ce(2));var a=e,i=t,c=[],l=c,u=!1;function p(){l===c&&(l=c.slice())}function g(){if(u)throw new Error(ce(3));return i}function y(O){if(typeof O!="function")throw new Error(ce(4));if(u)throw new Error(ce(5));var T=!0;return p(),l.push(O),function(){if(T){if(u)throw new Error(ce(6));T=!1,p();var N=l.indexOf(O);l.splice(N,1),c=null}}}function m(O){if(!Gl(O))throw new Error(ce(7));if(typeof O.type>"u")throw new Error(ce(8));if(u)throw new Error(ce(9));try{u=!0,i=a(i,O)}finally{u=!1}for(var T=c=l,R=0;R<T.length;R++){var N=T[R];N()}return O}function v(O){if(typeof O!="function")throw new Error(ce(10));a=O,m({type:io.REPLACE})}function x(){var O,T=y;return O={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(ce(11));function k(){N.next&&N.next(g())}k();var B=T(k);return{unsubscribe:B}}},O[ic]=function(){return this},O}return m({type:io.INIT}),n={dispatch:m,subscribe:y,getState:g,replaceReducer:v},n[ic]=x,n}function jl(e){Object.keys(e).forEach(function(t){var o=e[t],n=o(void 0,{type:io.INIT});if(typeof n>"u")throw new Error(ce(12));if(typeof o(void 0,{type:io.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ce(13))})}function sc(e){for(var t=Object.keys(e),o={},n=0;n<t.length;n++){var a=t[n];typeof e[a]=="function"&&(o[a]=e[a])}var i=Object.keys(o),c,l;try{jl(o)}catch(u){l=u}return function(p,g){if(p===void 0&&(p={}),l)throw l;if(0)var y;for(var m=!1,v={},x=0;x<i.length;x++){var O=i[x],T=o[O],R=p[O],N=T(R,g);if(typeof N>"u"){var k=g&&g.type;throw new Error(ce(14))}v[O]=N,m=m||N!==R}return m=m||i.length!==Object.keys(p).length,m?v:p}}function Zt(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function cc(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(ce(15))},c={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=t.map(function(u){return u(c)});return i=Zt.apply(void 0,l)(a.dispatch),xn(xn({},a),{},{dispatch:i})}}}function lc(e){var t=function(n){var a=n.dispatch,i=n.getState;return function(c){return function(l){return typeof l=="function"?l(a,i,e):c(l)}}};return t}var dc=lc();dc.withExtraArgument=lc;var On=dc;var yc=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(t,o)};return function(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(t,o);function n(){this.constructor=t}t.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Kl=function(e,t){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(p){return function(g){return u([p,g])}}function u(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){o.label=p[1];break}if(p[0]===6&&o.label<i[1]){o.label=i[1],i=p;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(p);break}i[2]&&o.ops.pop(),o.trys.pop();continue}p=t.call(e,o)}catch(g){p=[6,g],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},qt=function(e,t){for(var o=0,n=t.length,a=e.length;o<n;o++,a++)e[a]=t[o];return e},Vl=Object.defineProperty,Zl=Object.defineProperties,ql=Object.getOwnPropertyDescriptors,uc=Object.getOwnPropertySymbols,Yl=Object.prototype.hasOwnProperty,Xl=Object.prototype.propertyIsEnumerable,pc=function(e,t,o){return t in e?Vl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o},dt=function(e,t){for(var o in t||(t={}))Yl.call(t,o)&&pc(e,o,t[o]);if(uc)for(var n=0,a=uc(t);n<a.length;n++){var o=a[n];Xl.call(t,o)&&pc(e,o,t[o])}return e},Cn=function(e,t){return Zl(e,ql(t))},Ql=function(e,t,o){return new Promise(function(n,a){var i=function(u){try{l(o.next(u))}catch(p){a(p)}},c=function(u){try{l(o.throw(u))}catch(p){a(p)}},l=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(i,c)};l((o=o.apply(e,t)).next())})};var Jl=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Zt:Zt.apply(null,arguments)},vb=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function ed(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var o=t;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return t===o}var td=function(e){yc(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(t.bind.apply(t,qt([void 0],o[0].concat(this)))):new(t.bind.apply(t,qt([void 0],o.concat(this))))},t}(Array),rd=function(e){yc(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(t.bind.apply(t,qt([void 0],o[0].concat(this)))):new(t.bind.apply(t,qt([void 0],o.concat(this))))},t}(Array);function An(e){return Ne(e)?ao(e,function(){}):e}function od(e){return typeof e=="boolean"}function nd(){return function(t){return ad(t)}}function ad(e){e===void 0&&(e={});var t=e.thunk,o=t===void 0?!0:t,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,c=i===void 0?!0:i,l=new td;if(o&&(od(o)?l.push(On):l.push(On.withExtraArgument(o.extraArgument))),0){if(a)var u;if(c)var p}return l}var En=!0;function gc(e){var t=nd(),o=e||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,c=i===void 0?t():i,l=o.devTools,u=l===void 0?!0:l,p=o.preloadedState,g=p===void 0?void 0:p,y=o.enhancers,m=y===void 0?void 0:y,v;if(typeof a=="function")v=a;else if(ed(a))v=sc(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var x=c;if(typeof x=="function"&&(x=x(t),!En&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!En&&x.some(function(B){return typeof B!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=cc.apply(void 0,x),T=Zt;u&&(T=Jl(dt({trace:!En},typeof u=="object"&&u)));var R=new rd(O),N=R;Array.isArray(m)?N=qt([O],m):typeof m=="function"&&(N=m(R));var k=T.apply(void 0,N);return Sn(v,g,k)}function ut(e,t){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(t){var i=t.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return dt(dt({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return o.toString=function(){return""+e},o.type=e,o.match=function(n){return n.type===e},o}function mc(e){var t={},o=[],n,a={addCase:function(i,c){var l=typeof i=="string"?i:i.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=c,a},addMatcher:function(i,c){return o.push({matcher:i,reducer:c}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[t,o,n]}function id(e){return typeof e=="function"}function sd(e,t,o,n){o===void 0&&(o=[]);var a=typeof t=="function"?mc(t):[t,o,n],i=a[0],c=a[1],l=a[2],u;if(id(e))u=function(){return An(e())};else{var p=An(e);u=function(){return p}}function g(y,m){y===void 0&&(y=u());var v=qt([i[m.type]],c.filter(function(x){var O=x.matcher;return O(m)}).map(function(x){var O=x.reducer;return O}));return v.filter(function(x){return!!x}).length===0&&(v=[l]),v.reduce(function(x,O){if(O)if(Ze(x)){var T=x,R=O(T,m);return R===void 0?x:R}else{if(Ne(x))return ao(x,function(N){return O(N,m)});var R=O(x,m);if(R===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return R}return x},y)}return g.getInitialState=u,g}function cd(e,t){return e+"/"+t}function bc(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:An(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},c={},l={};a.forEach(function(g){var y=n[g],m=cd(t,g),v,x;"reducer"in y?(v=y.reducer,x=y.prepare):v=y,i[g]=v,c[m]=v,l[g]=x?ut(m,x):ut(m)});function u(){var g=typeof e.extraReducers=="function"?mc(e.extraReducers):[e.extraReducers],y=g[0],m=y===void 0?{}:y,v=g[1],x=v===void 0?[]:v,O=g[2],T=O===void 0?void 0:O,R=dt(dt({},m),c);return sd(o,function(N){for(var k in R)N.addCase(k,R[k]);for(var B=0,U=x;B<U.length;B++){var fe=U[B];N.addMatcher(fe.matcher,fe.reducer)}T&&N.addDefaultCase(T)})}var p;return{name:t,reducer:function(g,y){return p||(p=u()),p(g,y)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var ld="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",dd=function(e){e===void 0&&(e=21);for(var t="",o=e;o--;)t+=ld[Math.random()*64|0];return t},ud=["name","message","stack","code"],wn=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),fc=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),pd=function(e){if(typeof e=="object"&&e!==null){for(var t={},o=0,n=ud;o<n.length;o++){var a=n[o];typeof e[a]=="string"&&(t[a]=e[a])}return t}return{message:String(e)}},Eb=function(){function e(t,o,n){var a=ut(t+"/fulfilled",function(g,y,m,v){return{payload:g,meta:Cn(dt({},v||{}),{arg:m,requestId:y,requestStatus:"fulfilled"})}}),i=ut(t+"/pending",function(g,y,m){return{payload:void 0,meta:Cn(dt({},m||{}),{arg:y,requestId:g,requestStatus:"pending"})}}),c=ut(t+"/rejected",function(g,y,m,v,x){return{payload:v,error:(n&&n.serializeError||pd)(g||"Rejected"),meta:Cn(dt({},x||{}),{arg:m,requestId:y,rejectedWithValue:!!v,requestStatus:"rejected",aborted:g?.name==="AbortError",condition:g?.name==="ConditionError"})}}),l=!1,u=typeof AbortController<"u"?AbortController:function(){function g(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return g.prototype.abort=function(){},g}();function p(g){return function(y,m,v){var x=n?.idGenerator?n.idGenerator(g):dd(),O=new u,T,R=!1;function N(B){T=B,O.abort()}var k=function(){return Ql(this,null,function(){var B,U,fe,Ie,de,Pe,oe;return Kl(this,function(h){switch(h.label){case 0:return h.trys.push([0,4,,5]),Ie=(B=n?.condition)==null?void 0:B.call(n,g,{getState:m,extra:v}),hd(Ie)?[4,Ie]:[3,2];case 1:Ie=h.sent(),h.label=2;case 2:if(Ie===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return R=!0,de=new Promise(function(b,P){return O.signal.addEventListener("abort",function(){return P({name:"AbortError",message:T||"Aborted"})})}),y(i(x,g,(U=n?.getPendingMeta)==null?void 0:U.call(n,{requestId:x,arg:g},{getState:m,extra:v}))),[4,Promise.race([de,Promise.resolve(o(g,{dispatch:y,getState:m,extra:v,requestId:x,signal:O.signal,abort:N,rejectWithValue:function(b,P){return new wn(b,P)},fulfillWithValue:function(b,P){return new fc(b,P)}})).then(function(b){if(b instanceof wn)throw b;return b instanceof fc?a(b.payload,x,g,b.meta):a(b,x,g)})])];case 3:return fe=h.sent(),[3,5];case 4:return Pe=h.sent(),fe=Pe instanceof wn?c(null,x,g,Pe.payload,Pe.meta):c(Pe,x,g),[3,5];case 5:return oe=n&&!n.dispatchConditionRejection&&c.match(fe)&&fe.meta.condition,oe||y(fe),[2,fe]}})})}();return Object.assign(k,{abort:N,requestId:x,arg:g,unwrap:function(){return k.then(fd)}})}}return Object.assign(p,{pending:i,rejected:c,fulfilled:a,typePrefix:t})}return e.withTypes=function(){return e},e}();function fd(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function hd(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var xc="listener",vc="completed",Sc="cancelled",wb="task-"+Sc,Ab="task-"+vc,Rb=xc+"-"+Sc,Nb=xc+"-"+vc;var Rn="listenerMiddleware";var Tb=ut(Rn+"/add"),Ib=ut(Rn+"/removeAll"),Pb=ut(Rn+"/remove");var hc,Lb=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(hc||(hc=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},yd=function(e){return function(t){setTimeout(t,e)}},_b=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:yd(10);Js();function gd(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}var so=class extends gd(Object){};window.ftReduxStores||(window.ftReduxStores={});var Oc=class e extends so{static get(t){var o;let n=typeof t=="string"?t:t.name,a=typeof t=="string"?void 0:t,i=window.ftReduxStores[n];if(gr(i))return i;if(a==null)return;let c=bc({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=gc({reducer:(u,p)=>p.type==="CLEAR_FT_REDUX_STORE"?c.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...p.overwrites}:c.reducer(u,p)});return window.ftReduxStores[a.name]=new e(c,l,a.eventBus)}constructor(t,o,n){super(),this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Qr;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,c,l)=>{let u=c,p=i[u];return p?(...g)=>{let y=p(...g.map(a));return this.reduxStore.dispatch(y),y}:g=>{this.setState({[u]:a(g)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var po=S(L());var co=class extends Ke{async listMySearches(){let{session:t}=_.getState();return As(t,ee.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var lo=class extends Ke{async listMyBookmarks(){let t=_.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var bd="ft-user-assets",uo=po.FtReduxStore.get({name:bd,initialState:{savedSearches:void 0,bookmarks:void 0}}),Nn=class{constructor(){this.currentSession=_.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new lo,this.savedSearchesService=new co,_.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:o}=_.getState();(0,po.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),uo.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),uo.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();uo.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let o=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;uo.actions.bookmarks(o)}}},yx=new Nn;var Tn=class{addCommand(t,o=!1){_.commands.add(t,o)}consumeCommand(t){return _.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Tn;var Cc=S(L()),In=class{highlightHtml(t,o,n){(0,Cc.highlightHtml)(t,o,n)}};window.FluidTopicsHighlightHtmlService=new In;var Ec=S(L());var Pn=class{isDate(t){var o,n,a,i;return(i=(a=((n=(o=_.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===t))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(t,o){var n,a,i;return Ec.DateFormatter.format(t,(n=o?.locale)!==null&&n!==void 0?n:_.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new Pn;var wc=S(L());var qe=class{static get(t,o){var n,a,i,c;let l=_.getState(),{lang:u,region:p}=(a=(n=l.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new wc.SearchPlaceConverter(l.baseUrl,(c=(i=window.FluidTopicsClientConfiguration)===null||i===void 0?void 0:i.predefinedSorts)!==null&&c!==void 0?c:{},t??20,l.searchInAllLanguagesAllowed,o??`${u}-${p}`)}};var Ln=class{urlToSearchRequest(t){return qe.get().parse(t)}searchRequestToUrl(t){return qe.get().serialize(t)}};window.FluidTopicsUrlService=new Ln;var pt=S(L());var wt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};wt.eventName="change";var _n=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let o=sessionStorage.getItem(this.itemName(t));return o?JSON.parse(o):void 0}set(t,o){sessionStorage.setItem(this.itemName(t),JSON.stringify(o))}},Ac=new _n;var fo=class e extends pt.WithEventBus{static build(){return new e(window.history,Ac,()=>window.location,!1)}constructor(t,o,n,a){var i,c;super(),this.history=t,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(c=(i=t.state)===null||i===void 0?void 0:i.index)!==null&&c!==void 0?c:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(t,o=!1){let n=o&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,pt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new wt(this.currentItem())),0)}installProxies(){let t=o=>(n,a,[i,c,l])=>{let u=o(),p={...u===this.currentIndex?this.currentState:void 0,...i,index:u,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(a,[p,c,l]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let o=this.history.length-1;o>=0;o--)t?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(t,o=!1){var n,a,i;let c={...this.buildCurrentState(),...t,index:this.currentIndex,title:(n=t?.title)!==null&&n!==void 0?n:this.currentState.title},l=o?(a=t?.majorState)!==null&&a!==void 0?a:this.currentState.majorState:(i=this.currentState.majorState)!==null&&i!==void 0?i:t?.majorState;l!=null&&(c.majorState=l),this.setCurrentState(c)}addHistoryChangeListener(t){this.addEventListener(wt.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(wt.eventName,t)}currentItem(){return(0,pt.deepCopy)(this.currentState)}back(){let t=this.previousMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,pt.deepCopy)(this.states[this.previousMajorPosition()])}previousMajorPosition(){let t=this.currentIndex;for(;t>0&&!this.isMajorState(t);)t--;return this.previousExistingPosition(t)}forward(){let t=this.nextMajorPosition();t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){return(0,pt.deepCopy)(this.states[this.nextMajorPosition()])}nextMajorPosition(){let t=this.currentIndex;do t++;while(t<this.states.length&&!this.isMajorState(t));do t++;while(t<this.states.length&&!this.isMajorState(t));return this.previousExistingPosition(t)}previousExistingPosition(t){let o=t;do o--;while(o>0&&!this.hasState(o));return o}buildCurrentState(){var t,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&o!==void 0?o:document.title}}hasState(t){return this.states[t]!=null}isMajorState(t){var o,n;return this.hasState(t)&&((n=(o=this.states[t])===null||o===void 0?void 0:o.majorState)!==null&&n!==void 0?n:!0)}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=fo.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});(0,Rc.customElement)("ft-app-context")(q);var kn=class e extends Event{constructor(){super(e.eventName)}};kn.eventName="search-context-clear-all-filters";var xd=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},Bn=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},Nc=Symbol("registerInterval"),Dn=Symbol("registerAttempts"),vd=40;function Sd(e){class t extends e{setSearchStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Dn]=0,this[Nc]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Dn]>vd?window.clearInterval(this[Nc]):(this[Dn]++,this.dispatchEvent(new Bn))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return xd([(0,Ic.state)()],t.prototype,"stateManager",void 0),t}var Yt=class extends Sd(Tc.FtLitElementRedux){};var $c=S(L());var xo=S(W()),vo=S(te()),So=S(L());var Pc=S(W());var Lc=Pc.css`
|
|
1144
|
-
`;var mo=S(L());var Uc=S(
|
|
1143
|
+
`}update(t){var o,n,a,i,c;super.update(t),t.has("baseUrl")&&(_.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&_.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&_.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&_.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&_.actions.noCustom(this.noCustom),t.has("editorMode")&&_.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&_.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&_.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(l=>zt.addContext(l)),t.has("openExternalDocumentInNewTab")&&_.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&_.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&_.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(_.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),_.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),_.actions.searchInAllLanguagesAllowed((c=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&c!==void 0?c:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};q.elementDefinitions={};q.styles=Ns;se([(0,me.property)()],q.prototype,"baseUrl",void 0);se([(0,me.property)()],q.prototype,"apiIntegrationIdentifier",void 0);se([(0,me.property)()],q.prototype,"uiLocale",void 0);se([(0,Re.jsonProperty)(null)],q.prototype,"availableUiLocales",void 0);se([(0,Re.jsonProperty)(null)],q.prototype,"metadataConfiguration",void 0);se([(0,me.property)({type:Boolean})],q.prototype,"editorMode",void 0);se([(0,me.property)({type:Boolean})],q.prototype,"noCustom",void 0);se([(0,me.property)({type:Boolean})],q.prototype,"openExternalDocumentInNewTab",void 0);se([(0,me.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],q.prototype,"noCustomComponent",void 0);se([(0,me.property)({type:Boolean})],q.prototype,"withManualResources",void 0);se([(0,me.property)({type:Boolean})],q.prototype,"navigatorOnline",void 0);se([(0,me.property)({type:Boolean})],q.prototype,"forcedOffline",void 0);se([(0,me.property)({type:Object})],q.prototype,"apiProvider",void 0);se([(0,Re.jsonProperty)([])],q.prototype,"messageContexts",void 0);se([(0,Re.jsonProperty)(void 0)],q.prototype,"session",void 0);se([(0,me.state)()],q.prototype,"localesConfiguration",void 0);var md=S(ee());function Pl(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var o,n,a;if(Array.isArray(e)){if(o=e.length,o!=t.length)return!1;for(n=o;n--!==0;)if(!Yr(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!Yr(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let i=c=>Object.keys(c).filter(l=>c[l]!=null);if(a=i(e),o=a.length,o!==i(t).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[n]))return!1;for(n=o;n--!==0;){let c=a[n];if(!Yr(e[c],t[c]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Yr(e,t){try{return Pl(e,t)}catch{return!1}}function Xr(e,t){return!Yr(e,t)}var Ll=S(ee(),1);var Qr=class{constructor(){this.queue=[]}add(t,o=!1){o&&this.clear(t.type),this.queue.push(t)}consume(t){let o=this.queue.find(n=>n.type===t);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(t){typeof t=="string"?this.queue=this.queue.filter(o=>o.type!==t):this.queue=this.queue.filter(o=>!t.test(o.type))}};var Gt=S(ee(),1);var Ps=S(ee(),1);function Ls(e,t){let o=()=>JSON.parse(JSON.stringify(e));return(0,Ps.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:Xr,...t??{}})}var Jr=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,o;let n=[...this.callbacks];this.callbacks=[];let a=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let c of n)try{await c()}catch(l){a(l);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var ks=S(W(),1);var eo=globalThis,_l=eo.ShadowRoot&&(eo.ShadyCSS===void 0||eo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Um=Symbol();var _s=(e,t)=>{if(_l)e.adoptedStyleSheets=t.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of t){let n=document.createElement("style"),a=eo.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,e.appendChild(n)}};var to=class extends ks.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([a,i])=>t.registry.define(a,i)));let o={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return _s(n,t.elementStyles),n}};function Ds(e,t,...o){var n;let a=e.querySelector(t);for(let i of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}var yr=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},$s,Bs=Symbol("constructorPrototype"),Us=Symbol("constructorName"),Fs=Symbol("exportpartsDebouncer"),Ms=Symbol("dynamicDependenciesLoaded"),Ve=class extends to{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[$s]=new Jr(5),this[Us]=this.constructor.name,this[Bs]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Us]&&Object.setPrototypeOf(this,this[Bs])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let t=this.constructor;t[Ms]||(t[Ms]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let i=[...a??[],n];o=Ds(this.shadowRoot,...i)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}scheduleExportpartsUpdate(){var t,o,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[Fs].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(t){var o,n,a,i,c,l;let u=m=>m!=null&&m.trim().length>0,p=t.filter(u).map(m=>m.trim());if(p.length===0){this.removeAttribute("exportparts");return}let g=new Set;for(let m of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let v=(i=(a=m.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],x=(l=(c=m.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(O=>O.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...v,...x).filter(u).map(O=>O.trim()).forEach(O=>g.add(O))}if(g.size===0){this.removeAttribute("exportparts");return}let y=[...g.values()].flatMap(m=>p.map(v=>`${m}:${v}--${m}`));this.setAttribute("exportparts",[...this.part,...y].join(", "))}};$s=Fs;yr([(0,Gt.property)()],Ve.prototype,"exportpartsPrefix",void 0);yr([Ls([])],Ve.prototype,"exportpartsPrefixes",void 0);yr([(0,Gt.property)()],Ve.prototype,"customStylesheet",void 0);yr([(0,Gt.property)()],Ve.prototype,"elementToFocus",void 0);yr([(0,Gt.state)()],Ve.prototype,"useAdoptedStyleSheets",void 0);function gr(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Ws,Hs,zs,mr=Symbol("internalReduxEventsUnsubscribers"),st=Symbol("internalStoresUnsubscribers"),Ot=Symbol("internalStores"),br=class extends Ve{constructor(){super(...arguments),this[Ws]=new Map,this[Hs]=new Map,this[zs]=new Map}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(o=>t.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[Ot].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ot].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[Ot].get(t)}addStore(t,o){var n;o=(n=o??(gr(t)?t.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[Ot].set(o,t),this.subscribeToStore(o,t),this.updateFromStores()}removeStore(t){let o=typeof t=="string"?t:t.name;this.unsubscribeFromStore(o),this[Ot].delete(o)}setupStores(){this.unsubscribeFromStores(),this[Ot].forEach((t,o)=>this.subscribeToStore(o,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let a=this.getStore(t.store);a&&(t.store?this[st].has(t.store):this[st].size>0)&&(this[o]=t.selector(a.getState(),this))}})}subscribeToStore(t,o){var n;this[st].set(t,o.subscribe(()=>this.updateFromStores())),this[mr].set(t,[]),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 c=l=>this[i](l);o.addEventListener(a.eventName,c),this[mr].get(t).push(()=>o.removeEventListener(a.eventName,c))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[st].forEach((t,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(t){var o;this[st].has(t)&&this[st].get(t)(),this[st].delete(t),(o=this[mr].get(t))===null||o===void 0||o.forEach(n=>n()),this[mr].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Ws=st,Hs=Ot,zs=mr;br.reduxProperties=new Map;br.reduxReactiveProperties=new Set;br.reduxEventListeners=new Map;function Ce(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ze(e){return!!e&&!!e[G]}function Ne(e){var t;return!!e&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===Wl}(e)||Array.isArray(e)||!!e[Ys]||!!(!((t=e.constructor)===null||t===void 0)&&t[Ys])||fn(e)||hn(e))}function Ct(e,t,o){o===void 0&&(o=!1),Vt(e)===0?(o?Object.keys:Kt)(e).forEach(function(n){o&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,a){return t(a,n,e)})}function Vt(e){var t=e[G];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:fn(e)?2:hn(e)?3:0}function jt(e,t){return Vt(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function kl(e,t){return Vt(e)===2?e.get(t):e[t]}function Xs(e,t,o){var n=Vt(e);n===2?e.set(t,o):n===3?e.add(o):e[t]=o}function Qs(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function fn(e){return $l&&e instanceof Map}function hn(e){return Fl&&e instanceof Set}function ct(e){return e.o||e.t}function yn(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=tc(e);delete t[G];for(var o=Kt(t),n=0;n<o.length;n++){var a=o[n],i=t[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function gn(e,t){return t===void 0&&(t=!1),mn(e)||Ze(e)||!Ne(e)||(Vt(e)>1&&(e.set=e.add=e.clear=e.delete=Dl),Object.freeze(e),t&&Ct(e,function(o,n){return gn(n,!0)},!0)),e}function Dl(){Ce(2)}function mn(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Be(e){var t=pn[e];return t||Ce(18,e),t}function Bl(e,t){pn[e]||(pn[e]=t)}function ln(){return vr}function nn(e,t){t&&(Be("Patches"),e.u=[],e.s=[],e.v=t)}function ro(e){dn(e),e.p.forEach(Ul),e.p=null}function dn(e){e===vr&&(vr=e.l)}function Gs(e){return vr={p:[],l:vr,h:e,m:!0,_:0}}function Ul(e){var t=e[G];t.i===0||t.i===1?t.j():t.g=!0}function an(e,t){t._=t.p.length;var o=t.p[0],n=e!==void 0&&e!==o;return t.h.O||Be("ES5").S(t,e,n),n?(o[G].P&&(ro(t),Ce(4)),Ne(e)&&(e=oo(t,e),t.l||no(t,e)),t.u&&Be("Patches").M(o[G].t,e,t.u,t.s)):e=oo(t,o,[]),ro(t),t.u&&t.v(t.u,t.s),e!==ec?e:void 0}function oo(e,t,o){if(mn(t))return t;var n=t[G];if(!n)return Ct(t,function(l,u){return js(e,n,t,l,u,o)},!0),t;if(n.A!==e)return t;if(!n.P)return no(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=yn(n.k):n.o,i=a,c=!1;n.i===3&&(i=new Set(a),a.clear(),c=!0),Ct(i,function(l,u){return js(e,n,a,l,u,o,c)}),no(e,a,!1),o&&e.u&&Be("Patches").N(n,o,e.u,e.s)}return n.o}function js(e,t,o,n,a,i,c){if(Ze(a)){var l=oo(e,a,i&&t&&t.i!==3&&!jt(t.R,n)?i.concat(n):void 0);if(Xs(o,n,l),!Ze(l))return;e.m=!1}else c&&o.add(a);if(Ne(a)&&!mn(a)){if(!e.h.D&&e._<1)return;oo(e,a),t&&t.A.l||no(e,a)}}function no(e,t,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&gn(t,o)}function sn(e,t){var o=e[G];return(o?ct(o):e)[t]}function Ks(e,t){if(t in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,t);if(n)return n;o=Object.getPrototypeOf(o)}}function lt(e){e.P||(e.P=!0,e.l&<(e.l))}function cn(e){e.o||(e.o=yn(e.t))}function un(e,t,o){var n=fn(t)?Be("MapSet").F(t,o):hn(t)?Be("MapSet").T(t,o):e.O?function(a,i){var c=Array.isArray(a),l={i:c?1:0,A:i?i.A:ln(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},u=l,p=Sr;c&&(u=[l],p=xr);var g=Proxy.revocable(u,p),y=g.revoke,m=g.proxy;return l.k=m,l.j=y,m}(t,o):Be("ES5").J(t,o);return(o?o.A:ln()).p.push(n),n}function Ml(e){return Ze(e)||Ce(22,e),function t(o){if(!Ne(o))return o;var n,a=o[G],i=Vt(o);if(a){if(!a.P&&(a.i<4||!Be("ES5").K(a)))return a.t;a.I=!0,n=Vs(o,i),a.I=!1}else n=Vs(o,i);return Ct(n,function(c,l){a&&kl(a.t,c)===l||Xs(n,c,t(l))}),i===3?new Set(n):n}(e)}function Vs(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return yn(e)}function Js(){function e(c,l){var u=i[c];return u?u.enumerable=l:i[c]=u={configurable:!0,enumerable:l,get:function(){var p=this[G];return Sr.get(p,c)},set:function(p){var g=this[G];Sr.set(g,c,p)}},u}function t(c){for(var l=c.length-1;l>=0;l--){var u=c[l][G];if(!u.P)switch(u.i){case 5:n(u)&<(u);break;case 4:o(u)&<(u)}}}function o(c){for(var l=c.t,u=c.k,p=Kt(u),g=p.length-1;g>=0;g--){var y=p[g];if(y!==G){var m=l[y];if(m===void 0&&!jt(l,y))return!0;var v=u[y],x=v&&v[G];if(x?x.t!==m:!Qs(v,m))return!0}}var O=!!l[G];return p.length!==Kt(l).length+(O?0:1)}function n(c){var l=c.k;if(l.length!==c.t.length)return!0;var u=Object.getOwnPropertyDescriptor(l,l.length-1);if(u&&!u.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function a(c){c.g&&Ce(3,JSON.stringify(ct(c)))}var i={};Bl("ES5",{J:function(c,l){var u=Array.isArray(c),p=function(y,m){if(y){for(var v=Array(m.length),x=0;x<m.length;x++)Object.defineProperty(v,""+x,e(x,!0));return v}var O=tc(m);delete O[G];for(var T=Kt(O),R=0;R<T.length;R++){var N=T[R];O[N]=e(N,y||!!O[N].enumerable)}return Object.create(Object.getPrototypeOf(m),O)}(u,c),g={i:u?5:4,A:l?l.A:ln(),P:!1,I:!1,R:{},l,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,G,{value:g,writable:!0}),p},S:function(c,l,u){u?Ze(l)&&l[G].A===c&&t(c.p):(c.u&&function p(g){if(g&&typeof g=="object"){var y=g[G];if(y){var m=y.t,v=y.k,x=y.R,O=y.i;if(O===4)Ct(v,function(B){B!==G&&(m[B]!==void 0||jt(m,B)?x[B]||p(v[B]):(x[B]=!0,lt(y)))}),Ct(m,function(B){v[B]!==void 0||jt(v,B)||(x[B]=!1,lt(y))});else if(O===5){if(n(y)&&(lt(y),x.length=!0),v.length<m.length)for(var T=v.length;T<m.length;T++)x[T]=!1;else for(var R=m.length;R<v.length;R++)x[R]=!0;for(var N=Math.min(v.length,m.length),k=0;k<N;k++)v.hasOwnProperty(k)||(x[k]=!0),x[k]===void 0&&p(v[k])}}}}(c.p[0]),t(c.p))},K:function(c){return c.i===4?o(c):n(c)}})}var Zs,vr,bn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",$l=typeof Map<"u",Fl=typeof Set<"u",qs=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",ec=bn?Symbol.for("immer-nothing"):((Zs={})["immer-nothing"]=!0,Zs),Ys=bn?Symbol.for("immer-draftable"):"__$immer_draftable",G=bn?Symbol.for("immer-state"):"__$immer_state";var Wl=""+Object.prototype.constructor,Kt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,tc=Object.getOwnPropertyDescriptors||function(e){var t={};return Kt(e).forEach(function(o){t[o]=Object.getOwnPropertyDescriptor(e,o)}),t},pn={},Sr={get:function(e,t){if(t===G)return e;var o=ct(e);if(!jt(o,t))return function(a,i,c){var l,u=Ks(i,c);return u?"value"in u?u.value:(l=u.get)===null||l===void 0?void 0:l.call(a.k):void 0}(e,o,t);var n=o[t];return e.I||!Ne(n)?n:n===sn(e.t,t)?(cn(e),e.o[t]=un(e.A.h,n,e)):n},has:function(e,t){return t in ct(e)},ownKeys:function(e){return Reflect.ownKeys(ct(e))},set:function(e,t,o){var n=Ks(ct(e),t);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var a=sn(ct(e),t),i=a?.[G];if(i&&i.t===o)return e.o[t]=o,e.R[t]=!1,!0;if(Qs(o,a)&&(o!==void 0||jt(e.t,t)))return!0;cn(e),lt(e)}return e.o[t]===o&&(o!==void 0||t in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[t])||(e.o[t]=o,e.R[t]=!0),!0},deleteProperty:function(e,t){return sn(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,cn(e),lt(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var o=ct(e),n=Reflect.getOwnPropertyDescriptor(o,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:o[t]}},defineProperty:function(){Ce(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Ce(12)}},xr={};Ct(Sr,function(e,t){xr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),xr.deleteProperty=function(e,t){return xr.set.call(this,e,t,void 0)},xr.set=function(e,t,o){return Sr.set.call(this,e[0],t,o,e[0])};var Hl=function(){function e(o){var n=this;this.O=qs,this.D=!0,this.produce=function(a,i,c){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var u=n;return function(O){var T=this;O===void 0&&(O=l);for(var R=arguments.length,N=Array(R>1?R-1:0),k=1;k<R;k++)N[k-1]=arguments[k];return u.produce(O,function(B){var U;return(U=i).call.apply(U,[T,B].concat(N))})}}var p;if(typeof i!="function"&&Ce(6),c!==void 0&&typeof c!="function"&&Ce(7),Ne(a)){var g=Gs(n),y=un(n,a,void 0),m=!0;try{p=i(y),m=!1}finally{m?ro(g):dn(g)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return nn(g,c),an(O,g)},function(O){throw ro(g),O}):(nn(g,c),an(p,g))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===ec&&(p=void 0),n.D&&gn(p,!0),c){var v=[],x=[];Be("Patches").M(a,p,v,x),c(v,x)}return p}Ce(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var g=arguments.length,y=Array(g>1?g-1:0),m=1;m<g;m++)y[m-1]=arguments[m];return n.produceWithPatches(p,function(v){return a.apply(void 0,[v].concat(y))})};var c,l,u=n.produce(a,i,function(p,g){c=p,l=g});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,c,l]}):[u,c,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var t=e.prototype;return t.createDraft=function(o){Ne(o)||Ce(8),Ze(o)&&(o=Ml(o));var n=Gs(this),a=un(this,o,void 0);return a[G].C=!0,dn(n),a},t.finishDraft=function(o,n){var a=o&&o[G],i=a.A;return nn(i,n),an(void 0,i)},t.setAutoFreeze=function(o){this.D=o},t.setUseProxies=function(o){o&&!qs&&Ce(20),this.O=o},t.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var c=Be("Patches").$;return Ze(o)?c(o,n):this.produce(o,function(l){return c(l,n)})},e}(),Se=new Hl,zl=Se.produce,Xm=Se.produceWithPatches.bind(Se),Qm=Se.setAutoFreeze.bind(Se),Jm=Se.setUseProxies.bind(Se),eb=Se.applyPatches.bind(Se),tb=Se.createDraft.bind(Se),rb=Se.finishDraft.bind(Se),ao=zl;function Et(e){"@babel/helpers - typeof";return Et=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Et(e)}function rc(e,t){if(Et(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,t||"default");if(Et(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oc(e){var t=rc(e,"string");return Et(t)=="symbol"?t:t+""}function nc(e,t,o){return(t=oc(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function ac(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,n)}return o}function xn(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?ac(Object(o),!0).forEach(function(n){nc(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ac(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function ce(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var ic=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),vn=function(){return Math.random().toString(36).substring(7).split("").join(".")},io={INIT:"@@redux/INIT"+vn(),REPLACE:"@@redux/REPLACE"+vn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+vn()}};function Gl(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Sn(e,t,o){var n;if(typeof t=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ce(0));if(typeof t=="function"&&typeof o>"u"&&(o=t,t=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ce(1));return o(Sn)(e,t)}if(typeof e!="function")throw new Error(ce(2));var a=e,i=t,c=[],l=c,u=!1;function p(){l===c&&(l=c.slice())}function g(){if(u)throw new Error(ce(3));return i}function y(O){if(typeof O!="function")throw new Error(ce(4));if(u)throw new Error(ce(5));var T=!0;return p(),l.push(O),function(){if(T){if(u)throw new Error(ce(6));T=!1,p();var N=l.indexOf(O);l.splice(N,1),c=null}}}function m(O){if(!Gl(O))throw new Error(ce(7));if(typeof O.type>"u")throw new Error(ce(8));if(u)throw new Error(ce(9));try{u=!0,i=a(i,O)}finally{u=!1}for(var T=c=l,R=0;R<T.length;R++){var N=T[R];N()}return O}function v(O){if(typeof O!="function")throw new Error(ce(10));a=O,m({type:io.REPLACE})}function x(){var O,T=y;return O={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(ce(11));function k(){N.next&&N.next(g())}k();var B=T(k);return{unsubscribe:B}}},O[ic]=function(){return this},O}return m({type:io.INIT}),n={dispatch:m,subscribe:y,getState:g,replaceReducer:v},n[ic]=x,n}function jl(e){Object.keys(e).forEach(function(t){var o=e[t],n=o(void 0,{type:io.INIT});if(typeof n>"u")throw new Error(ce(12));if(typeof o(void 0,{type:io.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ce(13))})}function sc(e){for(var t=Object.keys(e),o={},n=0;n<t.length;n++){var a=t[n];typeof e[a]=="function"&&(o[a]=e[a])}var i=Object.keys(o),c,l;try{jl(o)}catch(u){l=u}return function(p,g){if(p===void 0&&(p={}),l)throw l;if(0)var y;for(var m=!1,v={},x=0;x<i.length;x++){var O=i[x],T=o[O],R=p[O],N=T(R,g);if(typeof N>"u"){var k=g&&g.type;throw new Error(ce(14))}v[O]=N,m=m||N!==R}return m=m||i.length!==Object.keys(p).length,m?v:p}}function Zt(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function cc(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(ce(15))},c={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=t.map(function(u){return u(c)});return i=Zt.apply(void 0,l)(a.dispatch),xn(xn({},a),{},{dispatch:i})}}}function lc(e){var t=function(n){var a=n.dispatch,i=n.getState;return function(c){return function(l){return typeof l=="function"?l(a,i,e):c(l)}}};return t}var dc=lc();dc.withExtraArgument=lc;var On=dc;var yc=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(t,o)};return function(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(t,o);function n(){this.constructor=t}t.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Kl=function(e,t){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(p){return function(g){return u([p,g])}}function u(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){o.label=p[1];break}if(p[0]===6&&o.label<i[1]){o.label=i[1],i=p;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(p);break}i[2]&&o.ops.pop(),o.trys.pop();continue}p=t.call(e,o)}catch(g){p=[6,g],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},qt=function(e,t){for(var o=0,n=t.length,a=e.length;o<n;o++,a++)e[a]=t[o];return e},Vl=Object.defineProperty,Zl=Object.defineProperties,ql=Object.getOwnPropertyDescriptors,uc=Object.getOwnPropertySymbols,Yl=Object.prototype.hasOwnProperty,Xl=Object.prototype.propertyIsEnumerable,pc=function(e,t,o){return t in e?Vl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o},dt=function(e,t){for(var o in t||(t={}))Yl.call(t,o)&&pc(e,o,t[o]);if(uc)for(var n=0,a=uc(t);n<a.length;n++){var o=a[n];Xl.call(t,o)&&pc(e,o,t[o])}return e},Cn=function(e,t){return Zl(e,ql(t))},Ql=function(e,t,o){return new Promise(function(n,a){var i=function(u){try{l(o.next(u))}catch(p){a(p)}},c=function(u){try{l(o.throw(u))}catch(p){a(p)}},l=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(i,c)};l((o=o.apply(e,t)).next())})};var Jl=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Zt:Zt.apply(null,arguments)},vb=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function ed(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var o=t;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return t===o}var td=function(e){yc(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(t.bind.apply(t,qt([void 0],o[0].concat(this)))):new(t.bind.apply(t,qt([void 0],o.concat(this))))},t}(Array),rd=function(e){yc(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(t.bind.apply(t,qt([void 0],o[0].concat(this)))):new(t.bind.apply(t,qt([void 0],o.concat(this))))},t}(Array);function An(e){return Ne(e)?ao(e,function(){}):e}function od(e){return typeof e=="boolean"}function nd(){return function(t){return ad(t)}}function ad(e){e===void 0&&(e={});var t=e.thunk,o=t===void 0?!0:t,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,c=i===void 0?!0:i,l=new td;if(o&&(od(o)?l.push(On):l.push(On.withExtraArgument(o.extraArgument))),0){if(a)var u;if(c)var p}return l}var En=!0;function gc(e){var t=nd(),o=e||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,c=i===void 0?t():i,l=o.devTools,u=l===void 0?!0:l,p=o.preloadedState,g=p===void 0?void 0:p,y=o.enhancers,m=y===void 0?void 0:y,v;if(typeof a=="function")v=a;else if(ed(a))v=sc(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var x=c;if(typeof x=="function"&&(x=x(t),!En&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!En&&x.some(function(B){return typeof B!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=cc.apply(void 0,x),T=Zt;u&&(T=Jl(dt({trace:!En},typeof u=="object"&&u)));var R=new rd(O),N=R;Array.isArray(m)?N=qt([O],m):typeof m=="function"&&(N=m(R));var k=T.apply(void 0,N);return Sn(v,g,k)}function ut(e,t){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(t){var i=t.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return dt(dt({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return o.toString=function(){return""+e},o.type=e,o.match=function(n){return n.type===e},o}function mc(e){var t={},o=[],n,a={addCase:function(i,c){var l=typeof i=="string"?i:i.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=c,a},addMatcher:function(i,c){return o.push({matcher:i,reducer:c}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[t,o,n]}function id(e){return typeof e=="function"}function sd(e,t,o,n){o===void 0&&(o=[]);var a=typeof t=="function"?mc(t):[t,o,n],i=a[0],c=a[1],l=a[2],u;if(id(e))u=function(){return An(e())};else{var p=An(e);u=function(){return p}}function g(y,m){y===void 0&&(y=u());var v=qt([i[m.type]],c.filter(function(x){var O=x.matcher;return O(m)}).map(function(x){var O=x.reducer;return O}));return v.filter(function(x){return!!x}).length===0&&(v=[l]),v.reduce(function(x,O){if(O)if(Ze(x)){var T=x,R=O(T,m);return R===void 0?x:R}else{if(Ne(x))return ao(x,function(N){return O(N,m)});var R=O(x,m);if(R===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return R}return x},y)}return g.getInitialState=u,g}function cd(e,t){return e+"/"+t}function bc(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:An(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},c={},l={};a.forEach(function(g){var y=n[g],m=cd(t,g),v,x;"reducer"in y?(v=y.reducer,x=y.prepare):v=y,i[g]=v,c[m]=v,l[g]=x?ut(m,x):ut(m)});function u(){var g=typeof e.extraReducers=="function"?mc(e.extraReducers):[e.extraReducers],y=g[0],m=y===void 0?{}:y,v=g[1],x=v===void 0?[]:v,O=g[2],T=O===void 0?void 0:O,R=dt(dt({},m),c);return sd(o,function(N){for(var k in R)N.addCase(k,R[k]);for(var B=0,U=x;B<U.length;B++){var fe=U[B];N.addMatcher(fe.matcher,fe.reducer)}T&&N.addDefaultCase(T)})}var p;return{name:t,reducer:function(g,y){return p||(p=u()),p(g,y)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var ld="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",dd=function(e){e===void 0&&(e=21);for(var t="",o=e;o--;)t+=ld[Math.random()*64|0];return t},ud=["name","message","stack","code"],wn=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),fc=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),pd=function(e){if(typeof e=="object"&&e!==null){for(var t={},o=0,n=ud;o<n.length;o++){var a=n[o];typeof e[a]=="string"&&(t[a]=e[a])}return t}return{message:String(e)}},Eb=function(){function e(t,o,n){var a=ut(t+"/fulfilled",function(g,y,m,v){return{payload:g,meta:Cn(dt({},v||{}),{arg:m,requestId:y,requestStatus:"fulfilled"})}}),i=ut(t+"/pending",function(g,y,m){return{payload:void 0,meta:Cn(dt({},m||{}),{arg:y,requestId:g,requestStatus:"pending"})}}),c=ut(t+"/rejected",function(g,y,m,v,x){return{payload:v,error:(n&&n.serializeError||pd)(g||"Rejected"),meta:Cn(dt({},x||{}),{arg:m,requestId:y,rejectedWithValue:!!v,requestStatus:"rejected",aborted:g?.name==="AbortError",condition:g?.name==="ConditionError"})}}),l=!1,u=typeof AbortController<"u"?AbortController:function(){function g(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return g.prototype.abort=function(){},g}();function p(g){return function(y,m,v){var x=n?.idGenerator?n.idGenerator(g):dd(),O=new u,T,R=!1;function N(B){T=B,O.abort()}var k=function(){return Ql(this,null,function(){var B,U,fe,Ie,de,Pe,oe;return Kl(this,function(h){switch(h.label){case 0:return h.trys.push([0,4,,5]),Ie=(B=n?.condition)==null?void 0:B.call(n,g,{getState:m,extra:v}),hd(Ie)?[4,Ie]:[3,2];case 1:Ie=h.sent(),h.label=2;case 2:if(Ie===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return R=!0,de=new Promise(function(b,P){return O.signal.addEventListener("abort",function(){return P({name:"AbortError",message:T||"Aborted"})})}),y(i(x,g,(U=n?.getPendingMeta)==null?void 0:U.call(n,{requestId:x,arg:g},{getState:m,extra:v}))),[4,Promise.race([de,Promise.resolve(o(g,{dispatch:y,getState:m,extra:v,requestId:x,signal:O.signal,abort:N,rejectWithValue:function(b,P){return new wn(b,P)},fulfillWithValue:function(b,P){return new fc(b,P)}})).then(function(b){if(b instanceof wn)throw b;return b instanceof fc?a(b.payload,x,g,b.meta):a(b,x,g)})])];case 3:return fe=h.sent(),[3,5];case 4:return Pe=h.sent(),fe=Pe instanceof wn?c(null,x,g,Pe.payload,Pe.meta):c(Pe,x,g),[3,5];case 5:return oe=n&&!n.dispatchConditionRejection&&c.match(fe)&&fe.meta.condition,oe||y(fe),[2,fe]}})})}();return Object.assign(k,{abort:N,requestId:x,arg:g,unwrap:function(){return k.then(fd)}})}}return Object.assign(p,{pending:i,rejected:c,fulfilled:a,typePrefix:t})}return e.withTypes=function(){return e},e}();function fd(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function hd(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var xc="listener",vc="completed",Sc="cancelled",wb="task-"+Sc,Ab="task-"+vc,Rb=xc+"-"+Sc,Nb=xc+"-"+vc;var Rn="listenerMiddleware";var Tb=ut(Rn+"/add"),Ib=ut(Rn+"/removeAll"),Pb=ut(Rn+"/remove");var hc,Lb=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(hc||(hc=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},yd=function(e){return function(t){setTimeout(t,e)}},_b=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:yd(10);Js();function gd(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}var so=class extends gd(Object){};window.ftReduxStores||(window.ftReduxStores={});var Oc=class e extends so{static get(t){var o;let n=typeof t=="string"?t:t.name,a=typeof t=="string"?void 0:t,i=window.ftReduxStores[n];if(gr(i))return i;if(a==null)return;let c=bc({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=gc({reducer:(u,p)=>p.type==="CLEAR_FT_REDUX_STORE"?c.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...p.overwrites}:c.reducer(u,p)});return window.ftReduxStores[a.name]=new e(c,l,a.eventBus)}constructor(t,o,n){super(),this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Qr;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,c,l)=>{let u=c,p=i[u];return p?(...g)=>{let y=p(...g.map(a));return this.reduxStore.dispatch(y),y}:g=>{this.setState({[u]:a(g)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var po=S(L());var co=class extends Ke{async listMySearches(){let{session:t}=_.getState();return As(t,J.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var lo=class extends Ke{async listMyBookmarks(){let t=_.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var bd="ft-user-assets",uo=po.FtReduxStore.get({name:bd,initialState:{savedSearches:void 0,bookmarks:void 0}}),Nn=class{constructor(){this.currentSession=_.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new lo,this.savedSearchesService=new co,_.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:o}=_.getState();(0,po.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),uo.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),uo.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();uo.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let o=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;uo.actions.bookmarks(o)}}},yx=new Nn;var Tn=class{addCommand(t,o=!1){_.commands.add(t,o)}consumeCommand(t){return _.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Tn;var Cc=S(L()),In=class{highlightHtml(t,o,n){(0,Cc.highlightHtml)(t,o,n)}};window.FluidTopicsHighlightHtmlService=new In;var Ec=S(L());var Pn=class{isDate(t){var o,n,a,i;return(i=(a=((n=(o=_.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===t))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(t,o){var n,a,i;return Ec.DateFormatter.format(t,(n=o?.locale)!==null&&n!==void 0?n:_.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new Pn;var wc=S(L());var qe=class{static get(t,o){var n,a,i,c;let l=_.getState(),{lang:u,region:p}=(a=(n=l.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new wc.SearchPlaceConverter(l.baseUrl,(c=(i=window.FluidTopicsClientConfiguration)===null||i===void 0?void 0:i.predefinedSorts)!==null&&c!==void 0?c:{},t??20,l.searchInAllLanguagesAllowed,o??`${u}-${p}`)}};var Ln=class{urlToSearchRequest(t){return qe.get().parse(t)}searchRequestToUrl(t){return qe.get().serialize(t)}};window.FluidTopicsUrlService=new Ln;var pt=S(L());var wt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};wt.eventName="change";var _n=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let o=sessionStorage.getItem(this.itemName(t));return o?JSON.parse(o):void 0}set(t,o){sessionStorage.setItem(this.itemName(t),JSON.stringify(o))}},Ac=new _n;var fo=class e extends pt.WithEventBus{static build(){return new e(window.history,Ac,()=>window.location,!1)}constructor(t,o,n,a){var i,c;super(),this.history=t,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(c=(i=t.state)===null||i===void 0?void 0:i.index)!==null&&c!==void 0?c:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(t,o=!1){let n=o&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,pt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new wt(this.currentItem())),0)}installProxies(){let t=o=>(n,a,[i,c,l])=>{let u=o(),p={...u===this.currentIndex?this.currentState:void 0,...i,index:u,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(a,[p,c,l]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let o=this.history.length-1;o>=0;o--)t?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(t,o=!1){var n,a,i;let c={...this.buildCurrentState(),...t,index:this.currentIndex,title:(n=t?.title)!==null&&n!==void 0?n:this.currentState.title},l=o?(a=t?.majorState)!==null&&a!==void 0?a:this.currentState.majorState:(i=this.currentState.majorState)!==null&&i!==void 0?i:t?.majorState;l!=null&&(c.majorState=l),this.setCurrentState(c)}addHistoryChangeListener(t){this.addEventListener(wt.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(wt.eventName,t)}currentItem(){return(0,pt.deepCopy)(this.currentState)}back(){let t=this.previousMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,pt.deepCopy)(this.states[this.previousMajorPosition()])}previousMajorPosition(){let t=this.currentIndex;for(;t>0&&!this.isMajorState(t);)t--;return this.previousExistingPosition(t)}forward(){let t=this.nextMajorPosition();t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){return(0,pt.deepCopy)(this.states[this.nextMajorPosition()])}nextMajorPosition(){let t=this.currentIndex;do t++;while(t<this.states.length&&!this.isMajorState(t));do t++;while(t<this.states.length&&!this.isMajorState(t));return this.previousExistingPosition(t)}previousExistingPosition(t){let o=t;do o--;while(o>0&&!this.hasState(o));return o}buildCurrentState(){var t,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&o!==void 0?o:document.title}}hasState(t){return this.states[t]!=null}isMajorState(t){var o,n;return this.hasState(t)&&((n=(o=this.states[t])===null||o===void 0?void 0:o.majorState)!==null&&n!==void 0?n:!0)}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=fo.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});(0,Rc.customElement)("ft-app-context")(q);var kn=class e extends Event{constructor(){super(e.eventName)}};kn.eventName="search-context-clear-all-filters";var xd=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},Bn=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},Nc=Symbol("registerInterval"),Dn=Symbol("registerAttempts"),vd=40;function Sd(e){class t extends e{setSearchStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Dn]=0,this[Nc]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Dn]>vd?window.clearInterval(this[Nc]):(this[Dn]++,this.dispatchEvent(new Bn))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return xd([(0,Ic.state)()],t.prototype,"stateManager",void 0),t}var Yt=class extends Sd(Tc.FtLitElementRedux){};var $c=S(L());var xo=S(W()),vo=S(ee()),So=S(L());var Pc=S(W());var Lc=Pc.css`
|
|
1144
|
+
`;var mo=S(L());var Uc=S(ee());var Od=S(L());function _c(e){return e.match(/^[\w-]+\.[\w-]+$/)}var Cd=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},kc=Symbol("i18nAttributes"),Dc=Symbol("i18nListAttributes"),Mc=Symbol("i18nProperties"),yo=Symbol("i18nContexts"),Or=Symbol("i18nUnsubs");function bo(e){var t,o;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[o]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?qr:zt}i18n(i){var c;this.hasI18nContext(i.context)||this.addI18nContext(i.context,void 0,i.custom);let l=(c=i.args)!==null&&c!==void 0?c:i.argsProvider?i.argsProvider(this):[];return this.getI18nService(i.custom).resolveMessage(i.context,i.key,...l)}customI18n(i,c){if(_c(i)){let[l,u]=i.split(".");return this.i18n({custom:!0,context:l,key:u,...c})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((c,l,u)=>i.has(l)||typeof c.argsProvider=="function"),this.updateI18nProperties(c=>typeof c.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((c,l,u)=>{var p;return((p=u?.context)===null||p===void 0?void 0:p.toLowerCase())===i}),this.updateI18nProperties(c=>c.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var c,l;let u=this,p=(g,y,m)=>m?.context&&m.key&&i(g,y,m)?{...m,message:this.i18n({context:m.context,key:m.key,...g})}:m;(c=this[kc])===null||c===void 0||c.forEach((g,y)=>u[y]=p(g,y,u[y])),(l=this[Dc])===null||l===void 0||l.forEach((g,y)=>{var m;return u[y]=(m=u[y])===null||m===void 0?void 0:m.map(v=>p(g,y,v))})}updateI18nProperties(i){var c;(c=this[Mc])===null||c===void 0||c.forEach((l,u)=>{i(l,u)&&(this[u]=this.i18n(l))})}addI18nMessages(i,c,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,c,l)}addI18nContext(i,c,l){let u=(typeof i=="string"?i:i.name).toLowerCase();l=typeof i=="string"?l:i.custom,this[yo].set(u,{isCustomContext:l}),this[Or].has(u)||this[Or].set(u,this.getI18nService(l).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(l).prepareContext(u,c)}hasI18nContext(i){return this[yo].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[yo].forEach((i,c)=>this.addI18nContext(c,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Or].forEach(i=>i()),this[Or].clear()}}return t=yo,o=Or,Cd([(0,Uc.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}var Bc=class extends bo(mo.FtLitElement){},go=class extends bo(mo.FtLitElementRedux){};var Cr=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},Te=class extends go{constructor(){super(),this.editorMode=!1,this.addStore(_)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":xo.nothing:xo.html`
|
|
1145
1145
|
<span class="ft-i18n">
|
|
1146
1146
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
1147
1147
|
</span>
|
|
1148
|
-
`}update(t){var o;super.update(t),["context","key","defaultMessage"].some(n=>t.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};Te.elementDefinitions={};Te.styles=Lc;Cr([(0,So.redux)()],Te.prototype,"editorMode",void 0);Cr([(0,vo.property)()],Te.prototype,"context",void 0);Cr([(0,vo.property)()],Te.prototype,"key",void 0);Cr([(0,So.jsonProperty)([])],Te.prototype,"args",void 0);Cr([(0,vo.property)()],Te.prototype,"defaultMessage",void 0);var Oo=class e{static build(t){return new e(t)}static buildCustom(t){return new e(t,!0)}static fromGwt(t){return new e(t)}get service(){return this.custom?qr:zt}constructor(t,o=!1){this.name=t,this.custom=o,this.properties=new Proxy({},{get:(n,a)=>{let i=a;return c=>({context:this.name,key:i,custom:this.custom,args:typeof c=="function"?void 0:c,argsProvider:typeof c=="function"?c:void 0})}}),this.messages=new Proxy({},{get:(n,a)=>(...i)=>this.service.resolveMessage(this.name,a,...i)}),this.rawMessages=new Proxy({},{get:(n,a)=>this.service.resolveRawMessage(this.name,a)})}};(0,$c.customElement)("ft-i18n")(Te);var Er=Oo.build("designedSearchInput");var Me=S(
|
|
1148
|
+
`}update(t){var o;super.update(t),["context","key","defaultMessage"].some(n=>t.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};Te.elementDefinitions={};Te.styles=Lc;Cr([(0,So.redux)()],Te.prototype,"editorMode",void 0);Cr([(0,vo.property)()],Te.prototype,"context",void 0);Cr([(0,vo.property)()],Te.prototype,"key",void 0);Cr([(0,So.jsonProperty)([])],Te.prototype,"args",void 0);Cr([(0,vo.property)()],Te.prototype,"defaultMessage",void 0);var Oo=class e{static build(t){return new e(t)}static buildCustom(t){return new e(t,!0)}static fromGwt(t){return new e(t)}get service(){return this.custom?qr:zt}constructor(t,o=!1){this.name=t,this.custom=o,this.properties=new Proxy({},{get:(n,a)=>{let i=a;return c=>({context:this.name,key:i,custom:this.custom,args:typeof c=="function"?void 0:c,argsProvider:typeof c=="function"?c:void 0})}}),this.messages=new Proxy({},{get:(n,a)=>(...i)=>this.service.resolveMessage(this.name,a,...i)}),this.rawMessages=new Proxy({},{get:(n,a)=>this.service.resolveRawMessage(this.name,a)})}};(0,$c.customElement)("ft-i18n")(Te);var Er=Oo.build("designedSearchInput");var Me=S(ee()),jc=S(Lr());var wr=S(L()),Xt=S(W()),Eo=S(ee());var Fc=S(W());var Wc=Fc.css`
|
|
1149
1149
|
* {
|
|
1150
1150
|
box-sizing: border-box;
|
|
1151
1151
|
}
|