@fluid-topics/ft-confirm-button 1.2.21 → 1.2.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var Wc=Object.create;var mn=Object.defineProperty;var Dc=Object.getOwnPropertyDescriptor;var zc=Object.getOwnPropertyNames;var Mc=Object.getPrototypeOf,Uc=Object.prototype.hasOwnProperty;var ze=(e,o)=>()=>(o||e((o={exports:{}}).exports,o),o.exports);var Hc=(e,o,r,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let a of zc(o))!Uc.call(e,a)&&a!==r&&mn(e,a,{get:()=>o[a],enumerable:!(n=Dc(o,a))||n.enumerable});return e};var S=(e,o,r)=>(r=e!=null?Wc(Mc(e)):{},Hc(o||!e||!e.__esModule?mn(r,"default",{value:e,enumerable:!0}):r,e));var K=ze((ss,gn)=>{gn.exports=ftGlobals.litDecorators});var P=ze((ds,bn)=>{bn.exports=ftGlobals.wcUtils});var B=ze((fs,xn)=>{xn.exports=ftGlobals.lit});var go=ze((wu,va)=>{va.exports=ftGlobals.litClassMap});var bi=ze((Ny,gi)=>{gi.exports=ftGlobals.litUnsafeHTML});var Y=S(K()),Bc=S(P()),
|
|
1
|
+
"use strict";(()=>{var Wc=Object.create;var mn=Object.defineProperty;var Dc=Object.getOwnPropertyDescriptor;var zc=Object.getOwnPropertyNames;var Mc=Object.getPrototypeOf,Uc=Object.prototype.hasOwnProperty;var ze=(e,o)=>()=>(o||e((o={exports:{}}).exports,o),o.exports);var Hc=(e,o,r,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let a of zc(o))!Uc.call(e,a)&&a!==r&&mn(e,a,{get:()=>o[a],enumerable:!(n=Dc(o,a))||n.enumerable});return e};var S=(e,o,r)=>(r=e!=null?Wc(Mc(e)):{},Hc(o||!e||!e.__esModule?mn(r,"default",{value:e,enumerable:!0}):r,e));var K=ze((ss,gn)=>{gn.exports=ftGlobals.litDecorators});var P=ze((ds,bn)=>{bn.exports=ftGlobals.wcUtils});var B=ze((fs,xn)=>{xn.exports=ftGlobals.lit});var go=ze((wu,va)=>{va.exports=ftGlobals.litClassMap});var bi=ze((Ny,gi)=>{gi.exports=ftGlobals.litUnsafeHTML});var Y=S(K()),Bc=S(P()),ir=S(B());var Ir=S(P());var Qe=S(K()),Ei=S(P());var ba=S(B()),k=S(P());var En=S(B()),G=S(P()),vn=G.FtCssVariableFactory.extend("--ft-ripple-color","",G.designSystemVariables.colorContent),O={color:vn,backgroundColor:G.FtCssVariableFactory.extend("--ft-ripple-background-color","",vn),opacityContentOnSurfacePressed:G.FtCssVariableFactory.external(G.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:G.FtCssVariableFactory.external(G.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:G.FtCssVariableFactory.external(G.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:G.FtCssVariableFactory.external(G.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:G.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Sn=G.FtCssVariableFactory.extend("--ft-ripple-color","",G.designSystemVariables.colorPrimary),On={color:Sn,backgroundColor:G.FtCssVariableFactory.extend("--ft-ripple-background-color","",Sn)},Cn=G.FtCssVariableFactory.extend("--ft-ripple-color","",G.designSystemVariables.colorSecondary),wn={color:Cn,backgroundColor:G.FtCssVariableFactory.extend("--ft-ripple-background-color","",Cn)},Nn=En.css`
|
|
2
2
|
:host {
|
|
3
3
|
display: contents;
|
|
4
4
|
}
|
|
@@ -332,7 +332,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
332
332
|
.ft-icon--material {
|
|
333
333
|
font-family: ${ot.materialFontFamily}, "Material Icons", sans-serif;
|
|
334
334
|
}
|
|
335
|
-
`;var ma=k.FtCssVariableFactory.extend("--ft-button-color","",k.designSystemVariables.colorPrimary),Z={backgroundColor:k.FtCssVariableFactory.extend("--ft-button-background-color","",k.designSystemVariables.colorSurface),borderRadius:k.FtCssVariableFactory.extend("--ft-button-border-radius","",k.designSystemVariables.borderRadiusL),color:ma,fontSize:k.FtCssVariableFactory.extend("--ft-button-font-size","",At.fontSize),iconSize:k.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:k.FtCssVariableFactory.extend("--ft-button-ripple-color","",ma),verticalPadding:k.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:k.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:k.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:k.FtCssVariableFactory.external(k.designSystemVariables.colorOpacityDisabled,"Design system")},ga=k.FtCssVariableFactory.extend("--ft-button-primary-color","",k.FtCssVariableFactory.extend("--ft-button-color","",k.designSystemVariables.colorOnPrimary)),
|
|
335
|
+
`;var ma=k.FtCssVariableFactory.extend("--ft-button-color","",k.designSystemVariables.colorPrimary),Z={backgroundColor:k.FtCssVariableFactory.extend("--ft-button-background-color","",k.designSystemVariables.colorSurface),borderRadius:k.FtCssVariableFactory.extend("--ft-button-border-radius","",k.designSystemVariables.borderRadiusL),color:ma,fontSize:k.FtCssVariableFactory.extend("--ft-button-font-size","",At.fontSize),iconSize:k.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:k.FtCssVariableFactory.extend("--ft-button-ripple-color","",ma),verticalPadding:k.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:k.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:k.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:k.FtCssVariableFactory.external(k.designSystemVariables.colorOpacityDisabled,"Design system")},ga=k.FtCssVariableFactory.extend("--ft-button-primary-color","",k.FtCssVariableFactory.extend("--ft-button-color","",k.designSystemVariables.colorOnPrimary)),lr={backgroundColor:k.FtCssVariableFactory.extend("--ft-button-primary-background-color","",k.FtCssVariableFactory.extend("--ft-button-background-color","",k.designSystemVariables.colorPrimary)),color:ga,rippleColor:k.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",ga)},Rt={borderRadius:k.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",k.FtCssVariableFactory.extend("--ft-button-border-radius","",k.designSystemVariables.borderRadiusM)),verticalPadding:k.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:k.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:k.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},xa=[ba.css`
|
|
336
336
|
:host {
|
|
337
337
|
display: inline-block;
|
|
338
338
|
max-width: 100%;
|
|
@@ -418,9 +418,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
418
418
|
}
|
|
419
419
|
|
|
420
420
|
.ft-button.ft-button--primary {
|
|
421
|
-
background-color: ${
|
|
422
|
-
--ft-button-internal-color: ${
|
|
423
|
-
${(0,k.setVariable)(O.color,
|
|
421
|
+
background-color: ${lr.backgroundColor};
|
|
422
|
+
--ft-button-internal-color: ${lr.color};
|
|
423
|
+
${(0,k.setVariable)(O.color,lr.rippleColor)};
|
|
424
424
|
}
|
|
425
425
|
|
|
426
426
|
.ft-button:focus {
|
|
@@ -480,17 +480,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
480
480
|
<div class="ft-ripple--background"></div>
|
|
481
481
|
<div class="ft-ripple--effect"></div>
|
|
482
482
|
</div>
|
|
483
|
-
`}contentAvailableCallback(o){super.contentAvailableCallback(o),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(o){var r,n;super.update(o),o.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var o,r;let n=(o=this.shadowRoot)===null||o===void 0?void 0:o.host.parentElement;n&&this.setupFor((r=this.target)!==null&&r!==void 0?r:n)}setupFor(o){if(this.setupDebouncer.cancel(),this.target===o)return;this.onDisconnect&&this.onDisconnect(),this.target=o,o.setAttribute("data-is-ft-ripple-target","true");let r=(...d)=>p=>{d.forEach(f=>window.addEventListener(f,this.endPress,{once:!0})),this.startPress(p)},n=r("mouseup","contextmenu"),a=r("touchend","touchcancel"),i=d=>{["Enter"," "].includes(d.key)&&r("keyup")(d)},l={passive:!0};o.addEventListener("mouseover",this.startHover,l),o.addEventListener("mousemove",this.moveRipple,l),o.addEventListener("mouseleave",this.endHover,l),o.addEventListener("mousedown",n,l),o.addEventListener("touchstart",a,l),o.addEventListener("touchmove",this.moveRipple,l),o.addEventListener("keydown",i,l),o.addEventListener("focus",this.startFocus,l),o.addEventListener("blur",this.endFocus,l),o.addEventListener("focusin",this.startFocus,l),o.addEventListener("focusout",this.endFocus,l),this.onDisconnect=()=>{o.removeAttribute("data-is-ft-ripple-target"),o.removeEventListener("mouseover",this.startHover,l),o.removeEventListener("mousemove",this.moveRipple,l),o.removeEventListener("mouseleave",this.endHover,l),o.removeEventListener("mousedown",n,l),o.removeEventListener("touchstart",a,l),o.removeEventListener("touchmove",this.moveRipple,l),o.removeEventListener("keydown",i,l),o.removeEventListener("focus",this.startFocus,l),o.removeEventListener("blur",this.endFocus,l),o.removeEventListener("focusin",this.startFocus,l),o.removeEventListener("focusout",this.endFocus,l),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(o){let r=o,n=o,a,i;return r.x!=null?{x:a,y:i}=r:n.touches!=null&&(a=n.touches[0].clientX,i=n.touches[0].clientY),{x:a,y:i}}isFocusVisible(o){return o instanceof HTMLElement?o.matches(":focus-visible"):!0}isIgnored(o){if(this.disabled)return!0;if(o!=null)for(let r of o.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};M.elementDefinitions={};M.styles=Nn;it([(0,X.property)({type:Boolean})],M.prototype,"primary",void 0);it([(0,X.property)({type:Boolean})],M.prototype,"secondary",void 0);it([(0,X.property)({type:Boolean})],M.prototype,"unbounded",void 0);it([(0,X.property)({type:Boolean})],M.prototype,"activated",void 0);it([(0,X.property)({type:Boolean})],M.prototype,"selected",void 0);it([(0,X.property)({type:Boolean})],M.prototype,"disabled",void 0);it([(0,X.state)()],M.prototype,"hovered",void 0);it([(0,X.state)()],M.prototype,"focused",void 0);it([(0,X.state)()],M.prototype,"pressed",void 0);it([(0,X.state)()],M.prototype,"rippling",void 0);it([(0,X.state)()],M.prototype,"originX",void 0);it([(0,X.state)()],M.prototype,"originY",void 0);it([(0,X.query)(".ft-ripple")],M.prototype,"ripple",void 0);it([(0,X.query)(".ft-ripple--effect")],M.prototype,"rippleEffect",void 0);(0,Ca.customElement)("ft-ripple")(M);var mi=S(P());var hi=S(B()),F=S(K()),Xe=S(P());var Ga=S(P());var
|
|
484
|
-
\f\r]`,He=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ea=/-->/g,Na=/>/g,ie=RegExp(`>|${
|
|
485
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Aa=/'/g,Ra=/"/g,Ta=/^(?:script|style|textarea|title)$/i,$a=e=>(o,...r)=>({_$litType$:e,strings:o,values:r}),Ba=$a(1),_a=$a(2),Fe=Symbol.for("lit-noChange"),V=Symbol.for("lit-nothing"),La=new WeakMap,ce=le.createTreeWalker(le,129);function Wa(e,o){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return wa!==void 0?wa.createHTML(o):o}var Kc=(e,o)=>{let r=e.length-1,n=[],a,i=o===2?"<svg>":"",l=He;for(let d=0;d<r;d++){let p=e[d],f,y,h=-1,m=0;for(;m<p.length&&(l.lastIndex=m,y=l.exec(p),y!==null);)m=l.lastIndex,l===He?y[1]==="!--"?l=Ea:y[1]!==void 0?l=Na:y[2]!==void 0?(Ta.test(y[2])&&(a=RegExp("</"+y[2],"g")),l=ie):y[3]!==void 0&&(l=ie):l===ie?y[0]===">"?(l=a??He,h=-1):y[1]===void 0?h=-2:(h=l.lastIndex-y[2].length,f=y[1],l=y[3]===void 0?ie:y[3]==='"'?Ra:Aa):l===Ra||l===Aa?l=ie:l===Ea||l===Na?l=He:(l=ie,a=void 0);let b=l===ie&&e[d+1].startsWith("/>")?" ":"";i+=l===He?p+Fc:h>=0?(n.push(f),p.slice(0,h)+Ia+p.slice(h)+jt+b):p+jt+(h===-2?d:b)}return[Wa(e,i+(e[r]||"<?>")+(o===2?"</svg>":"")),n]},je=class e{constructor({strings:o,_$litType$:r},n){let a;this.parts=[];let i=0,l=0,d=o.length-1,p=this.parts,[f,y]=Kc(o,r);if(this.el=e.createElement(f,n),ce.currentNode=this.el.content,r===2){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(a=ce.nextNode())!==null&&p.length<d;){if(a.nodeType===1){if(a.hasAttributes())for(let h of a.getAttributeNames())if(h.endsWith(Ia)){let m=y[l++],b=a.getAttribute(h).split(jt),g=/([.?@])?(.*)/.exec(m);p.push({type:1,index:i,name:g[2],strings:b,ctor:g[1]==="."?
|
|
486
|
-
<${
|
|
483
|
+
`}contentAvailableCallback(o){super.contentAvailableCallback(o),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(o){var r,n;super.update(o),o.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var o,r;let n=(o=this.shadowRoot)===null||o===void 0?void 0:o.host.parentElement;n&&this.setupFor((r=this.target)!==null&&r!==void 0?r:n)}setupFor(o){if(this.setupDebouncer.cancel(),this.target===o)return;this.onDisconnect&&this.onDisconnect(),this.target=o,o.setAttribute("data-is-ft-ripple-target","true");let r=(...d)=>p=>{d.forEach(f=>window.addEventListener(f,this.endPress,{once:!0})),this.startPress(p)},n=r("mouseup","contextmenu"),a=r("touchend","touchcancel"),i=d=>{["Enter"," "].includes(d.key)&&r("keyup")(d)},l={passive:!0};o.addEventListener("mouseover",this.startHover,l),o.addEventListener("mousemove",this.moveRipple,l),o.addEventListener("mouseleave",this.endHover,l),o.addEventListener("mousedown",n,l),o.addEventListener("touchstart",a,l),o.addEventListener("touchmove",this.moveRipple,l),o.addEventListener("keydown",i,l),o.addEventListener("focus",this.startFocus,l),o.addEventListener("blur",this.endFocus,l),o.addEventListener("focusin",this.startFocus,l),o.addEventListener("focusout",this.endFocus,l),this.onDisconnect=()=>{o.removeAttribute("data-is-ft-ripple-target"),o.removeEventListener("mouseover",this.startHover,l),o.removeEventListener("mousemove",this.moveRipple,l),o.removeEventListener("mouseleave",this.endHover,l),o.removeEventListener("mousedown",n,l),o.removeEventListener("touchstart",a,l),o.removeEventListener("touchmove",this.moveRipple,l),o.removeEventListener("keydown",i,l),o.removeEventListener("focus",this.startFocus,l),o.removeEventListener("blur",this.endFocus,l),o.removeEventListener("focusin",this.startFocus,l),o.removeEventListener("focusout",this.endFocus,l),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(o){let r=o,n=o,a,i;return r.x!=null?{x:a,y:i}=r:n.touches!=null&&(a=n.touches[0].clientX,i=n.touches[0].clientY),{x:a,y:i}}isFocusVisible(o){return o instanceof HTMLElement?o.matches(":focus-visible"):!0}isIgnored(o){if(this.disabled)return!0;if(o!=null)for(let r of o.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};M.elementDefinitions={};M.styles=Nn;it([(0,X.property)({type:Boolean})],M.prototype,"primary",void 0);it([(0,X.property)({type:Boolean})],M.prototype,"secondary",void 0);it([(0,X.property)({type:Boolean})],M.prototype,"unbounded",void 0);it([(0,X.property)({type:Boolean})],M.prototype,"activated",void 0);it([(0,X.property)({type:Boolean})],M.prototype,"selected",void 0);it([(0,X.property)({type:Boolean})],M.prototype,"disabled",void 0);it([(0,X.state)()],M.prototype,"hovered",void 0);it([(0,X.state)()],M.prototype,"focused",void 0);it([(0,X.state)()],M.prototype,"pressed",void 0);it([(0,X.state)()],M.prototype,"rippling",void 0);it([(0,X.state)()],M.prototype,"originX",void 0);it([(0,X.state)()],M.prototype,"originY",void 0);it([(0,X.query)(".ft-ripple")],M.prototype,"ripple",void 0);it([(0,X.query)(".ft-ripple--effect")],M.prototype,"rippleEffect",void 0);(0,Ca.customElement)("ft-ripple")(M);var mi=S(P());var hi=S(B()),F=S(K()),Xe=S(P());var Ga=S(P());var hr=globalThis,bo=hr.trustedTypes,wa=bo?bo.createPolicy("lit-html",{createHTML:e=>e}):void 0,Ia="$lit$",jt=`lit$${(Math.random()+"").slice(9)}$`,Pa="?"+jt,Fc=`<${Pa}>`,le=document,xo=()=>le.createComment(""),Ge=e=>e===null||typeof e!="object"&&typeof e!="function",ka=Array.isArray,jc=e=>ka(e)||typeof e?.[Symbol.iterator]=="function",sr=`[
|
|
484
|
+
\f\r]`,He=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ea=/-->/g,Na=/>/g,ie=RegExp(`>|${sr}(?:([^\\s"'>=/]+)(${sr}*=${sr}*(?:[^
|
|
485
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Aa=/'/g,Ra=/"/g,Ta=/^(?:script|style|textarea|title)$/i,$a=e=>(o,...r)=>({_$litType$:e,strings:o,values:r}),Ba=$a(1),_a=$a(2),Fe=Symbol.for("lit-noChange"),V=Symbol.for("lit-nothing"),La=new WeakMap,ce=le.createTreeWalker(le,129);function Wa(e,o){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return wa!==void 0?wa.createHTML(o):o}var Kc=(e,o)=>{let r=e.length-1,n=[],a,i=o===2?"<svg>":"",l=He;for(let d=0;d<r;d++){let p=e[d],f,y,h=-1,m=0;for(;m<p.length&&(l.lastIndex=m,y=l.exec(p),y!==null);)m=l.lastIndex,l===He?y[1]==="!--"?l=Ea:y[1]!==void 0?l=Na:y[2]!==void 0?(Ta.test(y[2])&&(a=RegExp("</"+y[2],"g")),l=ie):y[3]!==void 0&&(l=ie):l===ie?y[0]===">"?(l=a??He,h=-1):y[1]===void 0?h=-2:(h=l.lastIndex-y[2].length,f=y[1],l=y[3]===void 0?ie:y[3]==='"'?Ra:Aa):l===Ra||l===Aa?l=ie:l===Ea||l===Na?l=He:(l=ie,a=void 0);let b=l===ie&&e[d+1].startsWith("/>")?" ":"";i+=l===He?p+Fc:h>=0?(n.push(f),p.slice(0,h)+Ia+p.slice(h)+jt+b):p+jt+(h===-2?d:b)}return[Wa(e,i+(e[r]||"<?>")+(o===2?"</svg>":"")),n]},je=class e{constructor({strings:o,_$litType$:r},n){let a;this.parts=[];let i=0,l=0,d=o.length-1,p=this.parts,[f,y]=Kc(o,r);if(this.el=e.createElement(f,n),ce.currentNode=this.el.content,r===2){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(a=ce.nextNode())!==null&&p.length<d;){if(a.nodeType===1){if(a.hasAttributes())for(let h of a.getAttributeNames())if(h.endsWith(Ia)){let m=y[l++],b=a.getAttribute(h).split(jt),g=/([.?@])?(.*)/.exec(m);p.push({type:1,index:i,name:g[2],strings:b,ctor:g[1]==="."?fr:g[1]==="?"?pr:g[1]==="@"?ur:Re}),a.removeAttribute(h)}else h.startsWith(jt)&&(p.push({type:6,index:i}),a.removeAttribute(h));if(Ta.test(a.tagName)){let h=a.textContent.split(jt),m=h.length-1;if(m>0){a.textContent=bo?bo.emptyScript:"";for(let b=0;b<m;b++)a.append(h[b],xo()),ce.nextNode(),p.push({type:2,index:++i});a.append(h[m],xo())}}}else if(a.nodeType===8)if(a.data===Pa)p.push({type:2,index:i});else{let h=-1;for(;(h=a.data.indexOf(jt,h+1))!==-1;)p.push({type:7,index:i}),h+=jt.length-1}i++}}static createElement(o,r){let n=le.createElement("template");return n.innerHTML=o,n}};function Ae(e,o,r=e,n){if(o===Fe)return o;let a=n!==void 0?r._$Co?.[n]:r._$Cl,i=Ge(o)?void 0:o._$litDirective$;return a?.constructor!==i&&(a?._$AO?.(!1),i===void 0?a=void 0:(a=new i(e),a._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=a:r._$Cl=a),a!==void 0&&(o=Ae(e,a._$AS(e,o.values),a,n)),o}var dr=class{constructor(o,r){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){let{el:{content:r},parts:n}=this._$AD,a=(o?.creationScope??le).importNode(r,!0);ce.currentNode=a;let i=ce.nextNode(),l=0,d=0,p=n[0];for(;p!==void 0;){if(l===p.index){let f;p.type===2?f=new vo(i,i.nextSibling,this,o):p.type===1?f=new p.ctor(i,p.name,p.strings,this,o):p.type===6&&(f=new yr(i,this,o)),this._$AV.push(f),p=n[++d]}l!==p?.index&&(i=ce.nextNode(),l++)}return ce.currentNode=le,a}p(o){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(o,n,r),r+=n.strings.length-2):n._$AI(o[r])),r++}},vo=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(o,r,n,a){this.type=2,this._$AH=V,this._$AN=void 0,this._$AA=o,this._$AB=r,this._$AM=n,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let o=this._$AA.parentNode,r=this._$AM;return r!==void 0&&o?.nodeType===11&&(o=r.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,r=this){o=Ae(this,o,r),Ge(o)?o===V||o==null||o===""?(this._$AH!==V&&this._$AR(),this._$AH=V):o!==this._$AH&&o!==Fe&&this._(o):o._$litType$!==void 0?this.g(o):o.nodeType!==void 0?this.$(o):jc(o)?this.T(o):this._(o)}k(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}$(o){this._$AH!==o&&(this._$AR(),this._$AH=this.k(o))}_(o){this._$AH!==V&&Ge(this._$AH)?this._$AA.nextSibling.data=o:this.$(le.createTextNode(o)),this._$AH=o}g(o){let{values:r,_$litType$:n}=o,a=typeof n=="number"?this._$AC(o):(n.el===void 0&&(n.el=je.createElement(Wa(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(r);else{let i=new dr(a,this),l=i.u(this.options);i.p(r),this.$(l),this._$AH=i}}_$AC(o){let r=La.get(o.strings);return r===void 0&&La.set(o.strings,r=new je(o)),r}T(o){ka(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,a=0;for(let i of o)a===r.length?r.push(n=new e(this.k(xo()),this.k(xo()),this,this.options)):n=r[a],n._$AI(i),a++;a<r.length&&(this._$AR(n&&n._$AB.nextSibling,a),r.length=a)}_$AR(o=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);o&&o!==this._$AB;){let n=o.nextSibling;o.remove(),o=n}}setConnected(o){this._$AM===void 0&&(this._$Cv=o,this._$AP?.(o))}},Re=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,r,n,a,i){this.type=1,this._$AH=V,this._$AN=void 0,this.element=o,this.name=r,this._$AM=a,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=V}_$AI(o,r=this,n,a){let i=this.strings,l=!1;if(i===void 0)o=Ae(this,o,r,0),l=!Ge(o)||o!==this._$AH&&o!==Fe,l&&(this._$AH=o);else{let d=o,p,f;for(o=i[0],p=0;p<i.length-1;p++)f=Ae(this,d[n+p],r,p),f===Fe&&(f=this._$AH[p]),l||=!Ge(f)||f!==this._$AH[p],f===V?o=V:o!==V&&(o+=(f??"")+i[p+1]),this._$AH[p]=f}l&&!a&&this.O(o)}O(o){o===V?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o??"")}},fr=class extends Re{constructor(){super(...arguments),this.type=3}O(o){this.element[this.name]=o===V?void 0:o}},pr=class extends Re{constructor(){super(...arguments),this.type=4}O(o){this.element.toggleAttribute(this.name,!!o&&o!==V)}},ur=class extends Re{constructor(o,r,n,a,i){super(o,r,n,a,i),this.type=5}_$AI(o,r=this){if((o=Ae(this,o,r,0)??V)===Fe)return;let n=this._$AH,a=o===V&&n!==V||o.capture!==n.capture||o.once!==n.once||o.passive!==n.passive,i=o!==V&&(n===V||a);a&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,o):this._$AH.handleEvent(o)}},yr=class{constructor(o,r,n){this.element=o,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(o){Ae(this,o)}};var Zc=hr.litHtmlPolyfillSupport;Zc?.(je,vo),(hr.litHtmlVersions??=[]).push("3.1.0");var za=Symbol.for(""),Vc=e=>{if(e?.r===za)return e?._$litStatic$},mr=e=>({_$litStatic$:e,r:za});var Da=new Map,Ma=e=>(o,...r)=>{let n=r.length,a,i,l=[],d=[],p,f=0,y=!1;for(;f<n;){for(p=o[f];f<n&&(i=r[f],(a=Vc(i))!==void 0);)p+=a+o[++f],y=!0;f!==n&&d.push(i),l.push(p),f++}if(f===n&&l.push(o[n]),y){let h=l.join("$$lit$$");(o=Da.get(h))===void 0&&(l.raw=l,Da.set(h,o=l)),r=d}return e(o,...r)},gr=Ma(Ba),$u=Ma(_a);var br=S(K()),Ha=S(P());var vt;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button",e.display="display",e.title1="title-1",e.title2="title-2",e.title3="title-3",e.body1regular="body-1-regular",e.body1medium="body-1-medium",e.body1semibold="body-1-semibold",e.body2regular="body-2-regular",e.body2medium="body-2-medium",e.body2semibold="body-2-semibold",e.label1medium="label-1-medium",e.label1semibold="label-1-semibold",e.label1bold="label-1-bold",e.label2medium="label-2-medium",e.label2semibold="label-2-semibold",e.label2bold="label-2-bold",e.caption1medium="caption-1-medium",e.caption1semibold="caption-1-semibold",e.caption1bold="caption-1-bold",e.caption2medium="caption-2-medium",e.caption2semibold="caption-2-semibold",e.caption2bold="caption-2-bold"})(vt||(vt={}));var Ua=function(e,o,r,n){var a=arguments.length,i=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(i=(a<3?l(i):a>3?l(o,r,i):l(o,r))||i);return a>3&&i&&Object.defineProperty(o,r,i),i},rt=class extends Ha.FtLitElement{constructor(){super(...arguments),this.variant=vt.body1}render(){return this.element?gr`
|
|
486
|
+
<${mr(this.element)}
|
|
487
487
|
part="text"
|
|
488
488
|
class="ft-typography ft-typography--${this.variant}">
|
|
489
489
|
<slot></slot>
|
|
490
|
-
</${
|
|
491
|
-
`:
|
|
490
|
+
</${mr(this.element)}>
|
|
491
|
+
`:gr`
|
|
492
492
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
493
|
-
`}};rt.styles=[ta,ea,oa,ra,na,aa,ia,ca,la,sa,da,...fa];Ua([(0,
|
|
493
|
+
`}};rt.styles=[ta,ea,oa,ra,na,aa,ia,ca,la,sa,da,...fa];Ua([(0,br.property)()],rt.prototype,"element",void 0);Ua([(0,br.property)()],rt.prototype,"variant",void 0);(0,Ga.customElement)("ft-typography")(rt);var Fa=S(B()),Bt=S(P()),Le={distance:Bt.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Bt.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Bt.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:Bt.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:Bt.FtCssVariableFactory.external(Bt.designSystemVariables.borderRadiusS,"Design system"),maxWidth:Bt.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},ja=Fa.css`
|
|
494
494
|
.ft-tooltip--container {
|
|
495
495
|
display: block;
|
|
496
496
|
}
|
|
@@ -519,7 +519,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
519
519
|
position: relative;
|
|
520
520
|
word-break: break-word;
|
|
521
521
|
}
|
|
522
|
-
`;var Za=["top","right","bottom","left"],Ka=["start","end"],xr=Za.reduce((e,o)=>e.concat(o,o+"-"+Ka[0],o+"-"+Ka[1]),[]),Ke=Math.min,Kt=Math.max,Ze=Math.round;var _t=e=>({x:e,y:e}),qc={left:"right",right:"left",bottom:"top",top:"bottom"},Yc={start:"end",end:"start"};function vr(e,o,r){return Kt(e,Ke(o,r))}function So(e,o){return typeof e=="function"?e(o):e}function Ie(e){return e.split("-")[0]}function Zt(e){return e.split("-")[1]}function Sr(e){return e==="x"?"y":"x"}function Or(e){return e==="y"?"height":"width"}function Oo(e){return["top","bottom"].includes(Ie(e))?"y":"x"}function Cr(e){return Sr(Oo(e))}function Va(e,o,r){r===void 0&&(r=!1);let n=Zt(e),a=Cr(e),i=Or(a),l=a==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return o.reference[i]>o.floating[i]&&(l=br(l)),[l,br(l)]}function qa(e){return e.replace(/start|end/g,o=>Yc[o])}function br(e){return e.replace(/left|right|bottom|top/g,o=>qc[o])}function Xc(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ya(e){return typeof e!="number"?Xc(e):{top:e,right:e,bottom:e,left:e}}function se(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Xa(e,o,r){let{reference:n,floating:a}=e,i=Oo(o),l=Cr(o),d=Or(l),p=Ie(o),f=i==="y",y=n.x+n.width/2-a.width/2,h=n.y+n.height/2-a.height/2,m=n[d]/2-a[d]/2,b;switch(p){case"top":b={x:y,y:n.y-a.height};break;case"bottom":b={x:y,y:n.y+n.height};break;case"right":b={x:n.x+n.width,y:h};break;case"left":b={x:n.x-a.width,y:h};break;default:b={x:n.x,y:n.y}}switch(Zt(o)){case"start":b[l]-=m*(r&&f?-1:1);break;case"end":b[l]+=m*(r&&f?-1:1);break}return b}var Ja=async(e,o,r)=>{let{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:l}=r,d=i.filter(Boolean),p=await(l.isRTL==null?void 0:l.isRTL(o)),f=await l.getElementRects({reference:e,floating:o,strategy:a}),{x:y,y:h}=Xa(f,n,p),m=n,b={},g=0;for(let v=0;v<d.length;v++){let{name:R,fn:E}=d[v],{x:N,y:I,data:T,reset:$}=await E({x:y,y:h,initialPlacement:n,placement:m,strategy:a,middlewareData:b,rects:f,platform:l,elements:{reference:e,floating:o}});if(y=N??y,h=I??h,b={...b,[R]:{...b[R],...T}},$&&g<=50){g++,typeof $=="object"&&($.placement&&(m=$.placement),$.rects&&(f=$.rects===!0?await l.getElementRects({reference:e,floating:o,strategy:a}):$.rects),{x:y,y:h}=Xa(f,m,p)),v=-1;continue}}return{x:y,y:h,placement:m,strategy:a,middlewareData:b}};async function wr(e,o){var r;o===void 0&&(o={});let{x:n,y:a,platform:i,rects:l,elements:d,strategy:p}=e,{boundary:f="clippingAncestors",rootBoundary:y="viewport",elementContext:h="floating",altBoundary:m=!1,padding:b=0}=So(o,e),g=Ya(b),R=d[m?h==="floating"?"reference":"floating":h],E=se(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(R)))==null||r?R:R.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(d.floating)),boundary:f,rootBoundary:y,strategy:p})),N=h==="floating"?{...l.floating,x:n,y:a}:l.reference,I=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d.floating)),T=await(i.isElement==null?void 0:i.isElement(I))?await(i.getScale==null?void 0:i.getScale(I))||{x:1,y:1}:{x:1,y:1},$=se(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:N,offsetParent:I,strategy:p}):N);return{top:(E.top-$.top+g.top)/T.y,bottom:($.bottom-E.bottom+g.bottom)/T.y,left:(E.left-$.left+g.left)/T.x,right:($.right-E.right+g.right)/T.x}}function Jc(e,o,r){return(e?[...r.filter(a=>Zt(a)===e),...r.filter(a=>Zt(a)!==e)]:r.filter(a=>Ie(a)===a)).filter(a=>e?Zt(a)===e||(o?qa(a)!==a:!1):!0)}var Er=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(o){var r,n,a;let{rects:i,middlewareData:l,placement:d,platform:p,elements:f}=o,{crossAxis:y=!1,alignment:h,allowedPlacements:m=xr,autoAlignment:b=!0,...g}=So(e,o),v=h!==void 0||m===xr?Jc(h||null,b,m):m,R=await wr(o,g),E=((r=l.autoPlacement)==null?void 0:r.index)||0,N=v[E];if(N==null)return{};let I=Va(N,i,await(p.isRTL==null?void 0:p.isRTL(f.floating)));if(d!==N)return{reset:{placement:v[0]}};let T=[R[Ie(N)],R[I[0]],R[I[1]]],$=[...((n=l.autoPlacement)==null?void 0:n.overflows)||[],{placement:N,overflows:T}],gt=v[E+1];if(gt)return{data:{index:E+1,overflows:$},reset:{placement:gt}};let Ht=$.map(pt=>{let bt=Zt(pt.placement);return[pt.placement,bt&&y?pt.overflows.slice(0,2).reduce((ut,ae)=>ut+ae,0):pt.overflows[0],pt.overflows]}).sort((pt,bt)=>pt[1]-bt[1]),Gt=((a=Ht.filter(pt=>pt[2].slice(0,Zt(pt[0])?2:3).every(bt=>bt<=0))[0])==null?void 0:a[0])||Ht[0][0];return Gt!==d?{data:{index:E+1,overflows:$},reset:{placement:Gt}}:{}}}};var Nr=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(o){let{x:r,y:n,placement:a}=o,{mainAxis:i=!0,crossAxis:l=!1,limiter:d={fn:R=>{let{x:E,y:N}=R;return{x:E,y:N}}},...p}=So(e,o),f={x:r,y:n},y=await wr(o,p),h=Oo(Ie(a)),m=Sr(h),b=f[m],g=f[h];if(i){let R=m==="y"?"top":"left",E=m==="y"?"bottom":"right",N=b+y[R],I=b-y[E];b=vr(N,b,I)}if(l){let R=h==="y"?"top":"left",E=h==="y"?"bottom":"right",N=g+y[R],I=g-y[E];g=vr(N,g,I)}let v=d.fn({...o,[m]:b,[h]:g});return{...v,data:{x:v.x-r,y:v.y-n}}}}};function Wt(e){return ti(e)?(e.nodeName||"").toLowerCase():"#document"}function ct(e){var o;return(e==null||(o=e.ownerDocument)==null?void 0:o.defaultView)||window}function Dt(e){var o;return(o=(ti(e)?e.ownerDocument:e.document)||window.document)==null?void 0:o.documentElement}function ti(e){return e instanceof Node||e instanceof ct(e).Node}function Lt(e){return e instanceof Element||e instanceof ct(e).Element}function Ot(e){return e instanceof HTMLElement||e instanceof ct(e).HTMLElement}function Qa(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ct(e).ShadowRoot}function Pe(e){let{overflow:o,overflowX:r,overflowY:n,display:a}=yt(e);return/auto|scroll|overlay|hidden|clip/.test(o+n+r)&&!["inline","contents"].includes(a)}function ei(e){return["table","td","th"].includes(Wt(e))}function wo(e){let o=Eo(),r=yt(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!o&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!o&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function oi(e){let o=de(e);for(;Ot(o)&&!Ve(o);){if(wo(o))return o;o=de(o)}return null}function Eo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ve(e){return["html","body","#document"].includes(Wt(e))}function yt(e){return ct(e).getComputedStyle(e)}function qe(e){return Lt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function de(e){if(Wt(e)==="html")return e;let o=e.assignedSlot||e.parentNode||Qa(e)&&e.host||Dt(e);return Qa(o)?o.host:o}function ri(e){let o=de(e);return Ve(o)?e.ownerDocument?e.ownerDocument.body:e.body:Ot(o)&&Pe(o)?o:ri(o)}function Co(e,o,r){var n;o===void 0&&(o=[]),r===void 0&&(r=!0);let a=ri(e),i=a===((n=e.ownerDocument)==null?void 0:n.body),l=ct(a);return i?o.concat(l,l.visualViewport||[],Pe(a)?a:[],l.frameElement&&r?Co(l.frameElement):[]):o.concat(a,Co(a,[],r))}function ii(e){let o=yt(e),r=parseFloat(o.width)||0,n=parseFloat(o.height)||0,a=Ot(e),i=a?e.offsetWidth:r,l=a?e.offsetHeight:n,d=Ze(r)!==i||Ze(n)!==l;return d&&(r=i,n=l),{width:r,height:n,$:d}}function ci(e){return Lt(e)?e:e.contextElement}function ke(e){let o=ci(e);if(!Ot(o))return _t(1);let r=o.getBoundingClientRect(),{width:n,height:a,$:i}=ii(o),l=(i?Ze(r.width):r.width)/n,d=(i?Ze(r.height):r.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!d||!Number.isFinite(d))&&(d=1),{x:l,y:d}}var el=_t(0);function li(e){let o=ct(e);return!Eo()||!o.visualViewport?el:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function ol(e,o,r){return o===void 0&&(o=!1),!r||o&&r!==ct(e)?!1:o}function Ye(e,o,r,n){o===void 0&&(o=!1),r===void 0&&(r=!1);let a=e.getBoundingClientRect(),i=ci(e),l=_t(1);o&&(n?Lt(n)&&(l=ke(n)):l=ke(e));let d=ol(i,r,n)?li(i):_t(0),p=(a.left+d.x)/l.x,f=(a.top+d.y)/l.y,y=a.width/l.x,h=a.height/l.y;if(i){let m=ct(i),b=n&&Lt(n)?ct(n):n,g=m.frameElement;for(;g&&n&&b!==m;){let v=ke(g),R=g.getBoundingClientRect(),E=yt(g),N=R.left+(g.clientLeft+parseFloat(E.paddingLeft))*v.x,I=R.top+(g.clientTop+parseFloat(E.paddingTop))*v.y;p*=v.x,f*=v.y,y*=v.x,h*=v.y,p+=N,f+=I,g=ct(g).frameElement}}return se({width:y,height:h,x:p,y:f})}function rl(e){let{rect:o,offsetParent:r,strategy:n}=e,a=Ot(r),i=Dt(r);if(r===i)return o;let l={scrollLeft:0,scrollTop:0},d=_t(1),p=_t(0);if((a||!a&&n!=="fixed")&&((Wt(r)!=="body"||Pe(i))&&(l=qe(r)),Ot(r))){let f=Ye(r);d=ke(r),p.x=f.x+r.clientLeft,p.y=f.y+r.clientTop}return{width:o.width*d.x,height:o.height*d.y,x:o.x*d.x-l.scrollLeft*d.x+p.x,y:o.y*d.y-l.scrollTop*d.y+p.y}}function nl(e){return Array.from(e.getClientRects())}function si(e){return Ye(Dt(e)).left+qe(e).scrollLeft}function al(e){let o=Dt(e),r=qe(e),n=e.ownerDocument.body,a=Kt(o.scrollWidth,o.clientWidth,n.scrollWidth,n.clientWidth),i=Kt(o.scrollHeight,o.clientHeight,n.scrollHeight,n.clientHeight),l=-r.scrollLeft+si(e),d=-r.scrollTop;return yt(n).direction==="rtl"&&(l+=Kt(o.clientWidth,n.clientWidth)-a),{width:a,height:i,x:l,y:d}}function il(e,o){let r=ct(e),n=Dt(e),a=r.visualViewport,i=n.clientWidth,l=n.clientHeight,d=0,p=0;if(a){i=a.width,l=a.height;let f=Eo();(!f||f&&o==="fixed")&&(d=a.offsetLeft,p=a.offsetTop)}return{width:i,height:l,x:d,y:p}}function cl(e,o){let r=Ye(e,!0,o==="fixed"),n=r.top+e.clientTop,a=r.left+e.clientLeft,i=Ot(e)?ke(e):_t(1),l=e.clientWidth*i.x,d=e.clientHeight*i.y,p=a*i.x,f=n*i.y;return{width:l,height:d,x:p,y:f}}function ni(e,o,r){let n;if(o==="viewport")n=il(e,r);else if(o==="document")n=al(Dt(e));else if(Lt(o))n=cl(o,r);else{let a=li(e);n={...o,x:o.x-a.x,y:o.y-a.y}}return se(n)}function di(e,o){let r=de(e);return r===o||!Lt(r)||Ve(r)?!1:yt(r).position==="fixed"||di(r,o)}function ll(e,o){let r=o.get(e);if(r)return r;let n=Co(e,[],!1).filter(d=>Lt(d)&&Wt(d)!=="body"),a=null,i=yt(e).position==="fixed",l=i?de(e):e;for(;Lt(l)&&!Ve(l);){let d=yt(l),p=wo(l);!p&&d.position==="fixed"&&(a=null),(i?!p&&!a:!p&&d.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Pe(l)&&!p&&di(e,l))?n=n.filter(y=>y!==l):a=d,l=de(l)}return o.set(e,n),n}function sl(e){let{element:o,boundary:r,rootBoundary:n,strategy:a}=e,l=[...r==="clippingAncestors"?ll(o,this._c):[].concat(r),n],d=l[0],p=l.reduce((f,y)=>{let h=ni(o,y,a);return f.top=Kt(h.top,f.top),f.right=Ke(h.right,f.right),f.bottom=Ke(h.bottom,f.bottom),f.left=Kt(h.left,f.left),f},ni(o,d,a));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function dl(e){return ii(e)}function fl(e,o,r){let n=Ot(o),a=Dt(o),i=r==="fixed",l=Ye(e,!0,i,o),d={scrollLeft:0,scrollTop:0},p=_t(0);if(n||!n&&!i)if((Wt(o)!=="body"||Pe(a))&&(d=qe(o)),n){let f=Ye(o,!0,i,o);p.x=f.x+o.clientLeft,p.y=f.y+o.clientTop}else a&&(p.x=si(a));return{x:l.left+d.scrollLeft-p.x,y:l.top+d.scrollTop-p.y,width:l.width,height:l.height}}function ai(e,o){return!Ot(e)||yt(e).position==="fixed"?null:o?o(e):e.offsetParent}function fi(e,o){let r=ct(e);if(!Ot(e))return r;let n=ai(e,o);for(;n&&ei(n)&&yt(n).position==="static";)n=ai(n,o);return n&&(Wt(n)==="html"||Wt(n)==="body"&&yt(n).position==="static"&&!wo(n))?r:n||oi(e)||r}var pl=async function(e){let{reference:o,floating:r,strategy:n}=e,a=this.getOffsetParent||fi,i=this.getDimensions;return{reference:fl(o,await a(r),n),floating:{x:0,y:0,...await i(r)}}};function ul(e){return yt(e).direction==="rtl"}var No={convertOffsetParentRelativeRectToViewportRelativeRect:rl,getDocumentElement:Dt,getClippingRect:sl,getOffsetParent:fi,getElementRects:pl,getClientRects:nl,getDimensions:dl,getScale:ke,isElement:Lt,isRTL:ul};var pi=(e,o,r)=>{let n=new Map,a={platform:No,...r},i={...a.platform,_c:n};return Ja(e,o,{...a,platform:i})};function ui(e){return yl(e)}function Ar(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function yl(e){for(let o=e;o;o=Ar(o))if(o instanceof Element&&getComputedStyle(o).display==="none")return null;for(let o=Ar(e);o;o=Ar(o)){if(!(o instanceof Element))continue;let r=getComputedStyle(o);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||o.tagName==="BODY"))return o}return null}async function yi(e,o,r){return pi(e,o,{platform:{...No,getOffsetParent:n=>No.getOffsetParent(n,ui)},middleware:[Nr({crossAxis:!0}),Er({allowedPlacements:[r]})]})}var lt=function(e,o,r,n){var a=arguments.length,i=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(i=(a<3?l(i):a>3?l(o,r,i):l(o,r))||i);return a>3&&i&&Object.defineProperty(o,r,i),i},U=class extends Xe.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new Xe.Debouncer,this.revealDebouncer=new Xe.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return hi.html`
|
|
522
|
+
`;var Za=["top","right","bottom","left"],Ka=["start","end"],vr=Za.reduce((e,o)=>e.concat(o,o+"-"+Ka[0],o+"-"+Ka[1]),[]),Ke=Math.min,Kt=Math.max,Ze=Math.round;var _t=e=>({x:e,y:e}),qc={left:"right",right:"left",bottom:"top",top:"bottom"},Yc={start:"end",end:"start"};function Sr(e,o,r){return Kt(e,Ke(o,r))}function So(e,o){return typeof e=="function"?e(o):e}function Ie(e){return e.split("-")[0]}function Zt(e){return e.split("-")[1]}function Or(e){return e==="x"?"y":"x"}function Cr(e){return e==="y"?"height":"width"}function Oo(e){return["top","bottom"].includes(Ie(e))?"y":"x"}function wr(e){return Or(Oo(e))}function Va(e,o,r){r===void 0&&(r=!1);let n=Zt(e),a=wr(e),i=Cr(a),l=a==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return o.reference[i]>o.floating[i]&&(l=xr(l)),[l,xr(l)]}function qa(e){return e.replace(/start|end/g,o=>Yc[o])}function xr(e){return e.replace(/left|right|bottom|top/g,o=>qc[o])}function Xc(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ya(e){return typeof e!="number"?Xc(e):{top:e,right:e,bottom:e,left:e}}function se(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Xa(e,o,r){let{reference:n,floating:a}=e,i=Oo(o),l=wr(o),d=Cr(l),p=Ie(o),f=i==="y",y=n.x+n.width/2-a.width/2,h=n.y+n.height/2-a.height/2,m=n[d]/2-a[d]/2,b;switch(p){case"top":b={x:y,y:n.y-a.height};break;case"bottom":b={x:y,y:n.y+n.height};break;case"right":b={x:n.x+n.width,y:h};break;case"left":b={x:n.x-a.width,y:h};break;default:b={x:n.x,y:n.y}}switch(Zt(o)){case"start":b[l]-=m*(r&&f?-1:1);break;case"end":b[l]+=m*(r&&f?-1:1);break}return b}var Ja=async(e,o,r)=>{let{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:l}=r,d=i.filter(Boolean),p=await(l.isRTL==null?void 0:l.isRTL(o)),f=await l.getElementRects({reference:e,floating:o,strategy:a}),{x:y,y:h}=Xa(f,n,p),m=n,b={},g=0;for(let v=0;v<d.length;v++){let{name:R,fn:E}=d[v],{x:N,y:I,data:T,reset:$}=await E({x:y,y:h,initialPlacement:n,placement:m,strategy:a,middlewareData:b,rects:f,platform:l,elements:{reference:e,floating:o}});if(y=N??y,h=I??h,b={...b,[R]:{...b[R],...T}},$&&g<=50){g++,typeof $=="object"&&($.placement&&(m=$.placement),$.rects&&(f=$.rects===!0?await l.getElementRects({reference:e,floating:o,strategy:a}):$.rects),{x:y,y:h}=Xa(f,m,p)),v=-1;continue}}return{x:y,y:h,placement:m,strategy:a,middlewareData:b}};async function Er(e,o){var r;o===void 0&&(o={});let{x:n,y:a,platform:i,rects:l,elements:d,strategy:p}=e,{boundary:f="clippingAncestors",rootBoundary:y="viewport",elementContext:h="floating",altBoundary:m=!1,padding:b=0}=So(o,e),g=Ya(b),R=d[m?h==="floating"?"reference":"floating":h],E=se(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(R)))==null||r?R:R.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(d.floating)),boundary:f,rootBoundary:y,strategy:p})),N=h==="floating"?{...l.floating,x:n,y:a}:l.reference,I=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d.floating)),T=await(i.isElement==null?void 0:i.isElement(I))?await(i.getScale==null?void 0:i.getScale(I))||{x:1,y:1}:{x:1,y:1},$=se(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:N,offsetParent:I,strategy:p}):N);return{top:(E.top-$.top+g.top)/T.y,bottom:($.bottom-E.bottom+g.bottom)/T.y,left:(E.left-$.left+g.left)/T.x,right:($.right-E.right+g.right)/T.x}}function Jc(e,o,r){return(e?[...r.filter(a=>Zt(a)===e),...r.filter(a=>Zt(a)!==e)]:r.filter(a=>Ie(a)===a)).filter(a=>e?Zt(a)===e||(o?qa(a)!==a:!1):!0)}var Nr=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(o){var r,n,a;let{rects:i,middlewareData:l,placement:d,platform:p,elements:f}=o,{crossAxis:y=!1,alignment:h,allowedPlacements:m=vr,autoAlignment:b=!0,...g}=So(e,o),v=h!==void 0||m===vr?Jc(h||null,b,m):m,R=await Er(o,g),E=((r=l.autoPlacement)==null?void 0:r.index)||0,N=v[E];if(N==null)return{};let I=Va(N,i,await(p.isRTL==null?void 0:p.isRTL(f.floating)));if(d!==N)return{reset:{placement:v[0]}};let T=[R[Ie(N)],R[I[0]],R[I[1]]],$=[...((n=l.autoPlacement)==null?void 0:n.overflows)||[],{placement:N,overflows:T}],gt=v[E+1];if(gt)return{data:{index:E+1,overflows:$},reset:{placement:gt}};let Ht=$.map(pt=>{let bt=Zt(pt.placement);return[pt.placement,bt&&y?pt.overflows.slice(0,2).reduce((ut,ae)=>ut+ae,0):pt.overflows[0],pt.overflows]}).sort((pt,bt)=>pt[1]-bt[1]),Gt=((a=Ht.filter(pt=>pt[2].slice(0,Zt(pt[0])?2:3).every(bt=>bt<=0))[0])==null?void 0:a[0])||Ht[0][0];return Gt!==d?{data:{index:E+1,overflows:$},reset:{placement:Gt}}:{}}}};var Ar=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(o){let{x:r,y:n,placement:a}=o,{mainAxis:i=!0,crossAxis:l=!1,limiter:d={fn:R=>{let{x:E,y:N}=R;return{x:E,y:N}}},...p}=So(e,o),f={x:r,y:n},y=await Er(o,p),h=Oo(Ie(a)),m=Or(h),b=f[m],g=f[h];if(i){let R=m==="y"?"top":"left",E=m==="y"?"bottom":"right",N=b+y[R],I=b-y[E];b=Sr(N,b,I)}if(l){let R=h==="y"?"top":"left",E=h==="y"?"bottom":"right",N=g+y[R],I=g-y[E];g=Sr(N,g,I)}let v=d.fn({...o,[m]:b,[h]:g});return{...v,data:{x:v.x-r,y:v.y-n}}}}};function Wt(e){return ti(e)?(e.nodeName||"").toLowerCase():"#document"}function ct(e){var o;return(e==null||(o=e.ownerDocument)==null?void 0:o.defaultView)||window}function Dt(e){var o;return(o=(ti(e)?e.ownerDocument:e.document)||window.document)==null?void 0:o.documentElement}function ti(e){return e instanceof Node||e instanceof ct(e).Node}function Lt(e){return e instanceof Element||e instanceof ct(e).Element}function Ot(e){return e instanceof HTMLElement||e instanceof ct(e).HTMLElement}function Qa(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ct(e).ShadowRoot}function Pe(e){let{overflow:o,overflowX:r,overflowY:n,display:a}=yt(e);return/auto|scroll|overlay|hidden|clip/.test(o+n+r)&&!["inline","contents"].includes(a)}function ei(e){return["table","td","th"].includes(Wt(e))}function wo(e){let o=Eo(),r=yt(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!o&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!o&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function oi(e){let o=de(e);for(;Ot(o)&&!Ve(o);){if(wo(o))return o;o=de(o)}return null}function Eo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ve(e){return["html","body","#document"].includes(Wt(e))}function yt(e){return ct(e).getComputedStyle(e)}function qe(e){return Lt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function de(e){if(Wt(e)==="html")return e;let o=e.assignedSlot||e.parentNode||Qa(e)&&e.host||Dt(e);return Qa(o)?o.host:o}function ri(e){let o=de(e);return Ve(o)?e.ownerDocument?e.ownerDocument.body:e.body:Ot(o)&&Pe(o)?o:ri(o)}function Co(e,o,r){var n;o===void 0&&(o=[]),r===void 0&&(r=!0);let a=ri(e),i=a===((n=e.ownerDocument)==null?void 0:n.body),l=ct(a);return i?o.concat(l,l.visualViewport||[],Pe(a)?a:[],l.frameElement&&r?Co(l.frameElement):[]):o.concat(a,Co(a,[],r))}function ii(e){let o=yt(e),r=parseFloat(o.width)||0,n=parseFloat(o.height)||0,a=Ot(e),i=a?e.offsetWidth:r,l=a?e.offsetHeight:n,d=Ze(r)!==i||Ze(n)!==l;return d&&(r=i,n=l),{width:r,height:n,$:d}}function ci(e){return Lt(e)?e:e.contextElement}function ke(e){let o=ci(e);if(!Ot(o))return _t(1);let r=o.getBoundingClientRect(),{width:n,height:a,$:i}=ii(o),l=(i?Ze(r.width):r.width)/n,d=(i?Ze(r.height):r.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!d||!Number.isFinite(d))&&(d=1),{x:l,y:d}}var el=_t(0);function li(e){let o=ct(e);return!Eo()||!o.visualViewport?el:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function ol(e,o,r){return o===void 0&&(o=!1),!r||o&&r!==ct(e)?!1:o}function Ye(e,o,r,n){o===void 0&&(o=!1),r===void 0&&(r=!1);let a=e.getBoundingClientRect(),i=ci(e),l=_t(1);o&&(n?Lt(n)&&(l=ke(n)):l=ke(e));let d=ol(i,r,n)?li(i):_t(0),p=(a.left+d.x)/l.x,f=(a.top+d.y)/l.y,y=a.width/l.x,h=a.height/l.y;if(i){let m=ct(i),b=n&&Lt(n)?ct(n):n,g=m.frameElement;for(;g&&n&&b!==m;){let v=ke(g),R=g.getBoundingClientRect(),E=yt(g),N=R.left+(g.clientLeft+parseFloat(E.paddingLeft))*v.x,I=R.top+(g.clientTop+parseFloat(E.paddingTop))*v.y;p*=v.x,f*=v.y,y*=v.x,h*=v.y,p+=N,f+=I,g=ct(g).frameElement}}return se({width:y,height:h,x:p,y:f})}function rl(e){let{rect:o,offsetParent:r,strategy:n}=e,a=Ot(r),i=Dt(r);if(r===i)return o;let l={scrollLeft:0,scrollTop:0},d=_t(1),p=_t(0);if((a||!a&&n!=="fixed")&&((Wt(r)!=="body"||Pe(i))&&(l=qe(r)),Ot(r))){let f=Ye(r);d=ke(r),p.x=f.x+r.clientLeft,p.y=f.y+r.clientTop}return{width:o.width*d.x,height:o.height*d.y,x:o.x*d.x-l.scrollLeft*d.x+p.x,y:o.y*d.y-l.scrollTop*d.y+p.y}}function nl(e){return Array.from(e.getClientRects())}function si(e){return Ye(Dt(e)).left+qe(e).scrollLeft}function al(e){let o=Dt(e),r=qe(e),n=e.ownerDocument.body,a=Kt(o.scrollWidth,o.clientWidth,n.scrollWidth,n.clientWidth),i=Kt(o.scrollHeight,o.clientHeight,n.scrollHeight,n.clientHeight),l=-r.scrollLeft+si(e),d=-r.scrollTop;return yt(n).direction==="rtl"&&(l+=Kt(o.clientWidth,n.clientWidth)-a),{width:a,height:i,x:l,y:d}}function il(e,o){let r=ct(e),n=Dt(e),a=r.visualViewport,i=n.clientWidth,l=n.clientHeight,d=0,p=0;if(a){i=a.width,l=a.height;let f=Eo();(!f||f&&o==="fixed")&&(d=a.offsetLeft,p=a.offsetTop)}return{width:i,height:l,x:d,y:p}}function cl(e,o){let r=Ye(e,!0,o==="fixed"),n=r.top+e.clientTop,a=r.left+e.clientLeft,i=Ot(e)?ke(e):_t(1),l=e.clientWidth*i.x,d=e.clientHeight*i.y,p=a*i.x,f=n*i.y;return{width:l,height:d,x:p,y:f}}function ni(e,o,r){let n;if(o==="viewport")n=il(e,r);else if(o==="document")n=al(Dt(e));else if(Lt(o))n=cl(o,r);else{let a=li(e);n={...o,x:o.x-a.x,y:o.y-a.y}}return se(n)}function di(e,o){let r=de(e);return r===o||!Lt(r)||Ve(r)?!1:yt(r).position==="fixed"||di(r,o)}function ll(e,o){let r=o.get(e);if(r)return r;let n=Co(e,[],!1).filter(d=>Lt(d)&&Wt(d)!=="body"),a=null,i=yt(e).position==="fixed",l=i?de(e):e;for(;Lt(l)&&!Ve(l);){let d=yt(l),p=wo(l);!p&&d.position==="fixed"&&(a=null),(i?!p&&!a:!p&&d.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Pe(l)&&!p&&di(e,l))?n=n.filter(y=>y!==l):a=d,l=de(l)}return o.set(e,n),n}function sl(e){let{element:o,boundary:r,rootBoundary:n,strategy:a}=e,l=[...r==="clippingAncestors"?ll(o,this._c):[].concat(r),n],d=l[0],p=l.reduce((f,y)=>{let h=ni(o,y,a);return f.top=Kt(h.top,f.top),f.right=Ke(h.right,f.right),f.bottom=Ke(h.bottom,f.bottom),f.left=Kt(h.left,f.left),f},ni(o,d,a));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function dl(e){return ii(e)}function fl(e,o,r){let n=Ot(o),a=Dt(o),i=r==="fixed",l=Ye(e,!0,i,o),d={scrollLeft:0,scrollTop:0},p=_t(0);if(n||!n&&!i)if((Wt(o)!=="body"||Pe(a))&&(d=qe(o)),n){let f=Ye(o,!0,i,o);p.x=f.x+o.clientLeft,p.y=f.y+o.clientTop}else a&&(p.x=si(a));return{x:l.left+d.scrollLeft-p.x,y:l.top+d.scrollTop-p.y,width:l.width,height:l.height}}function ai(e,o){return!Ot(e)||yt(e).position==="fixed"?null:o?o(e):e.offsetParent}function fi(e,o){let r=ct(e);if(!Ot(e))return r;let n=ai(e,o);for(;n&&ei(n)&&yt(n).position==="static";)n=ai(n,o);return n&&(Wt(n)==="html"||Wt(n)==="body"&&yt(n).position==="static"&&!wo(n))?r:n||oi(e)||r}var pl=async function(e){let{reference:o,floating:r,strategy:n}=e,a=this.getOffsetParent||fi,i=this.getDimensions;return{reference:fl(o,await a(r),n),floating:{x:0,y:0,...await i(r)}}};function ul(e){return yt(e).direction==="rtl"}var No={convertOffsetParentRelativeRectToViewportRelativeRect:rl,getDocumentElement:Dt,getClippingRect:sl,getOffsetParent:fi,getElementRects:pl,getClientRects:nl,getDimensions:dl,getScale:ke,isElement:Lt,isRTL:ul};var pi=(e,o,r)=>{let n=new Map,a={platform:No,...r},i={...a.platform,_c:n};return Ja(e,o,{...a,platform:i})};function ui(e){return yl(e)}function Rr(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function yl(e){for(let o=e;o;o=Rr(o))if(o instanceof Element&&getComputedStyle(o).display==="none")return null;for(let o=Rr(e);o;o=Rr(o)){if(!(o instanceof Element))continue;let r=getComputedStyle(o);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||o.tagName==="BODY"))return o}return null}async function yi(e,o,r){return pi(e,o,{platform:{...No,getOffsetParent:n=>No.getOffsetParent(n,ui)},middleware:[Ar({crossAxis:!0}),Nr({allowedPlacements:[r]})]})}var lt=function(e,o,r,n){var a=arguments.length,i=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(i=(a<3?l(i):a>3?l(o,r,i):l(o,r))||i);return a>3&&i&&Object.defineProperty(o,r,i),i},U=class extends Xe.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new Xe.Debouncer,this.revealDebouncer=new Xe.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return hi.html`
|
|
523
523
|
<div part="container"
|
|
524
524
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
525
525
|
@mouseenter=${this.onHover}
|
|
@@ -537,7 +537,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
537
537
|
</div>
|
|
538
538
|
</div>
|
|
539
539
|
</div>
|
|
540
|
-
`}updated(o){o.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(o)}contentAvailableCallback(o){super.contentAvailableCallback(o),["visible","text"].some(r=>o.has(r))&&this.visible&&this.positionTooltip()}async show(o){this.visible=!0,o!=null&&await this.hideDebounce.run(()=>{this.hide()},o)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var o;return((o=this.slotNodes)!==null&&o!==void 0?o:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let o=this.tooltipContent.style;switch(o.transition="none",this.validPosition){case"top":o.top=this.tooltip.clientHeight+"px",o.left="0";break;case"bottom":o.top=-this.tooltip.clientHeight+"px",o.left="0";break;case"left":o.top="0",o.left=this.tooltip.clientWidth+"px";break;case"right":o.top="0",o.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",yi(this.slottedElement,this.tooltip,this.position).then(({x:o,y:r})=>{this.tooltip&&(this.tooltip.style.left=`${o}px`,this.tooltip.style.top=`${r}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",o=>{o.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(o,r){return Math.max(o,Math.min(0,-r))}};U.elementDefinitions={"ft-typography":rt};U.styles=ja;lt([(0,F.property)()],U.prototype,"text",void 0);lt([(0,F.property)({type:Boolean})],U.prototype,"manual",void 0);lt([(0,F.property)({type:Boolean})],U.prototype,"inline",void 0);lt([(0,F.property)({type:Number})],U.prototype,"delay",void 0);lt([(0,F.property)()],U.prototype,"position",void 0);lt([(0,F.queryAssignedNodes)()],U.prototype,"slotNodes",void 0);lt([(0,F.query)(".ft-tooltip--container")],U.prototype,"container",void 0);lt([(0,F.query)(".ft-tooltip")],U.prototype,"tooltip",void 0);lt([(0,F.query)(".ft-tooltip--content")],U.prototype,"tooltipContent",void 0);lt([(0,F.state)()],U.prototype,"visible",void 0);lt([(0,F.eventOptions)({passive:!0})],U.prototype,"onTouch",null);lt([(0,F.eventOptions)({passive:!0})],U.prototype,"onHover",null);lt([(0,F.eventOptions)({passive:!0})],U.prototype,"onOut",null);lt([(0,F.eventOptions)({passive:!0})],U.prototype,"onClick",null);(0,mi.customElement)("ft-tooltip")(U);var Si=S(P());var Je=S(B()),fe=S(K()),xi=S(P()),vi=S(bi());var ht;(function(e){e.ADD_TO_PBK="",e.ALERT="",e.ADD_ALERT="",e.BACK_TO_SEARCH="",e.ADD_BOOKMARK="",e.BOOKMARK="",e.BOOKS="",e.MENU="",e.DOWNLOAD="",e.EDIT="",e.FEEDBACK="",e.HOME="",e.MODIFY_PBK="",e.SCHEDULED="",e.SEARCH="",e.EXPORT="",e.TOC="",e.WRITE_UGC="",e.TRASH="",e.USER="",e.EXTLINK="",e.CALENDAR="",e.OFFLINE="",e.BOOK="",e.DOWNLOAD_PLAIN="",e.CHECK="",e.STAR_PLAIN="",e.TOPICS="",e.DISC="",e.CIRCLE="",e.SHARED="",e.SORT_UNSORTED="",e.SORT_UP="",e.SORT_DOWN="",e.WORKING="",e.CLOSE="",e.ZOOM_OUT="",e.ZOOM_IN="",e.ZOOM_REALSIZE="",e.ZOOM_FULLSCREEN="",e.ADMIN_RESTRICTED="",e.ADMIN="",e.ADMIN_KHUB="",e.ADMIN_THEME="",e.ADMIN_USERS="",e.WARNING="",e.CONTEXT="",e.SEARCH_HOME="",e.STEPS="",e.ICON_EXPAND="",e.ICON_COLLAPSE="",e.EXPAND="",e.COMPRESS="",e.INFO="",e.MINUS_PLAIN="",e.PLUS_PLAIN="",e.FACET_HAS_DESCENDANT="",e.TRIANGLE_BOTTOM="",e.TRIANGLE_LEFT="",e.TRIANGLE_RIGHT="",e.TRIANGLE_TOP="",e.THIN_ARROW="",e.SIGN_IN="",e.LOGOUT="",e.TRANSLATE="",e.CLOSE_PLAIN="",e.CHECK_PLAIN="",e.ARTICLE="",e.COLUMNS="",e.ANALYTICS="",e.COLLECTIONS="",e.ARROW_DOWN="",e.ARROW_LEFT="",e.ARROW_RIGHT="",e.ARROW_UP="",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",e.SEARCH_IN_PUBLICATION="",e.COPY_TO_CLIPBOARD="",e.SHARED_PBK="",e.ATTACHMENTS="",e.STRIPE_ARROW_LEFT="",e.STRIPE_ARROW_RIGHT="",e.FILTERS="",e.DOT="",e.MINUS="",e.PLUS="",e.MAILS_AND_NOTIFICATIONS="",e.SAVE="",e.LOCKER="",e.ADMIN_INTEGRATION="",e.SYNC="",e.TAG="",e.BOOK_PLAIN="",e.UPLOAD="",e.ONLINE="",e.TAG_PLAIN="",e.ACCOUNT_SETTINGS="",e.PRINT="",e.DEFAULT_ROLES="",e.SHORTCUT_MENU="",e.RELATIVES_PLAIN="",e.RELATIVES="",e.PAUSE="",e.PLAY="",e.ADMIN_PORTAL="",e.STAR="",e.THUMBS_DOWN="",e.THUMBS_DOWN_PLAIN="",e.THUMBS_UP="",e.THUMBS_UP_PLAIN="",e.FEEDBACK_PLAIN="",e.RATE_PLAIN="",e.RATE="",e.OFFLINE_SETTINGS="",e.MY_COLLECTIONS="",e.THIN_ARROW_LEFT="",e.THIN_ARROW_RIGHT="",e.RESET="",e.MY_LIBRARY="",e.UNSTRUCTURED_DOC="",e.CONTEXTUAL="",e.THIN_ARROW_UP="",e.ARROW_RIGHT_TO_LINE="",e.DESKTOP="",e.TABLET_LANDSCAPE="",e.TABLET_PORTRAIT="",e.MOBILE_LANDSCAPE="",e.MOBILE_PORTRAIT="",e.DIAGRAM_SUNBURST="",e.DIAGRAM_SANKEY="",e.COMMENT_QUESTION="",e.COMMENT_QUESTION_PLAIN="",e.MESSAGE_BOT="",e.CHART_SIMPLE="",e.BARS_PROGRESS="",e.BOOK_OPEN_GEAR="",e.BOOK_OPEN_GEAR_SLASH="",e.LINE_CHART="",e.STACKED_CHART="",e.CHART_BAR_STACKED="",e.CHART_BAR_GROUPED="",e.EYE_SLASH="",e.X_MARK="",e.EXPAND_WIDE="",e.PIP="",e.PIP_WIDE="",e.LIFE_RING="",e.GLOBE="",e.PIGGY_BANK="",e.EXTLINK_LIGHT="",e.CLONE="",e.CLONE_LINK_SIMPLE="",e.CHART_BAR_NORMALIZED="",e.CONSUMER="",e.OCTAGON_XMARK="",e.HOURGLASS_HALF="",e.CLOCK="",e.CLOCK_THREE="",e.CALENDAR_DAY="",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="",e.WAND_MAGIC_SPARKLES="",e.PAPER_PLANE="",e.PAPER_PLANE_SLASH="",e.CIRCLE_STOP="",e.ARROW_ROTATE_RIGHT="",e.ARROW_ROTATE_LEFT="",e.ARROWS_ROTATE="",e.ALIGN_RIGHT="",e.FORMAT_CLEAR="",e.ALIGN_CENTER="",e.ALIGN_LEFT="",e.PALETTE="",e.BOLD="",e.ITALIC="",e.UNDERLINE="",e.STRIKETHROUGH="",e.LINK_SIMPLE_SLASH="",e.LINK_SIMPLE="",e.ROUTE="",e.CIRCLE_USER_SLASH="",e.CIRCLE_USER_CHECK="",e.LIST_MAGNIFYING_GLASS="",e.MEDAL="",e.THUMBS_UP_THUMBS_DOWN_SOLID="",e.ARROW_TURN_DOWN_RIGHT="",e.FLASK="",e.LOCK_KEYHOLE_OPEN_SOLID="",e.HOURGLASS_END="",e.CIRCLE_QUESTION="",e.EYE="",e.SHARE="󨃱",e.GRIP_LINES_SOLID="",e.TRANSLATE_SPARKLE_SOLID="",e.CODE=""})(ht||(ht={}));var C;(function(e){e.UNKNOWN="",e.ABW="",e.AUDIO="",e.AVI="",e.CHM="",e.CODE="",e.CSV="",e.DITA="",e.EPUB="",e.EXCEL="",e.FLAC="",e.GIF="",e.GZIP="",e.HTML="",e.IMAGE="",e.JPEG="",e.JSON="",e.M4A="",e.MOV="",e.MP3="",e.MP4="",e.OGG="",e.PDF="",e.PNG="",e.POWERPOINT="",e.RAR="",e.STP="",e.TEXT="",e.VIDEO="",e.WAV="",e.WMA="",e.WORD="",e.XML="",e.YAML="",e.ZIP=""})(C||(C={}));var Ay=new Map([...["abw"].map(e=>[e,C.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,C.AUDIO]),...["avi"].map(e=>[e,C.AVI]),...["chm","xhs"].map(e=>[e,C.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,C.CODE]),...["csv"].map(e=>[e,C.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,C.DITA]),...["epub"].map(e=>[e,C.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,C.EXCEL]),...["flac"].map(e=>[e,C.FLAC]),...["gif"].map(e=>[e,C.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,C.GZIP]),...["html","htm","xhtml"].map(e=>[e,C.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,C.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,C.JPEG]),...["json"].map(e=>[e,C.JSON]),...["m4a","m4p"].map(e=>[e,C.M4A]),...["mov","qt"].map(e=>[e,C.MOV]),...["mp3"].map(e=>[e,C.MP3]),...["mp4","m4v"].map(e=>[e,C.MP4]),...["ogg","oga"].map(e=>[e,C.OGG]),...["pdf","ps"].map(e=>[e,C.PDF]),...["png"].map(e=>[e,C.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,C.POWERPOINT]),...["rar"].map(e=>[e,C.RAR]),...["stp"].map(e=>[e,C.STP]),...["txt","rtf","md","mdown"].map(e=>[e,C.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,C.VIDEO]),...["wav"].map(e=>[e,C.WAV]),...["wma"].map(e=>[e,C.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,C.WORD]),...["xml","xsl","rdf"].map(e=>[e,C.XML]),...["yaml","yml","x-yaml"].map(e=>[e,C.YAML]),...["zip"].map(e=>[e,C.ZIP])]);var Ry={[C.ABW]:"#91ABC6",[C.AUDIO]:"#1795E3",[C.AVI]:"#E63324",[C.CHM]:"#71C3EB",[C.CODE]:"#71C3EB",[C.CSV]:"#1F7345",[C.DITA]:"#71C3EB",[C.EPUB]:"#85B926",[C.EXCEL]:"#1F7345",[C.FLAC]:"#1795E3",[C.GIF]:"#59B031",[C.GZIP]:"#F8AB36",[C.HTML]:"#71C3EB",[C.IMAGE]:"#59B031",[C.JPEG]:"#59B031",[C.JSON]:"#71C3EB",[C.M4A]:"#1795E3",[C.MOV]:"#E63324",[C.MP3]:"#1795E3",[C.MP4]:"#E63324",[C.OGG]:"#1795E3",[C.PDF]:"#E44948",[C.PNG]:"#59B031",[C.POWERPOINT]:"#B54A2B",[C.RAR]:"#F8AB36",[C.STP]:"#3764B1",[C.TEXT]:"#3162AB",[C.UNKNOWN]:"#999999",[C.VIDEO]:"#E63324",[C.WAV]:"#1795E3",[C.WMA]:"#1795E3",[C.WORD]:"#3162AB",[C.XML]:"#71C3EB",[C.YAML]:"#71C3EB",[C.ZIP]:"#F8AB36"};var It;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(It||(It={}));var Ao=function(e,o,r,n){var a=arguments.length,i=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(i=(a<3?l(i):a>3?l(o,r,i):l(o,r))||i);return a>3&&i&&Object.defineProperty(o,r,i),i},st=class extends xi.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=Je.nothing}render(){let o=this.variant&&Object.values(It).includes(this.variant)?this.variant:It.fluid_topics,r=o!==It.material||!!this.value;return Je.html`
|
|
540
|
+
`}updated(o){o.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(o)}contentAvailableCallback(o){super.contentAvailableCallback(o),["visible","text"].some(r=>o.has(r))&&this.visible&&this.positionTooltip()}async show(o){this.visible=!0,o!=null&&await this.hideDebounce.run(()=>{this.hide()},o)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var o;return((o=this.slotNodes)!==null&&o!==void 0?o:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let o=this.tooltipContent.style;switch(o.transition="none",this.validPosition){case"top":o.top=this.tooltip.clientHeight+"px",o.left="0";break;case"bottom":o.top=-this.tooltip.clientHeight+"px",o.left="0";break;case"left":o.top="0",o.left=this.tooltip.clientWidth+"px";break;case"right":o.top="0",o.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",yi(this.slottedElement,this.tooltip,this.position).then(({x:o,y:r})=>{this.tooltip&&(this.tooltip.style.left=`${o}px`,this.tooltip.style.top=`${r}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",o=>{o.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(o,r){return Math.max(o,Math.min(0,-r))}};U.elementDefinitions={"ft-typography":rt};U.styles=ja;lt([(0,F.property)()],U.prototype,"text",void 0);lt([(0,F.property)({type:Boolean})],U.prototype,"manual",void 0);lt([(0,F.property)({type:Boolean})],U.prototype,"inline",void 0);lt([(0,F.property)({type:Number})],U.prototype,"delay",void 0);lt([(0,F.property)()],U.prototype,"position",void 0);lt([(0,F.queryAssignedNodes)()],U.prototype,"slotNodes",void 0);lt([(0,F.query)(".ft-tooltip--container")],U.prototype,"container",void 0);lt([(0,F.query)(".ft-tooltip")],U.prototype,"tooltip",void 0);lt([(0,F.query)(".ft-tooltip--content")],U.prototype,"tooltipContent",void 0);lt([(0,F.state)()],U.prototype,"visible",void 0);lt([(0,F.eventOptions)({passive:!0})],U.prototype,"onTouch",null);lt([(0,F.eventOptions)({passive:!0})],U.prototype,"onHover",null);lt([(0,F.eventOptions)({passive:!0})],U.prototype,"onOut",null);lt([(0,F.eventOptions)({passive:!0})],U.prototype,"onClick",null);(0,mi.customElement)("ft-tooltip")(U);var Si=S(P());var Je=S(B()),fe=S(K()),xi=S(P()),vi=S(bi());var ht;(function(e){e.ADD_TO_PBK="",e.ALERT="",e.ADD_ALERT="",e.BACK_TO_SEARCH="",e.ADD_BOOKMARK="",e.BOOKMARK="",e.BOOKS="",e.MENU="",e.DOWNLOAD="",e.EDIT="",e.FEEDBACK="",e.HOME="",e.MODIFY_PBK="",e.SCHEDULED="",e.SEARCH="",e.EXPORT="",e.TOC="",e.WRITE_UGC="",e.TRASH="",e.USER="",e.EXTLINK="",e.CALENDAR="",e.OFFLINE="",e.BOOK="",e.DOWNLOAD_PLAIN="",e.CHECK="",e.STAR_PLAIN="",e.TOPICS="",e.DISC="",e.CIRCLE="",e.SHARED="",e.SORT_UNSORTED="",e.SORT_UP="",e.SORT_DOWN="",e.WORKING="",e.CLOSE="",e.ZOOM_OUT="",e.ZOOM_IN="",e.ZOOM_REALSIZE="",e.ZOOM_FULLSCREEN="",e.ADMIN_RESTRICTED="",e.ADMIN="",e.ADMIN_KHUB="",e.ADMIN_THEME="",e.ADMIN_USERS="",e.WARNING="",e.CONTEXT="",e.SEARCH_HOME="",e.STEPS="",e.ICON_EXPAND="",e.ICON_COLLAPSE="",e.INFO="",e.MINUS_PLAIN="",e.PLUS_PLAIN="",e.FACET_HAS_DESCENDANT="",e.TRIANGLE_BOTTOM="",e.TRIANGLE_LEFT="",e.TRIANGLE_RIGHT="",e.TRIANGLE_TOP="",e.THIN_ARROW="",e.SIGN_IN="",e.LOGOUT="",e.TRANSLATE="",e.CLOSE_PLAIN="",e.CHECK_PLAIN="",e.ARTICLE="",e.COLUMNS="",e.ANALYTICS="",e.COLLECTIONS="",e.ARROW_DOWN="",e.ARROW_LEFT="",e.ARROW_RIGHT="",e.ARROW_UP="",e.SEARCH_IN_PUBLICATION="",e.COPY_TO_CLIPBOARD="",e.SHARED_PBK="",e.ATTACHMENTS="",e.STRIPE_ARROW_LEFT="",e.STRIPE_ARROW_RIGHT="",e.FILTERS="",e.DOT="",e.MINUS="",e.PLUS="",e.MAILS_AND_NOTIFICATIONS="",e.SAVE="",e.LOCKER="",e.ADMIN_INTEGRATION="",e.SYNC="",e.TAG="",e.BOOK_PLAIN="",e.UPLOAD="",e.ONLINE="",e.TAG_PLAIN="",e.ACCOUNT_SETTINGS="",e.PRINT="",e.DEFAULT_ROLES="",e.SHORTCUT_MENU="",e.RELATIVES_PLAIN="",e.RELATIVES="",e.PAUSE="",e.PLAY="",e.ADMIN_PORTAL="",e.STAR="",e.THUMBS_DOWN="",e.THUMBS_DOWN_PLAIN="",e.THUMBS_UP="",e.THUMBS_UP_PLAIN="",e.FEEDBACK_PLAIN="",e.RATE_PLAIN="",e.RATE="",e.OFFLINE_SETTINGS="",e.MY_COLLECTIONS="",e.THIN_ARROW_LEFT="",e.THIN_ARROW_RIGHT="",e.RESET="",e.MY_LIBRARY="",e.UNSTRUCTURED_DOC="",e.CONTEXTUAL="",e.THIN_ARROW_UP="",e.ARROW_RIGHT_TO_LINE="",e.DESKTOP="",e.TABLET_LANDSCAPE="",e.TABLET_PORTRAIT="",e.MOBILE_LANDSCAPE="",e.MOBILE_PORTRAIT="",e.DIAGRAM_SUNBURST="",e.DIAGRAM_SANKEY="",e.COMMENT_QUESTION="",e.COMMENT_QUESTION_PLAIN="",e.MESSAGE_BOT="",e.CHART_SIMPLE="",e.BARS_PROGRESS="",e.BOOK_OPEN_GEAR="",e.BOOK_OPEN_GEAR_SLASH="",e.LINE_CHART="",e.STACKED_CHART="",e.CHART_BAR_STACKED="",e.CHART_BAR_GROUPED="",e.EYE_SLASH="",e.X_MARK="",e.EXPAND_WIDE="",e.PIP="",e.PIP_WIDE="",e.LIFE_RING="",e.GLOBE="",e.PIGGY_BANK="",e.EXTLINK_LIGHT="",e.CLONE="",e.CLONE_LINK_SIMPLE="",e.CHART_BAR_NORMALIZED="",e.CONSUMER="",e.OCTAGON_XMARK="",e.HOURGLASS_HALF="",e.CLOCK="",e.CLOCK_THREE="",e.CALENDAR_DAY="",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="",e.WAND_MAGIC_SPARKLES="",e.PAPER_PLANE="",e.CIRCLE_STOP="",e.ARROW_ROTATE_RIGHT="",e.ARROWS_ROTATE="",e.ALIGN_RIGHT="",e.FORMAT_CLEAR="",e.ALIGN_CENTER="",e.ALIGN_LEFT="",e.PALETTE="",e.BOLD="",e.ITALIC="",e.UNDERLINE="",e.STRIKETHROUGH="",e.LINK_SIMPLE_SLASH="",e.LINK_SIMPLE="",e.ROUTE="",e.CIRCLE_USER_SLASH="",e.CIRCLE_USER_CHECK="",e.LIST_MAGNIFYING_GLASS="",e.MEDAL="",e.THUMBS_UP_THUMBS_DOWN_SOLID="",e.ARROW_TURN_DOWN_RIGHT="",e.FLASK="",e.LOCK_KEYHOLE_OPEN_SOLID="",e.HOURGLASS_END="",e.CIRCLE_QUESTION="",e.GRIP_LINES_SOLID="",e.TRANSLATE_SPARKLE_SOLID="",e.CODE="",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",e.PAPER_PLANE_SLASH="",e.COMPRESS="",e.EXPAND="",e.ARROW_ROTATE_LEFT="",e.EYE="",e.SHARE="󨃱"})(ht||(ht={}));var C;(function(e){e.UNKNOWN="",e.ABW="",e.AUDIO="",e.AVI="",e.CHM="",e.CODE="",e.CSV="",e.DITA="",e.EPUB="",e.EXCEL="",e.FLAC="",e.GIF="",e.GZIP="",e.HTML="",e.IMAGE="",e.JPEG="",e.JSON="",e.M4A="",e.MOV="",e.MP3="",e.MP4="",e.OGG="",e.PDF="",e.PNG="",e.POWERPOINT="",e.RAR="",e.STP="",e.TEXT="",e.VIDEO="",e.WAV="",e.WMA="",e.WORD="",e.XML="",e.YAML="",e.ZIP=""})(C||(C={}));var Ay=new Map([...["abw"].map(e=>[e,C.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,C.AUDIO]),...["avi"].map(e=>[e,C.AVI]),...["chm","xhs"].map(e=>[e,C.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,C.CODE]),...["csv"].map(e=>[e,C.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,C.DITA]),...["epub"].map(e=>[e,C.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,C.EXCEL]),...["flac"].map(e=>[e,C.FLAC]),...["gif"].map(e=>[e,C.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,C.GZIP]),...["html","htm","xhtml"].map(e=>[e,C.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,C.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,C.JPEG]),...["json"].map(e=>[e,C.JSON]),...["m4a","m4p"].map(e=>[e,C.M4A]),...["mov","qt"].map(e=>[e,C.MOV]),...["mp3"].map(e=>[e,C.MP3]),...["mp4","m4v"].map(e=>[e,C.MP4]),...["ogg","oga"].map(e=>[e,C.OGG]),...["pdf","ps"].map(e=>[e,C.PDF]),...["png"].map(e=>[e,C.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,C.POWERPOINT]),...["rar"].map(e=>[e,C.RAR]),...["stp"].map(e=>[e,C.STP]),...["txt","rtf","md","mdown"].map(e=>[e,C.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,C.VIDEO]),...["wav"].map(e=>[e,C.WAV]),...["wma"].map(e=>[e,C.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,C.WORD]),...["xml","xsl","rdf"].map(e=>[e,C.XML]),...["yaml","yml","x-yaml"].map(e=>[e,C.YAML]),...["zip"].map(e=>[e,C.ZIP])]);var Ry={[C.ABW]:"#91ABC6",[C.AUDIO]:"#1795E3",[C.AVI]:"#E63324",[C.CHM]:"#71C3EB",[C.CODE]:"#71C3EB",[C.CSV]:"#1F7345",[C.DITA]:"#71C3EB",[C.EPUB]:"#85B926",[C.EXCEL]:"#1F7345",[C.FLAC]:"#1795E3",[C.GIF]:"#59B031",[C.GZIP]:"#F8AB36",[C.HTML]:"#71C3EB",[C.IMAGE]:"#59B031",[C.JPEG]:"#59B031",[C.JSON]:"#71C3EB",[C.M4A]:"#1795E3",[C.MOV]:"#E63324",[C.MP3]:"#1795E3",[C.MP4]:"#E63324",[C.OGG]:"#1795E3",[C.PDF]:"#E44948",[C.PNG]:"#59B031",[C.POWERPOINT]:"#B54A2B",[C.RAR]:"#F8AB36",[C.STP]:"#3764B1",[C.TEXT]:"#3162AB",[C.UNKNOWN]:"#999999",[C.VIDEO]:"#E63324",[C.WAV]:"#1795E3",[C.WMA]:"#1795E3",[C.WORD]:"#3162AB",[C.XML]:"#71C3EB",[C.YAML]:"#71C3EB",[C.ZIP]:"#F8AB36"};var It;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(It||(It={}));var Ao=function(e,o,r,n){var a=arguments.length,i=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(i=(a<3?l(i):a>3?l(o,r,i):l(o,r))||i);return a>3&&i&&Object.defineProperty(o,r,i),i},st=class extends xi.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=Je.nothing}render(){let o=this.variant&&Object.values(It).includes(this.variant)?this.variant:It.fluid_topics,r=o!==It.material||!!this.value;return Je.html`
|
|
541
541
|
<i class="ft-icon ft-icon--${o}" part="icon icon-${o}">
|
|
542
542
|
${(0,vi.unsafeHTML)(this.resolvedIcon)}
|
|
543
543
|
<slot ?hidden=${r}></slot>
|
|
@@ -549,7 +549,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
549
549
|
<div></div>
|
|
550
550
|
<div></div>
|
|
551
551
|
</div>
|
|
552
|
-
`}};pe.styles=ua;(0,wi.customElement)("ft-loader")(pe);var Vt=S(B()),
|
|
552
|
+
`}};pe.styles=ua;(0,wi.customElement)("ft-loader")(pe);var Vt=S(B()),Lr=S(go()),j=S(K()),J=function(e,o,r,n){var a=arguments.length,i=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(i=(a<3?l(i):a>3?l(o,r,i):l(o,r))||i);return a>3&&i&&Object.defineProperty(o,r,i),i},W=class extends(0,qt.toFtFormComponent)(qt.FtLitElement,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",o=>{var r;this.isDisabled()?(o.preventDefault(),o.stopPropagation(),o.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var o,r,n;let a=Vt.html`
|
|
553
553
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
554
554
|
<ft-typography part="label"
|
|
555
555
|
variant=${this.typographyVariant}
|
|
@@ -563,14 +563,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
563
563
|
<a href="${i}"
|
|
564
564
|
target="${(o=this.target)!==null&&o!==void 0?o:"_self"}"
|
|
565
565
|
part="button"
|
|
566
|
-
class="${(0,
|
|
566
|
+
class="${(0,Lr.classMap)(this.buttonClasses)}"
|
|
567
567
|
aria-label="${(r=this.ariaLabel)!==null&&r!==void 0?r:this.getLabel()}"
|
|
568
568
|
?disabled=${this.isDisabled()}>
|
|
569
569
|
${a}
|
|
570
570
|
</a>
|
|
571
571
|
`:Vt.html`
|
|
572
572
|
<button part="button"
|
|
573
|
-
class="${(0,
|
|
573
|
+
class="${(0,Lr.classMap)(this.buttonClasses)}"
|
|
574
574
|
aria-label="${(n=this.ariaLabel)!==null&&n!==void 0?n:this.getLabel()}"
|
|
575
575
|
?disabled=${this.isDisabled()}>
|
|
576
576
|
${a}
|
|
@@ -1052,7 +1052,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
1052
1052
|
.ftds--size-small.ft-button--icon-only {
|
|
1053
1053
|
width: ${u.smallIconOnlyWidth};
|
|
1054
1054
|
}
|
|
1055
|
-
`,x.noTextSelect];var Lo=function(e,o,r,n){var a=arguments.length,i=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(i=(a<3?l(i):a>3?l(o,r,i):l(o,r))||i);return a>3&&i&&Object.defineProperty(o,r,i),i},nt=class extends(0,Io.toFtdsBase)(W){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=ho.brand,this.iconVariant=It.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case et.large:return vt.body2medium;case et.medium:return vt.caption1medium;case et.small:return vt.caption2medium}}};nt.styles=[Io.safariEllipsisFix,Ai];Lo([(0,to.property)({type:Boolean})],nt.prototype,"primary",void 0);Lo([(0,to.property)({type:Boolean})],nt.prototype,"secondary",void 0);Lo([(0,to.property)({type:Boolean})],nt.prototype,"tertiary",void 0);Lo([(0,to.property)({type:Boolean})],nt.prototype,"round",void 0);(0,
|
|
1055
|
+
`,x.noTextSelect];var Lo=function(e,o,r,n){var a=arguments.length,i=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(i=(a<3?l(i):a>3?l(o,r,i):l(o,r))||i);return a>3&&i&&Object.defineProperty(o,r,i),i},nt=class extends(0,Io.toFtdsBase)(W){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=ho.brand,this.iconVariant=It.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case et.large:return vt.body2medium;case et.medium:return vt.caption1medium;case et.small:return vt.caption2medium}}};nt.styles=[Io.safariEllipsisFix,Ai];Lo([(0,to.property)({type:Boolean})],nt.prototype,"primary",void 0);Lo([(0,to.property)({type:Boolean})],nt.prototype,"secondary",void 0);Lo([(0,to.property)({type:Boolean})],nt.prototype,"tertiary",void 0);Lo([(0,to.property)({type:Boolean})],nt.prototype,"round",void 0);(0,Ir.customElement)("ft-button")(zt);(0,Ir.customElement)("ftds-button")(nt);var hn=S(P());var fo=S(B()),po=S(K()),De=S(P()),kc=S(go());var Ri=S(B());var Pr=S(P());var Li=[Ri.css`
|
|
1056
1056
|
|
|
1057
1057
|
.ftds--size-small [part=dialog] {
|
|
1058
1058
|
--ftds-modal--target-width: ${z.smallContainerTargetWidth};
|
|
@@ -1075,7 +1075,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
1075
1075
|
margin:
|
|
1076
1076
|
auto
|
|
1077
1077
|
max(
|
|
1078
|
-
${
|
|
1078
|
+
${Pr.foundation.spacing6},
|
|
1079
1079
|
calc((100% - var(--ftds-modal--target-width)) / 2)
|
|
1080
1080
|
);
|
|
1081
1081
|
}
|
|
@@ -1121,17 +1121,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
1121
1121
|
[part=actions] {
|
|
1122
1122
|
align-self: flex-end;
|
|
1123
1123
|
display: flex;
|
|
1124
|
-
gap: ${
|
|
1124
|
+
gap: ${Pr.foundation.spacing3}
|
|
1125
1125
|
}
|
|
1126
|
-
`];var Ic=S(P());var
|
|
1127
|
-
`;var
|
|
1128
|
-
`;var Po=S(P()),hl="ft-app-info",
|
|
1126
|
+
`];var Ic=S(P());var er=S(B()),or=S(K()),rr=S(P());var Ii=S(B());var Pi=Ii.css`
|
|
1127
|
+
`;var Qo=S(P());var Ac=S(P());var _i=S(B()),dt=S(K()),Ct=S(P());var ki=S(B());var Ti=ki.css`
|
|
1128
|
+
`;var Po=S(P()),hl="ft-app-info",kr=class extends CustomEvent{constructor(o){super("authentication-change",{detail:o})}},ml={session:(e,o)=>{(0,Po.deepEqual)(e.session,o.payload)||(e.session=o.payload,setTimeout(()=>L.dispatchEvent(new kr(o.payload)),0))}},L=Po.FtReduxStore.get({name:hl,reducers:ml,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var Xt=S(P());var Tr=S(P());var ue=class e{static get(o){let{baseUrl:r,apiIntegrationIdentifier:n}=L.getState(),a=o??n;if(r&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,a,!0)}static await(o){return new Promise(r=>{let n=e.get(o);if(n)r(n);else{let a=L.subscribe(()=>{n=e.get(o),n&&(a(),r(n))})}})}};var Yt=class{constructor(o=!0,r){var n;this.overrideApi=r;let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new Tr.CacheRegistry,this.cache=o?a.commonCache:new Tr.CacheRegistry}get api(){var o;return(o=this.overrideApi)!==null&&o!==void 0?o:ue.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):ue.await()}clearCache(){this.cache.clearAll()}};var $i,gl=Symbol("clearAfterUnitTest"),ko=class extends Yt{constructor(o){super(),this.messageContextProvider=o,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[$i]=()=>{this.defaultMessages={},this.cache=new Xt.CacheRegistry,this.listeners={}},this.currentUiLocale=L.getState().uiLocale,L.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:o}=L.getState();this.currentUiLocale!==o&&(this.currentUiLocale=o,this.cache.clearAll(),this.notifyAll())}addContext(o){let r=o.name.toLowerCase();this.cache.setFinal(r,o),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(o,r){var n;if(o=o.toLowerCase(),Object.keys(r).length>0){let a={...(n=this.defaultMessages[o])!==null&&n!==void 0?n:{},...r};(0,Xt.deepEqual)(this.defaultMessages[o],a)||(this.defaultMessages[o]=a,await this.notify(o))}await this.fetchContext(o)}resolveContext(o){var r,n;return this.fetchContext(o),(n=(r=this.cache.getNow(o))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(o,r){let n=o.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(o,r,...n){var a;let i=o.toLowerCase(),l=this.resolveContext(i);return new Xt.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},l).resolve(r,...n)}async fetchContext(o){if(!this.cache.has(o))try{await this.cache.get(o,()=>this.messageContextProvider(this.currentUiLocale,o)),await this.notify(o)}catch(r){console.error(r)}}subscribe(o,r){var n;return o=o.toLowerCase(),this.listeners[o]=(n=this.listeners[o])!==null&&n!==void 0?n:new Set,this.listeners[o].add(r),()=>{var a;return(a=this.listeners[o])===null||a===void 0?void 0:a.delete(r)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(o=>this.notify(o)))}async notify(o){this.listeners[o]!=null&&await Promise.all([...this.listeners[o].values()].map(r=>(0,Xt.delay)(0).then(()=>r()).catch(()=>null)))}};$i=gl;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends ko{constructor(){super(async(e,o)=>(await this.awaitApi).getFluidTopicsMessageContext(e,o))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends ko{constructor(){super(async(e,o)=>(await this.awaitApi).getCustomMessageContext(e,o))}});var ye=window.FluidTopicsI18nService,Bi=window.FluidTopicsCustomI18nService;var Q=function(e,o,r,n){var a=arguments.length,i=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(i=(a<3?l(i):a>3?l(o,r,i):l(o,r))||i);return a>3&&i&&Object.defineProperty(o,r,i),i},H=class extends Ct.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>ue.get(),this.messageContexts=[],this.cache=new Ct.CacheRegistry,this.cleanSessionDebouncer=new Ct.Debouncer}render(){return _i.html`
|
|
1129
1129
|
<slot></slot>
|
|
1130
|
-
`}update(o){var r,n,a,i,l;super.update(o),o.has("baseUrl")&&(L.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),o.has("apiIntegrationIdentifier")&&L.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),o.has("uiLocale")&&L.actions.uiLocale(this.uiLocale),o.has("metadataConfiguration")&&L.actions.metadataConfiguration(this.metadataConfiguration),o.has("noCustom")&&L.actions.noCustom(this.noCustom),o.has("editorMode")&&L.actions.editorMode(this.editorMode),o.has("noCustomComponent")&&L.actions.noCustomComponent(this.noCustomComponent),o.has("session")&&L.actions.session(this.session),o.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(d=>ye.addContext(d)),o.has("openExternalDocumentInNewTab")&&L.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),o.has("navigatorOnline")&&L.actions.navigatorOnline(this.navigatorOnline),o.has("forcedOffline")&&L.actions.forcedOffline(this.forcedOffline),o.has("localesConfiguration")&&(L.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),L.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),L.actions.searchInAllLanguagesAllowed((l=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&l!==void 0?l:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let o=await this.apiProvider().getCurrentSession();return o.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},o.idleTimeoutInMillis),o})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};H.elementDefinitions={};H.styles=Ti;Q([(0,dt.property)()],H.prototype,"baseUrl",void 0);Q([(0,dt.property)()],H.prototype,"apiIntegrationIdentifier",void 0);Q([(0,dt.property)()],H.prototype,"uiLocale",void 0);Q([(0,Ct.jsonProperty)(null)],H.prototype,"availableUiLocales",void 0);Q([(0,Ct.jsonProperty)(null)],H.prototype,"metadataConfiguration",void 0);Q([(0,dt.property)({type:Boolean})],H.prototype,"editorMode",void 0);Q([(0,dt.property)({type:Boolean})],H.prototype,"noCustom",void 0);Q([(0,dt.property)({type:Boolean})],H.prototype,"openExternalDocumentInNewTab",void 0);Q([(0,dt.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],H.prototype,"noCustomComponent",void 0);Q([(0,dt.property)({type:Boolean})],H.prototype,"withManualResources",void 0);Q([(0,dt.property)({type:Boolean})],H.prototype,"navigatorOnline",void 0);Q([(0,dt.property)({type:Boolean})],H.prototype,"forcedOffline",void 0);Q([(0,dt.property)({type:Object})],H.prototype,"apiProvider",void 0);Q([(0,Ct.jsonProperty)([])],H.prototype,"messageContexts",void 0);Q([(0,Ct.jsonProperty)(void 0)],H.prototype,"session",void 0);Q([(0,dt.state)()],H.prototype,"localesConfiguration",void 0);var ns=S(K());function bl(e,o){if(e===o)return!0;if(e&&o&&typeof e=="object"&&typeof o=="object"){if(e.constructor!==o.constructor)return!1;var r,n,a;if(Array.isArray(e)){if(r=e.length,r!=o.length)return!1;for(n=r;n--!==0;)if(!To(e[n],o[n]))return!1;return!0}if(e instanceof Map&&o instanceof Map){if(e.size!==o.size)return!1;for(n of e.entries())if(!o.has(n[0]))return!1;for(n of e.entries())if(!To(n[1],o.get(n[0])))return!1;return!0}if(e instanceof Set&&o instanceof Set){if(e.size!==o.size)return!1;for(n of e.entries())if(!o.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===o.source&&e.flags===o.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===o.valueOf();if(a=Object.keys(e),r=a.length,r!==Object.keys(o).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(o,a[n]))return!1;for(n=r;n--!==0;){var i=a[n];if(!To(e[i],o[i]))return!1}return!0}return e!==e&&o!==o}function To(e,o){try{return bl(e,o)}catch{return!1}}function Tr(e,o){return!To(e,o)}var xl=S(K(),1);var $o=class{constructor(){this.queue=[]}add(o,r=!1){r&&(this.queue=this.queue.filter(n=>n.type!==o.type)),this.queue.push(o)}consume(o){let r=this.queue.find(n=>n.type===o);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}};var eo=S(K(),1);var Wi=S(K(),1);function Di(e,o){let r=()=>JSON.parse(JSON.stringify(e));return(0,Wi.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return r();try{return JSON.parse(n)}catch{return r()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Tr,...o??{}})}var Bo=class{constructor(o=0){this.timeout=o,this.callbacks=[]}run(o,r){return this.callbacks=[o],this.debounce(r)}queue(o,r){return this.callbacks.push(o),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(o){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),o??this.timeout),this.promise}async runCallbacks(){var o,r;let n=[...this.callbacks];this.callbacks=[];let a=(o=this.rejectPromise)!==null&&o!==void 0?o:()=>null,i=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let l of n)try{await l()}catch(d){a(d);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Mi=S(B(),1);var _o=window,vl=_o.ShadowRoot&&(_o.ShadyCSS===void 0||_o.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Yh=Symbol();var zi=(e,o)=>{vl?e.adoptedStyleSheets=o.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):o.forEach(r=>{let n=document.createElement("style"),a=_o.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=r.cssText,e.appendChild(n)})};var Wo=class extends Mi.LitElement{createRenderRoot(){let o=this.constructor;o.elementDefinitions&&!o.registry&&(o.registry=new CustomElementRegistry,Object.entries(o.elementDefinitions).forEach(([a,i])=>o.registry.define(a,i)));let r={...o.shadowRootOptions,customElements:o.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return zi(n,o.elementStyles),n}};var Do=function(e,o,r,n){var a=arguments.length,i=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(i=(a<3?l(i):a>3?l(o,r,i):l(o,r))||i);return a>3&&i&&Object.defineProperty(o,r,i),i},Fi,Ui=Symbol("constructorPrototype"),Hi=Symbol("constructorName"),ji=Symbol("exportpartsDebouncer"),Gi=Symbol("dynamicDependenciesLoaded"),Jt=class extends Wo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Fi]=new Bo(5),this[Hi]=this.constructor.name,this[Ui]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Hi]&&Object.setPrototypeOf(this,this[Ui])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let o=this.constructor;o[Gi]||(o[Gi]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(o){super.updated(o),this.updateComplete.then(()=>{this.contentAvailableCallback(o),this.applyCustomStylesheet(o),this.scheduleExportpartsUpdate()})}contentAvailableCallback(o){}applyCustomStylesheet(o){var r,n,a;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(o.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}scheduleExportpartsUpdate(){var o,r,n;(!((o=this.exportpartsPrefix)===null||o===void 0)&&o.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[ji].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(o){var r,n,a,i,l,d;let p=m=>m!=null&&m.trim().length>0,f=o.filter(p).map(m=>m.trim());if(f.length===0){this.removeAttribute("exportparts");return}let y=new Set;for(let m of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let b=(i=(a=m.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],g=(d=(l=m.getAttribute("exportparts"))===null||l===void 0?void 0:l.split(",").map(v=>v.split(":")[1]))!==null&&d!==void 0?d:[];new Array(...b,...g).filter(p).map(v=>v.trim()).forEach(v=>y.add(v))}if(y.size===0){this.removeAttribute("exportparts");return}let h=[...y.values()].flatMap(m=>f.map(b=>`${m}:${b}--${m}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};Fi=ji;Do([(0,eo.property)()],Jt.prototype,"exportpartsPrefix",void 0);Do([Di([])],Jt.prototype,"exportpartsPrefixes",void 0);Do([(0,eo.property)()],Jt.prototype,"customStylesheet",void 0);Do([(0,eo.state)()],Jt.prototype,"useAdoptedStyleSheets",void 0);function oo(e){var o;return(o=e?.isFtReduxStore)!==null&&o!==void 0?o:!1}var Ki,Zi,Vi,ro=Symbol("internalReduxEventsUnsubscribers"),Qt=Symbol("internalStoresUnsubscribers"),he=Symbol("internalStores"),no=class extends Jt{constructor(){super(...arguments),this[Ki]=new Map,this[Zi]=new Map,this[Vi]=new Map}get reduxConstructor(){return this.constructor}update(o){super.update(o),[...this.reduxConstructor.reduxReactiveProperties].some(r=>o.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[he].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[he].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[he].get(o)}addStore(o,r){var n;r=(n=r??(oo(o)?o.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(r),this[he].set(r,o),this.subscribeToStore(r,o),this.updateFromStores()}removeStore(o){let r=typeof o=="string"?o:o.name;this.unsubscribeFromStore(r),this[he].delete(r)}setupStores(){this.unsubscribeFromStores(),this[he].forEach((o,r)=>this.subscribeToStore(r,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,r)=>{let n=this.constructor.getPropertyOptions(r);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:r)){let a=this.getStore(o.store);a&&(o.store?this[Qt].has(o.store):this[Qt].size>0)&&(this[r]=o.selector(a.getState(),this))}})}subscribeToStore(o,r){var n;this[Qt].set(o,r.subscribe(()=>this.updateFromStores())),this[ro].set(o,[]),oo(r)&&r.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||r.name===a.store)){let l=d=>this[i](d);r.addEventListener(a.eventName,l),this[ro].get(o).push(()=>r.removeEventListener(a.eventName,l))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[Qt].forEach((o,r)=>this.unsubscribeFromStore(r))}unsubscribeFromStore(o){var r;this[Qt].has(o)&&this[Qt].get(o)(),this[Qt].delete(o),(r=this[ro].get(o))===null||r===void 0||r.forEach(n=>n()),this[ro].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Ki=Qt,Zi=he,Vi=ro;no.reduxProperties=new Map;no.reduxReactiveProperties=new Set;no.reduxEventListeners=new Map;function St(e){for(var o=arguments.length,r=Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(l){return"'"+l+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Mt(e){return!!e&&!!e[D]}function wt(e){var o;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===Rl}(e)||Array.isArray(e)||!!e[ec]||!!(!((o=e.constructor)===null||o===void 0)&&o[ec])||Hr(e)||Gr(e))}function me(e,o,r){r===void 0&&(r=!1),Be(e)===0?(r?Object.keys:$e)(e).forEach(function(n){r&&typeof n=="symbol"||o(n,e[n],e)}):e.forEach(function(n,a){return o(a,n,e)})}function Be(e){var o=e[D];return o?o.i>3?o.i-4:o.i:Array.isArray(e)?1:Hr(e)?2:Gr(e)?3:0}function Te(e,o){return Be(e)===2?e.has(o):Object.prototype.hasOwnProperty.call(e,o)}function Sl(e,o){return Be(e)===2?e.get(o):e[o]}function oc(e,o,r){var n=Be(e);n===2?e.set(o,r):n===3?e.add(r):e[o]=r}function rc(e,o){return e===o?e!==0||1/e==1/o:e!=e&&o!=o}function Hr(e){return Nl&&e instanceof Map}function Gr(e){return Al&&e instanceof Set}function te(e){return e.o||e.t}function Fr(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var o=ic(e);delete o[D];for(var r=$e(o),n=0;n<r.length;n++){var a=r[n],i=o[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(o[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),o)}function jr(e,o){return o===void 0&&(o=!1),Kr(e)||Mt(e)||!wt(e)||(Be(e)>1&&(e.set=e.add=e.clear=e.delete=Ol),Object.freeze(e),o&&me(e,function(r,n){return jr(n,!0)},!0)),e}function Ol(){St(2)}function Kr(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Pt(e){var o=Ur[e];return o||St(18,e),o}function Cl(e,o){Ur[e]||(Ur[e]=o)}function Dr(){return io}function $r(e,o){o&&(Pt("Patches"),e.u=[],e.s=[],e.v=o)}function zo(e){zr(e),e.p.forEach(wl),e.p=null}function zr(e){e===io&&(io=e.l)}function qi(e){return io={p:[],l:io,h:e,m:!0,_:0}}function wl(e){var o=e[D];o.i===0||o.i===1?o.j():o.g=!0}function Br(e,o){o._=o.p.length;var r=o.p[0],n=e!==void 0&&e!==r;return o.h.O||Pt("ES5").S(o,e,n),n?(r[D].P&&(zo(o),St(4)),wt(e)&&(e=Mo(o,e),o.l||Uo(o,e)),o.u&&Pt("Patches").M(r[D].t,e,o.u,o.s)):e=Mo(o,r,[]),zo(o),o.u&&o.v(o.u,o.s),e!==ac?e:void 0}function Mo(e,o,r){if(Kr(o))return o;var n=o[D];if(!n)return me(o,function(d,p){return Yi(e,n,o,d,p,r)},!0),o;if(n.A!==e)return o;if(!n.P)return Uo(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Fr(n.k):n.o,i=a,l=!1;n.i===3&&(i=new Set(a),a.clear(),l=!0),me(i,function(d,p){return Yi(e,n,a,d,p,r,l)}),Uo(e,a,!1),r&&e.u&&Pt("Patches").N(n,r,e.u,e.s)}return n.o}function Yi(e,o,r,n,a,i,l){if(Mt(a)){var d=Mo(e,a,i&&o&&o.i!==3&&!Te(o.R,n)?i.concat(n):void 0);if(oc(r,n,d),!Mt(d))return;e.m=!1}else l&&r.add(a);if(wt(a)&&!Kr(a)){if(!e.h.D&&e._<1)return;Mo(e,a),o&&o.A.l||Uo(e,a)}}function Uo(e,o,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&jr(o,r)}function _r(e,o){var r=e[D];return(r?te(r):e)[o]}function Xi(e,o){if(o in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,o);if(n)return n;r=Object.getPrototypeOf(r)}}function ee(e){e.P||(e.P=!0,e.l&&ee(e.l))}function Wr(e){e.o||(e.o=Fr(e.t))}function Mr(e,o,r){var n=Hr(o)?Pt("MapSet").F(o,r):Gr(o)?Pt("MapSet").T(o,r):e.O?function(a,i){var l=Array.isArray(a),d={i:l?1:0,A:i?i.A:Dr(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},p=d,f=co;l&&(p=[d],f=ao);var y=Proxy.revocable(p,f),h=y.revoke,m=y.proxy;return d.k=m,d.j=h,m}(o,r):Pt("ES5").J(o,r);return(r?r.A:Dr()).p.push(n),n}function El(e){return Mt(e)||St(22,e),function o(r){if(!wt(r))return r;var n,a=r[D],i=Be(r);if(a){if(!a.P&&(a.i<4||!Pt("ES5").K(a)))return a.t;a.I=!0,n=Ji(r,i),a.I=!1}else n=Ji(r,i);return me(n,function(l,d){a&&Sl(a.t,l)===d||oc(n,l,o(d))}),i===3?new Set(n):n}(e)}function Ji(e,o){switch(o){case 2:return new Map(e);case 3:return Array.from(e)}return Fr(e)}function nc(){function e(l,d){var p=i[l];return p?p.enumerable=d:i[l]=p={configurable:!0,enumerable:d,get:function(){var f=this[D];return co.get(f,l)},set:function(f){var y=this[D];co.set(y,l,f)}},p}function o(l){for(var d=l.length-1;d>=0;d--){var p=l[d][D];if(!p.P)switch(p.i){case 5:n(p)&&ee(p);break;case 4:r(p)&&ee(p)}}}function r(l){for(var d=l.t,p=l.k,f=$e(p),y=f.length-1;y>=0;y--){var h=f[y];if(h!==D){var m=d[h];if(m===void 0&&!Te(d,h))return!0;var b=p[h],g=b&&b[D];if(g?g.t!==m:!rc(b,m))return!0}}var v=!!d[D];return f.length!==$e(d).length+(v?0:1)}function n(l){var d=l.k;if(d.length!==l.t.length)return!0;var p=Object.getOwnPropertyDescriptor(d,d.length-1);if(p&&!p.get)return!0;for(var f=0;f<d.length;f++)if(!d.hasOwnProperty(f))return!0;return!1}function a(l){l.g&&St(3,JSON.stringify(te(l)))}var i={};Cl("ES5",{J:function(l,d){var p=Array.isArray(l),f=function(h,m){if(h){for(var b=Array(m.length),g=0;g<m.length;g++)Object.defineProperty(b,""+g,e(g,!0));return b}var v=ic(m);delete v[D];for(var R=$e(v),E=0;E<R.length;E++){var N=R[E];v[N]=e(N,h||!!v[N].enumerable)}return Object.create(Object.getPrototypeOf(m),v)}(p,l),y={i:p?5:4,A:d?d.A:Dr(),P:!1,I:!1,R:{},l:d,t:l,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,D,{value:y,writable:!0}),f},S:function(l,d,p){p?Mt(d)&&d[D].A===l&&o(l.p):(l.u&&function f(y){if(y&&typeof y=="object"){var h=y[D];if(h){var m=h.t,b=h.k,g=h.R,v=h.i;if(v===4)me(b,function(T){T!==D&&(m[T]!==void 0||Te(m,T)?g[T]||f(b[T]):(g[T]=!0,ee(h)))}),me(m,function(T){b[T]!==void 0||Te(b,T)||(g[T]=!1,ee(h))});else if(v===5){if(n(h)&&(ee(h),g.length=!0),b.length<m.length)for(var R=b.length;R<m.length;R++)g[R]=!1;else for(var E=m.length;E<b.length;E++)g[E]=!0;for(var N=Math.min(b.length,m.length),I=0;I<N;I++)b.hasOwnProperty(I)||(g[I]=!0),g[I]===void 0&&f(b[I])}}}}(l.p[0]),o(l.p))},K:function(l){return l.i===4?r(l):n(l)}})}var Qi,io,Zr=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Nl=typeof Map<"u",Al=typeof Set<"u",tc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",ac=Zr?Symbol.for("immer-nothing"):((Qi={})["immer-nothing"]=!0,Qi),ec=Zr?Symbol.for("immer-draftable"):"__$immer_draftable",D=Zr?Symbol.for("immer-state"):"__$immer_state";var Rl=""+Object.prototype.constructor,$e=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,ic=Object.getOwnPropertyDescriptors||function(e){var o={};return $e(e).forEach(function(r){o[r]=Object.getOwnPropertyDescriptor(e,r)}),o},Ur={},co={get:function(e,o){if(o===D)return e;var r=te(e);if(!Te(r,o))return function(a,i,l){var d,p=Xi(i,l);return p?"value"in p?p.value:(d=p.get)===null||d===void 0?void 0:d.call(a.k):void 0}(e,r,o);var n=r[o];return e.I||!wt(n)?n:n===_r(e.t,o)?(Wr(e),e.o[o]=Mr(e.A.h,n,e)):n},has:function(e,o){return o in te(e)},ownKeys:function(e){return Reflect.ownKeys(te(e))},set:function(e,o,r){var n=Xi(te(e),o);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var a=_r(te(e),o),i=a?.[D];if(i&&i.t===r)return e.o[o]=r,e.R[o]=!1,!0;if(rc(r,a)&&(r!==void 0||Te(e.t,o)))return!0;Wr(e),ee(e)}return e.o[o]===r&&(r!==void 0||o in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[o])||(e.o[o]=r,e.R[o]=!0),!0},deleteProperty:function(e,o){return _r(e.t,o)!==void 0||o in e.t?(e.R[o]=!1,Wr(e),ee(e)):delete e.R[o],e.o&&delete e.o[o],!0},getOwnPropertyDescriptor:function(e,o){var r=te(e),n=Reflect.getOwnPropertyDescriptor(r,o);return n&&{writable:!0,configurable:e.i!==1||o!=="length",enumerable:n.enumerable,value:r[o]}},defineProperty:function(){St(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){St(12)}},ao={};me(co,function(e,o){ao[e]=function(){return arguments[0]=arguments[0][0],o.apply(this,arguments)}}),ao.deleteProperty=function(e,o){return ao.set.call(this,e,o,void 0)},ao.set=function(e,o,r){return co.set.call(this,e[0],o,r,e[0])};var Ll=function(){function e(r){var n=this;this.O=tc,this.D=!0,this.produce=function(a,i,l){if(typeof a=="function"&&typeof i!="function"){var d=i;i=a;var p=n;return function(v){var R=this;v===void 0&&(v=d);for(var E=arguments.length,N=Array(E>1?E-1:0),I=1;I<E;I++)N[I-1]=arguments[I];return p.produce(v,function(T){var $;return($=i).call.apply($,[R,T].concat(N))})}}var f;if(typeof i!="function"&&St(6),l!==void 0&&typeof l!="function"&&St(7),wt(a)){var y=qi(n),h=Mr(n,a,void 0),m=!0;try{f=i(h),m=!1}finally{m?zo(y):zr(y)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(v){return $r(y,l),Br(v,y)},function(v){throw zo(y),v}):($r(y,l),Br(f,y))}if(!a||typeof a!="object"){if((f=i(a))===void 0&&(f=a),f===ac&&(f=void 0),n.D&&jr(f,!0),l){var b=[],g=[];Pt("Patches").M(a,f,b,g),l(b,g)}return f}St(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(f){for(var y=arguments.length,h=Array(y>1?y-1:0),m=1;m<y;m++)h[m-1]=arguments[m];return n.produceWithPatches(f,function(b){return a.apply(void 0,[b].concat(h))})};var l,d,p=n.produce(a,i,function(f,y){l=f,d=y});return typeof Promise<"u"&&p instanceof Promise?p.then(function(f){return[f,l,d]}):[p,l,d]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var o=e.prototype;return o.createDraft=function(r){wt(r)||St(8),Mt(r)&&(r=El(r));var n=qi(this),a=Mr(this,r,void 0);return a[D].C=!0,zr(n),a},o.finishDraft=function(r,n){var a=r&&r[D],i=a.A;return $r(i,n),Br(void 0,i)},o.setAutoFreeze=function(r){this.D=r},o.setUseProxies=function(r){r&&!tc&&St(20),this.O=r},o.applyPatches=function(r,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}a>-1&&(n=n.slice(a+1));var l=Pt("Patches").$;return Mt(r)?l(r,n):this.produce(r,function(d){return l(d,n)})},e}(),mt=new Ll,Il=mt.produce,lm=mt.produceWithPatches.bind(mt),sm=mt.setAutoFreeze.bind(mt),dm=mt.setUseProxies.bind(mt),fm=mt.applyPatches.bind(mt),pm=mt.createDraft.bind(mt),um=mt.finishDraft.bind(mt),Ho=Il;function oe(e){"@babel/helpers - typeof";return oe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},oe(e)}function Vr(e,o){if(oe(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,o||"default");if(oe(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(e)}function qr(e){var o=Vr(e,"string");return oe(o)==="symbol"?o:String(o)}function Yr(e,o,r){return o=qr(o),o in e?Object.defineProperty(e,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[o]=r,e}function cc(e,o){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);o&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Go(e){for(var o=1;o<arguments.length;o++){var r=arguments[o]!=null?arguments[o]:{};o%2?cc(Object(r),!0).forEach(function(n){Yr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tt(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var lc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Xr=function(){return Math.random().toString(36).substring(7).split("").join(".")},Fo={INIT:"@@redux/INIT"+Xr(),REPLACE:"@@redux/REPLACE"+Xr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Xr()}};function Pl(e){if(typeof e!="object"||e===null)return!1;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return Object.getPrototypeOf(e)===o}function Jr(e,o,r){var n;if(typeof o=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(tt(0));if(typeof o=="function"&&typeof r>"u"&&(r=o,o=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(tt(1));return r(Jr)(e,o)}if(typeof e!="function")throw new Error(tt(2));var a=e,i=o,l=[],d=l,p=!1;function f(){d===l&&(d=l.slice())}function y(){if(p)throw new Error(tt(3));return i}function h(v){if(typeof v!="function")throw new Error(tt(4));if(p)throw new Error(tt(5));var R=!0;return f(),d.push(v),function(){if(R){if(p)throw new Error(tt(6));R=!1,f();var N=d.indexOf(v);d.splice(N,1),l=null}}}function m(v){if(!Pl(v))throw new Error(tt(7));if(typeof v.type>"u")throw new Error(tt(8));if(p)throw new Error(tt(9));try{p=!0,i=a(i,v)}finally{p=!1}for(var R=l=d,E=0;E<R.length;E++){var N=R[E];N()}return v}function b(v){if(typeof v!="function")throw new Error(tt(10));a=v,m({type:Fo.REPLACE})}function g(){var v,R=h;return v={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(tt(11));function I(){N.next&&N.next(y())}I();var T=R(I);return{unsubscribe:T}}},v[lc]=function(){return this},v}return m({type:Fo.INIT}),n={dispatch:m,subscribe:h,getState:y,replaceReducer:b},n[lc]=g,n}function kl(e){Object.keys(e).forEach(function(o){var r=e[o],n=r(void 0,{type:Fo.INIT});if(typeof n>"u")throw new Error(tt(12));if(typeof r(void 0,{type:Fo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(tt(13))})}function sc(e){for(var o=Object.keys(e),r={},n=0;n<o.length;n++){var a=o[n];typeof e[a]=="function"&&(r[a]=e[a])}var i=Object.keys(r),l,d;try{kl(r)}catch(p){d=p}return function(f,y){if(f===void 0&&(f={}),d)throw d;if(0)var h;for(var m=!1,b={},g=0;g<i.length;g++){var v=i[g],R=r[v],E=f[v],N=R(E,y);if(typeof N>"u"){var I=y&&y.type;throw new Error(tt(14))}b[v]=N,m=m||N!==E}return m=m||i.length!==Object.keys(f).length,m?b:f}}function _e(){for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];return o.length===0?function(n){return n}:o.length===1?o[0]:o.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function dc(){for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(tt(15))},l={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},d=o.map(function(p){return p(l)});return i=_e.apply(void 0,d)(a.dispatch),Go(Go({},a),{},{dispatch:i})}}}function fc(e){var o=function(n){var a=n.dispatch,i=n.getState;return function(l){return function(d){return typeof d=="function"?d(a,i,e):l(d)}}};return o}var pc=fc();pc.withExtraArgument=fc;var Qr=pc;var gc=function(){var e=function(o,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(o,r)};return function(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(o,r);function n(){this.constructor=o}o.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Tl=function(e,o){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,l;return l={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function d(f){return function(y){return p([f,y])}}function p(f){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(i=f[0]&2?a.return:f[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,f[1])).done)return i;switch(a=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,a=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(f[0]===6&&r.label<i[1]){r.label=i[1],i=f;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(f);break}i[2]&&r.ops.pop(),r.trys.pop();continue}f=o.call(e,r)}catch(y){f=[6,y],a=0}finally{n=i=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},We=function(e,o){for(var r=0,n=o.length,a=e.length;r<n;r++,a++)e[a]=o[r];return e},$l=Object.defineProperty,Bl=Object.defineProperties,_l=Object.getOwnPropertyDescriptors,uc=Object.getOwnPropertySymbols,Wl=Object.prototype.hasOwnProperty,Dl=Object.prototype.propertyIsEnumerable,yc=function(e,o,r){return o in e?$l(e,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[o]=r},re=function(e,o){for(var r in o||(o={}))Wl.call(o,r)&&yc(e,r,o[r]);if(uc)for(var n=0,a=uc(o);n<a.length;n++){var r=a[n];Dl.call(o,r)&&yc(e,r,o[r])}return e},tn=function(e,o){return Bl(e,_l(o))},zl=function(e,o,r){return new Promise(function(n,a){var i=function(p){try{d(r.next(p))}catch(f){a(f)}},l=function(p){try{d(r.throw(p))}catch(f){a(f)}},d=function(p){return p.done?n(p.value):Promise.resolve(p.value).then(i,l)};d((r=r.apply(e,o)).next())})};var Ml=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?_e:_e.apply(null,arguments)},Pm=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Ul(e){if(typeof e!="object"||e===null)return!1;var o=Object.getPrototypeOf(e);if(o===null)return!0;for(var r=o;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return o===r}var Hl=function(e){gc(o,e);function o(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=e.apply(this,r)||this;return Object.setPrototypeOf(a,o.prototype),a}return Object.defineProperty(o,Symbol.species,{get:function(){return o},enumerable:!1,configurable:!0}),o.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},o.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(o.bind.apply(o,We([void 0],r[0].concat(this)))):new(o.bind.apply(o,We([void 0],r.concat(this))))},o}(Array),Gl=function(e){gc(o,e);function o(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=e.apply(this,r)||this;return Object.setPrototypeOf(a,o.prototype),a}return Object.defineProperty(o,Symbol.species,{get:function(){return o},enumerable:!1,configurable:!0}),o.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},o.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(o.bind.apply(o,We([void 0],r[0].concat(this)))):new(o.bind.apply(o,We([void 0],r.concat(this))))},o}(Array);function rn(e){return wt(e)?Ho(e,function(){}):e}function Fl(e){return typeof e=="boolean"}function jl(){return function(o){return Kl(o)}}function Kl(e){e===void 0&&(e={});var o=e.thunk,r=o===void 0?!0:o,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,l=i===void 0?!0:i,d=new Hl;if(r&&(Fl(r)?d.push(Qr):d.push(Qr.withExtraArgument(r.extraArgument))),0){if(a)var p;if(l)var f}return d}var en=!0;function bc(e){var o=jl(),r=e||{},n=r.reducer,a=n===void 0?void 0:n,i=r.middleware,l=i===void 0?o():i,d=r.devTools,p=d===void 0?!0:d,f=r.preloadedState,y=f===void 0?void 0:f,h=r.enhancers,m=h===void 0?void 0:h,b;if(typeof a=="function")b=a;else if(Ul(a))b=sc(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var g=l;if(typeof g=="function"&&(g=g(o),!en&&!Array.isArray(g)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!en&&g.some(function(T){return typeof T!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=dc.apply(void 0,g),R=_e;p&&(R=Ml(re({trace:!en},typeof p=="object"&&p)));var E=new Gl(v),N=E;Array.isArray(m)?N=We([v],m):typeof m=="function"&&(N=m(E));var I=R.apply(void 0,N);return Jr(b,y,I)}function ne(e,o){function r(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(o){var i=o.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return re(re({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}function xc(e){var o={},r=[],n,a={addCase:function(i,l){var d=typeof i=="string"?i:i.type;if(d in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[d]=l,a},addMatcher:function(i,l){return r.push({matcher:i,reducer:l}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[o,r,n]}function Zl(e){return typeof e=="function"}function Vl(e,o,r,n){r===void 0&&(r=[]);var a=typeof o=="function"?xc(o):[o,r,n],i=a[0],l=a[1],d=a[2],p;if(Zl(e))p=function(){return rn(e())};else{var f=rn(e);p=function(){return f}}function y(h,m){h===void 0&&(h=p());var b=We([i[m.type]],l.filter(function(g){var v=g.matcher;return v(m)}).map(function(g){var v=g.reducer;return v}));return b.filter(function(g){return!!g}).length===0&&(b=[d]),b.reduce(function(g,v){if(v)if(Mt(g)){var R=g,E=v(R,m);return E===void 0?g:E}else{if(wt(g))return Ho(g,function(N){return v(N,m)});var E=v(g,m);if(E===void 0){if(g===null)return g;throw Error("A case reducer on a non-draftable value must not return undefined")}return E}return g},h)}return y.getInitialState=p,y}function ql(e,o){return e+"/"+o}function vc(e){var o=e.name;if(!o)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:rn(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},l={},d={};a.forEach(function(y){var h=n[y],m=ql(o,y),b,g;"reducer"in h?(b=h.reducer,g=h.prepare):b=h,i[y]=b,l[m]=b,d[y]=g?ne(m,g):ne(m)});function p(){var y=typeof e.extraReducers=="function"?xc(e.extraReducers):[e.extraReducers],h=y[0],m=h===void 0?{}:h,b=y[1],g=b===void 0?[]:b,v=y[2],R=v===void 0?void 0:v,E=re(re({},m),l);return Vl(r,function(N){for(var I in E)N.addCase(I,E[I]);for(var T=0,$=g;T<$.length;T++){var gt=$[T];N.addMatcher(gt.matcher,gt.reducer)}R&&N.addDefaultCase(R)})}var f;return{name:o,reducer:function(y,h){return f||(f=p()),f(y,h)},actions:d,caseReducers:i,getInitialState:function(){return f||(f=p()),f.getInitialState()}}}var Yl="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Xl=function(e){e===void 0&&(e=21);for(var o="",r=e;r--;)o+=Yl[Math.random()*64|0];return o},Jl=["name","message","stack","code"],on=function(){function e(o,r){this.payload=o,this.meta=r}return e}(),hc=function(){function e(o,r){this.payload=o,this.meta=r}return e}(),Ql=function(e){if(typeof e=="object"&&e!==null){for(var o={},r=0,n=Jl;r<n.length;r++){var a=n[r];typeof e[a]=="string"&&(o[a]=e[a])}return o}return{message:String(e)}},Bm=function(){function e(o,r,n){var a=ne(o+"/fulfilled",function(y,h,m,b){return{payload:y,meta:tn(re({},b||{}),{arg:m,requestId:h,requestStatus:"fulfilled"})}}),i=ne(o+"/pending",function(y,h,m){return{payload:void 0,meta:tn(re({},m||{}),{arg:h,requestId:y,requestStatus:"pending"})}}),l=ne(o+"/rejected",function(y,h,m,b,g){return{payload:b,error:(n&&n.serializeError||Ql)(y||"Rejected"),meta:tn(re({},g||{}),{arg:m,requestId:h,rejectedWithValue:!!b,requestStatus:"rejected",aborted:y?.name==="AbortError",condition:y?.name==="ConditionError"})}}),d=!1,p=typeof AbortController<"u"?AbortController:function(){function y(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return y.prototype.abort=function(){},y}();function f(y){return function(h,m,b){var g=n?.idGenerator?n.idGenerator(y):Xl(),v=new p,R,E=!1;function N(T){R=T,v.abort()}var I=function(){return zl(this,null,function(){var T,$,gt,Ht,ir,Gt,pt;return Tl(this,function(bt){switch(bt.label){case 0:return bt.trys.push([0,4,,5]),Ht=(T=n?.condition)==null?void 0:T.call(n,y,{getState:m,extra:b}),es(Ht)?[4,Ht]:[3,2];case 1:Ht=bt.sent(),bt.label=2;case 2:if(Ht===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return E=!0,ir=new Promise(function(ut,ae){return v.signal.addEventListener("abort",function(){return ae({name:"AbortError",message:R||"Aborted"})})}),h(i(g,y,($=n?.getPendingMeta)==null?void 0:$.call(n,{requestId:g,arg:y},{getState:m,extra:b}))),[4,Promise.race([ir,Promise.resolve(r(y,{dispatch:h,getState:m,extra:b,requestId:g,signal:v.signal,abort:N,rejectWithValue:function(ut,ae){return new on(ut,ae)},fulfillWithValue:function(ut,ae){return new hc(ut,ae)}})).then(function(ut){if(ut instanceof on)throw ut;return ut instanceof hc?a(ut.payload,g,y,ut.meta):a(ut,g,y)})])];case 3:return gt=bt.sent(),[3,5];case 4:return Gt=bt.sent(),gt=Gt instanceof on?l(null,g,y,Gt.payload,Gt.meta):l(Gt,g,y),[3,5];case 5:return pt=n&&!n.dispatchConditionRejection&&l.match(gt)&>.meta.condition,pt||h(gt),[2,gt]}})})}();return Object.assign(I,{abort:N,requestId:g,arg:y,unwrap:function(){return I.then(ts)}})}}return Object.assign(f,{pending:i,rejected:l,fulfilled:a,typePrefix:o})}return e.withTypes=function(){return e},e}();function ts(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function es(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Sc="listener",Oc="completed",Cc="cancelled",_m="task-"+Cc,Wm="task-"+Oc,Dm=Sc+"-"+Cc,zm=Sc+"-"+Oc;var nn="listenerMiddleware";var Mm=ne(nn+"/add"),Um=ne(nn+"/removeAll"),Hm=ne(nn+"/remove");var mc,Gm=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(mc||(mc=Promise.resolve())).then(e).catch(function(o){return setTimeout(function(){throw o},0)})},os=function(e){return function(o){setTimeout(o,e)}},Fm=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:os(10);nc();function rs(e,o){return class extends e{constructor(){super(...arguments),this.eventBus=o??document.createElement("span")}addEventListener(r,n,a){this.eventBus.addEventListener(r,n,a)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,a){this.eventBus.removeEventListener(r,n,a)}}}var jo=class extends rs(Object){};window.ftReduxStores||(window.ftReduxStores={});var wc=class e extends jo{static get(o){var r;let n=typeof o=="string"?o:o.name,a=typeof o=="string"?void 0:o,i=window.ftReduxStores[n];if(oo(i))return i;if(a==null)return;let l=vc({...a,reducers:(r=a.reducers)!==null&&r!==void 0?r:{}}),d=bc({reducer:(p,f)=>f.type==="CLEAR_FT_REDUX_STORE"?l.getInitialState():typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...f.overwrites}:l.reducer(p,f)});return window.ftReduxStores[a.name]=new e(l,d)}constructor(o,r){super(),this.reduxSlice=o,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new $o,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,a,i)=>{let l=a,d=n[l];return d?(...p)=>{let f=d(...p);return this.reduxStore.dispatch(f),f}:p=>{this.setState({[l]:p})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(o){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(o).join("_"),overwrites:o})}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(o){throw new Error("Not implemented yet.")}subscribe(o){return this.reduxStore.subscribe(o)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var qo=S(P());var Ko=class extends Yt{async listMySearches(){let o=L.getState().session;return o?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(o.profile.userId),5*60*1e3):[]}};var Zo=class extends Yt{async listMyBookmarks(){let o=L.getState().session;return o?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(o.profile.userId),5*60*1e3):[]}};var as="ft-user-assets",Vo=qo.FtReduxStore.get({name:as,initialState:{savedSearches:void 0,bookmarks:void 0}}),an=class{constructor(){this.currentSession=L.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Zo,this.savedSearchesService=new Ko,L.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var o;let{session:r}=L.getState();(0,qo.deepEqual)((o=this.currentSession)===null||o===void 0?void 0:o.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Vo.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Vo.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let o=await this.savedSearchesService.listMySearches();Vo.actions.savedSearches(o)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var o;if(this.bookmarksAreUsed){let r=!((o=this.currentSession)===null||o===void 0)&&o.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Vo.actions.bookmarks(r)}}},Og=new an;var cn=class{addCommand(o,r=!1){L.commands.add(o,r)}consumeCommand(o){return L.commands.consume(o)}};window.FluidTopicsAppInfoStoreService=new cn;var Ec=S(P()),ln=class{highlightHtml(o,r,n){(0,Ec.highlightHtml)(o,r,n)}};window.FluidTopicsHighlightHtmlService=new ln;var Nc=S(P());var sn=class{isDate(o){var r,n,a,i;return(i=(a=((n=(r=L.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(d=>d.key===o))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(o,r){var n,a,i;return Nc.DateFormatter.format(o,(n=r?.locale)!==null&&n!==void 0?n:L.getState().uiLocale,(a=r?.longFormat)!==null&&a!==void 0?a:!1,(i=r?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new sn;var is=S(P());(0,Ac.customElement)("ft-app-context")(H);var Lc=S(K()),cs=function(e,o,r,n){var a=arguments.length,i=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(i=(a<3?l(i):a>3?l(o,r,i):l(o,r))||i);return a>3&&i&&Object.defineProperty(o,r,i),i},dn=Symbol("i18nAttributes"),fn=Symbol("i18nListAttributes"),Yo=Symbol("i18nProperties"),lo=Symbol("i18nUnsubs");function Qo(e){var o;class r extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[o]=new Map}get i18nService(){return this.useCustomMessageContexts?Bi:ye}i18n(a,i,...l){var d;if(typeof a=="string")return this.i18nService.resolveMessage(a,i,...l);let p=(d=a.args)!==null&&d!==void 0?d:a.argsProvider?a.argsProvider(this):[];return this.i18nService.resolveMessage(a.context,a.key,...p)}onI18nUpdate(a){var i,l,d;(i=this[dn])===null||i===void 0||i.forEach((p,f)=>{let y=this.getI18nAttributeValue(f);y&&(this[f]=this.getI18nAttributeMessage(y,p,a))}),(l=this[fn])===null||l===void 0||l.forEach((p,f)=>{let y=this.getI18nListAttributeValues(f);this[f]=y?.map(h=>this.getI18nAttributeMessage(h,p,a))}),(d=this[Yo])===null||d===void 0||d.forEach((p,f)=>{p.context.toLowerCase()===a.toLowerCase()&&(this[f]=this.i18n(p))}),setTimeout(()=>this.requestUpdate(),0)}buildI18nAttributeMessage(a,i){return{...a,message:this.i18n({context:a.context,key:a.key,...i})}}getI18nAttributeMessage(a,i,l){var d;let p=!l||((d=a.context)===null||d===void 0?void 0:d.toLowerCase())===l.toLowerCase();return a.context&&a.key&&p?this.buildI18nAttributeMessage(a,i):a}update(a){var i,l,d;super.update(a),(i=this[dn])===null||i===void 0||i.forEach((p,f)=>{let y=this.getI18nAttributeValue(f);y?.context&&y.key&&(a.has(f)||p.argsProvider!=null)&&(this.addI18nContextIfNeeded(y,a,f),this[f]=this.getI18nAttributeMessage(y,p))}),(l=this[fn])===null||l===void 0||l.forEach((p,f)=>{let y=this.getI18nListAttributeValues(f);(a.has(f)||p.argsProvider!=null)&&(this[f]=y?.map(h=>(this.addI18nContextIfNeeded(h,a,f),this.getI18nAttributeMessage(h,p))))}),(d=this[Yo])===null||d===void 0||d.forEach((p,f)=>{p.argsProvider!=null&&(this[f]=this.i18n(p))})}getI18nAttributeValue(a){return this[a]}getI18nListAttributeValues(a){return this[a]}addI18nContextIfNeeded(a,i,l){a.context&&a.key&&i.has(l)&&this.addI18nContext(a.context)}connectedCallback(){var a,i,l,d,p,f;super.connectedCallback(),new Set([...(i=(a=this[Yo])===null||a===void 0?void 0:a.values())!==null&&i!==void 0?i:[],...[...(d=(l=this[dn])===null||l===void 0?void 0:l.keys())!==null&&d!==void 0?d:[]].map(y=>this.getI18nAttributeValue(y)),...[...(f=(p=this[fn])===null||p===void 0?void 0:p.keys())!==null&&f!==void 0?f:[]].flatMap(y=>this.getI18nListAttributeValues(y))].map(y=>y?.context)).forEach(y=>y&&this.addI18nMessages(y))}addI18nMessages(a,i){a=a.toLowerCase(),this[lo].has(a)||this[lo].set(a,this.i18nService.subscribe(a,()=>this.onI18nUpdate(a))),this.i18nService.prepareContext(a,i??{}),this.onI18nUpdate(a)}addI18nContext(a,i){this.addI18nMessages(typeof a=="string"?a:a.name,i)}disconnectedCallback(){super.disconnectedCallback(),this[lo].forEach(a=>a()),this[lo].clear()}}return o=lo,cs([(0,Lc.property)({type:Boolean})],r.prototype,"useCustomMessageContexts",void 0),r}var Rc=class extends Qo(Jo.FtLitElement){},Xo=class extends Qo(Jo.FtLitElementRedux){};var so=function(e,o,r,n){var a=arguments.length,i=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(i=(a<3?l(i):a>3?l(o,r,i):l(o,r))||i);return a>3&&i&&Object.defineProperty(o,r,i),i},Et=class extends Xo{constructor(){super(),this.editorMode=!1,this.addStore(L)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":tr.nothing:tr.html`
|
|
1130
|
+
`}update(o){var r,n,a,i,l;super.update(o),o.has("baseUrl")&&(L.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),o.has("apiIntegrationIdentifier")&&L.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),o.has("uiLocale")&&L.actions.uiLocale(this.uiLocale),o.has("metadataConfiguration")&&L.actions.metadataConfiguration(this.metadataConfiguration),o.has("noCustom")&&L.actions.noCustom(this.noCustom),o.has("editorMode")&&L.actions.editorMode(this.editorMode),o.has("noCustomComponent")&&L.actions.noCustomComponent(this.noCustomComponent),o.has("session")&&L.actions.session(this.session),o.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(d=>ye.addContext(d)),o.has("openExternalDocumentInNewTab")&&L.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),o.has("navigatorOnline")&&L.actions.navigatorOnline(this.navigatorOnline),o.has("forcedOffline")&&L.actions.forcedOffline(this.forcedOffline),o.has("localesConfiguration")&&(L.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),L.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),L.actions.searchInAllLanguagesAllowed((l=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&l!==void 0?l:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let o=await this.apiProvider().getCurrentSession();return o.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},o.idleTimeoutInMillis),o})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};H.elementDefinitions={};H.styles=Ti;Q([(0,dt.property)()],H.prototype,"baseUrl",void 0);Q([(0,dt.property)()],H.prototype,"apiIntegrationIdentifier",void 0);Q([(0,dt.property)()],H.prototype,"uiLocale",void 0);Q([(0,Ct.jsonProperty)(null)],H.prototype,"availableUiLocales",void 0);Q([(0,Ct.jsonProperty)(null)],H.prototype,"metadataConfiguration",void 0);Q([(0,dt.property)({type:Boolean})],H.prototype,"editorMode",void 0);Q([(0,dt.property)({type:Boolean})],H.prototype,"noCustom",void 0);Q([(0,dt.property)({type:Boolean})],H.prototype,"openExternalDocumentInNewTab",void 0);Q([(0,dt.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],H.prototype,"noCustomComponent",void 0);Q([(0,dt.property)({type:Boolean})],H.prototype,"withManualResources",void 0);Q([(0,dt.property)({type:Boolean})],H.prototype,"navigatorOnline",void 0);Q([(0,dt.property)({type:Boolean})],H.prototype,"forcedOffline",void 0);Q([(0,dt.property)({type:Object})],H.prototype,"apiProvider",void 0);Q([(0,Ct.jsonProperty)([])],H.prototype,"messageContexts",void 0);Q([(0,Ct.jsonProperty)(void 0)],H.prototype,"session",void 0);Q([(0,dt.state)()],H.prototype,"localesConfiguration",void 0);var ns=S(K());function bl(e,o){if(e===o)return!0;if(e&&o&&typeof e=="object"&&typeof o=="object"){if(e.constructor!==o.constructor)return!1;var r,n,a;if(Array.isArray(e)){if(r=e.length,r!=o.length)return!1;for(n=r;n--!==0;)if(!To(e[n],o[n]))return!1;return!0}if(e instanceof Map&&o instanceof Map){if(e.size!==o.size)return!1;for(n of e.entries())if(!o.has(n[0]))return!1;for(n of e.entries())if(!To(n[1],o.get(n[0])))return!1;return!0}if(e instanceof Set&&o instanceof Set){if(e.size!==o.size)return!1;for(n of e.entries())if(!o.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===o.source&&e.flags===o.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===o.valueOf();if(a=Object.keys(e),r=a.length,r!==Object.keys(o).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(o,a[n]))return!1;for(n=r;n--!==0;){var i=a[n];if(!To(e[i],o[i]))return!1}return!0}return e!==e&&o!==o}function To(e,o){try{return bl(e,o)}catch{return!1}}function $o(e,o){return!To(e,o)}var xl=S(K(),1);var Bo=class{constructor(){this.queue=[]}add(o,r=!1){r&&(this.queue=this.queue.filter(n=>n.type!==o.type)),this.queue.push(o)}consume(o){let r=this.queue.find(n=>n.type===o);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}};var eo=S(K(),1);var Wi=S(K(),1);function Di(e,o){let r=()=>JSON.parse(JSON.stringify(e));return(0,Wi.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return r();try{return JSON.parse(n)}catch{return r()}},toAttribute:n=>JSON.stringify(n)},hasChanged:$o,...o??{}})}var _o=class{constructor(o=0){this.timeout=o,this.callbacks=[]}run(o,r){return this.callbacks=[o],this.debounce(r)}queue(o,r){return this.callbacks.push(o),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(o){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),o??this.timeout),this.promise}async runCallbacks(){var o,r;let n=[...this.callbacks];this.callbacks=[];let a=(o=this.rejectPromise)!==null&&o!==void 0?o:()=>null,i=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let l of n)try{await l()}catch(d){a(d);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Mi=S(B(),1);var Wo=window,vl=Wo.ShadowRoot&&(Wo.ShadyCSS===void 0||Wo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Yh=Symbol();var zi=(e,o)=>{vl?e.adoptedStyleSheets=o.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):o.forEach(r=>{let n=document.createElement("style"),a=Wo.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=r.cssText,e.appendChild(n)})};var Do=class extends Mi.LitElement{createRenderRoot(){let o=this.constructor;o.elementDefinitions&&!o.registry&&(o.registry=new CustomElementRegistry,Object.entries(o.elementDefinitions).forEach(([a,i])=>o.registry.define(a,i)));let r={...o.shadowRootOptions,customElements:o.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return zi(n,o.elementStyles),n}};var zo=function(e,o,r,n){var a=arguments.length,i=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(i=(a<3?l(i):a>3?l(o,r,i):l(o,r))||i);return a>3&&i&&Object.defineProperty(o,r,i),i},Fi,Ui=Symbol("constructorPrototype"),Hi=Symbol("constructorName"),ji=Symbol("exportpartsDebouncer"),Gi=Symbol("dynamicDependenciesLoaded"),Jt=class extends Do{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Fi]=new _o(5),this[Hi]=this.constructor.name,this[Ui]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Hi]&&Object.setPrototypeOf(this,this[Ui])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let o=this.constructor;o[Gi]||(o[Gi]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(o){super.updated(o),this.updateComplete.then(()=>{this.contentAvailableCallback(o),this.applyCustomStylesheet(o),this.scheduleExportpartsUpdate()})}contentAvailableCallback(o){}applyCustomStylesheet(o){var r,n,a;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(o.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}scheduleExportpartsUpdate(){var o,r,n;(!((o=this.exportpartsPrefix)===null||o===void 0)&&o.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[ji].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(o){var r,n,a,i,l,d;let p=m=>m!=null&&m.trim().length>0,f=o.filter(p).map(m=>m.trim());if(f.length===0){this.removeAttribute("exportparts");return}let y=new Set;for(let m of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let b=(i=(a=m.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],g=(d=(l=m.getAttribute("exportparts"))===null||l===void 0?void 0:l.split(",").map(v=>v.split(":")[1]))!==null&&d!==void 0?d:[];new Array(...b,...g).filter(p).map(v=>v.trim()).forEach(v=>y.add(v))}if(y.size===0){this.removeAttribute("exportparts");return}let h=[...y.values()].flatMap(m=>f.map(b=>`${m}:${b}--${m}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};Fi=ji;zo([(0,eo.property)()],Jt.prototype,"exportpartsPrefix",void 0);zo([Di([])],Jt.prototype,"exportpartsPrefixes",void 0);zo([(0,eo.property)()],Jt.prototype,"customStylesheet",void 0);zo([(0,eo.state)()],Jt.prototype,"useAdoptedStyleSheets",void 0);function oo(e){var o;return(o=e?.isFtReduxStore)!==null&&o!==void 0?o:!1}var Ki,Zi,Vi,ro=Symbol("internalReduxEventsUnsubscribers"),Qt=Symbol("internalStoresUnsubscribers"),he=Symbol("internalStores"),no=class extends Jt{constructor(){super(...arguments),this[Ki]=new Map,this[Zi]=new Map,this[Vi]=new Map}get reduxConstructor(){return this.constructor}update(o){super.update(o),[...this.reduxConstructor.reduxReactiveProperties].some(r=>o.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[he].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[he].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[he].get(o)}addStore(o,r){var n;r=(n=r??(oo(o)?o.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(r),this[he].set(r,o),this.subscribeToStore(r,o),this.updateFromStores()}removeStore(o){let r=typeof o=="string"?o:o.name;this.unsubscribeFromStore(r),this[he].delete(r)}setupStores(){this.unsubscribeFromStores(),this[he].forEach((o,r)=>this.subscribeToStore(r,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,r)=>{let n=this.constructor.getPropertyOptions(r);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:r)){let a=this.getStore(o.store);a&&(o.store?this[Qt].has(o.store):this[Qt].size>0)&&(this[r]=o.selector(a.getState(),this))}})}subscribeToStore(o,r){var n;this[Qt].set(o,r.subscribe(()=>this.updateFromStores())),this[ro].set(o,[]),oo(r)&&r.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||r.name===a.store)){let l=d=>this[i](d);r.addEventListener(a.eventName,l),this[ro].get(o).push(()=>r.removeEventListener(a.eventName,l))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[Qt].forEach((o,r)=>this.unsubscribeFromStore(r))}unsubscribeFromStore(o){var r;this[Qt].has(o)&&this[Qt].get(o)(),this[Qt].delete(o),(r=this[ro].get(o))===null||r===void 0||r.forEach(n=>n()),this[ro].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Ki=Qt,Zi=he,Vi=ro;no.reduxProperties=new Map;no.reduxReactiveProperties=new Set;no.reduxEventListeners=new Map;function St(e){for(var o=arguments.length,r=Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(l){return"'"+l+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Mt(e){return!!e&&!!e[D]}function wt(e){var o;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===Rl}(e)||Array.isArray(e)||!!e[ec]||!!(!((o=e.constructor)===null||o===void 0)&&o[ec])||Hr(e)||Gr(e))}function me(e,o,r){r===void 0&&(r=!1),Be(e)===0?(r?Object.keys:$e)(e).forEach(function(n){r&&typeof n=="symbol"||o(n,e[n],e)}):e.forEach(function(n,a){return o(a,n,e)})}function Be(e){var o=e[D];return o?o.i>3?o.i-4:o.i:Array.isArray(e)?1:Hr(e)?2:Gr(e)?3:0}function Te(e,o){return Be(e)===2?e.has(o):Object.prototype.hasOwnProperty.call(e,o)}function Sl(e,o){return Be(e)===2?e.get(o):e[o]}function oc(e,o,r){var n=Be(e);n===2?e.set(o,r):n===3?e.add(r):e[o]=r}function rc(e,o){return e===o?e!==0||1/e==1/o:e!=e&&o!=o}function Hr(e){return Nl&&e instanceof Map}function Gr(e){return Al&&e instanceof Set}function te(e){return e.o||e.t}function Fr(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var o=ic(e);delete o[D];for(var r=$e(o),n=0;n<r.length;n++){var a=r[n],i=o[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(o[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),o)}function jr(e,o){return o===void 0&&(o=!1),Kr(e)||Mt(e)||!wt(e)||(Be(e)>1&&(e.set=e.add=e.clear=e.delete=Ol),Object.freeze(e),o&&me(e,function(r,n){return jr(n,!0)},!0)),e}function Ol(){St(2)}function Kr(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Pt(e){var o=Ur[e];return o||St(18,e),o}function Cl(e,o){Ur[e]||(Ur[e]=o)}function Dr(){return io}function $r(e,o){o&&(Pt("Patches"),e.u=[],e.s=[],e.v=o)}function Mo(e){zr(e),e.p.forEach(wl),e.p=null}function zr(e){e===io&&(io=e.l)}function qi(e){return io={p:[],l:io,h:e,m:!0,_:0}}function wl(e){var o=e[D];o.i===0||o.i===1?o.j():o.g=!0}function Br(e,o){o._=o.p.length;var r=o.p[0],n=e!==void 0&&e!==r;return o.h.O||Pt("ES5").S(o,e,n),n?(r[D].P&&(Mo(o),St(4)),wt(e)&&(e=Uo(o,e),o.l||Ho(o,e)),o.u&&Pt("Patches").M(r[D].t,e,o.u,o.s)):e=Uo(o,r,[]),Mo(o),o.u&&o.v(o.u,o.s),e!==ac?e:void 0}function Uo(e,o,r){if(Kr(o))return o;var n=o[D];if(!n)return me(o,function(d,p){return Yi(e,n,o,d,p,r)},!0),o;if(n.A!==e)return o;if(!n.P)return Ho(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Fr(n.k):n.o,i=a,l=!1;n.i===3&&(i=new Set(a),a.clear(),l=!0),me(i,function(d,p){return Yi(e,n,a,d,p,r,l)}),Ho(e,a,!1),r&&e.u&&Pt("Patches").N(n,r,e.u,e.s)}return n.o}function Yi(e,o,r,n,a,i,l){if(Mt(a)){var d=Uo(e,a,i&&o&&o.i!==3&&!Te(o.R,n)?i.concat(n):void 0);if(oc(r,n,d),!Mt(d))return;e.m=!1}else l&&r.add(a);if(wt(a)&&!Kr(a)){if(!e.h.D&&e._<1)return;Uo(e,a),o&&o.A.l||Ho(e,a)}}function Ho(e,o,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&jr(o,r)}function _r(e,o){var r=e[D];return(r?te(r):e)[o]}function Xi(e,o){if(o in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,o);if(n)return n;r=Object.getPrototypeOf(r)}}function ee(e){e.P||(e.P=!0,e.l&&ee(e.l))}function Wr(e){e.o||(e.o=Fr(e.t))}function Mr(e,o,r){var n=Hr(o)?Pt("MapSet").F(o,r):Gr(o)?Pt("MapSet").T(o,r):e.O?function(a,i){var l=Array.isArray(a),d={i:l?1:0,A:i?i.A:Dr(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},p=d,f=co;l&&(p=[d],f=ao);var y=Proxy.revocable(p,f),h=y.revoke,m=y.proxy;return d.k=m,d.j=h,m}(o,r):Pt("ES5").J(o,r);return(r?r.A:Dr()).p.push(n),n}function El(e){return Mt(e)||St(22,e),function o(r){if(!wt(r))return r;var n,a=r[D],i=Be(r);if(a){if(!a.P&&(a.i<4||!Pt("ES5").K(a)))return a.t;a.I=!0,n=Ji(r,i),a.I=!1}else n=Ji(r,i);return me(n,function(l,d){a&&Sl(a.t,l)===d||oc(n,l,o(d))}),i===3?new Set(n):n}(e)}function Ji(e,o){switch(o){case 2:return new Map(e);case 3:return Array.from(e)}return Fr(e)}function nc(){function e(l,d){var p=i[l];return p?p.enumerable=d:i[l]=p={configurable:!0,enumerable:d,get:function(){var f=this[D];return co.get(f,l)},set:function(f){var y=this[D];co.set(y,l,f)}},p}function o(l){for(var d=l.length-1;d>=0;d--){var p=l[d][D];if(!p.P)switch(p.i){case 5:n(p)&&ee(p);break;case 4:r(p)&&ee(p)}}}function r(l){for(var d=l.t,p=l.k,f=$e(p),y=f.length-1;y>=0;y--){var h=f[y];if(h!==D){var m=d[h];if(m===void 0&&!Te(d,h))return!0;var b=p[h],g=b&&b[D];if(g?g.t!==m:!rc(b,m))return!0}}var v=!!d[D];return f.length!==$e(d).length+(v?0:1)}function n(l){var d=l.k;if(d.length!==l.t.length)return!0;var p=Object.getOwnPropertyDescriptor(d,d.length-1);if(p&&!p.get)return!0;for(var f=0;f<d.length;f++)if(!d.hasOwnProperty(f))return!0;return!1}function a(l){l.g&&St(3,JSON.stringify(te(l)))}var i={};Cl("ES5",{J:function(l,d){var p=Array.isArray(l),f=function(h,m){if(h){for(var b=Array(m.length),g=0;g<m.length;g++)Object.defineProperty(b,""+g,e(g,!0));return b}var v=ic(m);delete v[D];for(var R=$e(v),E=0;E<R.length;E++){var N=R[E];v[N]=e(N,h||!!v[N].enumerable)}return Object.create(Object.getPrototypeOf(m),v)}(p,l),y={i:p?5:4,A:d?d.A:Dr(),P:!1,I:!1,R:{},l:d,t:l,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,D,{value:y,writable:!0}),f},S:function(l,d,p){p?Mt(d)&&d[D].A===l&&o(l.p):(l.u&&function f(y){if(y&&typeof y=="object"){var h=y[D];if(h){var m=h.t,b=h.k,g=h.R,v=h.i;if(v===4)me(b,function(T){T!==D&&(m[T]!==void 0||Te(m,T)?g[T]||f(b[T]):(g[T]=!0,ee(h)))}),me(m,function(T){b[T]!==void 0||Te(b,T)||(g[T]=!1,ee(h))});else if(v===5){if(n(h)&&(ee(h),g.length=!0),b.length<m.length)for(var R=b.length;R<m.length;R++)g[R]=!1;else for(var E=m.length;E<b.length;E++)g[E]=!0;for(var N=Math.min(b.length,m.length),I=0;I<N;I++)b.hasOwnProperty(I)||(g[I]=!0),g[I]===void 0&&f(b[I])}}}}(l.p[0]),o(l.p))},K:function(l){return l.i===4?r(l):n(l)}})}var Qi,io,Zr=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Nl=typeof Map<"u",Al=typeof Set<"u",tc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",ac=Zr?Symbol.for("immer-nothing"):((Qi={})["immer-nothing"]=!0,Qi),ec=Zr?Symbol.for("immer-draftable"):"__$immer_draftable",D=Zr?Symbol.for("immer-state"):"__$immer_state";var Rl=""+Object.prototype.constructor,$e=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,ic=Object.getOwnPropertyDescriptors||function(e){var o={};return $e(e).forEach(function(r){o[r]=Object.getOwnPropertyDescriptor(e,r)}),o},Ur={},co={get:function(e,o){if(o===D)return e;var r=te(e);if(!Te(r,o))return function(a,i,l){var d,p=Xi(i,l);return p?"value"in p?p.value:(d=p.get)===null||d===void 0?void 0:d.call(a.k):void 0}(e,r,o);var n=r[o];return e.I||!wt(n)?n:n===_r(e.t,o)?(Wr(e),e.o[o]=Mr(e.A.h,n,e)):n},has:function(e,o){return o in te(e)},ownKeys:function(e){return Reflect.ownKeys(te(e))},set:function(e,o,r){var n=Xi(te(e),o);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var a=_r(te(e),o),i=a?.[D];if(i&&i.t===r)return e.o[o]=r,e.R[o]=!1,!0;if(rc(r,a)&&(r!==void 0||Te(e.t,o)))return!0;Wr(e),ee(e)}return e.o[o]===r&&(r!==void 0||o in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[o])||(e.o[o]=r,e.R[o]=!0),!0},deleteProperty:function(e,o){return _r(e.t,o)!==void 0||o in e.t?(e.R[o]=!1,Wr(e),ee(e)):delete e.R[o],e.o&&delete e.o[o],!0},getOwnPropertyDescriptor:function(e,o){var r=te(e),n=Reflect.getOwnPropertyDescriptor(r,o);return n&&{writable:!0,configurable:e.i!==1||o!=="length",enumerable:n.enumerable,value:r[o]}},defineProperty:function(){St(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){St(12)}},ao={};me(co,function(e,o){ao[e]=function(){return arguments[0]=arguments[0][0],o.apply(this,arguments)}}),ao.deleteProperty=function(e,o){return ao.set.call(this,e,o,void 0)},ao.set=function(e,o,r){return co.set.call(this,e[0],o,r,e[0])};var Ll=function(){function e(r){var n=this;this.O=tc,this.D=!0,this.produce=function(a,i,l){if(typeof a=="function"&&typeof i!="function"){var d=i;i=a;var p=n;return function(v){var R=this;v===void 0&&(v=d);for(var E=arguments.length,N=Array(E>1?E-1:0),I=1;I<E;I++)N[I-1]=arguments[I];return p.produce(v,function(T){var $;return($=i).call.apply($,[R,T].concat(N))})}}var f;if(typeof i!="function"&&St(6),l!==void 0&&typeof l!="function"&&St(7),wt(a)){var y=qi(n),h=Mr(n,a,void 0),m=!0;try{f=i(h),m=!1}finally{m?Mo(y):zr(y)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(v){return $r(y,l),Br(v,y)},function(v){throw Mo(y),v}):($r(y,l),Br(f,y))}if(!a||typeof a!="object"){if((f=i(a))===void 0&&(f=a),f===ac&&(f=void 0),n.D&&jr(f,!0),l){var b=[],g=[];Pt("Patches").M(a,f,b,g),l(b,g)}return f}St(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(f){for(var y=arguments.length,h=Array(y>1?y-1:0),m=1;m<y;m++)h[m-1]=arguments[m];return n.produceWithPatches(f,function(b){return a.apply(void 0,[b].concat(h))})};var l,d,p=n.produce(a,i,function(f,y){l=f,d=y});return typeof Promise<"u"&&p instanceof Promise?p.then(function(f){return[f,l,d]}):[p,l,d]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var o=e.prototype;return o.createDraft=function(r){wt(r)||St(8),Mt(r)&&(r=El(r));var n=qi(this),a=Mr(this,r,void 0);return a[D].C=!0,zr(n),a},o.finishDraft=function(r,n){var a=r&&r[D],i=a.A;return $r(i,n),Br(void 0,i)},o.setAutoFreeze=function(r){this.D=r},o.setUseProxies=function(r){r&&!tc&&St(20),this.O=r},o.applyPatches=function(r,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}a>-1&&(n=n.slice(a+1));var l=Pt("Patches").$;return Mt(r)?l(r,n):this.produce(r,function(d){return l(d,n)})},e}(),mt=new Ll,Il=mt.produce,lm=mt.produceWithPatches.bind(mt),sm=mt.setAutoFreeze.bind(mt),dm=mt.setUseProxies.bind(mt),fm=mt.applyPatches.bind(mt),pm=mt.createDraft.bind(mt),um=mt.finishDraft.bind(mt),Go=Il;function oe(e){"@babel/helpers - typeof";return oe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},oe(e)}function Vr(e,o){if(oe(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,o||"default");if(oe(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(e)}function qr(e){var o=Vr(e,"string");return oe(o)==="symbol"?o:String(o)}function Yr(e,o,r){return o=qr(o),o in e?Object.defineProperty(e,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[o]=r,e}function cc(e,o){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);o&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Fo(e){for(var o=1;o<arguments.length;o++){var r=arguments[o]!=null?arguments[o]:{};o%2?cc(Object(r),!0).forEach(function(n){Yr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tt(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var lc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Xr=function(){return Math.random().toString(36).substring(7).split("").join(".")},jo={INIT:"@@redux/INIT"+Xr(),REPLACE:"@@redux/REPLACE"+Xr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Xr()}};function Pl(e){if(typeof e!="object"||e===null)return!1;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return Object.getPrototypeOf(e)===o}function Jr(e,o,r){var n;if(typeof o=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(tt(0));if(typeof o=="function"&&typeof r>"u"&&(r=o,o=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(tt(1));return r(Jr)(e,o)}if(typeof e!="function")throw new Error(tt(2));var a=e,i=o,l=[],d=l,p=!1;function f(){d===l&&(d=l.slice())}function y(){if(p)throw new Error(tt(3));return i}function h(v){if(typeof v!="function")throw new Error(tt(4));if(p)throw new Error(tt(5));var R=!0;return f(),d.push(v),function(){if(R){if(p)throw new Error(tt(6));R=!1,f();var N=d.indexOf(v);d.splice(N,1),l=null}}}function m(v){if(!Pl(v))throw new Error(tt(7));if(typeof v.type>"u")throw new Error(tt(8));if(p)throw new Error(tt(9));try{p=!0,i=a(i,v)}finally{p=!1}for(var R=l=d,E=0;E<R.length;E++){var N=R[E];N()}return v}function b(v){if(typeof v!="function")throw new Error(tt(10));a=v,m({type:jo.REPLACE})}function g(){var v,R=h;return v={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(tt(11));function I(){N.next&&N.next(y())}I();var T=R(I);return{unsubscribe:T}}},v[lc]=function(){return this},v}return m({type:jo.INIT}),n={dispatch:m,subscribe:h,getState:y,replaceReducer:b},n[lc]=g,n}function kl(e){Object.keys(e).forEach(function(o){var r=e[o],n=r(void 0,{type:jo.INIT});if(typeof n>"u")throw new Error(tt(12));if(typeof r(void 0,{type:jo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(tt(13))})}function sc(e){for(var o=Object.keys(e),r={},n=0;n<o.length;n++){var a=o[n];typeof e[a]=="function"&&(r[a]=e[a])}var i=Object.keys(r),l,d;try{kl(r)}catch(p){d=p}return function(f,y){if(f===void 0&&(f={}),d)throw d;if(0)var h;for(var m=!1,b={},g=0;g<i.length;g++){var v=i[g],R=r[v],E=f[v],N=R(E,y);if(typeof N>"u"){var I=y&&y.type;throw new Error(tt(14))}b[v]=N,m=m||N!==E}return m=m||i.length!==Object.keys(f).length,m?b:f}}function _e(){for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];return o.length===0?function(n){return n}:o.length===1?o[0]:o.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function dc(){for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(tt(15))},l={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},d=o.map(function(p){return p(l)});return i=_e.apply(void 0,d)(a.dispatch),Fo(Fo({},a),{},{dispatch:i})}}}function fc(e){var o=function(n){var a=n.dispatch,i=n.getState;return function(l){return function(d){return typeof d=="function"?d(a,i,e):l(d)}}};return o}var pc=fc();pc.withExtraArgument=fc;var Qr=pc;var gc=function(){var e=function(o,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(o,r)};return function(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(o,r);function n(){this.constructor=o}o.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Tl=function(e,o){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,l;return l={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function d(f){return function(y){return p([f,y])}}function p(f){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(i=f[0]&2?a.return:f[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,f[1])).done)return i;switch(a=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,a=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(f[0]===6&&r.label<i[1]){r.label=i[1],i=f;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(f);break}i[2]&&r.ops.pop(),r.trys.pop();continue}f=o.call(e,r)}catch(y){f=[6,y],a=0}finally{n=i=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},We=function(e,o){for(var r=0,n=o.length,a=e.length;r<n;r++,a++)e[a]=o[r];return e},$l=Object.defineProperty,Bl=Object.defineProperties,_l=Object.getOwnPropertyDescriptors,uc=Object.getOwnPropertySymbols,Wl=Object.prototype.hasOwnProperty,Dl=Object.prototype.propertyIsEnumerable,yc=function(e,o,r){return o in e?$l(e,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[o]=r},re=function(e,o){for(var r in o||(o={}))Wl.call(o,r)&&yc(e,r,o[r]);if(uc)for(var n=0,a=uc(o);n<a.length;n++){var r=a[n];Dl.call(o,r)&&yc(e,r,o[r])}return e},tn=function(e,o){return Bl(e,_l(o))},zl=function(e,o,r){return new Promise(function(n,a){var i=function(p){try{d(r.next(p))}catch(f){a(f)}},l=function(p){try{d(r.throw(p))}catch(f){a(f)}},d=function(p){return p.done?n(p.value):Promise.resolve(p.value).then(i,l)};d((r=r.apply(e,o)).next())})};var Ml=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?_e:_e.apply(null,arguments)},Pm=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Ul(e){if(typeof e!="object"||e===null)return!1;var o=Object.getPrototypeOf(e);if(o===null)return!0;for(var r=o;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return o===r}var Hl=function(e){gc(o,e);function o(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=e.apply(this,r)||this;return Object.setPrototypeOf(a,o.prototype),a}return Object.defineProperty(o,Symbol.species,{get:function(){return o},enumerable:!1,configurable:!0}),o.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},o.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(o.bind.apply(o,We([void 0],r[0].concat(this)))):new(o.bind.apply(o,We([void 0],r.concat(this))))},o}(Array),Gl=function(e){gc(o,e);function o(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=e.apply(this,r)||this;return Object.setPrototypeOf(a,o.prototype),a}return Object.defineProperty(o,Symbol.species,{get:function(){return o},enumerable:!1,configurable:!0}),o.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},o.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(o.bind.apply(o,We([void 0],r[0].concat(this)))):new(o.bind.apply(o,We([void 0],r.concat(this))))},o}(Array);function rn(e){return wt(e)?Go(e,function(){}):e}function Fl(e){return typeof e=="boolean"}function jl(){return function(o){return Kl(o)}}function Kl(e){e===void 0&&(e={});var o=e.thunk,r=o===void 0?!0:o,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,l=i===void 0?!0:i,d=new Hl;if(r&&(Fl(r)?d.push(Qr):d.push(Qr.withExtraArgument(r.extraArgument))),0){if(a)var p;if(l)var f}return d}var en=!0;function bc(e){var o=jl(),r=e||{},n=r.reducer,a=n===void 0?void 0:n,i=r.middleware,l=i===void 0?o():i,d=r.devTools,p=d===void 0?!0:d,f=r.preloadedState,y=f===void 0?void 0:f,h=r.enhancers,m=h===void 0?void 0:h,b;if(typeof a=="function")b=a;else if(Ul(a))b=sc(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var g=l;if(typeof g=="function"&&(g=g(o),!en&&!Array.isArray(g)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!en&&g.some(function(T){return typeof T!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=dc.apply(void 0,g),R=_e;p&&(R=Ml(re({trace:!en},typeof p=="object"&&p)));var E=new Gl(v),N=E;Array.isArray(m)?N=We([v],m):typeof m=="function"&&(N=m(E));var I=R.apply(void 0,N);return Jr(b,y,I)}function ne(e,o){function r(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(o){var i=o.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return re(re({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}function xc(e){var o={},r=[],n,a={addCase:function(i,l){var d=typeof i=="string"?i:i.type;if(d in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[d]=l,a},addMatcher:function(i,l){return r.push({matcher:i,reducer:l}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[o,r,n]}function Zl(e){return typeof e=="function"}function Vl(e,o,r,n){r===void 0&&(r=[]);var a=typeof o=="function"?xc(o):[o,r,n],i=a[0],l=a[1],d=a[2],p;if(Zl(e))p=function(){return rn(e())};else{var f=rn(e);p=function(){return f}}function y(h,m){h===void 0&&(h=p());var b=We([i[m.type]],l.filter(function(g){var v=g.matcher;return v(m)}).map(function(g){var v=g.reducer;return v}));return b.filter(function(g){return!!g}).length===0&&(b=[d]),b.reduce(function(g,v){if(v)if(Mt(g)){var R=g,E=v(R,m);return E===void 0?g:E}else{if(wt(g))return Go(g,function(N){return v(N,m)});var E=v(g,m);if(E===void 0){if(g===null)return g;throw Error("A case reducer on a non-draftable value must not return undefined")}return E}return g},h)}return y.getInitialState=p,y}function ql(e,o){return e+"/"+o}function vc(e){var o=e.name;if(!o)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:rn(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},l={},d={};a.forEach(function(y){var h=n[y],m=ql(o,y),b,g;"reducer"in h?(b=h.reducer,g=h.prepare):b=h,i[y]=b,l[m]=b,d[y]=g?ne(m,g):ne(m)});function p(){var y=typeof e.extraReducers=="function"?xc(e.extraReducers):[e.extraReducers],h=y[0],m=h===void 0?{}:h,b=y[1],g=b===void 0?[]:b,v=y[2],R=v===void 0?void 0:v,E=re(re({},m),l);return Vl(r,function(N){for(var I in E)N.addCase(I,E[I]);for(var T=0,$=g;T<$.length;T++){var gt=$[T];N.addMatcher(gt.matcher,gt.reducer)}R&&N.addDefaultCase(R)})}var f;return{name:o,reducer:function(y,h){return f||(f=p()),f(y,h)},actions:d,caseReducers:i,getInitialState:function(){return f||(f=p()),f.getInitialState()}}}var Yl="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Xl=function(e){e===void 0&&(e=21);for(var o="",r=e;r--;)o+=Yl[Math.random()*64|0];return o},Jl=["name","message","stack","code"],on=function(){function e(o,r){this.payload=o,this.meta=r}return e}(),hc=function(){function e(o,r){this.payload=o,this.meta=r}return e}(),Ql=function(e){if(typeof e=="object"&&e!==null){for(var o={},r=0,n=Jl;r<n.length;r++){var a=n[r];typeof e[a]=="string"&&(o[a]=e[a])}return o}return{message:String(e)}},Bm=function(){function e(o,r,n){var a=ne(o+"/fulfilled",function(y,h,m,b){return{payload:y,meta:tn(re({},b||{}),{arg:m,requestId:h,requestStatus:"fulfilled"})}}),i=ne(o+"/pending",function(y,h,m){return{payload:void 0,meta:tn(re({},m||{}),{arg:h,requestId:y,requestStatus:"pending"})}}),l=ne(o+"/rejected",function(y,h,m,b,g){return{payload:b,error:(n&&n.serializeError||Ql)(y||"Rejected"),meta:tn(re({},g||{}),{arg:m,requestId:h,rejectedWithValue:!!b,requestStatus:"rejected",aborted:y?.name==="AbortError",condition:y?.name==="ConditionError"})}}),d=!1,p=typeof AbortController<"u"?AbortController:function(){function y(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return y.prototype.abort=function(){},y}();function f(y){return function(h,m,b){var g=n?.idGenerator?n.idGenerator(y):Xl(),v=new p,R,E=!1;function N(T){R=T,v.abort()}var I=function(){return zl(this,null,function(){var T,$,gt,Ht,cr,Gt,pt;return Tl(this,function(bt){switch(bt.label){case 0:return bt.trys.push([0,4,,5]),Ht=(T=n?.condition)==null?void 0:T.call(n,y,{getState:m,extra:b}),es(Ht)?[4,Ht]:[3,2];case 1:Ht=bt.sent(),bt.label=2;case 2:if(Ht===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return E=!0,cr=new Promise(function(ut,ae){return v.signal.addEventListener("abort",function(){return ae({name:"AbortError",message:R||"Aborted"})})}),h(i(g,y,($=n?.getPendingMeta)==null?void 0:$.call(n,{requestId:g,arg:y},{getState:m,extra:b}))),[4,Promise.race([cr,Promise.resolve(r(y,{dispatch:h,getState:m,extra:b,requestId:g,signal:v.signal,abort:N,rejectWithValue:function(ut,ae){return new on(ut,ae)},fulfillWithValue:function(ut,ae){return new hc(ut,ae)}})).then(function(ut){if(ut instanceof on)throw ut;return ut instanceof hc?a(ut.payload,g,y,ut.meta):a(ut,g,y)})])];case 3:return gt=bt.sent(),[3,5];case 4:return Gt=bt.sent(),gt=Gt instanceof on?l(null,g,y,Gt.payload,Gt.meta):l(Gt,g,y),[3,5];case 5:return pt=n&&!n.dispatchConditionRejection&&l.match(gt)&>.meta.condition,pt||h(gt),[2,gt]}})})}();return Object.assign(I,{abort:N,requestId:g,arg:y,unwrap:function(){return I.then(ts)}})}}return Object.assign(f,{pending:i,rejected:l,fulfilled:a,typePrefix:o})}return e.withTypes=function(){return e},e}();function ts(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function es(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Sc="listener",Oc="completed",Cc="cancelled",_m="task-"+Cc,Wm="task-"+Oc,Dm=Sc+"-"+Cc,zm=Sc+"-"+Oc;var nn="listenerMiddleware";var Mm=ne(nn+"/add"),Um=ne(nn+"/removeAll"),Hm=ne(nn+"/remove");var mc,Gm=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(mc||(mc=Promise.resolve())).then(e).catch(function(o){return setTimeout(function(){throw o},0)})},os=function(e){return function(o){setTimeout(o,e)}},Fm=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:os(10);nc();function rs(e,o){return class extends e{constructor(){super(...arguments),this.eventBus=o??document.createElement("span")}addEventListener(r,n,a){this.eventBus.addEventListener(r,n,a)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,a){this.eventBus.removeEventListener(r,n,a)}}}var Ko=class extends rs(Object){};window.ftReduxStores||(window.ftReduxStores={});var wc=class e extends Ko{static get(o){var r;let n=typeof o=="string"?o:o.name,a=typeof o=="string"?void 0:o,i=window.ftReduxStores[n];if(oo(i))return i;if(a==null)return;let l=vc({...a,reducers:(r=a.reducers)!==null&&r!==void 0?r:{}}),d=bc({reducer:(p,f)=>f.type==="CLEAR_FT_REDUX_STORE"?l.getInitialState():typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...f.overwrites}:l.reducer(p,f)});return window.ftReduxStores[a.name]=new e(l,d)}constructor(o,r){super(),this.reduxSlice=o,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Bo,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,a,i)=>{let l=a,d=n[l];return d?(...p)=>{let f=d(...p);return this.reduxStore.dispatch(f),f}:p=>{this.setState({[l]:p})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(o){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(o).join("_"),overwrites:o})}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(o){throw new Error("Not implemented yet.")}subscribe(o){return this.reduxStore.subscribe(o)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Yo=S(P());var Zo=class extends Yt{async listMySearches(){let o=L.getState().session;return o?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(o.profile.userId),5*60*1e3):[]}};var Vo=class extends Yt{async listMyBookmarks(){let o=L.getState().session;return o?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(o.profile.userId),5*60*1e3):[]}};var as="ft-user-assets",qo=Yo.FtReduxStore.get({name:as,initialState:{savedSearches:void 0,bookmarks:void 0}}),an=class{constructor(){this.currentSession=L.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Vo,this.savedSearchesService=new Zo,L.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var o;let{session:r}=L.getState();(0,Yo.deepEqual)((o=this.currentSession)===null||o===void 0?void 0:o.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),qo.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),qo.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let o=await this.savedSearchesService.listMySearches();qo.actions.savedSearches(o)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var o;if(this.bookmarksAreUsed){let r=!((o=this.currentSession)===null||o===void 0)&&o.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;qo.actions.bookmarks(r)}}},Eg=new an;var cn=class{addCommand(o,r=!1){L.commands.add(o,r)}consumeCommand(o){return L.commands.consume(o)}};window.FluidTopicsAppInfoStoreService=new cn;var Ec=S(P()),ln=class{highlightHtml(o,r,n){(0,Ec.highlightHtml)(o,r,n)}};window.FluidTopicsHighlightHtmlService=new ln;var Nc=S(P());var sn=class{isDate(o){var r,n,a,i;return(i=(a=((n=(r=L.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(d=>d.key===o))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(o,r){var n,a,i;return Nc.DateFormatter.format(o,(n=r?.locale)!==null&&n!==void 0?n:L.getState().uiLocale,(a=r?.longFormat)!==null&&a!==void 0?a:!1,(i=r?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new sn;var is=S(P());(0,Ac.customElement)("ft-app-context")(H);var Lc=S(K()),cs=function(e,o,r,n){var a=arguments.length,i=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(i=(a<3?l(i):a>3?l(o,r,i):l(o,r))||i);return a>3&&i&&Object.defineProperty(o,r,i),i},dn=Symbol("i18nAttributes"),fn=Symbol("i18nListAttributes"),Xo=Symbol("i18nProperties"),lo=Symbol("i18nUnsubs");function tr(e){var o;class r extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[o]=new Map}get i18nService(){return this.useCustomMessageContexts?Bi:ye}i18n(a,i,...l){var d;if(typeof a=="string")return this.i18nService.resolveMessage(a,i,...l);let p=(d=a.args)!==null&&d!==void 0?d:a.argsProvider?a.argsProvider(this):[];return this.i18nService.resolveMessage(a.context,a.key,...p)}onI18nUpdate(a){var i,l,d;(i=this[dn])===null||i===void 0||i.forEach((p,f)=>{let y=this.getI18nAttributeValue(f);y&&(this[f]=this.getI18nAttributeMessage(y,p,a))}),(l=this[fn])===null||l===void 0||l.forEach((p,f)=>{let y=this.getI18nListAttributeValues(f);this[f]=y?.map(h=>this.getI18nAttributeMessage(h,p,a))}),(d=this[Xo])===null||d===void 0||d.forEach((p,f)=>{p.context.toLowerCase()===a.toLowerCase()&&(this[f]=this.i18n(p))}),setTimeout(()=>this.requestUpdate(),0)}buildI18nAttributeMessage(a,i){return{...a,message:this.i18n({context:a.context,key:a.key,...i})}}getI18nAttributeMessage(a,i,l){var d;let p=!l||((d=a.context)===null||d===void 0?void 0:d.toLowerCase())===l.toLowerCase();return a.context&&a.key&&p?this.buildI18nAttributeMessage(a,i):a}update(a){var i,l,d;super.update(a),(i=this[dn])===null||i===void 0||i.forEach((p,f)=>{let y=this.getI18nAttributeValue(f);y?.context&&y.key&&(a.has(f)||p.argsProvider!=null)&&(this.addI18nContextIfNeeded(y,a,f),this[f]=this.getI18nAttributeMessage(y,p))}),(l=this[fn])===null||l===void 0||l.forEach((p,f)=>{let y=this.getI18nListAttributeValues(f);(a.has(f)||p.argsProvider!=null)&&(this[f]=y?.map(h=>(this.addI18nContextIfNeeded(h,a,f),this.getI18nAttributeMessage(h,p))))}),(d=this[Xo])===null||d===void 0||d.forEach((p,f)=>{p.argsProvider!=null&&(this[f]=this.i18n(p))})}getI18nAttributeValue(a){return this[a]}getI18nListAttributeValues(a){return this[a]}addI18nContextIfNeeded(a,i,l){a.context&&a.key&&i.has(l)&&this.addI18nContext(a.context)}connectedCallback(){var a,i,l,d,p,f;super.connectedCallback(),new Set([...(i=(a=this[Xo])===null||a===void 0?void 0:a.values())!==null&&i!==void 0?i:[],...[...(d=(l=this[dn])===null||l===void 0?void 0:l.keys())!==null&&d!==void 0?d:[]].map(y=>this.getI18nAttributeValue(y)),...[...(f=(p=this[fn])===null||p===void 0?void 0:p.keys())!==null&&f!==void 0?f:[]].flatMap(y=>this.getI18nListAttributeValues(y))].map(y=>y?.context)).forEach(y=>y&&this.addI18nMessages(y))}addI18nMessages(a,i){a=a.toLowerCase(),this[lo].has(a)||this[lo].set(a,this.i18nService.subscribe(a,()=>this.onI18nUpdate(a))),this.i18nService.prepareContext(a,i??{}),this.onI18nUpdate(a)}addI18nContext(a,i){this.addI18nMessages(typeof a=="string"?a:a.name,i)}disconnectedCallback(){super.disconnectedCallback(),this[lo].forEach(a=>a()),this[lo].clear()}}return o=lo,cs([(0,Lc.property)({type:Boolean})],r.prototype,"useCustomMessageContexts",void 0),r}var Rc=class extends tr(Qo.FtLitElement){},Jo=class extends tr(Qo.FtLitElementRedux){};var so=function(e,o,r,n){var a=arguments.length,i=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(i=(a<3?l(i):a>3?l(o,r,i):l(o,r))||i);return a>3&&i&&Object.defineProperty(o,r,i),i},Et=class extends Jo{constructor(){super(),this.editorMode=!1,this.addStore(L)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":er.nothing:er.html`
|
|
1131
1131
|
<span class="ft-i18n">
|
|
1132
1132
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
1133
1133
|
</span>
|
|
1134
|
-
`}update(o){var r;super.update(o),["context","key","defaultMessage"].some(n=>o.has(n))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Et.elementDefinitions={};Et.styles=Pi;so([(0,
|
|
1134
|
+
`}update(o){var r;super.update(o),["context","key","defaultMessage"].some(n=>o.has(n))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Et.elementDefinitions={};Et.styles=Pi;so([(0,rr.redux)()],Et.prototype,"editorMode",void 0);so([(0,or.property)()],Et.prototype,"context",void 0);so([(0,or.property)()],Et.prototype,"key",void 0);so([(0,rr.jsonProperty)([])],Et.prototype,"args",void 0);so([(0,or.property)()],Et.prototype,"defaultMessage",void 0);var nr=class e{static build(o){return new e(o)}static fromGwt(o){return new e(o)}constructor(o){this.name=o,this.properties=new Proxy({},{get:(r,n)=>{let a=n;return i=>({context:this.name,key:a,args:typeof i=="function"?void 0:i,argsProvider:typeof i=="function"?i:void 0})}}),this.messages=new Proxy({},{get:(r,n)=>(...a)=>ye.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(r,n)=>ye.resolveRawMessage(this.name,n)})}};(0,Ic.customElement)("ft-i18n")(Et);var pn=nr.build("dsModal"),Pc={closeModal:"Close modal"};var yn=function(e,o,r,n){var a=arguments.length,i=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(i=(a<3?l(i):a>3?l(o,r,i):l(o,r))||i);return a>3&&i&&Object.defineProperty(o,r,i),i},un=class extends CustomEvent{constructor(){super("close",{composed:!0,bubbles:!0})}},Nt=class extends tr(De.FtdsBase){constructor(){super(),this.heading="",this.size=et.small,this.addI18nContext(pn,Pc)}render(){let o={"ftds-modal":!0,...this.getDesignSystemBaseClasses()};return fo.html`
|
|
1135
1135
|
<div class="${(0,kc.classMap)(o)}" part="container">
|
|
1136
1136
|
<dialog part="dialog"
|
|
1137
1137
|
@click="${this.onDialogClick}"
|
|
@@ -1164,7 +1164,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
1164
1164
|
</div>
|
|
1165
1165
|
</dialog>
|
|
1166
1166
|
</div>
|
|
1167
|
-
`}open(){this.dialog.showModal()}close(){this.dialog.close()}disconnectedCallback(){super.disconnectedCallback(),this.close()}onDialogClick(o){(0,De.eventPathContainsMatchingElement)(o,["[part='inner-container']"],this)||this.close()}};Nt.elementDefinitions={"ftds-button":nt,"ft-typography":rt,"ft-icon":st};Nt.styles=Li;yn([(0,po.property)({type:String})],Nt.prototype,"heading",void 0);yn([(0,po.property)({type:String})],Nt.prototype,"icon",void 0);yn([(0,po.query)("dialog")],Nt.prototype,"dialog",void 0);var
|
|
1167
|
+
`}open(){this.dialog.showModal()}close(){this.dialog.close()}disconnectedCallback(){super.disconnectedCallback(),this.close()}onDialogClick(o){(0,De.eventPathContainsMatchingElement)(o,["[part='inner-container']"],this)||this.close()}};Nt.elementDefinitions={"ftds-button":nt,"ft-typography":rt,"ft-icon":st};Nt.styles=Li;yn([(0,po.property)({type:String})],Nt.prototype,"heading",void 0);yn([(0,po.property)({type:String})],Nt.prototype,"icon",void 0);yn([(0,po.query)("dialog")],Nt.prototype,"dialog",void 0);var ar=S(P()),$c=S(B());var Tc=vt.body2regular;var Ut=S(K());var ge=function(e,o,r,n){var a=arguments.length,i=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(i=(a<3?l(i):a>3?l(o,r,i):l(o,r))||i);return a>3&&i&&Object.defineProperty(o,r,i),i},ft=class extends ar.FtLitElement{constructor(){super(...arguments),this.confirmText="Confirm",this.cancelText="Cancel",this.confirmIcon=ht.CHECK,this.cancelIcon=ht.CLOSE}render(){return $c.html`
|
|
1168
1168
|
<ftds-modal
|
|
1169
1169
|
heading="${this.heading}"
|
|
1170
1170
|
size="${et.small}"
|
|
@@ -1176,7 +1176,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
1176
1176
|
<ftds-button slot="actions"
|
|
1177
1177
|
tertiary
|
|
1178
1178
|
autofocus
|
|
1179
|
-
family="${
|
|
1179
|
+
family="${ar.DesignSystemFamily.neutral}"
|
|
1180
1180
|
size="${et.large}"
|
|
1181
1181
|
icon="${this.cancelIcon}"
|
|
1182
1182
|
@click="${this.onCancel}">
|
|
@@ -1190,7 +1190,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
1190
1190
|
${this.confirmText}
|
|
1191
1191
|
</ftds-button>
|
|
1192
1192
|
</ftds-modal>
|
|
1193
|
-
`}async askConfirmation(){this.modal.open();let o=await new Promise(r=>{this.promiseResolve=r});return this.modal.close(),o}onConfirm(){var o;(o=this.promiseResolve)===null||o===void 0||o.call(this,!0),this.promiseResolve=void 0}onCancel(){var o;(o=this.promiseResolve)===null||o===void 0||o.call(this,!1),this.promiseResolve=void 0}};ft.elementDefinitions={"ftds-modal":Nt,"ft-typography":rt,"ftds-button":nt};ge([(0,Ut.property)({type:String})],ft.prototype,"heading",void 0);ge([(0,Ut.property)({type:String})],ft.prototype,"text",void 0);ge([(0,Ut.property)({type:String})],ft.prototype,"confirmText",void 0);ge([(0,Ut.property)({type:String})],ft.prototype,"cancelText",void 0);ge([(0,Ut.property)({type:String})],ft.prototype,"confirmIcon",void 0);ge([(0,Ut.property)({type:String})],ft.prototype,"cancelIcon",void 0);ge([(0,Ut.query)("ftds-modal")],ft.prototype,"modal",void 0);(0,hn.customElement)("ftds-modal")(Nt);(0,hn.customElement)("ftds-modal-confirm")(ft);var at=function(e,o,r,n){var a=arguments.length,i=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(i=(a<3?l(i):a>3?l(o,r,i):l(o,r))||i);return a>3&&i&&Object.defineProperty(o,r,i),i},uo=class extends CustomEvent{constructor(){super("confirm")}},q=class extends Bc.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.buttonIcon=ht.CLOSE,this.buttonSize=et.medium,this.heading="",this.text="",this.confirmText="",this.cancelText="",this.confirmIcon=ht.CHECK,this.cancelIcon=ht.CLOSE,this.loading=!1,this.disabled=!1}render(){return
|
|
1193
|
+
`}async askConfirmation(){this.modal.open();let o=await new Promise(r=>{this.promiseResolve=r});return this.modal.close(),o}onConfirm(){var o;(o=this.promiseResolve)===null||o===void 0||o.call(this,!0),this.promiseResolve=void 0}onCancel(){var o;(o=this.promiseResolve)===null||o===void 0||o.call(this,!1),this.promiseResolve=void 0}};ft.elementDefinitions={"ftds-modal":Nt,"ft-typography":rt,"ftds-button":nt};ge([(0,Ut.property)({type:String})],ft.prototype,"heading",void 0);ge([(0,Ut.property)({type:String})],ft.prototype,"text",void 0);ge([(0,Ut.property)({type:String})],ft.prototype,"confirmText",void 0);ge([(0,Ut.property)({type:String})],ft.prototype,"cancelText",void 0);ge([(0,Ut.property)({type:String})],ft.prototype,"confirmIcon",void 0);ge([(0,Ut.property)({type:String})],ft.prototype,"cancelIcon",void 0);ge([(0,Ut.query)("ftds-modal")],ft.prototype,"modal",void 0);(0,hn.customElement)("ftds-modal")(Nt);(0,hn.customElement)("ftds-modal-confirm")(ft);var at=function(e,o,r,n){var a=arguments.length,i=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(i=(a<3?l(i):a>3?l(o,r,i):l(o,r))||i);return a>3&&i&&Object.defineProperty(o,r,i),i},uo=class extends CustomEvent{constructor(){super("confirm")}},q=class extends Bc.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.buttonIcon=ht.CLOSE,this.buttonSize=et.medium,this.heading="",this.text="",this.confirmText="",this.cancelText="",this.confirmIcon=ht.CHECK,this.cancelIcon=ht.CLOSE,this.loading=!1,this.disabled=!1}render(){return ir.html`
|
|
1194
1194
|
<ftds-button icon=${this.buttonIcon}
|
|
1195
1195
|
?primary=${this.primary}
|
|
1196
1196
|
?secondary=${this.secondary}
|
|
@@ -1207,7 +1207,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
1207
1207
|
cancelText=${this.cancelText}
|
|
1208
1208
|
cancelIcon=${this.cancelIcon}
|
|
1209
1209
|
></ftds-modal-confirm>
|
|
1210
|
-
`}async askConfirmation(){await this.modal.askConfirmation()&&this.dispatchEvent(new uo)}};q.elementDefinitions={"ftds-button":nt,"ftds-modal-confirm":ft};q.styles=
|
|
1210
|
+
`}async askConfirmation(){await this.modal.askConfirmation()&&this.dispatchEvent(new uo)}};q.elementDefinitions={"ftds-button":nt,"ftds-modal-confirm":ft};q.styles=ir.css``;at([(0,Y.property)({type:Boolean})],q.prototype,"primary",void 0);at([(0,Y.property)({type:Boolean})],q.prototype,"secondary",void 0);at([(0,Y.property)()],q.prototype,"buttonText",void 0);at([(0,Y.property)()],q.prototype,"buttonIcon",void 0);at([(0,Y.property)()],q.prototype,"buttonSize",void 0);at([(0,Y.property)()],q.prototype,"heading",void 0);at([(0,Y.property)()],q.prototype,"text",void 0);at([(0,Y.property)()],q.prototype,"confirmText",void 0);at([(0,Y.property)()],q.prototype,"cancelText",void 0);at([(0,Y.property)()],q.prototype,"confirmIcon",void 0);at([(0,Y.property)()],q.prototype,"cancelIcon",void 0);at([(0,Y.property)({type:Boolean})],q.prototype,"loading",void 0);at([(0,Y.property)({type:Boolean})],q.prototype,"disabled",void 0);at([(0,Y.query)("ftds-modal-confirm")],q.prototype,"modal",void 0);q=at([(0,Y.customElement)("ftds-confirm-button")],q);var _c=class{constructor(o){this.confirmButton=o}clickAndConfirm(){this.confirmButton.dispatchEvent(new uo)}};})();
|
|
1211
1211
|
/*! Bundled license information:
|
|
1212
1212
|
|
|
1213
1213
|
lit-html/lit-html.js:
|