@fluid-topics/ft-reader-search-in-document 1.1.15 → 1.1.16

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.
@@ -58,12 +58,12 @@ const $={attribute:!0,type:String,converter:S,reflect:!1,hasChanged:N},R=(t=$,e,
58
58
  * @license
59
59
  * Copyright 2017 Google LLC
60
60
  * SPDX-License-Identifier: BSD-3-Clause
61
- */const W=t=>new Promise((e=>setTimeout(e,t)));async function j(t,e=5,o){return await async function(t,e=5,o){let r,i,n=await t();for(r=i=performance.now();!n&&(!o||i-r<o);)await W(e),n=await t(),i=performance.now();if(null==n)throw new Error("Timeout exceeded")}((async()=>null!=await t()),e,o),await t()}function F(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var o,r,i;if(Array.isArray(t)){if((o=t.length)!=e.length)return!1;for(r=o;0!=r--;)if(!F(t[r],e[r]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;for(r of t.entries())if(!F(r[1],e.get(r[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((o=(i=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(r=o;0!=r--;)if(!Object.prototype.hasOwnProperty.call(e,i[r]))return!1;for(r=o;0!=r--;){var n=i[r];if(!F(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}const P=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function B(t,e){const o=()=>JSON.parse(JSON.stringify(t));return k({type:Object,converter:{fromAttribute:t=>{if(null==t)return o();try{return JSON.parse(t)}catch{return o()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!F(t,e),...null!=e?e:{}})}
61
+ */const W=t=>new Promise((e=>setTimeout(e,t)));async function j(t,e=5,o){return await async function(t,e=5,o){let r,i,n=await t();for(r=i=performance.now();!n&&(!o||i-r<o);)await W(e),n=await t(),i=performance.now();if(null==n)throw new Error("Timeout exceeded")}((async()=>null!=await t()),e,o),await t()}function F(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var o,r,i;if(Array.isArray(t)){if((o=t.length)!=e.length)return!1;for(r=o;0!=r--;)if(!F(t[r],e[r]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;for(r of t.entries())if(!F(r[1],e.get(r[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((o=(i=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(r=o;0!=r--;)if(!Object.prototype.hasOwnProperty.call(e,i[r]))return!1;for(r=o;0!=r--;){var n=i[r];if(!F(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}const P=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function M(t,e){const o=()=>JSON.parse(JSON.stringify(t));return k({type:Object,converter:{fromAttribute:t=>{if(null==t)return o();try{return JSON.parse(t)}catch{return o()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!F(t,e),...null!=e?e:{}})}
62
62
  /**
63
63
  * @license
64
64
  * Copyright 2017 Google LLC
65
65
  * SPDX-License-Identifier: BSD-3-Clause
66
- */const M=globalThis,K=M.trustedTypes,T=K?K.createPolicy("lit-html",{createHTML:t=>t}):void 0,D="$lit$",z=`lit$${(Math.random()+"").slice(9)}$`,Z="?"+z,_=`<${Z}>`,H=document,G=()=>H.createComment(""),q=t=>null===t||"object"!=typeof t&&"function"!=typeof t,V=Array.isArray,Y=t=>V(t)||"function"==typeof t?.[Symbol.iterator],X="[ \t\n\f\r]",Q=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,J=/-->/g,tt=/>/g,et=RegExp(`>|${X}(?:([^\\s"'>=/]+)(${X}*=${X}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),ot=/'/g,rt=/"/g,it=/^(?:script|style|textarea|title)$/i,nt=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),at=Symbol.for("lit-noChange"),st=Symbol.for("lit-nothing"),ct=new WeakMap,lt=H.createTreeWalker(H,129);function ft(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==T?T.createHTML(e):e}const ht=(t,e)=>{const o=t.length-1,r=[];let i,n=2===e?"<svg>":"",a=Q;for(let e=0;e<o;e++){const o=t[e];let s,c,l=-1,f=0;for(;f<o.length&&(a.lastIndex=f,c=a.exec(o),null!==c);)f=a.lastIndex,a===Q?"!--"===c[1]?a=J:void 0!==c[1]?a=tt:void 0!==c[2]?(it.test(c[2])&&(i=RegExp("</"+c[2],"g")),a=et):void 0!==c[3]&&(a=et):a===et?">"===c[0]?(a=i??Q,l=-1):void 0===c[1]?l=-2:(l=a.lastIndex-c[2].length,s=c[1],a=void 0===c[3]?et:'"'===c[3]?rt:ot):a===rt||a===ot?a=et:a===J||a===tt?a=Q:(a=et,i=void 0);const h=a===et&&t[e+1].startsWith("/>")?" ":"";n+=a===Q?o+_:l>=0?(r.push(s),o.slice(0,l)+D+o.slice(l)+z+h):o+z+(-2===l?e:h)}return[ft(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),r]};let ut=class t{constructor({strings:e,_$litType$:o},r){let i;this.parts=[];let n=0,a=0;const s=e.length-1,c=this.parts,[l,f]=ht(e,o);if(this.el=t.createElement(l,r),lt.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=lt.nextNode())&&c.length<s;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(D)){const e=f[a++],o=i.getAttribute(t).split(z),r=/([.?@])?(.*)/.exec(e);c.push({type:1,index:n,name:r[2],strings:o,ctor:"."===r[1]?bt:"?"===r[1]?mt:"@"===r[1]?vt:gt}),i.removeAttribute(t)}else t.startsWith(z)&&(c.push({type:6,index:n}),i.removeAttribute(t));if(it.test(i.tagName)){const t=i.textContent.split(z),e=t.length-1;if(e>0){i.textContent=K?K.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],G()),lt.nextNode(),c.push({type:2,index:++n});i.append(t[e],G())}}}else if(8===i.nodeType)if(i.data===Z)c.push({type:2,index:n});else{let t=-1;for(;-1!==(t=i.data.indexOf(z,t+1));)c.push({type:7,index:n}),t+=z.length-1}n++}}static createElement(t,e){const o=H.createElement("template");return o.innerHTML=t,o}};function pt(t,e,o=t,r){if(e===at)return e;let i=void 0!==r?o._$Co?.[r]:o._$Cl;const n=q(e)?void 0:e._$litDirective$;return i?.constructor!==n&&(i?._$AO?.(!1),void 0===n?i=void 0:(i=new n(t),i._$AT(t,o,r)),void 0!==r?(o._$Co??=[])[r]=i:o._$Cl=i),void 0!==i&&(e=pt(t,i._$AS(t,e.values),i,r)),e}let dt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,r=(t?.creationScope??H).importNode(e,!0);lt.currentNode=r;let i=lt.nextNode(),n=0,a=0,s=o[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new yt(i,i.nextSibling,this,t):1===s.type?e=new s.ctor(i,s.name,s.strings,this,t):6===s.type&&(e=new xt(i,this,t)),this._$AV.push(e),s=o[++a]}n!==s?.index&&(i=lt.nextNode(),n++)}return lt.currentNode=H,r}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},yt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,r){this.type=2,this._$AH=st,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=pt(this,t,e),q(t)?t===st||null==t||""===t?(this._$AH!==st&&this._$AR(),this._$AH=st):t!==this._$AH&&t!==at&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):Y(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==st&&q(this._$AH)?this._$AA.nextSibling.data=t:this.$(H.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=ut.createElement(ft(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new dt(r,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=ct.get(t.strings);return void 0===e&&ct.set(t.strings,e=new ut(t)),e}T(e){V(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let r,i=0;for(const n of e)i===o.length?o.push(r=new t(this.k(G()),this.k(G()),this,this.options)):r=o[i],r._$AI(n),i++;i<o.length&&(this._$AR(r&&r._$AB.nextSibling,i),o.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},gt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,i){this.type=1,this._$AH=st,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=st}_$AI(t,e=this,o,r){const i=this.strings;let n=!1;if(void 0===i)t=pt(this,t,e,0),n=!q(t)||t!==this._$AH&&t!==at,n&&(this._$AH=t);else{const r=t;let a,s;for(t=i[0],a=0;a<i.length-1;a++)s=pt(this,r[o+a],e,a),s===at&&(s=this._$AH[a]),n||=!q(s)||s!==this._$AH[a],s===st?t=st:t!==st&&(t+=(s??"")+i[a+1]),this._$AH[a]=s}n&&!r&&this.O(t)}O(t){t===st?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},bt=class extends gt{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===st?void 0:t}},mt=class extends gt{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==st)}},vt=class extends gt{constructor(t,e,o,r,i){super(t,e,o,r,i),this.type=5}_$AI(t,e=this){if((t=pt(this,t,e,0)??st)===at)return;const o=this._$AH,r=t===st&&o!==st||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,i=t!==st&&(o===st||r);r&&this.element.removeEventListener(this.name,this,o),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},xt=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){pt(this,t)}};const Ot={j:D,P:z,A:Z,C:1,M:ht,L:dt,R:Y,V:pt,D:yt,I:gt,H:mt,N:vt,U:bt,B:xt},wt=M.litHtmlPolyfillSupport;wt?.(ut,yt),(M.litHtmlVersions??=[]).push("3.1.0");
66
+ */const B=globalThis,D=B.trustedTypes,K=D?D.createPolicy("lit-html",{createHTML:t=>t}):void 0,T="$lit$",z=`lit$${(Math.random()+"").slice(9)}$`,Z="?"+z,_=`<${Z}>`,H=document,G=()=>H.createComment(""),q=t=>null===t||"object"!=typeof t&&"function"!=typeof t,V=Array.isArray,Y=t=>V(t)||"function"==typeof t?.[Symbol.iterator],X="[ \t\n\f\r]",Q=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,J=/-->/g,tt=/>/g,et=RegExp(`>|${X}(?:([^\\s"'>=/]+)(${X}*=${X}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),ot=/'/g,rt=/"/g,it=/^(?:script|style|textarea|title)$/i,nt=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),at=Symbol.for("lit-noChange"),st=Symbol.for("lit-nothing"),ct=new WeakMap,lt=H.createTreeWalker(H,129);function ft(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==K?K.createHTML(e):e}const ht=(t,e)=>{const o=t.length-1,r=[];let i,n=2===e?"<svg>":"",a=Q;for(let e=0;e<o;e++){const o=t[e];let s,c,l=-1,f=0;for(;f<o.length&&(a.lastIndex=f,c=a.exec(o),null!==c);)f=a.lastIndex,a===Q?"!--"===c[1]?a=J:void 0!==c[1]?a=tt:void 0!==c[2]?(it.test(c[2])&&(i=RegExp("</"+c[2],"g")),a=et):void 0!==c[3]&&(a=et):a===et?">"===c[0]?(a=i??Q,l=-1):void 0===c[1]?l=-2:(l=a.lastIndex-c[2].length,s=c[1],a=void 0===c[3]?et:'"'===c[3]?rt:ot):a===rt||a===ot?a=et:a===J||a===tt?a=Q:(a=et,i=void 0);const h=a===et&&t[e+1].startsWith("/>")?" ":"";n+=a===Q?o+_:l>=0?(r.push(s),o.slice(0,l)+T+o.slice(l)+z+h):o+z+(-2===l?e:h)}return[ft(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),r]};let ut=class t{constructor({strings:e,_$litType$:o},r){let i;this.parts=[];let n=0,a=0;const s=e.length-1,c=this.parts,[l,f]=ht(e,o);if(this.el=t.createElement(l,r),lt.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=lt.nextNode())&&c.length<s;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(T)){const e=f[a++],o=i.getAttribute(t).split(z),r=/([.?@])?(.*)/.exec(e);c.push({type:1,index:n,name:r[2],strings:o,ctor:"."===r[1]?bt:"?"===r[1]?mt:"@"===r[1]?vt:gt}),i.removeAttribute(t)}else t.startsWith(z)&&(c.push({type:6,index:n}),i.removeAttribute(t));if(it.test(i.tagName)){const t=i.textContent.split(z),e=t.length-1;if(e>0){i.textContent=D?D.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],G()),lt.nextNode(),c.push({type:2,index:++n});i.append(t[e],G())}}}else if(8===i.nodeType)if(i.data===Z)c.push({type:2,index:n});else{let t=-1;for(;-1!==(t=i.data.indexOf(z,t+1));)c.push({type:7,index:n}),t+=z.length-1}n++}}static createElement(t,e){const o=H.createElement("template");return o.innerHTML=t,o}};function pt(t,e,o=t,r){if(e===at)return e;let i=void 0!==r?o._$Co?.[r]:o._$Cl;const n=q(e)?void 0:e._$litDirective$;return i?.constructor!==n&&(i?._$AO?.(!1),void 0===n?i=void 0:(i=new n(t),i._$AT(t,o,r)),void 0!==r?(o._$Co??=[])[r]=i:o._$Cl=i),void 0!==i&&(e=pt(t,i._$AS(t,e.values),i,r)),e}let dt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,r=(t?.creationScope??H).importNode(e,!0);lt.currentNode=r;let i=lt.nextNode(),n=0,a=0,s=o[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new yt(i,i.nextSibling,this,t):1===s.type?e=new s.ctor(i,s.name,s.strings,this,t):6===s.type&&(e=new xt(i,this,t)),this._$AV.push(e),s=o[++a]}n!==s?.index&&(i=lt.nextNode(),n++)}return lt.currentNode=H,r}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},yt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,r){this.type=2,this._$AH=st,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=pt(this,t,e),q(t)?t===st||null==t||""===t?(this._$AH!==st&&this._$AR(),this._$AH=st):t!==this._$AH&&t!==at&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):Y(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==st&&q(this._$AH)?this._$AA.nextSibling.data=t:this.$(H.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=ut.createElement(ft(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new dt(r,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=ct.get(t.strings);return void 0===e&&ct.set(t.strings,e=new ut(t)),e}T(e){V(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let r,i=0;for(const n of e)i===o.length?o.push(r=new t(this.k(G()),this.k(G()),this,this.options)):r=o[i],r._$AI(n),i++;i<o.length&&(this._$AR(r&&r._$AB.nextSibling,i),o.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},gt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,i){this.type=1,this._$AH=st,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=st}_$AI(t,e=this,o,r){const i=this.strings;let n=!1;if(void 0===i)t=pt(this,t,e,0),n=!q(t)||t!==this._$AH&&t!==at,n&&(this._$AH=t);else{const r=t;let a,s;for(t=i[0],a=0;a<i.length-1;a++)s=pt(this,r[o+a],e,a),s===at&&(s=this._$AH[a]),n||=!q(s)||s!==this._$AH[a],s===st?t=st:t!==st&&(t+=(s??"")+i[a+1]),this._$AH[a]=s}n&&!r&&this.O(t)}O(t){t===st?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},bt=class extends gt{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===st?void 0:t}},mt=class extends gt{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==st)}},vt=class extends gt{constructor(t,e,o,r,i){super(t,e,o,r,i),this.type=5}_$AI(t,e=this){if((t=pt(this,t,e,0)??st)===at)return;const o=this._$AH,r=t===st&&o!==st||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,i=t!==st&&(o===st||r);r&&this.element.removeEventListener(this.name,this,o),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},xt=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){pt(this,t)}};const Ot={j:T,P:z,A:Z,C:1,M:ht,L:dt,R:Y,V:pt,D:yt,I:gt,H:mt,N:vt,U:bt,B:xt},wt=B.litHtmlPolyfillSupport;wt?.(ut,yt),(B.litHtmlVersions??=[]).push("3.1.0");
67
67
  /**
68
68
  * @license
69
69
  * Copyright 2019 Google LLC
@@ -74,7 +74,7 @@ const St=globalThis,Nt=St.ShadowRoot&&(void 0===St.ShadyCSS||St.ShadyCSS.nativeS
74
74
  * @license
75
75
  * Copyright 2017 Google LLC
76
76
  * SPDX-License-Identifier: BSD-3-Clause
77
- */,{is:It,defineProperty:Lt,getOwnPropertyDescriptor:At,getOwnPropertyNames:Wt,getOwnPropertySymbols:jt,getPrototypeOf:Ft}=Object,Pt=globalThis,Bt=Pt.trustedTypes,Mt=Bt?Bt.emptyScript:"",Kt=Pt.reactiveElementPolyfillSupport,Tt=(t,e)=>t,Dt={toAttribute(t,e){switch(e){case Boolean:t=t?Mt:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},zt=(t,e)=>!It(t,e),Zt={attribute:!0,type:String,converter:Dt,reflect:!1,hasChanged:zt};Symbol.metadata??=Symbol("metadata"),Pt.litPropertyMetadata??=new WeakMap;let _t=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Zt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),r=this.getPropertyDescriptor(t,o,e);void 0!==r&&Lt(this.prototype,t,r)}}static getPropertyDescriptor(t,e,o){const{get:r,set:i}=At(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return r?.call(this)},set(e){const n=r?.call(this);i.call(this,e),this.requestUpdate(t,n,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Zt}static _$Ei(){if(this.hasOwnProperty(Tt("elementProperties")))return;const t=Ft(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Tt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Tt("properties"))){const t=this.properties,e=[...Wt(t),...jt(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(Ut(t))}else void 0!==t&&e.push(Ut(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(Nt)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),r=St.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){const o=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,o);if(void 0!==r&&!0===o.reflect){const i=(void 0!==o.converter?.toAttribute?o.converter:Dt).toAttribute(e,o.type);this._$Em=t,null==i?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(t,e){const o=this.constructor,r=o._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=o.getPropertyOptions(r),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:Dt;this._$Em=r,this[r]=i.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o,r=!1,i){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??zt)(r?i:this[t],e))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};_t.elementStyles=[],_t.shadowRootOptions={mode:"open"},_t[Tt("elementProperties")]=new Map,_t[Tt("finalized")]=new Map,Kt?.({ReactiveElement:_t}),(Pt.reactiveElementVersions??=[]).push("2.0.2");
77
+ */,{is:It,defineProperty:Lt,getOwnPropertyDescriptor:At,getOwnPropertyNames:Wt,getOwnPropertySymbols:jt,getPrototypeOf:Ft}=Object,Pt=globalThis,Mt=Pt.trustedTypes,Bt=Mt?Mt.emptyScript:"",Dt=Pt.reactiveElementPolyfillSupport,Kt=(t,e)=>t,Tt={toAttribute(t,e){switch(e){case Boolean:t=t?Bt:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},zt=(t,e)=>!It(t,e),Zt={attribute:!0,type:String,converter:Tt,reflect:!1,hasChanged:zt};Symbol.metadata??=Symbol("metadata"),Pt.litPropertyMetadata??=new WeakMap;let _t=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Zt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),r=this.getPropertyDescriptor(t,o,e);void 0!==r&&Lt(this.prototype,t,r)}}static getPropertyDescriptor(t,e,o){const{get:r,set:i}=At(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return r?.call(this)},set(e){const n=r?.call(this);i.call(this,e),this.requestUpdate(t,n,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Zt}static _$Ei(){if(this.hasOwnProperty(Kt("elementProperties")))return;const t=Ft(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Kt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Kt("properties"))){const t=this.properties,e=[...Wt(t),...jt(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(Ut(t))}else void 0!==t&&e.push(Ut(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(Nt)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),r=St.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){const o=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,o);if(void 0!==r&&!0===o.reflect){const i=(void 0!==o.converter?.toAttribute?o.converter:Tt).toAttribute(e,o.type);this._$Em=t,null==i?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(t,e){const o=this.constructor,r=o._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=o.getPropertyOptions(r),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:Tt;this._$Em=r,this[r]=i.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o,r=!1,i){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??zt)(r?i:this[t],e))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};_t.elementStyles=[],_t.shadowRootOptions={mode:"open"},_t[Kt("elementProperties")]=new Map,_t[Kt("finalized")]=new Map,Dt?.({ReactiveElement:_t}),(Pt.reactiveElementVersions??=[]).push("2.0.2");
78
78
  /**
79
79
  * @license
80
80
  * Copyright 2017 Google LLC
@@ -91,7 +91,7 @@ let Ee=class extends _t{constructor(){super(...arguments),this.renderOptions={ho
91
91
  * @license
92
92
  * Copyright 2019 Google LLC
93
93
  * SPDX-License-Identifier: BSD-3-Clause
94
- */class Be extends Ee{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,o])=>t.registry.define(e,o))));const e={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{Pe?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),r=Fe.litNonce;void 0!==r&&o.setAttribute("nonce",r),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var Me,Ke=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Te=Symbol("constructorPrototype"),De=Symbol("constructorName"),ze=Symbol("exportpartsDebouncer");class Ze extends Be{constructor(){super(),this[Me]=new n(5),this[De]=this.constructor.name,this[Te]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[De]&&Object.setPrototypeOf(this,this[Te])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,o;if((null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==o?o:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[ze].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,o,r,i,n,a;const s=t=>null!=t&&t.trim().length>0,c=t.filter(s).map((t=>t.trim()));if(0===c.length)return void this.removeAttribute("exportparts");const l=new Set;for(let t of null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==o?o:[]){const e=null!==(i=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==i?i:[],o=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...e,...o).filter(s).map((t=>t.trim())).forEach((t=>l.add(t)))}if(0===l.size)return void this.removeAttribute("exportparts");const f=[...l.values()].flatMap((t=>c.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}Me=ze,Ke([k()],Ze.prototype,"exportpartsPrefix",void 0),Ke([B([])],Ze.prototype,"exportpartsPrefixes",void 0),Ke([k()],Ze.prototype,"customStylesheet",void 0);const _e=ke.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");kt`
94
+ */class Me extends Ee{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,o])=>t.registry.define(e,o))));const e={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{Pe?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),r=Fe.litNonce;void 0!==r&&o.setAttribute("nonce",r),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var Be,De=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Ke=Symbol("constructorPrototype"),Te=Symbol("constructorName"),ze=Symbol("exportpartsDebouncer");class Ze extends Me{constructor(){super(),this[Be]=new n(5),this[Te]=this.constructor.name,this[Ke]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Te]&&Object.setPrototypeOf(this,this[Ke])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,o;if((null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==o?o:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[ze].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,o,r,i,n,a;const s=t=>null!=t&&t.trim().length>0,c=t.filter(s).map((t=>t.trim()));if(0===c.length)return void this.removeAttribute("exportparts");const l=new Set;for(let t of null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==o?o:[]){const e=null!==(i=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==i?i:[],o=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...e,...o).filter(s).map((t=>t.trim())).forEach((t=>l.add(t)))}if(0===l.size)return void this.removeAttribute("exportparts");const f=[...l.values()].flatMap((t=>c.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}Be=ze,De([k()],Ze.prototype,"exportpartsPrefix",void 0),De([M([])],Ze.prototype,"exportpartsPrefixes",void 0),De([k()],Ze.prototype,"customStylesheet",void 0);const _e=ke.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");kt`
95
95
  .highlight-html-match {
96
96
  background: ${_e};
97
97
  }
@@ -127,7 +127,7 @@ let Ee=class extends _t{constructor(){super(...arguments),this.renderOptions={ho
127
127
  display: inline-block;
128
128
  width: 0;
129
129
  }
130
- `;class Ve{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,r;t=this.resolvePluralKey(t,e);let i=null!==(r=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==r?r:"";return e.forEach(((t,e)=>i=i.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),i}resolvePluralKey(t,e){for(let o of e)if("number"==typeof o){const e=`${String(t)}[\\=${o}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const o=o=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(o):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(o):t.toLocaleString(o);try{return o(document.documentElement.lang)}catch(t){return o()}}}const Ye=t=>{const e=null!=t?t:{};return(t,o)=>{var r;const i={hasChanged:(t,e)=>!F(t,e),attribute:!1,...e};k(i)(t,o);const n=t.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(o,{selector:null!==(r=e.selector)&&void 0!==r?r:t=>t[o],store:e.store})}};class Xe{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter((e=>e.type!==t.type))),this.queue.push(t)}consume(t){const e=this.queue.find((e=>e.type===t));return e&&(this.queue=this.queue.filter((t=>t!==e))),e}}function Qe(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Je,to,eo;const oo=Symbol("internalReduxEventsUnsubscribers"),ro=Symbol("internalStoresUnsubscribers"),io=Symbol("internalStores");class no extends Ze{constructor(){super(...arguments),this[Je]=new Map,this[to]=new Map,this[eo]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[io].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[io].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[io].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:Qe(t)?t.name:void 0)&&void 0!==o?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[io].delete(e)}setupStore(t,e){this[io].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[io].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,e)=>{const o=this.constructor.getPropertyOptions(e);if(!(null==o?void 0:o.attribute)||!this.hasAttribute("string"==typeof(null==o?void 0:o.attribute)?o.attribute:e)){const o=this.getStore(t.store);o&&(t.store?this[ro].has(t.store):this[ro].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[ro].set(t,e.subscribe((()=>this.updateFromStores()))),Qe(e)&&e.eventBus&&(null===(o=this.reduxConstructor.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const r=t=>this[o](t);e.eventBus.addEventListener(t.eventName,r),this[oo].push((()=>e.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[ro].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[oo].forEach((t=>t())),this[oo]=[]}unsubscribeFromStore(t){this[ro].has(t)&&this[ro].get(t)(),this[ro].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function ao(t){for(var e=arguments.length,o=Array(e>1?e-1:0),r=1;r<e;r++)o[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function so(t){return!!t&&!!t[qo]}function co(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var o=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return o===Object||"function"==typeof o&&Function.toString.call(o)===Vo}(t)||Array.isArray(t)||!!t[Go]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Go])||yo(t)||go(t))}function lo(t,e,o){void 0===o&&(o=!1),0===fo(t)?(o?Object.keys:Yo)(t).forEach((function(r){o&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(o,r){return e(r,o,t)}))}function fo(t){var e=t[qo];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:yo(t)?2:go(t)?3:0}function ho(t,e){return 2===fo(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function uo(t,e,o){var r=fo(t);2===r?t.set(e,o):3===r?t.add(o):t[e]=o}function po(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function yo(t){return zo&&t instanceof Map}function go(t){return Zo&&t instanceof Set}function bo(t){return t.o||t.t}function mo(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Xo(t);delete e[qo];for(var o=Yo(e),r=0;r<o.length;r++){var i=o[r],n=e[i];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[i]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function vo(t,e){return void 0===e&&(e=!1),Oo(t)||so(t)||!co(t)||(fo(t)>1&&(t.set=t.add=t.clear=t.delete=xo),Object.freeze(t),e&&lo(t,(function(t,e){return vo(e,!0)}),!0)),t}function xo(){ao(2)}function Oo(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function wo(t){var e=Qo[t];return e||ao(18,t),e}function So(){return To}function No(t,e){e&&(wo("Patches"),t.u=[],t.s=[],t.v=e)}function Co(t){Eo(t),t.p.forEach(Ro),t.p=null}function Eo(t){t===To&&(To=t.l)}function $o(t){return To={p:[],l:To,h:t,m:!0,_:0}}function Ro(t){var e=t[qo];0===e.i||1===e.i?e.j():e.g=!0}function ko(t,e){e._=e.p.length;var o=e.p[0],r=void 0!==t&&t!==o;return e.h.O||wo("ES5").S(e,t,r),r?(o[qo].P&&(Co(e),ao(4)),co(t)&&(t=Uo(e,t),e.l||Lo(e,t)),e.u&&wo("Patches").M(o[qo].t,t,e.u,e.s)):t=Uo(e,o,[]),Co(e),e.u&&e.v(e.u,e.s),t!==Ho?t:void 0}function Uo(t,e,o){if(Oo(e))return e;var r=e[qo];if(!r)return lo(e,(function(i,n){return Io(t,r,e,i,n,o)}),!0),e;if(r.A!==t)return e;if(!r.P)return Lo(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=mo(r.k):r.o,n=i,a=!1;3===r.i&&(n=new Set(i),i.clear(),a=!0),lo(n,(function(e,n){return Io(t,r,i,e,n,o,a)})),Lo(t,i,!1),o&&t.u&&wo("Patches").N(r,o,t.u,t.s)}return r.o}function Io(t,e,o,r,i,n,a){if(so(i)){var s=Uo(t,i,n&&e&&3!==e.i&&!ho(e.R,r)?n.concat(r):void 0);if(uo(o,r,s),!so(s))return;t.m=!1}else a&&o.add(i);if(co(i)&&!Oo(i)){if(!t.h.D&&t._<1)return;Uo(t,i),e&&e.A.l||Lo(t,i)}}function Lo(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&vo(e,o)}function Ao(t,e){var o=t[qo];return(o?bo(o):t)[e]}function Wo(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var r=Object.getOwnPropertyDescriptor(o,e);if(r)return r;o=Object.getPrototypeOf(o)}}function jo(t){t.P||(t.P=!0,t.l&&jo(t.l))}function Fo(t){t.o||(t.o=mo(t.t))}function Po(t,e,o){var r=yo(e)?wo("MapSet").F(e,o):go(e)?wo("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),r={i:o?1:0,A:e?e.A:So(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},i=r,n=Jo;o&&(i=[r],n=tr);var a=Proxy.revocable(i,n),s=a.revoke,c=a.proxy;return r.k=c,r.j=s,c}(e,o):wo("ES5").J(e,o);return(o?o.A:So()).p.push(r),r}function Bo(t){return so(t)||ao(22,t),function t(e){if(!co(e))return e;var o,r=e[qo],i=fo(e);if(r){if(!r.P&&(r.i<4||!wo("ES5").K(r)))return r.t;r.I=!0,o=Mo(e,i),r.I=!1}else o=Mo(e,i);return lo(o,(function(e,i){r&&function(t,e){return 2===fo(t)?t.get(e):t[e]}(r.t,e)===i||uo(o,e,t(i))})),3===i?new Set(o):o}(t)}function Mo(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return mo(t)}Je=ro,to=io,eo=oo,no.reduxProperties=new Map,no.reduxReactiveProperties=new Set,no.reduxEventListeners=new Map;var Ko,To,Do="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),zo="undefined"!=typeof Map,Zo="undefined"!=typeof Set,_o="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Ho=Do?Symbol.for("immer-nothing"):((Ko={})["immer-nothing"]=!0,Ko),Go=Do?Symbol.for("immer-draftable"):"__$immer_draftable",qo=Do?Symbol.for("immer-state"):"__$immer_state",Vo=""+Object.prototype.constructor,Yo="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Xo=Object.getOwnPropertyDescriptors||function(t){var e={};return Yo(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},Qo={},Jo={get:function(t,e){if(e===qo)return t;var o=bo(t);if(!ho(o,e))return function(t,e,o){var r,i=Wo(e,o);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(t.k):void 0}(t,o,e);var r=o[e];return t.I||!co(r)?r:r===Ao(t.t,e)?(Fo(t),t.o[e]=Po(t.A.h,r,t)):r},has:function(t,e){return e in bo(t)},ownKeys:function(t){return Reflect.ownKeys(bo(t))},set:function(t,e,o){var r=Wo(bo(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,o),!0;if(!t.P){var i=Ao(bo(t),e),n=null==i?void 0:i[qo];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(po(o,i)&&(void 0!==o||ho(t.t,e)))return!0;Fo(t),jo(t)}return t.o[e]===o&&(void 0!==o||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==Ao(t.t,e)||e in t.t?(t.R[e]=!1,Fo(t),jo(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=bo(t),r=Reflect.getOwnPropertyDescriptor(o,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:o[e]}:r},defineProperty:function(){ao(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ao(12)}},tr={};lo(Jo,(function(t,e){tr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),tr.deleteProperty=function(t,e){return tr.set.call(this,t,e,void 0)},tr.set=function(t,e,o){return Jo.set.call(this,t[0],e,o,t[0])};var er=function(){function t(t){var e=this;this.O=_o,this.D=!0,this.produce=function(t,o,r){if("function"==typeof t&&"function"!=typeof o){var i=o;o=t;var n=e;return function(t){var e=this;void 0===t&&(t=i);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var r;return(r=o).call.apply(r,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&ao(6),void 0!==r&&"function"!=typeof r&&ao(7),co(t)){var s=$o(e),c=Po(e,t,void 0),l=!0;try{a=o(c),l=!1}finally{l?Co(s):Eo(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return No(s,r),ko(t,s)}),(function(t){throw Co(s),t})):(No(s,r),ko(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===Ho&&(a=void 0),e.D&&vo(a,!0),r){var f=[],h=[];wo("Patches").M(t,a,f,h),r(f,h)}return a}ao(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var r=arguments.length,i=Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(i))}))};var r,i,n=e.produce(t,o,(function(t,e){r=t,i=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,r,i]})):[n,r,i]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){co(t)||ao(8),so(t)&&(t=Bo(t));var e=$o(this),o=Po(this,t,void 0);return o[qo].C=!0,Eo(e),o},e.finishDraft=function(t,e){var o=(t&&t[qo]).A;return No(o,e),ko(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!_o&&ao(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var r=e[o];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}o>-1&&(e=e.slice(o+1));var i=wo("Patches").$;return so(t)?i(t,e):this.produce(t,(function(t){return i(t,e)}))},t}(),or=new er,rr=or.produce;function ir(t){return ir="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ir(t)}function nr(t){var e=function(t,e){if("object"!==ir(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,e||"default");if("object"!==ir(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ir(e)?e:String(e)}function ar(t,e,o){return(e=nr(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function sr(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function cr(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?sr(Object(o),!0).forEach((function(e){ar(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):sr(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function lr(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}or.produceWithPatches.bind(or),or.setAutoFreeze.bind(or),or.setUseProxies.bind(or),or.applyPatches.bind(or),or.createDraft.bind(or),or.finishDraft.bind(or);var fr="function"==typeof Symbol&&Symbol.observable||"@@observable",hr=function(){return Math.random().toString(36).substring(7).split("").join(".")},ur={INIT:"@@redux/INIT"+hr(),REPLACE:"@@redux/REPLACE"+hr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+hr()}};function pr(t,e,o){var r;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(lr(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(lr(1));return o(pr)(t,e)}if("function"!=typeof t)throw new Error(lr(2));var i=t,n=e,a=[],s=a,c=!1;function l(){s===a&&(s=a.slice())}function f(){if(c)throw new Error(lr(3));return n}function h(t){if("function"!=typeof t)throw new Error(lr(4));if(c)throw new Error(lr(5));var e=!0;return l(),s.push(t),function(){if(e){if(c)throw new Error(lr(6));e=!1,l();var o=s.indexOf(t);s.splice(o,1),a=null}}}function u(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(lr(7));if(void 0===t.type)throw new Error(lr(8));if(c)throw new Error(lr(9));try{c=!0,n=i(n,t)}finally{c=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return u({type:ur.INIT}),(r={dispatch:u,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(lr(10));i=t,u({type:ur.REPLACE})}})[fr]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(lr(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[fr]=function(){return this},t},r}function dr(t){for(var e=Object.keys(t),o={},r=0;r<e.length;r++){var i=e[r];"function"==typeof t[i]&&(o[i]=t[i])}var n,a=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:ur.INIT}))throw new Error(lr(12));if(void 0===o(void 0,{type:ur.PROBE_UNKNOWN_ACTION()}))throw new Error(lr(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var r=!1,i={},s=0;s<a.length;s++){var c=a[s],l=o[c],f=t[c],h=l(f,e);if(void 0===h)throw e&&e.type,new Error(lr(14));i[c]=h,r=r||h!==f}return(r=r||a.length!==Object.keys(t).length)?i:t}}function yr(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function gr(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(t){return function(){var o=t.apply(void 0,arguments),r=function(){throw new Error(lr(15))},i={getState:o.getState,dispatch:function(){return r.apply(void 0,arguments)}},n=e.map((function(t){return t(i)}));return r=yr.apply(void 0,n)(o.dispatch),cr(cr({},o),{},{dispatch:r})}}}function br(t){return function(e){var o=e.dispatch,r=e.getState;return function(e){return function(i){return"function"==typeof i?i(o,r,t):e(i)}}}}var mr=br();mr.withExtraArgument=br;var vr,xr=mr,Or=(vr=function(t,e){return vr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},vr(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}vr(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),wr=function(t,e){var o,r,i,n,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,r&&(i=2&n[0]?r.return:n[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,n[1])).done)return i;switch(r=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,r=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){a.label=n[1];break}if(6===n[0]&&a.label<i[1]){a.label=i[1],i=n;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(n);break}i[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],r=0}finally{o=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},Sr=function(t,e){for(var o=0,r=e.length,i=t.length;o<r;o++,i++)t[i]=e[o];return t},Nr=Object.defineProperty,Cr=Object.defineProperties,Er=Object.getOwnPropertyDescriptors,$r=Object.getOwnPropertySymbols,Rr=Object.prototype.hasOwnProperty,kr=Object.prototype.propertyIsEnumerable,Ur=function(t,e,o){return e in t?Nr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Ir=function(t,e){for(var o in e||(e={}))Rr.call(e,o)&&Ur(t,o,e[o]);if($r)for(var r=0,i=$r(e);r<i.length;r++){o=i[r];kr.call(e,o)&&Ur(t,o,e[o])}return t},Lr=function(t,e){return Cr(t,Er(e))},Ar="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?yr:yr.apply(null,arguments)};var Wr=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Or(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Sr([void 0],t[0].concat(this)))):new(e.bind.apply(e,Sr([void 0],t.concat(this))))},e}(Array),jr=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Or(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Sr([void 0],t[0].concat(this)))):new(e.bind.apply(e,Sr([void 0],t.concat(this))))},e}(Array);function Fr(t){return co(t)?rr(t,(function(){})):t}function Pr(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var r=new Wr;o&&(!function(t){return"boolean"==typeof t}(o)?r.push(xr.withExtraArgument(o.extraArgument)):r.push(xr));return r}(t)}}function Br(t){var e,o=Pr(),r=t||{},i=r.reducer,n=void 0===i?void 0:i,a=r.middleware,s=void 0===a?o():a,c=r.devTools,l=void 0===c||c,f=r.preloadedState,h=void 0===f?void 0:f,u=r.enhancers,p=void 0===u?void 0:u;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var o=e;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return e===o}(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=dr(n)}var d=s;"function"==typeof d&&(d=d(o));var y=gr.apply(void 0,d),g=yr;l&&(g=Ar(Ir({trace:!1},"object"==typeof l&&l)));var b=new jr(y),m=b;return Array.isArray(p)?m=Sr([y],p):"function"==typeof p&&(m=p(b)),pr(e,h,g.apply(void 0,m))}function Mr(t,e){function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(e){var i=e.apply(void 0,o);if(!i)throw new Error("prepareAction did not return an object");return Ir(Ir({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:o[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(e){return e.type===t},o}function Kr(t){var e,o={},r=[],i={addCase:function(t,e){var r="string"==typeof t?t:t.type;if(r in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[r]=e,i},addMatcher:function(t,e){return r.push({matcher:t,reducer:e}),i},addDefaultCase:function(t){return e=t,i}};return t(i),[o,r,e]}function Tr(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,r="function"==typeof t.initialState?t.initialState:Fr(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},c={};function l(){var e="function"==typeof t.extraReducers?Kr(t.extraReducers):[t.extraReducers],o=e[0],i=void 0===o?{}:o,n=e[1],a=void 0===n?[]:n,c=e[2],l=void 0===c?void 0:c,f=Ir(Ir({},i),s);return function(t,e,o,r){void 0===o&&(o=[]);var i,n="function"==typeof e?Kr(e):[e,o,r],a=n[0],s=n[1],c=n[2];if(function(t){return"function"==typeof t}(t))i=function(){return Fr(t())};else{var l=Fr(t);i=function(){return l}}function f(t,e){void 0===t&&(t=i());var o=Sr([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[c]),o.reduce((function(t,o){if(o){var r;if(so(t))return void 0===(r=o(t,e))?t:r;if(co(t))return rr(t,(function(t){return o(t,e)}));if(void 0===(r=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return t}),t)}return f.getInitialState=i,f}(r,(function(t){for(var e in f)t.addCase(e,f[e]);for(var o=0,r=a;o<r.length;o++){var i=r[o];t.addMatcher(i.matcher,i.reducer)}l&&t.addDefaultCase(l)}))}return n.forEach((function(t){var o,r,n=i[t],l=e+"/"+t;"reducer"in n?(o=n.reducer,r=n.prepare):o=n,a[t]=o,s[l]=o,c[t]=r?Mr(l,r):Mr(l)})),{name:e,reducer:function(t,e){return o||(o=l()),o(t,e)},actions:c,caseReducers:a,getInitialState:function(){return o||(o=l()),o.getInitialState()}}}var Dr=["name","message","stack","code"],zr=function(t,e){this.payload=t,this.meta=e},Zr=function(t,e){this.payload=t,this.meta=e},_r=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,r=Dr;o<r.length;o++){var i=r[o];"string"==typeof t[i]&&(e[i]=t[i])}return e}return{message:String(t)}};function Hr(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,o){var r=Mr(t+"/fulfilled",(function(t,e,o,r){return{payload:t,meta:Lr(Ir({},r||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),i=Mr(t+"/pending",(function(t,e,o){return{payload:void 0,meta:Lr(Ir({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Mr(t+"/rejected",(function(t,e,r,i,n){return{payload:i,error:(o&&o.serializeError||_r)(t||"Rejected"),meta:Lr(Ir({},n||{}),{arg:r,requestId:e,rejectedWithValue:!!i,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(s,c,l){var f,h=(null==o?void 0:o.idGenerator)?o.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",o=t;o--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),u=new a;function p(t){f=t,u.abort()}var d=function(){return a=this,d=null,y=function(){var a,d,y,g,b,m;return wr(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),g=null==(a=null==o?void 0:o.condition)?void 0:a.call(o,t,{getState:c,extra:l}),null===(x=g)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,g];case 1:g=v.sent(),v.label=2;case 2:if(!1===g||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return u.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(i(h,t,null==(d=null==o?void 0:o.getPendingMeta)?void 0:d.call(o,{requestId:h,arg:t},{getState:c,extra:l}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:c,extra:l,requestId:h,signal:u.signal,abort:p,rejectWithValue:function(t,e){return new zr(t,e)},fulfillWithValue:function(t,e){return new Zr(t,e)}})).then((function(e){if(e instanceof zr)throw e;return e instanceof Zr?r(e.payload,h,t,e.meta):r(e,h,t)}))])];case 3:return y=v.sent(),[3,5];case 4:return m=v.sent(),y=m instanceof zr?n(null,h,t,m.payload,m.meta):n(m,h,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&n.match(y)&&y.meta.condition||s(y),[2,y]}var x}))},new Promise((function(t,e){var o=function(t){try{i(y.next(t))}catch(t){e(t)}},r=function(t){try{i(y.throw(t))}catch(t){e(t)}},i=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,r)};i((y=y.apply(a,d)).next())}));var a,d,y}();return Object.assign(d,{abort:p,requestId:h,arg:t,unwrap:function(){return d.then(Hr)}})}}),{pending:i,rejected:n,fulfilled:r,typePrefix:t})}t.withTypes=function(){return t}}();var Gr="listenerMiddleware";Mr(Gr+"/add"),Mr(Gr+"/removeAll"),Mr(Gr+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=i[t];return o?o.enumerable=e:i[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[qo];return Jo.get(e,t)},set:function(e){var o=this[qo];Jo.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var i=t[e][qo];if(!i.P)switch(i.i){case 5:r(i)&&jo(i);break;case 4:o(i)&&jo(i)}}}function o(t){for(var e=t.t,o=t.k,r=Yo(o),i=r.length-1;i>=0;i--){var n=r[i];if(n!==qo){var a=e[n];if(void 0===a&&!ho(e,n))return!0;var s=o[n],c=s&&s[qo];if(c?c.t!==a:!po(s,a))return!0}}var l=!!e[qo];return r.length!==Yo(e).length+(l?0:1)}function r(t){var e=t.k;if(e.length!==t.t.length)return!0;var o=Object.getOwnPropertyDescriptor(e,e.length-1);if(o&&!o.get)return!0;for(var r=0;r<e.length;r++)if(!e.hasOwnProperty(r))return!0;return!1}var i={};!function(t,e){Qo[t]||(Qo[t]=e)}("ES5",{J:function(e,o){var r=Array.isArray(e),i=function(e,o){if(e){for(var r=Array(o.length),i=0;i<o.length;i++)Object.defineProperty(r,""+i,t(i,!0));return r}var n=Xo(o);delete n[qo];for(var a=Yo(n),s=0;s<a.length;s++){var c=a[s];n[c]=t(c,e||!!n[c].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(r,e),n={i:r?5:4,A:o?o.A:So(),P:!1,I:!1,R:{},l:o,t:e,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,qo,{value:n,writable:!0}),i},S:function(t,o,i){i?so(o)&&o[qo].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[qo];if(o){var i=o.t,n=o.k,a=o.R,s=o.i;if(4===s)lo(n,(function(e){e!==qo&&(void 0!==i[e]||ho(i,e)?a[e]||t(n[e]):(a[e]=!0,jo(o)))})),lo(i,(function(t){void 0!==n[t]||ho(n,t)||(a[t]=!1,jo(o))}));else if(5===s){if(r(o)&&(jo(o),a.length=!0),n.length<i.length)for(var c=n.length;c<i.length;c++)a[c]=!1;else for(var l=i.length;l<n.length;l++)a[l]=!0;for(var f=Math.min(n.length,i.length),h=0;h<f;h++)n.hasOwnProperty(h)||(a[h]=!0),void 0===a[h]&&t(n[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):r(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class qr{static get(t){var e;const o="string"==typeof t?t:t.name,r="string"==typeof t?void 0:t,i=window.ftReduxStores[o];if(Qe(i))return i;if(null==r)return;const n=Tr({...r,reducers:null!==(e=r.reducers)&&void 0!==e?e:{}}),a=Br({reducer:(t,e)=>{var o;switch(e.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(o=e.overwrites)&&void 0!==o?o:{}};default:return n.reducer(t,e)}}});return window.ftReduxStores[r.name]=new qr(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Xe,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const r=e,i=t[r];return i?(...t)=>{const e=i(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[r]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",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()}}const Vr=Symbol("elementInternals");var Yr,Xr,Qr;const Jr=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Qr=null===(Xr=null===(Yr=window.safari)||void 0===Yr?void 0:Yr.pushNotification)||void 0===Xr?void 0:Xr.toString())&&void 0!==Qr?Qr:""),ti=ke.extend("--ft-ripple-color","",je.colorContent),ei={color:ti,backgroundColor:ke.extend("--ft-ripple-background-color","",ti),opacityContentOnSurfacePressed:ke.external(je.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ke.external(je.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ke.external(je.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ke.external(je.opacityContentOnSurfaceSelected,"Design system"),borderRadius:ke.create("--ft-ripple-border-radius","","SIZE","0px")},oi=ke.extend("--ft-ripple-color","",je.colorPrimary),ri=oi,ii=ke.extend("--ft-ripple-background-color","",oi),ni=ke.extend("--ft-ripple-color","",je.colorSecondary),ai=ni,si=ke.extend("--ft-ripple-background-color","",ni),ci=kt`
130
+ `;class Ve{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,r;t=this.resolvePluralKey(t,e);let i=null!==(r=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==r?r:"";return e.forEach(((t,e)=>i=i.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),i}resolvePluralKey(t,e){for(let o of e)if("number"==typeof o){const e=`${String(t)}[\\=${o}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const o=o=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(o):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(o):t.toLocaleString(o);try{return o(document.documentElement.lang)}catch(t){return o()}}}const Ye=t=>{const e=null!=t?t:{};return(t,o)=>{var r;const i={hasChanged:(t,e)=>!F(t,e),attribute:!1,...e};k(i)(t,o);const n=t.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(o,{selector:null!==(r=e.selector)&&void 0!==r?r:t=>t[o],store:e.store})}};class Xe{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter((e=>e.type!==t.type))),this.queue.push(t)}consume(t){const e=this.queue.find((e=>e.type===t));return e&&(this.queue=this.queue.filter((t=>t!==e))),e}}function Qe(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Je,to,eo;const oo=Symbol("internalReduxEventsUnsubscribers"),ro=Symbol("internalStoresUnsubscribers"),io=Symbol("internalStores");class no extends Ze{constructor(){super(...arguments),this[Je]=new Map,this[to]=new Map,this[eo]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[io].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[io].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[io].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:Qe(t)?t.name:void 0)&&void 0!==o?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[io].delete(e)}setupStore(t,e){this[io].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[io].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,e)=>{const o=this.constructor.getPropertyOptions(e);if(!(null==o?void 0:o.attribute)||!this.hasAttribute("string"==typeof(null==o?void 0:o.attribute)?o.attribute:e)){const o=this.getStore(t.store);o&&(t.store?this[ro].has(t.store):this[ro].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[ro].set(t,e.subscribe((()=>this.updateFromStores()))),Qe(e)&&e.eventBus&&(null===(o=this.reduxConstructor.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const r=t=>this[o](t);e.eventBus.addEventListener(t.eventName,r),this[oo].push((()=>e.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[ro].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[oo].forEach((t=>t())),this[oo]=[]}unsubscribeFromStore(t){this[ro].has(t)&&this[ro].get(t)(),this[ro].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function ao(t){for(var e=arguments.length,o=Array(e>1?e-1:0),r=1;r<e;r++)o[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function so(t){return!!t&&!!t[qo]}function co(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var o=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return o===Object||"function"==typeof o&&Function.toString.call(o)===Vo}(t)||Array.isArray(t)||!!t[Go]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Go])||yo(t)||go(t))}function lo(t,e,o){void 0===o&&(o=!1),0===fo(t)?(o?Object.keys:Yo)(t).forEach((function(r){o&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(o,r){return e(r,o,t)}))}function fo(t){var e=t[qo];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:yo(t)?2:go(t)?3:0}function ho(t,e){return 2===fo(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function uo(t,e,o){var r=fo(t);2===r?t.set(e,o):3===r?t.add(o):t[e]=o}function po(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function yo(t){return zo&&t instanceof Map}function go(t){return Zo&&t instanceof Set}function bo(t){return t.o||t.t}function mo(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Xo(t);delete e[qo];for(var o=Yo(e),r=0;r<o.length;r++){var i=o[r],n=e[i];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[i]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function vo(t,e){return void 0===e&&(e=!1),Oo(t)||so(t)||!co(t)||(fo(t)>1&&(t.set=t.add=t.clear=t.delete=xo),Object.freeze(t),e&&lo(t,(function(t,e){return vo(e,!0)}),!0)),t}function xo(){ao(2)}function Oo(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function wo(t){var e=Qo[t];return e||ao(18,t),e}function So(){return Ko}function No(t,e){e&&(wo("Patches"),t.u=[],t.s=[],t.v=e)}function Co(t){Eo(t),t.p.forEach(Ro),t.p=null}function Eo(t){t===Ko&&(Ko=t.l)}function $o(t){return Ko={p:[],l:Ko,h:t,m:!0,_:0}}function Ro(t){var e=t[qo];0===e.i||1===e.i?e.j():e.g=!0}function ko(t,e){e._=e.p.length;var o=e.p[0],r=void 0!==t&&t!==o;return e.h.O||wo("ES5").S(e,t,r),r?(o[qo].P&&(Co(e),ao(4)),co(t)&&(t=Uo(e,t),e.l||Lo(e,t)),e.u&&wo("Patches").M(o[qo].t,t,e.u,e.s)):t=Uo(e,o,[]),Co(e),e.u&&e.v(e.u,e.s),t!==Ho?t:void 0}function Uo(t,e,o){if(Oo(e))return e;var r=e[qo];if(!r)return lo(e,(function(i,n){return Io(t,r,e,i,n,o)}),!0),e;if(r.A!==t)return e;if(!r.P)return Lo(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=mo(r.k):r.o,n=i,a=!1;3===r.i&&(n=new Set(i),i.clear(),a=!0),lo(n,(function(e,n){return Io(t,r,i,e,n,o,a)})),Lo(t,i,!1),o&&t.u&&wo("Patches").N(r,o,t.u,t.s)}return r.o}function Io(t,e,o,r,i,n,a){if(so(i)){var s=Uo(t,i,n&&e&&3!==e.i&&!ho(e.R,r)?n.concat(r):void 0);if(uo(o,r,s),!so(s))return;t.m=!1}else a&&o.add(i);if(co(i)&&!Oo(i)){if(!t.h.D&&t._<1)return;Uo(t,i),e&&e.A.l||Lo(t,i)}}function Lo(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&vo(e,o)}function Ao(t,e){var o=t[qo];return(o?bo(o):t)[e]}function Wo(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var r=Object.getOwnPropertyDescriptor(o,e);if(r)return r;o=Object.getPrototypeOf(o)}}function jo(t){t.P||(t.P=!0,t.l&&jo(t.l))}function Fo(t){t.o||(t.o=mo(t.t))}function Po(t,e,o){var r=yo(e)?wo("MapSet").F(e,o):go(e)?wo("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),r={i:o?1:0,A:e?e.A:So(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},i=r,n=Jo;o&&(i=[r],n=tr);var a=Proxy.revocable(i,n),s=a.revoke,c=a.proxy;return r.k=c,r.j=s,c}(e,o):wo("ES5").J(e,o);return(o?o.A:So()).p.push(r),r}function Mo(t){return so(t)||ao(22,t),function t(e){if(!co(e))return e;var o,r=e[qo],i=fo(e);if(r){if(!r.P&&(r.i<4||!wo("ES5").K(r)))return r.t;r.I=!0,o=Bo(e,i),r.I=!1}else o=Bo(e,i);return lo(o,(function(e,i){r&&function(t,e){return 2===fo(t)?t.get(e):t[e]}(r.t,e)===i||uo(o,e,t(i))})),3===i?new Set(o):o}(t)}function Bo(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return mo(t)}Je=ro,to=io,eo=oo,no.reduxProperties=new Map,no.reduxReactiveProperties=new Set,no.reduxEventListeners=new Map;var Do,Ko,To="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),zo="undefined"!=typeof Map,Zo="undefined"!=typeof Set,_o="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Ho=To?Symbol.for("immer-nothing"):((Do={})["immer-nothing"]=!0,Do),Go=To?Symbol.for("immer-draftable"):"__$immer_draftable",qo=To?Symbol.for("immer-state"):"__$immer_state",Vo=""+Object.prototype.constructor,Yo="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Xo=Object.getOwnPropertyDescriptors||function(t){var e={};return Yo(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},Qo={},Jo={get:function(t,e){if(e===qo)return t;var o=bo(t);if(!ho(o,e))return function(t,e,o){var r,i=Wo(e,o);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(t.k):void 0}(t,o,e);var r=o[e];return t.I||!co(r)?r:r===Ao(t.t,e)?(Fo(t),t.o[e]=Po(t.A.h,r,t)):r},has:function(t,e){return e in bo(t)},ownKeys:function(t){return Reflect.ownKeys(bo(t))},set:function(t,e,o){var r=Wo(bo(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,o),!0;if(!t.P){var i=Ao(bo(t),e),n=null==i?void 0:i[qo];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(po(o,i)&&(void 0!==o||ho(t.t,e)))return!0;Fo(t),jo(t)}return t.o[e]===o&&(void 0!==o||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==Ao(t.t,e)||e in t.t?(t.R[e]=!1,Fo(t),jo(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=bo(t),r=Reflect.getOwnPropertyDescriptor(o,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:o[e]}:r},defineProperty:function(){ao(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ao(12)}},tr={};lo(Jo,(function(t,e){tr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),tr.deleteProperty=function(t,e){return tr.set.call(this,t,e,void 0)},tr.set=function(t,e,o){return Jo.set.call(this,t[0],e,o,t[0])};var er=function(){function t(t){var e=this;this.O=_o,this.D=!0,this.produce=function(t,o,r){if("function"==typeof t&&"function"!=typeof o){var i=o;o=t;var n=e;return function(t){var e=this;void 0===t&&(t=i);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var r;return(r=o).call.apply(r,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&ao(6),void 0!==r&&"function"!=typeof r&&ao(7),co(t)){var s=$o(e),c=Po(e,t,void 0),l=!0;try{a=o(c),l=!1}finally{l?Co(s):Eo(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return No(s,r),ko(t,s)}),(function(t){throw Co(s),t})):(No(s,r),ko(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===Ho&&(a=void 0),e.D&&vo(a,!0),r){var f=[],h=[];wo("Patches").M(t,a,f,h),r(f,h)}return a}ao(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var r=arguments.length,i=Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(i))}))};var r,i,n=e.produce(t,o,(function(t,e){r=t,i=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,r,i]})):[n,r,i]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){co(t)||ao(8),so(t)&&(t=Mo(t));var e=$o(this),o=Po(this,t,void 0);return o[qo].C=!0,Eo(e),o},e.finishDraft=function(t,e){var o=(t&&t[qo]).A;return No(o,e),ko(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!_o&&ao(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var r=e[o];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}o>-1&&(e=e.slice(o+1));var i=wo("Patches").$;return so(t)?i(t,e):this.produce(t,(function(t){return i(t,e)}))},t}(),or=new er,rr=or.produce;function ir(t){return ir="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ir(t)}function nr(t){var e=function(t,e){if("object"!==ir(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,e||"default");if("object"!==ir(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ir(e)?e:String(e)}function ar(t,e,o){return(e=nr(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function sr(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function cr(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?sr(Object(o),!0).forEach((function(e){ar(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):sr(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function lr(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}or.produceWithPatches.bind(or),or.setAutoFreeze.bind(or),or.setUseProxies.bind(or),or.applyPatches.bind(or),or.createDraft.bind(or),or.finishDraft.bind(or);var fr="function"==typeof Symbol&&Symbol.observable||"@@observable",hr=function(){return Math.random().toString(36).substring(7).split("").join(".")},ur={INIT:"@@redux/INIT"+hr(),REPLACE:"@@redux/REPLACE"+hr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+hr()}};function pr(t,e,o){var r;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(lr(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(lr(1));return o(pr)(t,e)}if("function"!=typeof t)throw new Error(lr(2));var i=t,n=e,a=[],s=a,c=!1;function l(){s===a&&(s=a.slice())}function f(){if(c)throw new Error(lr(3));return n}function h(t){if("function"!=typeof t)throw new Error(lr(4));if(c)throw new Error(lr(5));var e=!0;return l(),s.push(t),function(){if(e){if(c)throw new Error(lr(6));e=!1,l();var o=s.indexOf(t);s.splice(o,1),a=null}}}function u(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(lr(7));if(void 0===t.type)throw new Error(lr(8));if(c)throw new Error(lr(9));try{c=!0,n=i(n,t)}finally{c=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return u({type:ur.INIT}),(r={dispatch:u,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(lr(10));i=t,u({type:ur.REPLACE})}})[fr]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(lr(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[fr]=function(){return this},t},r}function dr(t){for(var e=Object.keys(t),o={},r=0;r<e.length;r++){var i=e[r];"function"==typeof t[i]&&(o[i]=t[i])}var n,a=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:ur.INIT}))throw new Error(lr(12));if(void 0===o(void 0,{type:ur.PROBE_UNKNOWN_ACTION()}))throw new Error(lr(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var r=!1,i={},s=0;s<a.length;s++){var c=a[s],l=o[c],f=t[c],h=l(f,e);if(void 0===h)throw e&&e.type,new Error(lr(14));i[c]=h,r=r||h!==f}return(r=r||a.length!==Object.keys(t).length)?i:t}}function yr(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function gr(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(t){return function(){var o=t.apply(void 0,arguments),r=function(){throw new Error(lr(15))},i={getState:o.getState,dispatch:function(){return r.apply(void 0,arguments)}},n=e.map((function(t){return t(i)}));return r=yr.apply(void 0,n)(o.dispatch),cr(cr({},o),{},{dispatch:r})}}}function br(t){return function(e){var o=e.dispatch,r=e.getState;return function(e){return function(i){return"function"==typeof i?i(o,r,t):e(i)}}}}var mr=br();mr.withExtraArgument=br;var vr,xr=mr,Or=(vr=function(t,e){return vr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},vr(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}vr(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),wr=function(t,e){var o,r,i,n,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,r&&(i=2&n[0]?r.return:n[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,n[1])).done)return i;switch(r=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,r=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){a.label=n[1];break}if(6===n[0]&&a.label<i[1]){a.label=i[1],i=n;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(n);break}i[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],r=0}finally{o=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},Sr=function(t,e){for(var o=0,r=e.length,i=t.length;o<r;o++,i++)t[i]=e[o];return t},Nr=Object.defineProperty,Cr=Object.defineProperties,Er=Object.getOwnPropertyDescriptors,$r=Object.getOwnPropertySymbols,Rr=Object.prototype.hasOwnProperty,kr=Object.prototype.propertyIsEnumerable,Ur=function(t,e,o){return e in t?Nr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Ir=function(t,e){for(var o in e||(e={}))Rr.call(e,o)&&Ur(t,o,e[o]);if($r)for(var r=0,i=$r(e);r<i.length;r++){o=i[r];kr.call(e,o)&&Ur(t,o,e[o])}return t},Lr=function(t,e){return Cr(t,Er(e))},Ar="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?yr:yr.apply(null,arguments)};var Wr=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Or(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Sr([void 0],t[0].concat(this)))):new(e.bind.apply(e,Sr([void 0],t.concat(this))))},e}(Array),jr=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Or(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Sr([void 0],t[0].concat(this)))):new(e.bind.apply(e,Sr([void 0],t.concat(this))))},e}(Array);function Fr(t){return co(t)?rr(t,(function(){})):t}function Pr(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var r=new Wr;o&&(!function(t){return"boolean"==typeof t}(o)?r.push(xr.withExtraArgument(o.extraArgument)):r.push(xr));return r}(t)}}function Mr(t){var e,o=Pr(),r=t||{},i=r.reducer,n=void 0===i?void 0:i,a=r.middleware,s=void 0===a?o():a,c=r.devTools,l=void 0===c||c,f=r.preloadedState,h=void 0===f?void 0:f,u=r.enhancers,p=void 0===u?void 0:u;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var o=e;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return e===o}(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=dr(n)}var d=s;"function"==typeof d&&(d=d(o));var y=gr.apply(void 0,d),g=yr;l&&(g=Ar(Ir({trace:!1},"object"==typeof l&&l)));var b=new jr(y),m=b;return Array.isArray(p)?m=Sr([y],p):"function"==typeof p&&(m=p(b)),pr(e,h,g.apply(void 0,m))}function Br(t,e){function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(e){var i=e.apply(void 0,o);if(!i)throw new Error("prepareAction did not return an object");return Ir(Ir({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:o[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(e){return e.type===t},o}function Dr(t){var e,o={},r=[],i={addCase:function(t,e){var r="string"==typeof t?t:t.type;if(r in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[r]=e,i},addMatcher:function(t,e){return r.push({matcher:t,reducer:e}),i},addDefaultCase:function(t){return e=t,i}};return t(i),[o,r,e]}function Kr(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,r="function"==typeof t.initialState?t.initialState:Fr(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},c={};function l(){var e="function"==typeof t.extraReducers?Dr(t.extraReducers):[t.extraReducers],o=e[0],i=void 0===o?{}:o,n=e[1],a=void 0===n?[]:n,c=e[2],l=void 0===c?void 0:c,f=Ir(Ir({},i),s);return function(t,e,o,r){void 0===o&&(o=[]);var i,n="function"==typeof e?Dr(e):[e,o,r],a=n[0],s=n[1],c=n[2];if(function(t){return"function"==typeof t}(t))i=function(){return Fr(t())};else{var l=Fr(t);i=function(){return l}}function f(t,e){void 0===t&&(t=i());var o=Sr([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[c]),o.reduce((function(t,o){if(o){var r;if(so(t))return void 0===(r=o(t,e))?t:r;if(co(t))return rr(t,(function(t){return o(t,e)}));if(void 0===(r=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return t}),t)}return f.getInitialState=i,f}(r,(function(t){for(var e in f)t.addCase(e,f[e]);for(var o=0,r=a;o<r.length;o++){var i=r[o];t.addMatcher(i.matcher,i.reducer)}l&&t.addDefaultCase(l)}))}return n.forEach((function(t){var o,r,n=i[t],l=e+"/"+t;"reducer"in n?(o=n.reducer,r=n.prepare):o=n,a[t]=o,s[l]=o,c[t]=r?Br(l,r):Br(l)})),{name:e,reducer:function(t,e){return o||(o=l()),o(t,e)},actions:c,caseReducers:a,getInitialState:function(){return o||(o=l()),o.getInitialState()}}}var Tr=["name","message","stack","code"],zr=function(t,e){this.payload=t,this.meta=e},Zr=function(t,e){this.payload=t,this.meta=e},_r=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,r=Tr;o<r.length;o++){var i=r[o];"string"==typeof t[i]&&(e[i]=t[i])}return e}return{message:String(t)}};function Hr(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,o){var r=Br(t+"/fulfilled",(function(t,e,o,r){return{payload:t,meta:Lr(Ir({},r||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),i=Br(t+"/pending",(function(t,e,o){return{payload:void 0,meta:Lr(Ir({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Br(t+"/rejected",(function(t,e,r,i,n){return{payload:i,error:(o&&o.serializeError||_r)(t||"Rejected"),meta:Lr(Ir({},n||{}),{arg:r,requestId:e,rejectedWithValue:!!i,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(s,c,l){var f,h=(null==o?void 0:o.idGenerator)?o.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",o=t;o--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),u=new a;function p(t){f=t,u.abort()}var d=function(){return a=this,d=null,y=function(){var a,d,y,g,b,m;return wr(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),g=null==(a=null==o?void 0:o.condition)?void 0:a.call(o,t,{getState:c,extra:l}),null===(x=g)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,g];case 1:g=v.sent(),v.label=2;case 2:if(!1===g||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return u.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(i(h,t,null==(d=null==o?void 0:o.getPendingMeta)?void 0:d.call(o,{requestId:h,arg:t},{getState:c,extra:l}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:c,extra:l,requestId:h,signal:u.signal,abort:p,rejectWithValue:function(t,e){return new zr(t,e)},fulfillWithValue:function(t,e){return new Zr(t,e)}})).then((function(e){if(e instanceof zr)throw e;return e instanceof Zr?r(e.payload,h,t,e.meta):r(e,h,t)}))])];case 3:return y=v.sent(),[3,5];case 4:return m=v.sent(),y=m instanceof zr?n(null,h,t,m.payload,m.meta):n(m,h,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&n.match(y)&&y.meta.condition||s(y),[2,y]}var x}))},new Promise((function(t,e){var o=function(t){try{i(y.next(t))}catch(t){e(t)}},r=function(t){try{i(y.throw(t))}catch(t){e(t)}},i=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,r)};i((y=y.apply(a,d)).next())}));var a,d,y}();return Object.assign(d,{abort:p,requestId:h,arg:t,unwrap:function(){return d.then(Hr)}})}}),{pending:i,rejected:n,fulfilled:r,typePrefix:t})}t.withTypes=function(){return t}}();var Gr="listenerMiddleware";Br(Gr+"/add"),Br(Gr+"/removeAll"),Br(Gr+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=i[t];return o?o.enumerable=e:i[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[qo];return Jo.get(e,t)},set:function(e){var o=this[qo];Jo.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var i=t[e][qo];if(!i.P)switch(i.i){case 5:r(i)&&jo(i);break;case 4:o(i)&&jo(i)}}}function o(t){for(var e=t.t,o=t.k,r=Yo(o),i=r.length-1;i>=0;i--){var n=r[i];if(n!==qo){var a=e[n];if(void 0===a&&!ho(e,n))return!0;var s=o[n],c=s&&s[qo];if(c?c.t!==a:!po(s,a))return!0}}var l=!!e[qo];return r.length!==Yo(e).length+(l?0:1)}function r(t){var e=t.k;if(e.length!==t.t.length)return!0;var o=Object.getOwnPropertyDescriptor(e,e.length-1);if(o&&!o.get)return!0;for(var r=0;r<e.length;r++)if(!e.hasOwnProperty(r))return!0;return!1}var i={};!function(t,e){Qo[t]||(Qo[t]=e)}("ES5",{J:function(e,o){var r=Array.isArray(e),i=function(e,o){if(e){for(var r=Array(o.length),i=0;i<o.length;i++)Object.defineProperty(r,""+i,t(i,!0));return r}var n=Xo(o);delete n[qo];for(var a=Yo(n),s=0;s<a.length;s++){var c=a[s];n[c]=t(c,e||!!n[c].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(r,e),n={i:r?5:4,A:o?o.A:So(),P:!1,I:!1,R:{},l:o,t:e,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,qo,{value:n,writable:!0}),i},S:function(t,o,i){i?so(o)&&o[qo].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[qo];if(o){var i=o.t,n=o.k,a=o.R,s=o.i;if(4===s)lo(n,(function(e){e!==qo&&(void 0!==i[e]||ho(i,e)?a[e]||t(n[e]):(a[e]=!0,jo(o)))})),lo(i,(function(t){void 0!==n[t]||ho(n,t)||(a[t]=!1,jo(o))}));else if(5===s){if(r(o)&&(jo(o),a.length=!0),n.length<i.length)for(var c=n.length;c<i.length;c++)a[c]=!1;else for(var l=i.length;l<n.length;l++)a[l]=!0;for(var f=Math.min(n.length,i.length),h=0;h<f;h++)n.hasOwnProperty(h)||(a[h]=!0),void 0===a[h]&&t(n[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):r(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class qr{static get(t){var e;const o="string"==typeof t?t:t.name,r="string"==typeof t?void 0:t,i=window.ftReduxStores[o];if(Qe(i))return i;if(null==r)return;const n=Kr({...r,reducers:null!==(e=r.reducers)&&void 0!==e?e:{}}),a=Mr({reducer:(t,e)=>{var o;switch(e.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(o=e.overwrites)&&void 0!==o?o:{}};default:return n.reducer(t,e)}}});return window.ftReduxStores[r.name]=new qr(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Xe,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const r=e,i=t[r];return i?(...t)=>{const e=i(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[r]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",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()}}const Vr=Symbol("elementInternals");var Yr,Xr,Qr;const Jr=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Qr=null===(Xr=null===(Yr=window.safari)||void 0===Yr?void 0:Yr.pushNotification)||void 0===Xr?void 0:Xr.toString())&&void 0!==Qr?Qr:""),ti=ke.extend("--ft-ripple-color","",je.colorContent),ei={color:ti,backgroundColor:ke.extend("--ft-ripple-background-color","",ti),opacityContentOnSurfacePressed:ke.external(je.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ke.external(je.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ke.external(je.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ke.external(je.opacityContentOnSurfaceSelected,"Design system"),borderRadius:ke.create("--ft-ripple-border-radius","","SIZE","0px")},oi=ke.extend("--ft-ripple-color","",je.colorPrimary),ri=oi,ii=ke.extend("--ft-ripple-background-color","",oi),ni=ke.extend("--ft-ripple-color","",je.colorSecondary),ai=ni,si=ke.extend("--ft-ripple-background-color","",ni),ci=kt`
131
131
  :host {
132
132
  display: contents;
133
133
  }
@@ -317,7 +317,7 @@ let Ee=class extends _t{constructor(){super(...arguments),this.renderOptions={ho
317
317
  #action {
318
318
  grid-area: actions;
319
319
  }
320
- `;const hi=ke.extend("--ft-typography-font-family","",je.titleFont),ui=ke.extend("--ft-typography-font-family","",je.contentFont),pi={fontFamily:ui,fontSize:ke.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:ke.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:ke.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:ke.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:ke.create("--ft-typography-text-transform","","UNKNOWN","inherit")},di=ke.extend("--ft-typography-title-font-family","",hi),yi=ke.extend("--ft-typography-title-font-size","",pi.fontSize,"20px"),gi=ke.extend("--ft-typography-title-font-weight","",pi.fontWeight,"normal"),bi=ke.extend("--ft-typography-title-letter-spacing","",pi.letterSpacing,"0.15px"),mi=ke.extend("--ft-typography-title-line-height","",pi.lineHeight,"1.2"),vi=ke.extend("--ft-typography-title-text-transform","",pi.textTransform,"inherit"),xi=ke.extend("--ft-typography-title-dense-font-family","",hi),Oi=ke.extend("--ft-typography-title-dense-font-size","",pi.fontSize,"14px"),wi=ke.extend("--ft-typography-title-dense-font-weight","",pi.fontWeight,"normal"),Si=ke.extend("--ft-typography-title-dense-letter-spacing","",pi.letterSpacing,"0.105px"),Ni=ke.extend("--ft-typography-title-dense-line-height","",pi.lineHeight,"1.7"),Ci=ke.extend("--ft-typography-title-dense-text-transform","",pi.textTransform,"inherit"),Ei=ke.extend("--ft-typography-subtitle1-font-family","",ui),$i=ke.extend("--ft-typography-subtitle1-font-size","",pi.fontSize,"16px"),Ri=ke.extend("--ft-typography-subtitle1-font-weight","",pi.fontWeight,"600"),ki=ke.extend("--ft-typography-subtitle1-letter-spacing","",pi.letterSpacing,"0.144px"),Ui=ke.extend("--ft-typography-subtitle1-line-height","",pi.lineHeight,"1.5"),Ii=ke.extend("--ft-typography-subtitle1-text-transform","",pi.textTransform,"inherit"),Li=ke.extend("--ft-typography-subtitle2-font-family","",ui),Ai=ke.extend("--ft-typography-subtitle2-font-size","",pi.fontSize,"14px"),Wi=ke.extend("--ft-typography-subtitle2-font-weight","",pi.fontWeight,"normal"),ji=ke.extend("--ft-typography-subtitle2-letter-spacing","",pi.letterSpacing,"0.098px"),Fi=ke.extend("--ft-typography-subtitle2-line-height","",pi.lineHeight,"1.7"),Pi=ke.extend("--ft-typography-subtitle2-text-transform","",pi.textTransform,"inherit"),Bi=ke.extend("--ft-typography-body1-font-family","",ui),Mi=ke.extend("--ft-typography-body1-font-size","",pi.fontSize,"16px"),Ki=ke.extend("--ft-typography-body1-font-weight","",pi.fontWeight,"normal"),Ti=ke.extend("--ft-typography-body1-letter-spacing","",pi.letterSpacing,"0.496px"),Di=ke.extend("--ft-typography-body1-line-height","",pi.lineHeight,"1.5"),zi=ke.extend("--ft-typography-body1-text-transform","",pi.textTransform,"inherit"),Zi=ke.extend("--ft-typography-body2-font-family","",ui),_i=ke.extend("--ft-typography-body2-font-size","",pi.fontSize,"14px"),Hi=ke.extend("--ft-typography-body2-font-weight","",pi.fontWeight,"normal"),Gi=ke.extend("--ft-typography-body2-letter-spacing","",pi.letterSpacing,"0.252px"),qi=ke.extend("--ft-typography-body2-line-height","",pi.lineHeight,"1.4"),Vi=ke.extend("--ft-typography-body2-text-transform","",pi.textTransform,"inherit"),Yi=ke.extend("--ft-typography-caption-font-family","",ui),Xi=ke.extend("--ft-typography-caption-font-size","",pi.fontSize,"12px"),Qi=ke.extend("--ft-typography-caption-font-weight","",pi.fontWeight,"normal"),Ji=ke.extend("--ft-typography-caption-letter-spacing","",pi.letterSpacing,"0.396px"),tn=ke.extend("--ft-typography-caption-line-height","",pi.lineHeight,"1.33"),en=ke.extend("--ft-typography-caption-text-transform","",pi.textTransform,"inherit"),on=ke.extend("--ft-typography-breadcrumb-font-family","",ui),rn=ke.extend("--ft-typography-breadcrumb-font-size","",pi.fontSize,"10px"),nn=ke.extend("--ft-typography-breadcrumb-font-weight","",pi.fontWeight,"normal"),an=ke.extend("--ft-typography-breadcrumb-letter-spacing","",pi.letterSpacing,"0.33px"),sn=ke.extend("--ft-typography-breadcrumb-line-height","",pi.lineHeight,"1.6"),cn=ke.extend("--ft-typography-breadcrumb-text-transform","",pi.textTransform,"inherit"),ln=ke.extend("--ft-typography-overline-font-family","",ui),fn=ke.extend("--ft-typography-overline-font-size","",pi.fontSize,"10px"),hn=ke.extend("--ft-typography-overline-font-weight","",pi.fontWeight,"normal"),un=ke.extend("--ft-typography-overline-letter-spacing","",pi.letterSpacing,"1.5px"),pn=ke.extend("--ft-typography-overline-line-height","",pi.lineHeight,"1.6"),dn=ke.extend("--ft-typography-overline-text-transform","",pi.textTransform,"uppercase"),yn={fontFamily:ke.extend("--ft-typography-button-font-family","",ui),fontSize:ke.extend("--ft-typography-button-font-size","",pi.fontSize,"14px"),fontWeight:ke.extend("--ft-typography-button-font-weight","",pi.fontWeight,"600"),letterSpacing:ke.extend("--ft-typography-button-letter-spacing","",pi.letterSpacing,"1.246px"),lineHeight:ke.extend("--ft-typography-button-line-height","",pi.lineHeight,"1.15"),textTransform:ke.extend("--ft-typography-button-text-transform","",pi.textTransform,"uppercase")},gn=kt`
320
+ `;const hi=ke.extend("--ft-typography-font-family","",je.titleFont),ui=ke.extend("--ft-typography-font-family","",je.contentFont),pi={fontFamily:ui,fontSize:ke.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:ke.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:ke.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:ke.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:ke.create("--ft-typography-text-transform","","UNKNOWN","inherit")},di=ke.extend("--ft-typography-title-font-family","",hi),yi=ke.extend("--ft-typography-title-font-size","",pi.fontSize,"20px"),gi=ke.extend("--ft-typography-title-font-weight","",pi.fontWeight,"normal"),bi=ke.extend("--ft-typography-title-letter-spacing","",pi.letterSpacing,"0.15px"),mi=ke.extend("--ft-typography-title-line-height","",pi.lineHeight,"1.2"),vi=ke.extend("--ft-typography-title-text-transform","",pi.textTransform,"inherit"),xi=ke.extend("--ft-typography-title-dense-font-family","",hi),Oi=ke.extend("--ft-typography-title-dense-font-size","",pi.fontSize,"14px"),wi=ke.extend("--ft-typography-title-dense-font-weight","",pi.fontWeight,"normal"),Si=ke.extend("--ft-typography-title-dense-letter-spacing","",pi.letterSpacing,"0.105px"),Ni=ke.extend("--ft-typography-title-dense-line-height","",pi.lineHeight,"1.7"),Ci=ke.extend("--ft-typography-title-dense-text-transform","",pi.textTransform,"inherit"),Ei=ke.extend("--ft-typography-subtitle1-font-family","",ui),$i=ke.extend("--ft-typography-subtitle1-font-size","",pi.fontSize,"16px"),Ri=ke.extend("--ft-typography-subtitle1-font-weight","",pi.fontWeight,"600"),ki=ke.extend("--ft-typography-subtitle1-letter-spacing","",pi.letterSpacing,"0.144px"),Ui=ke.extend("--ft-typography-subtitle1-line-height","",pi.lineHeight,"1.5"),Ii=ke.extend("--ft-typography-subtitle1-text-transform","",pi.textTransform,"inherit"),Li=ke.extend("--ft-typography-subtitle2-font-family","",ui),Ai=ke.extend("--ft-typography-subtitle2-font-size","",pi.fontSize,"14px"),Wi=ke.extend("--ft-typography-subtitle2-font-weight","",pi.fontWeight,"normal"),ji=ke.extend("--ft-typography-subtitle2-letter-spacing","",pi.letterSpacing,"0.098px"),Fi=ke.extend("--ft-typography-subtitle2-line-height","",pi.lineHeight,"1.7"),Pi=ke.extend("--ft-typography-subtitle2-text-transform","",pi.textTransform,"inherit"),Mi=ke.extend("--ft-typography-body1-font-family","",ui),Bi=ke.extend("--ft-typography-body1-font-size","",pi.fontSize,"16px"),Di=ke.extend("--ft-typography-body1-font-weight","",pi.fontWeight,"normal"),Ki=ke.extend("--ft-typography-body1-letter-spacing","",pi.letterSpacing,"0.496px"),Ti=ke.extend("--ft-typography-body1-line-height","",pi.lineHeight,"1.5"),zi=ke.extend("--ft-typography-body1-text-transform","",pi.textTransform,"inherit"),Zi=ke.extend("--ft-typography-body2-font-family","",ui),_i=ke.extend("--ft-typography-body2-font-size","",pi.fontSize,"14px"),Hi=ke.extend("--ft-typography-body2-font-weight","",pi.fontWeight,"normal"),Gi=ke.extend("--ft-typography-body2-letter-spacing","",pi.letterSpacing,"0.252px"),qi=ke.extend("--ft-typography-body2-line-height","",pi.lineHeight,"1.4"),Vi=ke.extend("--ft-typography-body2-text-transform","",pi.textTransform,"inherit"),Yi=ke.extend("--ft-typography-caption-font-family","",ui),Xi=ke.extend("--ft-typography-caption-font-size","",pi.fontSize,"12px"),Qi=ke.extend("--ft-typography-caption-font-weight","",pi.fontWeight,"normal"),Ji=ke.extend("--ft-typography-caption-letter-spacing","",pi.letterSpacing,"0.396px"),tn=ke.extend("--ft-typography-caption-line-height","",pi.lineHeight,"1.33"),en=ke.extend("--ft-typography-caption-text-transform","",pi.textTransform,"inherit"),on=ke.extend("--ft-typography-breadcrumb-font-family","",ui),rn=ke.extend("--ft-typography-breadcrumb-font-size","",pi.fontSize,"10px"),nn=ke.extend("--ft-typography-breadcrumb-font-weight","",pi.fontWeight,"normal"),an=ke.extend("--ft-typography-breadcrumb-letter-spacing","",pi.letterSpacing,"0.33px"),sn=ke.extend("--ft-typography-breadcrumb-line-height","",pi.lineHeight,"1.6"),cn=ke.extend("--ft-typography-breadcrumb-text-transform","",pi.textTransform,"inherit"),ln=ke.extend("--ft-typography-overline-font-family","",ui),fn=ke.extend("--ft-typography-overline-font-size","",pi.fontSize,"10px"),hn=ke.extend("--ft-typography-overline-font-weight","",pi.fontWeight,"normal"),un=ke.extend("--ft-typography-overline-letter-spacing","",pi.letterSpacing,"1.5px"),pn=ke.extend("--ft-typography-overline-line-height","",pi.lineHeight,"1.6"),dn=ke.extend("--ft-typography-overline-text-transform","",pi.textTransform,"uppercase"),yn={fontFamily:ke.extend("--ft-typography-button-font-family","",ui),fontSize:ke.extend("--ft-typography-button-font-size","",pi.fontSize,"14px"),fontWeight:ke.extend("--ft-typography-button-font-weight","",pi.fontWeight,"600"),letterSpacing:ke.extend("--ft-typography-button-letter-spacing","",pi.letterSpacing,"1.246px"),lineHeight:ke.extend("--ft-typography-button-line-height","",pi.lineHeight,"1.15"),textTransform:ke.extend("--ft-typography-button-text-transform","",pi.textTransform,"uppercase")},gn=kt`
321
321
  .ft-typography--title {
322
322
  font-family: ${di};
323
323
  font-size: ${yi};
@@ -356,11 +356,11 @@ let Ee=class extends _t{constructor(){super(...arguments),this.renderOptions={ho
356
356
 
357
357
  `,xn=kt`
358
358
  .ft-typography--body1 {
359
- font-family: ${Bi};
360
- font-size: ${Mi};
361
- font-weight: ${Ki};
362
- letter-spacing: ${Ti};
363
- line-height: ${Di};
359
+ font-family: ${Mi};
360
+ font-size: ${Bi};
361
+ font-weight: ${Di};
362
+ letter-spacing: ${Ki};
363
+ line-height: ${Ti};
364
364
  text-transform: ${zi};
365
365
  }
366
366
  `,On=kt`
@@ -538,7 +538,7 @@ let Ee=class extends _t{constructor(){super(...arguments),this.renderOptions={ho
538
538
  .ft-icon--material {
539
539
  font-family: ${Un.materialFontFamily}, "Material Icons", sans-serif;
540
540
  }
541
- `,Ln=ke.extend("--ft-button-color","",je.colorPrimary),An={backgroundColor:ke.extend("--ft-button-background-color","",je.colorSurface),borderRadius:ke.extend("--ft-button-border-radius","",je.borderRadiusL),color:Ln,fontSize:ke.extend("--ft-button-font-size","",yn.fontSize),iconSize:ke.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:ke.extend("--ft-button-ripple-color","",Ln),verticalPadding:ke.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:ke.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:ke.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:ke.external(je.colorOpacityDisabled,"Design system")},Wn=ke.extend("--ft-button-primary-color","",ke.extend("--ft-button-color","",je.colorOnPrimary)),jn={backgroundColor:ke.extend("--ft-button-primary-background-color","",ke.extend("--ft-button-background-color","",je.colorPrimary)),color:Wn,rippleColor:ke.extend("--ft-button-primary-ripple-color","",Wn)},Fn=ke.extend("--ft-button-dense-border-radius","",ke.extend("--ft-button-border-radius","",je.borderRadiusM)),Pn=ke.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Bn=ke.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Mn=ke.create("--ft-button-dense-icon-padding","","SIZE","4px"),Kn=[kt`
541
+ `,Ln=ke.extend("--ft-button-color","",je.colorPrimary),An={backgroundColor:ke.extend("--ft-button-background-color","",je.colorSurface),borderRadius:ke.extend("--ft-button-border-radius","",je.borderRadiusL),color:Ln,fontSize:ke.extend("--ft-button-font-size","",yn.fontSize),iconSize:ke.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:ke.extend("--ft-button-ripple-color","",Ln),verticalPadding:ke.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:ke.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:ke.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:ke.external(je.colorOpacityDisabled,"Design system")},Wn=ke.extend("--ft-button-primary-color","",ke.extend("--ft-button-color","",je.colorOnPrimary)),jn={backgroundColor:ke.extend("--ft-button-primary-background-color","",ke.extend("--ft-button-background-color","",je.colorPrimary)),color:Wn,rippleColor:ke.extend("--ft-button-primary-ripple-color","",Wn)},Fn=ke.extend("--ft-button-dense-border-radius","",ke.extend("--ft-button-border-radius","",je.borderRadiusM)),Pn=ke.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Mn=ke.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Bn=ke.create("--ft-button-dense-icon-padding","","SIZE","4px"),Dn=[kt`
542
542
  :host {
543
543
  display: inline-block;
544
544
  max-width: 100%;
@@ -596,13 +596,13 @@ let Ee=class extends _t{constructor(){super(...arguments),this.renderOptions={ho
596
596
  }
597
597
 
598
598
  .ft-button.ft-button--dense {
599
- padding: ${Pn} ${Bn};
599
+ padding: ${Pn} ${Mn};
600
600
  border-radius: ${Fn};
601
- gap: ${Mn};
601
+ gap: ${Bn};
602
602
  }
603
603
 
604
604
  .ft-button.ft-button--dense.ft-button--outlined {
605
- padding: calc(${Pn} - 1px) calc(${Bn} - 1px);
605
+ padding: calc(${Pn} - 1px) calc(${Mn} - 1px);
606
606
  }
607
607
 
608
608
  .ft-button:not([disabled]):hover {
@@ -644,7 +644,7 @@ let Ee=class extends _t{constructor(){super(...arguments),this.renderOptions={ho
644
644
  }
645
645
 
646
646
  .ft-button--dense .ft-button--label {
647
- margin: 0 ${Mn};
647
+ margin: 0 ${Bn};
648
648
  }
649
649
 
650
650
  .ft-button--label[hidden] {
@@ -662,7 +662,7 @@ let Ee=class extends _t{constructor(){super(...arguments),this.renderOptions={ho
662
662
  }
663
663
 
664
664
  .ft-button--dense .ft-button--label[hidden] + ft-icon {
665
- margin: 0 calc(${Bn} * -1);
665
+ margin: 0 calc(${Mn} * -1);
666
666
  padding: 0 ${Pn};
667
667
  }
668
668
 
@@ -675,12 +675,12 @@ let Ee=class extends _t{constructor(){super(...arguments),this.renderOptions={ho
675
675
  ${Ue(Rn.size,An.iconSize)};
676
676
  ${Ue(Rn.color,"var(--ft-button-internal-color)")};
677
677
  }
678
- `,He],Tn=1,Dn=2,zn=t=>(...e)=>({_$litDirective$:t,values:e});let Zn=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
678
+ `,He],Kn=1,Tn=2,zn=t=>(...e)=>({_$litDirective$:t,values:e});let Zn=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
679
679
  /**
680
680
  * @license
681
681
  * Copyright 2018 Google LLC
682
682
  * SPDX-License-Identifier: BSD-3-Clause
683
- */const _n=zn(class extends Zn{constructor(t){if(super(t),t.type!==Tn||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(e)}const o=t.element.classList;for(const t of this.it)t in e||(o.remove(t),this.it.delete(t));for(const t in e){const r=!!e[t];r===this.it.has(t)||this.st?.has(t)||(r?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return at}});var Hn=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Gn extends Ze{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 n(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new n(10),this.moveRipple=t=>{var e,o;let{x:r,y:i}=this.getCoordinates(t),n=null!==(o=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==o?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=r?r-n.x:n.width/2),this.originY=Math.round(null!=i?i-n.y:n.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(null==t?void 0: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 he`
683
+ */const _n=zn(class extends Zn{constructor(t){if(super(t),t.type!==Kn||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(e)}const o=t.element.classList;for(const t of this.it)t in e||(o.remove(t),this.it.delete(t));for(const t in e){const r=!!e[t];r===this.it.has(t)||this.st?.has(t)||(r?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return at}});var Hn=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Gn extends Ze{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 n(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new n(10),this.moveRipple=t=>{var e,o;let{x:r,y:i}=this.getCoordinates(t),n=null!==(o=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==o?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=r?r-n.x:n.width/2),this.originY=Math.round(null!=i?i-n.y:n.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(null==t?void 0: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 he`
684
684
  <style>
685
685
  .ft-ripple .ft-ripple--effect {
686
686
  left: ${this.originX}px;
@@ -733,7 +733,7 @@ const qn=Symbol.for(""),Vn=t=>{if(t?.r===qn)return t?._$litStatic$},Yn=t=>({_$li
733
733
  position: relative;
734
734
  word-break: break-word;
735
735
  }
736
- `,ia=["start","end"],na=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+ia[0],e+"-"+ia[1])),[]),aa=Math.min,sa=Math.max,ca=Math.round,la=t=>({x:t,y:t}),fa={left:"right",right:"left",bottom:"top",top:"bottom"},ha={start:"end",end:"start"};function ua(t,e,o){return sa(t,aa(e,o))}function pa(t,e){return"function"==typeof t?t(e):t}function da(t){return t.split("-")[0]}function ya(t){return t.split("-")[1]}function ga(t){return"x"===t?"y":"x"}function ba(t){return"y"===t?"height":"width"}function ma(t){return["top","bottom"].includes(da(t))?"y":"x"}function va(t){return ga(ma(t))}function xa(t){return t.replace(/left|right|bottom|top/g,(t=>fa[t]))}function Oa(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function wa(t,e,o){let{reference:r,floating:i}=t;const n=ma(e),a=va(e),s=ba(a),c=da(e),l="y"===n,f=r.x+r.width/2-i.width/2,h=r.y+r.height/2-i.height/2,u=r[s]/2-i[s]/2;let p;switch(c){case"top":p={x:f,y:r.y-i.height};break;case"bottom":p={x:f,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:h};break;case"left":p={x:r.x-i.width,y:h};break;default:p={x:r.x,y:r.y}}switch(ya(e)){case"start":p[a]-=u*(o&&l?-1:1);break;case"end":p[a]+=u*(o&&l?-1:1)}return p}async function Sa(t,e){var o;void 0===e&&(e={});const{x:r,y:i,platform:n,rects:a,elements:s,strategy:c}=t,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:u=!1,padding:p=0}=pa(e,t),d=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(p),y=s[u?"floating"===h?"reference":"floating":h],g=Oa(await n.getClippingRect({element:null==(o=await(null==n.isElement?void 0:n.isElement(y)))||o?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:l,rootBoundary:f,strategy:c})),b="floating"===h?{...a.floating,x:r,y:i}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),v=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},x=Oa(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:c}):b);return{top:(g.top-x.top+d.top)/v.y,bottom:(x.bottom-g.bottom+d.bottom)/v.y,left:(g.left-x.left+d.left)/v.x,right:(x.right-g.right+d.right)/v.x}}function Na(t,e,o){return(t?[...o.filter((e=>ya(e)===t)),...o.filter((e=>ya(e)!==t))]:o.filter((t=>da(t)===t))).filter((o=>!t||(ya(o)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>ha[t]))}(o)!==o)))}const Ca=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,r,i;const{rects:n,middlewareData:a,placement:s,platform:c,elements:l}=e,{crossAxis:f=!1,alignment:h,allowedPlacements:u=na,autoAlignment:p=!0,...d}=pa(t,e),y=void 0!==h||u===na?Na(h||null,p,u):u,g=await Sa(e,d),b=(null==(o=a.autoPlacement)?void 0:o.index)||0,m=y[b];if(null==m)return{};const v=function(t,e,o){void 0===o&&(o=!1);const r=ya(t),i=va(t),n=ba(i);let a="x"===i?r===(o?"end":"start")?"right":"left":"start"===r?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=xa(a)),[a,xa(a)]}(m,n,await(null==c.isRTL?void 0:c.isRTL(l.floating)));if(s!==m)return{reset:{placement:y[0]}};const x=[g[da(m)],g[v[0]],g[v[1]]],O=[...(null==(r=a.autoPlacement)?void 0:r.overflows)||[],{placement:m,overflows:x}],w=y[b+1];if(w)return{data:{index:b+1,overflows:O},reset:{placement:w}};const S=O.map((t=>{const e=ya(t.placement);return[t.placement,e&&f?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),N=S.filter((t=>t[2].slice(0,ya(t[0])?2:3).every((t=>t<=0)))),C=(null==(i=N[0])?void 0:i[0])||S[0][0];return C!==s?{data:{index:b+1,overflows:O},reset:{placement:C}}:{}}}};function Ea(t){return ka(t)?(t.nodeName||"").toLowerCase():"#document"}function $a(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Ra(t){var e;return null==(e=(ka(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function ka(t){return t instanceof Node||t instanceof $a(t).Node}function Ua(t){return t instanceof Element||t instanceof $a(t).Element}function Ia(t){return t instanceof HTMLElement||t instanceof $a(t).HTMLElement}function La(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof $a(t).ShadowRoot)}function Aa(t){const{overflow:e,overflowX:o,overflowY:r,display:i}=Ba(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+o)&&!["inline","contents"].includes(i)}function Wa(t){return["table","td","th"].includes(Ea(t))}function ja(t){const e=Fa(),o=Ba(t);return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function Fa(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Pa(t){return["html","body","#document"].includes(Ea(t))}function Ba(t){return $a(t).getComputedStyle(t)}function Ma(t){return Ua(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ka(t){if("html"===Ea(t))return t;const e=t.assignedSlot||t.parentNode||La(t)&&t.host||Ra(t);return La(e)?e.host:e}function Ta(t){const e=Ka(t);return Pa(e)?t.ownerDocument?t.ownerDocument.body:t.body:Ia(e)&&Aa(e)?e:Ta(e)}function Da(t,e,o){var r;void 0===e&&(e=[]),void 0===o&&(o=!0);const i=Ta(t),n=i===(null==(r=t.ownerDocument)?void 0:r.body),a=$a(i);return n?e.concat(a,a.visualViewport||[],Aa(i)?i:[],a.frameElement&&o?Da(a.frameElement):[]):e.concat(i,Da(i,[],o))}function za(t){const e=Ba(t);let o=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=Ia(t),n=i?t.offsetWidth:o,a=i?t.offsetHeight:r,s=ca(o)!==n||ca(r)!==a;return s&&(o=n,r=a),{width:o,height:r,$:s}}function Za(t){return Ua(t)?t:t.contextElement}function _a(t){const e=Za(t);if(!Ia(e))return la(1);const o=e.getBoundingClientRect(),{width:r,height:i,$:n}=za(e);let a=(n?ca(o.width):o.width)/r,s=(n?ca(o.height):o.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Ha=la(0);function Ga(t){const e=$a(t);return Fa()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Ha}function qa(t,e,o,r){void 0===e&&(e=!1),void 0===o&&(o=!1);const i=t.getBoundingClientRect(),n=Za(t);let a=la(1);e&&(r?Ua(r)&&(a=_a(r)):a=_a(t));const s=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==$a(t))&&e}(n,o,r)?Ga(n):la(0);let c=(i.left+s.x)/a.x,l=(i.top+s.y)/a.y,f=i.width/a.x,h=i.height/a.y;if(n){const t=$a(n),e=r&&Ua(r)?$a(r):r;let o=t.frameElement;for(;o&&r&&e!==t;){const t=_a(o),e=o.getBoundingClientRect(),r=Ba(o),i=e.left+(o.clientLeft+parseFloat(r.paddingLeft))*t.x,n=e.top+(o.clientTop+parseFloat(r.paddingTop))*t.y;c*=t.x,l*=t.y,f*=t.x,h*=t.y,c+=i,l+=n,o=$a(o).frameElement}}return Oa({width:f,height:h,x:c,y:l})}function Va(t){return qa(Ra(t)).left+Ma(t).scrollLeft}function Ya(t,e,o){let r;if("viewport"===e)r=function(t,e){const o=$a(t),r=Ra(t),i=o.visualViewport;let n=r.clientWidth,a=r.clientHeight,s=0,c=0;if(i){n=i.width,a=i.height;const t=Fa();(!t||t&&"fixed"===e)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:n,height:a,x:s,y:c}}(t,o);else if("document"===e)r=function(t){const e=Ra(t),o=Ma(t),r=t.ownerDocument.body,i=sa(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),n=sa(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let a=-o.scrollLeft+Va(t);const s=-o.scrollTop;return"rtl"===Ba(r).direction&&(a+=sa(e.clientWidth,r.clientWidth)-i),{width:i,height:n,x:a,y:s}}(Ra(t));else if(Ua(e))r=function(t,e){const o=qa(t,!0,"fixed"===e),r=o.top+t.clientTop,i=o.left+t.clientLeft,n=Ia(t)?_a(t):la(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:i*n.x,y:r*n.y}}(e,o);else{const o=Ga(t);r={...e,x:e.x-o.x,y:e.y-o.y}}return Oa(r)}function Xa(t,e){const o=Ka(t);return!(o===e||!Ua(o)||Pa(o))&&("fixed"===Ba(o).position||Xa(o,e))}function Qa(t,e,o){const r=Ia(e),i=Ra(e),n="fixed"===o,a=qa(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const c=la(0);if(r||!r&&!n)if(("body"!==Ea(e)||Aa(i))&&(s=Ma(e)),r){const t=qa(e,!0,n,e);c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}else i&&(c.x=Va(i));return{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function Ja(t,e){return Ia(t)&&"fixed"!==Ba(t).position?e?e(t):t.offsetParent:null}function ts(t,e){const o=$a(t);if(!Ia(t))return o;let r=Ja(t,e);for(;r&&Wa(r)&&"static"===Ba(r).position;)r=Ja(r,e);return r&&("html"===Ea(r)||"body"===Ea(r)&&"static"===Ba(r).position&&!ja(r))?o:r||function(t){let e=Ka(t);for(;Ia(e)&&!Pa(e);){if(ja(e))return e;e=Ka(e)}return null}(t)||o}const es={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:r}=t;const i=Ia(o),n=Ra(o);if(o===n)return e;let a={scrollLeft:0,scrollTop:0},s=la(1);const c=la(0);if((i||!i&&"fixed"!==r)&&(("body"!==Ea(o)||Aa(n))&&(a=Ma(o)),Ia(o))){const t=qa(o);s=_a(o),c.x=t.x+o.clientLeft,c.y=t.y+o.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+c.x,y:e.y*s.y-a.scrollTop*s.y+c.y}},getDocumentElement:Ra,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:r,strategy:i}=t;const n="clippingAncestors"===o?function(t,e){const o=e.get(t);if(o)return o;let r=Da(t,[],!1).filter((t=>Ua(t)&&"body"!==Ea(t))),i=null;const n="fixed"===Ba(t).position;let a=n?Ka(t):t;for(;Ua(a)&&!Pa(a);){const e=Ba(a),o=ja(a);o||"fixed"!==e.position||(i=null),(n?!o&&!i:!o&&"static"===e.position&&i&&["absolute","fixed"].includes(i.position)||Aa(a)&&!o&&Xa(t,a))?r=r.filter((t=>t!==a)):i=e,a=Ka(a)}return e.set(t,r),r}(e,this._c):[].concat(o),a=[...n,r],s=a[0],c=a.reduce(((t,o)=>{const r=Ya(e,o,i);return t.top=sa(r.top,t.top),t.right=aa(r.right,t.right),t.bottom=aa(r.bottom,t.bottom),t.left=sa(r.left,t.left),t}),Ya(e,s,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:ts,getElementRects:async function(t){let{reference:e,floating:o,strategy:r}=t;const i=this.getOffsetParent||ts,n=this.getDimensions;return{reference:Qa(e,await i(o),r),floating:{x:0,y:0,...await n(o)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return za(t)},getScale:_a,isElement:Ua,isRTL:function(t){return"rtl"===Ba(t).direction}},os=(t,e,o)=>{const r=new Map,i={platform:es,...o},n={...i.platform,_c:r};return(async(t,e,o)=>{const{placement:r="bottom",strategy:i="absolute",middleware:n=[],platform:a}=o,s=n.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(e));let l=await a.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:h}=wa(l,r,c),u=r,p={},d=0;for(let o=0;o<s.length;o++){const{name:n,fn:y}=s[o],{x:g,y:b,data:m,reset:v}=await y({x:f,y:h,initialPlacement:r,placement:u,strategy:i,middlewareData:p,rects:l,platform:a,elements:{reference:t,floating:e}});f=null!=g?g:f,h=null!=b?b:h,p={...p,[n]:{...p[n],...m}},v&&d<=50&&(d++,"object"==typeof v&&(v.placement&&(u=v.placement),v.rects&&(l=!0===v.rects?await a.getElementRects({reference:t,floating:e,strategy:i}):v.rects),({x:f,y:h}=wa(l,u,c))),o=-1)}return{x:f,y:h,placement:u,strategy:i,middlewareData:p}})(t,e,{...i,platform:n})};function rs(t){return function(t){for(let e=t;e;e=is(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=is(t);e;e=is(e)){if(!(e instanceof Element))continue;const t=getComputedStyle(e);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return e;if("BODY"===e.tagName)return e}}return null}(t)}function is(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}var ns=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class as extends Ze{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new n,this.revealDebouncer=new n}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return he`
736
+ `,ia=["start","end"],na=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+ia[0],e+"-"+ia[1])),[]),aa=Math.min,sa=Math.max,ca=Math.round,la=t=>({x:t,y:t}),fa={left:"right",right:"left",bottom:"top",top:"bottom"},ha={start:"end",end:"start"};function ua(t,e,o){return sa(t,aa(e,o))}function pa(t,e){return"function"==typeof t?t(e):t}function da(t){return t.split("-")[0]}function ya(t){return t.split("-")[1]}function ga(t){return"x"===t?"y":"x"}function ba(t){return"y"===t?"height":"width"}function ma(t){return["top","bottom"].includes(da(t))?"y":"x"}function va(t){return ga(ma(t))}function xa(t){return t.replace(/left|right|bottom|top/g,(t=>fa[t]))}function Oa(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function wa(t,e,o){let{reference:r,floating:i}=t;const n=ma(e),a=va(e),s=ba(a),c=da(e),l="y"===n,f=r.x+r.width/2-i.width/2,h=r.y+r.height/2-i.height/2,u=r[s]/2-i[s]/2;let p;switch(c){case"top":p={x:f,y:r.y-i.height};break;case"bottom":p={x:f,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:h};break;case"left":p={x:r.x-i.width,y:h};break;default:p={x:r.x,y:r.y}}switch(ya(e)){case"start":p[a]-=u*(o&&l?-1:1);break;case"end":p[a]+=u*(o&&l?-1:1)}return p}async function Sa(t,e){var o;void 0===e&&(e={});const{x:r,y:i,platform:n,rects:a,elements:s,strategy:c}=t,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:u=!1,padding:p=0}=pa(e,t),d=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(p),y=s[u?"floating"===h?"reference":"floating":h],g=Oa(await n.getClippingRect({element:null==(o=await(null==n.isElement?void 0:n.isElement(y)))||o?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:l,rootBoundary:f,strategy:c})),b="floating"===h?{...a.floating,x:r,y:i}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),v=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},x=Oa(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:c}):b);return{top:(g.top-x.top+d.top)/v.y,bottom:(x.bottom-g.bottom+d.bottom)/v.y,left:(g.left-x.left+d.left)/v.x,right:(x.right-g.right+d.right)/v.x}}function Na(t,e,o){return(t?[...o.filter((e=>ya(e)===t)),...o.filter((e=>ya(e)!==t))]:o.filter((t=>da(t)===t))).filter((o=>!t||(ya(o)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>ha[t]))}(o)!==o)))}const Ca=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,r,i;const{rects:n,middlewareData:a,placement:s,platform:c,elements:l}=e,{crossAxis:f=!1,alignment:h,allowedPlacements:u=na,autoAlignment:p=!0,...d}=pa(t,e),y=void 0!==h||u===na?Na(h||null,p,u):u,g=await Sa(e,d),b=(null==(o=a.autoPlacement)?void 0:o.index)||0,m=y[b];if(null==m)return{};const v=function(t,e,o){void 0===o&&(o=!1);const r=ya(t),i=va(t),n=ba(i);let a="x"===i?r===(o?"end":"start")?"right":"left":"start"===r?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=xa(a)),[a,xa(a)]}(m,n,await(null==c.isRTL?void 0:c.isRTL(l.floating)));if(s!==m)return{reset:{placement:y[0]}};const x=[g[da(m)],g[v[0]],g[v[1]]],O=[...(null==(r=a.autoPlacement)?void 0:r.overflows)||[],{placement:m,overflows:x}],w=y[b+1];if(w)return{data:{index:b+1,overflows:O},reset:{placement:w}};const S=O.map((t=>{const e=ya(t.placement);return[t.placement,e&&f?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),N=S.filter((t=>t[2].slice(0,ya(t[0])?2:3).every((t=>t<=0)))),C=(null==(i=N[0])?void 0:i[0])||S[0][0];return C!==s?{data:{index:b+1,overflows:O},reset:{placement:C}}:{}}}};function Ea(t){return ka(t)?(t.nodeName||"").toLowerCase():"#document"}function $a(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Ra(t){var e;return null==(e=(ka(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function ka(t){return t instanceof Node||t instanceof $a(t).Node}function Ua(t){return t instanceof Element||t instanceof $a(t).Element}function Ia(t){return t instanceof HTMLElement||t instanceof $a(t).HTMLElement}function La(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof $a(t).ShadowRoot)}function Aa(t){const{overflow:e,overflowX:o,overflowY:r,display:i}=Ma(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+o)&&!["inline","contents"].includes(i)}function Wa(t){return["table","td","th"].includes(Ea(t))}function ja(t){const e=Fa(),o=Ma(t);return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function Fa(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Pa(t){return["html","body","#document"].includes(Ea(t))}function Ma(t){return $a(t).getComputedStyle(t)}function Ba(t){return Ua(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Da(t){if("html"===Ea(t))return t;const e=t.assignedSlot||t.parentNode||La(t)&&t.host||Ra(t);return La(e)?e.host:e}function Ka(t){const e=Da(t);return Pa(e)?t.ownerDocument?t.ownerDocument.body:t.body:Ia(e)&&Aa(e)?e:Ka(e)}function Ta(t,e,o){var r;void 0===e&&(e=[]),void 0===o&&(o=!0);const i=Ka(t),n=i===(null==(r=t.ownerDocument)?void 0:r.body),a=$a(i);return n?e.concat(a,a.visualViewport||[],Aa(i)?i:[],a.frameElement&&o?Ta(a.frameElement):[]):e.concat(i,Ta(i,[],o))}function za(t){const e=Ma(t);let o=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=Ia(t),n=i?t.offsetWidth:o,a=i?t.offsetHeight:r,s=ca(o)!==n||ca(r)!==a;return s&&(o=n,r=a),{width:o,height:r,$:s}}function Za(t){return Ua(t)?t:t.contextElement}function _a(t){const e=Za(t);if(!Ia(e))return la(1);const o=e.getBoundingClientRect(),{width:r,height:i,$:n}=za(e);let a=(n?ca(o.width):o.width)/r,s=(n?ca(o.height):o.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Ha=la(0);function Ga(t){const e=$a(t);return Fa()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Ha}function qa(t,e,o,r){void 0===e&&(e=!1),void 0===o&&(o=!1);const i=t.getBoundingClientRect(),n=Za(t);let a=la(1);e&&(r?Ua(r)&&(a=_a(r)):a=_a(t));const s=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==$a(t))&&e}(n,o,r)?Ga(n):la(0);let c=(i.left+s.x)/a.x,l=(i.top+s.y)/a.y,f=i.width/a.x,h=i.height/a.y;if(n){const t=$a(n),e=r&&Ua(r)?$a(r):r;let o=t.frameElement;for(;o&&r&&e!==t;){const t=_a(o),e=o.getBoundingClientRect(),r=Ma(o),i=e.left+(o.clientLeft+parseFloat(r.paddingLeft))*t.x,n=e.top+(o.clientTop+parseFloat(r.paddingTop))*t.y;c*=t.x,l*=t.y,f*=t.x,h*=t.y,c+=i,l+=n,o=$a(o).frameElement}}return Oa({width:f,height:h,x:c,y:l})}function Va(t){return qa(Ra(t)).left+Ba(t).scrollLeft}function Ya(t,e,o){let r;if("viewport"===e)r=function(t,e){const o=$a(t),r=Ra(t),i=o.visualViewport;let n=r.clientWidth,a=r.clientHeight,s=0,c=0;if(i){n=i.width,a=i.height;const t=Fa();(!t||t&&"fixed"===e)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:n,height:a,x:s,y:c}}(t,o);else if("document"===e)r=function(t){const e=Ra(t),o=Ba(t),r=t.ownerDocument.body,i=sa(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),n=sa(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let a=-o.scrollLeft+Va(t);const s=-o.scrollTop;return"rtl"===Ma(r).direction&&(a+=sa(e.clientWidth,r.clientWidth)-i),{width:i,height:n,x:a,y:s}}(Ra(t));else if(Ua(e))r=function(t,e){const o=qa(t,!0,"fixed"===e),r=o.top+t.clientTop,i=o.left+t.clientLeft,n=Ia(t)?_a(t):la(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:i*n.x,y:r*n.y}}(e,o);else{const o=Ga(t);r={...e,x:e.x-o.x,y:e.y-o.y}}return Oa(r)}function Xa(t,e){const o=Da(t);return!(o===e||!Ua(o)||Pa(o))&&("fixed"===Ma(o).position||Xa(o,e))}function Qa(t,e,o){const r=Ia(e),i=Ra(e),n="fixed"===o,a=qa(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const c=la(0);if(r||!r&&!n)if(("body"!==Ea(e)||Aa(i))&&(s=Ba(e)),r){const t=qa(e,!0,n,e);c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}else i&&(c.x=Va(i));return{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function Ja(t,e){return Ia(t)&&"fixed"!==Ma(t).position?e?e(t):t.offsetParent:null}function ts(t,e){const o=$a(t);if(!Ia(t))return o;let r=Ja(t,e);for(;r&&Wa(r)&&"static"===Ma(r).position;)r=Ja(r,e);return r&&("html"===Ea(r)||"body"===Ea(r)&&"static"===Ma(r).position&&!ja(r))?o:r||function(t){let e=Da(t);for(;Ia(e)&&!Pa(e);){if(ja(e))return e;e=Da(e)}return null}(t)||o}const es={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:r}=t;const i=Ia(o),n=Ra(o);if(o===n)return e;let a={scrollLeft:0,scrollTop:0},s=la(1);const c=la(0);if((i||!i&&"fixed"!==r)&&(("body"!==Ea(o)||Aa(n))&&(a=Ba(o)),Ia(o))){const t=qa(o);s=_a(o),c.x=t.x+o.clientLeft,c.y=t.y+o.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+c.x,y:e.y*s.y-a.scrollTop*s.y+c.y}},getDocumentElement:Ra,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:r,strategy:i}=t;const n="clippingAncestors"===o?function(t,e){const o=e.get(t);if(o)return o;let r=Ta(t,[],!1).filter((t=>Ua(t)&&"body"!==Ea(t))),i=null;const n="fixed"===Ma(t).position;let a=n?Da(t):t;for(;Ua(a)&&!Pa(a);){const e=Ma(a),o=ja(a);o||"fixed"!==e.position||(i=null),(n?!o&&!i:!o&&"static"===e.position&&i&&["absolute","fixed"].includes(i.position)||Aa(a)&&!o&&Xa(t,a))?r=r.filter((t=>t!==a)):i=e,a=Da(a)}return e.set(t,r),r}(e,this._c):[].concat(o),a=[...n,r],s=a[0],c=a.reduce(((t,o)=>{const r=Ya(e,o,i);return t.top=sa(r.top,t.top),t.right=aa(r.right,t.right),t.bottom=aa(r.bottom,t.bottom),t.left=sa(r.left,t.left),t}),Ya(e,s,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:ts,getElementRects:async function(t){let{reference:e,floating:o,strategy:r}=t;const i=this.getOffsetParent||ts,n=this.getDimensions;return{reference:Qa(e,await i(o),r),floating:{x:0,y:0,...await n(o)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return za(t)},getScale:_a,isElement:Ua,isRTL:function(t){return"rtl"===Ma(t).direction}},os=(t,e,o)=>{const r=new Map,i={platform:es,...o},n={...i.platform,_c:r};return(async(t,e,o)=>{const{placement:r="bottom",strategy:i="absolute",middleware:n=[],platform:a}=o,s=n.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(e));let l=await a.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:h}=wa(l,r,c),u=r,p={},d=0;for(let o=0;o<s.length;o++){const{name:n,fn:y}=s[o],{x:g,y:b,data:m,reset:v}=await y({x:f,y:h,initialPlacement:r,placement:u,strategy:i,middlewareData:p,rects:l,platform:a,elements:{reference:t,floating:e}});f=null!=g?g:f,h=null!=b?b:h,p={...p,[n]:{...p[n],...m}},v&&d<=50&&(d++,"object"==typeof v&&(v.placement&&(u=v.placement),v.rects&&(l=!0===v.rects?await a.getElementRects({reference:t,floating:e,strategy:i}):v.rects),({x:f,y:h}=wa(l,u,c))),o=-1)}return{x:f,y:h,placement:u,strategy:i,middlewareData:p}})(t,e,{...i,platform:n})};function rs(t){return function(t){for(let e=t;e;e=is(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=is(t);e;e=is(e)){if(!(e instanceof Element))continue;const t=getComputedStyle(e);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return e;if("BODY"===e.tagName)return e}}return null}(t)}function is(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}var ns=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class as extends Ze{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new n,this.revealDebouncer=new n}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return he`
737
737
  <div part="container"
738
738
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
739
739
  @mouseenter=${this.onHover}
@@ -757,7 +757,7 @@ const qn=Symbol.for(""),Vn=t=>{if(t?.r===qn)return t?._$litStatic$},Yn=t=>({_$li
757
757
  * Copyright 2017 Google LLC
758
758
  * SPDX-License-Identifier: BSD-3-Clause
759
759
  */
760
- class ss extends Zn{constructor(t){if(super(t),this.et=st,t.type!==Dn)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===st||null==t)return this.vt=void 0,this.et=t;if(t===at)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}ss.directiveName="unsafeHTML",ss.resultType=1;const cs=zn(ss);var ls,fs;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(ls||(ls={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(fs||(fs={}));const hs=new Map([...["abw"].map((t=>[t,fs.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((t=>[t,fs.AUDIO])),...["avi"].map((t=>[t,fs.AVI])),...["chm","xhs"].map((t=>[t,fs.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((t=>[t,fs.CODE])),...["csv"].map((t=>[t,fs.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,fs.DITA])),...["epub"].map((t=>[t,fs.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,fs.EXCEL])),...["flac"].map((t=>[t,fs.FLAC])),...["gif"].map((t=>[t,fs.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,fs.GZIP])),...["html","htm","xhtml"].map((t=>[t,fs.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,fs.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,fs.JPEG])),...["json"].map((t=>[t,fs.JSON])),...["m4a","m4p"].map((t=>[t,fs.M4A])),...["mov","qt"].map((t=>[t,fs.MOV])),...["mp3"].map((t=>[t,fs.MP3])),...["mp4","m4v"].map((t=>[t,fs.MP4])),...["ogg","oga"].map((t=>[t,fs.OGG])),...["pdf","ps"].map((t=>[t,fs.PDF])),...["png"].map((t=>[t,fs.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,fs.POWERPOINT])),...["rar"].map((t=>[t,fs.RAR])),...["stp"].map((t=>[t,fs.STP])),...["txt","rtf","md","mdown"].map((t=>[t,fs.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((t=>[t,fs.VIDEO])),...["wav"].map((t=>[t,fs.WAV])),...["wma"].map((t=>[t,fs.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,fs.WORD])),...["xml","xsl","rdf"].map((t=>[t,fs.XML])),...["yaml","yml","x-yaml"].map((t=>[t,fs.YAML])),...["zip"].map((t=>[t,fs.ZIP]))]),us=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"]]);var ps;fs.ABW,fs.AUDIO,fs.AVI,fs.CHM,fs.CODE,fs.CSV,fs.DITA,fs.EPUB,fs.EXCEL,fs.FLAC,fs.GIF,fs.GZIP,fs.HTML,fs.IMAGE,fs.JPEG,fs.JSON,fs.M4A,fs.MOV,fs.MP3,fs.MP4,fs.OGG,fs.PDF,fs.PNG,fs.POWERPOINT,fs.RAR,fs.STP,fs.TEXT,fs.UNKNOWN,fs.VIDEO,fs.WAV,fs.WMA,fs.WORD,fs.XML,fs.YAML,fs.ZIP,function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ps||(ps={}));var ds=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ys extends Ze{constructor(){super(...arguments),this.resolvedIcon=pe}render(){const t=this.variant&&Object.values(ps).includes(this.variant)?this.variant:ps.fluid_topics,e=t!==ps.material||!!this.value;return he`
760
+ class ss extends Zn{constructor(t){if(super(t),this.et=st,t.type!==Tn)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===st||null==t)return this.vt=void 0,this.et=t;if(t===at)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}ss.directiveName="unsafeHTML",ss.resultType=1;const cs=zn(ss);var ls,fs;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(ls||(ls={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(fs||(fs={}));const hs=new Map([...["abw"].map((t=>[t,fs.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((t=>[t,fs.AUDIO])),...["avi"].map((t=>[t,fs.AVI])),...["chm","xhs"].map((t=>[t,fs.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((t=>[t,fs.CODE])),...["csv"].map((t=>[t,fs.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,fs.DITA])),...["epub"].map((t=>[t,fs.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,fs.EXCEL])),...["flac"].map((t=>[t,fs.FLAC])),...["gif"].map((t=>[t,fs.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,fs.GZIP])),...["html","htm","xhtml"].map((t=>[t,fs.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,fs.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,fs.JPEG])),...["json"].map((t=>[t,fs.JSON])),...["m4a","m4p"].map((t=>[t,fs.M4A])),...["mov","qt"].map((t=>[t,fs.MOV])),...["mp3"].map((t=>[t,fs.MP3])),...["mp4","m4v"].map((t=>[t,fs.MP4])),...["ogg","oga"].map((t=>[t,fs.OGG])),...["pdf","ps"].map((t=>[t,fs.PDF])),...["png"].map((t=>[t,fs.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,fs.POWERPOINT])),...["rar"].map((t=>[t,fs.RAR])),...["stp"].map((t=>[t,fs.STP])),...["txt","rtf","md","mdown"].map((t=>[t,fs.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((t=>[t,fs.VIDEO])),...["wav"].map((t=>[t,fs.WAV])),...["wma"].map((t=>[t,fs.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,fs.WORD])),...["xml","xsl","rdf"].map((t=>[t,fs.XML])),...["yaml","yml","x-yaml"].map((t=>[t,fs.YAML])),...["zip"].map((t=>[t,fs.ZIP]))]),us=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"]]);var ps;fs.ABW,fs.AUDIO,fs.AVI,fs.CHM,fs.CODE,fs.CSV,fs.DITA,fs.EPUB,fs.EXCEL,fs.FLAC,fs.GIF,fs.GZIP,fs.HTML,fs.IMAGE,fs.JPEG,fs.JSON,fs.M4A,fs.MOV,fs.MP3,fs.MP4,fs.OGG,fs.PDF,fs.PNG,fs.POWERPOINT,fs.RAR,fs.STP,fs.TEXT,fs.UNKNOWN,fs.VIDEO,fs.WAV,fs.WMA,fs.WORD,fs.XML,fs.YAML,fs.ZIP,function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ps||(ps={}));var ds=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ys extends Ze{constructor(){super(...arguments),this.resolvedIcon=pe}render(){const t=this.variant&&Object.values(ps).includes(this.variant)?this.variant:ps.fluid_topics,e=t!==ps.material||!!this.value;return he`
761
761
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
762
762
  ${cs(this.resolvedIcon)}
763
763
  <slot ?hidden=${e}></slot>
@@ -792,7 +792,7 @@ class ss extends Zn{constructor(t){if(super(t),this.et=st,t.type!==Dn)throw Erro
792
792
  </ft-tooltip>
793
793
  `:t}resolveIcon(){return this.loading?he`
794
794
  <ft-loader part="loader icon"></ft-loader> `:this.icon?he`
795
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:pe}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}ms.elementDefinitions={"ft-ripple":Gn,"ft-tooltip":as,"ft-typography":ea,"ft-icon":ys,"ft-loader":gs},bs([k({type:String,reflect:!0})],ms.prototype,"role",void 0),bs([k()],ms.prototype,"type",void 0),bs([k({type:Boolean})],ms.prototype,"disabled",void 0),bs([k()],ms.prototype,"label",void 0),bs([k()],ms.prototype,"icon",void 0),bs([k()],ms.prototype,"iconVariant",void 0),bs([k({type:Boolean})],ms.prototype,"trailingIcon",void 0),bs([k({type:Boolean})],ms.prototype,"loading",void 0),bs([k()],ms.prototype,"tooltipPosition",void 0),bs([k({type:Boolean})],ms.prototype,"hideTooltip",void 0),bs([k({type:Boolean})],ms.prototype,"forceTooltip",void 0),bs([A(".ft-button")],ms.prototype,"button",void 0),bs([A(".ft-button--label slot")],ms.prototype,"slottedContent",void 0);var vs=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class xs extends ms{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"}}xs.styles=[qe,Kn],vs([k({type:Boolean})],xs.prototype,"primary",void 0),vs([k({type:Boolean})],xs.prototype,"outlined",void 0),vs([k({type:Boolean})],xs.prototype,"dense",void 0),vs([k({type:Boolean})],xs.prototype,"round",void 0);const Os=[kt`
795
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:pe}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}ms.elementDefinitions={"ft-ripple":Gn,"ft-tooltip":as,"ft-typography":ea,"ft-icon":ys,"ft-loader":gs},bs([k({type:String,reflect:!0})],ms.prototype,"role",void 0),bs([k()],ms.prototype,"type",void 0),bs([k({type:Boolean})],ms.prototype,"disabled",void 0),bs([k()],ms.prototype,"label",void 0),bs([k()],ms.prototype,"icon",void 0),bs([k()],ms.prototype,"iconVariant",void 0),bs([k({type:Boolean})],ms.prototype,"trailingIcon",void 0),bs([k({type:Boolean})],ms.prototype,"loading",void 0),bs([k()],ms.prototype,"tooltipPosition",void 0),bs([k({type:Boolean})],ms.prototype,"hideTooltip",void 0),bs([k({type:Boolean})],ms.prototype,"forceTooltip",void 0),bs([A(".ft-button")],ms.prototype,"button",void 0),bs([A(".ft-button--label slot")],ms.prototype,"slottedContent",void 0);var vs=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class xs extends ms{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"}}xs.styles=[qe,Dn],vs([k({type:Boolean})],xs.prototype,"primary",void 0),vs([k({type:Boolean})],xs.prototype,"outlined",void 0),vs([k({type:Boolean})],xs.prototype,"dense",void 0),vs([k({type:Boolean})],xs.prototype,"round",void 0);const Os=[kt`
796
796
  :host {
797
797
  display: inline-block;
798
798
  max-width: 100%;
@@ -1182,22 +1182,22 @@ class ss extends Zn{constructor(t){if(super(t),this.et=st,t.type!==Dn)throw Erro
1182
1182
  }
1183
1183
  `,As=kt`
1184
1184
  `,Ws=kt`
1185
- `,js=qr.get({name:"ft-app-info",reducers:{setBaseUrl:(t,e)=>{t.baseUrl=e.payload},setApiIntegrationIdentifier:(t,e)=>{t.apiIntegrationIdentifier=e.payload},setUiLocale:(t,e)=>{t.uiLocale=e.payload},setAvailableUiLocales:(t,e)=>{t.availableUiLocales=e.payload},setEditorMode:(t,e)=>{t.editorMode=e.payload},setNoCustom:(t,e)=>{t.noCustom=e.payload},setNoCustomComponent:(t,e)=>{t.noCustomComponent=e.payload},setSession:(t,e)=>{t.session=e.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class Fs{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=js.getState(),r=null!=t?t:o;if(e&&r&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,r,!0)}static get(t){var e;return null!=t?Fs.build(t):null!==(e=Fs.API)&&void 0!==e?e:Fs.API=Fs.build()}static await(t){return new Promise((e=>{let o=Fs.get(t);if(o)e(o);else{const r=js.subscribe((()=>{o=Fs.get(t),o&&(r(),e(o))}))}}))}}var Ps;const Bs=Symbol("clearAfterUnitTest");class Ms{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new i,this.listeners={},this.currentUiLocale="",this[Ps]=()=>{this.defaultMessages={},this.cache=new i,this.listeners={}},this.currentUiLocale=js.getState().uiLocale,js.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=js.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){const r={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};F(this.defaultMessages[t],r)||(this.defaultMessages[t]=r,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var r,i,n;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(i=null===(r=this.cache.getNow(t))||void 0===r?void 0:r.messages)&&void 0!==i?i:{};return new Ve(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},a).resolve(e,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>W(0).then((()=>t())).catch((()=>null)))))}}Ps=Bs,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Ms((async(t,e)=>(await Fs.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Ms((async(t,e)=>(await Fs.await()).getCustomMessageContext(t,e))));const Ks=window.FluidTopicsI18nService,Ts=window.FluidTopicsCustomI18nService;var Ds=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class zs extends Ze{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>Fs.get(),this.cache=new i,this.cleanSessionDebouncer=new n}render(){return he`
1185
+ `,js=qr.get({name:"ft-app-info",reducers:{setBaseUrl:(t,e)=>{t.baseUrl=e.payload},setApiIntegrationIdentifier:(t,e)=>{t.apiIntegrationIdentifier=e.payload},setUiLocale:(t,e)=>{t.uiLocale=e.payload},setAvailableUiLocales:(t,e)=>{t.availableUiLocales=e.payload},setMetadataDescriptors:(t,e)=>{t.metadataDescriptors=e.payload},setEditorMode:(t,e)=>{t.editorMode=e.payload},setNoCustom:(t,e)=>{t.noCustom=e.payload},setNoCustomComponent:(t,e)=>{t.noCustomComponent=e.payload},setSession:(t,e)=>{t.session=e.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataDescriptors:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class Fs{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=js.getState(),r=null!=t?t:o;if(e&&r&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,r,!0)}static get(t){var e;return null!=t?Fs.build(t):null!==(e=Fs.API)&&void 0!==e?e:Fs.API=Fs.build()}static await(t){return new Promise((e=>{let o=Fs.get(t);if(o)e(o);else{const r=js.subscribe((()=>{o=Fs.get(t),o&&(r(),e(o))}))}}))}}var Ps;const Ms=Symbol("clearAfterUnitTest");class Bs{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new i,this.listeners={},this.currentUiLocale="",this[Ps]=()=>{this.defaultMessages={},this.cache=new i,this.listeners={}},this.currentUiLocale=js.getState().uiLocale,js.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=js.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){const r={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};F(this.defaultMessages[t],r)||(this.defaultMessages[t]=r,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var r,i,n;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(i=null===(r=this.cache.getNow(t))||void 0===r?void 0:r.messages)&&void 0!==i?i:{};return new Ve(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},a).resolve(e,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>W(0).then((()=>t())).catch((()=>null)))))}}Ps=Ms,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Bs((async(t,e)=>(await Fs.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Bs((async(t,e)=>(await Fs.await()).getCustomMessageContext(t,e))));const Ds=window.FluidTopicsI18nService,Ks=window.FluidTopicsCustomI18nService;var Ts=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class zs extends Ze{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.metadataDescriptors=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>Fs.get(),this.cache=new i,this.cleanSessionDebouncer=new n}render(){return he`
1186
1186
  <slot></slot>
1187
- `}update(t){super.update(t),t.has("baseUrl")&&js.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&js.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&js.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&js.actions.setNoCustom(this.noCustom),t.has("editorMode")&&js.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&js.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&js.actions.setSession(this.session),t.has("availableUiLocales")&&js.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Ks.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const e=await t.getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),e.idleTimeoutInMillis),e}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}zs.elementDefinitions={},zs.styles=Ws,Ds([k()],zs.prototype,"baseUrl",void 0),Ds([k()],zs.prototype,"apiIntegrationIdentifier",void 0),Ds([k()],zs.prototype,"uiLocale",void 0),Ds([B([])],zs.prototype,"availableUiLocales",void 0),Ds([k({type:Boolean})],zs.prototype,"editorMode",void 0),Ds([k({type:Boolean})],zs.prototype,"noCustom",void 0),Ds([k({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],zs.prototype,"noCustomComponent",void 0),Ds([k({type:Boolean})],zs.prototype,"withManualResources",void 0),Ds([B([])],zs.prototype,"messageContexts",void 0),Ds([B(void 0)],zs.prototype,"session",void 0),Ds([k({type:Object})],zs.prototype,"apiProvider",void 0);class Zs{async listMySearches(){var t;return(null===(t=js.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Fs.await()).listMySearches(js.getState().session.profile.userId):[]}}const _s=new i;class Hs{async listMyBookmarks(){return _s.get("bookmarks",(async()=>(await Fs.await()).listMyBookmarks(js.getState().session.profile.userId)))}clearCache(){_s.clear("bookmarks")}}const Gs=qr.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const qs=new class{constructor(){this.currentSession=js.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Hs,js.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=js.getState();F(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){Gs.actions.savedSearches(void 0)}clearMyBookmarks(){Gs.actions.bookmarks(void 0)}async reloadMySearches(){const t=new Zs,e=await t.listMySearches();Gs.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;Gs.actions.bookmarks(e)}}};P("ft-app-context")(zs);var Vs=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Ys=Symbol("i18nProperties"),Xs=Symbol("i18nUnsubs");function Qs(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Ts:Ks}i18n(t,e,...o){var r;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const i=null!==(r=t.args)&&void 0!==r?r:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...i)}onI18nUpdate(t){var e;null===(e=this[Ys])||void 0===e||e.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[Ys])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Ys]&&new Set([...this[Ys].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Xs].has(t)||this[Xs].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages(t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[Xs].forEach((t=>t())),this[Xs].clear()}}return e=Xs,Vs([k({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class Js extends(Qs(Ze)){}class tc extends(Qs(no)){}var ec=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class oc extends tc{constructor(){super(),this.editorMode=!1,this.addStore(js)}render(){return this.key&&this.context?he`
1187
+ `}update(t){super.update(t),t.has("baseUrl")&&js.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&js.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&js.actions.setUiLocale(this.uiLocale),t.has("metadataDescriptors")&&js.actions.setMetadataDescriptors(this.metadataDescriptors),t.has("noCustom")&&js.actions.setNoCustom(this.noCustom),t.has("editorMode")&&js.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&js.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&js.actions.setSession(this.session),t.has("availableUiLocales")&&js.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Ds.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const e=await t.getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),e.idleTimeoutInMillis),e}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))),null==this.metadataDescriptors&&(this.metadataDescriptors=await this.cache.get("metadataDescriptors",(()=>t.getMetadataDescriptors()))))}}zs.elementDefinitions={},zs.styles=Ws,Ts([k()],zs.prototype,"baseUrl",void 0),Ts([k()],zs.prototype,"apiIntegrationIdentifier",void 0),Ts([k()],zs.prototype,"uiLocale",void 0),Ts([M([])],zs.prototype,"availableUiLocales",void 0),Ts([M([])],zs.prototype,"metadataDescriptors",void 0),Ts([k({type:Boolean})],zs.prototype,"editorMode",void 0),Ts([k({type:Boolean})],zs.prototype,"noCustom",void 0),Ts([k({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],zs.prototype,"noCustomComponent",void 0),Ts([k({type:Boolean})],zs.prototype,"withManualResources",void 0),Ts([M([])],zs.prototype,"messageContexts",void 0),Ts([M(void 0)],zs.prototype,"session",void 0),Ts([k({type:Object})],zs.prototype,"apiProvider",void 0);class Zs{async listMySearches(){var t;return(null===(t=js.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Fs.await()).listMySearches(js.getState().session.profile.userId):[]}}const _s=new i;class Hs{async listMyBookmarks(){return _s.get("bookmarks",(async()=>(await Fs.await()).listMyBookmarks(js.getState().session.profile.userId)))}clearCache(){_s.clear("bookmarks")}}const Gs=qr.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const qs=new class{constructor(){this.currentSession=js.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Hs,js.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=js.getState();F(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){Gs.actions.savedSearches(void 0)}clearMyBookmarks(){Gs.actions.bookmarks(void 0)}async reloadMySearches(){const t=new Zs,e=await t.listMySearches();Gs.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;Gs.actions.bookmarks(e)}}};P("ft-app-context")(zs);var Vs=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Ys=Symbol("i18nProperties"),Xs=Symbol("i18nUnsubs");function Qs(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Ks:Ds}i18n(t,e,...o){var r;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const i=null!==(r=t.args)&&void 0!==r?r:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...i)}onI18nUpdate(t){var e;null===(e=this[Ys])||void 0===e||e.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[Ys])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Ys]&&new Set([...this[Ys].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Xs].has(t)||this[Xs].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages(t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[Xs].forEach((t=>t())),this[Xs].clear()}}return e=Xs,Vs([k({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class Js extends(Qs(Ze)){}class tc extends(Qs(no)){}var ec=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class oc extends tc{constructor(){super(),this.editorMode=!1,this.addStore(js)}render(){return this.key&&this.context?he`
1188
1188
  <span class="ft-i18n">
1189
1189
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
1190
1190
  </span>
1191
- `:this.editorMode?"Select a context and a label key.":pe}update(t){var e;super.update(t),this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(e=this.defaultMessage)&&void 0!==e?e:""})}}oc.elementDefinitions={},oc.styles=As,ec([Ye()],oc.prototype,"editorMode",void 0),ec([k()],oc.prototype,"context",void 0),ec([k()],oc.prototype,"key",void 0),ec([B([])],oc.prototype,"args",void 0),ec([k()],oc.prototype,"defaultMessage",void 0);class rc{static build(t){return new rc(t)}static fromGwt(t){return new rc(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const o=e;return t=>({context:this.name,key:o,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>Ks.resolveMessage(this.name,e,...t)})}}P("ft-i18n")(oc);const ic=kt`
1192
- `,nc={setRequest:(t,e)=>{t.request=e.payload},setRequestQuery:(t,e)=>{t.request.query=e.payload},setRequestContentLocale:(t,e)=>{t.request.contentLocale=e.payload},setPageSize:(t,e)=>{t.request.paging.perPage=e.payload},setPageNumber:(t,e)=>{t.request.paging.page=e.payload},setRequestSort:(t,e)=>{t.request.sort=e.payload},setRequestFilters:(t,e)=>{t.request.filters=e.payload},setRequestFacets:(t,e)=>{t.request.facets=e.payload},setRequestVirtualField:(t,e)=>{t.request.virtualField=e.payload},setRequestScope:(t,e)=>{t.request.scope=e.payload},setResults:(t,e)=>{t.results=e.payload},setFacets:(t,e)=>{t.facets=e.payload},setSpellcheck:(t,e)=>{t.spellcheck=e.payload},setLocales:(t,e)=>{t.locales=e.payload},setPaging:(t,e)=>{t.paging=e.payload},setLiveQuery:(t,e)=>{t.liveQuery=e.payload},setSuggestResults:(t,e)=>{t.suggestResults=e.payload}};var ac,sc,cc,lc,fc,hc,uc,pc,dc,yc,gc,bc,mc,vc;!function(t){!function(e){var o={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(o.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i=ArrayBuffer.isView||function(t){return t&&r.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function c(t){this.map={},t instanceof c?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function l(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function h(t){var e=new FileReader,o=f(e);return e.readAsArrayBuffer(t),o}function u(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function p(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=u(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||i(t))?this._bodyArrayBuffer=u(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,o=f(e);return e.readAsText(t),o}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),r=0;r<e.length;r++)o[r]=String.fromCharCode(e[r]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(t,e){t=n(t),e=a(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},c.prototype.delete=function(t){delete this.map[n(t)]},c.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},c.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},c.prototype.set=function(t,e){this.map[n(t)]=a(e)},c.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},c.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),s(t)},c.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},c.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),s(t)},o.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var d=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var o,r,i=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new c(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new c(e.headers)),this.method=(o=e.method||this.method||"GET",r=o.toUpperCase(),d.indexOf(r)>-1?r:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function g(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),r=o.shift().replace(/\+/g," "),i=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}})),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new c(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},p.call(y.prototype),p.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];b.redirect=function(t,e){if(-1===m.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(t,r){return new Promise((function(i,n){var a=new y(t,r);if(a.signal&&a.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new c,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),r=o.shift().trim();if(r){var i=o.join(":").trim();e.append(r,i)}})),e)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;i(new b(r,o))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",l),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",l)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=c,t.Request=y,t.Response=b),e.Headers=c,e.Request=y,e.Response=b,e.fetch=v,Object.defineProperty(e,"W",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(ac||(ac={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(sc||(sc={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(cc||(cc={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(lc||(lc={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(fc||(fc={})),function(t){t.ASC="ASC",t.DESC="DESC"}(hc||(hc={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(uc||(uc={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(pc||(pc={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(dc||(dc={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(yc||(yc={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(gc||(gc={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(bc||(bc={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}(mc||(mc={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(vc||(vc={})),vc.PERSONAL_BOOK_SHARE_USER,vc.PERSONAL_BOOK_USER,vc.HTML_EXPORT_USER,vc.PERSONAL_BOOK_USER,vc.PDF_EXPORT_USER,vc.PERSONAL_BOOK_USER,vc.KHUB_ADMIN,vc.CONTENT_PUBLISHER,vc.ADMIN,vc.KHUB_ADMIN,vc.USERS_ADMIN,vc.PORTAL_ADMIN,vc.DEVELOPER,vc.BETA_USER,vc.DEBUG_USER;class xc{static async build(){return new xc(await Fs.await())}constructor(t){this.api=t,this.cache=new i,this.cache.registerFinal("available-locales",(()=>this.api.getAvailableSearchLocales()))}async launchSearch(t){return this.api.search(t)}async launchSuggest(t){return this.api.getSuggestions(t)}async getAvailableSearchLocales(){return this.cache.get("available-locales")}}class Oc extends Event{constructor(){super(Oc.eventName)}}Oc.eventName="search-context-clear-all-filters";class wc{static build(t){return new wc((t=>qr.get({name:"ft-search-"+t,initialState:{request:{query:"",filters:[],facets:[],sort:[],paging:{page:1,perPage:20}},liveQuery:""},reducers:nc}))(t.trim()||"context"),xc.build)}constructor(t,e){this.store=t,this.serviceProvider=e,this.ignoreEmptyQuery=!1,this.searchDebouncer=new n(100),this.suggestDebouncer=new n(300)}async initService(){return this.service=await this.serviceProvider(),this.store.actions.setLocales((await this.service.getAvailableSearchLocales()).contentLocales),this.launchSearch()}async awaitService(){return j((()=>this.service))}setQuery(t){this.store.actions.setRequestQuery(t),this.store.actions.setLiveQuery(t),this.store.actions.setPageNumber(1),this.launchSearch()}setContentLocale(t){let e=this.store.getState().locales,o=this.store.getState().request.contentLocale;if(t!=o){if(e){const r=t=>e.some((e=>e.lang==t));r(t)||(t=r(o)?o:e[0].lang)}this.store.actions.setRequestContentLocale(t),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([]),this.launchSearch()}return t}setPageSize(t){this.store.actions.setPageSize(t),this.launchSearch()}setPageNumber(t){this.store.actions.setPageNumber(t),this.launchSearch()}setSort(t){this.store.actions.setRequestSort(t),this.store.actions.setPageNumber(1),this.launchSearch()}setFilters(t){const e=t.filter((t=>t.values.length>0));this.store.actions.setRequestFilters(e),this.store.actions.setPageNumber(1),e.forEach((t=>{this.facetIds.includes(t.key)||(this.facetIds=[...this.facetIds,t.key])})),this.launchSearch()}setSearchInDocumentTitlesOnly(t){t?(this.store.actions.setRequestVirtualField(pc.TITLE_ONLY),this.store.actions.setRequestScope(mc.DOCUMENTS)):(this.store.actions.setRequestVirtualField(pc.EVERYWHERE),this.store.actions.setRequestScope(mc.DEFAULT)),this.launchSearch()}get searchInDocumentTitlesOnly(){return(t=>t.request.virtualField===pc.TITLE_ONLY&&t.request.scope===mc.DOCUMENTS)(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.eventBus.dispatchEvent(new Oc)}addFacet(t){this.facetIds=[...this.facetIds,t],this.launchSearch()}replaceFacet(t,e){let o=this.facetIds.filter((e=>e!=t));e&&o.push(e),this.facetIds=o,this.launchSearch()}get facetIds(){return this.store.getState().request.facets.map((t=>t.id))}set facetIds(t){let e=[...new Set(t)].map((t=>({id:t})));this.store.actions.setRequestFacets(e)}setFilter(t,e){let o=this.store.getState().request.filters,r={key:t,values:e,negative:!1},i=[...o.filter((e=>e.key!==t)),r];this.setFilters(i)}setLiveQuery(t){this.store.actions.setLiveQuery(t),this.launchSuggest()}setRequest(t){this.store.actions.setRequest(t),this.store.actions.setLiveQuery(t.query),this.store.actions.setPageNumber(1),this.launchSearch()}setScope(t){this.store.actions.setRequestScope(t),this.launchSearch()}setIgnoreEmptyQuery(t){this.ignoreEmptyQuery=t,this.launchSearch()}async launchSearch(){return await this.awaitService(),this.searchDebouncer.run((()=>this.fetchSearchData()))}async launchSuggest(){await this.awaitService(),this.suggestDebouncer.run((()=>this.fetchSuggestData()))}async fetchSearchData(){var t,o;try{null===(t=this.cancelableSearch)||void 0===t||t.cancel();let e=this.store.getState().request;if(this.store.actions.setPaging(void 0),this.ignoreEmptyQuery&&0==e.query.length)this.store.actions.setResults(void 0),this.store.actions.setFacets(void 0),this.store.actions.setSpellcheck(void 0);else{this.cancelableSearch=r(this.service.launchSearch(e));const t=await this.cancelableSearch;if(t.paging.currentPage<=1)this.store.actions.setResults(t.results),this.store.actions.setFacets(t.facets),this.store.actions.setSpellcheck(t.spellcheck);else{let e=(null!==(o=this.store.getState().results)&&void 0!==o?o:[]).concat(t.results);this.store.actions.setResults(e)}this.store.actions.setPaging(t.paging)}}catch(t){t instanceof e||!this.errorHandler||this.errorHandler(t)}}async fetchSuggestData(){var t;try{const e=this.store.getState(),o=e.request,i={input:e.liveQuery,filters:o.filters,sort:o.sort,contentLocale:o.contentLocale,scope:o.scope};null===(t=this.cancelableSuggest)||void 0===t||t.cancel(),this.cancelableSuggest=r(this.service.launchSuggest(i));let n=await this.cancelableSuggest;this.store.actions.setSuggestResults(n.suggestions)}catch(t){t instanceof e||!this.errorHandler||this.errorHandler(t)}}clear(){this.store.clear()}}var Sc=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Nc extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const Cc=Symbol("registerInterval");class Ec extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Cc]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Cc]):this.dispatchEvent(new Nc)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Cc,Sc([U()],o.prototype,"stateManager",void 0),o}(no)){}var $c,Rc=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class kc extends CustomEvent{constructor(t){super("ft-search-load-error",{detail:t})}}class Uc extends CustomEvent{constructor(t){super("ft-search-request-change",{detail:t})}}class Ic extends CustomEvent{constructor(t,e,o){super("ft-search-results-change",{detail:{request:t,paging:e,spellcheck:o}})}}class Lc extends no{get stateManager(){return null==this._stateManager&&(this._stateManager=wc.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0")),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"search")),this._stateManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.filters=[],this.sort=[],this.addStore(js)}render(){return he`
1191
+ `:this.editorMode?"Select a context and a label key.":pe}update(t){var e;super.update(t),this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(e=this.defaultMessage)&&void 0!==e?e:""})}}oc.elementDefinitions={},oc.styles=As,ec([Ye()],oc.prototype,"editorMode",void 0),ec([k()],oc.prototype,"context",void 0),ec([k()],oc.prototype,"key",void 0),ec([M([])],oc.prototype,"args",void 0),ec([k()],oc.prototype,"defaultMessage",void 0);class rc{static build(t){return new rc(t)}static fromGwt(t){return new rc(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const o=e;return t=>({context:this.name,key:o,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>Ds.resolveMessage(this.name,e,...t)})}}P("ft-i18n")(oc);const ic=kt`
1192
+ `,nc={setRequest:(t,e)=>{t.request=e.payload},setRequestQuery:(t,e)=>{t.request.query=e.payload},setRequestContentLocale:(t,e)=>{t.request.contentLocale=e.payload},setPageSize:(t,e)=>{t.request.paging.perPage=e.payload},setPageNumber:(t,e)=>{t.request.paging.page=e.payload},setRequestSort:(t,e)=>{t.request.sort=e.payload},setRequestFilters:(t,e)=>{t.request.filters=e.payload},setRequestFacets:(t,e)=>{t.request.facets=e.payload},setRequestVirtualField:(t,e)=>{t.request.virtualField=e.payload},setRequestScope:(t,e)=>{t.request.scope=e.payload},setResults:(t,e)=>{t.results=e.payload},setFacets:(t,e)=>{t.facets=e.payload},setSpellcheck:(t,e)=>{t.spellcheck=e.payload},setLocales:(t,e)=>{t.locales=e.payload},setPaging:(t,e)=>{t.paging=e.payload},setLiveQuery:(t,e)=>{t.liveQuery=e.payload},setSuggestResults:(t,e)=>{t.suggestResults=e.payload}};var ac,sc,cc,lc,fc,hc,uc,pc,dc,yc,gc,bc,mc,vc,xc,Oc,wc,Sc;!function(t){!function(e){var o={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(o.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i=ArrayBuffer.isView||function(t){return t&&r.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function c(t){this.map={},t instanceof c?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function l(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function h(t){var e=new FileReader,o=f(e);return e.readAsArrayBuffer(t),o}function u(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function p(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=u(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||i(t))?this._bodyArrayBuffer=u(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,o=f(e);return e.readAsText(t),o}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),r=0;r<e.length;r++)o[r]=String.fromCharCode(e[r]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(t,e){t=n(t),e=a(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},c.prototype.delete=function(t){delete this.map[n(t)]},c.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},c.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},c.prototype.set=function(t,e){this.map[n(t)]=a(e)},c.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},c.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),s(t)},c.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},c.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),s(t)},o.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var d=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var o,r,i=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new c(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new c(e.headers)),this.method=(o=e.method||this.method||"GET",r=o.toUpperCase(),d.indexOf(r)>-1?r:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function g(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),r=o.shift().replace(/\+/g," "),i=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}})),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new c(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},p.call(y.prototype),p.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];b.redirect=function(t,e){if(-1===m.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(t,r){return new Promise((function(i,n){var a=new y(t,r);if(a.signal&&a.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new c,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),r=o.shift().trim();if(r){var i=o.join(":").trim();e.append(r,i)}})),e)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;i(new b(r,o))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",l),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",l)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=c,t.Request=y,t.Response=b),e.Headers=c,e.Request=y,e.Response=b,e.fetch=v,Object.defineProperty(e,"W",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(ac||(ac={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(sc||(sc={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(cc||(cc={})),function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"}(lc||(lc={})),function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"}(fc||(fc={})),function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"}(hc||(hc={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(uc||(uc={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(pc||(pc={})),function(t){t.ASC="ASC",t.DESC="DESC"}(dc||(dc={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(yc||(yc={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(gc||(gc={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(bc||(bc={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(mc||(mc={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(vc||(vc={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(xc||(xc={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}(Oc||(Oc={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(wc||(wc={})),function(t){t.VALID="VALID",t.INVALID="INVALID"}(Sc||(Sc={})),wc.PERSONAL_BOOK_SHARE_USER,wc.PERSONAL_BOOK_USER,wc.HTML_EXPORT_USER,wc.PERSONAL_BOOK_USER,wc.PDF_EXPORT_USER,wc.PERSONAL_BOOK_USER,wc.KHUB_ADMIN,wc.CONTENT_PUBLISHER,wc.ADMIN,wc.KHUB_ADMIN,wc.USERS_ADMIN,wc.PORTAL_ADMIN,wc.DEVELOPER,wc.BETA_USER,wc.DEBUG_USER;class Nc{static async build(){return new Nc(await Fs.await())}constructor(t){this.api=t,this.cache=new i,this.cache.registerFinal("available-locales",(()=>this.api.getAvailableSearchLocales()))}async launchSearch(t){return this.api.search(t)}async launchSuggest(t){return this.api.getSuggestions(t)}async getAvailableSearchLocales(){return this.cache.get("available-locales")}}class Cc extends Event{constructor(){super(Cc.eventName)}}Cc.eventName="search-context-clear-all-filters";class Ec{static build(t){return new Ec((t=>qr.get({name:"ft-search-"+t,initialState:{request:{query:"",filters:[],facets:[],sort:[],paging:{page:1,perPage:20}},liveQuery:""},reducers:nc}))(t.trim()||"context"),Nc.build)}constructor(t,e){this.store=t,this.serviceProvider=e,this.ignoreEmptyQuery=!1,this.searchDebouncer=new n(100),this.suggestDebouncer=new n(300)}async initService(){return this.service=await this.serviceProvider(),this.store.actions.setLocales((await this.service.getAvailableSearchLocales()).contentLocales),this.launchSearch()}async awaitService(){return j((()=>this.service))}setQuery(t){this.store.actions.setRequestQuery(t),this.store.actions.setLiveQuery(t),this.store.actions.setPageNumber(1),this.launchSearch()}setContentLocale(t){let e=this.store.getState().locales,o=this.store.getState().request.contentLocale;if(t!=o){if(e){const r=t=>e.some((e=>e.lang==t));r(t)||(t=r(o)?o:e[0].lang)}this.store.actions.setRequestContentLocale(t),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([]),this.launchSearch()}return t}setPageSize(t){this.store.actions.setPageSize(t),this.launchSearch()}setPageNumber(t){this.store.actions.setPageNumber(t),this.launchSearch()}setSort(t){this.store.actions.setRequestSort(t),this.store.actions.setPageNumber(1),this.launchSearch()}setFilters(t){const e=t.filter((t=>t.values.length>0));this.store.actions.setRequestFilters(e),this.store.actions.setPageNumber(1),e.forEach((t=>{this.facetIds.includes(t.key)||(this.facetIds=[...this.facetIds,t.key])})),this.launchSearch()}setSearchInDocumentTitlesOnly(t){t?(this.store.actions.setRequestVirtualField(gc.TITLE_ONLY),this.store.actions.setRequestScope(Oc.DOCUMENTS)):(this.store.actions.setRequestVirtualField(gc.EVERYWHERE),this.store.actions.setRequestScope(Oc.DEFAULT)),this.launchSearch()}get searchInDocumentTitlesOnly(){return(t=>t.request.virtualField===gc.TITLE_ONLY&&t.request.scope===Oc.DOCUMENTS)(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.eventBus.dispatchEvent(new Cc)}addFacet(t){this.facetIds=[...this.facetIds,t],this.launchSearch()}replaceFacet(t,e){let o=this.facetIds.filter((e=>e!=t));e&&o.push(e),this.facetIds=o,this.launchSearch()}get facetIds(){return this.store.getState().request.facets.map((t=>t.id))}set facetIds(t){let e=[...new Set(t)].map((t=>({id:t})));this.store.actions.setRequestFacets(e)}setFilter(t,e){let o=this.store.getState().request.filters,r={key:t,values:e,negative:!1},i=[...o.filter((e=>e.key!==t)),r];this.setFilters(i)}setLiveQuery(t){this.store.actions.setLiveQuery(t),this.launchSuggest()}setRequest(t){this.store.actions.setRequest(t),this.store.actions.setLiveQuery(t.query),this.store.actions.setPageNumber(1),this.launchSearch()}setScope(t){this.store.actions.setRequestScope(t),this.launchSearch()}setIgnoreEmptyQuery(t){this.ignoreEmptyQuery=t,this.launchSearch()}async launchSearch(){return await this.awaitService(),this.searchDebouncer.run((()=>this.fetchSearchData()))}async launchSuggest(){await this.awaitService(),this.suggestDebouncer.run((()=>this.fetchSuggestData()))}async fetchSearchData(){var t,o;try{null===(t=this.cancelableSearch)||void 0===t||t.cancel();let e=this.store.getState().request;if(this.store.actions.setPaging(void 0),this.ignoreEmptyQuery&&0==e.query.length)this.store.actions.setResults(void 0),this.store.actions.setFacets(void 0),this.store.actions.setSpellcheck(void 0);else{this.cancelableSearch=r(this.service.launchSearch(e));const t=await this.cancelableSearch;if(t.paging.currentPage<=1)this.store.actions.setResults(t.results),this.store.actions.setFacets(t.facets),this.store.actions.setSpellcheck(t.spellcheck);else{let e=(null!==(o=this.store.getState().results)&&void 0!==o?o:[]).concat(t.results);this.store.actions.setResults(e)}this.store.actions.setPaging(t.paging)}}catch(t){t instanceof e||!this.errorHandler||this.errorHandler(t)}}async fetchSuggestData(){var t;try{const e=this.store.getState(),o=e.request,i={input:e.liveQuery,filters:o.filters,sort:o.sort,contentLocale:o.contentLocale,scope:o.scope};null===(t=this.cancelableSuggest)||void 0===t||t.cancel(),this.cancelableSuggest=r(this.service.launchSuggest(i));let n=await this.cancelableSuggest;this.store.actions.setSuggestResults(n.suggestions)}catch(t){t instanceof e||!this.errorHandler||this.errorHandler(t)}}clear(){this.store.clear()}}var $c=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Rc extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const kc=Symbol("registerInterval");class Uc extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[kc]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[kc]):this.dispatchEvent(new Rc)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=kc,$c([U()],o.prototype,"stateManager",void 0),o}(no)){}var Ic,Lc=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ac extends CustomEvent{constructor(t){super("ft-search-load-error",{detail:t})}}class Wc extends CustomEvent{constructor(t){super("ft-search-request-change",{detail:t})}}class jc extends CustomEvent{constructor(t,e,o){super("ft-search-results-change",{detail:{request:t,paging:e,spellcheck:o}})}}class Fc extends no{get stateManager(){return null==this._stateManager&&(this._stateManager=Ec.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0")),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"search")),this._stateManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.filters=[],this.sort=[],this.addStore(js)}render(){return he`
1193
1193
  <slot @register-ft-search-component=${this.registerComponent}></slot>
1194
- `}update(t){super.update(t),t.has("query")&&void 0!==this.query&&this.stateManager.setQuery(this.query),t.has("contentLocale")&&void 0!==this.contentLocale&&this.stateManager.setContentLocale(this.contentLocale),t.has("session")&&this.session&&this.stateManager.initService(),t.has("filters")&&void 0!==this.filters&&this.stateManager.setFilters(this.filters),t.has("sort")&&void 0!==this.sort&&this.stateManager.setSort(this.sort),t.has("pageSize")&&void 0!==this.pageSize&&this.stateManager.setPageSize(this.pageSize),t.has("searchInDocumentTitlesOnly")&&void 0!==this.searchInDocumentTitlesOnly&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),t.has("scope")&&void 0!==this.scope&&this.stateManager.setScope(this.scope),t.has("ignoreEmptyQuery")&&void 0!==this.ignoreEmptyQuery&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery)}connectedCallback(){super.connectedCallback(),this.stateManager.setQuery(this.query),this.stateManager.setContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort)}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("request")&&this.request&&this.dispatchEvent(new Uc(this.request)),t.has("paging")&&void 0!==this.paging&&this.dispatchEvent(new Ic(this.request,this.paging,this.autocorrect))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.register(e)}register(t){t.setSearchStateManager(this.stateManager)}handleLoadError(t){this.dispatchEvent(new kc(t))}reloadSavedSearches(){qs.clearMySearches()}clear(){this.stateManager.clear()}}Lc.elementDefinitions={},Lc.styles=ic,Rc([k()],Lc.prototype,"query",void 0),Rc([k()],Lc.prototype,"contentLocale",void 0),Rc([k({type:Number})],Lc.prototype,"pageSize",void 0),Rc([k({type:Boolean})],Lc.prototype,"searchInDocumentTitlesOnly",void 0),Rc([k()],Lc.prototype,"scope",void 0),Rc([k({type:Boolean})],Lc.prototype,"ignoreEmptyQuery",void 0),Rc([B([])],Lc.prototype,"filters",void 0),Rc([B([])],Lc.prototype,"sort",void 0),Rc([Ye({store:"search"})],Lc.prototype,"request",void 0),Rc([Ye({store:"search"})],Lc.prototype,"paging",void 0),Rc([Ye({store:"search",selector:t=>t.spellcheck})],Lc.prototype,"autocorrect",void 0),Rc([Ye({store:js.name})],Lc.prototype,"session",void 0),P("ft-search-context")(Lc),function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}($c||($c={}));var Ac=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Wc extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const jc=Symbol("registerInterval");class Fc extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[jc]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[jc]):this.dispatchEvent(new Wc)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=jc,Ac([U()],o.prototype,"stateManager",void 0),o}(no)){}const Pc=kt`
1194
+ `}update(t){super.update(t),t.has("query")&&void 0!==this.query&&this.stateManager.setQuery(this.query),t.has("contentLocale")&&void 0!==this.contentLocale&&this.stateManager.setContentLocale(this.contentLocale),t.has("session")&&this.session&&this.stateManager.initService(),t.has("filters")&&void 0!==this.filters&&this.stateManager.setFilters(this.filters),t.has("sort")&&void 0!==this.sort&&this.stateManager.setSort(this.sort),t.has("pageSize")&&void 0!==this.pageSize&&this.stateManager.setPageSize(this.pageSize),t.has("searchInDocumentTitlesOnly")&&void 0!==this.searchInDocumentTitlesOnly&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),t.has("scope")&&void 0!==this.scope&&this.stateManager.setScope(this.scope),t.has("ignoreEmptyQuery")&&void 0!==this.ignoreEmptyQuery&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery)}connectedCallback(){super.connectedCallback(),this.stateManager.setQuery(this.query),this.stateManager.setContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort)}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("request")&&this.request&&this.dispatchEvent(new Wc(this.request)),t.has("paging")&&void 0!==this.paging&&this.dispatchEvent(new jc(this.request,this.paging,this.autocorrect))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.register(e)}register(t){t.setSearchStateManager(this.stateManager)}handleLoadError(t){this.dispatchEvent(new Ac(t))}reloadSavedSearches(){qs.clearMySearches()}clear(){this.stateManager.clear()}}Fc.elementDefinitions={},Fc.styles=ic,Lc([k()],Fc.prototype,"query",void 0),Lc([k()],Fc.prototype,"contentLocale",void 0),Lc([k({type:Number})],Fc.prototype,"pageSize",void 0),Lc([k({type:Boolean})],Fc.prototype,"searchInDocumentTitlesOnly",void 0),Lc([k()],Fc.prototype,"scope",void 0),Lc([k({type:Boolean})],Fc.prototype,"ignoreEmptyQuery",void 0),Lc([M([])],Fc.prototype,"filters",void 0),Lc([M([])],Fc.prototype,"sort",void 0),Lc([Ye({store:"search"})],Fc.prototype,"request",void 0),Lc([Ye({store:"search"})],Fc.prototype,"paging",void 0),Lc([Ye({store:"search",selector:t=>t.spellcheck})],Fc.prototype,"autocorrect",void 0),Lc([Ye({store:js.name})],Fc.prototype,"session",void 0),P("ft-search-context")(Fc),function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(Ic||(Ic={}));var Pc=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Mc extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const Bc=Symbol("registerInterval");class Dc extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[Bc]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Bc]):this.dispatchEvent(new Mc)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Bc,Pc([U()],o.prototype,"stateManager",void 0),o}(no)){}const Kc=kt`
1195
1195
 
1196
- `,Bc=rc.build("searchResultsNumber"),Mc={results:"{0} results","results[\\=1]":"1 result"};var Kc=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Tc extends(Qs(Ec)){constructor(){super(),this.addI18nContext(Bc,Mc)}render(){return null==this.paging?pe:he`
1196
+ `,Tc=rc.build("searchResultsNumber"),zc={results:"{0} results","results[\\=1]":"1 result"};var Zc=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class _c extends(Qs(Uc)){constructor(){super(),this.addI18nContext(Tc,zc)}render(){return null==this.paging?pe:he`
1197
1197
  <ft-typography variant="body1">
1198
- ${Bc.messages.results(this.paging.totalClustersCount)}
1198
+ ${Tc.messages.results(this.paging.totalClustersCount)}
1199
1199
  </ft-typography>
1200
- `}}Tc.elementDefinitions={"ft-typography":ea},Tc.styles=Pc,Kc([Ye()],Tc.prototype,"paging",void 0),P("ft-search-results-number")(Tc);const Dc=rc.build("designedSearchInput"),zc=kt`
1200
+ `}}_c.elementDefinitions={"ft-typography":ea},_c.styles=Kc,Zc([Ye()],_c.prototype,"paging",void 0),P("ft-search-results-number")(_c);const Hc=rc.build("designedSearchInput"),Gc=kt`
1201
1201
  * {
1202
1202
  box-sizing: border-box;
1203
1203
  }
@@ -1244,11 +1244,11 @@ class ss extends Zn{constructor(t){if(super(t),this.et=st,t.type!==Dn)throw Erro
1244
1244
  * @license
1245
1245
  * Copyright 2020 Google LLC
1246
1246
  * SPDX-License-Identifier: BSD-3-Clause
1247
- */,{D:Zc}=Ot,_c=()=>document.createComment(""),Hc=(t,e,o)=>{const r=t._$AA.parentNode,i=void 0===e?t._$AB:e._$AA;if(void 0===o){const e=r.insertBefore(_c(),i),n=r.insertBefore(_c(),i);o=new Zc(e,n,t,t.options)}else{const e=o._$AB.nextSibling,n=o._$AM,a=n!==t;if(a){let e;o._$AQ?.(t),o._$AM=t,void 0!==o._$AP&&(e=t._$AU)!==n._$AU&&o._$AP(e)}if(e!==i||a){let t=o._$AA;for(;t!==e;){const e=t.nextSibling;r.insertBefore(t,i),t=e}}}return o},Gc=(t,e,o=t)=>(t._$AI(e,o),t),qc={},Vc=t=>{t._$AP?.(!1,!0);let e=t._$AA;const o=t._$AB.nextSibling;for(;e!==o;){const t=e.nextSibling;e.remove(),e=t}},Yc=(t,e,o)=>{const r=new Map;for(let i=e;i<=o;i++)r.set(t[i],i);return r},Xc=zn(class extends Zn{constructor(t){if(super(t),t.type!==Dn)throw Error("repeat() can only be used in text expressions")}ht(t,e,o){let r;void 0===o?o=e:void 0!==e&&(r=e);const i=[],n=[];let a=0;for(const e of t)i[a]=r?r(e,a):a,n[a]=o(e,a),a++;return{values:n,keys:i}}render(t,e,o){return this.ht(t,e,o).values}update(t,[e,o,r]){const i=(t=>t._$AH)(t),{values:n,keys:a}=this.ht(e,o,r);if(!Array.isArray(i))return this.dt=a,n;const s=this.dt??=[],c=[];let l,f,h=0,u=i.length-1,p=0,d=n.length-1;for(;h<=u&&p<=d;)if(null===i[h])h++;else if(null===i[u])u--;else if(s[h]===a[p])c[p]=Gc(i[h],n[p]),h++,p++;else if(s[u]===a[d])c[d]=Gc(i[u],n[d]),u--,d--;else if(s[h]===a[d])c[d]=Gc(i[h],n[d]),Hc(t,c[d+1],i[h]),h++,d--;else if(s[u]===a[p])c[p]=Gc(i[u],n[p]),Hc(t,i[h],i[u]),u--,p++;else if(void 0===l&&(l=Yc(a,p,d),f=Yc(s,h,u)),l.has(s[h]))if(l.has(s[u])){const e=f.get(a[p]),o=void 0!==e?i[e]:null;if(null===o){const e=Hc(t,i[h]);Gc(e,n[p]),c[p]=e}else c[p]=Gc(o,n[p]),Hc(t,i[h],o),i[e]=null;p++}else Vc(i[u]),u--;else Vc(i[h]),h++;for(;p<=d;){const e=Hc(t,c[d+1]);Gc(e,n[p]),c[p++]=e}for(;h<=u;){const t=i[h++];null!==t&&Vc(t)}return this.dt=a,((t,e=qc)=>{t._$AH=e})(t,c),at}});var Qc=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Jc extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t})}}let tl=class extends Ec{render(){return he`
1247
+ */,{D:qc}=Ot,Vc=()=>document.createComment(""),Yc=(t,e,o)=>{const r=t._$AA.parentNode,i=void 0===e?t._$AB:e._$AA;if(void 0===o){const e=r.insertBefore(Vc(),i),n=r.insertBefore(Vc(),i);o=new qc(e,n,t,t.options)}else{const e=o._$AB.nextSibling,n=o._$AM,a=n!==t;if(a){let e;o._$AQ?.(t),o._$AM=t,void 0!==o._$AP&&(e=t._$AU)!==n._$AU&&o._$AP(e)}if(e!==i||a){let t=o._$AA;for(;t!==e;){const e=t.nextSibling;r.insertBefore(t,i),t=e}}}return o},Xc=(t,e,o=t)=>(t._$AI(e,o),t),Qc={},Jc=t=>{t._$AP?.(!1,!0);let e=t._$AA;const o=t._$AB.nextSibling;for(;e!==o;){const t=e.nextSibling;e.remove(),e=t}},tl=(t,e,o)=>{const r=new Map;for(let i=e;i<=o;i++)r.set(t[i],i);return r},el=zn(class extends Zn{constructor(t){if(super(t),t.type!==Tn)throw Error("repeat() can only be used in text expressions")}ht(t,e,o){let r;void 0===o?o=e:void 0!==e&&(r=e);const i=[],n=[];let a=0;for(const e of t)i[a]=r?r(e,a):a,n[a]=o(e,a),a++;return{values:n,keys:i}}render(t,e,o){return this.ht(t,e,o).values}update(t,[e,o,r]){const i=(t=>t._$AH)(t),{values:n,keys:a}=this.ht(e,o,r);if(!Array.isArray(i))return this.dt=a,n;const s=this.dt??=[],c=[];let l,f,h=0,u=i.length-1,p=0,d=n.length-1;for(;h<=u&&p<=d;)if(null===i[h])h++;else if(null===i[u])u--;else if(s[h]===a[p])c[p]=Xc(i[h],n[p]),h++,p++;else if(s[u]===a[d])c[d]=Xc(i[u],n[d]),u--,d--;else if(s[h]===a[d])c[d]=Xc(i[h],n[d]),Yc(t,c[d+1],i[h]),h++,d--;else if(s[u]===a[p])c[p]=Xc(i[u],n[p]),Yc(t,i[h],i[u]),u--,p++;else if(void 0===l&&(l=tl(a,p,d),f=tl(s,h,u)),l.has(s[h]))if(l.has(s[u])){const e=f.get(a[p]),o=void 0!==e?i[e]:null;if(null===o){const e=Yc(t,i[h]);Xc(e,n[p]),c[p]=e}else c[p]=Xc(o,n[p]),Yc(t,i[h],o),i[e]=null;p++}else Jc(i[u]),u--;else Jc(i[h]),h++;for(;p<=d;){const e=Yc(t,c[d+1]);Xc(e,n[p]),c[p++]=e}for(;h<=u;){const t=i[h++];null!==t&&Jc(t)}return this.dt=a,((t,e=Qc)=>{t._$AH=e})(t,c),at}});var ol=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class rl extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t})}}let il=class extends Uc{render(){return he`
1248
1248
  <div class="ft-search-input-suggestion ft-word-wrap"
1249
1249
  part="container"
1250
1250
  @keydown=${t=>this.onSuggestKeyDown(t)}>
1251
- ${Xc(this.suggestResults||[],(t=>t.value),(t=>he`
1251
+ ${el(this.suggestResults||[],(t=>t.value),(t=>he`
1252
1252
  <a href="#"
1253
1253
  part="suggestion"
1254
1254
  class="ft-search-input-suggestion--suggestion"
@@ -1260,16 +1260,16 @@ class ss extends Zn{constructor(t){if(super(t),this.et=st,t.type!==Dn)throw Erro
1260
1260
  </a>
1261
1261
  `))}
1262
1262
  </div>
1263
- `}onSuggestKeyDown(t){var e,o,r,i,n,a;switch(t.key){case"ArrowUp":null===(r=null!==(o=null===(e=this.getFocusedSuggestionElement())||void 0===e?void 0:e.previousElementSibling)&&void 0!==o?o:this.getLastSuggestionElement())||void 0===r||r.focus(),t.preventDefault(),t.stopPropagation();break;case"ArrowDown":null===(a=null!==(n=null===(i=this.getFocusedSuggestionElement())||void 0===i?void 0:i.nextElementSibling)&&void 0!==n?n:this.getFirstSuggestionElement())||void 0===a||a.focus(),t.preventDefault(),t.stopPropagation()}}onSuggestKeyUp(t,e){"Enter"!==t.key&&" "!==t.key||this.onSuggestSelected(t,e)}onSuggestSelected(t,e){t.preventDefault(),this.dispatchEvent(new Jc(e))}getIcon(t){const e="DOCUMENT"===t.type?ps.file_format:ps.fluid_topics;let o;switch(t.type){case"MAP":o="BOOK"===t.editorialType?ls.BOOK:ls.ARTICLE;break;case"DOCUMENT":o=function(t,e){var o,r,i,n;t=(null!=t?t:"").toLowerCase(),e=(null!=e?e:"").toLowerCase();const[a,s]=((null!==(o=us.get(t))&&void 0!==o?o:t)+"/").split("/");return null!==(n=null!==(i=null!==(r=hs.get(s))&&void 0!==r?r:hs.get(e))&&void 0!==i?i:hs.get(a))&&void 0!==n?n:fs.UNKNOWN}(t.mimeType,t.filenameExtension);break;case"TOPIC":o=ls.TOPICS}return he`
1263
+ `}onSuggestKeyDown(t){var e,o,r,i,n,a;switch(t.key){case"ArrowUp":null===(r=null!==(o=null===(e=this.getFocusedSuggestionElement())||void 0===e?void 0:e.previousElementSibling)&&void 0!==o?o:this.getLastSuggestionElement())||void 0===r||r.focus(),t.preventDefault(),t.stopPropagation();break;case"ArrowDown":null===(a=null!==(n=null===(i=this.getFocusedSuggestionElement())||void 0===i?void 0:i.nextElementSibling)&&void 0!==n?n:this.getFirstSuggestionElement())||void 0===a||a.focus(),t.preventDefault(),t.stopPropagation()}}onSuggestKeyUp(t,e){"Enter"!==t.key&&" "!==t.key||this.onSuggestSelected(t,e)}onSuggestSelected(t,e){t.preventDefault(),this.dispatchEvent(new rl(e))}getIcon(t){const e="DOCUMENT"===t.type?ps.file_format:ps.fluid_topics;let o;switch(t.type){case"MAP":o="BOOK"===t.editorialType?ls.BOOK:ls.ARTICLE;break;case"DOCUMENT":o=function(t,e){var o,r,i,n;t=(null!=t?t:"").toLowerCase(),e=(null!=e?e:"").toLowerCase();const[a,s]=((null!==(o=us.get(t))&&void 0!==o?o:t)+"/").split("/");return null!==(n=null!==(i=null!==(r=hs.get(s))&&void 0!==r?r:hs.get(e))&&void 0!==i?i:hs.get(a))&&void 0!==n?n:fs.UNKNOWN}(t.mimeType,t.filenameExtension);break;case"TOPIC":o=ls.TOPICS}return he`
1264
1264
  <ft-icon .variant="${e}" .value="${o}" part="suggestion-icon"></ft-icon>
1265
- `}getFocusedSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion:focus-within")}getLastSuggestionElement(){let t=this.shadowRoot.querySelectorAll(".ft-search-input-suggestion--suggestion");return t.length>0?t[t.length-1]:null}getFirstSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion")}focusFirstSuggestion(){var t;null===(t=this.getFirstSuggestionElement())||void 0===t||t.focus()}};tl.elementDefinitions={"ft-ripple":Gn,"ft-typography":ea,"ft-icon":ys},tl.styles=[Ge,zc],Qc([Ye()],tl.prototype,"suggestResults",void 0),tl=Qc([(t=>(e,o)=>{void 0!==o?o.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)})("ft-search-input-suggestion")],tl);var el=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ol extends(Qs(Ec)){constructor(){super(),this.liveQuery="",this.forceCloseSuggestion=!1,this.addI18nContext(Dc)}render(){var t,e;let o={"ft-search-input":!0,"ft-search-input--with-suggestions":null!==(e=null===(t=this.suggestResults)||void 0===t?void 0:t.length)&&void 0!==e&&e,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion};return he`
1265
+ `}getFocusedSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion:focus-within")}getLastSuggestionElement(){let t=this.shadowRoot.querySelectorAll(".ft-search-input-suggestion--suggestion");return t.length>0?t[t.length-1]:null}getFirstSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion")}focusFirstSuggestion(){var t;null===(t=this.getFirstSuggestionElement())||void 0===t||t.focus()}};il.elementDefinitions={"ft-ripple":Gn,"ft-typography":ea,"ft-icon":ys},il.styles=[Ge,Gc],ol([Ye()],il.prototype,"suggestResults",void 0),il=ol([(t=>(e,o)=>{void 0!==o?o.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)})("ft-search-input-suggestion")],il);var nl=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class al extends(Qs(Uc)){constructor(){super(),this.liveQuery="",this.forceCloseSuggestion=!1,this.addI18nContext(Hc)}render(){var t,e;let o={"ft-search-input":!0,"ft-search-input--with-suggestions":null!==(e=null===(t=this.suggestResults)||void 0===t?void 0:t.length)&&void 0!==e&&e,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion};return he`
1266
1266
  <div class="${_n(o)}" @focusout=${()=>this.forceCloseSuggestion=!1}>
1267
1267
  <div class="ft-search-input--input-container" part="input-container" tabindex="-1">
1268
1268
  <div class="ft-search-input--input-outline" part="input-outline">
1269
1269
  <input class="ft-search-input--input ft-typography--body2"
1270
1270
  part="input"
1271
1271
  type="text"
1272
- placeholder="${Dc.messages.placeholder()}"
1272
+ placeholder="${Hc.messages.placeholder()}"
1273
1273
  .value="${this.liveQuery}"
1274
1274
  @keydown=${t=>this.onSearchBarKeyDown(t)}
1275
1275
  @keyup=${t=>this.onSearchBarKeyUp(t)}>
@@ -1285,7 +1285,7 @@ class ss extends Zn{constructor(t){if(super(t),this.et=st,t.type!==Dn)throw Erro
1285
1285
  part="clear-query"
1286
1286
  icon="close"
1287
1287
  round dense
1288
- label="${Dc.messages.clearButton()}"
1288
+ label="${Hc.messages.clearButton()}"
1289
1289
  @click=${()=>this.liveQuery=""}
1290
1290
  ></ft-button>
1291
1291
  <div class="ft-search-input--separator"></div>
@@ -1294,28 +1294,28 @@ class ss extends Zn{constructor(t){if(super(t),this.et=st,t.type!==Dn)throw Erro
1294
1294
  part="launch-search-in-input"
1295
1295
  icon="search"
1296
1296
  round dense
1297
- label="${Dc.messages.searchButton()}"
1297
+ label="${Hc.messages.searchButton()}"
1298
1298
  @click=${()=>this.launchSearch()}
1299
1299
  ></ft-button>
1300
1300
  </div>
1301
1301
  </div>
1302
- `}onSearchBarKeyDown(t){switch(t.key){case"ArrowDown":t.stopPropagation(),t.preventDefault(),this.suggestion.focusFirstSuggestion();break;case"Backspace":t.stopPropagation()}}onSearchBarKeyUp(t){var e,o;if("Backspace"===t.key&&t.stopPropagation(),"Enter"===t.key)null===(e=this.stateManager)||void 0===e||e.setQuery(this.input.value),this.forceCloseSuggestion=!0;else null===(o=this.stateManager)||void 0===o||o.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}launchSearch(){var t;null===(t=this.stateManager)||void 0===t||t.setQuery(this.liveQuery),this.forceCloseSuggestion=!0}onSuggestionSelected(t){var e;null===(e=this.stateManager)||void 0===e||e.setQuery(t.detail),this.forceCloseSuggestion=!0}}ol.elementDefinitions={"ft-search-input-suggestion":tl,"ft-button":xs},ol.styles=[On,Cs],el([Ye()],ol.prototype,"request",void 0),el([Ye()],ol.prototype,"liveQuery",void 0),el([Ye()],ol.prototype,"suggestResults",void 0),el([U()],ol.prototype,"forceCloseSuggestion",void 0),el([A(".ft-search-input--input")],ol.prototype,"input",void 0),el([A("ft-search-input-suggestion")],ol.prototype,"suggestion",void 0),P("ft-search-input")(ol);const rl=kt`
1302
+ `}onSearchBarKeyDown(t){switch(t.key){case"ArrowDown":t.stopPropagation(),t.preventDefault(),this.suggestion.focusFirstSuggestion();break;case"Backspace":t.stopPropagation()}}onSearchBarKeyUp(t){var e,o;if("Backspace"===t.key&&t.stopPropagation(),"Enter"===t.key)null===(e=this.stateManager)||void 0===e||e.setQuery(this.input.value),this.forceCloseSuggestion=!0;else null===(o=this.stateManager)||void 0===o||o.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}launchSearch(){var t;null===(t=this.stateManager)||void 0===t||t.setQuery(this.liveQuery),this.forceCloseSuggestion=!0}onSuggestionSelected(t){var e;null===(e=this.stateManager)||void 0===e||e.setQuery(t.detail),this.forceCloseSuggestion=!0}}al.elementDefinitions={"ft-search-input-suggestion":il,"ft-button":xs},al.styles=[On,Cs],nl([Ye()],al.prototype,"request",void 0),nl([Ye()],al.prototype,"liveQuery",void 0),nl([Ye()],al.prototype,"suggestResults",void 0),nl([U()],al.prototype,"forceCloseSuggestion",void 0),nl([A(".ft-search-input--input")],al.prototype,"input",void 0),nl([A("ft-search-input-suggestion")],al.prototype,"suggestion",void 0),P("ft-search-input")(al);const sl=kt`
1303
1303
  [part="no-results-message"] {
1304
1304
  text-align: center;
1305
1305
  padding: 12px;
1306
1306
  }
1307
- `,il=kt`
1307
+ `,cl=kt`
1308
1308
  a {
1309
1309
  color: inherit;
1310
1310
  text-decoration: inherit;
1311
1311
  }
1312
- `;class nl{constructor(t){this.registeredComponents=[],this.registeredMetadata=new Set,this.onResultSelected=t}registerComponent(t){t.setResultStateManager(this),this.registeredComponents.push(t),this.bindComponent(t)}unregisterComponent(t){this.registeredComponents.splice(this.registeredComponents.indexOf(t),1),t.cluster=void 0,t.result=void 0,t.rank=void 0}registerMetadata(t){this.registeredMetadata.add(t)}unregisterMetadata(t){this.registeredMetadata.delete(t)}updateCluster(t,e){this.cluster=t,this.rank=e,this.selectResult(this.cluster.entries[0])}selectResult(t){this.result=t,this.onResultSelected(t),this.registeredComponents.forEach((t=>this.bindComponent(t)))}clear(){this.registeredComponents=[]}bindComponent(t){t.cluster=this.cluster,t.result=this.result,t.rank=this.rank}}var al=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class sl extends CustomEvent{constructor(t){super("ft-search-result-cluster-change",{detail:t,bubbles:!0,composed:!0})}}class cl extends Ze{constructor(){super(...arguments),this.index=0,this.stateManager=new nl((t=>this.onResultSelected(t)))}render(){return he`
1312
+ `;class ll{constructor(t){this.registeredComponents=[],this.registeredMetadata=new Set,this.onResultSelected=t}registerComponent(t){t.setResultStateManager(this),this.registeredComponents.push(t),this.bindComponent(t)}unregisterComponent(t){this.registeredComponents.splice(this.registeredComponents.indexOf(t),1),t.cluster=void 0,t.result=void 0,t.rank=void 0}registerMetadata(t){this.registeredMetadata.add(t)}unregisterMetadata(t){this.registeredMetadata.delete(t)}updateCluster(t,e){this.cluster=t,this.rank=e,this.selectResult(this.cluster.entries[0])}selectResult(t){this.result=t,this.onResultSelected(t),this.registeredComponents.forEach((t=>this.bindComponent(t)))}clear(){this.registeredComponents=[]}bindComponent(t){t.cluster=this.cluster,t.result=this.result,t.rank=this.rank}}var fl=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class hl extends CustomEvent{constructor(t){super("ft-search-result-cluster-change",{detail:t,bubbles:!0,composed:!0})}}class ul extends Ze{constructor(){super(...arguments),this.index=0,this.stateManager=new ll((t=>this.onResultSelected(t)))}render(){return he`
1313
1313
  <slot @register-ft-search-result-component=${this.registerComponent}></slot>
1314
- `}onResultSelected(t){this.result=t,this.dispatchEvent(new sl(this.result))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.stateManager.registerComponent(e)}update(t){super.update(t),t.has("cluster")&&this.cluster&&this.stateManager.updateCluster(this.cluster,this.index+1)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.clear()}}cl.elementDefinitions={},cl.styles=il,al([k({attribute:!1})],cl.prototype,"cluster",void 0),al([U()],cl.prototype,"result",void 0),al([k()],cl.prototype,"index",void 0),P("ft-search-result-context")(cl);var ll=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class fl extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}}const hl=Symbol("registerInterval");class ul extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setResultStateManager(t){this.resultStateManager=t}unregisterResultStateManager(){this.resultStateManager&&(this.resultStateManager.unregisterComponent(this),this.resultStateManager=void 0)}connectedCallback(){super.connectedCallback(),this[hl]=window.setInterval((()=>this.tryToRegisterToResultContext()),50)}tryToRegisterToResultContext(){null!=this.result?window.clearInterval(this[hl]):this.dispatchEvent(new fl)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterResultStateManager()}}return e=hl,ll([k({attribute:!1})],o.prototype,"cluster",void 0),ll([k({attribute:!1})],o.prototype,"result",void 0),ll([k({attribute:!1,type:Number})],o.prototype,"rank",void 0),o}(Ec)){}function pl(t){switch(t.type){case bc.MAP:return t.map.readerUrl;case bc.DOCUMENT:return t.document.viewerUrl;case bc.TOPIC:return t.topic.readerUrl}return""}class dl extends CustomEvent{constructor(t,e){super("ft-search-result-click",{detail:{result:t,rank:e},bubbles:!0,composed:!0})}}class yl extends ul{render(){return this.result?he`
1315
- <a href="${this.result?pl(this.result):""}" @click=${this.onResultClick}>
1314
+ `}onResultSelected(t){this.result=t,this.dispatchEvent(new hl(this.result))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.stateManager.registerComponent(e)}update(t){super.update(t),t.has("cluster")&&this.cluster&&this.stateManager.updateCluster(this.cluster,this.index+1)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.clear()}}ul.elementDefinitions={},ul.styles=cl,fl([k({attribute:!1})],ul.prototype,"cluster",void 0),fl([U()],ul.prototype,"result",void 0),fl([k()],ul.prototype,"index",void 0),P("ft-search-result-context")(ul);var pl=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class dl extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}}const yl=Symbol("registerInterval");class gl extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setResultStateManager(t){this.resultStateManager=t}unregisterResultStateManager(){this.resultStateManager&&(this.resultStateManager.unregisterComponent(this),this.resultStateManager=void 0)}connectedCallback(){super.connectedCallback(),this[yl]=window.setInterval((()=>this.tryToRegisterToResultContext()),50)}tryToRegisterToResultContext(){null!=this.result?window.clearInterval(this[yl]):this.dispatchEvent(new dl)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterResultStateManager()}}return e=yl,pl([k({attribute:!1})],o.prototype,"cluster",void 0),pl([k({attribute:!1})],o.prototype,"result",void 0),pl([k({attribute:!1,type:Number})],o.prototype,"rank",void 0),o}(Uc)){}function bl(t){switch(t.type){case xc.MAP:return t.map.readerUrl;case xc.DOCUMENT:return t.document.viewerUrl;case xc.TOPIC:return t.topic.readerUrl}return""}class ml extends CustomEvent{constructor(t,e){super("ft-search-result-click",{detail:{result:t,rank:e},bubbles:!0,composed:!0})}}class vl extends gl{render(){return this.result?he`
1315
+ <a href="${this.result?bl(this.result):""}" @click=${this.onResultClick}>
1316
1316
  <ft-typography variant="title" part="text">${cs(this.selectTitle(this.result))}</ft-typography>
1317
1317
  </a>
1318
- `:pe}onResultClick(){this.dispatchEvent(new dl(this.result,this.rank))}selectTitle(t){switch(t.type){case"MAP":return t.map.htmlTitle;case"DOCUMENT":return t.document.htmlTitle;case"TOPIC":return t.topic.htmlTitle}return""}}yl.elementDefinitions={"ft-typography":ea},yl.styles=ks,P("ft-search-result-title")(yl);class gl extends ul{render(){let t=this.result?this.selectAbstract(this.result):void 0;return t?he`
1318
+ `:pe}onResultClick(){this.dispatchEvent(new ml(this.result,this.rank))}selectTitle(t){switch(t.type){case"MAP":return t.map.htmlTitle;case"DOCUMENT":return t.document.htmlTitle;case"TOPIC":return t.topic.htmlTitle}return""}}vl.elementDefinitions={"ft-typography":ea},vl.styles=ks,P("ft-search-result-title")(vl);class xl extends gl{render(){let t=this.result?this.selectAbstract(this.result):void 0;return t?he`
1319
1319
  <ft-typography variant="body1" part="text">${cs(t)}</ft-typography>
1320
1320
  `:he`
1321
1321
  <style>
@@ -1323,17 +1323,17 @@ class ss extends Zn{constructor(t){if(super(t),this.et=st,t.type!==Dn)throw Erro
1323
1323
  display: none !important;
1324
1324
  }
1325
1325
  </style>
1326
- `}selectAbstract(t){switch(t.type){case"MAP":return t.map.htmlExcerpt;case"DOCUMENT":return t.document.htmlExcerpt;case"TOPIC":return t.topic.htmlExcerpt}return""}}gl.elementDefinitions={"ft-typography":ea},gl.styles=$s,P("ft-search-result-abstract")(gl);var bl=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ml extends(Qs(Ec)){constructor(){super(),this.clusterPolicy="display-first-result",this.displayNoResultsMessage=!1,this.renderResult=()=>he`
1326
+ `}selectAbstract(t){switch(t.type){case"MAP":return t.map.htmlExcerpt;case"DOCUMENT":return t.document.htmlExcerpt;case"TOPIC":return t.topic.htmlExcerpt}return""}}xl.elementDefinitions={"ft-typography":ea},xl.styles=$s,P("ft-search-result-abstract")(xl);var Ol=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class wl extends(Qs(Uc)){constructor(){super(),this.clusterPolicy="display-first-result",this.displayNoResultsMessage=!1,this.renderResult=()=>he`
1327
1327
  <ft-search-result-title></ft-search-result-title>
1328
1328
  <ft-search-result-abstract></ft-search-result-abstract>
1329
- `,this.selectedResultByCluster={},this.addI18nContext(Bc)}render(){if(this.displayNoResultsMessage&&null!=this.results&&0==this.results.length)return he`
1330
- <ft-typography part="no-results-message" variant="body1">${Bc.messages.results(0)}</ft-typography>
1331
- `;const t=this.buildClusters();return Xc(t,(t=>t.id),((t,e)=>{var o;return he`
1329
+ `,this.selectedResultByCluster={},this.addI18nContext(Tc)}render(){if(this.displayNoResultsMessage&&null!=this.results&&0==this.results.length)return he`
1330
+ <ft-typography part="no-results-message" variant="body1">${Tc.messages.results(0)}</ft-typography>
1331
+ `;const t=this.buildClusters();return el(t,(t=>t.id),((t,e)=>{var o;return he`
1332
1332
  <ft-search-result-context .cluster=${t} index="${e}"
1333
1333
  @ft-search-result-cluster-change="${e=>this.onClusterChange(t.id,e.detail)}">
1334
1334
  ${this.renderResult(null!==(o=this.selectedResultByCluster[t.id])&&void 0!==o?o:t.entries[0],e)}
1335
1335
  </ft-search-result-context>
1336
- `}))}onClusterChange(t,e){this.selectedResultByCluster[t]=e}buildClusters(){switch(this.clusterPolicy){case"display-first-result":return this.buildFullClusters();case"display-all-results":return this.buildAllResultsClusters()}}buildFullClusters(){var t,e;return null!==(e=null===(t=this.results)||void 0===t?void 0:t.map((t=>({id:this.clusterId(t.entries[0]),entries:t.entries}))))&&void 0!==e?e:[]}buildAllResultsClusters(){var t,e;return null!==(e=null===(t=this.results)||void 0===t?void 0:t.flatMap((t=>t.entries.map((t=>({id:this.clusterId(t),entries:[t]}))))))&&void 0!==e?e:[]}clusterId(t){var e,o,r,i,n;return null!==(i=null!==(o=null===(e=t.map)||void 0===e?void 0:e.mapId)&&void 0!==o?o:null===(r=t.topic)||void 0===r?void 0:r.tocId)&&void 0!==i?i:null===(n=t.document)||void 0===n?void 0:n.documentId}}ml.styles=rl,bl([k({type:String,attribute:"cluster-policy"})],ml.prototype,"clusterPolicy",void 0),bl([k({type:Boolean})],ml.prototype,"displayNoResultsMessage",void 0),bl([k({attribute:!1})],ml.prototype,"renderResult",void 0),bl([Ye()],ml.prototype,"results",void 0),P("ft-search-results")(ml);var vl=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class xl extends Ze{constructor(){super(...arguments),this.title="",this.clickable=!1,this.selected=!1,this.noHeader=!1}render(){const t={selected:this.selected,clickable:this.clickable,"no-header":this.noHeader};return he`
1336
+ `}))}onClusterChange(t,e){this.selectedResultByCluster[t]=e}buildClusters(){switch(this.clusterPolicy){case"display-first-result":return this.buildFullClusters();case"display-all-results":return this.buildAllResultsClusters()}}buildFullClusters(){var t,e;return null!==(e=null===(t=this.results)||void 0===t?void 0:t.map((t=>({id:this.clusterId(t.entries[0]),entries:t.entries}))))&&void 0!==e?e:[]}buildAllResultsClusters(){var t,e;return null!==(e=null===(t=this.results)||void 0===t?void 0:t.flatMap((t=>t.entries.map((t=>({id:this.clusterId(t),entries:[t]}))))))&&void 0!==e?e:[]}clusterId(t){var e,o,r,i,n;return null!==(i=null!==(o=null===(e=t.map)||void 0===e?void 0:e.mapId)&&void 0!==o?o:null===(r=t.topic)||void 0===r?void 0:r.tocId)&&void 0!==i?i:null===(n=t.document)||void 0===n?void 0:n.documentId}}wl.styles=sl,Ol([k({type:String,attribute:"cluster-policy"})],wl.prototype,"clusterPolicy",void 0),Ol([k({type:Boolean})],wl.prototype,"displayNoResultsMessage",void 0),Ol([k({attribute:!1})],wl.prototype,"renderResult",void 0),Ol([Ye()],wl.prototype,"results",void 0),P("ft-search-results")(wl);var Sl=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Nl extends Ze{constructor(){super(...arguments),this.title="",this.clickable=!1,this.selected=!1,this.noHeader=!1}render(){const t={selected:this.selected,clickable:this.clickable,"no-header":this.noHeader};return he`
1337
1337
  <div id="container" part="container" class=${_n(t)}>
1338
1338
  ${this.clickable?he`
1339
1339
  <ft-ripple primary ?selected=${this.selected}></ft-ripple>
@@ -1351,14 +1351,14 @@ class ss extends Zn{constructor(t){if(super(t),this.et=st,t.type!==Dn)throw Erro
1351
1351
  </ft-typography>
1352
1352
  </div>
1353
1353
  </div>
1354
- `}}xl.elementDefinitions={"ft-ripple":Gn,"ft-typography":ea},xl.styles=fi,vl([k()],xl.prototype,"title",void 0),vl([k({type:Boolean})],xl.prototype,"clickable",void 0),vl([k({type:Boolean})],xl.prototype,"selected",void 0),vl([k({type:Boolean})],xl.prototype,"noHeader",void 0),P("ft-card")(xl);const Ol=kt`
1355
- `,wl=rc.fromGwt("designedActionBlockAriaLabels");var Sl=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Nl extends(Qs(Ec)){constructor(){super(),this.currentPage=1,this.isLastPage=!0,this.addI18nContext(wl)}render(){return this.isLastPage?pe:he`
1354
+ `}}Nl.elementDefinitions={"ft-ripple":Gn,"ft-typography":ea},Nl.styles=fi,Sl([k()],Nl.prototype,"title",void 0),Sl([k({type:Boolean})],Nl.prototype,"clickable",void 0),Sl([k({type:Boolean})],Nl.prototype,"selected",void 0),Sl([k({type:Boolean})],Nl.prototype,"noHeader",void 0),P("ft-card")(Nl);const Cl=kt`
1355
+ `,El=rc.fromGwt("designedActionBlockAriaLabels");var $l=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Rl extends(Qs(Uc)){constructor(){super(),this.currentPage=1,this.isLastPage=!0,this.addI18nContext(El)}render(){return this.isLastPage?pe:he`
1356
1356
  <ft-button @click="${this.loadMore}">
1357
- ${wl.messages.searchPageLoadMore()}
1357
+ ${El.messages.searchPageLoadMore()}
1358
1358
  </ft-button>
1359
- `}loadMore(){var t;null===(t=this.stateManager)||void 0===t||t.setPageNumber(this.currentPage+1)}}Nl.elementDefinitions={"ft-button":xs},Nl.styles=Ol,Sl([Ye({store:"search",selector:t=>{var e,o;return null!==(o=null===(e=t.paging)||void 0===e?void 0:e.currentPage)&&void 0!==o?o:1}})],Nl.prototype,"currentPage",void 0),Sl([Ye({store:"search",selector:t=>{var e,o;return null===(o=null===(e=t.paging)||void 0===e?void 0:e.isLastPage)||void 0===o||o}})],Nl.prototype,"isLastPage",void 0),P("ft-search-load-more-button")(Nl);var Cl=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class El extends(Qs(Fc)){constructor(){super(...arguments),this.searchInDocumentQuery="",this.hideResultTitle=!1,this.hideResultBreadcrumb=!1,this.hideResultAbstract=!1,this.hideResultsNumber=!1,this.uniqueId="search-in-document-"+(""+Math.round(999e3*Math.random())).padStart(6,"0")}get filters(){return[{negative:!1,key:"ft:publicationId",values:[this.map.id]}]}renderResult(t,e){var o;return he`
1359
+ `}loadMore(){var t;null===(t=this.stateManager)||void 0===t||t.setPageNumber(this.currentPage+1)}}Rl.elementDefinitions={"ft-button":xs},Rl.styles=Cl,$l([Ye({store:"search",selector:t=>{var e,o;return null!==(o=null===(e=t.paging)||void 0===e?void 0:e.currentPage)&&void 0!==o?o:1}})],Rl.prototype,"currentPage",void 0),$l([Ye({store:"search",selector:t=>{var e,o;return null===(o=null===(e=t.paging)||void 0===e?void 0:e.isLastPage)||void 0===o||o}})],Rl.prototype,"isLastPage",void 0),P("ft-search-load-more-button")(Rl);var kl=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ul extends(Qs(Dc)){constructor(){super(...arguments),this.searchInDocumentQuery="",this.hideResultTitle=!1,this.hideResultBreadcrumb=!1,this.hideResultAbstract=!1,this.hideResultsNumber=!1,this.uniqueId="search-in-document-"+(""+Math.round(999e3*Math.random())).padStart(6,"0")}get filters(){return[{negative:!1,key:"ft:publicationId",values:[this.map.id]}]}renderResult(t,e){var o;return he`
1360
1360
  <style> ${Ls}</style>
1361
- <a href="${pl(t)}" @click="${()=>this.onLinkClick(t,e)} }">
1361
+ <a href="${bl(t)}" @click="${()=>this.onLinkClick(t,e)} }">
1362
1362
  <ft-card clickable noheader>
1363
1363
  <div class="result-container">
1364
1364
  ${this.hideResultTitle?pe:he`
@@ -1394,4 +1394,4 @@ class ss extends Zn{constructor(t){if(super(t),this.et=st,t.type!==Dn)throw Erro
1394
1394
  </slot>
1395
1395
  </div>
1396
1396
  </ft-search-context>
1397
- `:pe}update(t){super.update(t),t.has("map")&&this.searchContext&&this.searchContext.clear(),["hideResultTitle","hideResultBreadcrumb","hideResultAbstract"].some((e=>t.has(e)))&&this.searchResults&&this.searchResults.requestUpdate()}onLinkClick(t,e){this.dispatchEvent(new dl(t,e))}}El.elementDefinitions={"ft-button":xs,"ft-typography":ea,"ft-search-context":Lc,"ft-search-input":ol,"ft-search-results-number":Tc,"ft-search-results":ml,"ft-search-load-more-button":Nl},El.styles=Is,Cl([Ye()],El.prototype,"map",void 0),Cl([Ye()],El.prototype,"searchInDocumentQuery",void 0),Cl([A("ft-search-context")],El.prototype,"searchContext",void 0),Cl([A("ft-search-results")],El.prototype,"searchResults",void 0),Cl([k({type:Boolean})],El.prototype,"hideResultTitle",void 0),Cl([k({type:Boolean})],El.prototype,"hideResultBreadcrumb",void 0),Cl([k({type:Boolean})],El.prototype,"hideResultAbstract",void 0),Cl([k({type:Boolean})],El.prototype,"hideResultsNumber",void 0),P("ft-reader-search-in-document")(El),t.FtReaderSearchInDocument=El,t.FtReaderSearchInDocumentCssVariables=Us,t.resultStyles=Ls,t.styles=Is}({});
1397
+ `:pe}update(t){super.update(t),t.has("map")&&this.searchContext&&this.searchContext.clear(),["hideResultTitle","hideResultBreadcrumb","hideResultAbstract"].some((e=>t.has(e)))&&this.searchResults&&this.searchResults.requestUpdate()}onLinkClick(t,e){this.dispatchEvent(new ml(t,e))}}Ul.elementDefinitions={"ft-button":xs,"ft-typography":ea,"ft-search-context":Fc,"ft-search-input":al,"ft-search-results-number":_c,"ft-search-results":wl,"ft-search-load-more-button":Rl},Ul.styles=Is,kl([Ye()],Ul.prototype,"map",void 0),kl([Ye()],Ul.prototype,"searchInDocumentQuery",void 0),kl([A("ft-search-context")],Ul.prototype,"searchContext",void 0),kl([A("ft-search-results")],Ul.prototype,"searchResults",void 0),kl([k({type:Boolean})],Ul.prototype,"hideResultTitle",void 0),kl([k({type:Boolean})],Ul.prototype,"hideResultBreadcrumb",void 0),kl([k({type:Boolean})],Ul.prototype,"hideResultAbstract",void 0),kl([k({type:Boolean})],Ul.prototype,"hideResultsNumber",void 0),P("ft-reader-search-in-document")(Ul),t.FtReaderSearchInDocument=Ul,t.FtReaderSearchInDocumentCssVariables=Us,t.resultStyles=Ls,t.styles=Is}({});