@fluid-topics/ft-copy-block 1.2.20 → 1.2.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-copy-block.light.js +24 -24
- package/build/ft-copy-block.min.js +66 -66
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var Sc=Object.create;var on=Object.defineProperty;var Oc=Object.getOwnPropertyDescriptor;var Cc=Object.getOwnPropertyNames;var wc=Object.getPrototypeOf,Ec=Object.prototype.hasOwnProperty;var ke=(e,o)=>()=>(o||e((o={exports:{}}).exports,o),o.exports);var Nc=(e,o,r,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let a of Cc(o))!Ec.call(e,a)&&a!==r&&on(e,a,{get:()=>o[a],enumerable:!(n=Oc(o,a))||n.enumerable});return e};var O=(e,o,r)=>(r=e!=null?Sc(wc(e)):{},Nc(o||!e||!e.__esModule?on(r,"default",{value:e,enumerable:!0}):r,e));var k=ke((Vl,rn)=>{rn.exports=ftGlobals.wcUtils});var M=ke((Yl,nn)=>{nn.exports=ftGlobals.lit});var Y=ke((ql,an)=>{an.exports=ftGlobals.litDecorators});var
|
|
1
|
+
"use strict";(()=>{var Sc=Object.create;var on=Object.defineProperty;var Oc=Object.getOwnPropertyDescriptor;var Cc=Object.getOwnPropertyNames;var wc=Object.getPrototypeOf,Ec=Object.prototype.hasOwnProperty;var ke=(e,o)=>()=>(o||e((o={exports:{}}).exports,o),o.exports);var Nc=(e,o,r,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let a of Cc(o))!Ec.call(e,a)&&a!==r&&on(e,a,{get:()=>o[a],enumerable:!(n=Oc(o,a))||n.enumerable});return e};var O=(e,o,r)=>(r=e!=null?Sc(wc(e)):{},Nc(o||!e||!e.__esModule?on(r,"default",{value:e,enumerable:!0}):r,e));var k=ke((Vl,rn)=>{rn.exports=ftGlobals.wcUtils});var M=ke((Yl,nn)=>{nn.exports=ftGlobals.lit});var Y=ke((ql,an)=>{an.exports=ftGlobals.litDecorators});var tr=ke((du,ca)=>{ca.exports=ftGlobals.litClassMap});var ai=ke((py,ni)=>{ni.exports=ftGlobals.litUnsafeHTML});var vc=O(k());var no=O(M()),xc=O(Y()),Xo=O(k());var Or=O(k());var Ke=O(Y()),pi=O(k());var aa=O(M()),I=O(k());var pn=O(M()),H=O(k()),cn=H.FtCssVariableFactory.extend("--ft-ripple-color","",H.designSystemVariables.colorContent),S={color:cn,backgroundColor:H.FtCssVariableFactory.extend("--ft-ripple-background-color","",cn),opacityContentOnSurfacePressed:H.FtCssVariableFactory.external(H.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:H.FtCssVariableFactory.external(H.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:H.FtCssVariableFactory.external(H.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:H.FtCssVariableFactory.external(H.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:H.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},ln=H.FtCssVariableFactory.extend("--ft-ripple-color","",H.designSystemVariables.colorPrimary),sn={color:ln,backgroundColor:H.FtCssVariableFactory.extend("--ft-ripple-background-color","",ln)},dn=H.FtCssVariableFactory.extend("--ft-ripple-color","",H.designSystemVariables.colorSecondary),fn={color:dn,backgroundColor:H.FtCssVariableFactory.extend("--ft-ripple-background-color","",dn)},un=pn.css`
|
|
2
2
|
:host {
|
|
3
3
|
display: contents;
|
|
4
4
|
}
|
|
@@ -332,7 +332,7 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
332
332
|
.ft-icon--material {
|
|
333
333
|
font-family: ${J.materialFontFamily}, "Material Icons", sans-serif;
|
|
334
334
|
}
|
|
335
|
-
`;var ra=I.FtCssVariableFactory.extend("--ft-button-color","",I.designSystemVariables.colorPrimary),j={backgroundColor:I.FtCssVariableFactory.extend("--ft-button-background-color","",I.designSystemVariables.colorSurface),borderRadius:I.FtCssVariableFactory.extend("--ft-button-border-radius","",I.designSystemVariables.borderRadiusL),color:ra,fontSize:I.FtCssVariableFactory.extend("--ft-button-font-size","",vt.fontSize),iconSize:I.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:I.FtCssVariableFactory.extend("--ft-button-ripple-color","",ra),verticalPadding:I.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:I.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:I.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:I.FtCssVariableFactory.external(I.designSystemVariables.colorOpacityDisabled,"Design system")},na=I.FtCssVariableFactory.extend("--ft-button-primary-color","",I.FtCssVariableFactory.extend("--ft-button-color","",I.designSystemVariables.colorOnPrimary)),
|
|
335
|
+
`;var ra=I.FtCssVariableFactory.extend("--ft-button-color","",I.designSystemVariables.colorPrimary),j={backgroundColor:I.FtCssVariableFactory.extend("--ft-button-background-color","",I.designSystemVariables.colorSurface),borderRadius:I.FtCssVariableFactory.extend("--ft-button-border-radius","",I.designSystemVariables.borderRadiusL),color:ra,fontSize:I.FtCssVariableFactory.extend("--ft-button-font-size","",vt.fontSize),iconSize:I.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:I.FtCssVariableFactory.extend("--ft-button-ripple-color","",ra),verticalPadding:I.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:I.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:I.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:I.FtCssVariableFactory.external(I.designSystemVariables.colorOpacityDisabled,"Design system")},na=I.FtCssVariableFactory.extend("--ft-button-primary-color","",I.FtCssVariableFactory.extend("--ft-button-color","",I.designSystemVariables.colorOnPrimary)),Qo={backgroundColor:I.FtCssVariableFactory.extend("--ft-button-primary-background-color","",I.FtCssVariableFactory.extend("--ft-button-background-color","",I.designSystemVariables.colorPrimary)),color:na,rippleColor:I.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",na)},St={borderRadius:I.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",I.FtCssVariableFactory.extend("--ft-button-border-radius","",I.designSystemVariables.borderRadiusM)),verticalPadding:I.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:I.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:I.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},ia=[aa.css`
|
|
336
336
|
:host {
|
|
337
337
|
display: inline-block;
|
|
338
338
|
max-width: 100%;
|
|
@@ -418,9 +418,9 @@ Also for action icons.`,i.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,I.setVariable)(S.color,
|
|
421
|
+
background-color: ${Qo.backgroundColor};
|
|
422
|
+
--ft-button-internal-color: ${Qo.color};
|
|
423
|
+
${(0,I.setVariable)(S.color,Qo.rippleColor)};
|
|
424
424
|
}
|
|
425
425
|
|
|
426
426
|
.ft-button:focus {
|
|
@@ -469,7 +469,7 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
469
469
|
${(0,I.setVariable)(_.size,j.iconSize)};
|
|
470
470
|
${(0,I.setVariable)(_.color,"var(--ft-button-internal-color)")};
|
|
471
471
|
}
|
|
472
|
-
`,I.noTextSelect];var Ht=O(k());var da=O(k());var la=O(M()),Z=O(Y()),sa=O(
|
|
472
|
+
`,I.noTextSelect];var Ht=O(k());var da=O(k());var la=O(M()),Z=O(Y()),sa=O(tr()),Be=O(k());var Q=function(e,o,r,n){var a=arguments.length,c=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(c=(a<3?l(c):a>3?l(o,r,c):l(o,r))||c);return a>3&&c&&Object.defineProperty(o,r,c),c},z=class extends Be.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new Be.Debouncer(1e3),this.onTransitionStart=o=>{o.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=o=>{o.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new Be.Debouncer(10),this.moveRipple=o=>{var r,n;let{x:a,y:c}=this.getCoordinates(o),l=(n=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&n!==void 0?n:{x:0,y:0,width:0,height:0};this.originX=Math.round(a!=null?a-l.x:l.width/2),this.originY=Math.round(c!=null?c-l.y:l.height/2)},this.startPress=o=>{this.moveRipple(o),this.pressed=!this.isIgnored(o)},this.endPress=()=>{this.pressed=!1},this.startHover=o=>{this.hovered=!this.isIgnored(o)},this.endHover=()=>{this.hovered=!1},this.startFocus=o=>{this.focused=this.isFocusVisible(o?.target)&&!this.isIgnored(o)},this.endFocus=()=>{this.focused=!1}}render(){let o={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return la.html`
|
|
473
473
|
<style>
|
|
474
474
|
.ft-ripple .ft-ripple--effect {
|
|
475
475
|
left: ${this.originX}px;
|
|
@@ -480,17 +480,17 @@ Also for action icons.`,i.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"),c=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",c,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",c,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,c;return r.x!=null?{x:a,y:c}=r:n.touches!=null&&(a=n.touches[0].clientX,c=n.touches[0].clientY),{x:a,y:c}}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()}};z.elementDefinitions={};z.styles=un;Q([(0,Z.property)({type:Boolean})],z.prototype,"primary",void 0);Q([(0,Z.property)({type:Boolean})],z.prototype,"secondary",void 0);Q([(0,Z.property)({type:Boolean})],z.prototype,"unbounded",void 0);Q([(0,Z.property)({type:Boolean})],z.prototype,"activated",void 0);Q([(0,Z.property)({type:Boolean})],z.prototype,"selected",void 0);Q([(0,Z.property)({type:Boolean})],z.prototype,"disabled",void 0);Q([(0,Z.state)()],z.prototype,"hovered",void 0);Q([(0,Z.state)()],z.prototype,"focused",void 0);Q([(0,Z.state)()],z.prototype,"pressed",void 0);Q([(0,Z.state)()],z.prototype,"rippling",void 0);Q([(0,Z.state)()],z.prototype,"originX",void 0);Q([(0,Z.state)()],z.prototype,"originY",void 0);Q([(0,Z.query)(".ft-ripple")],z.prototype,"ripple",void 0);Q([(0,Z.query)(".ft-ripple--effect")],z.prototype,"rippleEffect",void 0);(0,da.customElement)("ft-ripple")(z);var ri=O(k());var oi=O(M()),G=O(Y()),Fe=O(k());var Pa=O(k());var
|
|
484
|
-
\f\r]`,_e=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,pa=/-->/g,ua=/>/g,Qt=RegExp(`>|${
|
|
485
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),ya=/'/g,ha=/"/g,va=/^(?:script|style|textarea|title)$/i,Sa=e=>(o,...r)=>({_$litType$:e,strings:o,values:r}),Oa=Sa(1),Ca=Sa(2),$e=Symbol.for("lit-noChange"),K=Symbol.for("lit-nothing"),ma=new WeakMap,te=ee.createTreeWalker(ee,129);function wa(e,o){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return fa!==void 0?fa.createHTML(o):o}var Pc=(e,o)=>{let r=e.length-1,n=[],a,c=o===2?"<svg>":"",l=_e;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===_e?y[1]==="!--"?l=pa:y[1]!==void 0?l=ua:y[2]!==void 0?(va.test(y[2])&&(a=RegExp("</"+y[2],"g")),l=Qt):y[3]!==void 0&&(l=Qt):l===Qt?y[0]===">"?(l=a??_e,h=-1):y[1]===void 0?h=-2:(h=l.lastIndex-y[2].length,f=y[1],l=y[3]===void 0?Qt:y[3]==='"'?ha:ya):l===ha||l===ya?l=Qt:l===pa||l===ua?l=_e:(l=Qt,a=void 0);let b=l===Qt&&e[d+1].startsWith("/>")?" ":"";c+=l===_e?p+Rc:h>=0?(n.push(f),p.slice(0,h)+ga+p.slice(h)+$t+b):p+$t+(h===-2?d:b)}return[wa(e,c+(e[r]||"<?>")+(o===2?"</svg>":"")),n]},De=class e{constructor({strings:o,_$litType$:r},n){let a;this.parts=[];let c=0,l=0,d=o.length-1,p=this.parts,[f,y]=Pc(o,r);if(this.el=e.createElement(f,n),te.currentNode=this.el.content,r===2){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(a=te.nextNode())!==null&&p.length<d;){if(a.nodeType===1){if(a.hasAttributes())for(let h of a.getAttributeNames())if(h.endsWith(ga)){let m=y[l++],b=a.getAttribute(h).split($t),g=/([.?@])?(.*)/.exec(m);p.push({type:1,index:c,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"),c=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",c,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",c,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,c;return r.x!=null?{x:a,y:c}=r:n.touches!=null&&(a=n.touches[0].clientX,c=n.touches[0].clientY),{x:a,y:c}}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()}};z.elementDefinitions={};z.styles=un;Q([(0,Z.property)({type:Boolean})],z.prototype,"primary",void 0);Q([(0,Z.property)({type:Boolean})],z.prototype,"secondary",void 0);Q([(0,Z.property)({type:Boolean})],z.prototype,"unbounded",void 0);Q([(0,Z.property)({type:Boolean})],z.prototype,"activated",void 0);Q([(0,Z.property)({type:Boolean})],z.prototype,"selected",void 0);Q([(0,Z.property)({type:Boolean})],z.prototype,"disabled",void 0);Q([(0,Z.state)()],z.prototype,"hovered",void 0);Q([(0,Z.state)()],z.prototype,"focused",void 0);Q([(0,Z.state)()],z.prototype,"pressed",void 0);Q([(0,Z.state)()],z.prototype,"rippling",void 0);Q([(0,Z.state)()],z.prototype,"originX",void 0);Q([(0,Z.state)()],z.prototype,"originY",void 0);Q([(0,Z.query)(".ft-ripple")],z.prototype,"ripple",void 0);Q([(0,Z.query)(".ft-ripple--effect")],z.prototype,"rippleEffect",void 0);(0,da.customElement)("ft-ripple")(z);var ri=O(k());var oi=O(M()),G=O(Y()),Fe=O(k());var Pa=O(k());var cr=globalThis,lo=cr.trustedTypes,fa=lo?lo.createPolicy("lit-html",{createHTML:e=>e}):void 0,ga="$lit$",$t=`lit$${(Math.random()+"").slice(9)}$`,ba="?"+$t,Rc=`<${ba}>`,ee=document,so=()=>ee.createComment(""),We=e=>e===null||typeof e!="object"&&typeof e!="function",xa=Array.isArray,Lc=e=>xa(e)||typeof e?.[Symbol.iterator]=="function",er=`[
|
|
484
|
+
\f\r]`,_e=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,pa=/-->/g,ua=/>/g,Qt=RegExp(`>|${er}(?:([^\\s"'>=/]+)(${er}*=${er}*(?:[^
|
|
485
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),ya=/'/g,ha=/"/g,va=/^(?:script|style|textarea|title)$/i,Sa=e=>(o,...r)=>({_$litType$:e,strings:o,values:r}),Oa=Sa(1),Ca=Sa(2),$e=Symbol.for("lit-noChange"),K=Symbol.for("lit-nothing"),ma=new WeakMap,te=ee.createTreeWalker(ee,129);function wa(e,o){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return fa!==void 0?fa.createHTML(o):o}var Pc=(e,o)=>{let r=e.length-1,n=[],a,c=o===2?"<svg>":"",l=_e;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===_e?y[1]==="!--"?l=pa:y[1]!==void 0?l=ua:y[2]!==void 0?(va.test(y[2])&&(a=RegExp("</"+y[2],"g")),l=Qt):y[3]!==void 0&&(l=Qt):l===Qt?y[0]===">"?(l=a??_e,h=-1):y[1]===void 0?h=-2:(h=l.lastIndex-y[2].length,f=y[1],l=y[3]===void 0?Qt:y[3]==='"'?ha:ya):l===ha||l===ya?l=Qt:l===pa||l===ua?l=_e:(l=Qt,a=void 0);let b=l===Qt&&e[d+1].startsWith("/>")?" ":"";c+=l===_e?p+Rc:h>=0?(n.push(f),p.slice(0,h)+ga+p.slice(h)+$t+b):p+$t+(h===-2?d:b)}return[wa(e,c+(e[r]||"<?>")+(o===2?"</svg>":"")),n]},De=class e{constructor({strings:o,_$litType$:r},n){let a;this.parts=[];let c=0,l=0,d=o.length-1,p=this.parts,[f,y]=Pc(o,r);if(this.el=e.createElement(f,n),te.currentNode=this.el.content,r===2){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(a=te.nextNode())!==null&&p.length<d;){if(a.nodeType===1){if(a.hasAttributes())for(let h of a.getAttributeNames())if(h.endsWith(ga)){let m=y[l++],b=a.getAttribute(h).split($t),g=/([.?@])?(.*)/.exec(m);p.push({type:1,index:c,name:g[2],strings:b,ctor:g[1]==="."?rr:g[1]==="?"?nr:g[1]==="@"?ar:Oe}),a.removeAttribute(h)}else h.startsWith($t)&&(p.push({type:6,index:c}),a.removeAttribute(h));if(va.test(a.tagName)){let h=a.textContent.split($t),m=h.length-1;if(m>0){a.textContent=lo?lo.emptyScript:"";for(let b=0;b<m;b++)a.append(h[b],so()),te.nextNode(),p.push({type:2,index:++c});a.append(h[m],so())}}}else if(a.nodeType===8)if(a.data===ba)p.push({type:2,index:c});else{let h=-1;for(;(h=a.data.indexOf($t,h+1))!==-1;)p.push({type:7,index:c}),h+=$t.length-1}c++}}static createElement(o,r){let n=ee.createElement("template");return n.innerHTML=o,n}};function Se(e,o,r=e,n){if(o===$e)return o;let a=n!==void 0?r._$Co?.[n]:r._$Cl,c=We(o)?void 0:o._$litDirective$;return a?.constructor!==c&&(a?._$AO?.(!1),c===void 0?a=void 0:(a=new c(e),a._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=a:r._$Cl=a),a!==void 0&&(o=Se(e,a._$AS(e,o.values),a,n)),o}var or=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??ee).importNode(r,!0);te.currentNode=a;let c=te.nextNode(),l=0,d=0,p=n[0];for(;p!==void 0;){if(l===p.index){let f;p.type===2?f=new fo(c,c.nextSibling,this,o):p.type===1?f=new p.ctor(c,p.name,p.strings,this,o):p.type===6&&(f=new ir(c,this,o)),this._$AV.push(f),p=n[++d]}l!==p?.index&&(c=te.nextNode(),l++)}return te.currentNode=ee,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++}},fo=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(o,r,n,a){this.type=2,this._$AH=K,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=Se(this,o,r),We(o)?o===K||o==null||o===""?(this._$AH!==K&&this._$AR(),this._$AH=K):o!==this._$AH&&o!==$e&&this._(o):o._$litType$!==void 0?this.g(o):o.nodeType!==void 0?this.$(o):Lc(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!==K&&We(this._$AH)?this._$AA.nextSibling.data=o:this.$(ee.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=De.createElement(wa(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(r);else{let c=new or(a,this),l=c.u(this.options);c.p(r),this.$(l),this._$AH=c}}_$AC(o){let r=ma.get(o.strings);return r===void 0&&ma.set(o.strings,r=new De(o)),r}T(o){xa(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,a=0;for(let c of o)a===r.length?r.push(n=new e(this.k(so()),this.k(so()),this,this.options)):n=r[a],n._$AI(c),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))}},Oe=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,r,n,a,c){this.type=1,this._$AH=K,this._$AN=void 0,this.element=o,this.name=r,this._$AM=a,this.options=c,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=K}_$AI(o,r=this,n,a){let c=this.strings,l=!1;if(c===void 0)o=Se(this,o,r,0),l=!We(o)||o!==this._$AH&&o!==$e,l&&(this._$AH=o);else{let d=o,p,f;for(o=c[0],p=0;p<c.length-1;p++)f=Se(this,d[n+p],r,p),f===$e&&(f=this._$AH[p]),l||=!We(f)||f!==this._$AH[p],f===K?o=K:o!==K&&(o+=(f??"")+c[p+1]),this._$AH[p]=f}l&&!a&&this.O(o)}O(o){o===K?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o??"")}},rr=class extends Oe{constructor(){super(...arguments),this.type=3}O(o){this.element[this.name]=o===K?void 0:o}},nr=class extends Oe{constructor(){super(...arguments),this.type=4}O(o){this.element.toggleAttribute(this.name,!!o&&o!==K)}},ar=class extends Oe{constructor(o,r,n,a,c){super(o,r,n,a,c),this.type=5}_$AI(o,r=this){if((o=Se(this,o,r,0)??K)===$e)return;let n=this._$AH,a=o===K&&n!==K||o.capture!==n.capture||o.once!==n.once||o.passive!==n.passive,c=o!==K&&(n===K||a);a&&this.element.removeEventListener(this.name,this,n),c&&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)}},ir=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){Se(this,o)}};var Ic=cr.litHtmlPolyfillSupport;Ic?.(De,fo),(cr.litHtmlVersions??=[]).push("3.1.0");var Na=Symbol.for(""),kc=e=>{if(e?.r===Na)return e?._$litStatic$},lr=e=>({_$litStatic$:e,r:Na});var Ea=new Map,Aa=e=>(o,...r)=>{let n=r.length,a,c,l=[],d=[],p,f=0,y=!1;for(;f<n;){for(p=o[f];f<n&&(c=r[f],(a=kc(c))!==void 0);)p+=a+o[++f],y=!0;f!==n&&d.push(c),l.push(p),f++}if(f===n&&l.push(o[n]),y){let h=l.join("$$lit$$");(o=Ea.get(h))===void 0&&(l.raw=l,Ea.set(h,o=l)),r=d}return e(o,...r)},sr=Aa(Oa),vu=Aa(Ca);var dr=O(Y()),La=O(k());var Dt;(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"})(Dt||(Dt={}));var Ra=function(e,o,r,n){var a=arguments.length,c=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(c=(a<3?l(c):a>3?l(o,r,c):l(o,r))||c);return a>3&&c&&Object.defineProperty(o,r,c),c},ut=class extends La.FtLitElement{constructor(){super(...arguments),this.variant=Dt.body1}render(){return this.element?sr`
|
|
486
|
+
<${lr(this.element)}
|
|
487
487
|
part="text"
|
|
488
488
|
class="ft-typography ft-typography--${this.variant}">
|
|
489
489
|
<slot></slot>
|
|
490
|
-
</${
|
|
491
|
-
`:
|
|
490
|
+
</${lr(this.element)}>
|
|
491
|
+
`:sr`
|
|
492
492
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
493
|
-
`}};ut.styles=[Un,Hn,Gn,Fn,jn,Kn,Zn,Vn,Yn,qn,Xn,...Jn];Ra([(0,
|
|
493
|
+
`}};ut.styles=[Un,Hn,Gn,Fn,jn,Kn,Zn,Vn,Yn,qn,Xn,...Jn];Ra([(0,dr.property)()],ut.prototype,"element",void 0);Ra([(0,dr.property)()],ut.prototype,"variant",void 0);(0,Pa.customElement)("ft-typography")(ut);var Ia=O(M()),Rt=O(k()),Ce={distance:Rt.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Rt.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Rt.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:Rt.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:Rt.FtCssVariableFactory.external(Rt.designSystemVariables.borderRadiusS,"Design system"),maxWidth:Rt.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},ka=Ia.css`
|
|
494
494
|
.ft-tooltip--container {
|
|
495
495
|
display: block;
|
|
496
496
|
}
|
|
@@ -519,7 +519,7 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
519
519
|
position: relative;
|
|
520
520
|
word-break: break-word;
|
|
521
521
|
}
|
|
522
|
-
`;var Ba=["top","right","bottom","left"],Ta=["start","end"],fr=Ba.reduce((e,o)=>e.concat(o,o+"-"+Ta[0],o+"-"+Ta[1]),[]),Me=Math.min,Mt=Math.max,ze=Math.round;var Lt=e=>({x:e,y:e}),Tc={left:"right",right:"left",bottom:"top",top:"bottom"},Bc={start:"end",end:"start"};function pr(e,o,r){return Mt(e,Me(o,r))}function po(e,o){return typeof e=="function"?e(o):e}function we(e){return e.split("-")[0]}function zt(e){return e.split("-")[1]}function ur(e){return e==="x"?"y":"x"}function yr(e){return e==="y"?"height":"width"}function uo(e){return["top","bottom"].includes(we(e))?"y":"x"}function hr(e){return ur(uo(e))}function _a(e,o,r){r===void 0&&(r=!1);let n=zt(e),a=hr(e),c=yr(a),l=a==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return o.reference[c]>o.floating[c]&&(l=dr(l)),[l,dr(l)]}function Wa(e){return e.replace(/start|end/g,o=>Bc[o])}function dr(e){return e.replace(/left|right|bottom|top/g,o=>Tc[o])}function _c(e){return{top:0,right:0,bottom:0,left:0,...e}}function $a(e){return typeof e!="number"?_c(e):{top:e,right:e,bottom:e,left:e}}function oe(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Da(e,o,r){let{reference:n,floating:a}=e,c=uo(o),l=hr(o),d=yr(l),p=we(o),f=c==="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 Ma=async(e,o,r)=>{let{placement:n="bottom",strategy:a="absolute",middleware:c=[],platform:l}=r,d=c.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}=Da(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:P,data:T,reset:B}=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=P??h,b={...b,[R]:{...b[R],...T}},B&&g<=50){g++,typeof B=="object"&&(B.placement&&(m=B.placement),B.rects&&(f=B.rects===!0?await l.getElementRects({reference:e,floating:o,strategy:a}):B.rects),{x:y,y:h}=Da(f,m,p)),v=-1;continue}}return{x:y,y:h,placement:m,strategy:a,middlewareData:b}};async function mr(e,o){var r;o===void 0&&(o={});let{x:n,y:a,platform:c,rects:l,elements:d,strategy:p}=e,{boundary:f="clippingAncestors",rootBoundary:y="viewport",elementContext:h="floating",altBoundary:m=!1,padding:b=0}=po(o,e),g=$a(b),R=d[m?h==="floating"?"reference":"floating":h],E=oe(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(R)))==null||r?R:R.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:f,rootBoundary:y,strategy:p})),N=h==="floating"?{...l.floating,x:n,y:a}:l.reference,P=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),T=await(c.isElement==null?void 0:c.isElement(P))?await(c.getScale==null?void 0:c.getScale(P))||{x:1,y:1}:{x:1,y:1},B=oe(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({rect:N,offsetParent:P,strategy:p}):N);return{top:(E.top-B.top+g.top)/T.y,bottom:(B.bottom-E.bottom+g.bottom)/T.y,left:(E.left-B.left+g.left)/T.x,right:(B.right-E.right+g.right)/T.x}}function Wc(e,o,r){return(e?[...r.filter(a=>zt(a)===e),...r.filter(a=>zt(a)!==e)]:r.filter(a=>we(a)===a)).filter(a=>e?zt(a)===e||(o?Wa(a)!==a:!1):!0)}var gr=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(o){var r,n,a;let{rects:c,middlewareData:l,placement:d,platform:p,elements:f}=o,{crossAxis:y=!1,alignment:h,allowedPlacements:m=fr,autoAlignment:b=!0,...g}=po(e,o),v=h!==void 0||m===fr?Wc(h||null,b,m):m,R=await mr(o,g),E=((r=l.autoPlacement)==null?void 0:r.index)||0,N=v[E];if(N==null)return{};let P=_a(N,c,await(p.isRTL==null?void 0:p.isRTL(f.floating)));if(d!==N)return{reset:{placement:v[0]}};let T=[R[we(N)],R[P[0]],R[P[1]]],B=[...((n=l.autoPlacement)==null?void 0:n.overflows)||[],{placement:N,overflows:T}],ct=v[E+1];if(ct)return{data:{index:E+1,overflows:B},reset:{placement:ct}};let Bt=B.map(rt=>{let lt=zt(rt.placement);return[rt.placement,lt&&y?rt.overflows.slice(0,2).reduce((nt,Jt)=>nt+Jt,0):rt.overflows[0],rt.overflows]}).sort((rt,lt)=>rt[1]-lt[1]),_t=((a=Bt.filter(rt=>rt[2].slice(0,zt(rt[0])?2:3).every(lt=>lt<=0))[0])==null?void 0:a[0])||Bt[0][0];return _t!==d?{data:{index:E+1,overflows:B},reset:{placement:_t}}:{}}}};var br=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(o){let{x:r,y:n,placement:a}=o,{mainAxis:c=!0,crossAxis:l=!1,limiter:d={fn:R=>{let{x:E,y:N}=R;return{x:E,y:N}}},...p}=po(e,o),f={x:r,y:n},y=await mr(o,p),h=uo(we(a)),m=ur(h),b=f[m],g=f[h];if(c){let R=m==="y"?"top":"left",E=m==="y"?"bottom":"right",N=b+y[R],P=b-y[E];b=pr(N,b,P)}if(l){let R=h==="y"?"top":"left",E=h==="y"?"bottom":"right",N=g+y[R],P=g-y[E];g=pr(N,g,P)}let v=d.fn({...o,[m]:b,[h]:g});return{...v,data:{x:v.x-r,y:v.y-n}}}}};function Pt(e){return Ua(e)?(e.nodeName||"").toLowerCase():"#document"}function tt(e){var o;return(e==null||(o=e.ownerDocument)==null?void 0:o.defaultView)||window}function It(e){var o;return(o=(Ua(e)?e.ownerDocument:e.document)||window.document)==null?void 0:o.documentElement}function Ua(e){return e instanceof Node||e instanceof tt(e).Node}function Ot(e){return e instanceof Element||e instanceof tt(e).Element}function yt(e){return e instanceof HTMLElement||e instanceof tt(e).HTMLElement}function za(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof tt(e).ShadowRoot}function Ee(e){let{overflow:o,overflowX:r,overflowY:n,display:a}=at(e);return/auto|scroll|overlay|hidden|clip/.test(o+n+r)&&!["inline","contents"].includes(a)}function Ha(e){return["table","td","th"].includes(Pt(e))}function ho(e){let o=mo(),r=at(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 Ga(e){let o=re(e);for(;yt(o)&&!Ue(o);){if(ho(o))return o;o=re(o)}return null}function mo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ue(e){return["html","body","#document"].includes(Pt(e))}function at(e){return tt(e).getComputedStyle(e)}function He(e){return Ot(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function re(e){if(Pt(e)==="html")return e;let o=e.assignedSlot||e.parentNode||za(e)&&e.host||It(e);return za(o)?o.host:o}function Fa(e){let o=re(e);return Ue(o)?e.ownerDocument?e.ownerDocument.body:e.body:yt(o)&&Ee(o)?o:Fa(o)}function yo(e,o,r){var n;o===void 0&&(o=[]),r===void 0&&(r=!0);let a=Fa(e),c=a===((n=e.ownerDocument)==null?void 0:n.body),l=tt(a);return c?o.concat(l,l.visualViewport||[],Ee(a)?a:[],l.frameElement&&r?yo(l.frameElement):[]):o.concat(a,yo(a,[],r))}function Za(e){let o=at(e),r=parseFloat(o.width)||0,n=parseFloat(o.height)||0,a=yt(e),c=a?e.offsetWidth:r,l=a?e.offsetHeight:n,d=ze(r)!==c||ze(n)!==l;return d&&(r=c,n=l),{width:r,height:n,$:d}}function Va(e){return Ot(e)?e:e.contextElement}function Ne(e){let o=Va(e);if(!yt(o))return Lt(1);let r=o.getBoundingClientRect(),{width:n,height:a,$:c}=Za(o),l=(c?ze(r.width):r.width)/n,d=(c?ze(r.height):r.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!d||!Number.isFinite(d))&&(d=1),{x:l,y:d}}var Mc=Lt(0);function Ya(e){let o=tt(e);return!mo()||!o.visualViewport?Mc:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function zc(e,o,r){return o===void 0&&(o=!1),!r||o&&r!==tt(e)?!1:o}function Ge(e,o,r,n){o===void 0&&(o=!1),r===void 0&&(r=!1);let a=e.getBoundingClientRect(),c=Va(e),l=Lt(1);o&&(n?Ot(n)&&(l=Ne(n)):l=Ne(e));let d=zc(c,r,n)?Ya(c):Lt(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(c){let m=tt(c),b=n&&Ot(n)?tt(n):n,g=m.frameElement;for(;g&&n&&b!==m;){let v=Ne(g),R=g.getBoundingClientRect(),E=at(g),N=R.left+(g.clientLeft+parseFloat(E.paddingLeft))*v.x,P=R.top+(g.clientTop+parseFloat(E.paddingTop))*v.y;p*=v.x,f*=v.y,y*=v.x,h*=v.y,p+=N,f+=P,g=tt(g).frameElement}}return oe({width:y,height:h,x:p,y:f})}function Uc(e){let{rect:o,offsetParent:r,strategy:n}=e,a=yt(r),c=It(r);if(r===c)return o;let l={scrollLeft:0,scrollTop:0},d=Lt(1),p=Lt(0);if((a||!a&&n!=="fixed")&&((Pt(r)!=="body"||Ee(c))&&(l=He(r)),yt(r))){let f=Ge(r);d=Ne(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 Hc(e){return Array.from(e.getClientRects())}function qa(e){return Ge(It(e)).left+He(e).scrollLeft}function Gc(e){let o=It(e),r=He(e),n=e.ownerDocument.body,a=Mt(o.scrollWidth,o.clientWidth,n.scrollWidth,n.clientWidth),c=Mt(o.scrollHeight,o.clientHeight,n.scrollHeight,n.clientHeight),l=-r.scrollLeft+qa(e),d=-r.scrollTop;return at(n).direction==="rtl"&&(l+=Mt(o.clientWidth,n.clientWidth)-a),{width:a,height:c,x:l,y:d}}function Fc(e,o){let r=tt(e),n=It(e),a=r.visualViewport,c=n.clientWidth,l=n.clientHeight,d=0,p=0;if(a){c=a.width,l=a.height;let f=mo();(!f||f&&o==="fixed")&&(d=a.offsetLeft,p=a.offsetTop)}return{width:c,height:l,x:d,y:p}}function jc(e,o){let r=Ge(e,!0,o==="fixed"),n=r.top+e.clientTop,a=r.left+e.clientLeft,c=yt(e)?Ne(e):Lt(1),l=e.clientWidth*c.x,d=e.clientHeight*c.y,p=a*c.x,f=n*c.y;return{width:l,height:d,x:p,y:f}}function ja(e,o,r){let n;if(o==="viewport")n=Fc(e,r);else if(o==="document")n=Gc(It(e));else if(Ot(o))n=jc(o,r);else{let a=Ya(e);n={...o,x:o.x-a.x,y:o.y-a.y}}return oe(n)}function Xa(e,o){let r=re(e);return r===o||!Ot(r)||Ue(r)?!1:at(r).position==="fixed"||Xa(r,o)}function Kc(e,o){let r=o.get(e);if(r)return r;let n=yo(e,[],!1).filter(d=>Ot(d)&&Pt(d)!=="body"),a=null,c=at(e).position==="fixed",l=c?re(e):e;for(;Ot(l)&&!Ue(l);){let d=at(l),p=ho(l);!p&&d.position==="fixed"&&(a=null),(c?!p&&!a:!p&&d.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Ee(l)&&!p&&Xa(e,l))?n=n.filter(y=>y!==l):a=d,l=re(l)}return o.set(e,n),n}function Zc(e){let{element:o,boundary:r,rootBoundary:n,strategy:a}=e,l=[...r==="clippingAncestors"?Kc(o,this._c):[].concat(r),n],d=l[0],p=l.reduce((f,y)=>{let h=ja(o,y,a);return f.top=Mt(h.top,f.top),f.right=Me(h.right,f.right),f.bottom=Me(h.bottom,f.bottom),f.left=Mt(h.left,f.left),f},ja(o,d,a));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function Vc(e){return Za(e)}function Yc(e,o,r){let n=yt(o),a=It(o),c=r==="fixed",l=Ge(e,!0,c,o),d={scrollLeft:0,scrollTop:0},p=Lt(0);if(n||!n&&!c)if((Pt(o)!=="body"||Ee(a))&&(d=He(o)),n){let f=Ge(o,!0,c,o);p.x=f.x+o.clientLeft,p.y=f.y+o.clientTop}else a&&(p.x=qa(a));return{x:l.left+d.scrollLeft-p.x,y:l.top+d.scrollTop-p.y,width:l.width,height:l.height}}function Ka(e,o){return!yt(e)||at(e).position==="fixed"?null:o?o(e):e.offsetParent}function Ja(e,o){let r=tt(e);if(!yt(e))return r;let n=Ka(e,o);for(;n&&Ha(n)&&at(n).position==="static";)n=Ka(n,o);return n&&(Pt(n)==="html"||Pt(n)==="body"&&at(n).position==="static"&&!ho(n))?r:n||Ga(e)||r}var qc=async function(e){let{reference:o,floating:r,strategy:n}=e,a=this.getOffsetParent||Ja,c=this.getDimensions;return{reference:Yc(o,await a(r),n),floating:{x:0,y:0,...await c(r)}}};function Xc(e){return at(e).direction==="rtl"}var go={convertOffsetParentRelativeRectToViewportRelativeRect:Uc,getDocumentElement:It,getClippingRect:Zc,getOffsetParent:Ja,getElementRects:qc,getClientRects:Hc,getDimensions:Vc,getScale:Ne,isElement:Ot,isRTL:Xc};var Qa=(e,o,r)=>{let n=new Map,a={platform:go,...r},c={...a.platform,_c:n};return Ma(e,o,{...a,platform:c})};function ti(e){return Jc(e)}function xr(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Jc(e){for(let o=e;o;o=xr(o))if(o instanceof Element&&getComputedStyle(o).display==="none")return null;for(let o=xr(e);o;o=xr(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 ei(e,o,r){return Qa(e,o,{platform:{...go,getOffsetParent:n=>go.getOffsetParent(n,ti)},middleware:[br({crossAxis:!0}),gr({allowedPlacements:[r]})]})}var et=function(e,o,r,n){var a=arguments.length,c=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(c=(a<3?l(c):a>3?l(o,r,c):l(o,r))||c);return a>3&&c&&Object.defineProperty(o,r,c),c},W=class extends Fe.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 Fe.Debouncer,this.revealDebouncer=new Fe.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return oi.html`
|
|
522
|
+
`;var Ba=["top","right","bottom","left"],Ta=["start","end"],pr=Ba.reduce((e,o)=>e.concat(o,o+"-"+Ta[0],o+"-"+Ta[1]),[]),Me=Math.min,Mt=Math.max,ze=Math.round;var Lt=e=>({x:e,y:e}),Tc={left:"right",right:"left",bottom:"top",top:"bottom"},Bc={start:"end",end:"start"};function ur(e,o,r){return Mt(e,Me(o,r))}function po(e,o){return typeof e=="function"?e(o):e}function we(e){return e.split("-")[0]}function zt(e){return e.split("-")[1]}function yr(e){return e==="x"?"y":"x"}function hr(e){return e==="y"?"height":"width"}function uo(e){return["top","bottom"].includes(we(e))?"y":"x"}function mr(e){return yr(uo(e))}function _a(e,o,r){r===void 0&&(r=!1);let n=zt(e),a=mr(e),c=hr(a),l=a==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return o.reference[c]>o.floating[c]&&(l=fr(l)),[l,fr(l)]}function Wa(e){return e.replace(/start|end/g,o=>Bc[o])}function fr(e){return e.replace(/left|right|bottom|top/g,o=>Tc[o])}function _c(e){return{top:0,right:0,bottom:0,left:0,...e}}function $a(e){return typeof e!="number"?_c(e):{top:e,right:e,bottom:e,left:e}}function oe(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Da(e,o,r){let{reference:n,floating:a}=e,c=uo(o),l=mr(o),d=hr(l),p=we(o),f=c==="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 Ma=async(e,o,r)=>{let{placement:n="bottom",strategy:a="absolute",middleware:c=[],platform:l}=r,d=c.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}=Da(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:P,data:T,reset:B}=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=P??h,b={...b,[R]:{...b[R],...T}},B&&g<=50){g++,typeof B=="object"&&(B.placement&&(m=B.placement),B.rects&&(f=B.rects===!0?await l.getElementRects({reference:e,floating:o,strategy:a}):B.rects),{x:y,y:h}=Da(f,m,p)),v=-1;continue}}return{x:y,y:h,placement:m,strategy:a,middlewareData:b}};async function gr(e,o){var r;o===void 0&&(o={});let{x:n,y:a,platform:c,rects:l,elements:d,strategy:p}=e,{boundary:f="clippingAncestors",rootBoundary:y="viewport",elementContext:h="floating",altBoundary:m=!1,padding:b=0}=po(o,e),g=$a(b),R=d[m?h==="floating"?"reference":"floating":h],E=oe(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(R)))==null||r?R:R.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:f,rootBoundary:y,strategy:p})),N=h==="floating"?{...l.floating,x:n,y:a}:l.reference,P=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),T=await(c.isElement==null?void 0:c.isElement(P))?await(c.getScale==null?void 0:c.getScale(P))||{x:1,y:1}:{x:1,y:1},B=oe(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({rect:N,offsetParent:P,strategy:p}):N);return{top:(E.top-B.top+g.top)/T.y,bottom:(B.bottom-E.bottom+g.bottom)/T.y,left:(E.left-B.left+g.left)/T.x,right:(B.right-E.right+g.right)/T.x}}function Wc(e,o,r){return(e?[...r.filter(a=>zt(a)===e),...r.filter(a=>zt(a)!==e)]:r.filter(a=>we(a)===a)).filter(a=>e?zt(a)===e||(o?Wa(a)!==a:!1):!0)}var br=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(o){var r,n,a;let{rects:c,middlewareData:l,placement:d,platform:p,elements:f}=o,{crossAxis:y=!1,alignment:h,allowedPlacements:m=pr,autoAlignment:b=!0,...g}=po(e,o),v=h!==void 0||m===pr?Wc(h||null,b,m):m,R=await gr(o,g),E=((r=l.autoPlacement)==null?void 0:r.index)||0,N=v[E];if(N==null)return{};let P=_a(N,c,await(p.isRTL==null?void 0:p.isRTL(f.floating)));if(d!==N)return{reset:{placement:v[0]}};let T=[R[we(N)],R[P[0]],R[P[1]]],B=[...((n=l.autoPlacement)==null?void 0:n.overflows)||[],{placement:N,overflows:T}],ct=v[E+1];if(ct)return{data:{index:E+1,overflows:B},reset:{placement:ct}};let Bt=B.map(rt=>{let lt=zt(rt.placement);return[rt.placement,lt&&y?rt.overflows.slice(0,2).reduce((nt,Jt)=>nt+Jt,0):rt.overflows[0],rt.overflows]}).sort((rt,lt)=>rt[1]-lt[1]),_t=((a=Bt.filter(rt=>rt[2].slice(0,zt(rt[0])?2:3).every(lt=>lt<=0))[0])==null?void 0:a[0])||Bt[0][0];return _t!==d?{data:{index:E+1,overflows:B},reset:{placement:_t}}:{}}}};var xr=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(o){let{x:r,y:n,placement:a}=o,{mainAxis:c=!0,crossAxis:l=!1,limiter:d={fn:R=>{let{x:E,y:N}=R;return{x:E,y:N}}},...p}=po(e,o),f={x:r,y:n},y=await gr(o,p),h=uo(we(a)),m=yr(h),b=f[m],g=f[h];if(c){let R=m==="y"?"top":"left",E=m==="y"?"bottom":"right",N=b+y[R],P=b-y[E];b=ur(N,b,P)}if(l){let R=h==="y"?"top":"left",E=h==="y"?"bottom":"right",N=g+y[R],P=g-y[E];g=ur(N,g,P)}let v=d.fn({...o,[m]:b,[h]:g});return{...v,data:{x:v.x-r,y:v.y-n}}}}};function Pt(e){return Ua(e)?(e.nodeName||"").toLowerCase():"#document"}function tt(e){var o;return(e==null||(o=e.ownerDocument)==null?void 0:o.defaultView)||window}function It(e){var o;return(o=(Ua(e)?e.ownerDocument:e.document)||window.document)==null?void 0:o.documentElement}function Ua(e){return e instanceof Node||e instanceof tt(e).Node}function Ot(e){return e instanceof Element||e instanceof tt(e).Element}function yt(e){return e instanceof HTMLElement||e instanceof tt(e).HTMLElement}function za(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof tt(e).ShadowRoot}function Ee(e){let{overflow:o,overflowX:r,overflowY:n,display:a}=at(e);return/auto|scroll|overlay|hidden|clip/.test(o+n+r)&&!["inline","contents"].includes(a)}function Ha(e){return["table","td","th"].includes(Pt(e))}function ho(e){let o=mo(),r=at(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 Ga(e){let o=re(e);for(;yt(o)&&!Ue(o);){if(ho(o))return o;o=re(o)}return null}function mo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ue(e){return["html","body","#document"].includes(Pt(e))}function at(e){return tt(e).getComputedStyle(e)}function He(e){return Ot(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function re(e){if(Pt(e)==="html")return e;let o=e.assignedSlot||e.parentNode||za(e)&&e.host||It(e);return za(o)?o.host:o}function Fa(e){let o=re(e);return Ue(o)?e.ownerDocument?e.ownerDocument.body:e.body:yt(o)&&Ee(o)?o:Fa(o)}function yo(e,o,r){var n;o===void 0&&(o=[]),r===void 0&&(r=!0);let a=Fa(e),c=a===((n=e.ownerDocument)==null?void 0:n.body),l=tt(a);return c?o.concat(l,l.visualViewport||[],Ee(a)?a:[],l.frameElement&&r?yo(l.frameElement):[]):o.concat(a,yo(a,[],r))}function Za(e){let o=at(e),r=parseFloat(o.width)||0,n=parseFloat(o.height)||0,a=yt(e),c=a?e.offsetWidth:r,l=a?e.offsetHeight:n,d=ze(r)!==c||ze(n)!==l;return d&&(r=c,n=l),{width:r,height:n,$:d}}function Va(e){return Ot(e)?e:e.contextElement}function Ne(e){let o=Va(e);if(!yt(o))return Lt(1);let r=o.getBoundingClientRect(),{width:n,height:a,$:c}=Za(o),l=(c?ze(r.width):r.width)/n,d=(c?ze(r.height):r.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!d||!Number.isFinite(d))&&(d=1),{x:l,y:d}}var Mc=Lt(0);function Ya(e){let o=tt(e);return!mo()||!o.visualViewport?Mc:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function zc(e,o,r){return o===void 0&&(o=!1),!r||o&&r!==tt(e)?!1:o}function Ge(e,o,r,n){o===void 0&&(o=!1),r===void 0&&(r=!1);let a=e.getBoundingClientRect(),c=Va(e),l=Lt(1);o&&(n?Ot(n)&&(l=Ne(n)):l=Ne(e));let d=zc(c,r,n)?Ya(c):Lt(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(c){let m=tt(c),b=n&&Ot(n)?tt(n):n,g=m.frameElement;for(;g&&n&&b!==m;){let v=Ne(g),R=g.getBoundingClientRect(),E=at(g),N=R.left+(g.clientLeft+parseFloat(E.paddingLeft))*v.x,P=R.top+(g.clientTop+parseFloat(E.paddingTop))*v.y;p*=v.x,f*=v.y,y*=v.x,h*=v.y,p+=N,f+=P,g=tt(g).frameElement}}return oe({width:y,height:h,x:p,y:f})}function Uc(e){let{rect:o,offsetParent:r,strategy:n}=e,a=yt(r),c=It(r);if(r===c)return o;let l={scrollLeft:0,scrollTop:0},d=Lt(1),p=Lt(0);if((a||!a&&n!=="fixed")&&((Pt(r)!=="body"||Ee(c))&&(l=He(r)),yt(r))){let f=Ge(r);d=Ne(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 Hc(e){return Array.from(e.getClientRects())}function qa(e){return Ge(It(e)).left+He(e).scrollLeft}function Gc(e){let o=It(e),r=He(e),n=e.ownerDocument.body,a=Mt(o.scrollWidth,o.clientWidth,n.scrollWidth,n.clientWidth),c=Mt(o.scrollHeight,o.clientHeight,n.scrollHeight,n.clientHeight),l=-r.scrollLeft+qa(e),d=-r.scrollTop;return at(n).direction==="rtl"&&(l+=Mt(o.clientWidth,n.clientWidth)-a),{width:a,height:c,x:l,y:d}}function Fc(e,o){let r=tt(e),n=It(e),a=r.visualViewport,c=n.clientWidth,l=n.clientHeight,d=0,p=0;if(a){c=a.width,l=a.height;let f=mo();(!f||f&&o==="fixed")&&(d=a.offsetLeft,p=a.offsetTop)}return{width:c,height:l,x:d,y:p}}function jc(e,o){let r=Ge(e,!0,o==="fixed"),n=r.top+e.clientTop,a=r.left+e.clientLeft,c=yt(e)?Ne(e):Lt(1),l=e.clientWidth*c.x,d=e.clientHeight*c.y,p=a*c.x,f=n*c.y;return{width:l,height:d,x:p,y:f}}function ja(e,o,r){let n;if(o==="viewport")n=Fc(e,r);else if(o==="document")n=Gc(It(e));else if(Ot(o))n=jc(o,r);else{let a=Ya(e);n={...o,x:o.x-a.x,y:o.y-a.y}}return oe(n)}function Xa(e,o){let r=re(e);return r===o||!Ot(r)||Ue(r)?!1:at(r).position==="fixed"||Xa(r,o)}function Kc(e,o){let r=o.get(e);if(r)return r;let n=yo(e,[],!1).filter(d=>Ot(d)&&Pt(d)!=="body"),a=null,c=at(e).position==="fixed",l=c?re(e):e;for(;Ot(l)&&!Ue(l);){let d=at(l),p=ho(l);!p&&d.position==="fixed"&&(a=null),(c?!p&&!a:!p&&d.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Ee(l)&&!p&&Xa(e,l))?n=n.filter(y=>y!==l):a=d,l=re(l)}return o.set(e,n),n}function Zc(e){let{element:o,boundary:r,rootBoundary:n,strategy:a}=e,l=[...r==="clippingAncestors"?Kc(o,this._c):[].concat(r),n],d=l[0],p=l.reduce((f,y)=>{let h=ja(o,y,a);return f.top=Mt(h.top,f.top),f.right=Me(h.right,f.right),f.bottom=Me(h.bottom,f.bottom),f.left=Mt(h.left,f.left),f},ja(o,d,a));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function Vc(e){return Za(e)}function Yc(e,o,r){let n=yt(o),a=It(o),c=r==="fixed",l=Ge(e,!0,c,o),d={scrollLeft:0,scrollTop:0},p=Lt(0);if(n||!n&&!c)if((Pt(o)!=="body"||Ee(a))&&(d=He(o)),n){let f=Ge(o,!0,c,o);p.x=f.x+o.clientLeft,p.y=f.y+o.clientTop}else a&&(p.x=qa(a));return{x:l.left+d.scrollLeft-p.x,y:l.top+d.scrollTop-p.y,width:l.width,height:l.height}}function Ka(e,o){return!yt(e)||at(e).position==="fixed"?null:o?o(e):e.offsetParent}function Ja(e,o){let r=tt(e);if(!yt(e))return r;let n=Ka(e,o);for(;n&&Ha(n)&&at(n).position==="static";)n=Ka(n,o);return n&&(Pt(n)==="html"||Pt(n)==="body"&&at(n).position==="static"&&!ho(n))?r:n||Ga(e)||r}var qc=async function(e){let{reference:o,floating:r,strategy:n}=e,a=this.getOffsetParent||Ja,c=this.getDimensions;return{reference:Yc(o,await a(r),n),floating:{x:0,y:0,...await c(r)}}};function Xc(e){return at(e).direction==="rtl"}var go={convertOffsetParentRelativeRectToViewportRelativeRect:Uc,getDocumentElement:It,getClippingRect:Zc,getOffsetParent:Ja,getElementRects:qc,getClientRects:Hc,getDimensions:Vc,getScale:Ne,isElement:Ot,isRTL:Xc};var Qa=(e,o,r)=>{let n=new Map,a={platform:go,...r},c={...a.platform,_c:n};return Ma(e,o,{...a,platform:c})};function ti(e){return Jc(e)}function vr(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Jc(e){for(let o=e;o;o=vr(o))if(o instanceof Element&&getComputedStyle(o).display==="none")return null;for(let o=vr(e);o;o=vr(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 ei(e,o,r){return Qa(e,o,{platform:{...go,getOffsetParent:n=>go.getOffsetParent(n,ti)},middleware:[xr({crossAxis:!0}),br({allowedPlacements:[r]})]})}var et=function(e,o,r,n){var a=arguments.length,c=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(c=(a<3?l(c):a>3?l(o,r,c):l(o,r))||c);return a>3&&c&&Object.defineProperty(o,r,c),c},W=class extends Fe.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 Fe.Debouncer,this.revealDebouncer=new Fe.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return oi.html`
|
|
523
523
|
<div part="container"
|
|
524
524
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
525
525
|
@mouseenter=${this.onHover}
|
|
@@ -549,7 +549,7 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
549
549
|
<div></div>
|
|
550
550
|
<div></div>
|
|
551
551
|
</div>
|
|
552
|
-
`}};ae.styles=ta;(0,fi.customElement)("ft-loader")(ae);var Ut=O(M()),
|
|
552
|
+
`}};ae.styles=ta;(0,fi.customElement)("ft-loader")(ae);var Ut=O(M()),Sr=O(tr()),F=O(Y()),V=function(e,o,r,n){var a=arguments.length,c=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(c=(a<3?l(c):a>3?l(o,r,c):l(o,r))||c);return a>3&&c&&Object.defineProperty(o,r,c),c},$=class extends(0,Ht.toFtFormComponent)(Ht.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=Ut.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.`,i.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
563
563
|
<a href="${c}"
|
|
564
564
|
target="${(o=this.target)!==null&&o!==void 0?o:"_self"}"
|
|
565
565
|
part="button"
|
|
566
|
-
class="${(0,
|
|
566
|
+
class="${(0,Sr.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
|
`:Ut.html`
|
|
572
572
|
<button part="button"
|
|
573
|
-
class="${(0,
|
|
573
|
+
class="${(0,Sr.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.`,i.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 So=function(e,o,r,n){var a=arguments.length,c=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(c=(a<3?l(c):a>3?l(o,r,c):l(o,r))||c);return a>3&&c&&Object.defineProperty(o,r,c),c},kt=class extends(0,Oo.toFtdsBase)($){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=io.brand,this.iconVariant=Ct.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 fe.large:return Dt.body2medium;case fe.medium:return Dt.caption1medium;case fe.small:return Dt.caption2medium}}};kt.styles=[Oo.safariEllipsisFix,yi];So([(0,Ze.property)({type:Boolean})],kt.prototype,"primary",void 0);So([(0,Ze.property)({type:Boolean})],kt.prototype,"secondary",void 0);So([(0,Ze.property)({type:Boolean})],kt.prototype,"tertiary",void 0);So([(0,Ze.property)({type:Boolean})],kt.prototype,"round",void 0);(0,
|
|
1055
|
+
`,x.noTextSelect];var So=function(e,o,r,n){var a=arguments.length,c=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(c=(a<3?l(c):a>3?l(o,r,c):l(o,r))||c);return a>3&&c&&Object.defineProperty(o,r,c),c},kt=class extends(0,Oo.toFtdsBase)($){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=io.brand,this.iconVariant=Ct.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 fe.large:return Dt.body2medium;case fe.medium:return Dt.caption1medium;case fe.small:return Dt.caption2medium}}};kt.styles=[Oo.safariEllipsisFix,yi];So([(0,Ze.property)({type:Boolean})],kt.prototype,"primary",void 0);So([(0,Ze.property)({type:Boolean})],kt.prototype,"secondary",void 0);So([(0,Ze.property)({type:Boolean})],kt.prototype,"tertiary",void 0);So([(0,Ze.property)({type:Boolean})],kt.prototype,"round",void 0);(0,Or.customElement)("ft-button")(ht);(0,Or.customElement)("ftds-button")(kt);var hi=O(M()),ft=O(k()),mt={spacing:ft.FtCssVariableFactory.create("--ft-copy-block-spacing","","SIZE","12px 48px 12px 12px"),borderRadius:ft.FtCssVariableFactory.extend("--ft-copy-block-border-radius","",ft.designSystemVariables.borderRadiusS),borderStyle:ft.FtCssVariableFactory.create("--ft-copy-block-border-style","","BORDER-STYLE","solid"),borderColor:ft.FtCssVariableFactory.extend("--ft-copy-block-border-color","",ft.designSystemVariables.colorOutline),borderWidth:ft.FtCssVariableFactory.create("--ft-copy-block-border-width","","SIZE","1px"),backgroundColor:ft.FtCssVariableFactory.extend("--ft-copy-block-background-color","",ft.designSystemVariables.colorSurface),buttonHeight:ft.FtCssVariableFactory.create("--ft-copy-block-button-height","","SIZE","unset")},mi=hi.css`
|
|
1056
1056
|
:host {
|
|
1057
1057
|
display: block;
|
|
1058
1058
|
}
|
|
@@ -1095,15 +1095,15 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
1095
1095
|
height: ${mt.buttonHeight}
|
|
1096
1096
|
}
|
|
1097
1097
|
|
|
1098
|
-
`;var gc=O(k());var
|
|
1099
|
-
`;var
|
|
1100
|
-
`;var Co=O(k()),Qc="ft-app-info",
|
|
1098
|
+
`;var gc=O(k());var Zo=O(M()),Vo=O(Y()),Yo=O(k());var gi=O(M());var bi=gi.css`
|
|
1099
|
+
`;var Ko=O(k());var yc=O(k());var Ci=O(M()),ot=O(Y()),gt=O(k());var xi=O(M());var vi=xi.css`
|
|
1100
|
+
`;var Co=O(k()),Qc="ft-app-info",Cr=class extends CustomEvent{constructor(o){super("authentication-change",{detail:o})}},tl={session:(e,o)=>{(0,Co.deepEqual)(e.session,o.payload)||(e.session=o.payload,setTimeout(()=>L.dispatchEvent(new Cr(o.payload)),0))}},L=Co.FtReduxStore.get({name:Qc,reducers:tl,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 Ft=O(k());var wr=O(k());var ie=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 Gt=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 wr.CacheRegistry,this.cache=o?a.commonCache:new wr.CacheRegistry}get api(){var o;return(o=this.overrideApi)!==null&&o!==void 0?o:ie.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):ie.await()}clearCache(){this.cache.clearAll()}};var Si,el=Symbol("clearAfterUnitTest"),wo=class extends Gt{constructor(o){super(),this.messageContextProvider=o,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Si]=()=>{this.defaultMessages={},this.cache=new Ft.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,Ft.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 c=o.toLowerCase(),l=this.resolveContext(c);return new Ft.ParametrizedLabelResolver((a=this.defaultMessages[c])!==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,Ft.delay)(0).then(()=>r()).catch(()=>null)))}};Si=el;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends wo{constructor(){super(async(e,o)=>(await this.awaitApi).getFluidTopicsMessageContext(e,o))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends wo{constructor(){super(async(e,o)=>(await this.awaitApi).getCustomMessageContext(e,o))}});var ce=window.FluidTopicsI18nService,Oi=window.FluidTopicsCustomI18nService;var q=function(e,o,r,n){var a=arguments.length,c=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(c=(a<3?l(c):a>3?l(o,r,c):l(o,r))||c);return a>3&&c&&Object.defineProperty(o,r,c),c},U=class extends gt.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=()=>ie.get(),this.messageContexts=[],this.cache=new gt.CacheRegistry,this.cleanSessionDebouncer=new gt.Debouncer}render(){return Ci.html`
|
|
1101
1101
|
<slot></slot>
|
|
1102
|
-
`}update(o){var r,n,a,c,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=>ce.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=(c=this.localesConfiguration)===null||c===void 0?void 0:c.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())}};U.elementDefinitions={};U.styles=vi;q([(0,ot.property)()],U.prototype,"baseUrl",void 0);q([(0,ot.property)()],U.prototype,"apiIntegrationIdentifier",void 0);q([(0,ot.property)()],U.prototype,"uiLocale",void 0);q([(0,gt.jsonProperty)(null)],U.prototype,"availableUiLocales",void 0);q([(0,gt.jsonProperty)(null)],U.prototype,"metadataConfiguration",void 0);q([(0,ot.property)({type:Boolean})],U.prototype,"editorMode",void 0);q([(0,ot.property)({type:Boolean})],U.prototype,"noCustom",void 0);q([(0,ot.property)({type:Boolean})],U.prototype,"openExternalDocumentInNewTab",void 0);q([(0,ot.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],U.prototype,"noCustomComponent",void 0);q([(0,ot.property)({type:Boolean})],U.prototype,"withManualResources",void 0);q([(0,ot.property)({type:Boolean})],U.prototype,"navigatorOnline",void 0);q([(0,ot.property)({type:Boolean})],U.prototype,"forcedOffline",void 0);q([(0,ot.property)({type:Object})],U.prototype,"apiProvider",void 0);q([(0,gt.jsonProperty)([])],U.prototype,"messageContexts",void 0);q([(0,gt.jsonProperty)(void 0)],U.prototype,"session",void 0);q([(0,ot.state)()],U.prototype,"localesConfiguration",void 0);var Hl=O(Y());function ol(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(!Eo(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(!Eo(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 c=a[n];if(!Eo(e[c],o[c]))return!1}return!0}return e!==e&&o!==o}function Eo(e,o){try{return ol(e,o)}catch{return!1}}function wr(e,o){return!Eo(e,o)}var rl=O(Y(),1);var No=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 Ve=O(Y(),1);var wi=O(Y(),1);function Ei(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:wr,...o??{}})}var Ao=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,c=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let l of n)try{await l()}catch(d){a(d);return}c(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Ai=O(M(),1);var Ro=window,nl=Ro.ShadowRoot&&(Ro.ShadyCSS===void 0||Ro.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,_h=Symbol();var Ni=(e,o)=>{nl?e.adoptedStyleSheets=o.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):o.forEach(r=>{let n=document.createElement("style"),a=Ro.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=r.cssText,e.appendChild(n)})};var Lo=class extends Ai.LitElement{createRenderRoot(){let o=this.constructor;o.elementDefinitions&&!o.registry&&(o.registry=new CustomElementRegistry,Object.entries(o.elementDefinitions).forEach(([a,c])=>o.registry.define(a,c)));let r={...o.shadowRootOptions,customElements:o.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Ni(n,o.elementStyles),n}};var Po=function(e,o,r,n){var a=arguments.length,c=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(c=(a<3?l(c):a>3?l(o,r,c):l(o,r))||c);return a>3&&c&&Object.defineProperty(o,r,c),c},Ii,Ri=Symbol("constructorPrototype"),Li=Symbol("constructorName"),ki=Symbol("exportpartsDebouncer"),Pi=Symbol("dynamicDependenciesLoaded"),jt=class extends Lo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Ii]=new Ao(5),this[Li]=this.constructor.name,this[Ri]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Li]&&Object.setPrototypeOf(this,this[Ri])}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[Pi]||(o[Pi]=!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(c=>c.remove()),this.useAdoptedStyleSheets){if(o.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(c){console.error(c,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let c=document.createElement("style");c.classList.add("ft-lit-element--custom-stylesheet"),c.innerHTML=this.customStylesheet,this.shadowRoot.append(c)}}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[ki].run(()=>{var a,c;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((c=this.exportpartsPrefixes)===null||c===void 0?void 0:c.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(o){var r,n,a,c,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=(c=(a=m.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&c!==void 0?c:[],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(", "))}};Ii=ki;Po([(0,Ve.property)()],jt.prototype,"exportpartsPrefix",void 0);Po([Ei([])],jt.prototype,"exportpartsPrefixes",void 0);Po([(0,Ve.property)()],jt.prototype,"customStylesheet",void 0);Po([(0,Ve.state)()],jt.prototype,"useAdoptedStyleSheets",void 0);function Ye(e){var o;return(o=e?.isFtReduxStore)!==null&&o!==void 0?o:!1}var Ti,Bi,_i,qe=Symbol("internalReduxEventsUnsubscribers"),Kt=Symbol("internalStoresUnsubscribers"),le=Symbol("internalStores"),Xe=class extends jt{constructor(){super(...arguments),this[Ti]=new Map,this[Bi]=new Map,this[_i]=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[le].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[le].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[le].get(o)}addStore(o,r){var n;r=(n=r??(Ye(o)?o.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(r),this[le].set(r,o),this.subscribeToStore(r,o),this.updateFromStores()}removeStore(o){let r=typeof o=="string"?o:o.name;this.unsubscribeFromStore(r),this[le].delete(r)}setupStores(){this.unsubscribeFromStores(),this[le].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[Kt].has(o.store):this[Kt].size>0)&&(this[r]=o.selector(a.getState(),this))}})}subscribeToStore(o,r){var n;this[Kt].set(o,r.subscribe(()=>this.updateFromStores())),this[qe].set(o,[]),Ye(r)&&r.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,c)=>{if(typeof this[c]=="function"&&(!a.store||r.name===a.store)){let l=d=>this[c](d);r.addEventListener(a.eventName,l),this[qe].get(o).push(()=>r.removeEventListener(a.eventName,l))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[Kt].forEach((o,r)=>this.unsubscribeFromStore(r))}unsubscribeFromStore(o){var r;this[Kt].has(o)&&this[Kt].get(o)(),this[Kt].delete(o),(r=this[qe].get(o))===null||r===void 0||r.forEach(n=>n()),this[qe].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Ti=Kt,Bi=le,_i=qe;Xe.reduxProperties=new Map;Xe.reduxReactiveProperties=new Set;Xe.reduxEventListeners=new Map;function pt(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,c;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 Tt(e){return!!e&&!!e[D]}function bt(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)===pl}(e)||Array.isArray(e)||!!e[Hi]||!!(!((o=e.constructor)===null||o===void 0)&&o[Hi])||Tr(e)||Br(e))}function se(e,o,r){r===void 0&&(r=!1),Le(e)===0?(r?Object.keys:Re)(e).forEach(function(n){r&&typeof n=="symbol"||o(n,e[n],e)}):e.forEach(function(n,a){return o(a,n,e)})}function Le(e){var o=e[D];return o?o.i>3?o.i-4:o.i:Array.isArray(e)?1:Tr(e)?2:Br(e)?3:0}function Ae(e,o){return Le(e)===2?e.has(o):Object.prototype.hasOwnProperty.call(e,o)}function al(e,o){return Le(e)===2?e.get(o):e[o]}function Gi(e,o,r){var n=Le(e);n===2?e.set(o,r):n===3?e.add(r):e[o]=r}function Fi(e,o){return e===o?e!==0||1/e==1/o:e!=e&&o!=o}function Tr(e){return dl&&e instanceof Map}function Br(e){return fl&&e instanceof Set}function Zt(e){return e.o||e.t}function _r(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var o=Zi(e);delete o[D];for(var r=Re(o),n=0;n<r.length;n++){var a=r[n],c=o[a];c.writable===!1&&(c.writable=!0,c.configurable=!0),(c.get||c.set)&&(o[a]={configurable:!0,writable:!0,enumerable:c.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),o)}function Wr(e,o){return o===void 0&&(o=!1),$r(e)||Tt(e)||!bt(e)||(Le(e)>1&&(e.set=e.add=e.clear=e.delete=il),Object.freeze(e),o&&se(e,function(r,n){return Wr(n,!0)},!0)),e}function il(){pt(2)}function $r(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function wt(e){var o=kr[e];return o||pt(18,e),o}function cl(e,o){kr[e]||(kr[e]=o)}function Lr(){return Qe}function Er(e,o){o&&(wt("Patches"),e.u=[],e.s=[],e.v=o)}function Io(e){Pr(e),e.p.forEach(ll),e.p=null}function Pr(e){e===Qe&&(Qe=e.l)}function Wi(e){return Qe={p:[],l:Qe,h:e,m:!0,_:0}}function ll(e){var o=e[D];o.i===0||o.i===1?o.j():o.g=!0}function Nr(e,o){o._=o.p.length;var r=o.p[0],n=e!==void 0&&e!==r;return o.h.O||wt("ES5").S(o,e,n),n?(r[D].P&&(Io(o),pt(4)),bt(e)&&(e=ko(o,e),o.l||To(o,e)),o.u&&wt("Patches").M(r[D].t,e,o.u,o.s)):e=ko(o,r,[]),Io(o),o.u&&o.v(o.u,o.s),e!==Ki?e:void 0}function ko(e,o,r){if($r(o))return o;var n=o[D];if(!n)return se(o,function(d,p){return $i(e,n,o,d,p,r)},!0),o;if(n.A!==e)return o;if(!n.P)return To(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=_r(n.k):n.o,c=a,l=!1;n.i===3&&(c=new Set(a),a.clear(),l=!0),se(c,function(d,p){return $i(e,n,a,d,p,r,l)}),To(e,a,!1),r&&e.u&&wt("Patches").N(n,r,e.u,e.s)}return n.o}function $i(e,o,r,n,a,c,l){if(Tt(a)){var d=ko(e,a,c&&o&&o.i!==3&&!Ae(o.R,n)?c.concat(n):void 0);if(Gi(r,n,d),!Tt(d))return;e.m=!1}else l&&r.add(a);if(bt(a)&&!$r(a)){if(!e.h.D&&e._<1)return;ko(e,a),o&&o.A.l||To(e,a)}}function To(e,o,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Wr(o,r)}function Ar(e,o){var r=e[D];return(r?Zt(r):e)[o]}function Di(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 Vt(e){e.P||(e.P=!0,e.l&&Vt(e.l))}function Rr(e){e.o||(e.o=_r(e.t))}function Ir(e,o,r){var n=Tr(o)?wt("MapSet").F(o,r):Br(o)?wt("MapSet").T(o,r):e.O?function(a,c){var l=Array.isArray(a),d={i:l?1:0,A:c?c.A:Lr(),P:!1,I:!1,R:{},l:c,t:a,k:null,o:null,j:null,C:!1},p=d,f=to;l&&(p=[d],f=Je);var y=Proxy.revocable(p,f),h=y.revoke,m=y.proxy;return d.k=m,d.j=h,m}(o,r):wt("ES5").J(o,r);return(r?r.A:Lr()).p.push(n),n}function sl(e){return Tt(e)||pt(22,e),function o(r){if(!bt(r))return r;var n,a=r[D],c=Le(r);if(a){if(!a.P&&(a.i<4||!wt("ES5").K(a)))return a.t;a.I=!0,n=Mi(r,c),a.I=!1}else n=Mi(r,c);return se(n,function(l,d){a&&al(a.t,l)===d||Gi(n,l,o(d))}),c===3?new Set(n):n}(e)}function Mi(e,o){switch(o){case 2:return new Map(e);case 3:return Array.from(e)}return _r(e)}function ji(){function e(l,d){var p=c[l];return p?p.enumerable=d:c[l]=p={configurable:!0,enumerable:d,get:function(){var f=this[D];return to.get(f,l)},set:function(f){var y=this[D];to.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)&&Vt(p);break;case 4:r(p)&&Vt(p)}}}function r(l){for(var d=l.t,p=l.k,f=Re(p),y=f.length-1;y>=0;y--){var h=f[y];if(h!==D){var m=d[h];if(m===void 0&&!Ae(d,h))return!0;var b=p[h],g=b&&b[D];if(g?g.t!==m:!Fi(b,m))return!0}}var v=!!d[D];return f.length!==Re(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&&pt(3,JSON.stringify(Zt(l)))}var c={};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=Zi(m);delete v[D];for(var R=Re(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:Lr(),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?Tt(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)se(b,function(T){T!==D&&(m[T]!==void 0||Ae(m,T)?g[T]||f(b[T]):(g[T]=!0,Vt(h)))}),se(m,function(T){b[T]!==void 0||Ae(b,T)||(g[T]=!1,Vt(h))});else if(v===5){if(n(h)&&(Vt(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),P=0;P<N;P++)b.hasOwnProperty(P)||(g[P]=!0),g[P]===void 0&&f(b[P])}}}}(l.p[0]),o(l.p))},K:function(l){return l.i===4?r(l):n(l)}})}var zi,Qe,Dr=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",dl=typeof Map<"u",fl=typeof Set<"u",Ui=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ki=Dr?Symbol.for("immer-nothing"):((zi={})["immer-nothing"]=!0,zi),Hi=Dr?Symbol.for("immer-draftable"):"__$immer_draftable",D=Dr?Symbol.for("immer-state"):"__$immer_state";var pl=""+Object.prototype.constructor,Re=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Zi=Object.getOwnPropertyDescriptors||function(e){var o={};return Re(e).forEach(function(r){o[r]=Object.getOwnPropertyDescriptor(e,r)}),o},kr={},to={get:function(e,o){if(o===D)return e;var r=Zt(e);if(!Ae(r,o))return function(a,c,l){var d,p=Di(c,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||!bt(n)?n:n===Ar(e.t,o)?(Rr(e),e.o[o]=Ir(e.A.h,n,e)):n},has:function(e,o){return o in Zt(e)},ownKeys:function(e){return Reflect.ownKeys(Zt(e))},set:function(e,o,r){var n=Di(Zt(e),o);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var a=Ar(Zt(e),o),c=a?.[D];if(c&&c.t===r)return e.o[o]=r,e.R[o]=!1,!0;if(Fi(r,a)&&(r!==void 0||Ae(e.t,o)))return!0;Rr(e),Vt(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 Ar(e.t,o)!==void 0||o in e.t?(e.R[o]=!1,Rr(e),Vt(e)):delete e.R[o],e.o&&delete e.o[o],!0},getOwnPropertyDescriptor:function(e,o){var r=Zt(e),n=Reflect.getOwnPropertyDescriptor(r,o);return n&&{writable:!0,configurable:e.i!==1||o!=="length",enumerable:n.enumerable,value:r[o]}},defineProperty:function(){pt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){pt(12)}},Je={};se(to,function(e,o){Je[e]=function(){return arguments[0]=arguments[0][0],o.apply(this,arguments)}}),Je.deleteProperty=function(e,o){return Je.set.call(this,e,o,void 0)},Je.set=function(e,o,r){return to.set.call(this,e[0],o,r,e[0])};var ul=function(){function e(r){var n=this;this.O=Ui,this.D=!0,this.produce=function(a,c,l){if(typeof a=="function"&&typeof c!="function"){var d=c;c=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),P=1;P<E;P++)N[P-1]=arguments[P];return p.produce(v,function(T){var B;return(B=c).call.apply(B,[R,T].concat(N))})}}var f;if(typeof c!="function"&&pt(6),l!==void 0&&typeof l!="function"&&pt(7),bt(a)){var y=Wi(n),h=Ir(n,a,void 0),m=!0;try{f=c(h),m=!1}finally{m?Io(y):Pr(y)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(v){return Er(y,l),Nr(v,y)},function(v){throw Io(y),v}):(Er(y,l),Nr(f,y))}if(!a||typeof a!="object"){if((f=c(a))===void 0&&(f=a),f===Ki&&(f=void 0),n.D&&Wr(f,!0),l){var b=[],g=[];wt("Patches").M(a,f,b,g),l(b,g)}return f}pt(21,a)},this.produceWithPatches=function(a,c){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,c,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){bt(r)||pt(8),Tt(r)&&(r=sl(r));var n=Wi(this),a=Ir(this,r,void 0);return a[D].C=!0,Pr(n),a},o.finishDraft=function(r,n){var a=r&&r[D],c=a.A;return Er(c,n),Nr(void 0,c)},o.setAutoFreeze=function(r){this.D=r},o.setUseProxies=function(r){r&&!Ui&&pt(20),this.O=r},o.applyPatches=function(r,n){var a;for(a=n.length-1;a>=0;a--){var c=n[a];if(c.path.length===0&&c.op==="replace"){r=c.value;break}}a>-1&&(n=n.slice(a+1));var l=wt("Patches").$;return Tt(r)?l(r,n):this.produce(r,function(d){return l(d,n)})},e}(),it=new ul,yl=it.produce,Zh=it.produceWithPatches.bind(it),Vh=it.setAutoFreeze.bind(it),Yh=it.setUseProxies.bind(it),qh=it.applyPatches.bind(it),Xh=it.createDraft.bind(it),Jh=it.finishDraft.bind(it),Bo=yl;function Yt(e){"@babel/helpers - typeof";return Yt=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},Yt(e)}function Mr(e,o){if(Yt(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,o||"default");if(Yt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(e)}function zr(e){var o=Mr(e,"string");return Yt(o)==="symbol"?o:String(o)}function Ur(e,o,r){return o=zr(o),o in e?Object.defineProperty(e,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[o]=r,e}function Vi(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 _o(e){for(var o=1;o<arguments.length;o++){var r=arguments[o]!=null?arguments[o]:{};o%2?Vi(Object(r),!0).forEach(function(n){Ur(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vi(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function X(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 Yi=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Hr=function(){return Math.random().toString(36).substring(7).split("").join(".")},Wo={INIT:"@@redux/INIT"+Hr(),REPLACE:"@@redux/REPLACE"+Hr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Hr()}};function hl(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 Gr(e,o,r){var n;if(typeof o=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(X(0));if(typeof o=="function"&&typeof r>"u"&&(r=o,o=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(X(1));return r(Gr)(e,o)}if(typeof e!="function")throw new Error(X(2));var a=e,c=o,l=[],d=l,p=!1;function f(){d===l&&(d=l.slice())}function y(){if(p)throw new Error(X(3));return c}function h(v){if(typeof v!="function")throw new Error(X(4));if(p)throw new Error(X(5));var R=!0;return f(),d.push(v),function(){if(R){if(p)throw new Error(X(6));R=!1,f();var N=d.indexOf(v);d.splice(N,1),l=null}}}function m(v){if(!hl(v))throw new Error(X(7));if(typeof v.type>"u")throw new Error(X(8));if(p)throw new Error(X(9));try{p=!0,c=a(c,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(X(10));a=v,m({type:Wo.REPLACE})}function g(){var v,R=h;return v={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(X(11));function P(){N.next&&N.next(y())}P();var T=R(P);return{unsubscribe:T}}},v[Yi]=function(){return this},v}return m({type:Wo.INIT}),n={dispatch:m,subscribe:h,getState:y,replaceReducer:b},n[Yi]=g,n}function ml(e){Object.keys(e).forEach(function(o){var r=e[o],n=r(void 0,{type:Wo.INIT});if(typeof n>"u")throw new Error(X(12));if(typeof r(void 0,{type:Wo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(X(13))})}function qi(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 c=Object.keys(r),l,d;try{ml(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<c.length;g++){var v=c[g],R=r[v],E=f[v],N=R(E,y);if(typeof N>"u"){var P=y&&y.type;throw new Error(X(14))}b[v]=N,m=m||N!==E}return m=m||c.length!==Object.keys(f).length,m?b:f}}function Pe(){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 Xi(){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),c=function(){throw new Error(X(15))},l={getState:a.getState,dispatch:function(){return c.apply(void 0,arguments)}},d=o.map(function(p){return p(l)});return c=Pe.apply(void 0,d)(a.dispatch),_o(_o({},a),{},{dispatch:c})}}}function Ji(e){var o=function(n){var a=n.dispatch,c=n.getState;return function(l){return function(d){return typeof d=="function"?d(a,c,e):l(d)}}};return o}var Qi=Ji();Qi.withExtraArgument=Ji;var Fr=Qi;var nc=function(){var e=function(o,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(n[c]=a[c])},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)}}(),gl=function(e,o){var r={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},n,a,c,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&&(c=f[0]&2?a.return:f[0]?a.throw||((c=a.return)&&c.call(a),0):a.next)&&!(c=c.call(a,f[1])).done)return c;switch(a=0,c&&(f=[f[0]&2,c.value]),f[0]){case 0:case 1:c=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(c=r.trys,!(c=c.length>0&&c[c.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!c||f[1]>c[0]&&f[1]<c[3])){r.label=f[1];break}if(f[0]===6&&r.label<c[1]){r.label=c[1],c=f;break}if(c&&r.label<c[2]){r.label=c[2],r.ops.push(f);break}c[2]&&r.ops.pop(),r.trys.pop();continue}f=o.call(e,r)}catch(y){f=[6,y],a=0}finally{n=c=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},Ie=function(e,o){for(var r=0,n=o.length,a=e.length;r<n;r++,a++)e[a]=o[r];return e},bl=Object.defineProperty,xl=Object.defineProperties,vl=Object.getOwnPropertyDescriptors,tc=Object.getOwnPropertySymbols,Sl=Object.prototype.hasOwnProperty,Ol=Object.prototype.propertyIsEnumerable,ec=function(e,o,r){return o in e?bl(e,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[o]=r},qt=function(e,o){for(var r in o||(o={}))Sl.call(o,r)&&ec(e,r,o[r]);if(tc)for(var n=0,a=tc(o);n<a.length;n++){var r=a[n];Ol.call(o,r)&&ec(e,r,o[r])}return e},jr=function(e,o){return xl(e,vl(o))},Cl=function(e,o,r){return new Promise(function(n,a){var c=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(c,l)};d((r=r.apply(e,o)).next())})};var wl=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Pe:Pe.apply(null,arguments)},mm=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function El(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 Nl=function(e){nc(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,Ie([void 0],r[0].concat(this)))):new(o.bind.apply(o,Ie([void 0],r.concat(this))))},o}(Array),Al=function(e){nc(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,Ie([void 0],r[0].concat(this)))):new(o.bind.apply(o,Ie([void 0],r.concat(this))))},o}(Array);function Vr(e){return bt(e)?Bo(e,function(){}):e}function Rl(e){return typeof e=="boolean"}function Ll(){return function(o){return Pl(o)}}function Pl(e){e===void 0&&(e={});var o=e.thunk,r=o===void 0?!0:o,n=e.immutableCheck,a=n===void 0?!0:n,c=e.serializableCheck,l=c===void 0?!0:c,d=new Nl;if(r&&(Rl(r)?d.push(Fr):d.push(Fr.withExtraArgument(r.extraArgument))),0){if(a)var p;if(l)var f}return d}var Kr=!0;function ac(e){var o=Ll(),r=e||{},n=r.reducer,a=n===void 0?void 0:n,c=r.middleware,l=c===void 0?o():c,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(El(a))b=qi(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),!Kr&&!Array.isArray(g)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Kr&&g.some(function(T){return typeof T!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=Xi.apply(void 0,g),R=Pe;p&&(R=wl(qt({trace:!Kr},typeof p=="object"&&p)));var E=new Al(v),N=E;Array.isArray(m)?N=Ie([v],m):typeof m=="function"&&(N=m(E));var P=R.apply(void 0,N);return Gr(b,y,P)}function Xt(e,o){function r(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(o){var c=o.apply(void 0,n);if(!c)throw new Error("prepareAction did not return an object");return qt(qt({type:e,payload:c.payload},"meta"in c&&{meta:c.meta}),"error"in c&&{error:c.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 ic(e){var o={},r=[],n,a={addCase:function(c,l){var d=typeof c=="string"?c:c.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(c,l){return r.push({matcher:c,reducer:l}),a},addDefaultCase:function(c){return n=c,a}};return e(a),[o,r,n]}function Il(e){return typeof e=="function"}function kl(e,o,r,n){r===void 0&&(r=[]);var a=typeof o=="function"?ic(o):[o,r,n],c=a[0],l=a[1],d=a[2],p;if(Il(e))p=function(){return Vr(e())};else{var f=Vr(e);p=function(){return f}}function y(h,m){h===void 0&&(h=p());var b=Ie([c[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(Tt(g)){var R=g,E=v(R,m);return E===void 0?g:E}else{if(bt(g))return Bo(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 Tl(e,o){return e+"/"+o}function cc(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:Vr(e.initialState),n=e.reducers||{},a=Object.keys(n),c={},l={},d={};a.forEach(function(y){var h=n[y],m=Tl(o,y),b,g;"reducer"in h?(b=h.reducer,g=h.prepare):b=h,c[y]=b,l[m]=b,d[y]=g?Xt(m,g):Xt(m)});function p(){var y=typeof e.extraReducers=="function"?ic(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=qt(qt({},m),l);return kl(r,function(N){for(var P in E)N.addCase(P,E[P]);for(var T=0,B=g;T<B.length;T++){var ct=B[T];N.addMatcher(ct.matcher,ct.reducer)}R&&N.addDefaultCase(R)})}var f;return{name:o,reducer:function(y,h){return f||(f=p()),f(y,h)},actions:d,caseReducers:c,getInitialState:function(){return f||(f=p()),f.getInitialState()}}}var Bl="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",_l=function(e){e===void 0&&(e=21);for(var o="",r=e;r--;)o+=Bl[Math.random()*64|0];return o},Wl=["name","message","stack","code"],Zr=function(){function e(o,r){this.payload=o,this.meta=r}return e}(),oc=function(){function e(o,r){this.payload=o,this.meta=r}return e}(),$l=function(e){if(typeof e=="object"&&e!==null){for(var o={},r=0,n=Wl;r<n.length;r++){var a=n[r];typeof e[a]=="string"&&(o[a]=e[a])}return o}return{message:String(e)}},vm=function(){function e(o,r,n){var a=Xt(o+"/fulfilled",function(y,h,m,b){return{payload:y,meta:jr(qt({},b||{}),{arg:m,requestId:h,requestStatus:"fulfilled"})}}),c=Xt(o+"/pending",function(y,h,m){return{payload:void 0,meta:jr(qt({},m||{}),{arg:h,requestId:y,requestStatus:"pending"})}}),l=Xt(o+"/rejected",function(y,h,m,b,g){return{payload:b,error:(n&&n.serializeError||$l)(y||"Rejected"),meta:jr(qt({},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):_l(),v=new p,R,E=!1;function N(T){R=T,v.abort()}var P=function(){return Cl(this,null,function(){var T,B,ct,Bt,Xo,_t,rt;return gl(this,function(lt){switch(lt.label){case 0:return lt.trys.push([0,4,,5]),Bt=(T=n?.condition)==null?void 0:T.call(n,y,{getState:m,extra:b}),Ml(Bt)?[4,Bt]:[3,2];case 1:Bt=lt.sent(),lt.label=2;case 2:if(Bt===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return E=!0,Xo=new Promise(function(nt,Jt){return v.signal.addEventListener("abort",function(){return Jt({name:"AbortError",message:R||"Aborted"})})}),h(c(g,y,(B=n?.getPendingMeta)==null?void 0:B.call(n,{requestId:g,arg:y},{getState:m,extra:b}))),[4,Promise.race([Xo,Promise.resolve(r(y,{dispatch:h,getState:m,extra:b,requestId:g,signal:v.signal,abort:N,rejectWithValue:function(nt,Jt){return new Zr(nt,Jt)},fulfillWithValue:function(nt,Jt){return new oc(nt,Jt)}})).then(function(nt){if(nt instanceof Zr)throw nt;return nt instanceof oc?a(nt.payload,g,y,nt.meta):a(nt,g,y)})])];case 3:return ct=lt.sent(),[3,5];case 4:return _t=lt.sent(),ct=_t instanceof Zr?l(null,g,y,_t.payload,_t.meta):l(_t,g,y),[3,5];case 5:return rt=n&&!n.dispatchConditionRejection&&l.match(ct)&&ct.meta.condition,rt||h(ct),[2,ct]}})})}();return Object.assign(P,{abort:N,requestId:g,arg:y,unwrap:function(){return P.then(Dl)}})}}return Object.assign(f,{pending:c,rejected:l,fulfilled:a,typePrefix:o})}return e.withTypes=function(){return e},e}();function Dl(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Ml(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var lc="listener",sc="completed",dc="cancelled",Sm="task-"+dc,Om="task-"+sc,Cm=lc+"-"+dc,wm=lc+"-"+sc;var Yr="listenerMiddleware";var Em=Xt(Yr+"/add"),Nm=Xt(Yr+"/removeAll"),Am=Xt(Yr+"/remove");var rc,Rm=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(rc||(rc=Promise.resolve())).then(e).catch(function(o){return setTimeout(function(){throw o},0)})},zl=function(e){return function(o){setTimeout(o,e)}},Lm=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:zl(10);ji();function Ul(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 $o=class extends Ul(Object){};window.ftReduxStores||(window.ftReduxStores={});var fc=class e extends $o{static get(o){var r;let n=typeof o=="string"?o:o.name,a=typeof o=="string"?void 0:o,c=window.ftReduxStores[n];if(Ye(c))return c;if(a==null)return;let l=cc({...a,reducers:(r=a.reducers)!==null&&r!==void 0?r:{}}),d=ac({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 No,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,a,c)=>{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 Uo=O(k());var Do=class extends Gt{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 Mo=class extends Gt{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 Gl="ft-user-assets",zo=Uo.FtReduxStore.get({name:Gl,initialState:{savedSearches:void 0,bookmarks:void 0}}),qr=class{constructor(){this.currentSession=L.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Mo,this.savedSearchesService=new Do,L.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var o;let{session:r}=L.getState();(0,Uo.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(),zo.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),zo.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let o=await this.savedSearchesService.listMySearches();zo.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;zo.actions.bookmarks(r)}}},cg=new qr;var Xr=class{addCommand(o,r=!1){L.commands.add(o,r)}consumeCommand(o){return L.commands.consume(o)}};window.FluidTopicsAppInfoStoreService=new Xr;var pc=O(k()),Jr=class{highlightHtml(o,r,n){(0,pc.highlightHtml)(o,r,n)}};window.FluidTopicsHighlightHtmlService=new Jr;var uc=O(k());var Qr=class{isDate(o){var r,n,a,c;return(c=(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&&c!==void 0?c:!1}format(o,r){var n,a,c;return uc.DateFormatter.format(o,(n=r?.locale)!==null&&n!==void 0?n:L.getState().uiLocale,(a=r?.longFormat)!==null&&a!==void 0?a:!1,(c=r?.withTime)!==null&&c!==void 0?c:!1)}};window.FluidTopicsDateService=new Qr;var Fl=O(k());(0,yc.customElement)("ft-app-context")(U);var hc=O(Y()),jl=function(e,o,r,n){var a=arguments.length,c=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(c=(a<3?l(c):a>3?l(o,r,c):l(o,r))||c);return a>3&&c&&Object.defineProperty(o,r,c),c},tn=Symbol("i18nAttributes"),en=Symbol("i18nListAttributes"),Ho=Symbol("i18nProperties"),eo=Symbol("i18nUnsubs");function mc(e){var o;class r extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[o]=new Map}get i18nService(){return this.useCustomMessageContexts?Oi:ce}i18n(a,c,...l){var d;if(typeof a=="string")return this.i18nService.resolveMessage(a,c,...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 c,l,d;(c=this[tn])===null||c===void 0||c.forEach((p,f)=>{let y=this.getI18nAttributeValue(f);y&&(this[f]=this.getI18nAttributeMessage(y,p,a))}),(l=this[en])===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[Ho])===null||d===void 0||d.forEach((p,f)=>{p.context.toLowerCase()===a.toLowerCase()&&(this[f]=this.i18n(p))}),setTimeout(()=>this.requestUpdate(),0)}buildI18nAttributeMessage(a,c){return{...a,message:this.i18n({context:a.context,key:a.key,...c})}}getI18nAttributeMessage(a,c,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,c):a}update(a){var c,l,d;super.update(a),(c=this[tn])===null||c===void 0||c.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[en])===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[Ho])===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,c,l){a.context&&a.key&&c.has(l)&&this.addI18nContext(a.context)}connectedCallback(){var a,c,l,d,p,f;super.connectedCallback(),new Set([...(c=(a=this[Ho])===null||a===void 0?void 0:a.values())!==null&&c!==void 0?c:[],...[...(d=(l=this[tn])===null||l===void 0?void 0:l.keys())!==null&&d!==void 0?d:[]].map(y=>this.getI18nAttributeValue(y)),...[...(f=(p=this[en])===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,c){a=a.toLowerCase(),this[eo].has(a)||this[eo].set(a,this.i18nService.subscribe(a,()=>this.onI18nUpdate(a))),this.i18nService.prepareContext(a,c??{}),this.onI18nUpdate(a)}addI18nContext(a,c){this.addI18nMessages(typeof a=="string"?a:a.name,c)}disconnectedCallback(){super.disconnectedCallback(),this[eo].forEach(a=>a()),this[eo].clear()}}return o=eo,jl([(0,hc.property)({type:Boolean})],r.prototype,"useCustomMessageContexts",void 0),r}var Go=class extends mc(jo.FtLitElement){},Fo=class extends mc(jo.FtLitElementRedux){};var oo=function(e,o,r,n){var a=arguments.length,c=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(c=(a<3?l(c):a>3?l(o,r,c):l(o,r))||c);return a>3&&c&&Object.defineProperty(o,r,c),c},xt=class extends Fo{constructor(){super(),this.editorMode=!1,this.addStore(L)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Ko.nothing:Ko.html`
|
|
1102
|
+
`}update(o){var r,n,a,c,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=>ce.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=(c=this.localesConfiguration)===null||c===void 0?void 0:c.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())}};U.elementDefinitions={};U.styles=vi;q([(0,ot.property)()],U.prototype,"baseUrl",void 0);q([(0,ot.property)()],U.prototype,"apiIntegrationIdentifier",void 0);q([(0,ot.property)()],U.prototype,"uiLocale",void 0);q([(0,gt.jsonProperty)(null)],U.prototype,"availableUiLocales",void 0);q([(0,gt.jsonProperty)(null)],U.prototype,"metadataConfiguration",void 0);q([(0,ot.property)({type:Boolean})],U.prototype,"editorMode",void 0);q([(0,ot.property)({type:Boolean})],U.prototype,"noCustom",void 0);q([(0,ot.property)({type:Boolean})],U.prototype,"openExternalDocumentInNewTab",void 0);q([(0,ot.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],U.prototype,"noCustomComponent",void 0);q([(0,ot.property)({type:Boolean})],U.prototype,"withManualResources",void 0);q([(0,ot.property)({type:Boolean})],U.prototype,"navigatorOnline",void 0);q([(0,ot.property)({type:Boolean})],U.prototype,"forcedOffline",void 0);q([(0,ot.property)({type:Object})],U.prototype,"apiProvider",void 0);q([(0,gt.jsonProperty)([])],U.prototype,"messageContexts",void 0);q([(0,gt.jsonProperty)(void 0)],U.prototype,"session",void 0);q([(0,ot.state)()],U.prototype,"localesConfiguration",void 0);var Hl=O(Y());function ol(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(!Eo(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(!Eo(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 c=a[n];if(!Eo(e[c],o[c]))return!1}return!0}return e!==e&&o!==o}function Eo(e,o){try{return ol(e,o)}catch{return!1}}function No(e,o){return!Eo(e,o)}var rl=O(Y(),1);var Ao=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 Ve=O(Y(),1);var wi=O(Y(),1);function Ei(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:No,...o??{}})}var Ro=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,c=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let l of n)try{await l()}catch(d){a(d);return}c(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Ai=O(M(),1);var Lo=window,nl=Lo.ShadowRoot&&(Lo.ShadyCSS===void 0||Lo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,_h=Symbol();var Ni=(e,o)=>{nl?e.adoptedStyleSheets=o.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):o.forEach(r=>{let n=document.createElement("style"),a=Lo.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=r.cssText,e.appendChild(n)})};var Po=class extends Ai.LitElement{createRenderRoot(){let o=this.constructor;o.elementDefinitions&&!o.registry&&(o.registry=new CustomElementRegistry,Object.entries(o.elementDefinitions).forEach(([a,c])=>o.registry.define(a,c)));let r={...o.shadowRootOptions,customElements:o.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Ni(n,o.elementStyles),n}};var Io=function(e,o,r,n){var a=arguments.length,c=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(c=(a<3?l(c):a>3?l(o,r,c):l(o,r))||c);return a>3&&c&&Object.defineProperty(o,r,c),c},Ii,Ri=Symbol("constructorPrototype"),Li=Symbol("constructorName"),ki=Symbol("exportpartsDebouncer"),Pi=Symbol("dynamicDependenciesLoaded"),jt=class extends Po{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Ii]=new Ro(5),this[Li]=this.constructor.name,this[Ri]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Li]&&Object.setPrototypeOf(this,this[Ri])}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[Pi]||(o[Pi]=!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(c=>c.remove()),this.useAdoptedStyleSheets){if(o.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(c){console.error(c,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let c=document.createElement("style");c.classList.add("ft-lit-element--custom-stylesheet"),c.innerHTML=this.customStylesheet,this.shadowRoot.append(c)}}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[ki].run(()=>{var a,c;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((c=this.exportpartsPrefixes)===null||c===void 0?void 0:c.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(o){var r,n,a,c,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=(c=(a=m.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&c!==void 0?c:[],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(", "))}};Ii=ki;Io([(0,Ve.property)()],jt.prototype,"exportpartsPrefix",void 0);Io([Ei([])],jt.prototype,"exportpartsPrefixes",void 0);Io([(0,Ve.property)()],jt.prototype,"customStylesheet",void 0);Io([(0,Ve.state)()],jt.prototype,"useAdoptedStyleSheets",void 0);function Ye(e){var o;return(o=e?.isFtReduxStore)!==null&&o!==void 0?o:!1}var Ti,Bi,_i,qe=Symbol("internalReduxEventsUnsubscribers"),Kt=Symbol("internalStoresUnsubscribers"),le=Symbol("internalStores"),Xe=class extends jt{constructor(){super(...arguments),this[Ti]=new Map,this[Bi]=new Map,this[_i]=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[le].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[le].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[le].get(o)}addStore(o,r){var n;r=(n=r??(Ye(o)?o.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(r),this[le].set(r,o),this.subscribeToStore(r,o),this.updateFromStores()}removeStore(o){let r=typeof o=="string"?o:o.name;this.unsubscribeFromStore(r),this[le].delete(r)}setupStores(){this.unsubscribeFromStores(),this[le].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[Kt].has(o.store):this[Kt].size>0)&&(this[r]=o.selector(a.getState(),this))}})}subscribeToStore(o,r){var n;this[Kt].set(o,r.subscribe(()=>this.updateFromStores())),this[qe].set(o,[]),Ye(r)&&r.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,c)=>{if(typeof this[c]=="function"&&(!a.store||r.name===a.store)){let l=d=>this[c](d);r.addEventListener(a.eventName,l),this[qe].get(o).push(()=>r.removeEventListener(a.eventName,l))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[Kt].forEach((o,r)=>this.unsubscribeFromStore(r))}unsubscribeFromStore(o){var r;this[Kt].has(o)&&this[Kt].get(o)(),this[Kt].delete(o),(r=this[qe].get(o))===null||r===void 0||r.forEach(n=>n()),this[qe].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Ti=Kt,Bi=le,_i=qe;Xe.reduxProperties=new Map;Xe.reduxReactiveProperties=new Set;Xe.reduxEventListeners=new Map;function pt(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,c;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 Tt(e){return!!e&&!!e[D]}function bt(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)===pl}(e)||Array.isArray(e)||!!e[Hi]||!!(!((o=e.constructor)===null||o===void 0)&&o[Hi])||Tr(e)||Br(e))}function se(e,o,r){r===void 0&&(r=!1),Le(e)===0?(r?Object.keys:Re)(e).forEach(function(n){r&&typeof n=="symbol"||o(n,e[n],e)}):e.forEach(function(n,a){return o(a,n,e)})}function Le(e){var o=e[D];return o?o.i>3?o.i-4:o.i:Array.isArray(e)?1:Tr(e)?2:Br(e)?3:0}function Ae(e,o){return Le(e)===2?e.has(o):Object.prototype.hasOwnProperty.call(e,o)}function al(e,o){return Le(e)===2?e.get(o):e[o]}function Gi(e,o,r){var n=Le(e);n===2?e.set(o,r):n===3?e.add(r):e[o]=r}function Fi(e,o){return e===o?e!==0||1/e==1/o:e!=e&&o!=o}function Tr(e){return dl&&e instanceof Map}function Br(e){return fl&&e instanceof Set}function Zt(e){return e.o||e.t}function _r(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var o=Zi(e);delete o[D];for(var r=Re(o),n=0;n<r.length;n++){var a=r[n],c=o[a];c.writable===!1&&(c.writable=!0,c.configurable=!0),(c.get||c.set)&&(o[a]={configurable:!0,writable:!0,enumerable:c.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),o)}function Wr(e,o){return o===void 0&&(o=!1),$r(e)||Tt(e)||!bt(e)||(Le(e)>1&&(e.set=e.add=e.clear=e.delete=il),Object.freeze(e),o&&se(e,function(r,n){return Wr(n,!0)},!0)),e}function il(){pt(2)}function $r(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function wt(e){var o=kr[e];return o||pt(18,e),o}function cl(e,o){kr[e]||(kr[e]=o)}function Lr(){return Qe}function Er(e,o){o&&(wt("Patches"),e.u=[],e.s=[],e.v=o)}function ko(e){Pr(e),e.p.forEach(ll),e.p=null}function Pr(e){e===Qe&&(Qe=e.l)}function Wi(e){return Qe={p:[],l:Qe,h:e,m:!0,_:0}}function ll(e){var o=e[D];o.i===0||o.i===1?o.j():o.g=!0}function Nr(e,o){o._=o.p.length;var r=o.p[0],n=e!==void 0&&e!==r;return o.h.O||wt("ES5").S(o,e,n),n?(r[D].P&&(ko(o),pt(4)),bt(e)&&(e=To(o,e),o.l||Bo(o,e)),o.u&&wt("Patches").M(r[D].t,e,o.u,o.s)):e=To(o,r,[]),ko(o),o.u&&o.v(o.u,o.s),e!==Ki?e:void 0}function To(e,o,r){if($r(o))return o;var n=o[D];if(!n)return se(o,function(d,p){return $i(e,n,o,d,p,r)},!0),o;if(n.A!==e)return o;if(!n.P)return Bo(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=_r(n.k):n.o,c=a,l=!1;n.i===3&&(c=new Set(a),a.clear(),l=!0),se(c,function(d,p){return $i(e,n,a,d,p,r,l)}),Bo(e,a,!1),r&&e.u&&wt("Patches").N(n,r,e.u,e.s)}return n.o}function $i(e,o,r,n,a,c,l){if(Tt(a)){var d=To(e,a,c&&o&&o.i!==3&&!Ae(o.R,n)?c.concat(n):void 0);if(Gi(r,n,d),!Tt(d))return;e.m=!1}else l&&r.add(a);if(bt(a)&&!$r(a)){if(!e.h.D&&e._<1)return;To(e,a),o&&o.A.l||Bo(e,a)}}function Bo(e,o,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Wr(o,r)}function Ar(e,o){var r=e[D];return(r?Zt(r):e)[o]}function Di(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 Vt(e){e.P||(e.P=!0,e.l&&Vt(e.l))}function Rr(e){e.o||(e.o=_r(e.t))}function Ir(e,o,r){var n=Tr(o)?wt("MapSet").F(o,r):Br(o)?wt("MapSet").T(o,r):e.O?function(a,c){var l=Array.isArray(a),d={i:l?1:0,A:c?c.A:Lr(),P:!1,I:!1,R:{},l:c,t:a,k:null,o:null,j:null,C:!1},p=d,f=to;l&&(p=[d],f=Je);var y=Proxy.revocable(p,f),h=y.revoke,m=y.proxy;return d.k=m,d.j=h,m}(o,r):wt("ES5").J(o,r);return(r?r.A:Lr()).p.push(n),n}function sl(e){return Tt(e)||pt(22,e),function o(r){if(!bt(r))return r;var n,a=r[D],c=Le(r);if(a){if(!a.P&&(a.i<4||!wt("ES5").K(a)))return a.t;a.I=!0,n=Mi(r,c),a.I=!1}else n=Mi(r,c);return se(n,function(l,d){a&&al(a.t,l)===d||Gi(n,l,o(d))}),c===3?new Set(n):n}(e)}function Mi(e,o){switch(o){case 2:return new Map(e);case 3:return Array.from(e)}return _r(e)}function ji(){function e(l,d){var p=c[l];return p?p.enumerable=d:c[l]=p={configurable:!0,enumerable:d,get:function(){var f=this[D];return to.get(f,l)},set:function(f){var y=this[D];to.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)&&Vt(p);break;case 4:r(p)&&Vt(p)}}}function r(l){for(var d=l.t,p=l.k,f=Re(p),y=f.length-1;y>=0;y--){var h=f[y];if(h!==D){var m=d[h];if(m===void 0&&!Ae(d,h))return!0;var b=p[h],g=b&&b[D];if(g?g.t!==m:!Fi(b,m))return!0}}var v=!!d[D];return f.length!==Re(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&&pt(3,JSON.stringify(Zt(l)))}var c={};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=Zi(m);delete v[D];for(var R=Re(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:Lr(),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?Tt(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)se(b,function(T){T!==D&&(m[T]!==void 0||Ae(m,T)?g[T]||f(b[T]):(g[T]=!0,Vt(h)))}),se(m,function(T){b[T]!==void 0||Ae(b,T)||(g[T]=!1,Vt(h))});else if(v===5){if(n(h)&&(Vt(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),P=0;P<N;P++)b.hasOwnProperty(P)||(g[P]=!0),g[P]===void 0&&f(b[P])}}}}(l.p[0]),o(l.p))},K:function(l){return l.i===4?r(l):n(l)}})}var zi,Qe,Dr=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",dl=typeof Map<"u",fl=typeof Set<"u",Ui=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ki=Dr?Symbol.for("immer-nothing"):((zi={})["immer-nothing"]=!0,zi),Hi=Dr?Symbol.for("immer-draftable"):"__$immer_draftable",D=Dr?Symbol.for("immer-state"):"__$immer_state";var pl=""+Object.prototype.constructor,Re=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Zi=Object.getOwnPropertyDescriptors||function(e){var o={};return Re(e).forEach(function(r){o[r]=Object.getOwnPropertyDescriptor(e,r)}),o},kr={},to={get:function(e,o){if(o===D)return e;var r=Zt(e);if(!Ae(r,o))return function(a,c,l){var d,p=Di(c,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||!bt(n)?n:n===Ar(e.t,o)?(Rr(e),e.o[o]=Ir(e.A.h,n,e)):n},has:function(e,o){return o in Zt(e)},ownKeys:function(e){return Reflect.ownKeys(Zt(e))},set:function(e,o,r){var n=Di(Zt(e),o);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var a=Ar(Zt(e),o),c=a?.[D];if(c&&c.t===r)return e.o[o]=r,e.R[o]=!1,!0;if(Fi(r,a)&&(r!==void 0||Ae(e.t,o)))return!0;Rr(e),Vt(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 Ar(e.t,o)!==void 0||o in e.t?(e.R[o]=!1,Rr(e),Vt(e)):delete e.R[o],e.o&&delete e.o[o],!0},getOwnPropertyDescriptor:function(e,o){var r=Zt(e),n=Reflect.getOwnPropertyDescriptor(r,o);return n&&{writable:!0,configurable:e.i!==1||o!=="length",enumerable:n.enumerable,value:r[o]}},defineProperty:function(){pt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){pt(12)}},Je={};se(to,function(e,o){Je[e]=function(){return arguments[0]=arguments[0][0],o.apply(this,arguments)}}),Je.deleteProperty=function(e,o){return Je.set.call(this,e,o,void 0)},Je.set=function(e,o,r){return to.set.call(this,e[0],o,r,e[0])};var ul=function(){function e(r){var n=this;this.O=Ui,this.D=!0,this.produce=function(a,c,l){if(typeof a=="function"&&typeof c!="function"){var d=c;c=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),P=1;P<E;P++)N[P-1]=arguments[P];return p.produce(v,function(T){var B;return(B=c).call.apply(B,[R,T].concat(N))})}}var f;if(typeof c!="function"&&pt(6),l!==void 0&&typeof l!="function"&&pt(7),bt(a)){var y=Wi(n),h=Ir(n,a,void 0),m=!0;try{f=c(h),m=!1}finally{m?ko(y):Pr(y)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(v){return Er(y,l),Nr(v,y)},function(v){throw ko(y),v}):(Er(y,l),Nr(f,y))}if(!a||typeof a!="object"){if((f=c(a))===void 0&&(f=a),f===Ki&&(f=void 0),n.D&&Wr(f,!0),l){var b=[],g=[];wt("Patches").M(a,f,b,g),l(b,g)}return f}pt(21,a)},this.produceWithPatches=function(a,c){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,c,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){bt(r)||pt(8),Tt(r)&&(r=sl(r));var n=Wi(this),a=Ir(this,r,void 0);return a[D].C=!0,Pr(n),a},o.finishDraft=function(r,n){var a=r&&r[D],c=a.A;return Er(c,n),Nr(void 0,c)},o.setAutoFreeze=function(r){this.D=r},o.setUseProxies=function(r){r&&!Ui&&pt(20),this.O=r},o.applyPatches=function(r,n){var a;for(a=n.length-1;a>=0;a--){var c=n[a];if(c.path.length===0&&c.op==="replace"){r=c.value;break}}a>-1&&(n=n.slice(a+1));var l=wt("Patches").$;return Tt(r)?l(r,n):this.produce(r,function(d){return l(d,n)})},e}(),it=new ul,yl=it.produce,Zh=it.produceWithPatches.bind(it),Vh=it.setAutoFreeze.bind(it),Yh=it.setUseProxies.bind(it),qh=it.applyPatches.bind(it),Xh=it.createDraft.bind(it),Jh=it.finishDraft.bind(it),_o=yl;function Yt(e){"@babel/helpers - typeof";return Yt=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},Yt(e)}function Mr(e,o){if(Yt(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,o||"default");if(Yt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(e)}function zr(e){var o=Mr(e,"string");return Yt(o)==="symbol"?o:String(o)}function Ur(e,o,r){return o=zr(o),o in e?Object.defineProperty(e,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[o]=r,e}function Vi(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 Wo(e){for(var o=1;o<arguments.length;o++){var r=arguments[o]!=null?arguments[o]:{};o%2?Vi(Object(r),!0).forEach(function(n){Ur(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vi(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function X(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 Yi=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Hr=function(){return Math.random().toString(36).substring(7).split("").join(".")},$o={INIT:"@@redux/INIT"+Hr(),REPLACE:"@@redux/REPLACE"+Hr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Hr()}};function hl(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 Gr(e,o,r){var n;if(typeof o=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(X(0));if(typeof o=="function"&&typeof r>"u"&&(r=o,o=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(X(1));return r(Gr)(e,o)}if(typeof e!="function")throw new Error(X(2));var a=e,c=o,l=[],d=l,p=!1;function f(){d===l&&(d=l.slice())}function y(){if(p)throw new Error(X(3));return c}function h(v){if(typeof v!="function")throw new Error(X(4));if(p)throw new Error(X(5));var R=!0;return f(),d.push(v),function(){if(R){if(p)throw new Error(X(6));R=!1,f();var N=d.indexOf(v);d.splice(N,1),l=null}}}function m(v){if(!hl(v))throw new Error(X(7));if(typeof v.type>"u")throw new Error(X(8));if(p)throw new Error(X(9));try{p=!0,c=a(c,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(X(10));a=v,m({type:$o.REPLACE})}function g(){var v,R=h;return v={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(X(11));function P(){N.next&&N.next(y())}P();var T=R(P);return{unsubscribe:T}}},v[Yi]=function(){return this},v}return m({type:$o.INIT}),n={dispatch:m,subscribe:h,getState:y,replaceReducer:b},n[Yi]=g,n}function ml(e){Object.keys(e).forEach(function(o){var r=e[o],n=r(void 0,{type:$o.INIT});if(typeof n>"u")throw new Error(X(12));if(typeof r(void 0,{type:$o.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(X(13))})}function qi(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 c=Object.keys(r),l,d;try{ml(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<c.length;g++){var v=c[g],R=r[v],E=f[v],N=R(E,y);if(typeof N>"u"){var P=y&&y.type;throw new Error(X(14))}b[v]=N,m=m||N!==E}return m=m||c.length!==Object.keys(f).length,m?b:f}}function Pe(){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 Xi(){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),c=function(){throw new Error(X(15))},l={getState:a.getState,dispatch:function(){return c.apply(void 0,arguments)}},d=o.map(function(p){return p(l)});return c=Pe.apply(void 0,d)(a.dispatch),Wo(Wo({},a),{},{dispatch:c})}}}function Ji(e){var o=function(n){var a=n.dispatch,c=n.getState;return function(l){return function(d){return typeof d=="function"?d(a,c,e):l(d)}}};return o}var Qi=Ji();Qi.withExtraArgument=Ji;var Fr=Qi;var nc=function(){var e=function(o,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(n[c]=a[c])},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)}}(),gl=function(e,o){var r={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},n,a,c,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&&(c=f[0]&2?a.return:f[0]?a.throw||((c=a.return)&&c.call(a),0):a.next)&&!(c=c.call(a,f[1])).done)return c;switch(a=0,c&&(f=[f[0]&2,c.value]),f[0]){case 0:case 1:c=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(c=r.trys,!(c=c.length>0&&c[c.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!c||f[1]>c[0]&&f[1]<c[3])){r.label=f[1];break}if(f[0]===6&&r.label<c[1]){r.label=c[1],c=f;break}if(c&&r.label<c[2]){r.label=c[2],r.ops.push(f);break}c[2]&&r.ops.pop(),r.trys.pop();continue}f=o.call(e,r)}catch(y){f=[6,y],a=0}finally{n=c=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},Ie=function(e,o){for(var r=0,n=o.length,a=e.length;r<n;r++,a++)e[a]=o[r];return e},bl=Object.defineProperty,xl=Object.defineProperties,vl=Object.getOwnPropertyDescriptors,tc=Object.getOwnPropertySymbols,Sl=Object.prototype.hasOwnProperty,Ol=Object.prototype.propertyIsEnumerable,ec=function(e,o,r){return o in e?bl(e,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[o]=r},qt=function(e,o){for(var r in o||(o={}))Sl.call(o,r)&&ec(e,r,o[r]);if(tc)for(var n=0,a=tc(o);n<a.length;n++){var r=a[n];Ol.call(o,r)&&ec(e,r,o[r])}return e},jr=function(e,o){return xl(e,vl(o))},Cl=function(e,o,r){return new Promise(function(n,a){var c=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(c,l)};d((r=r.apply(e,o)).next())})};var wl=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Pe:Pe.apply(null,arguments)},mm=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function El(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 Nl=function(e){nc(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,Ie([void 0],r[0].concat(this)))):new(o.bind.apply(o,Ie([void 0],r.concat(this))))},o}(Array),Al=function(e){nc(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,Ie([void 0],r[0].concat(this)))):new(o.bind.apply(o,Ie([void 0],r.concat(this))))},o}(Array);function Vr(e){return bt(e)?_o(e,function(){}):e}function Rl(e){return typeof e=="boolean"}function Ll(){return function(o){return Pl(o)}}function Pl(e){e===void 0&&(e={});var o=e.thunk,r=o===void 0?!0:o,n=e.immutableCheck,a=n===void 0?!0:n,c=e.serializableCheck,l=c===void 0?!0:c,d=new Nl;if(r&&(Rl(r)?d.push(Fr):d.push(Fr.withExtraArgument(r.extraArgument))),0){if(a)var p;if(l)var f}return d}var Kr=!0;function ac(e){var o=Ll(),r=e||{},n=r.reducer,a=n===void 0?void 0:n,c=r.middleware,l=c===void 0?o():c,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(El(a))b=qi(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),!Kr&&!Array.isArray(g)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Kr&&g.some(function(T){return typeof T!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=Xi.apply(void 0,g),R=Pe;p&&(R=wl(qt({trace:!Kr},typeof p=="object"&&p)));var E=new Al(v),N=E;Array.isArray(m)?N=Ie([v],m):typeof m=="function"&&(N=m(E));var P=R.apply(void 0,N);return Gr(b,y,P)}function Xt(e,o){function r(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(o){var c=o.apply(void 0,n);if(!c)throw new Error("prepareAction did not return an object");return qt(qt({type:e,payload:c.payload},"meta"in c&&{meta:c.meta}),"error"in c&&{error:c.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 ic(e){var o={},r=[],n,a={addCase:function(c,l){var d=typeof c=="string"?c:c.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(c,l){return r.push({matcher:c,reducer:l}),a},addDefaultCase:function(c){return n=c,a}};return e(a),[o,r,n]}function Il(e){return typeof e=="function"}function kl(e,o,r,n){r===void 0&&(r=[]);var a=typeof o=="function"?ic(o):[o,r,n],c=a[0],l=a[1],d=a[2],p;if(Il(e))p=function(){return Vr(e())};else{var f=Vr(e);p=function(){return f}}function y(h,m){h===void 0&&(h=p());var b=Ie([c[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(Tt(g)){var R=g,E=v(R,m);return E===void 0?g:E}else{if(bt(g))return _o(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 Tl(e,o){return e+"/"+o}function cc(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:Vr(e.initialState),n=e.reducers||{},a=Object.keys(n),c={},l={},d={};a.forEach(function(y){var h=n[y],m=Tl(o,y),b,g;"reducer"in h?(b=h.reducer,g=h.prepare):b=h,c[y]=b,l[m]=b,d[y]=g?Xt(m,g):Xt(m)});function p(){var y=typeof e.extraReducers=="function"?ic(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=qt(qt({},m),l);return kl(r,function(N){for(var P in E)N.addCase(P,E[P]);for(var T=0,B=g;T<B.length;T++){var ct=B[T];N.addMatcher(ct.matcher,ct.reducer)}R&&N.addDefaultCase(R)})}var f;return{name:o,reducer:function(y,h){return f||(f=p()),f(y,h)},actions:d,caseReducers:c,getInitialState:function(){return f||(f=p()),f.getInitialState()}}}var Bl="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",_l=function(e){e===void 0&&(e=21);for(var o="",r=e;r--;)o+=Bl[Math.random()*64|0];return o},Wl=["name","message","stack","code"],Zr=function(){function e(o,r){this.payload=o,this.meta=r}return e}(),oc=function(){function e(o,r){this.payload=o,this.meta=r}return e}(),$l=function(e){if(typeof e=="object"&&e!==null){for(var o={},r=0,n=Wl;r<n.length;r++){var a=n[r];typeof e[a]=="string"&&(o[a]=e[a])}return o}return{message:String(e)}},vm=function(){function e(o,r,n){var a=Xt(o+"/fulfilled",function(y,h,m,b){return{payload:y,meta:jr(qt({},b||{}),{arg:m,requestId:h,requestStatus:"fulfilled"})}}),c=Xt(o+"/pending",function(y,h,m){return{payload:void 0,meta:jr(qt({},m||{}),{arg:h,requestId:y,requestStatus:"pending"})}}),l=Xt(o+"/rejected",function(y,h,m,b,g){return{payload:b,error:(n&&n.serializeError||$l)(y||"Rejected"),meta:jr(qt({},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):_l(),v=new p,R,E=!1;function N(T){R=T,v.abort()}var P=function(){return Cl(this,null,function(){var T,B,ct,Bt,Jo,_t,rt;return gl(this,function(lt){switch(lt.label){case 0:return lt.trys.push([0,4,,5]),Bt=(T=n?.condition)==null?void 0:T.call(n,y,{getState:m,extra:b}),Ml(Bt)?[4,Bt]:[3,2];case 1:Bt=lt.sent(),lt.label=2;case 2:if(Bt===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return E=!0,Jo=new Promise(function(nt,Jt){return v.signal.addEventListener("abort",function(){return Jt({name:"AbortError",message:R||"Aborted"})})}),h(c(g,y,(B=n?.getPendingMeta)==null?void 0:B.call(n,{requestId:g,arg:y},{getState:m,extra:b}))),[4,Promise.race([Jo,Promise.resolve(r(y,{dispatch:h,getState:m,extra:b,requestId:g,signal:v.signal,abort:N,rejectWithValue:function(nt,Jt){return new Zr(nt,Jt)},fulfillWithValue:function(nt,Jt){return new oc(nt,Jt)}})).then(function(nt){if(nt instanceof Zr)throw nt;return nt instanceof oc?a(nt.payload,g,y,nt.meta):a(nt,g,y)})])];case 3:return ct=lt.sent(),[3,5];case 4:return _t=lt.sent(),ct=_t instanceof Zr?l(null,g,y,_t.payload,_t.meta):l(_t,g,y),[3,5];case 5:return rt=n&&!n.dispatchConditionRejection&&l.match(ct)&&ct.meta.condition,rt||h(ct),[2,ct]}})})}();return Object.assign(P,{abort:N,requestId:g,arg:y,unwrap:function(){return P.then(Dl)}})}}return Object.assign(f,{pending:c,rejected:l,fulfilled:a,typePrefix:o})}return e.withTypes=function(){return e},e}();function Dl(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Ml(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var lc="listener",sc="completed",dc="cancelled",Sm="task-"+dc,Om="task-"+sc,Cm=lc+"-"+dc,wm=lc+"-"+sc;var Yr="listenerMiddleware";var Em=Xt(Yr+"/add"),Nm=Xt(Yr+"/removeAll"),Am=Xt(Yr+"/remove");var rc,Rm=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(rc||(rc=Promise.resolve())).then(e).catch(function(o){return setTimeout(function(){throw o},0)})},zl=function(e){return function(o){setTimeout(o,e)}},Lm=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:zl(10);ji();function Ul(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 Do=class extends Ul(Object){};window.ftReduxStores||(window.ftReduxStores={});var fc=class e extends Do{static get(o){var r;let n=typeof o=="string"?o:o.name,a=typeof o=="string"?void 0:o,c=window.ftReduxStores[n];if(Ye(c))return c;if(a==null)return;let l=cc({...a,reducers:(r=a.reducers)!==null&&r!==void 0?r:{}}),d=ac({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 Ao,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,a,c)=>{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 Ho=O(k());var Mo=class extends Gt{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 Gt{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 Gl="ft-user-assets",Uo=Ho.FtReduxStore.get({name:Gl,initialState:{savedSearches:void 0,bookmarks:void 0}}),qr=class{constructor(){this.currentSession=L.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new zo,this.savedSearchesService=new Mo,L.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var o;let{session:r}=L.getState();(0,Ho.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(),Uo.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Uo.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let o=await this.savedSearchesService.listMySearches();Uo.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;Uo.actions.bookmarks(r)}}},dg=new qr;var Xr=class{addCommand(o,r=!1){L.commands.add(o,r)}consumeCommand(o){return L.commands.consume(o)}};window.FluidTopicsAppInfoStoreService=new Xr;var pc=O(k()),Jr=class{highlightHtml(o,r,n){(0,pc.highlightHtml)(o,r,n)}};window.FluidTopicsHighlightHtmlService=new Jr;var uc=O(k());var Qr=class{isDate(o){var r,n,a,c;return(c=(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&&c!==void 0?c:!1}format(o,r){var n,a,c;return uc.DateFormatter.format(o,(n=r?.locale)!==null&&n!==void 0?n:L.getState().uiLocale,(a=r?.longFormat)!==null&&a!==void 0?a:!1,(c=r?.withTime)!==null&&c!==void 0?c:!1)}};window.FluidTopicsDateService=new Qr;var Fl=O(k());(0,yc.customElement)("ft-app-context")(U);var hc=O(Y()),jl=function(e,o,r,n){var a=arguments.length,c=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(c=(a<3?l(c):a>3?l(o,r,c):l(o,r))||c);return a>3&&c&&Object.defineProperty(o,r,c),c},tn=Symbol("i18nAttributes"),en=Symbol("i18nListAttributes"),Go=Symbol("i18nProperties"),eo=Symbol("i18nUnsubs");function mc(e){var o;class r extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[o]=new Map}get i18nService(){return this.useCustomMessageContexts?Oi:ce}i18n(a,c,...l){var d;if(typeof a=="string")return this.i18nService.resolveMessage(a,c,...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 c,l,d;(c=this[tn])===null||c===void 0||c.forEach((p,f)=>{let y=this.getI18nAttributeValue(f);y&&(this[f]=this.getI18nAttributeMessage(y,p,a))}),(l=this[en])===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[Go])===null||d===void 0||d.forEach((p,f)=>{p.context.toLowerCase()===a.toLowerCase()&&(this[f]=this.i18n(p))}),setTimeout(()=>this.requestUpdate(),0)}buildI18nAttributeMessage(a,c){return{...a,message:this.i18n({context:a.context,key:a.key,...c})}}getI18nAttributeMessage(a,c,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,c):a}update(a){var c,l,d;super.update(a),(c=this[tn])===null||c===void 0||c.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[en])===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[Go])===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,c,l){a.context&&a.key&&c.has(l)&&this.addI18nContext(a.context)}connectedCallback(){var a,c,l,d,p,f;super.connectedCallback(),new Set([...(c=(a=this[Go])===null||a===void 0?void 0:a.values())!==null&&c!==void 0?c:[],...[...(d=(l=this[tn])===null||l===void 0?void 0:l.keys())!==null&&d!==void 0?d:[]].map(y=>this.getI18nAttributeValue(y)),...[...(f=(p=this[en])===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,c){a=a.toLowerCase(),this[eo].has(a)||this[eo].set(a,this.i18nService.subscribe(a,()=>this.onI18nUpdate(a))),this.i18nService.prepareContext(a,c??{}),this.onI18nUpdate(a)}addI18nContext(a,c){this.addI18nMessages(typeof a=="string"?a:a.name,c)}disconnectedCallback(){super.disconnectedCallback(),this[eo].forEach(a=>a()),this[eo].clear()}}return o=eo,jl([(0,hc.property)({type:Boolean})],r.prototype,"useCustomMessageContexts",void 0),r}var Fo=class extends mc(Ko.FtLitElement){},jo=class extends mc(Ko.FtLitElementRedux){};var oo=function(e,o,r,n){var a=arguments.length,c=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(c=(a<3?l(c):a>3?l(o,r,c):l(o,r))||c);return a>3&&c&&Object.defineProperty(o,r,c),c},xt=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.":Zo.nothing:Zo.html`
|
|
1103
1103
|
<span class="ft-i18n">
|
|
1104
1104
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
1105
1105
|
</span>
|
|
1106
|
-
`}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:""})}};xt.elementDefinitions={};xt.styles=bi;oo([(0,
|
|
1106
|
+
`}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:""})}};xt.elementDefinitions={};xt.styles=bi;oo([(0,Yo.redux)()],xt.prototype,"editorMode",void 0);oo([(0,Vo.property)()],xt.prototype,"context",void 0);oo([(0,Vo.property)()],xt.prototype,"key",void 0);oo([(0,Yo.jsonProperty)([])],xt.prototype,"args",void 0);oo([(0,Vo.property)()],xt.prototype,"defaultMessage",void 0);var qo=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 c=>({context:this.name,key:a,args:typeof c=="function"?void 0:c,argsProvider:typeof c=="function"?c:void 0})}}),this.messages=new Proxy({},{get:(r,n)=>(...a)=>ce.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(r,n)=>ce.resolveRawMessage(this.name,n)})}};(0,gc.customElement)("ft-i18n")(xt);var ro=qo.build("copyBlockComponent"),bc={tooltipMessage:"Copy to clipboard",copySuccessMessage:"Copied!"};var Kl=function(e,o,r,n){var a=arguments.length,c=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(c=(a<3?l(c):a>3?l(o,r,c):l(o,r))||c);return a>3&&c&&Object.defineProperty(o,r,c),c},de=class extends Fo{constructor(){super(),this.dispatchEvent(new Xo.PreResizeEvent),this.addI18nContext(ro,bc)}render(){return no.html`
|
|
1107
1107
|
<div part="container">
|
|
1108
1108
|
${navigator.clipboard?no.html`
|
|
1109
1109
|
<div part="button-container">
|
|
@@ -1117,7 +1117,7 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
1117
1117
|
<slot></slot>
|
|
1118
1118
|
</div>
|
|
1119
1119
|
</div>
|
|
1120
|
-
`}firstUpdated(o){super.firstUpdated(o),this.updateComplete.then(()=>this.dispatchEvent(new
|
|
1120
|
+
`}firstUpdated(o){super.firstUpdated(o),this.updateComplete.then(()=>this.dispatchEvent(new Xo.PostResizeEvent))}async copyContents(){try{await navigator.clipboard.writeText(this.shadowRoot.host.innerText),this.tooltip.manual=!0,this.tooltip.text=ro.messages.copySuccessMessage(),await this.tooltip.show(1e3),this.tooltip.text=ro.messages.tooltipMessage(),this.tooltip.manual=!1}catch{console.log("Failed to copy to clipboard")}}};de.elementDefinitions={"ft-button":ht,"ft-tooltip":W};de.styles=mi;Kl([(0,xc.query)("[part='tooltip']")],de.prototype,"tooltip",void 0);(0,vc.customElement)("ft-copy-block")(de);})();
|
|
1121
1121
|
/*! Bundled license information:
|
|
1122
1122
|
|
|
1123
1123
|
lit-html/lit-html.js:
|