@drayman/elements 1.52.0 → 1.53.0

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.
@@ -98,4 +98,4 @@ var Ej=Object.defineProperty,vI=Object.getOwnPropertySymbols,h3=Object.prototype
98
98
  animation: ${0} 1.4s linear infinite;
99
99
  `),Q2)),Z2=De("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(t,i)=>i.svg})({display:"block"}),QD=De("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,i)=>{const{ownerState:s}=t;return[i.circle,i[`circle${Pe(s.variant)}`],s.disableShrink&&i.circleDisableShrink]}})(({ownerState:t,theme:i})=>ne({stroke:"currentColor"},"determinate"===t.variant&&{transition:i.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:t})=>"indeterminate"===t.variant&&!t.disableShrink&&xy(K2||(K2=tw`
100
100
  animation: ${0} 1.4s ease-in-out infinite;
101
- `),pv));var gv=P.forwardRef(function(t,i){const s=on({props:t,name:"MuiCircularProgress"}),{className:l,color:c="primary",disableShrink:d=!1,size:f=40,style:p,thickness:m=3.6,value:y=0,variant:b="indeterminate"}=s,_=gt(s,G2),w=ne({},s,{color:c,disableShrink:d,size:f,thickness:m,value:y,variant:b}),S=(D=>{const{classes:k,variant:A,color:M,disableShrink:T}=D;return rn({root:["root",A,`color${Pe(M)}`],svg:["svg"],circle:["circle",`circle${Pe(A)}`,T&&"circleDisableShrink"]},WD,k)})(w),E={},C={},I={};if("determinate"===b){const D=2*Math.PI*((44-m)/2);E.strokeDasharray=D.toFixed(3),I["aria-valuenow"]=Math.round(y),E.strokeDashoffset=`${((100-y)/100*D).toFixed(3)}px`,C.transform="rotate(-90deg)"}return ce.jsx(Y2,ne({className:Ue(S.root,l),style:ne({width:f,height:f},C,p),ownerState:w,ref:i,role:"progressbar"},I,_,{children:ce.jsx(Z2,{className:S.svg,ownerState:w,viewBox:"22 22 44 44",children:ce.jsx(QD,{className:S.circle,style:E,ownerState:w,cx:44,cy:44,r:(44-m)/2,fill:"none",strokeWidth:m})})}))});function rw(t){return cn("MuiModal",t)}Gt("MuiModal",["root","hidden","backdrop"]);const iw=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],X2=De("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,i)=>{const{ownerState:s}=t;return[i.root,!s.open&&s.exited&&i.hidden]}})(({theme:t,ownerState:i})=>ne({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!i.open&&i.exited&&{visibility:"hidden"})),ow=De(F2,{name:"MuiModal",slot:"Backdrop",overridesResolver:(t,i)=>i.backdrop})({zIndex:-1});var mv=P.forwardRef(function(t,i){var s,l,c,d,f,p;const m=on({name:"MuiModal",props:t}),{BackdropComponent:y=ow,BackdropProps:b,className:_,closeAfterTransition:w=!1,children:S,container:E,component:C,components:I={},componentsProps:D={},disableAutoFocus:k=!1,disableEnforceFocus:A=!1,disableEscapeKeyDown:M=!1,disablePortal:T=!1,disableRestoreFocus:O=!1,disableScrollLock:N=!1,hideBackdrop:B=!1,keepMounted:j=!1,onBackdropClick:G,open:Q,slotProps:H,slots:z}=m,K=gt(m,iw),Y=ne({},m,{closeAfterTransition:w,disableAutoFocus:k,disableEnforceFocus:A,disableEscapeKeyDown:M,disablePortal:T,disableRestoreFocus:O,disableScrollLock:N,hideBackdrop:B,keepMounted:j}),{getRootProps:X,getBackdropProps:re,getTransitionProps:q,portalRef:$,isTopModal:W,exited:te,hasTransition:J}=function g2(t){const{container:i,disableEscapeKeyDown:s=!1,disableScrollLock:l=!1,manager:c=Ap,closeAfterTransition:d=!1,onTransitionEnter:f,onTransitionExited:p,children:m,onClose:y,open:b,rootRef:_}=t,w=P.useRef({}),S=P.useRef(null),E=P.useRef(null),C=nr(E,_),[I,D]=P.useState(!b),k=!!(H=m)&&H.props.hasOwnProperty("in");var H;let A=!0;"false"!==t["aria-hidden"]&&!1!==t["aria-hidden"]||(A=!1);const M=()=>(w.current.modalRef=E.current,w.current.mount=S.current,w.current),T=()=>{c.mount(M(),{disableScrollLock:l}),E.current&&(E.current.scrollTop=0)},O=_s(()=>{const H=("function"==typeof(z=i)?z():z)||Rn(S.current).body;var z;c.add(M(),H),E.current&&T()}),N=P.useCallback(()=>c.isTopModal(M()),[c]),B=_s(H=>{S.current=H,H&&(b&&N()?T():E.current&&kp(E.current,A))}),j=P.useCallback(()=>{c.remove(M(),A)},[A,c]);P.useEffect(()=>()=>{j()},[j]),P.useEffect(()=>{b?O():k&&d||j()},[b,j,k,d,O]);const G=H=>z=>{var K;null==(K=H.onKeyDown)||K.call(H,z),"Escape"===z.key&&229!==z.which&&N()&&(s||(z.stopPropagation(),y&&y(z,"escapeKeyDown")))},Q=H=>z=>{var K;null==(K=H.onClick)||K.call(H,z),z.target===z.currentTarget&&y&&y(z,"backdropClick")};return{getRootProps:(H={})=>{const z=iD(t);delete z.onTransitionEnter,delete z.onTransitionExited;const K=Tr({},z,H);return Tr({role:"presentation"},K,{onKeyDown:G(K),ref:C})},getBackdropProps:(H={})=>Tr({"aria-hidden":!0},H,{onClick:Q(H),open:b}),getTransitionProps:()=>({onEnter:Ly(()=>{D(!1),f&&f()},null==m?void 0:m.props.onEnter),onExited:Ly(()=>{D(!0),p&&p(),d&&j()},null==m?void 0:m.props.onExited)}),rootRef:C,portalRef:B,isTopModal:N,exited:I,hasTransition:k}}(ne({},Y,{rootRef:i})),ae=ne({},Y,{exited:te}),ue=(Ne=>{const{open:Oe,exited:qe,classes:Ve}=Ne;return rn({root:["root",!Oe&&qe&&"hidden"],backdrop:["backdrop"]},rw,Ve)})(ae),_e={};if(void 0===S.props.tabIndex&&(_e.tabIndex="-1"),J){const{onEnter:Ne,onExited:Oe}=q();_e.onEnter=Ne,_e.onExited=Oe}const ve=null!=(s=null!=(l=null==z?void 0:z.root)?l:I.Root)?s:X2,Ee=null!=(c=null!=(d=null==z?void 0:z.backdrop)?d:I.Backdrop)?c:y,fe=null!=(f=null==H?void 0:H.root)?f:D.root,we=null!=(p=null==H?void 0:H.backdrop)?p:D.backdrop,pe=Ss({elementType:ve,externalSlotProps:fe,externalForwardedProps:K,getSlotProps:X,additionalProps:{ref:i,as:C},ownerState:ae,className:Ue(_,null==fe?void 0:fe.className,null==ue?void 0:ue.root,!ae.open&&ae.exited&&(null==ue?void 0:ue.hidden))}),ye=Ss({elementType:Ee,externalSlotProps:we,additionalProps:b,getSlotProps:Ne=>re(ne({},Ne,{onClick:Oe=>{G&&G(Oe),null!=Ne&&Ne.onClick&&Ne.onClick(Oe)}})),className:Ue(null==we?void 0:we.className,null==b?void 0:b.className,null==ue?void 0:ue.backdrop),ownerState:ae});return j||Q||J&&!te?ce.jsx(cD,{ref:$,container:E,disablePortal:T,children:ce.jsxs(ve,ne({},pe,{children:[!B&&y?ce.jsx(Ee,ne({},ye)):null,ce.jsx(h2,{disableEnforceFocus:A,disableAutoFocus:k,disableRestoreFocus:O,isEnabled:W,open:Q,children:P.cloneElement(S,_e)})]}))}):null});function VP(t){return cn("MuiDivider",t)}var J2=Gt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const HP=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],$P=De("div",{name:"MuiDivider",slot:"Root",overridesResolver:(t,i)=>{const{ownerState:s}=t;return[i.root,s.absolute&&i.absolute,i[s.variant],s.light&&i.light,"vertical"===s.orientation&&i.vertical,s.flexItem&&i.flexItem,s.children&&i.withChildren,s.children&&"vertical"===s.orientation&&i.withChildrenVertical,"right"===s.textAlign&&"vertical"!==s.orientation&&i.textAlignRight,"left"===s.textAlign&&"vertical"!==s.orientation&&i.textAlignLeft]}})(({theme:t,ownerState:i})=>ne({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin"},i.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},i.light&&{borderColor:t.vars?`rgba(${t.vars.palette.dividerChannel} / 0.08)`:rr(t.palette.divider,.08)},"inset"===i.variant&&{marginLeft:72},"middle"===i.variant&&"horizontal"===i.orientation&&{marginLeft:t.spacing(2),marginRight:t.spacing(2)},"middle"===i.variant&&"vertical"===i.orientation&&{marginTop:t.spacing(1),marginBottom:t.spacing(1)},"vertical"===i.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},i.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:t})=>ne({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:t,ownerState:i})=>ne({},i.children&&"vertical"!==i.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(t.vars||t).palette.divider}`}}),({theme:t,ownerState:i})=>ne({},i.children&&"vertical"===i.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(t.vars||t).palette.divider}`}}),({ownerState:t})=>ne({},"right"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),ZD=De("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(t,i)=>{const{ownerState:s}=t;return[i.wrapper,"vertical"===s.orientation&&i.wrapperVertical]}})(({theme:t,ownerState:i})=>ne({display:"inline-block",paddingLeft:`calc(${t.spacing(1)} * 1.2)`,paddingRight:`calc(${t.spacing(1)} * 1.2)`},"vertical"===i.orientation&&{paddingTop:`calc(${t.spacing(1)} * 1.2)`,paddingBottom:`calc(${t.spacing(1)} * 1.2)`})),XD=P.forwardRef(function(t,i){const s=on({props:t,name:"MuiDivider"}),{absolute:l=!1,children:c,className:d,component:f=(c?"div":"hr"),flexItem:p=!1,light:m=!1,orientation:y="horizontal",role:b=("hr"!==f?"separator":void 0),textAlign:_="center",variant:w="fullWidth"}=s,S=gt(s,HP),E=ne({},s,{absolute:l,component:f,flexItem:p,light:m,orientation:y,role:b,textAlign:_,variant:w}),C=(I=>{const{absolute:D,children:k,classes:A,flexItem:M,light:T,orientation:O,textAlign:N,variant:B}=I;return rn({root:["root",D&&"absolute",B,T&&"light","vertical"===O&&"vertical",M&&"flexItem",k&&"withChildren",k&&"vertical"===O&&"withChildrenVertical","right"===N&&"vertical"!==O&&"textAlignRight","left"===N&&"vertical"!==O&&"textAlignLeft"],wrapper:["wrapper","vertical"===O&&"wrapperVertical"]},VP,A)})(E);return ce.jsx($P,ne({as:f,className:Ue(C.root,d),role:b,ref:i,ownerState:E},S,{children:c?ce.jsx(ZD,{className:C.wrapper,ownerState:E,children:c}):null}))});XD.muiSkipListHighlight=!0;var eT=XD,tT=function(t={}){const{createStyledComponent:i=xM,useThemeProps:s=SM,componentName:l="MuiStack"}=t,c=i(CM);return P.forwardRef(function(f,p){const m=af(s(f)),{component:y="div",direction:b="column",spacing:_=0,divider:w,children:S,className:E,useFlexGap:C=!1}=m,I=$l(m,_M),D={direction:b,spacing:_,useFlexGap:C},k=rn({root:["root"]},A=>cn(l,A),{});return ce.jsx(c,Sn({as:y,ownerState:D,ref:p,className:Ue(k.root,E)},I,{children:w?EM(S,w):S}))})}({createStyledComponent:De("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,i)=>i.root}),useThemeProps:t=>on({props:t,name:"MuiStack"})});function JD(t){return cn("MuiFormControlLabel",t)}var Of=Gt("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);const ek=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],nT=De("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(t,i)=>{const{ownerState:s}=t;return[{[`& .${Of.label}`]:i.label},i.root,i[`labelPlacement${Pe(s.labelPlacement)}`]]}})(({theme:t,ownerState:i})=>ne({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Of.disabled}`]:{cursor:"default"}},"start"===i.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===i.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===i.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${Of.label}`]:{[`&.${Of.disabled}`]:{color:(t.vars||t).palette.text.disabled}}})),rT=De("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(t,i)=>i.asterisk})(({theme:t})=>({[`&.${Of.error}`]:{color:(t.vars||t).palette.error.main}}));var zp=P.forwardRef(function(t,i){var s,l;const c=on({props:t,name:"MuiFormControlLabel"}),{className:d,componentsProps:f={},control:p,disabled:m,disableTypography:y,label:b,labelPlacement:_="end",required:w,slotProps:S={}}=c,E=gt(c,ek),C=ns(),I=null!=(s=null!=m?m:p.props.disabled)?s:null==C?void 0:C.disabled,D=null!=w?w:p.props.required,k={disabled:I,required:D};["checked","name","onChange","value","inputRef"].forEach(B=>{void 0===p.props[B]&&void 0!==c[B]&&(k[B]=c[B])});const A=TD({props:c,muiFormControl:C,states:["error"]}),M=ne({},c,{disabled:I,labelPlacement:_,required:D,error:A.error}),T=(B=>{const{classes:j,disabled:G,labelPlacement:Q,error:H,required:z}=B;return rn({root:["root",G&&"disabled",`labelPlacement${Pe(Q)}`,H&&"error",z&&"required"],label:["label",G&&"disabled"],asterisk:["asterisk",H&&"error"]},JD,j)})(M),O=null!=(l=S.typography)?l:f.typography;let N=b;return null==N||N.type===En||y||(N=ce.jsx(En,ne({component:"span"},O,{className:Ue(T.label,null==O?void 0:O.className),children:N}))),ce.jsxs(nT,ne({className:Ue(T.root,d),ownerState:M,ref:i},E,{children:[P.cloneElement(p,k),D?ce.jsxs(tT,{display:"block",children:[N,ce.jsxs(rT,{ownerState:M,"aria-hidden":!0,className:T.asterisk,children:["\u2009","*"]})]}):N]}))}),oT=P.createContext();function tk(t){return cn("MuiGrid",t)}const Os=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],qp=Gt("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map(t=>`spacing-xs-${t}`),...["column-reverse","column","row-reverse","row"].map(t=>`direction-xs-${t}`),...["nowrap","wrap-reverse","wrap"].map(t=>`wrap-xs-${t}`),...Os.map(t=>`grid-xs-${t}`),...Os.map(t=>`grid-sm-${t}`),...Os.map(t=>`grid-md-${t}`),...Os.map(t=>`grid-lg-${t}`),...Os.map(t=>`grid-xl-${t}`)]),sT=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Vp(t){const i=parseFloat(t);return`${i}${String(t).replace(String(i),"")||"px"}`}function aT({breakpoints:t,values:i}){let s="";Object.keys(i).forEach(c=>{""===s&&0!==i[c]&&(s=c)});const l=Object.keys(t).sort((c,d)=>t[c]-t[d]);return l.slice(0,l.indexOf(s))}const lT=De("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,i)=>{const{ownerState:s}=t,{container:l,direction:c,item:d,spacing:f,wrap:p,zeroMinWidth:m,breakpoints:y}=s;let b=[];l&&(b=function(w,S,E={}){if(!w||w<=0)return[];if("string"==typeof w&&!Number.isNaN(Number(w))||"number"==typeof w)return[E[`spacing-xs-${String(w)}`]];const C=[];return S.forEach(I=>{const D=w[I];Number(D)>0&&C.push(E[`spacing-${I}-${String(D)}`])}),C}(f,y,i));const _=[];return y.forEach(w=>{const S=s[w];S&&_.push(i[`grid-${w}-${String(S)}`])}),[i.root,l&&i.container,d&&i.item,m&&i.zeroMinWidth,...b,"row"!==c&&i[`direction-xs-${String(c)}`],"wrap"!==p&&i[`wrap-xs-${String(p)}`],..._]}})(({ownerState:t})=>ne({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},"wrap"!==t.wrap&&{flexWrap:t.wrap}),function({theme:t,ownerState:i}){return wi({theme:t},tf({values:i.direction,breakpoints:t.breakpoints.values}),s=>{const l={flexDirection:s};return 0===s.indexOf("column")&&(l[`& > .${qp.item}`]={maxWidth:"none"}),l})},function({theme:t,ownerState:i}){const{container:s,rowSpacing:l}=i;let c={};if(s&&0!==l){const d=tf({values:l,breakpoints:t.breakpoints.values});let f;"object"==typeof d&&(f=aT({breakpoints:t.breakpoints.values,values:d})),c=wi({theme:t},d,(p,m)=>{var y;const b=t.spacing(p);return"0px"!==b?{marginTop:`-${Vp(b)}`,[`& > .${qp.item}`]:{paddingTop:Vp(b)}}:null!=(y=f)&&y.includes(m)?{}:{marginTop:0,[`& > .${qp.item}`]:{paddingTop:0}}})}return c},function({theme:t,ownerState:i}){const{container:s,columnSpacing:l}=i;let c={};if(s&&0!==l){const d=tf({values:l,breakpoints:t.breakpoints.values});let f;"object"==typeof d&&(f=aT({breakpoints:t.breakpoints.values,values:d})),c=wi({theme:t},d,(p,m)=>{var y;const b=t.spacing(p);return"0px"!==b?{width:`calc(100% + ${Vp(b)})`,marginLeft:`-${Vp(b)}`,[`& > .${qp.item}`]:{paddingLeft:Vp(b)}}:null!=(y=f)&&y.includes(m)?{}:{width:"100%",marginLeft:0,[`& > .${qp.item}`]:{paddingLeft:0}}})}return c},function({theme:t,ownerState:i}){let s;return t.breakpoints.keys.reduce((l,c)=>{let d={};if(i[c]&&(s=i[c]),!s)return l;if(!0===s)d={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===s)d={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const f=tf({values:i.columns,breakpoints:t.breakpoints.values}),p="object"==typeof f?f[c]:f;if(null==p)return l;const m=Math.round(s/p*1e8)/1e6+"%";let y={};if(i.container&&i.item&&0!==i.columnSpacing){const b=t.spacing(i.columnSpacing);if("0px"!==b){const _=`calc(${m} + ${Vp(b)})`;y={flexBasis:_,maxWidth:_}}}d=ne({flexBasis:m,flexGrow:0,maxWidth:m},y)}return 0===t.breakpoints.values[c]?Object.assign(l,d):l[t.breakpoints.up(c)]=d,l},{})});var Te=P.forwardRef(function(t,i){const s=on({props:t,name:"MuiGrid"}),{breakpoints:l}=Wr(),c=af(s),{className:d,columns:f,columnSpacing:p,component:m="div",container:y=!1,direction:b="row",item:_=!1,rowSpacing:w,spacing:S=0,wrap:E="wrap",zeroMinWidth:C=!1}=c,I=gt(c,sT),D=w||S,k=p||S,A=P.useContext(oT),M=y?f||12:A,T={},O=ne({},I);l.keys.forEach(j=>{null!=I[j]&&(T[j]=I[j],delete O[j])});const N=ne({},c,{columns:M,container:y,direction:b,item:_,rowSpacing:D,columnSpacing:k,wrap:E,zeroMinWidth:C,spacing:S},T,{breakpoints:l.keys}),B=(t=>{const{classes:i,container:s,direction:l,item:c,spacing:d,wrap:f,zeroMinWidth:p,breakpoints:m}=t;let y=[];s&&(y=function(_,w){if(!_||_<=0)return[];if("string"==typeof _&&!Number.isNaN(Number(_))||"number"==typeof _)return[`spacing-xs-${String(_)}`];const S=[];return w.forEach(E=>{const C=_[E];if(Number(C)>0){const I=`spacing-${E}-${String(C)}`;S.push(I)}}),S}(d,m));const b=[];return m.forEach(_=>{const w=t[_];w&&b.push(`grid-${_}-${String(w)}`)}),rn({root:["root",s&&"container",c&&"item",p&&"zeroMinWidth",...y,"row"!==l&&`direction-xs-${String(l)}`,"wrap"!==f&&`wrap-xs-${String(f)}`,...b]},tk,i)})(N);return ce.jsx(oT.Provider,{value:M,children:ce.jsx(lT,ne({ownerState:N,className:Ue(B.root,d),as:m,ref:i},O))})});const UP=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function nk(t){return`scale(${t}, ${os(t,2)})`}const WP={entering:{opacity:1,transform:nk(1)},entered:{opacity:1,transform:"none"}},sw="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),uT=P.forwardRef(function(t,i){const{addEndListener:s,appear:l=!0,children:c,easing:d,in:f,onEnter:p,onEntered:m,onEntering:y,onExit:b,onExited:_,onExiting:w,style:S,timeout:E="auto",TransitionComponent:C=Ky}=t,I=gt(t,UP),D=yu(),k=P.useRef(),A=Wr(),M=P.useRef(null),T=nr(M,c.ref,i),O=z=>K=>{if(z){const Y=M.current;void 0===K?z(Y):z(Y,K)}},N=O(y),B=O((z,K)=>{eD(z);const{duration:Y,delay:X,easing:re}=k_({style:S,timeout:E,easing:d},{mode:"enter"});let q;"auto"===E?(q=A.transitions.getAutoHeightDuration(z.clientHeight),k.current=q):q=Y,z.style.transition=[A.transitions.create("opacity",{duration:q,delay:X}),A.transitions.create("transform",{duration:sw?q:.666*q,delay:X,easing:re})].join(","),p&&p(z,K)}),j=O(m),G=O(w),Q=O(z=>{const{duration:K,delay:Y,easing:X}=k_({style:S,timeout:E,easing:d},{mode:"exit"});let re;"auto"===E?(re=A.transitions.getAutoHeightDuration(z.clientHeight),k.current=re):re=K,z.style.transition=[A.transitions.create("opacity",{duration:re,delay:Y}),A.transitions.create("transform",{duration:sw?re:.666*re,delay:sw?Y:Y||.333*re,easing:X})].join(","),z.style.opacity=0,z.style.transform=nk(.75),b&&b(z)}),H=O(_);return ce.jsx(C,ne({appear:l,in:f,nodeRef:M,onEnter:B,onEntered:j,onEntering:N,onExit:Q,onExited:H,onExiting:G,addEndListener:z=>{"auto"===E&&D.start(k.current||0,z),s&&s(M.current,z)},timeout:"auto"===E?null:E},I,{children:(z,K)=>P.cloneElement(c,ne({style:ne({opacity:0,transform:nk(.75),visibility:"exited"!==z||f?void 0:"hidden"},WP[z],S,c.props.style),ref:T},K))}))});uT.muiSupportAuto=!0;var rk=uT;function KP(t){return cn("MuiIcon",t)}Gt("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const QP=["baseClassName","className","color","component","fontSize"],yv=De("span",{name:"MuiIcon",slot:"Root",overridesResolver:(t,i)=>{const{ownerState:s}=t;return[i.root,"inherit"!==s.color&&i[`color${Pe(s.color)}`],i[`fontSize${Pe(s.fontSize)}`]]}})(({theme:t,ownerState:i})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:t.typography.pxToRem(20),medium:t.typography.pxToRem(24),large:t.typography.pxToRem(36)}[i.fontSize],color:{primary:(t.vars||t).palette.primary.main,secondary:(t.vars||t).palette.secondary.main,info:(t.vars||t).palette.info.main,success:(t.vars||t).palette.success.main,warning:(t.vars||t).palette.warning.main,action:(t.vars||t).palette.action.active,error:(t.vars||t).palette.error.main,disabled:(t.vars||t).palette.action.disabled,inherit:void 0}[i.color]})),Wa=P.forwardRef(function(t,i){const s=on({props:t,name:"MuiIcon"}),{baseClassName:l="material-icons",className:c,color:d="inherit",component:f="span",fontSize:p="medium"}=s,m=gt(s,QP),y=ne({},s,{baseClassName:l,color:d,component:f,fontSize:p}),b=(_=>{const{color:w,fontSize:S,classes:E}=_;return rn({root:["root","inherit"!==w&&`color${Pe(w)}`,`fontSize${Pe(S)}`]},KP,E)})(y);return ce.jsx(yv,ne({as:f,className:Ue(l,"notranslate",b.root,c),ownerState:y,"aria-hidden":!0,ref:i},m))});Wa.muiName="Icon";var YP=Wa;function dT(t){return cn("MuiInputAdornment",t)}var ik,en=Gt("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);const Hp=["children","className","component","disablePointerEvents","disableTypography","position","variant"],fT=De("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(t,i)=>{const{ownerState:s}=t;return[i.root,i[`position${Pe(s.position)}`],!0===s.disablePointerEvents&&i.disablePointerEvents,i[s.variant]]}})(({theme:t,ownerState:i})=>ne({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active},"filled"===i.variant&&{[`&.${en.positionStart}&:not(.${en.hiddenLabel})`]:{marginTop:16}},"start"===i.position&&{marginRight:8},"end"===i.position&&{marginLeft:8},!0===i.disablePointerEvents&&{pointerEvents:"none"}));var ok=P.forwardRef(function(t,i){const s=on({props:t,name:"MuiInputAdornment"}),{children:l,className:c,component:d="div",disablePointerEvents:f=!1,disableTypography:p=!1,position:m,variant:y}=s,b=gt(s,Hp),_=ns()||{};let w=y;_&&!w&&(w=_.variant);const S=ne({},s,{hiddenLabel:_.hiddenLabel,size:_.size,disablePointerEvents:f,position:m,variant:w}),E=(C=>{const{classes:I,disablePointerEvents:D,hiddenLabel:k,position:A,size:M,variant:T}=C;return rn({root:["root",D&&"disablePointerEvents",A&&`position${Pe(A)}`,T,k&&"hiddenLabel",M&&`size${Pe(M)}`]},dT,I)})(S);return ce.jsx(K_.Provider,{value:null,children:ce.jsx(fT,ne({as:d,ownerState:S,className:Ue(E.root,c),ref:i},b,{children:"string"!=typeof l||p?ce.jsxs(P.Fragment,{children:["start"===m?ik||(ik=ce.jsx("span",{className:"notranslate",children:"\u200b"})):null,l]}):ce.jsx(En,{color:"text.secondary",children:l})}))})}),Ka=P.createContext({});function hT(t){return cn("MuiList",t)}Gt("MuiList",["root","padding","dense","subheader"]);const sk=["children","className","component","dense","disablePadding","subheader"],ak=De("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,i)=>{const{ownerState:s}=t;return[i.root,!s.disablePadding&&i.padding,s.dense&&i.dense,s.subheader&&i.subheader]}})(({ownerState:t})=>ne({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0}));var $p=P.forwardRef(function(t,i){const s=on({props:t,name:"MuiList"}),{children:l,className:c,component:d="ul",dense:f=!1,disablePadding:p=!1,subheader:m}=s,y=gt(s,sk),b=P.useMemo(()=>({dense:f}),[f]),_=ne({},s,{component:d,dense:f,disablePadding:p}),w=(S=>{const{classes:E,disablePadding:C,dense:I,subheader:D}=S;return rn({root:["root",!C&&"padding",I&&"dense",D&&"subheader"]},hT,E)})(_);return ce.jsx(Ka.Provider,{value:b,children:ce.jsxs(ak,ne({as:d,className:Ue(w.root,c),ref:i,ownerState:_},y,{children:[m,l]}))})});function pT(t){return cn("MuiListItem",t)}var Pf=Gt("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),gT=Gt("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function ZP(t){return cn("MuiListItemSecondaryAction",t)}Gt("MuiListItemSecondaryAction",["root","disableGutters"]);const lk=["className"],mT=De("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(t,i)=>{const{ownerState:s}=t;return[i.root,s.disableGutters&&i.disableGutters]}})(({ownerState:t})=>ne({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},t.disableGutters&&{right:0})),ck=P.forwardRef(function(t,i){const s=on({props:t,name:"MuiListItemSecondaryAction"}),{className:l}=s,c=gt(s,lk),d=ne({},s,{disableGutters:P.useContext(Ka).disableGutters}),f=(p=>{const{disableGutters:m,classes:y}=p;return rn({root:["root",m&&"disableGutters"]},ZP,y)})(d);return ce.jsx(mT,ne({className:Ue(f.root,l),ownerState:d,ref:i},c))});ck.muiName="ListItemSecondaryAction";var uk=ck;const dk=["className"],to=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Or=De("div",{name:"MuiListItem",slot:"Root",overridesResolver:(t,i)=>{const{ownerState:s}=t;return[i.root,s.dense&&i.dense,"flex-start"===s.alignItems&&i.alignItemsFlexStart,s.divider&&i.divider,!s.disableGutters&&i.gutters,!s.disablePadding&&i.padding,s.button&&i.button,s.hasSecondaryAction&&i.secondaryAction]}})(({theme:t,ownerState:i})=>ne({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!i.disablePadding&&ne({paddingTop:8,paddingBottom:8},i.dense&&{paddingTop:4,paddingBottom:4},!i.disableGutters&&{paddingLeft:16,paddingRight:16},!!i.secondaryAction&&{paddingRight:48}),!!i.secondaryAction&&{[`& > .${gT.root}`]:{paddingRight:48}},{[`&.${Pf.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Pf.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:rr(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${Pf.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:rr(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${Pf.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"flex-start"===i.alignItems&&{alignItems:"flex-start"},i.divider&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"},i.button&&{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Pf.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:rr(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:rr(t.palette.primary.main,t.palette.action.selectedOpacity)}}},i.hasSecondaryAction&&{paddingRight:48})),mr=De("li",{name:"MuiListItem",slot:"Container",overridesResolver:(t,i)=>i.container})({position:"relative"});var Mn=P.forwardRef(function(t,i){const s=on({props:t,name:"MuiListItem"}),{alignItems:l="center",autoFocus:c=!1,button:d=!1,children:f,className:p,component:m,components:y={},componentsProps:b={},ContainerComponent:_="li",ContainerProps:{className:w}={},dense:S=!1,disabled:E=!1,disableGutters:C=!1,disablePadding:I=!1,divider:D=!1,focusVisibleClassName:k,secondaryAction:A,selected:M=!1,slotProps:T={},slots:O={}}=s,N=gt(s.ContainerProps,dk),B=gt(s,to),j=P.useContext(Ka),G=P.useMemo(()=>({dense:S||j.dense||!1,alignItems:l,disableGutters:C}),[l,j.dense,S,C]),Q=P.useRef(null);Eo(()=>{c&&Q.current&&Q.current.focus()},[c]);const H=P.Children.toArray(f),z=H.length&&Xo(H[H.length-1],["ListItemSecondaryAction"]),K=ne({},s,{alignItems:l,autoFocus:c,button:d,dense:G.dense,disabled:E,disableGutters:C,disablePadding:I,divider:D,hasSecondaryAction:z,selected:M}),Y=(te=>{const{alignItems:J,button:ae,classes:ue,dense:_e,disabled:ve,disableGutters:Ee,disablePadding:fe,divider:we,hasSecondaryAction:pe,selected:ye}=te;return rn({root:["root",_e&&"dense",!Ee&&"gutters",!fe&&"padding",we&&"divider",ve&&"disabled",ae&&"button","flex-start"===J&&"alignItemsFlexStart",pe&&"secondaryAction",ye&&"selected"],container:["container"]},pT,ue)})(K),X=nr(Q,i),re=O.root||y.Root||Or,q=T.root||b.root||{},$=ne({className:Ue(Y.root,q.className,p),disabled:E},B);let W=m||"li";return d&&($.component=m||"div",$.focusVisibleClassName=Ue(Pf.focusVisible,k),W=bf),z?(W=$.component||m?W:"div","li"===_&&("li"===W?W="div":"li"===$.component&&($.component="div")),ce.jsx(Ka.Provider,{value:G,children:ce.jsxs(mr,ne({as:_,className:Ue(Y.container,w),ref:X,ownerState:K},N,{children:[ce.jsx(re,ne({},q,!xf(re)&&{as:W,ownerState:ne({},K,q.ownerState)},$,{children:H})),H.pop()]}))})):ce.jsx(Ka.Provider,{value:G,children:ce.jsxs(re,ne({},q,{as:W,ref:X},!xf(re)&&{ownerState:ne({},K,q.ownerState)},$,{children:[H,A&&ce.jsx(uk,{children:A})]}))})});function We(t){return cn("MuiListItemIcon",t)}var yT=Gt("MuiListItemIcon",["root","alignItemsFlexStart"]);const vT=["className"],bT=De("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(t,i)=>{const{ownerState:s}=t;return[i.root,"flex-start"===s.alignItems&&i.alignItemsFlexStart]}})(({theme:t,ownerState:i})=>ne({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===i.alignItems&&{marginTop:8}));var _T=P.forwardRef(function(t,i){const s=on({props:t,name:"MuiListItemIcon"}),{className:l}=s,c=gt(s,vT),d=ne({},s,{alignItems:P.useContext(Ka).alignItems}),f=(p=>{const{alignItems:m,classes:y}=p;return rn({root:["root","flex-start"===m&&"alignItemsFlexStart"]},We,y)})(d);return ce.jsx(bT,ne({className:Ue(f.root,l),ownerState:d,ref:i},c))}),fk=Gt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const JP=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function hk(t,i,s){return t===i?t.firstChild:i&&i.nextElementSibling?i.nextElementSibling:s?null:t.firstChild}function Gp(t,i,s){return t===i?s?t.firstChild:t.lastChild:i&&i.previousElementSibling?i.previousElementSibling:s?null:t.lastChild}function Up(t,i){if(void 0===i)return!0;let s=t.innerText;return void 0===s&&(s=t.textContent),s=s.trim().toLowerCase(),0!==s.length&&(i.repeating?s[0]===i.keys[0]:0===s.indexOf(i.keys.join("")))}function Jl(t,i,s,l,c,d){let f=!1,p=c(t,i,!!i&&s);for(;p;){if(p===t.firstChild){if(f)return!1;f=!0}const m=!l&&(p.disabled||"true"===p.getAttribute("aria-disabled"));if(p.hasAttribute("tabindex")&&Up(p,d)&&!m)return p.focus(),!0;p=c(t,p,s)}return!1}var aw=P.forwardRef(function(t,i){const{actions:s,autoFocus:l=!1,autoFocusItem:c=!1,children:d,className:f,disabledItemsFocusable:p=!1,disableListWrap:m=!1,onKeyDown:y,variant:b="selectedMenu"}=t,_=gt(t,JP),w=P.useRef(null),S=P.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Eo(()=>{l&&w.current.focus()},[l]),P.useImperativeHandle(s,()=>({adjustStyleForScrollbar:(D,k)=>{if(D.clientHeight<w.current.clientHeight&&!w.current.style.width){const M=`${o_(Rn(D))}px`;w.current.style["rtl"===k.direction?"paddingLeft":"paddingRight"]=M,w.current.style.width=`calc(100% + ${M})`}return w.current}}),[]);const E=nr(w,i);let C=-1;P.Children.forEach(d,(D,k)=>{P.isValidElement(D)?(D.props.disabled||("selectedMenu"===b&&D.props.selected||-1===C)&&(C=k),C===k&&(D.props.disabled||D.props.muiSkipListHighlight||D.type.muiSkipListHighlight)&&(C+=1,C>=d.length&&(C=-1))):C===k&&(C+=1,C>=d.length&&(C=-1))});const I=P.Children.map(d,(D,k)=>{if(k===C){const A={};return c&&(A.autoFocus=!0),void 0===D.props.tabIndex&&"selectedMenu"===b&&(A.tabIndex=0),P.cloneElement(D,A)}return D});return ce.jsx($p,ne({role:"menu",ref:E,className:f,onKeyDown:D=>{const k=w.current,A=D.key,M=Rn(k).activeElement;if("ArrowDown"===A)D.preventDefault(),Jl(k,M,m,p,hk);else if("ArrowUp"===A)D.preventDefault(),Jl(k,M,m,p,Gp);else if("Home"===A)D.preventDefault(),Jl(k,null,m,p,hk);else if("End"===A)D.preventDefault(),Jl(k,null,m,p,Gp);else if(1===A.length){const T=S.current,O=A.toLowerCase(),N=performance.now();T.keys.length>0&&(N-T.lastTime>500?(T.keys=[],T.repeating=!0,T.previousKeyMatched=!0):T.repeating&&O!==T.keys[0]&&(T.repeating=!1)),T.lastTime=N,T.keys.push(O);const B=M&&!T.repeating&&Up(M,T);T.previousKeyMatched&&(B||Jl(k,M,!1,p,hk,T))?D.preventDefault():T.previousKeyMatched=!1}y&&y(D)},tabIndex:l?0:-1},_,{children:I}))});function eN(t){return cn("MuiPopover",t)}Gt("MuiPopover",["root","paper"]);const tN=["onEntering"],nN=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],wT=["slotProps"];function pk(t,i){let s=0;return"number"==typeof i?s=i:"center"===i?s=t.height/2:"bottom"===i&&(s=t.height),s}function lw(t,i){let s=0;return"number"==typeof i?s=i:"center"===i?s=t.width/2:"right"===i&&(s=t.width),s}function gk(t){return[t.horizontal,t.vertical].map(i=>"number"==typeof i?`${i}px`:i).join(" ")}function cw(t){return"function"==typeof t?t():t}const rN=De(mv,{name:"MuiPopover",slot:"Root",overridesResolver:(t,i)=>i.root})({}),rs=De(A_,{name:"MuiPopover",slot:"Paper",overridesResolver:(t,i)=>i.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0});var Wp=P.forwardRef(function(t,i){var s,l,c;const d=on({props:t,name:"MuiPopover"}),{action:f,anchorEl:p,anchorOrigin:m={vertical:"top",horizontal:"left"},anchorPosition:y,anchorReference:b="anchorEl",children:_,className:w,container:S,elevation:E=8,marginThreshold:C=16,open:I,PaperProps:D={},slots:k,slotProps:A,transformOrigin:M={vertical:"top",horizontal:"left"},TransitionComponent:T=rk,transitionDuration:O="auto",TransitionProps:{onEntering:N}={},disableScrollLock:B=!1}=d,j=gt(d.TransitionProps,tN),G=gt(d,nN),Q=null!=(s=null==A?void 0:A.paper)?s:D,H=P.useRef(),z=nr(H,Q.ref),K=ne({},d,{anchorOrigin:m,anchorReference:b,elevation:E,marginThreshold:C,externalPaperSlotProps:Q,transformOrigin:M,TransitionComponent:T,transitionDuration:O,TransitionProps:j}),Y=(pe=>{const{classes:ye}=pe;return rn({root:["root"],paper:["paper"]},eN,ye)})(K),X=P.useCallback(()=>{if("anchorPosition"===b)return y;const pe=cw(p),ye=(pe&&1===pe.nodeType?pe:Rn(H.current).body).getBoundingClientRect();return{top:ye.top+pk(ye,m.vertical),left:ye.left+lw(ye,m.horizontal)}},[p,m.horizontal,m.vertical,y,b]),re=P.useCallback(pe=>({vertical:pk(pe,M.vertical),horizontal:lw(pe,M.horizontal)}),[M.horizontal,M.vertical]),q=P.useCallback(pe=>{const ye={width:pe.offsetWidth,height:pe.offsetHeight},Ne=re(ye);if("none"===b)return{top:null,left:null,transformOrigin:gk(Ne)};const Oe=X();let qe=Oe.top-Ne.vertical,Ve=Oe.left-Ne.horizontal;const lt=qe+ye.height,xe=Ve+ye.width,Ke=Va(cw(p)),Xe=Ke.innerHeight-C,Tt=Ke.innerWidth-C;if(null!==C&&qe<C){const Je=qe-C;qe-=Je,Ne.vertical+=Je}else if(null!==C&&lt>Xe){const Je=lt-Xe;qe-=Je,Ne.vertical+=Je}if(null!==C&&Ve<C){const Je=Ve-C;Ve-=Je,Ne.horizontal+=Je}else if(xe>Tt){const Je=xe-Tt;Ve-=Je,Ne.horizontal+=Je}return{top:`${Math.round(qe)}px`,left:`${Math.round(Ve)}px`,transformOrigin:gk(Ne)}},[p,b,X,re,C]),[$,W]=P.useState(I),te=P.useCallback(()=>{const pe=H.current;if(!pe)return;const ye=q(pe);null!==ye.top&&(pe.style.top=ye.top),null!==ye.left&&(pe.style.left=ye.left),pe.style.transformOrigin=ye.transformOrigin,W(!0)},[q]);P.useEffect(()=>(B&&window.addEventListener("scroll",te),()=>window.removeEventListener("scroll",te)),[p,B,te]),P.useEffect(()=>{I&&te()}),P.useImperativeHandle(f,()=>I?{updatePosition:()=>{te()}}:null,[I,te]),P.useEffect(()=>{if(!I)return;const pe=Zo(()=>{te()}),ye=Va(p);return ye.addEventListener("resize",pe),()=>{pe.clear(),ye.removeEventListener("resize",pe)}},[p,I,te]);let J=O;"auto"!==O||T.muiSupportAuto||(J=void 0);const ae=S||(p?Rn(cw(p)).body:void 0),ue=null!=(l=null==k?void 0:k.root)?l:rN,_e=null!=(c=null==k?void 0:k.paper)?c:rs,ve=Ss({elementType:_e,externalSlotProps:ne({},Q,{style:$?Q.style:ne({},Q.style,{opacity:0})}),additionalProps:{elevation:E,ref:z},ownerState:K,className:Ue(Y.paper,null==Q?void 0:Q.className)}),Ee=Ss({elementType:ue,externalSlotProps:(null==A?void 0:A.root)||{},externalForwardedProps:G,additionalProps:{ref:i,slotProps:{backdrop:{invisible:!0}},container:ae,open:I},ownerState:K,className:Ue(Y.root,w)}),{slotProps:fe}=Ee,we=gt(Ee,wT);return ce.jsx(ue,ne({},we,!xf(ue)&&{slotProps:fe,disableScrollLock:B},{children:ce.jsx(T,ne({appear:!0,in:I,onEntering:(pe,ye)=>{N&&N(pe,ye),te()},onExited:()=>{W(!1)},timeout:J},j,{children:ce.jsx(_e,ne({},ve,{children:_}))}))}))});function xT(t){return cn("MuiMenuItem",t)}var Kp=Gt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const ST=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Qp=De(bf,{shouldForwardProp:t=>ws(t)||"classes"===t,name:"MuiMenuItem",slot:"Root",overridesResolver:(t,i)=>{const{ownerState:s}=t;return[i.root,s.dense&&i.dense,s.divider&&i.divider,!s.disableGutters&&i.gutters]}})(({theme:t,ownerState:i})=>ne({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!i.disableGutters&&{paddingLeft:16,paddingRight:16},i.divider&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Kp.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:rr(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${Kp.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:rr(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${Kp.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:rr(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:rr(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${Kp.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Kp.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${J2.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${J2.inset}`]:{marginLeft:52},[`& .${fk.root}`]:{marginTop:0,marginBottom:0},[`& .${fk.inset}`]:{paddingLeft:36},[`& .${yT.root}`]:{minWidth:36}},!i.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},i.dense&&ne({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{[`& .${yT.root} svg`]:{fontSize:"1.25rem"}})));var Lr,tt=P.forwardRef(function(t,i){const s=on({props:t,name:"MuiMenuItem"}),{autoFocus:l=!1,component:c="li",dense:d=!1,divider:f=!1,disableGutters:p=!1,focusVisibleClassName:m,role:y="menuitem",tabIndex:b,className:_}=s,w=gt(s,ST),S=P.useContext(Ka),E=P.useMemo(()=>({dense:d||S.dense||!1,disableGutters:p}),[S.dense,d,p]),C=P.useRef(null);Eo(()=>{l&&C.current&&C.current.focus()},[l]);const I=ne({},s,{dense:E.dense,divider:f,disableGutters:p}),D=(M=>{const{disabled:T,dense:O,divider:N,disableGutters:B,selected:j,classes:G}=M;return ne({},G,rn({root:["root",O&&"dense",T&&"disabled",!B&&"gutters",N&&"divider",j&&"selected"]},xT,G))})(s),k=nr(C,i);let A;return s.disabled||(A=void 0!==b?b:-1),ce.jsx(Ka.Provider,{value:E,children:ce.jsx(Qp,ne({ref:k,role:y,tabIndex:A,component:c,focusVisibleClassName:Ue(D.focusVisible,m),className:Ue(D.root,_)},w,{ownerState:I,classes:D}))})});const vt=["children","classes","className","label","notched"],CT=De("fieldset",{shouldForwardProp:ws})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),vv=De("legend",{shouldForwardProp:ws})(({ownerState:t,theme:i})=>ne({float:"unset",width:"auto",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:i.transitions.create("width",{duration:150,easing:i.transitions.easing.easeOut})},t.withLabel&&ne({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:i.transitions.create("max-width",{duration:50,easing:i.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:i.transitions.create("max-width",{duration:100,easing:i.transitions.easing.easeOut,delay:50})}))),Qa=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],bv=De(T2,{shouldForwardProp:t=>ws(t)||"classes"===t,name:"MuiOutlinedInput",slot:"Root",overridesResolver:M2})(({theme:t,ownerState:i})=>ne({position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${ca.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${ca.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:"light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}},[`&.${ca.focused} .${ca.notchedOutline}`]:{borderColor:(t.vars||t).palette[i.color].main,borderWidth:2},[`&.${ca.error} .${ca.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${ca.disabled} .${ca.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}},i.startAdornment&&{paddingLeft:14},i.endAdornment&&{paddingRight:14},i.multiline&&ne({padding:"16.5px 14px"},"small"===i.size&&{padding:"8.5px 14px"}))),Ps=De(function(t){const{className:i,label:s,notched:l}=t,c=gt(t,vt),d=null!=s&&""!==s,f=ne({},t,{notched:l,withLabel:d});return ce.jsx(CT,ne({"aria-hidden":!0,className:i,ownerState:f},c,{children:ce.jsx(vv,{ownerState:f,children:d?ce.jsx("span",{children:s}):Lr||(Lr=ce.jsx("span",{className:"notranslate",children:"\u200b"}))})}))},{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,i)=>i.notchedOutline})(({theme:t})=>({borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:"light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"})),DT=De(LD,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:OD})(({theme:t,ownerState:i})=>ne({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===i.size&&{padding:"8.5px 14px"},i.multiline&&{padding:0},i.startAdornment&&{paddingLeft:0},i.endAdornment&&{paddingRight:0})),yr=P.forwardRef(function(t,i){var s,l,c,d,f;const p=on({props:t,name:"MuiOutlinedInput"}),{components:m={},fullWidth:y=!1,inputComponent:b="input",label:_,multiline:w=!1,notched:S,slots:E={},type:C="text"}=p,I=gt(p,Qa),D=(N=>{const{classes:B}=N;return ne({},B,rn({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},O2,B))})(p),k=ns(),A=TD({props:p,muiFormControl:k,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),M=ne({},p,{color:A.color||"primary",disabled:A.disabled,error:A.error,focused:A.focused,formControl:k,fullWidth:y,hiddenLabel:A.hiddenLabel,multiline:w,size:A.size,type:C}),T=null!=(s=null!=(l=E.root)?l:m.Root)?s:bv,O=null!=(c=null!=(d=E.input)?d:m.Input)?c:DT;return ce.jsx(Hn,ne({slots:{root:T,input:O},renderSuffix:N=>ce.jsx(Ps,{ownerState:M,className:D.notchedOutline,label:null!=_&&""!==_&&A.required?f||(f=ce.jsxs(P.Fragment,{children:[_,"\u2009","*"]})):_,notched:void 0!==S?S:Boolean(N.startAdornment||N.filled||N.focused)}),fullWidth:y,inputComponent:b,multiline:w,ref:i,type:C},I,{classes:ne({},D,{notchedOutline:null})}))});yr.muiName="Input";var kT=yr,Cn=xs(ce.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),AT=xs(ce.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked");const _v=De("span",{shouldForwardProp:ws})({position:"relative",display:"flex"}),IT=De(Cn)({transform:"scale(1)"}),wv=De(AT)(({theme:t,ownerState:i})=>ne({left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest})},i.checked&&{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})}));function yk(t){const{checked:i=!1,classes:s={},fontSize:l}=t,c=ne({},t,{checked:i});return ce.jsxs(_v,{className:s.root,ownerState:c,children:[ce.jsx(IT,{fontSize:l,className:s.background,ownerState:c}),ce.jsx(wv,{fontSize:l,className:s.dot,ownerState:c})]})}var vk=P.createContext(void 0);function uw(t){return cn("MuiRadio",t)}const Yp=Gt("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),dw=["checked","checkedIcon","color","icon","name","onChange","size","className"],RT=De(qD,{shouldForwardProp:t=>ws(t)||"classes"===t,name:"MuiRadio",slot:"Root",overridesResolver:(t,i)=>{const{ownerState:s}=t;return[i.root,"medium"!==s.size&&i[`size${Pe(s.size)}`],i[`color${Pe(s.color)}`]]}})(({theme:t,ownerState:i})=>ne({color:(t.vars||t).palette.text.secondary},!i.disableRipple&&{"&:hover":{backgroundColor:t.vars?`rgba(${"default"===i.color?t.vars.palette.action.activeChannel:t.vars.palette[i.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:rr("default"===i.color?t.palette.action.active:t.palette[i.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==i.color&&{[`&.${Yp.checked}`]:{color:(t.vars||t).palette[i.color].main}},{[`&.${Yp.disabled}`]:{color:(t.vars||t).palette.action.disabled}})),fw=ce.jsx(yk,{checked:!0}),bk=ce.jsx(yk,{});var MT=P.forwardRef(function(t,i){var s,l;const c=on({props:t,name:"MuiRadio"}),{checked:d,checkedIcon:f=fw,color:p="primary",icon:m=bk,name:y,onChange:b,size:_="medium",className:w}=c,S=gt(c,dw),E=ne({},c,{color:p,size:_}),C=(M=>{const{classes:T,color:O,size:N}=M;return ne({},T,rn({root:["root",`color${Pe(O)}`,"medium"!==N&&`size${Pe(N)}`]},uw,T))})(E),I=P.useContext(vk);let D=d;const k=Ly(b,I&&I.onChange);let A=y;return I&&(void 0===D&&(M=I.value,D="object"==typeof(T=c.value)&&null!==T?M===T:String(M)===String(T)),void 0===A&&(A=I.name)),ce.jsx(RT,ne({type:"radio",icon:P.cloneElement(m,{fontSize:null!=(s=bk.props.fontSize)?s:_}),checkedIcon:P.cloneElement(f,{fontSize:null!=(l=fw.props.fontSize)?l:_}),ownerState:E,classes:C,name:A,checked:D,onChange:k,ref:i,className:Ue(C.root,w)},S));var M,T});function TT(t){return cn("MuiTooltip",t)}var Ya=Gt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);const OT=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"],_k=De(k2,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,i)=>{const{ownerState:s}=t;return[i.popper,!s.disableInteractive&&i.popperInteractive,s.arrow&&i.popperArrow,!s.open&&i.popperClose]}})(({theme:t,ownerState:i,open:s})=>ne({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none"},!i.disableInteractive&&{pointerEvents:"auto"},!s&&{pointerEvents:"none"},i.arrow&&{[`&[data-popper-placement*="bottom"] .${Ya.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Ya.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Ya.arrow}`]:ne({},i.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Ya.arrow}`]:ne({},i.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),xv=De("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,i)=>{const{ownerState:s}=t;return[i.tooltip,s.touch&&i.touch,s.arrow&&i.tooltipArrow,i[`tooltipPlacement${Pe(s.placement.split("-")[0])}`]]}})(({theme:t,ownerState:i})=>ne({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:rr(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium},i.arrow&&{position:"relative",margin:0},i.touch&&{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:(16/14,Math.round(114285.71428571428)/1e5+"em"),fontWeight:t.typography.fontWeightRegular},{[`.${Ya.popper}[data-popper-placement*="left"] &`]:ne({transformOrigin:"right center"},i.isRtl?ne({marginLeft:"14px"},i.touch&&{marginLeft:"24px"}):ne({marginRight:"14px"},i.touch&&{marginRight:"24px"})),[`.${Ya.popper}[data-popper-placement*="right"] &`]:ne({transformOrigin:"left center"},i.isRtl?ne({marginRight:"14px"},i.touch&&{marginRight:"24px"}):ne({marginLeft:"14px"},i.touch&&{marginLeft:"24px"})),[`.${Ya.popper}[data-popper-placement*="top"] &`]:ne({transformOrigin:"center bottom",marginBottom:"14px"},i.touch&&{marginBottom:"24px"}),[`.${Ya.popper}[data-popper-placement*="bottom"] &`]:ne({transformOrigin:"center top",marginTop:"14px"},i.touch&&{marginTop:"24px"})})),Zp=De("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(t,i)=>i.arrow})(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:rr(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Sv=!1;const wk=new yp;let Au={x:0,y:0};function Xp(t,i){return s=>{i&&i(s),t(s)}}var hw=P.forwardRef(function(t,i){var s,l,c,d,f,p,m,y,b,_,w,S,E,C,I,D,k,A,M;const T=on({props:t,name:"MuiTooltip"}),{arrow:O=!1,children:N,components:B={},componentsProps:j={},describeChild:G=!1,disableFocusListener:Q=!1,disableHoverListener:H=!1,disableInteractive:z=!1,disableTouchListener:K=!1,enterDelay:Y=100,enterNextDelay:X=0,enterTouchDelay:re=700,followCursor:q=!1,id:$,leaveDelay:W=0,leaveTouchDelay:te=1500,onClose:J,onOpen:ae,open:ue,placement:_e="bottom",PopperComponent:ve,PopperProps:Ee={},slotProps:fe={},slots:we={},title:pe,TransitionComponent:ye=rk,TransitionProps:Ne}=T,Oe=gt(T,OT),qe=P.isValidElement(N)?N:ce.jsx("span",{children:N}),Ve=Wr(),lt="rtl"===Ve.direction,[xe,Ke]=P.useState(),[Xe,Tt]=P.useState(null),Je=P.useRef(!1),nt=z||q,ot=yu(),xt=yu(),Wt=yu(),Kt=yu(),[lr,Be]=r_({controlled:ue,default:!1,name:"Tooltip",state:"open"});let qt=lr;const gn=dC($),mn=P.useRef(),Nr=_s(()=>{void 0!==mn.current&&(document.body.style.WebkitUserSelect=mn.current,mn.current=void 0),Kt.clear()});P.useEffect(()=>Nr,[Nr]);const Kr=mt=>{wk.clear(),Sv=!0,Be(!0),ae&&!qt&&ae(mt)},_r=_s(mt=>{wk.start(800+W,()=>{Sv=!1}),Be(!1),J&&qt&&J(mt),ot.start(Ve.transitions.duration.shortest,()=>{Je.current=!1})}),Qt=mt=>{Je.current&&"touchstart"!==mt.type||(xe&&xe.removeAttribute("title"),xt.clear(),Wt.clear(),Y||Sv&&X?xt.start(Sv?X:Y,()=>{Kr(mt)}):Kr(mt))},$t=mt=>{xt.clear(),Wt.start(W,()=>{_r(mt)})},{isFocusVisibleRef:un,onBlur:$n,onFocus:Gn,ref:Dn}=Ny(),[,Fe]=P.useState(!1),Ge=mt=>{$n(mt),!1===un.current&&(Fe(!1),$t(mt))},Pt=mt=>{xe||Ke(mt.currentTarget),Gn(mt),!0===un.current&&(Fe(!0),Qt(mt))},At=mt=>{Je.current=!0;const yn=qe.props;yn.onTouchStart&&yn.onTouchStart(mt)};P.useEffect(()=>{if(qt)return document.addEventListener("keydown",mt),()=>{document.removeEventListener("keydown",mt)};function mt(yn){"Escape"!==yn.key&&"Esc"!==yn.key||_r(yn)}},[_r,qt]);const ut=nr(qe.ref,Dn,Ke,i);pe||0===pe||(qt=!1);const Bt=P.useRef(),sn={},Tn="string"==typeof pe;G?(sn.title=qt||!Tn||H?null:pe,sn["aria-describedby"]=qt?gn:null):(sn["aria-label"]=Tn?pe:null,sn["aria-labelledby"]=qt&&!Tn?gn:null);const Nt=ne({},sn,Oe,qe.props,{className:Ue(Oe.className,qe.props.className),onTouchStart:At,ref:ut},q?{onMouseMove:mt=>{const yn=qe.props;yn.onMouseMove&&yn.onMouseMove(mt),Au={x:mt.clientX,y:mt.clientY},Bt.current&&Bt.current.update()}}:{}),Ct={};K||(Nt.onTouchStart=mt=>{At(mt),Wt.clear(),ot.clear(),Nr(),mn.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Kt.start(re,()=>{document.body.style.WebkitUserSelect=mn.current,Qt(mt)})},Nt.onTouchEnd=mt=>{qe.props.onTouchEnd&&qe.props.onTouchEnd(mt),Nr(),Wt.start(te,()=>{_r(mt)})}),H||(Nt.onMouseOver=Xp(Qt,Nt.onMouseOver),Nt.onMouseLeave=Xp($t,Nt.onMouseLeave),nt||(Ct.onMouseOver=Qt,Ct.onMouseLeave=$t)),Q||(Nt.onFocus=Xp(Pt,Nt.onFocus),Nt.onBlur=Xp(Ge,Nt.onBlur),nt||(Ct.onFocus=Pt,Ct.onBlur=Ge));const Ft=P.useMemo(()=>{var mt;let yn=[{name:"arrow",enabled:Boolean(Xe),options:{element:Xe,padding:4}}];return null!=(mt=Ee.popperOptions)&&mt.modifiers&&(yn=yn.concat(Ee.popperOptions.modifiers)),ne({},Ee.popperOptions,{modifiers:yn})},[Xe,Ee]),It=ne({},T,{isRtl:lt,arrow:O,disableInteractive:nt,placement:_e,PopperComponentProp:ve,touch:Je.current}),On=(mt=>{const{classes:yn,disableInteractive:dc,arrow:Ag,touch:Kf,placement:f0}=mt;return rn({popper:["popper",!dc&&"popperInteractive",Ag&&"popperArrow"],tooltip:["tooltip",Ag&&"tooltipArrow",Kf&&"touch",`tooltipPlacement${Pe(f0.split("-")[0])}`],arrow:["arrow"]},TT,yn)})(It),ti=null!=(s=null!=(l=we.popper)?l:B.Popper)?s:_k,Yn=null!=(c=null!=(d=null!=(f=we.transition)?f:B.Transition)?d:ye)?c:rk,Fr=null!=(p=null!=(m=we.tooltip)?m:B.Tooltip)?p:xv,no=null!=(y=null!=(b=we.arrow)?b:B.Arrow)?y:Zp,Bi=Dp(ti,ne({},Ee,null!=(_=fe.popper)?_:j.popper,{className:Ue(On.popper,null==Ee?void 0:Ee.className,null==(w=null!=(S=fe.popper)?S:j.popper)?void 0:w.className)}),It),cc=Dp(Yn,ne({},Ne,null!=(E=fe.transition)?E:j.transition),It),ro=Dp(Fr,ne({},null!=(C=fe.tooltip)?C:j.tooltip,{className:Ue(On.tooltip,null==(I=null!=(D=fe.tooltip)?D:j.tooltip)?void 0:I.className)}),It),uc=Dp(no,ne({},null!=(k=fe.arrow)?k:j.arrow,{className:Ue(On.arrow,null==(A=null!=(M=fe.arrow)?M:j.arrow)?void 0:A.className)}),It);return ce.jsxs(P.Fragment,{children:[P.cloneElement(qe,Nt),ce.jsx(ti,ne({as:null!=ve?ve:k2,placement:_e,anchorEl:q?{getBoundingClientRect:()=>({top:Au.y,left:Au.x,right:Au.x,bottom:Au.y,width:0,height:0})}:xe,popperRef:Bt,open:!!xe&&qt,id:gn,transition:!0},Ct,Bi,{popperOptions:Ft,children:({TransitionProps:mt})=>ce.jsx(Yn,ne({timeout:Ve.transitions.duration.shorter},mt,cc,{children:ce.jsxs(Fr,ne({},ro,{children:[pe,O?ce.jsx(no,ne({},uc,{ref:Tt})):null]}))}))}))]})});const[LT,PT]=Do({}),[NT,Ev]=Do({}),[FT,jT]=Do({}),[sN,Iu]=Do({}),[pw,Cv]=Do({}),[,gw]=Do({}),BT=t=>{let{type:i,value:s}=t;const l=gw.get(s.id);gw.set(s.id,{});const c=()=>{Ev.clear(s.id),Cv.set(s.id,{}),Cv.dispatch(!0)},d=()=>{s.removeListener("changed",c),PT.clear(s.id),Ev.clear(s.id),jT.clear(s.id),Iu.clear(s.id),Cv.clear(s.id),gw.clear(s.id)};return"SET"===i&&(l||(s.on("changed",c),s.once("closed",()=>{d()}))),d},[xk,Ru]=Do({},BT),zT=t=>{const i=BT({type:"SET",value:t});return()=>{i(),Ru.clear(t.id)}};function mw(t,i){const s=i?"".concat(i.id,"/").concat(JSON.stringify(t)):null,[l]=xk(),[c]=FT(),[d,f]=P.useState();for(var p=arguments.length,m=new Array(p>2?p-2:0),y=2;y<p;y++)m[y-2]=arguments[y];return P.useEffect(()=>{!i||be(function*(){let b=c.get(s);b||(b=i.createSessionObject(t),c.set(s,b));const _=yield b;l.set(s,_),f(_)})()},[i,...m]),[d]}const qT={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function yw(t){return mw(qT,t)}const VT=(t,i)=>{const{rpcResultStore:s,key:l,method:c}=i;let d;switch(i.type){case"INVALID":d=ee(ee({},t),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":d={result:ee({},i.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":d=ee(ee({},t),{},{invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1});break;default:throw new Error("Undefined action")}let f=s.get(l);return f||(f={}),f[c]=d,s.set(l,f),d};function Sk(t,i){const s=t?"".concat(t.id):null,[l]=LT(),[c,d]=P.useReducer(VT,s?l.get(s):null),[f]=pw(),[p]=NT();let m;s&&(m=p.get(s),m||(m={},p.set(s,m)));const y=function(){var _=be(function*(w){let S=m[i];(!S||S&&S.rpcRetry)&&(S={rpc:t[i](),rpcRetry:!1},m[i]=S,d({type:"INVALID",method:i,key:s,model:t,rpcResultStore:l,canCancel:!0}));try{yield(t=>new Promise(i=>{setTimeout(i,t)}))(0);const E=yield S.rpc;d({type:"VALID",result:E,key:s,method:i,model:t,rpcResultStore:l})}catch(E){15!==E.code||w||(S.rpcRetry||(S.rpcRetry=!0),y(!0))}});return function(S){return _.apply(this,arguments)}}(),b={cancel:(_=be(function*(){yield t.session.getObjectApi({handle:-1}).cancelRequest(m[i].rpc.requestId),d({type:"CANCELLED",key:s,method:i,model:t,rpcResultStore:l})}),function(){return _.apply(this,arguments)}),retry:()=>{m[i].rpcRetry=!0,y()}};var _;return P.useEffect(()=>{t&&y()},[t,f.get(t&&t.id),s,i]),[c&&c.result,{validating:c&&c.validating,canCancel:c&&c.canCancel,canRetry:c&&c.canRetry},b]}function ec(t){return Sk(t,"getLayout")}function vw(t){return Sk(t,"getAppLayout")}function Nf(){const[t,i]=P.useState(),[s,l]=P.useState(),c=P.useCallback(f=>{f&&i(f)},[]),d=()=>{const{left:f,top:p,width:m,height:y}=t.getBoundingClientRect();l({left:f,top:p,width:m,height:y})};return P.useLayoutEffect(()=>{if(t){if("function"==typeof ResizeObserver){let f=new ResizeObserver(d);return f.observe(t),()=>{f.unobserve(t),f.disconnect(t),f=null}}return d(),window.addEventListener("resize",d),()=>{window.removeEventListener("resize",d)}}},[t]),[c,s,t]}function HT(t){return"large"===t?"20px":"small"===t?"12px":"16px"}function Ao(t){let{size:i,style:s={},viewBox:l="0 0 16 16",shapes:c=[]}=t;const d=ee({fontSize:HT(i),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},s);return V.createElement("i",{style:d},V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:l,fill:"currentColor"},c.map((f,p)=>{let{type:m,attrs:y}=f;return V.createElement(m,Vi({key:p},y))})))}var Mu=t=>Ao((i=>ee(ee({},i),{},{shapes:[{type:"path",attrs:{d:"M9.41421356,8 L11.8890873,5.52512627 C12.065864,5.34834957 12.0305087,4.95944084 11.8183766,4.74730881 L11.2526912,4.18162338 C11.0405592,3.96949135 10.6516504,3.93413601 10.4748737,4.1109127 L8,6.58578644 L5.52512627,4.1109127 C5.34834957,3.93413601 4.95944084,3.96949135 4.74730881,4.18162338 L4.25233406,4.67659813 C3.96949135,4.95944084 3.93413601,5.34834957 4.1109127,5.52512627 L6.58578644,8 L4.1109127,10.4748737 C3.93413601,10.6516504 3.96949135,11.0405592 4.18162338,11.2526912 L4.67659813,11.7476659 C4.95944084,12.0305087 5.34834957,12.065864 5.52512627,11.8890873 L8,9.41421356 L10.4748737,11.8890873 C10.6516504,12.065864 11.0405592,12.0305087 11.2526912,11.8183766 L11.8183766,11.2526912 C12.0305087,11.0405592 12.065864,10.6516504 11.8890873,10.4748737 L9.41421356,8 Z M8,0 C12.4,0 16,3.6 16,8 C16,12.4 12.4,16 8,16 C3.6,16 0,12.4 0,8 C0,3.6 3.6,0 8,0 Z"}}]}))(t)),da=t=>Ao((i=>ee(ee({},i),{},{shapes:[{type:"path",attrs:{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10ZM3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0v1.652ZM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9Zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0Z"}}]}))(t));const $T=t=>ee(ee({},t),{},{viewBox:"0 0 12 16",shapes:[{type:"path",attrs:{d:"M2.5,7 L11,7 C11.5522847,7 12,7.44771525 12,8 L12,15 C12,15.5522847 11.5522847,16 11,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,8 C0,7.44771525 0.44771525,7 1,7 L1,4.98151367 C1,2.23029964 3.23857625,0 6,0 C8.4241995,0 10.4454541,1.71883353 10.9029715,4 L9.34209114,4 C8.9671727,2.54028848 7.9088888,1.5 6,1.5 C3.54860291,1.5 2.5,3.21561511 2.5,5.33193359 L2.5,7 Z"}}]});var lN=t=>Ao($T(t)),vr=function(){function t(i,s){for(var l=0;l<s.length;l++){var c=s[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(i,c.key,c)}}return function(i,s,l){return s&&t(i.prototype,s),l&&t(i,l),i}}(),GT=function(t,i){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!i||"object"!=typeof i&&"function"!=typeof i?t:i},bw=function(t){function i(){var s,l,c;!function(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")}(this,i);for(var d=arguments.length,f=Array(d),p=0;p<d;p++)f[p]=arguments[p];return l=c=GT(this,(s=i.__proto__||Object.getPrototypeOf(i)).call.apply(s,[this].concat(f))),c._lastRenderedStartIndex=-1,c._lastRenderedStopIndex=-1,c._memoizedUnloadedRanges=[],c._onItemsRendered=function(m){var y=m.visibleStartIndex,b=m.visibleStopIndex;c._lastRenderedStartIndex=y,c._lastRenderedStopIndex=b,c._ensureRowsLoaded(y,b)},c._setRef=function(m){c._listRef=m},GT(c,l)}return function(s,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function, not "+typeof l);s.prototype=Object.create(l&&l.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(s,l):s.__proto__=l)}(i,t),vr(i,[{key:"resetloadMoreItemsCache",value:function(){var s=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._memoizedUnloadedRanges=[],s&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){return(0,this.props.children)({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(s,l){var c=this.props,f=c.itemCount,p=c.minimumBatchSize,y=c.threshold,b=void 0===y?15:y,_=function(w){for(var S=w.isItemLoaded,E=w.itemCount,C=w.minimumBatchSize,D=w.stopIndex,k=[],A=null,M=null,T=w.startIndex;T<=D;T++)S(T)?null!==M&&(k.push(A,M),A=M=null):(M=T,null===A&&(A=T));if(null!==M){for(var O=Math.min(Math.max(M,A+C-1),E-1),N=M+1;N<=O&&!S(N);N++)M=N;k.push(A,M)}if(k.length)for(;k[1]-k[0]+1<C&&k[0]>0;){var B=k[0]-1;if(S(B))break;k[0]=B}return k}({isItemLoaded:c.isItemLoaded,itemCount:f,minimumBatchSize:void 0===p?10:p,startIndex:Math.max(0,s-b),stopIndex:Math.min(f-1,l+b)});(this._memoizedUnloadedRanges.length!==_.length||this._memoizedUnloadedRanges.some(function(w,S){return _[S]!==w}))&&(this._memoizedUnloadedRanges=_,this._loadUnloadedRanges(_))}},{key:"_loadUnloadedRanges",value:function(s){for(var l=this,c=this.props.loadMoreItems||this.props.loadMoreRows,d=function(p){var m=s[p],y=s[p+1],b=c(m,y);null!=b&&b.then(function(){if(!((_={lastRenderedStartIndex:l._lastRenderedStartIndex,lastRenderedStopIndex:l._lastRenderedStopIndex,startIndex:m,stopIndex:y}).startIndex>_.lastRenderedStopIndex||_.stopIndex<_.lastRenderedStartIndex)){if(null==l._listRef)return;"function"==typeof l._listRef.resetAfterIndex?l._listRef.resetAfterIndex(m,!0):("function"==typeof l._listRef._getItemStyleCache&&l._listRef._getItemStyleCache(-1),l._listRef.forceUpdate())}var _})},f=0;f<s.length;f+=2)d(f)}}]),i}(P.PureComponent);const cN=["S","XS"],Ek=t=>t.reduce((i,s)=>i.concat(s));function UT(t){if(!t||!t.length)return[];const i=t.map(s=>s.qMatrix.map(c=>{const[d]=c;return!!cN.includes(d.qState)&&d.qElemNumber}).filter(c=>!1!==c));return Ek(i)}function Ck(t){return Ff.apply(this,arguments)}function Ff(){return Ff=be(function*(t){let{selections:i,elemNumbers:s,toggle:l,isSingleSelect:c}=t;if(0===s.length)return!1;let d=!1;if(!s.some(f=>Number.isNaN(f))){const f=s;try{d=!1!==(yield i.select({method:"selectListObjectValues",params:["/qListObjectDef",f,l]}))}catch(p){d=!1}d||(c?i.cancel():i.clear())}return d}),Ff.apply(this,arguments)}const br="RowColumn",$e={row:"".concat(br,"-row"),rowBorderBottom:"".concat(br,"-rowBorderBottom"),column:"".concat(br,"-column"),fieldRoot:"".concat(br,"-fieldRoot"),cell:"".concat(br,"-cell"),labelText:"".concat(br,"-labelText"),labelDense:"".concat(br,"-labelDense"),highlighted:"".concat(br,"-highlighted"),checkboxLabel:"".concat(br,"-checkboxLabel"),icon:"".concat(br,"-icon"),S:"".concat(br,"-S"),XS:"".concat(br,"-XS"),A:"".concat(br,"-A"),X:"".concat(br,"-X"),frequencyCount:"".concat(br,"-frequencyCount"),barContainer:"".concat(br,"-barContainer"),bar:"".concat(br,"-bar"),barSelected:"".concat(br,"-barSelected"),barWithCheckbox:"".concat(br,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(br,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(br,"-excludedTextWithCheckbox")},Dk=".".concat($e.fieldRoot),_w=t=>!(null!=t&&t.metaKey||null!=t&&t.ctrlKey);const kk=t=>ee(ee({},t),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var Ak=t=>Ao(kk(t));const Ik=t=>t?"X"===t.qState||"XS"===t.qState||"XL"===t.qState:null,Rk=t=>t?"A"===t.qState:null,Mk=t=>{let{cell:i,checkboxes:s}=t;return(Rk(i)||Ik(i))&&s},Jp=t=>t.filter(i=>!!i).join(" ").trim(),XT=t=>t||"-",gN=["backgroundColor"],Lk=t=>{let{sizes:i,frequencyMode:s,isGridMode:l,freqHitsValue:c}=t;return"P"===s?"".concat(i.freqMinWidth,"px"):l&&!c?"max-content":"25%"},JT=t=>{let{sizes:i,frequencyMode:s,isGridMode:l}=t;return l?"max-content":"P"===s?i.freqMinWidth:i.freqMaxWidth},kv=t=>{let{theme:i,styles:s,selectedState:l}=t;const c=s.selections,d=c[l],f=c["".concat(l,"Contrast")];return{background:d,color:f,"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(i.palette.custom.focusBorder),outline:"none"},"& $cell":{paddingRight:0},["& .".concat($e.labelText)]:{color:f},["& .".concat($e.icon)]:{color:f}}},eg={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},tg=De("div",{shouldForwardProp:t=>!["checkboxes","isGridMode","isGridCol","dense","direction","sizes","frequencyMode","freqHitsValue","layout","styles"].includes(t)})(t=>{let{theme:i,checkboxes:s,isGridMode:l,isGridCol:c,dense:d,direction:f,sizes:p,frequencyMode:m,freqHitsValue:y,styles:b}=t;const _=_n(b.content,gN),w=kv({theme:i,styles:b,selectedState:"selected"}),S=kv({theme:i,styles:b,selectedState:"excluded"});return{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(i.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"},"& .value":{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(i.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"}},["& .".concat($e.row)]:ee({flexWrap:"nowrap"},b.content),["& .".concat($e.rowBorderBottom)]:{borderBottom:c?"none":"1px solid ".concat(i.palette.divider),borderLeft:c?"1px solid ".concat(i.palette.divider):"none"},["& .".concat($e.column)]:ee({flexWrap:"nowrap",borderRight:"1px solid ".concat(i.palette.divider)},b.content),["& .".concat($e.cell)]:{zIndex:2,display:"flex",alignItems:"center",flexGrow:1,minWidth:s?"52px":"26px",flexBasis:s?"auto":"max-content",paddingLeft:"".concat(9,"px"),paddingRight:0},["& .".concat($e.labelText)]:ee(ee({lineHeight:"16px",userSelect:"none",paddingRight:"1px"},eg),_),["& .".concat($e.labelDense)]:{fontSize:12},["& .".concat($e.highlighted)]:{backgroundColor:"#FFC72A"},["& .".concat($e.checkboxLabel)]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":ee(ee({},eg),{},{display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"})},["& .".concat($e.icon)]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24,color:_.color},["& .".concat($e.S)]:ee(ee({},w),{},{border:l?"none":void 0}),["& .".concat($e.XS)]:ee(ee({},kv({theme:i,styles:b,selectedState:"selectedExcluded"})),{},{border:l?"none":void 0}),["& .".concat($e.A)]:ee(ee({},kv({theme:i,styles:b,selectedState:"alternative"})),{},{border:l?"none":void 0}),["& .".concat($e.X)]:ee(ee({},S),{},{border:l?"none":void 0}),["& .".concat($e.frequencyCount)]:ee(ee({zIndex:3,justifyContent:"flex-end"},eg),{},{flex:"0 0 ".concat(Lk({sizes:p,frequencyMode:m,isGridMode:l,freqHitsValue:y})),minWidth:!l&&"P"!==m&&y?p.freqMinWidth:"max-content",maxWidth:JT({sizes:p,frequencyMode:m,isGridMode:l}),textAlign:"rtl"===f?"left":"right",paddingLeft:"rtl"!==f?"8px":0}),["&.".concat($e.barContainer)]:{height:"100%",display:"flex",alignItems:"center"},["& .".concat($e.bar)]:{height:d?"16px":"20px",position:"absolute",zIndex:1,alignSelf:"center",left:4,width:"calc(100% - ".concat(8,"px)"),display:"flex",alignItems:"center","& .bar-filled":{border:"".concat(1,"px solid"),borderColor:"#D9D9D9",transition:"width 0.2s",backgroundColor:"#FAFAFA",height:"100%"}},["& .".concat($e.barSelected)]:{"& .bar-filled":{opacity:"30%",background:i.palette.background.lighter}},["& .".concat($e.barWithCheckbox)]:{left:"rtl"===f?4:29,width:"calc(100% - ".concat(33,"px)")},["& .".concat($e.barSelectedWithCheckbox)]:{"& .bar-filled":{opacity:"30%",background:w.background||"#BFE5D0",borderColor:w.background||"#BFE5D0"}},["& .".concat($e.excludedTextWithCheckbox)]:{color:"#828282",fontStyle:"italic"}}});var mN=V.memo(tg);const ng="ListBoxCheckbox",Ns={cbIcon:"".concat(ng,"-cbIcon"),cbIconChecked:"".concat(ng,"-cbIconChecked"),cbIconExcluded:"".concat(ng,"-cbIconExcluded"),cbIconAlternative:"".concat(ng,"-cbIconAlternative"),checkbox:"".concat(ng,"-checkbox"),dense:"".concat(ng,"-dense")},Pk=De(UD,{shouldForwardProp:t=>"styles"!==t})(t=>{let{styles:i}=t;return{["& .".concat(Ns.cbIcon)]:{borderRadius:3,width:16,height:16,boxShadow:"inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)",backgroundColor:"#f5f8fa",backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.8),hsla(0,0%,100%,0))",display:"flex",alignItems:"center",justifyContent:"center"},["& .".concat(Ns.cbIconChecked)]:{borderRadius:3,backgroundColor:i.selections.selected,backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))","&:before":{display:"block",width:16,height:16,backgroundImage:"url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E\")",content:'""'}},["& .".concat(Ns.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:i.selections.excluded},["& .".concat(Ns.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:i.selections.alternative},["&.".concat(Ns.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(Ns.dense)]:{padding:"4px 8px"}}}),yN=function(t){let s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return V.createElement("span",{className:t.cbIcon},s&&V.createElement("span",{className:arguments.length>1&&void 0!==arguments[1]&&!arguments[1]||!s?"":t.cbIconExcluded}))};function vN(t){let{onChange:i,checked:s,label:l,dense:c,excluded:d,styles:f,showGray:p=!0,dataN:m}=t;return V.createElement(Pk,{edge:"start",onChange:i,checked:s,disableRipple:!0,className:[Ns.checkbox,c&&Ns.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":l,"data-n":m},name:l,icon:yN(Ns,p,d),checkedIcon:V.createElement("span",{className:Ns.cbIconChecked}),styles:f})}const Nk={radioButton:"".concat("ListBoxRadioButton","-radioButton")},Fk=De(MT,{shouldForwardProp:t=>!["dense","styles"].includes(t)})(t=>{let{checked:i,styles:s,dense:l}=t;return{["&.".concat(Nk.radioButton)]:{right:"5px",color:i?s.selections.selected:s.content.color,padding:l?"0px 0px 0px 12px":void 0,backgroundColor:"transparent"}}});function bN(t){let{onChange:i,checked:s,label:l,dense:c,dataN:d,styles:f}=t;return V.createElement(Fk,{checked:s,onChange:i,value:l,name:l,className:Nk.radioButton,inputProps:{"data-n":d},disableRipple:!0,size:c?"small":"medium",dense:c,styles:f})}function jk(t){let{label:i,dense:s,showGray:l=!0,checkboxes:c,cell:d,valueTextAlign:f}=t;return V.createElement(En,{component:"span",variant:"body2",className:Jp([$e.labelText,s&&$e.labelDense,l&&Mk({cell:d,checkboxes:c})&&$e.excludedTextWithCheckbox]),align:f,dir:"auto"},V.createElement("span",null,i))}function _N(t){let{label:i,color:s,dense:l,showGray:c,checkboxes:d,cell:f,valueTextAlign:p}=t;return"string"==typeof i?V.createElement(jk,{label:i,color:s,dense:l,showGray:c,checkboxes:d,cell:f,valueTextAlign:p}):i}function eO(t){let{onChange:i,label:s,qElemNumber:l,isSelected:c,dense:d,cell:f,isGridCol:p,showGray:m,isSingleSelect:y,checkboxes:b,valueTextAlign:_,styles:w}=t;const S=V.createElement(vN,{onChange:i,label:s,checked:c,dense:d,excluded:Ik(f),isGridCol:p,showGray:m,dataN:l,styles:w}),E=V.createElement(bN,{onChange:i,label:s,checked:c,dense:d,dataN:l,styles:w});return V.createElement(zp,{control:y?E:S,className:$e.checkboxLabel,label:V.createElement(_N,{label:s,dense:d,showGray:m,checkboxes:b,cell:f,valueTextAlign:_}),key:l})}function wN(t){let{labels:i,dense:s,showGray:l,checkboxes:c}=t;const d=i.map((f,p)=>{let[m,y]=f;return V.createElement("span",{id:p,className:y?$e.highlighted:""},m)});return V.createElement(jk,{label:d,dense:s,showGray:l,checkboxes:c})}function xN(t){let{onChange:i,labels:s,checkboxes:l,dense:c,showGray:d,qElemNumber:f,isSelected:p,cell:m,isGridCol:y,isSingleSelect:b,valueTextAlign:_,styles:w}=t;const S=V.createElement(wN,{labels:s,dense:c,showGray:d,checkboxes:l});return l?V.createElement(eO,{onChange:i,label:S,qElemNumber:f,isSelected:p,dense:c,cell:m,isGridCol:y,showGray:d,isSingleSelect:b,checkboxes:l,valueTextAlign:_,styles:w}):S}var SN=V.memo(function(t){let{onChange:i,label:s,qElemNumber:l,isSelected:c,dense:d,cell:f,isGridCol:p,showGray:m,isSingleSelect:y,checkboxes:b,valueTextAlign:_,styles:w}=t;return b?V.createElement(eO,{onChange:i,label:s,qElemNumber:l,isSelected:c,dense:d,cell:f,isGridCol:p,showGray:m,isSingleSelect:y,checkboxes:b,valueTextAlign:_,styles:w}):V.createElement(jk,{label:s,dense:d,showGray:!0,checkboxes:b,cell:f,valueTextAlign:_})});function EN(t){let{qFrequency:i,histogram:s,checkboxes:l,isSelected:c,frequencyMax:d}=t;if(!i||!s||"-"===XT(i))return;const f=(t=>{let{qFrequency:i,frequencyMax:s}=t;const l=String(i),c="%"===l.substring(l.length-1),d=parseFloat(c?l:i);return"".concat(c?d:d/s*100,"%")})({qFrequency:i,checkboxes:l,frequencyMax:d});return V.createElement(Bp,{className:Jp([$e.bar,l&&$e.barWithCheckbox,c&&(l?$e.barSelectedWithCheckbox:$e.barSelected)])},V.createElement(Bp,{className:"bar-filled",width:f}))}function CN(t){let{cell:i,checkboxes:s,dense:l,showGray:c}=t;const d=XT(null==i?void 0:i.qFrequency);return V.createElement(Te,{item:!0,style:{display:"flex",alignItems:"center"},className:$e.frequencyCount,"aria-label":d,title:d},V.createElement(En,{noWrap:!0,color:"inherit",variant:"body2",className:Jp([l&&$e.labelDense,$e.labelText,c&&Mk({cell:i,checkboxes:s})&&$e.excludedTextWithCheckbox])},d))}function DN(t){let{dataLayout:i,layoutOrder:s,itemPadding:l,fillHeight:c}=t;if("singleColumn"===i)return{height:"100%",width:"100%"};switch(s){case"row":case"column":return{height:c?"100%":"calc(100% - ".concat(l,"px)"),width:"calc(100% - ".concat(2*l,"px)"),position:"absolute",left:4};default:return{}}}const tO=De(Te,{shouldForwardProp:t=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction","fillHeight"].includes(t)})(t=>{let{dataLayout:i,layoutOrder:s,itemPadding:l,cellPaddingRight:c,direction:d,fillHeight:f}=t;const p="padding".concat("rtl"===d?"Left":"Right");return{["&.".concat($e.fieldRoot)]:ee(ee({},DN({dataLayout:i,layoutOrder:s,itemPadding:l,fillHeight:f})),{},{[p]:c?"8px":void 0})}}),kN={S:"Object.Listbox.Selected",A:"Object.Listbox.Alternative",O:"Object.Listbox.Optional",XS:"Object.Listbox.SelectedExcluded",L:"Object.Listbox.Locked",X:"Object.Listbox.Excluded",XL:"Object.Listbox.ExcludedLock"};function nO(t){var i;let{layout:s}=t;const{translator:l}=P.useContext(ai),{qStateCounts:c={}}=(null==s||null===(i=s.qListObject)||void 0===i?void 0:i.qDimensionInfo)||{},d=c.qSelected+c.qSelectedExcluded+c.qLocked+c.qLockedExcluded;let f;switch(d){case 0:f="ScreenReader.ZeroSelected";break;case 1:f="ScreenReader.OneSelected";break;default:f="ScreenReader.ManySelected"}const p=l.get(f,[d]);return V.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},p)}const Et=Object.freeze({ENTER:13,ESCAPE:27,SPACE:32,TAB:9,BACKSPACE:8,DELETE:46,ALT:18,CTRL:17,SHIFT:16,ARROW_UP:38,ARROW_DOWN:40,ARROW_LEFT:37,ARROW_RIGHT:39,PAGE_DOWN:34,PAGE_UP:33,HOME:36,END:35,F10:121,A:65,F:70,ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,SUBTRACTION:189,DECIMAL:190,NUMPAD_DECIMAL:110,isArrow:t=>t===Et.ARROW_UP||t===Et.ARROW_DOWN||t===Et.ARROW_LEFT||t===Et.ARROW_RIGHT}),Av=t=>+t.getAttribute("data-n"),Bk=t=>{const i=null==t?void 0:t.querySelector(".search input");return null==i||i.focus(),i},rO=t=>{const i=null==t?void 0:t.querySelector(".value.last-focused, .value.selector, .value");return null==i||i.setAttribute("tabIndex",0),null==i||i.focus(),i},AN=t=>{let{rowIndex:i,columnIndex:s,rowCount:l,columnCount:c,layoutOrder:d,keyCode:f,numCells:p}=t;const m=w=>{let S;return"row"===d?(S=p%c,w<S?l:l-1):(S=p%l,w<c-1?l:S)};let y=i,b=s;if(f===Et.ARROW_DOWN)if(i>=m(s)-1){if(s===c-1)return-1;y=0,b=s+1}else y=i+1;else if(0===i){if(0===s)return-1;y=m(s-1)-1,b=s-1}else y=i-1;if("row"===d)return y*c+b;const _=p%l;return 0===_||y<_?y*c+b:(y-_)*(c-1)+b+_*c};function iO(t){var i,s;let{index:l,rowIndex:c,columnIndex:d,style:f,data:p}=t;const{onChange:m,onClick:y,onMouseDown:b,onMouseUp:_,onMouseEnter:w,onTouchStart:S,onTouchEnd:E,pages:C,isLocked:I,column:D=!1,checkboxes:k=!1,textAlign:A,direction:M,layoutOptions:T={},freqIsAllowed:O,isSingleSelect:N,actions:B,frequencyMax:j="",histogram:G=!1,keyboard:Q,showGray:H=!0,showTick:z=!0,columnCount:K=1,rowCount:Y=1,dataOffset:X,deducedFrequencyMode:re,focusListItems:q,listCount:$,sizes:W,translator:te,showSearch:J,isModal:ae,contentFontStyle:ue,styles:_e,fillHeight:ve}=p,{dense:Ee=!1,dataLayout:fe="singleColumn",layoutOrder:we}=T,{itemPadding:pe}=W;let ye,Ne;const Oe={max:null,currentIndex:null};if("number"==typeof c&&"number"==typeof d){"row"===we?(ye=c*K+d,Oe.max=Y,Oe.currentIndex=c):(ye=d*Y+c,Oe.max=K,Oe.currentIndex=d);const Qt=0;Ne=ee(ee({},f),{},{height:ve?"100%":f.height,left:Qt+(0===d?f.left:Number(f.left)+d*Qt),top:0===c?f.top:Number(f.top)+c*Qt})}else ye=l,Oe.max=$,Oe.currentIndex=l,Ne=ee({},f);ye+=X;const[qe,Ve]=P.useState(null);P.useEffect(()=>{null!==qe&&(0===Oe.currentIndex&&q.first&&(qe.focus(),q.setFirst(!1)),Oe.currentIndex===Oe.max-1&&q.last&&(qe.focus(),q.setLast(!1)))},[qe,q.first,q.last]);const lt=P.useCallback(function(Qt){let{select:$t,selectAll:un,onCtrlF:$n,confirm:Gn,cancel:Dn,setScrollPosition:Fe,focusListItems:Ge,keyboard:Pt,isModal:At,rowCount:Yt,columnCount:st,rowIndex:ut,columnIndex:Bt,layoutOrder:sn}=Qt;const Tn=function(Ft,It){if(Ft===Et.ARROW_LEFT||Ft===Et.ARROW_RIGHT||"number"!=typeof ut||"number"!=typeof Bt){const Fr=null==It?void 0:It.parentElement[arguments.length>2&&void 0!==arguments[2]&&arguments[2]?"nextElementSibling":"previousElementSibling"];return null==Fr?void 0:Fr.querySelector("[role]")}const ti=null==It?void 0:It.parentElement.parentElement,Yn=null==ti?void 0:ti.childElementCount;if(Yn){const Fr=AN({rowIndex:ut,columnIndex:Bt,rowCount:Yt,columnCount:st,layoutOrder:sn,keyCode:Ft,numCells:Yn}),no=null==It?void 0:It.parentElement.parentElement.children[Fr];return null==no?void 0:no.querySelector("[role]")}};let Nt=!1;const Ct=Ft=>{Nt=Ft};return Ft=>{let It;const{currentTarget:On,nativeEvent:ti}=Ft,{keyCode:Yn,shiftKey:Fr=!1,ctrlKey:no=!1,metaKey:Bi=!1}=ti;switch(Yn){case Et.TAB:{const cc=On.closest(".listbox-container"),ro=At();if(On.classList.add("last-focused"),Fr){Bk(cc)||(ro?Pt.focusSelection():Pt.blur(!0));break}ro?Pt.focusSelection():(On.blur(),Pt.blur());break}case Et.SHIFT:Ct(!0);break;case Et.SPACE:$t([Av(On)],!1,Ft);break;case Et.ARROW_DOWN:case Et.ARROW_RIGHT:It=Tn(Yn,On,!0),Fr&&It&&(Nt&&($t([Av(On)],!0),Ct(!1)),$t([Av(It)],!0));break;case Et.ARROW_UP:case Et.ARROW_LEFT:It=Tn(Yn,On,!1),Fr&&It&&(Nt&&($t([Av(On)],!0),Ct(!1)),$t([Av(It)],!0));break;case Et.ENTER:Gn();break;case Et.ESCAPE:if(!At())return;Dn();break;case Et.HOME:if(Ge.setFirst(!0),no){null==Fe||Fe("overflowStart");break}null==Fe||Fe("start");break;case Et.END:if(Ge.setLast(!0),no){null==Fe||Fe("overflowEnd");break}null==Fe||Fe("end");break;case Et.A:if(no||Bi){un();break}return;case Et.F:if(no||Bi){$n();break}return;default:return}It&&It.focus(),Ft.preventDefault(),Ft.stopPropagation()}}(ee(ee({},B),{},{focusListItems:q,keyboard:Q,isModal:ae,rowCount:Y,columnCount:K,rowIndex:c,columnIndex:d,layoutOrder:we})),[B,null==Q?void 0:Q.innerTabStops,Y,K,c,d,we]),xe=P.useMemo(()=>function(Qt){let $t,{pages:un,cellIndex:$n}=Qt;const Gn=un.filter(Dn=>Dn.qArea.qTop<=$n&&$n<Dn.qArea.qTop+Dn.qArea.qHeight)[0];if(Gn){const Dn=Gn.qArea;$n>=Dn.qTop&&$n<Dn.qTop+Dn.qHeight&&([$t]=Gn.qMatrix[$n-Dn.qTop])}return $t}({pages:C,cellIndex:ye}),[C,ye]),Ke="S"===(null==xe?void 0:xe.qState)||"XS"===(null==xe?void 0:xe.qState)||"L"===(null==xe?void 0:xe.qState)||"XL"===(null==xe?void 0:xe.qState),Xe=P.useMemo(()=>(t=>{let{column:i,histogram:s,checkboxes:l,cell:c,showGray:d}=t;const f=[i?$e.column:$e.row];return s||f.push($e.rowBorderBottom),c?(l||("XS"===c.qState?f.push(d?$e.XS:$e.S):"S"===c.qState||"L"===c.qState?f.push($e.S):d&&Rk(c)?f.push($e.A):d&&Ik(c)&&f.push($e.X)),f):[]})({column:D,histogram:G,checkboxes:k,cell:xe,showGray:H}),[null==xe?void 0:xe.qState,G,Ee,k]),Tt=P.useCallback(Qt=>{Qt.preventDefault()},[k]),Je=P.useMemo(()=>xe&&function(Qt){let{direction:$t,cell:un,textAlign:$n}=Qt;const Gn=!["NaN",void 0].includes(null==un?void 0:un.qNum);let Dn;return Dn=!$n||$n.auto?Gn?"rtl"===$t?"left":"right":{rtl:"right",ltr:"left"}[$t]:(null==$n?void 0:$n.align)||"left",["left","center","right"].includes(Dn)?Dn:"left"}({direction:M,cell:xe,textAlign:A}),[M,xe,A]);if(!xe)return null;const nt="grid"===fe&&"column"===we,ot=null!==(i=null==xe?void 0:xe.qText)&&void 0!==i?i:"";let xt;if(null!==(s=xe.qHighlightRanges)&&void 0!==s&&null!==(s=s.qRanges)&&void 0!==s&&s.length){const Qt=xe.qHighlightRanges.qRanges.sort(($t,un)=>$t.qCharPos-un.qCharPos)||[];$t=ot,xt=(un=Qt).length?un.reduce((Gn,Dn,Fe)=>{Gn.push(...function(Yt,st){let ut=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const{qCharPos:Bt,qCharCount:sn}=st,Tn=[];return Bt>ut&&Tn.push([Yt.slice(ut,Bt),!1]),Tn.push([Yt.slice(Bt,Bt+sn),!0]),Tn}($t,Dn,0===Fe?0:un[Fe-1].qCharPos+un[Fe-1].qCharCount));const At=un[Fe].qCharPos+un[Fe].qCharCount;return Fe===un.length-1&&At<$t.length&&Gn.push([$t.slice(At),!1]),Gn},[]):[]}var $t,un;const Wt={alignItems:"center",display:"flex",fontSize:"8px"},Kt="rtl"===M,lr={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:Kt?8:k?0:void 0,paddingRight:k?0:Kt?8:0,justifyContent:Je,textAlign:Je},Be=0===l,qt=Ke&&I,gn=!k&&Ke&&!I,mn=!k&&z,Nr=k||!z,Kr=function(Qt){let{translator:$t,label:un,qState:$n,isSelected:Gn,currentIndex:Dn,maxIndex:Fe,showSearch:Ge}=Qt;const At=$t.get(kN[$n]),Yt=[];if(Gn){const sn=$t.get(Ge?"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu":"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu");Yt.push(sn)}const st="".concat(un," ").concat(At),ut=$t.get("CurrentSelections.Of",[Dn+1,Fe+1]);return Yt.unshift(st,ut),Yt.join(". ").trim()}({translator:te,label:ot,qState:xe.qState,currentIndex:Oe.currentIndex,maxIndex:Oe.max,showSearch:J});return V.createElement(mN,{className:$e.barContainer,checkboxes:k,style:Ne,styles:_e,isGridCol:nt,isGridMode:"grid"===fe,dense:Ee,direction:M,sizes:W,frequencyMode:re,freqHitsValue:!Kt&&"right"===Je||Kt&&"left"===Je,contentFontStyle:ue,"data-testid":"listbox.item"},V.createElement(tO,{role:"row","aria-label":Kr,"aria-selected":Ke,"aria-setsize":Oe.max,"aria-rowindex":Oe.currentIndex,ref:Ve,container:!0,dataLayout:fe,cellPaddingRight:Nr,layoutOrder:we,itemPadding:pe,gap:0,className:Jp(["value",...Xe]),classes:{root:$e.fieldRoot},onClick:y,onMouseDown:b,onMouseUp:_,onMouseEnter:w,onKeyDown:lt,onTouchStart:S,onTouchEnd:E,onContextMenu:Tt,tabIndex:Be&&Q.innerTabStops?0:-1,"data-n":null==xe?void 0:xe.qElemNumber,direction:M,fillHeight:ve},(null==xe?void 0:xe.qFrequency)&&V.createElement(EN,{qFrequency:null==xe?void 0:xe.qFrequency,histogram:G,checkboxes:k,isSelected:Ke,frequencyMax:j}),V.createElement(Te,{item:!0,style:lr,className:Jp([$e.cell,$e.selectedCell]),title:"".concat(ot)},xt?V.createElement(xN,{onChange:m,labels:xt,checkboxes:k,dense:Ee,showGray:H,qElemNumber:xe.qElemNumber,isSelected:Ke,cell:xe,isGridCol:nt,isSingleSelect:N,valueTextAlign:Je,styles:_e}):V.createElement(SN,{onChange:m,label:ot,qElemNumber:xe.qElemNumber,isSelected:Ke,dense:Ee,cell:xe,isGridCol:nt,showGray:H,isSingleSelect:N,checkboxes:k,valueTextAlign:Je,styles:_e})),O&&V.createElement(CN,{cell:xe,checkboxes:k,dense:Ee,showGray:H}),mn&&V.createElement(Te,{item:!0,className:$e.icon},qt&&V.createElement(da,{style:Wt,size:"small"}),gn&&V.createElement(Ak,{style:Wt,size:"small"}))))}var oO=Number.isNaN||function(t){return"number"==typeof t&&t!=t};function IN(t,i){if(t.length!==i.length)return!1;for(var s=0;s<t.length;s++)if(!((l=t[s])===(c=i[s])||oO(l)&&oO(c)))return!1;var l,c;return!0}function rg(t,i){var s;void 0===i&&(i=IN);var l,c=[],d=!1;return function(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];return d&&s===this&&i(f,c)||(l=t.apply(this,f),d=!0,s=this,c=f),l}}var sO="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function Ew(t){cancelAnimationFrame(t.id)}function aO(t,i){var s=sO(),l={id:requestAnimationFrame(function c(){sO()-s>=i?t.call(null):l.id=requestAnimationFrame(c)})};return l}var ig=-1;function og(t){if(void 0===t&&(t=!1),-1===ig||t){var i=document.createElement("div"),s=i.style;s.width="50px",s.height="50px",s.overflow="scroll",document.body.appendChild(i),ig=i.offsetWidth-i.clientWidth,document.body.removeChild(i)}return ig}var sg=null;function Iv(t){if(void 0===t&&(t=!1),null===sg||t){var i=document.createElement("div"),s=i.style;s.width="50px",s.height="50px",s.overflow="scroll",s.direction="rtl";var l=document.createElement("div"),c=l.style;return c.width="100px",c.height="100px",i.appendChild(l),document.body.appendChild(i),i.scrollLeft>0?sg="positive-descending":(i.scrollLeft=1,sg=0===i.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(i),sg}return sg}var RN=function(t){return t.rowIndex+":"+t.columnIndex};var lO=function(t,i){},Cw=function(t,i){return t};var MN=function(t,i){},Fs=function zk(t){var i,s=t.getColumnOffset,l=t.getColumnStartIndexForOffset,c=t.getColumnStopIndexForStartIndex,d=t.getColumnWidth,f=t.getEstimatedTotalHeight,p=t.getEstimatedTotalWidth,m=t.getOffsetForColumnAndAlignment,y=t.getOffsetForRowAndAlignment,b=t.getRowHeight,_=t.getRowOffset,w=t.getRowStartIndexForOffset,S=t.getRowStopIndexForStartIndex,E=t.initInstanceProps,C=t.shouldResetStyleCacheOnItemSizeChange,I=t.validateProps;return(i=function(D){function k(M){var T;return(T=D.call(this,M)||this)._instanceProps=E(T.props,xp(T)),T._resetIsScrollingTimeoutId=null,T._outerRef=void 0,T.state={instance:xp(T),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof T.props.initialScrollLeft?T.props.initialScrollLeft:0,scrollTop:"number"==typeof T.props.initialScrollTop?T.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},T._callOnItemsRendered=void 0,T._callOnItemsRendered=rg(function(O,N,B,j,G,Q,H,z){return T.props.onItemsRendered({overscanColumnStartIndex:O,overscanColumnStopIndex:N,overscanRowStartIndex:B,overscanRowStopIndex:j,visibleColumnStartIndex:G,visibleColumnStopIndex:Q,visibleRowStartIndex:H,visibleRowStopIndex:z})}),T._callOnScroll=void 0,T._callOnScroll=rg(function(O,N,B,j,G){return T.props.onScroll({horizontalScrollDirection:B,scrollLeft:O,scrollTop:N,verticalScrollDirection:j,scrollUpdateWasRequested:G})}),T._getItemStyle=void 0,T._getItemStyle=function(O,N){var B,j=T.props,Q=j.direction,z=T._getItemStyleCache(C&&j.columnWidth,C&&Q,C&&j.rowHeight),K=O+":"+N;if(z.hasOwnProperty(K))B=z[K];else{var Y=s(T.props,N,T._instanceProps),X="rtl"===Q;z[K]=B={position:"absolute",left:X?void 0:Y,right:X?Y:void 0,top:_(T.props,O,T._instanceProps),height:b(T.props,O,T._instanceProps),width:d(T.props,N,T._instanceProps)}}return B},T._getItemStyleCache=void 0,T._getItemStyleCache=rg(function(O,N,B){return{}}),T._onScroll=function(O){var N=O.currentTarget,B=N.clientHeight,j=N.clientWidth,G=N.scrollLeft,Q=N.scrollTop,H=N.scrollHeight,z=N.scrollWidth;T.setState(function(K){if(K.scrollLeft===G&&K.scrollTop===Q)return null;var X=G;if("rtl"===T.props.direction)switch(Iv()){case"negative":X=-G;break;case"positive-descending":X=z-j-G}X=Math.max(0,Math.min(X,z-j));var re=Math.max(0,Math.min(Q,H-B));return{isScrolling:!0,horizontalScrollDirection:K.scrollLeft<G?"forward":"backward",scrollLeft:X,scrollTop:re,verticalScrollDirection:K.scrollTop<Q?"forward":"backward",scrollUpdateWasRequested:!1}},T._resetIsScrollingDebounced)},T._outerRefSetter=function(O){var N=T.props.outerRef;T._outerRef=O,"function"==typeof N?N(O):null!=N&&"object"==typeof N&&N.hasOwnProperty("current")&&(N.current=O)},T._resetIsScrollingDebounced=function(){null!==T._resetIsScrollingTimeoutId&&Ew(T._resetIsScrollingTimeoutId),T._resetIsScrollingTimeoutId=aO(T._resetIsScrolling,150)},T._resetIsScrolling=function(){T._resetIsScrollingTimeoutId=null,T.setState({isScrolling:!1},function(){T._getItemStyleCache(-1)})},T}Uy(k,D),k.getDerivedStateFromProps=function(M,T){return lO(M,T),I(M),null};var A=k.prototype;return A.scrollTo=function(M){var T=M.scrollLeft,O=M.scrollTop;void 0!==T&&(T=Math.max(0,T)),void 0!==O&&(O=Math.max(0,O)),this.setState(function(N){return void 0===T&&(T=N.scrollLeft),void 0===O&&(O=N.scrollTop),N.scrollLeft===T&&N.scrollTop===O?null:{horizontalScrollDirection:N.scrollLeft<T?"forward":"backward",scrollLeft:T,scrollTop:O,scrollUpdateWasRequested:!0,verticalScrollDirection:N.scrollTop<O?"forward":"backward"}},this._resetIsScrollingDebounced)},A.scrollToItem=function(M){var T=M.align,O=void 0===T?"auto":T,N=M.columnIndex,B=M.rowIndex,j=this.props,G=j.columnCount,Q=j.height,H=j.rowCount,z=j.width,K=this.state,Y=K.scrollLeft,X=K.scrollTop,re=og();void 0!==N&&(N=Math.max(0,Math.min(N,G-1))),void 0!==B&&(B=Math.max(0,Math.min(B,H-1)));var q=f(this.props,this._instanceProps),$=p(this.props,this._instanceProps)>z?re:0;this.scrollTo({scrollLeft:void 0!==N?m(this.props,N,O,Y,this._instanceProps,q>Q?re:0):Y,scrollTop:void 0!==B?y(this.props,B,O,X,this._instanceProps,$):X})},A.componentDidMount=function(){var M=this.props,T=M.initialScrollLeft,O=M.initialScrollTop;if(null!=this._outerRef){var N=this._outerRef;"number"==typeof T&&(N.scrollLeft=T),"number"==typeof O&&(N.scrollTop=O)}this._callPropsCallbacks()},A.componentDidUpdate=function(){var T=this.state,O=T.scrollLeft,N=T.scrollTop;if(T.scrollUpdateWasRequested&&null!=this._outerRef){var B=this._outerRef;if("rtl"===this.props.direction)switch(Iv()){case"negative":B.scrollLeft=-O;break;case"positive-ascending":B.scrollLeft=O;break;default:B.scrollLeft=B.scrollWidth-B.clientWidth-O}else B.scrollLeft=Math.max(0,O);B.scrollTop=Math.max(0,N)}this._callPropsCallbacks()},A.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Ew(this._resetIsScrollingTimeoutId)},A.render=function(){var M=this.props,T=M.children,O=M.className,N=M.columnCount,B=M.direction,j=M.height,G=M.innerRef,Q=M.innerElementType,H=M.innerTagName,z=M.itemData,K=M.itemKey,Y=void 0===K?RN:K,X=M.outerElementType,re=M.outerTagName,q=M.rowCount,$=M.style,W=M.useIsScrolling,te=M.width,J=this.state.isScrolling,ae=this._getHorizontalRangeToRender(),ue=ae[0],_e=ae[1],ve=this._getVerticalRangeToRender(),fe=ve[1],we=[];if(N>0&&q)for(var pe=ve[0];pe<=fe;pe++)for(var ye=ue;ye<=_e;ye++)we.push(P.createElement(T,{columnIndex:ye,data:z,isScrolling:W?J:void 0,key:Y({columnIndex:ye,data:z,rowIndex:pe}),rowIndex:pe,style:this._getItemStyle(pe,ye)}));var Ne=f(this.props,this._instanceProps),Oe=p(this.props,this._instanceProps);return P.createElement(X||re||"div",{className:O,onScroll:this._onScroll,ref:this._outerRefSetter,style:yf({position:"relative",height:j,width:te,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:B},$)},P.createElement(Q||H||"div",{children:we,ref:G,style:{height:Ne,pointerEvents:J?"none":void 0,width:Oe}}))},A._callPropsCallbacks=function(){var M=this.props,N=M.onScroll;if("function"==typeof M.onItemsRendered&&M.columnCount>0&&M.rowCount>0){var j=this._getHorizontalRangeToRender(),G=j[0],Q=j[1],H=j[2],z=j[3],K=this._getVerticalRangeToRender();this._callOnItemsRendered(G,Q,K[0],K[1],H,z,K[2],K[3])}if("function"==typeof N){var $=this.state;this._callOnScroll($.scrollLeft,$.scrollTop,$.horizontalScrollDirection,$.verticalScrollDirection,$.scrollUpdateWasRequested)}},A._getHorizontalRangeToRender=function(){var M=this.props,T=M.columnCount,G=this.state,Q=G.horizontalScrollDirection,H=G.isScrolling,z=G.scrollLeft,K=M.overscanColumnCount||M.overscanColumnsCount||M.overscanCount||1;if(0===T||0===M.rowCount)return[0,0,0,0];var Y=l(this.props,z,this._instanceProps),X=c(this.props,Y,z,this._instanceProps),re=H&&"backward"!==Q?1:Math.max(1,K),q=H&&"forward"!==Q?1:Math.max(1,K);return[Math.max(0,Y-re),Math.max(0,Math.min(T-1,X+q)),Y,X]},A._getVerticalRangeToRender=function(){var M=this.props,j=M.rowCount,G=this.state,Q=G.isScrolling,H=G.verticalScrollDirection,z=G.scrollTop,K=M.overscanRowCount||M.overscanRowsCount||M.overscanCount||1;if(0===M.columnCount||0===j)return[0,0,0,0];var Y=w(this.props,z,this._instanceProps),X=S(this.props,Y,z,this._instanceProps),re=Q&&"backward"!==H?1:Math.max(1,K),q=Q&&"forward"!==H?1:Math.max(1,K);return[Math.max(0,Y-re),Math.max(0,Math.min(j-1,X+q)),Y,X]},k}(P.PureComponent)).defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},i}({getColumnOffset:function(t,i){return i*t.columnWidth},getColumnWidth:function(t,i){return t.columnWidth},getRowOffset:function(t,i){return i*t.rowHeight},getRowHeight:function(t,i){return t.rowHeight},getEstimatedTotalHeight:function(t){return t.rowHeight*t.rowCount},getEstimatedTotalWidth:function(t){return t.columnWidth*t.columnCount},getOffsetForColumnAndAlignment:function(t,i,s,l,c,d){var p=t.columnWidth,m=t.width,y=Math.max(0,t.columnCount*p-m),b=Math.min(y,i*p),_=Math.max(0,i*p-m+d+p);switch("smart"===s&&(s=l>=_-m&&l<=b+m?"auto":"center"),s){case"start":return b;case"end":return _;case"center":var w=Math.round(_+(b-_)/2);return w<Math.ceil(m/2)?0:w>y+Math.floor(m/2)?y:w;default:return l>=_&&l<=b?l:_>b||l<_?_:b}},getOffsetForRowAndAlignment:function(t,i,s,l,c,d){var f=t.rowHeight,p=t.height,y=Math.max(0,t.rowCount*f-p),b=Math.min(y,i*f),_=Math.max(0,i*f-p+d+f);switch("smart"===s&&(s=l>=_-p&&l<=b+p?"auto":"center"),s){case"start":return b;case"end":return _;case"center":var w=Math.round(_+(b-_)/2);return w<Math.ceil(p/2)?0:w>y+Math.floor(p/2)?y:w;default:return l>=_&&l<=b?l:_>b||l<_?_:b}},getColumnStartIndexForOffset:function(t,i){return Math.max(0,Math.min(t.columnCount-1,Math.floor(i/t.columnWidth)))},getColumnStopIndexForStartIndex:function(t,i,s){var l=t.columnWidth,c=t.columnCount,p=Math.ceil((t.width+s-i*l)/l);return Math.max(0,Math.min(c-1,i+p-1))},getRowStartIndexForOffset:function(t,i){return Math.max(0,Math.min(t.rowCount-1,Math.floor(i/t.rowHeight)))},getRowStopIndexForStartIndex:function(t,i,s){var l=t.rowHeight,c=t.rowCount,p=Math.ceil((t.height+s-i*l)/l);return Math.max(0,Math.min(c-1,i+p-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){}}),uO=function cO(t){var i,s=t.getItemOffset,l=t.getEstimatedTotalSize,c=t.getItemSize,d=t.getOffsetForIndexAndAlignment,f=t.getStartIndexForOffset,p=t.getStopIndexForStartIndex,m=t.initInstanceProps,y=t.shouldResetStyleCacheOnItemSizeChange,b=t.validateProps;return(i=function(_){function w(E){var C;return(C=_.call(this,E)||this)._instanceProps=m(C.props,xp(C)),C._outerRef=void 0,C._resetIsScrollingTimeoutId=null,C.state={instance:xp(C),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof C.props.initialScrollOffset?C.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},C._callOnItemsRendered=void 0,C._callOnItemsRendered=rg(function(I,D,k,A){return C.props.onItemsRendered({overscanStartIndex:I,overscanStopIndex:D,visibleStartIndex:k,visibleStopIndex:A})}),C._callOnScroll=void 0,C._callOnScroll=rg(function(I,D,k){return C.props.onScroll({scrollDirection:I,scrollOffset:D,scrollUpdateWasRequested:k})}),C._getItemStyle=void 0,C._getItemStyle=function(I){var D,k=C.props,A=k.direction,T=k.layout,O=C._getItemStyleCache(y&&k.itemSize,y&&T,y&&A);if(O.hasOwnProperty(I))D=O[I];else{var N=s(C.props,I,C._instanceProps),B=c(C.props,I,C._instanceProps),j="horizontal"===A||"horizontal"===T,G="rtl"===A,Q=j?N:0;O[I]=D={position:"absolute",left:G?void 0:Q,right:G?Q:void 0,top:j?0:N,height:j?"100%":B,width:j?B:"100%"}}return D},C._getItemStyleCache=void 0,C._getItemStyleCache=rg(function(I,D,k){return{}}),C._onScrollHorizontal=function(I){var D=I.currentTarget,k=D.clientWidth,A=D.scrollLeft,M=D.scrollWidth;C.setState(function(T){if(T.scrollOffset===A)return null;var N=A;if("rtl"===C.props.direction)switch(Iv()){case"negative":N=-A;break;case"positive-descending":N=M-k-A}return N=Math.max(0,Math.min(N,M-k)),{isScrolling:!0,scrollDirection:T.scrollOffset<N?"forward":"backward",scrollOffset:N,scrollUpdateWasRequested:!1}},C._resetIsScrollingDebounced)},C._onScrollVertical=function(I){var D=I.currentTarget,k=D.clientHeight,A=D.scrollHeight,M=D.scrollTop;C.setState(function(T){if(T.scrollOffset===M)return null;var O=Math.max(0,Math.min(M,A-k));return{isScrolling:!0,scrollDirection:T.scrollOffset<O?"forward":"backward",scrollOffset:O,scrollUpdateWasRequested:!1}},C._resetIsScrollingDebounced)},C._outerRefSetter=function(I){var D=C.props.outerRef;C._outerRef=I,"function"==typeof D?D(I):null!=D&&"object"==typeof D&&D.hasOwnProperty("current")&&(D.current=I)},C._resetIsScrollingDebounced=function(){null!==C._resetIsScrollingTimeoutId&&Ew(C._resetIsScrollingTimeoutId),C._resetIsScrollingTimeoutId=aO(C._resetIsScrolling,150)},C._resetIsScrolling=function(){C._resetIsScrollingTimeoutId=null,C.setState({isScrolling:!1},function(){C._getItemStyleCache(-1,null)})},C}Uy(w,_),w.getDerivedStateFromProps=function(E,C){return MN(E,C),b(E),null};var S=w.prototype;return S.scrollTo=function(E){E=Math.max(0,E),this.setState(function(C){return C.scrollOffset===E?null:{scrollDirection:C.scrollOffset<E?"forward":"backward",scrollOffset:E,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},S.scrollToItem=function(E,C){void 0===C&&(C="auto");var I=this.props,k=I.layout,A=this.state.scrollOffset;E=Math.max(0,Math.min(E,I.itemCount-1));var M=0;if(this._outerRef){var T=this._outerRef;M="vertical"===k?T.scrollWidth>T.clientWidth?og():0:T.scrollHeight>T.clientHeight?og():0}this.scrollTo(d(this.props,E,C,A,this._instanceProps,M))},S.componentDidMount=function(){var E=this.props,I=E.initialScrollOffset;if("number"==typeof I&&null!=this._outerRef){var k=this._outerRef;"horizontal"===E.direction||"horizontal"===E.layout?k.scrollLeft=I:k.scrollTop=I}this._callPropsCallbacks()},S.componentDidUpdate=function(){var E=this.props,C=E.direction,D=this.state,k=D.scrollOffset;if(D.scrollUpdateWasRequested&&null!=this._outerRef){var A=this._outerRef;if("horizontal"===C||"horizontal"===E.layout)if("rtl"===C)switch(Iv()){case"negative":A.scrollLeft=-k;break;case"positive-ascending":A.scrollLeft=k;break;default:A.scrollLeft=A.scrollWidth-A.clientWidth-k}else A.scrollLeft=k;else A.scrollTop=k}this._callPropsCallbacks()},S.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Ew(this._resetIsScrollingTimeoutId)},S.render=function(){var E=this.props,C=E.children,I=E.className,D=E.direction,k=E.height,A=E.innerRef,M=E.innerElementType,T=E.innerTagName,O=E.itemCount,N=E.itemData,B=E.itemKey,j=void 0===B?Cw:B,Q=E.outerElementType,H=E.outerTagName,z=E.style,K=E.useIsScrolling,Y=E.width,X=this.state.isScrolling,re="horizontal"===D||"horizontal"===E.layout,q=re?this._onScrollHorizontal:this._onScrollVertical,$=this._getRangeToRender(),te=$[1],J=[];if(O>0)for(var ae=$[0];ae<=te;ae++)J.push(P.createElement(C,{data:N,key:j(ae,N),index:ae,isScrolling:K?X:void 0,style:this._getItemStyle(ae)}));var ue=l(this.props,this._instanceProps);return P.createElement(Q||H||"div",{className:I,onScroll:q,ref:this._outerRefSetter,style:yf({position:"relative",height:k,width:Y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:D},z)},P.createElement(M||T||"div",{children:J,ref:A,style:{height:re?"100%":ue,pointerEvents:X?"none":void 0,width:re?ue:"100%"}}))},S._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var E=this._getRangeToRender();this._callOnItemsRendered(E[0],E[1],E[2],E[3])}if("function"==typeof this.props.onScroll){var A=this.state;this._callOnScroll(A.scrollDirection,A.scrollOffset,A.scrollUpdateWasRequested)}},S._getRangeToRender=function(){var E=this.props,C=E.itemCount,I=E.overscanCount,D=this.state,k=D.isScrolling,A=D.scrollDirection,M=D.scrollOffset;if(0===C)return[0,0,0,0];var T=f(this.props,M,this._instanceProps),O=p(this.props,T,M,this._instanceProps),N=k&&"backward"!==A?1:Math.max(1,I),B=k&&"forward"!==A?1:Math.max(1,I);return[Math.max(0,T-N),Math.max(0,Math.min(C-1,O+B)),T,O]},w}(P.PureComponent)).defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},i}({getItemOffset:function(t,i){return i*t.itemSize},getItemSize:function(t,i){return t.itemSize},getEstimatedTotalSize:function(t){return t.itemSize*t.itemCount},getOffsetForIndexAndAlignment:function(t,i,s,l,c,d){var y=t.itemSize,w="horizontal"===t.direction||"horizontal"===t.layout?t.width:t.height,S=Math.max(0,t.itemCount*y-w),E=Math.min(S,i*y),C=Math.max(0,i*y-w+y+d);switch("smart"===s&&(s=l>=C-w&&l<=E+w?"auto":"center"),s){case"start":return E;case"end":return C;case"center":var I=Math.round(C+(E-C)/2);return I<Math.ceil(w/2)?0:I>S+Math.floor(w/2)?S:I;default:return l>=C&&l<=E?l:l<C?C:E}},getStartIndexForOffset:function(t,i){return Math.max(0,Math.min(t.itemCount-1,Math.floor(i/t.itemSize)))},getStopIndexForStartIndex:function(t,i,s){var d=t.itemCount,f=t.itemSize,_=Math.ceil((("horizontal"===t.direction||"horizontal"===t.layout?t.width:t.height)+s-i*f)/f);return Math.max(0,Math.min(d-1,i+_-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){}});const Vk="#f1f1f1",Dw={styledScrollbars:"".concat("ListBox","-styledScrollbars")};function Hk(t){let{renderProps:i,layoutOptions:s,maxCount:l,columnCount:c,rowCount:d,overflowDisclaimer:f,qCardinal:p,dataOffset:m}=t;const y="column"===(null==s?void 0:s.layoutOrder)&&"singleColumn"!==s.dataLayout,b=((t,i)=>void 0!==(null==t?void 0:t.visibleRowStopIndex)||void 0!==t.visibleColumnStopIndex?i?t.visibleColumnStopIndex:t.visibleRowStopIndex:t.visibleStopIndex)(i,y),_=y?l.column:l.row,w=(y?c:d)>=_,S=((t,i,s,l)=>t===i*s+l+s)(p,b,y?d:c,m),E=!!m&&((t,i)=>void 0!==(null==t?void 0:t.visibleRowStartIndex)||void 0!==t.visibleColumnStartIndex?i?0===t.visibleColumnStartIndex:0===t.visibleRowStartIndex:0===t.visibleStartIndex)(i,y);f.set(w&&!S&&b>=_-1||E||f.state.show)}const{StyledFixedSizeList:pO,StyledFixedSizeGrid:gO}=function(){const t=i=>({scrollbarColor:"".concat("#BBB"," ").concat(Vk),overflow:i?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:Vk},"&::-webkit-scrollbar-thumb":{backgroundColor:"#BBB",borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:aa(uO,{shouldForwardProp:i=>"scrollDisabled"!==i})(i=>{let{scrollDisabled:s}=i;return{["&.".concat(Dw.styledScrollbars)]:t(s)}}),StyledFixedSizeGrid:aa(Fs,{shouldForwardProp:i=>"scrollDisabled"!==i})(i=>{let{scrollDisabled:s}=i;return{["&.".concat(Dw.styledScrollbars)]:t(s)}})}}(),kw=t=>{const i=P.useMemo(()=>"text"in t?t:{},[t]);return P.useMemo(()=>((t,i)=>{const s=(()=>{const c=document.createDocumentFragment(),d=document.createElement("canvas");return c.appendChild(d),d.getContext("2d")})();if(s.font=i,Array.isArray(t))return Math.max(...t.map(c=>s.measureText(c).width));const l=s.measureText(t);return Math.ceil(l.width||0)})(i.text,i.font||"12px Source Sans Pro"),[i.text,i.font])};function Aw(t){return t?Array("number"==typeof t?t:t.qListObject.qDimensionInfo.qApprMaxGlyphCount).fill("M").join(""):""}function $k(t){let{isGridMode:i,dense:s}=t,l=s?20:i?32:29;return i&&(l+=4),l}const[bO,_O]=Do({});function Gk(t){const i="".concat(t.id),[s]=bO();return{setStoreValue:(l,c)=>s.set("".concat(i,"/").concat(l),c),getStoreValue:l=>s.get("".concat(i,"/").concat(l))}}const wO=De(En,{shouldForwardProp:t=>!["width","dense"].includes(t)})(t=>{let{width:i,dense:s}=t;return ee({minWidth:"".concat(i,"px"),textAlign:"center",fontSize:"".concat(s?"12px":"14px")},s&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:i})});function Uk(t){let{width:i,text:s,dense:l,tooltip:c}=t;const{translator:d}=P.useContext(ai);return V.createElement(hw,{title:c?d.get(s):""},V.createElement(wO,{width:i,dense:l,component:"div",variant:"body1",py:"12px"},d.get(s)))}var ag={},Rv={exports:{}};!function(t){t.exports=function(i){return i&&i.__esModule?i:{default:i}},t.exports.__esModule=!0,t.exports.default=t.exports}(Rv);var Wk,TN=Rv.exports,Kk={},ON=Di(JC),LN=TN;Object.defineProperty(ag,"__esModule",{value:!0});var xO=ag.default=void 0,Qk=LN((Wk||(Wk=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.createSvgIcon}});var i=ON}(Kk)),Kk));xO=ag.default=(0,Qk.default)((0,ce.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");const PN=De(A_)(t=>{let{theme:i,left:s}=t;return{position:"absolute",bottom:"12px",display:"flex",border:"1px solid ".concat(i.palette.divider),width:"calc(100% - 11px)",left:s}}),EO=De("div")(()=>({paddingLeft:"6px",flexGrow:1})),NN=De("div")(t=>{let{dense:i}=t;return{display:"flex",alignItems:"".concat(i?"center":"flex-start")}}),CO=De(xO)(()=>({fontSize:"14px"}));function DO(t){let{text:i,dismiss:s,dense:l,parentWidth:c=0}=t;const d="function"==typeof s,f=l?370:282,p=Math.max(c/2-f/2,0),m=Math.min(f,c)-42;return V.createElement(PN,{left:p,style:{maxWidth:f}},V.createElement(EO,null,V.createElement(Uk,{text:i,dense:l,width:m,tooltip:l&&c<f})),V.createElement(NN,{dense:l},d&&V.createElement(Ms,{"aria-label":"close",onClick:()=>s()},V.createElement(CO,null))))}function Yk(t){let{itemWidth:i,layout:s,frequencyMode:l}=t;const c=i>80,{frequencyEnabled:d=!1}=(null==s?void 0:s.qListObject)||{},f=!["N",void 0].includes(l);return!(!c||!f&&!d)}const cg=t=>{const i=(s=t)&&(/^[A-Za-z][A-Za-z0-9_]*$/.test(s)?s:"[".concat(s.replace(/\]/g,"]]"),"]"));var s;return"Max(AGGR(Count(".concat(i,"), ").concat(i,"))")},kO=(t,i)=>{const s="fetch"===(null==(p=i)?void 0:p.frequencyMax),[l,c]=P.useState(),[d,f]=P.useState(s);var p;return P.useEffect(()=>{!s||be(function*(){const p=yield(m=be(function*(y,b){const _=y.qListObject.qDimensionInfo,S=cg(_.qGroupFieldDefs[_.qGroupPos]);return(yield b.evaluateEx(S)).qNumber}),function(y,b){return m.apply(this,arguments)})(i,t);var m;c(p),f(!1)})()},[s&&i]),{frequencyMax:s?l:null==i?void 0:i.frequencyMax,awaitingFrequencyMax:d}},Zk=["isLoadingData"],IO=De("div")(()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}}));function Mv(t){var i,s;let{model:l,app:c,constraints:d,layout:f,selections:p,selectionState:m,direction:y,checkboxes:b,height:_,width:w,frequencyMode:S,update:E,fetchStart:C,postProcessPages:I,calculatePagesHeight:D=!1,keyboard:k={},showGray:A=!0,scrollState:M,keyScroll:T={state:{},reset:()=>{}},currentScrollIndex:O={set:()=>{}},renderedCallback:N,onCtrlF:B,showSearch:j,isModal:G,styles:Q}=t;const{translator:H}=P.useContext(ai),[z,K]=P.useState(!1),Y=!(!f||!f.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:X=b,histogram:re}=null!=f?f:{},[q,$]=P.useState(""),W=P.useRef(null),te=P.useRef({queue:[],validPages:!1,dataOffset:0}),J=P.useRef({pages:[]}),{frequencyMax:ae,awaitingFrequencyMax:ue}=kO(c,f),ve=_n(function(Fe){let{local:Ge,loaderRef:Pt,model:At,fetchStart:Yt,scrollTimeout:st,postProcessPages:ut,listData:Bt}=Fe;const[sn,Tn]=P.useState(!1),[Nt,Ct]=P.useState([]);let[Ft]=P.useState(0);const It=(On,ti)=>{const Yn=Ge.current.dataOffset;Ge.current.queue.push({start:On+Yn,stop:ti+Yn});const Fr=!!Pt.current&&Pt.current._listRef&&Pt.current._listRef.state.isScrolling;return Ge.current.queue.length>10&&Ge.current.queue.shift(),clearTimeout(Ge.current.timeout),Tn(!0),new Promise(no=>{Ge.current.timeout=setTimeout(()=>{const Bi=Ge.current.queue.slice(-1)[0],cc=At.getListObjectData("/qListObjectDef",[{qTop:Bi.start>Ft?Bi.start-Ft:0,qHeight:Ft,qLeft:0,qWidth:1},{qTop:Bi.start,qHeight:Ft,qLeft:0,qWidth:1}]).then(ro=>{const uc=ut?ut(ro):ro;Ge.current.validPages=!0,Bt.current.pages=uc,Ct(uc),Tn(!1),no()});Yt&&Yt(cc)},Fr?st:0)})};return{loadMoreItems:{with(On){let{minimumBatchSize:ti}=On;return ti&&(Ft=ti),It}},pages:Nt,isLoading:sn}}({local:te,loaderRef:W,model:l,fetchStart:C,scrollTimeout:0,postProcessPages:I,listData:J}),Zk),{getStoreValue:Ee,setStoreValue:fe}=Gk(l),we=P.useCallback(ve.loadMoreItems,[f]),[pe,ye]=P.useState({show:!1,dismissed:!1}),[Ne,Oe]=P.useState([]);null!=ve&&ve.pages&&m.update({setPages:Oe,pages:ve.pages,isSingleSelect:Y,layout:f});const qe=null==f?void 0:f.qListObject.qDimensionInfo.qCardinal;(null!=ve&&ve.pages.length&&!ue||0===qe)&&(null==N||N());const Ve=P.useCallback(Fe=>{if(null==Ne||!Ne.length||!te.current.validPages)return!1;te.current.checkIdx=Fe;const Ge=At=>At.qArea.qTop<=Fe&&Fe<At.qArea.qTop+At.qArea.qHeight,Pt=Ne.filter(At=>Ge(At))[0];return Pt&&Ge(Pt)},[f,Ne]),{interactionEvents:lt,select:xe}=function WT(t){var i;let{selectionState:s,selections:l,checkboxes:c=!1,doc:d=document,loaderRef:f}=t;const p=P.useRef({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});P.useEffect(()=>{var A;if(null===(A=f.current)||void 0===A||null===(A=A._listRef)||void 0===A||!A._outerRef)return;const M=B=>B.preventDefault(),T=B=>B.preventDefault(),O=B=>B.preventDefault(),N=f.current._listRef._outerRef;return N.addEventListener("gesturestart",M),N.addEventListener("gesturechange",T),N.addEventListener("gestureend",O),()=>{N.removeEventListener("gesturestart",M),N.removeEventListener("gesturechange",T),N.removeEventListener("gestureend",O)}},[null===(i=f.current)||void 0===i||null===(i=i._listRef)||void 0===i?void 0:i._outerRef]);const m=function(){var A=be(function*(){var M;return(null===(M=s.selectDisabled)||void 0===M||!M.call(s))&&(s.setSelectableValuesUpdating(),Ck({selections:l,elemNumbers:p.current.elemNumbers,isSingleSelect:s.isSingleSelect,toggle:p.current.toggle}))});return function(){return A.apply(this,arguments)}}(),y=(A,M)=>function(O,N){if(!O)return[];if(O.length<=1)return O;const{min:B,max:j}=function(G,Q){let H=1/0,z=-1/0;return G.forEach(K=>{const Y=Q.indexOf(K);H=Y<H?Y:H,z=Y>z?Y:z}),{min:H,max:z}}(O,N);return N.slice(B,j+1)}([A,M],function(O){if(!O||!O.length)return[];const N=O.map(B=>B.qMatrix.map(G=>{const[{qElemNumber:Q}]=G;return Q}));return Ek(N)}(s.enginePages)),b=A=>{const{startElemNumber:M}=p.current;if(M===A)return;const T=y(p.current.startElemNumber,A);s.updateItems(T,!0,p.current.elemNumbers)},_=P.useCallback(A=>{if(s.selectDisabled())return;const M=+A.target.getAttribute("data-n"),T=!s.isSingleSelect&&_w(A.nativeEvent);p.current.elemNumbers=[M],p.current.toggle=T,T||s.clearItemStates(!0),s.updateItem(M),p.current.active=!1,m()},[]),w=P.useCallback(A=>{if(0!==A.button||s.selectDisabled())return;const M=+A.currentTarget.getAttribute("data-n"),T=!s.isSingleSelect&&_w(A);var O;p.current.isRange=!1,p.current.startElemNumber=M,p.current.elemNumbers=[M],p.current.toggle=T,p.current.active=!0,T||s.clearItemStates(!0),s.updateItem(M),s.isSingleSelect&&(p.current.active=!1,m()),((O=A).ctrlKey||O.metaKey)&&(A.currentTarget.focus(),O.preventDefault())},[]),S=P.useCallback(A=>{if(0===A.button&&p.current.active){if(p.current.active=!1,p.current.isRange){const M=+A.currentTarget.getAttribute("data-n");b(M)}m()}},[]),E=P.useCallback(A=>{0===A.button&&p.current.active&&(p.current.active=!1,m())},[]),C=P.useCallback(A=>{if(!p.current.active)return;p.current.isRange||(p.current.isRange=!0,s.isSelected(p.current.startElemNumber)||(s.updateItem(p.current.startElemNumber,!0),p.current.elemNumbers=[]));const M=+A.currentTarget.getAttribute("data-n");b(M)},[]),I=P.useCallback(A=>{var M,T;if(p.current.active||p.current.isRange||s.isSingleSelect||A.touches.length<=1)return;if(A.touches.length>2)return void m();const O=Number(null===(M=A.touches[0].target)||void 0===M||null===(M=M.closest(Dk))||void 0===M?void 0:M.getAttribute("data-n")),N=Number(null===(T=A.touches[1].target)||void 0===T||null===(T=T.closest(Dk))||void 0===T?void 0:T.getAttribute("data-n"));Number.isNaN(O)||Number.isNaN(O)?m():(p.current.active=!0,y(O,N).length<7&&(p.current.touchRangeSmall=!0),p.current.elemNumbers=[],p.current.touchElemNumbers=[O,N])},[]),D=P.useCallback(()=>{if(2!==p.current.touchElemNumbers.length)return;if(p.current.touchRangeSmall)return p.current.touchRangeSmall=!1,p.current.touchElemNumbers=[],void(p.current.active=!1);const[A,M]=p.current.touchElemNumbers;p.current.startElemNumber=A,b(M),p.current.touchElemNumbers=[],p.current.active=!1,p.current.toggle=!0,m()},[]);P.useEffect(()=>(d.addEventListener("mouseup",E),()=>{d.removeEventListener("mouseup",E)}),[E]),P.useEffect(()=>{const A=()=>{s.clearItemStates(!1)},M=()=>{s.clearItemStates(!0),s.triggerStateChanged()};return l.on("clearItemStates",A),l.on("deactivated",A),l.on("cleared",M),()=>{l.removeListener("clearItemStates",A),l.removeListener("deactivated",A),l.removeListener("cleared",M)}},[l]);const k={};return Object.assign(k,c?{onChange:_}:{onMouseUp:S,onMouseDown:w,onMouseEnter:C,onTouchStart:I,onTouchEnd:D}),{interactionEvents:k,select:(A=be(function*(){var M;let T=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],O=arguments.length>1&&void 0!==arguments[1]&&arguments[1],N=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(null!==(M=s.selectDisabled)&&void 0!==M&&M.call(s))return!1;const B=!s.isSingleSelect&&_w(null==N?void 0:N.nativeEvent);B||s.clearItemStates(!0);const j=[];return s.updateItems(T,O,j),s.setSelectableValuesUpdating(),Ck({selections:l,elemNumbers:O?j:T,isSingleSelect:s.isSingleSelect,toggle:B})}),function(){return A.apply(this,arguments)})};var A}({selectionState:m,selections:p,checkboxes:X,doc:document,loaderRef:W}),{layoutOptions:Ke={}}=f||{};let Xe=!0;Ke.dataLayout&&(Xe="singleColumn"===Ke.dataLayout||"row"===(null==Ke?void 0:Ke.layoutOrder));const Tt="grid"===(null==Ke?void 0:Ke.dataLayout),Je=Fe=>{const Ge=ee({},Xe?{rowIndex:Fe}:{columnIndex:Fe});W.current._listRef.scrollToItem(Tt?Ge:Fe)},nt=()=>{if(te.current.queue=[],te.current.validPages=!1,W.current){W.current.resetloadMoreItemsCache(!0);const Fe="overflowEnd"===T.state.scrollPosition;if(f&&f.qSelectionInfo.qInSelections||Fe)return void(Fe&&T.reset());te.current.dataOffset=0,Je(0)}};E&&E.call(null,nt),P.useEffect(()=>{M&&!z&&W.current&&(W.current._listRef.scrollToItem(M.initScrollPos),K(!0))},[W.current]),P.useEffect(()=>{nt()},[f,te.current.dataOffset]);let ot=100;const xt="grid"!==Ke.dataLayout,Wt=null==f||null===(i=f.qListObject.qSize)||void 0===i?void 0:i.qcy,Kt=function(Fe){let{pages:Ge,minimumBatchSize:Pt,count:At,calculatePagesHeight:Yt=!1}=Fe;return(null!=Ge&&Ge.length&&Yt?(t=>{let{pages:i=[],minimumBatchSize:s,count:l}=t;const c=i.some(f=>f.qArea.qHeight<s),d=Math.max(...i.map(f=>f.qArea.qTop+f.qArea.qHeight));return c?d:l})({pages:Ge,minimumBatchSize:Pt,count:At}):At)||0}({pages:Ne,minimumBatchSize:ot,count:Wt,calculatePagesHeight:D,layoutOptions:Ke,model:l});let lr=Yk({itemWidth:w,layout:f,frequencyMode:S});const Be=Ne.some(Ge=>{let{qMatrix:Pt}=Ge;return Pt.some(At=>{var Yt;let[st]=At;return!(null===(Yt=st.qFrequency)||void 0===Yt||!Yt.match("%"))})})?"P":"-",qt=function yO(t){let{layout:i,width:s,height:l,listCount:c,count:d,freqIsAllowed:f,checkboxes:p,styles:m}=t;const{layoutOptions:y={}}=i||{},{layoutOrder:b,maxVisibleRows:_={},maxVisibleColumns:w,dense:S,dataLayout:E}=y,{fontSize:C="12px",fontFamily:I="Source sans pro"}=(null==m?void 0:m.content)||{},D="".concat(C," ").concat(I),k=kw({text:Aw(i),font:D}),A=kw({text:Aw(5),font:D}),M=kw({text:Aw(8),font:D}),T=f?A:0,O=p?20:0;let N=56+T+O;!p&&N>=80&&(N+=20);let B,j,G,Q,H=k+18+T+O;!p&&H>=80&&(H+=20),H=Math.min(150,Math.max(H,N));const z=$k({isGridMode:"grid"===E,dense:S}),K=null!=l?l:8*z;if(b){let $=s;"row"===b?(B={overflowX:"hidden"},$+=8,({rowCount:Q,columnWidth:G,columnCount:j}=function(W){let{maxVisibleColumns:te,listCount:J,containerWidth:ae,columnAutoWidth:ue,itemMinWidth:_e}=W;const ve=(null==te?void 0:te.maxColumns)||3,Ee=ae-10;let fe;const we=Math.min(J,Math.max(1,Math.round(Ee/Math.max(_e,ue))));fe=!1!==(null==te?void 0:te.auto)?we:Math.min(J,ve,we),fe=Math.max(fe,1);const pe=Ee/fe;return{rowCount:Math.ceil(J/fe),columnWidth:pe,columnCount:fe}}({maxVisibleColumns:w,listCount:c,containerWidth:$,columnAutoWidth:H,itemMinWidth:N}))):(B={overflowY:"hidden"},({rowCount:Q,columnWidth:G,columnCount:j}=function(W){let te,{maxVisibleRows:J,itemHeight:ae,listCount:ue,listHeight:_e,columnAutoWidth:ve,containerWidth:Ee,itemMinWidth:fe}=W;const we=(null==J?void 0:J.maxRows)||3,pe=Math.floor(_e/ae);te=!1!==J.auto?pe:Math.min(ue,we,pe),te=Math.max(te,1);const ye=Math.ceil(ue/te);return{columnWidth:Math.max(ve,Ee/ye,fe),columnCount:ye,rowCount:te}}({maxVisibleRows:_,itemHeight:z,listCount:c,listHeight:K,columnAutoWidth:H,containerWidth:$,itemMinWidth:N})))}j=("singleColumn"===E?1:j)||1,Q=("singleColumn"===E?d:Q)||c;const Y=y.dense?838e3:577e3;Q=Math.min(Q,Y);const X=Math.floor(3355e4/G);return j=Math.min(j,X)||1,{columnCount:j,columnWidth:G,rowCount:Q,overflowStyling:B,itemHeight:z,listHeight:K,listWidth:s,scrollBarWidth:10,count:d,listCount:Math.min(c,Q*j),maxCount:{row:Y,column:X},itemPadding:4,textWidth:k,freqMinWidth:A,freqMaxWidth:M}}({layout:f,width:w,height:_,listCount:Kt,count:Wt,freqIsAllowed:lr,checkboxes:X,styles:Q});qt.columnWidth&&(lr=Yk({itemWidth:qt.columnWidth,layout:f,frequencyMode:S}));const{listCount:gn}=qt;fe("listCount",gn);const mn=Ee("inputText");P.useEffect(()=>{if(mn){const Fe=function(Pt){let At;switch(Pt){case 0:At="Listbox.NoMatchesForYourTerms";break;case 1:At="ScreenReader.OneSearchResult";break;default:At="ScreenReader.ManySearchResults"}return At}(gn),Ge=H.get(Fe,[gn]);$(Ge)}},[mn,gn]);const Nr=Fe=>{const{scrollIndex:Ge,offset:Pt,triggerRerender:At}=function(Yt){let st,{position:ut,isRow:Bt,sizes:sn,layout:Tn,offset:Nt}=Yt,Ct=!1,Ft=null!=Nt?Nt:0;switch(ut){case"start":st=0;break;case"end":st=Bt?sn.rowCount:sn.columnCount;break;case"overflowStart":Ft=0,st=0,Ct=!0;break;case"overflowEnd":Ft=((t,i)=>t.qListObject.qDimensionInfo.qCardinal-i)(Tn,sn.listCount),st=Tn.qListObject.qDimensionInfo.qCardinal,Ct=!0}return{scrollIndex:st,offset:Ft,triggerRerender:Ct}}({position:Fe,isRow:Xe,sizes:qt,layout:f,offset:te.current.dataOffset});te.current.dataOffset=Pt,At&&m.triggerStateChanged(),Je(Ge)};P.useEffect(()=>{const Fe=T.state;Fe.up?Je(O.state.start-Fe.up):Fe.down?Je(O.state.stop+Fe.down):Fe.scrollPosition&&Nr(Fe.scrollPosition),"overflowEnd"!==Fe.scrollPosition&&T.reset()},[T.state.up,T.state.down,T.state.scrollPosition]);const{textAlign:Kr}=(null==f?void 0:f.qListObject.qDimensionInfo)||{},[_r,Qt]=P.useState({first:!1,last:!1}),{List:$t,Grid:un}=function(Fe){let{layout:Ge,width:Pt,checkboxes:At,local:Yt,isVertical:st,pages:ut,selectionState:Bt,interactionEvents:sn,deducedFrequencyMode:Tn,histogram:Nt,isSingleSelect:Ct,select:Ft,selectAll:It,onCtrlF:On,textAlign:ti,selections:Yn,keyboard:Fr,showGray:no,scrollState:Bi,direction:cc,sizes:ro,listCount:uc,overflowDisclaimer:mt,setScrollPosition:yn,focusListItems:dc,setCurrentScrollIndex:Ag,constraints:Kf,frequencyMax:f0,freqIsAllowed:R5,translator:lI,showSearch:h0,isModal:M5,styles:T5}=Fe;const{layoutOptions:zu={}}=Ge||{},{columnWidth:cI,listHeight:p0,itemHeight:g0,rowCount:Qf,columnCount:Ig}=ro||{},O5=("grid"===zu.dataLayout?cI:Pt)>80,Ax={direction:"rtl"===cc?"rtl":"ltr",useIsScrolling:!0,className:Dw.styledScrollbars},Rg=null==Ge?void 0:Ge.qListObject.qDimensionInfo.qLocked,uI=p0<=g0,dI=ee(ee({isLocked:Rg,column:!st,pages:ut},Rg||Bt.selectDisabled()?{}:sn),{},{checkboxes:At,layoutOptions:zu,deducedFrequencyMode:Tn,freqIsAllowed:R5,isSingleSelect:Ct,textAlign:ti,sizes:ro,actions:{select:Ft,confirm:()=>null==Yn?void 0:Yn.confirm.call(Yn),cancel:()=>null==Yn?void 0:Yn.cancel.call(Yn),setScrollPosition:yn,selectAll:It,onCtrlF:On},frequencyMax:f0,histogram:Nt,keyboard:Fr,showGray:no,showTick:O5,dataOffset:Yt.current.dataOffset,focusListItems:dc,direction:cc,translator:lI,showSearch:h0,isModal:M5,styles:T5,fillHeight:uI});return{List:m0=>{let{onItemsRendered:Ix,ref:Mg}=m0;return Yt.current.listRef=Mg,V.createElement(pO,Vi({},Ax,{dataTestid:"fixed-size-list",scrollDisabled:null==Kf?void 0:Kf.active,height:p0,width:Pt,itemCount:uc,itemData:ee(ee({},dI),{},{listCount:uc}),itemSize:g0,onItemsRendered:qu=>{var fc;Ag({start:qu.visibleStartIndex,stop:qu.visibleStopIndex}),Bi&&Bi.setScrollPos(qu.visibleStopIndex),Hk({renderProps:qu,layoutOptions:zu,maxCount:ro.maxCount,columnCount:Ig,rowCount:Qf,overflowDisclaimer:mt,qCardinal:null==Ge||null===(fc=Ge.qListObject)||void 0===fc||null===(fc=fc.qDimensionInfo)||void 0===fc?void 0:fc.qCardinal,dataOffset:Yt.current.dataOffset}),Ix(ee({},qu))},ref:Mg}),iO)},Grid:m0=>{let{onItemsRendered:Ix,ref:Mg}=m0;const{overflowStyling:qu,scrollBarWidth:fc}=ro,{layoutOrder:fI}=zu||{},L5=Math.min(p0,Qf*g0+fc);return Yt.current.listRef=Mg,V.createElement(gO,Vi({},Ax,{dataTestid:"fixed-size-grid",scrollDisabled:null==Kf?void 0:Kf.active,height:L5,width:Pt,columnCount:Ig,columnWidth:cI,rowCount:Qf,rowHeight:g0,style:ee({},qu),itemData:ee(ee({},dI),{},{column:void 0,columnCount:Ig,rowCount:Qf}),onItemsRendered:Vu=>{var Hu;const Rx="row"===fI;Ag({start:Rx?Vu.visibleRowStartIndex:Vu.visibleColumnStartIndex,stop:Rx?Vu.visibleRowStopIndex:Vu.visibleColumnStopIndex});const P5=function(N5){const{renderProps:CF,scrollState:hI,layoutOrder:DF,rowCount:pI,columnCount:Mx}=N5,{overscanRowStartIndex:y0,overscanRowStopIndex:Tg,overscanColumnStartIndex:Tx,overscanColumnStopIndex:Ox,visibleStopIndex:Og}=CF;let Lx,Px,zs,ga;return hI&&hI.setScrollPos(Og),"column"===DF?(Lx=Tx*pI,Px=y0,zs=Ox*pI,ga=Tg):(Lx=Tx,Px=y0*Mx,zs=Ox,ga=Tg*Mx),{visibleStartIndex:Lx+Px,visibleStopIndex:zs+ga}}({renderProps:Vu,scrollState:Bi,layoutOrder:fI,rowCount:Qf,columnCount:Ig});Hk({renderProps:Vu,layoutOptions:zu,maxCount:ro.maxCount,columnCount:Ig,rowCount:Qf,overflowDisclaimer:mt,qCardinal:null==Ge||null===(Hu=Ge.qListObject)||void 0===Hu||null===(Hu=Hu.qDimensionInfo)||void 0===Hu?void 0:Hu.qCardinal,dataOffset:Yt.current.dataOffset}),Ix(P5)},ref:Mg}),iO)}}}({direction:y,layout:f,height:_,width:w,checkboxes:X,deducedFrequencyMode:Be,histogram:re,keyboard:k,showGray:A,interactionEvents:lt,select:xe,selectAll:()=>{m.clearItemStates(!1),l.selectListObjectAll("/qListObjectDef")},onCtrlF:B,textAlign:Kr,isVertical:xt,pages:Ne,selectionState:m,isSingleSelect:Y,selections:p,scrollState:M,local:te,sizes:qt,listCount:gn,overflowDisclaimer:{state:pe,set:Fe=>ye(Ge=>ee(ee({},Ge),{},{show:Fe}))},setScrollPosition:Nr,focusListItems:{first:_r.first,setFirst:Fe=>Qt(Ge=>ee(ee({},Ge),{},{first:Fe})),last:_r.last,setLast:Fe=>Qt(Ge=>ee(ee({},Ge),{},{last:Fe}))},setCurrentScrollIndex:O.set,constraints:d,frequencyMax:ae,freqIsAllowed:lr,translator:H,showSearch:j,isModal:G,styles:Q}),{columnWidth:$n,listHeight:Gn,itemHeight:Dn}=qt||{};return xt||(ot=function(Fe){let{width:Ge,columnWidth:Pt,listHeight:At,itemHeight:Yt}=Fe;return Math.ceil(Ge/Pt)*Math.ceil(At/Yt)*2}({width:w,columnWidth:$n,listHeight:Gn,itemHeight:Dn})),V.createElement(IO,null,V.createElement(nO,{className:"screenReaderOnly",layout:f}),V.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},q),!gn&&qe>0&&V.createElement(Uk,{width:w,text:"Listbox.NoMatchesForYourTerms"}),V.createElement(bw,{isItemLoaded:Ve,itemCount:gn||1,loadMoreItems:we.with({minimumBatchSize:ot}),threshold:0,minimumBatchSize:ot,ref:W,role:"grid"},xt?$t:un),pe.show&&!pe.dismissed&&V.createElement(DO,{text:"Listbox.ItemsOverflow",dismiss:()=>ye(Fe=>ee(ee({},Fe),{},{dismissed:!0})),parentWidth:null==W||null===(s=W.current)||void 0===s||null===(s=s._listRef)||void 0===s||null===(s=s.props)||void 0===s?void 0:s.width,dense:null==Ke?void 0:Ke.dense}))}const RO=t=>ee(ee({},t),{},{shapes:[{type:"path",attrs:{d:"M15.4,9 C15.8,9 16,9.3 16,9.6 L16,15.4 C16,15.7 15.8,16 15.4,16 L9.6,16 C9.3,16 9,15.8 9,15.4 L9,9.6 C9,9.3 9.3,9 9.6,9 L15.4,9 Z M15,10 L10,10 L10,15 L15,15 L15,10 Z M6.5,0 C6.8,0 7,0.3 7,0.6 L7,6.4 C7,6.8 6.8,7 6.5,7 L0.6,7 C0.3,7 0,6.8 0,6.5 L0,0.6 C0,0.3 0.3,0 0.6,0 L6.5,0 Z M6,2.8 C6.3,2.5 6.3,2.1 6.1,1.8 C5.9,1.5 5.4,1.6 5.1,1.9 L3.1,3.9 L2.4,3.2 C2.1,2.9 1.7,2.9 1.4,3.1 C1.2,3.3 1.2,3.8 1.5,4.1 L2.7,5.3 C3,5.6 3.4,5.6 3.7,5.3 L3.8,5.3 L6,2.8 Z M6.5,9 C6.8,9 7,9.3 7,9.6 L7,15.4 C7,15.8 6.8,16 6.5,16 L0.6,16 C0.3,16 0,15.8 0,15.4 L0,9.6 C0,9.3 0.3,9 0.6,9 L6.5,9 Z M6,11.8 C6.3,11.5 6.3,11.1 6.1,10.8 C5.9,10.6 5.4,10.6 5.1,10.8 L3.1,12.8 L2.3,12 C2,11.7 1.6,11.7 1.3,12 C1.1,12.3 1.1,12.7 1.4,13 L2.6,14.2 C2.9,14.5 3.3,14.5 3.6,14.3 L3.7,14.2 L6,11.8 Z M15.4,0 C15.8,0 16,0.3 16,0.6 L16,6.4 C16,6.8 15.8,7 15.4,7 L9.6,7 C9.3,7 9,6.8 9,6.5 L9,0.6 C9,0.3 9.3,0 9.6,0 L15.4,0 Z M15,2.8 C15.3,2.5 15.3,2.1 15.1,1.8 C14.9,1.5 14.4,1.6 14.1,1.9 L12.1,3.9 L11.3,3.1 C11,2.8 10.6,2.8 10.3,3 C10,3.2 10.1,3.7 10.3,4 L11.5,5.2 C11.8,5.5 12.2,5.5 12.5,5.2 L15,2.8 Z"}}]}),Tv=t=>ee(ee({},t),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),Ov=t=>ee(ee({},t),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),Xk=t=>ee(ee({},t),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]});var Rw=t=>{let{layout:i,model:s,translator:l,selectionState:c,isDirectQuery:d=!1}=t;return i.qListObject.qDimensionInfo.qIsOneAndOnlyOne?[]:[{key:"selectAll",type:"menu-icon-button",label:l.get("Selection.SelectAll"),getSvgIconShape:RO,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some(f=>i.qListObject.qDimensionInfo.qStateCounts[f]>0),action:()=>{c.clearItemStates(!1),s.selectListObjectAll("/qListObjectDef")}},{key:"selectPossible",type:"menu-icon-button",label:l.get("Selection.SelectPossible"),getSvgIconShape:Ov,enabled:()=>["qOption"].some(f=>i.qListObject.qDimensionInfo.qStateCounts[f]>0),action:()=>{c.clearItemStates(!1),s.selectListObjectPossible("/qListObjectDef")}},!d&&{key:"selectAlternative",type:"menu-icon-button",label:l.get("Selection.SelectAlternative"),getSvgIconShape:Tv,enabled:()=>["qAlternative"].some(f=>i.qListObject.qDimensionInfo.qStateCounts[f]>0),action:()=>{c.clearItemStates(!1),s.selectListObjectAlternative("/qListObjectDef")}},!d&&{key:"selectExcluded",type:"menu-icon-button",label:l.get("Selection.SelectExcluded"),getSvgIconShape:Xk,enabled:()=>["qAlternative","qExcluded"].some(f=>i.qListObject.qDimensionInfo.qStateCounts[f]>0),action:()=>{c.clearItemStates(!1),s.selectListObjectExcluded("/qListObjectDef")}}].filter(Boolean)};const ug=t=>ee(ee({},t),{},{shapes:[{type:"path",attrs:{d:"M2,6.5 L3,6.5 C3.55228475,6.5 4,6.94771525 4,7.5 L4,8.5 C4,9.05228475 3.55228475,9.5 3,9.5 L2,9.5 C1.44771525,9.5 1,9.05228475 1,8.5 L1,7.5 C1,6.94771525 1.44771525,6.5 2,6.5 Z M7.5,6.5 L8.5,6.5 C9.05228475,6.5 9.5,6.94771525 9.5,7.5 L9.5,8.5 C9.5,9.05228475 9.05228475,9.5 8.5,9.5 L7.5,9.5 C6.94771525,9.5 6.5,9.05228475 6.5,8.5 L6.5,7.5 C6.5,6.94771525 6.94771525,6.5 7.5,6.5 Z M13,6.5 L14,6.5 C14.5522847,6.5 15,6.94771525 15,7.5 L15,8.5 C15,9.05228475 14.5522847,9.5 14,9.5 L13,9.5 C12.4477153,9.5 12,9.05228475 12,8.5 L12,7.5 C12,6.94771525 12.4477153,6.5 13,6.5 Z"}}]});function Mw(t){const i=Wr(),s="function"==typeof t.enabled?!t.enabled():!!t.disabled;return{hidden:!0===t.hidden,disabled:s,style:{backgroundColor:t.active?i.palette.btn.active:void 0},hasSvgIconShape:"function"==typeof t.getSvgIconShape}}const Tw={className:"njs-cell-action"},Ow=V.forwardRef((t,i)=>{let{ariaExpanded:s=!1,item:l,addAnchor:c=!1}=t;const d=Wr(),{hidden:f,disabled:p,style:m,hasSvgIconShape:y}=Mw(l);if(f)return null;const b=Number.parseInt(d.spacing(.5),10),_=l.keyboardAction||l.action,w=_?C=>["Enter"].includes(C.key)&&_():null,S=_?C=>[" ","Spacebar"].includes(C.key)&&_():null,E="actions-toolbar-".concat(l.key);return V.createElement(Ms,{ref:c?null:i,title:l.label,onClick:l.action,onKeyDown:w,onKeyUp:S,disabled:p,style:m,className:[Tw.className,E].join(" "),size:"large",disableRipple:!0,"aria-expanded":s,"aria-controls":"moreMenuList","data-testid":E},y&&Ao(l.getSvgIconShape()),c&&V.createElement("div",{ref:i,style:{bottom:-b,right:0,position:"absolute",width:"100%",height:0}}))}),Jk=t=>ee(ee({},t),{},{shapes:[{type:"path",attrs:{d:"M9.34535242,8 L13.3273238,11.9819714 C13.6988326,12.3534802 13.6988326,12.955815 13.3273238,13.3273238 C12.955815,13.6988326 12.3534802,13.6988326 11.9819714,13.3273238 L8,9.34535242 L4.01802863,13.3273238 C3.64651982,13.6988326 3.04418502,13.6988326 2.67267621,13.3273238 C2.3011674,12.955815 2.3011674,12.3534802 2.67267621,11.9819714 L6.65464758,8 L2.67267621,4.01802863 C2.3011674,3.64651982 2.3011674,3.04418502 2.67267621,2.67267621 C3.04418502,2.3011674 3.64651982,2.3011674 4.01802863,2.67267621 L8,6.65464758 L11.9819714,2.67267621 C12.3534802,2.3011674 12.955815,2.3011674 13.3273238,2.67267621 C13.6988326,3.04418502 13.6988326,3.64651982 13.3273238,4.01802863 L9.34535242,8 Z"}}]}),Lw=t=>ee(ee({},t),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M9.1661442,6.1661442 C10.7210031,4.61128527 13.2789969,4.61128527 14.8338558,6.1661442 C16.3887147,7.72100313 16.3887147,10.2789969 14.8338558,11.8338558 C13.2789969,13.3887147 10.7210031,13.3887147 9.1661442,11.8338558 C7.61128527,10.2789969 7.61128527,7.77115987 9.1661442,6.1661442 Z M14.1316614,7.72100313 C14.3322884,7.52037618 14.3824451,7.169279 14.1316614,6.9184953 C13.8808777,6.6677116 13.5297806,6.71786834 13.3291536,6.9184953 L12.0250784,8.22257053 L10.7210031,6.9184953 C10.5203762,6.6677116 10.1191223,6.6677116 9.9184953,6.9184953 C9.6677116,7.11912226 9.6677116,7.52037618 9.9184953,7.72100313 L11.2225705,9.02507837 L9.9184953,10.3291536 C9.6677116,10.5297806 9.6677116,10.8808777 9.9184953,11.1316614 C10.169279,11.3824451 10.5203762,11.3824451 10.7210031,11.1316614 L12.0250784,9.82758621 L13.3291536,11.1316614 C13.5297806,11.3824451 13.8808777,11.3824451 14.1316614,11.1316614 C14.3322884,10.9310345 14.3824451,10.5297806 14.1316614,10.3291536 L12.8275862,9.02507837 L14.1316614,7.72100313 Z"}}]});var MO=t=>Ao(Lw(t));const eA={icon:"".concat("More","-icon")},OO=De(Wp)(t=>{let{theme:i}=t;return{pointerEvents:"none",["& .".concat(eA.icon," *")]:{color:i.palette.text.primary}}});function Lv(t){let{item:i,autoFocus:s,onActionClick:l=(()=>{})}=t;const{hidden:c,disabled:d,hasSvgIconShape:f}=Mw(i);return c?null:V.createElement(tt,{autoFocus:s,title:i.label,onClick:()=>{i.action(),l()},disabled:d,tabindex:"0"},f&&V.createElement(_T,{className:eA.icon},Ao(i.getSvgIconShape())),V.createElement(En,{noWrap:!0},i.label))}const tA=V.forwardRef((t,i)=>{let{actions:s=[],show:l=!0,alignTo:c,popoverProps:d={},popoverPaperStyle:f={},onCloseOrActionClick:p=(()=>{})}=t;const m=s.length>0,y=s.findIndex(b=>!b.disabled);return m&&V.createElement(OO,Vi({},d,{onClose:p,ref:i,open:l,anchorEl:c.current,getContentAnchorEl:null,container:c.current,disablePortal:!0,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:"njs-action-toolbar-more"},paper:{style:ee({pointerEvents:"auto",maxWidth:"250px"},f)}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}),V.createElement(aw,{id:"moreMenuList"},s.map((b,_)=>V.createElement(Lv,{key:_,item:b,autoFocus:_===y,onActionClick:p}))))}),Nv="ActionsToolbar",Fv={item:"".concat(Nv,"-item"),itemSpacing:"".concat(Nv,"-itemSpacing")},nA=De(Wp)(t=>{let{theme:i}=t;return{["& .".concat(Fv.itemSpacing)]:{padding:i.spacing(0,.25)}}}),LO_className="njs-action-toolbar-popover",jv=V.forwardRef((t,i)=>{let{className:s,ariaExpanded:l=!1,actions:c=[],addAnchor:d=!1,isRtl:f=!1}=t;return c.length>0?V.createElement(Te,{item:!0,container:!0,gap:0,flexDirection:f?"row-reverse":"row",wrap:"nowrap",className:s},c.map((p,m)=>V.createElement(Te,{item:!0,key:p.key,className:"".concat(Fv.itemSpacing," ").concat(Fv.item)},V.createElement(Ow,{ariaExpanded:l,key:p.key,item:p,ref:0===m?i:null,addAnchor:d})))):null}),PO={pointerEvents:"none"},rA={vertical:"bottom",horizontal:"right"};function Pw(t){var i,s;let{show:l=!0,actions:c=[],maxItems:d=3,selections:f={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},extraItems:p,more:m={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{}},popover:y={show:!1,anchorEl:null},focusHandler:b=null,actionsRefMock:_=null,isRtl:w,autoConfirm:S=!1,layout:E}=t;const C=function(W){let{api:te,layout:J,onConfirm:ae=(()=>{}),onCancel:ue=(()=>{}),onKeyDeactivate:_e=(()=>{})}=W;const{translator:ve}=P.useContext(ai);return[{key:"clear",type:"icon-button",label:ve.get("Selection.Clear"),enabled:()=>te.canClear(J),action:()=>te.clear(),getSvgIconShape:Lw},{key:"cancel",type:"icon-button",label:ve.get("Selection.Cancel"),enabled:()=>te.canCancel(J),action:()=>{ue(),te.cancel()},keyboardAction:()=>{_e(),ue(),te.cancel()},getSvgIconShape:Jk},{key:"confirm",type:"icon-button",label:ve.get("Selection.Confirm"),enabled:()=>te.canConfirm(J),action:()=>{ae(),te.confirm()},keyboardAction:()=>{_e(),ae(),te.confirm()},getSvgIconShape:kk}]}(ee(ee({},f),{},{layout:E})),{translator:I,keyboardNavigation:D}=P.useContext(ai),[k,A]=P.useState(!1),M={vertical:12,horizontal:(null!==(i=null===(s=y.anchorEl)||void 0===s?void 0:s.clientWidth)&&void 0!==i?i:0)-7},T=P.useRef(),O=P.useRef(),N=Wr(),B=P.useMemo(()=>({margin:N.spacing(.5,0)})),j=W=>{const te=T.current||_;if(!te)return null;const J=te.querySelectorAll("button:not(.Mui-disabled)");return J[W?J.length-1:0]},G=P.useMemo(()=>function(W){let{keyboardNavigation:te,focusHandler:J,getEnabledButton:ae,selections:ue,isRtl:_e}=W;return ve=>{const{target:Ee,nativeEvent:fe}=ve,{keyCode:we}=fe;switch(we){case Et.ARROW_LEFT:case Et.ARROW_DOWN:case Et.ARROW_RIGHT:case Et.ARROW_UP:if(Ee.classList.contains("njs-cell-action")){const pe=(t=>{const i=t.closest("#actions-toolbar"),s=null==i?void 0:i.querySelectorAll(".njs-cell-action");return Array.from(s).indexOf(t)})(Ee);let ye=[Et.ARROW_LEFT,Et.ARROW_DOWN].includes(we);ye=_e?!ye:ye,(t=>{const i=document.querySelector("#actions-toolbar"),s=null==i?void 0:i.querySelectorAll(".njs-cell-action");!s.length||s[Math.min(Math.max(0,t),s.length-1)].focus()})(ye?pe-1:pe+1)}ve.stopPropagation(),ve.preventDefault();break;case Et.SPACE:ve.preventDefault();break;case Et.TAB:te&&null!=J&&J.refocusContent&&(ve.shiftKey&&ae(!1)===ve.target||!ve.shiftKey&&ae(!0)===ve.target)&&(ve.preventDefault(),ve.stopPropagation(),J.refocusContent());break;case Et.ESCAPE:ue&&(ue.onCancel(),ue.api.cancel(),ve.preventDefault(),ve.stopPropagation())}}}({keyboardNavigation:D,focusHandler:b,getEnabledButton:j,selections:f,isRtl:w}),[D,b,j,f,w]);if(P.useEffect(()=>()=>{A(!1)},[y.show,l,f.show]),P.useEffect(()=>{!b||(b.on("focus_toolbar_first",()=>{const W=j(!1);null==W||W.focus()}),b.on("focus_toolbar_last",()=>{const W=j(!0);null==W||W.focus()}))},[]),S)return;let Q=m.enabled,H=m.actions;const z=m.alignTo||O,K=c.filter(W=>!W.hidden);if(K.length>d){const W=K.splice(-(K.length-d)-1);Q=!0,H=[...W,...m.actions]}if(!f.show&&0===K.length)return null;const Y={key:"more",label:I.get("Menu.More"),getSvgIconShape:ug,hidden:!1,active:k,enabled:()=>Q,action:()=>A(!k)},X=K.length>0,re=H.length>0,q=X&&f.show||re&&f.show,$=V.createElement(Te,{ref:T,onKeyDown:G,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:w?"row-reverse":"row"}},(null==p?void 0:p.length)&&V.createElement(jv,{className:"actions-toolbar-extra-actions",actions:p,isRtl:w}),X&&V.createElement(jv,{actions:K}),re&&V.createElement(jv,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:O,ariaExpanded:k,actions:[Y],addAnchor:!0}),q&&V.createElement(Te,{item:!0,className:Fv.itemSpacing,style:B},V.createElement(eT,{orientation:"vertical"})),f.show&&V.createElement(jv,{className:"actions-toolbar-default-actions",actions:C,isRtl:w}),k&&V.createElement(tA,{show:k,actions:H,alignTo:z,popoverProps:m.popoverProps,popoverPaperStyle:m.popoverPaperStyle,onCloseOrActionClick:()=>{A(!1)}}));return y.show?V.createElement(nA,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:y.show,anchorEl:y.anchorEl,anchorOrigin:M,transformOrigin:rA,hideBackdrop:!0,style:PO,onMouseDown:W=>{W.stopPropagation()},slotProps:{paper:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:LO_className,style:{pointerEvents:"auto",padding:N.spacing(.5,.25)}}}},$):l&&$}var Nw=t=>Ao((i=>ee(ee({},i),{},{shapes:[{type:"path",attrs:{d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014l-4.128-4.026ZM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0Zm-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6.034 6.034 0 0 1-1.413 1.415Z"}}]}))(t));const dg="/qListObjectDef",FO=De(kT,{shouldForwardProp:t=>!["styles","dense","isRtl"].includes(t)})(t=>{let{theme:i,styles:s,dense:l,isRtl:c}=t,d={};return l&&(d={fontSize:12,paddingLeft:i.spacing(1),"& input":{paddingTop:"5px",paddingBottom:"5px"}}),ee({display:"flex",border:"none",fontSize:14,borderRadius:0,backgroundColor:s.search.backgroundColor,backdropFilter:s.background.backgroundImage?s.search.backdropFilter:void 0,paddingLeft:"".concat(9,"px"),flexDirection:c?"row-reverse":"row","& fieldset":{borderColor:"".concat(s.search.borderColor),borderWidth:"1px 0 1px 0",borderRadius:0},"&.Mui-focused fieldset":{borderColor:"".concat(s.search.highlightBorderColor," !important")},"& .MuiInputBase-root":ee({},s.search),"& *":{color:s.search.color},"& input":{color:s.search.color,textAlign:c?"right":"left"}},d)});function iA(t){let{selections:i,selectionState:s,model:l,keyboard:c,dense:d=!1,visible:f=!0,autoFocus:p=!0,wildCardSearch:m=!1,searchEnabled:y,direction:b,hide:_,styles:w}=t;const{translator:S}=P.useContext(ai),[E,C]=P.useState(""),[I,D]=P.useState(!1),k=P.useRef(),{getStoreValue:A,setStoreValue:M}=Gk(l),T="rtl"===b,O=function(){var j=be(function*(){if(s.selectDisabled()||i.isModal())try{yield l.abortListObjectSearch(dg)}finally{C("")}});return function(){return j.apply(this,arguments)}}();P.useEffect(()=>{f||O()},[f]),P.useEffect(()=>(i.on("deactivated",O),()=>{i.removeListener&&i.removeListener("deactivated",O)}),[]),P.useEffect(()=>{if(I&&k.current){const j=E.length-1;k.current.setSelectionRange(j,j),D(!1)}},[I,k.current]),P.useEffect(()=>{M("inputText",E)},[E]);const N=function(){var j=be(function*(){let G;const Q=yield l.searchListObjectFor(dg,E);return s.selectDisabled()?Q:(Q&&E.length&&A("listCount")>0&&(G=l.acceptListObjectSearch(dg,!0),i.selectionsMade=!0,s.clearItemStates(!1),C("")),G)});return function(){return j.apply(this,arguments)}}();function B(j){const G=(null==j?void 0:j.querySelector(".last-focused"))||(null==j?void 0:j.querySelector('[role="row"]:first-child'));null==G||G.setAttribute("tabIndex",0),null==G||G.focus()}return f&&!1!==y?V.createElement(FO,{styles:w,dense:d,isRtl:T,startAdornment:V.createElement(ok,{position:"start"},V.createElement(Nw,{size:d?"small":"normal"})),className:"search",inputRef:k,size:"small",fullWidth:!0,placeholder:S.get("Listbox.Search"),value:E,onFocus:()=>{m&&(C("**"),D(!0)),s.selectDisabled()||i.isModal()||i.begin(["/qListObjectDef"])},onChange:(j=be(function*(G){return C(G.target.value),G.target.value.length?l.searchListObjectFor(dg,G.target.value):O()}),function(Q){return j.apply(this,arguments)}),onKeyDown:function(){var j=be(function*(G){const{currentTarget:Q}=G,H=Q.closest(".listbox-container");switch(G.key){case"Enter":N();break;case"Escape":B(H),i.isActive()&&i.cancel();break;case"Tab":G.shiftKey?c.focusSelection():(B(H),null==H||H.querySelectorAll(".last-focused").forEach(z=>{z.classList.remove("last-focused")}));break;case"f":case"F":if(!G.ctrlKey&&!G.metaKey)return;_&&(_(),B(H));break;default:return}G.preventDefault(),G.stopPropagation()});return function(Q){return j.apply(this,arguments)}}(),autoFocus:p,inputProps:{tabIndex:c.innerTabStops?0:-1,"data-testid":"search-input-field","aria-label":S.get("Listbox.Search.ScreenReaderInstructions")}}):null;var j}function Bv(t){return Object.keys(so.prototype).forEach(i=>{t[i]=so.prototype[i]}),so.init(t),t}const jO=t=>{let i,{appSelections:s,appModal:l,model:c}=t,d=!1,f=!1;const p={id:c.id,setLayout(m){i=m},begin(m){const y=(()=>{let b=!1;return{isPrevented:()=>b,preventDefault:()=>{b=!0}}})();return this.emit("activate",y),y.isPrevented()?Promise.resolve():(d=!0,this.emit("activated"),l.begin({model:c,paths:m,accept:!0,objectSelections:p}))},clear(){return f=!1,this.emit("cleared"),i.qListObject?c.clearSelections("/qListObjectDef"):c.resetMadeSelections()},confirm(){return f=!1,d=!1,this.emit("confirmed"),this.emit("deactivated"),l.end(!0)},cancel(){return f=!1,d=!1,this.emit("canceled"),this.emit("deactivated"),l.end(!1)},select(m){var y=this;return be(function*(){const b=y.begin([m.params[0]]);if(!s.isModal())return!1;yield b;const _=yield c[m.method](...m.params);return f="resetMadeSelections"!==m.method,!!_||(c.resetMadeSelections(),!1)})()},canClear:()=>i&&i.qListObject&&i.qListObject.qDimensionInfo?!i.qListObject.qDimensionInfo.qLocked&&!i.qListObject.qDimensionInfo.qIsOneAndOnlyOne:f,canConfirm:()=>i&&i.qListObject&&i.qListObject.qDimensionInfo?!i.qListObject.qDimensionInfo.qLocked:f,canCancel:()=>!(i&&i.qListObject&&i.qListObject.qDimensionInfo&&i.qListObject.qDimensionInfo.qLocked),isActive:()=>d,isModal:()=>s.isModal(p),goModal:m=>l.begin({model:c,paths:m,accept:!1,objectSelections:p}),noModal:function(){return l.end(arguments.length>0&&void 0!==arguments[0]&&arguments[0])}};return Bv(p),p};function oA(t,i,s,l){const c=Array.isArray(s)?s:[s],[d]=tv(t),[f]=ec(i),[p]=a2(),m=p.get(t.id),[y,b]=P.useState();return P.useEffect(()=>{d&&i&&!y&&b(jO({appSelections:d,appModal:m,model:i}))},[d,i]),P.useEffect(()=>{if(!y)return()=>{};const{activateClickOut:_,deactivateClickOut:w}=(t=>{let{elements:i,objectSelections:s,options:l={}}=t;const c=function(d){let{elements:f,handleClickOutside:p}=d;return m=>{if(!document.contains(m.target))return;const y=f.map(b=>"string"==typeof b?document.querySelector(b):null==b?void 0:b.current).filter(b=>!!b&&!!document.contains(b));y.length&&!y.some(b=>b.contains(m.target))&&p(m)}}({elements:i,handleClickOutside:()=>s.confirm.call(s)});return{activateClickOut(){var d;document.addEventListener("mousedown",c),null==l||null===(d=l.onSelectionActivated)||void 0===d||d.call(l)},deactivateClickOut(){var d;document.removeEventListener("mousedown",c),null==l||null===(d=l.onSelectionDeactivated)||void 0===d||d.call(l)}}})({elements:c,objectSelections:y,options:l});return y.addListener("activated",_),y.addListener("deactivated",w),()=>{y.isActive()&&y.confirm(),y.removeListener("activated",_),y.removeListener("deactivated",w)}},[y]),P.useEffect(()=>{y&&y.setLayout(f)},[y,f]),[y]}function sA(){const t=ee(ee({itemStates:{},ignoreSelectionState:!1,selectedInEngine:[],enginePages:[],setPages:void 0,lastRowCount:void 0,lastApprMaxGlyphCount:void 0,selectDisabled:void 0},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),{},{update(i){var s,l;let{setPages:c,pages:d,isSingleSelect:f,selectDisabled:p,layout:m}=i;this.setPages=c,this.lastRowCount===m.qListObject.qSize.qcy&&this.lastApprMaxGlyphCount===m.qListObject.qDimensionInfo.qApprMaxGlyphCount||(this.lastRowCount=m.qListObject.qSize.qcy,this.lastApprMaxGlyphCount=m.qListObject.qDimensionInfo.qApprMaxGlyphCount,this.clearItemStates(!1)),t.enginePages!==d&&void 0!==d&&(t.enginePages=null!=d?d:[],t.selectedInEngine=UT(d),t.selectableValuesUpdating=!1,t.triggerStateChanged()),t.isSingleSelect=f,t.selectDisabled=p||t.selectDisabled,t.isDimCalculated=null!==(s=null==m||null===(l=m.qListObject)||void 0===l||null===(l=l.qDimensionInfo)||void 0===l?void 0:l.qIsCalculated)&&void 0!==s&&s},allowedToSelect:()=>!(t.selectDisabled()||t.isDimCalculated&&t.selectableValuesUpdating),setSelectableValuesUpdating(){t.selectableValuesUpdating=!0},useClientItemState:i=>t.ignoreSelectionState||i in t.itemStates,isSelected:i=>t.useClientItemState(i)?!!t.itemStates[i]:t.selectedInEngine.includes(i),getState(i){const{qElemNumber:s,qState:l}=i;return t.useClientItemState(s)?t.itemStates[s]?"XS"===l?"XS":"S":"S"===l||"XS"===l?"A":l:l},updateItemNoEvents(i,s,l){const c=t.isSelected(i);c&&!s?t.itemStates[i]=!1:c||(null==l||l.push(i),t.itemStates[i]=!0)},triggerStateChanged(){if(this.setPages){const i=t.applySelectionsOnPages(t.enginePages);this.setPages(i)}},applySelectionsOnPages:i=>i.map(l=>{const c=l.qMatrix.map(d=>{const[f]=d,p=t.getState(f);return[ee(ee({},f),{},{qState:p}),...d.slice(1)]});return ee(ee({},l),{},{qMatrix:c})}),updateItem(i,s,l){t.updateItemNoEvents(i,s,l),t.triggerStateChanged()},updateItems(i,s,l){i.forEach(c=>{t.updateItemNoEvents(c,s,l)}),t.triggerStateChanged()},clearItemStates(i){t.itemStates={},t.ignoreSelectionState=i}});return t}const zv=function(t,i){var s;return null!==(s=null==t?void 0:t[i])&&void 0!==s?s:arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0};function Fw(t){const i=(null==t?void 0:t.qListObject.qDimensionInfo.qStateCounts)||{};return zv(i,"qSelected",0)+zv(i,"qSelectedExcluded",0)+zv(i,"qLocked",0)+zv(i,"qLockedExcluded",0)>0}const jf={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},zO=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,jN=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,BN=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,qO=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,VO=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,HO=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,{floor:Bf}=Math,{round:tc}=Math;class jt{constructor(){for(var i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];let c,d,f,p,m,y,b,_,w,S,E,C,I=0,D=0,k=0,A=1;if(this._invalid=!1,s[0]instanceof jt)I=s[0]._r,D=s[0]._g,k=s[0]._b,A=s[0]._a,this._invalid=s[0]._invalid;else if(s.length<3)if("string"==typeof s[0])if(C=s[0],E=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(C))I=parseInt(E[1],10),D=parseInt(E[2],10),k=parseInt(E[3],10);else if(E=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(C))I=parseInt(E[1],10),D=parseInt(E[2],10),k=parseInt(E[3],10),A=parseFloat(E[4]);else if(E=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(C))A=parseInt(E[1],10)/255,I=parseInt(E[2],10),D=parseInt(E[3],10),k=parseInt(E[4],10);else if(E=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(C))I=parseInt(E[1],16),D=parseInt(E[2],16),k=parseInt(E[3],16),A=1;else if(E=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(C))I=parseInt(E[1]+E[1],16),D=parseInt(E[2]+E[2],16),k=parseInt(E[3]+E[3],16),A=1;else if(E=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(C)){switch(c=parseFloat(E[1]),d=parseFloat(E[3]),p=parseFloat(E[5]),c%=360,d/=100,p/=100,c=c<0?0:c>360?360:c,d=d<0?0:d>1?1:d,p=p<0?0:p>1?1:p,y=p<=.5?2*p*d:(2-2*p)*d,b=c/60,_=y*(1-Math.abs(b%2-1)),w=[],b=Math.floor(b),b){case 0:w=[y,_,0];break;case 1:w=[_,y,0];break;case 2:w=[0,y,_];break;case 3:w=[0,_,y];break;case 4:w=[_,0,y];break;case 5:w=[y,0,_];break;default:w=[0,0,0]}S=p-.5*y,I=w[0]+S,D=w[1]+S,k=w[2]+S,I=tc(255*I),D=tc(255*D),k=tc(255*k),A=1}else if(E=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(C)){switch(c=parseFloat(E[1]),d=parseFloat(E[3]),p=parseFloat(E[5]),A=parseFloat(E[7]),c%=360,d/=100,p/=100,c=c<0?0:c>360?360:c,d=d<0?0:d>1?1:d,p=p<0?0:p>1?1:p,y=p<=.5?2*p*d:(2-2*p)*d,b=c/60,_=y*(1-Math.abs(b%2-1)),w=[],b=Math.floor(b),b){case 0:w=[y,_,0];break;case 1:w=[_,y,0];break;case 2:w=[0,y,_];break;case 3:w=[0,_,y];break;case 4:w=[_,0,y];break;case 5:w=[y,0,_];break;default:w=[0,0,0]}S=p-.5*y,I=w[0]+S,D=w[1]+S,k=w[2]+S,I=tc(255*I),D=tc(255*D),k=tc(255*k)}else if(E=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(C)){switch(c=parseFloat(E[1]),d=parseFloat(E[3]),m=parseFloat(E[5]),c%=360,d/=100,m/=100,c=c<0?0:c>360?360:c,d=d<0?0:d>1?1:d,m=m<0?0:m>1?1:m,y=m*d,b=c/60,_=y*(1-Math.abs(b%2-1)),w=[],b=Math.floor(b),b){case 0:w=[y,_,0];break;case 1:w=[_,y,0];break;case 2:w=[0,y,_];break;case 3:w=[0,_,y];break;case 4:w=[_,0,y];break;case 5:w=[y,0,_];break;default:w=[0,0,0]}S=m-y,I=w[0]+S,D=w[1]+S,k=w[2]+S,I=tc(255*I),D=tc(255*D),k=tc(255*k),A=1}else jf[C.toLowerCase()]?(f=C.toLowerCase(),I=jf[f].r,D=jf[f].g,k=jf[f].b,A="number"==typeof jf[f].a?jf[f].a:1):this._invalid=!0;else"number"==typeof s[0]&&s[0]>=0&&"argb"===s[1]?(A=(4278190080&s[0])>>>24,A/=255,I=(16711680&s[0])>>16,D=(65280&s[0])>>8,k=255&s[0]):"number"==typeof s[0]&&s[0]>=0?(I=(16711680&s[0])>>16,D=(65280&s[0])>>8,k=255&s[0]):this._invalid=!0;else s.length>=3?(I=s[0],D=s[1],k=s[2],A=arguments.length>=4?s[3]:1):this._invalid=!0;Number.isNaN(+I+D+k+A)&&(this._invalid=!0),this._r=Bf(I),this._g=Bf(D),this._b=Bf(k),this._a=A,this._spaces={}}isInvalid(){return this._invalid}setAlpha(i){this._a=i,this._spaces={}}getAlpha(){return this._a}toRGB(){return this._spaces.rgb||(this._spaces.rgb=jt.toRGB(this)),this._spaces.rgb}toRGBA(){return this._spaces.rgba||(this._spaces.rgba=jt.toRGBA(this)),this._spaces.rgba}toString(){return this._spaces.rgb||(this._spaces.rgb=jt.toRGB(this)),this._spaces.rgb}toHex(){return this._spaces.hex||(this._spaces.hex=jt.toHex(this)),this._spaces.hex}toHSL(i){return this._spaces.hsl||(this._spaces.hsl=jt.toHSL(this,i)),this._spaces.hsl}toHSLA(i){return this._spaces.hsla||(this._spaces.hsla=jt.toHSLA(this,i)),this._spaces.hsla}toHSV(){const i=this.toHSVComponents();return"hsv(".concat(i.h,",").concat(i.s,",").concat(i.v,")")}toHSVComponents(){return this._spaces.hsvComp||(this._spaces.hsvComp=jt.toHSVComponents(this)),this._spaces.hsvComp}toNumber(){return this._spaces.num||(this._spaces.num=jt.toNumber(this)),this._spaces.num}isDark(){return this.isInvalid()||this.getLuminance()<125}getLuminance(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}shiftLuminance(i){const s=this.toHSLA(),l=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(s),c=parseFloat(l[1]),d=parseFloat(l[3]);let f=parseFloat(l[5]);const p=parseFloat(l[7]);return f+=i,f=Math.max(0,Math.min(f,100)),"hsla(".concat(c,",").concat(d,",").concat(f,",").concat(p,")")}isEqual(i){return i instanceof jt||(i=new jt(i)),this._r===i._r&&this._g===i._g&&this._b===i._b&&this._a===i._a}blend(i,s){const l=Bf(this._r+(i._r-this._r)*s),c=Bf(this._g+(i._g-this._g)*s),d=Bf(this._b+(i._b-this._b)*s),f=Bf(this._a+(i._a-this._a)*s);return"rgba(".concat([l,c,d,f].join(","),")")}createShiftedColor(i){(void 0===i||Number.isNaN(+i))&&(i=1);const s=this.getLuminance(),c=this.shiftLuminance(20*(s*(this._g<126?1:1+this._g/512)<220?.8+1/(s+1)*4:-(.8+s/255*1))*i);return new jt(c)}static toRGB(i){if(i instanceof jt)return"rgb(".concat([i._r,i._g,i._b].join(","),")");"string"==typeof i&&(i=jt.toNumber(i));const s=(65280&i)>>8,l=255&i;return"rgb(".concat((16711680&i)>>16,",").concat(s,",").concat(l,")")}static toRGBA(i,s){if(i instanceof jt)return"rgba(".concat([i._r,i._g,i._b,void 0!==s?s:i._a].join(","),")");"string"==typeof i&&(i=jt.toNumber(i));const l=(65280&i)>>8,c=255&i;return"rgba(".concat((16711680&i)>>16,",").concat(l,",").concat(c,",").concat(void 0!==s?s:i._a,")")}static toHex(i){let s,l,c;return i instanceof jt?(s=i._r.toString(16),l=i._g.toString(16),c=i._b.toString(16),1===s.length&&(s="0".concat(s)),1===l.length&&(l="0".concat(l)),1===c.length&&(c="0".concat(c)),"#".concat([s,l,c].join(""))):("string"==typeof i&&(i=jt.toNumber(i)),s=((16711680&i)>>16).toString(16),l=((65280&i)>>8).toString(16),c=(255&i).toString(16),1===s.length&&(s="0".concat(s)),1===l.length&&(l="0".concat(l)),1===c.length&&(c="0".concat(c)),"#".concat(s).concat(l).concat(c))}static toHSL(i,s){let l,c,d,f=0;"string"==typeof i&&(i=new jt(i));const p=i._r/255,m=i._g/255,y=i._b/255,b=Math.max(p,m,y),_=Math.min(p,m,y);if(c=s?.21*p+.72*m+.07*y:(b+_)/2,b===_)l=0,f=0;else{switch(d=b-_,l=c>.5?d/(2-b-_):d/(b+_),b){case p:f=(m-y)/d+(m<y?6:0);break;case m:f=(y-p)/d+2;break;case y:f=(p-m)/d+4}f/=6}return"hsl(".concat(360*f,",").concat(100*l,",").concat(100*c,")")}static toHSLA(i,s){let l,c,d,f=0;"string"==typeof i&&(i=new jt(i));const p=i._r/255,m=i._g/255,y=i._b/255,b=i._a,_=Math.max(p,m,y),w=Math.min(p,m,y);if(c=s?.21*p+.72*m+.07*y:(_+w)/2,_===w)l=0,f=0;else{switch(d=_-w,l=c>.5?d/(2-_-w):d/(_+w),_){case p:f=(m-y)/d+(m<y?6:0);break;case m:f=(y-p)/d+2;break;case y:f=(p-m)/d+4}f/=6}return"hsla(".concat(360*f,",").concat(100*l,",").concat(100*c,",").concat(b,")")}static toHSVComponents(i){let s,l,c=0;"string"==typeof i&&(i=new jt(i));const d=i._r/255,f=i._g/255,p=i._b/255,m=Math.max(d,f,p),y=Math.min(d,f,p),b=m;if(m===y)s=0,c=0;else{switch(l=m-y,s=0===l?0:l/b,m){case d:c=(f-p)/l+(f<p?6:0);break;case f:c=(p-d)/l+2;break;case p:c=(d-f)/l+4}c/=6}return{h:360*c%360,s:100*s,v:100*b}}static toNumber(){for(var i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];if(1===s.length&&s[0]instanceof jt)return(s[0]._r<<16)+(s[0]._g<<8)+s[0]._b;let c,d,f=0,p=0,m=0;return 1===s.length&&"string"==typeof s[0]&&(d=s[0],(c=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(d))?(f=parseInt(c[1],10),p=parseInt(c[2],10),m=parseInt(c[3],10)):(c=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(d))?(f=parseInt(c[1],16),p=parseInt(c[2],16),m=parseInt(c[3],16)):(c=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(d))&&(f=parseInt(c[1]+c[1],16),p=parseInt(c[2]+c[2],16),m=parseInt(c[3]+c[3],16))),(f<<16)+(p<<8)+m}static blend(i,s,l){const c=(16711680&(i=jt.toNumber(i)))>>16,d=(65280&i)>>8,f=255&i;return(c+(((16711680&(s=jt.toNumber(s)))>>16)-c)*l<<16)+(d+(((65280&s)>>8)-d)*l<<8)+(f+((255&s)-f)*l)}static getBlend(i,s,l){return new jt(i._r+(s._r-i._r)*l,i._g+(s._g-i._g)*l,i._b+(s._b-i._b)*l,i._a+(s._a-i._a)*l)}static isCSSColor(i){return!(arguments.length>1||"string"!=typeof i)&&(zO.test(i)||jN.test(i)||BN.test(i)||qO.test(i)||VO.test(i)||HO.test(i)||jf[i.toLowerCase()])}static getBestContrast(i,s,l){const c=i.getLuminance();return Math.abs(c-s.getLuminance())>Math.abs(c-l.getLuminance())?s:l}static getContrast(i,s){if(!i||!s)return;const l=i.getLuminance()/100,c=s.getLuminance()/100;return l>c?(l+.05)/(c+.05):(c+.05)/(l+.05)}static isDark(){for(var i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];return new jt(...s).isDark(...s)}static useDarkLabel(i,s){return i._a>.5?!i.isDark():!s}}const nc=/,(?![^(]*\))/,$O=/\s(?![^(]*\))/,GO=/^[0-9]+[a-zA-Z%]+?$/,fg=["none","inset","initial","inherit"],jw=t=>{if(!t)return;const i=t.split($O).filter(l=>!fg.includes(l.toLowerCase())).at(-1);return!i||"0"===(l=i)||GO.test(l)||fg.includes(i.toLowerCase())?void 0:i;var l},UO=t=>t?t.split(nc).map(i=>i.trim()):[];function Bw(t,i,s,l){return s&&l?s.getStyle("object.".concat(l),t,i):s?s.getStyle("",t,i):void 0}function zw(t,i,s,l,c){return t&&l?"none"!==t.color?l.getColorPickerColor(t,true):void 0:Bw(i,s,l,c)}const WO={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},KO={"top-left":"top left","top-center":"top center","top-right":"top right","center-left":"center left","center-center":"center center","center-right":"center right","bottom-left":"bottom left","bottom-center":"bottom center","bottom-right":"bottom right"};function aA(t,i){const s=null==t?void 0:t.bgImage;if(s){let l="";if("media"===s.mode||"media"===t.useImage){const f=null==s?void 0:s.mediaUrl,{qUrl:p}=(null==f?void 0:f.qStaticContentUrl)||{};l=p?decodeURIComponent(p):void 0,l=function qN(t,i){return i?function(s){var l;let c,d,f,p;return null!=s&&null!==(l=s.session)&&void 0!==l&&l.config?(c=s.session.config,d=new URL(c.url),p="wss:"===d.protocol,f=p?"https://":"http://",f+d.host):""}(t)+i:void 0}(i,l)}"expression"===s.mode&&(l=s.expressionUrl?decodeURIComponent(s.expressionUrl):void 0);const c=function(f){var p;let m="center center";return null!=f&&null!==(p=f.bgImage)&&void 0!==p&&p.position&&(m=KO[f.bgImage.position]),m}(t),d=function(f){var p;let m=WO.originalSize;const y=null==f||null===(p=f.bgImage)||void 0===p?void 0:p.sizing;return y&&(m=WO[y]),m}(t);return l?{url:l,pos:c,size:d}:void 0}}function lA(t,i,s){const l=null==t?void 0:t.bgColor;return l&&i&&(l.useExpression||l.useColorExpression)?i.validateColor(l.colorExpression):zw(null==l?void 0:l.color,"","backgroundColor",i,s)}function QO(t,i,s){var l,c;const d=Bw("shadow","boxShadow",i,s);return((f,p,m)=>{if(f&&fg.includes(f.toLowerCase()))return f.toLowerCase();const y=UO(f);if(1!==y.length)return f;let b=m;if(!b){const w=UO(p);if(1!==w.length)return f;b=jw(w[0])}if(!b)return f;const _=jw(y[0]);return _?f.replace(_,b):"".concat(f," ").concat(b)})((null==t||null===(l=t.shadow)||void 0===l?void 0:l.boxShadow)||d,d,zw(null==t||null===(c=t.shadow)||void 0===c?void 0:c.boxShadowColor,"shadow","boxShadowColor",i,s))}function cA(t,i,s,l){var c;const d=(null==t||null===(c=t.title)||void 0===c?void 0:c[i])||{},f=(m=i,(p=d.fontStyle)&&Array.isArray(p)?p:"main"===m?["bold"]:[]);var p,m;return{fontFamily:d.fontFamily||s.getStyle("object.".concat(l),"title.".concat(i),"fontFamily"),fontSize:d.fontSize||s.getStyle("object.".concat(l),"title.".concat(i),"fontSize"),color:d.color&&"none"!==d.color.color?s.getColorPickerColor(d.color,!0):s.getStyle("object.".concat(l),i,"color"),fontWeight:f.includes("bold")?"bold":"normal",fontStyle:f.includes("italic")?"italic":"normal",textDecoration:f.includes("underline")?"underline":"initial"}}const YO=(t,i)=>{let s=!1;const l=new jt(t),c=new jt(i);if(!(c.isInvalid()||l.isInvalid()||c.getAlpha()<1||l.getAlpha()<1)){try{s=jt.getContrast(l,c)}catch(d){s=void 0}return s}};function Ou(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#000",l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#FFF";const c=new jt(l),d=new jt(t),f=new jt(i);if(d.isInvalid()||f.isInvalid()||d.getAlpha()<1||f.getAlpha()<1)return i;const p=YO(c,d),m=YO(f,d),y=p>m||p>3;let b;return b=i&&m>1.5&&!y?i:y?l:s,b}const ZO=["theme","selections"];function qw(t){var i,s,l,c,d,f,p,m;let{app:y,themeApi:b,theme:_,components:w=[],checkboxes:S=!1}=t;const E=function(){const H={};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach(z=>{const K=null==z?void 0:z.key;ZO.includes(K)&&(H[K]=z)}),H}(w),C=(H,z)=>b.getStyle("object.listBox",H,z),I=H=>(null==H?void 0:H.index)>0||null!=H&&H.color?b.getColorPickerColor(H,!1):void 0,D=function(H){var z,K,Y,X,re,q,$,W,te,J,ae,ue,_e,ve,Ee;let{getColorPickerColor:fe,theme:we,getListboxStyle:pe,overrides:ye,checkboxes:Ne}=H;const Oe=fe(null===(z=ye.theme)||void 0===z||null===(z=z.content)||void 0===z?void 0:z.fontColor)||pe("content","color")||(null===(K=we.palette)||void 0===K?void 0:K.text.primary),qe=!Ne&&(null===(Y=null===(X=ye.theme)||void 0===X||null===(X=X.content)||void 0===X?void 0:X.useContrastColor)||void 0===Y||Y),Ve=(null===(re=ye.selections)||void 0===re?void 0:re.colors)||{},lt=fe(Ve.selected)||(null===(q=we.palette)||void 0===q?void 0:q.selected.main)||"#009845",xe=fe(Ve.alternative)||(null===($=we.palette)||void 0===$?void 0:$.selected.alternative)||"#E4E4E4",Ke=fe(Ve.excluded)||(null===(W=we.palette)||void 0===W?void 0:W.selected.excluded)||"#A9A9A9",Xe=fe(Ve.selectedExcluded)||(null===(te=we.palette)||void 0===te?void 0:te.selected.selectedExcluded)||"#A9A9A9",Tt=fe(Ve.possible)||pe("","backgroundColor")||(null===(J=we.palette)||void 0===J?void 0:J.selected.possible)||"#FFFFFF";let Je=Oe||(null===(ae=we.palette)||void 0===ae?void 0:ae.selected.selectedContrastText),nt=Oe||(null===(ue=we.palette)||void 0===ue?void 0:ue.selected.alternativeContrastText),ot=Oe||(null===(_e=we.palette)||void 0===_e?void 0:_e.selected.excludedContrastText),xt=Oe||(null===(ve=we.palette)||void 0===ve?void 0:ve.selected.selectedExcludedContrastText),Wt=Oe||(null===(Ee=we.palette)||void 0===Ee?void 0:Ee.selected.possibleContrastText);return qe&&(Je=Ou(lt,Oe),nt=Ou(xe,Oe),ot=Ou(Ke,Oe),xt=Ou(Xe,Oe),Wt=Ou(Tt,Oe)),{selected:lt,alternative:xe,excluded:Ke,selectedExcluded:Xe,possible:Tt,selectedContrast:Je,alternativeContrast:nt,excludedContrast:ot,selectedExcludedContrast:xt,possibleContrast:Wt}}({getColorPickerColor:I,theme:_,getListboxStyle:C,overrides:E,checkboxes:S}),k=E.theme||{},A=I(null===(i=k.header)||void 0===i?void 0:i.fontColor)||C("title.main","color"),M=function(H){let z,{themeApi:K,themeOverrides:Y}=H;const X=null==Y?void 0:Y.background;return X&&(z=null!=X&&X.useExpression?lA({bgColor:X},K,"listBox"):K.getColorPickerColor(null==X?void 0:X.color,!1)),z}({themeApi:b,themeOverrides:k}),T=null!==(s=k.background)&&void 0!==s&&s.image?aA({bgImage:k.background.image},y):void 0,O=M||C("","backgroundColor")||_.palette.background.default,N=function(H,z){const K=new jt(z("","backgroundColor"));return K.setAlpha(.7),K.isInvalid()?H:K.toRGBA()}(O,C),B=Ou("#fff",C("content","color")),j=(null===(l=k.header)||void 0===l?void 0:l.fontStyle)||{},G=(null===(c=k.content)||void 0===c?void 0:c.fontStyle)||{},Q=(H,z,K)=>!0===H&&z||!1===H&&K||void 0;return{background:{backgroundColor:O,backgroundImage:null==T||!T.url||null!=T&&T.url.startsWith("url(")?void 0:"url('".concat(T.url,"')"),backgroundRepeat:"no-repeat",backgroundSize:null==T?void 0:T.size,backgroundPosition:null==T?void 0:T.pos},header:{color:A,fontSize:(null===(d=k.header)||void 0===d?void 0:d.fontSize)||C("title.main","fontSize"),fontFamily:(null===(f=k.header)||void 0===f?void 0:f.fontFamily)||C("title.main","fontFamily"),fontWeight:Q(j.bold,"bold","normal")||C("title.main","fontWeight")||"bold",textDecoration:j.underline?"underline":"initial",fontStyle:Q(j.italic,"italic","normal")||C("title.main","fontStyle")||"initial"},content:{backgroundColor:S?void 0:D.possible,color:D.possibleContrast||C("content","color"),fontSize:(null===(p=k.content)||void 0===p?void 0:p.fontSize)||C("content","fontSize"),fontFamily:(null===(m=k.content)||void 0===m?void 0:m.fontFamily)||C("content","fontFamily"),fontWeight:Q(G.bold,"bold","normal")||C("content","fontWeight")||"normal",textDecoration:G.underline?"underline":"initial",fontStyle:Q(G.italic,"italic","normal")||C("content","fontStyle")||"initial"},search:{color:B,borderColor:_.palette.divider,highlightBorderColor:_.palette.custom.focusBorder,backgroundColor:N,backdropFilter:"blur(8px)"},selections:D}}function qv(t){let{alignTo:i,anchorOrigin:s={vertical:"bottom",horizontal:"center"},transformOrigin:l={vertical:"top",horizontal:"center"},show:c,close:d,app:f,fieldName:p,stateName:m="$",autoFocus:y,components:b,checkboxes:_,selectDisabled:w=(()=>!1)}=t;const S=Boolean(null==p?void 0:p.qLibraryId),E=c&&Boolean(i.current),[C,I]=P.useState(0),D=Wr(),k=P.useRef(),[A]=mw({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:m,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],qFieldDefs:S?void 0:[p]},qLibraryId:S?p.qLibraryId:void 0}},f,p,m),M=P.useCallback(()=>{A.lock("/qListObjectDef")},[A]),T=P.useCallback(()=>{A.unlock("/qListObjectDef")},[A]),{translator:O,themeApi:N}=P.useContext(ai),B=P.useRef(),j=P.useRef(),[G]=oA(f,A,j),[Q]=ec(A),[H]=P.useState(()=>sA({selectDisabled:w})),{checkboxes:z=_}=Q||{},K=qw({themeApi:N,theme:D,components:b,checkboxes:z});if(P.useEffect(()=>{G&&E&&(G.isModal(A)||G.goModal("/qListObjectDef"))},[G,E]),!A||!Q||!O)return null;const Y=!0===Q.qListObject.qDimensionInfo.qLocked,X=($,W)=>{G.noModal("escapeKeyDown"!==W),d()},re=Rw({layout:Q,model:A,translator:O,selectionState:H}),q=Fw(Q);return V.createElement(Wp,{open:E,onClose:X,anchorEl:i.current,anchorOrigin:s,transformOrigin:l,slotProps:{paper:{style:{minWidth:"250px"}}}},V.createElement(Te,{container:!0,direction:"column",gap:0,ref:j},V.createElement(Te,{item:!0,container:!0,style:{padding:D.spacing(1)}},V.createElement(Te,{item:!0},Y?V.createElement(Ms,{onClick:T,disabled:!Y,size:"large"},V.createElement(da,{title:O.get("Listbox.Unlock")})):V.createElement(Ms,{onClick:M,disabled:!q,size:"large"},V.createElement(lN,{title:O.get("Listbox.Lock")}))),V.createElement(Te,{item:!0,xs:!0}),V.createElement(Te,{item:!0},V.createElement(Pw,{layout:Q,more:{enabled:!Y,actions:re,alignTo:B,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:G,onConfirm:X,onCancel:()=>X(0,"escapeKeyDown")}}))),V.createElement(Te,{item:!0,xs:!0},V.createElement("div",{ref:B}),V.createElement(Te,{item:!0,ref:k},V.createElement(iA,{styles:K,visible:!0,model:A,listCount:C,selections:G,selectionState:H,keyboard:{enabled:!1},autoFocus:null==y||y})),V.createElement(Mv,{model:A,app:f,layout:Q,selections:G,selectionState:H,direction:"ltr",onSetListCount:$=>I($),onCtrlF:()=>{const $=k.current.querySelector("input");null==$||$.focus()},styles:K}))))}function js(t){let{field:i,api:s,stateIx:l=0,skipHandleShowListBoxPopover:c=!1,moreAlignTo:d=null,onClose:f=(()=>{})}=t;const{translator:p}=P.useContext(ai),m=d||P.useRef(),y=Wr(),[b,_]=P.useState(!1),S=()=>{_(!1),f()},E=i.selections[l];void 0===E.qTotal&&(E.qTotal=0);const C=E.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},I=(C.qSelected+C.qLocked)/E.qTotal,D=C.qAlternative/E.qTotal,k=(C.qExcluded+C.qLockedExcluded+C.qSelectedExcluded)/E.qTotal,A=C.qSelected+C.qSelectedExcluded+C.qLocked+C.qLockedExcluded,M=0===A&&0===E.qTotal;let T="";E.qTotal===A&&E.qTotal>1?T=p.get("CurrentSelections.All"):A>1&&E.qTotal?T=p.get("CurrentSelections.Of",[A,E.qTotal]):E.qSelectedFieldSelectionInfo&&(T=E.qSelectedFieldSelectionInfo.map(Q=>Q.qName).join(", ")),"$"!==i.states[l]&&(T="".concat(i.states[l],": ").concat(T));const O=[{color:y.palette.selected.main,ratio:I},{color:y.palette.selected.alternative,ratio:D},{color:y.palette.selected.excluded,ratio:k}];O.forEach((Q,H)=>{Q.offset=H?O[H-1].offset+O[H-1].ratio:0});let N=null,B=null,j=null,G=null;return d||(N=V.createElement(Te,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:E.qLocked?"0.3":""}},V.createElement(En,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},E.qField),V.createElement(En,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},T)),E.qLocked?B=V.createElement(Te,{item:!0},V.createElement(Ms,{size:"large"},V.createElement(da,null))):E.qOneAndOnlyOne||(B=V.createElement(Te,{item:!0},V.createElement(Ms,{title:p.get("Selection.Clear"),onClick:Q=>{Q.stopPropagation(),s.clearField(E.qField,i.states[l])},size:"large"},V.createElement(Mu,null)))),j=V.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===M&&O.map(Q=>V.createElement("div",{key:Q.color,style:{position:"absolute",background:Q.color,height:"100%",top:0,width:"".concat(100*Q.ratio,"%"),left:"".concat(100*Q.offset,"%")}}))),G=V.createElement(Te,{container:!0,gap:1,ref:m,sx:{backgroundColor:y.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:y.palette.action.hover}},onClick:!1===c&&(Q=>{Q.currentTarget.contains(Q.target)&&_(!b)})||null},N,B,j,b&&V.createElement(qv,{alignTo:m,show:b,close:S,app:s.model,fieldName:E.qField,stateName:i.states[l]}))),d?V.createElement(qv,{alignTo:m,show:!0,close:S,app:s.model,fieldName:E.qField,stateName:i.states[l]}):G}var XO=t=>Ao((i=>ee(ee({},i),{},{shapes:[{type:"path",attrs:{d:"M8,9 L12.5,4.5 L14,6 L9.5,10.5 L8,12 L2,6 L3.5,4.5 L8,9 Z"}}]}))(t));const uA={item:"".concat("MultiState","-item")},dA=De(Te)(t=>{let{theme:i}=t;return{["&.".concat(uA.item)]:{backgroundColor:i.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:i.palette.action.hover},height:"100%",alignItems:"center"}}});function sr(t){let{field:i,api:s,moreAlignTo:l=null,onClose:c=(()=>{})}=t;const[d,f]=P.useState(!!l),[p,m]=P.useState(-1),[y,b]=P.useState(l?l.current:null),_=l||P.useRef(),{translator:w}=P.useContext(ai),S=w.get("Selection.ClearAllStates"),E=()=>{m(-1),c()};let C=null;l||(C=V.createElement(V.Fragment,null,V.createElement(Te,{item:!0,xs:!0,zeroMinWidth:!0},V.createElement(z2,{style:{padding:"0px 8px"},color:"secondary",badgeContent:i.states.length},V.createElement(En,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},i.name))),V.createElement(Te,{item:!0},V.createElement("div",{style:{width:"12px"}})),V.createElement(Te,{item:!0},V.createElement(Ms,{size:"large"},V.createElement(XO,null)))));const I=V.createElement($p,{dense:!0},V.createElement(Mn,{title:S,onClick:()=>{i.states.forEach(A=>s.clearField(i.name,A))}},V.createElement(C_,{variant:"contained",fullWidth:!0},S)),i.states.map((A,M)=>V.createElement(Mn,{key:M,title:i.name,onClick:T=>{return N=M,T.stopPropagation(),f(!1),void m(N);var N}},V.createElement(Bp,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},V.createElement(js,{field:i,api:s,stateIx:M,skipHandleShowListBoxPopover:!0}))))),D=V.createElement(Wp,{open:d,onClose:()=>{f(!1),c()},anchorEl:y,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},I),k=l?D:V.createElement(dA,{container:!0,gap:0,className:uA.item,onClick:A=>{A.currentTarget.contains(A.target)&&(b(A.currentTarget),_.current=A.currentTarget,f(!d))}},C,d&&D,p>-1&&V.createElement(qv,{alignTo:_,show:p>-1,close:E,app:s.model,fieldName:i.selections[p].qField,stateName:i.states[p]}));return l&&p>-1?V.createElement(qv,{alignTo:_,show:p>-1,close:E,app:s.model,fieldName:i.selections[p].qField,stateName:i.states[p]}):k}const hA={item:"".concat("More","-item"),badge:"".concat("More","-badge")},pA=De(Te)(t=>{let{theme:i}=t;return{["&.".concat(hA.item)]:{backgroundColor:i.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:i.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(hA.badge)]:{padding:i.spacing(0,1)}}});function UN(t){let{items:i=[],api:s}=t;const l=Wr(),[c,d]=P.useState(!1),[f,p]=P.useState(-1),[m,y]=P.useState(null),b=P.useRef(),_=()=>{p(-1)};let w=null;return f>-1&&(w=i[f].states.length>1?V.createElement(sr,{field:i[f],api:s,moreAlignTo:b,onClose:_}):V.createElement(js,{field:i[f],api:s,skipHandleShowListBoxPopover:!0,moreAlignTo:b,onClose:_})),V.createElement(pA,{container:!0,gap:0,className:hA.item,onClick:S=>{S.currentTarget.contains(S.target)&&(y(S.currentTarget),b.current=S.currentTarget,d(!c))}},V.createElement(Te,{item:!0},V.createElement(Bp,{borderRadius:l.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:l.palette.selected.main,color:l.palette.selected.mainContrastText}},V.createElement(En,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",i.length))),V.createElement(Te,{item:!0},V.createElement(Ms,{size:"large"},V.createElement(XO,null))),c&&V.createElement(Wp,{open:c,onClose:()=>{d(!1)},anchorEl:m,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},V.createElement($p,{dense:!0},i.map((S,E)=>V.createElement(Mn,{key:E,title:S.name,onClick:C=>{return D=E,C.stopPropagation(),d(!1),void p(D);var D}},V.createElement(Bp,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},V.createElement(S.states.length>1?sr:js,{field:S,api:s})))))),w)}function gA(t,i){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"$";t.qSelections.forEach(l=>{const c=l.qField,d=i[c]=i[c]||{name:c,states:[],selections:[]};-1===d.states.indexOf(s)&&(d.states.push(s),d.selections.push(l))})}function JO(t){let{api:i,app:s}=t;const l=Wr(),[c]=yw(s),[d]=ec(c),[f,p]=P.useState({items:[],more:[]}),[m]=ZC(),[y,b]=Nf(),[_,w]=P.useState(0);return P.useEffect(()=>{if(!b)return;const{width:S}=b,E=Math.floor(S)-72,C=Math.floor(E/120);w(C)},[b]),P.useEffect(()=>{if(!(s&&c&&d&&_))return;const S=function(E){if(!E)return[];const C={};return E.qSelectionObject&&gA(E.qSelectionObject,C),E.alternateStates&&E.alternateStates.forEach(I=>gA(I.qSelectionObject,C,I.stateName)),Object.keys(C).map(I=>C[I]).filter(I=>!I.selections.some(D=>D.qIsHidden))}(d);p(E=>{const C=S;if((()=>{const{model:D}=m.get(s.id)||{};return"njsListbox"===(null==D?void 0:D.genericType)})()&&C.length+1===E.items.length){const D=E.items.filter(M=>!1===C.some(T=>M.name===T.name))[0],{qField:k}=D.selections[0];D.selections=[{qField:k}];const A=E.items.indexOf(D);C.splice(A,0,D)}let I=[];return _<C.length&&(I=C.splice(_-C.length)),{items:C,more:I}})},[s,c,d,i.isInModal(),_]),V.createElement(Te,{ref:y,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},f.items.map(S=>V.createElement(Te,{item:!0,key:"".concat(S.states.join("::"),"::").concat(S.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(120,"px"),background:l.palette.background.paper,borderRight:"1px solid ".concat(l.palette.divider)}},V.createElement(S.states.length>1?sr:js,{field:S,api:i}))),f.more.length>0&&V.createElement(Te,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(72,"px"),background:l.palette.background.paper,borderRight:"1px solid ".concat(l.palette.divider)}},V.createElement(UN,{items:f.more,api:i})))}var eL=t=>Ao((i=>ee(ee({},i),{},{shapes:[{type:"path",attrs:{d:"M10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 Z M16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,-5.07265313e-17 13.5,0 L15,0 C15.5522847,1.01453063e-16 16,0.44771525 16,1 L16,2.5 Z M10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 C6,0.223857625 6.22385763,-5.07265313e-17 6.5,0 L9.5,0 C9.77614237,5.07265313e-17 10,0.223857625 10,0.5 Z M1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 5.18696197e-13,2.77614237 5.18696197e-13,2.5 L5.18696197e-13,1 C5.18696197e-13,0.44771525 0.44771525,-1.01453063e-16 1,0 L2.5,0 C2.77614237,5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 5.18696197e-13,15.5522847 5.18696197e-13,15 L5.18696197e-13,13.5 C5.18696197e-13,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M4,7 C7.49095643,7 10,10.1337595 10,12.1872632 C10,12.1872632 8.16051135,9.86624054 4,10 L4,12 C4,12 2.66666667,10.8333333 -1.0658141e-14,8.5 C-2.59348099e-13,8.5 1.33333333,7.33333333 4,5 C4,5 4,5.66666667 4,7 Z"}}]}))(t)),tL=t=>Ao((i=>ee(ee({},i),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M12,7 C12,5.66666667 12,5 12,5 C14.6666667,7.33333333 16,8.5 16,8.5 C13.3333333,10.8333333 12,12 12,12 L12,10 C7.83948865,9.86624054 6,12.1872632 6,12.1872632 C6,10.1337595 8.50904357,7 12,7 Z"}}]}))(t));function nL(t){let{api:i,app:s}=t;const{translator:l}=P.useContext(ai),[c]=function(d){const[f]=yw(d),[p]=ec(f),[m]=vw(d),[y,b]=P.useState(null);return P.useEffect(()=>{m&&f&&p&&((t,i,s)=>{const l=[...s.qStateNames||[]].map(c=>({stateName:c,qSelectionObjectDef:{qStateName:c}}));(i&&i.alternateStates?i.alternateStates.map(c=>c.stateName):[]).join("::")!==(s.qStateNames||[]).map(c=>c).join("::")&&t.applyPatches([{qOp:"replace",qPath:"/alternateStates",qValue:JSON.stringify(l)}],!0)})(f,p,m)},[m,f,p]),P.useEffect(()=>{if(!p)return;let _=!1,w=!1,S=!1;[p,...p.alternateStates||[]].forEach(E=>{_=_||E.qSelectionObject&&E.qSelectionObject.qBackCount>0,w=w||E.qSelectionObject&&E.qSelectionObject.qForwardCount>0,S=S||(E.qSelectionObject&&E.qSelectionObject.qSelections||[]).filter(C=>!0!==C.qLocked).length>0}),b({canGoBack:_,canGoForward:w,canClear:S})},[p]),[y,f,p]}(s);return V.createElement(Te,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},V.createElement(Te,{item:!0},V.createElement(Ms,{style:{marginRight:"8px"},disabled:!c||!c.canGoBack,title:l.get("Navigate.Back"),onClick:()=>i.back(),size:"large"},V.createElement(eL,null))),V.createElement(Te,{item:!0},V.createElement(Ms,{style:{marginRight:"8px"},disabled:!c||!c.canGoForward,title:l.get("Navigate.Forward"),onClick:()=>i.forward(),size:"large"},V.createElement(tL,null))),V.createElement(Te,{item:!0},V.createElement(Ms,{disabled:!c||!c.canClear,title:l.get("Selection.ClearAll"),onClick:()=>i.clear(),size:"large"},V.createElement(MO,null))))}const mA=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function Bs(t){let[i,s]=t;return(i+(Math.random()*(s-i)|0)).toString(32)}function fa(){return mA.map(Bs).join("")}function rL(t){let{app:i}=t;const s=Wr(),[l]=tv(i);return l?V.createElement(Te,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:s.palette.background.paper,minHeight:"40px"}},V.createElement(Te,{item:!0,style:{borderRight:"1px solid ".concat(s.palette.divider)}},V.createElement(nL,{api:l,app:i})),V.createElement(Te,{item:!0,xs:!0,style:{backgroundColor:s.palette.background.darker,overflow:"hidden"}},V.createElement(JO,{api:l,app:i}))):null}let Za;Za="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;let $w=null,Gw=null;const zf=Za.clearTimeout,Uw=Za.setTimeout,Hv=Za.cancelAnimationFrame||Za.mozCancelAnimationFrame||Za.webkitCancelAnimationFrame,iL=Za.requestAnimationFrame||Za.mozRequestAnimationFrame||Za.webkitRequestAnimationFrame;null==Hv||null==iL?($w=zf,Gw=function(t){return Uw(t,20)}):($w=function([t,i]){Hv(t),zf(i)},Gw=function(t){const i=iL(function(){zf(s),t()}),s=Uw(function(){Hv(i),t()},20);return[i,s]});class sL extends P.Component{constructor(...i){super(...i),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:s,disableWidth:l,onResize:c}=this.props;if(this._parentNode){const d=window.getComputedStyle(this._parentNode)||{},f=parseFloat(d.paddingLeft||"0"),p=parseFloat(d.paddingRight||"0"),m=parseFloat(d.paddingTop||"0"),y=parseFloat(d.paddingBottom||"0"),b=this._parentNode.getBoundingClientRect(),_=b.height-m-y,w=b.width-f-p,S=this._parentNode.offsetHeight-m-y,E=this._parentNode.offsetWidth-f-p;(s||this.state.height===S&&this.state.scaledHeight===_)&&(l||this.state.width===E&&this.state.scaledWidth===w)||(this.setState({height:S,width:E,scaledHeight:_,scaledWidth:w}),"function"==typeof c&&c({height:S,scaledHeight:_,scaledWidth:w,width:E}))}},this._setRef=s=>{this._autoSizer=s}}componentDidMount(){const{nonce:i}=this.props,s=this._autoSizer?this._autoSizer.parentNode:null;if(null!=s&&s.ownerDocument&&s.ownerDocument.defaultView&&s instanceof s.ownerDocument.defaultView.HTMLElement){this._parentNode=s;const l=s.ownerDocument.defaultView.ResizeObserver;null!=l?(this._resizeObserver=new l(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(s)):(this._detectElementResize=function oL(t){let i,s,l,c,d,f,p;const m="undefined"!=typeof document&&document.attachEvent;if(!m){f=function(E){const C=E.__resizeTriggers__,I=C.firstElementChild,D=C.lastElementChild,k=I.firstElementChild;D.scrollLeft=D.scrollWidth,D.scrollTop=D.scrollHeight,k.style.width=I.offsetWidth+1+"px",k.style.height=I.offsetHeight+1+"px",I.scrollLeft=I.scrollWidth,I.scrollTop=I.scrollHeight},d=function(E){return E.offsetWidth!==E.__resizeLast__.width||E.offsetHeight!==E.__resizeLast__.height},p=function(E){if(E.target.className&&"function"==typeof E.target.className.indexOf&&E.target.className.indexOf("contract-trigger")<0&&E.target.className.indexOf("expand-trigger")<0)return;const C=this;f(this),this.__resizeRAF__&&$w(this.__resizeRAF__),this.__resizeRAF__=Gw(function(){d(C)&&(C.__resizeLast__.width=C.offsetWidth,C.__resizeLast__.height=C.offsetHeight,C.__resizeListeners__.forEach(function(I){I.call(C,E)}))})};let y=!1,b="";l="animationstart";const _="Webkit Moz O ms".split(" ");let w="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),S="";{const E=document.createElement("fakeelement");if(void 0!==E.style.animationName&&(y=!0),!1===y)for(let C=0;C<_.length;C++)if(void 0!==E.style[_[C]+"AnimationName"]){S=_[C],b="-"+S.toLowerCase()+"-",l=w[C],y=!0;break}}s="resizeanim",i="@"+b+"keyframes "+s+" { from { opacity: 0; } to { opacity: 0; } } ",c=b+"animation: 1ms "+s+"; "}return{addResizeListener:function(y,b){if(m)y.attachEvent("onresize",b);else{if(!y.__resizeTriggers__){const _=y.ownerDocument,w=Za.getComputedStyle(y);w&&"static"===w.position&&(y.style.position="relative"),function(C){if(!C.getElementById("detectElementResize")){const I=(i||"")+".resize-triggers { "+(c||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',D=C.head||C.getElementsByTagName("head")[0],k=C.createElement("style");k.id="detectElementResize",k.type="text/css",null!=t&&k.setAttribute("nonce",t),k.styleSheet?k.styleSheet.cssText=I:k.appendChild(C.createTextNode(I)),D.appendChild(k)}}(_),y.__resizeLast__={},y.__resizeListeners__=[],(y.__resizeTriggers__=_.createElement("div")).className="resize-triggers";const S=_.createElement("div");S.className="expand-trigger",S.appendChild(_.createElement("div"));const E=_.createElement("div");E.className="contract-trigger",y.__resizeTriggers__.appendChild(S),y.__resizeTriggers__.appendChild(E),y.appendChild(y.__resizeTriggers__),f(y),y.addEventListener("scroll",p,!0),l&&(y.__resizeTriggers__.__animationListener__=function(C){C.animationName===s&&f(y)},y.__resizeTriggers__.addEventListener(l,y.__resizeTriggers__.__animationListener__))}y.__resizeListeners__.push(b)}},removeResizeListener:function(y,b){if(m)y.detachEvent("onresize",b);else if(y.__resizeListeners__.splice(y.__resizeListeners__.indexOf(b),1),!y.__resizeListeners__.length){y.removeEventListener("scroll",p,!0),y.__resizeTriggers__.__animationListener__&&(y.__resizeTriggers__.removeEventListener(l,y.__resizeTriggers__.__animationListener__),y.__resizeTriggers__.__animationListener__=null);try{y.__resizeTriggers__=!y.removeChild(y.__resizeTriggers__)}catch(_){}}}}}(i),this._detectElementResize.addResizeListener(s,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const k=this.props,{children:i,disableHeight:c=!1,disableWidth:d=!1,style:m={},tagName:y="div"}=k,b=g3(k,["children","defaultHeight","defaultWidth","disableHeight","disableWidth","nonce","onResize","style","tagName"]),{height:_,scaledHeight:w,scaledWidth:S,width:E}=this.state,C={overflow:"visible"},I={};let D=!1;return c||(0===_&&(D=!0),C.height=0,I.height=_,I.scaledHeight=w),d||(0===E&&(D=!0),C.width=0,I.width=E,I.scaledWidth=S),P.createElement(y,bI({ref:this._setRef,style:bI(bI({},C),m)},b),!D&&i(I))}}function yA(t){null==t||t.querySelectorAll(".last-focused").forEach(i=>{i.classList.remove("last-focused")})}function aL(t){return(null==t?void 0:t.closest(".njs-cell"))||(null==t?void 0:t.closest(".qv-gridcell"))}const vA=De("div")(()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"}));function lL(t){let{text:i}=t;const{translator:s}=P.useContext(ai);return V.createElement(vA,null,s.get(i))}var cL=t=>Ao((i=>ee(ee({},i),{},{shapes:[{type:"path",attrs:{d:"M15.9993744,3 L15.9993744,5 L4.99937445,5 L4.99937445,3 L15.9993744,3 Z M8.99937445,7 L15.9993744,7 L15.9993744,9 L8.99937445,9 L8.99937445,7 Z M11.9993744,11 L15.9993744,11 L15.9993744,13 L11.9993744,13 L11.9993744,11 Z M2.2,11 L7,11 L7,9.00369263 C7,8.89323568 7.08954305,8.80369263 7.2,8.80369263 C7.2549016,8.80369263 7.30738916,8.82626165 7.34515712,8.86610844 L10.1852182,11.8624926 C10.2583124,11.93961 10.258346,12.0604218 10.1852948,12.13758 L7.34523376,15.1373102 C7.2692928,15.2175206 7.14270711,15.2209817 7.06249671,15.1450407 C7.02260076,15.1072683 7,15.0547472 7,14.9998069 L7,12.9043747 C4.79351111,12.9043747 2.8018683,12.9266213 1.02507156,12.9711145 L1.02507252,12.9711526 C0.472939773,12.9849787 0.014139487,12.5485949 0.000313396522,11.9964622 C0.000104473692,11.988119 -1.32268838e-12,11.9797736 -1.3231638e-12,11.9714278 L-1.83320026e-12,3 L2,3 L2,10.8 C2,10.9104569 2.08954305,11 2.2,11 Z"}}]}))(t));const hg={fontSize:"12px"},bA=De(bf)(t=>{let{theme:i,isLoading:s}=t;return{position:"absolute",top:0,left:0,height:48,zIndex:2,background:i.palette.custom.disabledBackground,opacity:1,color:i.palette.custom.disabledContrastText,width:"100%",display:"flex",justifyContent:s?"center":"flex-start",paddingLeft:16,paddingRight:16,borderRadius:0,"& *, & p":{color:i.palette.custom.disabledContrastText},"& i":{padding:"".concat(7,"px")}}}),uL=De(Te,{shouldForwardProp:t=>!["styles","isRtl"].includes(t)})(t=>{let{styles:i,isRtl:s}=t;return ee(ee({flexDirection:s?"row-reverse":"row",wrap:"nowrap",minHeight:32,alignContent:"center"},i.header),{},{"& *":{color:i.header.color}})}),dL=De(En)(t=>{let{styles:i}=t;return ee(ee({},i.header),{},{display:"block",alignItems:"center",paddingRight:"1px"})});function _A(t){let{translator:i,toggleLock:s,keyboard:l,isLoading:c}=t;const d=i.get("SelectionToolbar.ClickToUnlock");return V.createElement(bA,{title:d,tabIndex:l.enabled?0:-1,onClick:s,"data-testid":"listbox-unlock-button",id:"listbox-unlock-button",isLoading:c},c?V.createElement(gv,{size:16,variant:"indeterminate",color:"primary"}):V.createElement(da,{disableRipple:!0,style:hg}),!c&&V.createElement(En,{fontSize:"14px"},d))}let wA=0;function fL(t){var i,s;let{layout:l,translator:c,styles:d,isRtl:f,showLock:p,showSearchIcon:m,isDrillDown:y,constraints:b,onShowSearch:_,classes:w,containerRect:S,isPopover:E,showToolbar:C,showDetachedToolbarOnly:I,containerRef:D,model:k,selectionState:A,isDirectQuery:M,selections:T,keyboard:O,autoConfirm:N}=t;const[B,j]=P.useState(I),[G,Q]=P.useState(null==l||null===(i=l.qListObject)||void 0===i||null===(i=i.qDimensionInfo)||void 0===i?void 0:i.qLocked),[H,z]=P.useState(!1);P.useEffect(()=>{var fe;Q(null==l||null===(fe=l.qListObject)||void 0===fe||null===(fe=fe.qDimensionInfo)||void 0===fe?void 0:fe.qLocked)},[null==l||null===(s=l.qListObject)||void 0===s||null===(s=s.qDimensionInfo)||void 0===s?void 0:s.qLocked]);const K=P.useRef(null),Y=p&&G,X=!p&&G,re=m||X||y,q=9-(re?7:0),$=f?9-(re?7:0):4,W=(m?28:0)+(X?28:0)+(y?28:0),te=function(fe){let{isLocked:we,setLocked:pe,settingLockedState:ye,model:Ne,setSettingLockedState:Oe}=fe;return()=>{const qe=new Date;if(qe-wA<500)return Promise.resolve();if(ye)return()=>{};Oe(!0),wA=qe;const Ve=we?Ne.unlock:Ne.lock;return pe(!we),Ve.call(Ne,"/qListObjectDef").catch(()=>{pe(we)}).finally(()=>{setTimeout(()=>{Oe(!1)},0)})}}({isLocked:G,setLocked:Q,settingLockedState:H,setSettingLockedState:z,model:k}),J=Rw({layout:l,model:k,translator:c,selectionState:A,isDirectQuery:M}),ae=G||!p?void 0:[{key:"lock",type:void 0,label:c.get("SelectionToolbar.ClickToLock"),getSvgIconShape:$T,enabled:()=>!H&&!A.selectDisabled()&&Fw(l),action:te}],ue=null!=b&&b.active?V.createElement(Nw,{title:c.get("Listbox.Search"),size:"large",style:ee(ee({},hg),{},{padding:"".concat(7,"px")})}):V.createElement(Ms,{onClick:_,tabIndex:-1,title:c.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},V.createElement(Nw,{style:hg}));P.useEffect(()=>{if(!K.current||!S)return;const fe=function(we){var pe,ye,Ne,Oe;let{containerRect:qe,titleRef:Ve,iconsWidth:lt,paddingLeft:xe,paddingRight:Ke}=we;const Tt=qe.width<(null!==(pe=null==Ve||null===(ye=Ve.current)||void 0===ye?void 0:ye.clientWidth)&&void 0!==pe?pe:0)+lt+(xe+Ke)+2+128,Je=(null==Ve||null===(Ne=Ve.current)||void 0===Ne?void 0:Ne.scrollWidth)>(null==Ve||null===(Oe=Ve.current)||void 0===Oe?void 0:Oe.offsetWidth);return!(!Tt&&!Je)}({containerRect:S,titleRef:K,iconsWidth:W,paddingLeft:q,paddingRight:$});j(I||fe)},[W,q,$,K.current,I,Object.entries(S||{}).sort().join(",")]);const _e=function(fe){let{isDetached:we,showToolbar:pe,containerRef:ye,isLocked:Ne,listboxSelectionToolbarItems:Oe,extraItems:qe,selections:Ve,keyboard:lt,autoConfirm:xe}=fe;return{autoConfirm:xe,isDetached:we,show:pe&&!we,popover:{show:pe&&we,anchorEl:ye.current},extraItems:qe,more:{enabled:!Ne,actions:Oe,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:pe,api:Ve,onConfirm:()=>{null==lt||lt.focus()},onCancel:()=>{null==lt||lt.focus()}}}}({isDetached:!E&&B,showToolbar:C,containerRef:D,isLocked:G,extraItems:ae,listboxSelectionToolbarItems:J,selections:T,keyboard:O,autoConfirm:N}),ve=V.createElement(Pw,Vi({isRtl:f,layout:l},_e));if(I)return ve;const Ee=X?V.createElement(da,{size:"large",style:ee(ee({},hg),{},{padding:"".concat(7,"px")})}):void 0;return V.createElement(uL,{item:!0,container:!0,styles:d,isRtl:f,marginY:1,paddingLeft:"".concat(q,"px"),paddingRight:"".concat($,"px"),className:"header-container"},Y&&V.createElement(_A,{isLoading:H,translator:c,toggleLock:te,keyboard:O}),re&&V.createElement(Te,{item:!0,container:!0,alignItems:"center",width:W,className:"header-action-container"},Ee||m&&ue,y&&V.createElement(cL,{tabIndex:-1,title:c.get("Listbox.DrillDown"),style:ee(ee({},hg),{},{padding:"".concat(7,"px")})})),V.createElement(Te,{item:!0,xs:!0,minWidth:0,justifyContent:f?"flex-end":"flex-start",className:w.listBoxHeader},V.createElement(dL,{variant:"h6",noWrap:!0,ref:K,title:l.title,styles:d},l.title)),V.createElement(Te,{item:!0,display:"flex"},ve))}const pg="ListBoxInline",Xa={listBoxHeader:"".concat(pg,"-listBoxHeader"),screenReaderOnly:"".concat(pg,"-screenReaderOnly"),listboxWrapper:"".concat(pg,"-listboxWrapper")},KN=De(Te,{shouldForwardProp:t=>!["containerPadding","isGridMode","styles"].includes(t)})(t=>{let{theme:i,containerPadding:s,isGridMode:l,styles:c}=t;return ee(ee({},c.background),{},{["& .".concat(Xa.listBoxHeader)]:{alignSelf:"center",display:"flex"},["& .".concat(Xa.screenReaderOnly)]:{position:"absolute",height:0,width:0,overflow:"hidden"},["& .".concat(Xa.listboxWrapper)]:{padding:s},"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(i.palette.custom.focusBorder," !important")},"&:focus ::-webkit-scrollbar-track":{boxShadow:l?void 0:"inset -2px -2px 0px #3F8AB3"},"&:focus-visible":{outline:"none"}})}),qf=V.memo(function(t){var i,s,l,c,d;let{options:f,layout:p}=t;const{app:m,direction:y,frequencyMode:b,checkboxes:_,search:w=!0,focusSearch:S=!1,rangeSelect:E=!0,model:C,selections:I,update:D,fetchStart:k,postProcessPages:A,calculatePagesHeight:M,showGray:T=!0,scrollState:O,renderedCallback:N,toolbar:B=!0,isPopover:j=!1,showLock:G=!1,components:Q,selectDisabled:H=(()=>!1)}=f,z=Wr(),{translator:K,keyboardNavigation:Y,themeApi:X,constraints:re}=P.useContext(ai),{checkboxes:q=_}=p||{},$=qw({app:m,themeApi:X,theme:z,components:Q,checkboxes:q}),W=function(st){let{appLayout:ut}=st;return!(null==ut||!ut.qIsDirectQueryMode)}({appLayout:null==m?void 0:m.layout}),te=P.useRef(),[J,ae]=Nf(),[ue,_e]=(()=>{const[st,ut]=P.useState({});return[st,P.useCallback(sn=>{ut({current:sn})},[ut])]})(),[ve,Ee]=P.useState(!1),[fe,we]=P.useState(!1),pe=P.useRef(!1),[ye,Ne]=P.useState({down:0,up:0,scrollPosition:""}),Oe=st=>Ne(ut=>ee(ee({},ut),st)),[qe,Ve]=P.useState({start:0,stop:0}),[lt]=tv(m),[xe]=P.useState(()=>sA({selectDisabled:H})),Ke=function(st){let{containerRef:ut,enabled:Bt}=st;const[sn,Tn]=P.useState(!1);return{enabled:Bt,active:sn,innerTabStops:!Bt||sn,blur(Ct){var Ft;if(!Bt)return;Tn(!1);const It=aL(ut.current)||(null===(Ft=ut.current)||void 0===Ft?void 0:Ft.parentElement);var On;null==(On=ut.current)||On.querySelectorAll('[tabIndex="0"]').forEach(ti=>{ti.setAttribute("tabIndex",-1)}),yA(ut.current),Ct&&It&&(It.setAttribute("tabIndex",0),It.focus())},focus(){if(!Bt)return;Tn(!0);const Ct=ut.current,Ft=null==Ct?void 0:Ct.querySelector(".search input"),It=null==Ct?void 0:Ct.querySelector(".value.last-focused"),On=null==Ct?void 0:Ct.querySelector(".value.selector, .value"),ti=null==Ct?void 0:Ct.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),Yn=null==Ct?void 0:Ct.querySelector("#listbox-unlock-button"),Fr=Ft||It||On||Yn||ti;null==Fr||Fr.setAttribute("tabIndex",0),null==Fr||Fr.focus()},focusSelection(){const Ct=document.querySelector("#listbox-unlock-button"),Ft=document.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),It=Ct||Ft;null==It||It.setAttribute("tabIndex",0),null==It||It.focus()}}}({containerRef:te,enabled:Y}),Xe=P.useCallback(()=>(st=>{var ut,Bt;let{app:sn,appSelections:Tn}=st;return null!==(ut=null===(Bt=sn.isInModalSelection)||void 0===Bt?void 0:Bt.call(sn))&&void 0!==ut?ut:Tn.isInModal()})({app:m,appSelections:lt}),[m,lt]),Tt=null==p?void 0:p.qListObject.qDimensionInfo.qError,Je=Tt&&re.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",{handleKeyDown:nt,handleOnMouseEnter:ot,handleOnMouseLeave:xt,globalKeyDown:Wt}=P.useMemo(()=>function WN(t){let{keyboard:i,hovering:s,updateKeyScroll:l,containerRef:c,currentScrollIndex:d,isModal:f,constraints:p}=t;return{handleKeyDown:m=>{const{keyCode:y,shiftKey:b=!1}=m.nativeEvent,_=()=>{m.stopPropagation(),m.preventDefault()};if(!i.enabled)return;const w=m.currentTarget.closest(".listbox-container"),S=f();switch(y){case Et.TAB:if(S)b?rO(w)||Bk(w):Bk(w)||rO(w);else{if(!b)break;i.blur(!0)}_();break;case Et.ENTER:case Et.SPACE:if(!m.target.classList.contains("listbox-container"))break;i.focus(),_();break;case Et.ESCAPE:(E=>{const{currentTarget:C,target:I}=E,D=I.classList.contains("listbox-container"),k=aL(C.closest(".listbox-container")),A=1===(null==k?void 0:k.querySelectorAll(".listbox-container").length);if(D||A)i.blur(!0);else{yA(c.current),C.classList.add("last-focused"),i.blur();const M=C.closest(".listbox-container");M.setAttribute("tabIndex",-1),null==M||M.focus()}})(m)}},handleOnMouseEnter:()=>{(()=>{const m=(null==p?void 0:p.select)||(null==p?void 0:p.active),y=f();return m||y})()||(s.current=!0)},handleOnMouseLeave:()=>{s.current&&(s.current=!1)},globalKeyDown:m=>{if(!s.current)return;const{keyCode:y,ctrlKey:b=!1,shiftKey:_=!1}=m;switch(y){case Et.ARROW_UP:l({up:1});break;case Et.ARROW_DOWN:l({down:1});break;case Et.PAGE_UP:l({up:d.stop-d.start});break;case Et.PAGE_DOWN:l({down:d.stop-d.start});break;case Et.HOME:l({scrollPosition:b&&_?"overflowStart":"start"});break;case Et.END:l({scrollPosition:b&&_?"overflowEnd":"end"});break;default:return}m.preventDefault()}}}({keyboard:Ke,hovering:pe,updateKeyScroll:Oe,containerRef:te,currentScrollIndex:qe,app:m,appSelections:lt,constraints:re,isModal:Xe}),[Ke,pe,Oe,te,qe,m,lt,re,Xe]);P.useEffect(()=>(document.addEventListener("keydown",Wt),()=>{document.removeEventListener("keydown",Wt)}),[Wt]),P.useEffect(()=>{!0===w&&we(!0);const st=()=>{Ee(!0)},ut=()=>{Ee(!1),"toggle"===w&&we(!1)};return j&&(I.isActive()||(I.begin("/qListObjectDef"),I.on("activated",st),I.on("deactivated",ut)),Ee(j)),B&&I&&(I.isModal()||(I.on("activated",st),I.on("deactivated",ut)),Ee(I.isActive())),()=>{I&&I.removeListener&&(I.removeListener("activated",st),I.removeListener("deactivated",ut))}},[B,I,j]),P.useEffect(()=>{if(ue&&ue.current&&(w&&S||"toggle"===w&&fe)){const st=ue.current.querySelector("input");st&&st.focus()}},[ue&&ue.current,fe,w,S]);const{wildCardSearch:Kt,searchEnabled:lr,autoConfirm:Be=!1,layoutOptions:qt={}}=null!=p?p:{},gn=null==p||null===(i=p.qListObject)||void 0===i||null===(i=i.qDimensionInfo)||void 0===i?void 0:i.qLocked,mn=!1!==lr&&"toggle"===w&&!gn,Nr="H"===(null==p||null===(s=p.qListObject)||void 0===s||null===(s=s.qDimensionInfo)||void 0===s?void 0:s.qGrouping),Kr=(null==p||null===(l=p.title)||void 0===l?void 0:l.length)&&!1!==(null==p?void 0:p.showTitle),_r=B&&!Kr&&!j,Qt=B&&Kr||j,$t="rtl"===y;if(!C||!p||!K)return null;const un=!0===w||"toggle"===w&&fe&&!1!==lr,$n=null!==(c=qt.dense)&&void 0!==c&&c,Gn=()=>{we(!fe)},Dn=()=>{if("toggle"===w)Gn();else{const st=ue.current.querySelector("input");null==st||st.focus()}},Fe=un&&"toggle"===w,Ge="grid"===(null==qt?void 0:qt.dataLayout),Pt=function(st){let ut,{isGridMode:Bt,dense:sn,height:Tn,layoutOrder:Nt}=st;if(Bt){let Ct;Ct=$k({isGridMode:Bt,dense:sn})>Tn?"0px":"2px",ut="row"===Nt?"".concat(Ct," 4px"):"".concat(Ct," 6px ").concat(Ct," 4px")}else ut=void 0;return ut}({isGridMode:Ge,dense:$n,height:null===(d=te.current)||void 0===d?void 0:d.clientHeight,layoutOrder:qt.layoutOrder});Tt&&(null==N||N());const At=Qt?30:0,Yt=V.createElement(fL,{showSearchIcon:mn,isDrillDown:Nr,onShowSearch:Gn,isPopover:j,showToolbar:ve,isDirectQuery:W,autoConfirm:Be,showDetachedToolbarOnly:_r,layout:p,translator:K,styles:$,isRtl:$t,showLock:G,constraints:re,classes:Xa,containerRect:ae,containerRef:te,model:C,selectionState:xe,selections:I,keyboard:Ke});return V.createElement(V.Fragment,null,_r&&Yt,V.createElement(KN,{className:"listbox-container",container:!0,tabIndex:Ke.enabled?-1:void 0,direction:"column",gap:0,containerPadding:Pt,styles:$,style:{height:"100%",flexFlow:"column nowrap"},onKeyDown:nt,onMouseEnter:ot,onMouseLeave:xt,ref:st=>{te.current=st,J(st)},isGridMode:Ge,"aria-label":Ke.active?K.get("Listbox.ScreenReaderInstructions"):""},Qt&&Yt,V.createElement(Te,{item:!0,container:!0,direction:"column",height:"100%",minHeight:At,role:"region","aria-label":K.get("Listbox.ResultFilterLabel")},V.createElement(Te,{item:!0,ref:_e},V.createElement(iA,{selections:I,selectionState:xe,model:C,dense:$n,keyboard:Ke,visible:un,search:w,autoFocus:Fe,wildCardSearch:Kt,searchEnabled:lr,direction:y,hide:mn&&Gn,styles:$})),V.createElement(Te,{item:!0,xs:!0,className:Xa.listboxWrapper},Tt?V.createElement(lL,{text:Je}):V.createElement(sL,null,st=>{let{height:ut,width:Bt}=st;return V.createElement(Mv,{model:C,app:m,constraints:re,layout:p,selections:I,selectionState:xe,direction:y,frequencyMode:b,rangeSelect:E,checkboxes:q,height:ut,width:Bt,update:D,fetchStart:k,postProcessPages:A,calculatePagesHeight:M,keyboard:Ke,showGray:T,scrollState:O,keyScroll:{state:ye,reset:()=>Ne({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:qe,set:Ve},renderedCallback:N,onCtrlF:Dn,isModal:Xe,styles:$})})))))});function xA(t){let{options:i={}}=t;const{model:s}=i,[l]=ec(s);return V.createElement(qf,{options:i,layout:l})}const rc={qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:"",qShowAlternatives:!0,frequencyEnabled:!1,qFrequencyMode:"N",qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},histogram:!1,frequencyMax:void 0,checkboxes:!1,searchEnabled:!0,showTitle:!0,wildCardSearch:!1,autoConfirm:!1,layoutOptions:{dense:!1,dataLayout:"singleColumn",layoutOrder:"row",maxVisibleColumns:{auto:!0,maxColumns:3},maxVisibleRows:{auto:!0,maxRows:3}},title:""};function hL(t){let i;switch(!0){case["none","N","NX_FREQUENCY_NONE"].includes(t):i="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(t):i="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(t):i="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(t):i="R";break;default:i="N"}return i}const YN=["__DO_NOT_USE__"],Gv=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{__DO_NOT_USE__:i={}}=t,s={update:void 0,fetchStart:void 0,showGray:!0,focusSearch:!1,sessionModel:void 0,selectionsApi:void 0,selectDisabled:void 0,postProcessPages:void 0,calculatePagesHeight:!1};return ee(ee(ee({},_n(t,YN)),s),i)};function Lu(t){let{app:i,fieldIdentifier:s,qId:l,stateName:c,element:d,options:f,renderedCallback:p}=t;const{isExistingObject:m,hasExternalSelectionsApi:y}=function(I){let{qId:D,options:k}=I;return{isExistingObject:!(!D&&!k.sessionModel),hasExternalSelectionsApi:!!k.selectionsApi}}({qId:l,options:f});m||Object.assign(f,{frequencyMode:hL(f.frequencyMode)});const[b,_]=P.useState(0);P.useEffect(()=>{if(b)throw new Error("Source or selection Api can not change after a listbox has been mounted");_(b+1)},[m,y]);const w=m?function QN(t){let{app:i,qId:s,options:l={}}=t;const[c,d]=P.useState(),[f]=xk(),{sessionModel:p}=l,m=["dense","frequencyMode","checkboxes","histogram","title","stateName","listLayout"],y=Object.keys(l).filter(b=>m.includes(b));if(y.length)throw new Error('Option "'.concat(y.join(", "),'" is not applicable for existing objects.'));return P.useEffect(()=>{var b;Promise.resolve(p||(b=be(function*(_){return f.get(_)||(yield i.getObject(_))}),function(_){return b.apply(this,arguments)})(s)).then(b=>{var _;f.get((_=b).id)||(f.set(_.id,_),_.once("closed",()=>{f.clear(_.id)})),d(b)})},[]),c}({app:i,qId:l,options:f}):function(I){var D;let{app:k,fieldIdentifier:A,stateName:M,options:T={}}=I;const[O,N]=P.useState(""),[B,j]=P.useState(!0),[G,Q]=P.useState(),[H,z]=P.useState(),K=null!==(D=T.title)&&void 0!==D?D:H;let{histogram:Y=!1,frequencyMode:X="N"}=T;O&&O.failedToFetchFieldDef&&(Y=!1,X="N"),P.useEffect(()=>{A.qLibraryId&&(Y||"N"!==X)?be(function*(){try{const Ee=yield k.getDimension(A.qLibraryId),fe=yield Ee.getLayout();z(fe.qDim.title),N("N"===fe.qDim.qGrouping?fe.qDim.qFieldDefs?fe.qDim.qFieldDefs[0]:"":{multiFieldDim:!0}),j(!1)}catch(Ee){throw j(!1),N({failedToFetchFieldDef:!0}),new Error("Disabling frequency count and histogram: ".concat(Ee&&Ee.message))}})():(j(!1),z(A))},[]);const{dense:re,checkboxes:q,listLayout:$,properties:W={}}=T,te={dense:re};"horizontal"===$&&(te.dataLayout="grid",te.layoutOrder="column",te.maxVisibleColumns={auto:!0},te.maxVisibleRows={auto:!1,maxRows:1});const J=P.useRef();J.current||(J.current=fa());const ae=ni(!0,{},rc,{qInfo:{qId:J.current},qListObjectDef:{qStateName:M,qFrequencyMode:Y&&"N"===X?"V":X},histogram:Y,checkboxes:q,layoutOptions:te,title:K});let ue;ni(!0,ae,W),A.qLibraryId?(ae.qListObjectDef.qLibraryId=A.qLibraryId,ue=A.qLibraryId):(ae.qListObjectDef.qDef.qFieldDefs=[A],ue=A),"P"!==X&&Y&&(ae.frequencyMax=null!=O&&O.multiFieldDim?"fetch":{qValueExpression:cg(A.qLibraryId?O:ue)});const[_e]=mw(ae,B?null:k,ue,M);return P.useEffect(()=>{_e&&Q(_e)},[_e]),G}({app:i,fieldIdentifier:s,stateName:c,options:f}),S=P.useRef(d),E=y?f.selectionsApi:oA(i,w,[S,".njs-action-toolbar-more",".njs-action-toolbar-popover"],f)[0],C=P.useMemo(()=>ee(ee({},f),{},{selections:E,model:w,app:i,renderedCallback:p}),[f,E,w,i]);return E&&w?V.createElement(xA,{options:C}):null}const pL={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function ZN(t){let{app:i,fieldIdentifier:s,stateName:l,element:c,options:d={}}=t;const[f,p]=P.useState(!!d.show);return V.createElement(qv,{show:f,app:i,alignTo:{current:c},anchorOrigin:d.anchorOrigin,transformOrigin:d.transformOrigin,close:()=>{p(!1),d.onPopoverClose&&d.onPopoverClose()},fieldName:s,stateName:l,autoFocus:d.autoFocus,components:d.components})}function Uv(t,i){for(let s=0;s<t.length;++s)t[s]>=0&&t[s]>=i&&++t[s];t.push(i)}function SA(t,i){let s=0;for(let l=0;l<t.length;++l)t[l]>i?--t[l]:t[l]===i&&(s=l);return t.splice(s,1),s}function EA(t){let{dc:i,def:s,properties:l}=t;i.qDimensions=i.qDimensions||[],i.qMeasures=i.qMeasures||[],i.qInterColumnSortOrder=i.qInterColumnSortOrder||[],i.qInitialDataFetch=i.qInitialDataFetch||[],i.qColumnOrder=i.qColumnOrder||[],i.qExpansionState=i.qExpansionState||[];const c=l,d={dimensions:()=>i.qDimensions,measures:()=>i.qMeasures,addDimension(f){const p="string"==typeof f?(t=>({qDef:{qFieldDefs:[t]}}))(f):ee(ee({},f),{},{qDef:f.qDef||{}});return p.qDef.cId=p.qDef.cId||fa(),p.qDef.qSortCriterias=p.qDef.qSortCriterias||[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],p.qOtherTotalSpec=p.qOtherTotalSpec||{},p.qAttributeExpressions=p.qAttributeExpressions||[],p.qAttributeDimensions=p.qAttributeDimensions||[],i.qDimensions.length<d.maxDimensions()?(i.qDimensions.push(p),Uv(i.qInterColumnSortOrder,i.qDimensions.length-1),s.dimensions.added(p,c)):(i.qLayoutExclude=i.qLayoutExclude||{},i.qLayoutExclude.qHyperCubeDef=i.qLayoutExclude.qHyperCubeDef||{},i.qLayoutExclude.qHyperCubeDef.qDimensions=i.qLayoutExclude.qHyperCubeDef.qDimensions||[],i.qLayoutExclude.qHyperCubeDef.qMeasures=i.qLayoutExclude.qHyperCubeDef.qMeasures||[],i.qLayoutExclude.qHyperCubeDef.qDimensions.push(p)),p},removeDimension(f){const p=i.qDimensions.splice(f,1)[0];return SA(i.qInterColumnSortOrder,f),s.dimensions.removed(p,c,f),p},addMeasure(f){const p="string"==typeof f?(t=>({qDef:{qDef:t}}))(f):ee(ee({},f),{},{qDef:f.qDef||{}});p.qDef.cId=p.qDef.cId||fa(),p.qSortBy=p.qSortBy||{qSortByLoadOrder:1,qSortByNumeric:-1},p.qAttributeDimensions=p.qAttributeDimensions||[],p.qAttributeExpressions=p.qAttributeExpressions||[],i.qMeasures.length<d.maxMeasures()?(i.qMeasures.push(p),Uv(i.qInterColumnSortOrder,i.qDimensions.length+i.qMeasures.length-1),s.measures.added(p,c)):(i.qLayoutExclude=i.qLayoutExclude||{},i.qLayoutExclude.qHyperCubeDef=i.qLayoutExclude.qHyperCubeDef||{},i.qLayoutExclude.qHyperCubeDef.qDimensions=i.qLayoutExclude.qHyperCubeDef.qDimensions||[],i.qLayoutExclude.qHyperCubeDef.qMeasures=i.qLayoutExclude.qHyperCubeDef.qMeasures||[],i.qLayoutExclude.qHyperCubeDef.qMeasures.push(p))},removeMeasure(f){const p=i.qMeasures.splice(f,1)[0];SA(i.qInterColumnSortOrder,i.qDimensions.length+f),s.measures.removed(p,c,f)},maxDimensions:()=>s.dimensions.max(i.qMeasures.length),maxMeasures:()=>s.measures.max(i.qDimensions.length),canAddDimension:()=>i.qDimensions.length<d.maxDimensions(),canAddMeasure:()=>i.qMeasures.length<d.maxMeasures()};return d}function eF(t){let{dc:i,def:s,properties:l}=t;i.qInitialDataFetch=i.qInitialDataFetch||[];const c=l,d={dimensions:()=>i.qLibraryId||i.qDef&&i.qDef.qFieldDefs&&0!==i.qDef.qFieldDefs.length?[i]:[],measures:()=>[],addDimension(f){const p="string"==typeof f?(t=>({qDef:{qFieldDefs:[t]}}))(f):ee(ee({},f),{},{qDef:f.qDef||{}});return p.qDef.cId=p.qDef.cId||fa(),p.qDef.qSortCriterias=i.qDef.qSortCriterias||[{qSortByState:1,qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],Object.keys(p).forEach(m=>{i[m]=p[m]}),s.dimensions.added(p,c),p},removeDimension(f){const p=i;return delete i.qDef,delete i.qLibraryId,s.dimensions.removed(p,c,f),p},addMeasure(){},removeMeasure(){},maxDimensions:()=>1,maxMeasures:()=>0,canAddDimension:()=>0===d.dimensions().length,canAddMeasure:()=>!1};return d}const tF=t=>({qDef:{qFieldDefs:[t]}});function rF(t){let{children:i,halo:s}=t;return{addDimension:c=>be(function*(){const d=(t=>{let i;return i=ni(!0,{},rc,"string"==typeof t?{qListObjectDef:tF(t)}:t.qListObjectDef?t:{qListObjectDef:t}),i})(c),f=d.qListObjectDef;if(f.qDef.cId=f.qDef.cId||fa(),!d.title)if(f.qLibraryId){const y=yield s.app.getDimension(f.qLibraryId),b=yield y.getProperties();d.title=b.qDim.qLabelExpression?{qStringExpression:{qExpr:b.qDim.qLabelExpression}}:b.qDim.title}else{var p,m;d.title=f.qDef.title||(null===(p=f.qDef.qFieldLabels)||void 0===p?void 0:p[0])||(null===(m=f.qDef.qFieldDefs)||void 0===m?void 0:m[0])}i.push({qProperty:d,qChildren:[]})})(),addMeasure(){}}}function iF(t){return"string"==typeof t&&"="===t[0]||"object"==typeof t&&t.qDef&&t.qDef.qDef||"object"==typeof t&&t.qLibraryId&&"measure"===t.type?"measure":"dimension"}function gL(t,i){return Ww.apply(this,arguments)}function Ww(){return Ww=be(function*(t,i){let{sn:s,properties:l,fields:c,children:d}=t;if(!c.length)return;const f=s.qae.data.targets[0];if(!f)return;const{propertyPath:p}=f,m=p.split("/");let y=l;for(let w=0;w<m.length;w++){const S=m[w];y=S?y[S]:y}const _=((w=p).match("/qListObjectDef")?eF:w.match("/qChildListDef")?rF:EA)({dc:y,def:f,properties:l,children:d,halo:i});var w;for(let w=0;w<c.length;++w){const S=c[w];"measure"===iF(S)?yield _.addMeasure(S):yield _.addDimension(S)}}),Ww.apply(this,arguments)}var Pr_getValue=(t,i,s)=>{if(null==t||null==i)return s;const l=i.split(".");let c=t;for(let d=0;d<l.length;++d){const f=l[d];if(""!==f){if(null==c[f])return s;c=c[f]}}return c},Pr_setValue=(t,i,s)=>{if(null==t||null==i)return;const l=i.split("."),c=l[l.length-1];let d=t;for(let f=0;f<l.length-1;++f){const p=l[f];null!=d[p]||(d[p]=Number.isNaN(+l[f+1])?{}:[]),d=d[p]}void 0!==s&&"__proto__"!==c&&"constructor"!==c?d[c]=s:delete d[c]},Pr_isEmpty=t=>0===Object.keys(t).length&&t.constructor===Object,DA_isOrderedSubset=function(t,i){if(!(t&&i&&t.length&&i.length))return!1;let s=t.indexOf(i[0]);if(-1!==s){for(let l=0;l<i.length;l++){const c=t.indexOf(i[l]);if(s>c)return!1;s=c}return!0}return!1},DA_indexAdded=function(t,i){let s;for(s=0;s<t.length;++s)t[s]>=0&&t[s]>=i&&++t[s];t.push(i)},DA_indexRemoved=function(t,i){let s,l=0;for(s=0;s<t.length;++s)t[s]>i?--t[s]:t[s]===i&&(l=s);return t.splice(l,1),l};const kA=os(2,53)-1;function Kw(t){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(t)}function gg(t,i){const s=ni(!0,{},i,t);return Pr_getValue(s,"qOtherTotalSpec.qOtherCounted")||Pr_setValue(s,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),Pr_getValue(s,"qOtherTotalSpec.qOtherLimit")||Pr_setValue(s,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),s.hasOwnProperty("othersLabel")||(s.othersLabel="Others"),s}function mg(t,i){return ni(!0,{},i,t)}function Wv(t,i,s){return"function"==typeof t?t(i):Number.isNaN(+t)?s:t}var ar={restoreChangedProperties:function(t){Object.keys(t.qLayoutExclude.changed).forEach(i=>{t.qLayoutExclude.changed[i].to===Pr_getValue(t,i)&&Pr_setValue(t,i,t.qLayoutExclude.changed[i].from)})},isMasterItemProperty:Kw,importCommonProperties:function(t,i,s){const l="masterobject"===Pr_getValue(i,"properties.qInfo.qType")?"masterobject":Pr_getValue(s,"qInfo.qType");Pr_setValue(t,"qInfo.qType",l),t.visualization=s.visualization},copyPropertyIfExist:function(t,i,s){i.hasOwnProperty(t)&&(s[t]=i[t])},copyPropertyOrSetDefault:function(t,i,s,l){s[t]=i.hasOwnProperty(t)?i[t]:l},createDefaultDimension:gg,createDefaultMeasure:mg,resolveValue:Wv,getHypercubePath:function(t){const i=Pr_getValue(t,"data.targets.0.propertyPath","").split("/");return i.length&&"qHyperCubeDef"===i[i.length-1]&&(i.length-=1),i.join(".")},getDefaultDimension:function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},getDefaultMeasure:function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},setInterColumnSortOrder:function(t){let{exportFormat:i,newHyperCubeDef:s}=t;const l=i.data[0],c=s.qDimensions.length+s.qMeasures.length;s.qInterColumnSortOrder=l.interColumnSortOrder.concat();let d=s.qInterColumnSortOrder.length;if(d!==c)for(s.qLayoutExclude&&(s.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=l.interColumnSortOrder.concat());d!==c;)d<c?(DA_indexAdded(s.qInterColumnSortOrder,d),++d):(--d,DA_indexRemoved(s.qInterColumnSortOrder,d))},createNewProperties:function(t){let{exportFormat:i,initialProperties:s,hypercubePath:l}=t,c={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(i.properties).forEach(d=>{"qLayoutExclude"===d?i.properties[d].quarantine&&(c.qLayoutExclude.quarantine=ni(!0,{},i.properties[d].quarantine)):"qHyperCubeDef"===d&&l?Pr_setValue(c,"".concat(l,".qHyperCubeDef"),i.properties.qHyperCubeDef):s.hasOwnProperty(d)||Kw(d)?c[d]=i.properties[d]:c.qLayoutExclude.disabled[d]=i.properties[d]}),c=ni(!0,{},s,c),null===c.components&&(c.components=[]),c},getMaxMinDimensionMeasure:function(t){let{exportFormat:i,dataDefinition:s={}}=t;const l=i.data[0],c=s.dimensions||{max:0},d=s.measures||{max:0},f=Wv(d.max,l.dimensions.length,kA),p=Wv(d.min,l.dimensions.length,0);return{maxDimensions:Wv(c.max,f,kA),minDimensions:Wv(c.min,p,0),maxMeasures:f,minMeasures:p}},shouldInitLayoutExclude:function(t){let{exportFormat:i,maxDimensions:s,minDimensions:l,maxMeasures:c,minMeasures:d}=t;const f=i.data[0];return f.dimensions.length>s&&s>0||f.measures.length>c&&c>0||f.excludedDimensions.length>0&&f.dimensions.length+f.excludedDimensions.length>l||f.excludedMeasures.length>0&&f.measures.length+f.excludedMeasures.length>d||!c&&f.measures.length>0||!s&&f.dimensions.length>0},initLayoutExclude:function(t){let{exportFormat:i,maxDimensions:s,minDimensions:l,maxMeasures:c,minMeasures:d,newHyperCubeDef:f}=t;const p=i.data[0];f.qLayoutExclude||(f.qLayoutExclude={}),f.qLayoutExclude.qHyperCubeDef||(f.qLayoutExclude.qHyperCubeDef={}),(p.dimensions.length>s&&s>0||p.excludedDimensions&&p.excludedDimensions.length&&p.dimensions.length+p.excludedDimensions.length>l)&&(f.qLayoutExclude.qHyperCubeDef.qDimensions||(f.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(p.measures.length>c&&c>0||p.excludedMeasures&&p.excludedMeasures.length&&p.measures.length+p.excludedMeasures.length>d)&&(f.qLayoutExclude.qHyperCubeDef.qMeasures||(f.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!c&&p.measures.length&&(f.qLayoutExclude.qHyperCubeDef.qMeasures||(f.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!s&&p.dimensions.length&&(f.qLayoutExclude.qHyperCubeDef.qDimensions||(f.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function(t){let{exportFormat:i,maxDimensions:s,minDimensions:l,newHyperCubeDef:c,defaultDimension:d}=t;const f=i.data[0];let p;if(s>0)for(p=0;p<f.dimensions.length;++p)c.qDimensions.length<s?c.qDimensions.push(gg(f.dimensions[p],d)):c.qLayoutExclude.qHyperCubeDef.qDimensions.push(gg(f.dimensions[p],d));else if(f.dimensions.length)for(p=0;p<f.dimensions.length;++p)c.qLayoutExclude.qHyperCubeDef.qDimensions.push(gg(f.dimensions[p],d));if(f.excludedDimensions.length)for(p=0;p<f.excludedDimensions.length;++p)c.qDimensions.length<l?c.qDimensions.push(gg(f.excludedDimensions[p],d)):c.qLayoutExclude.qHyperCubeDef.qDimensions.push(gg(f.excludedDimensions[p],d))},addDefaultMeasures:function(t){let{exportFormat:i,maxMeasures:s,minMeasures:l,newHyperCubeDef:c,defaultMeasure:d}=t;const f=i.data[0];let p;if(s>0)for(p=0;p<f.measures.length;++p)c.qMeasures.length<s?c.qMeasures.push(mg(f.measures[p],d)):c.qLayoutExclude.qHyperCubeDef.qMeasures.push(mg(f.measures[p],d));else if(f.measures.length)for(p=0;p<f.measures.length;++p)c.qLayoutExclude.qHyperCubeDef.qMeasures.push(mg(f.measures[p],d));if(f.excludedMeasures.length)for(p=0;p<f.excludedMeasures.length;++p)c.qMeasures.length<l?c.qMeasures.push(mg(f.excludedMeasures[p],d)):c.qLayoutExclude.qHyperCubeDef.qMeasures.push(mg(f.excludedMeasures[p],d))},updateDimensionsOnAdded:function(t){let{newProperties:i,dataDefinition:s,hypercubePath:l}=t;if(s.dimensions&&"function"==typeof s.dimensions.added){const c=Pr_getValue(i,l||"").qHyperCubeDef,d=[...c.qDimensions];c.qDimensions=[],d.forEach(f=>{c.qDimensions.push(f),s.dimensions.added(f,i)})}},updateMeasuresOnAdded:function(t){let{newProperties:i,dataDefinition:s,hypercubePath:l}=t;if(s.measures&&"function"==typeof s.measures.added){const c=Pr_getValue(i,l||"").qHyperCubeDef,d=[...c.qMeasures];c.qMeasures=[],d.forEach(f=>{c.qMeasures.push(f),s.measures.added(f,i)})}}},AA={exportProperties:t=>function(i){let{propertyTree:s,hypercubePath:l}=i;const c=function(){let y=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;const b={data:[],properties:{}};for(let _=0;_<y;++_)b.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return b}(),d=s.qProperty,f=Pr_getValue(d,l||""),p=f.qHyperCubeDef,m=c.data[0];if(p.qInterColumnSortOrder||(p.qInterColumnSortOrder=[]),m.dimensions.push(...p.qDimensions),p.qLayoutExclude&&p.qLayoutExclude.qHyperCubeDef&&p.qLayoutExclude.qHyperCubeDef.qDimensions&&m.excludedDimensions.push(...p.qLayoutExclude.qHyperCubeDef.qDimensions),m.measures.push(...p.qMeasures),p.qLayoutExclude&&p.qLayoutExclude.qHyperCubeDef&&p.qLayoutExclude.qHyperCubeDef.qMeasures&&m.excludedMeasures.push(...p.qLayoutExclude.qHyperCubeDef.qMeasures),m.interColumnSortOrder=p.qInterColumnSortOrder.concat(),p.qLayoutExclude&&p.qLayoutExclude.qHyperCubeDef&&p.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const y=p.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();DA_isOrderedSubset(y,m.interColumnSortOrder)&&(m.interColumnSortOrder=y)}return delete p.qLayoutExclude,Object.keys(d).forEach(y=>{c.properties[y]=d[y]}),l&&(c.properties.qHyperCubeDef=f.qHyperCubeDef,delete f.qHyperCubeDef),d.qLayoutExclude||(d.qLayoutExclude={}),d.qLayoutExclude.disabled&&(Object.keys(d.qLayoutExclude.disabled).forEach(y=>{c.properties.hasOwnProperty(y)||(c.properties[y]=d.qLayoutExclude.disabled[y])}),delete d.qLayoutExclude.disabled),d.qLayoutExclude.changed&&(ar.restoreChangedProperties(d),delete d.qLayoutExclude.changed),d.qLayoutExclude.quarantine&&!Pr_isEmpty(d.qLayoutExclude.quarantine)||delete d.qLayoutExclude,c}(t),importProperties:t=>function(i){let{exportFormat:s,initialProperties:l={},dataDefinition:c={},defaultPropertyValues:d={},hypercubePath:f}=i;const p={qChildren:[]},m=ar.createNewProperties({exportFormat:s,initialProperties:l,hypercubePath:f}),y=Pr_getValue(l,f||"").qHyperCubeDef,b=Pr_getValue(m,f||"").qHyperCubeDef,{maxDimensions:_,minDimensions:w,maxMeasures:S,minMeasures:E}=ar.getMaxMinDimensionMeasure({exportFormat:s,dataDefinition:c}),{defaultDimension:C=ar.getDefaultDimension(),defaultMeasure:I=ar.getDefaultMeasure()}=d;return b.qDimensions.length=0,b.qMeasures.length=0,ar.shouldInitLayoutExclude({exportFormat:s,maxDimensions:_,minDimensions:w,maxMeasures:S,minMeasures:E})&&ar.initLayoutExclude({exportFormat:s,maxDimensions:_,minDimensions:w,maxMeasures:S,minMeasures:E,newHyperCubeDef:b}),ar.addDefaultDimensions({exportFormat:s,maxDimensions:_,minDimensions:w,newHyperCubeDef:b,defaultDimension:C}),ar.addDefaultMeasures({exportFormat:s,maxMeasures:S,minMeasures:E,newHyperCubeDef:b,defaultMeasure:I}),ar.setInterColumnSortOrder({exportFormat:s,newHyperCubeDef:b}),ar.copyPropertyIfExist("qMaxStackedCells",y,b),ar.copyPropertyIfExist("qNoOfLeftDims",y,b),ar.copyPropertyOrSetDefault("qInitialDataFetch",y,b,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),ar.copyPropertyOrSetDefault("qMode",y,b,"S"),ar.copyPropertyOrSetDefault("qReductionMode",y,b,"N"),ar.copyPropertyOrSetDefault("qSortbyYValue",y,b),ar.copyPropertyOrSetDefault("qIndentMode",y,b),ar.copyPropertyOrSetDefault("qShowTotalsAbove",y,b),ar.importCommonProperties(m,s,l),ar.updateDimensionsOnAdded({newProperties:m,dataDefinition:c,hypercubePath:f}),ar.updateMeasuresOnAdded({newProperties:m,dataDefinition:c,hypercubePath:f}),p.qProperty=m,p}(t)};const mL=t=>Pr_getValue(t,"data.targets.0.propertyPath"),yg=function(){var t=be(function*(i){let{halo:s,model:l,cellRef:c,newType:d,properties:f,viewDataMode:p=!1}=i;const m=f?{qProperty:f}:yield l.getFullPropertyTree(),y=c.current.getQae(),b=(t=>t.exportProperties?t.exportProperties:(i=>{if(i.split("/").indexOf("qHyperCubeDef")>-1)return AA.exportProperties})(mL(t)))(y);if(!b)throw new Error("Source chart does not support conversion");const _=yield(E=be(function*(C){let{halo:I,name:D,version:k}=C;const{types:A}=I;return yield A.get({name:D,version:k}).supernova()}),function(C){return E.apply(this,arguments)})({halo:s,name:d}),w=_.qae,S=(t=>t.importProperties?t.importProperties:(i=>{if(i.split("/").indexOf("qHyperCubeDef")>-1)return AA.importProperties})(mL(t)))(w);var E;if(!S)throw new Error("Target chart does not support conversion");return S({exportFormat:b({propertyTree:m,hypercubePath:ar.getHypercubePath(y),viewDataMode:p}),initialProperties:ee({qInfo:{qType:d},visualization:d},Pr_getValue(w,"properties.initial",{})),dataDefinition:Pr_getValue(w,"data.targets.0.",{}),hypercubePath:ar.getHypercubePath(w),viewDataMode:p})});return function(s){return t.apply(this,arguments)}}(),vL={hypercube:AA};var Qw=t=>Ao((i=>ee(ee({},i),{},{shapes:[{type:"path",attrs:{d:"M8.86225926,1.6 L15.7815749,13.5 C16.2829746,14.3 15.8818548,15 14.9793354,15 L1.04042422,15 C0.0853772072,15 -0.232971797,14.3650794 0.172002787,13.6135407 L7.05722041,1.6 C7.55862009,0.8 8.36085958,0.8 8.86225926,1.6 Z M7.962,2.007 C7.95987183,2.02476599 7.95607967,2.03712023 7.94920396,2.05249845 L1.1033193,14 L14.915544,14 L7.99777452,2.10265906 L7.97779697,2.06138411 L7.96394459,2.01964415 L7.962,2.007 Z M7.5,11 L8.5,11 C8.76666667,11 8.95432099,11.1580247 8.99272977,11.4038409 L9,11.5 L9,12.5 C9,12.7666667 8.84197531,12.954321 8.59615912,12.9927298 L8.5,13 L7.5,13 C7.23333333,13 7.04567901,12.8419753 7.00727023,12.5961591 L7,12.5 L7,11.5 C7,11.2333333 7.15802469,11.045679 7.40384088,11.0072702 L7.5,11 L8.5,11 L7.5,11 Z M7.5,5 L8.5,5 C8.76666667,5 8.95432099,5.15802469 8.99272977,5.40384088 L9,5.5 L9,9.5 C9,9.76666667 8.84197531,9.95432099 8.59615912,9.99272977 L8.5,10 L7.5,10 C7.23333333,10 7.04567901,9.84197531 7.00727023,9.59615912 L7,9.5 L7,5.5 C7,5.23333333 7.15802469,5.04567901 7.40384088,5.00727023 L7.5,5 L8.5,5 L7.5,5 Z"}}]}))(t));function Yw(t){let{d:i}=t;const s=Wr();let l="inherit",c=s.palette.success.main;i.missing?c=s.palette.warning.main:i.error&&(l="error",c=s.palette.error.main);const d={color:c},f=V.createElement(En,{style:{lineHeight:"30px",paddingRight:s.spacing(1)}},V.createElement(YP,null,V.createElement(i.missing||i.error?Qw:Ak,{style:d})));return V.createElement(Te,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},V.createElement(Te,{item:!0},f),V.createElement(Te,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},V.createElement(En,{noWrap:!0,component:"p"},V.createElement(En,{component:"span",variant:"subtitle2",color:l},i.description),V.createElement(En,{component:"span"}," "),V.createElement(En,{component:"span",variant:"subtitle2",color:i.error?"error":"inherit",style:{fontWeight:400}},i.label))))}function sF(t){let{data:i}=t;const s=Wr();return V.createElement(Te,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},i.map((l,c)=>{const d=l.descriptions.map((f,p)=>V.createElement(Yw,{d:f,key:p}));return d.length>0&&V.createElement(Te,{container:!0,item:!0,key:c,direction:"column",style:{paddingBottom:s.spacing(2)}},V.createElement(En,{noWrap:!0,key:c,variant:"subtitle1",align:"left",color:"textSecondary"},l.title),d)}))}function bL(t){let{title:i="Error",message:s="",data:l=[]}=t;return V.createElement(Te,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},V.createElement(Te,{item:!0},V.createElement(Qw,{style:{fontSize:"38px"}})),V.createElement(Te,{item:!0},V.createElement(En,{variant:"h6",align:"center","data-tid":"error-title"},i)),V.createElement(Te,{item:!0},V.createElement(En,{variant:"subtitle1",align:"center","data-tid":"error-message"},s)),V.createElement(sF,{data:l}))}const aF=["size"],IA="Progress",vg={root:"".concat(IA,"-root"),front:"".concat(IA,"-front"),back:"".concat(IA,"-back")},lF=De("div")(t=>{let{theme:i}=t;return{["&.".concat(vg.root)]:{position:"relative",display:"inline-block"},["& .".concat(vg.front)]:{color:i.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(vg.back)]:{color:i.palette.divider}}}),cF={small:16,medium:32,large:64,xlarge:128};function _L(t){let{size:i="medium"}=t,s=_n(t,aF);const l=cF[i];return V.createElement(lF,{className:vg.root},V.createElement(gv,Vi({variant:"determinate",value:100,className:vg.back,size:l,thickness:3},s)),V.createElement(gv,Vi({variant:"indeterminate",disableShrink:!0,className:vg.front,size:l,thickness:3},s)))}const Zw=["cancel","translator"],wL=["retry","translator"],Kv={stripes:"".concat("LongRunningQuery","-stripes")},xL=De(Te)(()=>({["& .".concat(Kv.stripes)]:{"&::before":{position:"absolute",height:"100%",width:"100%",top:0,left:0,content:'""',backgroundSize:"14.14px 14.14px",backgroundImage:"linear-gradient(135deg, currentColor 10%, rgba(0,0,0,0) 10%, rgba(0,0,0,0) 50%, currentColor 50%, currentColor 59%, rgba(0,0,0,0) 60%, rgba(0,0,0,0) 103%)",opacity:.1}}}));function SL(t){let{cancel:i,translator:s}=t,l=_n(t,Zw);return V.createElement(V.Fragment,null,V.createElement(xL,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},V.createElement(Te,{item:!0},V.createElement(_L,null)),V.createElement(Te,{item:!0},V.createElement(En,{variant:"h6",align:"center","data-tid":"update-active"},s.get("Object.Update.Active")))),V.createElement(Te,Vi({item:!0},l),V.createElement(C_,{variant:"contained",onClick:i},s.get("Cancel"))))}function uF(t){let{retry:i,translator:s}=t,l=_n(t,wL);return V.createElement(V.Fragment,null,V.createElement(Te,{item:!0},V.createElement(Qw,{style:{fontSize:"38px"}})),V.createElement(Te,{item:!0},V.createElement(En,{variant:"h6",align:"center","data-tid":"update-cancelled"},s.get("Object.Update.Cancelled"))),V.createElement(Te,{item:!0},V.createElement(C_,Vi({variant:"contained",onClick:i},l),s.get("Retry"))))}function EL(t){let{canCancel:i,canRetry:s,api:l}=t;const{translator:c}=P.useContext(ai);return V.createElement(Te,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:Kv.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},i&&V.createElement(SL,{cancel:l.cancel,translator:c,className:Kv.cancel}),s&&V.createElement(uF,{retry:l.retry,translator:c,className:Kv.retry}))}function dF(){return V.createElement(Te,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},V.createElement(_L,{size:"large"}))}const Xw={containerStyle:"".concat("Header","-containerStyle"),containerTitleStyle:"".concat("Header","-containerTitleStyle")},fF=De(Te)(t=>{let{theme:i}=t;return{["&.".concat(Xw.containerStyle)]:{flexGrow:0},["&.".concat(Xw.containerTitleStyle)]:{paddingBottom:i.spacing(1)}}});function gF(t){let{layout:i,sn:s,anchorEl:l,hovering:c,focusHandler:d,titleStyles:f={}}=t;const p=i.showTitles&&!!i.title,m=i.showTitles&&!!i.subtitle,y=i.qSelectionInfo&&i.qSelectionInfo.qInSelections,[b,_]=P.useState([]),[w,S]=Nf(),[E,C]=P.useState(!1);P.useEffect(()=>{s&&s.component&&s.component.isHooked&&s.component.observeActions(T=>{_([...T,...s&&s.selectionToolbar&&s.selectionToolbar.items||[]])})},[s]),P.useEffect(()=>{if(!S)return;const{width:T}=S;C(T<221)},[S]);const I=p||m,D=[Xw.containerStyle,...I?[Xw.containerTitleStyle]:[]],k=(c||y)&&(E||!I),M=V.createElement(Pw,{show:I&&!k&&!E,selections:{show:y,api:s.component.selections,onKeyDeactivate:d.refocusContent},actions:b,popover:{show:k,anchorEl:l},focusHandler:d,layout:i});return V.createElement(fF,{ref:w,item:!0,container:!0,wrap:"nowrap",className:D.join(" ")},V.createElement(Te,{item:!0,zeroMinWidth:!0,xs:!0},V.createElement(Te,{container:!0,wrap:"nowrap",direction:"column"},p&&V.createElement(En,{variant:"h6",noWrap:!0,className:"njs-cell-title",style:f.main},i.title),m&&V.createElement(En,{variant:"body2",noWrap:!0,className:"njs-cell-sub-title",style:f.subTitle},i.subtitle))),V.createElement(Te,{item:!0},M))}const DL={itemStyle:"".concat("Footer","-itemStyle")},kL=De(Te)(t=>{let{theme:i}=t;return{["& .".concat(DL.itemStyle)]:{minWidth:0,paddingTop:i.spacing(1)}}});function RA(t){let{layout:i,titleStyles:s={}}=t;return i&&i.showTitles&&i.footnote?V.createElement(kL,{container:!0},V.createElement(Te,{item:!0,className:DL.itemStyle},V.createElement(En,{noWrap:!0,variant:"body2",className:"njs-cell-footer",style:s.footer},i.footnote))):null}class IL{constructor(){this.timer=null,this.next=null,this.running=!1}start(){this.running||(this.running=!0,this.scheduleNext())}scheduleNext(){this.timer=setTimeout(()=>{this.doNext()},10)}doNext(){var i=this;return be(function*(){const s=i.next;i.next=null,s?(yield s(),i.scheduleNext()):i.stop()})()}schedule(i){this.next=i,this.start()}stop(){this.running&&(clearTimeout(this.timer),this.timer=null,this.running=!1)}}function ML(t){let{sn:i,snOptions:s,snPlugins:l,layout:c,appLayout:d,halo:f}=t;const{component:p}=i,{theme:m,language:y,constraints:b,interactions:_,keyboardNavigation:w}=P.useContext(ai),[S]=P.useState(()=>new IL),[E,C]=P.useState(!1),[I,D]=P.useState(0),[k,A,M]=Nf(),[T,O]=P.useState(null),N=P.useCallback(B=>{B&&O(B)},[]);return P.useEffect(()=>{if(T)return p.created({options:s}),p.mounted(T),C(!0),()=>{S.stop(),p.willUnmount()}},[T,p]),P.useEffect(()=>{E&&T&&A&&(!p.isHooked&&c&&c.qSelectionInfo&&c.qSelectionInfo.qInSelections||S.schedule(()=>{const B=[];return b.passive||B.push("passive"),b.active||B.push("interact"),b.select||B.push("select"),b.edit||B.push("edit"),f.app&&f.app.session&&B.push("fetch"),Promise.resolve(p.render({layout:c,options:s,plugins:l,embed:f.public.nebbie,context:ee({constraints:b,interactions:_,theme:f.public.theme,appLayout:d,keyboardNavigation:w},p.isHooked?{}:{logicalSize:i.logicalSize({layout:c}),localeInfo:(d||{}).qLocaleInfo,permissions:B})})).then(j=>{!1!==j&&(0===I&&"function"==typeof s.onInitialRender&&s.onInitialRender.call(null),D(I+1))})}))},[A,s,l,T,M,c,d,m,y,b,_,E,w]),V.createElement("div",{ref:k,"data-render-count":I,style:{position:"relative",height:"100%"},className:"njs-viz"},V.createElement("div",{ref:N,style:{position:"absolute",width:"100%",height:"100%"}}))}const OL=(t,i)=>{switch(i.type){case"LOADING":return ee(ee({},t),{},{loading:!0});case"LOADED":return ee(ee({},t),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:i.sn,visualization:i.visualization});case"RENDER":return ee(ee({},t),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return ee(ee({},t),{},{longRunningQuery:!0});case"ERROR":return ee(ee({},t),{},{loading:!1,longRunningQuery:!1,error:i.error});default:throw new Error("Unhandled type: ".concat(i.type))}};function LL(t){let{delay:i=750}=t;const[s,l]=P.useState(!1);return P.useEffect(()=>{const c=setTimeout(()=>l(!0),i);return()=>clearTimeout(c)},[]),s?V.createElement(dF,null):null}const Jw=t=>!t.qError||7005===t.qError.qErrorCode,MA=(t,i,s,l,c)=>[...Array(t).keys()].map(d=>{const f=!(!i||!i[d]),p=f&&i[d].qError&&7005===i[d].qError.qErrorCode,m=f&&!p&&i[d].qError,b="".concat(m?l:p?p&&i[d].qCalcCondMsg||c:f&&i[d].qFallbackTitle||""),_=s(d);return{description:_?"".concat(_).concat(b.length?":":""):null,label:b,missing:i&&!f&&!m&&d>=i.length||p,error:m}}),ex=t=>t&&(Array.isArray(t)?t:[t])||[],PL=(t,i,s,l)=>{const c=l.dimensions.min(),d=l.measures.min(),f=l.resolveLayout(i);return{reqDimErrors:MA(c,ex(f.qDimensionInfo||f.qItems),p=>l.dimensions.description(s,p),t.get("Visualization.Invalid.Dimension"),t.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:MA(d,ex(f.qMeasureInfo),p=>l.measures.description(s,p),t.get("Visualization.Invalid.Measure"),t.get("Visualization.UnfulfilledCalculationCondition"))}},TA=function(){var t=be(function*(i,s,l,c){let{targets:d}=l;const{hasUnfulfilledErrors:f,aggMinD:p,aggMinM:m,hasLayoutErrors:y,layoutErrors:b}=((M,T,O)=>{let N=!1,B=0,j=0,G=!1,Q=!1;const H=[];for(let z=0;z<T.length;++z){const K=T[z],Y=K.dimensions.min(),X=K.measures.min(),re=K.resolveLayout(O),q=ex(re.qDimensionInfo||re.qItems).filter(Jw),$=ex(re.qMeasureInfo).filter(Jw);if(B+=Y,j+=X,(q.length<Y||$.length<X)&&(N=!0),re.qError){G=!0,Q=7005===re.qError.qErrorCode;const W=Q&&re.qCalcCondMsg?re.qCalcCondMsg:M.get(Q?"Visualization.UnfulfilledCalculationCondition":"Visualization.LayoutError");H.push({title:W,descriptions:[]})}}return{hasUnfulfilledErrors:N,aggMinD:B,aggMinM:j,hasLayoutErrors:G,layoutErrors:H}})(i,d,s),_=[],w=[];let S=null;for(let M=0;M<d.length;++M){const T=d[M];if(!y&&f){const O=S||(yield c.getProperties());S=O;const N=PL(i,s,O,T);_.push(...N.reqDimErrors),w.push(...N.reqMeasErrors)}}const E=_.filter(M=>!(M.missing||M.error)).length,C=i.get("Visualization.Incomplete.Dimensions",[E,p]),I=w.filter(M=>!(M.missing||M.error)).length,D=i.get("Visualization.Incomplete.Measures",[I,m]),k=[{title:C,descriptions:[..._]},{title:D,descriptions:[...w]}],A=y?b:k;return[y||f,{title:y?b[0].title:i.get("Visualization.Incomplete"),data:A}]});return function(s,l,c,d){return t.apply(this,arguments)}}(),Qv=P.forwardRef((t,i)=>{let{halo:s,model:l,initialSnOptions:c,initialSnPlugins:d,initialError:f,onMount:p,currentId:m,emitter:y}=t;const{app:b,types:_}=s,{nebbie:w}=s.public,{theme:S,translator:E,language:C,keyboardNavigation:I,disableCellPadding:D=!1}=P.useContext(ai),k=Wr(),[A,M,T]=Nf(),[O,N]=P.useReducer(OL,{loading:!1,loaded:!1,longRunningQuery:!1,error:(B=f)?{title:B.message}:null,sn:null,visualization:null});var B;const[j,G]=P.useState(l),[Q,{validating:H,canCancel:z,canRetry:K},Y]=ec(j),[X]=vw(b),[re,q,$]=Nf(),[W,te]=P.useState(c),[J,ae]=P.useState(d),ue="njs-cell-".concat(m),[_e]=oA(b,j,["#".concat(ue),".njs-action-toolbar-popover"]),[ve,Ee]=P.useState(!1),fe=P.useRef({enter:null,leave:null}),{titleStyles:we,bgColor:pe,bgImage:ye,border:Ne,borderRadius:Oe,boxShadow:qe}=((t,i,s,l)=>P.useMemo(()=>{if(t&&i){const d=t.components?t.components.find(_=>"general"===_.key):null,f={main:cA(d,"main",i,t.visualization),footer:cA(d,"footer",i,t.visualization),subTitle:cA(d,"subTitle",i,t.visualization)},p=lA(d,i,t.visualization),m=aA(d,s),y=function(_,w,S){const E=zw(null==_?void 0:_.borderColor,"","borderColor",w,S),C=(null==_?void 0:_.borderWidth)||Bw("","borderWidth",w,S);return C&&E?"".concat(C," solid ").concat(E):void 0}(d,i,t.visualization);return{titleStyles:f,bgColor:p,bgImage:m,border:y,borderRadius:(w=i,S=t.visualization,(null==(_=d)?void 0:_.borderRadius)||Bw("","borderRadius",w,S)),boxShadow:QO(d,i,t.visualization)}}var _,w,S;return{}},[t,i,s,l]))(Q,s.public.theme,s.app,S),Ve=P.useRef({focusToolbarButton(xe){this.emit(xe?"focus_toolbar_last":"focus_toolbar_first")}});P.useEffect(()=>{Bv(Ve.current)},[]),Ve.current.blurCallback=xe=>{s.root.toggleFocusOfCells(),xe&&$&&$.focus()},Ve.current.refocusContent=()=>{O.sn.component&&"function"==typeof O.sn.component.focus&&O.sn.component.focus()},P.useEffect(()=>{if(f)return void p();if(!X||!Q)return;if(O.visualization===Q.visualization&&O.sn)return void(Ke=be(function*(Xe){const[Tt,Je]=yield TA(E,Q,Xe.generator.qae.data,j);N(Tt?{type:"ERROR",error:Je}:{type:"RENDER"}),(nt=>{let{sn:ot,layout:xt,model:Wt}=nt;const Kt=ot&&ot.component&&ot.component.selections;if(Kt&&Kt.id&&Wt.id&&Kt.id===Wt.id){if(xt&&xt.qSelectionInfo&&xt.qSelectionInfo.qInSelections&&!Kt.isModal()){const{targets:lr}=ot.generator.qae.data;Kt.goModal(lr[0].propertyPath)}xt.qSelectionInfo&&xt.qSelectionInfo.qInSelections||Kt.isModal()&&Kt.noModal()}})({sn:O.sn,layout:Q,model:j})}),function(Xe){return Ke.apply(this,arguments)})(O.sn);var Ke;const xe=_.getSupportedVersion(Q.visualization,Q.version);return function(){var Ke=be(function*(Xe,Tt){var Je;N({type:"LOADING"}),yield(Je=be(function*(nt){let{dispatch:ot,types:xt,visualization:Wt,version:Kt,model:lr,app:Be,selections:qt,nebbie:gn,focusHandler:mn,emitter:Nr,onMount:Kr}=nt;try{const _r=yield($t=be(function*(un){let{types:$n,name:Gn,version:Dn}=un;return yield $n.get({name:Gn,version:Dn}).supernova()}),function(un){return $t.apply(this,arguments)})({types:xt,name:Wt,version:Kt}),Qt=_r.create({model:lr,app:Be,selections:qt,nebbie:gn,focusHandler:mn,emitter:Nr});Qt&&(ot({type:"LOADED",sn:Qt,visualization:Wt}),Kr())}catch(_r){ot(Kt?{type:"ERROR",error:{title:_r.message}}:{type:"ERROR",error:{title:"Could not find a version of '".concat(Wt,"' that supports current object version. Did you forget to register ").concat(Wt,"?")}}),Kr()}var $t}),function(nt){return Je.apply(this,arguments)})({dispatch:N,types:_,visualization:Xe,version:Tt,model:j,app:b,selections:_e,nebbie:w,focusHandler:Ve.current,emitter:y,onMount:p})});return function(Xe,Tt){return Ke.apply(this,arguments)}}()(Q.visualization,xe),()=>{}},[_,O.sn,j,_e,Q,X,C]),P.useEffect(()=>{if(!H)return;const xe=setTimeout(()=>N({type:"LONG_RUNNING_QUERY"}),2e3);return()=>clearTimeout(xe)},[H]),P.useImperativeHandle(i,()=>({getQae:()=>O.sn.generator.qae,toggleFocus(xe){"function"==typeof O.sn.component.focus&&(xe?O.sn.component.focus():O.sn.component.blur())},setSnOptions:te,setSnPlugins:ae,setModel:G,getImperativeHandle(){var xe;return null!==(xe=O.sn)&&void 0!==xe&&xe.component&&"function"==typeof O.sn.component.getImperativeHandle?O.sn.component.getImperativeHandle():{}},takeSnapshot:()=>be(function*(){const{width:xe,height:Ke}=M;let Xe=JSON.parse(JSON.stringify(Q));return"function"==typeof O.sn.component.setSnapshotData&&(Xe=(yield O.sn.component.setSnapshotData(Xe))||Xe),{key:String(+Date.now()),meta:{language:E.language(),theme:k.name,appLayout:X,size:{width:Math.round(xe),height:Math.round(Ke)}},layout:Xe}})(),exportImage(){var xe=this;return be(function*(){if("function"!=typeof s.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const Ke=yield xe.takeSnapshot();return s.config.snapshot.capture(Ke)})()}}),[O.sn,q,M,Q,k.name,X]);let lt=null;return O.loading&&!O.longRunningQuery?lt=V.createElement(LL,null):O.error?lt=V.createElement(bL,O.error):O.loaded&&(lt=V.createElement(ML,{key:Q.visualization,sn:O.sn,halo:s,snOptions:W,snPlugins:J,layout:Q,appLayout:X})),V.createElement(A_,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:pe||"unset",backgroundImage:ye&&ye.url?"url(".concat(ye.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:ye&&ye.size,backgroundPosition:ye&&ye.pos,border:Ne,borderRadius:Oe,boxShadow:qe,boxSizing:"border-box"},elevation:0,square:!0,className:"njs-cell",ref:A,id:ue,onMouseEnter:()=>{fe.current.leave&&clearTimeout(fe.current.leave),fe.enter||(fe.current.enter=setTimeout(()=>{Ee(!0),fe.current.enter=null},250))},onMouseLeave:()=>{fe.current.enter&&clearTimeout(fe.current.enter),fe.current.leave||(fe.current.leave=setTimeout(()=>{Ee(!1),fe.current.leave=null},750))}},V.createElement(Te,{container:!0,direction:"column",gap:0,style:ee(ee({position:"relative",width:"100%",height:"100%"},D?{}:{padding:k.spacing(1)}),O.longRunningQuery?{opacity:"0.3"}:{})},T&&Q&&O.sn&&V.createElement(gF,{layout:Q,sn:O.sn,anchorEl:T,hovering:ve,focusHandler:Ve.current,titleStyles:we},"\xa0"),V.createElement(Te,{tabIndex:I?0:-1,onKeyDown:I?xe=>{["Enter"," ","Spacebar"].includes(xe.key)&&s.root.toggleFocusOfCells(m)}:null,item:!0,xs:!0,style:{height:"100%"},ref:re},lt),T&&Q&&O.sn&&V.createElement(RA,{layout:Q,titleStyles:we})),O.longRunningQuery&&V.createElement(EL,{canCancel:z,canRetry:K,api:Y}))});function tx(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function nx(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",i=arguments.length>1?arguments[1]:void 0,s=arguments.length>2?arguments[2]:void 0;const l=[];return Object.keys(i).forEach(c=>{const d=i[c];var f,p;"object"!=typeof s[c]||"object"!=typeof d||Array.isArray(d)?(p=s[c],(tx(f=d)&&tx(p)?JSON.stringify(f)===JSON.stringify(p):!Array.isArray(f)&&!Array.isArray(p)&&f===p)||l.push({qPath:t+c,qOp:"add",qValue:JSON.stringify(i[c])})):l.push(...nx("".concat(t).concat(c,"/"),i[c],s[c]))}),l}function OA(t){if(!Array.isArray(t))throw new Error("Invalid plugin format: plugins should be an array!");t.forEach(i=>{if("object"!=typeof i)throw new Error("Invalid plugin format: a plugin should be an object");if("object"!=typeof i.info||"string"!=typeof i.info.name)throw new Error("Invalid plugin format: a plugin should have an info object containing a name");if("function"!=typeof i.fn)throw new Error('Invalid plugin format: The plugin "'.concat(i.info.name,'" has no "fn" function'))})}const NL=t=>{var i;return!(!t||t.qHasSoftPatches||t.qExtendsId||!(((null===(i=t.qMeta)||void 0===i?void 0:i.privileges)||[]).indexOf("update")>-1))},mF=(t,i)=>t.__snInterceptor?t.__snInterceptor.setProperties.call(t,i):t.setProperties(i),rx=ni.bind(null,!0),Io={},{isArray:ic}=Array;function bg(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function Vf(t){return void 0===t}function _g(t,i){return"function"==typeof t[i]||"$$"===i.substring(0,2)||"_"===i.substring(0,1)}function ix(t,i){const s=i.substring(1).split("/").slice(0,-1);let l;return s.forEach((c,d)=>{if(d===s.length)return;l=+c;const f=isNaN(l)?{}:[];t[l||c]=Vf(t[l||c])?f:t[c],t=t[l||c]}),t}function Yv(t,i){let s=!0;if(bg(t)&&bg(i))return Object.keys(t).length===Object.keys(i).length&&(Object.keys(t).forEach(l=>{Yv(t[l],i[l])||(s=!1)}),s);if(ic(t)&&ic(i)){if(t.length!==i.length)return!1;for(let l=0,c=t.length;l<c;l+=1)if(!Yv(t[l],i[l]))return!1;return!0}return t===i}Io.generate=function(t,i,s){s=s||"";let l=[];return Object.keys(i).forEach(c=>{const d=(m=i[c])&&rx({},{val:m}).val,f=t[c],p="".concat(s,"/").concat(c);var m;Yv(d,f)||_g(i,c)||(Vf(f)?l.push({op:"add",path:p,value:d}):bg(d)&&bg(f)?l=l.concat(Io.generate(f,d,p)):ic(d)&&ic(f)?l=l.concat(function(m,y,b){let _=[];const w=m.slice();let S=-1;function E(C,I,D){if(C[D]&&Vf(C[D].qInfo))return null;if(C[D]&&C[D].qInfo.qId===I)return D;for(let k=0,A=C.length;k<A;k+=1)if(C[k]&&C[k].qInfo.qId===I)return k;return-1}if(Yv(y,w))return _;if(!Vf(y[0])&&Vf(y[0].qInfo))return _.push({op:"replace",path:b,value:y}),_;for(let C=w.length-1;C>=0;C-=1)S=E(y,w[C].qInfo&&w[C].qInfo.qId,C),-1===S?(_.push({op:"remove",path:"".concat(b,"/").concat(C)}),w.splice(C,1)):_=_.concat(Io.generate(w[C],y[S],"".concat(b,"/").concat(C)));for(let C=0,I=y.length;C<I;C+=1)S=E(w,y[C].qInfo&&y[C].qInfo.qId),-1===S?(_.push({op:"add",path:"".concat(b,"/").concat(C),value:y[C]}),w.splice(C,0,y[C])):S!==C&&(_.push({op:"move",path:"".concat(b,"/").concat(C),from:"".concat(b,"/").concat(S)}),w.splice(C,0,w.splice(S,1)[0]));return _}(f,d,p)):l.push({op:"replace",path:"".concat(s,"/").concat(c),value:d}))}),Object.keys(t).forEach(c=>{Vf(i[c])&&!_g(t,c)&&l.push({op:"remove",path:"".concat(s,"/").concat(c)})}),l},Io.apply=function(t,i){i.forEach(s=>{let l=ix(t,s.path),c=s.path.split("/").splice(-1)[0],d=c&&isNaN(+c)?l[c]:l[+c]||l;const f=s.from?s.from.split("/").splice(-1)[0]:null;if("/"===s.path&&(l=null,d=t),"add"===s.op||"replace"===s.op)if(ic(l))"-"===c&&(c=l.length),l.splice(+c,"add"===s.op?0:1,s.value);else if(ic(d)&&ic(s.value)){const m=s.value.slice();d.length=0,d.push(...m)}else if(bg(d)&&bg(s.value))p=d,Object.keys(p).forEach(m=>{Object.getOwnPropertyDescriptor(p,m).configurable&&!_g(p,m)&&delete p[m]}),rx(d,s.value);else{if(!l)throw new Error("Patchee is not an object we can patch");l[c]=s.value}else if("move"===s.op){const m=ix(t,s.from);ic(l)?l.splice(+c,0,m.splice(+f,1)[0]):(l[c]=m[f],delete m[f])}else"remove"===s.op&&(ic(l)?l.splice(+c,1):delete l[c]);var p})},Io.clone=function(t){return rx({},t)},Io.createPatch=function(t,i,s){const l={op:t.toLowerCase(),path:s};return"move"===l.op?l.from=i:void 0!==i&&(l.value=i),l},Io.updateObject=function(t,i){Object.keys(t).length?Io.apply(t,Io.generate(t,i)):rx(t,i)};let bt,Ro;function wg(t,i){if(!t||i.length!==t.length)return!0;for(let s=0;s<i.length;s++)if(t[s]!==i[s])return!0;return!1}function LA(t){let{explicitResize:i=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.__hooks={obsolete:!1,error:!1,waitForData:!1,chain:{promise:null,resolve:()=>{}},list:[],snaps:[],menus:[],actions:{list:[]},pendingEffects:[],pendingLayoutEffects:[],pendingPromises:[],resizer:{setters:[],explicitResize:i},accessibility:{setter:null},contraintsWarning:!0}}function jL(t){ox(t.__hooks.list,!0),t.__hooks.obsolete=!0,t.__hooks.list.length=0,t.__hooks.pendingEffects.length=0,t.__hooks.pendingLayoutEffects.length=0,t.__hooks.actions=null,t.__hooks.imperativeHandle=null,t.__hooks.resizer=null,t.__hooks.accessibility=null,t.__actionsDispatch=null,clearTimeout(t.__hooks.micro),cancelAnimationFrame(t.__hooks.macro)}function PA(t){return Zv.apply(this,arguments)}function Zv(){return Zv=be(function*(t){if(t.__hooks.obsolete)return Promise.resolve();Ro=-1,bt=t;try{bt.fn.call(null)}catch(s){console.error(s)}bt.__hooks.initiated=!0;const i=bt.__hooks;return VL(bt),Ro=void 0,bt=void 0,i.chain.promise||(i.chain.promise=new Promise(s=>{i.chain.resolve=s})),ox((s=i).pendingLayoutEffects),function(s){s.macro||(s.macro=requestAnimationFrame(()=>{var l,c;ox((l=s).pendingEffects),l.macro=null,(c=l).pendingPromises.length||c.micro||c.macro||(c.chain.promise=null,c.chain.resolve(!c.waitForData))}))}(i),i.chain.promise;var s}),Zv.apply(this,arguments)}function ox(t,i){try{t.forEach(s=>{"function"==typeof s.teardown&&s.teardown(),i||(s.teardown=s.value[0]())})}catch(s){console.error(s)}t.length=0}function BL(t,i){try{return Promise.all(t.__hooks.snaps.map(s=>Promise.resolve(s.fn(i)))).then(s=>s[s.length-1])}catch(s){console.error(s)}return Promise.resolve()}function zL(t,i,s,l){try{return Promise.all(t.__hooks.menus.map(c=>Promise.resolve(c.fn(i,s,l)))).then(c=>c[c.length-1])}catch(c){console.error(c)}return Promise.resolve()}function qL(t){return t.__hooks.imperativeHandle}function VL(t){t.__actionsDispatch&&t.__hooks.actions.changed&&(t.__actionsDispatch(t.__hooks.actions.list.slice()),t.__hooks.actions.changed=!1)}function HL(t,i){t.__actionsDispatch=i,t.__hooks&&(t.__hooks.actions.changed=!0,VL(t))}function Ja(t){if(void 0===bt)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const i=bt.__hooks;return t>=i.list.length&&i.list.push({}),i.list[t]}function ei(t){return Ja(++Ro),bt.context[t]}function $L(t){t.__hooks&&(t.__hooks.resizer.update=!0)}function GL(t){return{__hooked:!0,fn:t,initiate:LA,run:PA,teardown:jL,runSnaps:BL,runMenu:zL,focus:jA,blur:BA,observeActions:HL,getImperativeHandle:qL,updateRectOnNextRun:$L}}function xg(t){const i=Ja(++Ro);if(!i.value){i.component=bt;const s=l=>{if(i.component.__hooks.obsolete)return;const c="function"==typeof l?l(i.value[0]):l;var d;c!==i.value[0]&&(i.value[0]=c,(d=i.component).__hooks.micro||(d.__hooks.micro=setTimeout(()=>{d.__hooks.micro=null,PA(d)},0)))};i.value=["function"==typeof t?t():t,s]}return i.value}function UL(t,i){const s=Ja(++Ro);wg(s.value?s.value[1]:void 0,i)&&(s.value=[t,i],-1===bt.__hooks.pendingEffects.indexOf(s)&&bt.__hooks.pendingEffects.push(s))}function NA(t,i){const s=Ja(++Ro);wg(s.value?s.value[1]:void 0,i)&&(s.value=[t,i],bt.__hooks.pendingLayoutEffects.push(s))}function FA(t,i){const s=Ja(++Ro);return wg(s.value?s.value[0]:void 0,i)&&(s.value=[i,t()]),s.value[1]}function WL(){return ei("element")}function jA(t){const i=t.__hooks.accessibility;i.active||(i.active=!0,i&&i.setter&&i.setter({active:!0,enabled:i.enabled,blur:i.exitFunction,focus:i.focusFunction,focusSelection:i.focusSelectionFunction}))}function BA(t){const i=t.__hooks.accessibility;i&&i.active&&(i.active=!1,i&&i.setter&&i.setter({active:!1,enabled:i.enabled,blur:i.exitFunction,focus:i.focusFunction,focusSelection:i.focusSelectionFunction}))}const zA={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:t=>Promise.resolve(t)},yF=Object.keys(zA);function vF(t,i){const s=ee({},zA);(t=>{Object.keys(so.prototype).forEach(i=>{t[i]=so.prototype[i]}),so.init(t)})(s);const l={emit(){s.emit(...arguments)}};Object.keys(t.component||{}).forEach(f=>{-1!==yF.indexOf(f)?s[f]=t.component[f].bind(l):l[f]=t.component[f]});const c=function(f){let{sn:p,component:m}=f;const y={},b=[],_=(t=>i=>{const s=(l=ee(ee({},i),{},{action(){"function"==typeof i.action&&i.action.call(s,t),s.emit("changed")},enabled:()=>"function"!=typeof i.enabled||i.enabled.call(s,t),active:"function"==typeof i.active?function(){return i.active.call(s,t)}:void 0}),Object.keys(so.prototype).forEach(c=>{l[c]=so.prototype[c]}),so.init(l),l);var l;return s})(m);return((p.definition.selectionToolbar||{}).items||[]).forEach(w=>{const S=_(w);y[w.key]=S,b.push(S)}),(p.definition.actions||[]).forEach(w=>{const S=_(w);y[w.key]=S}),{actions:y,selectionToolbarItems:b,destroy(){b.length=0}}}({sn:t,component:l}),d=i.app&&i.app.session?i.app.session.getObjectApi({handle:-1}):null;return Object.assign(l,{model:i.model,app:i.app,global:d,selections:i.selections,actions:c.actions}),Object.assign(s,{actions:c.actions,model:i.model,app:i.app,selections:i.selections}),[s,c]}const oc=()=>{};function qA(t,i){return void 0===t?()=>i:()=>t}function VA(t){const i=t||{};return{min:"function"==typeof i.min?i.min:qA(i.min,0),max:"function"==typeof i.max?i.max:qA(i.max,1e3),added:i.added||i.add||oc,description:i.description||oc,moved:i.moved||i.move||oc,removed:i.removed||i.remove||oc,replaced:i.replaced||i.replace||oc,isDefined:()=>!!t}}function HA(t){const i=t.path||"/qHyperCubeDef",s=i.slice(0,-3);if(!1===/\/(qHyperCube|qListObject|qChildList)$/.test(s)){const l=s.includes("/qHyperCube")?"qHyperCubeDef":"qListObjectDef";throw new Error("Incorrect definition for ".concat(l," at ").concat(i,". Valid paths include /qHyperCubeDef, /qListObjectDef, or /qChildListDef, e.g. data/qHyperCubeDef"))}return{propertyPath:i,layoutPath:s,resolveLayout:l=>((t,i,s)=>{const l=i.split("/");let c=t;if(void 0===c)return s;for(let d=0;d<l.length;++d)if(""!==l[d]){if(void 0===c[l[d]])return s;c=c[l[d]]}return c})(l,s,{}),dimensions:VA(t.dimensions),measures:VA(t.measures)}}function YL(){let t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=i.properties||{};return i.properties&&(i.properties.initial||i.properties.onChange)&&(s=i.properties.initial,t=i.properties.onChange),{properties:{initial:s,onChange:t},data:{targets:((i.data||{}).targets||[]).map(HA)},exportProperties:i.exportProperties,importProperties:i.importProperties}}function $A(t,i){let s;s="function"==typeof t?t(i):t;const l={qae:YL(s.qae),component:s.component||{},create:c=>function KL(t,i,s){"function"==typeof t.component&&(t.component=GL(t.component));const[l,c]=t.component&&t.component.__hooked?function(f,p,m){const y=p.app&&p.app.session?p.app.session.getObjectApi({handle:-1}):void 0;let b=!1;const _={},w=["appLayout","constraints","interactions"],S={},E={};p.model&&p.model.session||(S.select=!0,S.edit=!0,E.select=!1,E.edit=!1);const C={context:{model:p.model,app:p.app,global:y,selections:p.selections,nebbie:p.nebbie,element:void 0,emitter:p.emitter,deviceType:m.deviceType,theme:void 0,translator:m.translator,layout:{},appLayout:{},keyboardNavigation:p.keyboardNavigation,focusHandler:p.focusHandler,constraints:S,interactions:E,options:{},plugins:[]},fn:f.component.fn,created(){},mounted(I){this.context.element=I,f.component.initiate(C,{explicitResize:!!p.explicitResize})},render(I){let D=!b||!1;if(I){if(I.layout&&I.layout!==this.context.layout&&(D=!0,this.context.layout=I.layout),I.context&&I.context.theme&&(this.context.theme=I.context.theme),I.context&&!!I.context.keyboardNavigation!=!!this.context.keyboardNavigation&&(this.context.keyboardNavigation=!!I.context.keyboardNavigation,D=!0),I.context&&I.context.focusHandler&&(this.context.focusHandler=I.context.focusHandler),I.options){const k={};let A=!1;Object.keys(I.options).forEach(M=>{k[M]=I.options[M],this.context.options[M]!==I.options[M]&&(A=!0)}),A&&(this.context.options=k,D=!0)}if(I.plugins){let k=this.context.plugins.length!==I.plugins.length;I.plugins.forEach((A,M)=>{this.context.plugins[M]!==A&&(k=!0)}),k&&(this.context.plugins=[...I.plugins],D=!0)}w.forEach(k=>{const A=I.context;if(A&&Object.prototype.hasOwnProperty.call(A,k)){let M=JSON.stringify(A[k]);"constraints"===k&&(M=JSON.stringify(ee(ee({},A[k]),S))),"interactions"===k&&(M=JSON.stringify(ee(ee({},A[k]),E))),M!==_[k]&&(D=!0,_[k]=M,this.context[k]=JSON.parse(M))}})}else D=!0;return this.context.theme&&this.context.theme.name()!==_.themeName&&(D=!0,_.themeName=this.context.theme.name()),this.context.translator.language()!==_.language&&(D=!0,_.language=C.context.translator.language()),D?(b=!0,this.currentResult=f.component.run(this),this.currentResult):this.currentResult||Promise.resolve()},resize(){return f.component.updateRectOnNextRun(this),this.render()},willUnmount(){f.component.teardown(this)},setSnapshotData(I){return f.component.runSnaps(this,I)},onContextMenu(I,D,k){return f.component.runMenu(this,I,D,k)},focus(){f.component.focus(this)},blur(){f.component.blur(this)},getImperativeHandle(){return f.component.getImperativeHandle(this)},destroy(){},observeActions(I){f.component.observeActions(this,I)},isHooked:!0};return w.forEach(I=>{_[I]=JSON.stringify(C.context[I])}),_.themeName=C.context.theme?C.context.theme.name():void 0,_.language=C.context.translator?C.context.translator.language():void 0,Object.assign(C,{selections:p.selections}),[C,null]}(t,i,s):vF(t,i),d=[];return i.model.__snInterceptor&&i.model.__snInterceptor.teardown(),t.qae.properties.onChange&&(i.model.__snInterceptor={setProperties:i.model.setProperties,applyPatches:i.model.applyPatches,teardown:void 0},i.model.setProperties=function(){for(var f=arguments.length,p=new Array(f),m=0;m<f;m++)p[m]=arguments[m];return t.qae.properties.onChange.call({model:i.model},...p),i.model.__snInterceptor.setProperties.call(this,...p)},i.model.applyPatches=function(f,p){return i.model[p?"getEffectiveProperties":"getProperties"]().then(y=>{const b=Io.clone(y),_=f.map(S=>({op:S.qOp,value:JSON.parse(S.qValue),path:S.qPath}));Io.apply(y,_),t.qae.properties.onChange.call({model:i.model},y);const w=Io.generate(b,y).map(S=>({qOp:S.op,qValue:JSON.stringify(S.value),qPath:S.path}));return i.model.__snInterceptor.applyPatches.call(this,w,p)})},i.model.__snInterceptor.teardown=()=>{i.model.setProperties=i.model.__snInterceptor.setProperties,delete i.model.__snInterceptor},d.push(i.model.__snInterceptor.teardown)),{generator:t,component:l,selectionToolbar:{items:c?c.selectionToolbarItems:[]},destroy(){d.forEach(f=>f())},logicalSize:t.definition.logicalSize||(()=>!1)}}(l,c,i),definition:{}};return Object.keys(s).forEach(c=>{l[c]||(l.definition[c]=s[c])}),l}const Sg=(t,i,s)=>{if(!t)return Promise.resolve();let l=Io.generate(i,s);return ni(!0,i,s),l&&l.length?(l=l.map(c=>({qOp:c.op,qValue:JSON.stringify(c.value),qPath:c.path})),t.__snInterceptor?t.__snInterceptor.applyPatches.call(t,l,!0):t.applyPatches(l,!0)):Promise.resolve()},GA=()=>{};function ZL(){let t,{model:i,halo:s,initialError:l,onDestroy:c=be(function*(){})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},d=GA,f=null,p=null,m=null,y=null;const b=new Promise(D=>{m=D}),_=new Promise(D=>{y=D}),w=D=>()=>{D&&D(),y()};let S={},E=[];const C=new so;return{id:i.id,model:i,destroy:()=>be(function*(){yield c(),d(),d=GA})(),convertTo(D){var k=arguments;return be(function*(){let A=k.length>2&&void 0!==k[2]&&k[2];if(!(k.length>1&&void 0!==k[1])||k[1]){const M=yield i.getLayout();if(NL(M)&&!A){const B=yield yg({halo:s,model:i,cellRef:f,newType:D});return yield mF(i,B.qProperty),B}const T=yield i.getEffectiveProperties(),O=yield yg({halo:s,model:i,cellRef:f,newType:D,properties:T}),N=O.qProperty;return yield Sg(i,T,N),O}return yield yg({halo:s,model:i,cellRef:f,newType:D})})()},toggleDataView:D=>be(function*(){let k;if(t||!1===D)t&&!0!==D&&(k=i,yield s.app.destroySessionObject(t),t=void 0);else{let A=s.config.context.dataViewType;const M=yield i.getEffectiveProperties();if(!s.types.getSupportedVersion(A)){if(!s.types.getSupportedVersion("table"))throw new Error("No data view type registered");A="table"}const T=yield yg({halo:s,model:i,cellRef:f,newType:A,properties:M,viewDataMode:!0});k=yield s.app.createSessionObject(T.qProperty),t=k.id}k&&f.current.setModel(k)})(),addListener(D,k){C.addListener(D,k)},removeListener(D,k){C.removeListener(D,k)},getImperativeHandle:(D=be(function*(){return yield _,f.current.getImperativeHandle()}),function(){return D.apply(this,arguments)}),__DO_NOT_USE__:{mount(D){if(p)throw new Error("Already mounted");if(!(D instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return p=D,[d,f]=function(k){let{halo:A,element:M,model:T,initialSnOptions:O,initialSnPlugins:N,onMount:B,emitter:j,initialError:G}=k;const{root:Q}=A,H=V.createRef(),z=fa(),K=zl.createPortal(V.createElement(Qv,{ref:H,halo:A,model:T,currentId:z,initialSnOptions:O,initialSnPlugins:N,initialError:G,onMount:B,emitter:j}),M,z),Y=()=>{Q.remove(K),T.removeListener("closed",Y)};return T.on("closed",Y),Q.add(K),Q.addCell(z,H),[Y,H]}({halo:s,element:D,model:i,initialSnOptions:S,initialSnPlugins:E,initialError:l,onMount:m,emitter:C}),b},applyProperties:D=>be(function*(){const k=nx("/",D,yield i.getEffectiveProperties());if(k.length)return i.applyPatches(k,!0)})(),options(D){var k;(k=be(function*(A){const M=A.onInitialRender;p?be(function*(){yield b,f.current.setSnOptions(ee(ee(ee({},S),A),{onInitialRender:w(M)}))})():S=ee(ee(ee({},S),A),{onInitialRender:w(M)})}),function(A){return k.apply(this,arguments)})(D)},plugins(D){var k;(k=be(function*(A){OA(A),p?be(function*(){yield b,f.current.setSnPlugins(A)})():E=A}),function(A){return k.apply(this,arguments)})(D)},exportImage:()=>f.current.exportImage(),takeSnapshot:()=>f.current.takeSnapshot(),getModel:()=>i,convert:{toType:D=>be(function*(){const k=yield i.getEffectiveProperties(),A=yield yg({halo:s,model:i,cellRef:f,newType:D,properties:k}),M=A.qProperty;return yield Sg(i,k,M),A})(),revert:()=>be(function*(){yield i.clearSoftPatches()})()}}};var D}function sx(t,i,s,l){return UA.apply(this,arguments)}function UA(){return UA=be(function*(t,i,s,l){const c=ZL({model:t,halo:s,initialError:l,onDestroy:arguments.length>4&&void 0!==arguments[4]?arguments[4]:be(function*(){})});return i.options&&c.__DO_NOT_USE__.options(i.options),i.plugins&&c.__DO_NOT_USE__.plugins(i.plugins),i.element&&(yield c.__DO_NOT_USE__.mount(i.element)),c}),UA.apply(this,arguments)}function Xv(t,i,s){return ax.apply(this,arguments)}function ax(){return ax=be(function*(t,i,s){let{type:l,version:c,fields:d,properties:f,extendProperties:p}=t,m={};const y=[];try{const b=i.types.get({name:l,version:c});m=yield b.initialProperties(f,p);const _=yield b.supernova();d&&(yield gL({sn:_,properties:m,fields:d,children:y},i)),f&&_&&_.qae.properties.onChange&&_.qae.properties.onChange.call({},m)}catch(b){m=s?null:{qInfo:{qType:l},visualization:l}}if(!s){const b=yield i.app.createObject(m);return y.length>0&&(yield b.setFullPropertyTree({qProperty:m,qChildren:y})),Ru.set(b.id,b),b}return m}),ax.apply(this,arguments)}const XL_className="njs-sheet";function WA(t,i,s){return t.bounds?t.bounds:{y:t.row/s*100,x:t.col/i*100,width:t.colspan/i*100,height:t.rowspan/s*100}}function JL(t){let{model:i,halo:s,initialSnOptions:l,initialSnPlugins:c,initialError:d,onMount:f}=t;const{root:p}=s,[m]=ec(i),{theme:y}=P.useContext(ai),[b,_]=P.useState([]),[w,S]=P.useState(void 0),[E,C]=P.useState(void 0),[I,D]=P.useState("");P.useEffect(()=>{if(m){const O=JSON.stringify(m.cells);if(O===I)return;D(O),function(){var B=be(function*(){b.forEach(z=>{p.removeCell(z.currentId)});const j=m.cells,{columns:G,rows:Q}=m,H=yield Promise.all(j.map(function(){var z=be(function*(K){let Y;const X=new Promise($=>{Y=$}),re=b.find($=>$.id===K.name);return re?(re.bounds=WA(K,G,Q),delete re.mountedPromise,re):{model:(yield($=be(function*(W,te){let{id:J,options:ae,plugins:ue,element:_e}=W;const ve="".concat(J);let Ee=Iu.get(ve);Ee||(Ee=te.app.getObject(J),Iu.set(ve,Ee));const fe=yield Ee;return Ru.set(ve,fe),sx(fe,{options:ae,plugins:ue,element:_e},te)}),function(W,te){return $.apply(this,arguments)})({id:K.name},s)).model,id:K.name,bounds:WA(K,G,Q),cellRef:V.createRef(),currentId:fa(),mounted:Y,mountedPromise:X};var $});return function(K){return z.apply(this,arguments)}}()));H.forEach(z=>p.addCell(z.currentId,z.cellRef)),_(H)});return function(){return B.apply(this,arguments)}}()()}},[m]);const k=P.useMemo(()=>b?b.map(O=>function(N,B,j,G,Q,H){const{x:z,y:K,width:Y,height:X}=N.bounds;return V.createElement("div",{style:{left:"".concat(z,"%"),top:"".concat(K,"%"),width:"".concat(Y,"%"),height:"".concat(X,"%"),position:"absolute"}},V.createElement(Qv,{ref:N.cellRef,halo:B,model:N.model,currentId:N.currentId,initialSnOptions:j,initialSnPlugins:G,initialError:Q,onMount:H}))}(O,s,l,c,d,O.mounted)):[],[b]);P.useEffect(()=>{const O=null!=m&&m.components?m.components.find(N=>"general"===N.key):null;S(lA(O,s.public.theme)),C(aA(O,s.app))},[m,s.public.theme,s.app,y]);const A=!m||Number.isNaN(m.height)?"100%":"".concat(Number(m.height),"%"),M=b.map(O=>O.mountedPromise);return M.filter(O=>!!O).length&&Promise.all(M).then(()=>{f()}),V.createElement("div",{className:XL_className,style:{width:"100%",height:A,position:"relative",backgroundColor:w,backgroundImage:E&&E.url?"url(".concat(E.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:E&&E.size,backgroundPosition:E&&E.pos}},k)}const KA=()=>{};function e5(){let{model:t,halo:i,initialError:s,onDestroy:l=be(function*(){})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},c=KA,d=null,f=null,p=null;const m=new Promise(w=>{p=w});let y={},b=[];return{id:t.id,model:t,destroy:()=>be(function*(){yield l(),c(),c=KA})(),__DO_NOT_USE__:{mount(w){if(f)throw new Error("Already mounted");if(!(w instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return f=w,[c,d]=function(S){let{halo:E,element:C,model:I,initialSnOptions:D,initialSnPlugins:k,onMount:A,initialError:M}=S;const{root:T}=E,O=V.createRef(),N=zl.createPortal(V.createElement(JL,{ref:O,halo:E,model:I,initialSnOptions:D,initialSnPlugins:k,initialError:M,onMount:A}),C,I.id),B=()=>{T.remove(N),I.removeListener("closed",B)};return I.on("closed",B),T.add(N),[B,O]}({halo:i,element:w,model:t,initialSnOptions:y,initialSnPlugins:b,initialError:s,onMount:p}),m},applyProperties:w=>be(function*(){const S=nx("/",w,yield t.getEffectiveProperties());if(S.length)return t.applyPatches(S,!0)})(),options(w){var S;(S=be(function*(E){f?be(function*(){yield m,d.current.setSnOptions(ee(ee({},y),E))})():y=ee(ee({},y),E)}),function(E){return S.apply(this,arguments)})(w)},plugins(w){var S;(S=be(function*(E){OA(E),f?be(function*(){yield m,d.current.setSnPlugins(E)})():b=E}),function(E){return S.apply(this,arguments)})(w)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>t}}}function t5(t,i){return lx.apply(this,arguments)}function lx(){return lx=be(function*(t,i){let{id:s,options:l,plugins:c,element:d}=t;const f="".concat(s);let p=Iu.get(f);p||(p=i.app.getObject(s),Iu.set(f,p));const m=yield p;return Ru.set(f,m),"sheet"===m.genericType?(y=be(function*(b,_,w,S){const E=e5({model:b,halo:w,initialError:S,onDestroy:arguments.length>4&&void 0!==arguments[4]?arguments[4]:be(function*(){})});return _.options&&E.__DO_NOT_USE__.options(_.options),_.plugins&&E.__DO_NOT_USE__.plugins(_.plugins),_.element&&(yield E.__DO_NOT_USE__.mount(_.element)),E}),function(b,_,w,S){return y.apply(this,arguments)})(m,{options:l,plugins:c,element:d},i):sx(m,{options:l,plugins:c,element:d},i);var y}),lx.apply(this,arguments)}function n5(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:i=>!0===t[i]}}var QA,YA,bF=Ht;function Ht(t){var i=this;if(i instanceof Ht||(i=new Ht),i.tail=null,i.head=null,i.length=0,t&&"function"==typeof t.forEach)t.forEach(function(c){i.push(c)});else if(arguments.length>0)for(var s=0,l=arguments.length;s<l;s++)i.push(arguments[s]);return i}function r5(t,i,s){var l=i===t.head?new Hf(s,null,i,t):new Hf(s,i,i.next,t);return null===l.next&&(t.tail=l),null===l.prev&&(t.head=l),t.length++,l}function el(t,i){t.tail=new Hf(i,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function _F(t,i){t.head=new Hf(i,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function Hf(t,i,s,l){if(!(this instanceof Hf))return new Hf(t,i,s,l);this.list=l,this.value=t,i?(i.next=this,this.prev=i):this.prev=null,s?(s.prev=this,this.next=s):this.next=null}Ht.Node=Hf,Ht.create=Ht,Ht.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var i=t.next,s=t.prev;return i&&(i.prev=s),s&&(s.next=i),t===this.head&&(this.head=i),t===this.tail&&(this.tail=s),t.list.length--,t.next=null,t.prev=null,t.list=null,i},Ht.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var i=this.head;t.list=this,t.next=i,i&&(i.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}},Ht.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var i=this.tail;t.list=this,t.prev=i,i&&(i.next=t),this.tail=t,this.head||(this.head=t),this.length++}},Ht.prototype.push=function(){for(var t=0,i=arguments.length;t<i;t++)el(this,arguments[t]);return this.length},Ht.prototype.unshift=function(){for(var t=0,i=arguments.length;t<i;t++)_F(this,arguments[t]);return this.length},Ht.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}},Ht.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}},Ht.prototype.forEach=function(t,i){i=i||this;for(var s=this.head,l=0;null!==s;l++)t.call(i,s.value,l,this),s=s.next},Ht.prototype.forEachReverse=function(t,i){i=i||this;for(var s=this.tail,l=this.length-1;null!==s;l--)t.call(i,s.value,l,this),s=s.prev},Ht.prototype.get=function(t){for(var i=0,s=this.head;null!==s&&i<t;i++)s=s.next;if(i===t&&null!==s)return s.value},Ht.prototype.getReverse=function(t){for(var i=0,s=this.tail;null!==s&&i<t;i++)s=s.prev;if(i===t&&null!==s)return s.value},Ht.prototype.map=function(t,i){i=i||this;for(var s=new Ht,l=this.head;null!==l;)s.push(t.call(i,l.value,this)),l=l.next;return s},Ht.prototype.mapReverse=function(t,i){i=i||this;for(var s=new Ht,l=this.tail;null!==l;)s.push(t.call(i,l.value,this)),l=l.prev;return s},Ht.prototype.reduce=function(t,i){var s,l=this.head;if(arguments.length>1)s=i;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");l=this.head.next,s=this.head.value}for(var c=0;null!==l;c++)s=t(s,l.value,c),l=l.next;return s},Ht.prototype.reduceReverse=function(t,i){var s,l=this.tail;if(arguments.length>1)s=i;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");l=this.tail.prev,s=this.tail.value}for(var c=this.length-1;null!==l;c--)s=t(s,l.value,c),l=l.prev;return s},Ht.prototype.toArray=function(){for(var t=new Array(this.length),i=0,s=this.head;null!==s;i++)t[i]=s.value,s=s.next;return t},Ht.prototype.toArrayReverse=function(){for(var t=new Array(this.length),i=0,s=this.tail;null!==s;i++)t[i]=s.value,s=s.prev;return t},Ht.prototype.slice=function(t,i){(i=i||this.length)<0&&(i+=this.length),(t=t||0)<0&&(t+=this.length);var s=new Ht;if(i<t||i<0)return s;t<0&&(t=0),i>this.length&&(i=this.length);for(var l=0,c=this.head;null!==c&&l<t;l++)c=c.next;for(;null!==c&&l<i;l++,c=c.next)s.push(c.value);return s},Ht.prototype.sliceReverse=function(t,i){(i=i||this.length)<0&&(i+=this.length),(t=t||0)<0&&(t+=this.length);var s=new Ht;if(i<t||i<0)return s;t<0&&(t=0),i>this.length&&(i=this.length);for(var l=this.length,c=this.tail;null!==c&&l>i;l--)c=c.prev;for(;null!==c&&l>t;l--,c=c.prev)s.push(c.value);return s},Ht.prototype.splice=function(t,i,...s){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var l=0,c=this.head;null!==c&&l<t;l++)c=c.next;var d=[];for(l=0;c&&l<i;l++)d.push(c.value),c=this.removeNode(c);for(null===c&&(c=this.tail),c!==this.head&&c!==this.tail&&(c=c.prev),l=0;l<s.length;l++)c=r5(this,c,s[l]);return d},Ht.prototype.reverse=function(){for(var t=this.head,i=this.tail,s=t;null!==s;s=s.prev){var l=s.prev;s.prev=s.next,s.next=l}return this.head=i,this.tail=t,this};try{(YA||(YA=1,QA=function(t){t.prototype[Symbol.iterator]=function*(){for(let i=this.head;i;i=i.next)yield i.value}}),QA)(Ht)}catch(t){}const wF=bF,sc=Symbol("max"),ha=Symbol("length"),Eg=Symbol("lengthCalculator"),Jv=Symbol("allowStale"),$f=Symbol("maxAge"),ac=Symbol("dispose"),o5=Symbol("noDisposeOnSet"),li=Symbol("lruList"),pa=Symbol("cache"),s5=Symbol("updateAgeOnGet"),e0=()=>1,Nu=(t,i,s)=>{const l=t[pa].get(i);if(l){const c=l.value;if(Cg(t,c)){if(_t(t,l),!t[Jv])return}else s&&(t[s5]&&(l.value.now=Date.now()),t[li].unshiftNode(l));return c.value}},Cg=(t,i)=>{if(!i||!i.maxAge&&!t[$f])return!1;const s=Date.now()-i.now;return i.maxAge?s>i.maxAge:t[$f]&&s>t[$f]},Fu=t=>{if(t[ha]>t[sc])for(let i=t[li].tail;t[ha]>t[sc]&&null!==i;){const s=i.prev;_t(t,i),i=s}},_t=(t,i)=>{if(i){const s=i.value;t[ac]&&t[ac](s.key,s.value),t[ha]-=s.length,t[pa].delete(s.key),t[li].removeNode(i)}};class t0{constructor(i,s,l,c,d){this.key=i,this.value=s,this.length=l,this.now=c,this.maxAge=d||0}}const cx=(t,i,s,l)=>{let c=s.value;Cg(t,c)&&(_t(t,s),t[Jv]||(c=void 0)),c&&i.call(l,c.value,c.key,t)};const l5=Object.freeze({loose:!0}),c5=Object.freeze({});var ux=t=>t?"object"!=typeof t?l5:t:c5,dx={exports:{}},fx={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},n0="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];return console.error("SEMVER",...i)}:()=>{};!function(t,i){const{MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:l,MAX_LENGTH:c}=fx,d=n0,f=(i=t.exports={}).re=[],p=i.safeRe=[],m=i.src=[],y=i.t={};let b=0;const _="[a-zA-Z0-9-]",w=[["\\s",1],["\\d",c],[_,l]],S=(E,C,I)=>{const D=(A=>{for(const[M,T]of w)A=A.split("".concat(M,"*")).join("".concat(M,"{0,").concat(T,"}")).split("".concat(M,"+")).join("".concat(M,"{1,").concat(T,"}"));return A})(C),k=b++;d(E,k,C),y[E]=k,m[k]=C,f[k]=new RegExp(C,I?"g":void 0),p[k]=new RegExp(D,I?"g":void 0)};S("NUMERICIDENTIFIER","0|[1-9]\\d*"),S("NUMERICIDENTIFIERLOOSE","\\d+"),S("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-]".concat(_,"*")),S("MAINVERSION","(".concat(m[y.NUMERICIDENTIFIER],")\\.")+"(".concat(m[y.NUMERICIDENTIFIER],")\\.")+"(".concat(m[y.NUMERICIDENTIFIER],")")),S("MAINVERSIONLOOSE","(".concat(m[y.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(m[y.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(m[y.NUMERICIDENTIFIERLOOSE],")")),S("PRERELEASEIDENTIFIER","(?:".concat(m[y.NUMERICIDENTIFIER],"|").concat(m[y.NONNUMERICIDENTIFIER],")")),S("PRERELEASEIDENTIFIERLOOSE","(?:".concat(m[y.NUMERICIDENTIFIERLOOSE],"|").concat(m[y.NONNUMERICIDENTIFIER],")")),S("PRERELEASE","(?:-(".concat(m[y.PRERELEASEIDENTIFIER],"(?:\\.").concat(m[y.PRERELEASEIDENTIFIER],")*))")),S("PRERELEASELOOSE","(?:-?(".concat(m[y.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(m[y.PRERELEASEIDENTIFIERLOOSE],")*))")),S("BUILDIDENTIFIER","".concat(_,"+")),S("BUILD","(?:\\+(".concat(m[y.BUILDIDENTIFIER],"(?:\\.").concat(m[y.BUILDIDENTIFIER],")*))")),S("FULLPLAIN","v?".concat(m[y.MAINVERSION]).concat(m[y.PRERELEASE],"?").concat(m[y.BUILD],"?")),S("FULL","^".concat(m[y.FULLPLAIN],"$")),S("LOOSEPLAIN","[v=\\s]*".concat(m[y.MAINVERSIONLOOSE]).concat(m[y.PRERELEASELOOSE],"?").concat(m[y.BUILD],"?")),S("LOOSE","^".concat(m[y.LOOSEPLAIN],"$")),S("GTLT","((?:<|>)?=?)"),S("XRANGEIDENTIFIERLOOSE","".concat(m[y.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),S("XRANGEIDENTIFIER","".concat(m[y.NUMERICIDENTIFIER],"|x|X|\\*")),S("XRANGEPLAIN","[v=\\s]*(".concat(m[y.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(m[y.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(m[y.XRANGEIDENTIFIER],")")+"(?:".concat(m[y.PRERELEASE],")?").concat(m[y.BUILD],"?")+")?)?"),S("XRANGEPLAINLOOSE","[v=\\s]*(".concat(m[y.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(m[y.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(m[y.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(m[y.PRERELEASELOOSE],")?").concat(m[y.BUILD],"?")+")?)?"),S("XRANGE","^".concat(m[y.GTLT],"\\s*").concat(m[y.XRANGEPLAIN],"$")),S("XRANGELOOSE","^".concat(m[y.GTLT],"\\s*").concat(m[y.XRANGEPLAINLOOSE],"$")),S("COERCEPLAIN","".concat("(^|[^\\d])(\\d{1,").concat(s,"})")+"(?:\\.(\\d{1,".concat(s,"}))?")+"(?:\\.(\\d{1,".concat(s,"}))?")),S("COERCE","".concat(m[y.COERCEPLAIN],"(?:$|[^\\d])")),S("COERCEFULL",m[y.COERCEPLAIN]+"(?:".concat(m[y.PRERELEASE],")?")+"(?:".concat(m[y.BUILD],")?")+"(?:$|[^\\d])"),S("COERCERTL",m[y.COERCE],!0),S("COERCERTLFULL",m[y.COERCEFULL],!0),S("LONETILDE","(?:~>?)"),S("TILDETRIM","(\\s*)".concat(m[y.LONETILDE],"\\s+"),!0),i.tildeTrimReplace="$1~",S("TILDE","^".concat(m[y.LONETILDE]).concat(m[y.XRANGEPLAIN],"$")),S("TILDELOOSE","^".concat(m[y.LONETILDE]).concat(m[y.XRANGEPLAINLOOSE],"$")),S("LONECARET","(?:\\^)"),S("CARETTRIM","(\\s*)".concat(m[y.LONECARET],"\\s+"),!0),i.caretTrimReplace="$1^",S("CARET","^".concat(m[y.LONECARET]).concat(m[y.XRANGEPLAIN],"$")),S("CARETLOOSE","^".concat(m[y.LONECARET]).concat(m[y.XRANGEPLAINLOOSE],"$")),S("COMPARATORLOOSE","^".concat(m[y.GTLT],"\\s*(").concat(m[y.LOOSEPLAIN],")$|^$")),S("COMPARATOR","^".concat(m[y.GTLT],"\\s*(").concat(m[y.FULLPLAIN],")$|^$")),S("COMPARATORTRIM","(\\s*)".concat(m[y.GTLT],"\\s*(").concat(m[y.LOOSEPLAIN],"|").concat(m[y.XRANGEPLAIN],")"),!0),i.comparatorTrimReplace="$1$2$3",S("HYPHENRANGE","^\\s*(".concat(m[y.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(m[y.XRANGEPLAIN],")")+"\\s*$"),S("HYPHENRANGELOOSE","^\\s*(".concat(m[y.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(m[y.XRANGEPLAINLOOSE],")")+"\\s*$"),S("STAR","(<|>)?=?\\s*\\*"),S("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),S("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(dx,dx.exports);var hx=dx.exports;const ZA=/^[0-9]+$/,u5=(t,i)=>{const s=ZA.test(t),l=ZA.test(i);return s&&l&&(t=+t,i=+i),t===i?0:s&&!l?-1:l&&!s?1:t<i?-1:1};var d5={compareIdentifiers:u5,rcompareIdentifiers:(t,i)=>u5(i,t)};const r0=n0,{MAX_LENGTH:XA,MAX_SAFE_INTEGER:o0}=fx,{safeRe:JA,t:eI}=hx,f5=ux,{compareIdentifiers:Gf}=d5;var px=class pc{constructor(i,s){if(s=f5(s),i instanceof pc){if(i.loose===!!s.loose&&i.includePrerelease===!!s.includePrerelease)return i;i=i.version}else if("string"!=typeof i)throw new TypeError('Invalid version. Must be a string. Got type "'.concat(typeof i,'".'));if(i.length>XA)throw new TypeError("version is longer than ".concat(XA," characters"));r0("SemVer",i,s),this.options=s,this.loose=!!s.loose,this.includePrerelease=!!s.includePrerelease;const l=i.trim().match(s.loose?JA[eI.LOOSE]:JA[eI.FULL]);if(!l)throw new TypeError("Invalid Version: ".concat(i));if(this.raw=i,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>o0||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o0||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o0||this.patch<0)throw new TypeError("Invalid patch version");this.prerelease=l[4]?l[4].split(".").map(c=>{if(/^[0-9]+$/.test(c)){const d=+c;if(d>=0&&d<o0)return d}return c}):[],this.build=l[5]?l[5].split("."):[],this.format()}format(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}toString(){return this.version}compare(i){if(r0("SemVer.compare",this.version,this.options,i),!(i instanceof pc)){if("string"==typeof i&&i===this.version)return 0;i=new pc(i,this.options)}return i.version===this.version?0:this.compareMain(i)||this.comparePre(i)}compareMain(i){return i instanceof pc||(i=new pc(i,this.options)),Gf(this.major,i.major)||Gf(this.minor,i.minor)||Gf(this.patch,i.patch)}comparePre(i){if(i instanceof pc||(i=new pc(i,this.options)),this.prerelease.length&&!i.prerelease.length)return-1;if(!this.prerelease.length&&i.prerelease.length)return 1;if(!this.prerelease.length&&!i.prerelease.length)return 0;let s=0;do{const l=this.prerelease[s],c=i.prerelease[s];if(r0("prerelease compare",s,l,c),void 0===l&&void 0===c)return 0;if(void 0===c)return 1;if(void 0===l)return-1;if(l!==c)return Gf(l,c)}while(++s)}compareBuild(i){i instanceof pc||(i=new pc(i,this.options));let s=0;do{const l=this.build[s],c=i.build[s];if(r0("prerelease compare",s,l,c),void 0===l&&void 0===c)return 0;if(void 0===c)return 1;if(void 0===l)return-1;if(l!==c)return Gf(l,c)}while(++s)}inc(i,s,l){switch(i){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",s,l);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",s,l);break;case"prepatch":this.prerelease.length=0,this.inc("patch",s,l),this.inc("pre",s,l);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",s,l),this.inc("pre",s,l);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const c=Number(l)?1:0;if(!s&&!1===l)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[c];else{let d=this.prerelease.length;for(;--d>=0;)"number"==typeof this.prerelease[d]&&(this.prerelease[d]++,d=-2);if(-1===d){if(s===this.prerelease.join(".")&&!1===l)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(c)}}if(s){let d=[s,c];!1===l&&(d=[s]),0===Gf(this.prerelease[0],s)?isNaN(this.prerelease[1])&&(this.prerelease=d):this.prerelease=d}break}default:throw new Error("invalid increment argument: ".concat(i))}return this.raw=this.format(),this.build.length&&(this.raw+="+".concat(this.build.join("."))),this}};const tI=px;var Uf=(t,i,s)=>new tI(t,s).compare(new tI(i,s));const h5=Uf,g5=Uf,y5=Uf,b5=Uf,w5=Uf,S5=Uf;var Dg,s0,ji,yx,vx=(t,i,s,l)=>{switch(i){case"===":return"object"==typeof t&&(t=t.version),"object"==typeof s&&(s=s.version),t===s;case"!==":return"object"==typeof t&&(t=t.version),"object"==typeof s&&(s=s.version),t!==s;case"":case"=":case"==":return((t,i,s)=>0===h5(t,i,s))(t,s,l);case"!=":return((t,i,s)=>0!==g5(t,i,s))(t,s,l);case">":return((t,i,s)=>y5(t,i,s)>0)(t,s,l);case">=":return((t,i,s)=>b5(t,i,s)>=0)(t,s,l);case"<":return((t,i,s)=>w5(t,i,s)<0)(t,s,l);case"<=":return((t,i,s)=>S5(t,i,s)<=0)(t,s,l);default:throw new TypeError("Invalid operator: ".concat(i))}};const rI=function bx(){if(yx)return ji;yx=1;class t{constructor(z,K){if(K=s(K),z instanceof t)return z.loose===!!K.loose&&z.includePrerelease===!!K.includePrerelease?z:new t(z.raw,K);if(z instanceof l)return this.raw=z.value,this.set=[[z]],this.format(),this;if(this.options=K,this.loose=!!K.loose,this.includePrerelease=!!K.includePrerelease,this.raw=z.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(Y=>this.parseRange(Y.trim())).filter(Y=>Y.length),!this.set.length)throw new TypeError("Invalid SemVer Range: ".concat(this.raw));if(this.set.length>1){const Y=this.set[0];if(this.set=this.set.filter(X=>!S(X[0])),0===this.set.length)this.set=[Y];else if(this.set.length>1)for(const X of this.set)if(1===X.length&&E(X[0])){this.set=[X];break}}this.format()}format(){return this.range=this.set.map(z=>z.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(z){const K=((this.options.includePrerelease&&_)|(this.options.loose&&w))+":"+z,Y=i.get(K);if(Y)return Y;const X=this.options.loose;z=z.replace(X?f[p.HYPHENRANGELOOSE]:f[p.HYPHENRANGE],G(this.options.includePrerelease)),c("hyphen replace",z),z=z.replace(f[p.COMPARATORTRIM],m),c("comparator trim",z),z=z.replace(f[p.TILDETRIM],y),c("tilde trim",z),z=z.replace(f[p.CARETTRIM],b),c("caret trim",z);let q=z.split(" ").map(J=>I(J,this.options)).join(" ").split(/\s+/).map(J=>j(J,this.options));X&&(q=q.filter(J=>(c("loose invalid filter",J,this.options),!!J.match(f[p.COMPARATORLOOSE])))),c("range list",q);const $=new Map,W=q.map(J=>new l(J,this.options));for(const J of W){if(S(J))return[J];$.set(J.value,J)}$.size>1&&$.has("")&&$.delete("");const te=[...$.values()];return i.set(K,te),te}intersects(z,K){if(!(z instanceof t))throw new TypeError("a Range is required");return this.set.some(Y=>C(Y,K)&&z.set.some(X=>C(X,K)&&Y.every(re=>X.every(q=>re.intersects(q,K)))))}test(z){if(!z)return!1;if("string"==typeof z)try{z=new d(z,this.options)}catch(K){return!1}for(let K=0;K<this.set.length;K++)if(Q(this.set[K],z,this.options))return!0;return!1}}ji=t;const i=new class{constructor(t){if("number"==typeof t&&(t={max:t}),t||(t={}),t.max&&("number"!=typeof t.max||t.max<0))throw new TypeError("max must be a non-negative number");this[sc]=t.max||1/0;const i=t.length||e0;if(this[Eg]="function"!=typeof i?e0:i,this[Jv]=t.stale||!1,t.maxAge&&"number"!=typeof t.maxAge)throw new TypeError("maxAge must be a number");this[$f]=t.maxAge||0,this[ac]=t.dispose,this[o5]=t.noDisposeOnSet||!1,this[s5]=t.updateAgeOnGet||!1,this.reset()}set max(t){if("number"!=typeof t||t<0)throw new TypeError("max must be a non-negative number");this[sc]=t||1/0,Fu(this)}get max(){return this[sc]}set allowStale(t){this[Jv]=!!t}get allowStale(){return this[Jv]}set maxAge(t){if("number"!=typeof t)throw new TypeError("maxAge must be a non-negative number");this[$f]=t,Fu(this)}get maxAge(){return this[$f]}set lengthCalculator(t){"function"!=typeof t&&(t=e0),t!==this[Eg]&&(this[Eg]=t,this[ha]=0,this[li].forEach(i=>{i.length=this[Eg](i.value,i.key),this[ha]+=i.length})),Fu(this)}get lengthCalculator(){return this[Eg]}get length(){return this[ha]}get itemCount(){return this[li].length}rforEach(t,i){i=i||this;for(let s=this[li].tail;null!==s;){const l=s.prev;cx(this,t,s,i),s=l}}forEach(t,i){i=i||this;for(let s=this[li].head;null!==s;){const l=s.next;cx(this,t,s,i),s=l}}keys(){return this[li].toArray().map(t=>t.key)}values(){return this[li].toArray().map(t=>t.value)}reset(){this[ac]&&this[li]&&this[li].length&&this[li].forEach(t=>this[ac](t.key,t.value)),this[pa]=new Map,this[li]=new wF,this[ha]=0}dump(){return this[li].map(t=>!Cg(this,t)&&{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[li]}set(t,i,s){if((s=s||this[$f])&&"number"!=typeof s)throw new TypeError("maxAge must be a number");const l=s?Date.now():0,c=this[Eg](i,t);if(this[pa].has(t)){if(c>this[sc])return _t(this,this[pa].get(t)),!1;const f=this[pa].get(t).value;return this[ac]&&(this[o5]||this[ac](t,f.value)),f.now=l,f.maxAge=s,f.value=i,this[ha]+=c-f.length,f.length=c,this.get(t),Fu(this),!0}const d=new t0(t,i,c,l,s);return d.length>this[sc]?(this[ac]&&this[ac](t,i),!1):(this[ha]+=d.length,this[li].unshift(d),this[pa].set(t,this[li].head),Fu(this),!0)}has(t){if(!this[pa].has(t))return!1;const i=this[pa].get(t).value;return!Cg(this,i)}get(t){return Nu(this,t,!0)}peek(t){return Nu(this,t,!1)}pop(){const t=this[li].tail;return t?(_t(this,t),t.value):null}del(t){_t(this,this[pa].get(t))}load(t){this.reset();const i=Date.now();for(let s=t.length-1;s>=0;s--){const l=t[s],c=l.e||0;if(0===c)this.set(l.k,l.v);else{const d=c-i;d>0&&this.set(l.k,l.v,d)}}}prune(){this[pa].forEach((t,i)=>Nu(this,i,!1))}}({max:1e3}),s=ux,l=function(){if(s0)return Dg;s0=1;const H=Symbol("SemVer ANY");class z{static get ANY(){return H}constructor(J,ae){if(ae=K(ae),J instanceof z){if(J.loose===!!ae.loose)return J;J=J.value}J=J.trim().split(/\s+/).join(" "),q("comparator",J,ae),this.options=ae,this.loose=!!ae.loose,this.parse(J),this.value=this.semver===H?"":this.operator+this.semver.version,q("comp",this)}parse(J){const ue=J.match(this.options.loose?Y[X.COMPARATORLOOSE]:Y[X.COMPARATOR]);if(!ue)throw new TypeError("Invalid comparator: ".concat(J));this.operator=void 0!==ue[1]?ue[1]:"","="===this.operator&&(this.operator=""),this.semver=ue[2]?new $(ue[2],this.options.loose):H}toString(){return this.value}test(J){if(q("Comparator.test",J,this.options.loose),this.semver===H||J===H)return!0;if("string"==typeof J)try{J=new $(J,this.options)}catch(ae){return!1}return re(J,this.operator,this.semver,this.options)}intersects(J,ae){if(!(J instanceof z))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new W(J.value,ae).test(this.value):""===J.operator?""===J.value||new W(this.value,ae).test(J.semver):!((ae=K(ae)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===J.value)||!ae.includePrerelease&&(this.value.startsWith("<0.0.0")||J.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!J.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!J.operator.startsWith("<"))&&(this.semver.version!==J.semver.version||!this.operator.includes("=")||!J.operator.includes("="))&&!(re(this.semver,"<",J.semver,ae)&&this.operator.startsWith(">")&&J.operator.startsWith("<"))&&!(re(this.semver,">",J.semver,ae)&&this.operator.startsWith("<")&&J.operator.startsWith(">")))}}Dg=z;const K=ux,{safeRe:Y,t:X}=hx,re=vx,q=n0,$=px,W=bx();return Dg}(),c=n0,d=px,{safeRe:f,t:p,comparatorTrimReplace:m,tildeTrimReplace:y,caretTrimReplace:b}=hx,{FLAG_INCLUDE_PRERELEASE:_,FLAG_LOOSE:w}=fx,S=H=>"<0.0.0-0"===H.value,E=H=>""===H.value,C=(H,z)=>{let K=!0;const Y=H.slice();let X=Y.pop();for(;K&&Y.length;)K=Y.every(re=>X.intersects(re,z)),X=Y.pop();return K},I=(H,z)=>(c("comp",H,z),H=M(H,z),c("caret",H),H=k(H,z),c("tildes",H),H=O(H,z),c("xrange",H),H=B(H,z),c("stars",H),H),D=H=>!H||"x"===H.toLowerCase()||"*"===H,k=(H,z)=>H.trim().split(/\s+/).map(K=>A(K,z)).join(" "),A=(H,z)=>H.replace(z.loose?f[p.TILDELOOSE]:f[p.TILDE],(Y,X,re,q,$)=>{let W;return c("tilde",H,Y,X,re,q,$),D(X)?W="":D(re)?W=">=".concat(X,".0.0 <").concat(+X+1,".0.0-0"):D(q)?W=">=".concat(X,".").concat(re,".0 <").concat(X,".").concat(+re+1,".0-0"):$?(c("replaceTilde pr",$),W=">=".concat(X,".").concat(re,".").concat(q,"-").concat($," <").concat(X,".").concat(+re+1,".0-0")):W=">=".concat(X,".").concat(re,".").concat(q," <").concat(X,".").concat(+re+1,".0-0"),c("tilde return",W),W}),M=(H,z)=>H.trim().split(/\s+/).map(K=>T(K,z)).join(" "),T=(H,z)=>{c("caret",H,z);const Y=z.includePrerelease?"-0":"";return H.replace(z.loose?f[p.CARETLOOSE]:f[p.CARET],(X,re,q,$,W)=>{let te;return c("caret",H,X,re,q,$,W),D(re)?te="":D(q)?te=">=".concat(re,".0.0").concat(Y," <").concat(+re+1,".0.0-0"):D($)?te="0"===re?">=".concat(re,".").concat(q,".0").concat(Y," <").concat(re,".").concat(+q+1,".0-0"):">=".concat(re,".").concat(q,".0").concat(Y," <").concat(+re+1,".0.0-0"):W?(c("replaceCaret pr",W),te="0"===re?"0"===q?">=".concat(re,".").concat(q,".").concat($,"-").concat(W," <").concat(re,".").concat(q,".").concat(+$+1,"-0"):">=".concat(re,".").concat(q,".").concat($,"-").concat(W," <").concat(re,".").concat(+q+1,".0-0"):">=".concat(re,".").concat(q,".").concat($,"-").concat(W," <").concat(+re+1,".0.0-0")):(c("no pr"),te="0"===re?"0"===q?">=".concat(re,".").concat(q,".").concat($).concat(Y," <").concat(re,".").concat(q,".").concat(+$+1,"-0"):">=".concat(re,".").concat(q,".").concat($).concat(Y," <").concat(re,".").concat(+q+1,".0-0"):">=".concat(re,".").concat(q,".").concat($," <").concat(+re+1,".0.0-0")),c("caret return",te),te})},O=(H,z)=>(c("replaceXRanges",H,z),H.split(/\s+/).map(K=>N(K,z)).join(" ")),N=(H,z)=>(H=H.trim()).replace(z.loose?f[p.XRANGELOOSE]:f[p.XRANGE],(Y,X,re,q,$,W)=>{c("xRange",H,Y,X,re,q,$,W);const te=D(re),J=te||D(q),ae=J||D($);return"="===X&&ae&&(X=""),W=z.includePrerelease?"-0":"",te?Y=">"===X||"<"===X?"<0.0.0-0":"*":X&&ae?(J&&(q=0),$=0,">"===X?(X=">=",J?(re=+re+1,q=0,$=0):(q=+q+1,$=0)):"<="===X&&(X="<",J?re=+re+1:q=+q+1),"<"===X&&(W="-0"),Y="".concat(X+re,".").concat(q,".").concat($).concat(W)):J?Y=">=".concat(re,".0.0").concat(W," <").concat(+re+1,".0.0-0"):ae&&(Y=">=".concat(re,".").concat(q,".0").concat(W," <").concat(re,".").concat(+q+1,".0-0")),c("xRange return",Y),Y}),B=(H,z)=>(c("replaceStars",H,z),H.trim().replace(f[p.STAR],"")),j=(H,z)=>(c("replaceGTE0",H,z),H.trim().replace(f[z.includePrerelease?p.GTE0PRE:p.GTE0],"")),G=H=>(z,K,Y,X,re,q,$,W,te,J,ae,ue,_e)=>(K=D(Y)?"":D(X)?">=".concat(Y,".0.0").concat(H?"-0":""):D(re)?">=".concat(Y,".").concat(X,".0").concat(H?"-0":""):q?">=".concat(K):">=".concat(K).concat(H?"-0":""),W=D(te)?"":D(J)?"<".concat(+te+1,".0.0-0"):D(ae)?"<".concat(te,".").concat(+J+1,".0-0"):ue?"<=".concat(te,".").concat(J,".").concat(ae,"-").concat(ue):H?"<".concat(te,".").concat(J,".").concat(+ae+1,"-0"):"<=".concat(W),"".concat(K," ").concat(W).trim()),Q=(H,z,K)=>{for(let Y=0;Y<H.length;Y++)if(!H[Y].test(z))return!1;if(z.prerelease.length&&!K.includePrerelease){for(let Y=0;Y<H.length;Y++)if(c(H[Y].semver),H[Y].semver!==l.ANY&&H[Y].semver.prerelease.length>0){const X=H[Y].semver;if(X.major===z.major&&X.minor===z.minor&&X.patch===z.patch)return!0}return!1}return!0};return ji}();var EF=ci((t,i,s)=>{try{i=new rI(i,s)}catch(l){return!1}return i.test(t)});const kg={};function iI(t,i){const s={};let l=null;return{get:c=>s[c],register:(c,d)=>{if(s[c])throw new Error("Supernova '".concat(t,"@").concat(c,"' already registered."));s[c]=function ju(t,i){let s,l,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{meta:d}=c,f={name:t.name,version:t.version,supportsPropertiesVersion:p=>!(p&&d&&d.deps&&d.deps.properties)||EF(p,d.deps.properties),supernova:()=>{return(p=be(function*(m,y,b,_){let{config:w}=b;const S="".concat(m,"__").concat(y);if(!kg[S]){const E="".concat(m).concat(y&&" v".concat(y)||"");if(_&&"function"!=typeof _)throw new Error("load of visualization '".concat(E,"' is not a fuction, wrap load promise in function"));const C=(_||w.load)({name:m,version:y}),I=Promise.resolve(C);kg[S]=I.then(D=>{if(!D)throw new Error("load() of visualization '".concat(E,"' resolved to an invalid object"));return D}).catch(D=>{throw new Error("Failed to load visualization: '".concat(E,"'"))})}return kg[S]}),function(m,y,b,_){return p.apply(this,arguments)})(f.name,f.version,i,c.load).then(p=>(s=s||$A(p,i.public.galaxy),l=JSON.stringify(s.qae.properties.initial),s));var p},initialProperties(p){let m=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.supernova().then(()=>{const y=ee({qInfo:{qType:f.name},visualization:f.name,version:f.version,showTitles:!0},JSON.parse(l));return m?(ni(!0,y,p),y):ee(ee({},y),p)})}};return f}({name:t,version:c},i,d),l=null},getMatchingVersionFromProperties:c=>{var d;l||(d=Object.keys(s),l=[...d.filter(p=>"undefined"===p),...d.filter(p=>"undefined"!==p).map(p=>p.split(".").map(m=>parseInt(m,10))).sort((p,m)=>p[0]-m[0]||p[1]-m[1]||p[2]-m[2]).map(p=>p.join("."))]);for(let d=l.length-1;d>=0;d--)if(s[l[d]].supportsPropertiesVersion(c))return l[d];return null},versions:s}}function oI(t){let{halo:i,parent:s}=t;const l={},c=s||{get:()=>{}};return{register:(d,f)=>{l[d.name]||(l[d.name]=iI(d.name,i)),l[d.name].register(d.version,f)},getSupportedVersion:(d,f)=>{if(l[d])return l[d].getMatchingVersionFromProperties(f)},get(d){const{name:f}=d;let{version:p}=d;return l[f]?l[f].versions[p]||(p=Object.keys(l[f].versions)[0]):this.register({name:f,version:p}),l[f].get(p)||c.get(d)},getList:()=>Object.keys(l).map(d=>({name:d,versions:Object.keys(l[d].versions).map(f=>"undefined"===f?void 0:f)})),clearFromCache:d=>{var f;l[d]&&(l[d]=void 0),f=d,Object.keys(kg).forEach(p=>{p.split("__")[0]===f&&(kg[p]=void 0)})}}}const D5={get:function(){var t=be(function*(i){const s=yield fetch("/njs/snapshot/".concat(i));if(!s.ok)throw new Error(s.statusText);return s.json()});return function(s){return t.apply(this,arguments)}}(),capture:t=>fetch("/njs/capture",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then(i=>i.json())},a0=function(){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return ee(ee({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),t)},k5=function(){return[...arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],...arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]].filter((t,i,s)=>s.indexOf(t)===i)};var sI=function t(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const s=Y5(i.context.language);function l(c,d){if(d)return l.createConfiguration(d)(c);let f=ee(ee({},i.context),{},{translator:s.translator});const[p]=function(I){let D,{app:k,context:A}=I;const M=new Promise(j=>{D=j}),T=V.createRef(),O=document.createElement("div");O.style.display="none",O.setAttribute("data-nebulajs-version","4.13.0"),O.setAttribute("data-app-id",k.id),document.body.appendChild(O),A&&XC(A),L0.createRoot(O).render(V.createElement(EP,{ref:T,app:k,initialContext:A,renderCallback:D}));const N={},B=[];return[{toggleFocusOfCells(j){Object.keys(N).forEach(G=>{N[G].current.toggleFocus(G===j)})},cells:N,addCell(j,G){N[j]=G},removeCell(j){delete N[j]},add(j){be(function*(){yield M,B.push(j),T.current.setComps(B)})()},remove(j){be(function*(){yield M;const G=B.indexOf(j);-1!==G&&B.splice(G,1),T.current.setComps(B)})()},setMuiThemeName(j){be(function*(){yield M,T.current.setMuiThemeName(j)})()},context(j){be(function*(){yield M,j&&XC(j),T.current.setContext(j)})()},getAppSelections:(j=be(function*(){return yield M,T.current.getAppSelections()}),function(){return j.apply(this,arguments)})},T,M];var j}({app:c,context:f}),m=function(){let{themes:I=[],loadTheme:D,root:k}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const A=T0();return{setTheme:(M=be(function*(T){let O=I.filter(B=>B.id===T)[0],N="dark"===T?"dark":"light";if(!O&&D&&(O={load:D}),O&&O.load)try{const B=yield Promise.race([O.load(T),BI(5e3,{__timedOut:!0})]);B.__timedOut||(N="dark"===B.type?"dark":"light",A.internalAPI.setTheme(B,T),k.setMuiThemeName(N))}catch(B){}else A.internalAPI.setTheme({type:N},T),k.setMuiThemeName(N)}),function(O){return M.apply(this,arguments)}),externalAPI:A.externalAPI};var M}({themes:i.themes,loadTheme:i.loadTheme,root:p});f.themeApi=m.externalAPI;const y={galaxy:{translator:s.translator,flags:n5(i.flags),deviceType:O0(i.context.deviceType),anything:i.anything},theme:m.externalAPI,translator:s.translator,nebbie:null},b={app:c,root:p,config:i,public:y,context:f,types:null},_=oI({halo:b});i.types.forEach(I=>_.register({name:I.name,version:I.version},{meta:I.meta,load:I.load}));let w=m.setTheme(i.context.theme),S=null,E=null;const C={render:(I=be(function*(D){return yield w,D.id?t5(D,b):(k=be(function*(A,M){let{type:T,version:O,fields:N,properties:B,options:j,plugins:G,element:Q,extendProperties:H}=A,z={};const K=[];let Y;try{const q=M.types.get({name:T,version:O});z=yield q.initialProperties(B,H);const $=yield q.supernova();N&&(yield gL({sn:$,properties:z,fields:N,children:K},M)),B&&$&&$.qae.properties.onChange&&$.qae.properties.onChange.call({},z)}catch(q){Y=q,z={qInfo:{qType:T},visualization:T}}const X=yield M.app.createSessionObject(z);K.length>0&&(yield X.setFullPropertyTree({qProperty:z,qChildren:K})),Ru.set(X.id,X);const re=zT(X);return sx(X,{options:j,plugins:G,element:Q},M,Y,be(function*(){yield M.app.destroySessionObject(X.id),re()}))}),function(A,M){return k.apply(this,arguments)})(D,b);var k}),function(k){return I.apply(this,arguments)}),create:function(){var I=be(function*(D){return Xv(D,b,!1)});return function(k){return I.apply(this,arguments)}}(),generateProperties:function(){var I=be(function*(D){return Xv(D,b,!0)});return function(k){return I.apply(this,arguments)}}(),context:function(){var I=be(function*(D){let k;["theme","language","constraints","interactions","keyboardNavigation"].forEach(A=>{Object.prototype.hasOwnProperty.call(D,A)&&D[A]!==f[A]&&(k||(k={}),k[A]=D[A])}),k&&(f=ee(ee(ee({},f),k),{},{translator:s.translator}),k.theme&&(w=m.setTheme(k.theme),yield w),k.language&&b.public.translator.language(k.language),p.context(f))});return function(k){return I.apply(this,arguments)}}(),selections:function(){var I=be(function*(){return S||(S={mount(D){E||(E=function(k){let{element:A,app:M}=k;return zl.createPortal(V.createElement(rL,{app:M}),A,fa())}({element:D,app:c}),p.add(E))},unmount(){E&&(p.remove(E),E=null)}}),S});return function(){return I.apply(this,arguments)}}(),field:function(){var I=be(function*(D){let k;const A="string"==typeof D?D:D.qLibraryId;if(D.qId)k=D.qId;else if(!A)throw new Error("Field identifier or object id must be provided");const M={fieldName:A,mount(T){var O=arguments,N=this;return be(function*(){let B=O.length>1&&void 0!==O[1]?O[1]:{};if(!T)throw new Error("Element for ".concat(A||k," not provided"));if(N._instance)throw new Error("Field or object ".concat(A||k," already mounted"));const j=()=>M.emit("selectionActivated"),G=()=>M.emit("selectionDeactivated");return new Promise(Q=>{N._instance=function(H){let{element:z,app:K,fieldIdentifier:Y,qId:X,stateName:re="$",options:q={},renderedCallback:$}=H;return zl.createPortal(V.createElement(Lu,{app:K,element:z,fieldIdentifier:Y,qId:X,stateName:re,options:q,renderedCallback:$}),z,fa())}({element:T,app:c,fieldIdentifier:D,qId:k,options:Gv(ee({onSelectionActivated:j,onSelectionDeactivated:G},B)),stateName:B.stateName||"$",renderedCallback:Q}),p.add(N._instance)})})()},unmount(){this._instance&&(p.remove(this._instance),this._instance=null)}};return Bv(M),M});return function(k){return I.apply(this,arguments)}}(),getRegisteredTypes:_.getList,__DO_NOT_USE__:{types:_,popover(I,D,k){C._popoverInstance&&(p.remove(C._popoverInstance),C._popoverInstance=null);const A=function(){let M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const T=ee({},pL);return ni(!0,T,M),T}(ee({onPopoverClose:()=>C.emit("fieldPopoverClose")},k));C._popoverInstance=V.createElement(ZN,{element:I,key:fa(),app:c,fieldIdentifier:D,options:A,stateName:k.stateName||"$"}),p.add(C._popoverInstance)}}};var I;return b.public.nebbie=C,b.types=_,Bv(C),C}return l.createConfiguration=c=>{return t({context:a0((d=i).context,(f=c).context),load:f.load||d.load,loadTheme:f.loadTheme||d.loadTheme,snapshot:ee({},f.snapshot||d.snapshot),types:k5(d.types,f.types),themes:k5(d.themes,f.themes),flags:a0(d.flags,f.flags),anything:a0(d.anything,f.anything)});var d,f},l.config=i,l}({context:{theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1,dataViewType:"sn-table"},load:()=>{},types:[],themes:[],anything:{},flags:{KPI_REACTCOLORPICKER:!0},snapshot:D5});function xx(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}const A5=globalThis.crypto||{getRandomValues:()=>123456};function aI(t){return i=>{const s=ni({},i);s.qInfo=s.qInfo||{},s.qInfo.qId=s.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,d=>(d^A5.getRandomValues(new Uint8Array(1))[0]&15>>d/4).toString(16)));const l=s._mock;let c=s;return l&&(delete s._mock,c=ni({},s,l)),Promise.resolve({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(c),getProperties:()=>Promise.resolve(s),getEffectiveProperties:()=>Promise.resolve(s),removeListener:()=>{},id:s.qInfo.qId,properties:s,session:t})}}const Sx=function(t){let{args:i=[],defaultValue:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"function"==typeof t?t(...i):void 0!==t?t:s},Ex=function(t){let{defaultValue:i,async:s=!0,delay:l=0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(){for(var c=arguments.length,d=new Array(c),f=0;f<c;f++)d[f]=arguments[f];const p=Sx(t,{defaultValue:i,args:d});return s?new Promise(m=>{setTimeout(()=>m(p),l)}):p}},l0=["id","session"],c0=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function u0(t){return!c0.includes(t)}function Cx(t){const i=Sx(t.getLayout);return i.qInfo&&i.qInfo.qId}function Dx(t,i){return t.reduce((s,l)=>ee(ee({},s),function(c,d){let f=Cx(c);const{delay:p}=d,{id:m,session:y}=c,b=_n(c,l0);if(m&&f&&m!==f)throw new Error("Generic object has multiple IDs, qInfo.qId: ".concat(f,", id: ").concat(m));return f=f||m||"object - ".concat(+Date.now()),{[f]:ee(ee({id:f,session:Sx(y,{defaultValue:!0}),on:()=>{},once:()=>{}},Object.entries(b).reduce((_,w)=>{let[S,E]=w;return ee(ee({},_),{},{[S]:Ex(E,{async:u0(S),delay:p})})},{})),{},{genericType:c.type})}}(l,i)),{})}function Bu(t){if(!t.getLayout)throw new Error('Generic object is missing "getLayout"');if(!Cx(t))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function kx(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Array.isArray(t)||0===t.length)return()=>{throw new Error('No "genericObjects" specified')};t.forEach(Bu);const s=Dx(t,i);return function(){var l=be(function*(c){return Promise.resolve(s[c])});return function(c){return l.apply(this,arguments)}}()}function d0(){return()=>Promise.resolve({id:"app-layout"})}const I5={fromGenericObjects(t){return function(i){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const l=new xx,c=new aI(l),d=new kx(i,s),f=new d0,p={id:"app - ".concat(+Date.now()),session:l,createSessionObject:c,destroySessionObject:(m=be(function*(){}),function(){return m.apply(this,arguments)}),getObject:d,getAppLayout:f};var m;return Promise.resolve(p)}(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},Wf={generator:$A,hook:GL,theme:T0,locale:wI};dt.EnigmaMocker=I5,dt.__DO_NOT_USE__=Wf,dt.conversion=vL,dt.embed=sI,dt.onContextMenu=function(t){const i=Ja(++Ro);i.value||(i.value=1,bt.__hooks.menus.push(i)),i.fn=t},dt.onTakeSnapshot=function(t){const i=Ja(++Ro);i.value||(i.value=1,bt.__hooks.snaps.push(i)),i.fn=t},dt.useAction=function(t,i){const[s]=xg({action(){s._config.action.call(null)}});return s.component||(s.component=bt,bt.__hooks.actions.list.push(s)),FA(()=>{const l=t();s._config=l,s.active=l.active||!1,s.disabled=l.disabled||!1,s.hidden=l.hidden||!1,s.label=l.label||"",s.getSvgIconShape=l.icon?()=>l.icon:void 0,s.key=l.key||s.component.__hooks.actions.list.length,s.component.__hooks.actions.changed=!0},i),s.action},dt.useApp=function(){const t=ei("app");return t&&t.session?t:void 0},dt.useAppLayout=function(){return ei("appLayout")},dt.useConstraints=function(){return ei("constraints")},dt.useDeviceType=function(){return ei("deviceType")},dt.useEffect=UL,dt.useElement=WL,dt.useEmbed=function(){return ei("nebbie")},dt.useEmitter=function(){return ei("emitter")},dt.useGlobal=function(){const t=ei("global");return t&&t.session?t:void 0},dt.useImperativeHandle=function(t,i){const s=Ja(++Ro);if(s.imperative||(s.imperative=!0),wg(s.value?s.value[0]:void 0,i)){const l=t();s.value=[i,l],bt.__hooks.imperativeHandle=l}},dt.useInteractionState=function(){return ei("interactions")},dt.useKeyboard=function(){const t=ei("keyboardNavigation"),i=ei("focusHandler");if(!bt.__hooks.accessibility.exitFunction){const p=function(){let b=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const _=this.__hooks.accessibility;_.enabled&&_.active&&(BA(this),i&&i.blurCallback&&i.blurCallback(b))}.bind(bt);bt.__hooks.accessibility.exitFunction=p;const m=function(){const b=this.__hooks.accessibility;b.enabled&&!b.active&&(i&&i.blurCallback&&i.blurCallback(!1),jA(this))}.bind(bt);bt.__hooks.accessibility.focusFunction=m;const y=function(){this.__hooks.accessibility.enabled&&i&&i.focusToolbarButton&&i.focusToolbarButton(arguments.length>0&&void 0!==arguments[0]&&arguments[0])}.bind(bt);bt.__hooks.accessibility.focusSelectionFunction=y}const s=bt.__hooks.accessibility.focusFunction,l=bt.__hooks.accessibility.exitFunction,c=bt.__hooks.accessibility.focusSelectionFunction,[d,f]=xg({active:!1,enabled:t,blur:l,focus:s,focusSelection:c});return bt.__hooks.accessibility.setter=f,bt.__hooks.accessibility.enabled=t,UL(()=>f({active:!1,enabled:t,blur:l,focus:s,focusSelection:c}),[t]),d},dt.useLayout=function(){return ei("layout")},dt.useMemo=FA,dt.useModel=function(){const t=ei("model");return t&&t.session?t:void 0},dt.useOptions=function(){return ei("options")},dt.usePlugins=function(){return ei("plugins")},dt.usePromise=function(t,i){const[s,l]=xg(()=>({resolved:void 0,rejected:void 0,state:"pending"})),c=Ja(++Ro);return c.component||(c.component=bt),NA(()=>{let d=!1;return c.teardown=()=>{d=!0,c.teardown=null;const f=c.component.__hooks.pendingPromises.indexOf(c);f>-1&&c.component.__hooks.pendingPromises.splice(f,1)},t().then(f=>{d||(c.teardown&&c.teardown(),l({resolved:f,rejected:void 0,state:"resolved"}))}).catch(f=>{d||(c.teardown&&c.teardown(),l({resolved:void 0,rejected:f,state:"resolved"}))}),c.component.__hooks.pendingPromises.push(c),()=>{c.teardown&&c.teardown()}},i),[s.resolved,s.rejected]},dt.useRect=function(){const t=WL(),i=bt.__hooks.resizer,[s,l]=xg(()=>{const{left:c,top:d,width:f,height:p}=t.getBoundingClientRect();return{left:c,top:d,width:f,height:p}});return i.current=s,-1===i.setters.indexOf(l)&&i.setters.push(l),i.update&&i.resize&&(i.update=!1,i.resize()),NA(()=>{if(i.initiated)return;i.initiated=!0;const c=()=>{const{left:d,top:f,width:p,height:m}=t.getBoundingClientRect(),y=i.current;y.width===p&&y.height===m&&y.left===d&&y.top===f||i.setters.forEach(b=>b({left:d,top:f,width:p,height:m}))};if(i.resize=()=>{c()},i.explicitResize)return()=>{i.resize=void 0};if("function"==typeof ResizeObserver){let d=new ResizeObserver(c);return d.observe(t),()=>{d.unobserve(t),d.disconnect(t),d=null,i.resize=void 0}}},[t]),s},dt.useRenderState=function(){Ja(++Ro);const t=bt.__hooks;return{pending:()=>{t.waitForData=!0},restore:()=>{t.waitForData=!1}}},dt.useSelections=function(){return ei("selections")},dt.useStaleLayout=function(){const t=ei("layout"),[i]=xg({current:t});return t.qSelectionInfo&&t.qSelectionInfo.qInSelections||(i.current=t),i.current},dt.useState=xg,dt.useTheme=function(){return ei("theme")},dt.useTranslator=function(){return ei("translator")}}(dr)},5:(vn,dr,bn)=>{vn.exports=bn(879)},613:function(vn,dr,bn){var be=bn(926).default;vn.exports=function(){"use strict";function dt(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat((Math.random()+1).toString(36).substring(2))})}}function qi(Ie,Vt){var Zt=Object.keys(Ie);if(Object.getOwnPropertySymbols){var zt=Object.getOwnPropertySymbols(Ie);Vt&&(zt=zt.filter(function(ui){return Object.getOwnPropertyDescriptor(Ie,ui).enumerable})),Zt.push.apply(Zt,zt)}return Zt}function ci(Ie){for(var Vt=1;Vt<arguments.length;Vt++){var Zt=null!=arguments[Vt]?arguments[Vt]:{};Vt%2?qi(Object(Zt),!0).forEach(function(zt){Di(Ie,zt,Zt[zt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ie,Object.getOwnPropertyDescriptors(Zt)):qi(Object(Zt)).forEach(function(zt){Object.defineProperty(Ie,zt,Object.getOwnPropertyDescriptor(Zt,zt))})}return Ie}function Di(Ie,Vt,Zt){return Vt in Ie?Object.defineProperty(Ie,Vt,{value:Zt,enumerable:!0,configurable:!0,writable:!0}):Ie[Vt]=Zt,Ie}function ee(){return Ie=>Promise.resolve(ci({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve({}),id:Ie&&Ie.qInfo&&Ie.qInfo.qId?Ie.qInfo.qId:"sel - ".concat((Math.random()+1).toString(36).substring(2))},Ie))}const io=function(Ie){let{args:Vt=[],defaultValue:Zt}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"function"==typeof Ie?Ie(...Vt):void 0!==Ie?Ie:Zt},oo=function(Ie){let{defaultValue:Vt,async:Zt=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(){for(var zt=arguments.length,ui=new Array(zt),di=0;di<zt;di++)ui[di]=arguments[di];const nn=io(Ie,{defaultValue:Vt,args:ui});return Zt?Promise.resolve(nn):nn}};function Vi(Ie,Vt){return _n.apply(this,arguments)}function _n(){return(_n=be(function*(Ie,Vt){const Zt=Ie.map(Vt);return Ie[(yield Promise.all(Zt)).findIndex(zt=>zt)]})).apply(this,arguments)}const Jf=["id","session"],Dt=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function gc(Ie){return!Dt.includes(Ie)}function mc(Ie){const{id:Vt,session:Zt}=Ie,zt=function To(Ie,Vt){if(null==Ie)return{};var Zt,zt,ui=function(nn,yc){if(null==nn)return{};var Gs,Us,ma={},eh=Object.keys(nn);for(Us=0;Us<eh.length;Us++)yc.indexOf(Gs=eh[Us])>=0||(ma[Gs]=nn[Gs]);return ma}(Ie,Vt);if(Object.getOwnPropertySymbols){var di=Object.getOwnPropertySymbols(Ie);for(zt=0;zt<di.length;zt++)Vt.indexOf(Zt=di[zt])>=0||Object.prototype.propertyIsEnumerable.call(Ie,Zt)&&(ui[Zt]=Ie[Zt])}return ui}(Ie,Jf);return ci({id:io(Vt,{defaultValue:"object - ".concat((Math.random()+1).toString(36).substring(2))}),session:io(Zt,{defaultValue:!0}),on:()=>{},once:()=>{}},Object.entries(zt).reduce((ui,di)=>{let[nn,yc]=di;return ci(ci({},ui),{},{[nn]:oo(yc,{async:gc(nn)})})},{}))}function Fg(Ie){if(!Ie.getLayout)throw new Error('Generic object is missing "getLayout"');const Vt=io(Ie.getLayout);if(!Vt.qInfo||!Vt.qInfo.qId)throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function jx(){let Ie=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];Ie.forEach(Fg);const Vt=Ie.map(mc);return function(){var Zt=be(function*(zt){const ui=Vi(Vt,function(){var di=be(function*(nn){return(yield nn.getLayout()).qInfo.qId===zt});return function(nn){return di.apply(this,arguments)}}());return Promise.resolve(ui)});return function(zt){return Zt.apply(this,arguments)}}()}function jg(){return()=>Promise.resolve({id:"app-layout"})}return{fromGenericObjects:Ie=>{if(!Array.isArray(Ie)||0===Ie.length)throw new Error('No "genericObjects" specified');const Vt=new dt,Zt=new ee,zt=new jx(Ie),ui=new jg,di={id:"app - ".concat((Math.random()+1).toString(36).substring(2)),session:Vt,createSessionObject:Zt,getObject:zt,getAppLayout:ui};return Promise.resolve(di)}}}()},926:vn=>{function dr(be,dt,qi,ci,Di,To,ee){try{var io=be[To](ee),oo=io.value}catch(Vi){return void qi(Vi)}io.done?dt(oo):Promise.resolve(oo).then(ci,Di)}vn.exports=function bn(be){return function(){var dt=this,qi=arguments;return new Promise(function(ci,Di){var To=be.apply(dt,qi);function ee(oo){dr(To,ci,Di,ee,io,"next",oo)}function io(oo){dr(To,ci,Di,ee,io,"throw",oo)}ee(void 0)})}},vn.exports.__esModule=!0,vn.exports.default=vn.exports}},zi={};function Wn(vn){var dr=zi[vn];if(void 0!==dr)return dr.exports;var bn=zi[vn]={exports:{}};return Ci[vn].call(bn.exports,bn,bn.exports,Wn),bn.exports}Wn.n=vn=>{var dr=vn&&vn.__esModule?()=>vn.default:()=>vn;return Wn.d(dr,{a:dr}),dr},Wn.d=(vn,dr)=>{for(var bn in dr)Wn.o(dr,bn)&&!Wn.o(vn,bn)&&Object.defineProperty(vn,bn,{enumerable:!0,get:dr[bn]})},Wn.o=(vn,dr)=>Object.prototype.hasOwnProperty.call(vn,dr),(()=>{"use strict";function vn(r){return"function"==typeof r}let dr=!1;const bn={Promise:void 0,set useDeprecatedSynchronousErrorHandling(r){if(r){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else dr&&console.log("RxJS: Back to a better error behavior. Thank you. <3");dr=r},get useDeprecatedSynchronousErrorHandling(){return dr}};function be(r){setTimeout(()=>{throw r},0)}const dt={closed:!0,next(r){},error(r){if(bn.useDeprecatedSynchronousErrorHandling)throw r;be(r)},complete(){}},qi=Array.isArray||(r=>r&&"number"==typeof r.length);function ci(r){return null!==r&&"object"==typeof r}const To=(()=>{function r(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((n,o)=>`${o+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return r.prototype=Object.create(Error.prototype),r})();class ee{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:o,_unsubscribe:a,_subscriptions:u}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof ee)n.remove(this);else if(null!==n)for(let h=0;h<n.length;++h)n[h].remove(this);if(vn(a)){o&&(this._unsubscribe=void 0);try{a.call(this)}catch(h){e=h instanceof To?io(h.errors):[h]}}if(qi(u)){let h=-1,g=u.length;for(;++h<g;){const v=u[h];if(ci(v))try{v.unsubscribe()}catch(x){e=e||[],x instanceof To?e=e.concat(io(x.errors)):e.push(x)}}}if(e)throw new To(e)}add(e){let n=e;if(!e)return ee.EMPTY;switch(typeof e){case"function":n=new ee(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof ee)){const u=n;n=new ee,n._subscriptions=[u]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:o}=n;if(null===o)n._parentOrParents=this;else if(o instanceof ee){if(o===this)return n;n._parentOrParents=[o,this]}else{if(-1!==o.indexOf(this))return n;o.push(this)}const a=this._subscriptions;return null===a?this._subscriptions=[n]:a.push(n),n}remove(e){const n=this._subscriptions;if(n){const o=n.indexOf(e);-1!==o&&n.splice(o,1)}}}var r;function io(r){return r.reduce((e,n)=>e.concat(n instanceof To?n.errors:n),[])}ee.EMPTY=((r=new ee).closed=!0,r);const oo="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class _n extends ee{constructor(e,n,o){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=dt;break;case 1:if(!e){this.destination=dt;break}if("object"==typeof e){e instanceof _n?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new Jf(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new Jf(this,e,n,o)}}[oo](){return this}static create(e,n,o){const a=new _n(e,n,o);return a.syncErrorThrowable=!1,a}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class Jf extends _n{constructor(e,n,o,a){super(),this._parentSubscriber=e;let u,h=this;vn(n)?u=n:n&&(u=n.next,o=n.error,a=n.complete,n!==dt&&(h=Object.create(n),vn(h.unsubscribe)&&this.add(h.unsubscribe.bind(h)),h.unsubscribe=this.unsubscribe.bind(this))),this._context=h,this._next=u,this._error=o,this._complete=a}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:n}=this;bn.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?this.__tryOrSetError(n,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:n}=this,{useDeprecatedSynchronousErrorHandling:o}=bn;if(this._error)o&&n.syncErrorThrowable?(this.__tryOrSetError(n,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(n.syncErrorThrowable)o?(n.syncErrorValue=e,n.syncErrorThrown=!0):be(e),this.unsubscribe();else{if(this.unsubscribe(),o)throw e;be(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const n=()=>this._complete.call(this._context);bn.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,n){try{e.call(this._context,n)}catch(o){if(this.unsubscribe(),bn.useDeprecatedSynchronousErrorHandling)throw o;be(o)}}__tryOrSetError(e,n,o){if(!bn.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{n.call(this._context,o)}catch(a){return bn.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=a,e.syncErrorThrown=!0,!0):(be(a),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const mc="function"==typeof Symbol&&Symbol.observable||"@@observable";function Fg(r){return r}let Ie=(()=>{class r{constructor(n){this._isScalar=!1,n&&(this._subscribe=n)}lift(n){const o=new r;return o.source=this,o.operator=n,o}subscribe(n,o,a){const{operator:u}=this,h=function gc(r,e,n){if(r){if(r instanceof _n)return r;if(r[oo])return r[oo]()}return r||e||n?new _n(r,e,n):new _n(dt)}(n,o,a);if(h.add(u?u.call(h,this.source):this.source||bn.useDeprecatedSynchronousErrorHandling&&!h.syncErrorThrowable?this._subscribe(h):this._trySubscribe(h)),bn.useDeprecatedSynchronousErrorHandling&&h.syncErrorThrowable&&(h.syncErrorThrowable=!1,h.syncErrorThrown))throw h.syncErrorValue;return h}_trySubscribe(n){try{return this._subscribe(n)}catch(o){bn.useDeprecatedSynchronousErrorHandling&&(n.syncErrorThrown=!0,n.syncErrorValue=o),function Dt(r){for(;r;){const{closed:e,destination:n,isStopped:o}=r;if(e||o)return!1;r=n&&n instanceof _n?n:null}return!0}(n)?n.error(o):console.warn(o)}}forEach(n,o){return new(o=Vt(o))((a,u)=>{let h;h=this.subscribe(g=>{try{n(g)}catch(v){u(v),h&&h.unsubscribe()}},u,a)})}_subscribe(n){const{source:o}=this;return o&&o.subscribe(n)}[mc](){return this}pipe(...n){return 0===n.length?this:function jg(r){return 0===r.length?Fg:1===r.length?r[0]:function(n){return r.reduce((o,a)=>a(o),n)}}(n)(this)}toPromise(n){return new(n=Vt(n))((o,a)=>{let u;this.subscribe(h=>u=h,h=>a(h),()=>o(u))})}}return r.create=e=>new r(e),r})();function Vt(r){if(r||(r=bn.Promise||Promise),!r)throw new Error("no Promise impl found");return r}const zt=(()=>{function r(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return r.prototype=Object.create(Error.prototype),r})();class ui extends ee{constructor(e,n){super(),this.subject=e,this.subscriber=n,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,n=e.observers;if(this.subject=null,!n||0===n.length||e.isStopped||e.closed)return;const o=n.indexOf(this.subscriber);-1!==o&&n.splice(o,1)}}class di extends _n{constructor(e){super(e),this.destination=e}}let nn=(()=>{class r extends Ie{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[oo](){return new di(this)}lift(n){const o=new yc(this,this);return o.operator=n,o}next(n){if(this.closed)throw new zt;if(!this.isStopped){const{observers:o}=this,a=o.length,u=o.slice();for(let h=0;h<a;h++)u[h].next(n)}}error(n){if(this.closed)throw new zt;this.hasError=!0,this.thrownError=n,this.isStopped=!0;const{observers:o}=this,a=o.length,u=o.slice();for(let h=0;h<a;h++)u[h].error(n);this.observers.length=0}complete(){if(this.closed)throw new zt;this.isStopped=!0;const{observers:n}=this,o=n.length,a=n.slice();for(let u=0;u<o;u++)a[u].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(n){if(this.closed)throw new zt;return super._trySubscribe(n)}_subscribe(n){if(this.closed)throw new zt;return this.hasError?(n.error(this.thrownError),ee.EMPTY):this.isStopped?(n.complete(),ee.EMPTY):(this.observers.push(n),new ui(this,n))}asObservable(){const n=new Ie;return n.source=this,n}}return r.create=(e,n)=>new yc(e,n),r})();class yc extends nn{constructor(e,n){super(),this.destination=e,this.source=n}next(e){const{destination:n}=this;n&&n.next&&n.next(e)}error(e){const{destination:n}=this;n&&n.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:n}=this;return n?this.source.subscribe(e):ee.EMPTY}}function Gs(r){return r&&"function"==typeof r.schedule}function Us(r,e){return function(o){if("function"!=typeof r)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return o.lift(new ma(r,e))}}class ma{constructor(e,n){this.project=e,this.thisArg=n}call(e,n){return n.subscribe(new eh(e,this.project,this.thisArg))}}class eh extends _n{constructor(e,n,o){super(e),this.project=n,this.count=0,this.thisArg=o||this}_next(e){let n;try{n=this.project.call(this.thisArg,e,this.count++)}catch(o){return void this.destination.error(o)}this.destination.next(n)}}const Bg=r=>e=>{for(let n=0,o=r.length;n<o&&!e.closed;n++)e.next(r[n]);e.complete()},th=function Bx(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),zg=r=>r&&"number"==typeof r.length&&"function"!=typeof r;function C0(r){return!!r&&"function"!=typeof r.subscribe&&"function"==typeof r.then}const qg=r=>{if(r&&"function"==typeof r[mc])return(r=>e=>{const n=r[mc]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)})(r);if(zg(r))return Bg(r);if(C0(r))return(r=>e=>(r.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,be),e))(r);if(r&&"function"==typeof r[th])return(r=>e=>{const n=r[th]();for(;;){let o;try{o=n.next()}catch(a){return e.error(a),e}if(o.done){e.complete();break}if(e.next(o.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e})(r);{const n=`You provided ${ci(r)?"an invalid object":`'${r}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(n)}};function D0(r,e){return new Ie(n=>{const o=new ee;let a=0;return o.add(e.schedule(function(){a!==r.length?(n.next(r[a++]),n.closed||o.add(this.schedule())):n.complete()})),o})}function V(r,e){return e?function P(r,e){if(null!=r){if(function $g(r){return r&&"function"==typeof r[mc]}(r))return function Vg(r,e){return new Ie(n=>{const o=new ee;return o.add(e.schedule(()=>{const a=r[mc]();o.add(a.subscribe({next(u){o.add(e.schedule(()=>n.next(u)))},error(u){o.add(e.schedule(()=>n.error(u)))},complete(){o.add(e.schedule(()=>n.complete()))}}))})),o})}(r,e);if(C0(r))return function Hg(r,e){return new Ie(n=>{const o=new ee;return o.add(e.schedule(()=>r.then(a=>{o.add(e.schedule(()=>{n.next(a),o.add(e.schedule(()=>n.complete()))}))},a=>{o.add(e.schedule(()=>n.error(a)))}))),o})}(r,e);if(zg(r))return D0(r,e);if(function _I(r){return r&&"function"==typeof r[th]}(r)||"string"==typeof r)return function ki(r,e){if(!r)throw new Error("Iterable cannot be null");return new Ie(n=>{const o=new ee;let a;return o.add(()=>{a&&"function"==typeof a.return&&a.return()}),o.add(e.schedule(()=>{a=r[th](),o.add(e.schedule(function(){if(n.closed)return;let u,h;try{const g=a.next();u=g.value,h=g.done}catch(g){return void n.error(g)}h?n.complete():(n.next(u),this.schedule())}))})),o})}(r,e)}throw new TypeError((null!==r&&typeof r||r)+" is not observable")}(r,e):r instanceof Ie?r:new Ie(qg(r))}class Uu extends _n{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class nh extends _n{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function kn(r,e){if(!e.closed)return r instanceof Ie?r.subscribe(e):qg(r)(e)}function Er(r,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?o=>o.pipe(Er((a,u)=>V(r(a,u)).pipe(Us((h,g)=>e(a,h,u,g))),n)):("number"==typeof e&&(n=e),o=>o.lift(new xI(r,n)))}class xI{constructor(e,n=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=n}call(e,n){return n.subscribe(new so(e,this.project,this.concurrent))}}class so extends nh{constructor(e,n,o=Number.POSITIVE_INFINITY){super(e),this.project=n,this.concurrent=o,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let n;const o=this.index++;try{n=this.project(e,o)}catch(a){return void this.destination.error(a)}this.active++,this._innerSub(n)}_innerSub(e){const n=new Uu(this),o=this.destination;o.add(n);const a=kn(e,n);a!==n&&o.add(a)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function $x(r=Number.POSITIVE_INFINITY){return Er(Fg,r)}function Wu(r,e){return e?D0(r,e):new Ie(Bg(r))}function ya(...r){let e=Number.POSITIVE_INFINITY,n=null,o=r[r.length-1];return Gs(o)?(n=r.pop(),r.length>1&&"number"==typeof r[r.length-1]&&(e=r.pop())):"number"==typeof o&&(e=r.pop()),null===n&&1===r.length&&r[0]instanceof Ie?r[0]:$x(e)(Wu(r,n))}function rh(){return function(e){return e.lift(new Ku(e))}}class Ku{constructor(e){this.connectable=e}call(e,n){const{connectable:o}=this;o._refCount++;const a=new ih(e,o),u=n.subscribe(a);return a.closed||(a.connection=o.connect()),u}}class ih extends _n{constructor(e,n){super(e),this.connectable=n}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const n=e._refCount;if(n<=0)return void(this.connection=null);if(e._refCount=n-1,n>1)return void(this.connection=null);const{connection:o}=this,a=e._connection;this.connection=null,a&&(!o||a===o)&&a.unsubscribe()}}class Ws extends Ie{constructor(e,n){super(),this.source=e,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new ee,e.add(this.source.subscribe(new EI(this.getSubject(),this))),e.closed&&(this._connection=null,e=ee.EMPTY)),e}refCount(){return rh()(this)}}const SI=(()=>{const r=Ws.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:r._subscribe},_isComplete:{value:r._isComplete,writable:!0},getSubject:{value:r.getSubject},connect:{value:r.connect},refCount:{value:r.refCount}}})();class EI extends di{constructor(e,n){super(e),this.connectable=n}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const n=e._connection;e._refCount=0,e._subject=null,e._connection=null,n&&n.unsubscribe()}}}class kI{constructor(e,n){this.subjectFactory=e,this.selector=n}call(e,n){const{selector:o}=this,a=this.subjectFactory(),u=o(a).subscribe(e);return u.add(n.subscribe(a)),u}}function AI(){return new nn}function dn(r){for(let e in r)if(r[e]===dn)return e;throw Error("Could not find renamed property on target object.")}function Gg(r,e){for(const n in e)e.hasOwnProperty(n)&&!r.hasOwnProperty(n)&&(r[n]=e[n])}function Mt(r){if("string"==typeof r)return r;if(Array.isArray(r))return"["+r.map(Mt).join(", ")+"]";if(null==r)return""+r;if(r.overriddenName)return`${r.overriddenName}`;if(r.name)return`${r.name}`;const e=r.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function Ug(r,e){return null==r||""===r?null===e?"":e:null==e||""===e?r:r+" "+e}const Wg=dn({__forward_ref__:dn});function Kg(r){return r.__forward_ref__=Kg,r.toString=function(){return Mt(this())},r}function He(r){return k0(r)?r():r}function k0(r){return"function"==typeof r&&r.hasOwnProperty(Wg)&&r.__forward_ref__===Kg}class Me extends Error{constructor(e,n){super(function va(r,e){return`NG0${Math.abs(r)}${e?": "+e:""}`}(e,n)),this.code=e}}function Qr(r){return"function"==typeof r?r.name||r.toString():"object"==typeof r&&null!=r&&"function"==typeof r.type?r.type.name||r.type.toString():function Ye(r){return"string"==typeof r?r:null==r?"":String(r)}(r)}function vc(r,e){const n=e?` in ${e}`:"";throw new Me(-201,`No provider for ${Qr(r)} found${n}`)}function ao(r,e){null==r&&function an(r,e,n,o){throw new Error(`ASSERTION ERROR: ${r}`+(null==o?"":` [Expected=> ${n} ${o} ${e} <=Actual]`))}(e,r,null,"!=")}function Ae(r){return{token:r.token,providedIn:r.providedIn||null,factory:r.factory,value:void 0}}function Hi(r){return{providers:r.providers||[],imports:r.imports||[]}}function I0(r){return Kx(r,Yg)||Kx(r,T0)}function Kx(r,e){return r.hasOwnProperty(e)?r[e]:null}function Qg(r){return r&&(r.hasOwnProperty(M0)||r.hasOwnProperty(BI))?r[M0]:null}const Yg=dn({\u0275prov:dn}),M0=dn({\u0275inj:dn}),T0=dn({ngInjectableDef:dn}),BI=dn({ngInjectorDef:dn});var ft=(()=>((ft=ft||{})[ft.Default=0]="Default",ft[ft.Host=1]="Host",ft[ft.Self=2]="Self",ft[ft.SkipSelf=4]="SkipSelf",ft[ft.Optional=8]="Optional",ft))();let O0;function ba(r){const e=O0;return O0=r,e}function $i(r,e,n){const o=I0(r);return o&&"root"==o.providedIn?void 0===o.value?o.value=o.factory():o.value:n&ft.Optional?null:void 0!==e?e:void vc(Mt(r),"Injector")}function _a(r){return{toString:r}.toString()}var ss=(()=>((ss=ss||{})[ss.OnPush=0]="OnPush",ss[ss.Default=1]="Default",ss))(),me=(()=>(function(r){r[r.Emulated=0]="Emulated",r[r.None=2]="None",r[r.ShadowDom=3]="ShadowDom"}(me||(me={})),me))();const Yx="undefined"!=typeof globalThis&&globalThis,oh="undefined"!=typeof window&&window,bc="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ot=Yx||"undefined"!=typeof global&&global||oh||bc,_c={},fn=[],Yr=dn({\u0275cmp:dn}),Br=dn({\u0275dir:dn}),ah=dn({\u0275pipe:dn}),Zg=dn({\u0275mod:dn}),as=dn({\u0275fac:dn}),lo=dn({__NG_ELEMENT_ID__:dn});let Xg=0;function il(r){return _a(()=>{const n={},o={type:r.type,providersResolver:null,decls:r.decls,vars:r.vars,factory:null,template:r.template||null,consts:r.consts||null,ngContentSelectors:r.ngContentSelectors,hostBindings:r.hostBindings||null,hostVars:r.hostVars||0,hostAttrs:r.hostAttrs||null,contentQueries:r.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:r.exportAs||null,onPush:r.changeDetection===ss.OnPush,directiveDefs:null,pipeDefs:null,selectors:r.selectors||fn,viewQuery:r.viewQuery||null,features:r.features||null,data:r.data||{},encapsulation:r.encapsulation||me.Emulated,id:"c",styles:r.styles||fn,_:null,setInput:null,schemas:r.schemas||null,tView:null},a=r.directives,u=r.features,h=r.pipes;return o.id+=Xg++,o.inputs=tm(r.inputs,n),o.outputs=tm(r.outputs),u&&u.forEach(g=>g(o)),o.directiveDefs=a?()=>("function"==typeof a?a():a).map(Jg):null,o.pipeDefs=h?()=>("function"==typeof h?h():h).map(em):null,o})}function Jg(r){return Ln(r)||function wa(r){return r[Br]||null}(r)}function em(r){return function ol(r){return r[ah]||null}(r)}const P0={};function co(r){return _a(()=>{const e={type:r.type,bootstrap:r.bootstrap||fn,declarations:r.declarations||fn,imports:r.imports||fn,exports:r.exports||fn,transitiveCompileScopes:null,schemas:r.schemas||null,id:r.id||null};return null!=r.id&&(P0[r.id]=r.type),e})}function tm(r,e){if(null==r)return _c;const n={};for(const o in r)if(r.hasOwnProperty(o)){let a=r[o],u=a;Array.isArray(a)&&(u=a[1],a=a[0]),n[a]=o,e&&(e[a]=u)}return n}const je=il;function Ln(r){return r[Yr]||null}function hi(r,e){const n=r[Zg]||null;if(!n&&!0===e)throw new Error(`Type ${Mt(r)} does not have '\u0275mod' property.`);return n}function Ui(r){return Array.isArray(r)&&"object"==typeof r[1]}function Ii(r){return Array.isArray(r)&&!0===r[1]}function B0(r){return 0!=(8&r.flags)}function ch(r){return 2==(2&r.flags)}function cs(r){return null!==r.template}function z0(r){return 0!=(512&r[2])}function Cc(r,e){return r.hasOwnProperty(as)?r[as]:null}class ll{constructor(e,n,o){this.previousValue=e,this.currentValue=n,this.firstChange=o}isFirstChange(){return this.firstChange}}function cl(){return $0}function $0(r){return r.type.prototype.ngOnChanges&&(r.setInput=oS),iS}function iS(){const r=U0(this),e=null==r?void 0:r.current;if(e){const n=r.previous;if(n===_c)r.previous=e;else for(let o in e)n[o]=e[o];r.current=null,this.ngOnChanges(e)}}function oS(r,e,n,o){const a=U0(r)||function KI(r,e){return r[G0]=e}(r,{previous:_c,current:null}),u=a.current||(a.current={}),h=a.previous,g=this.declaredInputs[n],v=h[g];u[g]=new ll(v&&v.currentValue,e,h===_c),r[o]=e}cl.ngInherit=!0;const G0="__ngSimpleChanges__";function U0(r){return r[G0]||null}let td;function Xn(r){return!!r.listen}const im={createRenderer:(r,e)=>function fo(){return void 0!==td?td:"undefined"!=typeof document?document:void 0}()};function Pn(r){for(;Array.isArray(r);)r=r[0];return r}function Wi(r,e){return Pn(e[r.index])}function yt(r,e){const n=e[r];return Ui(n)?n:n[0]}function Y0(r){return 4==(4&r[2])}function sm(r){return 128==(128&r[2])}function Ea(r,e){return null==e?null:r[e]}function X0(r){r[18]=0}function am(r,e){r[5]+=e;let n=r,o=r[3];for(;null!==o&&(1===e&&1===n[5]||-1===e&&0===n[5]);)o[5]+=e,n=o,o=o[3]}const it={lFrame:cS(null),bindingsEnabled:!0};function rd(){return it.bindingsEnabled}function ge(){return it.lFrame.lView}function kt(){return it.lFrame.tView}function Jn(){let r=J0();for(;null!==r&&64===r.type;)r=r.parent;return r}function J0(){return it.lFrame.currentTNode}function Ki(r,e){const n=it.lFrame;n.currentTNode=r,n.isParent=e}function Ac(){return it.lFrame.isParent}function cm(r,e){const n=it.lFrame;n.bindingIndex=n.bindingRootIndex=r,dm(e)}function dm(r){it.lFrame.currentDirectiveIndex=r}function fm(){return it.lFrame.currentQueryIndex}function vh(r){it.lFrame.currentQueryIndex=r}function bh(r){const e=r[1];return 2===e.type?e.declTNode:1===e.type?r[6]:null}function Ic(r,e,n){if(n&ft.SkipSelf){let a=e,u=r;for(;!(a=a.parent,null!==a||n&ft.Host||(a=bh(u),null===a||(u=u[15],10&a.type))););if(null===a)return!1;e=a,r=u}const o=it.lFrame=sd();return o.currentTNode=e,o.lView=r,!0}function od(r){const e=sd(),n=r[1];it.lFrame=e,e.currentTNode=n.firstChild,e.lView=r,e.tView=n,e.contextLView=r,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function sd(){const r=it.lFrame,e=null===r?null:r.child;return null===e?cS(r):e}function cS(r){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:r,child:null,inI18n:!1};return null!==r&&(r.child=e),e}function _h(){const r=it.lFrame;return it.lFrame=r.parent,r.currentTNode=null,r.lView=null,r}const rb=_h;function hm(){const r=_h();r.isParent=!0,r.tView=null,r.selectedIndex=-1,r.contextLView=null,r.elementDepthCount=0,r.currentDirectiveIndex=-1,r.currentNamespace=null,r.bindingRootIndex=-1,r.bindingIndex=-1,r.currentQueryIndex=0}function gl(r){it.lFrame.selectedIndex=r}function pm(r,e){for(let n=e.directiveStart,o=e.directiveEnd;n<o;n++){const u=r.data[n].type.prototype,{ngAfterContentInit:h,ngAfterContentChecked:g,ngAfterViewInit:v,ngAfterViewChecked:x,ngOnDestroy:R}=u;h&&(r.contentHooks||(r.contentHooks=[])).push(-n,h),g&&((r.contentHooks||(r.contentHooks=[])).push(n,g),(r.contentCheckHooks||(r.contentCheckHooks=[])).push(n,g)),v&&(r.viewHooks||(r.viewHooks=[])).push(-n,v),x&&((r.viewHooks||(r.viewHooks=[])).push(n,x),(r.viewCheckHooks||(r.viewCheckHooks=[])).push(n,x)),null!=R&&(r.destroyHooks||(r.destroyHooks=[])).push(n,R)}}function wh(r,e,n){uS(r,e,3,n)}function gm(r,e,n,o){(3&r[2])===n&&uS(r,e,n,o)}function sb(r,e){let n=r[2];(3&n)===e&&(n&=2047,n+=1,r[2]=n)}function uS(r,e,n,o){const u=null!=o?o:-1,h=e.length-1;let g=0;for(let v=void 0!==o?65535&r[18]:0;v<h;v++)if("number"==typeof e[v+1]){if(g=e[v],null!=o&&g>=o)break}else e[v]<0&&(r[18]+=65536),(g<u||-1==u)&&(iR(r,n,e,v),r[18]=(4294901760&r[18])+v+2),v++}function iR(r,e,n,o){const a=n[o]<0,u=n[o+1],g=r[a?-n[o]:n[o]];if(a){if(r[2]>>11<r[18]>>16&&(3&r[2])===e){r[2]+=2048;try{u.call(g)}finally{}}}else try{u.call(g)}finally{}}class Rc{constructor(e,n,o){this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=o}}function ym(r,e,n){const o=Xn(r);let a=0;for(;a<n.length;){const u=n[a];if("number"==typeof u){if(0!==u)break;a++;const h=n[a++],g=n[a++],v=n[a++];o?r.setAttribute(e,g,v,h):e.setAttributeNS(h,g,v)}else{const h=u,g=n[++a];vm(h)?o&&r.setProperty(e,h,g):o?r.setAttribute(e,h,g):e.setAttribute(h,g),a++}}return a}function ab(r){return 3===r||4===r||6===r}function vm(r){return 64===r.charCodeAt(0)}function Mc(r,e){if(null!==e&&0!==e.length)if(null===r||0===r.length)r=e.slice();else{let n=-1;for(let o=0;o<e.length;o++){const a=e[o];"number"==typeof a?n=a:0===n||ld(r,n,a,null,-1===n||2===n?e[++o]:null)}}return r}function ld(r,e,n,o,a){let u=0,h=r.length;if(-1===e)h=-1;else for(;u<r.length;){const g=r[u++];if("number"==typeof g){if(g===e){h=-1;break}if(g>e){h=u-1;break}}}for(;u<r.length;){const g=r[u];if("number"==typeof g)break;if(g===n){if(null===o)return void(null!==a&&(r[u+1]=a));if(o===r[u+1])return void(r[u+2]=a)}u++,null!==o&&u++,null!==a&&u++}-1!==h&&(r.splice(h,0,e),u=h+1),r.splice(u++,0,n),null!==o&&r.splice(u++,0,o),null!==a&&r.splice(u++,0,a)}function hS(r){return-1!==r}function Ca(r){return 32767&r}function Tc(r,e){let n=function aR(r){return r>>16}(r),o=e;for(;n>0;)o=o[15],n--;return o}let Eh=!0;function cd(r){const e=Eh;return Eh=r,e}let cR=0;function Ch(r,e){const n=ho(r,e);if(-1!==n)return n;const o=e[1];o.firstCreatePass&&(r.injectorIndex=e.length,ub(o.data,r),ub(e,null),ub(o.blueprint,null));const a=yl(r,e),u=r.injectorIndex;if(hS(a)){const h=Ca(a),g=Tc(a,e),v=g[1].data;for(let x=0;x<8;x++)e[u+x]=g[h+x]|v[h+x]}return e[u+8]=a,u}function ub(r,e){r.push(0,0,0,0,0,0,0,0,e)}function ho(r,e){return-1===r.injectorIndex||r.parent&&r.parent.injectorIndex===r.injectorIndex||null===e[r.injectorIndex+8]?-1:r.injectorIndex}function yl(r,e){if(r.parent&&-1!==r.parent.injectorIndex)return r.parent.injectorIndex;let n=0,o=null,a=e;for(;null!==a;){const u=a[1],h=u.type;if(o=2===h?u.declTNode:1===h?a[6]:null,null===o)return-1;if(n++,a=a[15],-1!==o.injectorIndex)return o.injectorIndex|n<<16}return-1}function Dh(r,e,n){!function uR(r,e,n){let o;"string"==typeof n?o=n.charCodeAt(0)||0:n.hasOwnProperty(lo)&&(o=n[lo]),null==o&&(o=n[lo]=cR++);const a=255&o;e.data[r+(a>>5)]|=1<<a}(r,e,n)}function db(r,e,n){if(n&ft.Optional)return r;vc(e,"NodeInjector")}function fb(r,e,n,o){if(n&ft.Optional&&void 0===o&&(o=null),0==(n&(ft.Self|ft.Host))){const a=r[9],u=ba(void 0);try{return a?a.get(e,o,n&ft.Optional):$i(e,o,n&ft.Optional)}finally{ba(u)}}return db(o,e,n)}function bm(r,e,n,o=ft.Default,a){if(null!==r){const u=function hb(r){if("string"==typeof r)return r.charCodeAt(0)||0;const e=r.hasOwnProperty(lo)?r[lo]:void 0;return"number"==typeof e?e>=0?255&e:dR:e}(n);if("function"==typeof u){if(!Ic(e,r,o))return o&ft.Host?db(a,n,o):fb(e,n,o,a);try{const h=u(o);if(null!=h||o&ft.Optional)return h;vc(n)}finally{rb()}}else if("number"==typeof u){let h=null,g=ho(r,e),v=-1,x=o&ft.Host?e[16][6]:null;for((-1===g||o&ft.SkipSelf)&&(v=-1===g?yl(r,e):e[g+8],-1!==v&&kh(o,!1)?(h=e[1],g=Ca(v),e=Tc(v,e)):g=-1);-1!==g;){const R=e[1];if(pb(u,g,R.data)){const L=ud(g,e,n,h,o,x);if(L!==gS)return L}v=e[g+8],-1!==v&&kh(o,e[1].data[g+8]===x)&&pb(u,g,e)?(h=R,g=Ca(v),e=Tc(v,e)):g=-1}}}return fb(e,n,o,a)}const gS={};function dR(){return new fs(Jn(),ge())}function ud(r,e,n,o,a,u){const h=e[1],g=h.data[r+8],R=dd(g,h,n,null==o?ch(g)&&Eh:o!=h&&0!=(3&g.type),a&ft.Host&&u===g);return null!==R?Da(e,h,R,g):gS}function dd(r,e,n,o,a){const u=r.providerIndexes,h=e.data,g=1048575&u,v=r.directiveStart,R=u>>20,F=a?g+R:r.directiveEnd;for(let U=o?g:g+R;U<F;U++){const Z=h[U];if(U<v&&n===Z||U>=v&&Z.type===n)return U}if(a){const U=h[v];if(U&&cs(U)&&U.type===n)return v}return null}function Da(r,e,n,o){let a=r[n];const u=e.data;if(function xh(r){return r instanceof Rc}(a)){const h=a;h.resolving&&function Ux(r,e){const n=e?`. Dependency path: ${e.join(" > ")} > ${r}`:"";throw new Me(-200,`Circular dependency in DI detected for ${r}${n}`)}(Qr(u[n]));const g=cd(h.canSeeViewProviders);h.resolving=!0;const v=h.injectImpl?ba(h.injectImpl):null;Ic(r,o,ft.Default);try{a=r[n]=h.factory(void 0,u,r,o),e.firstCreatePass&&n>=o.directiveStart&&function rR(r,e,n){const{ngOnChanges:o,ngOnInit:a,ngDoCheck:u}=e.type.prototype;if(o){const h=$0(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(r,h),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(r,h)}a&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-r,a),u&&((n.preOrderHooks||(n.preOrderHooks=[])).push(r,u),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(r,u))}(n,u[n],e)}finally{null!==v&&ba(v),cd(g),h.resolving=!1,rb()}}return a}function pb(r,e,n){return!!(n[e+(r>>5)]&1<<r)}function kh(r,e){return!(r&ft.Self||r&ft.Host&&e)}class fs{constructor(e,n){this._tNode=e,this._lView=n}get(e,n,o){return bm(this._tNode,this._lView,e,o,n)}}function ht(r){return _a(()=>{const e=r.prototype.constructor,n=e[as]||_m(e),o=Object.prototype;let a=Object.getPrototypeOf(r.prototype).constructor;for(;a&&a!==o;){const u=a[as]||_m(a);if(u&&u!==n)return u;a=Object.getPrototypeOf(a)}return u=>new u})}function _m(r){return k0(r)?()=>{const e=_m(He(r));return e&&e()}:Cc(r)}class pt{constructor(e,n){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=Ae({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}function Fo(r,e){void 0===e&&(e=r);for(let n=0;n<r.length;n++){let o=r[n];Array.isArray(o)?(e===r&&(e=r.slice(0,n)),Fo(o,e)):e!==r&&e.push(o)}return e}function Xs(r,e){r.forEach(n=>Array.isArray(n)?Xs(n,e):e(n))}function vb(r,e,n){e>=r.length?r.push(n):r.splice(e,0,n)}function Bc(r,e){return e>=r.length-1?r.pop():r.splice(e,1)[0]}const ta={},gd="ngTempTokenPath",wl=/\n/gm,xn="__source",xl=dn({provide:String,useValue:dn});let Dr;function Ti(r){const e=Dr;return Dr=r,e}function qc(r,e=ft.Default){if(void 0===Dr)throw new Me(203,"");return null===Dr?$i(r,void 0,e):Dr.get(r,e&ft.Optional?null:void 0,e)}function he(r,e=ft.Default){return(function L0(){return O0}()||qc)(He(r),e)}const yd=he;function Cm(r){const e=[];for(let n=0;n<r.length;n++){const o=He(r[n]);if(Array.isArray(o)){if(0===o.length)throw new Me(900,"");let a,u=ft.Default;for(let h=0;h<o.length;h++){const g=o[h],v=Dm(g);"number"==typeof v?-1===v?a=g.token:u|=v:a=g}e.push(he(a,u))}else e.push(he(o))}return e}function Dm(r){return r.__NG_DI_FLAG__}var Li=(()=>((Li=Li||{})[Li.Important=1]="Important",Li[Li.DashCase=2]="DashCase",Li))();const zo="__ngContext__";function zr(r,e){r[zo]=e}function El(r){const e=function Sl(r){return r[zo]||null}(r);return e?Array.isArray(e)?e:e.lView:null}function na(r,e){return undefined(r,e)}function vo(r){const e=r[3];return Ii(e)?e[3]:e}function Rm(r){return Nb(r[13])}function Sd(r){return Nb(r[4])}function Nb(r){for(;null!==r&&!Ii(r);)r=r[4];return r}function Dl(r,e,n,o,a){if(null!=o){let u,h=!1;Ii(o)?u=o:Ui(o)&&(h=!0,o=o[0]);const g=Pn(o);0===r&&null!==n?null==a?Lm(e,n,g):kl(e,n,g,a||null,!0):1===r&&null!==n?kl(e,n,g,a||null,!0):2===r?function qb(r,e,n){const o=Dd(r,e);o&&function Pm(r,e,n,o){Xn(r)?r.removeChild(e,n,o):e.removeChild(n)}(r,o,e,n)}(e,g,h):3===r&&e.destroyNode(g),null!=u&&function ra(r,e,n,o,a){const u=n[7];u!==Pn(n)&&Dl(e,r,o,u,a);for(let g=10;g<n.length;g++){const v=n[g];Jc(v[1],v,r,e,o,u)}}(e,r,u,n,a)}}function Mm(r,e,n){if(Xn(r))return r.createElement(e,n);{const o=null!==n?function aS(r){const e=r.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(n):null;return null===o?r.createElement(e):r.createElementNS(o,e)}}function Bb(r,e){const n=r[9],o=n.indexOf(e),a=e[3];1024&e[2]&&(e[2]&=-1025,am(a,-1)),n.splice(o,1)}function Wc(r,e){if(r.length<=10)return;const n=10+e,o=r[n];if(o){const a=o[17];null!==a&&a!==r&&Bb(a,o),e>0&&(r[n-1][4]=o[4]);const u=Bc(r,10+e);!function jb(r,e){Jc(r,e,e[11],2,null,null),e[0]=null,e[6]=null}(o[1],o);const h=u[19];null!==h&&h.detachView(u[1]),o[3]=null,o[4]=null,o[2]&=-129}return o}function ms(r,e){if(!(256&e[2])){const n=e[11];Xn(n)&&n.destroyNode&&Jc(r,e,n,3,null,null),function DS(r){let e=r[13];if(!e)return Kc(r[1],r);for(;e;){let n=null;if(Ui(e))n=e[13];else{const o=e[10];o&&(n=o)}if(!n){for(;e&&!e[4]&&e!==r;)Ui(e)&&Kc(e[1],e),e=e[3];null===e&&(e=r),Ui(e)&&Kc(e[1],e),n=e&&e[4]}e=n}}(e)}}function Kc(r,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function Qc(r,e){let n;if(null!=r&&null!=(n=r.destroyHooks))for(let o=0;o<n.length;o+=2){const a=e[n[o]];if(!(a instanceof Rc)){const u=n[o+1];if(Array.isArray(u))for(let h=0;h<u.length;h+=2){const g=a[u[h]],v=u[h+1];try{v.call(g)}finally{}}else try{u.call(a)}finally{}}}}(r,e),function Oh(r,e){const n=r.cleanup,o=e[7];let a=-1;if(null!==n)for(let u=0;u<n.length-1;u+=2)if("string"==typeof n[u]){const h=n[u+1],g="function"==typeof h?h(e):Pn(e[h]),v=o[a=n[u+2]],x=n[u+3];"boolean"==typeof x?g.removeEventListener(n[u],v,x):x>=0?o[a=x]():o[a=-x].unsubscribe(),u+=2}else{const h=o[a=n[u+1]];n[u].call(h)}if(null!==o){for(let u=a+1;u<o.length;u++)o[u]();e[7]=null}}(r,e),1===e[1].type&&Xn(e[11])&&e[11].destroy();const n=e[17];if(null!==n&&Ii(e[3])){n!==e[3]&&Bb(n,e);const o=e[19];null!==o&&o.detachView(r)}}}function Om(r,e,n){return function Yc(r,e,n){let o=e;for(;null!==o&&40&o.type;)o=(e=o).parent;if(null===o)return n[0];if(2&o.flags){const a=r.data[o.directiveStart].encapsulation;if(a===me.None||a===me.Emulated)return null}return Wi(o,n)}(r,e.parent,n)}function kl(r,e,n,o,a){Xn(r)?r.insertBefore(e,n,o,a):e.insertBefore(n,o,a)}function Lm(r,e,n){Xn(r)?r.appendChild(e,n):e.appendChild(n)}function Qn(r,e,n,o,a){null!==o?kl(r,e,n,o,a):Lm(r,e,n)}function Dd(r,e){return Xn(r)?r.parentNode(e):e.parentNode}let Al=function Nm(r,e,n){return 40&r.type?Wi(r,n):null};function pr(r,e,n,o){const a=Om(r,o,e),u=e[11],g=function Lh(r,e,n){return Al(r,e,n)}(o.parent||e[6],o,e);if(null!=a)if(Array.isArray(n))for(let v=0;v<n.length;v++)Qn(u,a,n[v],g,!1);else Qn(u,a,n,g,!1)}function Zc(r,e){if(null!==e){const n=e.type;if(3&n)return Wi(e,r);if(4&n)return Xc(-1,r[e.index]);if(8&n){const o=e.child;if(null!==o)return Zc(r,o);{const a=r[e.index];return Ii(a)?Xc(-1,a):Pn(a)}}if(32&n)return na(e,r)()||Pn(r[e.index]);{const o=kd(r,e);return null!==o?Array.isArray(o)?o[0]:Zc(vo(r[16]),o):Zc(r,e.next)}}return null}function kd(r,e){return null!==e?r[16][6].projection[e.projection]:null}function Xc(r,e){const n=10+r+1;if(n<e.length){const o=e[n],a=o[1].firstChild;if(null!==a)return Zc(o,a)}return e[7]}function Xr(r,e,n,o,a,u,h){for(;null!=n;){const g=o[n.index],v=n.type;if(h&&0===e&&(g&&zr(Pn(g),o),n.flags|=4),64!=(64&n.flags))if(8&v)Xr(r,e,n.child,o,a,u,!1),Dl(e,r,a,g,u);else if(32&v){const x=na(n,o);let R;for(;R=x();)Dl(e,r,a,R,u);Dl(e,r,a,g,u)}else 16&v?Fm(r,e,o,n,a,u):Dl(e,r,a,g,u);n=h?n.projectionNext:n.next}}function Jc(r,e,n,o,a,u){Xr(n,o,r.firstChild,e,a,u,!1)}function Fm(r,e,n,o,a,u){const h=n[16],v=h[6].projection[o.projection];if(Array.isArray(v))for(let x=0;x<v.length;x++)Dl(e,r,a,v[x],u);else Xr(r,e,v,h[3],a,u,!0)}function Ad(r,e,n){Xn(r)?r.setAttribute(e,"style",n):e.style.cssText=n}function Ph(r,e,n){Xn(r)?""===n?r.removeAttribute(e,"class"):r.setAttribute(e,"class",n):e.className=n}function Md(r){return r.ngOriginalError}function IR(r,...e){r.error(...e)}class Re{constructor(){this._console=console}handleError(e){const n=this._findOriginalError(e),o=function vi(r){return r&&r.ngErrorLogger||IR}(e);o(this._console,"ERROR",e),n&&o(this._console,"ORIGINAL ERROR",n)}_findOriginalError(e){let n=e&&Md(e);for(;n&&Md(n);)n=Md(n);return n||null}}const ZS=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ot))();function zn(r){return r instanceof Function?r():r}function ys(r,e,n){let o=r.length;for(;;){const a=r.indexOf(e,n);if(-1===a)return a;if(0===a||r.charCodeAt(a-1)<=32){const u=e.length;if(a+u===o||r.charCodeAt(a+u)<=32)return a}n=a+1}}const oa="ng-template";function TR(r,e,n){let o=0;for(;o<r.length;){let a=r[o++];if(n&&"class"===a){if(a=r[o],-1!==ys(a.toLowerCase(),e,0))return!0}else if(1===a){for(;o<r.length&&"string"==typeof(a=r[o++]);)if(a.toLowerCase()===e)return!0;return!1}}return!1}function a1(r){return 4===r.type&&r.value!==oa}function eE(r,e,n){return e===(4!==r.type||n?r.value:oa)}function tE(r,e,n){let o=4;const a=r.attrs||[],u=function l1(r){for(let e=0;e<r.length;e++)if(ab(r[e]))return e;return r.length}(a);let h=!1;for(let g=0;g<e.length;g++){const v=e[g];if("number"!=typeof v){if(!h)if(4&o){if(o=2|1&o,""!==v&&!eE(r,v,n)||""===v&&1===e.length){if(Go(o))return!1;h=!0}}else{const x=8&o?v:e[++g];if(8&o&&null!==r.attrs){if(!TR(r.attrs,x,n)){if(Go(o))return!1;h=!0}continue}const L=nE(8&o?"class":v,a,a1(r),n);if(-1===L){if(Go(o))return!1;h=!0;continue}if(""!==x){let F;F=L>u?"":a[L+1].toLowerCase();const U=8&o?F:null;if(U&&-1!==ys(U,x,0)||2&o&&x!==F){if(Go(o))return!1;h=!0}}}}else{if(!h&&!Go(o)&&!Go(v))return!1;if(h&&Go(v))continue;h=!1,o=v|1&o}}return Go(o)||h}function Go(r){return 0==(1&r)}function nE(r,e,n,o){if(null===e)return-1;let a=0;if(o||!n){let u=!1;for(;a<e.length;){const h=e[a];if(h===r)return a;if(3===h||6===h)u=!0;else{if(1===h||2===h){let g=e[++a];for(;"string"==typeof g;)g=e[++a];continue}if(4===h)break;if(0===h){a+=4;continue}}a+=u?1:2}return-1}return function Uo(r,e){let n=r.indexOf(4);if(n>-1)for(n++;n<r.length;){const o=r[n];if("number"==typeof o)return-1;if(o===e)return n;n++}return-1}(e,r)}function rE(r,e,n=!1){for(let o=0;o<e.length;o++)if(tE(r,e[o],n))return!0;return!1}function Vr(r,e){return r?":not("+e.trim()+")":e}function Ar(r){let e=r[0],n=1,o=2,a="",u=!1;for(;n<r.length;){let h=r[n];if("string"==typeof h)if(2&o){const g=r[++n];a+="["+h+(g.length>0?'="'+g+'"':"")+"]"}else 8&o?a+="."+h:4&o&&(a+=" "+h);else""!==a&&!Go(h)&&(e+=Vr(u,a),a=""),o=h,u=u||!Go(o);n++}return""!==a&&(e+=Vr(u,a)),e}const et={};function Kh(r,e){const n=r.contentQueries;if(null!==n)for(let o=0;o<n.length;o+=2){const a=n[o],u=n[o+1];if(-1!==u){const h=r.data[u];vh(a),h.contentQueries(2,e[u],u)}}}function Qh(r,e,n,o,a,u,h,g,v,x){const R=e.blueprint.slice();return R[0]=a,R[2]=140|o,X0(R),R[3]=R[15]=r,R[8]=n,R[10]=h||r&&r[10],R[11]=g||r&&r[11],R[12]=v||r&&r[12]||null,R[9]=x||r&&r[9]||null,R[6]=u,R[16]=2==e.type?r[16]:R,R}function jl(r,e,n,o,a){let u=r.data[e];if(null===u)u=function Zm(r,e,n,o,a){const u=J0(),h=Ac(),v=r.data[e]=function ey(r,e,n,o,a,u){return{type:n,index:o,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:a,attrs:u,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,h?u:u&&u.parent,n,e,o,a);return null===r.firstChild&&(r.firstChild=v),null!==u&&(h?null==u.child&&null!==v.parent&&(u.child=v):null===u.next&&(u.next=v)),v}(r,e,n,o,a),function lm(){return it.lFrame.inI18n}()&&(u.flags|=64);else if(64&u.type){u.type=n,u.value=o,u.attrs=a;const h=function yh(){const r=it.lFrame,e=r.currentTNode;return r.isParent?e:e.parent}();u.injectorIndex=null===h?-1:h.injectorIndex}return Ki(u,!0),u}function lu(r,e,n,o){if(0===n)return-1;const a=e.length;for(let u=0;u<n;u++)e.push(o),r.blueprint.push(o),r.data.push(null);return a}function Bl(r,e,n){od(e);try{const o=r.viewQuery;null!==o&&du(1,o,n);const a=r.template;null!==a&&Xm(r,e,a,1,n),r.firstCreatePass&&(r.firstCreatePass=!1),r.staticContentQueries&&Kh(r,e),r.staticViewQueries&&du(2,r.viewQuery,n);const u=r.components;null!==u&&function p1(r,e){for(let n=0;n<e.length;n++)eo(r,e[n])}(e,u)}catch(o){throw r.firstCreatePass&&(r.incompleteFirstPass=!0,r.firstCreatePass=!1),o}finally{e[2]&=-5,hm()}}function Pa(r,e,n,o){const a=e[2];if(256!=(256&a)){od(e);try{X0(e),function tb(r){return it.lFrame.bindingIndex=r}(r.bindingStartIndex),null!==n&&Xm(r,e,n,2,o);const h=3==(3&a);if(h){const x=r.preOrderCheckHooks;null!==x&&wh(e,x,null)}else{const x=r.preOrderHooks;null!==x&&gm(e,x,0,null),sb(e,0)}if(function sy(r){for(let e=Rm(r);null!==e;e=Sd(e)){if(!e[2])continue;const n=e[9];for(let o=0;o<n.length;o++){const a=n[o],u=a[3];0==(1024&a[2])&&am(u,1),a[2]|=1024}}}(e),function oy(r){for(let e=Rm(r);null!==e;e=Sd(e))for(let n=10;n<e.length;n++){const o=e[n],a=o[1];sm(o)&&Pa(a,o,a.template,o[8])}}(e),null!==r.contentQueries&&Kh(r,e),h){const x=r.contentCheckHooks;null!==x&&wh(e,x)}else{const x=r.contentHooks;null!==x&&gm(e,x,1),sb(e,1)}!function au(r,e){const n=r.hostBindingOpCodes;if(null!==n)try{for(let o=0;o<n.length;o++){const a=n[o];if(a<0)gl(~a);else{const u=a,h=n[++o],g=n[++o];cm(h,u),g(2,e[u])}}}finally{gl(-1)}}(r,e);const g=r.components;null!==g&&function h1(r,e){for(let n=0;n<e.length;n++)zd(r,e[n])}(e,g);const v=r.viewQuery;if(null!==v&&du(2,v,o),h){const x=r.viewCheckHooks;null!==x&&wh(e,x)}else{const x=r.viewHooks;null!==x&&gm(e,x,2),sb(e,2)}!0===r.firstUpdatePass&&(r.firstUpdatePass=!1),e[2]&=-73,1024&e[2]&&(e[2]&=-1025,am(e[3],-1))}finally{hm()}}}function lE(r,e,n,o){const a=e[10],h=Y0(e);try{!h&&a.begin&&a.begin(),h&&Bl(r,e,o),Pa(r,e,n,o)}finally{!h&&a.end&&a.end()}}function Xm(r,e,n,o,a){const u=function Mi(){return it.lFrame.selectedIndex}(),h=2&o;try{gl(-1),h&&e.length>20&&function Od(r,e,n,o){if(!o)if(3==(3&e[2])){const u=r.preOrderCheckHooks;null!==u&&wh(e,u,n)}else{const u=r.preOrderHooks;null!==u&&gm(e,u,0,n)}gl(n)}(r,e,20,!1),n(o,a)}finally{gl(u)}}function Jm(r){const e=r.tView;return null===e||e.incompleteFirstPass?r.tView=cu(1,null,r.template,r.decls,r.vars,r.directiveDefs,r.pipeDefs,r.viewQuery,r.schemas,r.consts):e}function cu(r,e,n,o,a,u,h,g,v,x){const R=20+o,L=R+a,F=function cE(r,e){const n=[];for(let o=0;o<e;o++)n.push(o<r?null:et);return n}(R,L),U="function"==typeof x?x():x;return F[1]={type:r,blueprint:F,template:n,queries:null,viewQuery:g,declTNode:e,data:F.slice().fill(null,R),bindingStartIndex:R,expandoStartIndex:L,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof u?u():u,pipeRegistry:"function"==typeof h?h():h,firstChild:null,schemas:v,consts:U,incompleteFirstPass:!1}}function uE(r,e,n,o){const a=function np(r){return r[7]||(r[7]=[])}(e);null===n?a.push(o):(a.push(n),r.firstCreatePass&&function vE(r){return r.cleanup||(r.cleanup=[])}(r).push(o,a.length-1))}function ty(r,e,n){for(let o in r)if(r.hasOwnProperty(o)){const a=r[o];(n=null===n?{}:n).hasOwnProperty(o)?n[o].push(e,a):n[o]=[e,a]}return n}function fE(r,e,n,o,a,u){const h=u.hostBindings;if(h){let g=r.hostBindingOpCodes;null===g&&(g=r.hostBindingOpCodes=[]);const v=~e.index;(function bi(r){let e=r.length;for(;e>0;){const n=r[--e];if("number"==typeof n&&n<0)return n}return 0})(g)!=v&&g.push(v),g.push(o,a,h)}}function v1(r,e){null!==r.hostBindings&&r.hostBindings(1,e)}function ry(r,e){e.flags|=2,(r.components||(r.components=[])).push(e.index)}function VR(r,e,n){if(n){if(e.exportAs)for(let o=0;o<e.exportAs.length;o++)n[e.exportAs[o]]=r;cs(e)&&(n[""]=r)}}function Xh(r,e,n){r.flags|=1,r.directiveStart=e,r.directiveEnd=e+n,r.providerIndexes=e}function gE(r,e,n,o,a){r.data[o]=a;const u=a.factory||(a.factory=Cc(a.type)),h=new Rc(u,cs(a),null);r.blueprint[o]=h,n[o]=h,fE(r,e,0,o,lu(r,n,a.hostVars,et),a)}function mE(r,e,n){const o=Wi(e,r),a=Jm(n),u=r[10],h=Fa(r,Qh(r,a,null,n.onPush?64:16,o,e,u,u.createRenderer(o,n),null,null));r[e.index]=h}function oi(r,e,n,o,a,u){const h=u[e];if(null!==h){const g=o.setInput;for(let v=0;v<h.length;){const x=h[v++],R=h[v++],L=h[v++];null!==g?o.setInput(n,L,x,R):n[R]=L}}}function ep(r,e){let n=null,o=0;for(;o<e.length;){const a=e[o];if(0!==a)if(5!==a){if("number"==typeof a)break;r.hasOwnProperty(a)&&(null===n&&(n=[]),n.push(a,r[a],e[o+1])),o+=2}else o+=2;else o+=4}return n}function zd(r,e){const n=yt(e,r);if(sm(n)){const o=n[1];80&n[2]?Pa(o,n,o.template,n[8]):n[5]>0&&ay(n)}}function ay(r){for(let o=Rm(r);null!==o;o=Sd(o))for(let a=10;a<o.length;a++){const u=o[a];if(1024&u[2]){const h=u[1];Pa(h,u,h.template,u[8])}else u[5]>0&&ay(u)}const n=r[1].components;if(null!==n)for(let o=0;o<n.length;o++){const a=yt(n[o],r);sm(a)&&a[5]>0&&ay(a)}}function eo(r,e){const n=yt(e,r),o=n[1];(function Ir(r,e){for(let n=e.length;n<r.blueprint.length;n++)e.push(r.blueprint[n])})(o,n),Bl(o,n,n[8])}function Fa(r,e){return r[13]?r[14][4]=e:r[13]=e,r[14]=e,e}function Pi(r,e,n){const o=e[10];o.begin&&o.begin();try{Pa(r,e,r.template,n)}catch(a){throw function cy(r,e){const n=r[9],o=n?n.get(Re,null):null;o&&o.handleError(e)}(e,a),a}finally{o.end&&o.end()}}function bs(r){!function _1(r){for(let e=0;e<r.components.length;e++){const n=r.components[e],o=El(n),a=o[1];lE(a,o,a.template,n)}}(r[8])}function du(r,e,n){vh(0),e(r,n)}const yE=(()=>Promise.resolve(null))();function rp(r,e,n){let o=n?r.styles:null,a=n?r.classes:null,u=0;if(null!==e)for(let h=0;h<e.length;h++){const g=e[h];"number"==typeof g?u=g:1==u?a=Ug(a,g):2==u&&(o=Ug(o,g+": "+e[++h]+";"))}n?r.styles=o:r.stylesWithoutHost=o,n?r.classes=a:r.classesWithoutHost=a}const dy=new pt("INJECTOR",-1);class ql{get(e,n=ta){if(n===ta){const o=new Error(`NullInjectorError: No provider for ${Mt(e)}!`);throw o.name="NullInjectorError",o}return n}}const fy=new pt("Set Injector scope."),Vd={},$R={};let x1;function S1(){return void 0===x1&&(x1=new ql),x1}function xE(r,e=null,n=null,o){const a=SE(r,e,n,o);return a._resolveInjectorDefTypes(),a}function SE(r,e=null,n=null,o){return new EE(r,n,e||S1(),o)}class EE{constructor(e,n,o,a=null){this.parent=o,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const u=[];n&&Xs(n,g=>this.processProvider(g,e,n)),Xs([e],g=>this.processInjectorType(g,[],u)),this.records.set(dy,Vl(void 0,this));const h=this.records.get(fy);this.scope=null!=h?h.value:null,this.source=a||("object"==typeof e?null:Mt(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,n=ta,o=ft.Default){this.assertNotDestroyed();const a=Ti(this),u=ba(void 0);try{if(!(o&ft.SkipSelf)){let g=this.records.get(e);if(void 0===g){const v=function vy(r){return"function"==typeof r||"object"==typeof r&&r instanceof pt}(e)&&I0(e);g=v&&this.injectableDefInScope(v)?Vl(hy(e),Vd):null,this.records.set(e,g)}if(null!=g)return this.hydrate(e,g)}return(o&ft.Self?S1():this.parent).get(e,n=o&ft.Optional&&n===ta?null:n)}catch(h){if("NullInjectorError"===h.name){if((h[gd]=h[gd]||[]).unshift(Mt(e)),a)throw h;return function _S(r,e,n,o){const a=r[gd];throw e[xn]&&a.unshift(e[xn]),r.message=function Ia(r,e,n,o=null){r=r&&"\n"===r.charAt(0)&&"\u0275"==r.charAt(1)?r.substr(2):r;let a=Mt(e);if(Array.isArray(e))a=e.map(Mt).join(" -> ");else if("object"==typeof e){let u=[];for(let h in e)if(e.hasOwnProperty(h)){let g=e[h];u.push(h+":"+("string"==typeof g?JSON.stringify(g):Mt(g)))}a=`{${u.join(", ")}}`}return`${n}${o?"("+o+")":""}[${a}]: ${r.replace(wl,"\n ")}`}("\n"+r.message,a,n,o),r.ngTokenPath=a,r[gd]=null,r}(h,e,"R3InjectorError",this.source)}throw h}finally{ba(u),Ti(a)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((o,a)=>e.push(Mt(a))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Me(205,!1)}processInjectorType(e,n,o){if(!(e=He(e)))return!1;let a=Qg(e);const u=null==a&&e.ngModule||void 0,h=void 0===u?e:u,g=-1!==o.indexOf(h);if(void 0!==u&&(a=Qg(u)),null==a)return!1;if(null!=a.imports&&!g){let R;o.push(h);try{Xs(a.imports,L=>{this.processInjectorType(L,n,o)&&(void 0===R&&(R=[]),R.push(L))})}finally{}if(void 0!==R)for(let L=0;L<R.length;L++){const{ngModule:F,providers:U}=R[L];Xs(U,Z=>this.processProvider(Z,F,U||fn))}}this.injectorDefTypes.add(h);const v=Cc(h)||(()=>new h);this.records.set(h,Vl(v,Vd));const x=a.providers;if(null!=x&&!g){const R=e;Xs(x,L=>this.processProvider(L,R,x))}return void 0!==u&&void 0!==e.providers}processProvider(e,n,o){let a=Hl(e=He(e))?e:He(e&&e.provide);const u=function GR(r,e,n){return E1(r)?Vl(void 0,r.useValue):Vl(function CE(r,e,n){let o;if(Hl(r)){const a=He(r);return Cc(a)||hy(a)}if(E1(r))o=()=>He(r.useValue);else if(function C1(r){return!(!r||!r.useFactory)}(r))o=()=>r.useFactory(...Cm(r.deps||[]));else if(function ln(r){return!(!r||!r.useExisting)}(r))o=()=>he(He(r.useExisting));else{const a=He(r&&(r.useClass||r.provide));if(!function my(r){return!!r.deps}(r))return Cc(a)||hy(a);o=()=>new a(...Cm(r.deps))}return o}(r),Vd)}(e);if(Hl(e)||!0!==e.multi)this.records.get(a);else{let h=this.records.get(a);h||(h=Vl(void 0,Vd,!0),h.factory=()=>Cm(h.multi),this.records.set(a,h)),a=e,h.multi.push(e)}this.records.set(a,u)}hydrate(e,n){return n.value===Vd&&(n.value=$R,n.value=n.factory()),"object"==typeof n.value&&n.value&&function yy(r){return null!==r&&"object"==typeof r&&"function"==typeof r.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}injectableDefInScope(e){if(!e.providedIn)return!1;const n=He(e.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function hy(r){const e=I0(r),n=null!==e?e.factory:Cc(r);if(null!==n)return n;if(r instanceof pt)throw new Me(204,!1);if(r instanceof Function)return function py(r){const e=r.length;if(e>0)throw function bl(r,e){const n=[];for(let o=0;o<r;o++)n.push(e);return n}(e,"?"),new Me(204,!1);const n=function R0(r){const e=r&&(r[Yg]||r[T0]);if(e){const n=function Qx(r){if(r.hasOwnProperty("name"))return r.name;const e=(""+r).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(r);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),e}return null}(r);return null!==n?()=>n.factory(r):()=>new r}(r);throw new Me(204,!1)}function Vl(r,e,n=!1){return{factory:r,value:e,multi:n?[]:void 0}}function E1(r){return null!==r&&"object"==typeof r&&xl in r}function Hl(r){return"function"==typeof r}let si=(()=>{class r{static create(n,o){var a;if(Array.isArray(n))return xE({name:""},o,n,"");{const u=null!==(a=n.name)&&void 0!==a?a:"";return xE({name:u},n.parent,n.providers,u)}}}return r.THROW_IF_NOT_FOUND=ta,r.NULL=new ql,r.\u0275prov=Ae({token:r,providedIn:"any",factory:()=>he(dy)}),r.__NG_ELEMENT_ID__=-1,r})();function ZR(r,e){pm(El(r)[1],Jn())}function rt(r){let e=function RE(r){return Object.getPrototypeOf(r.prototype).constructor}(r.type),n=!0;const o=[r];for(;e;){let a;if(cs(r))a=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Me(903,"");a=e.\u0275dir}if(a){if(n){o.push(a);const h=r;h.inputs=Hd(r.inputs),h.declaredInputs=Hd(r.declaredInputs),h.outputs=Hd(r.outputs);const g=a.hostBindings;g&&lp(r,g);const v=a.viewQuery,x=a.contentQueries;if(v&&JR(r,v),x&&L1(r,x),Gg(r.inputs,a.inputs),Gg(r.declaredInputs,a.declaredInputs),Gg(r.outputs,a.outputs),cs(a)&&a.data.animation){const R=r.data;R.animation=(R.animation||[]).concat(a.data.animation)}}const u=a.features;if(u)for(let h=0;h<u.length;h++){const g=u[h];g&&g.ngInherit&&g(r),g===rt&&(n=!1)}}e=Object.getPrototypeOf(e)}!function ME(r){let e=0,n=null;for(let o=r.length-1;o>=0;o--){const a=r[o];a.hostVars=e+=a.hostVars,a.hostAttrs=Mc(a.hostAttrs,n=Mc(n,a.hostAttrs))}}(o)}function Hd(r){return r===_c?{}:r===fn?[]:r}function JR(r,e){const n=r.viewQuery;r.viewQuery=n?(o,a)=>{e(o,a),n(o,a)}:e}function L1(r,e){const n=r.contentQueries;r.contentQueries=n?(o,a,u)=>{e(o,a,u),n(o,a,u)}:e}function lp(r,e){const n=r.hostBindings;r.hostBindings=n?(o,a)=>{e(o,a),n(o,a)}:e}let Sy=null;function Gd(){if(!Sy){const r=Ot.Symbol;if(r&&r.iterator)Sy=r.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let n=0;n<e.length;++n){const o=e[n];"entries"!==o&&"size"!==o&&Map.prototype[o]===Map.prototype.entries&&(Sy=o)}}}return Sy}function oe(r,e=ft.Default){const n=ge();return null===n?he(r,e):bm(Jn(),n,He(r),e)}function G1(r,e,n,o,a){const h=a?"class":"style";!function _E(r,e,n,o,a){for(let u=0;u<n.length;){const h=n[u++],g=n[u++],v=e[h],x=r.data[h];null!==x.setInput?x.setInput(v,a,o,g):v[g]=a}}(r,n,e.inputs[h],h,o)}function Iy(r,e,n,o){const a=ge(),u=kt(),h=20+r,g=a[11],v=a[h]=Mm(g,e,function ob(){return it.lFrame.currentNamespace}()),x=u.firstCreatePass?function lM(r,e,n,o,a,u,h){const g=e.consts,x=jl(e,r,2,a,Ea(g,u));return function y1(r,e,n,o){let a=!1;if(rd()){const u=function b1(r,e,n){const o=r.directiveRegistry;let a=null;if(o)for(let u=0;u<o.length;u++){const h=o[u];rE(n,h.selectors,!1)&&(a||(a=[]),Dh(Ch(n,e),r,h.type),cs(h)?(ry(r,n),a.unshift(h)):a.push(h))}return a}(r,e,n),h=null===o?null:{"":-1};if(null!==u){a=!0,Xh(n,r.data.length,u.length);for(let R=0;R<u.length;R++){const L=u[R];L.providersResolver&&L.providersResolver(L)}let g=!1,v=!1,x=lu(r,e,u.length,null);for(let R=0;R<u.length;R++){const L=u[R];n.mergedAttrs=Mc(n.mergedAttrs,L.hostAttrs),gE(r,n,e,x,L),VR(x,L,h),null!==L.contentQueries&&(n.flags|=8),(null!==L.hostBindings||null!==L.hostAttrs||0!==L.hostVars)&&(n.flags|=128);const F=L.type.prototype;!g&&(F.ngOnChanges||F.ngOnInit||F.ngDoCheck)&&((r.preOrderHooks||(r.preOrderHooks=[])).push(n.index),g=!0),!v&&(F.ngOnChanges||F.ngDoCheck)&&((r.preOrderCheckHooks||(r.preOrderCheckHooks=[])).push(n.index),v=!0),x++}!function zl(r,e){const o=e.directiveEnd,a=r.data,u=e.attrs,h=[];let g=null,v=null;for(let x=e.directiveStart;x<o;x++){const R=a[x],L=R.inputs,F=null===u||a1(e)?null:ep(L,u);h.push(F),g=ty(L,x,g),v=ty(R.outputs,x,v)}null!==g&&(g.hasOwnProperty("class")&&(e.flags|=16),g.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=h,e.inputs=g,e.outputs=v}(r,n)}h&&function pE(r,e,n){if(e){const o=r.localNames=[];for(let a=0;a<e.length;a+=2){const u=n[e[a+1]];if(null==u)throw new Me(-301,!1);o.push(e[a],u)}}}(n,o,h)}return n.mergedAttrs=Mc(n.mergedAttrs,n.attrs),a}(e,n,x,Ea(g,h)),null!==x.attrs&&rp(x,x.attrs,!1),null!==x.mergedAttrs&&rp(x,x.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,x),x}(h,u,a,0,e,n,o):u.data[h];Ki(x,!0);const R=x.mergedAttrs;null!==R&&ym(g,v,R);const L=x.classes;null!==L&&Ph(g,v,L);const F=x.styles;return null!==F&&Ad(g,v,F),64!=(64&x.flags)&&pr(u,a,v,x),0===function dl(){return it.lFrame.elementDepthCount}()&&zr(v,a),function fl(){it.lFrame.elementDepthCount++}(),function uh(r){return 1==(1&r.flags)}(x)&&(function Yh(r,e,n){!rd()||(function hE(r,e,n,o){const a=n.directiveStart,u=n.directiveEnd;r.firstCreatePass||Ch(n,e),zr(o,e);const h=n.initialInputs;for(let g=a;g<u;g++){const v=r.data[g],x=cs(v);x&&mE(e,n,v);const R=Da(e,r,g,n);zr(R,e),null!==h&&oi(0,g-a,R,v,0,h),x&&(yt(n.index,e)[8]=R)}}(r,e,n,Wi(n,e)),128==(128&n.flags)&&function Jt(r,e,n){const o=n.directiveStart,a=n.directiveEnd,h=n.index,g=function um(){return it.lFrame.currentDirectiveIndex}();try{gl(h);for(let v=o;v<a;v++){const x=r.data[v],R=e[v];dm(v),(null!==x.hostBindings||0!==x.hostVars||null!==x.hostAttrs)&&v1(x,R)}}finally{gl(-1),dm(g)}}(r,e,n))}(u,a,x),function g1(r,e,n){if(B0(e)){const a=e.directiveEnd;for(let u=e.directiveStart;u<a;u++){const h=r.data[u];h.contentQueries&&h.contentQueries(1,n[u],u)}}}(u,x,a)),null!==o&&function jd(r,e,n=Wi){const o=e.localNames;if(null!==o){let a=e.index+1;for(let u=0;u<o.length;u+=2){const h=o[u+1],g=-1===h?n(e,r):r[h];r[a++]=g}}}(a,x),Iy}function gu(){let r=Jn();Ac()?function pl(){it.lFrame.isParent=!1}():(r=r.parent,Ki(r,!1));const e=r;!function mh(){it.lFrame.elementDepthCount--}();const n=kt();return n.firstCreatePass&&(pm(n,r),B0(r)&&n.queries.elementEnd(r)),null!=e.classesWithoutHost&&function dS(r){return 0!=(16&r.flags)}(e)&&G1(n,e,ge(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function fS(r){return 0!=(32&r.flags)}(e)&&G1(n,e,ge(),e.stylesWithoutHost,!1),gu}function rf(r,e,n,o){return Iy(r,e,n,o),gu(),rf}function K1(r){return!!r&&"function"==typeof r.then}const cM=function QE(r){return!!r&&"function"==typeof r.subscribe},bp="en-US";let h_=bp;class $a{}class QC{resolveComponentFactory(e){throw function n2(r){const e=Error(`No component factory found for ${Mt(r)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=r,e}(e)}}let Cu=(()=>{class r{}return r.NULL=new QC,r})();function r2(){return _f(Jn(),ge())}function _f(r,e){return new Ut(Wi(r,e))}let Ut=(()=>{class r{constructor(n){this.nativeElement=n}}return r.__NG_ELEMENT_ID__=r2,r})();function C_(r){return r instanceof Ut?r.nativeElement:r}class Ze{}let s2=(()=>{class r{}return r.\u0275prov=Ae({token:r,providedIn:"root",factory:()=>null}),r})();class Ep{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const ai=new Ep("13.4.0"),Do={};function Jy(r,e,n,o,a=!1){for(;null!==n;){const u=e[n.index];if(null!==u&&o.push(Pn(u)),Ii(u))for(let g=10;g<u.length;g++){const v=u[g],x=v[1].firstChild;null!==x&&Jy(v[1],v,x,o)}const h=n.type;if(8&h)Jy(r,e,n.child,o);else if(32&h){const g=na(n,e);let v;for(;v=g();)o.push(v)}else if(16&h){const g=kd(e,n);if(Array.isArray(g))o.push(...g);else{const v=vo(e[16]);Jy(v[1],v,g,o,!0)}}n=a?n.projectionNext:n.next}return o}class ev{constructor(e,n){this._lView=e,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const e=this._lView,n=e[1];return Jy(n,e,n.firstChild,[])}get context(){return this._lView[8]}set context(e){this._lView[8]=e}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[3];if(Ii(e)){const n=e[8],o=n?n.indexOf(this):-1;o>-1&&(Wc(e,o),Bc(n,o))}this._attachedToViewContainer=!1}ms(this._lView[1],this._lView)}onDestroy(e){uE(this._lView[1],this._lView,null,e)}markForCheck(){!function qd(r){for(;r;){r[2]|=64;const e=vo(r);if(z0(r)&&!e)return r;r=e}return null}(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Pi(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Me(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Tm(r,e){Jc(r,e,e[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Me(902,"");this._appRef=e}}class a2 extends ev{constructor(e){super(e),this._view=e}detectChanges(){bs(this._view)}checkNoChanges(){}get context(){return null}}class YC extends Cu{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const n=Ln(e);return new Cp(n,this.ngModule)}}function ZC(r){const e=[];for(let n in r)r.hasOwnProperty(n)&&e.push({propName:r[n],templateName:n});return e}class Cp extends $a{constructor(e,n){super(),this.componentDef=e,this.ngModule=n,this.componentType=e.type,this.selector=function ii(r){return r.map(Ar).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return ZC(this.componentDef.inputs)}get outputs(){return ZC(this.componentDef.outputs)}create(e,n,o,a){const u=(a=a||this.ngModule)?function tv(r,e){return{get:(n,o,a)=>{const u=r.get(n,Do,a);return u!==Do||o===Do?u:e.get(n,o,a)}}}(e,a.injector):e,h=u.get(Ze,im),g=u.get(s2,null),v=h.createRenderer(null,this.componentDef),x=this.componentDef.selectors[0][0]||"div",R=o?function Bd(r,e,n){if(Xn(r))return r.selectRootElement(e,n===me.ShadowDom);let o="string"==typeof e?r.querySelector(e):e;return o.textContent="",o}(v,o,this.componentDef.encapsulation):Mm(h.createRenderer(null,this.componentDef),x,function Ga(r){const e=r.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(x)),L=this.componentDef.onPush?576:528,F=function IE(r,e){return{components:[],scheduler:r||ZS,clean:yE,playerHandler:e||null,flags:0}}(),U=cu(0,null,null,1,0,null,null,null,null,null),Z=Qh(null,U,F,L,null,null,h,v,g,u);let ie,le;od(Z);try{const de=function T1(r,e,n,o,a,u){const h=n[1];n[20]=r;const v=jl(h,20,2,"#host",null),x=v.mergedAttrs=e.hostAttrs;null!==x&&(rp(v,x,!0),null!==r&&(ym(a,r,x),null!==v.classes&&Ph(a,r,v.classes),null!==v.styles&&Ad(a,r,v.styles)));const R=o.createRenderer(r,e),L=Qh(n,Jm(e),null,e.onPush?64:16,n[20],v,o,R,u||null,null);return h.firstCreatePass&&(Dh(Ch(v,n),h,e.type),ry(h,v),Xh(v,n.length,1)),Fa(n,L),n[20]=L}(R,this.componentDef,Z,h,v);if(R)if(o)ym(v,R,["ng-version",ai.full]);else{const{attrs:se,classes:ke}=function bo(r){const e=[],n=[];let o=1,a=2;for(;o<r.length;){let u=r[o];if("string"==typeof u)2===a?""!==u&&e.push(u,r[++o]):8===a&&n.push(u);else{if(!Go(a))break;a=u}o++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);se&&ym(v,R,se),ke&&ke.length>0&&Ph(v,R,ke.join(" "))}if(le=function Dc(r,e){return r.data[e]}(U,20),void 0!==n){const se=le.projection=[];for(let ke=0;ke<this.ngContentSelectors.length;ke++){const ze=n[ke];se.push(null!=ze?Array.from(ze):null)}}ie=function O1(r,e,n,o,a){const u=n[1],h=function qR(r,e,n){const o=Jn();r.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),gE(r,o,e,lu(r,e,1,null),n));const a=Da(e,r,o.directiveStart,o);zr(a,e);const u=Wi(o,e);return u&&zr(u,e),a}(u,n,e);if(o.components.push(h),r[8]=h,a&&a.forEach(v=>v(h,e)),e.contentQueries){const v=Jn();e.contentQueries(1,h,v.directiveStart)}const g=Jn();return!u.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(gl(g.index),fE(n[1],g,0,g.directiveStart,g.directiveEnd,e),v1(e,h)),h}(de,this.componentDef,Z,F,[ZR]),Bl(U,Z,null)}finally{hm()}return new l2(this.componentType,ie,_f(le,Z),Z,le)}}class l2 extends class t2{}{constructor(e,n,o,a,u){super(),this.location=o,this._rootLView=a,this._tNode=u,this.instance=n,this.hostView=this.changeDetectorRef=new a2(a),this.componentType=e}get injector(){return new fs(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}class wf{}const xs=new Map;class nD extends wf{constructor(e,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new YC(this);const o=hi(e);this._bootstrapComponents=zn(o.bootstrap),this._r3Injector=SE(e,n,[{provide:wf,useValue:this},{provide:Cu,useValue:this.componentFactoryResolver}],Mt(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,n=si.THROW_IF_NOT_FOUND,o=ft.Default){return e===si||e===wf||e===dy?this:this._r3Injector.get(e,n,o)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class rD extends class D_{}{constructor(e){super(),this.moduleType=e,null!==hi(e)&&function eD(r){const e=new Set;!function n(o){const a=hi(o,!0),u=a.id;null!==u&&(function JC(r,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${r} - ${Mt(e)} vs ${Mt(e.name)}`)}(u,xs.get(u),o),xs.set(u,o));const h=zn(a.imports);for(const g of h)e.has(g)||(e.add(g),n(g))}(r)}(e)}create(e){return new nD(this.moduleType,e)}}function xi(r){return e=>{setTimeout(r,void 0,e)}}const or=class g2 extends nn{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,n,o){var a,u,h;let g=e,v=n||(()=>null),x=o;if(e&&"object"==typeof e){const L=e;g=null===(a=L.next)||void 0===a?void 0:a.bind(L),v=null===(u=L.error)||void 0===u?void 0:u.bind(L),x=null===(h=L.complete)||void 0===h?void 0:h.bind(L)}this.__isAsync&&(v=xi(v),g&&(g=xi(g)),x&&(x=xi(x)));const R=super.subscribe({next:g,error:v,complete:x});return e instanceof ee&&e.add(R),R}};function ts(){return this._results[Gd()]()}class Si{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=Gd(),o=Si.prototype;o[n]||(o[n]=ts)}get changes(){return this._changes||(this._changes=new or)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,n){return this._results.reduce(e,n)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,n){const o=this;o.dirty=!1;const a=Fo(e);(this._changesDetected=!function yS(r,e,n){if(r.length!==e.length)return!1;for(let o=0;o<r.length;o++){let a=r[o],u=e[o];if(n&&(a=n(a),u=n(u)),u!==a)return!1}return!0}(o._results,a,n))&&(o._results=a,o.length=a.length,o.last=a[this.length-1],o.first=a[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let Es=(()=>{class r{}return r.__NG_ELEMENT_ID__=Rp,r})();const Ip=Es,Sf=class extends Ip{constructor(e,n,o){super(),this._declarationLView=e,this._declarationTContainer=n,this.elementRef=o}createEmbeddedView(e){const n=this._declarationTContainer.tViews,o=Qh(this._declarationLView,n,e,16,null,n.declTNode,null,null,null,null);o[17]=this._declarationLView[this._declarationTContainer.index];const u=this._declarationLView[19];return null!==u&&(o[19]=u.createEmbeddedView(n)),Bl(n,o,e),new ev(o)}};function Rp(){return rv(Jn(),ge())}function rv(r,e){return 4&r.type?new Sf(e,r,_f(r,e)):null}let Cs=(()=>{class r{}return r.__NG_ELEMENT_ID__=Mp,r})();function Mp(){return Ds(Jn(),ge())}const m2=Cs,T_=class extends m2{constructor(e,n,o){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=o}get element(){return _f(this._hostTNode,this._hostLView)}get injector(){return new fs(this._hostTNode,this._hostLView)}get parentInjector(){const e=yl(this._hostTNode,this._hostLView);if(hS(e)){const n=Tc(e,this._hostLView),o=Ca(e);return new fs(n[1].data[o+8],n)}return new fs(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const n=O_(this._lContainer);return null!==n&&n[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,n,o){const a=e.createEmbeddedView(n||{});return this.insert(a,o),a}createComponent(e,n,o,a,u){const h=e&&!function vl(r){return"function"==typeof r}(e);let g;if(h)g=n;else{const L=n||{};g=L.index,o=L.injector,a=L.projectableNodes,u=L.ngModuleRef}const v=h?e:new Cp(Ln(e)),x=o||this.parentInjector;if(!u&&null==v.ngModule){const F=(h?x:this.parentInjector).get(wf,null);F&&(u=F)}const R=v.create(x,a,void 0,u);return this.insert(R.hostView,g),R}insert(e,n){const o=e._lView,a=o[1];if(function Z0(r){return Ii(r[3])}(o)){const R=this.indexOf(e);if(-1!==R)this.detach(R);else{const L=o[3],F=new T_(L,L[6],L[3]);F.detach(F.indexOf(e))}}const u=this._adjustIndex(n),h=this._lContainer;!function kS(r,e,n,o){const a=10+o,u=n.length;o>0&&(n[a-1][4]=e),o<u-10?(e[4]=n[a],vb(n,10+o,e)):(n.push(e),e[4]=null),e[3]=n;const h=e[17];null!==h&&n!==h&&function Cd(r,e){const n=r[9];e[16]!==e[3][3][16]&&(r[2]=!0),null===n?r[9]=[e]:n.push(e)}(h,e);const g=e[19];null!==g&&g.insertView(r),e[2]|=128}(a,o,h,u);const g=Xc(u,h),v=o[11],x=Dd(v,h[7]);return null!==x&&function Th(r,e,n,o,a,u){o[0]=a,o[6]=e,Jc(r,o,n,1,a,u)}(a,h[6],v,o,x,g),e.attachToViewContainerRef(),vb(L_(h),u,e),e}move(e,n){return this.insert(e,n)}indexOf(e){const n=O_(this._lContainer);return null!==n?n.indexOf(e):-1}remove(e){const n=this._adjustIndex(e,-1),o=Wc(this._lContainer,n);o&&(Bc(L_(this._lContainer),n),ms(o[1],o))}detach(e){const n=this._adjustIndex(e,-1),o=Wc(this._lContainer,n);return o&&null!=Bc(L_(this._lContainer),n)?new ev(o):null}_adjustIndex(e,n=0){return null==e?this.length+n:e}};function O_(r){return r[8]}function L_(r){return r[8]||(r[8]=[])}function Ds(r,e){let n;const o=e[r.index];if(Ii(o))n=o;else{let a;if(8&r.type)a=Pn(o);else{const u=e[11];a=u.createComment("");const h=Wi(r,e);kl(u,Dd(u,h),a,function zb(r,e){return Xn(r)?r.nextSibling(e):e.nextSibling}(u,h),!1)}e[r.index]=n=function iy(r,e,n,o){return new Array(r,!0,!1,e,null,0,o,n,null,null)}(o,e,a,r),Fa(e,n)}return new T_(n,r,e)}class Tp{constructor(e){this.queryList=e,this.matches=null}clone(){return new Tp(this.queryList)}setDirty(){this.queryList.setDirty()}}class P_{constructor(e=[]){this.queries=e}createEmbeddedView(e){const n=e.queries;if(null!==n){const o=null!==e.contentQueries?e.contentQueries[0]:n.length,a=[];for(let u=0;u<o;u++){const h=n.getByIndex(u);a.push(this.queries[h.indexInDeclarationView].clone())}return new P_(a)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let n=0;n<this.queries.length;n++)null!==j_(e,n).matches&&this.queries[n].setDirty()}}class As{constructor(e,n,o=null){this.predicate=e,this.flags=n,this.read=o}}class Ua{constructor(e=[]){this.queries=e}elementStart(e,n){for(let o=0;o<this.queries.length;o++)this.queries[o].elementStart(e,n)}elementEnd(e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(e)}embeddedTView(e){let n=null;for(let o=0;o<this.length;o++){const a=null!==n?n.length:0,u=this.getByIndex(o).embeddedTView(e,a);u&&(u.indexInDeclarationView=o,null!==n?n.push(u):n=[u])}return null!==n?new Ua(n):null}template(e,n){for(let o=0;o<this.queries.length;o++)this.queries[o].template(e,n)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class Ef{constructor(e,n=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}elementStart(e,n){this.isApplyingToNode(n)&&this.matchTNode(e,n)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,n){this.elementStart(e,n)}embeddedTView(e,n){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,n),new Ef(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const n=this._declarationNodeIndex;let o=e.parent;for(;null!==o&&8&o.type&&o.index!==n;)o=o.parent;return n===(null!==o?o.index:-1)}return this._appliesToNextNode}matchTNode(e,n){const o=this.metadata.predicate;if(Array.isArray(o))for(let a=0;a<o.length;a++){const u=o[a];this.matchTNodeWithReadOption(e,n,Cf(n,u)),this.matchTNodeWithReadOption(e,n,dd(n,e,u,!1,!1))}else o===Es?4&n.type&&this.matchTNodeWithReadOption(e,n,-1):this.matchTNodeWithReadOption(e,n,dd(n,e,o,!1,!1))}matchTNodeWithReadOption(e,n,o){if(null!==o){const a=this.metadata.read;if(null!==a)if(a===Ut||a===Cs||a===Es&&4&n.type)this.addMatch(n.index,-2);else{const u=dd(n,e,a,!1,!1);null!==u&&this.addMatch(n.index,u)}else this.addMatch(n.index,o)}}addMatch(e,n){null===this.matches?this.matches=[e,n]:this.matches.push(e,n)}}function Cf(r,e){const n=r.localNames;if(null!==n)for(let o=0;o<n.length;o+=2)if(n[o]===e)return n[o+1];return null}function fD(r,e,n,o){return-1===n?function N_(r,e){return 11&r.type?_f(r,e):4&r.type?rv(r,e):null}(e,r):-2===n?function Df(r,e,n){return n===Ut?_f(e,r):n===Es?rv(e,r):n===Cs?Ds(e,r):void 0}(r,e,o):Da(r,r[1],n,e)}function iv(r,e,n,o){const a=e[19].queries[o];if(null===a.matches){const u=r.data,h=n.matches,g=[];for(let v=0;v<h.length;v+=2){const x=h[v];g.push(x<0?null:fD(e,u[x],h[v+1],n.metadata.read))}a.matches=g}return a.matches}function ov(r,e,n,o){const a=r.queries.getByIndex(n),u=a.matches;if(null!==u){const h=iv(r,e,a,n);for(let g=0;g<u.length;g+=2){const v=u[g];if(v>0)o.push(h[g/2]);else{const x=u[g+1],R=e[-v];for(let L=10;L<R.length;L++){const F=R[L];F[17]===F[3]&&ov(F[1],F,x,o)}if(null!==R[9]){const L=R[9];for(let F=0;F<L.length;F++){const U=L[F];ov(U[1],U,x,o)}}}}}return o}function Is(r){const e=ge(),n=kt(),o=fm();vh(o+1);const a=j_(n,o);if(r.dirty&&Y0(e)===(2==(2&a.metadata.flags))){if(null===a.matches)r.reset([]);else{const u=a.crossesNgTemplate?ov(n,e,o,[]):iv(n,e,a,o);r.reset(u,C_),r.notifyOnChanges()}return!0}return!1}function F_(r,e,n){const o=kt();o.firstCreatePass&&(function sv(r,e,n){null===r.queries&&(r.queries=new Ua),r.queries.track(new Ef(e,n))}(o,new As(r,e,n),-1),2==(2&e)&&(o.staticViewQueries=!0)),function Af(r,e,n){const o=new Si(4==(4&n));uE(r,e,o,o.destroy),null===e[19]&&(e[19]=new P_),e[19].queries.push(new Tp(o))}(o,ge(),e)}function kf(){return function hD(r,e){return r[19].queries[e].queryList}(ge(),fm())}function j_(r,e){return r.queries.getByIndex(e)}function dv(...r){}const En=new pt("Application Initializer");let jp=(()=>{class r{constructor(n){this.appInits=n,this.resolve=dv,this.reject=dv,this.initialized=!1,this.done=!1,this.donePromise=new Promise((o,a)=>{this.resolve=o,this.reject=a})}runInitializers(){if(this.initialized)return;const n=[],o=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let a=0;a<this.appInits.length;a++){const u=this.appInits[a]();if(K1(u))n.push(u);else if(cM(u)){const h=new Promise((g,v)=>{u.subscribe({complete:g,error:v})});n.push(h)}}Promise.all(n).then(()=>{o()}).catch(a=>{this.reject(a)}),0===n.length&&o(),this.initialized=!0}}return r.\u0275fac=function(n){return new(n||r)(he(En,8))},r.\u0275prov=Ae({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const Mf=new pt("AppId",{providedIn:"root",factory:function RD(){return`${fv()}${fv()}${fv()}`}});function fv(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const MD=new pt("Platform Initializer"),Ts=new pt("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),D2=new pt("appBootstrapListener"),ns=new pt("LocaleId",{providedIn:"root",factory:()=>yd(ns,ft.Optional|ft.SkipSelf)||function K_(){return"undefined"!=typeof $localize&&$localize.locale||bp}()}),LD=(()=>Promise.resolve(0))();function Y_(r){"undefined"==typeof Zone?LD.then(()=>{r&&r.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",r)}class Hn{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:o=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new or(!1),this.onMicrotaskEmpty=new or(!1),this.onStable=new or(!1),this.onError=new or(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const a=this;a._nesting=0,a._outer=a._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!o&&n,a.shouldCoalesceRunChangeDetection=o,a.lastRequestAnimationFrameId=-1,a.nativeRequestAnimationFrame=function PP(){let r=Ot.requestAnimationFrame,e=Ot.cancelAnimationFrame;if("undefined"!=typeof Zone&&r&&e){const n=r[Zone.__symbol__("OriginalDelegate")];n&&(r=n);const o=e[Zone.__symbol__("OriginalDelegate")];o&&(e=o)}return{nativeRequestAnimationFrame:r,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function P2(r){const e=()=>{!function L2(r){r.isCheckStableRunning||-1!==r.lastRequestAnimationFrameId||(r.lastRequestAnimationFrameId=r.nativeRequestAnimationFrame.call(Ot,()=>{r.fakeTopEventTask||(r.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{r.lastRequestAnimationFrameId=-1,PD(r),r.isCheckStableRunning=!0,ca(r),r.isCheckStableRunning=!1},void 0,()=>{},()=>{})),r.fakeTopEventTask.invoke()}),PD(r))}(r)};r._inner=r._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,o,a,u,h,g)=>{try{return ND(r),n.invokeTask(a,u,h,g)}finally{(r.shouldCoalesceEventChangeDetection&&"eventTask"===u.type||r.shouldCoalesceRunChangeDetection)&&e(),FD(r)}},onInvoke:(n,o,a,u,h,g,v)=>{try{return ND(r),n.invoke(a,u,h,g,v)}finally{r.shouldCoalesceRunChangeDetection&&e(),FD(r)}},onHasTask:(n,o,a,u)=>{n.hasTask(a,u),o===a&&("microTask"==u.change?(r._hasPendingMicrotasks=u.microTask,PD(r),ca(r)):"macroTask"==u.change&&(r.hasPendingMacrotasks=u.macroTask))},onHandleError:(n,o,a,u)=>(n.handleError(a,u),r.runOutsideAngular(()=>r.onError.emit(u)),!1)})}(a)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Hn.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Hn.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,n,o){return this._inner.run(e,n,o)}runTask(e,n,o,a){const u=this._inner,h=u.scheduleEventTask("NgZoneEvent: "+a,e,O2,dv,dv);try{return u.runTask(h,n,o)}finally{u.cancelTask(h)}}runGuarded(e,n,o){return this._inner.runGuarded(e,n,o)}runOutsideAngular(e){return this._outer.run(e)}}const O2={};function ca(r){if(0==r._nesting&&!r.hasPendingMicrotasks&&!r.isStable)try{r._nesting++,r.onMicrotaskEmpty.emit(null)}finally{if(r._nesting--,!r.hasPendingMicrotasks)try{r.runOutsideAngular(()=>r.onStable.emit(null))}finally{r.isStable=!0}}}function PD(r){r.hasPendingMicrotasks=!!(r._hasPendingMicrotasks||(r.shouldCoalesceEventChangeDetection||r.shouldCoalesceRunChangeDetection)&&-1!==r.lastRequestAnimationFrameId)}function ND(r){r._nesting++,r.isStable&&(r.isStable=!1,r.onUnstable.emit(null))}function FD(r){r._nesting--,ca(r)}class N2{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new or,this.onMicrotaskEmpty=new or,this.onStable=new or,this.onError=new or}run(e,n,o){return e.apply(n,o)}runGuarded(e,n,o){return e.apply(n,o)}runOutsideAngular(e){return e()}runTask(e,n,o,a){return e.apply(n,o)}}let Z_=(()=>{class r{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Hn.assertNotInAngularZone(),Y_(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Y_(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(o=>!o.updateCb||!o.updateCb(n)||(clearTimeout(o.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,o,a){let u=-1;o&&o>0&&(u=setTimeout(()=>{this._callbacks=this._callbacks.filter(h=>h.timeoutId!==u),n(this._didWork,this.getPendingTasks())},o)),this._callbacks.push({doneCb:n,timeoutId:u,updateCb:a})}whenStable(n,o,a){if(a&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,o,a),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,o,a){return[]}}return r.\u0275fac=function(n){return new(n||r)(he(Hn))},r.\u0275prov=Ae({token:r,factory:r.\u0275fac}),r})(),NP=(()=>{class r{constructor(){this._applications=new Map,ua.addToWindow(this)}registerApplication(n,o){this._applications.set(n,o)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,o=!0){return ua.findTestabilityInTree(this,n,o)}}return r.\u0275fac=function(n){return new(n||r)},r.\u0275prov=Ae({token:r,factory:r.\u0275fac,providedIn:"platform"}),r})();class F2{addToWindow(e){}findTestabilityInTree(e,n,o){return null}}let ua=new F2,ku=null;const jD=new pt("AllowMultipleToken"),BD=new pt("PlatformOnDestroy");function V2(r,e,n=[]){const o=`Platform: ${e}`,a=new pt(o);return(u=[])=>{let h=X_();if(!h||h.injector.get(jD,!1)){const g=[...n,...u,{provide:a,useValue:!0}];r?r(g):function q2(r){if(ku&&!ku.get(jD,!1))throw new Me(400,"");ku=r;const e=r.get(zD),n=r.get(MD,null);n&&n.forEach(o=>o())}(function H2(r=[],e){return si.create({name:e,providers:[{provide:fy,useValue:"platform"},{provide:BD,useValue:()=>ku=null},...r]})}(g,o))}return function Bp(r){const e=X_();if(!e)throw new Me(401,"");return e}()}}function X_(){var r;return null!==(r=null==ku?void 0:ku.get(zD))&&void 0!==r?r:null}let zD=(()=>{class r{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,o){const g=function BP(r,e){let n;return n="noop"===r?new N2:("zone.js"===r?void 0:r)||new Hn({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(o?o.ngZone:void 0,{ngZoneEventCoalescing:o&&o.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:o&&o.ngZoneRunCoalescing||!1}),v=[{provide:Hn,useValue:g}];return g.run(()=>{const x=si.create({providers:v,parent:this.injector,name:n.moduleType.name}),R=n.create(x),L=R.injector.get(Re,null);if(!L)throw new Me(402,"");return g.runOutsideAngular(()=>{const F=g.onError.subscribe({next:U=>{L.handleError(U)}});R.onDestroy(()=>{J_(this._modules,R),F.unsubscribe()})}),function qD(r,e,n){try{const o=n();return K1(o)?o.catch(a=>{throw e.runOutsideAngular(()=>r.handleError(a)),a}):o}catch(o){throw e.runOutsideAngular(()=>r.handleError(o)),o}}(L,g,()=>{const F=R.injector.get(jp);return F.runInitializers(),F.donePromise.then(()=>(function TM(r){ao(r,"Expected localeId to be defined"),"string"==typeof r&&(h_=r.toLowerCase().replace(/_/g,"-"))}(R.injector.get(ns,bp)||bp),this._moduleDoBootstrap(R),R))})})}bootstrapModule(n,o=[]){const a=VD({},o);return function B2(r,e,n){const o=new rD(n);return Promise.resolve(o)}(0,0,n).then(u=>this.bootstrapModuleFactory(u,a))}_moduleDoBootstrap(n){const o=n.injector.get(hv);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(a=>o.bootstrap(a));else{if(!n.instance.ngDoBootstrap)throw new Me(403,"");n.instance.ngDoBootstrap(o)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Me(404,"");this._modules.slice().forEach(o=>o.destroy()),this._destroyListeners.forEach(o=>o());const n=this._injector.get(BD,null);null==n||n(),this._destroyed=!0}get destroyed(){return this._destroyed}}return r.\u0275fac=function(n){return new(n||r)(he(si))},r.\u0275prov=Ae({token:r,factory:r.\u0275fac,providedIn:"platform"}),r})();function VD(r,e){return Array.isArray(e)?e.reduce(VD,r):Object.assign(Object.assign({},r),e)}let hv=(()=>{class r{constructor(n,o,a,u){this._zone=n,this._injector=o,this._exceptionHandler=a,this._initStatus=u,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const h=new Ie(v=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{v.next(this._stable),v.complete()})}),g=new Ie(v=>{let x;this._zone.runOutsideAngular(()=>{x=this._zone.onStable.subscribe(()=>{Hn.assertNotInAngularZone(),Y_(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,v.next(!0))})})});const R=this._zone.onUnstable.subscribe(()=>{Hn.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{v.next(!1)}))});return()=>{x.unsubscribe(),R.unsubscribe()}});this.isStable=ya(h,g.pipe(function Gx(){return r=>rh()(function DI(r,e){return function(o){let a;if(a="function"==typeof r?r:function(){return r},"function"==typeof e)return o.lift(new kI(a,e));const u=Object.create(o,SI);return u.source=o,u.subjectFactory=a,u}}(AI)(r))}()))}bootstrap(n,o){if(!this._initStatus.done)throw new Me(405,"");let a;a=n instanceof $a?n:this._injector.get(Cu).resolveComponentFactory(n),this.componentTypes.push(a.componentType);const u=function z2(r){return r.isBoundToModule}(a)?void 0:this._injector.get(wf),g=a.create(si.NULL,[],o||a.selector,u),v=g.location.nativeElement,x=g.injector.get(Z_,null),R=x&&g.injector.get(NP);return x&&R&&R.registerApplication(v,x),g.onDestroy(()=>{this.detachView(g.hostView),J_(this.components,g),R&&R.unregisterApplication(v)}),this._loadComponent(g),g}tick(){if(this._runningTick)throw new Me(101,"");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const o=n;this._views.push(o),o.attachToAppRef(this)}detachView(n){const o=n;J_(this._views,o),o.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(D2,[]).concat(this._bootstrapListeners).forEach(a=>a(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return r.\u0275fac=function(n){return new(n||r)(he(Hn),he(si),he(Re),he(jp))},r.\u0275prov=Ae({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function J_(r,e){const n=r.indexOf(e);n>-1&&r.splice(n,1)}let $D=!0,WD=(()=>{class r{}return r.__NG_ELEMENT_ID__=G2,r})();function G2(r){return function KD(r,e,n){if(ch(r)&&!n){const o=yt(r.index,e);return new ev(o,o)}return 47&r.type?new ev(e[16],e):null}(Jn(),ge(),16==(16&r))}const lT=V2(null,"core",[]);let cT=(()=>{class r{constructor(n){}}return r.\u0275fac=function(n){return new(n||r)(he(hv))},r.\u0275mod=co({type:r}),r.\u0275inj=Hi({}),r})(),yv=null;function Wa(){return yv}const en=new pt("DocumentToken"),vw="browser";function Mu(r){return r===vw}function da(r){return"server"===r}let Kk=(()=>{class r{}return r.\u0275fac=function(n){return new(n||r)},r.\u0275mod=co({type:r}),r.\u0275inj=Hi({}),r})();class Iw extends class DO extends class ik{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function dT(r){yv||(yv=r)}(new Iw)}onAndCancel(e,n,o){return e.addEventListener(n,o,!1),()=>{e.removeEventListener(n,o,!1)}}dispatchEvent(e,n){e.dispatchEvent(n)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,n){return(n=n||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,n){return"window"===n?window:"document"===n?e:"body"===n?e.body:null}getBaseHref(e){const n=function Yk(){return lg=lg||document.querySelector("base"),lg?lg.getAttribute("href"):null}();return null==n?null:function kO(r){cg=cg||document.createElement("a"),cg.setAttribute("href",r);const e=cg.pathname;return"/"===e.charAt(0)?e:`/${e}`}(n)}resetBaseElement(){lg=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function xk(r,e){e=encodeURIComponent(e);for(const n of r.split(";")){const o=n.indexOf("="),[a,u]=-1==o?[n,""]:[n.slice(0,o),n.slice(o+1)];if(a.trim()===e)return decodeURIComponent(u)}return null}(document.cookie,e)}}let cg,lg=null;const Zk=new pt("TRANSITION_ID"),IO=[{provide:En,useFactory:function AO(r,e,n){return()=>{n.get(jp).donePromise.then(()=>{const o=Wa(),a=e.querySelectorAll(`style[ng-transition="${r}"]`);for(let u=0;u<a.length;u++)o.remove(a[u])})}},deps:[Zk,en,si],multi:!0}];class Mv{static init(){!function j2(r){ua=r}(new Mv)}addToWindow(e){Ot.getAngularTestability=(o,a=!0)=>{const u=e.findTestabilityInTree(o,a);if(null==u)throw new Error("Could not find testability for element.");return u},Ot.getAllAngularTestabilities=()=>e.getAllTestabilities(),Ot.getAllAngularRootElements=()=>e.getAllRootElements(),Ot.frameworkStabilizers||(Ot.frameworkStabilizers=[]),Ot.frameworkStabilizers.push(o=>{const a=Ot.getAllAngularTestabilities();let u=a.length,h=!1;const g=function(v){h=h||v,u--,0==u&&o(h)};a.forEach(function(v){v.whenStable(g)})})}findTestabilityInTree(e,n,o){if(null==n)return null;const a=e.getTestability(n);return null!=a?a:o?Wa().isShadowRoot(n)?this.findTestabilityInTree(e,n.host,!0):this.findTestabilityInTree(e,n.parentElement,!0):null}}let RO=(()=>{class r{build(){return new XMLHttpRequest}}return r.\u0275fac=function(n){return new(n||r)},r.\u0275prov=Ae({token:r,factory:r.\u0275fac}),r})();const Tv=new pt("EventManagerPlugins");let Ov=(()=>{class r{constructor(n,o){this._zone=o,this._eventNameToPlugin=new Map,n.forEach(a=>a.manager=this),this._plugins=n.slice().reverse()}addEventListener(n,o,a){return this._findPluginFor(o).addEventListener(n,o,a)}addGlobalEventListener(n,o,a){return this._findPluginFor(o).addGlobalEventListener(n,o,a)}getZone(){return this._zone}_findPluginFor(n){const o=this._eventNameToPlugin.get(n);if(o)return o;const a=this._plugins;for(let u=0;u<a.length;u++){const h=a[u];if(h.supports(n))return this._eventNameToPlugin.set(n,h),h}throw new Error(`No event manager plugin found for event ${n}`)}}return r.\u0275fac=function(n){return new(n||r)(he(Tv),he(Hn))},r.\u0275prov=Ae({token:r,factory:r.\u0275fac}),r})();class Xk{constructor(e){this._doc=e}addGlobalEventListener(e,n,o){const a=Wa().getGlobalEventTarget(this._doc,e);if(!a)throw new Error(`Unsupported event target ${a} for event ${n}`);return this.addEventListener(a,n,o)}}let Rw=(()=>{class r{constructor(){this._stylesSet=new Set}addStyles(n){const o=new Set;n.forEach(a=>{this._stylesSet.has(a)||(this._stylesSet.add(a),o.add(a))}),this.onStylesAdded(o)}onStylesAdded(n){}getAllStyles(){return Array.from(this._stylesSet)}}return r.\u0275fac=function(n){return new(n||r)},r.\u0275prov=Ae({token:r,factory:r.\u0275fac}),r})(),ug=(()=>{class r extends Rw{constructor(n){super(),this._doc=n,this._hostNodes=new Map,this._hostNodes.set(n.head,[])}_addStylesToHost(n,o,a){n.forEach(u=>{const h=this._doc.createElement("style");h.textContent=u,a.push(o.appendChild(h))})}addHost(n){const o=[];this._addStylesToHost(this._stylesSet,n,o),this._hostNodes.set(n,o)}removeHost(n){const o=this._hostNodes.get(n);o&&o.forEach(Mw),this._hostNodes.delete(n)}onStylesAdded(n){this._hostNodes.forEach((o,a)=>{this._addStylesToHost(n,a,o)})}ngOnDestroy(){this._hostNodes.forEach(n=>n.forEach(Mw))}}return r.\u0275fac=function(n){return new(n||r)(he(en))},r.\u0275prov=Ae({token:r,factory:r.\u0275fac}),r})();function Mw(r){Wa().remove(r)}const Tw={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Ow=/%COMP%/g;function Lv(r,e,n){for(let o=0;o<e.length;o++){let a=e[o];Array.isArray(a)?Lv(r,a,n):(a=a.replace(Ow,r),n.push(a))}return n}function tA(r){return e=>{if("__ngUnwrap__"===e)return r;!1===r(e)&&(e.preventDefault(),e.returnValue=!1)}}let Pv=(()=>{class r{constructor(n,o,a){this.eventManager=n,this.sharedStylesHost=o,this.appId=a,this.rendererByCompId=new Map,this.defaultRenderer=new Nv(n)}createRenderer(n,o){if(!n||!o)return this.defaultRenderer;switch(o.encapsulation){case me.Emulated:{let a=this.rendererByCompId.get(o.id);return a||(a=new LO(this.eventManager,this.sharedStylesHost,o,this.appId),this.rendererByCompId.set(o.id,a)),a.applyToHost(n),a}case 1:case me.ShadowDom:return new jv(this.eventManager,this.sharedStylesHost,n,o);default:if(!this.rendererByCompId.has(o.id)){const a=Lv(o.id,o.styles,[]);this.sharedStylesHost.addStyles(a),this.rendererByCompId.set(o.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return r.\u0275fac=function(n){return new(n||r)(he(Ov),he(ug),he(Mf))},r.\u0275prov=Ae({token:r,factory:r.\u0275fac}),r})();class Nv{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,n){return n?document.createElementNS(Tw[n]||n,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,n){e.appendChild(n)}insertBefore(e,n,o){e&&e.insertBefore(n,o)}removeChild(e,n){e&&e.removeChild(n)}selectRootElement(e,n){let o="string"==typeof e?document.querySelector(e):e;if(!o)throw new Error(`The selector "${e}" did not match any elements`);return n||(o.textContent=""),o}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,n,o,a){if(a){n=a+":"+n;const u=Tw[a];u?e.setAttributeNS(u,n,o):e.setAttribute(n,o)}else e.setAttribute(n,o)}removeAttribute(e,n,o){if(o){const a=Tw[o];a?e.removeAttributeNS(a,n):e.removeAttribute(`${o}:${n}`)}else e.removeAttribute(n)}addClass(e,n){e.classList.add(n)}removeClass(e,n){e.classList.remove(n)}setStyle(e,n,o,a){a&(Li.DashCase|Li.Important)?e.style.setProperty(n,o,a&Li.Important?"important":""):e.style[n]=o}removeStyle(e,n,o){o&Li.DashCase?e.style.removeProperty(n):e.style[n]=""}setProperty(e,n,o){e[n]=o}setValue(e,n){e.nodeValue=n}listen(e,n,o){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,n,tA(o)):this.eventManager.addEventListener(e,n,tA(o))}}class LO extends Nv{constructor(e,n,o,a){super(e),this.component=o;const u=Lv(a+"-"+o.id,o.styles,[]);n.addStyles(u),this.contentAttr=function eA(r){return"_ngcontent-%COMP%".replace(Ow,r)}(a+"-"+o.id),this.hostAttr=function OO(r){return"_nghost-%COMP%".replace(Ow,r)}(a+"-"+o.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,n){const o=super.createElement(e,n);return super.setAttribute(o,this.contentAttr,""),o}}class jv extends Nv{constructor(e,n,o,a){super(e),this.sharedStylesHost=n,this.hostEl=o,this.shadowRoot=o.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const u=Lv(a.id,a.styles,[]);for(let h=0;h<u.length;h++){const g=document.createElement("style");g.textContent=u[h],this.shadowRoot.appendChild(g)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,n){return super.appendChild(this.nodeOrShadowRoot(e),n)}insertBefore(e,n,o){return super.insertBefore(this.nodeOrShadowRoot(e),n,o)}removeChild(e,n){return super.removeChild(this.nodeOrShadowRoot(e),n)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let PO=(()=>{class r extends Xk{constructor(n){super(n)}supports(n){return!0}addEventListener(n,o,a){return n.addEventListener(o,a,!1),()=>this.removeEventListener(n,o,a)}removeEventListener(n,o,a){return n.removeEventListener(o,a)}}return r.\u0275fac=function(n){return new(n||r)(he(en))},r.\u0275prov=Ae({token:r,factory:r.\u0275fac}),r})();const rA=["alt","control","meta","shift"],Nw={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},dg={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},NO={alt:r=>r.altKey,control:r=>r.ctrlKey,meta:r=>r.metaKey,shift:r=>r.shiftKey};let FO=(()=>{class r extends Xk{constructor(n){super(n)}supports(n){return null!=r.parseEventName(n)}addEventListener(n,o,a){const u=r.parseEventName(o),h=r.eventCallback(u.fullKey,a,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Wa().onAndCancel(n,u.domEventName,h))}static parseEventName(n){const o=n.toLowerCase().split("."),a=o.shift();if(0===o.length||"keydown"!==a&&"keyup"!==a)return null;const u=r._normalizeKey(o.pop());let h="";if(rA.forEach(v=>{const x=o.indexOf(v);x>-1&&(o.splice(x,1),h+=v+".")}),h+=u,0!=o.length||0===u.length)return null;const g={};return g.domEventName=a,g.fullKey=h,g}static getEventFullKey(n){let o="",a=function iA(r){let e=r.key;if(null==e){if(e=r.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===r.location&&dg.hasOwnProperty(e)&&(e=dg[e]))}return Nw[e]||e}(n);return a=a.toLowerCase()," "===a?a="space":"."===a&&(a="dot"),rA.forEach(u=>{u!=a&&NO[u](n)&&(o+=u+".")}),o+=a,o}static eventCallback(n,o,a){return u=>{r.getEventFullKey(u)===n&&a.runGuarded(()=>o(u))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return r.\u0275fac=function(n){return new(n||r)(he(en))},r.\u0275prov=Ae({token:r,factory:r.\u0275fac}),r})();const sA=V2(lT,"browser",[{provide:Ts,useValue:vw},{provide:MD,useValue:function Bv(){Iw.makeCurrent(),Mv.init()},multi:!0},{provide:en,useFactory:function BO(){return function Zs(r){td=r}(document),document},deps:[]}]),zv=[{provide:fy,useValue:"root"},{provide:Re,useFactory:function jO(){return new Re},deps:[]},{provide:Tv,useClass:PO,multi:!0,deps:[en,Hn,Ts]},{provide:Tv,useClass:FO,multi:!0,deps:[en]},{provide:Pv,useClass:Pv,deps:[Ov,ug,Mf]},{provide:Ze,useExisting:Pv},{provide:Rw,useExisting:ug},{provide:ug,useClass:ug,deps:[en]},{provide:Z_,useClass:Z_,deps:[Hn]},{provide:Ov,useClass:Ov,deps:[Tv,Hn]},{provide:class EO{},useClass:RO,deps:[]}];let Fw=(()=>{class r{constructor(n){if(n)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(n){return{ngModule:r,providers:[{provide:Mf,useValue:n.appId},{provide:Zk,useExisting:Mf},IO]}}}return r.\u0275fac=function(n){return new(n||r)(he(r,12))},r.\u0275mod=co({type:r}),r.\u0275inj=Hi({providers:zv,imports:[Kk,cT]}),r})();"undefined"!=typeof window&&window;class tL extends ee{constructor(e,n){super()}schedule(e,n=0){return this}}class Vv extends tL{constructor(e,n){super(e,n),this.scheduler=e,this.work=n,this.pending=!1}schedule(e,n=0){if(this.closed)return this;this.state=e;const o=this.id,a=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(a,o,n)),this.pending=!0,this.delay=n,this.id=this.id||this.requestAsyncId(a,this.id,n),this}requestAsyncId(e,n,o=0){return setInterval(e.flush.bind(e,this),o)}recycleAsyncId(e,n,o=0){if(null!==o&&this.delay===o&&!1===this.pending)return n;clearInterval(n)}execute(e,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const o=this._execute(e,n);if(o)return o;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,n){let a,o=!1;try{this.work(e)}catch(u){o=!0,a=!!u&&u||new Error(u)}if(o)return this.unsubscribe(),a}_unsubscribe(){const e=this.id,n=this.scheduler,o=n.actions,a=o.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==a&&o.splice(a,1),null!=e&&(this.id=this.recycleAsyncId(n,e,null)),this.delay=null}}let mA=(()=>{class r{constructor(n,o=r.now){this.SchedulerAction=n,this.now=o}schedule(n,o=0,a){return new this.SchedulerAction(this,n).schedule(a,o)}}return r.now=()=>Date.now(),r})();class Bs extends mA{constructor(e,n=mA.now){super(e,()=>Bs.delegate&&Bs.delegate!==this?Bs.delegate.now():n()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,n=0,o){return Bs.delegate&&Bs.delegate!==this?Bs.delegate.schedule(e,n,o):super.schedule(e,n,o)}flush(e){const{actions:n}=this;if(this.active)return void n.push(e);let o;this.active=!0;do{if(o=e.execute(e.state,e.delay))break}while(e=n.shift());if(this.active=!1,o){for(;e=n.shift();)e.unsubscribe();throw o}}}new class fa extends Bs{flush(e){this.active=!0,this.scheduled=void 0;const{actions:n}=this;let o,a=-1,u=n.length;e=e||n.shift();do{if(o=e.execute(e.state,e.delay))break}while(++a<u&&(e=n.shift()));if(this.active=!1,o){for(;++a<u&&(e=n.shift());)e.unsubscribe();throw o}}}(class nL extends Vv{constructor(e,n){super(e,n),this.scheduler=e,this.work=n}requestAsyncId(e,n,o=0){return null!==o&&o>0?super.requestAsyncId(e,n,o):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,n,o=0){if(null!==o&&o>0||null===o&&this.delay>0)return super.recycleAsyncId(e,n,o);0===e.actions.length&&(cancelAnimationFrame(n),e.scheduled=void 0)}});let $w=1;const Gw=Promise.resolve(),zf={};function Uw(r){return r in zf&&(delete zf[r],!0)}const Hv={setImmediate(r){const e=$w++;return zf[e]=!0,Gw.then(()=>Uw(e)&&r()),e},clearImmediate(r){Uw(r)}};new class sL extends Bs{flush(e){this.active=!0,this.scheduled=void 0;const{actions:n}=this;let o,a=-1,u=n.length;e=e||n.shift();do{if(o=e.execute(e.state,e.delay))break}while(++a<u&&(e=n.shift()));if(this.active=!1,o){for(;++a<u&&(e=n.shift());)e.unsubscribe();throw o}}}(class oL extends Vv{constructor(e,n){super(e,n),this.scheduler=e,this.work=n}requestAsyncId(e,n,o=0){return null!==o&&o>0?super.requestAsyncId(e,n,o):(e.actions.push(this),e.scheduled||(e.scheduled=Hv.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,n,o=0){if(null!==o&&o>0||null===o&&this.delay>0)return super.recycleAsyncId(e,n,o);0===e.actions.length&&(Hv.clearImmediate(n),e.scheduled=void 0)}});function $v(r,e){return function(o){return o.lift(new wA(r,e))}}new Bs(Vv);class wA{constructor(e,n){this.predicate=e,this.thisArg=n}call(e,n){return n.subscribe(new fL(e,this.predicate,this.thisArg))}}class fL extends _n{constructor(e,n,o){super(e),this.predicate=n,this.thisArg=o,this.count=0}_next(e){let n;try{n=this.predicate.call(this.thisArg,e,this.count++)}catch(o){return void this.destination.error(o)}n&&this.destination.next(e)}}let pg;try{pg="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(r){pg=!1}let Xa=(()=>{class r{constructor(n){this._platformId=n,this.isBrowser=this._platformId?Mu(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!pg)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return r.\u0275fac=function(n){return new(n||r)(he(Ts))},r.\u0275prov=Ae({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function CA(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}let bL=(()=>{class r{}return r.\u0275fac=function(n){return new(n||r)},r.\u0275mod=co({type:r}),r.\u0275inj=Hi({}),r})();Object.create(Error.prototype);const AL=new Ie(r=>r.complete());let _g=(()=>{class r{constructor(n,o){this._platform=o,this._document=n}ngOnDestroy(){var n;null===(n=this._containerElement)||void 0===n||n.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const n="cdk-overlay-container";if(this._platform.isBrowser||CA()){const a=this._document.querySelectorAll(`.${n}[platform="server"], .${n}[platform="test"]`);for(let u=0;u<a.length;u++)a[u].remove()}const o=this._document.createElement("div");o.classList.add(n),CA()?o.setAttribute("platform","test"):this._platform.isBrowser||o.setAttribute("platform","server"),this._document.body.appendChild(o),this._containerElement=o}}return r.\u0275fac=function(n){return new(n||r)(he(en),he(Xa))},r.\u0275prov=Ae({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const jA=new class FA extends Bs{}(class NA extends Vv{constructor(e,n){super(e,n),this.scheduler=e,this.work=n}schedule(e,n=0){return n>0?super.schedule(e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)}execute(e,n){return n>0||this.closed?super.execute(e,n):this._execute(e,n)}requestAsyncId(e,n,o=0){return null!==o&&o>0||null===o&&this.delay>0?super.requestAsyncId(e,n,o):e.flush(this)}});function zA({error:r,subscriber:e}){e.error(r)}class is{constructor(e,n,o){this.kind=e,this.value=n,this.error=o,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,n,o){switch(this.kind){case"N":return e&&e(this.value);case"E":return n&&n(this.error);case"C":return o&&o()}}accept(e,n,o){return e&&"function"==typeof e.next?this.observe(e):this.do(e,n,o)}toObservable(){switch(this.kind){case"N":return function pA(...r){let e=r[r.length-1];return Gs(e)?(r.pop(),D0(r,e)):Wu(r)}(this.value);case"E":return function BA(r,e){return new Ie(e?n=>e.schedule(zA,0,{error:r,subscriber:n}):n=>n.error(r))}(this.error);case"C":return function RA(r){return r?function IL(r){return new Ie(e=>r.schedule(()=>e.complete()))}(r):AL}()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new is("N",e):is.undefinedValueNotification}static createError(e){return new is("E",void 0,e)}static createComplete(){return is.completeNotification}}is.completeNotification=new is("C"),is.undefinedValueNotification=new is("N",void 0);class oc extends _n{constructor(e,n,o=0){super(e),this.scheduler=n,this.delay=o}static dispatch(e){const{notification:n,destination:o}=e;n.observe(o),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(oc.dispatch,this.delay,new qA(e,this.destination)))}_next(e){this.scheduleMessage(is.createNext(e))}_error(e){this.scheduleMessage(is.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(is.createComplete()),this.unsubscribe()}}class qA{constructor(e,n){this.notification=e,this.destination=n}}class VA extends nn{constructor(e=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY,o){super(),this.scheduler=o,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){const n=this._events;n.push(e),n.length>this._bufferSize&&n.shift(),super.next(e)}nextTimeWindow(e){this._events.push(new QL(this._getNow(),e)),this._trimBufferThenGetEvents(),super.next(e)}_subscribe(e){const n=this._infiniteTimeWindow,o=n?this._events:this._trimBufferThenGetEvents(),a=this.scheduler,u=o.length;let h;if(this.closed)throw new zt;if(this.isStopped||this.hasError?h=ee.EMPTY:(this.observers.push(e),h=new ui(this,e)),a&&e.add(e=new oc(e,a)),n)for(let g=0;g<u&&!e.closed;g++)e.next(o[g]);else for(let g=0;g<u&&!e.closed;g++)e.next(o[g].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),h}_getNow(){return(this.scheduler||jA).now()}_trimBufferThenGetEvents(){const e=this._getNow(),n=this._bufferSize,o=this._windowTime,a=this._events,u=a.length;let h=0;for(;h<u&&!(e-a[h].time<o);)h++;return u>n&&(h=Math.max(h,u-n)),h>0&&a.splice(0,h),a}}class QL{constructor(e,n){this.time=e,this.value=n}}function HA(r,e){return"function"==typeof e?n=>n.pipe(HA((o,a)=>V(r(o,a)).pipe(Us((u,h)=>e(o,u,a,h))))):n=>n.lift(new YL(r))}class YL{constructor(e){this.project=e}call(e,n){return n.subscribe(new $A(e,this.project))}}class $A extends nh{constructor(e,n){super(e),this.project=n,this.index=0}_next(e){let n;const o=this.index++;try{n=this.project(e,o)}catch(a){return void this.destination.error(a)}this._innerSub(n)}_innerSub(e){const n=this.innerSubscription;n&&n.unsubscribe();const o=new Uu(this),a=this.destination;a.add(o),this.innerSubscription=kn(e,o),this.innerSubscription!==o&&a.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;(!e||e.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const Sg={schedule(r,e){const n=setTimeout(r,e);return()=>clearTimeout(n)},scheduleBeforeRender(r){if("undefined"==typeof window)return Sg.schedule(r,0);if(void 0===window.requestAnimationFrame)return Sg.schedule(r,16);const e=window.requestAnimationFrame(r);return()=>window.cancelAnimationFrame(e)}};let Xv;function e5(r,e,n){let o=n;return function ZL(r){return!!r&&r.nodeType===Node.ELEMENT_NODE}(r)&&e.some((a,u)=>!("*"===a||!function ax(r,e){if(!Xv){const n=Element.prototype;Xv=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return r.nodeType===Node.ELEMENT_NODE&&Xv.call(r,e)}(r,a)||(o=u,0))),o}class lx{constructor(e,n){this.componentFactory=n.get(Cu).resolveComponentFactory(e)}create(e){return new n5(this.componentFactory,e)}}class n5{constructor(e,n){this.componentFactory=e,this.injector=n,this.eventEmitters=new VA(1),this.events=this.eventEmitters.pipe(HA(o=>ya(...o))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:o})=>o)),this.ngZone=this.injector.get(Hn),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=Sg.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(e){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,n){this.runInZone(()=>{null!==this.componentRef?function XL(r,e){return r===e||r!=r&&e!=e}(n,this.getInputValue(e))&&(void 0!==n||!this.unchangedInputs.has(e))||(this.recordInputChange(e,n),this.unchangedInputs.delete(e),this.hasInputChanges=!0,this.componentRef.instance[e]=n,this.scheduleDetectChanges()):this.initialInputValues.set(e,n)})}initializeComponent(e){const n=si.create({providers:[],parent:this.injector}),o=function KA(r,e){const n=r.childNodes,o=e.map(()=>[]);let a=-1;e.some((u,h)=>"*"===u&&(a=h,!0));for(let u=0,h=n.length;u<h;++u){const g=n[u],v=e5(g,e,a);-1!==v&&o[v].push(g)}return o}(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(n,o,e),this.viewChangeDetectorRef=this.componentRef.injector.get(WD),this.implementsOnChanges=function sx(r){return"function"==typeof r}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(hv).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:e})=>{this.initialInputValues.has(e)&&this.setInputValue(e,this.initialInputValues.get(e))}),this.initialInputValues.clear()}initializeOutputs(e){const n=this.componentFactory.outputs.map(({propName:o,templateName:a})=>e.instance[o].pipe(Us(h=>({name:a,value:h}))));this.eventEmitters.next(n)}callNgOnChanges(e){if(!this.implementsOnChanges||null===this.inputChanges)return;const n=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(n)}markViewForCheck(e){this.hasInputChanges&&(this.hasInputChanges=!1,e.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Sg.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(e,n){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const o=this.inputChanges[e];if(o)return void(o.currentValue=n);const a=this.unchangedInputs.has(e),u=a?void 0:this.getInputValue(e);this.inputChanges[e]=new ll(u,n,a)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}}class QA extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}class Ht{}const el="*";function sc(r,e=null){return{type:2,steps:r,options:e}}function ha(r){return{type:6,styles:r,offset:null}}function e0(r){Promise.resolve(null).then(r)}class Nu{constructor(e=0,n=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+n}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){e0(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const n="start"==e?this._onStartFns:this._onDoneFns;n.forEach(o=>o()),n.length=0}}class Cg{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let n=0,o=0,a=0;const u=this.players.length;0==u?e0(()=>this._onFinish()):this.players.forEach(h=>{h.onDone(()=>{++n==u&&this._onFinish()}),h.onDestroy(()=>{++o==u&&this._onDestroy()}),h.onStart(()=>{++a==u&&this._onStart()})}),this.totalTime=this.players.reduce((h,g)=>Math.max(h,g.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const n=e*this.totalTime;this.players.forEach(o=>{const a=o.totalTime?Math.min(1,n/o.totalTime):1;o.setPosition(a)})}getPosition(){const e=this.players.reduce((n,o)=>null===n||o.totalTime>n.totalTime?o:n,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const n="start"==e?this._onStartFns:this._onDoneFns;n.forEach(o=>o()),n.length=0}}const _t=!1;function cx(r){return new Me(3e3,_t)}function C5(){return"undefined"!=typeof window&&void 0!==window.document}function gx(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function lc(r){switch(r.length){case 0:return new Nu;case 1:return r[0];default:return new Cg(r)}}function nI(r,e,n,o,a={},u={}){const h=[],g=[];let v=-1,x=null;if(o.forEach(R=>{const L=R.offset,F=L==v,U=F&&x||{};Object.keys(R).forEach(Z=>{let ie=Z,le=R[Z];if("offset"!==Z)switch(ie=e.normalizePropertyName(ie,h),le){case"!":le=a[Z];break;case el:le=u[Z];break;default:le=e.normalizeStyleValue(Z,ie,le,h)}U[ie]=le}),F||g.push(U),x=U,v=L}),h.length)throw function p5(r){return new Me(3502,_t)}();return g}function mx(r,e,n,o){switch(e){case"start":r.onStart(()=>o(n&&Dg(n,"start",r)));break;case"done":r.onDone(()=>o(n&&Dg(n,"done",r)));break;case"destroy":r.onDestroy(()=>o(n&&Dg(n,"destroy",r)))}}function Dg(r,e,n){const o=n.totalTime,u=s0(r.element,r.triggerName,r.fromState,r.toState,e||r.phaseName,null==o?r.totalTime:o,!!n.disabled),h=r._data;return null!=h&&(u._data=h),u}function s0(r,e,n,o,a="",u=0,h){return{element:r,triggerName:e,fromState:n,toState:o,phaseName:a,totalTime:u,disabled:!!h}}function ji(r,e,n){let o;return r instanceof Map?(o=r.get(e),o||r.set(e,o=n)):(o=r[e],o||(o=r[e]=n)),o}function yx(r){const e=r.indexOf(":");return[r.substring(1,e),r.substr(e+1)]}let vx=(r,e)=>!1,bx=(r,e,n)=>[],rI=null;function _x(r){const e=r.parentNode||r.host;return e===rI?null:e}(gx()||"undefined"!=typeof Element)&&(C5()?(rI=(()=>document.documentElement)(),vx=(r,e)=>{for(;e;){if(e===r)return!0;e=_x(e)}return!1}):vx=(r,e)=>r.contains(e),bx=(r,e,n)=>{if(n)return Array.from(r.querySelectorAll(e));const o=r.querySelector(e);return o?[o]:[]});let ju=null,iI=!1;function oI(r){ju||(ju=function D5(){return"undefined"!=typeof document?document.body:null}()||{},iI=!!ju.style&&"WebkitAppearance"in ju.style);let e=!0;return ju.style&&!function kg(r){return"ebkit"==r.substring(1,6)}(r)&&(e=r in ju.style,!e&&iI&&(e="Webkit"+r.charAt(0).toUpperCase()+r.substr(1)in ju.style)),e}const wx=vx,a0=bx;let sI=(()=>{class r{validateStyleProperty(n){return oI(n)}matchesElement(n,o){return!1}containsElement(n,o){return wx(n,o)}getParentElement(n){return _x(n)}query(n,o,a){return a0(n,o,a)}computeStyle(n,o,a){return a||""}animate(n,o,a,u,h,g=[],v){return new Nu(a,u)}}return r.\u0275fac=function(n){return new(n||r)},r.\u0275prov=Ae({token:r,factory:r.\u0275fac}),r})(),xx=(()=>{class r{}return r.NOOP=new sI,r})();const Ex="ng-enter",l0="ng-leave",c0="ng-trigger",u0=".ng-trigger",Cx="ng-animating",Dx=".ng-animating";function Bu(r){if("number"==typeof r)return r;const e=r.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:kx(parseFloat(e[1]),e[2])}function kx(r,e){return"s"===e?1e3*r:r}function d0(r,e,n){return r.hasOwnProperty("duration")?r:function I5(r,e,n){let a,u=0,h="";if("string"==typeof r){const g=r.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===g)return e.push(cx()),{duration:0,delay:0,easing:""};a=kx(parseFloat(g[1]),g[2]);const v=g[3];null!=v&&(u=kx(parseFloat(v),g[4]));const x=g[5];x&&(h=x)}else a=r;if(!n){let g=!1,v=e.length;a<0&&(e.push(function a5(){return new Me(3100,_t)}()),g=!0),u<0&&(e.push(function l5(){return new Me(3101,_t)}()),g=!0),g&&e.splice(v,0,cx())}return{duration:a,delay:u,easing:h}}(r,e,n)}function Wf(r,e={}){return Object.keys(r).forEach(n=>{e[n]=r[n]}),e}function i(r,e,n={}){if(e)for(let o in r)n[o]=r[o];else Wf(r,n);return n}function s(r,e,n){return n?e+":"+n+";":""}function l(r){let e="";for(let n=0;n<r.style.length;n++){const o=r.style.item(n);e+=s(0,o,r.style.getPropertyValue(o))}for(const n in r.style)r.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=s(0,E(n),r.style[n]));r.setAttribute("style",e)}function c(r,e,n){r.style&&(Object.keys(e).forEach(o=>{const a=S(o);n&&!n.hasOwnProperty(o)&&(n[o]=r.style[a]),r.style[a]=e[o]}),gx()&&l(r))}function d(r,e){r.style&&(Object.keys(e).forEach(n=>{const o=S(n);r.style[o]=""}),gx()&&l(r))}function f(r){return Array.isArray(r)?1==r.length?r[0]:sc(r):r}const m=new RegExp("{{\\s*(.+?)\\s*}}","g");function y(r){let e=[];if("string"==typeof r){let n;for(;n=m.exec(r);)e.push(n[1]);m.lastIndex=0}return e}function b(r,e,n){const o=r.toString(),a=o.replace(m,(u,h)=>{let g=e[h];return e.hasOwnProperty(h)||(n.push(function ux(r){return new Me(3003,_t)}()),g=""),g.toString()});return a==o?r:a}function _(r){const e=[];let n=r.next();for(;!n.done;)e.push(n.value),n=r.next();return e}const w=/-+([a-z0-9])/g;function S(r){return r.replace(w,(...e)=>e[1].toUpperCase())}function E(r){return r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function D(r,e,n){switch(e.type){case 7:return r.visitTrigger(e,n);case 0:return r.visitState(e,n);case 1:return r.visitTransition(e,n);case 2:return r.visitSequence(e,n);case 3:return r.visitGroup(e,n);case 4:return r.visitAnimate(e,n);case 5:return r.visitKeyframes(e,n);case 6:return r.visitStyle(e,n);case 8:return r.visitReference(e,n);case 9:return r.visitAnimateChild(e,n);case 10:return r.visitAnimateRef(e,n);case 11:return r.visitQuery(e,n);case 12:return r.visitStagger(e,n);default:throw function dx(r){return new Me(3004,_t)}()}}function k(r,e){return window.getComputedStyle(r)[e]}const G="*";function Q(r,e){const n=[];return"string"==typeof r?r.split(/\s*,\s*/).forEach(o=>function H(r,e,n){if(":"==r[0]){const v=function z(r,e){switch(r){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(n,o)=>parseFloat(o)>parseFloat(n);case":decrement":return(n,o)=>parseFloat(o)<parseFloat(n);default:return e.push(function px(r){return new Me(3016,_t)}()),"* => *"}}(r,n);if("function"==typeof v)return void e.push(v);r=v}const o=r.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==o||o.length<4)return n.push(function Gf(r){return new Me(3015,_t)}()),e;const a=o[1],u=o[2],h=o[3];e.push(X(a,h));"<"==u[0]&&!(a==G&&h==G)&&e.push(X(h,a))}(o,n,e)):n.push(r),n}const K=new Set(["true","1"]),Y=new Set(["false","0"]);function X(r,e){const n=K.has(r)||Y.has(r),o=K.has(e)||Y.has(e);return(a,u)=>{let h=r==G||r==a,g=e==G||e==u;return!h&&n&&"boolean"==typeof a&&(h=a?K.has(r):Y.has(r)),!g&&o&&"boolean"==typeof u&&(g=u?K.has(e):Y.has(e)),h&&g}}const q=new RegExp("s*:selfs*,?","g");function $(r,e,n,o){return new te(r).build(e,n,o)}class te{constructor(e){this._driver=e}build(e,n,o){const a=new ue(n);this._resetContextStyleTimingState(a);const u=D(this,f(e),a);return a.unsupportedCSSPropertiesFound.size&&a.unsupportedCSSPropertiesFound.keys(),u}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,n){let o=n.queryCount=0,a=n.depCount=0;const u=[],h=[];return"@"==e.name.charAt(0)&&n.errors.push(function xF(){return new Me(3006,_t)}()),e.definitions.forEach(g=>{if(this._resetContextStyleTimingState(n),0==g.type){const v=g,x=v.name;x.toString().split(/\s*,\s*/).forEach(R=>{v.name=R,u.push(this.visitState(v,n))}),v.name=x}else if(1==g.type){const v=this.visitTransition(g,n);o+=v.queryCount,a+=v.depCount,h.push(v)}else n.errors.push(function n0(){return new Me(3007,_t)}())}),{type:7,name:e.name,states:u,transitions:h,queryCount:o,depCount:a,options:null}}visitState(e,n){const o=this.visitStyle(e.styles,n),a=e.options&&e.options.params||null;if(o.containsDynamicStyles){const u=new Set,h=a||{};o.styles.forEach(g=>{if(ve(g)){const v=g;Object.keys(v).forEach(x=>{y(v[x]).forEach(R=>{h.hasOwnProperty(R)||u.add(R)})})}}),u.size&&(_(u.values()),n.errors.push(function hx(r,e){return new Me(3008,_t)}()))}return{type:0,name:e.name,style:o,options:a?{params:a}:null}}visitTransition(e,n){n.queryCount=0,n.depCount=0;const o=D(this,f(e.animation),n);return{type:1,matchers:Q(e.expr,n.errors),animation:o,queryCount:n.queryCount,depCount:n.depCount,options:fe(e.options)}}visitSequence(e,n){return{type:2,steps:e.steps.map(o=>D(this,o,n)),options:fe(e.options)}}visitGroup(e,n){const o=n.currentTime;let a=0;const u=e.steps.map(h=>{n.currentTime=o;const g=D(this,h,n);return a=Math.max(a,n.currentTime),g});return n.currentTime=a,{type:3,steps:u,options:fe(e.options)}}visitAnimate(e,n){const o=function Ee(r,e){if(r.hasOwnProperty("duration"))return r;if("number"==typeof r)return we(d0(r,e).duration,0,"");const n=r;if(n.split(/\s+/).some(u=>"{"==u.charAt(0)&&"{"==u.charAt(1))){const u=we(0,0,"");return u.dynamic=!0,u.strValue=n,u}const a=d0(n,e);return we(a.duration,a.delay,a.easing)}(e.timings,n.errors);n.currentAnimateTimings=o;let a,u=e.styles?e.styles:ha({});if(5==u.type)a=this.visitKeyframes(u,n);else{let h=e.styles,g=!1;if(!h){g=!0;const x={};o.easing&&(x.easing=o.easing),h=ha(x)}n.currentTime+=o.duration+o.delay;const v=this.visitStyle(h,n);v.isEmptyStep=g,a=v}return n.currentAnimateTimings=null,{type:4,timings:o,style:a,options:null}}visitStyle(e,n){const o=this._makeStyleAst(e,n);return this._validateStyleAst(o,n),o}_makeStyleAst(e,n){const o=[];Array.isArray(e.styles)?e.styles.forEach(h=>{"string"==typeof h?h==el?o.push(h):n.errors.push(function ZA(r){return new Me(3002,_t)}()):o.push(h)}):o.push(e.styles);let a=!1,u=null;return o.forEach(h=>{if(ve(h)){const g=h,v=g.easing;if(v&&(u=v,delete g.easing),!a)for(let x in g)if(g[x].toString().indexOf("{{")>=0){a=!0;break}}}),{type:6,styles:o,easing:u,offset:e.offset,containsDynamicStyles:a,options:null}}_validateStyleAst(e,n){const o=n.currentAnimateTimings;let a=n.currentTime,u=n.currentTime;o&&u>0&&(u-=o.duration+o.delay),e.styles.forEach(h=>{"string"!=typeof h&&Object.keys(h).forEach(g=>{if(!this._driver.validateStyleProperty(g))return delete h[g],void n.unsupportedCSSPropertiesFound.add(g);const v=n.collectedStyles[n.currentQuerySelector],x=v[g];let R=!0;x&&(u!=a&&u>=x.startTime&&a<=x.endTime&&(n.errors.push(function d5(r,e,n,o,a){return new Me(3010,_t)}()),R=!1),u=x.startTime),R&&(v[g]={startTime:u,endTime:a}),n.options&&function p(r,e,n){const o=e.params||{},a=y(r);a.length&&a.forEach(u=>{o.hasOwnProperty(u)||n.push(function c5(r){return new Me(3001,_t)}())})}(h[g],n.options,n.errors)})})}visitKeyframes(e,n){const o={type:5,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(function r0(){return new Me(3011,_t)}()),o;let u=0;const h=[];let g=!1,v=!1,x=0;const R=e.steps.map(de=>{const se=this._makeStyleAst(de,n);let ke=null!=se.offset?se.offset:function _e(r){if("string"==typeof r)return null;let e=null;if(Array.isArray(r))r.forEach(n=>{if(ve(n)&&n.hasOwnProperty("offset")){const o=n;e=parseFloat(o.offset),delete o.offset}});else if(ve(r)&&r.hasOwnProperty("offset")){const n=r;e=parseFloat(n.offset),delete n.offset}return e}(se.styles),ze=0;return null!=ke&&(u++,ze=se.offset=ke),v=v||ze<0||ze>1,g=g||ze<x,x=ze,h.push(ze),se});v&&n.errors.push(function XA(){return new Me(3012,_t)}()),g&&n.errors.push(function o0(){return new Me(3200,_t)}());const L=e.steps.length;let F=0;u>0&&u<L?n.errors.push(function JA(){return new Me(3202,_t)}()):0==u&&(F=1/(L-1));const U=L-1,Z=n.currentTime,ie=n.currentAnimateTimings,le=ie.duration;return R.forEach((de,se)=>{const ke=F>0?se==U?1:F*se:h[se],ze=ke*le;n.currentTime=Z+ie.delay+ze,ie.duration=ze,this._validateStyleAst(de,n),de.offset=ke,o.styles.push(de)}),o}visitReference(e,n){return{type:8,animation:D(this,f(e.animation),n),options:fe(e.options)}}visitAnimateChild(e,n){return n.depCount++,{type:9,options:fe(e.options)}}visitAnimateRef(e,n){return{type:10,animation:this.visitReference(e.animation,n),options:fe(e.options)}}visitQuery(e,n){const o=n.currentQuerySelector,a=e.options||{};n.queryCount++,n.currentQuery=e;const[u,h]=function J(r){const e=!!r.split(/\s*,\s*/).find(n=>":self"==n);return e&&(r=r.replace(q,"")),r=r.replace(/@\*/g,u0).replace(/@\w+/g,n=>u0+"-"+n.substr(1)).replace(/:animating/g,Dx),[r,e]}(e.selector);n.currentQuerySelector=o.length?o+" "+u:u,ji(n.collectedStyles,n.currentQuerySelector,{});const g=D(this,f(e.animation),n);return n.currentQuery=null,n.currentQuerySelector=o,{type:11,selector:u,limit:a.limit||0,optional:!!a.optional,includeSelf:h,animation:g,originalSelector:e.selector,options:fe(e.options)}}visitStagger(e,n){n.currentQuery||n.errors.push(function eI(){return new Me(3013,_t)}());const o="full"===e.timings?{duration:0,delay:0,easing:"full"}:d0(e.timings,n.errors,!0);return{type:12,animation:D(this,f(e.animation),n),timings:o,options:null}}}class ue{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function ve(r){return!Array.isArray(r)&&"object"==typeof r}function fe(r){return r?(r=Wf(r)).params&&(r.params=function ae(r){return r?Wf(r):null}(r.params)):r={},r}function we(r,e,n){return{duration:r,delay:e,easing:n}}function pe(r,e,n,o,a,u,h=null,g=!1){return{type:1,element:r,keyframes:e,preStyleProps:n,postStyleProps:o,duration:a,delay:u,totalTime:a+u,easing:h,subTimeline:g}}class ye{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,n){let o=this._map.get(e);o||this._map.set(e,o=[]),o.push(...n)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const qe=new RegExp(":enter","g"),lt=new RegExp(":leave","g");function xe(r,e,n,o,a,u={},h={},g,v,x=[]){return(new Ke).buildKeyframes(r,e,n,o,a,u,h,g,v,x)}class Ke{buildKeyframes(e,n,o,a,u,h,g,v,x,R=[]){x=x||new ye;const L=new Tt(e,n,x,a,u,R,[]);L.options=v,L.currentTimeline.setStyles([h],null,L.errors,v),D(this,o,L);const F=L.timelines.filter(U=>U.containsAnimation());if(Object.keys(g).length){let U;for(let Z=F.length-1;Z>=0;Z--){const ie=F[Z];if(ie.element===n){U=ie;break}}U&&!U.allowOnlyTimelineStyles()&&U.setStyles([g],null,L.errors,v)}return F.length?F.map(U=>U.buildKeyframes()):[pe(n,[],[],[],0,0,"",!1)]}visitTrigger(e,n){}visitState(e,n){}visitTransition(e,n){}visitAnimateChild(e,n){const o=n.subInstructions.get(n.element);if(o){const a=n.createSubContext(e.options),u=n.currentTimeline.currentTime,h=this._visitSubInstructions(o,a,a.options);u!=h&&n.transformIntoNewTimeline(h)}n.previousNode=e}visitAnimateRef(e,n){const o=n.createSubContext(e.options);o.transformIntoNewTimeline(),this.visitReference(e.animation,o),n.transformIntoNewTimeline(o.currentTimeline.currentTime),n.previousNode=e}_visitSubInstructions(e,n,o){let u=n.currentTimeline.currentTime;const h=null!=o.duration?Bu(o.duration):null,g=null!=o.delay?Bu(o.delay):null;return 0!==h&&e.forEach(v=>{const x=n.appendInstructionToTimeline(v,h,g);u=Math.max(u,x.duration+x.delay)}),u}visitReference(e,n){n.updateOptions(e.options,!0),D(this,e.animation,n),n.previousNode=e}visitSequence(e,n){const o=n.subContextCount;let a=n;const u=e.options;if(u&&(u.params||u.delay)&&(a=n.createSubContext(u),a.transformIntoNewTimeline(),null!=u.delay)){6==a.previousNode.type&&(a.currentTimeline.snapshotCurrentStyles(),a.previousNode=Xe);const h=Bu(u.delay);a.delayNextStep(h)}e.steps.length&&(e.steps.forEach(h=>D(this,h,a)),a.currentTimeline.applyStylesToKeyframe(),a.subContextCount>o&&a.transformIntoNewTimeline()),n.previousNode=e}visitGroup(e,n){const o=[];let a=n.currentTimeline.currentTime;const u=e.options&&e.options.delay?Bu(e.options.delay):0;e.steps.forEach(h=>{const g=n.createSubContext(e.options);u&&g.delayNextStep(u),D(this,h,g),a=Math.max(a,g.currentTimeline.currentTime),o.push(g.currentTimeline)}),o.forEach(h=>n.currentTimeline.mergeTimelineCollectedStyles(h)),n.transformIntoNewTimeline(a),n.previousNode=e}_visitTiming(e,n){if(e.dynamic){const o=e.strValue;return d0(n.params?b(o,n.params,n.errors):o,n.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,n){const o=n.currentAnimateTimings=this._visitTiming(e.timings,n),a=n.currentTimeline;o.delay&&(n.incrementTime(o.delay),a.snapshotCurrentStyles());const u=e.style;5==u.type?this.visitKeyframes(u,n):(n.incrementTime(o.duration),this.visitStyle(u,n),a.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=e}visitStyle(e,n){const o=n.currentTimeline,a=n.currentAnimateTimings;!a&&o.getCurrentStyleProperties().length&&o.forwardFrame();const u=a&&a.easing||e.easing;e.isEmptyStep?o.applyEmptyStep(u):o.setStyles(e.styles,u,n.errors,n.options),n.previousNode=e}visitKeyframes(e,n){const o=n.currentAnimateTimings,a=n.currentTimeline.duration,u=o.duration,g=n.createSubContext().currentTimeline;g.easing=o.easing,e.styles.forEach(v=>{g.forwardTime((v.offset||0)*u),g.setStyles(v.styles,v.easing,n.errors,n.options),g.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(g),n.transformIntoNewTimeline(a+u),n.previousNode=e}visitQuery(e,n){const o=n.currentTimeline.currentTime,a=e.options||{},u=a.delay?Bu(a.delay):0;u&&(6===n.previousNode.type||0==o&&n.currentTimeline.getCurrentStyleProperties().length)&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Xe);let h=o;const g=n.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!a.optional,n.errors);n.currentQueryTotal=g.length;let v=null;g.forEach((x,R)=>{n.currentQueryIndex=R;const L=n.createSubContext(e.options,x);u&&L.delayNextStep(u),x===n.element&&(v=L.currentTimeline),D(this,e.animation,L),L.currentTimeline.applyStylesToKeyframe(),h=Math.max(h,L.currentTimeline.currentTime)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(h),v&&(n.currentTimeline.mergeTimelineCollectedStyles(v),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=e}visitStagger(e,n){const o=n.parentContext,a=n.currentTimeline,u=e.timings,h=Math.abs(u.duration),g=h*(n.currentQueryTotal-1);let v=h*n.currentQueryIndex;switch(u.duration<0?"reverse":u.easing){case"reverse":v=g-v;break;case"full":v=o.currentStaggerTime}const R=n.currentTimeline;v&&R.delayNextStep(v);const L=R.currentTime;D(this,e.animation,n),n.previousNode=e,o.currentStaggerTime=a.currentTime-L+(a.startTime-o.currentTimeline.startTime)}}const Xe={};class Tt{constructor(e,n,o,a,u,h,g,v){this._driver=e,this.element=n,this.subInstructions=o,this._enterClassName=a,this._leaveClassName=u,this.errors=h,this.timelines=g,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Xe,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=v||new Je(this._driver,n,0),g.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,n){if(!e)return;const o=e;let a=this.options;null!=o.duration&&(a.duration=Bu(o.duration)),null!=o.delay&&(a.delay=Bu(o.delay));const u=o.params;if(u){let h=a.params;h||(h=this.options.params={}),Object.keys(u).forEach(g=>{(!n||!h.hasOwnProperty(g))&&(h[g]=b(u[g],h,this.errors))})}}_copyOptions(){const e={};if(this.options){const n=this.options.params;if(n){const o=e.params={};Object.keys(n).forEach(a=>{o[a]=n[a]})}}return e}createSubContext(e=null,n,o){const a=n||this.element,u=new Tt(this._driver,a,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(a,o||0));return u.previousNode=this.previousNode,u.currentAnimateTimings=this.currentAnimateTimings,u.options=this._copyOptions(),u.updateOptions(e),u.currentQueryIndex=this.currentQueryIndex,u.currentQueryTotal=this.currentQueryTotal,u.parentContext=this,this.subContextCount++,u}transformIntoNewTimeline(e){return this.previousNode=Xe,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,n,o){const a={duration:null!=n?n:e.duration,delay:this.currentTimeline.currentTime+(null!=o?o:0)+e.delay,easing:""},u=new nt(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,a,e.stretchStartingKeyframe);return this.timelines.push(u),a}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,n,o,a,u,h){let g=[];if(a&&g.push(this.element),e.length>0){e=(e=e.replace(qe,"."+this._enterClassName)).replace(lt,"."+this._leaveClassName);let x=this._driver.query(this.element,e,1!=o);0!==o&&(x=o<0?x.slice(x.length+o,x.length):x.slice(0,o)),g.push(...x)}return!u&&0==g.length&&h.push(function f5(r){return new Me(3014,_t)}()),g}}class Je{constructor(e,n,o,a){this._driver=e,this.element=n,this.startTime=o,this._elementTimelineStylesLookup=a,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const n=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||n?(this.forwardTime(this.currentTime+e),n&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,n){return this.applyStylesToKeyframe(),new Je(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,n){this._localTimelineStyles[e]=n,this._globalTimelineStyles[e]=n,this._styleSummary[e]={time:this.currentTime,value:n}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(n=>{this._backFill[n]=this._globalTimelineStyles[n]||el,this._currentKeyframe[n]=el}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,n,o,a){n&&(this._previousKeyframe.easing=n);const u=a&&a.params||{},h=function xt(r,e){const n={};let o;return r.forEach(a=>{"*"===a?(o=o||Object.keys(e),o.forEach(u=>{n[u]=el})):i(a,!1,n)}),n}(e,this._globalTimelineStyles);Object.keys(h).forEach(g=>{const v=b(h[g],u,o);this._pendingStyles[g]=v,this._localTimelineStyles.hasOwnProperty(g)||(this._backFill[g]=this._globalTimelineStyles.hasOwnProperty(g)?this._globalTimelineStyles[g]:el),this._updateStyle(g,v)})}applyStylesToKeyframe(){const e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach(o=>{this._currentKeyframe[o]=e[o]}),Object.keys(this._localTimelineStyles).forEach(o=>{this._currentKeyframe.hasOwnProperty(o)||(this._currentKeyframe[o]=this._localTimelineStyles[o])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const n=this._localTimelineStyles[e];this._pendingStyles[e]=n,this._updateStyle(e,n)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let n in this._currentKeyframe)e.push(n);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(n=>{const o=this._styleSummary[n],a=e._styleSummary[n];(!o||a.time>o.time)&&this._updateStyle(n,a.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,n=new Set,o=1===this._keyframes.size&&0===this.duration;let a=[];this._keyframes.forEach((g,v)=>{const x=i(g,!0);Object.keys(x).forEach(R=>{const L=x[R];"!"==L?e.add(R):L==el&&n.add(R)}),o||(x.offset=v/this.duration),a.push(x)});const u=e.size?_(e.values()):[],h=n.size?_(n.values()):[];if(o){const g=a[0],v=Wf(g);g.offset=0,v.offset=1,a=[g,v]}return pe(this.element,a,u,h,this.duration,this.startTime,this.easing,!1)}}class nt extends Je{constructor(e,n,o,a,u,h,g=!1){super(e,n,h.delay),this.keyframes=o,this.preStyleProps=a,this.postStyleProps=u,this._stretchStartingKeyframe=g,this.timings={duration:h.duration,delay:h.delay,easing:h.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:n,duration:o,easing:a}=this.timings;if(this._stretchStartingKeyframe&&n){const u=[],h=o+n,g=n/h,v=i(e[0],!1);v.offset=0,u.push(v);const x=i(e[0],!1);x.offset=ot(g),u.push(x);const R=e.length-1;for(let L=1;L<=R;L++){let F=i(e[L],!1);F.offset=ot((n+F.offset*o)/h),u.push(F)}o=h,n=0,a="",e=u}return pe(this.element,e,this.preStyleProps,this.postStyleProps,o,n,a,!0)}}function ot(r,e=3){const n=Math.pow(10,e-1);return Math.round(r*n)/n}class Kt{}class Be extends Kt{normalizePropertyName(e,n){return S(e)}normalizeStyleValue(e,n,o,a){let u="";const h=o.toString().trim();if(qt[n]&&0!==o&&"0"!==o)if("number"==typeof o)u="px";else{const g=o.match(/^[+-]?[\d\.]+([a-z]*)$/);g&&0==g[1].length&&a.push(function fx(r,e){return new Me(3005,_t)}())}return h+u}}const qt=(()=>function gn(r){const e={};return r.forEach(n=>e[n]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function mn(r,e,n,o,a,u,h,g,v,x,R,L,F){return{type:0,element:r,triggerName:e,isRemovalTransition:a,fromState:n,fromStyles:u,toState:o,toStyles:h,timelines:g,queriedElements:v,preStyleProps:x,postStyleProps:R,totalTime:L,errors:F}}const Nr={};class Kr{constructor(e,n,o){this._triggerName=e,this.ast=n,this._stateStyles=o}match(e,n,o,a){return function _r(r,e,n,o,a){return r.some(u=>u(e,n,o,a))}(this.ast.matchers,e,n,o,a)}buildStyles(e,n,o){const a=this._stateStyles["*"],u=this._stateStyles[e],h=a?a.buildStyles(n,o):{};return u?u.buildStyles(n,o):h}build(e,n,o,a,u,h,g,v,x,R){const L=[],F=this.ast.options&&this.ast.options.params||Nr,Z=this.buildStyles(o,g&&g.params||Nr,L),ie=v&&v.params||Nr,le=this.buildStyles(a,ie,L),de=new Set,se=new Map,ke=new Map,ze="void"===a,Rt={params:Object.assign(Object.assign({},F),ie)},ur=R?[]:xe(e,n,this.ast.animation,u,h,Z,le,Rt,x,L);let xr=0;if(ur.forEach(Vs=>{xr=Math.max(Vs.duration+Vs.delay,xr)}),L.length)return mn(n,this._triggerName,o,a,ze,Z,le,[],[],se,ke,xr,L);ur.forEach(Vs=>{const Hs=Vs.element,w0=ji(se,Hs,{});Vs.preStyleProps.forEach(nl=>w0[nl]=!0);const Gu=ji(ke,Hs,{});Vs.postStyleProps.forEach(nl=>Gu[nl]=!0),Hs!==n&&de.add(Hs)});const qs=_(de.values());return mn(n,this._triggerName,o,a,ze,Z,le,ur,qs,se,ke,xr)}}class Qt{constructor(e,n,o){this.styles=e,this.defaultParams=n,this.normalizer=o}buildStyles(e,n){const o={},a=Wf(this.defaultParams);return Object.keys(e).forEach(u=>{const h=e[u];null!=h&&(a[u]=h)}),this.styles.styles.forEach(u=>{if("string"!=typeof u){const h=u;Object.keys(h).forEach(g=>{let v=h[g];v.length>1&&(v=b(v,a,n));const x=this.normalizer.normalizePropertyName(g,n);v=this.normalizer.normalizeStyleValue(g,x,v,n),o[x]=v})}}),o}}class un{constructor(e,n,o){this.name=e,this.ast=n,this._normalizer=o,this.transitionFactories=[],this.states={},n.states.forEach(a=>{this.states[a.name]=new Qt(a.style,a.options&&a.options.params||{},o)}),Gn(this.states,"true","1"),Gn(this.states,"false","0"),n.transitions.forEach(a=>{this.transitionFactories.push(new Kr(e,a,this.states))}),this.fallbackTransition=function $n(r,e,n){return new Kr(r,{type:1,animation:{type:2,steps:[],options:null},matchers:[(h,g)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,n,o,a){return this.transitionFactories.find(h=>h.match(e,n,o,a))||null}matchStyles(e,n,o){return this.fallbackTransition.buildStyles(e,n,o)}}function Gn(r,e,n){r.hasOwnProperty(e)?r.hasOwnProperty(n)||(r[n]=r[e]):r.hasOwnProperty(n)&&(r[e]=r[n])}const Dn=new ye;class Fe{constructor(e,n,o){this.bodyNode=e,this._driver=n,this._normalizer=o,this._animations={},this._playersById={},this.players=[]}register(e,n){const o=[],u=$(this._driver,n,o,[]);if(o.length)throw function g5(r){return new Me(3503,_t)}();this._animations[e]=u}_buildPlayer(e,n,o){const a=e.element,u=nI(0,this._normalizer,0,e.keyframes,n,o);return this._driver.animate(a,u,e.duration,e.delay,e.easing,[],!0)}create(e,n,o={}){const a=[],u=this._animations[e];let h;const g=new Map;if(u?(h=xe(this._driver,n,u,Ex,l0,{},{},o,Dn,a),h.forEach(R=>{const L=ji(g,R.element,{});R.postStyleProps.forEach(F=>L[F]=null)})):(a.push(function m5(){return new Me(3300,_t)}()),h=[]),a.length)throw function y5(r){return new Me(3504,_t)}();g.forEach((R,L)=>{Object.keys(R).forEach(F=>{R[F]=this._driver.computeStyle(L,F,el)})});const x=lc(h.map(R=>{const L=g.get(R.element);return this._buildPlayer(R,{},L)}));return this._playersById[e]=x,x.onDestroy(()=>this.destroy(e)),this.players.push(x),x}destroy(e){const n=this._getPlayer(e);n.destroy(),delete this._playersById[e];const o=this.players.indexOf(n);o>=0&&this.players.splice(o,1)}_getPlayer(e){const n=this._playersById[e];if(!n)throw function v5(r){return new Me(3301,_t)}();return n}listen(e,n,o,a){const u=s0(n,"","","");return mx(this._getPlayer(e),o,u,a),()=>{}}command(e,n,o,a){if("register"==o)return void this.register(e,a[0]);if("create"==o)return void this.create(e,n,a[0]||{});const u=this._getPlayer(e);switch(o){case"play":u.play();break;case"pause":u.pause();break;case"reset":u.reset();break;case"restart":u.restart();break;case"finish":u.finish();break;case"init":u.init();break;case"setPosition":u.setPosition(parseFloat(a[0]));break;case"destroy":this.destroy(e)}}}const Ge="ng-animate-queued",At="ng-animate-disabled",Bt=[],sn={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Tn={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Nt="__ng_removed";class Ct{constructor(e,n=""){this.namespaceId=n;const o=e&&e.hasOwnProperty("value");if(this.value=function no(r){return null!=r?r:null}(o?e.value:e),o){const u=Wf(e);delete u.value,this.options=u}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const n=e.params;if(n){const o=this.options.params;Object.keys(n).forEach(a=>{null==o[a]&&(o[a]=n[a])})}}}const Ft="void",It=new Ct(Ft);class On{constructor(e,n,o){this.id=e,this.hostElement=n,this._engine=o,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,yn(n,this._hostClassName)}listen(e,n,o,a){if(!this._triggers.hasOwnProperty(n))throw function b5(r,e){return new Me(3302,_t)}();if(null==o||0==o.length)throw function _5(r){return new Me(3303,_t)}();if(!function cc(r){return"start"==r||"done"==r}(o))throw function w5(r,e){return new Me(3400,_t)}();const u=ji(this._elementListeners,e,[]),h={name:n,phase:o,callback:a};u.push(h);const g=ji(this._engine.statesByElement,e,{});return g.hasOwnProperty(n)||(yn(e,c0),yn(e,c0+"-"+n),g[n]=It),()=>{this._engine.afterFlush(()=>{const v=u.indexOf(h);v>=0&&u.splice(v,1),this._triggers[n]||delete g[n]})}}register(e,n){return!this._triggers[e]&&(this._triggers[e]=n,!0)}_getTrigger(e){const n=this._triggers[e];if(!n)throw function x5(r){return new Me(3401,_t)}();return n}trigger(e,n,o,a=!0){const u=this._getTrigger(n),h=new Yn(this.id,n,e);let g=this._engine.statesByElement.get(e);g||(yn(e,c0),yn(e,c0+"-"+n),this._engine.statesByElement.set(e,g={}));let v=g[n];const x=new Ct(o,this.id);if(!(o&&o.hasOwnProperty("value"))&&v&&x.absorbOptions(v.options),g[n]=x,v||(v=It),x.value!==Ft&&v.value===x.value){if(!function R5(r,e){const n=Object.keys(r),o=Object.keys(e);if(n.length!=o.length)return!1;for(let a=0;a<n.length;a++){const u=n[a];if(!e.hasOwnProperty(u)||r[u]!==e[u])return!1}return!0}(v.params,x.params)){const ie=[],le=u.matchStyles(v.value,v.params,ie),de=u.matchStyles(x.value,x.params,ie);ie.length?this._engine.reportError(ie):this._engine.afterFlush(()=>{d(e,le),c(e,de)})}return}const F=ji(this._engine.playersByElement,e,[]);F.forEach(ie=>{ie.namespaceId==this.id&&ie.triggerName==n&&ie.queued&&ie.destroy()});let U=u.matchTransition(v.value,x.value,e,x.params),Z=!1;if(!U){if(!a)return;U=u.fallbackTransition,Z=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:n,transition:U,fromState:v,toState:x,player:h,isFallbackTransition:Z}),Z||(yn(e,Ge),h.onStart(()=>{dc(e,Ge)})),h.onDone(()=>{let ie=this.players.indexOf(h);ie>=0&&this.players.splice(ie,1);const le=this._engine.playersByElement.get(e);if(le){let de=le.indexOf(h);de>=0&&le.splice(de,1)}}),this.players.push(h),F.push(h),h}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((n,o)=>{delete n[e]}),this._elementListeners.forEach((n,o)=>{this._elementListeners.set(o,n.filter(a=>a.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const n=this._engine.playersByElement.get(e);n&&(n.forEach(o=>o.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,n){const o=this._engine.driver.query(e,u0,!0);o.forEach(a=>{if(a[Nt])return;const u=this._engine.fetchNamespacesByElement(a);u.size?u.forEach(h=>h.triggerLeaveAnimation(a,n,!1,!0)):this.clearElementCache(a)}),this._engine.afterFlushAnimationsDone(()=>o.forEach(a=>this.clearElementCache(a)))}triggerLeaveAnimation(e,n,o,a){const u=this._engine.statesByElement.get(e),h=new Map;if(u){const g=[];if(Object.keys(u).forEach(v=>{if(h.set(v,u[v].value),this._triggers[v]){const x=this.trigger(e,v,Ft,a);x&&g.push(x)}}),g.length)return this._engine.markElementAsRemoved(this.id,e,!0,n,h),o&&lc(g).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const n=this._elementListeners.get(e),o=this._engine.statesByElement.get(e);if(n&&o){const a=new Set;n.forEach(u=>{const h=u.name;if(a.has(h))return;a.add(h);const v=this._triggers[h].fallbackTransition,x=o[h]||It,R=new Ct(Ft),L=new Yn(this.id,h,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:h,transition:v,fromState:x,toState:R,player:L,isFallbackTransition:!0})})}}removeNode(e,n){const o=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,n),this.triggerLeaveAnimation(e,n,!0))return;let a=!1;if(o.totalAnimations){const u=o.players.length?o.playersByQueriedElement.get(e):[];if(u&&u.length)a=!0;else{let h=e;for(;h=h.parentNode;)if(o.statesByElement.get(h)){a=!0;break}}}if(this.prepareLeaveAnimationListeners(e),a)o.markElementAsRemoved(this.id,e,!1,n);else{const u=e[Nt];(!u||u===sn)&&(o.afterFlush(()=>this.clearElementCache(e)),o.destroyInnerAnimations(e),o._onRemovalComplete(e,n))}}insertNode(e,n){yn(e,this._hostClassName)}drainQueuedTransitions(e){const n=[];return this._queue.forEach(o=>{const a=o.player;if(a.destroyed)return;const u=o.element,h=this._elementListeners.get(u);h&&h.forEach(g=>{if(g.name==o.triggerName){const v=s0(u,o.triggerName,o.fromState.value,o.toState.value);v._data=e,mx(o.player,g.phase,v,g.callback)}}),a.markedForDestroy?this._engine.afterFlush(()=>{a.destroy()}):n.push(o)}),this._queue=[],n.sort((o,a)=>{const u=o.transition.ast.depCount,h=a.transition.ast.depCount;return 0==u||0==h?u-h:this._engine.driver.containsElement(o.element,a.element)?1:-1})}destroy(e){this.players.forEach(n=>n.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let n=!1;return this._elementListeners.has(e)&&(n=!0),n=!!this._queue.find(o=>o.element===e)||n,n}}class ti{constructor(e,n,o){this.bodyNode=e,this.driver=n,this._normalizer=o,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(a,u)=>{}}_onRemovalComplete(e,n){this.onRemovalComplete(e,n)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(n=>{n.players.forEach(o=>{o.queued&&e.push(o)})}),e}createNamespace(e,n){const o=new On(e,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(o,n):(this.newHostElements.set(n,o),this.collectEnterElement(n)),this._namespaceLookup[e]=o}_balanceNamespaceList(e,n){const o=this._namespaceList,a=this.namespacesByHostElement,u=o.length-1;if(u>=0){let h=!1;if(void 0!==this.driver.getParentElement){let g=this.driver.getParentElement(n);for(;g;){const v=a.get(g);if(v){const x=o.indexOf(v);o.splice(x+1,0,e),h=!0;break}g=this.driver.getParentElement(g)}}else for(let g=u;g>=0;g--)if(this.driver.containsElement(o[g].hostElement,n)){o.splice(g+1,0,e),h=!0;break}h||o.unshift(e)}else o.push(e);return a.set(n,e),e}register(e,n){let o=this._namespaceLookup[e];return o||(o=this.createNamespace(e,n)),o}registerTrigger(e,n,o){let a=this._namespaceLookup[e];a&&a.register(n,o)&&this.totalAnimations++}destroy(e,n){if(!e)return;const o=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(o.hostElement),delete this._namespaceLookup[e];const a=this._namespaceList.indexOf(o);a>=0&&this._namespaceList.splice(a,1)}),this.afterFlushAnimationsDone(()=>o.destroy(n))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const n=new Set,o=this.statesByElement.get(e);if(o){const a=Object.keys(o);for(let u=0;u<a.length;u++){const h=o[a[u]].namespaceId;if(h){const g=this._fetchNamespace(h);g&&n.add(g)}}}return n}trigger(e,n,o,a){if(Bi(n)){const u=this._fetchNamespace(e);if(u)return u.trigger(n,o,a),!0}return!1}insertNode(e,n,o,a){if(!Bi(n))return;const u=n[Nt];if(u&&u.setForRemoval){u.setForRemoval=!1,u.setForMove=!0;const h=this.collectedLeaveElements.indexOf(n);h>=0&&this.collectedLeaveElements.splice(h,1)}if(e){const h=this._fetchNamespace(e);h&&h.insertNode(n,o)}a&&this.collectEnterElement(n)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,n){n?this.disabledNodes.has(e)||(this.disabledNodes.add(e),yn(e,At)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),dc(e,At))}removeNode(e,n,o,a){if(Bi(n)){const u=e?this._fetchNamespace(e):null;if(u?u.removeNode(n,a):this.markElementAsRemoved(e,n,!1,a),o){const h=this.namespacesByHostElement.get(n);h&&h.id!==e&&h.removeNode(n,a)}}else this._onRemovalComplete(n,a)}markElementAsRemoved(e,n,o,a,u){this.collectedLeaveElements.push(n),n[Nt]={namespaceId:e,setForRemoval:a,hasAnimation:o,removedBeforeQueried:!1,previousTriggersValues:u}}listen(e,n,o,a,u){return Bi(n)?this._fetchNamespace(e).listen(n,o,a,u):()=>{}}_buildInstruction(e,n,o,a,u){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,o,a,e.fromState.options,e.toState.options,n,u)}destroyInnerAnimations(e){let n=this.driver.query(e,u0,!0);n.forEach(o=>this.destroyActiveAnimationsForElement(o)),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,Dx,!0),n.forEach(o=>this.finishActiveQueriedAnimationOnElement(o)))}destroyActiveAnimationsForElement(e){const n=this.playersByElement.get(e);n&&n.forEach(o=>{o.queued?o.markedForDestroy=!0:o.destroy()})}finishActiveQueriedAnimationOnElement(e){const n=this.playersByQueriedElement.get(e);n&&n.forEach(o=>o.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return lc(this.players).onDone(()=>e());e()})}processLeaveNode(e){var n;const o=e[Nt];if(o&&o.setForRemoval){if(e[Nt]=sn,o.namespaceId){this.destroyInnerAnimations(e);const a=this._fetchNamespace(o.namespaceId);a&&a.clearElementCache(e)}this._onRemovalComplete(e,o.setForRemoval)}(null===(n=e.classList)||void 0===n?void 0:n.contains(At))&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(a=>{this.markElementAsDisabled(a,!1)})}flush(e=-1){let n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((o,a)=>this._balanceNamespaceList(o,a)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let o=0;o<this.collectedEnterElements.length;o++)yn(this.collectedEnterElements[o],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const o=[];try{n=this._flushAnimations(o,e)}finally{for(let a=0;a<o.length;a++)o[a]()}}else for(let o=0;o<this.collectedLeaveElements.length;o++)this.processLeaveNode(this.collectedLeaveElements[o]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(o=>o()),this._flushFns=[],this._whenQuietFns.length){const o=this._whenQuietFns;this._whenQuietFns=[],n.length?lc(n).onDone(()=>{o.forEach(a=>a())}):o.forEach(a=>a())}}reportError(e){throw function S5(r){return new Me(3402,_t)}()}_flushAnimations(e,n){const o=new ye,a=[],u=new Map,h=[],g=new Map,v=new Map,x=new Map,R=new Set;this.disabledNodes.forEach(Le=>{R.add(Le);const Qe=this.driver.query(Le,".ng-animate-queued",!0);for(let at=0;at<Qe.length;at++)R.add(Qe[at])});const L=this.bodyNode,F=Array.from(this.statesByElement.keys()),U=mt(F,this.collectedEnterElements),Z=new Map;let ie=0;U.forEach((Le,Qe)=>{const at=Ex+ie++;Z.set(Qe,at),Le.forEach(tn=>yn(tn,at))});const le=[],de=new Set,se=new Set;for(let Le=0;Le<this.collectedLeaveElements.length;Le++){const Qe=this.collectedLeaveElements[Le],at=Qe[Nt];at&&at.setForRemoval&&(le.push(Qe),de.add(Qe),at.hasAnimation?this.driver.query(Qe,".ng-star-inserted",!0).forEach(tn=>de.add(tn)):se.add(Qe))}const ke=new Map,ze=mt(F,Array.from(de));ze.forEach((Le,Qe)=>{const at=l0+ie++;ke.set(Qe,at),Le.forEach(tn=>yn(tn,at))}),e.push(()=>{U.forEach((Le,Qe)=>{const at=Z.get(Qe);Le.forEach(tn=>dc(tn,at))}),ze.forEach((Le,Qe)=>{const at=ke.get(Qe);Le.forEach(tn=>dc(tn,at))}),le.forEach(Le=>{this.processLeaveNode(Le)})});const Rt=[],ur=[];for(let Le=this._namespaceList.length-1;Le>=0;Le--)this._namespaceList[Le].drainQueuedTransitions(n).forEach(at=>{const tn=at.player,Ei=at.element;if(Rt.push(tn),this.collectedEnterElements.length){const Mo=Ei[Nt];if(Mo&&Mo.setForMove){if(Mo.previousTriggersValues&&Mo.previousTriggersValues.has(at.triggerName)){const Pg=Mo.previousTriggersValues.get(at.triggerName),Xf=this.statesByElement.get(at.element);Xf&&Xf[at.triggerName]&&(Xf[at.triggerName].value=Pg)}return void tn.destroy()}}const hc=!L||!this.driver.containsElement(L,Ei),$s=ke.get(Ei),Zf=Z.get(Ei),Sr=this._buildInstruction(at,o,Zf,$s,hc);if(Sr.errors&&Sr.errors.length)return void ur.push(Sr);if(hc)return tn.onStart(()=>d(Ei,Sr.fromStyles)),tn.onDestroy(()=>c(Ei,Sr.toStyles)),void a.push(tn);if(at.isFallbackTransition)return tn.onStart(()=>d(Ei,Sr.fromStyles)),tn.onDestroy(()=>c(Ei,Sr.toStyles)),void a.push(tn);const d3=[];Sr.timelines.forEach(Mo=>{Mo.stretchStartingKeyframe=!0,this.disabledNodes.has(Mo.element)||d3.push(Mo)}),Sr.timelines=d3,o.append(Ei,Sr.timelines),h.push({instruction:Sr,player:tn,element:Ei}),Sr.queriedElements.forEach(Mo=>ji(g,Mo,[]).push(tn)),Sr.preStyleProps.forEach((Mo,Pg)=>{const Xf=Object.keys(Mo);if(Xf.length){let Ng=v.get(Pg);Ng||v.set(Pg,Ng=new Set),Xf.forEach(Q5=>Ng.add(Q5))}}),Sr.postStyleProps.forEach((Mo,Pg)=>{const Xf=Object.keys(Mo);let Ng=x.get(Pg);Ng||x.set(Pg,Ng=new Set),Xf.forEach(Q5=>Ng.add(Q5))})});if(ur.length){const Le=[];ur.forEach(Qe=>{Le.push(function E5(r,e){return new Me(3505,_t)}())}),Rt.forEach(Qe=>Qe.destroy()),this.reportError(Le)}const xr=new Map,qs=new Map;h.forEach(Le=>{const Qe=Le.element;o.has(Qe)&&(qs.set(Qe,Qe),this._beforeAnimationBuild(Le.player.namespaceId,Le.instruction,xr))}),a.forEach(Le=>{const Qe=Le.element;this._getPreviousPlayers(Qe,!1,Le.namespaceId,Le.triggerName,null).forEach(tn=>{ji(xr,Qe,[]).push(tn),tn.destroy()})});const Vs=le.filter(Le=>lI(Le,v,x)),Hs=new Map;uc(Hs,this.driver,se,x,el).forEach(Le=>{lI(Le,v,x)&&Vs.push(Le)});const Gu=new Map;U.forEach((Le,Qe)=>{uc(Gu,this.driver,new Set(Le),v,"!")}),Vs.forEach(Le=>{const Qe=Hs.get(Le),at=Gu.get(Le);Hs.set(Le,Object.assign(Object.assign({},Qe),at))});const nl=[],x0=[],S0={};h.forEach(Le=>{const{element:Qe,player:at,instruction:tn}=Le;if(o.has(Qe)){if(R.has(Qe))return at.onDestroy(()=>c(Qe,tn.toStyles)),at.disabled=!0,at.overrideTotalTime(tn.totalTime),void a.push(at);let Ei=S0;if(qs.size>1){let $s=Qe;const Zf=[];for(;$s=$s.parentNode;){const Sr=qs.get($s);if(Sr){Ei=Sr;break}Zf.push($s)}Zf.forEach(Sr=>qs.set(Sr,Ei))}const hc=this._buildAnimation(at.namespaceId,tn,xr,u,Gu,Hs);if(at.setRealPlayer(hc),Ei===S0)nl.push(at);else{const $s=this.playersByElement.get(Ei);$s&&$s.length&&(at.parentPlayer=lc($s)),a.push(at)}}else d(Qe,tn.fromStyles),at.onDestroy(()=>c(Qe,tn.toStyles)),x0.push(at),R.has(Qe)&&a.push(at)}),x0.forEach(Le=>{const Qe=u.get(Le.element);if(Qe&&Qe.length){const at=lc(Qe);Le.setRealPlayer(at)}}),a.forEach(Le=>{Le.parentPlayer?Le.syncPlayerEvents(Le.parentPlayer):Le.destroy()});for(let Le=0;Le<le.length;Le++){const Qe=le[Le],at=Qe[Nt];if(dc(Qe,l0),at&&at.hasAnimation)continue;let tn=[];if(g.size){let hc=g.get(Qe);hc&&hc.length&&tn.push(...hc);let $s=this.driver.query(Qe,Dx,!0);for(let Zf=0;Zf<$s.length;Zf++){let Sr=g.get($s[Zf]);Sr&&Sr.length&&tn.push(...Sr)}}const Ei=tn.filter(hc=>!hc.destroyed);Ei.length?Ag(this,Qe,Ei):this.processLeaveNode(Qe)}return le.length=0,nl.forEach(Le=>{this.players.push(Le),Le.onDone(()=>{Le.destroy();const Qe=this.players.indexOf(Le);this.players.splice(Qe,1)}),Le.play()}),nl}elementContainsData(e,n){let o=!1;const a=n[Nt];return a&&a.setForRemoval&&(o=!0),this.playersByElement.has(n)&&(o=!0),this.playersByQueriedElement.has(n)&&(o=!0),this.statesByElement.has(n)&&(o=!0),this._fetchNamespace(e).elementContainsData(n)||o}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,n,o,a,u){let h=[];if(n){const g=this.playersByQueriedElement.get(e);g&&(h=g)}else{const g=this.playersByElement.get(e);if(g){const v=!u||u==Ft;g.forEach(x=>{x.queued||!v&&x.triggerName!=a||h.push(x)})}}return(o||a)&&(h=h.filter(g=>!(o&&o!=g.namespaceId||a&&a!=g.triggerName))),h}_beforeAnimationBuild(e,n,o){const u=n.element,h=n.isRemovalTransition?void 0:e,g=n.isRemovalTransition?void 0:n.triggerName;for(const v of n.timelines){const x=v.element,R=x!==u,L=ji(o,x,[]);this._getPreviousPlayers(x,R,h,g,n.toState).forEach(U=>{const Z=U.getRealPlayer();Z.beforeDestroy&&Z.beforeDestroy(),U.destroy(),L.push(U)})}d(u,n.fromStyles)}_buildAnimation(e,n,o,a,u,h){const g=n.triggerName,v=n.element,x=[],R=new Set,L=new Set,F=n.timelines.map(Z=>{const ie=Z.element;R.add(ie);const le=ie[Nt];if(le&&le.removedBeforeQueried)return new Nu(Z.duration,Z.delay);const de=ie!==v,se=function Kf(r){const e=[];return f0(r,e),e}((o.get(ie)||Bt).map(xr=>xr.getRealPlayer())).filter(xr=>!!xr.element&&xr.element===ie),ke=u.get(ie),ze=h.get(ie),Rt=nI(0,this._normalizer,0,Z.keyframes,ke,ze),ur=this._buildPlayer(Z,Rt,se);if(Z.subTimeline&&a&&L.add(ie),de){const xr=new Yn(e,g,ie);xr.setRealPlayer(ur),x.push(xr)}return ur});x.forEach(Z=>{ji(this.playersByQueriedElement,Z.element,[]).push(Z),Z.onDone(()=>function Fr(r,e,n){let o;if(r instanceof Map){if(o=r.get(e),o){if(o.length){const a=o.indexOf(n);o.splice(a,1)}0==o.length&&r.delete(e)}}else if(o=r[e],o){if(o.length){const a=o.indexOf(n);o.splice(a,1)}0==o.length&&delete r[e]}return o}(this.playersByQueriedElement,Z.element,Z))}),R.forEach(Z=>yn(Z,Cx));const U=lc(F);return U.onDestroy(()=>{R.forEach(Z=>dc(Z,Cx)),c(v,n.toStyles)}),L.forEach(Z=>{ji(a,Z,[]).push(U)}),U}_buildPlayer(e,n,o){return n.length>0?this.driver.animate(e.element,n,e.duration,e.delay,e.easing,o):new Nu(e.duration,e.delay)}}class Yn{constructor(e,n,o){this.namespaceId=e,this.triggerName=n,this.element=o,this._player=new Nu,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(n=>{this._queuedCallbacks[n].forEach(o=>mx(e,n,void 0,o))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const n=this._player;n.triggerCallback&&e.onStart(()=>n.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,n){ji(this._queuedCallbacks,e,[]).push(n)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const n=this._player;n.triggerCallback&&n.triggerCallback(e)}}function Bi(r){return r&&1===r.nodeType}function ro(r,e){const n=r.style.display;return r.style.display=null!=e?e:"none",n}function uc(r,e,n,o,a){const u=[];n.forEach(v=>u.push(ro(v)));const h=[];o.forEach((v,x)=>{const R={};v.forEach(L=>{const F=R[L]=e.computeStyle(x,L,a);(!F||0==F.length)&&(x[Nt]=Tn,h.push(x))}),r.set(x,R)});let g=0;return n.forEach(v=>ro(v,u[g++])),h}function mt(r,e){const n=new Map;if(r.forEach(g=>n.set(g,[])),0==e.length)return n;const a=new Set(e),u=new Map;function h(g){if(!g)return 1;let v=u.get(g);if(v)return v;const x=g.parentNode;return v=n.has(x)?x:a.has(x)?1:h(x),u.set(g,v),v}return e.forEach(g=>{const v=h(g);1!==v&&n.get(v).push(g)}),n}function yn(r,e){var n;null===(n=r.classList)||void 0===n||n.add(e)}function dc(r,e){var n;null===(n=r.classList)||void 0===n||n.remove(e)}function Ag(r,e,n){lc(n).onDone(()=>r.processLeaveNode(e))}function f0(r,e){for(let n=0;n<r.length;n++){const o=r[n];o instanceof Cg?f0(o.players,e):e.push(o)}}function lI(r,e,n){const o=n.get(r);if(!o)return!1;let a=e.get(r);return a?o.forEach(u=>a.add(u)):e.set(r,o),n.delete(r),!0}class h0{constructor(e,n,o){this.bodyNode=e,this._driver=n,this._normalizer=o,this._triggerCache={},this.onRemovalComplete=(a,u)=>{},this._transitionEngine=new ti(e,n,o),this._timelineEngine=new Fe(e,n,o),this._transitionEngine.onRemovalComplete=(a,u)=>this.onRemovalComplete(a,u)}registerTrigger(e,n,o,a,u){const h=e+"-"+a;let g=this._triggerCache[h];if(!g){const v=[],R=$(this._driver,u,v,[]);if(v.length)throw function h5(r,e){return new Me(3404,_t)}();g=function $t(r,e,n){return new un(r,e,n)}(a,R,this._normalizer),this._triggerCache[h]=g}this._transitionEngine.registerTrigger(n,a,g)}register(e,n){this._transitionEngine.register(e,n)}destroy(e,n){this._transitionEngine.destroy(e,n)}onInsert(e,n,o,a){this._transitionEngine.insertNode(e,n,o,a)}onRemove(e,n,o,a){this._transitionEngine.removeNode(e,n,a||!1,o)}disableAnimations(e,n){this._transitionEngine.markElementAsDisabled(e,n)}process(e,n,o,a){if("@"==o.charAt(0)){const[u,h]=yx(o);this._timelineEngine.command(u,n,h,a)}else this._transitionEngine.trigger(e,n,o,a)}listen(e,n,o,a,u){if("@"==o.charAt(0)){const[h,g]=yx(o);return this._timelineEngine.listen(h,n,g,u)}return this._transitionEngine.listen(e,n,o,a,u)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let T5=(()=>{class r{constructor(n,o,a){this._element=n,this._startStyles=o,this._endStyles=a,this._state=0;let u=r.initialStylesByElement.get(n);u||r.initialStylesByElement.set(n,u={}),this._initialStyles=u}start(){this._state<1&&(this._startStyles&&c(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(c(this._element,this._initialStyles),this._endStyles&&(c(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(r.initialStylesByElement.delete(this._element),this._startStyles&&(d(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(d(this._element,this._endStyles),this._endStyles=null),c(this._element,this._initialStyles),this._state=3)}}return r.initialStylesByElement=new WeakMap,r})();function zu(r){let e=null;const n=Object.keys(r);for(let o=0;o<n.length;o++){const a=n[o];cI(a)&&(e=e||{},e[a]=r[a])}return e}function cI(r){return"display"===r||"position"===r}class p0{constructor(e,n,o,a){this.element=e,this.keyframes=n,this.options=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=o.duration,this._delay=o.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,n,o){return e.animate(n,o)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};if(this.hasStarted()){const n=this._finalKeyframe;Object.keys(n).forEach(o=>{"offset"!=o&&(e[o]=this._finished?n[o]:k(this.element,o))})}this.currentSnapshot=e}triggerCallback(e){const n="start"==e?this._onStartFns:this._onDoneFns;n.forEach(o=>o()),n.length=0}}class g0{validateStyleProperty(e){return oI(e)}matchesElement(e,n){return!1}containsElement(e,n){return wx(e,n)}getParentElement(e){return _x(e)}query(e,n,o){return a0(e,n,o)}computeStyle(e,n,o){return window.getComputedStyle(e)[n]}animate(e,n,o,a,u,h=[]){const v={duration:o,delay:a,fill:0==a?"both":"forwards"};u&&(v.easing=u);const x={},R=h.filter(F=>F instanceof p0);(function C(r,e){return 0===r||0===e})(o,a)&&R.forEach(F=>{let U=F.currentSnapshot;Object.keys(U).forEach(Z=>x[Z]=U[Z])}),n=function I(r,e,n){const o=Object.keys(n);if(o.length&&e.length){let u=e[0],h=[];if(o.forEach(g=>{u.hasOwnProperty(g)||h.push(g),u[g]=n[g]}),h.length)for(var a=1;a<e.length;a++){let g=e[a];h.forEach(function(v){g[v]=k(r,v)})}}return e}(e,n=n.map(F=>i(F,!1)),x);const L=function M5(r,e){let n=null,o=null;return Array.isArray(e)&&e.length?(n=zu(e[0]),e.length>1&&(o=zu(e[e.length-1]))):e&&(n=zu(e)),n||o?new T5(r,n,o):null}(e,n);return new p0(e,n,v,L)}}let Qf=(()=>{class r extends Ht{constructor(n,o){super(),this._nextAnimationId=0,this._renderer=n.createRenderer(o.body,{id:"0",encapsulation:me.None,styles:[],data:{animation:[]}})}build(n){const o=this._nextAnimationId.toString();this._nextAnimationId++;const a=Array.isArray(n)?sc(n):n;return Ax(this._renderer,null,o,"register",[a]),new Ig(o,this._renderer)}}return r.\u0275fac=function(n){return new(n||r)(he(Ze),he(en))},r.\u0275prov=Ae({token:r,factory:r.\u0275fac}),r})();class Ig extends class r5{}{constructor(e,n){super(),this._id=e,this._renderer=n}create(e,n){return new O5(this._id,e,n||{},this._renderer)}}class O5{constructor(e,n,o,a){this.id=e,this.element=n,this._renderer=a,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",o)}_listen(e,n){return this._renderer.listen(this.element,`@@${this.id}:${e}`,n)}_command(e,...n){return Ax(this._renderer,this.element,this.id,e,n)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(e){this._command("setPosition",e)}getPosition(){var e,n;return null!==(n=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==n?n:0}}function Ax(r,e,n,o,a){return r.setProperty(e,`@@${n}:${o}`,a)}const uI="@.disabled";let dI=(()=>{class r{constructor(n,o,a){this.delegate=n,this.engine=o,this._zone=a,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),o.onRemovalComplete=(u,h)=>{const g=null==h?void 0:h.parentNode(u);g&&h.removeChild(g,u)}}createRenderer(n,o){const u=this.delegate.createRenderer(n,o);if(!(n&&o&&o.data&&o.data.animation)){let R=this._rendererCache.get(u);return R||(R=new m0("",u,this.engine),this._rendererCache.set(u,R)),R}const h=o.id,g=o.id+"-"+this._currentId;this._currentId++,this.engine.register(g,n);const v=R=>{Array.isArray(R)?R.forEach(v):this.engine.registerTrigger(h,g,n,R.name,R)};return o.data.animation.forEach(v),new Ix(this,g,u,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(n,o,a){n>=0&&n<this._microtaskId?this._zone.run(()=>o(a)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(u=>{const[h,g]=u;h(g)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([o,a]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return r.\u0275fac=function(n){return new(n||r)(he(Ze),he(h0),he(Hn))},r.\u0275prov=Ae({token:r,factory:r.\u0275fac}),r})();class m0{constructor(e,n,o){this.namespaceId=e,this.delegate=n,this.engine=o,this.destroyNode=this.delegate.destroyNode?a=>n.destroyNode(a):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,n){return this.delegate.createElement(e,n)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,n){this.delegate.appendChild(e,n),this.engine.onInsert(this.namespaceId,n,e,!1)}insertBefore(e,n,o,a=!0){this.delegate.insertBefore(e,n,o),this.engine.onInsert(this.namespaceId,n,e,a)}removeChild(e,n,o){this.engine.onRemove(this.namespaceId,n,this.delegate,o)}selectRootElement(e,n){return this.delegate.selectRootElement(e,n)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,n,o,a){this.delegate.setAttribute(e,n,o,a)}removeAttribute(e,n,o){this.delegate.removeAttribute(e,n,o)}addClass(e,n){this.delegate.addClass(e,n)}removeClass(e,n){this.delegate.removeClass(e,n)}setStyle(e,n,o,a){this.delegate.setStyle(e,n,o,a)}removeStyle(e,n,o){this.delegate.removeStyle(e,n,o)}setProperty(e,n,o){"@"==n.charAt(0)&&n==uI?this.disableAnimations(e,!!o):this.delegate.setProperty(e,n,o)}setValue(e,n){this.delegate.setValue(e,n)}listen(e,n,o){return this.delegate.listen(e,n,o)}disableAnimations(e,n){this.engine.disableAnimations(e,n)}}class Ix extends m0{constructor(e,n,o,a){super(n,o,a),this.factory=e,this.namespaceId=n}setProperty(e,n,o){"@"==n.charAt(0)?"."==n.charAt(1)&&n==uI?this.disableAnimations(e,o=void 0===o||!!o):this.engine.process(this.namespaceId,e,n.substr(1),o):this.delegate.setProperty(e,n,o)}listen(e,n,o){if("@"==n.charAt(0)){const a=function Mg(r){switch(r){case"body":return document.body;case"document":return document;case"window":return window;default:return r}}(e);let u=n.substr(1),h="";return"@"!=u.charAt(0)&&([u,h]=function qu(r){const e=r.indexOf(".");return[r.substring(0,e),r.substr(e+1)]}(u)),this.engine.listen(this.namespaceId,a,u,h,g=>{this.factory.scheduleListenerCallback(g._data||-1,o,g)})}return this.delegate.listen(e,n,o)}}let fc=(()=>{class r extends h0{constructor(n,o,a){super(n.body,o,a)}ngOnDestroy(){this.flush()}}return r.\u0275fac=function(n){return new(n||r)(he(en),he(xx),he(Kt))},r.\u0275prov=Ae({token:r,factory:r.\u0275fac}),r})();const Vu=new pt("AnimationModuleType"),Hu=[{provide:Ht,useClass:Qf},{provide:Kt,useFactory:function fI(){return new Be}},{provide:h0,useClass:fc},{provide:Ze,useFactory:function L5(r,e,n){return new dI(r,e,n)},deps:[Pv,h0,Hn]}],Rx=[{provide:xx,useFactory:()=>new g0},{provide:Vu,useValue:"BrowserAnimations"},...Hu],P5=[{provide:xx,useClass:sI},{provide:Vu,useValue:"NoopAnimations"},...Hu];let N5=(()=>{class r{static withConfig(n){return{ngModule:r,providers:n.disableAnimations?P5:Rx}}}return r.\u0275fac=function(n){return new(n||r)},r.\u0275mod=co({type:r}),r.\u0275inj=Hi({providers:Rx,imports:[Fw]}),r})(),hI=(()=>{class r{constructor(n){this._document=n}ngOnDestroy(){const n=this._containerElement;n&&n.parentNode&&n.parentNode.removeChild(n)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const n="cdk-overlay-container",o=this._document.querySelectorAll(`.${n}`);if(null==o?void 0:o.length)this._containerElement=o[0];else{const a=this._document.createElement("div");a.classList.add(n),this._document.body.appendChild(a),this._containerElement=a}}}return r.\u0275fac=function(n){return new(n||r)(he(en))},r.\u0275prov=Ae({token:r,factory:r.\u0275fac}),r})();class pI extends nn{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const n=super._subscribe(e);return n&&!n.closed&&e.next(this._value),n}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new zt;return this._value}next(e){super.next(this._value=e)}}function Mx(r){for(let e in r){let n=r[e]||"";switch(e){case"display":r.display="flex"===n?["-webkit-flex","flex"]:"inline-flex"===n?["-webkit-inline-flex","inline-flex"]:n;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":r["-webkit-"+e]=n;break;case"flex-direction":n=n||"row",r["-webkit-flex-direction"]=n,r["flex-direction"]=n;break;case"order":r.order=r["-webkit-"+e]=isNaN(+n)?"0":n}}return r}const y0="inline",Tg=["row","column","row-reverse","column-reverse"];function Tx(r){let[e,n,o]=function Ox(r){var e;r=null!==(e=null==r?void 0:r.toLowerCase())&&void 0!==e?e:"";let[n,o,a]=r.split(" ");return Tg.find(u=>u===n)||(n=Tg[0]),o===y0&&(o=a!==y0?a:"",a=y0),[n,Lx(o),!!a]}(r);return function Px(r,e=null,n=!1){return{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":r,"flex-wrap":e||null}}(e,n,o)}function Lx(r){if(r)switch(r.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":r="wrap-reverse";break;case"no":case"none":case"nowrap":r="nowrap";break;default:r="wrap"}return r}function ga(){}class E3{constructor(e,n,o){this.nextOrObserver=e,this.error=n,this.complete=o}call(e,n){return n.subscribe(new C3(e,this.nextOrObserver,this.error,this.complete))}}class C3 extends _n{constructor(e,n,o,a){super(e),this._tapNext=ga,this._tapError=ga,this._tapComplete=ga,this._tapError=o||ga,this._tapComplete=a||ga,vn(n)?(this._context=this,this._tapNext=n):n&&(this._context=n,this._tapNext=n.next||ga,this._tapError=n.error||ga,this._tapComplete=n.complete||ga)}_next(e){try{this._tapNext.call(this._context,e)}catch(n){return void this.destination.error(n)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(n){return void this.destination.error(n)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}const k3={provide:D2,useFactory:function D3(r,e){return()=>{if(Mu(e)){const n=Array.from(r.querySelectorAll(`[class*=${kF}]`)),o=/\bflex-layout-.+?\b/g;n.forEach(a=>{a.classList.contains(`${kF}ssr`)&&a.parentNode?a.parentNode.removeChild(a):a.className.replace(o,"")})}}},deps:[en,Ts],multi:!0},kF="flex-layout-";let F5=(()=>{class r{}return r.\u0275fac=function(n){return new(n||r)},r.\u0275mod=co({type:r}),r.\u0275inj=Hi({providers:[k3]}),r})();class Lg{constructor(e=!1,n="all",o="",a="",u=0){this.matches=e,this.mediaQuery=n,this.mqAlias=o,this.suffix=a,this.priority=u,this.property=""}clone(){return new Lg(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let A3=(()=>{class r{constructor(){this.stylesheet=new Map}addStyleToElement(n,o,a){const u=this.stylesheet.get(n);u?u.set(o,a):this.stylesheet.set(n,new Map([[o,a]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(n,o){const a=this.stylesheet.get(n);let u="";if(a){const h=a.get(o);("number"==typeof h||"string"==typeof h)&&(u=h+"")}return u}}return r.\u0275fac=function(n){return new(n||r)},r.\u0275prov=Ae({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const j5={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},tl=new pt("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>j5}),v0=new pt("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),B5=new pt("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function AF(r,e){return r=r?r.clone():new Lg,e&&(r.mqAlias=e.alias,r.mediaQuery=e.mediaQuery,r.suffix=e.suffix,r.priority=e.priority),r}class jr{constructor(){this.shouldCache=!0}sideEffect(e,n,o){}}let Zn=(()=>{class r{constructor(n,o,a,u){this._serverStylesheet=n,this._serverModuleLoaded=o,this._platformId=a,this.layoutConfig=u}applyStyleToElement(n,o,a=null){let u={};"string"==typeof o&&(u[o]=a,o=u),u=this.layoutConfig.disableVendorPrefixes?o:Mx(o),this._applyMultiValueStyleToElement(u,n)}applyStyleToElements(n,o=[]){const a=this.layoutConfig.disableVendorPrefixes?n:Mx(n);o.forEach(u=>{this._applyMultiValueStyleToElement(a,u)})}getFlowDirection(n){const o="flex-direction";let a=this.lookupStyle(n,o);return[a||"row",this.lookupInlineStyle(n,o)||da(this._platformId)&&this._serverModuleLoaded?a:""]}hasWrap(n){return"wrap"===this.lookupStyle(n,"flex-wrap")}lookupAttributeValue(n,o){var a;return null!==(a=n.getAttribute(o))&&void 0!==a?a:""}lookupInlineStyle(n,o){return Mu(this._platformId)?n.style.getPropertyValue(o):function I3(r,e){var n;return null!==(n=IF(r)[e])&&void 0!==n?n:""}(n,o)}lookupStyle(n,o,a=!1){let u="";return n&&((u=this.lookupInlineStyle(n,o))||(Mu(this._platformId)?a||(u=getComputedStyle(n).getPropertyValue(o)):this._serverModuleLoaded&&(u=this._serverStylesheet.getStyleForElement(n,o)))),u?u.trim():""}_applyMultiValueStyleToElement(n,o){Object.keys(n).sort().forEach(a=>{const u=n[a],h=Array.isArray(u)?u:[u];h.sort();for(let g of h)g=g?g+"":"",Mu(this._platformId)||!this._serverModuleLoaded?Mu(this._platformId)?o.style.setProperty(a,g):R3(o,a,g):this._serverStylesheet.addStyleToElement(o,a,g)})}}return r.\u0275fac=function(n){return new(n||r)(he(A3),he(v0),he(Ts),he(tl))},r.\u0275prov=Ae({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function R3(r,e,n){e=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const o=IF(r);o[e]=null!=n?n:"",function M3(r,e){let n="";for(const o in e)e[o]&&(n+=`${o}:${e[o]};`);r.setAttribute("style",n)}(r,o)}function IF(r){const e={},n=r.getAttribute("style");if(n){const o=n.split(/;+/g);for(let a=0;a<o.length;a++){const u=o[a].trim();if(u.length>0){const h=u.indexOf(":");if(-1===h)throw new Error(`Invalid CSS style: ${u}`);e[u.substr(0,h).trim()]=u.substr(h+1).trim()}}}return e}function Nx(r,e){return(e&&e.priority||0)-(r&&r.priority||0)}function T3(r,e){return(r.priority||0)-(e.priority||0)}let z5=(()=>{class r{constructor(n,o,a){this._zone=n,this._platformId=o,this._document=a,this.source=new pI(new Lg(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const n=[];return this.registry.forEach((o,a)=>{o.matches&&n.push(a)}),n}isActive(n){var o;const a=this.registry.get(n);return null!==(o=null==a?void 0:a.matches)&&void 0!==o?o:this.registerQuery(n).some(u=>u.matches)}observe(n,o=!1){if(n&&n.length){const a=this._observable$.pipe($v(h=>!o||n.indexOf(h.mediaQuery)>-1));return ya(new Ie(h=>{const g=this.registerQuery(n);if(g.length){const v=g.pop();g.forEach(x=>{h.next(x)}),this.source.next(v)}h.complete()}),a)}return this._observable$}registerQuery(n){const o=Array.isArray(n)?n:[n],a=[];return function O3(r,e){const n=r.filter(o=>!RF[o]);if(n.length>0){const o=n.join(", ");try{const a=e.createElement("style");a.setAttribute("type","text/css"),a.styleSheet||a.appendChild(e.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${o} {.fx-query-test{ }}\n`)),e.head.appendChild(a),n.forEach(u=>RF[u]=a)}catch(a){console.error(a)}}}(o,this._document),o.forEach(u=>{const h=v=>{this._zone.run(()=>this.source.next(new Lg(v.matches,u)))};let g=this.registry.get(u);g||(g=this.buildMQL(u),g.addListener(h),this.pendingRemoveListenerFns.push(()=>g.removeListener(h)),this.registry.set(u,g)),g.matches&&a.push(new Lg(!0,u))}),a}ngOnDestroy(){let n;for(;n=this.pendingRemoveListenerFns.pop();)n()}buildMQL(n){return function L3(r,e){return e&&window.matchMedia("all").addListener?window.matchMedia(r):{matches:"all"===r||""===r,media:r,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(n,Mu(this._platformId))}}return r.\u0275fac=function(n){return new(n||r)(he(Hn),he(Ts),he(en))},r.\u0275prov=Ae({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const RF={},P3=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],MF="(orientation: portrait) and (max-width: 599.98px)",TF="(orientation: landscape) and (max-width: 959.98px)",OF="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",LF="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",PF="(orientation: portrait) and (min-width: 840px)",NF="(orientation: landscape) and (min-width: 1280px)",$u={HANDSET:`${MF}, ${TF}`,TABLET:`${OF} , ${LF}`,WEB:`${PF}, ${NF} `,HANDSET_PORTRAIT:`${MF}`,TABLET_PORTRAIT:`${OF} `,WEB_PORTRAIT:`${PF}`,HANDSET_LANDSCAPE:`${TF}`,TABLET_LANDSCAPE:`${LF}`,WEB_LANDSCAPE:`${NF}`},N3=[{alias:"handset",priority:2e3,mediaQuery:$u.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:$u.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:$u.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:$u.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:$u.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:$u.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:$u.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:$u.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:$u.WEB_PORTRAIT,overlapping:!0}],F3=/(\.|-|_)/g;function j3(r){let e=r.length>0?r.charAt(0):"",n=r.length>1?r.slice(1):"";return e.toUpperCase()+n}const V3=new pt("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const r=yd(B5),e=yd(tl),n=[].concat.apply([],(r||[]).map(a=>Array.isArray(a)?a:[a]));return function q3(r,e=[]){const n={};return r.forEach(o=>{n[o.alias]=o}),e.forEach(o=>{n[o.alias]?function zs(r,...e){if(null==r)throw TypeError("Cannot convert undefined or null to object");for(let n of e)if(null!=n)for(let o in n)n.hasOwnProperty(o)&&(r[o]=n[o]);return r}(n[o.alias],o):n[o.alias]=o}),function z3(r){return r.forEach(e=>{e.suffix||(e.suffix=function B3(r){return r.replace(F3,"|").split("|").map(j3).join("")}(e.alias),e.overlapping=!!e.overlapping)}),r}(Object.keys(n).map(o=>n[o]))}((e.disableDefaultBps?[]:P3).concat(e.addOrientationBps?N3:[]),n)}});let q5=(()=>{class r{constructor(n){this.findByMap=new Map,this.items=[...n].sort(T3)}findByAlias(n){return n?this.findWithPredicate(n,o=>o.alias===n):null}findByQuery(n){return this.findWithPredicate(n,o=>o.mediaQuery===n)}get overlappings(){return this.items.filter(n=>n.overlapping)}get aliases(){return this.items.map(n=>n.alias)}get suffixes(){return this.items.map(n=>{var o;return null!==(o=null==n?void 0:n.suffix)&&void 0!==o?o:""})}findWithPredicate(n,o){var a;let u=this.findByMap.get(n);return u||(u=null!==(a=this.items.find(o))&&void 0!==a?a:null,this.findByMap.set(n,u)),null!=u?u:null}}return r.\u0275fac=function(n){return new(n||r)(he(V3))},r.\u0275prov=Ae({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const b0="print",H3={alias:b0,mediaQuery:b0,priority:1e3};let $3=(()=>{class r{constructor(n,o,a){this.breakpoints=n,this.layoutConfig=o,this._document=a,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new G3,this.deactivations=[]}withPrintQuery(n){return[...n,b0]}isPrintEvent(n){return n.mediaQuery.startsWith(b0)}get printAlias(){var n;return[...null!==(n=this.layoutConfig.printWithBreakpoints)&&void 0!==n?n:[]]}get printBreakPoints(){return this.printAlias.map(n=>this.breakpoints.findByAlias(n)).filter(n=>null!==n)}getEventBreakpoints({mediaQuery:n}){const o=this.breakpoints.findByQuery(n);return(o?[...this.printBreakPoints,o]:this.printBreakPoints).sort(Nx)}updateEvent(n){var o;let a=this.breakpoints.findByQuery(n.mediaQuery);return this.isPrintEvent(n)&&(a=this.getEventBreakpoints(n)[0],n.mediaQuery=null!==(o=null==a?void 0:a.mediaQuery)&&void 0!==o?o:""),AF(n,a)}registerBeforeAfterPrintHooks(n){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const o=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(n,this.getEventBreakpoints(new Lg(!0,b0))),n.updateStyles())},a=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(n),n.updateStyles())};this._document.defaultView.addEventListener("beforeprint",o),this._document.defaultView.addEventListener("afterprint",a),this.beforePrintEventListeners.push(o),this.afterPrintEventListeners.push(a)}interceptEvents(n){return o=>{this.isPrintEvent(o)?o.matches&&!this.isPrinting?(this.startPrinting(n,this.getEventBreakpoints(o)),n.updateStyles()):!o.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(n),n.updateStyles()):this.collectActivations(n,o)}}blockPropagation(){return n=>!(this.isPrinting||this.isPrintEvent(n))}startPrinting(n,o){this.isPrinting=!0,this.formerActivations=n.activatedBreakpoints,n.activatedBreakpoints=this.queue.addPrintBreakpoints(o)}stopPrinting(n){n.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(n,o){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!o.matches){const a=this.breakpoints.findByQuery(o.mediaQuery);if(a){const u=this.formerActivations&&this.formerActivations.includes(a),h=!this.formerActivations&&n.activatedBreakpoints.includes(a);(u||h)&&(this.deactivations.push(a),this.deactivations.sort(Nx))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(n=>this._document.defaultView.removeEventListener("beforeprint",n)),this.afterPrintEventListeners.forEach(n=>this._document.defaultView.removeEventListener("afterprint",n)))}}return r.\u0275fac=function(n){return new(n||r)(he(q5),he(tl),he(en))},r.\u0275prov=Ae({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();class G3{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(e){return e.push(H3),e.sort(Nx),e.forEach(n=>this.addBreakpoint(n)),this.printBreakpoints}addBreakpoint(e){e&&void 0===this.printBreakpoints.find(o=>o.mediaQuery===e.mediaQuery)&&(this.printBreakpoints=function U3(r){var e;return null!==(e=null==r?void 0:r.mediaQuery.startsWith(b0))&&void 0!==e&&e}(e)?[e,...this.printBreakpoints]:[...this.printBreakpoints,e])}clear(){this.printBreakpoints=[]}}let cr=(()=>{class r{constructor(n,o,a){this.matchMedia=n,this.breakpoints=o,this.hook=a,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new nn,this.observeActivations()}get activatedAlias(){var n,o;return null!==(o=null===(n=this.activatedBreakpoints[0])||void 0===n?void 0:n.alias)&&void 0!==o?o:""}set activatedBreakpoints(n){this._activatedBreakpoints=[...n]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(n){this._useFallbacks=n}onMediaChange(n){const o=this.findByQuery(n.mediaQuery);if(o){n=AF(n,o);const a=this.activatedBreakpoints.indexOf(o);n.matches&&-1===a?(this._activatedBreakpoints.push(o),this._activatedBreakpoints.sort(Nx),this.updateStyles()):!n.matches&&-1!==a&&(this._activatedBreakpoints.splice(a,1),this._activatedBreakpoints.sort(Nx),this.updateStyles())}}init(n,o,a,u,h=[]){FF(this.updateMap,n,o,a),FF(this.clearMap,n,o,u),this.buildElementKeyMap(n,o),this.watchExtraTriggers(n,o,h)}getValue(n,o,a){const u=this.elementMap.get(n);if(u){const h=void 0!==a?u.get(a):this.getActivatedValues(u,o);if(h)return h.get(o)}}hasValue(n,o){const a=this.elementMap.get(n);if(a){const u=this.getActivatedValues(a,o);if(u)return void 0!==u.get(o)||!1}return!1}setValue(n,o,a,u){var h;let g=this.elementMap.get(n);if(g){const x=(null!==(h=g.get(u))&&void 0!==h?h:new Map).set(o,a);g.set(u,x),this.elementMap.set(n,g)}else g=(new Map).set(u,(new Map).set(o,a)),this.elementMap.set(n,g);const v=this.getValue(n,o);void 0!==v&&this.updateElement(n,o,v)}trackValue(n,o){return this.subject.asObservable().pipe($v(a=>a.element===n&&a.key===o))}updateStyles(){this.elementMap.forEach((n,o)=>{const a=new Set(this.elementKeyMap.get(o));let u=this.getActivatedValues(n);u&&u.forEach((h,g)=>{this.updateElement(o,g,h),a.delete(g)}),a.forEach(h=>{if(u=this.getActivatedValues(n,h),u){const g=u.get(h);this.updateElement(o,h,g)}else this.clearElement(o,h)})})}clearElement(n,o){const a=this.clearMap.get(n);if(a){const u=a.get(o);u&&(u(),this.subject.next({element:n,key:o,value:""}))}}updateElement(n,o,a){const u=this.updateMap.get(n);if(u){const h=u.get(o);h&&(h(a),this.subject.next({element:n,key:o,value:a}))}}releaseElement(n){const o=this.watcherMap.get(n);o&&(o.forEach(u=>u.unsubscribe()),this.watcherMap.delete(n));const a=this.elementMap.get(n);a&&(a.forEach((u,h)=>a.delete(h)),this.elementMap.delete(n))}triggerUpdate(n,o){const a=this.elementMap.get(n);if(a){const u=this.getActivatedValues(a,o);u&&(o?this.updateElement(n,o,u.get(o)):u.forEach((h,g)=>this.updateElement(n,g,h)))}}buildElementKeyMap(n,o){let a=this.elementKeyMap.get(n);a||(a=new Set,this.elementKeyMap.set(n,a)),a.add(o)}watchExtraTriggers(n,o,a){if(a&&a.length){let u=this.watcherMap.get(n);if(u||(u=new Map,this.watcherMap.set(n,u)),!u.get(o)){const g=ya(...a).subscribe(()=>{const v=this.getValue(n,o);this.updateElement(n,o,v)});u.set(o,g)}}}findByQuery(n){return this.breakpoints.findByQuery(n)}getActivatedValues(n,o){for(let u=0;u<this.activatedBreakpoints.length;u++){const g=n.get(this.activatedBreakpoints[u].alias);if(g&&(void 0===o||g.has(o)&&null!=g.get(o)))return g}if(!this._useFallbacks)return;const a=n.get("");return void 0===o||a&&a.has(o)?a:void 0}observeActivations(){const n=this.breakpoints.items.map(o=>o.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(n)).pipe(function S3(r,e,n){return function(a){return a.lift(new E3(r,e,n))}}(this.hook.interceptEvents(this)),$v(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return r.\u0275fac=function(n){return new(n||r)(he(z5),he(q5),he($3))},r.\u0275prov=Ae({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function FF(r,e,n,o){var a;if(void 0!==o){const u=null!==(a=r.get(e))&&void 0!==a?a:new Map;u.set(n,o),r.set(e,u)}}let wr=(()=>{class r{constructor(n,o,a,u){this.elementRef=n,this.styleBuilder=o,this.styler=a,this.marshal=u,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new nn,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(n){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,n,this.marshal.activatedAlias)}ngOnChanges(n){Object.keys(n).forEach(o=>{if(-1!==this.inputs.indexOf(o)){const a=o.split(".").slice(1).join(".");this.setValue(n[o].currentValue,a)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(n=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),n)}addStyles(n,o){const a=this.styleBuilder,u=a.shouldCache;let h=this.styleCache.get(n);(!h||!u)&&(h=a.buildStyles(n,o),u&&this.styleCache.set(n,h)),this.mru=Object.assign({},h),this.applyStyleToElement(h),a.sideEffect(n,h,o)}clearStyles(){Object.keys(this.mru).forEach(n=>{this.mru[n]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(n,o=!1){if(n){const[a,u]=this.styler.getFlowDirection(n);if(!u&&o){const h=Tx(a);this.styler.applyStyleToElements(h,[n])}return a.trim()}return"row"}hasWrap(n){return this.styler.hasWrap(n)}applyStyleToElement(n,o,a=this.nativeElement){this.styler.applyStyleToElement(a,n,o)}setValue(n,o){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,n,o)}updateWithValue(n){this.currentValue!==n&&(this.addStyles(n),this.currentValue=n)}}return r.\u0275fac=function(n){return new(n||r)(oe(Ut),oe(jr),oe(Zn),oe(cr))},r.\u0275dir=je({type:r,features:[cl]}),r})(),UF=(()=>{class r{}return r.\u0275fac=function(n){return new(n||r)},r.\u0275mod=co({type:r}),r.\u0275inj=Hi({imports:[[F5]]}),r})(),h6=(()=>{class r extends jr{buildStyles(n,{display:o}){const a=Tx(n);return Object.assign(Object.assign({},a),{display:"none"===o?o:a.display})}}return r.\u0275fac=function(){let e;return function(o){return(e||(e=ht(r)))(o||r)}}(),r.\u0275prov=Ae({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const p6=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let g6=(()=>{class r extends wr{constructor(n,o,a,u,h){super(n,a,o,u),this._config=h,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(n){var o;const u=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=null!==(o=KF.get(u))&&void 0!==o?o:new Map,KF.set(u,this.styleCache),this.currentValue!==n&&(this.addStyles(n,{display:u}),this.currentValue=n)}}return r.\u0275fac=function(n){return new(n||r)(oe(Ut),oe(Zn),oe(h6),oe(cr),oe(tl))},r.\u0275dir=je({type:r,features:[rt]}),r})(),WF=(()=>{class r extends g6{constructor(){super(...arguments),this.inputs=p6}}return r.\u0275fac=function(){let e;return function(o){return(e||(e=ht(r)))(o||r)}}(),r.\u0275dir=je({type:r,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[rt]}),r})();const KF=new Map;let ZF=(()=>{class r{}return r.\u0275fac=function(n){return new(n||r)},r.\u0275mod=co({type:r}),r.\u0275inj=Hi({imports:[[F5,bL]]}),r})(),o3=(()=>{class r{}return r.\u0275fac=function(n){return new(n||r)},r.\u0275mod=co({type:r}),r.\u0275inj=Hi({imports:[[F5]]}),r})(),N4=(()=>{class r{constructor(n,o){da(o)&&!n&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(n,o=[]){return{ngModule:r,providers:n.serverLoaded?[{provide:tl,useValue:Object.assign(Object.assign({},j5),n)},{provide:B5,useValue:o,multi:!0},{provide:v0,useValue:!0}]:[{provide:tl,useValue:Object.assign(Object.assign({},j5),n)},{provide:B5,useValue:o,multi:!0}]}}}return r.\u0275fac=function(n){return new(n||r)(he(v0),he(Ts))},r.\u0275mod=co({type:r}),r.\u0275inj=Hi({imports:[[ZF,UF,o3],ZF,UF,o3]}),r})();function Un(r,e,n,o){return new(n||(n=Promise))(function(u,h){function g(R){try{x(o.next(R))}catch(L){h(L)}}function v(R){try{x(o.throw(R))}catch(L){h(L)}}function x(R){R.done?u(R.value):function a(u){return u instanceof n?u:new n(function(h){h(u)})}(R.value).then(g,v)}x((o=o.apply(r,e||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;var a3=Wn(5),sj=Wn(613),aj=Wn.n(sj);const yI=new Map,W5=[].map,lj=[].some,cj={}.hasOwnProperty,Yf="https://cdn.jsdelivr.net/npm/",uj=/^((?:@[^/@]+\/)?[^/@]+)(?:@([^/]+))?(?:\/(.*))?$/,dj=/^\d+\.\d+\.\d+(-[\w-.+]+)?$/,l3=/\.[^/]*$/,fj=["unpkg","jsdelivr","browser","main"];class _0 extends Error{constructor(e){super(e),this.name="RequireError"}}function c3(r){const e=uj.exec(r);return e&&{name:e[1],version:e[2],path:e[3]}}function u3(r){const e=`${Yf}${r.name}${r.version?`@${r.version}`:""}/package.json`;let n=yI.get(e);return n||yI.set(e,n=fetch(e).then(o=>{if(!o.ok)throw new _0("unable to load package.json");return o.redirected&&!yI.has(o.url)&&yI.set(o.url,n),o.json()})),n}function K5(r){const e=new Map;function n(h){if("string"!=typeof h)return h;let g=e.get(h);return g||(g=new Promise((v,x)=>Un(this,void 0,void 0,function*(){try{const R=yield fetch(h);if(!R.ok)throw new _0(`Unable to fetch module from ${h}`);const L=yield R.text(),F=[],U=function vj(r){function e(n,o,a){const u=arguments.length;u<2?(a=n,o=[]):u<3&&(a=o,o="string"==typeof n?[]:n),r.push(lj.call(o,yj)?h=>{const g={},v={exports:g};return Promise.all(W5.call(o,x=>"exports"==(x+="")?g:"module"===x?v:h(x))).then(x=>(a.apply(null,x),v.exports))}:h=>Promise.all(W5.call(o,h)).then(g=>"function"==typeof a?a.apply(null,g):a))}return e.amd={},e}(F);new Function("define",L)(U);const ie=F.shift();if("function"!=typeof ie)throw new _0(`Module did not call define() and cannot be loaded from ${h}`);const le=yield ie(o(h));v(le)}catch(R){console.error(R),x(R instanceof _0?R:new _0(`Error loading module from ${h}`))}})),e.set(h,g)),g}function o(h){return g=>Promise.resolve(r(g,h)).then(n)}function u(h){return arguments.length>1?Promise.all(W5.call(arguments,o(null))).then(gj):o(null)(h)}return u.alias=function a(h){return K5((g,v)=>g in h&&(v=null,"string"!=typeof(g=h[g]))?g:r(g,v))},u.resolve=r,u}function gj(r){const e={};for(const n of r)for(const o in n)cj.call(n,o)&&(null==n[o]?Object.defineProperty(e,o,{get:mj(n,o)}):e[o]=n[o]);return e}function mj(r,e){return()=>r[e]}function yj(r){return"exports"==(r+="")||"module"===r}K5(function pj(r,e){return Un(this,void 0,void 0,function*(){if(r.startsWith(Yf)&&(r=r.substring(Yf.length)),/^(\w+:)|\/\//i.test(r))return r;if(/^[.]{0,2}\//i.test(r))return new URL(r,null==e?location:e).href;if(!r.length||/^[\s._]/.test(r)||/\s$/.test(r))throw new _0("illegal name");const n=c3(r);if(!n)return`${Yf}${r}`;if(!n.version&&null!=e&&e.startsWith(Yf)){const a=yield u3(c3(e.substring(Yf.length)));n.version=a.dependencies&&a.dependencies[n.name]||a.peerDependencies&&a.peerDependencies[n.name]}if(n.path&&!l3.test(n.path)&&(n.path+=".js"),n.path&&n.version&&dj.test(n.version))return`${Yf}${n.name}@${n.version}/${n.path}`;const o=yield u3(n);return`${Yf}${o.name}@${o.version}/${n.path||function hj(r){for(const e of fj){const n=r[e];if("string"==typeof n)return l3.test(n)?n:`${n}.js`}}(o)||"index.js"}`})});const bj=["toolbar"],_j=["viz"];let wj=(()=>{class r{ngAfterViewInit(){return Un(this,void 0,void 0,function*(){yield this.render()})}render(){return Un(this,void 0,void 0,function*(){this.oldQLayout=JSON.parse(JSON.stringify(this.qLayout));const n={getLayout:()=>this.qLayout,selectHyperCubeCells:(...g)=>{},getEffectiveProperties:(...g)=>Un(this,void 0,void 0,function*(){return yield this.onVizMethod({name:"getEffectiveProperties",args:g})}),getHyperCubeReducedData:(...g)=>Un(this,void 0,void 0,function*(){return yield this.onVizMethod({name:"getHyperCubeReducedData",args:g})}),getHyperCubeData:(...g)=>Un(this,void 0,void 0,function*(){return yield this.onVizMethod({name:"getHyperCubeData",args:g})}),getHyperCubeStackData:(...g)=>Un(this,void 0,void 0,function*(){return yield this.onVizMethod({name:"getHyperCubeStackData",args:g})}),getHyperCubeContinuousData:(...g)=>Un(this,void 0,void 0,function*(){return yield this.onVizMethod({name:"getHyperCubeContinuousData",args:g})}),getStackedDataPages:(...g)=>this.qLayout.qHyperCube.qDataPages,getFullPropertyTree:()=>{},getHyperCubeTreeData:()=>{},beginSelections:(...g)=>{},selectHyperCubeContinuousRange:(...g)=>Un(this,void 0,void 0,function*(){var v;yield null===(v=this.onSelections)||void 0===v?void 0:v.call(this,{selections:g,method:"selectHyperCubeContinuousRange"})}),selectHyperCubeValues:(...g)=>Un(this,void 0,void 0,function*(){var v;yield null===(v=this.onSelections)||void 0===v?void 0:v.call(this,{selections:g,method:"selectHyperCubeValues"})}),selectListObjectValues:(...g)=>Un(this,void 0,void 0,function*(){var v;yield null===(v=this.onSelections)||void 0===v?void 0:v.call(this,{selections:g,method:"selectListObjectValues"})}),rangeSelectHyperCubeValues:(...g)=>Un(this,void 0,void 0,function*(){var v;yield null===(v=this.onSelections)||void 0===v?void 0:v.call(this,{selections:g,method:"rangeSelectHyperCubeValues"})}),resetMadeSelections:(...g)=>{},clearSelections:(...g)=>{},endSelections:(...g)=>{},removeListener:(...g)=>{},useKeyboard:(...g)=>{},on:(...g)=>{},getField:(...g)=>{},selectValues:(...g)=>{}};this.app=yield aj().fromGenericObjects([n]),this.app.getMeasure=g=>Un(this,void 0,void 0,function*(){return{getMeasure:()=>Un(this,void 0,void 0,function*(){return yield this.onGetMeasure({measureId:g})})}});const o=this.app.getObject;this.app.getObject=g=>Un(this,void 0,void 0,function*(){return g===this.qLayout.qInfo.qId?yield o(this.qLayout.qInfo.qId):{getLayout:()=>Un(this,void 0,void 0,function*(){return yield this.onGetObject({objectId:g})})}}),this.app.getField=g=>Un(this,void 0,void 0,function*(){return{selectValues:(v,x,R)=>Un(this,void 0,void 0,function*(){return yield this.onSelectFieldValues({fieldId:g,arr:v,toggle:x,softlock:R})}),clear:()=>Un(this,void 0,void 0,function*(){return yield this.onClearField({fieldId:g})}),selectAll:v=>Un(this,void 0,void 0,function*(){return yield this.onFieldSelectAll({fieldId:g,softlock:v})}),selectPossible:v=>Un(this,void 0,void 0,function*(){return yield this.onFieldSelectPossible({fieldId:g,softlock:v})})}}),this.app.getFieldDescription=g=>Un(this,void 0,void 0,function*(){return this.onGetFieldDescription({fieldId:g})});const a=K5(g=>this.nebulaPackagesUrl?`${this.nebulaPackagesUrl}/${g}`:`https://unpkg.com/@nebula.js/${g}`).alias({"@nebula.js/stardust":a3}),u=[["sn-action-button@1.38.1","action-button"],["sn-bar-chart","barchart"],["sn-bullet-chart","bullet-chart"],["sn-combo-chart","combo-chart"],["sn-funnel-chart","funnel-chart"],["sn-grid-chart","sn-grid-chart"],["sn-kpi","kpi"],["sn-line-chart","line-chart"],["sn-mekko-chart","mekko"],["sn-org-chart","org"],["sn-pie-chart","piechart"],["sn-sankey-chart","sankey"],["sn-table","table"],["sn-video-player","video-player"],["sn-scatter-plot","scatterplot"],["sn-treemap","treemap"],["nebula-date-range-picker","qlik-date-picker"],["sn-pivot-table","pivot-table"],["sn-map","map"]].map(g=>({name:g[1],load:()=>a(g[0])}));this.n=a3.embed(this.app,{types:u,themes:[{id:"customTheme",load:()=>Un(this,void 0,void 0,function*(){return this.theme})}],context:{theme:"customTheme"},flags:{IM_1869_HIDE_DIM_MEA_LINE:!0,CLIENT_IM_3365:!0}}),this.qLayout&&(this.viz=yield this.n.render({element:this.vizEl.nativeElement,id:this.qLayout.qInfo.qId}))})}destroyApp(){var n;null===(n=document.querySelector(`div[data-app-id='${this.app.id}']`))||void 0===n||n.remove()}ngOnDestroy(){this.destroyApp()}ngOnChanges(n){return Un(this,void 0,void 0,function*(){this.viz&&JSON.stringify(this.qLayout)!==JSON.stringify(this.oldQLayout)&&(this.viz.destroy(),this.destroyApp(),yield this.render())})}}return r.\u0275fac=function(n){return new(n||r)},r.\u0275cmp=il({type:r,selectors:[["drayman-nebula-internal"]],viewQuery:function(n,o){if(1&n&&(F_(bj,5),F_(_j,5)),2&n){let a;Is(a=kf())&&(o.toolbarEl=a.first),Is(a=kf())&&(o.vizEl=a.first)}},inputs:{qLayout:"qLayout",theme:"theme",onSelections:"onSelections",onVizMethod:"onVizMethod",onGetMeasure:"onGetMeasure",onGetObject:"onGetObject",onSelectFieldValues:"onSelectFieldValues",onFieldSelectPossible:"onFieldSelectPossible",onFieldSelectAll:"onFieldSelectAll",onGetFieldDescription:"onGetFieldDescription",onClearField:"onClearField",nebulaPackagesUrl:"nebulaPackagesUrl"},features:[cl],decls:5,vars:0,consts:[["fxLayout","column",1,"nebula-container"],["toolbar",""],[1,"viz"],["viz",""]],template:function(n,o){1&n&&(Iy(0,"div",0),rf(1,"div",null,1)(3,"div",2,3),gu())},directives:[WF],styles:[".nebula-container[_ngcontent-%COMP%]{width:100%;margin:0;height:100%;min-width:100%;min-height:100%}.viz[_ngcontent-%COMP%]{flex:1}"]}),r})(),xj=(()=>{class r{constructor(n){this.injector=n}ngDoBootstrap(){const n=function YA(r,e){const n=function JL(r,e){return e.get(Cu).resolveComponentFactory(r).inputs}(r,e.injector),o=e.strategyFactory||new lx(r,e.injector),a=function WA(r){const e={};return r.forEach(({propName:n,templateName:o})=>{e[function GA(r){return r.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}(o)]=n}),e}(n);class u extends QA{constructor(g){super(),this.injector=g}get ngElementStrategy(){if(!this._ngElementStrategy){const g=this._ngElementStrategy=o.create(this.injector||e.injector);n.forEach(({propName:v})=>{if(!this.hasOwnProperty(v))return;const x=this[v];delete this[v],g.setInputValue(v,x)})}return this._ngElementStrategy}attributeChangedCallback(g,v,x,R){this.ngElementStrategy.setInputValue(a[g],x)}connectedCallback(){let g=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),g=!0),this.ngElementStrategy.connect(this),g||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(g=>{const v=new CustomEvent(g.name,{detail:g.value});this.dispatchEvent(v)})}}return u.observedAttributes=Object.keys(a),n.forEach(({propName:h})=>{Object.defineProperty(u.prototype,h,{get(){return this.ngElementStrategy.getInputValue(h)},set(g){this.ngElementStrategy.setInputValue(h,g)},configurable:!0,enumerable:!0})}),u}(wj,{injector:this.injector});customElements.define("drayman-nebula",n)}}return r.\u0275fac=function(n){return new(n||r)(he(si))},r.\u0275mod=co({type:r}),r.\u0275inj=Hi({providers:[{provide:_g,useClass:hI}],imports:[[Fw,N5,N4]]}),r})();(function $2(){$D=!1})(),sA().bootstrapModule(xj).catch(r=>console.error(r))})()})();
101
+ `),pv));var gv=P.forwardRef(function(t,i){const s=on({props:t,name:"MuiCircularProgress"}),{className:l,color:c="primary",disableShrink:d=!1,size:f=40,style:p,thickness:m=3.6,value:y=0,variant:b="indeterminate"}=s,_=gt(s,G2),w=ne({},s,{color:c,disableShrink:d,size:f,thickness:m,value:y,variant:b}),S=(D=>{const{classes:k,variant:A,color:M,disableShrink:T}=D;return rn({root:["root",A,`color${Pe(M)}`],svg:["svg"],circle:["circle",`circle${Pe(A)}`,T&&"circleDisableShrink"]},WD,k)})(w),E={},C={},I={};if("determinate"===b){const D=2*Math.PI*((44-m)/2);E.strokeDasharray=D.toFixed(3),I["aria-valuenow"]=Math.round(y),E.strokeDashoffset=`${((100-y)/100*D).toFixed(3)}px`,C.transform="rotate(-90deg)"}return ce.jsx(Y2,ne({className:Ue(S.root,l),style:ne({width:f,height:f},C,p),ownerState:w,ref:i,role:"progressbar"},I,_,{children:ce.jsx(Z2,{className:S.svg,ownerState:w,viewBox:"22 22 44 44",children:ce.jsx(QD,{className:S.circle,style:E,ownerState:w,cx:44,cy:44,r:(44-m)/2,fill:"none",strokeWidth:m})})}))});function rw(t){return cn("MuiModal",t)}Gt("MuiModal",["root","hidden","backdrop"]);const iw=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],X2=De("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,i)=>{const{ownerState:s}=t;return[i.root,!s.open&&s.exited&&i.hidden]}})(({theme:t,ownerState:i})=>ne({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!i.open&&i.exited&&{visibility:"hidden"})),ow=De(F2,{name:"MuiModal",slot:"Backdrop",overridesResolver:(t,i)=>i.backdrop})({zIndex:-1});var mv=P.forwardRef(function(t,i){var s,l,c,d,f,p;const m=on({name:"MuiModal",props:t}),{BackdropComponent:y=ow,BackdropProps:b,className:_,closeAfterTransition:w=!1,children:S,container:E,component:C,components:I={},componentsProps:D={},disableAutoFocus:k=!1,disableEnforceFocus:A=!1,disableEscapeKeyDown:M=!1,disablePortal:T=!1,disableRestoreFocus:O=!1,disableScrollLock:N=!1,hideBackdrop:B=!1,keepMounted:j=!1,onBackdropClick:G,open:Q,slotProps:H,slots:z}=m,K=gt(m,iw),Y=ne({},m,{closeAfterTransition:w,disableAutoFocus:k,disableEnforceFocus:A,disableEscapeKeyDown:M,disablePortal:T,disableRestoreFocus:O,disableScrollLock:N,hideBackdrop:B,keepMounted:j}),{getRootProps:X,getBackdropProps:re,getTransitionProps:q,portalRef:$,isTopModal:W,exited:te,hasTransition:J}=function g2(t){const{container:i,disableEscapeKeyDown:s=!1,disableScrollLock:l=!1,manager:c=Ap,closeAfterTransition:d=!1,onTransitionEnter:f,onTransitionExited:p,children:m,onClose:y,open:b,rootRef:_}=t,w=P.useRef({}),S=P.useRef(null),E=P.useRef(null),C=nr(E,_),[I,D]=P.useState(!b),k=!!(H=m)&&H.props.hasOwnProperty("in");var H;let A=!0;"false"!==t["aria-hidden"]&&!1!==t["aria-hidden"]||(A=!1);const M=()=>(w.current.modalRef=E.current,w.current.mount=S.current,w.current),T=()=>{c.mount(M(),{disableScrollLock:l}),E.current&&(E.current.scrollTop=0)},O=_s(()=>{const H=("function"==typeof(z=i)?z():z)||Rn(S.current).body;var z;c.add(M(),H),E.current&&T()}),N=P.useCallback(()=>c.isTopModal(M()),[c]),B=_s(H=>{S.current=H,H&&(b&&N()?T():E.current&&kp(E.current,A))}),j=P.useCallback(()=>{c.remove(M(),A)},[A,c]);P.useEffect(()=>()=>{j()},[j]),P.useEffect(()=>{b?O():k&&d||j()},[b,j,k,d,O]);const G=H=>z=>{var K;null==(K=H.onKeyDown)||K.call(H,z),"Escape"===z.key&&229!==z.which&&N()&&(s||(z.stopPropagation(),y&&y(z,"escapeKeyDown")))},Q=H=>z=>{var K;null==(K=H.onClick)||K.call(H,z),z.target===z.currentTarget&&y&&y(z,"backdropClick")};return{getRootProps:(H={})=>{const z=iD(t);delete z.onTransitionEnter,delete z.onTransitionExited;const K=Tr({},z,H);return Tr({role:"presentation"},K,{onKeyDown:G(K),ref:C})},getBackdropProps:(H={})=>Tr({"aria-hidden":!0},H,{onClick:Q(H),open:b}),getTransitionProps:()=>({onEnter:Ly(()=>{D(!1),f&&f()},null==m?void 0:m.props.onEnter),onExited:Ly(()=>{D(!0),p&&p(),d&&j()},null==m?void 0:m.props.onExited)}),rootRef:C,portalRef:B,isTopModal:N,exited:I,hasTransition:k}}(ne({},Y,{rootRef:i})),ae=ne({},Y,{exited:te}),ue=(Ne=>{const{open:Oe,exited:qe,classes:Ve}=Ne;return rn({root:["root",!Oe&&qe&&"hidden"],backdrop:["backdrop"]},rw,Ve)})(ae),_e={};if(void 0===S.props.tabIndex&&(_e.tabIndex="-1"),J){const{onEnter:Ne,onExited:Oe}=q();_e.onEnter=Ne,_e.onExited=Oe}const ve=null!=(s=null!=(l=null==z?void 0:z.root)?l:I.Root)?s:X2,Ee=null!=(c=null!=(d=null==z?void 0:z.backdrop)?d:I.Backdrop)?c:y,fe=null!=(f=null==H?void 0:H.root)?f:D.root,we=null!=(p=null==H?void 0:H.backdrop)?p:D.backdrop,pe=Ss({elementType:ve,externalSlotProps:fe,externalForwardedProps:K,getSlotProps:X,additionalProps:{ref:i,as:C},ownerState:ae,className:Ue(_,null==fe?void 0:fe.className,null==ue?void 0:ue.root,!ae.open&&ae.exited&&(null==ue?void 0:ue.hidden))}),ye=Ss({elementType:Ee,externalSlotProps:we,additionalProps:b,getSlotProps:Ne=>re(ne({},Ne,{onClick:Oe=>{G&&G(Oe),null!=Ne&&Ne.onClick&&Ne.onClick(Oe)}})),className:Ue(null==we?void 0:we.className,null==b?void 0:b.className,null==ue?void 0:ue.backdrop),ownerState:ae});return j||Q||J&&!te?ce.jsx(cD,{ref:$,container:E,disablePortal:T,children:ce.jsxs(ve,ne({},pe,{children:[!B&&y?ce.jsx(Ee,ne({},ye)):null,ce.jsx(h2,{disableEnforceFocus:A,disableAutoFocus:k,disableRestoreFocus:O,isEnabled:W,open:Q,children:P.cloneElement(S,_e)})]}))}):null});function VP(t){return cn("MuiDivider",t)}var J2=Gt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const HP=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],$P=De("div",{name:"MuiDivider",slot:"Root",overridesResolver:(t,i)=>{const{ownerState:s}=t;return[i.root,s.absolute&&i.absolute,i[s.variant],s.light&&i.light,"vertical"===s.orientation&&i.vertical,s.flexItem&&i.flexItem,s.children&&i.withChildren,s.children&&"vertical"===s.orientation&&i.withChildrenVertical,"right"===s.textAlign&&"vertical"!==s.orientation&&i.textAlignRight,"left"===s.textAlign&&"vertical"!==s.orientation&&i.textAlignLeft]}})(({theme:t,ownerState:i})=>ne({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin"},i.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},i.light&&{borderColor:t.vars?`rgba(${t.vars.palette.dividerChannel} / 0.08)`:rr(t.palette.divider,.08)},"inset"===i.variant&&{marginLeft:72},"middle"===i.variant&&"horizontal"===i.orientation&&{marginLeft:t.spacing(2),marginRight:t.spacing(2)},"middle"===i.variant&&"vertical"===i.orientation&&{marginTop:t.spacing(1),marginBottom:t.spacing(1)},"vertical"===i.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},i.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:t})=>ne({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:t,ownerState:i})=>ne({},i.children&&"vertical"!==i.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(t.vars||t).palette.divider}`}}),({theme:t,ownerState:i})=>ne({},i.children&&"vertical"===i.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(t.vars||t).palette.divider}`}}),({ownerState:t})=>ne({},"right"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),ZD=De("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(t,i)=>{const{ownerState:s}=t;return[i.wrapper,"vertical"===s.orientation&&i.wrapperVertical]}})(({theme:t,ownerState:i})=>ne({display:"inline-block",paddingLeft:`calc(${t.spacing(1)} * 1.2)`,paddingRight:`calc(${t.spacing(1)} * 1.2)`},"vertical"===i.orientation&&{paddingTop:`calc(${t.spacing(1)} * 1.2)`,paddingBottom:`calc(${t.spacing(1)} * 1.2)`})),XD=P.forwardRef(function(t,i){const s=on({props:t,name:"MuiDivider"}),{absolute:l=!1,children:c,className:d,component:f=(c?"div":"hr"),flexItem:p=!1,light:m=!1,orientation:y="horizontal",role:b=("hr"!==f?"separator":void 0),textAlign:_="center",variant:w="fullWidth"}=s,S=gt(s,HP),E=ne({},s,{absolute:l,component:f,flexItem:p,light:m,orientation:y,role:b,textAlign:_,variant:w}),C=(I=>{const{absolute:D,children:k,classes:A,flexItem:M,light:T,orientation:O,textAlign:N,variant:B}=I;return rn({root:["root",D&&"absolute",B,T&&"light","vertical"===O&&"vertical",M&&"flexItem",k&&"withChildren",k&&"vertical"===O&&"withChildrenVertical","right"===N&&"vertical"!==O&&"textAlignRight","left"===N&&"vertical"!==O&&"textAlignLeft"],wrapper:["wrapper","vertical"===O&&"wrapperVertical"]},VP,A)})(E);return ce.jsx($P,ne({as:f,className:Ue(C.root,d),role:b,ref:i,ownerState:E},S,{children:c?ce.jsx(ZD,{className:C.wrapper,ownerState:E,children:c}):null}))});XD.muiSkipListHighlight=!0;var eT=XD,tT=function(t={}){const{createStyledComponent:i=xM,useThemeProps:s=SM,componentName:l="MuiStack"}=t,c=i(CM);return P.forwardRef(function(f,p){const m=af(s(f)),{component:y="div",direction:b="column",spacing:_=0,divider:w,children:S,className:E,useFlexGap:C=!1}=m,I=$l(m,_M),D={direction:b,spacing:_,useFlexGap:C},k=rn({root:["root"]},A=>cn(l,A),{});return ce.jsx(c,Sn({as:y,ownerState:D,ref:p,className:Ue(k.root,E)},I,{children:w?EM(S,w):S}))})}({createStyledComponent:De("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,i)=>i.root}),useThemeProps:t=>on({props:t,name:"MuiStack"})});function JD(t){return cn("MuiFormControlLabel",t)}var Of=Gt("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);const ek=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],nT=De("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(t,i)=>{const{ownerState:s}=t;return[{[`& .${Of.label}`]:i.label},i.root,i[`labelPlacement${Pe(s.labelPlacement)}`]]}})(({theme:t,ownerState:i})=>ne({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Of.disabled}`]:{cursor:"default"}},"start"===i.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===i.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===i.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${Of.label}`]:{[`&.${Of.disabled}`]:{color:(t.vars||t).palette.text.disabled}}})),rT=De("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(t,i)=>i.asterisk})(({theme:t})=>({[`&.${Of.error}`]:{color:(t.vars||t).palette.error.main}}));var zp=P.forwardRef(function(t,i){var s,l;const c=on({props:t,name:"MuiFormControlLabel"}),{className:d,componentsProps:f={},control:p,disabled:m,disableTypography:y,label:b,labelPlacement:_="end",required:w,slotProps:S={}}=c,E=gt(c,ek),C=ns(),I=null!=(s=null!=m?m:p.props.disabled)?s:null==C?void 0:C.disabled,D=null!=w?w:p.props.required,k={disabled:I,required:D};["checked","name","onChange","value","inputRef"].forEach(B=>{void 0===p.props[B]&&void 0!==c[B]&&(k[B]=c[B])});const A=TD({props:c,muiFormControl:C,states:["error"]}),M=ne({},c,{disabled:I,labelPlacement:_,required:D,error:A.error}),T=(B=>{const{classes:j,disabled:G,labelPlacement:Q,error:H,required:z}=B;return rn({root:["root",G&&"disabled",`labelPlacement${Pe(Q)}`,H&&"error",z&&"required"],label:["label",G&&"disabled"],asterisk:["asterisk",H&&"error"]},JD,j)})(M),O=null!=(l=S.typography)?l:f.typography;let N=b;return null==N||N.type===En||y||(N=ce.jsx(En,ne({component:"span"},O,{className:Ue(T.label,null==O?void 0:O.className),children:N}))),ce.jsxs(nT,ne({className:Ue(T.root,d),ownerState:M,ref:i},E,{children:[P.cloneElement(p,k),D?ce.jsxs(tT,{display:"block",children:[N,ce.jsxs(rT,{ownerState:M,"aria-hidden":!0,className:T.asterisk,children:["\u2009","*"]})]}):N]}))}),oT=P.createContext();function tk(t){return cn("MuiGrid",t)}const Os=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],qp=Gt("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map(t=>`spacing-xs-${t}`),...["column-reverse","column","row-reverse","row"].map(t=>`direction-xs-${t}`),...["nowrap","wrap-reverse","wrap"].map(t=>`wrap-xs-${t}`),...Os.map(t=>`grid-xs-${t}`),...Os.map(t=>`grid-sm-${t}`),...Os.map(t=>`grid-md-${t}`),...Os.map(t=>`grid-lg-${t}`),...Os.map(t=>`grid-xl-${t}`)]),sT=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Vp(t){const i=parseFloat(t);return`${i}${String(t).replace(String(i),"")||"px"}`}function aT({breakpoints:t,values:i}){let s="";Object.keys(i).forEach(c=>{""===s&&0!==i[c]&&(s=c)});const l=Object.keys(t).sort((c,d)=>t[c]-t[d]);return l.slice(0,l.indexOf(s))}const lT=De("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,i)=>{const{ownerState:s}=t,{container:l,direction:c,item:d,spacing:f,wrap:p,zeroMinWidth:m,breakpoints:y}=s;let b=[];l&&(b=function(w,S,E={}){if(!w||w<=0)return[];if("string"==typeof w&&!Number.isNaN(Number(w))||"number"==typeof w)return[E[`spacing-xs-${String(w)}`]];const C=[];return S.forEach(I=>{const D=w[I];Number(D)>0&&C.push(E[`spacing-${I}-${String(D)}`])}),C}(f,y,i));const _=[];return y.forEach(w=>{const S=s[w];S&&_.push(i[`grid-${w}-${String(S)}`])}),[i.root,l&&i.container,d&&i.item,m&&i.zeroMinWidth,...b,"row"!==c&&i[`direction-xs-${String(c)}`],"wrap"!==p&&i[`wrap-xs-${String(p)}`],..._]}})(({ownerState:t})=>ne({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},"wrap"!==t.wrap&&{flexWrap:t.wrap}),function({theme:t,ownerState:i}){return wi({theme:t},tf({values:i.direction,breakpoints:t.breakpoints.values}),s=>{const l={flexDirection:s};return 0===s.indexOf("column")&&(l[`& > .${qp.item}`]={maxWidth:"none"}),l})},function({theme:t,ownerState:i}){const{container:s,rowSpacing:l}=i;let c={};if(s&&0!==l){const d=tf({values:l,breakpoints:t.breakpoints.values});let f;"object"==typeof d&&(f=aT({breakpoints:t.breakpoints.values,values:d})),c=wi({theme:t},d,(p,m)=>{var y;const b=t.spacing(p);return"0px"!==b?{marginTop:`-${Vp(b)}`,[`& > .${qp.item}`]:{paddingTop:Vp(b)}}:null!=(y=f)&&y.includes(m)?{}:{marginTop:0,[`& > .${qp.item}`]:{paddingTop:0}}})}return c},function({theme:t,ownerState:i}){const{container:s,columnSpacing:l}=i;let c={};if(s&&0!==l){const d=tf({values:l,breakpoints:t.breakpoints.values});let f;"object"==typeof d&&(f=aT({breakpoints:t.breakpoints.values,values:d})),c=wi({theme:t},d,(p,m)=>{var y;const b=t.spacing(p);return"0px"!==b?{width:`calc(100% + ${Vp(b)})`,marginLeft:`-${Vp(b)}`,[`& > .${qp.item}`]:{paddingLeft:Vp(b)}}:null!=(y=f)&&y.includes(m)?{}:{width:"100%",marginLeft:0,[`& > .${qp.item}`]:{paddingLeft:0}}})}return c},function({theme:t,ownerState:i}){let s;return t.breakpoints.keys.reduce((l,c)=>{let d={};if(i[c]&&(s=i[c]),!s)return l;if(!0===s)d={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===s)d={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const f=tf({values:i.columns,breakpoints:t.breakpoints.values}),p="object"==typeof f?f[c]:f;if(null==p)return l;const m=Math.round(s/p*1e8)/1e6+"%";let y={};if(i.container&&i.item&&0!==i.columnSpacing){const b=t.spacing(i.columnSpacing);if("0px"!==b){const _=`calc(${m} + ${Vp(b)})`;y={flexBasis:_,maxWidth:_}}}d=ne({flexBasis:m,flexGrow:0,maxWidth:m},y)}return 0===t.breakpoints.values[c]?Object.assign(l,d):l[t.breakpoints.up(c)]=d,l},{})});var Te=P.forwardRef(function(t,i){const s=on({props:t,name:"MuiGrid"}),{breakpoints:l}=Wr(),c=af(s),{className:d,columns:f,columnSpacing:p,component:m="div",container:y=!1,direction:b="row",item:_=!1,rowSpacing:w,spacing:S=0,wrap:E="wrap",zeroMinWidth:C=!1}=c,I=gt(c,sT),D=w||S,k=p||S,A=P.useContext(oT),M=y?f||12:A,T={},O=ne({},I);l.keys.forEach(j=>{null!=I[j]&&(T[j]=I[j],delete O[j])});const N=ne({},c,{columns:M,container:y,direction:b,item:_,rowSpacing:D,columnSpacing:k,wrap:E,zeroMinWidth:C,spacing:S},T,{breakpoints:l.keys}),B=(t=>{const{classes:i,container:s,direction:l,item:c,spacing:d,wrap:f,zeroMinWidth:p,breakpoints:m}=t;let y=[];s&&(y=function(_,w){if(!_||_<=0)return[];if("string"==typeof _&&!Number.isNaN(Number(_))||"number"==typeof _)return[`spacing-xs-${String(_)}`];const S=[];return w.forEach(E=>{const C=_[E];if(Number(C)>0){const I=`spacing-${E}-${String(C)}`;S.push(I)}}),S}(d,m));const b=[];return m.forEach(_=>{const w=t[_];w&&b.push(`grid-${_}-${String(w)}`)}),rn({root:["root",s&&"container",c&&"item",p&&"zeroMinWidth",...y,"row"!==l&&`direction-xs-${String(l)}`,"wrap"!==f&&`wrap-xs-${String(f)}`,...b]},tk,i)})(N);return ce.jsx(oT.Provider,{value:M,children:ce.jsx(lT,ne({ownerState:N,className:Ue(B.root,d),as:m,ref:i},O))})});const UP=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function nk(t){return`scale(${t}, ${os(t,2)})`}const WP={entering:{opacity:1,transform:nk(1)},entered:{opacity:1,transform:"none"}},sw="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),uT=P.forwardRef(function(t,i){const{addEndListener:s,appear:l=!0,children:c,easing:d,in:f,onEnter:p,onEntered:m,onEntering:y,onExit:b,onExited:_,onExiting:w,style:S,timeout:E="auto",TransitionComponent:C=Ky}=t,I=gt(t,UP),D=yu(),k=P.useRef(),A=Wr(),M=P.useRef(null),T=nr(M,c.ref,i),O=z=>K=>{if(z){const Y=M.current;void 0===K?z(Y):z(Y,K)}},N=O(y),B=O((z,K)=>{eD(z);const{duration:Y,delay:X,easing:re}=k_({style:S,timeout:E,easing:d},{mode:"enter"});let q;"auto"===E?(q=A.transitions.getAutoHeightDuration(z.clientHeight),k.current=q):q=Y,z.style.transition=[A.transitions.create("opacity",{duration:q,delay:X}),A.transitions.create("transform",{duration:sw?q:.666*q,delay:X,easing:re})].join(","),p&&p(z,K)}),j=O(m),G=O(w),Q=O(z=>{const{duration:K,delay:Y,easing:X}=k_({style:S,timeout:E,easing:d},{mode:"exit"});let re;"auto"===E?(re=A.transitions.getAutoHeightDuration(z.clientHeight),k.current=re):re=K,z.style.transition=[A.transitions.create("opacity",{duration:re,delay:Y}),A.transitions.create("transform",{duration:sw?re:.666*re,delay:sw?Y:Y||.333*re,easing:X})].join(","),z.style.opacity=0,z.style.transform=nk(.75),b&&b(z)}),H=O(_);return ce.jsx(C,ne({appear:l,in:f,nodeRef:M,onEnter:B,onEntered:j,onEntering:N,onExit:Q,onExited:H,onExiting:G,addEndListener:z=>{"auto"===E&&D.start(k.current||0,z),s&&s(M.current,z)},timeout:"auto"===E?null:E},I,{children:(z,K)=>P.cloneElement(c,ne({style:ne({opacity:0,transform:nk(.75),visibility:"exited"!==z||f?void 0:"hidden"},WP[z],S,c.props.style),ref:T},K))}))});uT.muiSupportAuto=!0;var rk=uT;function KP(t){return cn("MuiIcon",t)}Gt("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const QP=["baseClassName","className","color","component","fontSize"],yv=De("span",{name:"MuiIcon",slot:"Root",overridesResolver:(t,i)=>{const{ownerState:s}=t;return[i.root,"inherit"!==s.color&&i[`color${Pe(s.color)}`],i[`fontSize${Pe(s.fontSize)}`]]}})(({theme:t,ownerState:i})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:t.typography.pxToRem(20),medium:t.typography.pxToRem(24),large:t.typography.pxToRem(36)}[i.fontSize],color:{primary:(t.vars||t).palette.primary.main,secondary:(t.vars||t).palette.secondary.main,info:(t.vars||t).palette.info.main,success:(t.vars||t).palette.success.main,warning:(t.vars||t).palette.warning.main,action:(t.vars||t).palette.action.active,error:(t.vars||t).palette.error.main,disabled:(t.vars||t).palette.action.disabled,inherit:void 0}[i.color]})),Wa=P.forwardRef(function(t,i){const s=on({props:t,name:"MuiIcon"}),{baseClassName:l="material-icons",className:c,color:d="inherit",component:f="span",fontSize:p="medium"}=s,m=gt(s,QP),y=ne({},s,{baseClassName:l,color:d,component:f,fontSize:p}),b=(_=>{const{color:w,fontSize:S,classes:E}=_;return rn({root:["root","inherit"!==w&&`color${Pe(w)}`,`fontSize${Pe(S)}`]},KP,E)})(y);return ce.jsx(yv,ne({as:f,className:Ue(l,"notranslate",b.root,c),ownerState:y,"aria-hidden":!0,ref:i},m))});Wa.muiName="Icon";var YP=Wa;function dT(t){return cn("MuiInputAdornment",t)}var ik,en=Gt("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);const Hp=["children","className","component","disablePointerEvents","disableTypography","position","variant"],fT=De("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(t,i)=>{const{ownerState:s}=t;return[i.root,i[`position${Pe(s.position)}`],!0===s.disablePointerEvents&&i.disablePointerEvents,i[s.variant]]}})(({theme:t,ownerState:i})=>ne({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active},"filled"===i.variant&&{[`&.${en.positionStart}&:not(.${en.hiddenLabel})`]:{marginTop:16}},"start"===i.position&&{marginRight:8},"end"===i.position&&{marginLeft:8},!0===i.disablePointerEvents&&{pointerEvents:"none"}));var ok=P.forwardRef(function(t,i){const s=on({props:t,name:"MuiInputAdornment"}),{children:l,className:c,component:d="div",disablePointerEvents:f=!1,disableTypography:p=!1,position:m,variant:y}=s,b=gt(s,Hp),_=ns()||{};let w=y;_&&!w&&(w=_.variant);const S=ne({},s,{hiddenLabel:_.hiddenLabel,size:_.size,disablePointerEvents:f,position:m,variant:w}),E=(C=>{const{classes:I,disablePointerEvents:D,hiddenLabel:k,position:A,size:M,variant:T}=C;return rn({root:["root",D&&"disablePointerEvents",A&&`position${Pe(A)}`,T,k&&"hiddenLabel",M&&`size${Pe(M)}`]},dT,I)})(S);return ce.jsx(K_.Provider,{value:null,children:ce.jsx(fT,ne({as:d,ownerState:S,className:Ue(E.root,c),ref:i},b,{children:"string"!=typeof l||p?ce.jsxs(P.Fragment,{children:["start"===m?ik||(ik=ce.jsx("span",{className:"notranslate",children:"\u200b"})):null,l]}):ce.jsx(En,{color:"text.secondary",children:l})}))})}),Ka=P.createContext({});function hT(t){return cn("MuiList",t)}Gt("MuiList",["root","padding","dense","subheader"]);const sk=["children","className","component","dense","disablePadding","subheader"],ak=De("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,i)=>{const{ownerState:s}=t;return[i.root,!s.disablePadding&&i.padding,s.dense&&i.dense,s.subheader&&i.subheader]}})(({ownerState:t})=>ne({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0}));var $p=P.forwardRef(function(t,i){const s=on({props:t,name:"MuiList"}),{children:l,className:c,component:d="ul",dense:f=!1,disablePadding:p=!1,subheader:m}=s,y=gt(s,sk),b=P.useMemo(()=>({dense:f}),[f]),_=ne({},s,{component:d,dense:f,disablePadding:p}),w=(S=>{const{classes:E,disablePadding:C,dense:I,subheader:D}=S;return rn({root:["root",!C&&"padding",I&&"dense",D&&"subheader"]},hT,E)})(_);return ce.jsx(Ka.Provider,{value:b,children:ce.jsxs(ak,ne({as:d,className:Ue(w.root,c),ref:i,ownerState:_},y,{children:[m,l]}))})});function pT(t){return cn("MuiListItem",t)}var Pf=Gt("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),gT=Gt("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function ZP(t){return cn("MuiListItemSecondaryAction",t)}Gt("MuiListItemSecondaryAction",["root","disableGutters"]);const lk=["className"],mT=De("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(t,i)=>{const{ownerState:s}=t;return[i.root,s.disableGutters&&i.disableGutters]}})(({ownerState:t})=>ne({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},t.disableGutters&&{right:0})),ck=P.forwardRef(function(t,i){const s=on({props:t,name:"MuiListItemSecondaryAction"}),{className:l}=s,c=gt(s,lk),d=ne({},s,{disableGutters:P.useContext(Ka).disableGutters}),f=(p=>{const{disableGutters:m,classes:y}=p;return rn({root:["root",m&&"disableGutters"]},ZP,y)})(d);return ce.jsx(mT,ne({className:Ue(f.root,l),ownerState:d,ref:i},c))});ck.muiName="ListItemSecondaryAction";var uk=ck;const dk=["className"],to=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Or=De("div",{name:"MuiListItem",slot:"Root",overridesResolver:(t,i)=>{const{ownerState:s}=t;return[i.root,s.dense&&i.dense,"flex-start"===s.alignItems&&i.alignItemsFlexStart,s.divider&&i.divider,!s.disableGutters&&i.gutters,!s.disablePadding&&i.padding,s.button&&i.button,s.hasSecondaryAction&&i.secondaryAction]}})(({theme:t,ownerState:i})=>ne({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!i.disablePadding&&ne({paddingTop:8,paddingBottom:8},i.dense&&{paddingTop:4,paddingBottom:4},!i.disableGutters&&{paddingLeft:16,paddingRight:16},!!i.secondaryAction&&{paddingRight:48}),!!i.secondaryAction&&{[`& > .${gT.root}`]:{paddingRight:48}},{[`&.${Pf.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Pf.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:rr(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${Pf.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:rr(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${Pf.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"flex-start"===i.alignItems&&{alignItems:"flex-start"},i.divider&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"},i.button&&{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Pf.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:rr(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:rr(t.palette.primary.main,t.palette.action.selectedOpacity)}}},i.hasSecondaryAction&&{paddingRight:48})),mr=De("li",{name:"MuiListItem",slot:"Container",overridesResolver:(t,i)=>i.container})({position:"relative"});var Mn=P.forwardRef(function(t,i){const s=on({props:t,name:"MuiListItem"}),{alignItems:l="center",autoFocus:c=!1,button:d=!1,children:f,className:p,component:m,components:y={},componentsProps:b={},ContainerComponent:_="li",ContainerProps:{className:w}={},dense:S=!1,disabled:E=!1,disableGutters:C=!1,disablePadding:I=!1,divider:D=!1,focusVisibleClassName:k,secondaryAction:A,selected:M=!1,slotProps:T={},slots:O={}}=s,N=gt(s.ContainerProps,dk),B=gt(s,to),j=P.useContext(Ka),G=P.useMemo(()=>({dense:S||j.dense||!1,alignItems:l,disableGutters:C}),[l,j.dense,S,C]),Q=P.useRef(null);Eo(()=>{c&&Q.current&&Q.current.focus()},[c]);const H=P.Children.toArray(f),z=H.length&&Xo(H[H.length-1],["ListItemSecondaryAction"]),K=ne({},s,{alignItems:l,autoFocus:c,button:d,dense:G.dense,disabled:E,disableGutters:C,disablePadding:I,divider:D,hasSecondaryAction:z,selected:M}),Y=(te=>{const{alignItems:J,button:ae,classes:ue,dense:_e,disabled:ve,disableGutters:Ee,disablePadding:fe,divider:we,hasSecondaryAction:pe,selected:ye}=te;return rn({root:["root",_e&&"dense",!Ee&&"gutters",!fe&&"padding",we&&"divider",ve&&"disabled",ae&&"button","flex-start"===J&&"alignItemsFlexStart",pe&&"secondaryAction",ye&&"selected"],container:["container"]},pT,ue)})(K),X=nr(Q,i),re=O.root||y.Root||Or,q=T.root||b.root||{},$=ne({className:Ue(Y.root,q.className,p),disabled:E},B);let W=m||"li";return d&&($.component=m||"div",$.focusVisibleClassName=Ue(Pf.focusVisible,k),W=bf),z?(W=$.component||m?W:"div","li"===_&&("li"===W?W="div":"li"===$.component&&($.component="div")),ce.jsx(Ka.Provider,{value:G,children:ce.jsxs(mr,ne({as:_,className:Ue(Y.container,w),ref:X,ownerState:K},N,{children:[ce.jsx(re,ne({},q,!xf(re)&&{as:W,ownerState:ne({},K,q.ownerState)},$,{children:H})),H.pop()]}))})):ce.jsx(Ka.Provider,{value:G,children:ce.jsxs(re,ne({},q,{as:W,ref:X},!xf(re)&&{ownerState:ne({},K,q.ownerState)},$,{children:[H,A&&ce.jsx(uk,{children:A})]}))})});function We(t){return cn("MuiListItemIcon",t)}var yT=Gt("MuiListItemIcon",["root","alignItemsFlexStart"]);const vT=["className"],bT=De("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(t,i)=>{const{ownerState:s}=t;return[i.root,"flex-start"===s.alignItems&&i.alignItemsFlexStart]}})(({theme:t,ownerState:i})=>ne({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===i.alignItems&&{marginTop:8}));var _T=P.forwardRef(function(t,i){const s=on({props:t,name:"MuiListItemIcon"}),{className:l}=s,c=gt(s,vT),d=ne({},s,{alignItems:P.useContext(Ka).alignItems}),f=(p=>{const{alignItems:m,classes:y}=p;return rn({root:["root","flex-start"===m&&"alignItemsFlexStart"]},We,y)})(d);return ce.jsx(bT,ne({className:Ue(f.root,l),ownerState:d,ref:i},c))}),fk=Gt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const JP=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function hk(t,i,s){return t===i?t.firstChild:i&&i.nextElementSibling?i.nextElementSibling:s?null:t.firstChild}function Gp(t,i,s){return t===i?s?t.firstChild:t.lastChild:i&&i.previousElementSibling?i.previousElementSibling:s?null:t.lastChild}function Up(t,i){if(void 0===i)return!0;let s=t.innerText;return void 0===s&&(s=t.textContent),s=s.trim().toLowerCase(),0!==s.length&&(i.repeating?s[0]===i.keys[0]:0===s.indexOf(i.keys.join("")))}function Jl(t,i,s,l,c,d){let f=!1,p=c(t,i,!!i&&s);for(;p;){if(p===t.firstChild){if(f)return!1;f=!0}const m=!l&&(p.disabled||"true"===p.getAttribute("aria-disabled"));if(p.hasAttribute("tabindex")&&Up(p,d)&&!m)return p.focus(),!0;p=c(t,p,s)}return!1}var aw=P.forwardRef(function(t,i){const{actions:s,autoFocus:l=!1,autoFocusItem:c=!1,children:d,className:f,disabledItemsFocusable:p=!1,disableListWrap:m=!1,onKeyDown:y,variant:b="selectedMenu"}=t,_=gt(t,JP),w=P.useRef(null),S=P.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Eo(()=>{l&&w.current.focus()},[l]),P.useImperativeHandle(s,()=>({adjustStyleForScrollbar:(D,k)=>{if(D.clientHeight<w.current.clientHeight&&!w.current.style.width){const M=`${o_(Rn(D))}px`;w.current.style["rtl"===k.direction?"paddingLeft":"paddingRight"]=M,w.current.style.width=`calc(100% + ${M})`}return w.current}}),[]);const E=nr(w,i);let C=-1;P.Children.forEach(d,(D,k)=>{P.isValidElement(D)?(D.props.disabled||("selectedMenu"===b&&D.props.selected||-1===C)&&(C=k),C===k&&(D.props.disabled||D.props.muiSkipListHighlight||D.type.muiSkipListHighlight)&&(C+=1,C>=d.length&&(C=-1))):C===k&&(C+=1,C>=d.length&&(C=-1))});const I=P.Children.map(d,(D,k)=>{if(k===C){const A={};return c&&(A.autoFocus=!0),void 0===D.props.tabIndex&&"selectedMenu"===b&&(A.tabIndex=0),P.cloneElement(D,A)}return D});return ce.jsx($p,ne({role:"menu",ref:E,className:f,onKeyDown:D=>{const k=w.current,A=D.key,M=Rn(k).activeElement;if("ArrowDown"===A)D.preventDefault(),Jl(k,M,m,p,hk);else if("ArrowUp"===A)D.preventDefault(),Jl(k,M,m,p,Gp);else if("Home"===A)D.preventDefault(),Jl(k,null,m,p,hk);else if("End"===A)D.preventDefault(),Jl(k,null,m,p,Gp);else if(1===A.length){const T=S.current,O=A.toLowerCase(),N=performance.now();T.keys.length>0&&(N-T.lastTime>500?(T.keys=[],T.repeating=!0,T.previousKeyMatched=!0):T.repeating&&O!==T.keys[0]&&(T.repeating=!1)),T.lastTime=N,T.keys.push(O);const B=M&&!T.repeating&&Up(M,T);T.previousKeyMatched&&(B||Jl(k,M,!1,p,hk,T))?D.preventDefault():T.previousKeyMatched=!1}y&&y(D)},tabIndex:l?0:-1},_,{children:I}))});function eN(t){return cn("MuiPopover",t)}Gt("MuiPopover",["root","paper"]);const tN=["onEntering"],nN=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],wT=["slotProps"];function pk(t,i){let s=0;return"number"==typeof i?s=i:"center"===i?s=t.height/2:"bottom"===i&&(s=t.height),s}function lw(t,i){let s=0;return"number"==typeof i?s=i:"center"===i?s=t.width/2:"right"===i&&(s=t.width),s}function gk(t){return[t.horizontal,t.vertical].map(i=>"number"==typeof i?`${i}px`:i).join(" ")}function cw(t){return"function"==typeof t?t():t}const rN=De(mv,{name:"MuiPopover",slot:"Root",overridesResolver:(t,i)=>i.root})({}),rs=De(A_,{name:"MuiPopover",slot:"Paper",overridesResolver:(t,i)=>i.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0});var Wp=P.forwardRef(function(t,i){var s,l,c;const d=on({props:t,name:"MuiPopover"}),{action:f,anchorEl:p,anchorOrigin:m={vertical:"top",horizontal:"left"},anchorPosition:y,anchorReference:b="anchorEl",children:_,className:w,container:S,elevation:E=8,marginThreshold:C=16,open:I,PaperProps:D={},slots:k,slotProps:A,transformOrigin:M={vertical:"top",horizontal:"left"},TransitionComponent:T=rk,transitionDuration:O="auto",TransitionProps:{onEntering:N}={},disableScrollLock:B=!1}=d,j=gt(d.TransitionProps,tN),G=gt(d,nN),Q=null!=(s=null==A?void 0:A.paper)?s:D,H=P.useRef(),z=nr(H,Q.ref),K=ne({},d,{anchorOrigin:m,anchorReference:b,elevation:E,marginThreshold:C,externalPaperSlotProps:Q,transformOrigin:M,TransitionComponent:T,transitionDuration:O,TransitionProps:j}),Y=(pe=>{const{classes:ye}=pe;return rn({root:["root"],paper:["paper"]},eN,ye)})(K),X=P.useCallback(()=>{if("anchorPosition"===b)return y;const pe=cw(p),ye=(pe&&1===pe.nodeType?pe:Rn(H.current).body).getBoundingClientRect();return{top:ye.top+pk(ye,m.vertical),left:ye.left+lw(ye,m.horizontal)}},[p,m.horizontal,m.vertical,y,b]),re=P.useCallback(pe=>({vertical:pk(pe,M.vertical),horizontal:lw(pe,M.horizontal)}),[M.horizontal,M.vertical]),q=P.useCallback(pe=>{const ye={width:pe.offsetWidth,height:pe.offsetHeight},Ne=re(ye);if("none"===b)return{top:null,left:null,transformOrigin:gk(Ne)};const Oe=X();let qe=Oe.top-Ne.vertical,Ve=Oe.left-Ne.horizontal;const lt=qe+ye.height,xe=Ve+ye.width,Ke=Va(cw(p)),Xe=Ke.innerHeight-C,Tt=Ke.innerWidth-C;if(null!==C&&qe<C){const Je=qe-C;qe-=Je,Ne.vertical+=Je}else if(null!==C&&lt>Xe){const Je=lt-Xe;qe-=Je,Ne.vertical+=Je}if(null!==C&&Ve<C){const Je=Ve-C;Ve-=Je,Ne.horizontal+=Je}else if(xe>Tt){const Je=xe-Tt;Ve-=Je,Ne.horizontal+=Je}return{top:`${Math.round(qe)}px`,left:`${Math.round(Ve)}px`,transformOrigin:gk(Ne)}},[p,b,X,re,C]),[$,W]=P.useState(I),te=P.useCallback(()=>{const pe=H.current;if(!pe)return;const ye=q(pe);null!==ye.top&&(pe.style.top=ye.top),null!==ye.left&&(pe.style.left=ye.left),pe.style.transformOrigin=ye.transformOrigin,W(!0)},[q]);P.useEffect(()=>(B&&window.addEventListener("scroll",te),()=>window.removeEventListener("scroll",te)),[p,B,te]),P.useEffect(()=>{I&&te()}),P.useImperativeHandle(f,()=>I?{updatePosition:()=>{te()}}:null,[I,te]),P.useEffect(()=>{if(!I)return;const pe=Zo(()=>{te()}),ye=Va(p);return ye.addEventListener("resize",pe),()=>{pe.clear(),ye.removeEventListener("resize",pe)}},[p,I,te]);let J=O;"auto"!==O||T.muiSupportAuto||(J=void 0);const ae=S||(p?Rn(cw(p)).body:void 0),ue=null!=(l=null==k?void 0:k.root)?l:rN,_e=null!=(c=null==k?void 0:k.paper)?c:rs,ve=Ss({elementType:_e,externalSlotProps:ne({},Q,{style:$?Q.style:ne({},Q.style,{opacity:0})}),additionalProps:{elevation:E,ref:z},ownerState:K,className:Ue(Y.paper,null==Q?void 0:Q.className)}),Ee=Ss({elementType:ue,externalSlotProps:(null==A?void 0:A.root)||{},externalForwardedProps:G,additionalProps:{ref:i,slotProps:{backdrop:{invisible:!0}},container:ae,open:I},ownerState:K,className:Ue(Y.root,w)}),{slotProps:fe}=Ee,we=gt(Ee,wT);return ce.jsx(ue,ne({},we,!xf(ue)&&{slotProps:fe,disableScrollLock:B},{children:ce.jsx(T,ne({appear:!0,in:I,onEntering:(pe,ye)=>{N&&N(pe,ye),te()},onExited:()=>{W(!1)},timeout:J},j,{children:ce.jsx(_e,ne({},ve,{children:_}))}))}))});function xT(t){return cn("MuiMenuItem",t)}var Kp=Gt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const ST=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Qp=De(bf,{shouldForwardProp:t=>ws(t)||"classes"===t,name:"MuiMenuItem",slot:"Root",overridesResolver:(t,i)=>{const{ownerState:s}=t;return[i.root,s.dense&&i.dense,s.divider&&i.divider,!s.disableGutters&&i.gutters]}})(({theme:t,ownerState:i})=>ne({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!i.disableGutters&&{paddingLeft:16,paddingRight:16},i.divider&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Kp.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:rr(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${Kp.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:rr(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${Kp.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:rr(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:rr(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${Kp.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Kp.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${J2.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${J2.inset}`]:{marginLeft:52},[`& .${fk.root}`]:{marginTop:0,marginBottom:0},[`& .${fk.inset}`]:{paddingLeft:36},[`& .${yT.root}`]:{minWidth:36}},!i.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},i.dense&&ne({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{[`& .${yT.root} svg`]:{fontSize:"1.25rem"}})));var Lr,tt=P.forwardRef(function(t,i){const s=on({props:t,name:"MuiMenuItem"}),{autoFocus:l=!1,component:c="li",dense:d=!1,divider:f=!1,disableGutters:p=!1,focusVisibleClassName:m,role:y="menuitem",tabIndex:b,className:_}=s,w=gt(s,ST),S=P.useContext(Ka),E=P.useMemo(()=>({dense:d||S.dense||!1,disableGutters:p}),[S.dense,d,p]),C=P.useRef(null);Eo(()=>{l&&C.current&&C.current.focus()},[l]);const I=ne({},s,{dense:E.dense,divider:f,disableGutters:p}),D=(M=>{const{disabled:T,dense:O,divider:N,disableGutters:B,selected:j,classes:G}=M;return ne({},G,rn({root:["root",O&&"dense",T&&"disabled",!B&&"gutters",N&&"divider",j&&"selected"]},xT,G))})(s),k=nr(C,i);let A;return s.disabled||(A=void 0!==b?b:-1),ce.jsx(Ka.Provider,{value:E,children:ce.jsx(Qp,ne({ref:k,role:y,tabIndex:A,component:c,focusVisibleClassName:Ue(D.focusVisible,m),className:Ue(D.root,_)},w,{ownerState:I,classes:D}))})});const vt=["children","classes","className","label","notched"],CT=De("fieldset",{shouldForwardProp:ws})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),vv=De("legend",{shouldForwardProp:ws})(({ownerState:t,theme:i})=>ne({float:"unset",width:"auto",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:i.transitions.create("width",{duration:150,easing:i.transitions.easing.easeOut})},t.withLabel&&ne({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:i.transitions.create("max-width",{duration:50,easing:i.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:i.transitions.create("max-width",{duration:100,easing:i.transitions.easing.easeOut,delay:50})}))),Qa=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],bv=De(T2,{shouldForwardProp:t=>ws(t)||"classes"===t,name:"MuiOutlinedInput",slot:"Root",overridesResolver:M2})(({theme:t,ownerState:i})=>ne({position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${ca.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${ca.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:"light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}},[`&.${ca.focused} .${ca.notchedOutline}`]:{borderColor:(t.vars||t).palette[i.color].main,borderWidth:2},[`&.${ca.error} .${ca.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${ca.disabled} .${ca.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}},i.startAdornment&&{paddingLeft:14},i.endAdornment&&{paddingRight:14},i.multiline&&ne({padding:"16.5px 14px"},"small"===i.size&&{padding:"8.5px 14px"}))),Ps=De(function(t){const{className:i,label:s,notched:l}=t,c=gt(t,vt),d=null!=s&&""!==s,f=ne({},t,{notched:l,withLabel:d});return ce.jsx(CT,ne({"aria-hidden":!0,className:i,ownerState:f},c,{children:ce.jsx(vv,{ownerState:f,children:d?ce.jsx("span",{children:s}):Lr||(Lr=ce.jsx("span",{className:"notranslate",children:"\u200b"}))})}))},{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,i)=>i.notchedOutline})(({theme:t})=>({borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:"light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"})),DT=De(LD,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:OD})(({theme:t,ownerState:i})=>ne({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===i.size&&{padding:"8.5px 14px"},i.multiline&&{padding:0},i.startAdornment&&{paddingLeft:0},i.endAdornment&&{paddingRight:0})),yr=P.forwardRef(function(t,i){var s,l,c,d,f;const p=on({props:t,name:"MuiOutlinedInput"}),{components:m={},fullWidth:y=!1,inputComponent:b="input",label:_,multiline:w=!1,notched:S,slots:E={},type:C="text"}=p,I=gt(p,Qa),D=(N=>{const{classes:B}=N;return ne({},B,rn({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},O2,B))})(p),k=ns(),A=TD({props:p,muiFormControl:k,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),M=ne({},p,{color:A.color||"primary",disabled:A.disabled,error:A.error,focused:A.focused,formControl:k,fullWidth:y,hiddenLabel:A.hiddenLabel,multiline:w,size:A.size,type:C}),T=null!=(s=null!=(l=E.root)?l:m.Root)?s:bv,O=null!=(c=null!=(d=E.input)?d:m.Input)?c:DT;return ce.jsx(Hn,ne({slots:{root:T,input:O},renderSuffix:N=>ce.jsx(Ps,{ownerState:M,className:D.notchedOutline,label:null!=_&&""!==_&&A.required?f||(f=ce.jsxs(P.Fragment,{children:[_,"\u2009","*"]})):_,notched:void 0!==S?S:Boolean(N.startAdornment||N.filled||N.focused)}),fullWidth:y,inputComponent:b,multiline:w,ref:i,type:C},I,{classes:ne({},D,{notchedOutline:null})}))});yr.muiName="Input";var kT=yr,Cn=xs(ce.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),AT=xs(ce.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked");const _v=De("span",{shouldForwardProp:ws})({position:"relative",display:"flex"}),IT=De(Cn)({transform:"scale(1)"}),wv=De(AT)(({theme:t,ownerState:i})=>ne({left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest})},i.checked&&{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})}));function yk(t){const{checked:i=!1,classes:s={},fontSize:l}=t,c=ne({},t,{checked:i});return ce.jsxs(_v,{className:s.root,ownerState:c,children:[ce.jsx(IT,{fontSize:l,className:s.background,ownerState:c}),ce.jsx(wv,{fontSize:l,className:s.dot,ownerState:c})]})}var vk=P.createContext(void 0);function uw(t){return cn("MuiRadio",t)}const Yp=Gt("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),dw=["checked","checkedIcon","color","icon","name","onChange","size","className"],RT=De(qD,{shouldForwardProp:t=>ws(t)||"classes"===t,name:"MuiRadio",slot:"Root",overridesResolver:(t,i)=>{const{ownerState:s}=t;return[i.root,"medium"!==s.size&&i[`size${Pe(s.size)}`],i[`color${Pe(s.color)}`]]}})(({theme:t,ownerState:i})=>ne({color:(t.vars||t).palette.text.secondary},!i.disableRipple&&{"&:hover":{backgroundColor:t.vars?`rgba(${"default"===i.color?t.vars.palette.action.activeChannel:t.vars.palette[i.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:rr("default"===i.color?t.palette.action.active:t.palette[i.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==i.color&&{[`&.${Yp.checked}`]:{color:(t.vars||t).palette[i.color].main}},{[`&.${Yp.disabled}`]:{color:(t.vars||t).palette.action.disabled}})),fw=ce.jsx(yk,{checked:!0}),bk=ce.jsx(yk,{});var MT=P.forwardRef(function(t,i){var s,l;const c=on({props:t,name:"MuiRadio"}),{checked:d,checkedIcon:f=fw,color:p="primary",icon:m=bk,name:y,onChange:b,size:_="medium",className:w}=c,S=gt(c,dw),E=ne({},c,{color:p,size:_}),C=(M=>{const{classes:T,color:O,size:N}=M;return ne({},T,rn({root:["root",`color${Pe(O)}`,"medium"!==N&&`size${Pe(N)}`]},uw,T))})(E),I=P.useContext(vk);let D=d;const k=Ly(b,I&&I.onChange);let A=y;return I&&(void 0===D&&(M=I.value,D="object"==typeof(T=c.value)&&null!==T?M===T:String(M)===String(T)),void 0===A&&(A=I.name)),ce.jsx(RT,ne({type:"radio",icon:P.cloneElement(m,{fontSize:null!=(s=bk.props.fontSize)?s:_}),checkedIcon:P.cloneElement(f,{fontSize:null!=(l=fw.props.fontSize)?l:_}),ownerState:E,classes:C,name:A,checked:D,onChange:k,ref:i,className:Ue(C.root,w)},S));var M,T});function TT(t){return cn("MuiTooltip",t)}var Ya=Gt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);const OT=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"],_k=De(k2,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,i)=>{const{ownerState:s}=t;return[i.popper,!s.disableInteractive&&i.popperInteractive,s.arrow&&i.popperArrow,!s.open&&i.popperClose]}})(({theme:t,ownerState:i,open:s})=>ne({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none"},!i.disableInteractive&&{pointerEvents:"auto"},!s&&{pointerEvents:"none"},i.arrow&&{[`&[data-popper-placement*="bottom"] .${Ya.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Ya.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Ya.arrow}`]:ne({},i.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Ya.arrow}`]:ne({},i.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),xv=De("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,i)=>{const{ownerState:s}=t;return[i.tooltip,s.touch&&i.touch,s.arrow&&i.tooltipArrow,i[`tooltipPlacement${Pe(s.placement.split("-")[0])}`]]}})(({theme:t,ownerState:i})=>ne({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:rr(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium},i.arrow&&{position:"relative",margin:0},i.touch&&{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:(16/14,Math.round(114285.71428571428)/1e5+"em"),fontWeight:t.typography.fontWeightRegular},{[`.${Ya.popper}[data-popper-placement*="left"] &`]:ne({transformOrigin:"right center"},i.isRtl?ne({marginLeft:"14px"},i.touch&&{marginLeft:"24px"}):ne({marginRight:"14px"},i.touch&&{marginRight:"24px"})),[`.${Ya.popper}[data-popper-placement*="right"] &`]:ne({transformOrigin:"left center"},i.isRtl?ne({marginRight:"14px"},i.touch&&{marginRight:"24px"}):ne({marginLeft:"14px"},i.touch&&{marginLeft:"24px"})),[`.${Ya.popper}[data-popper-placement*="top"] &`]:ne({transformOrigin:"center bottom",marginBottom:"14px"},i.touch&&{marginBottom:"24px"}),[`.${Ya.popper}[data-popper-placement*="bottom"] &`]:ne({transformOrigin:"center top",marginTop:"14px"},i.touch&&{marginTop:"24px"})})),Zp=De("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(t,i)=>i.arrow})(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:rr(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Sv=!1;const wk=new yp;let Au={x:0,y:0};function Xp(t,i){return s=>{i&&i(s),t(s)}}var hw=P.forwardRef(function(t,i){var s,l,c,d,f,p,m,y,b,_,w,S,E,C,I,D,k,A,M;const T=on({props:t,name:"MuiTooltip"}),{arrow:O=!1,children:N,components:B={},componentsProps:j={},describeChild:G=!1,disableFocusListener:Q=!1,disableHoverListener:H=!1,disableInteractive:z=!1,disableTouchListener:K=!1,enterDelay:Y=100,enterNextDelay:X=0,enterTouchDelay:re=700,followCursor:q=!1,id:$,leaveDelay:W=0,leaveTouchDelay:te=1500,onClose:J,onOpen:ae,open:ue,placement:_e="bottom",PopperComponent:ve,PopperProps:Ee={},slotProps:fe={},slots:we={},title:pe,TransitionComponent:ye=rk,TransitionProps:Ne}=T,Oe=gt(T,OT),qe=P.isValidElement(N)?N:ce.jsx("span",{children:N}),Ve=Wr(),lt="rtl"===Ve.direction,[xe,Ke]=P.useState(),[Xe,Tt]=P.useState(null),Je=P.useRef(!1),nt=z||q,ot=yu(),xt=yu(),Wt=yu(),Kt=yu(),[lr,Be]=r_({controlled:ue,default:!1,name:"Tooltip",state:"open"});let qt=lr;const gn=dC($),mn=P.useRef(),Nr=_s(()=>{void 0!==mn.current&&(document.body.style.WebkitUserSelect=mn.current,mn.current=void 0),Kt.clear()});P.useEffect(()=>Nr,[Nr]);const Kr=mt=>{wk.clear(),Sv=!0,Be(!0),ae&&!qt&&ae(mt)},_r=_s(mt=>{wk.start(800+W,()=>{Sv=!1}),Be(!1),J&&qt&&J(mt),ot.start(Ve.transitions.duration.shortest,()=>{Je.current=!1})}),Qt=mt=>{Je.current&&"touchstart"!==mt.type||(xe&&xe.removeAttribute("title"),xt.clear(),Wt.clear(),Y||Sv&&X?xt.start(Sv?X:Y,()=>{Kr(mt)}):Kr(mt))},$t=mt=>{xt.clear(),Wt.start(W,()=>{_r(mt)})},{isFocusVisibleRef:un,onBlur:$n,onFocus:Gn,ref:Dn}=Ny(),[,Fe]=P.useState(!1),Ge=mt=>{$n(mt),!1===un.current&&(Fe(!1),$t(mt))},Pt=mt=>{xe||Ke(mt.currentTarget),Gn(mt),!0===un.current&&(Fe(!0),Qt(mt))},At=mt=>{Je.current=!0;const yn=qe.props;yn.onTouchStart&&yn.onTouchStart(mt)};P.useEffect(()=>{if(qt)return document.addEventListener("keydown",mt),()=>{document.removeEventListener("keydown",mt)};function mt(yn){"Escape"!==yn.key&&"Esc"!==yn.key||_r(yn)}},[_r,qt]);const ut=nr(qe.ref,Dn,Ke,i);pe||0===pe||(qt=!1);const Bt=P.useRef(),sn={},Tn="string"==typeof pe;G?(sn.title=qt||!Tn||H?null:pe,sn["aria-describedby"]=qt?gn:null):(sn["aria-label"]=Tn?pe:null,sn["aria-labelledby"]=qt&&!Tn?gn:null);const Nt=ne({},sn,Oe,qe.props,{className:Ue(Oe.className,qe.props.className),onTouchStart:At,ref:ut},q?{onMouseMove:mt=>{const yn=qe.props;yn.onMouseMove&&yn.onMouseMove(mt),Au={x:mt.clientX,y:mt.clientY},Bt.current&&Bt.current.update()}}:{}),Ct={};K||(Nt.onTouchStart=mt=>{At(mt),Wt.clear(),ot.clear(),Nr(),mn.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Kt.start(re,()=>{document.body.style.WebkitUserSelect=mn.current,Qt(mt)})},Nt.onTouchEnd=mt=>{qe.props.onTouchEnd&&qe.props.onTouchEnd(mt),Nr(),Wt.start(te,()=>{_r(mt)})}),H||(Nt.onMouseOver=Xp(Qt,Nt.onMouseOver),Nt.onMouseLeave=Xp($t,Nt.onMouseLeave),nt||(Ct.onMouseOver=Qt,Ct.onMouseLeave=$t)),Q||(Nt.onFocus=Xp(Pt,Nt.onFocus),Nt.onBlur=Xp(Ge,Nt.onBlur),nt||(Ct.onFocus=Pt,Ct.onBlur=Ge));const Ft=P.useMemo(()=>{var mt;let yn=[{name:"arrow",enabled:Boolean(Xe),options:{element:Xe,padding:4}}];return null!=(mt=Ee.popperOptions)&&mt.modifiers&&(yn=yn.concat(Ee.popperOptions.modifiers)),ne({},Ee.popperOptions,{modifiers:yn})},[Xe,Ee]),It=ne({},T,{isRtl:lt,arrow:O,disableInteractive:nt,placement:_e,PopperComponentProp:ve,touch:Je.current}),On=(mt=>{const{classes:yn,disableInteractive:dc,arrow:Ag,touch:Kf,placement:f0}=mt;return rn({popper:["popper",!dc&&"popperInteractive",Ag&&"popperArrow"],tooltip:["tooltip",Ag&&"tooltipArrow",Kf&&"touch",`tooltipPlacement${Pe(f0.split("-")[0])}`],arrow:["arrow"]},TT,yn)})(It),ti=null!=(s=null!=(l=we.popper)?l:B.Popper)?s:_k,Yn=null!=(c=null!=(d=null!=(f=we.transition)?f:B.Transition)?d:ye)?c:rk,Fr=null!=(p=null!=(m=we.tooltip)?m:B.Tooltip)?p:xv,no=null!=(y=null!=(b=we.arrow)?b:B.Arrow)?y:Zp,Bi=Dp(ti,ne({},Ee,null!=(_=fe.popper)?_:j.popper,{className:Ue(On.popper,null==Ee?void 0:Ee.className,null==(w=null!=(S=fe.popper)?S:j.popper)?void 0:w.className)}),It),cc=Dp(Yn,ne({},Ne,null!=(E=fe.transition)?E:j.transition),It),ro=Dp(Fr,ne({},null!=(C=fe.tooltip)?C:j.tooltip,{className:Ue(On.tooltip,null==(I=null!=(D=fe.tooltip)?D:j.tooltip)?void 0:I.className)}),It),uc=Dp(no,ne({},null!=(k=fe.arrow)?k:j.arrow,{className:Ue(On.arrow,null==(A=null!=(M=fe.arrow)?M:j.arrow)?void 0:A.className)}),It);return ce.jsxs(P.Fragment,{children:[P.cloneElement(qe,Nt),ce.jsx(ti,ne({as:null!=ve?ve:k2,placement:_e,anchorEl:q?{getBoundingClientRect:()=>({top:Au.y,left:Au.x,right:Au.x,bottom:Au.y,width:0,height:0})}:xe,popperRef:Bt,open:!!xe&&qt,id:gn,transition:!0},Ct,Bi,{popperOptions:Ft,children:({TransitionProps:mt})=>ce.jsx(Yn,ne({timeout:Ve.transitions.duration.shorter},mt,cc,{children:ce.jsxs(Fr,ne({},ro,{children:[pe,O?ce.jsx(no,ne({},uc,{ref:Tt})):null]}))}))}))]})});const[LT,PT]=Do({}),[NT,Ev]=Do({}),[FT,jT]=Do({}),[sN,Iu]=Do({}),[pw,Cv]=Do({}),[,gw]=Do({}),BT=t=>{let{type:i,value:s}=t;const l=gw.get(s.id);gw.set(s.id,{});const c=()=>{Ev.clear(s.id),Cv.set(s.id,{}),Cv.dispatch(!0)},d=()=>{s.removeListener("changed",c),PT.clear(s.id),Ev.clear(s.id),jT.clear(s.id),Iu.clear(s.id),Cv.clear(s.id),gw.clear(s.id)};return"SET"===i&&(l||(s.on("changed",c),s.once("closed",()=>{d()}))),d},[xk,Ru]=Do({},BT),zT=t=>{const i=BT({type:"SET",value:t});return()=>{i(),Ru.clear(t.id)}};function mw(t,i){const s=i?"".concat(i.id,"/").concat(JSON.stringify(t)):null,[l]=xk(),[c]=FT(),[d,f]=P.useState();for(var p=arguments.length,m=new Array(p>2?p-2:0),y=2;y<p;y++)m[y-2]=arguments[y];return P.useEffect(()=>{!i||be(function*(){let b=c.get(s);b||(b=i.createSessionObject(t),c.set(s,b));const _=yield b;l.set(s,_),f(_)})()},[i,...m]),[d]}const qT={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function yw(t){return mw(qT,t)}const VT=(t,i)=>{const{rpcResultStore:s,key:l,method:c}=i;let d;switch(i.type){case"INVALID":d=ee(ee({},t),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":d={result:ee({},i.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":d=ee(ee({},t),{},{invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1});break;default:throw new Error("Undefined action")}let f=s.get(l);return f||(f={}),f[c]=d,s.set(l,f),d};function Sk(t,i){const s=t?"".concat(t.id):null,[l]=LT(),[c,d]=P.useReducer(VT,s?l.get(s):null),[f]=pw(),[p]=NT();let m;s&&(m=p.get(s),m||(m={},p.set(s,m)));const y=function(){var _=be(function*(w){let S=m[i];(!S||S&&S.rpcRetry)&&(S={rpc:t[i](),rpcRetry:!1},m[i]=S,d({type:"INVALID",method:i,key:s,model:t,rpcResultStore:l,canCancel:!0}));try{yield(t=>new Promise(i=>{setTimeout(i,t)}))(0);const E=yield S.rpc;d({type:"VALID",result:E,key:s,method:i,model:t,rpcResultStore:l})}catch(E){15!==E.code||w||(S.rpcRetry||(S.rpcRetry=!0),y(!0))}});return function(S){return _.apply(this,arguments)}}(),b={cancel:(_=be(function*(){yield t.session.getObjectApi({handle:-1}).cancelRequest(m[i].rpc.requestId),d({type:"CANCELLED",key:s,method:i,model:t,rpcResultStore:l})}),function(){return _.apply(this,arguments)}),retry:()=>{m[i].rpcRetry=!0,y()}};var _;return P.useEffect(()=>{t&&y()},[t,f.get(t&&t.id),s,i]),[c&&c.result,{validating:c&&c.validating,canCancel:c&&c.canCancel,canRetry:c&&c.canRetry},b]}function ec(t){return Sk(t,"getLayout")}function vw(t){return Sk(t,"getAppLayout")}function Nf(){const[t,i]=P.useState(),[s,l]=P.useState(),c=P.useCallback(f=>{f&&i(f)},[]),d=()=>{const{left:f,top:p,width:m,height:y}=t.getBoundingClientRect();l({left:f,top:p,width:m,height:y})};return P.useLayoutEffect(()=>{if(t){if("function"==typeof ResizeObserver){let f=new ResizeObserver(d);return f.observe(t),()=>{f.unobserve(t),f.disconnect(t),f=null}}return d(),window.addEventListener("resize",d),()=>{window.removeEventListener("resize",d)}}},[t]),[c,s,t]}function HT(t){return"large"===t?"20px":"small"===t?"12px":"16px"}function Ao(t){let{size:i,style:s={},viewBox:l="0 0 16 16",shapes:c=[]}=t;const d=ee({fontSize:HT(i),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},s);return V.createElement("i",{style:d},V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:l,fill:"currentColor"},c.map((f,p)=>{let{type:m,attrs:y}=f;return V.createElement(m,Vi({key:p},y))})))}var Mu=t=>Ao((i=>ee(ee({},i),{},{shapes:[{type:"path",attrs:{d:"M9.41421356,8 L11.8890873,5.52512627 C12.065864,5.34834957 12.0305087,4.95944084 11.8183766,4.74730881 L11.2526912,4.18162338 C11.0405592,3.96949135 10.6516504,3.93413601 10.4748737,4.1109127 L8,6.58578644 L5.52512627,4.1109127 C5.34834957,3.93413601 4.95944084,3.96949135 4.74730881,4.18162338 L4.25233406,4.67659813 C3.96949135,4.95944084 3.93413601,5.34834957 4.1109127,5.52512627 L6.58578644,8 L4.1109127,10.4748737 C3.93413601,10.6516504 3.96949135,11.0405592 4.18162338,11.2526912 L4.67659813,11.7476659 C4.95944084,12.0305087 5.34834957,12.065864 5.52512627,11.8890873 L8,9.41421356 L10.4748737,11.8890873 C10.6516504,12.065864 11.0405592,12.0305087 11.2526912,11.8183766 L11.8183766,11.2526912 C12.0305087,11.0405592 12.065864,10.6516504 11.8890873,10.4748737 L9.41421356,8 Z M8,0 C12.4,0 16,3.6 16,8 C16,12.4 12.4,16 8,16 C3.6,16 0,12.4 0,8 C0,3.6 3.6,0 8,0 Z"}}]}))(t)),da=t=>Ao((i=>ee(ee({},i),{},{shapes:[{type:"path",attrs:{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10ZM3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0v1.652ZM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9Zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0Z"}}]}))(t));const $T=t=>ee(ee({},t),{},{viewBox:"0 0 12 16",shapes:[{type:"path",attrs:{d:"M2.5,7 L11,7 C11.5522847,7 12,7.44771525 12,8 L12,15 C12,15.5522847 11.5522847,16 11,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,8 C0,7.44771525 0.44771525,7 1,7 L1,4.98151367 C1,2.23029964 3.23857625,0 6,0 C8.4241995,0 10.4454541,1.71883353 10.9029715,4 L9.34209114,4 C8.9671727,2.54028848 7.9088888,1.5 6,1.5 C3.54860291,1.5 2.5,3.21561511 2.5,5.33193359 L2.5,7 Z"}}]});var lN=t=>Ao($T(t)),vr=function(){function t(i,s){for(var l=0;l<s.length;l++){var c=s[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(i,c.key,c)}}return function(i,s,l){return s&&t(i.prototype,s),l&&t(i,l),i}}(),GT=function(t,i){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!i||"object"!=typeof i&&"function"!=typeof i?t:i},bw=function(t){function i(){var s,l,c;!function(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")}(this,i);for(var d=arguments.length,f=Array(d),p=0;p<d;p++)f[p]=arguments[p];return l=c=GT(this,(s=i.__proto__||Object.getPrototypeOf(i)).call.apply(s,[this].concat(f))),c._lastRenderedStartIndex=-1,c._lastRenderedStopIndex=-1,c._memoizedUnloadedRanges=[],c._onItemsRendered=function(m){var y=m.visibleStartIndex,b=m.visibleStopIndex;c._lastRenderedStartIndex=y,c._lastRenderedStopIndex=b,c._ensureRowsLoaded(y,b)},c._setRef=function(m){c._listRef=m},GT(c,l)}return function(s,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function, not "+typeof l);s.prototype=Object.create(l&&l.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(s,l):s.__proto__=l)}(i,t),vr(i,[{key:"resetloadMoreItemsCache",value:function(){var s=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._memoizedUnloadedRanges=[],s&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){return(0,this.props.children)({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(s,l){var c=this.props,f=c.itemCount,p=c.minimumBatchSize,y=c.threshold,b=void 0===y?15:y,_=function(w){for(var S=w.isItemLoaded,E=w.itemCount,C=w.minimumBatchSize,D=w.stopIndex,k=[],A=null,M=null,T=w.startIndex;T<=D;T++)S(T)?null!==M&&(k.push(A,M),A=M=null):(M=T,null===A&&(A=T));if(null!==M){for(var O=Math.min(Math.max(M,A+C-1),E-1),N=M+1;N<=O&&!S(N);N++)M=N;k.push(A,M)}if(k.length)for(;k[1]-k[0]+1<C&&k[0]>0;){var B=k[0]-1;if(S(B))break;k[0]=B}return k}({isItemLoaded:c.isItemLoaded,itemCount:f,minimumBatchSize:void 0===p?10:p,startIndex:Math.max(0,s-b),stopIndex:Math.min(f-1,l+b)});(this._memoizedUnloadedRanges.length!==_.length||this._memoizedUnloadedRanges.some(function(w,S){return _[S]!==w}))&&(this._memoizedUnloadedRanges=_,this._loadUnloadedRanges(_))}},{key:"_loadUnloadedRanges",value:function(s){for(var l=this,c=this.props.loadMoreItems||this.props.loadMoreRows,d=function(p){var m=s[p],y=s[p+1],b=c(m,y);null!=b&&b.then(function(){if(!((_={lastRenderedStartIndex:l._lastRenderedStartIndex,lastRenderedStopIndex:l._lastRenderedStopIndex,startIndex:m,stopIndex:y}).startIndex>_.lastRenderedStopIndex||_.stopIndex<_.lastRenderedStartIndex)){if(null==l._listRef)return;"function"==typeof l._listRef.resetAfterIndex?l._listRef.resetAfterIndex(m,!0):("function"==typeof l._listRef._getItemStyleCache&&l._listRef._getItemStyleCache(-1),l._listRef.forceUpdate())}var _})},f=0;f<s.length;f+=2)d(f)}}]),i}(P.PureComponent);const cN=["S","XS"],Ek=t=>t.reduce((i,s)=>i.concat(s));function UT(t){if(!t||!t.length)return[];const i=t.map(s=>s.qMatrix.map(c=>{const[d]=c;return!!cN.includes(d.qState)&&d.qElemNumber}).filter(c=>!1!==c));return Ek(i)}function Ck(t){return Ff.apply(this,arguments)}function Ff(){return Ff=be(function*(t){let{selections:i,elemNumbers:s,toggle:l,isSingleSelect:c}=t;if(0===s.length)return!1;let d=!1;if(!s.some(f=>Number.isNaN(f))){const f=s;try{d=!1!==(yield i.select({method:"selectListObjectValues",params:["/qListObjectDef",f,l]}))}catch(p){d=!1}d||(c?i.cancel():i.clear())}return d}),Ff.apply(this,arguments)}const br="RowColumn",$e={row:"".concat(br,"-row"),rowBorderBottom:"".concat(br,"-rowBorderBottom"),column:"".concat(br,"-column"),fieldRoot:"".concat(br,"-fieldRoot"),cell:"".concat(br,"-cell"),labelText:"".concat(br,"-labelText"),labelDense:"".concat(br,"-labelDense"),highlighted:"".concat(br,"-highlighted"),checkboxLabel:"".concat(br,"-checkboxLabel"),icon:"".concat(br,"-icon"),S:"".concat(br,"-S"),XS:"".concat(br,"-XS"),A:"".concat(br,"-A"),X:"".concat(br,"-X"),frequencyCount:"".concat(br,"-frequencyCount"),barContainer:"".concat(br,"-barContainer"),bar:"".concat(br,"-bar"),barSelected:"".concat(br,"-barSelected"),barWithCheckbox:"".concat(br,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(br,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(br,"-excludedTextWithCheckbox")},Dk=".".concat($e.fieldRoot),_w=t=>!(null!=t&&t.metaKey||null!=t&&t.ctrlKey);const kk=t=>ee(ee({},t),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var Ak=t=>Ao(kk(t));const Ik=t=>t?"X"===t.qState||"XS"===t.qState||"XL"===t.qState:null,Rk=t=>t?"A"===t.qState:null,Mk=t=>{let{cell:i,checkboxes:s}=t;return(Rk(i)||Ik(i))&&s},Jp=t=>t.filter(i=>!!i).join(" ").trim(),XT=t=>t||"-",gN=["backgroundColor"],Lk=t=>{let{sizes:i,frequencyMode:s,isGridMode:l,freqHitsValue:c}=t;return"P"===s?"".concat(i.freqMinWidth,"px"):l&&!c?"max-content":"25%"},JT=t=>{let{sizes:i,frequencyMode:s,isGridMode:l}=t;return l?"max-content":"P"===s?i.freqMinWidth:i.freqMaxWidth},kv=t=>{let{theme:i,styles:s,selectedState:l}=t;const c=s.selections,d=c[l],f=c["".concat(l,"Contrast")];return{background:d,color:f,"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(i.palette.custom.focusBorder),outline:"none"},"& $cell":{paddingRight:0},["& .".concat($e.labelText)]:{color:f},["& .".concat($e.icon)]:{color:f}}},eg={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},tg=De("div",{shouldForwardProp:t=>!["checkboxes","isGridMode","isGridCol","dense","direction","sizes","frequencyMode","freqHitsValue","layout","styles"].includes(t)})(t=>{let{theme:i,checkboxes:s,isGridMode:l,isGridCol:c,dense:d,direction:f,sizes:p,frequencyMode:m,freqHitsValue:y,styles:b}=t;const _=_n(b.content,gN),w=kv({theme:i,styles:b,selectedState:"selected"}),S=kv({theme:i,styles:b,selectedState:"excluded"});return{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(i.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"},"& .value":{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(i.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"}},["& .".concat($e.row)]:ee({flexWrap:"nowrap"},b.content),["& .".concat($e.rowBorderBottom)]:{borderBottom:c?"none":"1px solid ".concat(i.palette.divider),borderLeft:c?"1px solid ".concat(i.palette.divider):"none"},["& .".concat($e.column)]:ee({flexWrap:"nowrap",borderRight:"1px solid ".concat(i.palette.divider)},b.content),["& .".concat($e.cell)]:{zIndex:2,display:"flex",alignItems:"center",flexGrow:1,minWidth:s?"52px":"26px",flexBasis:s?"auto":"max-content",paddingLeft:"".concat(9,"px"),paddingRight:0},["& .".concat($e.labelText)]:ee(ee({lineHeight:"16px",userSelect:"none",paddingRight:"1px"},eg),_),["& .".concat($e.labelDense)]:{fontSize:12},["& .".concat($e.highlighted)]:{backgroundColor:"#FFC72A"},["& .".concat($e.checkboxLabel)]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":ee(ee({},eg),{},{display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"})},["& .".concat($e.icon)]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24,color:_.color},["& .".concat($e.S)]:ee(ee({},w),{},{border:l?"none":void 0}),["& .".concat($e.XS)]:ee(ee({},kv({theme:i,styles:b,selectedState:"selectedExcluded"})),{},{border:l?"none":void 0}),["& .".concat($e.A)]:ee(ee({},kv({theme:i,styles:b,selectedState:"alternative"})),{},{border:l?"none":void 0}),["& .".concat($e.X)]:ee(ee({},S),{},{border:l?"none":void 0}),["& .".concat($e.frequencyCount)]:ee(ee({zIndex:3,justifyContent:"flex-end"},eg),{},{flex:"0 0 ".concat(Lk({sizes:p,frequencyMode:m,isGridMode:l,freqHitsValue:y})),minWidth:!l&&"P"!==m&&y?p.freqMinWidth:"max-content",maxWidth:JT({sizes:p,frequencyMode:m,isGridMode:l}),textAlign:"rtl"===f?"left":"right",paddingLeft:"rtl"!==f?"8px":0}),["&.".concat($e.barContainer)]:{height:"100%",display:"flex",alignItems:"center"},["& .".concat($e.bar)]:{height:d?"16px":"20px",position:"absolute",zIndex:1,alignSelf:"center",left:4,width:"calc(100% - ".concat(8,"px)"),display:"flex",alignItems:"center","& .bar-filled":{border:"".concat(1,"px solid"),borderColor:"#D9D9D9",transition:"width 0.2s",backgroundColor:"#FAFAFA",height:"100%"}},["& .".concat($e.barSelected)]:{"& .bar-filled":{opacity:"30%",background:i.palette.background.lighter}},["& .".concat($e.barWithCheckbox)]:{left:"rtl"===f?4:29,width:"calc(100% - ".concat(33,"px)")},["& .".concat($e.barSelectedWithCheckbox)]:{"& .bar-filled":{opacity:"30%",background:w.background||"#BFE5D0",borderColor:w.background||"#BFE5D0"}},["& .".concat($e.excludedTextWithCheckbox)]:{color:"#828282",fontStyle:"italic"}}});var mN=V.memo(tg);const ng="ListBoxCheckbox",Ns={cbIcon:"".concat(ng,"-cbIcon"),cbIconChecked:"".concat(ng,"-cbIconChecked"),cbIconExcluded:"".concat(ng,"-cbIconExcluded"),cbIconAlternative:"".concat(ng,"-cbIconAlternative"),checkbox:"".concat(ng,"-checkbox"),dense:"".concat(ng,"-dense")},Pk=De(UD,{shouldForwardProp:t=>"styles"!==t})(t=>{let{styles:i}=t;return{["& .".concat(Ns.cbIcon)]:{borderRadius:3,width:16,height:16,boxShadow:"inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)",backgroundColor:"#f5f8fa",backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.8),hsla(0,0%,100%,0))",display:"flex",alignItems:"center",justifyContent:"center"},["& .".concat(Ns.cbIconChecked)]:{borderRadius:3,backgroundColor:i.selections.selected,backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))","&:before":{display:"block",width:16,height:16,backgroundImage:"url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E\")",content:'""'}},["& .".concat(Ns.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:i.selections.excluded},["& .".concat(Ns.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:i.selections.alternative},["&.".concat(Ns.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(Ns.dense)]:{padding:"4px 8px"}}}),yN=function(t){let s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return V.createElement("span",{className:t.cbIcon},s&&V.createElement("span",{className:arguments.length>1&&void 0!==arguments[1]&&!arguments[1]||!s?"":t.cbIconExcluded}))};function vN(t){let{onChange:i,checked:s,label:l,dense:c,excluded:d,styles:f,showGray:p=!0,dataN:m}=t;return V.createElement(Pk,{edge:"start",onChange:i,checked:s,disableRipple:!0,className:[Ns.checkbox,c&&Ns.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":l,"data-n":m},name:l,icon:yN(Ns,p,d),checkedIcon:V.createElement("span",{className:Ns.cbIconChecked}),styles:f})}const Nk={radioButton:"".concat("ListBoxRadioButton","-radioButton")},Fk=De(MT,{shouldForwardProp:t=>!["dense","styles"].includes(t)})(t=>{let{checked:i,styles:s,dense:l}=t;return{["&.".concat(Nk.radioButton)]:{right:"5px",color:i?s.selections.selected:s.content.color,padding:l?"0px 0px 0px 12px":void 0,backgroundColor:"transparent"}}});function bN(t){let{onChange:i,checked:s,label:l,dense:c,dataN:d,styles:f}=t;return V.createElement(Fk,{checked:s,onChange:i,value:l,name:l,className:Nk.radioButton,inputProps:{"data-n":d},disableRipple:!0,size:c?"small":"medium",dense:c,styles:f})}function jk(t){let{label:i,dense:s,showGray:l=!0,checkboxes:c,cell:d,valueTextAlign:f}=t;return V.createElement(En,{component:"span",variant:"body2",className:Jp([$e.labelText,s&&$e.labelDense,l&&Mk({cell:d,checkboxes:c})&&$e.excludedTextWithCheckbox]),align:f,dir:"auto"},V.createElement("span",null,i))}function _N(t){let{label:i,color:s,dense:l,showGray:c,checkboxes:d,cell:f,valueTextAlign:p}=t;return"string"==typeof i?V.createElement(jk,{label:i,color:s,dense:l,showGray:c,checkboxes:d,cell:f,valueTextAlign:p}):i}function eO(t){let{onChange:i,label:s,qElemNumber:l,isSelected:c,dense:d,cell:f,isGridCol:p,showGray:m,isSingleSelect:y,checkboxes:b,valueTextAlign:_,styles:w}=t;const S=V.createElement(vN,{onChange:i,label:s,checked:c,dense:d,excluded:Ik(f),isGridCol:p,showGray:m,dataN:l,styles:w}),E=V.createElement(bN,{onChange:i,label:s,checked:c,dense:d,dataN:l,styles:w});return V.createElement(zp,{control:y?E:S,className:$e.checkboxLabel,label:V.createElement(_N,{label:s,dense:d,showGray:m,checkboxes:b,cell:f,valueTextAlign:_}),key:l})}function wN(t){let{labels:i,dense:s,showGray:l,checkboxes:c}=t;const d=i.map((f,p)=>{let[m,y]=f;return V.createElement("span",{id:p,className:y?$e.highlighted:""},m)});return V.createElement(jk,{label:d,dense:s,showGray:l,checkboxes:c})}function xN(t){let{onChange:i,labels:s,checkboxes:l,dense:c,showGray:d,qElemNumber:f,isSelected:p,cell:m,isGridCol:y,isSingleSelect:b,valueTextAlign:_,styles:w}=t;const S=V.createElement(wN,{labels:s,dense:c,showGray:d,checkboxes:l});return l?V.createElement(eO,{onChange:i,label:S,qElemNumber:f,isSelected:p,dense:c,cell:m,isGridCol:y,showGray:d,isSingleSelect:b,checkboxes:l,valueTextAlign:_,styles:w}):S}var SN=V.memo(function(t){let{onChange:i,label:s,qElemNumber:l,isSelected:c,dense:d,cell:f,isGridCol:p,showGray:m,isSingleSelect:y,checkboxes:b,valueTextAlign:_,styles:w}=t;return b?V.createElement(eO,{onChange:i,label:s,qElemNumber:l,isSelected:c,dense:d,cell:f,isGridCol:p,showGray:m,isSingleSelect:y,checkboxes:b,valueTextAlign:_,styles:w}):V.createElement(jk,{label:s,dense:d,showGray:!0,checkboxes:b,cell:f,valueTextAlign:_})});function EN(t){let{qFrequency:i,histogram:s,checkboxes:l,isSelected:c,frequencyMax:d}=t;if(!i||!s||"-"===XT(i))return;const f=(t=>{let{qFrequency:i,frequencyMax:s}=t;const l=String(i),c="%"===l.substring(l.length-1),d=parseFloat(c?l:i);return"".concat(c?d:d/s*100,"%")})({qFrequency:i,checkboxes:l,frequencyMax:d});return V.createElement(Bp,{className:Jp([$e.bar,l&&$e.barWithCheckbox,c&&(l?$e.barSelectedWithCheckbox:$e.barSelected)])},V.createElement(Bp,{className:"bar-filled",width:f}))}function CN(t){let{cell:i,checkboxes:s,dense:l,showGray:c}=t;const d=XT(null==i?void 0:i.qFrequency);return V.createElement(Te,{item:!0,style:{display:"flex",alignItems:"center"},className:$e.frequencyCount,"aria-label":d,title:d},V.createElement(En,{noWrap:!0,color:"inherit",variant:"body2",className:Jp([l&&$e.labelDense,$e.labelText,c&&Mk({cell:i,checkboxes:s})&&$e.excludedTextWithCheckbox])},d))}function DN(t){let{dataLayout:i,layoutOrder:s,itemPadding:l,fillHeight:c}=t;if("singleColumn"===i)return{height:"100%",width:"100%"};switch(s){case"row":case"column":return{height:c?"100%":"calc(100% - ".concat(l,"px)"),width:"calc(100% - ".concat(2*l,"px)"),position:"absolute",left:4};default:return{}}}const tO=De(Te,{shouldForwardProp:t=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction","fillHeight"].includes(t)})(t=>{let{dataLayout:i,layoutOrder:s,itemPadding:l,cellPaddingRight:c,direction:d,fillHeight:f}=t;const p="padding".concat("rtl"===d?"Left":"Right");return{["&.".concat($e.fieldRoot)]:ee(ee({},DN({dataLayout:i,layoutOrder:s,itemPadding:l,fillHeight:f})),{},{[p]:c?"8px":void 0})}}),kN={S:"Object.Listbox.Selected",A:"Object.Listbox.Alternative",O:"Object.Listbox.Optional",XS:"Object.Listbox.SelectedExcluded",L:"Object.Listbox.Locked",X:"Object.Listbox.Excluded",XL:"Object.Listbox.ExcludedLock"};function nO(t){var i;let{layout:s}=t;const{translator:l}=P.useContext(ai),{qStateCounts:c={}}=(null==s||null===(i=s.qListObject)||void 0===i?void 0:i.qDimensionInfo)||{},d=c.qSelected+c.qSelectedExcluded+c.qLocked+c.qLockedExcluded;let f;switch(d){case 0:f="ScreenReader.ZeroSelected";break;case 1:f="ScreenReader.OneSelected";break;default:f="ScreenReader.ManySelected"}const p=l.get(f,[d]);return V.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},p)}const Et=Object.freeze({ENTER:13,ESCAPE:27,SPACE:32,TAB:9,BACKSPACE:8,DELETE:46,ALT:18,CTRL:17,SHIFT:16,ARROW_UP:38,ARROW_DOWN:40,ARROW_LEFT:37,ARROW_RIGHT:39,PAGE_DOWN:34,PAGE_UP:33,HOME:36,END:35,F10:121,A:65,F:70,ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,SUBTRACTION:189,DECIMAL:190,NUMPAD_DECIMAL:110,isArrow:t=>t===Et.ARROW_UP||t===Et.ARROW_DOWN||t===Et.ARROW_LEFT||t===Et.ARROW_RIGHT}),Av=t=>+t.getAttribute("data-n"),Bk=t=>{const i=null==t?void 0:t.querySelector(".search input");return null==i||i.focus(),i},rO=t=>{const i=null==t?void 0:t.querySelector(".value.last-focused, .value.selector, .value");return null==i||i.setAttribute("tabIndex",0),null==i||i.focus(),i},AN=t=>{let{rowIndex:i,columnIndex:s,rowCount:l,columnCount:c,layoutOrder:d,keyCode:f,numCells:p}=t;const m=w=>{let S;return"row"===d?(S=p%c,w<S?l:l-1):(S=p%l,w<c-1?l:S)};let y=i,b=s;if(f===Et.ARROW_DOWN)if(i>=m(s)-1){if(s===c-1)return-1;y=0,b=s+1}else y=i+1;else if(0===i){if(0===s)return-1;y=m(s-1)-1,b=s-1}else y=i-1;if("row"===d)return y*c+b;const _=p%l;return 0===_||y<_?y*c+b:(y-_)*(c-1)+b+_*c};function iO(t){var i,s;let{index:l,rowIndex:c,columnIndex:d,style:f,data:p}=t;const{onChange:m,onClick:y,onMouseDown:b,onMouseUp:_,onMouseEnter:w,onTouchStart:S,onTouchEnd:E,pages:C,isLocked:I,column:D=!1,checkboxes:k=!1,textAlign:A,direction:M,layoutOptions:T={},freqIsAllowed:O,isSingleSelect:N,actions:B,frequencyMax:j="",histogram:G=!1,keyboard:Q,showGray:H=!0,showTick:z=!0,columnCount:K=1,rowCount:Y=1,dataOffset:X,deducedFrequencyMode:re,focusListItems:q,listCount:$,sizes:W,translator:te,showSearch:J,isModal:ae,contentFontStyle:ue,styles:_e,fillHeight:ve}=p,{dense:Ee=!1,dataLayout:fe="singleColumn",layoutOrder:we}=T,{itemPadding:pe}=W;let ye,Ne;const Oe={max:null,currentIndex:null};if("number"==typeof c&&"number"==typeof d){"row"===we?(ye=c*K+d,Oe.max=Y,Oe.currentIndex=c):(ye=d*Y+c,Oe.max=K,Oe.currentIndex=d);const Qt=0;Ne=ee(ee({},f),{},{height:ve?"100%":f.height,left:Qt+(0===d?f.left:Number(f.left)+d*Qt),top:0===c?f.top:Number(f.top)+c*Qt})}else ye=l,Oe.max=$,Oe.currentIndex=l,Ne=ee({},f);ye+=X;const[qe,Ve]=P.useState(null);P.useEffect(()=>{null!==qe&&(0===Oe.currentIndex&&q.first&&(qe.focus(),q.setFirst(!1)),Oe.currentIndex===Oe.max-1&&q.last&&(qe.focus(),q.setLast(!1)))},[qe,q.first,q.last]);const lt=P.useCallback(function(Qt){let{select:$t,selectAll:un,onCtrlF:$n,confirm:Gn,cancel:Dn,setScrollPosition:Fe,focusListItems:Ge,keyboard:Pt,isModal:At,rowCount:Yt,columnCount:st,rowIndex:ut,columnIndex:Bt,layoutOrder:sn}=Qt;const Tn=function(Ft,It){if(Ft===Et.ARROW_LEFT||Ft===Et.ARROW_RIGHT||"number"!=typeof ut||"number"!=typeof Bt){const Fr=null==It?void 0:It.parentElement[arguments.length>2&&void 0!==arguments[2]&&arguments[2]?"nextElementSibling":"previousElementSibling"];return null==Fr?void 0:Fr.querySelector("[role]")}const ti=null==It?void 0:It.parentElement.parentElement,Yn=null==ti?void 0:ti.childElementCount;if(Yn){const Fr=AN({rowIndex:ut,columnIndex:Bt,rowCount:Yt,columnCount:st,layoutOrder:sn,keyCode:Ft,numCells:Yn}),no=null==It?void 0:It.parentElement.parentElement.children[Fr];return null==no?void 0:no.querySelector("[role]")}};let Nt=!1;const Ct=Ft=>{Nt=Ft};return Ft=>{let It;const{currentTarget:On,nativeEvent:ti}=Ft,{keyCode:Yn,shiftKey:Fr=!1,ctrlKey:no=!1,metaKey:Bi=!1}=ti;switch(Yn){case Et.TAB:{const cc=On.closest(".listbox-container"),ro=At();if(On.classList.add("last-focused"),Fr){Bk(cc)||(ro?Pt.focusSelection():Pt.blur(!0));break}ro?Pt.focusSelection():(On.blur(),Pt.blur());break}case Et.SHIFT:Ct(!0);break;case Et.SPACE:$t([Av(On)],!1,Ft);break;case Et.ARROW_DOWN:case Et.ARROW_RIGHT:It=Tn(Yn,On,!0),Fr&&It&&(Nt&&($t([Av(On)],!0),Ct(!1)),$t([Av(It)],!0));break;case Et.ARROW_UP:case Et.ARROW_LEFT:It=Tn(Yn,On,!1),Fr&&It&&(Nt&&($t([Av(On)],!0),Ct(!1)),$t([Av(It)],!0));break;case Et.ENTER:Gn();break;case Et.ESCAPE:if(!At())return;Dn();break;case Et.HOME:if(Ge.setFirst(!0),no){null==Fe||Fe("overflowStart");break}null==Fe||Fe("start");break;case Et.END:if(Ge.setLast(!0),no){null==Fe||Fe("overflowEnd");break}null==Fe||Fe("end");break;case Et.A:if(no||Bi){un();break}return;case Et.F:if(no||Bi){$n();break}return;default:return}It&&It.focus(),Ft.preventDefault(),Ft.stopPropagation()}}(ee(ee({},B),{},{focusListItems:q,keyboard:Q,isModal:ae,rowCount:Y,columnCount:K,rowIndex:c,columnIndex:d,layoutOrder:we})),[B,null==Q?void 0:Q.innerTabStops,Y,K,c,d,we]),xe=P.useMemo(()=>function(Qt){let $t,{pages:un,cellIndex:$n}=Qt;const Gn=un.filter(Dn=>Dn.qArea.qTop<=$n&&$n<Dn.qArea.qTop+Dn.qArea.qHeight)[0];if(Gn){const Dn=Gn.qArea;$n>=Dn.qTop&&$n<Dn.qTop+Dn.qHeight&&([$t]=Gn.qMatrix[$n-Dn.qTop])}return $t}({pages:C,cellIndex:ye}),[C,ye]),Ke="S"===(null==xe?void 0:xe.qState)||"XS"===(null==xe?void 0:xe.qState)||"L"===(null==xe?void 0:xe.qState)||"XL"===(null==xe?void 0:xe.qState),Xe=P.useMemo(()=>(t=>{let{column:i,histogram:s,checkboxes:l,cell:c,showGray:d}=t;const f=[i?$e.column:$e.row];return s||f.push($e.rowBorderBottom),c?(l||("XS"===c.qState?f.push(d?$e.XS:$e.S):"S"===c.qState||"L"===c.qState?f.push($e.S):d&&Rk(c)?f.push($e.A):d&&Ik(c)&&f.push($e.X)),f):[]})({column:D,histogram:G,checkboxes:k,cell:xe,showGray:H}),[null==xe?void 0:xe.qState,G,Ee,k]),Tt=P.useCallback(Qt=>{Qt.preventDefault()},[k]),Je=P.useMemo(()=>xe&&function(Qt){let{direction:$t,cell:un,textAlign:$n}=Qt;const Gn=!["NaN",void 0].includes(null==un?void 0:un.qNum);let Dn;return Dn=!$n||$n.auto?Gn?"rtl"===$t?"left":"right":{rtl:"right",ltr:"left"}[$t]:(null==$n?void 0:$n.align)||"left",["left","center","right"].includes(Dn)?Dn:"left"}({direction:M,cell:xe,textAlign:A}),[M,xe,A]);if(!xe)return null;const nt="grid"===fe&&"column"===we,ot=null!==(i=null==xe?void 0:xe.qText)&&void 0!==i?i:"";let xt;if(null!==(s=xe.qHighlightRanges)&&void 0!==s&&null!==(s=s.qRanges)&&void 0!==s&&s.length){const Qt=xe.qHighlightRanges.qRanges.sort(($t,un)=>$t.qCharPos-un.qCharPos)||[];$t=ot,xt=(un=Qt).length?un.reduce((Gn,Dn,Fe)=>{Gn.push(...function(Yt,st){let ut=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const{qCharPos:Bt,qCharCount:sn}=st,Tn=[];return Bt>ut&&Tn.push([Yt.slice(ut,Bt),!1]),Tn.push([Yt.slice(Bt,Bt+sn),!0]),Tn}($t,Dn,0===Fe?0:un[Fe-1].qCharPos+un[Fe-1].qCharCount));const At=un[Fe].qCharPos+un[Fe].qCharCount;return Fe===un.length-1&&At<$t.length&&Gn.push([$t.slice(At),!1]),Gn},[]):[]}var $t,un;const Wt={alignItems:"center",display:"flex",fontSize:"8px"},Kt="rtl"===M,lr={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:Kt?8:k?0:void 0,paddingRight:k?0:Kt?8:0,justifyContent:Je,textAlign:Je},Be=0===l,qt=Ke&&I,gn=!k&&Ke&&!I,mn=!k&&z,Nr=k||!z,Kr=function(Qt){let{translator:$t,label:un,qState:$n,isSelected:Gn,currentIndex:Dn,maxIndex:Fe,showSearch:Ge}=Qt;const At=$t.get(kN[$n]),Yt=[];if(Gn){const sn=$t.get(Ge?"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu":"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu");Yt.push(sn)}const st="".concat(un," ").concat(At),ut=$t.get("CurrentSelections.Of",[Dn+1,Fe+1]);return Yt.unshift(st,ut),Yt.join(". ").trim()}({translator:te,label:ot,qState:xe.qState,currentIndex:Oe.currentIndex,maxIndex:Oe.max,showSearch:J});return V.createElement(mN,{className:$e.barContainer,checkboxes:k,style:Ne,styles:_e,isGridCol:nt,isGridMode:"grid"===fe,dense:Ee,direction:M,sizes:W,frequencyMode:re,freqHitsValue:!Kt&&"right"===Je||Kt&&"left"===Je,contentFontStyle:ue,"data-testid":"listbox.item"},V.createElement(tO,{role:"row","aria-label":Kr,"aria-selected":Ke,"aria-setsize":Oe.max,"aria-rowindex":Oe.currentIndex,ref:Ve,container:!0,dataLayout:fe,cellPaddingRight:Nr,layoutOrder:we,itemPadding:pe,gap:0,className:Jp(["value",...Xe]),classes:{root:$e.fieldRoot},onClick:y,onMouseDown:b,onMouseUp:_,onMouseEnter:w,onKeyDown:lt,onTouchStart:S,onTouchEnd:E,onContextMenu:Tt,tabIndex:Be&&Q.innerTabStops?0:-1,"data-n":null==xe?void 0:xe.qElemNumber,direction:M,fillHeight:ve},(null==xe?void 0:xe.qFrequency)&&V.createElement(EN,{qFrequency:null==xe?void 0:xe.qFrequency,histogram:G,checkboxes:k,isSelected:Ke,frequencyMax:j}),V.createElement(Te,{item:!0,style:lr,className:Jp([$e.cell,$e.selectedCell]),title:"".concat(ot)},xt?V.createElement(xN,{onChange:m,labels:xt,checkboxes:k,dense:Ee,showGray:H,qElemNumber:xe.qElemNumber,isSelected:Ke,cell:xe,isGridCol:nt,isSingleSelect:N,valueTextAlign:Je,styles:_e}):V.createElement(SN,{onChange:m,label:ot,qElemNumber:xe.qElemNumber,isSelected:Ke,dense:Ee,cell:xe,isGridCol:nt,showGray:H,isSingleSelect:N,checkboxes:k,valueTextAlign:Je,styles:_e})),O&&V.createElement(CN,{cell:xe,checkboxes:k,dense:Ee,showGray:H}),mn&&V.createElement(Te,{item:!0,className:$e.icon},qt&&V.createElement(da,{style:Wt,size:"small"}),gn&&V.createElement(Ak,{style:Wt,size:"small"}))))}var oO=Number.isNaN||function(t){return"number"==typeof t&&t!=t};function IN(t,i){if(t.length!==i.length)return!1;for(var s=0;s<t.length;s++)if(!((l=t[s])===(c=i[s])||oO(l)&&oO(c)))return!1;var l,c;return!0}function rg(t,i){var s;void 0===i&&(i=IN);var l,c=[],d=!1;return function(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];return d&&s===this&&i(f,c)||(l=t.apply(this,f),d=!0,s=this,c=f),l}}var sO="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function Ew(t){cancelAnimationFrame(t.id)}function aO(t,i){var s=sO(),l={id:requestAnimationFrame(function c(){sO()-s>=i?t.call(null):l.id=requestAnimationFrame(c)})};return l}var ig=-1;function og(t){if(void 0===t&&(t=!1),-1===ig||t){var i=document.createElement("div"),s=i.style;s.width="50px",s.height="50px",s.overflow="scroll",document.body.appendChild(i),ig=i.offsetWidth-i.clientWidth,document.body.removeChild(i)}return ig}var sg=null;function Iv(t){if(void 0===t&&(t=!1),null===sg||t){var i=document.createElement("div"),s=i.style;s.width="50px",s.height="50px",s.overflow="scroll",s.direction="rtl";var l=document.createElement("div"),c=l.style;return c.width="100px",c.height="100px",i.appendChild(l),document.body.appendChild(i),i.scrollLeft>0?sg="positive-descending":(i.scrollLeft=1,sg=0===i.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(i),sg}return sg}var RN=function(t){return t.rowIndex+":"+t.columnIndex};var lO=function(t,i){},Cw=function(t,i){return t};var MN=function(t,i){},Fs=function zk(t){var i,s=t.getColumnOffset,l=t.getColumnStartIndexForOffset,c=t.getColumnStopIndexForStartIndex,d=t.getColumnWidth,f=t.getEstimatedTotalHeight,p=t.getEstimatedTotalWidth,m=t.getOffsetForColumnAndAlignment,y=t.getOffsetForRowAndAlignment,b=t.getRowHeight,_=t.getRowOffset,w=t.getRowStartIndexForOffset,S=t.getRowStopIndexForStartIndex,E=t.initInstanceProps,C=t.shouldResetStyleCacheOnItemSizeChange,I=t.validateProps;return(i=function(D){function k(M){var T;return(T=D.call(this,M)||this)._instanceProps=E(T.props,xp(T)),T._resetIsScrollingTimeoutId=null,T._outerRef=void 0,T.state={instance:xp(T),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof T.props.initialScrollLeft?T.props.initialScrollLeft:0,scrollTop:"number"==typeof T.props.initialScrollTop?T.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},T._callOnItemsRendered=void 0,T._callOnItemsRendered=rg(function(O,N,B,j,G,Q,H,z){return T.props.onItemsRendered({overscanColumnStartIndex:O,overscanColumnStopIndex:N,overscanRowStartIndex:B,overscanRowStopIndex:j,visibleColumnStartIndex:G,visibleColumnStopIndex:Q,visibleRowStartIndex:H,visibleRowStopIndex:z})}),T._callOnScroll=void 0,T._callOnScroll=rg(function(O,N,B,j,G){return T.props.onScroll({horizontalScrollDirection:B,scrollLeft:O,scrollTop:N,verticalScrollDirection:j,scrollUpdateWasRequested:G})}),T._getItemStyle=void 0,T._getItemStyle=function(O,N){var B,j=T.props,Q=j.direction,z=T._getItemStyleCache(C&&j.columnWidth,C&&Q,C&&j.rowHeight),K=O+":"+N;if(z.hasOwnProperty(K))B=z[K];else{var Y=s(T.props,N,T._instanceProps),X="rtl"===Q;z[K]=B={position:"absolute",left:X?void 0:Y,right:X?Y:void 0,top:_(T.props,O,T._instanceProps),height:b(T.props,O,T._instanceProps),width:d(T.props,N,T._instanceProps)}}return B},T._getItemStyleCache=void 0,T._getItemStyleCache=rg(function(O,N,B){return{}}),T._onScroll=function(O){var N=O.currentTarget,B=N.clientHeight,j=N.clientWidth,G=N.scrollLeft,Q=N.scrollTop,H=N.scrollHeight,z=N.scrollWidth;T.setState(function(K){if(K.scrollLeft===G&&K.scrollTop===Q)return null;var X=G;if("rtl"===T.props.direction)switch(Iv()){case"negative":X=-G;break;case"positive-descending":X=z-j-G}X=Math.max(0,Math.min(X,z-j));var re=Math.max(0,Math.min(Q,H-B));return{isScrolling:!0,horizontalScrollDirection:K.scrollLeft<G?"forward":"backward",scrollLeft:X,scrollTop:re,verticalScrollDirection:K.scrollTop<Q?"forward":"backward",scrollUpdateWasRequested:!1}},T._resetIsScrollingDebounced)},T._outerRefSetter=function(O){var N=T.props.outerRef;T._outerRef=O,"function"==typeof N?N(O):null!=N&&"object"==typeof N&&N.hasOwnProperty("current")&&(N.current=O)},T._resetIsScrollingDebounced=function(){null!==T._resetIsScrollingTimeoutId&&Ew(T._resetIsScrollingTimeoutId),T._resetIsScrollingTimeoutId=aO(T._resetIsScrolling,150)},T._resetIsScrolling=function(){T._resetIsScrollingTimeoutId=null,T.setState({isScrolling:!1},function(){T._getItemStyleCache(-1)})},T}Uy(k,D),k.getDerivedStateFromProps=function(M,T){return lO(M,T),I(M),null};var A=k.prototype;return A.scrollTo=function(M){var T=M.scrollLeft,O=M.scrollTop;void 0!==T&&(T=Math.max(0,T)),void 0!==O&&(O=Math.max(0,O)),this.setState(function(N){return void 0===T&&(T=N.scrollLeft),void 0===O&&(O=N.scrollTop),N.scrollLeft===T&&N.scrollTop===O?null:{horizontalScrollDirection:N.scrollLeft<T?"forward":"backward",scrollLeft:T,scrollTop:O,scrollUpdateWasRequested:!0,verticalScrollDirection:N.scrollTop<O?"forward":"backward"}},this._resetIsScrollingDebounced)},A.scrollToItem=function(M){var T=M.align,O=void 0===T?"auto":T,N=M.columnIndex,B=M.rowIndex,j=this.props,G=j.columnCount,Q=j.height,H=j.rowCount,z=j.width,K=this.state,Y=K.scrollLeft,X=K.scrollTop,re=og();void 0!==N&&(N=Math.max(0,Math.min(N,G-1))),void 0!==B&&(B=Math.max(0,Math.min(B,H-1)));var q=f(this.props,this._instanceProps),$=p(this.props,this._instanceProps)>z?re:0;this.scrollTo({scrollLeft:void 0!==N?m(this.props,N,O,Y,this._instanceProps,q>Q?re:0):Y,scrollTop:void 0!==B?y(this.props,B,O,X,this._instanceProps,$):X})},A.componentDidMount=function(){var M=this.props,T=M.initialScrollLeft,O=M.initialScrollTop;if(null!=this._outerRef){var N=this._outerRef;"number"==typeof T&&(N.scrollLeft=T),"number"==typeof O&&(N.scrollTop=O)}this._callPropsCallbacks()},A.componentDidUpdate=function(){var T=this.state,O=T.scrollLeft,N=T.scrollTop;if(T.scrollUpdateWasRequested&&null!=this._outerRef){var B=this._outerRef;if("rtl"===this.props.direction)switch(Iv()){case"negative":B.scrollLeft=-O;break;case"positive-ascending":B.scrollLeft=O;break;default:B.scrollLeft=B.scrollWidth-B.clientWidth-O}else B.scrollLeft=Math.max(0,O);B.scrollTop=Math.max(0,N)}this._callPropsCallbacks()},A.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Ew(this._resetIsScrollingTimeoutId)},A.render=function(){var M=this.props,T=M.children,O=M.className,N=M.columnCount,B=M.direction,j=M.height,G=M.innerRef,Q=M.innerElementType,H=M.innerTagName,z=M.itemData,K=M.itemKey,Y=void 0===K?RN:K,X=M.outerElementType,re=M.outerTagName,q=M.rowCount,$=M.style,W=M.useIsScrolling,te=M.width,J=this.state.isScrolling,ae=this._getHorizontalRangeToRender(),ue=ae[0],_e=ae[1],ve=this._getVerticalRangeToRender(),fe=ve[1],we=[];if(N>0&&q)for(var pe=ve[0];pe<=fe;pe++)for(var ye=ue;ye<=_e;ye++)we.push(P.createElement(T,{columnIndex:ye,data:z,isScrolling:W?J:void 0,key:Y({columnIndex:ye,data:z,rowIndex:pe}),rowIndex:pe,style:this._getItemStyle(pe,ye)}));var Ne=f(this.props,this._instanceProps),Oe=p(this.props,this._instanceProps);return P.createElement(X||re||"div",{className:O,onScroll:this._onScroll,ref:this._outerRefSetter,style:yf({position:"relative",height:j,width:te,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:B},$)},P.createElement(Q||H||"div",{children:we,ref:G,style:{height:Ne,pointerEvents:J?"none":void 0,width:Oe}}))},A._callPropsCallbacks=function(){var M=this.props,N=M.onScroll;if("function"==typeof M.onItemsRendered&&M.columnCount>0&&M.rowCount>0){var j=this._getHorizontalRangeToRender(),G=j[0],Q=j[1],H=j[2],z=j[3],K=this._getVerticalRangeToRender();this._callOnItemsRendered(G,Q,K[0],K[1],H,z,K[2],K[3])}if("function"==typeof N){var $=this.state;this._callOnScroll($.scrollLeft,$.scrollTop,$.horizontalScrollDirection,$.verticalScrollDirection,$.scrollUpdateWasRequested)}},A._getHorizontalRangeToRender=function(){var M=this.props,T=M.columnCount,G=this.state,Q=G.horizontalScrollDirection,H=G.isScrolling,z=G.scrollLeft,K=M.overscanColumnCount||M.overscanColumnsCount||M.overscanCount||1;if(0===T||0===M.rowCount)return[0,0,0,0];var Y=l(this.props,z,this._instanceProps),X=c(this.props,Y,z,this._instanceProps),re=H&&"backward"!==Q?1:Math.max(1,K),q=H&&"forward"!==Q?1:Math.max(1,K);return[Math.max(0,Y-re),Math.max(0,Math.min(T-1,X+q)),Y,X]},A._getVerticalRangeToRender=function(){var M=this.props,j=M.rowCount,G=this.state,Q=G.isScrolling,H=G.verticalScrollDirection,z=G.scrollTop,K=M.overscanRowCount||M.overscanRowsCount||M.overscanCount||1;if(0===M.columnCount||0===j)return[0,0,0,0];var Y=w(this.props,z,this._instanceProps),X=S(this.props,Y,z,this._instanceProps),re=Q&&"backward"!==H?1:Math.max(1,K),q=Q&&"forward"!==H?1:Math.max(1,K);return[Math.max(0,Y-re),Math.max(0,Math.min(j-1,X+q)),Y,X]},k}(P.PureComponent)).defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},i}({getColumnOffset:function(t,i){return i*t.columnWidth},getColumnWidth:function(t,i){return t.columnWidth},getRowOffset:function(t,i){return i*t.rowHeight},getRowHeight:function(t,i){return t.rowHeight},getEstimatedTotalHeight:function(t){return t.rowHeight*t.rowCount},getEstimatedTotalWidth:function(t){return t.columnWidth*t.columnCount},getOffsetForColumnAndAlignment:function(t,i,s,l,c,d){var p=t.columnWidth,m=t.width,y=Math.max(0,t.columnCount*p-m),b=Math.min(y,i*p),_=Math.max(0,i*p-m+d+p);switch("smart"===s&&(s=l>=_-m&&l<=b+m?"auto":"center"),s){case"start":return b;case"end":return _;case"center":var w=Math.round(_+(b-_)/2);return w<Math.ceil(m/2)?0:w>y+Math.floor(m/2)?y:w;default:return l>=_&&l<=b?l:_>b||l<_?_:b}},getOffsetForRowAndAlignment:function(t,i,s,l,c,d){var f=t.rowHeight,p=t.height,y=Math.max(0,t.rowCount*f-p),b=Math.min(y,i*f),_=Math.max(0,i*f-p+d+f);switch("smart"===s&&(s=l>=_-p&&l<=b+p?"auto":"center"),s){case"start":return b;case"end":return _;case"center":var w=Math.round(_+(b-_)/2);return w<Math.ceil(p/2)?0:w>y+Math.floor(p/2)?y:w;default:return l>=_&&l<=b?l:_>b||l<_?_:b}},getColumnStartIndexForOffset:function(t,i){return Math.max(0,Math.min(t.columnCount-1,Math.floor(i/t.columnWidth)))},getColumnStopIndexForStartIndex:function(t,i,s){var l=t.columnWidth,c=t.columnCount,p=Math.ceil((t.width+s-i*l)/l);return Math.max(0,Math.min(c-1,i+p-1))},getRowStartIndexForOffset:function(t,i){return Math.max(0,Math.min(t.rowCount-1,Math.floor(i/t.rowHeight)))},getRowStopIndexForStartIndex:function(t,i,s){var l=t.rowHeight,c=t.rowCount,p=Math.ceil((t.height+s-i*l)/l);return Math.max(0,Math.min(c-1,i+p-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){}}),uO=function cO(t){var i,s=t.getItemOffset,l=t.getEstimatedTotalSize,c=t.getItemSize,d=t.getOffsetForIndexAndAlignment,f=t.getStartIndexForOffset,p=t.getStopIndexForStartIndex,m=t.initInstanceProps,y=t.shouldResetStyleCacheOnItemSizeChange,b=t.validateProps;return(i=function(_){function w(E){var C;return(C=_.call(this,E)||this)._instanceProps=m(C.props,xp(C)),C._outerRef=void 0,C._resetIsScrollingTimeoutId=null,C.state={instance:xp(C),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof C.props.initialScrollOffset?C.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},C._callOnItemsRendered=void 0,C._callOnItemsRendered=rg(function(I,D,k,A){return C.props.onItemsRendered({overscanStartIndex:I,overscanStopIndex:D,visibleStartIndex:k,visibleStopIndex:A})}),C._callOnScroll=void 0,C._callOnScroll=rg(function(I,D,k){return C.props.onScroll({scrollDirection:I,scrollOffset:D,scrollUpdateWasRequested:k})}),C._getItemStyle=void 0,C._getItemStyle=function(I){var D,k=C.props,A=k.direction,T=k.layout,O=C._getItemStyleCache(y&&k.itemSize,y&&T,y&&A);if(O.hasOwnProperty(I))D=O[I];else{var N=s(C.props,I,C._instanceProps),B=c(C.props,I,C._instanceProps),j="horizontal"===A||"horizontal"===T,G="rtl"===A,Q=j?N:0;O[I]=D={position:"absolute",left:G?void 0:Q,right:G?Q:void 0,top:j?0:N,height:j?"100%":B,width:j?B:"100%"}}return D},C._getItemStyleCache=void 0,C._getItemStyleCache=rg(function(I,D,k){return{}}),C._onScrollHorizontal=function(I){var D=I.currentTarget,k=D.clientWidth,A=D.scrollLeft,M=D.scrollWidth;C.setState(function(T){if(T.scrollOffset===A)return null;var N=A;if("rtl"===C.props.direction)switch(Iv()){case"negative":N=-A;break;case"positive-descending":N=M-k-A}return N=Math.max(0,Math.min(N,M-k)),{isScrolling:!0,scrollDirection:T.scrollOffset<N?"forward":"backward",scrollOffset:N,scrollUpdateWasRequested:!1}},C._resetIsScrollingDebounced)},C._onScrollVertical=function(I){var D=I.currentTarget,k=D.clientHeight,A=D.scrollHeight,M=D.scrollTop;C.setState(function(T){if(T.scrollOffset===M)return null;var O=Math.max(0,Math.min(M,A-k));return{isScrolling:!0,scrollDirection:T.scrollOffset<O?"forward":"backward",scrollOffset:O,scrollUpdateWasRequested:!1}},C._resetIsScrollingDebounced)},C._outerRefSetter=function(I){var D=C.props.outerRef;C._outerRef=I,"function"==typeof D?D(I):null!=D&&"object"==typeof D&&D.hasOwnProperty("current")&&(D.current=I)},C._resetIsScrollingDebounced=function(){null!==C._resetIsScrollingTimeoutId&&Ew(C._resetIsScrollingTimeoutId),C._resetIsScrollingTimeoutId=aO(C._resetIsScrolling,150)},C._resetIsScrolling=function(){C._resetIsScrollingTimeoutId=null,C.setState({isScrolling:!1},function(){C._getItemStyleCache(-1,null)})},C}Uy(w,_),w.getDerivedStateFromProps=function(E,C){return MN(E,C),b(E),null};var S=w.prototype;return S.scrollTo=function(E){E=Math.max(0,E),this.setState(function(C){return C.scrollOffset===E?null:{scrollDirection:C.scrollOffset<E?"forward":"backward",scrollOffset:E,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},S.scrollToItem=function(E,C){void 0===C&&(C="auto");var I=this.props,k=I.layout,A=this.state.scrollOffset;E=Math.max(0,Math.min(E,I.itemCount-1));var M=0;if(this._outerRef){var T=this._outerRef;M="vertical"===k?T.scrollWidth>T.clientWidth?og():0:T.scrollHeight>T.clientHeight?og():0}this.scrollTo(d(this.props,E,C,A,this._instanceProps,M))},S.componentDidMount=function(){var E=this.props,I=E.initialScrollOffset;if("number"==typeof I&&null!=this._outerRef){var k=this._outerRef;"horizontal"===E.direction||"horizontal"===E.layout?k.scrollLeft=I:k.scrollTop=I}this._callPropsCallbacks()},S.componentDidUpdate=function(){var E=this.props,C=E.direction,D=this.state,k=D.scrollOffset;if(D.scrollUpdateWasRequested&&null!=this._outerRef){var A=this._outerRef;if("horizontal"===C||"horizontal"===E.layout)if("rtl"===C)switch(Iv()){case"negative":A.scrollLeft=-k;break;case"positive-ascending":A.scrollLeft=k;break;default:A.scrollLeft=A.scrollWidth-A.clientWidth-k}else A.scrollLeft=k;else A.scrollTop=k}this._callPropsCallbacks()},S.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Ew(this._resetIsScrollingTimeoutId)},S.render=function(){var E=this.props,C=E.children,I=E.className,D=E.direction,k=E.height,A=E.innerRef,M=E.innerElementType,T=E.innerTagName,O=E.itemCount,N=E.itemData,B=E.itemKey,j=void 0===B?Cw:B,Q=E.outerElementType,H=E.outerTagName,z=E.style,K=E.useIsScrolling,Y=E.width,X=this.state.isScrolling,re="horizontal"===D||"horizontal"===E.layout,q=re?this._onScrollHorizontal:this._onScrollVertical,$=this._getRangeToRender(),te=$[1],J=[];if(O>0)for(var ae=$[0];ae<=te;ae++)J.push(P.createElement(C,{data:N,key:j(ae,N),index:ae,isScrolling:K?X:void 0,style:this._getItemStyle(ae)}));var ue=l(this.props,this._instanceProps);return P.createElement(Q||H||"div",{className:I,onScroll:q,ref:this._outerRefSetter,style:yf({position:"relative",height:k,width:Y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:D},z)},P.createElement(M||T||"div",{children:J,ref:A,style:{height:re?"100%":ue,pointerEvents:X?"none":void 0,width:re?ue:"100%"}}))},S._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var E=this._getRangeToRender();this._callOnItemsRendered(E[0],E[1],E[2],E[3])}if("function"==typeof this.props.onScroll){var A=this.state;this._callOnScroll(A.scrollDirection,A.scrollOffset,A.scrollUpdateWasRequested)}},S._getRangeToRender=function(){var E=this.props,C=E.itemCount,I=E.overscanCount,D=this.state,k=D.isScrolling,A=D.scrollDirection,M=D.scrollOffset;if(0===C)return[0,0,0,0];var T=f(this.props,M,this._instanceProps),O=p(this.props,T,M,this._instanceProps),N=k&&"backward"!==A?1:Math.max(1,I),B=k&&"forward"!==A?1:Math.max(1,I);return[Math.max(0,T-N),Math.max(0,Math.min(C-1,O+B)),T,O]},w}(P.PureComponent)).defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},i}({getItemOffset:function(t,i){return i*t.itemSize},getItemSize:function(t,i){return t.itemSize},getEstimatedTotalSize:function(t){return t.itemSize*t.itemCount},getOffsetForIndexAndAlignment:function(t,i,s,l,c,d){var y=t.itemSize,w="horizontal"===t.direction||"horizontal"===t.layout?t.width:t.height,S=Math.max(0,t.itemCount*y-w),E=Math.min(S,i*y),C=Math.max(0,i*y-w+y+d);switch("smart"===s&&(s=l>=C-w&&l<=E+w?"auto":"center"),s){case"start":return E;case"end":return C;case"center":var I=Math.round(C+(E-C)/2);return I<Math.ceil(w/2)?0:I>S+Math.floor(w/2)?S:I;default:return l>=C&&l<=E?l:l<C?C:E}},getStartIndexForOffset:function(t,i){return Math.max(0,Math.min(t.itemCount-1,Math.floor(i/t.itemSize)))},getStopIndexForStartIndex:function(t,i,s){var d=t.itemCount,f=t.itemSize,_=Math.ceil((("horizontal"===t.direction||"horizontal"===t.layout?t.width:t.height)+s-i*f)/f);return Math.max(0,Math.min(d-1,i+_-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){}});const Vk="#f1f1f1",Dw={styledScrollbars:"".concat("ListBox","-styledScrollbars")};function Hk(t){let{renderProps:i,layoutOptions:s,maxCount:l,columnCount:c,rowCount:d,overflowDisclaimer:f,qCardinal:p,dataOffset:m}=t;const y="column"===(null==s?void 0:s.layoutOrder)&&"singleColumn"!==s.dataLayout,b=((t,i)=>void 0!==(null==t?void 0:t.visibleRowStopIndex)||void 0!==t.visibleColumnStopIndex?i?t.visibleColumnStopIndex:t.visibleRowStopIndex:t.visibleStopIndex)(i,y),_=y?l.column:l.row,w=(y?c:d)>=_,S=((t,i,s,l)=>t===i*s+l+s)(p,b,y?d:c,m),E=!!m&&((t,i)=>void 0!==(null==t?void 0:t.visibleRowStartIndex)||void 0!==t.visibleColumnStartIndex?i?0===t.visibleColumnStartIndex:0===t.visibleRowStartIndex:0===t.visibleStartIndex)(i,y);f.set(w&&!S&&b>=_-1||E||f.state.show)}const{StyledFixedSizeList:pO,StyledFixedSizeGrid:gO}=function(){const t=i=>({scrollbarColor:"".concat("#BBB"," ").concat(Vk),overflow:i?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:Vk},"&::-webkit-scrollbar-thumb":{backgroundColor:"#BBB",borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:aa(uO,{shouldForwardProp:i=>"scrollDisabled"!==i})(i=>{let{scrollDisabled:s}=i;return{["&.".concat(Dw.styledScrollbars)]:t(s)}}),StyledFixedSizeGrid:aa(Fs,{shouldForwardProp:i=>"scrollDisabled"!==i})(i=>{let{scrollDisabled:s}=i;return{["&.".concat(Dw.styledScrollbars)]:t(s)}})}}(),kw=t=>{const i=P.useMemo(()=>"text"in t?t:{},[t]);return P.useMemo(()=>((t,i)=>{const s=(()=>{const c=document.createDocumentFragment(),d=document.createElement("canvas");return c.appendChild(d),d.getContext("2d")})();if(s.font=i,Array.isArray(t))return Math.max(...t.map(c=>s.measureText(c).width));const l=s.measureText(t);return Math.ceil(l.width||0)})(i.text,i.font||"12px Source Sans Pro"),[i.text,i.font])};function Aw(t){return t?Array("number"==typeof t?t:t.qListObject.qDimensionInfo.qApprMaxGlyphCount).fill("M").join(""):""}function $k(t){let{isGridMode:i,dense:s}=t,l=s?20:i?32:29;return i&&(l+=4),l}const[bO,_O]=Do({});function Gk(t){const i="".concat(t.id),[s]=bO();return{setStoreValue:(l,c)=>s.set("".concat(i,"/").concat(l),c),getStoreValue:l=>s.get("".concat(i,"/").concat(l))}}const wO=De(En,{shouldForwardProp:t=>!["width","dense"].includes(t)})(t=>{let{width:i,dense:s}=t;return ee({minWidth:"".concat(i,"px"),textAlign:"center",fontSize:"".concat(s?"12px":"14px")},s&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:i})});function Uk(t){let{width:i,text:s,dense:l,tooltip:c}=t;const{translator:d}=P.useContext(ai);return V.createElement(hw,{title:c?d.get(s):""},V.createElement(wO,{width:i,dense:l,component:"div",variant:"body1",py:"12px"},d.get(s)))}var ag={},Rv={exports:{}};!function(t){t.exports=function(i){return i&&i.__esModule?i:{default:i}},t.exports.__esModule=!0,t.exports.default=t.exports}(Rv);var Wk,TN=Rv.exports,Kk={},ON=Di(JC),LN=TN;Object.defineProperty(ag,"__esModule",{value:!0});var xO=ag.default=void 0,Qk=LN((Wk||(Wk=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.createSvgIcon}});var i=ON}(Kk)),Kk));xO=ag.default=(0,Qk.default)((0,ce.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");const PN=De(A_)(t=>{let{theme:i,left:s}=t;return{position:"absolute",bottom:"12px",display:"flex",border:"1px solid ".concat(i.palette.divider),width:"calc(100% - 11px)",left:s}}),EO=De("div")(()=>({paddingLeft:"6px",flexGrow:1})),NN=De("div")(t=>{let{dense:i}=t;return{display:"flex",alignItems:"".concat(i?"center":"flex-start")}}),CO=De(xO)(()=>({fontSize:"14px"}));function DO(t){let{text:i,dismiss:s,dense:l,parentWidth:c=0}=t;const d="function"==typeof s,f=l?370:282,p=Math.max(c/2-f/2,0),m=Math.min(f,c)-42;return V.createElement(PN,{left:p,style:{maxWidth:f}},V.createElement(EO,null,V.createElement(Uk,{text:i,dense:l,width:m,tooltip:l&&c<f})),V.createElement(NN,{dense:l},d&&V.createElement(Ms,{"aria-label":"close",onClick:()=>s()},V.createElement(CO,null))))}function Yk(t){let{itemWidth:i,layout:s,frequencyMode:l}=t;const c=i>80,{frequencyEnabled:d=!1}=(null==s?void 0:s.qListObject)||{},f=!["N",void 0].includes(l);return!(!c||!f&&!d)}const cg=t=>{const i=(s=t)&&(/^[A-Za-z][A-Za-z0-9_]*$/.test(s)?s:"[".concat(s.replace(/\]/g,"]]"),"]"));var s;return"Max(AGGR(Count(".concat(i,"), ").concat(i,"))")},kO=(t,i)=>{const s="fetch"===(null==(p=i)?void 0:p.frequencyMax),[l,c]=P.useState(),[d,f]=P.useState(s);var p;return P.useEffect(()=>{!s||be(function*(){const p=yield(m=be(function*(y,b){const _=y.qListObject.qDimensionInfo,S=cg(_.qGroupFieldDefs[_.qGroupPos]);return(yield b.evaluateEx(S)).qNumber}),function(y,b){return m.apply(this,arguments)})(i,t);var m;c(p),f(!1)})()},[s&&i]),{frequencyMax:s?l:null==i?void 0:i.frequencyMax,awaitingFrequencyMax:d}},Zk=["isLoadingData"],IO=De("div")(()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}}));function Mv(t){var i,s;let{model:l,app:c,constraints:d,layout:f,selections:p,selectionState:m,direction:y,checkboxes:b,height:_,width:w,frequencyMode:S,update:E,fetchStart:C,postProcessPages:I,calculatePagesHeight:D=!1,keyboard:k={},showGray:A=!0,scrollState:M,keyScroll:T={state:{},reset:()=>{}},currentScrollIndex:O={set:()=>{}},renderedCallback:N,onCtrlF:B,showSearch:j,isModal:G,styles:Q}=t;const{translator:H}=P.useContext(ai),[z,K]=P.useState(!1),Y=!(!f||!f.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:X=b,histogram:re}=null!=f?f:{},[q,$]=P.useState(""),W=P.useRef(null),te=P.useRef({queue:[],validPages:!1,dataOffset:0}),J=P.useRef({pages:[]}),{frequencyMax:ae,awaitingFrequencyMax:ue}=kO(c,f),ve=_n(function(Fe){let{local:Ge,loaderRef:Pt,model:At,fetchStart:Yt,scrollTimeout:st,postProcessPages:ut,listData:Bt}=Fe;const[sn,Tn]=P.useState(!1),[Nt,Ct]=P.useState([]);let[Ft]=P.useState(0);const It=(On,ti)=>{const Yn=Ge.current.dataOffset;Ge.current.queue.push({start:On+Yn,stop:ti+Yn});const Fr=!!Pt.current&&Pt.current._listRef&&Pt.current._listRef.state.isScrolling;return Ge.current.queue.length>10&&Ge.current.queue.shift(),clearTimeout(Ge.current.timeout),Tn(!0),new Promise(no=>{Ge.current.timeout=setTimeout(()=>{const Bi=Ge.current.queue.slice(-1)[0],cc=At.getListObjectData("/qListObjectDef",[{qTop:Bi.start>Ft?Bi.start-Ft:0,qHeight:Ft,qLeft:0,qWidth:1},{qTop:Bi.start,qHeight:Ft,qLeft:0,qWidth:1}]).then(ro=>{const uc=ut?ut(ro):ro;Ge.current.validPages=!0,Bt.current.pages=uc,Ct(uc),Tn(!1),no()});Yt&&Yt(cc)},Fr?st:0)})};return{loadMoreItems:{with(On){let{minimumBatchSize:ti}=On;return ti&&(Ft=ti),It}},pages:Nt,isLoading:sn}}({local:te,loaderRef:W,model:l,fetchStart:C,scrollTimeout:0,postProcessPages:I,listData:J}),Zk),{getStoreValue:Ee,setStoreValue:fe}=Gk(l),we=P.useCallback(ve.loadMoreItems,[f]),[pe,ye]=P.useState({show:!1,dismissed:!1}),[Ne,Oe]=P.useState([]);null!=ve&&ve.pages&&m.update({setPages:Oe,pages:ve.pages,isSingleSelect:Y,layout:f});const qe=null==f?void 0:f.qListObject.qDimensionInfo.qCardinal;(null!=ve&&ve.pages.length&&!ue||0===qe)&&(null==N||N());const Ve=P.useCallback(Fe=>{if(null==Ne||!Ne.length||!te.current.validPages)return!1;te.current.checkIdx=Fe;const Ge=At=>At.qArea.qTop<=Fe&&Fe<At.qArea.qTop+At.qArea.qHeight,Pt=Ne.filter(At=>Ge(At))[0];return Pt&&Ge(Pt)},[f,Ne]),{interactionEvents:lt,select:xe}=function WT(t){var i;let{selectionState:s,selections:l,checkboxes:c=!1,doc:d=document,loaderRef:f}=t;const p=P.useRef({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});P.useEffect(()=>{var A;if(null===(A=f.current)||void 0===A||null===(A=A._listRef)||void 0===A||!A._outerRef)return;const M=B=>B.preventDefault(),T=B=>B.preventDefault(),O=B=>B.preventDefault(),N=f.current._listRef._outerRef;return N.addEventListener("gesturestart",M),N.addEventListener("gesturechange",T),N.addEventListener("gestureend",O),()=>{N.removeEventListener("gesturestart",M),N.removeEventListener("gesturechange",T),N.removeEventListener("gestureend",O)}},[null===(i=f.current)||void 0===i||null===(i=i._listRef)||void 0===i?void 0:i._outerRef]);const m=function(){var A=be(function*(){var M;return(null===(M=s.selectDisabled)||void 0===M||!M.call(s))&&(s.setSelectableValuesUpdating(),Ck({selections:l,elemNumbers:p.current.elemNumbers,isSingleSelect:s.isSingleSelect,toggle:p.current.toggle}))});return function(){return A.apply(this,arguments)}}(),y=(A,M)=>function(O,N){if(!O)return[];if(O.length<=1)return O;const{min:B,max:j}=function(G,Q){let H=1/0,z=-1/0;return G.forEach(K=>{const Y=Q.indexOf(K);H=Y<H?Y:H,z=Y>z?Y:z}),{min:H,max:z}}(O,N);return N.slice(B,j+1)}([A,M],function(O){if(!O||!O.length)return[];const N=O.map(B=>B.qMatrix.map(G=>{const[{qElemNumber:Q}]=G;return Q}));return Ek(N)}(s.enginePages)),b=A=>{const{startElemNumber:M}=p.current;if(M===A)return;const T=y(p.current.startElemNumber,A);s.updateItems(T,!0,p.current.elemNumbers)},_=P.useCallback(A=>{if(s.selectDisabled())return;const M=+A.target.getAttribute("data-n"),T=!s.isSingleSelect&&_w(A.nativeEvent);p.current.elemNumbers=[M],p.current.toggle=T,T||s.clearItemStates(!0),s.updateItem(M),p.current.active=!1,m()},[]),w=P.useCallback(A=>{if(0!==A.button||s.selectDisabled())return;const M=+A.currentTarget.getAttribute("data-n"),T=!s.isSingleSelect&&_w(A);var O;p.current.isRange=!1,p.current.startElemNumber=M,p.current.elemNumbers=[M],p.current.toggle=T,p.current.active=!0,T||s.clearItemStates(!0),s.updateItem(M),s.isSingleSelect&&(p.current.active=!1,m()),((O=A).ctrlKey||O.metaKey)&&(A.currentTarget.focus(),O.preventDefault())},[]),S=P.useCallback(A=>{if(0===A.button&&p.current.active){if(p.current.active=!1,p.current.isRange){const M=+A.currentTarget.getAttribute("data-n");b(M)}m()}},[]),E=P.useCallback(A=>{0===A.button&&p.current.active&&(p.current.active=!1,m())},[]),C=P.useCallback(A=>{if(!p.current.active)return;p.current.isRange||(p.current.isRange=!0,s.isSelected(p.current.startElemNumber)||(s.updateItem(p.current.startElemNumber,!0),p.current.elemNumbers=[]));const M=+A.currentTarget.getAttribute("data-n");b(M)},[]),I=P.useCallback(A=>{var M,T;if(p.current.active||p.current.isRange||s.isSingleSelect||A.touches.length<=1)return;if(A.touches.length>2)return void m();const O=Number(null===(M=A.touches[0].target)||void 0===M||null===(M=M.closest(Dk))||void 0===M?void 0:M.getAttribute("data-n")),N=Number(null===(T=A.touches[1].target)||void 0===T||null===(T=T.closest(Dk))||void 0===T?void 0:T.getAttribute("data-n"));Number.isNaN(O)||Number.isNaN(O)?m():(p.current.active=!0,y(O,N).length<7&&(p.current.touchRangeSmall=!0),p.current.elemNumbers=[],p.current.touchElemNumbers=[O,N])},[]),D=P.useCallback(()=>{if(2!==p.current.touchElemNumbers.length)return;if(p.current.touchRangeSmall)return p.current.touchRangeSmall=!1,p.current.touchElemNumbers=[],void(p.current.active=!1);const[A,M]=p.current.touchElemNumbers;p.current.startElemNumber=A,b(M),p.current.touchElemNumbers=[],p.current.active=!1,p.current.toggle=!0,m()},[]);P.useEffect(()=>(d.addEventListener("mouseup",E),()=>{d.removeEventListener("mouseup",E)}),[E]),P.useEffect(()=>{const A=()=>{s.clearItemStates(!1)},M=()=>{s.clearItemStates(!0),s.triggerStateChanged()};return l.on("clearItemStates",A),l.on("deactivated",A),l.on("cleared",M),()=>{l.removeListener("clearItemStates",A),l.removeListener("deactivated",A),l.removeListener("cleared",M)}},[l]);const k={};return Object.assign(k,c?{onChange:_}:{onMouseUp:S,onMouseDown:w,onMouseEnter:C,onTouchStart:I,onTouchEnd:D}),{interactionEvents:k,select:(A=be(function*(){var M;let T=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],O=arguments.length>1&&void 0!==arguments[1]&&arguments[1],N=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(null!==(M=s.selectDisabled)&&void 0!==M&&M.call(s))return!1;const B=!s.isSingleSelect&&_w(null==N?void 0:N.nativeEvent);B||s.clearItemStates(!0);const j=[];return s.updateItems(T,O,j),s.setSelectableValuesUpdating(),Ck({selections:l,elemNumbers:O?j:T,isSingleSelect:s.isSingleSelect,toggle:B})}),function(){return A.apply(this,arguments)})};var A}({selectionState:m,selections:p,checkboxes:X,doc:document,loaderRef:W}),{layoutOptions:Ke={}}=f||{};let Xe=!0;Ke.dataLayout&&(Xe="singleColumn"===Ke.dataLayout||"row"===(null==Ke?void 0:Ke.layoutOrder));const Tt="grid"===(null==Ke?void 0:Ke.dataLayout),Je=Fe=>{const Ge=ee({},Xe?{rowIndex:Fe}:{columnIndex:Fe});W.current._listRef.scrollToItem(Tt?Ge:Fe)},nt=()=>{if(te.current.queue=[],te.current.validPages=!1,W.current){W.current.resetloadMoreItemsCache(!0);const Fe="overflowEnd"===T.state.scrollPosition;if(f&&f.qSelectionInfo.qInSelections||Fe)return void(Fe&&T.reset());te.current.dataOffset=0,Je(0)}};E&&E.call(null,nt),P.useEffect(()=>{M&&!z&&W.current&&(W.current._listRef.scrollToItem(M.initScrollPos),K(!0))},[W.current]),P.useEffect(()=>{nt()},[f,te.current.dataOffset]);let ot=100;const xt="grid"!==Ke.dataLayout,Wt=null==f||null===(i=f.qListObject.qSize)||void 0===i?void 0:i.qcy,Kt=function(Fe){let{pages:Ge,minimumBatchSize:Pt,count:At,calculatePagesHeight:Yt=!1}=Fe;return(null!=Ge&&Ge.length&&Yt?(t=>{let{pages:i=[],minimumBatchSize:s,count:l}=t;const c=i.some(f=>f.qArea.qHeight<s),d=Math.max(...i.map(f=>f.qArea.qTop+f.qArea.qHeight));return c?d:l})({pages:Ge,minimumBatchSize:Pt,count:At}):At)||0}({pages:Ne,minimumBatchSize:ot,count:Wt,calculatePagesHeight:D,layoutOptions:Ke,model:l});let lr=Yk({itemWidth:w,layout:f,frequencyMode:S});const Be=Ne.some(Ge=>{let{qMatrix:Pt}=Ge;return Pt.some(At=>{var Yt;let[st]=At;return!(null===(Yt=st.qFrequency)||void 0===Yt||!Yt.match("%"))})})?"P":"-",qt=function yO(t){let{layout:i,width:s,height:l,listCount:c,count:d,freqIsAllowed:f,checkboxes:p,styles:m}=t;const{layoutOptions:y={}}=i||{},{layoutOrder:b,maxVisibleRows:_={},maxVisibleColumns:w,dense:S,dataLayout:E}=y,{fontSize:C="12px",fontFamily:I="Source sans pro"}=(null==m?void 0:m.content)||{},D="".concat(C," ").concat(I),k=kw({text:Aw(i),font:D}),A=kw({text:Aw(5),font:D}),M=kw({text:Aw(8),font:D}),T=f?A:0,O=p?20:0;let N=56+T+O;!p&&N>=80&&(N+=20);let B,j,G,Q,H=k+18+T+O;!p&&H>=80&&(H+=20),H=Math.min(150,Math.max(H,N));const z=$k({isGridMode:"grid"===E,dense:S}),K=null!=l?l:8*z;if(b){let $=s;"row"===b?(B={overflowX:"hidden"},$+=8,({rowCount:Q,columnWidth:G,columnCount:j}=function(W){let{maxVisibleColumns:te,listCount:J,containerWidth:ae,columnAutoWidth:ue,itemMinWidth:_e}=W;const ve=(null==te?void 0:te.maxColumns)||3,Ee=ae-10;let fe;const we=Math.min(J,Math.max(1,Math.round(Ee/Math.max(_e,ue))));fe=!1!==(null==te?void 0:te.auto)?we:Math.min(J,ve,we),fe=Math.max(fe,1);const pe=Ee/fe;return{rowCount:Math.ceil(J/fe),columnWidth:pe,columnCount:fe}}({maxVisibleColumns:w,listCount:c,containerWidth:$,columnAutoWidth:H,itemMinWidth:N}))):(B={overflowY:"hidden"},({rowCount:Q,columnWidth:G,columnCount:j}=function(W){let te,{maxVisibleRows:J,itemHeight:ae,listCount:ue,listHeight:_e,columnAutoWidth:ve,containerWidth:Ee,itemMinWidth:fe}=W;const we=(null==J?void 0:J.maxRows)||3,pe=Math.floor(_e/ae);te=!1!==J.auto?pe:Math.min(ue,we,pe),te=Math.max(te,1);const ye=Math.ceil(ue/te);return{columnWidth:Math.max(ve,Ee/ye,fe),columnCount:ye,rowCount:te}}({maxVisibleRows:_,itemHeight:z,listCount:c,listHeight:K,columnAutoWidth:H,containerWidth:$,itemMinWidth:N})))}j=("singleColumn"===E?1:j)||1,Q=("singleColumn"===E?d:Q)||c;const Y=y.dense?838e3:577e3;Q=Math.min(Q,Y);const X=Math.floor(3355e4/G);return j=Math.min(j,X)||1,{columnCount:j,columnWidth:G,rowCount:Q,overflowStyling:B,itemHeight:z,listHeight:K,listWidth:s,scrollBarWidth:10,count:d,listCount:Math.min(c,Q*j),maxCount:{row:Y,column:X},itemPadding:4,textWidth:k,freqMinWidth:A,freqMaxWidth:M}}({layout:f,width:w,height:_,listCount:Kt,count:Wt,freqIsAllowed:lr,checkboxes:X,styles:Q});qt.columnWidth&&(lr=Yk({itemWidth:qt.columnWidth,layout:f,frequencyMode:S}));const{listCount:gn}=qt;fe("listCount",gn);const mn=Ee("inputText");P.useEffect(()=>{if(mn){const Fe=function(Pt){let At;switch(Pt){case 0:At="Listbox.NoMatchesForYourTerms";break;case 1:At="ScreenReader.OneSearchResult";break;default:At="ScreenReader.ManySearchResults"}return At}(gn),Ge=H.get(Fe,[gn]);$(Ge)}},[mn,gn]);const Nr=Fe=>{const{scrollIndex:Ge,offset:Pt,triggerRerender:At}=function(Yt){let st,{position:ut,isRow:Bt,sizes:sn,layout:Tn,offset:Nt}=Yt,Ct=!1,Ft=null!=Nt?Nt:0;switch(ut){case"start":st=0;break;case"end":st=Bt?sn.rowCount:sn.columnCount;break;case"overflowStart":Ft=0,st=0,Ct=!0;break;case"overflowEnd":Ft=((t,i)=>t.qListObject.qDimensionInfo.qCardinal-i)(Tn,sn.listCount),st=Tn.qListObject.qDimensionInfo.qCardinal,Ct=!0}return{scrollIndex:st,offset:Ft,triggerRerender:Ct}}({position:Fe,isRow:Xe,sizes:qt,layout:f,offset:te.current.dataOffset});te.current.dataOffset=Pt,At&&m.triggerStateChanged(),Je(Ge)};P.useEffect(()=>{const Fe=T.state;Fe.up?Je(O.state.start-Fe.up):Fe.down?Je(O.state.stop+Fe.down):Fe.scrollPosition&&Nr(Fe.scrollPosition),"overflowEnd"!==Fe.scrollPosition&&T.reset()},[T.state.up,T.state.down,T.state.scrollPosition]);const{textAlign:Kr}=(null==f?void 0:f.qListObject.qDimensionInfo)||{},[_r,Qt]=P.useState({first:!1,last:!1}),{List:$t,Grid:un}=function(Fe){let{layout:Ge,width:Pt,checkboxes:At,local:Yt,isVertical:st,pages:ut,selectionState:Bt,interactionEvents:sn,deducedFrequencyMode:Tn,histogram:Nt,isSingleSelect:Ct,select:Ft,selectAll:It,onCtrlF:On,textAlign:ti,selections:Yn,keyboard:Fr,showGray:no,scrollState:Bi,direction:cc,sizes:ro,listCount:uc,overflowDisclaimer:mt,setScrollPosition:yn,focusListItems:dc,setCurrentScrollIndex:Ag,constraints:Kf,frequencyMax:f0,freqIsAllowed:R5,translator:lI,showSearch:h0,isModal:M5,styles:T5}=Fe;const{layoutOptions:zu={}}=Ge||{},{columnWidth:cI,listHeight:p0,itemHeight:g0,rowCount:Qf,columnCount:Ig}=ro||{},O5=("grid"===zu.dataLayout?cI:Pt)>80,Ax={direction:"rtl"===cc?"rtl":"ltr",useIsScrolling:!0,className:Dw.styledScrollbars},Rg=null==Ge?void 0:Ge.qListObject.qDimensionInfo.qLocked,uI=p0<=g0,dI=ee(ee({isLocked:Rg,column:!st,pages:ut},Rg||Bt.selectDisabled()?{}:sn),{},{checkboxes:At,layoutOptions:zu,deducedFrequencyMode:Tn,freqIsAllowed:R5,isSingleSelect:Ct,textAlign:ti,sizes:ro,actions:{select:Ft,confirm:()=>null==Yn?void 0:Yn.confirm.call(Yn),cancel:()=>null==Yn?void 0:Yn.cancel.call(Yn),setScrollPosition:yn,selectAll:It,onCtrlF:On},frequencyMax:f0,histogram:Nt,keyboard:Fr,showGray:no,showTick:O5,dataOffset:Yt.current.dataOffset,focusListItems:dc,direction:cc,translator:lI,showSearch:h0,isModal:M5,styles:T5,fillHeight:uI});return{List:m0=>{let{onItemsRendered:Ix,ref:Mg}=m0;return Yt.current.listRef=Mg,V.createElement(pO,Vi({},Ax,{dataTestid:"fixed-size-list",scrollDisabled:null==Kf?void 0:Kf.active,height:p0,width:Pt,itemCount:uc,itemData:ee(ee({},dI),{},{listCount:uc}),itemSize:g0,onItemsRendered:qu=>{var fc;Ag({start:qu.visibleStartIndex,stop:qu.visibleStopIndex}),Bi&&Bi.setScrollPos(qu.visibleStopIndex),Hk({renderProps:qu,layoutOptions:zu,maxCount:ro.maxCount,columnCount:Ig,rowCount:Qf,overflowDisclaimer:mt,qCardinal:null==Ge||null===(fc=Ge.qListObject)||void 0===fc||null===(fc=fc.qDimensionInfo)||void 0===fc?void 0:fc.qCardinal,dataOffset:Yt.current.dataOffset}),Ix(ee({},qu))},ref:Mg}),iO)},Grid:m0=>{let{onItemsRendered:Ix,ref:Mg}=m0;const{overflowStyling:qu,scrollBarWidth:fc}=ro,{layoutOrder:fI}=zu||{},L5=Math.min(p0,Qf*g0+fc);return Yt.current.listRef=Mg,V.createElement(gO,Vi({},Ax,{dataTestid:"fixed-size-grid",scrollDisabled:null==Kf?void 0:Kf.active,height:L5,width:Pt,columnCount:Ig,columnWidth:cI,rowCount:Qf,rowHeight:g0,style:ee({},qu),itemData:ee(ee({},dI),{},{column:void 0,columnCount:Ig,rowCount:Qf}),onItemsRendered:Vu=>{var Hu;const Rx="row"===fI;Ag({start:Rx?Vu.visibleRowStartIndex:Vu.visibleColumnStartIndex,stop:Rx?Vu.visibleRowStopIndex:Vu.visibleColumnStopIndex});const P5=function(N5){const{renderProps:CF,scrollState:hI,layoutOrder:DF,rowCount:pI,columnCount:Mx}=N5,{overscanRowStartIndex:y0,overscanRowStopIndex:Tg,overscanColumnStartIndex:Tx,overscanColumnStopIndex:Ox,visibleStopIndex:Og}=CF;let Lx,Px,zs,ga;return hI&&hI.setScrollPos(Og),"column"===DF?(Lx=Tx*pI,Px=y0,zs=Ox*pI,ga=Tg):(Lx=Tx,Px=y0*Mx,zs=Ox,ga=Tg*Mx),{visibleStartIndex:Lx+Px,visibleStopIndex:zs+ga}}({renderProps:Vu,scrollState:Bi,layoutOrder:fI,rowCount:Qf,columnCount:Ig});Hk({renderProps:Vu,layoutOptions:zu,maxCount:ro.maxCount,columnCount:Ig,rowCount:Qf,overflowDisclaimer:mt,qCardinal:null==Ge||null===(Hu=Ge.qListObject)||void 0===Hu||null===(Hu=Hu.qDimensionInfo)||void 0===Hu?void 0:Hu.qCardinal,dataOffset:Yt.current.dataOffset}),Ix(P5)},ref:Mg}),iO)}}}({direction:y,layout:f,height:_,width:w,checkboxes:X,deducedFrequencyMode:Be,histogram:re,keyboard:k,showGray:A,interactionEvents:lt,select:xe,selectAll:()=>{m.clearItemStates(!1),l.selectListObjectAll("/qListObjectDef")},onCtrlF:B,textAlign:Kr,isVertical:xt,pages:Ne,selectionState:m,isSingleSelect:Y,selections:p,scrollState:M,local:te,sizes:qt,listCount:gn,overflowDisclaimer:{state:pe,set:Fe=>ye(Ge=>ee(ee({},Ge),{},{show:Fe}))},setScrollPosition:Nr,focusListItems:{first:_r.first,setFirst:Fe=>Qt(Ge=>ee(ee({},Ge),{},{first:Fe})),last:_r.last,setLast:Fe=>Qt(Ge=>ee(ee({},Ge),{},{last:Fe}))},setCurrentScrollIndex:O.set,constraints:d,frequencyMax:ae,freqIsAllowed:lr,translator:H,showSearch:j,isModal:G,styles:Q}),{columnWidth:$n,listHeight:Gn,itemHeight:Dn}=qt||{};return xt||(ot=function(Fe){let{width:Ge,columnWidth:Pt,listHeight:At,itemHeight:Yt}=Fe;return Math.ceil(Ge/Pt)*Math.ceil(At/Yt)*2}({width:w,columnWidth:$n,listHeight:Gn,itemHeight:Dn})),V.createElement(IO,null,V.createElement(nO,{className:"screenReaderOnly",layout:f}),V.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},q),!gn&&qe>0&&V.createElement(Uk,{width:w,text:"Listbox.NoMatchesForYourTerms"}),V.createElement(bw,{isItemLoaded:Ve,itemCount:gn||1,loadMoreItems:we.with({minimumBatchSize:ot}),threshold:0,minimumBatchSize:ot,ref:W,role:"grid"},xt?$t:un),pe.show&&!pe.dismissed&&V.createElement(DO,{text:"Listbox.ItemsOverflow",dismiss:()=>ye(Fe=>ee(ee({},Fe),{},{dismissed:!0})),parentWidth:null==W||null===(s=W.current)||void 0===s||null===(s=s._listRef)||void 0===s||null===(s=s.props)||void 0===s?void 0:s.width,dense:null==Ke?void 0:Ke.dense}))}const RO=t=>ee(ee({},t),{},{shapes:[{type:"path",attrs:{d:"M15.4,9 C15.8,9 16,9.3 16,9.6 L16,15.4 C16,15.7 15.8,16 15.4,16 L9.6,16 C9.3,16 9,15.8 9,15.4 L9,9.6 C9,9.3 9.3,9 9.6,9 L15.4,9 Z M15,10 L10,10 L10,15 L15,15 L15,10 Z M6.5,0 C6.8,0 7,0.3 7,0.6 L7,6.4 C7,6.8 6.8,7 6.5,7 L0.6,7 C0.3,7 0,6.8 0,6.5 L0,0.6 C0,0.3 0.3,0 0.6,0 L6.5,0 Z M6,2.8 C6.3,2.5 6.3,2.1 6.1,1.8 C5.9,1.5 5.4,1.6 5.1,1.9 L3.1,3.9 L2.4,3.2 C2.1,2.9 1.7,2.9 1.4,3.1 C1.2,3.3 1.2,3.8 1.5,4.1 L2.7,5.3 C3,5.6 3.4,5.6 3.7,5.3 L3.8,5.3 L6,2.8 Z M6.5,9 C6.8,9 7,9.3 7,9.6 L7,15.4 C7,15.8 6.8,16 6.5,16 L0.6,16 C0.3,16 0,15.8 0,15.4 L0,9.6 C0,9.3 0.3,9 0.6,9 L6.5,9 Z M6,11.8 C6.3,11.5 6.3,11.1 6.1,10.8 C5.9,10.6 5.4,10.6 5.1,10.8 L3.1,12.8 L2.3,12 C2,11.7 1.6,11.7 1.3,12 C1.1,12.3 1.1,12.7 1.4,13 L2.6,14.2 C2.9,14.5 3.3,14.5 3.6,14.3 L3.7,14.2 L6,11.8 Z M15.4,0 C15.8,0 16,0.3 16,0.6 L16,6.4 C16,6.8 15.8,7 15.4,7 L9.6,7 C9.3,7 9,6.8 9,6.5 L9,0.6 C9,0.3 9.3,0 9.6,0 L15.4,0 Z M15,2.8 C15.3,2.5 15.3,2.1 15.1,1.8 C14.9,1.5 14.4,1.6 14.1,1.9 L12.1,3.9 L11.3,3.1 C11,2.8 10.6,2.8 10.3,3 C10,3.2 10.1,3.7 10.3,4 L11.5,5.2 C11.8,5.5 12.2,5.5 12.5,5.2 L15,2.8 Z"}}]}),Tv=t=>ee(ee({},t),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),Ov=t=>ee(ee({},t),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),Xk=t=>ee(ee({},t),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]});var Rw=t=>{let{layout:i,model:s,translator:l,selectionState:c,isDirectQuery:d=!1}=t;return i.qListObject.qDimensionInfo.qIsOneAndOnlyOne?[]:[{key:"selectAll",type:"menu-icon-button",label:l.get("Selection.SelectAll"),getSvgIconShape:RO,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some(f=>i.qListObject.qDimensionInfo.qStateCounts[f]>0),action:()=>{c.clearItemStates(!1),s.selectListObjectAll("/qListObjectDef")}},{key:"selectPossible",type:"menu-icon-button",label:l.get("Selection.SelectPossible"),getSvgIconShape:Ov,enabled:()=>["qOption"].some(f=>i.qListObject.qDimensionInfo.qStateCounts[f]>0),action:()=>{c.clearItemStates(!1),s.selectListObjectPossible("/qListObjectDef")}},!d&&{key:"selectAlternative",type:"menu-icon-button",label:l.get("Selection.SelectAlternative"),getSvgIconShape:Tv,enabled:()=>["qAlternative"].some(f=>i.qListObject.qDimensionInfo.qStateCounts[f]>0),action:()=>{c.clearItemStates(!1),s.selectListObjectAlternative("/qListObjectDef")}},!d&&{key:"selectExcluded",type:"menu-icon-button",label:l.get("Selection.SelectExcluded"),getSvgIconShape:Xk,enabled:()=>["qAlternative","qExcluded"].some(f=>i.qListObject.qDimensionInfo.qStateCounts[f]>0),action:()=>{c.clearItemStates(!1),s.selectListObjectExcluded("/qListObjectDef")}}].filter(Boolean)};const ug=t=>ee(ee({},t),{},{shapes:[{type:"path",attrs:{d:"M2,6.5 L3,6.5 C3.55228475,6.5 4,6.94771525 4,7.5 L4,8.5 C4,9.05228475 3.55228475,9.5 3,9.5 L2,9.5 C1.44771525,9.5 1,9.05228475 1,8.5 L1,7.5 C1,6.94771525 1.44771525,6.5 2,6.5 Z M7.5,6.5 L8.5,6.5 C9.05228475,6.5 9.5,6.94771525 9.5,7.5 L9.5,8.5 C9.5,9.05228475 9.05228475,9.5 8.5,9.5 L7.5,9.5 C6.94771525,9.5 6.5,9.05228475 6.5,8.5 L6.5,7.5 C6.5,6.94771525 6.94771525,6.5 7.5,6.5 Z M13,6.5 L14,6.5 C14.5522847,6.5 15,6.94771525 15,7.5 L15,8.5 C15,9.05228475 14.5522847,9.5 14,9.5 L13,9.5 C12.4477153,9.5 12,9.05228475 12,8.5 L12,7.5 C12,6.94771525 12.4477153,6.5 13,6.5 Z"}}]});function Mw(t){const i=Wr(),s="function"==typeof t.enabled?!t.enabled():!!t.disabled;return{hidden:!0===t.hidden,disabled:s,style:{backgroundColor:t.active?i.palette.btn.active:void 0},hasSvgIconShape:"function"==typeof t.getSvgIconShape}}const Tw={className:"njs-cell-action"},Ow=V.forwardRef((t,i)=>{let{ariaExpanded:s=!1,item:l,addAnchor:c=!1}=t;const d=Wr(),{hidden:f,disabled:p,style:m,hasSvgIconShape:y}=Mw(l);if(f)return null;const b=Number.parseInt(d.spacing(.5),10),_=l.keyboardAction||l.action,w=_?C=>["Enter"].includes(C.key)&&_():null,S=_?C=>[" ","Spacebar"].includes(C.key)&&_():null,E="actions-toolbar-".concat(l.key);return V.createElement(Ms,{ref:c?null:i,title:l.label,onClick:l.action,onKeyDown:w,onKeyUp:S,disabled:p,style:m,className:[Tw.className,E].join(" "),size:"large",disableRipple:!0,"aria-expanded":s,"aria-controls":"moreMenuList","data-testid":E},y&&Ao(l.getSvgIconShape()),c&&V.createElement("div",{ref:i,style:{bottom:-b,right:0,position:"absolute",width:"100%",height:0}}))}),Jk=t=>ee(ee({},t),{},{shapes:[{type:"path",attrs:{d:"M9.34535242,8 L13.3273238,11.9819714 C13.6988326,12.3534802 13.6988326,12.955815 13.3273238,13.3273238 C12.955815,13.6988326 12.3534802,13.6988326 11.9819714,13.3273238 L8,9.34535242 L4.01802863,13.3273238 C3.64651982,13.6988326 3.04418502,13.6988326 2.67267621,13.3273238 C2.3011674,12.955815 2.3011674,12.3534802 2.67267621,11.9819714 L6.65464758,8 L2.67267621,4.01802863 C2.3011674,3.64651982 2.3011674,3.04418502 2.67267621,2.67267621 C3.04418502,2.3011674 3.64651982,2.3011674 4.01802863,2.67267621 L8,6.65464758 L11.9819714,2.67267621 C12.3534802,2.3011674 12.955815,2.3011674 13.3273238,2.67267621 C13.6988326,3.04418502 13.6988326,3.64651982 13.3273238,4.01802863 L9.34535242,8 Z"}}]}),Lw=t=>ee(ee({},t),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M9.1661442,6.1661442 C10.7210031,4.61128527 13.2789969,4.61128527 14.8338558,6.1661442 C16.3887147,7.72100313 16.3887147,10.2789969 14.8338558,11.8338558 C13.2789969,13.3887147 10.7210031,13.3887147 9.1661442,11.8338558 C7.61128527,10.2789969 7.61128527,7.77115987 9.1661442,6.1661442 Z M14.1316614,7.72100313 C14.3322884,7.52037618 14.3824451,7.169279 14.1316614,6.9184953 C13.8808777,6.6677116 13.5297806,6.71786834 13.3291536,6.9184953 L12.0250784,8.22257053 L10.7210031,6.9184953 C10.5203762,6.6677116 10.1191223,6.6677116 9.9184953,6.9184953 C9.6677116,7.11912226 9.6677116,7.52037618 9.9184953,7.72100313 L11.2225705,9.02507837 L9.9184953,10.3291536 C9.6677116,10.5297806 9.6677116,10.8808777 9.9184953,11.1316614 C10.169279,11.3824451 10.5203762,11.3824451 10.7210031,11.1316614 L12.0250784,9.82758621 L13.3291536,11.1316614 C13.5297806,11.3824451 13.8808777,11.3824451 14.1316614,11.1316614 C14.3322884,10.9310345 14.3824451,10.5297806 14.1316614,10.3291536 L12.8275862,9.02507837 L14.1316614,7.72100313 Z"}}]});var MO=t=>Ao(Lw(t));const eA={icon:"".concat("More","-icon")},OO=De(Wp)(t=>{let{theme:i}=t;return{pointerEvents:"none",["& .".concat(eA.icon," *")]:{color:i.palette.text.primary}}});function Lv(t){let{item:i,autoFocus:s,onActionClick:l=(()=>{})}=t;const{hidden:c,disabled:d,hasSvgIconShape:f}=Mw(i);return c?null:V.createElement(tt,{autoFocus:s,title:i.label,onClick:()=>{i.action(),l()},disabled:d,tabindex:"0"},f&&V.createElement(_T,{className:eA.icon},Ao(i.getSvgIconShape())),V.createElement(En,{noWrap:!0},i.label))}const tA=V.forwardRef((t,i)=>{let{actions:s=[],show:l=!0,alignTo:c,popoverProps:d={},popoverPaperStyle:f={},onCloseOrActionClick:p=(()=>{})}=t;const m=s.length>0,y=s.findIndex(b=>!b.disabled);return m&&V.createElement(OO,Vi({},d,{onClose:p,ref:i,open:l,anchorEl:c.current,getContentAnchorEl:null,container:c.current,disablePortal:!0,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:"njs-action-toolbar-more"},paper:{style:ee({pointerEvents:"auto",maxWidth:"250px"},f)}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}),V.createElement(aw,{id:"moreMenuList"},s.map((b,_)=>V.createElement(Lv,{key:_,item:b,autoFocus:_===y,onActionClick:p}))))}),Nv="ActionsToolbar",Fv={item:"".concat(Nv,"-item"),itemSpacing:"".concat(Nv,"-itemSpacing")},nA=De(Wp)(t=>{let{theme:i}=t;return{["& .".concat(Fv.itemSpacing)]:{padding:i.spacing(0,.25)}}}),LO_className="njs-action-toolbar-popover",jv=V.forwardRef((t,i)=>{let{className:s,ariaExpanded:l=!1,actions:c=[],addAnchor:d=!1,isRtl:f=!1}=t;return c.length>0?V.createElement(Te,{item:!0,container:!0,gap:0,flexDirection:f?"row-reverse":"row",wrap:"nowrap",className:s},c.map((p,m)=>V.createElement(Te,{item:!0,key:p.key,className:"".concat(Fv.itemSpacing," ").concat(Fv.item)},V.createElement(Ow,{ariaExpanded:l,key:p.key,item:p,ref:0===m?i:null,addAnchor:d})))):null}),PO={pointerEvents:"none"},rA={vertical:"bottom",horizontal:"right"};function Pw(t){var i,s;let{show:l=!0,actions:c=[],maxItems:d=3,selections:f={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},extraItems:p,more:m={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{}},popover:y={show:!1,anchorEl:null},focusHandler:b=null,actionsRefMock:_=null,isRtl:w,autoConfirm:S=!1,layout:E}=t;const C=function(W){let{api:te,layout:J,onConfirm:ae=(()=>{}),onCancel:ue=(()=>{}),onKeyDeactivate:_e=(()=>{})}=W;const{translator:ve}=P.useContext(ai);return[{key:"clear",type:"icon-button",label:ve.get("Selection.Clear"),enabled:()=>te.canClear(J),action:()=>te.clear(),getSvgIconShape:Lw},{key:"cancel",type:"icon-button",label:ve.get("Selection.Cancel"),enabled:()=>te.canCancel(J),action:()=>{ue(),te.cancel()},keyboardAction:()=>{_e(),ue(),te.cancel()},getSvgIconShape:Jk},{key:"confirm",type:"icon-button",label:ve.get("Selection.Confirm"),enabled:()=>te.canConfirm(J),action:()=>{ae(),te.confirm()},keyboardAction:()=>{_e(),ae(),te.confirm()},getSvgIconShape:kk}]}(ee(ee({},f),{},{layout:E})),{translator:I,keyboardNavigation:D}=P.useContext(ai),[k,A]=P.useState(!1),M={vertical:12,horizontal:(null!==(i=null===(s=y.anchorEl)||void 0===s?void 0:s.clientWidth)&&void 0!==i?i:0)-7},T=P.useRef(),O=P.useRef(),N=Wr(),B=P.useMemo(()=>({margin:N.spacing(.5,0)})),j=W=>{const te=T.current||_;if(!te)return null;const J=te.querySelectorAll("button:not(.Mui-disabled)");return J[W?J.length-1:0]},G=P.useMemo(()=>function(W){let{keyboardNavigation:te,focusHandler:J,getEnabledButton:ae,selections:ue,isRtl:_e}=W;return ve=>{const{target:Ee,nativeEvent:fe}=ve,{keyCode:we}=fe;switch(we){case Et.ARROW_LEFT:case Et.ARROW_DOWN:case Et.ARROW_RIGHT:case Et.ARROW_UP:if(Ee.classList.contains("njs-cell-action")){const pe=(t=>{const i=t.closest("#actions-toolbar"),s=null==i?void 0:i.querySelectorAll(".njs-cell-action");return Array.from(s).indexOf(t)})(Ee);let ye=[Et.ARROW_LEFT,Et.ARROW_DOWN].includes(we);ye=_e?!ye:ye,(t=>{const i=document.querySelector("#actions-toolbar"),s=null==i?void 0:i.querySelectorAll(".njs-cell-action");!s.length||s[Math.min(Math.max(0,t),s.length-1)].focus()})(ye?pe-1:pe+1)}ve.stopPropagation(),ve.preventDefault();break;case Et.SPACE:ve.preventDefault();break;case Et.TAB:te&&null!=J&&J.refocusContent&&(ve.shiftKey&&ae(!1)===ve.target||!ve.shiftKey&&ae(!0)===ve.target)&&(ve.preventDefault(),ve.stopPropagation(),J.refocusContent());break;case Et.ESCAPE:ue&&(ue.onCancel(),ue.api.cancel(),ve.preventDefault(),ve.stopPropagation())}}}({keyboardNavigation:D,focusHandler:b,getEnabledButton:j,selections:f,isRtl:w}),[D,b,j,f,w]);if(P.useEffect(()=>()=>{A(!1)},[y.show,l,f.show]),P.useEffect(()=>{!b||(b.on("focus_toolbar_first",()=>{const W=j(!1);null==W||W.focus()}),b.on("focus_toolbar_last",()=>{const W=j(!0);null==W||W.focus()}))},[]),S)return;let Q=m.enabled,H=m.actions;const z=m.alignTo||O,K=c.filter(W=>!W.hidden);if(K.length>d){const W=K.splice(-(K.length-d)-1);Q=!0,H=[...W,...m.actions]}if(!f.show&&0===K.length)return null;const Y={key:"more",label:I.get("Menu.More"),getSvgIconShape:ug,hidden:!1,active:k,enabled:()=>Q,action:()=>A(!k)},X=K.length>0,re=H.length>0,q=X&&f.show||re&&f.show,$=V.createElement(Te,{ref:T,onKeyDown:G,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:w?"row-reverse":"row"}},(null==p?void 0:p.length)&&V.createElement(jv,{className:"actions-toolbar-extra-actions",actions:p,isRtl:w}),X&&V.createElement(jv,{actions:K}),re&&V.createElement(jv,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:O,ariaExpanded:k,actions:[Y],addAnchor:!0}),q&&V.createElement(Te,{item:!0,className:Fv.itemSpacing,style:B},V.createElement(eT,{orientation:"vertical"})),f.show&&V.createElement(jv,{className:"actions-toolbar-default-actions",actions:C,isRtl:w}),k&&V.createElement(tA,{show:k,actions:H,alignTo:z,popoverProps:m.popoverProps,popoverPaperStyle:m.popoverPaperStyle,onCloseOrActionClick:()=>{A(!1)}}));return y.show?V.createElement(nA,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:y.show,anchorEl:y.anchorEl,anchorOrigin:M,transformOrigin:rA,hideBackdrop:!0,style:PO,onMouseDown:W=>{W.stopPropagation()},slotProps:{paper:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:LO_className,style:{pointerEvents:"auto",padding:N.spacing(.5,.25)}}}},$):l&&$}var Nw=t=>Ao((i=>ee(ee({},i),{},{shapes:[{type:"path",attrs:{d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014l-4.128-4.026ZM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0Zm-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6.034 6.034 0 0 1-1.413 1.415Z"}}]}))(t));const dg="/qListObjectDef",FO=De(kT,{shouldForwardProp:t=>!["styles","dense","isRtl"].includes(t)})(t=>{let{theme:i,styles:s,dense:l,isRtl:c}=t,d={};return l&&(d={fontSize:12,paddingLeft:i.spacing(1),"& input":{paddingTop:"5px",paddingBottom:"5px"}}),ee({display:"flex",border:"none",fontSize:14,borderRadius:0,backgroundColor:s.search.backgroundColor,backdropFilter:s.background.backgroundImage?s.search.backdropFilter:void 0,paddingLeft:"".concat(9,"px"),flexDirection:c?"row-reverse":"row","& fieldset":{borderColor:"".concat(s.search.borderColor),borderWidth:"1px 0 1px 0",borderRadius:0},"&.Mui-focused fieldset":{borderColor:"".concat(s.search.highlightBorderColor," !important")},"& .MuiInputBase-root":ee({},s.search),"& *":{color:s.search.color},"& input":{color:s.search.color,textAlign:c?"right":"left"}},d)});function iA(t){let{selections:i,selectionState:s,model:l,keyboard:c,dense:d=!1,visible:f=!0,autoFocus:p=!0,wildCardSearch:m=!1,searchEnabled:y,direction:b,hide:_,styles:w}=t;const{translator:S}=P.useContext(ai),[E,C]=P.useState(""),[I,D]=P.useState(!1),k=P.useRef(),{getStoreValue:A,setStoreValue:M}=Gk(l),T="rtl"===b,O=function(){var j=be(function*(){if(s.selectDisabled()||i.isModal())try{yield l.abortListObjectSearch(dg)}finally{C("")}});return function(){return j.apply(this,arguments)}}();P.useEffect(()=>{f||O()},[f]),P.useEffect(()=>(i.on("deactivated",O),()=>{i.removeListener&&i.removeListener("deactivated",O)}),[]),P.useEffect(()=>{if(I&&k.current){const j=E.length-1;k.current.setSelectionRange(j,j),D(!1)}},[I,k.current]),P.useEffect(()=>{M("inputText",E)},[E]);const N=function(){var j=be(function*(){let G;const Q=yield l.searchListObjectFor(dg,E);return s.selectDisabled()?Q:(Q&&E.length&&A("listCount")>0&&(G=l.acceptListObjectSearch(dg,!0),i.selectionsMade=!0,s.clearItemStates(!1),C("")),G)});return function(){return j.apply(this,arguments)}}();function B(j){const G=(null==j?void 0:j.querySelector(".last-focused"))||(null==j?void 0:j.querySelector('[role="row"]:first-child'));null==G||G.setAttribute("tabIndex",0),null==G||G.focus()}return f&&!1!==y?V.createElement(FO,{styles:w,dense:d,isRtl:T,startAdornment:V.createElement(ok,{position:"start"},V.createElement(Nw,{size:d?"small":"normal"})),className:"search",inputRef:k,size:"small",fullWidth:!0,placeholder:S.get("Listbox.Search"),value:E,onFocus:()=>{m&&(C("**"),D(!0)),s.selectDisabled()||i.isModal()||i.begin(["/qListObjectDef"])},onChange:(j=be(function*(G){return C(G.target.value),G.target.value.length?l.searchListObjectFor(dg,G.target.value):O()}),function(Q){return j.apply(this,arguments)}),onKeyDown:function(){var j=be(function*(G){const{currentTarget:Q}=G,H=Q.closest(".listbox-container");switch(G.key){case"Enter":N();break;case"Escape":B(H),i.isActive()&&i.cancel();break;case"Tab":G.shiftKey?c.focusSelection():(B(H),null==H||H.querySelectorAll(".last-focused").forEach(z=>{z.classList.remove("last-focused")}));break;case"f":case"F":if(!G.ctrlKey&&!G.metaKey)return;_&&(_(),B(H));break;default:return}G.preventDefault(),G.stopPropagation()});return function(Q){return j.apply(this,arguments)}}(),autoFocus:p,inputProps:{tabIndex:c.innerTabStops?0:-1,"data-testid":"search-input-field","aria-label":S.get("Listbox.Search.ScreenReaderInstructions")}}):null;var j}function Bv(t){return Object.keys(so.prototype).forEach(i=>{t[i]=so.prototype[i]}),so.init(t),t}const jO=t=>{let i,{appSelections:s,appModal:l,model:c}=t,d=!1,f=!1;const p={id:c.id,setLayout(m){i=m},begin(m){const y=(()=>{let b=!1;return{isPrevented:()=>b,preventDefault:()=>{b=!0}}})();return this.emit("activate",y),y.isPrevented()?Promise.resolve():(d=!0,this.emit("activated"),l.begin({model:c,paths:m,accept:!0,objectSelections:p}))},clear(){return f=!1,this.emit("cleared"),i.qListObject?c.clearSelections("/qListObjectDef"):c.resetMadeSelections()},confirm(){return f=!1,d=!1,this.emit("confirmed"),this.emit("deactivated"),l.end(!0)},cancel(){return f=!1,d=!1,this.emit("canceled"),this.emit("deactivated"),l.end(!1)},select(m){var y=this;return be(function*(){const b=y.begin([m.params[0]]);if(!s.isModal())return!1;yield b;const _=yield c[m.method](...m.params);return f="resetMadeSelections"!==m.method,!!_||(c.resetMadeSelections(),!1)})()},canClear:()=>i&&i.qListObject&&i.qListObject.qDimensionInfo?!i.qListObject.qDimensionInfo.qLocked&&!i.qListObject.qDimensionInfo.qIsOneAndOnlyOne:f,canConfirm:()=>i&&i.qListObject&&i.qListObject.qDimensionInfo?!i.qListObject.qDimensionInfo.qLocked:f,canCancel:()=>!(i&&i.qListObject&&i.qListObject.qDimensionInfo&&i.qListObject.qDimensionInfo.qLocked),isActive:()=>d,isModal:()=>s.isModal(p),goModal:m=>l.begin({model:c,paths:m,accept:!1,objectSelections:p}),noModal:function(){return l.end(arguments.length>0&&void 0!==arguments[0]&&arguments[0])}};return Bv(p),p};function oA(t,i,s,l){const c=Array.isArray(s)?s:[s],[d]=tv(t),[f]=ec(i),[p]=a2(),m=p.get(t.id),[y,b]=P.useState();return P.useEffect(()=>{d&&i&&!y&&b(jO({appSelections:d,appModal:m,model:i}))},[d,i]),P.useEffect(()=>{if(!y)return()=>{};const{activateClickOut:_,deactivateClickOut:w}=(t=>{let{elements:i,objectSelections:s,options:l={}}=t;const c=function(d){let{elements:f,handleClickOutside:p}=d;return m=>{if(!document.contains(m.target))return;const y=f.map(b=>"string"==typeof b?document.querySelector(b):null==b?void 0:b.current).filter(b=>!!b&&!!document.contains(b));y.length&&!y.some(b=>b.contains(m.target))&&p(m)}}({elements:i,handleClickOutside:()=>s.confirm.call(s)});return{activateClickOut(){var d;document.addEventListener("mousedown",c),null==l||null===(d=l.onSelectionActivated)||void 0===d||d.call(l)},deactivateClickOut(){var d;document.removeEventListener("mousedown",c),null==l||null===(d=l.onSelectionDeactivated)||void 0===d||d.call(l)}}})({elements:c,objectSelections:y,options:l});return y.addListener("activated",_),y.addListener("deactivated",w),()=>{y.isActive()&&y.confirm(),y.removeListener("activated",_),y.removeListener("deactivated",w)}},[y]),P.useEffect(()=>{y&&y.setLayout(f)},[y,f]),[y]}function sA(){const t=ee(ee({itemStates:{},ignoreSelectionState:!1,selectedInEngine:[],enginePages:[],setPages:void 0,lastRowCount:void 0,lastApprMaxGlyphCount:void 0,selectDisabled:void 0},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),{},{update(i){var s,l;let{setPages:c,pages:d,isSingleSelect:f,selectDisabled:p,layout:m}=i;this.setPages=c,this.lastRowCount===m.qListObject.qSize.qcy&&this.lastApprMaxGlyphCount===m.qListObject.qDimensionInfo.qApprMaxGlyphCount||(this.lastRowCount=m.qListObject.qSize.qcy,this.lastApprMaxGlyphCount=m.qListObject.qDimensionInfo.qApprMaxGlyphCount,this.clearItemStates(!1)),t.enginePages!==d&&void 0!==d&&(t.enginePages=null!=d?d:[],t.selectedInEngine=UT(d),t.selectableValuesUpdating=!1,t.triggerStateChanged()),t.isSingleSelect=f,t.selectDisabled=p||t.selectDisabled,t.isDimCalculated=null!==(s=null==m||null===(l=m.qListObject)||void 0===l||null===(l=l.qDimensionInfo)||void 0===l?void 0:l.qIsCalculated)&&void 0!==s&&s},allowedToSelect:()=>!(t.selectDisabled()||t.isDimCalculated&&t.selectableValuesUpdating),setSelectableValuesUpdating(){t.selectableValuesUpdating=!0},useClientItemState:i=>t.ignoreSelectionState||i in t.itemStates,isSelected:i=>t.useClientItemState(i)?!!t.itemStates[i]:t.selectedInEngine.includes(i),getState(i){const{qElemNumber:s,qState:l}=i;return t.useClientItemState(s)?t.itemStates[s]?"XS"===l?"XS":"S":"S"===l||"XS"===l?"A":l:l},updateItemNoEvents(i,s,l){const c=t.isSelected(i);c&&!s?t.itemStates[i]=!1:c||(null==l||l.push(i),t.itemStates[i]=!0)},triggerStateChanged(){if(this.setPages){const i=t.applySelectionsOnPages(t.enginePages);this.setPages(i)}},applySelectionsOnPages:i=>i.map(l=>{const c=l.qMatrix.map(d=>{const[f]=d,p=t.getState(f);return[ee(ee({},f),{},{qState:p}),...d.slice(1)]});return ee(ee({},l),{},{qMatrix:c})}),updateItem(i,s,l){t.updateItemNoEvents(i,s,l),t.triggerStateChanged()},updateItems(i,s,l){i.forEach(c=>{t.updateItemNoEvents(c,s,l)}),t.triggerStateChanged()},clearItemStates(i){t.itemStates={},t.ignoreSelectionState=i}});return t}const zv=function(t,i){var s;return null!==(s=null==t?void 0:t[i])&&void 0!==s?s:arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0};function Fw(t){const i=(null==t?void 0:t.qListObject.qDimensionInfo.qStateCounts)||{};return zv(i,"qSelected",0)+zv(i,"qSelectedExcluded",0)+zv(i,"qLocked",0)+zv(i,"qLockedExcluded",0)>0}const jf={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},zO=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,jN=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,BN=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,qO=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,VO=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,HO=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,{floor:Bf}=Math,{round:tc}=Math;class jt{constructor(){for(var i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];let c,d,f,p,m,y,b,_,w,S,E,C,I=0,D=0,k=0,A=1;if(this._invalid=!1,s[0]instanceof jt)I=s[0]._r,D=s[0]._g,k=s[0]._b,A=s[0]._a,this._invalid=s[0]._invalid;else if(s.length<3)if("string"==typeof s[0])if(C=s[0],E=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(C))I=parseInt(E[1],10),D=parseInt(E[2],10),k=parseInt(E[3],10);else if(E=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(C))I=parseInt(E[1],10),D=parseInt(E[2],10),k=parseInt(E[3],10),A=parseFloat(E[4]);else if(E=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(C))A=parseInt(E[1],10)/255,I=parseInt(E[2],10),D=parseInt(E[3],10),k=parseInt(E[4],10);else if(E=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(C))I=parseInt(E[1],16),D=parseInt(E[2],16),k=parseInt(E[3],16),A=1;else if(E=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(C))I=parseInt(E[1]+E[1],16),D=parseInt(E[2]+E[2],16),k=parseInt(E[3]+E[3],16),A=1;else if(E=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(C)){switch(c=parseFloat(E[1]),d=parseFloat(E[3]),p=parseFloat(E[5]),c%=360,d/=100,p/=100,c=c<0?0:c>360?360:c,d=d<0?0:d>1?1:d,p=p<0?0:p>1?1:p,y=p<=.5?2*p*d:(2-2*p)*d,b=c/60,_=y*(1-Math.abs(b%2-1)),w=[],b=Math.floor(b),b){case 0:w=[y,_,0];break;case 1:w=[_,y,0];break;case 2:w=[0,y,_];break;case 3:w=[0,_,y];break;case 4:w=[_,0,y];break;case 5:w=[y,0,_];break;default:w=[0,0,0]}S=p-.5*y,I=w[0]+S,D=w[1]+S,k=w[2]+S,I=tc(255*I),D=tc(255*D),k=tc(255*k),A=1}else if(E=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(C)){switch(c=parseFloat(E[1]),d=parseFloat(E[3]),p=parseFloat(E[5]),A=parseFloat(E[7]),c%=360,d/=100,p/=100,c=c<0?0:c>360?360:c,d=d<0?0:d>1?1:d,p=p<0?0:p>1?1:p,y=p<=.5?2*p*d:(2-2*p)*d,b=c/60,_=y*(1-Math.abs(b%2-1)),w=[],b=Math.floor(b),b){case 0:w=[y,_,0];break;case 1:w=[_,y,0];break;case 2:w=[0,y,_];break;case 3:w=[0,_,y];break;case 4:w=[_,0,y];break;case 5:w=[y,0,_];break;default:w=[0,0,0]}S=p-.5*y,I=w[0]+S,D=w[1]+S,k=w[2]+S,I=tc(255*I),D=tc(255*D),k=tc(255*k)}else if(E=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(C)){switch(c=parseFloat(E[1]),d=parseFloat(E[3]),m=parseFloat(E[5]),c%=360,d/=100,m/=100,c=c<0?0:c>360?360:c,d=d<0?0:d>1?1:d,m=m<0?0:m>1?1:m,y=m*d,b=c/60,_=y*(1-Math.abs(b%2-1)),w=[],b=Math.floor(b),b){case 0:w=[y,_,0];break;case 1:w=[_,y,0];break;case 2:w=[0,y,_];break;case 3:w=[0,_,y];break;case 4:w=[_,0,y];break;case 5:w=[y,0,_];break;default:w=[0,0,0]}S=m-y,I=w[0]+S,D=w[1]+S,k=w[2]+S,I=tc(255*I),D=tc(255*D),k=tc(255*k),A=1}else jf[C.toLowerCase()]?(f=C.toLowerCase(),I=jf[f].r,D=jf[f].g,k=jf[f].b,A="number"==typeof jf[f].a?jf[f].a:1):this._invalid=!0;else"number"==typeof s[0]&&s[0]>=0&&"argb"===s[1]?(A=(4278190080&s[0])>>>24,A/=255,I=(16711680&s[0])>>16,D=(65280&s[0])>>8,k=255&s[0]):"number"==typeof s[0]&&s[0]>=0?(I=(16711680&s[0])>>16,D=(65280&s[0])>>8,k=255&s[0]):this._invalid=!0;else s.length>=3?(I=s[0],D=s[1],k=s[2],A=arguments.length>=4?s[3]:1):this._invalid=!0;Number.isNaN(+I+D+k+A)&&(this._invalid=!0),this._r=Bf(I),this._g=Bf(D),this._b=Bf(k),this._a=A,this._spaces={}}isInvalid(){return this._invalid}setAlpha(i){this._a=i,this._spaces={}}getAlpha(){return this._a}toRGB(){return this._spaces.rgb||(this._spaces.rgb=jt.toRGB(this)),this._spaces.rgb}toRGBA(){return this._spaces.rgba||(this._spaces.rgba=jt.toRGBA(this)),this._spaces.rgba}toString(){return this._spaces.rgb||(this._spaces.rgb=jt.toRGB(this)),this._spaces.rgb}toHex(){return this._spaces.hex||(this._spaces.hex=jt.toHex(this)),this._spaces.hex}toHSL(i){return this._spaces.hsl||(this._spaces.hsl=jt.toHSL(this,i)),this._spaces.hsl}toHSLA(i){return this._spaces.hsla||(this._spaces.hsla=jt.toHSLA(this,i)),this._spaces.hsla}toHSV(){const i=this.toHSVComponents();return"hsv(".concat(i.h,",").concat(i.s,",").concat(i.v,")")}toHSVComponents(){return this._spaces.hsvComp||(this._spaces.hsvComp=jt.toHSVComponents(this)),this._spaces.hsvComp}toNumber(){return this._spaces.num||(this._spaces.num=jt.toNumber(this)),this._spaces.num}isDark(){return this.isInvalid()||this.getLuminance()<125}getLuminance(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}shiftLuminance(i){const s=this.toHSLA(),l=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(s),c=parseFloat(l[1]),d=parseFloat(l[3]);let f=parseFloat(l[5]);const p=parseFloat(l[7]);return f+=i,f=Math.max(0,Math.min(f,100)),"hsla(".concat(c,",").concat(d,",").concat(f,",").concat(p,")")}isEqual(i){return i instanceof jt||(i=new jt(i)),this._r===i._r&&this._g===i._g&&this._b===i._b&&this._a===i._a}blend(i,s){const l=Bf(this._r+(i._r-this._r)*s),c=Bf(this._g+(i._g-this._g)*s),d=Bf(this._b+(i._b-this._b)*s),f=Bf(this._a+(i._a-this._a)*s);return"rgba(".concat([l,c,d,f].join(","),")")}createShiftedColor(i){(void 0===i||Number.isNaN(+i))&&(i=1);const s=this.getLuminance(),c=this.shiftLuminance(20*(s*(this._g<126?1:1+this._g/512)<220?.8+1/(s+1)*4:-(.8+s/255*1))*i);return new jt(c)}static toRGB(i){if(i instanceof jt)return"rgb(".concat([i._r,i._g,i._b].join(","),")");"string"==typeof i&&(i=jt.toNumber(i));const s=(65280&i)>>8,l=255&i;return"rgb(".concat((16711680&i)>>16,",").concat(s,",").concat(l,")")}static toRGBA(i,s){if(i instanceof jt)return"rgba(".concat([i._r,i._g,i._b,void 0!==s?s:i._a].join(","),")");"string"==typeof i&&(i=jt.toNumber(i));const l=(65280&i)>>8,c=255&i;return"rgba(".concat((16711680&i)>>16,",").concat(l,",").concat(c,",").concat(void 0!==s?s:i._a,")")}static toHex(i){let s,l,c;return i instanceof jt?(s=i._r.toString(16),l=i._g.toString(16),c=i._b.toString(16),1===s.length&&(s="0".concat(s)),1===l.length&&(l="0".concat(l)),1===c.length&&(c="0".concat(c)),"#".concat([s,l,c].join(""))):("string"==typeof i&&(i=jt.toNumber(i)),s=((16711680&i)>>16).toString(16),l=((65280&i)>>8).toString(16),c=(255&i).toString(16),1===s.length&&(s="0".concat(s)),1===l.length&&(l="0".concat(l)),1===c.length&&(c="0".concat(c)),"#".concat(s).concat(l).concat(c))}static toHSL(i,s){let l,c,d,f=0;"string"==typeof i&&(i=new jt(i));const p=i._r/255,m=i._g/255,y=i._b/255,b=Math.max(p,m,y),_=Math.min(p,m,y);if(c=s?.21*p+.72*m+.07*y:(b+_)/2,b===_)l=0,f=0;else{switch(d=b-_,l=c>.5?d/(2-b-_):d/(b+_),b){case p:f=(m-y)/d+(m<y?6:0);break;case m:f=(y-p)/d+2;break;case y:f=(p-m)/d+4}f/=6}return"hsl(".concat(360*f,",").concat(100*l,",").concat(100*c,")")}static toHSLA(i,s){let l,c,d,f=0;"string"==typeof i&&(i=new jt(i));const p=i._r/255,m=i._g/255,y=i._b/255,b=i._a,_=Math.max(p,m,y),w=Math.min(p,m,y);if(c=s?.21*p+.72*m+.07*y:(_+w)/2,_===w)l=0,f=0;else{switch(d=_-w,l=c>.5?d/(2-_-w):d/(_+w),_){case p:f=(m-y)/d+(m<y?6:0);break;case m:f=(y-p)/d+2;break;case y:f=(p-m)/d+4}f/=6}return"hsla(".concat(360*f,",").concat(100*l,",").concat(100*c,",").concat(b,")")}static toHSVComponents(i){let s,l,c=0;"string"==typeof i&&(i=new jt(i));const d=i._r/255,f=i._g/255,p=i._b/255,m=Math.max(d,f,p),y=Math.min(d,f,p),b=m;if(m===y)s=0,c=0;else{switch(l=m-y,s=0===l?0:l/b,m){case d:c=(f-p)/l+(f<p?6:0);break;case f:c=(p-d)/l+2;break;case p:c=(d-f)/l+4}c/=6}return{h:360*c%360,s:100*s,v:100*b}}static toNumber(){for(var i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];if(1===s.length&&s[0]instanceof jt)return(s[0]._r<<16)+(s[0]._g<<8)+s[0]._b;let c,d,f=0,p=0,m=0;return 1===s.length&&"string"==typeof s[0]&&(d=s[0],(c=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(d))?(f=parseInt(c[1],10),p=parseInt(c[2],10),m=parseInt(c[3],10)):(c=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(d))?(f=parseInt(c[1],16),p=parseInt(c[2],16),m=parseInt(c[3],16)):(c=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(d))&&(f=parseInt(c[1]+c[1],16),p=parseInt(c[2]+c[2],16),m=parseInt(c[3]+c[3],16))),(f<<16)+(p<<8)+m}static blend(i,s,l){const c=(16711680&(i=jt.toNumber(i)))>>16,d=(65280&i)>>8,f=255&i;return(c+(((16711680&(s=jt.toNumber(s)))>>16)-c)*l<<16)+(d+(((65280&s)>>8)-d)*l<<8)+(f+((255&s)-f)*l)}static getBlend(i,s,l){return new jt(i._r+(s._r-i._r)*l,i._g+(s._g-i._g)*l,i._b+(s._b-i._b)*l,i._a+(s._a-i._a)*l)}static isCSSColor(i){return!(arguments.length>1||"string"!=typeof i)&&(zO.test(i)||jN.test(i)||BN.test(i)||qO.test(i)||VO.test(i)||HO.test(i)||jf[i.toLowerCase()])}static getBestContrast(i,s,l){const c=i.getLuminance();return Math.abs(c-s.getLuminance())>Math.abs(c-l.getLuminance())?s:l}static getContrast(i,s){if(!i||!s)return;const l=i.getLuminance()/100,c=s.getLuminance()/100;return l>c?(l+.05)/(c+.05):(c+.05)/(l+.05)}static isDark(){for(var i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];return new jt(...s).isDark(...s)}static useDarkLabel(i,s){return i._a>.5?!i.isDark():!s}}const nc=/,(?![^(]*\))/,$O=/\s(?![^(]*\))/,GO=/^[0-9]+[a-zA-Z%]+?$/,fg=["none","inset","initial","inherit"],jw=t=>{if(!t)return;const i=t.split($O).filter(l=>!fg.includes(l.toLowerCase())).at(-1);return!i||"0"===(l=i)||GO.test(l)||fg.includes(i.toLowerCase())?void 0:i;var l},UO=t=>t?t.split(nc).map(i=>i.trim()):[];function Bw(t,i,s,l){return s&&l?s.getStyle("object.".concat(l),t,i):s?s.getStyle("",t,i):void 0}function zw(t,i,s,l,c){return t&&l?"none"!==t.color?l.getColorPickerColor(t,true):void 0:Bw(i,s,l,c)}const WO={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},KO={"top-left":"top left","top-center":"top center","top-right":"top right","center-left":"center left","center-center":"center center","center-right":"center right","bottom-left":"bottom left","bottom-center":"bottom center","bottom-right":"bottom right"};function aA(t,i){const s=null==t?void 0:t.bgImage;if(s){let l="";if("media"===s.mode||"media"===t.useImage){const f=null==s?void 0:s.mediaUrl,{qUrl:p}=(null==f?void 0:f.qStaticContentUrl)||{};l=p?decodeURIComponent(p):void 0,l=function qN(t,i){return i?function(s){var l;let c,d,f,p;return null!=s&&null!==(l=s.session)&&void 0!==l&&l.config?(c=s.session.config,d=new URL(c.url),p="wss:"===d.protocol,f=p?"https://":"http://",f+d.host):""}(t)+i:void 0}(i,l)}"expression"===s.mode&&(l=s.expressionUrl?decodeURIComponent(s.expressionUrl):void 0);const c=function(f){var p;let m="center center";return null!=f&&null!==(p=f.bgImage)&&void 0!==p&&p.position&&(m=KO[f.bgImage.position]),m}(t),d=function(f){var p;let m=WO.originalSize;const y=null==f||null===(p=f.bgImage)||void 0===p?void 0:p.sizing;return y&&(m=WO[y]),m}(t);return l?{url:l,pos:c,size:d}:void 0}}function lA(t,i,s){const l=null==t?void 0:t.bgColor;return l&&i&&(l.useExpression||l.useColorExpression)?i.validateColor(l.colorExpression):zw(null==l?void 0:l.color,"","backgroundColor",i,s)}function QO(t,i,s){var l,c;const d=Bw("shadow","boxShadow",i,s);return((f,p,m)=>{if(f&&fg.includes(f.toLowerCase()))return f.toLowerCase();const y=UO(f);if(1!==y.length)return f;let b=m;if(!b){const w=UO(p);if(1!==w.length)return f;b=jw(w[0])}if(!b)return f;const _=jw(y[0]);return _?f.replace(_,b):"".concat(f," ").concat(b)})((null==t||null===(l=t.shadow)||void 0===l?void 0:l.boxShadow)||d,d,zw(null==t||null===(c=t.shadow)||void 0===c?void 0:c.boxShadowColor,"shadow","boxShadowColor",i,s))}function cA(t,i,s,l){var c;const d=(null==t||null===(c=t.title)||void 0===c?void 0:c[i])||{},f=(m=i,(p=d.fontStyle)&&Array.isArray(p)?p:"main"===m?["bold"]:[]);var p,m;return{fontFamily:d.fontFamily||s.getStyle("object.".concat(l),"title.".concat(i),"fontFamily"),fontSize:d.fontSize||s.getStyle("object.".concat(l),"title.".concat(i),"fontSize"),color:d.color&&"none"!==d.color.color?s.getColorPickerColor(d.color,!0):s.getStyle("object.".concat(l),i,"color"),fontWeight:f.includes("bold")?"bold":"normal",fontStyle:f.includes("italic")?"italic":"normal",textDecoration:f.includes("underline")?"underline":"initial"}}const YO=(t,i)=>{let s=!1;const l=new jt(t),c=new jt(i);if(!(c.isInvalid()||l.isInvalid()||c.getAlpha()<1||l.getAlpha()<1)){try{s=jt.getContrast(l,c)}catch(d){s=void 0}return s}};function Ou(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#000",l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#FFF";const c=new jt(l),d=new jt(t),f=new jt(i);if(d.isInvalid()||f.isInvalid()||d.getAlpha()<1||f.getAlpha()<1)return i;const p=YO(c,d),m=YO(f,d),y=p>m||p>3;let b;return b=i&&m>1.5&&!y?i:y?l:s,b}const ZO=["theme","selections"];function qw(t){var i,s,l,c,d,f,p,m;let{app:y,themeApi:b,theme:_,components:w=[],checkboxes:S=!1}=t;const E=function(){const H={};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach(z=>{const K=null==z?void 0:z.key;ZO.includes(K)&&(H[K]=z)}),H}(w),C=(H,z)=>b.getStyle("object.listBox",H,z),I=H=>(null==H?void 0:H.index)>0||null!=H&&H.color?b.getColorPickerColor(H,!1):void 0,D=function(H){var z,K,Y,X,re,q,$,W,te,J,ae,ue,_e,ve,Ee;let{getColorPickerColor:fe,theme:we,getListboxStyle:pe,overrides:ye,checkboxes:Ne}=H;const Oe=fe(null===(z=ye.theme)||void 0===z||null===(z=z.content)||void 0===z?void 0:z.fontColor)||pe("content","color")||(null===(K=we.palette)||void 0===K?void 0:K.text.primary),qe=!Ne&&(null===(Y=null===(X=ye.theme)||void 0===X||null===(X=X.content)||void 0===X?void 0:X.useContrastColor)||void 0===Y||Y),Ve=(null===(re=ye.selections)||void 0===re?void 0:re.colors)||{},lt=fe(Ve.selected)||(null===(q=we.palette)||void 0===q?void 0:q.selected.main)||"#009845",xe=fe(Ve.alternative)||(null===($=we.palette)||void 0===$?void 0:$.selected.alternative)||"#E4E4E4",Ke=fe(Ve.excluded)||(null===(W=we.palette)||void 0===W?void 0:W.selected.excluded)||"#A9A9A9",Xe=fe(Ve.selectedExcluded)||(null===(te=we.palette)||void 0===te?void 0:te.selected.selectedExcluded)||"#A9A9A9",Tt=fe(Ve.possible)||pe("","backgroundColor")||(null===(J=we.palette)||void 0===J?void 0:J.selected.possible)||"#FFFFFF";let Je=Oe||(null===(ae=we.palette)||void 0===ae?void 0:ae.selected.selectedContrastText),nt=Oe||(null===(ue=we.palette)||void 0===ue?void 0:ue.selected.alternativeContrastText),ot=Oe||(null===(_e=we.palette)||void 0===_e?void 0:_e.selected.excludedContrastText),xt=Oe||(null===(ve=we.palette)||void 0===ve?void 0:ve.selected.selectedExcludedContrastText),Wt=Oe||(null===(Ee=we.palette)||void 0===Ee?void 0:Ee.selected.possibleContrastText);return qe&&(Je=Ou(lt,Oe),nt=Ou(xe,Oe),ot=Ou(Ke,Oe),xt=Ou(Xe,Oe),Wt=Ou(Tt,Oe)),{selected:lt,alternative:xe,excluded:Ke,selectedExcluded:Xe,possible:Tt,selectedContrast:Je,alternativeContrast:nt,excludedContrast:ot,selectedExcludedContrast:xt,possibleContrast:Wt}}({getColorPickerColor:I,theme:_,getListboxStyle:C,overrides:E,checkboxes:S}),k=E.theme||{},A=I(null===(i=k.header)||void 0===i?void 0:i.fontColor)||C("title.main","color"),M=function(H){let z,{themeApi:K,themeOverrides:Y}=H;const X=null==Y?void 0:Y.background;return X&&(z=null!=X&&X.useExpression?lA({bgColor:X},K,"listBox"):K.getColorPickerColor(null==X?void 0:X.color,!1)),z}({themeApi:b,themeOverrides:k}),T=null!==(s=k.background)&&void 0!==s&&s.image?aA({bgImage:k.background.image},y):void 0,O=M||C("","backgroundColor")||_.palette.background.default,N=function(H,z){const K=new jt(z("","backgroundColor"));return K.setAlpha(.7),K.isInvalid()?H:K.toRGBA()}(O,C),B=Ou("#fff",C("content","color")),j=(null===(l=k.header)||void 0===l?void 0:l.fontStyle)||{},G=(null===(c=k.content)||void 0===c?void 0:c.fontStyle)||{},Q=(H,z,K)=>!0===H&&z||!1===H&&K||void 0;return{background:{backgroundColor:O,backgroundImage:null==T||!T.url||null!=T&&T.url.startsWith("url(")?void 0:"url('".concat(T.url,"')"),backgroundRepeat:"no-repeat",backgroundSize:null==T?void 0:T.size,backgroundPosition:null==T?void 0:T.pos},header:{color:A,fontSize:(null===(d=k.header)||void 0===d?void 0:d.fontSize)||C("title.main","fontSize"),fontFamily:(null===(f=k.header)||void 0===f?void 0:f.fontFamily)||C("title.main","fontFamily"),fontWeight:Q(j.bold,"bold","normal")||C("title.main","fontWeight")||"bold",textDecoration:j.underline?"underline":"initial",fontStyle:Q(j.italic,"italic","normal")||C("title.main","fontStyle")||"initial"},content:{backgroundColor:S?void 0:D.possible,color:D.possibleContrast||C("content","color"),fontSize:(null===(p=k.content)||void 0===p?void 0:p.fontSize)||C("content","fontSize"),fontFamily:(null===(m=k.content)||void 0===m?void 0:m.fontFamily)||C("content","fontFamily"),fontWeight:Q(G.bold,"bold","normal")||C("content","fontWeight")||"normal",textDecoration:G.underline?"underline":"initial",fontStyle:Q(G.italic,"italic","normal")||C("content","fontStyle")||"initial"},search:{color:B,borderColor:_.palette.divider,highlightBorderColor:_.palette.custom.focusBorder,backgroundColor:N,backdropFilter:"blur(8px)"},selections:D}}function qv(t){let{alignTo:i,anchorOrigin:s={vertical:"bottom",horizontal:"center"},transformOrigin:l={vertical:"top",horizontal:"center"},show:c,close:d,app:f,fieldName:p,stateName:m="$",autoFocus:y,components:b,checkboxes:_,selectDisabled:w=(()=>!1)}=t;const S=Boolean(null==p?void 0:p.qLibraryId),E=c&&Boolean(i.current),[C,I]=P.useState(0),D=Wr(),k=P.useRef(),[A]=mw({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:m,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],qFieldDefs:S?void 0:[p]},qLibraryId:S?p.qLibraryId:void 0}},f,p,m),M=P.useCallback(()=>{A.lock("/qListObjectDef")},[A]),T=P.useCallback(()=>{A.unlock("/qListObjectDef")},[A]),{translator:O,themeApi:N}=P.useContext(ai),B=P.useRef(),j=P.useRef(),[G]=oA(f,A,j),[Q]=ec(A),[H]=P.useState(()=>sA({selectDisabled:w})),{checkboxes:z=_}=Q||{},K=qw({themeApi:N,theme:D,components:b,checkboxes:z});if(P.useEffect(()=>{G&&E&&(G.isModal(A)||G.goModal("/qListObjectDef"))},[G,E]),!A||!Q||!O)return null;const Y=!0===Q.qListObject.qDimensionInfo.qLocked,X=($,W)=>{G.noModal("escapeKeyDown"!==W),d()},re=Rw({layout:Q,model:A,translator:O,selectionState:H}),q=Fw(Q);return V.createElement(Wp,{open:E,onClose:X,anchorEl:i.current,anchorOrigin:s,transformOrigin:l,slotProps:{paper:{style:{minWidth:"250px"}}}},V.createElement(Te,{container:!0,direction:"column",gap:0,ref:j},V.createElement(Te,{item:!0,container:!0,style:{padding:D.spacing(1)}},V.createElement(Te,{item:!0},Y?V.createElement(Ms,{onClick:T,disabled:!Y,size:"large"},V.createElement(da,{title:O.get("Listbox.Unlock")})):V.createElement(Ms,{onClick:M,disabled:!q,size:"large"},V.createElement(lN,{title:O.get("Listbox.Lock")}))),V.createElement(Te,{item:!0,xs:!0}),V.createElement(Te,{item:!0},V.createElement(Pw,{layout:Q,more:{enabled:!Y,actions:re,alignTo:B,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:G,onConfirm:X,onCancel:()=>X(0,"escapeKeyDown")}}))),V.createElement(Te,{item:!0,xs:!0},V.createElement("div",{ref:B}),V.createElement(Te,{item:!0,ref:k},V.createElement(iA,{styles:K,visible:!0,model:A,listCount:C,selections:G,selectionState:H,keyboard:{enabled:!1},autoFocus:null==y||y})),V.createElement(Mv,{model:A,app:f,layout:Q,selections:G,selectionState:H,direction:"ltr",onSetListCount:$=>I($),onCtrlF:()=>{const $=k.current.querySelector("input");null==$||$.focus()},styles:K}))))}function js(t){let{field:i,api:s,stateIx:l=0,skipHandleShowListBoxPopover:c=!1,moreAlignTo:d=null,onClose:f=(()=>{})}=t;const{translator:p}=P.useContext(ai),m=d||P.useRef(),y=Wr(),[b,_]=P.useState(!1),S=()=>{_(!1),f()},E=i.selections[l];void 0===E.qTotal&&(E.qTotal=0);const C=E.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},I=(C.qSelected+C.qLocked)/E.qTotal,D=C.qAlternative/E.qTotal,k=(C.qExcluded+C.qLockedExcluded+C.qSelectedExcluded)/E.qTotal,A=C.qSelected+C.qSelectedExcluded+C.qLocked+C.qLockedExcluded,M=0===A&&0===E.qTotal;let T="";E.qTotal===A&&E.qTotal>1?T=p.get("CurrentSelections.All"):A>1&&E.qTotal?T=p.get("CurrentSelections.Of",[A,E.qTotal]):E.qSelectedFieldSelectionInfo&&(T=E.qSelectedFieldSelectionInfo.map(Q=>Q.qName).join(", ")),"$"!==i.states[l]&&(T="".concat(i.states[l],": ").concat(T));const O=[{color:y.palette.selected.main,ratio:I},{color:y.palette.selected.alternative,ratio:D},{color:y.palette.selected.excluded,ratio:k}];O.forEach((Q,H)=>{Q.offset=H?O[H-1].offset+O[H-1].ratio:0});let N=null,B=null,j=null,G=null;return d||(N=V.createElement(Te,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:E.qLocked?"0.3":""}},V.createElement(En,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},E.qField),V.createElement(En,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},T)),E.qLocked?B=V.createElement(Te,{item:!0},V.createElement(Ms,{size:"large"},V.createElement(da,null))):E.qOneAndOnlyOne||(B=V.createElement(Te,{item:!0},V.createElement(Ms,{title:p.get("Selection.Clear"),onClick:Q=>{Q.stopPropagation(),s.clearField(E.qField,i.states[l])},size:"large"},V.createElement(Mu,null)))),j=V.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===M&&O.map(Q=>V.createElement("div",{key:Q.color,style:{position:"absolute",background:Q.color,height:"100%",top:0,width:"".concat(100*Q.ratio,"%"),left:"".concat(100*Q.offset,"%")}}))),G=V.createElement(Te,{container:!0,gap:1,ref:m,sx:{backgroundColor:y.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:y.palette.action.hover}},onClick:!1===c&&(Q=>{Q.currentTarget.contains(Q.target)&&_(!b)})||null},N,B,j,b&&V.createElement(qv,{alignTo:m,show:b,close:S,app:s.model,fieldName:E.qField,stateName:i.states[l]}))),d?V.createElement(qv,{alignTo:m,show:!0,close:S,app:s.model,fieldName:E.qField,stateName:i.states[l]}):G}var XO=t=>Ao((i=>ee(ee({},i),{},{shapes:[{type:"path",attrs:{d:"M8,9 L12.5,4.5 L14,6 L9.5,10.5 L8,12 L2,6 L3.5,4.5 L8,9 Z"}}]}))(t));const uA={item:"".concat("MultiState","-item")},dA=De(Te)(t=>{let{theme:i}=t;return{["&.".concat(uA.item)]:{backgroundColor:i.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:i.palette.action.hover},height:"100%",alignItems:"center"}}});function sr(t){let{field:i,api:s,moreAlignTo:l=null,onClose:c=(()=>{})}=t;const[d,f]=P.useState(!!l),[p,m]=P.useState(-1),[y,b]=P.useState(l?l.current:null),_=l||P.useRef(),{translator:w}=P.useContext(ai),S=w.get("Selection.ClearAllStates"),E=()=>{m(-1),c()};let C=null;l||(C=V.createElement(V.Fragment,null,V.createElement(Te,{item:!0,xs:!0,zeroMinWidth:!0},V.createElement(z2,{style:{padding:"0px 8px"},color:"secondary",badgeContent:i.states.length},V.createElement(En,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},i.name))),V.createElement(Te,{item:!0},V.createElement("div",{style:{width:"12px"}})),V.createElement(Te,{item:!0},V.createElement(Ms,{size:"large"},V.createElement(XO,null)))));const I=V.createElement($p,{dense:!0},V.createElement(Mn,{title:S,onClick:()=>{i.states.forEach(A=>s.clearField(i.name,A))}},V.createElement(C_,{variant:"contained",fullWidth:!0},S)),i.states.map((A,M)=>V.createElement(Mn,{key:M,title:i.name,onClick:T=>{return N=M,T.stopPropagation(),f(!1),void m(N);var N}},V.createElement(Bp,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},V.createElement(js,{field:i,api:s,stateIx:M,skipHandleShowListBoxPopover:!0}))))),D=V.createElement(Wp,{open:d,onClose:()=>{f(!1),c()},anchorEl:y,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},I),k=l?D:V.createElement(dA,{container:!0,gap:0,className:uA.item,onClick:A=>{A.currentTarget.contains(A.target)&&(b(A.currentTarget),_.current=A.currentTarget,f(!d))}},C,d&&D,p>-1&&V.createElement(qv,{alignTo:_,show:p>-1,close:E,app:s.model,fieldName:i.selections[p].qField,stateName:i.states[p]}));return l&&p>-1?V.createElement(qv,{alignTo:_,show:p>-1,close:E,app:s.model,fieldName:i.selections[p].qField,stateName:i.states[p]}):k}const hA={item:"".concat("More","-item"),badge:"".concat("More","-badge")},pA=De(Te)(t=>{let{theme:i}=t;return{["&.".concat(hA.item)]:{backgroundColor:i.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:i.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(hA.badge)]:{padding:i.spacing(0,1)}}});function UN(t){let{items:i=[],api:s}=t;const l=Wr(),[c,d]=P.useState(!1),[f,p]=P.useState(-1),[m,y]=P.useState(null),b=P.useRef(),_=()=>{p(-1)};let w=null;return f>-1&&(w=i[f].states.length>1?V.createElement(sr,{field:i[f],api:s,moreAlignTo:b,onClose:_}):V.createElement(js,{field:i[f],api:s,skipHandleShowListBoxPopover:!0,moreAlignTo:b,onClose:_})),V.createElement(pA,{container:!0,gap:0,className:hA.item,onClick:S=>{S.currentTarget.contains(S.target)&&(y(S.currentTarget),b.current=S.currentTarget,d(!c))}},V.createElement(Te,{item:!0},V.createElement(Bp,{borderRadius:l.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:l.palette.selected.main,color:l.palette.selected.mainContrastText}},V.createElement(En,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",i.length))),V.createElement(Te,{item:!0},V.createElement(Ms,{size:"large"},V.createElement(XO,null))),c&&V.createElement(Wp,{open:c,onClose:()=>{d(!1)},anchorEl:m,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},V.createElement($p,{dense:!0},i.map((S,E)=>V.createElement(Mn,{key:E,title:S.name,onClick:C=>{return D=E,C.stopPropagation(),d(!1),void p(D);var D}},V.createElement(Bp,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},V.createElement(S.states.length>1?sr:js,{field:S,api:s})))))),w)}function gA(t,i){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"$";t.qSelections.forEach(l=>{const c=l.qField,d=i[c]=i[c]||{name:c,states:[],selections:[]};-1===d.states.indexOf(s)&&(d.states.push(s),d.selections.push(l))})}function JO(t){let{api:i,app:s}=t;const l=Wr(),[c]=yw(s),[d]=ec(c),[f,p]=P.useState({items:[],more:[]}),[m]=ZC(),[y,b]=Nf(),[_,w]=P.useState(0);return P.useEffect(()=>{if(!b)return;const{width:S}=b,E=Math.floor(S)-72,C=Math.floor(E/120);w(C)},[b]),P.useEffect(()=>{if(!(s&&c&&d&&_))return;const S=function(E){if(!E)return[];const C={};return E.qSelectionObject&&gA(E.qSelectionObject,C),E.alternateStates&&E.alternateStates.forEach(I=>gA(I.qSelectionObject,C,I.stateName)),Object.keys(C).map(I=>C[I]).filter(I=>!I.selections.some(D=>D.qIsHidden))}(d);p(E=>{const C=S;if((()=>{const{model:D}=m.get(s.id)||{};return"njsListbox"===(null==D?void 0:D.genericType)})()&&C.length+1===E.items.length){const D=E.items.filter(M=>!1===C.some(T=>M.name===T.name))[0],{qField:k}=D.selections[0];D.selections=[{qField:k}];const A=E.items.indexOf(D);C.splice(A,0,D)}let I=[];return _<C.length&&(I=C.splice(_-C.length)),{items:C,more:I}})},[s,c,d,i.isInModal(),_]),V.createElement(Te,{ref:y,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},f.items.map(S=>V.createElement(Te,{item:!0,key:"".concat(S.states.join("::"),"::").concat(S.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(120,"px"),background:l.palette.background.paper,borderRight:"1px solid ".concat(l.palette.divider)}},V.createElement(S.states.length>1?sr:js,{field:S,api:i}))),f.more.length>0&&V.createElement(Te,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(72,"px"),background:l.palette.background.paper,borderRight:"1px solid ".concat(l.palette.divider)}},V.createElement(UN,{items:f.more,api:i})))}var eL=t=>Ao((i=>ee(ee({},i),{},{shapes:[{type:"path",attrs:{d:"M10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 Z M16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,-5.07265313e-17 13.5,0 L15,0 C15.5522847,1.01453063e-16 16,0.44771525 16,1 L16,2.5 Z M10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 C6,0.223857625 6.22385763,-5.07265313e-17 6.5,0 L9.5,0 C9.77614237,5.07265313e-17 10,0.223857625 10,0.5 Z M1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 5.18696197e-13,2.77614237 5.18696197e-13,2.5 L5.18696197e-13,1 C5.18696197e-13,0.44771525 0.44771525,-1.01453063e-16 1,0 L2.5,0 C2.77614237,5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 5.18696197e-13,15.5522847 5.18696197e-13,15 L5.18696197e-13,13.5 C5.18696197e-13,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M4,7 C7.49095643,7 10,10.1337595 10,12.1872632 C10,12.1872632 8.16051135,9.86624054 4,10 L4,12 C4,12 2.66666667,10.8333333 -1.0658141e-14,8.5 C-2.59348099e-13,8.5 1.33333333,7.33333333 4,5 C4,5 4,5.66666667 4,7 Z"}}]}))(t)),tL=t=>Ao((i=>ee(ee({},i),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M12,7 C12,5.66666667 12,5 12,5 C14.6666667,7.33333333 16,8.5 16,8.5 C13.3333333,10.8333333 12,12 12,12 L12,10 C7.83948865,9.86624054 6,12.1872632 6,12.1872632 C6,10.1337595 8.50904357,7 12,7 Z"}}]}))(t));function nL(t){let{api:i,app:s}=t;const{translator:l}=P.useContext(ai),[c]=function(d){const[f]=yw(d),[p]=ec(f),[m]=vw(d),[y,b]=P.useState(null);return P.useEffect(()=>{m&&f&&p&&((t,i,s)=>{const l=[...s.qStateNames||[]].map(c=>({stateName:c,qSelectionObjectDef:{qStateName:c}}));(i&&i.alternateStates?i.alternateStates.map(c=>c.stateName):[]).join("::")!==(s.qStateNames||[]).map(c=>c).join("::")&&t.applyPatches([{qOp:"replace",qPath:"/alternateStates",qValue:JSON.stringify(l)}],!0)})(f,p,m)},[m,f,p]),P.useEffect(()=>{if(!p)return;let _=!1,w=!1,S=!1;[p,...p.alternateStates||[]].forEach(E=>{_=_||E.qSelectionObject&&E.qSelectionObject.qBackCount>0,w=w||E.qSelectionObject&&E.qSelectionObject.qForwardCount>0,S=S||(E.qSelectionObject&&E.qSelectionObject.qSelections||[]).filter(C=>!0!==C.qLocked).length>0}),b({canGoBack:_,canGoForward:w,canClear:S})},[p]),[y,f,p]}(s);return V.createElement(Te,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},V.createElement(Te,{item:!0},V.createElement(Ms,{style:{marginRight:"8px"},disabled:!c||!c.canGoBack,title:l.get("Navigate.Back"),onClick:()=>i.back(),size:"large"},V.createElement(eL,null))),V.createElement(Te,{item:!0},V.createElement(Ms,{style:{marginRight:"8px"},disabled:!c||!c.canGoForward,title:l.get("Navigate.Forward"),onClick:()=>i.forward(),size:"large"},V.createElement(tL,null))),V.createElement(Te,{item:!0},V.createElement(Ms,{disabled:!c||!c.canClear,title:l.get("Selection.ClearAll"),onClick:()=>i.clear(),size:"large"},V.createElement(MO,null))))}const mA=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function Bs(t){let[i,s]=t;return(i+(Math.random()*(s-i)|0)).toString(32)}function fa(){return mA.map(Bs).join("")}function rL(t){let{app:i}=t;const s=Wr(),[l]=tv(i);return l?V.createElement(Te,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:s.palette.background.paper,minHeight:"40px"}},V.createElement(Te,{item:!0,style:{borderRight:"1px solid ".concat(s.palette.divider)}},V.createElement(nL,{api:l,app:i})),V.createElement(Te,{item:!0,xs:!0,style:{backgroundColor:s.palette.background.darker,overflow:"hidden"}},V.createElement(JO,{api:l,app:i}))):null}let Za;Za="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;let $w=null,Gw=null;const zf=Za.clearTimeout,Uw=Za.setTimeout,Hv=Za.cancelAnimationFrame||Za.mozCancelAnimationFrame||Za.webkitCancelAnimationFrame,iL=Za.requestAnimationFrame||Za.mozRequestAnimationFrame||Za.webkitRequestAnimationFrame;null==Hv||null==iL?($w=zf,Gw=function(t){return Uw(t,20)}):($w=function([t,i]){Hv(t),zf(i)},Gw=function(t){const i=iL(function(){zf(s),t()}),s=Uw(function(){Hv(i),t()},20);return[i,s]});class sL extends P.Component{constructor(...i){super(...i),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:s,disableWidth:l,onResize:c}=this.props;if(this._parentNode){const d=window.getComputedStyle(this._parentNode)||{},f=parseFloat(d.paddingLeft||"0"),p=parseFloat(d.paddingRight||"0"),m=parseFloat(d.paddingTop||"0"),y=parseFloat(d.paddingBottom||"0"),b=this._parentNode.getBoundingClientRect(),_=b.height-m-y,w=b.width-f-p,S=this._parentNode.offsetHeight-m-y,E=this._parentNode.offsetWidth-f-p;(s||this.state.height===S&&this.state.scaledHeight===_)&&(l||this.state.width===E&&this.state.scaledWidth===w)||(this.setState({height:S,width:E,scaledHeight:_,scaledWidth:w}),"function"==typeof c&&c({height:S,scaledHeight:_,scaledWidth:w,width:E}))}},this._setRef=s=>{this._autoSizer=s}}componentDidMount(){const{nonce:i}=this.props,s=this._autoSizer?this._autoSizer.parentNode:null;if(null!=s&&s.ownerDocument&&s.ownerDocument.defaultView&&s instanceof s.ownerDocument.defaultView.HTMLElement){this._parentNode=s;const l=s.ownerDocument.defaultView.ResizeObserver;null!=l?(this._resizeObserver=new l(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(s)):(this._detectElementResize=function oL(t){let i,s,l,c,d,f,p;const m="undefined"!=typeof document&&document.attachEvent;if(!m){f=function(E){const C=E.__resizeTriggers__,I=C.firstElementChild,D=C.lastElementChild,k=I.firstElementChild;D.scrollLeft=D.scrollWidth,D.scrollTop=D.scrollHeight,k.style.width=I.offsetWidth+1+"px",k.style.height=I.offsetHeight+1+"px",I.scrollLeft=I.scrollWidth,I.scrollTop=I.scrollHeight},d=function(E){return E.offsetWidth!==E.__resizeLast__.width||E.offsetHeight!==E.__resizeLast__.height},p=function(E){if(E.target.className&&"function"==typeof E.target.className.indexOf&&E.target.className.indexOf("contract-trigger")<0&&E.target.className.indexOf("expand-trigger")<0)return;const C=this;f(this),this.__resizeRAF__&&$w(this.__resizeRAF__),this.__resizeRAF__=Gw(function(){d(C)&&(C.__resizeLast__.width=C.offsetWidth,C.__resizeLast__.height=C.offsetHeight,C.__resizeListeners__.forEach(function(I){I.call(C,E)}))})};let y=!1,b="";l="animationstart";const _="Webkit Moz O ms".split(" ");let w="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),S="";{const E=document.createElement("fakeelement");if(void 0!==E.style.animationName&&(y=!0),!1===y)for(let C=0;C<_.length;C++)if(void 0!==E.style[_[C]+"AnimationName"]){S=_[C],b="-"+S.toLowerCase()+"-",l=w[C],y=!0;break}}s="resizeanim",i="@"+b+"keyframes "+s+" { from { opacity: 0; } to { opacity: 0; } } ",c=b+"animation: 1ms "+s+"; "}return{addResizeListener:function(y,b){if(m)y.attachEvent("onresize",b);else{if(!y.__resizeTriggers__){const _=y.ownerDocument,w=Za.getComputedStyle(y);w&&"static"===w.position&&(y.style.position="relative"),function(C){if(!C.getElementById("detectElementResize")){const I=(i||"")+".resize-triggers { "+(c||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',D=C.head||C.getElementsByTagName("head")[0],k=C.createElement("style");k.id="detectElementResize",k.type="text/css",null!=t&&k.setAttribute("nonce",t),k.styleSheet?k.styleSheet.cssText=I:k.appendChild(C.createTextNode(I)),D.appendChild(k)}}(_),y.__resizeLast__={},y.__resizeListeners__=[],(y.__resizeTriggers__=_.createElement("div")).className="resize-triggers";const S=_.createElement("div");S.className="expand-trigger",S.appendChild(_.createElement("div"));const E=_.createElement("div");E.className="contract-trigger",y.__resizeTriggers__.appendChild(S),y.__resizeTriggers__.appendChild(E),y.appendChild(y.__resizeTriggers__),f(y),y.addEventListener("scroll",p,!0),l&&(y.__resizeTriggers__.__animationListener__=function(C){C.animationName===s&&f(y)},y.__resizeTriggers__.addEventListener(l,y.__resizeTriggers__.__animationListener__))}y.__resizeListeners__.push(b)}},removeResizeListener:function(y,b){if(m)y.detachEvent("onresize",b);else if(y.__resizeListeners__.splice(y.__resizeListeners__.indexOf(b),1),!y.__resizeListeners__.length){y.removeEventListener("scroll",p,!0),y.__resizeTriggers__.__animationListener__&&(y.__resizeTriggers__.removeEventListener(l,y.__resizeTriggers__.__animationListener__),y.__resizeTriggers__.__animationListener__=null);try{y.__resizeTriggers__=!y.removeChild(y.__resizeTriggers__)}catch(_){}}}}}(i),this._detectElementResize.addResizeListener(s,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const k=this.props,{children:i,disableHeight:c=!1,disableWidth:d=!1,style:m={},tagName:y="div"}=k,b=g3(k,["children","defaultHeight","defaultWidth","disableHeight","disableWidth","nonce","onResize","style","tagName"]),{height:_,scaledHeight:w,scaledWidth:S,width:E}=this.state,C={overflow:"visible"},I={};let D=!1;return c||(0===_&&(D=!0),C.height=0,I.height=_,I.scaledHeight=w),d||(0===E&&(D=!0),C.width=0,I.width=E,I.scaledWidth=S),P.createElement(y,bI({ref:this._setRef,style:bI(bI({},C),m)},b),!D&&i(I))}}function yA(t){null==t||t.querySelectorAll(".last-focused").forEach(i=>{i.classList.remove("last-focused")})}function aL(t){return(null==t?void 0:t.closest(".njs-cell"))||(null==t?void 0:t.closest(".qv-gridcell"))}const vA=De("div")(()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"}));function lL(t){let{text:i}=t;const{translator:s}=P.useContext(ai);return V.createElement(vA,null,s.get(i))}var cL=t=>Ao((i=>ee(ee({},i),{},{shapes:[{type:"path",attrs:{d:"M15.9993744,3 L15.9993744,5 L4.99937445,5 L4.99937445,3 L15.9993744,3 Z M8.99937445,7 L15.9993744,7 L15.9993744,9 L8.99937445,9 L8.99937445,7 Z M11.9993744,11 L15.9993744,11 L15.9993744,13 L11.9993744,13 L11.9993744,11 Z M2.2,11 L7,11 L7,9.00369263 C7,8.89323568 7.08954305,8.80369263 7.2,8.80369263 C7.2549016,8.80369263 7.30738916,8.82626165 7.34515712,8.86610844 L10.1852182,11.8624926 C10.2583124,11.93961 10.258346,12.0604218 10.1852948,12.13758 L7.34523376,15.1373102 C7.2692928,15.2175206 7.14270711,15.2209817 7.06249671,15.1450407 C7.02260076,15.1072683 7,15.0547472 7,14.9998069 L7,12.9043747 C4.79351111,12.9043747 2.8018683,12.9266213 1.02507156,12.9711145 L1.02507252,12.9711526 C0.472939773,12.9849787 0.014139487,12.5485949 0.000313396522,11.9964622 C0.000104473692,11.988119 -1.32268838e-12,11.9797736 -1.3231638e-12,11.9714278 L-1.83320026e-12,3 L2,3 L2,10.8 C2,10.9104569 2.08954305,11 2.2,11 Z"}}]}))(t));const hg={fontSize:"12px"},bA=De(bf)(t=>{let{theme:i,isLoading:s}=t;return{position:"absolute",top:0,left:0,height:48,zIndex:2,background:i.palette.custom.disabledBackground,opacity:1,color:i.palette.custom.disabledContrastText,width:"100%",display:"flex",justifyContent:s?"center":"flex-start",paddingLeft:16,paddingRight:16,borderRadius:0,"& *, & p":{color:i.palette.custom.disabledContrastText},"& i":{padding:"".concat(7,"px")}}}),uL=De(Te,{shouldForwardProp:t=>!["styles","isRtl"].includes(t)})(t=>{let{styles:i,isRtl:s}=t;return ee(ee({flexDirection:s?"row-reverse":"row",wrap:"nowrap",minHeight:32,alignContent:"center"},i.header),{},{"& *":{color:i.header.color}})}),dL=De(En)(t=>{let{styles:i}=t;return ee(ee({},i.header),{},{display:"block",alignItems:"center",paddingRight:"1px"})});function _A(t){let{translator:i,toggleLock:s,keyboard:l,isLoading:c}=t;const d=i.get("SelectionToolbar.ClickToUnlock");return V.createElement(bA,{title:d,tabIndex:l.enabled?0:-1,onClick:s,"data-testid":"listbox-unlock-button",id:"listbox-unlock-button",isLoading:c},c?V.createElement(gv,{size:16,variant:"indeterminate",color:"primary"}):V.createElement(da,{disableRipple:!0,style:hg}),!c&&V.createElement(En,{fontSize:"14px"},d))}let wA=0;function fL(t){var i,s;let{layout:l,translator:c,styles:d,isRtl:f,showLock:p,showSearchIcon:m,isDrillDown:y,constraints:b,onShowSearch:_,classes:w,containerRect:S,isPopover:E,showToolbar:C,showDetachedToolbarOnly:I,containerRef:D,model:k,selectionState:A,isDirectQuery:M,selections:T,keyboard:O,autoConfirm:N}=t;const[B,j]=P.useState(I),[G,Q]=P.useState(null==l||null===(i=l.qListObject)||void 0===i||null===(i=i.qDimensionInfo)||void 0===i?void 0:i.qLocked),[H,z]=P.useState(!1);P.useEffect(()=>{var fe;Q(null==l||null===(fe=l.qListObject)||void 0===fe||null===(fe=fe.qDimensionInfo)||void 0===fe?void 0:fe.qLocked)},[null==l||null===(s=l.qListObject)||void 0===s||null===(s=s.qDimensionInfo)||void 0===s?void 0:s.qLocked]);const K=P.useRef(null),Y=p&&G,X=!p&&G,re=m||X||y,q=9-(re?7:0),$=f?9-(re?7:0):4,W=(m?28:0)+(X?28:0)+(y?28:0),te=function(fe){let{isLocked:we,setLocked:pe,settingLockedState:ye,model:Ne,setSettingLockedState:Oe}=fe;return()=>{const qe=new Date;if(qe-wA<500)return Promise.resolve();if(ye)return()=>{};Oe(!0),wA=qe;const Ve=we?Ne.unlock:Ne.lock;return pe(!we),Ve.call(Ne,"/qListObjectDef").catch(()=>{pe(we)}).finally(()=>{setTimeout(()=>{Oe(!1)},0)})}}({isLocked:G,setLocked:Q,settingLockedState:H,setSettingLockedState:z,model:k}),J=Rw({layout:l,model:k,translator:c,selectionState:A,isDirectQuery:M}),ae=G||!p?void 0:[{key:"lock",type:void 0,label:c.get("SelectionToolbar.ClickToLock"),getSvgIconShape:$T,enabled:()=>!H&&!A.selectDisabled()&&Fw(l),action:te}],ue=null!=b&&b.active?V.createElement(Nw,{title:c.get("Listbox.Search"),size:"large",style:ee(ee({},hg),{},{padding:"".concat(7,"px")})}):V.createElement(Ms,{onClick:_,tabIndex:-1,title:c.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},V.createElement(Nw,{style:hg}));P.useEffect(()=>{if(!K.current||!S)return;const fe=function(we){var pe,ye,Ne,Oe;let{containerRect:qe,titleRef:Ve,iconsWidth:lt,paddingLeft:xe,paddingRight:Ke}=we;const Tt=qe.width<(null!==(pe=null==Ve||null===(ye=Ve.current)||void 0===ye?void 0:ye.clientWidth)&&void 0!==pe?pe:0)+lt+(xe+Ke)+2+128,Je=(null==Ve||null===(Ne=Ve.current)||void 0===Ne?void 0:Ne.scrollWidth)>(null==Ve||null===(Oe=Ve.current)||void 0===Oe?void 0:Oe.offsetWidth);return!(!Tt&&!Je)}({containerRect:S,titleRef:K,iconsWidth:W,paddingLeft:q,paddingRight:$});j(I||fe)},[W,q,$,K.current,I,Object.entries(S||{}).sort().join(",")]);const _e=function(fe){let{isDetached:we,showToolbar:pe,containerRef:ye,isLocked:Ne,listboxSelectionToolbarItems:Oe,extraItems:qe,selections:Ve,keyboard:lt,autoConfirm:xe}=fe;return{autoConfirm:xe,isDetached:we,show:pe&&!we,popover:{show:pe&&we,anchorEl:ye.current},extraItems:qe,more:{enabled:!Ne,actions:Oe,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:pe,api:Ve,onConfirm:()=>{null==lt||lt.focus()},onCancel:()=>{null==lt||lt.focus()}}}}({isDetached:!E&&B,showToolbar:C,containerRef:D,isLocked:G,extraItems:ae,listboxSelectionToolbarItems:J,selections:T,keyboard:O,autoConfirm:N}),ve=V.createElement(Pw,Vi({isRtl:f,layout:l},_e));if(I)return ve;const Ee=X?V.createElement(da,{size:"large",style:ee(ee({},hg),{},{padding:"".concat(7,"px")})}):void 0;return V.createElement(uL,{item:!0,container:!0,styles:d,isRtl:f,marginY:1,paddingLeft:"".concat(q,"px"),paddingRight:"".concat($,"px"),className:"header-container"},Y&&V.createElement(_A,{isLoading:H,translator:c,toggleLock:te,keyboard:O}),re&&V.createElement(Te,{item:!0,container:!0,alignItems:"center",width:W,className:"header-action-container"},Ee||m&&ue,y&&V.createElement(cL,{tabIndex:-1,title:c.get("Listbox.DrillDown"),style:ee(ee({},hg),{},{padding:"".concat(7,"px")})})),V.createElement(Te,{item:!0,xs:!0,minWidth:0,justifyContent:f?"flex-end":"flex-start",className:w.listBoxHeader},V.createElement(dL,{variant:"h6",noWrap:!0,ref:K,title:l.title,styles:d},l.title)),V.createElement(Te,{item:!0,display:"flex"},ve))}const pg="ListBoxInline",Xa={listBoxHeader:"".concat(pg,"-listBoxHeader"),screenReaderOnly:"".concat(pg,"-screenReaderOnly"),listboxWrapper:"".concat(pg,"-listboxWrapper")},KN=De(Te,{shouldForwardProp:t=>!["containerPadding","isGridMode","styles"].includes(t)})(t=>{let{theme:i,containerPadding:s,isGridMode:l,styles:c}=t;return ee(ee({},c.background),{},{["& .".concat(Xa.listBoxHeader)]:{alignSelf:"center",display:"flex"},["& .".concat(Xa.screenReaderOnly)]:{position:"absolute",height:0,width:0,overflow:"hidden"},["& .".concat(Xa.listboxWrapper)]:{padding:s},"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(i.palette.custom.focusBorder," !important")},"&:focus ::-webkit-scrollbar-track":{boxShadow:l?void 0:"inset -2px -2px 0px #3F8AB3"},"&:focus-visible":{outline:"none"}})}),qf=V.memo(function(t){var i,s,l,c,d;let{options:f,layout:p}=t;const{app:m,direction:y,frequencyMode:b,checkboxes:_,search:w=!0,focusSearch:S=!1,rangeSelect:E=!0,model:C,selections:I,update:D,fetchStart:k,postProcessPages:A,calculatePagesHeight:M,showGray:T=!0,scrollState:O,renderedCallback:N,toolbar:B=!0,isPopover:j=!1,showLock:G=!1,components:Q,selectDisabled:H=(()=>!1)}=f,z=Wr(),{translator:K,keyboardNavigation:Y,themeApi:X,constraints:re}=P.useContext(ai),{checkboxes:q=_}=p||{},$=qw({app:m,themeApi:X,theme:z,components:Q,checkboxes:q}),W=function(st){let{appLayout:ut}=st;return!(null==ut||!ut.qIsDirectQueryMode)}({appLayout:null==m?void 0:m.layout}),te=P.useRef(),[J,ae]=Nf(),[ue,_e]=(()=>{const[st,ut]=P.useState({});return[st,P.useCallback(sn=>{ut({current:sn})},[ut])]})(),[ve,Ee]=P.useState(!1),[fe,we]=P.useState(!1),pe=P.useRef(!1),[ye,Ne]=P.useState({down:0,up:0,scrollPosition:""}),Oe=st=>Ne(ut=>ee(ee({},ut),st)),[qe,Ve]=P.useState({start:0,stop:0}),[lt]=tv(m),[xe]=P.useState(()=>sA({selectDisabled:H})),Ke=function(st){let{containerRef:ut,enabled:Bt}=st;const[sn,Tn]=P.useState(!1);return{enabled:Bt,active:sn,innerTabStops:!Bt||sn,blur(Ct){var Ft;if(!Bt)return;Tn(!1);const It=aL(ut.current)||(null===(Ft=ut.current)||void 0===Ft?void 0:Ft.parentElement);var On;null==(On=ut.current)||On.querySelectorAll('[tabIndex="0"]').forEach(ti=>{ti.setAttribute("tabIndex",-1)}),yA(ut.current),Ct&&It&&(It.setAttribute("tabIndex",0),It.focus())},focus(){if(!Bt)return;Tn(!0);const Ct=ut.current,Ft=null==Ct?void 0:Ct.querySelector(".search input"),It=null==Ct?void 0:Ct.querySelector(".value.last-focused"),On=null==Ct?void 0:Ct.querySelector(".value.selector, .value"),ti=null==Ct?void 0:Ct.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),Yn=null==Ct?void 0:Ct.querySelector("#listbox-unlock-button"),Fr=Ft||It||On||Yn||ti;null==Fr||Fr.setAttribute("tabIndex",0),null==Fr||Fr.focus()},focusSelection(){const Ct=document.querySelector("#listbox-unlock-button"),Ft=document.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),It=Ct||Ft;null==It||It.setAttribute("tabIndex",0),null==It||It.focus()}}}({containerRef:te,enabled:Y}),Xe=P.useCallback(()=>(st=>{var ut,Bt;let{app:sn,appSelections:Tn}=st;return null!==(ut=null===(Bt=sn.isInModalSelection)||void 0===Bt?void 0:Bt.call(sn))&&void 0!==ut?ut:Tn.isInModal()})({app:m,appSelections:lt}),[m,lt]),Tt=null==p?void 0:p.qListObject.qDimensionInfo.qError,Je=Tt&&re.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",{handleKeyDown:nt,handleOnMouseEnter:ot,handleOnMouseLeave:xt,globalKeyDown:Wt}=P.useMemo(()=>function WN(t){let{keyboard:i,hovering:s,updateKeyScroll:l,containerRef:c,currentScrollIndex:d,isModal:f,constraints:p}=t;return{handleKeyDown:m=>{const{keyCode:y,shiftKey:b=!1}=m.nativeEvent,_=()=>{m.stopPropagation(),m.preventDefault()};if(!i.enabled)return;const w=m.currentTarget.closest(".listbox-container"),S=f();switch(y){case Et.TAB:if(S)b?rO(w)||Bk(w):Bk(w)||rO(w);else{if(!b)break;i.blur(!0)}_();break;case Et.ENTER:case Et.SPACE:if(!m.target.classList.contains("listbox-container"))break;i.focus(),_();break;case Et.ESCAPE:(E=>{const{currentTarget:C,target:I}=E,D=I.classList.contains("listbox-container"),k=aL(C.closest(".listbox-container")),A=1===(null==k?void 0:k.querySelectorAll(".listbox-container").length);if(D||A)i.blur(!0);else{yA(c.current),C.classList.add("last-focused"),i.blur();const M=C.closest(".listbox-container");M.setAttribute("tabIndex",-1),null==M||M.focus()}})(m)}},handleOnMouseEnter:()=>{(()=>{const m=(null==p?void 0:p.select)||(null==p?void 0:p.active),y=f();return m||y})()||(s.current=!0)},handleOnMouseLeave:()=>{s.current&&(s.current=!1)},globalKeyDown:m=>{if(!s.current)return;const{keyCode:y,ctrlKey:b=!1,shiftKey:_=!1}=m;switch(y){case Et.ARROW_UP:l({up:1});break;case Et.ARROW_DOWN:l({down:1});break;case Et.PAGE_UP:l({up:d.stop-d.start});break;case Et.PAGE_DOWN:l({down:d.stop-d.start});break;case Et.HOME:l({scrollPosition:b&&_?"overflowStart":"start"});break;case Et.END:l({scrollPosition:b&&_?"overflowEnd":"end"});break;default:return}m.preventDefault()}}}({keyboard:Ke,hovering:pe,updateKeyScroll:Oe,containerRef:te,currentScrollIndex:qe,app:m,appSelections:lt,constraints:re,isModal:Xe}),[Ke,pe,Oe,te,qe,m,lt,re,Xe]);P.useEffect(()=>(document.addEventListener("keydown",Wt),()=>{document.removeEventListener("keydown",Wt)}),[Wt]),P.useEffect(()=>{!0===w&&we(!0);const st=()=>{Ee(!0)},ut=()=>{Ee(!1),"toggle"===w&&we(!1)};return j&&(I.isActive()||(I.begin("/qListObjectDef"),I.on("activated",st),I.on("deactivated",ut)),Ee(j)),B&&I&&(I.isModal()||(I.on("activated",st),I.on("deactivated",ut)),Ee(I.isActive())),()=>{I&&I.removeListener&&(I.removeListener("activated",st),I.removeListener("deactivated",ut))}},[B,I,j]),P.useEffect(()=>{if(ue&&ue.current&&(w&&S||"toggle"===w&&fe)){const st=ue.current.querySelector("input");st&&st.focus()}},[ue&&ue.current,fe,w,S]);const{wildCardSearch:Kt,searchEnabled:lr,autoConfirm:Be=!1,layoutOptions:qt={}}=null!=p?p:{},gn=null==p||null===(i=p.qListObject)||void 0===i||null===(i=i.qDimensionInfo)||void 0===i?void 0:i.qLocked,mn=!1!==lr&&"toggle"===w&&!gn,Nr="H"===(null==p||null===(s=p.qListObject)||void 0===s||null===(s=s.qDimensionInfo)||void 0===s?void 0:s.qGrouping),Kr=(null==p||null===(l=p.title)||void 0===l?void 0:l.length)&&!1!==(null==p?void 0:p.showTitle),_r=B&&!Kr&&!j,Qt=B&&Kr||j,$t="rtl"===y;if(!C||!p||!K)return null;const un=!0===w||"toggle"===w&&fe&&!1!==lr,$n=null!==(c=qt.dense)&&void 0!==c&&c,Gn=()=>{we(!fe)},Dn=()=>{if("toggle"===w)Gn();else{const st=ue.current.querySelector("input");null==st||st.focus()}},Fe=un&&"toggle"===w,Ge="grid"===(null==qt?void 0:qt.dataLayout),Pt=function(st){let ut,{isGridMode:Bt,dense:sn,height:Tn,layoutOrder:Nt}=st;if(Bt){let Ct;Ct=$k({isGridMode:Bt,dense:sn})>Tn?"0px":"2px",ut="row"===Nt?"".concat(Ct," 4px"):"".concat(Ct," 6px ").concat(Ct," 4px")}else ut=void 0;return ut}({isGridMode:Ge,dense:$n,height:null===(d=te.current)||void 0===d?void 0:d.clientHeight,layoutOrder:qt.layoutOrder});Tt&&(null==N||N());const At=Qt?30:0,Yt=V.createElement(fL,{showSearchIcon:mn,isDrillDown:Nr,onShowSearch:Gn,isPopover:j,showToolbar:ve,isDirectQuery:W,autoConfirm:Be,showDetachedToolbarOnly:_r,layout:p,translator:K,styles:$,isRtl:$t,showLock:G,constraints:re,classes:Xa,containerRect:ae,containerRef:te,model:C,selectionState:xe,selections:I,keyboard:Ke});return V.createElement(V.Fragment,null,_r&&Yt,V.createElement(KN,{className:"listbox-container",container:!0,tabIndex:Ke.enabled?-1:void 0,direction:"column",gap:0,containerPadding:Pt,styles:$,style:{height:"100%",flexFlow:"column nowrap"},onKeyDown:nt,onMouseEnter:ot,onMouseLeave:xt,ref:st=>{te.current=st,J(st)},isGridMode:Ge,"aria-label":Ke.active?K.get("Listbox.ScreenReaderInstructions"):""},Qt&&Yt,V.createElement(Te,{item:!0,container:!0,direction:"column",height:"100%",minHeight:At,role:"region","aria-label":K.get("Listbox.ResultFilterLabel")},V.createElement(Te,{item:!0,ref:_e},V.createElement(iA,{selections:I,selectionState:xe,model:C,dense:$n,keyboard:Ke,visible:un,search:w,autoFocus:Fe,wildCardSearch:Kt,searchEnabled:lr,direction:y,hide:mn&&Gn,styles:$})),V.createElement(Te,{item:!0,xs:!0,className:Xa.listboxWrapper},Tt?V.createElement(lL,{text:Je}):V.createElement(sL,null,st=>{let{height:ut,width:Bt}=st;return V.createElement(Mv,{model:C,app:m,constraints:re,layout:p,selections:I,selectionState:xe,direction:y,frequencyMode:b,rangeSelect:E,checkboxes:q,height:ut,width:Bt,update:D,fetchStart:k,postProcessPages:A,calculatePagesHeight:M,keyboard:Ke,showGray:T,scrollState:O,keyScroll:{state:ye,reset:()=>Ne({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:qe,set:Ve},renderedCallback:N,onCtrlF:Dn,isModal:Xe,styles:$})})))))});function xA(t){let{options:i={}}=t;const{model:s}=i,[l]=ec(s);return V.createElement(qf,{options:i,layout:l})}const rc={qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:"",qShowAlternatives:!0,frequencyEnabled:!1,qFrequencyMode:"N",qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},histogram:!1,frequencyMax:void 0,checkboxes:!1,searchEnabled:!0,showTitle:!0,wildCardSearch:!1,autoConfirm:!1,layoutOptions:{dense:!1,dataLayout:"singleColumn",layoutOrder:"row",maxVisibleColumns:{auto:!0,maxColumns:3},maxVisibleRows:{auto:!0,maxRows:3}},title:""};function hL(t){let i;switch(!0){case["none","N","NX_FREQUENCY_NONE"].includes(t):i="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(t):i="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(t):i="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(t):i="R";break;default:i="N"}return i}const YN=["__DO_NOT_USE__"],Gv=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{__DO_NOT_USE__:i={}}=t,s={update:void 0,fetchStart:void 0,showGray:!0,focusSearch:!1,sessionModel:void 0,selectionsApi:void 0,selectDisabled:void 0,postProcessPages:void 0,calculatePagesHeight:!1};return ee(ee(ee({},_n(t,YN)),s),i)};function Lu(t){let{app:i,fieldIdentifier:s,qId:l,stateName:c,element:d,options:f,renderedCallback:p}=t;const{isExistingObject:m,hasExternalSelectionsApi:y}=function(I){let{qId:D,options:k}=I;return{isExistingObject:!(!D&&!k.sessionModel),hasExternalSelectionsApi:!!k.selectionsApi}}({qId:l,options:f});m||Object.assign(f,{frequencyMode:hL(f.frequencyMode)});const[b,_]=P.useState(0);P.useEffect(()=>{if(b)throw new Error("Source or selection Api can not change after a listbox has been mounted");_(b+1)},[m,y]);const w=m?function QN(t){let{app:i,qId:s,options:l={}}=t;const[c,d]=P.useState(),[f]=xk(),{sessionModel:p}=l,m=["dense","frequencyMode","checkboxes","histogram","title","stateName","listLayout"],y=Object.keys(l).filter(b=>m.includes(b));if(y.length)throw new Error('Option "'.concat(y.join(", "),'" is not applicable for existing objects.'));return P.useEffect(()=>{var b;Promise.resolve(p||(b=be(function*(_){return f.get(_)||(yield i.getObject(_))}),function(_){return b.apply(this,arguments)})(s)).then(b=>{var _;f.get((_=b).id)||(f.set(_.id,_),_.once("closed",()=>{f.clear(_.id)})),d(b)})},[]),c}({app:i,qId:l,options:f}):function(I){var D;let{app:k,fieldIdentifier:A,stateName:M,options:T={}}=I;const[O,N]=P.useState(""),[B,j]=P.useState(!0),[G,Q]=P.useState(),[H,z]=P.useState(),K=null!==(D=T.title)&&void 0!==D?D:H;let{histogram:Y=!1,frequencyMode:X="N"}=T;O&&O.failedToFetchFieldDef&&(Y=!1,X="N"),P.useEffect(()=>{A.qLibraryId&&(Y||"N"!==X)?be(function*(){try{const Ee=yield k.getDimension(A.qLibraryId),fe=yield Ee.getLayout();z(fe.qDim.title),N("N"===fe.qDim.qGrouping?fe.qDim.qFieldDefs?fe.qDim.qFieldDefs[0]:"":{multiFieldDim:!0}),j(!1)}catch(Ee){throw j(!1),N({failedToFetchFieldDef:!0}),new Error("Disabling frequency count and histogram: ".concat(Ee&&Ee.message))}})():(j(!1),z(A))},[]);const{dense:re,checkboxes:q,listLayout:$,properties:W={}}=T,te={dense:re};"horizontal"===$&&(te.dataLayout="grid",te.layoutOrder="column",te.maxVisibleColumns={auto:!0},te.maxVisibleRows={auto:!1,maxRows:1});const J=P.useRef();J.current||(J.current=fa());const ae=ni(!0,{},rc,{qInfo:{qId:J.current},qListObjectDef:{qStateName:M,qFrequencyMode:Y&&"N"===X?"V":X},histogram:Y,checkboxes:q,layoutOptions:te,title:K});let ue;ni(!0,ae,W),A.qLibraryId?(ae.qListObjectDef.qLibraryId=A.qLibraryId,ue=A.qLibraryId):(ae.qListObjectDef.qDef.qFieldDefs=[A],ue=A),"P"!==X&&Y&&(ae.frequencyMax=null!=O&&O.multiFieldDim?"fetch":{qValueExpression:cg(A.qLibraryId?O:ue)});const[_e]=mw(ae,B?null:k,ue,M);return P.useEffect(()=>{_e&&Q(_e)},[_e]),G}({app:i,fieldIdentifier:s,stateName:c,options:f}),S=P.useRef(d),E=y?f.selectionsApi:oA(i,w,[S,".njs-action-toolbar-more",".njs-action-toolbar-popover"],f)[0],C=P.useMemo(()=>ee(ee({},f),{},{selections:E,model:w,app:i,renderedCallback:p}),[f,E,w,i]);return E&&w?V.createElement(xA,{options:C}):null}const pL={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function ZN(t){let{app:i,fieldIdentifier:s,stateName:l,element:c,options:d={}}=t;const[f,p]=P.useState(!!d.show);return V.createElement(qv,{show:f,app:i,alignTo:{current:c},anchorOrigin:d.anchorOrigin,transformOrigin:d.transformOrigin,close:()=>{p(!1),d.onPopoverClose&&d.onPopoverClose()},fieldName:s,stateName:l,autoFocus:d.autoFocus,components:d.components})}function Uv(t,i){for(let s=0;s<t.length;++s)t[s]>=0&&t[s]>=i&&++t[s];t.push(i)}function SA(t,i){let s=0;for(let l=0;l<t.length;++l)t[l]>i?--t[l]:t[l]===i&&(s=l);return t.splice(s,1),s}function EA(t){let{dc:i,def:s,properties:l}=t;i.qDimensions=i.qDimensions||[],i.qMeasures=i.qMeasures||[],i.qInterColumnSortOrder=i.qInterColumnSortOrder||[],i.qInitialDataFetch=i.qInitialDataFetch||[],i.qColumnOrder=i.qColumnOrder||[],i.qExpansionState=i.qExpansionState||[];const c=l,d={dimensions:()=>i.qDimensions,measures:()=>i.qMeasures,addDimension(f){const p="string"==typeof f?(t=>({qDef:{qFieldDefs:[t]}}))(f):ee(ee({},f),{},{qDef:f.qDef||{}});return p.qDef.cId=p.qDef.cId||fa(),p.qDef.qSortCriterias=p.qDef.qSortCriterias||[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],p.qOtherTotalSpec=p.qOtherTotalSpec||{},p.qAttributeExpressions=p.qAttributeExpressions||[],p.qAttributeDimensions=p.qAttributeDimensions||[],i.qDimensions.length<d.maxDimensions()?(i.qDimensions.push(p),Uv(i.qInterColumnSortOrder,i.qDimensions.length-1),s.dimensions.added(p,c)):(i.qLayoutExclude=i.qLayoutExclude||{},i.qLayoutExclude.qHyperCubeDef=i.qLayoutExclude.qHyperCubeDef||{},i.qLayoutExclude.qHyperCubeDef.qDimensions=i.qLayoutExclude.qHyperCubeDef.qDimensions||[],i.qLayoutExclude.qHyperCubeDef.qMeasures=i.qLayoutExclude.qHyperCubeDef.qMeasures||[],i.qLayoutExclude.qHyperCubeDef.qDimensions.push(p)),p},removeDimension(f){const p=i.qDimensions.splice(f,1)[0];return SA(i.qInterColumnSortOrder,f),s.dimensions.removed(p,c,f),p},addMeasure(f){const p="string"==typeof f?(t=>({qDef:{qDef:t}}))(f):ee(ee({},f),{},{qDef:f.qDef||{}});p.qDef.cId=p.qDef.cId||fa(),p.qSortBy=p.qSortBy||{qSortByLoadOrder:1,qSortByNumeric:-1},p.qAttributeDimensions=p.qAttributeDimensions||[],p.qAttributeExpressions=p.qAttributeExpressions||[],i.qMeasures.length<d.maxMeasures()?(i.qMeasures.push(p),Uv(i.qInterColumnSortOrder,i.qDimensions.length+i.qMeasures.length-1),s.measures.added(p,c)):(i.qLayoutExclude=i.qLayoutExclude||{},i.qLayoutExclude.qHyperCubeDef=i.qLayoutExclude.qHyperCubeDef||{},i.qLayoutExclude.qHyperCubeDef.qDimensions=i.qLayoutExclude.qHyperCubeDef.qDimensions||[],i.qLayoutExclude.qHyperCubeDef.qMeasures=i.qLayoutExclude.qHyperCubeDef.qMeasures||[],i.qLayoutExclude.qHyperCubeDef.qMeasures.push(p))},removeMeasure(f){const p=i.qMeasures.splice(f,1)[0];SA(i.qInterColumnSortOrder,i.qDimensions.length+f),s.measures.removed(p,c,f)},maxDimensions:()=>s.dimensions.max(i.qMeasures.length),maxMeasures:()=>s.measures.max(i.qDimensions.length),canAddDimension:()=>i.qDimensions.length<d.maxDimensions(),canAddMeasure:()=>i.qMeasures.length<d.maxMeasures()};return d}function eF(t){let{dc:i,def:s,properties:l}=t;i.qInitialDataFetch=i.qInitialDataFetch||[];const c=l,d={dimensions:()=>i.qLibraryId||i.qDef&&i.qDef.qFieldDefs&&0!==i.qDef.qFieldDefs.length?[i]:[],measures:()=>[],addDimension(f){const p="string"==typeof f?(t=>({qDef:{qFieldDefs:[t]}}))(f):ee(ee({},f),{},{qDef:f.qDef||{}});return p.qDef.cId=p.qDef.cId||fa(),p.qDef.qSortCriterias=i.qDef.qSortCriterias||[{qSortByState:1,qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],Object.keys(p).forEach(m=>{i[m]=p[m]}),s.dimensions.added(p,c),p},removeDimension(f){const p=i;return delete i.qDef,delete i.qLibraryId,s.dimensions.removed(p,c,f),p},addMeasure(){},removeMeasure(){},maxDimensions:()=>1,maxMeasures:()=>0,canAddDimension:()=>0===d.dimensions().length,canAddMeasure:()=>!1};return d}const tF=t=>({qDef:{qFieldDefs:[t]}});function rF(t){let{children:i,halo:s}=t;return{addDimension:c=>be(function*(){const d=(t=>{let i;return i=ni(!0,{},rc,"string"==typeof t?{qListObjectDef:tF(t)}:t.qListObjectDef?t:{qListObjectDef:t}),i})(c),f=d.qListObjectDef;if(f.qDef.cId=f.qDef.cId||fa(),!d.title)if(f.qLibraryId){const y=yield s.app.getDimension(f.qLibraryId),b=yield y.getProperties();d.title=b.qDim.qLabelExpression?{qStringExpression:{qExpr:b.qDim.qLabelExpression}}:b.qDim.title}else{var p,m;d.title=f.qDef.title||(null===(p=f.qDef.qFieldLabels)||void 0===p?void 0:p[0])||(null===(m=f.qDef.qFieldDefs)||void 0===m?void 0:m[0])}i.push({qProperty:d,qChildren:[]})})(),addMeasure(){}}}function iF(t){return"string"==typeof t&&"="===t[0]||"object"==typeof t&&t.qDef&&t.qDef.qDef||"object"==typeof t&&t.qLibraryId&&"measure"===t.type?"measure":"dimension"}function gL(t,i){return Ww.apply(this,arguments)}function Ww(){return Ww=be(function*(t,i){let{sn:s,properties:l,fields:c,children:d}=t;if(!c.length)return;const f=s.qae.data.targets[0];if(!f)return;const{propertyPath:p}=f,m=p.split("/");let y=l;for(let w=0;w<m.length;w++){const S=m[w];y=S?y[S]:y}const _=((w=p).match("/qListObjectDef")?eF:w.match("/qChildListDef")?rF:EA)({dc:y,def:f,properties:l,children:d,halo:i});var w;for(let w=0;w<c.length;++w){const S=c[w];"measure"===iF(S)?yield _.addMeasure(S):yield _.addDimension(S)}}),Ww.apply(this,arguments)}var Pr_getValue=(t,i,s)=>{if(null==t||null==i)return s;const l=i.split(".");let c=t;for(let d=0;d<l.length;++d){const f=l[d];if(""!==f){if(null==c[f])return s;c=c[f]}}return c},Pr_setValue=(t,i,s)=>{if(null==t||null==i)return;const l=i.split("."),c=l[l.length-1];let d=t;for(let f=0;f<l.length-1;++f){const p=l[f];null!=d[p]||(d[p]=Number.isNaN(+l[f+1])?{}:[]),d=d[p]}void 0!==s&&"__proto__"!==c&&"constructor"!==c?d[c]=s:delete d[c]},Pr_isEmpty=t=>0===Object.keys(t).length&&t.constructor===Object,DA_isOrderedSubset=function(t,i){if(!(t&&i&&t.length&&i.length))return!1;let s=t.indexOf(i[0]);if(-1!==s){for(let l=0;l<i.length;l++){const c=t.indexOf(i[l]);if(s>c)return!1;s=c}return!0}return!1},DA_indexAdded=function(t,i){let s;for(s=0;s<t.length;++s)t[s]>=0&&t[s]>=i&&++t[s];t.push(i)},DA_indexRemoved=function(t,i){let s,l=0;for(s=0;s<t.length;++s)t[s]>i?--t[s]:t[s]===i&&(l=s);return t.splice(l,1),l};const kA=os(2,53)-1;function Kw(t){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(t)}function gg(t,i){const s=ni(!0,{},i,t);return Pr_getValue(s,"qOtherTotalSpec.qOtherCounted")||Pr_setValue(s,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),Pr_getValue(s,"qOtherTotalSpec.qOtherLimit")||Pr_setValue(s,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),s.hasOwnProperty("othersLabel")||(s.othersLabel="Others"),s}function mg(t,i){return ni(!0,{},i,t)}function Wv(t,i,s){return"function"==typeof t?t(i):Number.isNaN(+t)?s:t}var ar={restoreChangedProperties:function(t){Object.keys(t.qLayoutExclude.changed).forEach(i=>{t.qLayoutExclude.changed[i].to===Pr_getValue(t,i)&&Pr_setValue(t,i,t.qLayoutExclude.changed[i].from)})},isMasterItemProperty:Kw,importCommonProperties:function(t,i,s){const l="masterobject"===Pr_getValue(i,"properties.qInfo.qType")?"masterobject":Pr_getValue(s,"qInfo.qType");Pr_setValue(t,"qInfo.qType",l),t.visualization=s.visualization},copyPropertyIfExist:function(t,i,s){i.hasOwnProperty(t)&&(s[t]=i[t])},copyPropertyOrSetDefault:function(t,i,s,l){s[t]=i.hasOwnProperty(t)?i[t]:l},createDefaultDimension:gg,createDefaultMeasure:mg,resolveValue:Wv,getHypercubePath:function(t){const i=Pr_getValue(t,"data.targets.0.propertyPath","").split("/");return i.length&&"qHyperCubeDef"===i[i.length-1]&&(i.length-=1),i.join(".")},getDefaultDimension:function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},getDefaultMeasure:function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},setInterColumnSortOrder:function(t){let{exportFormat:i,newHyperCubeDef:s}=t;const l=i.data[0],c=s.qDimensions.length+s.qMeasures.length;s.qInterColumnSortOrder=l.interColumnSortOrder.concat();let d=s.qInterColumnSortOrder.length;if(d!==c)for(s.qLayoutExclude&&(s.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=l.interColumnSortOrder.concat());d!==c;)d<c?(DA_indexAdded(s.qInterColumnSortOrder,d),++d):(--d,DA_indexRemoved(s.qInterColumnSortOrder,d))},createNewProperties:function(t){let{exportFormat:i,initialProperties:s,hypercubePath:l}=t,c={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(i.properties).forEach(d=>{"qLayoutExclude"===d?i.properties[d].quarantine&&(c.qLayoutExclude.quarantine=ni(!0,{},i.properties[d].quarantine)):"qHyperCubeDef"===d&&l?Pr_setValue(c,"".concat(l,".qHyperCubeDef"),i.properties.qHyperCubeDef):s.hasOwnProperty(d)||Kw(d)?c[d]=i.properties[d]:c.qLayoutExclude.disabled[d]=i.properties[d]}),c=ni(!0,{},s,c),null===c.components&&(c.components=[]),c},getMaxMinDimensionMeasure:function(t){let{exportFormat:i,dataDefinition:s={}}=t;const l=i.data[0],c=s.dimensions||{max:0},d=s.measures||{max:0},f=Wv(d.max,l.dimensions.length,kA),p=Wv(d.min,l.dimensions.length,0);return{maxDimensions:Wv(c.max,f,kA),minDimensions:Wv(c.min,p,0),maxMeasures:f,minMeasures:p}},shouldInitLayoutExclude:function(t){let{exportFormat:i,maxDimensions:s,minDimensions:l,maxMeasures:c,minMeasures:d}=t;const f=i.data[0];return f.dimensions.length>s&&s>0||f.measures.length>c&&c>0||f.excludedDimensions.length>0&&f.dimensions.length+f.excludedDimensions.length>l||f.excludedMeasures.length>0&&f.measures.length+f.excludedMeasures.length>d||!c&&f.measures.length>0||!s&&f.dimensions.length>0},initLayoutExclude:function(t){let{exportFormat:i,maxDimensions:s,minDimensions:l,maxMeasures:c,minMeasures:d,newHyperCubeDef:f}=t;const p=i.data[0];f.qLayoutExclude||(f.qLayoutExclude={}),f.qLayoutExclude.qHyperCubeDef||(f.qLayoutExclude.qHyperCubeDef={}),(p.dimensions.length>s&&s>0||p.excludedDimensions&&p.excludedDimensions.length&&p.dimensions.length+p.excludedDimensions.length>l)&&(f.qLayoutExclude.qHyperCubeDef.qDimensions||(f.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(p.measures.length>c&&c>0||p.excludedMeasures&&p.excludedMeasures.length&&p.measures.length+p.excludedMeasures.length>d)&&(f.qLayoutExclude.qHyperCubeDef.qMeasures||(f.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!c&&p.measures.length&&(f.qLayoutExclude.qHyperCubeDef.qMeasures||(f.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!s&&p.dimensions.length&&(f.qLayoutExclude.qHyperCubeDef.qDimensions||(f.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function(t){let{exportFormat:i,maxDimensions:s,minDimensions:l,newHyperCubeDef:c,defaultDimension:d}=t;const f=i.data[0];let p;if(s>0)for(p=0;p<f.dimensions.length;++p)c.qDimensions.length<s?c.qDimensions.push(gg(f.dimensions[p],d)):c.qLayoutExclude.qHyperCubeDef.qDimensions.push(gg(f.dimensions[p],d));else if(f.dimensions.length)for(p=0;p<f.dimensions.length;++p)c.qLayoutExclude.qHyperCubeDef.qDimensions.push(gg(f.dimensions[p],d));if(f.excludedDimensions.length)for(p=0;p<f.excludedDimensions.length;++p)c.qDimensions.length<l?c.qDimensions.push(gg(f.excludedDimensions[p],d)):c.qLayoutExclude.qHyperCubeDef.qDimensions.push(gg(f.excludedDimensions[p],d))},addDefaultMeasures:function(t){let{exportFormat:i,maxMeasures:s,minMeasures:l,newHyperCubeDef:c,defaultMeasure:d}=t;const f=i.data[0];let p;if(s>0)for(p=0;p<f.measures.length;++p)c.qMeasures.length<s?c.qMeasures.push(mg(f.measures[p],d)):c.qLayoutExclude.qHyperCubeDef.qMeasures.push(mg(f.measures[p],d));else if(f.measures.length)for(p=0;p<f.measures.length;++p)c.qLayoutExclude.qHyperCubeDef.qMeasures.push(mg(f.measures[p],d));if(f.excludedMeasures.length)for(p=0;p<f.excludedMeasures.length;++p)c.qMeasures.length<l?c.qMeasures.push(mg(f.excludedMeasures[p],d)):c.qLayoutExclude.qHyperCubeDef.qMeasures.push(mg(f.excludedMeasures[p],d))},updateDimensionsOnAdded:function(t){let{newProperties:i,dataDefinition:s,hypercubePath:l}=t;if(s.dimensions&&"function"==typeof s.dimensions.added){const c=Pr_getValue(i,l||"").qHyperCubeDef,d=[...c.qDimensions];c.qDimensions=[],d.forEach(f=>{c.qDimensions.push(f),s.dimensions.added(f,i)})}},updateMeasuresOnAdded:function(t){let{newProperties:i,dataDefinition:s,hypercubePath:l}=t;if(s.measures&&"function"==typeof s.measures.added){const c=Pr_getValue(i,l||"").qHyperCubeDef,d=[...c.qMeasures];c.qMeasures=[],d.forEach(f=>{c.qMeasures.push(f),s.measures.added(f,i)})}}},AA={exportProperties:t=>function(i){let{propertyTree:s,hypercubePath:l}=i;const c=function(){let y=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;const b={data:[],properties:{}};for(let _=0;_<y;++_)b.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return b}(),d=s.qProperty,f=Pr_getValue(d,l||""),p=f.qHyperCubeDef,m=c.data[0];if(p.qInterColumnSortOrder||(p.qInterColumnSortOrder=[]),m.dimensions.push(...p.qDimensions),p.qLayoutExclude&&p.qLayoutExclude.qHyperCubeDef&&p.qLayoutExclude.qHyperCubeDef.qDimensions&&m.excludedDimensions.push(...p.qLayoutExclude.qHyperCubeDef.qDimensions),m.measures.push(...p.qMeasures),p.qLayoutExclude&&p.qLayoutExclude.qHyperCubeDef&&p.qLayoutExclude.qHyperCubeDef.qMeasures&&m.excludedMeasures.push(...p.qLayoutExclude.qHyperCubeDef.qMeasures),m.interColumnSortOrder=p.qInterColumnSortOrder.concat(),p.qLayoutExclude&&p.qLayoutExclude.qHyperCubeDef&&p.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const y=p.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();DA_isOrderedSubset(y,m.interColumnSortOrder)&&(m.interColumnSortOrder=y)}return delete p.qLayoutExclude,Object.keys(d).forEach(y=>{c.properties[y]=d[y]}),l&&(c.properties.qHyperCubeDef=f.qHyperCubeDef,delete f.qHyperCubeDef),d.qLayoutExclude||(d.qLayoutExclude={}),d.qLayoutExclude.disabled&&(Object.keys(d.qLayoutExclude.disabled).forEach(y=>{c.properties.hasOwnProperty(y)||(c.properties[y]=d.qLayoutExclude.disabled[y])}),delete d.qLayoutExclude.disabled),d.qLayoutExclude.changed&&(ar.restoreChangedProperties(d),delete d.qLayoutExclude.changed),d.qLayoutExclude.quarantine&&!Pr_isEmpty(d.qLayoutExclude.quarantine)||delete d.qLayoutExclude,c}(t),importProperties:t=>function(i){let{exportFormat:s,initialProperties:l={},dataDefinition:c={},defaultPropertyValues:d={},hypercubePath:f}=i;const p={qChildren:[]},m=ar.createNewProperties({exportFormat:s,initialProperties:l,hypercubePath:f}),y=Pr_getValue(l,f||"").qHyperCubeDef,b=Pr_getValue(m,f||"").qHyperCubeDef,{maxDimensions:_,minDimensions:w,maxMeasures:S,minMeasures:E}=ar.getMaxMinDimensionMeasure({exportFormat:s,dataDefinition:c}),{defaultDimension:C=ar.getDefaultDimension(),defaultMeasure:I=ar.getDefaultMeasure()}=d;return b.qDimensions.length=0,b.qMeasures.length=0,ar.shouldInitLayoutExclude({exportFormat:s,maxDimensions:_,minDimensions:w,maxMeasures:S,minMeasures:E})&&ar.initLayoutExclude({exportFormat:s,maxDimensions:_,minDimensions:w,maxMeasures:S,minMeasures:E,newHyperCubeDef:b}),ar.addDefaultDimensions({exportFormat:s,maxDimensions:_,minDimensions:w,newHyperCubeDef:b,defaultDimension:C}),ar.addDefaultMeasures({exportFormat:s,maxMeasures:S,minMeasures:E,newHyperCubeDef:b,defaultMeasure:I}),ar.setInterColumnSortOrder({exportFormat:s,newHyperCubeDef:b}),ar.copyPropertyIfExist("qMaxStackedCells",y,b),ar.copyPropertyIfExist("qNoOfLeftDims",y,b),ar.copyPropertyOrSetDefault("qInitialDataFetch",y,b,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),ar.copyPropertyOrSetDefault("qMode",y,b,"S"),ar.copyPropertyOrSetDefault("qReductionMode",y,b,"N"),ar.copyPropertyOrSetDefault("qSortbyYValue",y,b),ar.copyPropertyOrSetDefault("qIndentMode",y,b),ar.copyPropertyOrSetDefault("qShowTotalsAbove",y,b),ar.importCommonProperties(m,s,l),ar.updateDimensionsOnAdded({newProperties:m,dataDefinition:c,hypercubePath:f}),ar.updateMeasuresOnAdded({newProperties:m,dataDefinition:c,hypercubePath:f}),p.qProperty=m,p}(t)};const mL=t=>Pr_getValue(t,"data.targets.0.propertyPath"),yg=function(){var t=be(function*(i){let{halo:s,model:l,cellRef:c,newType:d,properties:f,viewDataMode:p=!1}=i;const m=f?{qProperty:f}:yield l.getFullPropertyTree(),y=c.current.getQae(),b=(t=>t.exportProperties?t.exportProperties:(i=>{if(i.split("/").indexOf("qHyperCubeDef")>-1)return AA.exportProperties})(mL(t)))(y);if(!b)throw new Error("Source chart does not support conversion");const _=yield(E=be(function*(C){let{halo:I,name:D,version:k}=C;const{types:A}=I;return yield A.get({name:D,version:k}).supernova()}),function(C){return E.apply(this,arguments)})({halo:s,name:d}),w=_.qae,S=(t=>t.importProperties?t.importProperties:(i=>{if(i.split("/").indexOf("qHyperCubeDef")>-1)return AA.importProperties})(mL(t)))(w);var E;if(!S)throw new Error("Target chart does not support conversion");return S({exportFormat:b({propertyTree:m,hypercubePath:ar.getHypercubePath(y),viewDataMode:p}),initialProperties:ee({qInfo:{qType:d},visualization:d},Pr_getValue(w,"properties.initial",{})),dataDefinition:Pr_getValue(w,"data.targets.0.",{}),hypercubePath:ar.getHypercubePath(w),viewDataMode:p})});return function(s){return t.apply(this,arguments)}}(),vL={hypercube:AA};var Qw=t=>Ao((i=>ee(ee({},i),{},{shapes:[{type:"path",attrs:{d:"M8.86225926,1.6 L15.7815749,13.5 C16.2829746,14.3 15.8818548,15 14.9793354,15 L1.04042422,15 C0.0853772072,15 -0.232971797,14.3650794 0.172002787,13.6135407 L7.05722041,1.6 C7.55862009,0.8 8.36085958,0.8 8.86225926,1.6 Z M7.962,2.007 C7.95987183,2.02476599 7.95607967,2.03712023 7.94920396,2.05249845 L1.1033193,14 L14.915544,14 L7.99777452,2.10265906 L7.97779697,2.06138411 L7.96394459,2.01964415 L7.962,2.007 Z M7.5,11 L8.5,11 C8.76666667,11 8.95432099,11.1580247 8.99272977,11.4038409 L9,11.5 L9,12.5 C9,12.7666667 8.84197531,12.954321 8.59615912,12.9927298 L8.5,13 L7.5,13 C7.23333333,13 7.04567901,12.8419753 7.00727023,12.5961591 L7,12.5 L7,11.5 C7,11.2333333 7.15802469,11.045679 7.40384088,11.0072702 L7.5,11 L8.5,11 L7.5,11 Z M7.5,5 L8.5,5 C8.76666667,5 8.95432099,5.15802469 8.99272977,5.40384088 L9,5.5 L9,9.5 C9,9.76666667 8.84197531,9.95432099 8.59615912,9.99272977 L8.5,10 L7.5,10 C7.23333333,10 7.04567901,9.84197531 7.00727023,9.59615912 L7,9.5 L7,5.5 C7,5.23333333 7.15802469,5.04567901 7.40384088,5.00727023 L7.5,5 L8.5,5 L7.5,5 Z"}}]}))(t));function Yw(t){let{d:i}=t;const s=Wr();let l="inherit",c=s.palette.success.main;i.missing?c=s.palette.warning.main:i.error&&(l="error",c=s.palette.error.main);const d={color:c},f=V.createElement(En,{style:{lineHeight:"30px",paddingRight:s.spacing(1)}},V.createElement(YP,null,V.createElement(i.missing||i.error?Qw:Ak,{style:d})));return V.createElement(Te,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},V.createElement(Te,{item:!0},f),V.createElement(Te,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},V.createElement(En,{noWrap:!0,component:"p"},V.createElement(En,{component:"span",variant:"subtitle2",color:l},i.description),V.createElement(En,{component:"span"}," "),V.createElement(En,{component:"span",variant:"subtitle2",color:i.error?"error":"inherit",style:{fontWeight:400}},i.label))))}function sF(t){let{data:i}=t;const s=Wr();return V.createElement(Te,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},i.map((l,c)=>{const d=l.descriptions.map((f,p)=>V.createElement(Yw,{d:f,key:p}));return d.length>0&&V.createElement(Te,{container:!0,item:!0,key:c,direction:"column",style:{paddingBottom:s.spacing(2)}},V.createElement(En,{noWrap:!0,key:c,variant:"subtitle1",align:"left",color:"textSecondary"},l.title),d)}))}function bL(t){let{title:i="Error",message:s="",data:l=[]}=t;return V.createElement(Te,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},V.createElement(Te,{item:!0},V.createElement(Qw,{style:{fontSize:"38px"}})),V.createElement(Te,{item:!0},V.createElement(En,{variant:"h6",align:"center","data-tid":"error-title"},i)),V.createElement(Te,{item:!0},V.createElement(En,{variant:"subtitle1",align:"center","data-tid":"error-message"},s)),V.createElement(sF,{data:l}))}const aF=["size"],IA="Progress",vg={root:"".concat(IA,"-root"),front:"".concat(IA,"-front"),back:"".concat(IA,"-back")},lF=De("div")(t=>{let{theme:i}=t;return{["&.".concat(vg.root)]:{position:"relative",display:"inline-block"},["& .".concat(vg.front)]:{color:i.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(vg.back)]:{color:i.palette.divider}}}),cF={small:16,medium:32,large:64,xlarge:128};function _L(t){let{size:i="medium"}=t,s=_n(t,aF);const l=cF[i];return V.createElement(lF,{className:vg.root},V.createElement(gv,Vi({variant:"determinate",value:100,className:vg.back,size:l,thickness:3},s)),V.createElement(gv,Vi({variant:"indeterminate",disableShrink:!0,className:vg.front,size:l,thickness:3},s)))}const Zw=["cancel","translator"],wL=["retry","translator"],Kv={stripes:"".concat("LongRunningQuery","-stripes")},xL=De(Te)(()=>({["& .".concat(Kv.stripes)]:{"&::before":{position:"absolute",height:"100%",width:"100%",top:0,left:0,content:'""',backgroundSize:"14.14px 14.14px",backgroundImage:"linear-gradient(135deg, currentColor 10%, rgba(0,0,0,0) 10%, rgba(0,0,0,0) 50%, currentColor 50%, currentColor 59%, rgba(0,0,0,0) 60%, rgba(0,0,0,0) 103%)",opacity:.1}}}));function SL(t){let{cancel:i,translator:s}=t,l=_n(t,Zw);return V.createElement(V.Fragment,null,V.createElement(xL,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},V.createElement(Te,{item:!0},V.createElement(_L,null)),V.createElement(Te,{item:!0},V.createElement(En,{variant:"h6",align:"center","data-tid":"update-active"},s.get("Object.Update.Active")))),V.createElement(Te,Vi({item:!0},l),V.createElement(C_,{variant:"contained",onClick:i},s.get("Cancel"))))}function uF(t){let{retry:i,translator:s}=t,l=_n(t,wL);return V.createElement(V.Fragment,null,V.createElement(Te,{item:!0},V.createElement(Qw,{style:{fontSize:"38px"}})),V.createElement(Te,{item:!0},V.createElement(En,{variant:"h6",align:"center","data-tid":"update-cancelled"},s.get("Object.Update.Cancelled"))),V.createElement(Te,{item:!0},V.createElement(C_,Vi({variant:"contained",onClick:i},l),s.get("Retry"))))}function EL(t){let{canCancel:i,canRetry:s,api:l}=t;const{translator:c}=P.useContext(ai);return V.createElement(Te,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:Kv.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},i&&V.createElement(SL,{cancel:l.cancel,translator:c,className:Kv.cancel}),s&&V.createElement(uF,{retry:l.retry,translator:c,className:Kv.retry}))}function dF(){return V.createElement(Te,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},V.createElement(_L,{size:"large"}))}const Xw={containerStyle:"".concat("Header","-containerStyle"),containerTitleStyle:"".concat("Header","-containerTitleStyle")},fF=De(Te)(t=>{let{theme:i}=t;return{["&.".concat(Xw.containerStyle)]:{flexGrow:0},["&.".concat(Xw.containerTitleStyle)]:{paddingBottom:i.spacing(1)}}});function gF(t){let{layout:i,sn:s,anchorEl:l,hovering:c,focusHandler:d,titleStyles:f={}}=t;const p=i.showTitles&&!!i.title,m=i.showTitles&&!!i.subtitle,y=i.qSelectionInfo&&i.qSelectionInfo.qInSelections,[b,_]=P.useState([]),[w,S]=Nf(),[E,C]=P.useState(!1);P.useEffect(()=>{s&&s.component&&s.component.isHooked&&s.component.observeActions(T=>{_([...T,...s&&s.selectionToolbar&&s.selectionToolbar.items||[]])})},[s]),P.useEffect(()=>{if(!S)return;const{width:T}=S;C(T<221)},[S]);const I=p||m,D=[Xw.containerStyle,...I?[Xw.containerTitleStyle]:[]],k=(c||y)&&(E||!I),M=V.createElement(Pw,{show:I&&!k&&!E,selections:{show:y,api:s.component.selections,onKeyDeactivate:d.refocusContent},actions:b,popover:{show:k,anchorEl:l},focusHandler:d,layout:i});return V.createElement(fF,{ref:w,item:!0,container:!0,wrap:"nowrap",className:D.join(" ")},V.createElement(Te,{item:!0,zeroMinWidth:!0,xs:!0},V.createElement(Te,{container:!0,wrap:"nowrap",direction:"column"},p&&V.createElement(En,{variant:"h6",noWrap:!0,className:"njs-cell-title",style:f.main},i.title),m&&V.createElement(En,{variant:"body2",noWrap:!0,className:"njs-cell-sub-title",style:f.subTitle},i.subtitle))),V.createElement(Te,{item:!0},M))}const DL={itemStyle:"".concat("Footer","-itemStyle")},kL=De(Te)(t=>{let{theme:i}=t;return{["& .".concat(DL.itemStyle)]:{minWidth:0,paddingTop:i.spacing(1)}}});function RA(t){let{layout:i,titleStyles:s={}}=t;return i&&i.showTitles&&i.footnote?V.createElement(kL,{container:!0},V.createElement(Te,{item:!0,className:DL.itemStyle},V.createElement(En,{noWrap:!0,variant:"body2",className:"njs-cell-footer",style:s.footer},i.footnote))):null}class IL{constructor(){this.timer=null,this.next=null,this.running=!1}start(){this.running||(this.running=!0,this.scheduleNext())}scheduleNext(){this.timer=setTimeout(()=>{this.doNext()},10)}doNext(){var i=this;return be(function*(){const s=i.next;i.next=null,s?(yield s(),i.scheduleNext()):i.stop()})()}schedule(i){this.next=i,this.start()}stop(){this.running&&(clearTimeout(this.timer),this.timer=null,this.running=!1)}}function ML(t){let{sn:i,snOptions:s,snPlugins:l,layout:c,appLayout:d,halo:f}=t;const{component:p}=i,{theme:m,language:y,constraints:b,interactions:_,keyboardNavigation:w}=P.useContext(ai),[S]=P.useState(()=>new IL),[E,C]=P.useState(!1),[I,D]=P.useState(0),[k,A,M]=Nf(),[T,O]=P.useState(null),N=P.useCallback(B=>{B&&O(B)},[]);return P.useEffect(()=>{if(T)return p.created({options:s}),p.mounted(T),C(!0),()=>{S.stop(),p.willUnmount()}},[T,p]),P.useEffect(()=>{E&&T&&A&&(!p.isHooked&&c&&c.qSelectionInfo&&c.qSelectionInfo.qInSelections||S.schedule(()=>{const B=[];return b.passive||B.push("passive"),b.active||B.push("interact"),b.select||B.push("select"),b.edit||B.push("edit"),f.app&&f.app.session&&B.push("fetch"),Promise.resolve(p.render({layout:c,options:s,plugins:l,embed:f.public.nebbie,context:ee({constraints:b,interactions:_,theme:f.public.theme,appLayout:d,keyboardNavigation:w},p.isHooked?{}:{logicalSize:i.logicalSize({layout:c}),localeInfo:(d||{}).qLocaleInfo,permissions:B})})).then(j=>{!1!==j&&(0===I&&"function"==typeof s.onInitialRender&&s.onInitialRender.call(null),D(I+1))})}))},[A,s,l,T,M,c,d,m,y,b,_,E,w]),V.createElement("div",{ref:k,"data-render-count":I,style:{position:"relative",height:"100%"},className:"njs-viz"},V.createElement("div",{ref:N,style:{position:"absolute",width:"100%",height:"100%"}}))}const OL=(t,i)=>{switch(i.type){case"LOADING":return ee(ee({},t),{},{loading:!0});case"LOADED":return ee(ee({},t),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:i.sn,visualization:i.visualization});case"RENDER":return ee(ee({},t),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return ee(ee({},t),{},{longRunningQuery:!0});case"ERROR":return ee(ee({},t),{},{loading:!1,longRunningQuery:!1,error:i.error});default:throw new Error("Unhandled type: ".concat(i.type))}};function LL(t){let{delay:i=750}=t;const[s,l]=P.useState(!1);return P.useEffect(()=>{const c=setTimeout(()=>l(!0),i);return()=>clearTimeout(c)},[]),s?V.createElement(dF,null):null}const Jw=t=>!t.qError||7005===t.qError.qErrorCode,MA=(t,i,s,l,c)=>[...Array(t).keys()].map(d=>{const f=!(!i||!i[d]),p=f&&i[d].qError&&7005===i[d].qError.qErrorCode,m=f&&!p&&i[d].qError,b="".concat(m?l:p?p&&i[d].qCalcCondMsg||c:f&&i[d].qFallbackTitle||""),_=s(d);return{description:_?"".concat(_).concat(b.length?":":""):null,label:b,missing:i&&!f&&!m&&d>=i.length||p,error:m}}),ex=t=>t&&(Array.isArray(t)?t:[t])||[],PL=(t,i,s,l)=>{const c=l.dimensions.min(),d=l.measures.min(),f=l.resolveLayout(i);return{reqDimErrors:MA(c,ex(f.qDimensionInfo||f.qItems),p=>l.dimensions.description(s,p),t.get("Visualization.Invalid.Dimension"),t.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:MA(d,ex(f.qMeasureInfo),p=>l.measures.description(s,p),t.get("Visualization.Invalid.Measure"),t.get("Visualization.UnfulfilledCalculationCondition"))}},TA=function(){var t=be(function*(i,s,l,c){let{targets:d}=l;const{hasUnfulfilledErrors:f,aggMinD:p,aggMinM:m,hasLayoutErrors:y,layoutErrors:b}=((M,T,O)=>{let N=!1,B=0,j=0,G=!1,Q=!1;const H=[];for(let z=0;z<T.length;++z){const K=T[z],Y=K.dimensions.min(),X=K.measures.min(),re=K.resolveLayout(O),q=ex(re.qDimensionInfo||re.qItems).filter(Jw),$=ex(re.qMeasureInfo).filter(Jw);if(B+=Y,j+=X,(q.length<Y||$.length<X)&&(N=!0),re.qError){G=!0,Q=7005===re.qError.qErrorCode;const W=Q&&re.qCalcCondMsg?re.qCalcCondMsg:M.get(Q?"Visualization.UnfulfilledCalculationCondition":"Visualization.LayoutError");H.push({title:W,descriptions:[]})}}return{hasUnfulfilledErrors:N,aggMinD:B,aggMinM:j,hasLayoutErrors:G,layoutErrors:H}})(i,d,s),_=[],w=[];let S=null;for(let M=0;M<d.length;++M){const T=d[M];if(!y&&f){const O=S||(yield c.getProperties());S=O;const N=PL(i,s,O,T);_.push(...N.reqDimErrors),w.push(...N.reqMeasErrors)}}const E=_.filter(M=>!(M.missing||M.error)).length,C=i.get("Visualization.Incomplete.Dimensions",[E,p]),I=w.filter(M=>!(M.missing||M.error)).length,D=i.get("Visualization.Incomplete.Measures",[I,m]),k=[{title:C,descriptions:[..._]},{title:D,descriptions:[...w]}],A=y?b:k;return[y||f,{title:y?b[0].title:i.get("Visualization.Incomplete"),data:A}]});return function(s,l,c,d){return t.apply(this,arguments)}}(),Qv=P.forwardRef((t,i)=>{let{halo:s,model:l,initialSnOptions:c,initialSnPlugins:d,initialError:f,onMount:p,currentId:m,emitter:y}=t;const{app:b,types:_}=s,{nebbie:w}=s.public,{theme:S,translator:E,language:C,keyboardNavigation:I,disableCellPadding:D=!1}=P.useContext(ai),k=Wr(),[A,M,T]=Nf(),[O,N]=P.useReducer(OL,{loading:!1,loaded:!1,longRunningQuery:!1,error:(B=f)?{title:B.message}:null,sn:null,visualization:null});var B;const[j,G]=P.useState(l),[Q,{validating:H,canCancel:z,canRetry:K},Y]=ec(j),[X]=vw(b),[re,q,$]=Nf(),[W,te]=P.useState(c),[J,ae]=P.useState(d),ue="njs-cell-".concat(m),[_e]=oA(b,j,["#".concat(ue),".njs-action-toolbar-popover"]),[ve,Ee]=P.useState(!1),fe=P.useRef({enter:null,leave:null}),{titleStyles:we,bgColor:pe,bgImage:ye,border:Ne,borderRadius:Oe,boxShadow:qe}=((t,i,s,l)=>P.useMemo(()=>{if(t&&i){const d=t.components?t.components.find(_=>"general"===_.key):null,f={main:cA(d,"main",i,t.visualization),footer:cA(d,"footer",i,t.visualization),subTitle:cA(d,"subTitle",i,t.visualization)},p=lA(d,i,t.visualization),m=aA(d,s),y=function(_,w,S){const E=zw(null==_?void 0:_.borderColor,"","borderColor",w,S),C=(null==_?void 0:_.borderWidth)||Bw("","borderWidth",w,S);return C&&E?"".concat(C," solid ").concat(E):void 0}(d,i,t.visualization);return{titleStyles:f,bgColor:p,bgImage:m,border:y,borderRadius:(w=i,S=t.visualization,(null==(_=d)?void 0:_.borderRadius)||Bw("","borderRadius",w,S)),boxShadow:QO(d,i,t.visualization)}}var _,w,S;return{}},[t,i,s,l]))(Q,s.public.theme,s.app,S),Ve=P.useRef({focusToolbarButton(xe){this.emit(xe?"focus_toolbar_last":"focus_toolbar_first")}});P.useEffect(()=>{Bv(Ve.current)},[]),Ve.current.blurCallback=xe=>{s.root.toggleFocusOfCells(),xe&&$&&$.focus()},Ve.current.refocusContent=()=>{O.sn.component&&"function"==typeof O.sn.component.focus&&O.sn.component.focus()},P.useEffect(()=>{if(f)return void p();if(!X||!Q)return;if(O.visualization===Q.visualization&&O.sn)return void(Ke=be(function*(Xe){const[Tt,Je]=yield TA(E,Q,Xe.generator.qae.data,j);N(Tt?{type:"ERROR",error:Je}:{type:"RENDER"}),(nt=>{let{sn:ot,layout:xt,model:Wt}=nt;const Kt=ot&&ot.component&&ot.component.selections;if(Kt&&Kt.id&&Wt.id&&Kt.id===Wt.id){if(xt&&xt.qSelectionInfo&&xt.qSelectionInfo.qInSelections&&!Kt.isModal()){const{targets:lr}=ot.generator.qae.data;Kt.goModal(lr[0].propertyPath)}xt.qSelectionInfo&&xt.qSelectionInfo.qInSelections||Kt.isModal()&&Kt.noModal()}})({sn:O.sn,layout:Q,model:j})}),function(Xe){return Ke.apply(this,arguments)})(O.sn);var Ke;const xe=_.getSupportedVersion(Q.visualization,Q.version);return function(){var Ke=be(function*(Xe,Tt){var Je;N({type:"LOADING"}),yield(Je=be(function*(nt){let{dispatch:ot,types:xt,visualization:Wt,version:Kt,model:lr,app:Be,selections:qt,nebbie:gn,focusHandler:mn,emitter:Nr,onMount:Kr}=nt;try{const _r=yield($t=be(function*(un){let{types:$n,name:Gn,version:Dn}=un;return yield $n.get({name:Gn,version:Dn}).supernova()}),function(un){return $t.apply(this,arguments)})({types:xt,name:Wt,version:Kt}),Qt=_r.create({model:lr,app:Be,selections:qt,nebbie:gn,focusHandler:mn,emitter:Nr});Qt&&(ot({type:"LOADED",sn:Qt,visualization:Wt}),Kr())}catch(_r){ot(Kt?{type:"ERROR",error:{title:_r.message}}:{type:"ERROR",error:{title:"Could not find a version of '".concat(Wt,"' that supports current object version. Did you forget to register ").concat(Wt,"?")}}),Kr()}var $t}),function(nt){return Je.apply(this,arguments)})({dispatch:N,types:_,visualization:Xe,version:Tt,model:j,app:b,selections:_e,nebbie:w,focusHandler:Ve.current,emitter:y,onMount:p})});return function(Xe,Tt){return Ke.apply(this,arguments)}}()(Q.visualization,xe),()=>{}},[_,O.sn,j,_e,Q,X,C]),P.useEffect(()=>{if(!H)return;const xe=setTimeout(()=>N({type:"LONG_RUNNING_QUERY"}),2e3);return()=>clearTimeout(xe)},[H]),P.useImperativeHandle(i,()=>({getQae:()=>O.sn.generator.qae,toggleFocus(xe){"function"==typeof O.sn.component.focus&&(xe?O.sn.component.focus():O.sn.component.blur())},setSnOptions:te,setSnPlugins:ae,setModel:G,getImperativeHandle(){var xe;return null!==(xe=O.sn)&&void 0!==xe&&xe.component&&"function"==typeof O.sn.component.getImperativeHandle?O.sn.component.getImperativeHandle():{}},takeSnapshot:()=>be(function*(){const{width:xe,height:Ke}=M;let Xe=JSON.parse(JSON.stringify(Q));return"function"==typeof O.sn.component.setSnapshotData&&(Xe=(yield O.sn.component.setSnapshotData(Xe))||Xe),{key:String(+Date.now()),meta:{language:E.language(),theme:k.name,appLayout:X,size:{width:Math.round(xe),height:Math.round(Ke)}},layout:Xe}})(),exportImage(){var xe=this;return be(function*(){if("function"!=typeof s.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const Ke=yield xe.takeSnapshot();return s.config.snapshot.capture(Ke)})()}}),[O.sn,q,M,Q,k.name,X]);let lt=null;return O.loading&&!O.longRunningQuery?lt=V.createElement(LL,null):O.error?lt=V.createElement(bL,O.error):O.loaded&&(lt=V.createElement(ML,{key:Q.visualization,sn:O.sn,halo:s,snOptions:W,snPlugins:J,layout:Q,appLayout:X})),V.createElement(A_,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:pe||"unset",backgroundImage:ye&&ye.url?"url(".concat(ye.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:ye&&ye.size,backgroundPosition:ye&&ye.pos,border:Ne,borderRadius:Oe,boxShadow:qe,boxSizing:"border-box"},elevation:0,square:!0,className:"njs-cell",ref:A,id:ue,onMouseEnter:()=>{fe.current.leave&&clearTimeout(fe.current.leave),fe.enter||(fe.current.enter=setTimeout(()=>{Ee(!0),fe.current.enter=null},250))},onMouseLeave:()=>{fe.current.enter&&clearTimeout(fe.current.enter),fe.current.leave||(fe.current.leave=setTimeout(()=>{Ee(!1),fe.current.leave=null},750))}},V.createElement(Te,{container:!0,direction:"column",gap:0,style:ee(ee({position:"relative",width:"100%",height:"100%"},D?{}:{padding:k.spacing(1)}),O.longRunningQuery?{opacity:"0.3"}:{})},T&&Q&&O.sn&&V.createElement(gF,{layout:Q,sn:O.sn,anchorEl:T,hovering:ve,focusHandler:Ve.current,titleStyles:we},"\xa0"),V.createElement(Te,{tabIndex:I?0:-1,onKeyDown:I?xe=>{["Enter"," ","Spacebar"].includes(xe.key)&&s.root.toggleFocusOfCells(m)}:null,item:!0,xs:!0,style:{height:"100%"},ref:re},lt),T&&Q&&O.sn&&V.createElement(RA,{layout:Q,titleStyles:we})),O.longRunningQuery&&V.createElement(EL,{canCancel:z,canRetry:K,api:Y}))});function tx(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function nx(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",i=arguments.length>1?arguments[1]:void 0,s=arguments.length>2?arguments[2]:void 0;const l=[];return Object.keys(i).forEach(c=>{const d=i[c];var f,p;"object"!=typeof s[c]||"object"!=typeof d||Array.isArray(d)?(p=s[c],(tx(f=d)&&tx(p)?JSON.stringify(f)===JSON.stringify(p):!Array.isArray(f)&&!Array.isArray(p)&&f===p)||l.push({qPath:t+c,qOp:"add",qValue:JSON.stringify(i[c])})):l.push(...nx("".concat(t).concat(c,"/"),i[c],s[c]))}),l}function OA(t){if(!Array.isArray(t))throw new Error("Invalid plugin format: plugins should be an array!");t.forEach(i=>{if("object"!=typeof i)throw new Error("Invalid plugin format: a plugin should be an object");if("object"!=typeof i.info||"string"!=typeof i.info.name)throw new Error("Invalid plugin format: a plugin should have an info object containing a name");if("function"!=typeof i.fn)throw new Error('Invalid plugin format: The plugin "'.concat(i.info.name,'" has no "fn" function'))})}const NL=t=>{var i;return!(!t||t.qHasSoftPatches||t.qExtendsId||!(((null===(i=t.qMeta)||void 0===i?void 0:i.privileges)||[]).indexOf("update")>-1))},mF=(t,i)=>t.__snInterceptor?t.__snInterceptor.setProperties.call(t,i):t.setProperties(i),rx=ni.bind(null,!0),Io={},{isArray:ic}=Array;function bg(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function Vf(t){return void 0===t}function _g(t,i){return"function"==typeof t[i]||"$$"===i.substring(0,2)||"_"===i.substring(0,1)}function ix(t,i){const s=i.substring(1).split("/").slice(0,-1);let l;return s.forEach((c,d)=>{if(d===s.length)return;l=+c;const f=isNaN(l)?{}:[];t[l||c]=Vf(t[l||c])?f:t[c],t=t[l||c]}),t}function Yv(t,i){let s=!0;if(bg(t)&&bg(i))return Object.keys(t).length===Object.keys(i).length&&(Object.keys(t).forEach(l=>{Yv(t[l],i[l])||(s=!1)}),s);if(ic(t)&&ic(i)){if(t.length!==i.length)return!1;for(let l=0,c=t.length;l<c;l+=1)if(!Yv(t[l],i[l]))return!1;return!0}return t===i}Io.generate=function(t,i,s){s=s||"";let l=[];return Object.keys(i).forEach(c=>{const d=(m=i[c])&&rx({},{val:m}).val,f=t[c],p="".concat(s,"/").concat(c);var m;Yv(d,f)||_g(i,c)||(Vf(f)?l.push({op:"add",path:p,value:d}):bg(d)&&bg(f)?l=l.concat(Io.generate(f,d,p)):ic(d)&&ic(f)?l=l.concat(function(m,y,b){let _=[];const w=m.slice();let S=-1;function E(C,I,D){if(C[D]&&Vf(C[D].qInfo))return null;if(C[D]&&C[D].qInfo.qId===I)return D;for(let k=0,A=C.length;k<A;k+=1)if(C[k]&&C[k].qInfo.qId===I)return k;return-1}if(Yv(y,w))return _;if(!Vf(y[0])&&Vf(y[0].qInfo))return _.push({op:"replace",path:b,value:y}),_;for(let C=w.length-1;C>=0;C-=1)S=E(y,w[C].qInfo&&w[C].qInfo.qId,C),-1===S?(_.push({op:"remove",path:"".concat(b,"/").concat(C)}),w.splice(C,1)):_=_.concat(Io.generate(w[C],y[S],"".concat(b,"/").concat(C)));for(let C=0,I=y.length;C<I;C+=1)S=E(w,y[C].qInfo&&y[C].qInfo.qId),-1===S?(_.push({op:"add",path:"".concat(b,"/").concat(C),value:y[C]}),w.splice(C,0,y[C])):S!==C&&(_.push({op:"move",path:"".concat(b,"/").concat(C),from:"".concat(b,"/").concat(S)}),w.splice(C,0,w.splice(S,1)[0]));return _}(f,d,p)):l.push({op:"replace",path:"".concat(s,"/").concat(c),value:d}))}),Object.keys(t).forEach(c=>{Vf(i[c])&&!_g(t,c)&&l.push({op:"remove",path:"".concat(s,"/").concat(c)})}),l},Io.apply=function(t,i){i.forEach(s=>{let l=ix(t,s.path),c=s.path.split("/").splice(-1)[0],d=c&&isNaN(+c)?l[c]:l[+c]||l;const f=s.from?s.from.split("/").splice(-1)[0]:null;if("/"===s.path&&(l=null,d=t),"add"===s.op||"replace"===s.op)if(ic(l))"-"===c&&(c=l.length),l.splice(+c,"add"===s.op?0:1,s.value);else if(ic(d)&&ic(s.value)){const m=s.value.slice();d.length=0,d.push(...m)}else if(bg(d)&&bg(s.value))p=d,Object.keys(p).forEach(m=>{Object.getOwnPropertyDescriptor(p,m).configurable&&!_g(p,m)&&delete p[m]}),rx(d,s.value);else{if(!l)throw new Error("Patchee is not an object we can patch");l[c]=s.value}else if("move"===s.op){const m=ix(t,s.from);ic(l)?l.splice(+c,0,m.splice(+f,1)[0]):(l[c]=m[f],delete m[f])}else"remove"===s.op&&(ic(l)?l.splice(+c,1):delete l[c]);var p})},Io.clone=function(t){return rx({},t)},Io.createPatch=function(t,i,s){const l={op:t.toLowerCase(),path:s};return"move"===l.op?l.from=i:void 0!==i&&(l.value=i),l},Io.updateObject=function(t,i){Object.keys(t).length?Io.apply(t,Io.generate(t,i)):rx(t,i)};let bt,Ro;function wg(t,i){if(!t||i.length!==t.length)return!0;for(let s=0;s<i.length;s++)if(t[s]!==i[s])return!0;return!1}function LA(t){let{explicitResize:i=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.__hooks={obsolete:!1,error:!1,waitForData:!1,chain:{promise:null,resolve:()=>{}},list:[],snaps:[],menus:[],actions:{list:[]},pendingEffects:[],pendingLayoutEffects:[],pendingPromises:[],resizer:{setters:[],explicitResize:i},accessibility:{setter:null},contraintsWarning:!0}}function jL(t){ox(t.__hooks.list,!0),t.__hooks.obsolete=!0,t.__hooks.list.length=0,t.__hooks.pendingEffects.length=0,t.__hooks.pendingLayoutEffects.length=0,t.__hooks.actions=null,t.__hooks.imperativeHandle=null,t.__hooks.resizer=null,t.__hooks.accessibility=null,t.__actionsDispatch=null,clearTimeout(t.__hooks.micro),cancelAnimationFrame(t.__hooks.macro)}function PA(t){return Zv.apply(this,arguments)}function Zv(){return Zv=be(function*(t){if(t.__hooks.obsolete)return Promise.resolve();Ro=-1,bt=t;try{bt.fn.call(null)}catch(s){console.error(s)}bt.__hooks.initiated=!0;const i=bt.__hooks;return VL(bt),Ro=void 0,bt=void 0,i.chain.promise||(i.chain.promise=new Promise(s=>{i.chain.resolve=s})),ox((s=i).pendingLayoutEffects),function(s){s.macro||(s.macro=requestAnimationFrame(()=>{var l,c;ox((l=s).pendingEffects),l.macro=null,(c=l).pendingPromises.length||c.micro||c.macro||(c.chain.promise=null,c.chain.resolve(!c.waitForData))}))}(i),i.chain.promise;var s}),Zv.apply(this,arguments)}function ox(t,i){try{t.forEach(s=>{"function"==typeof s.teardown&&s.teardown(),i||(s.teardown=s.value[0]())})}catch(s){console.error(s)}t.length=0}function BL(t,i){try{return Promise.all(t.__hooks.snaps.map(s=>Promise.resolve(s.fn(i)))).then(s=>s[s.length-1])}catch(s){console.error(s)}return Promise.resolve()}function zL(t,i,s,l){try{return Promise.all(t.__hooks.menus.map(c=>Promise.resolve(c.fn(i,s,l)))).then(c=>c[c.length-1])}catch(c){console.error(c)}return Promise.resolve()}function qL(t){return t.__hooks.imperativeHandle}function VL(t){t.__actionsDispatch&&t.__hooks.actions.changed&&(t.__actionsDispatch(t.__hooks.actions.list.slice()),t.__hooks.actions.changed=!1)}function HL(t,i){t.__actionsDispatch=i,t.__hooks&&(t.__hooks.actions.changed=!0,VL(t))}function Ja(t){if(void 0===bt)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const i=bt.__hooks;return t>=i.list.length&&i.list.push({}),i.list[t]}function ei(t){return Ja(++Ro),bt.context[t]}function $L(t){t.__hooks&&(t.__hooks.resizer.update=!0)}function GL(t){return{__hooked:!0,fn:t,initiate:LA,run:PA,teardown:jL,runSnaps:BL,runMenu:zL,focus:jA,blur:BA,observeActions:HL,getImperativeHandle:qL,updateRectOnNextRun:$L}}function xg(t){const i=Ja(++Ro);if(!i.value){i.component=bt;const s=l=>{if(i.component.__hooks.obsolete)return;const c="function"==typeof l?l(i.value[0]):l;var d;c!==i.value[0]&&(i.value[0]=c,(d=i.component).__hooks.micro||(d.__hooks.micro=setTimeout(()=>{d.__hooks.micro=null,PA(d)},0)))};i.value=["function"==typeof t?t():t,s]}return i.value}function UL(t,i){const s=Ja(++Ro);wg(s.value?s.value[1]:void 0,i)&&(s.value=[t,i],-1===bt.__hooks.pendingEffects.indexOf(s)&&bt.__hooks.pendingEffects.push(s))}function NA(t,i){const s=Ja(++Ro);wg(s.value?s.value[1]:void 0,i)&&(s.value=[t,i],bt.__hooks.pendingLayoutEffects.push(s))}function FA(t,i){const s=Ja(++Ro);return wg(s.value?s.value[0]:void 0,i)&&(s.value=[i,t()]),s.value[1]}function WL(){return ei("element")}function jA(t){const i=t.__hooks.accessibility;i.active||(i.active=!0,i&&i.setter&&i.setter({active:!0,enabled:i.enabled,blur:i.exitFunction,focus:i.focusFunction,focusSelection:i.focusSelectionFunction}))}function BA(t){const i=t.__hooks.accessibility;i&&i.active&&(i.active=!1,i&&i.setter&&i.setter({active:!1,enabled:i.enabled,blur:i.exitFunction,focus:i.focusFunction,focusSelection:i.focusSelectionFunction}))}const zA={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:t=>Promise.resolve(t)},yF=Object.keys(zA);function vF(t,i){const s=ee({},zA);(t=>{Object.keys(so.prototype).forEach(i=>{t[i]=so.prototype[i]}),so.init(t)})(s);const l={emit(){s.emit(...arguments)}};Object.keys(t.component||{}).forEach(f=>{-1!==yF.indexOf(f)?s[f]=t.component[f].bind(l):l[f]=t.component[f]});const c=function(f){let{sn:p,component:m}=f;const y={},b=[],_=(t=>i=>{const s=(l=ee(ee({},i),{},{action(){"function"==typeof i.action&&i.action.call(s,t),s.emit("changed")},enabled:()=>"function"!=typeof i.enabled||i.enabled.call(s,t),active:"function"==typeof i.active?function(){return i.active.call(s,t)}:void 0}),Object.keys(so.prototype).forEach(c=>{l[c]=so.prototype[c]}),so.init(l),l);var l;return s})(m);return((p.definition.selectionToolbar||{}).items||[]).forEach(w=>{const S=_(w);y[w.key]=S,b.push(S)}),(p.definition.actions||[]).forEach(w=>{const S=_(w);y[w.key]=S}),{actions:y,selectionToolbarItems:b,destroy(){b.length=0}}}({sn:t,component:l}),d=i.app&&i.app.session?i.app.session.getObjectApi({handle:-1}):null;return Object.assign(l,{model:i.model,app:i.app,global:d,selections:i.selections,actions:c.actions}),Object.assign(s,{actions:c.actions,model:i.model,app:i.app,selections:i.selections}),[s,c]}const oc=()=>{};function qA(t,i){return void 0===t?()=>i:()=>t}function VA(t){const i=t||{};return{min:"function"==typeof i.min?i.min:qA(i.min,0),max:"function"==typeof i.max?i.max:qA(i.max,1e3),added:i.added||i.add||oc,description:i.description||oc,moved:i.moved||i.move||oc,removed:i.removed||i.remove||oc,replaced:i.replaced||i.replace||oc,isDefined:()=>!!t}}function HA(t){const i=t.path||"/qHyperCubeDef",s=i.slice(0,-3);if(!1===/\/(qHyperCube|qListObject|qChildList)$/.test(s)){const l=s.includes("/qHyperCube")?"qHyperCubeDef":"qListObjectDef";throw new Error("Incorrect definition for ".concat(l," at ").concat(i,". Valid paths include /qHyperCubeDef, /qListObjectDef, or /qChildListDef, e.g. data/qHyperCubeDef"))}return{propertyPath:i,layoutPath:s,resolveLayout:l=>((t,i,s)=>{const l=i.split("/");let c=t;if(void 0===c)return s;for(let d=0;d<l.length;++d)if(""!==l[d]){if(void 0===c[l[d]])return s;c=c[l[d]]}return c})(l,s,{}),dimensions:VA(t.dimensions),measures:VA(t.measures)}}function YL(){let t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=i.properties||{};return i.properties&&(i.properties.initial||i.properties.onChange)&&(s=i.properties.initial,t=i.properties.onChange),{properties:{initial:s,onChange:t},data:{targets:((i.data||{}).targets||[]).map(HA)},exportProperties:i.exportProperties,importProperties:i.importProperties}}function $A(t,i){let s;s="function"==typeof t?t(i):t;const l={qae:YL(s.qae),component:s.component||{},create:c=>function KL(t,i,s){"function"==typeof t.component&&(t.component=GL(t.component));const[l,c]=t.component&&t.component.__hooked?function(f,p,m){const y=p.app&&p.app.session?p.app.session.getObjectApi({handle:-1}):void 0;let b=!1;const _={},w=["appLayout","constraints","interactions"],S={},E={};p.model&&p.model.session||(S.select=!0,S.edit=!0,E.select=!1,E.edit=!1);const C={context:{model:p.model,app:p.app,global:y,selections:p.selections,nebbie:p.nebbie,element:void 0,emitter:p.emitter,deviceType:m.deviceType,theme:void 0,translator:m.translator,layout:{},appLayout:{},keyboardNavigation:p.keyboardNavigation,focusHandler:p.focusHandler,constraints:S,interactions:E,options:{},plugins:[]},fn:f.component.fn,created(){},mounted(I){this.context.element=I,f.component.initiate(C,{explicitResize:!!p.explicitResize})},render(I){let D=!b||!1;if(I){if(I.layout&&I.layout!==this.context.layout&&(D=!0,this.context.layout=I.layout),I.context&&I.context.theme&&(this.context.theme=I.context.theme),I.context&&!!I.context.keyboardNavigation!=!!this.context.keyboardNavigation&&(this.context.keyboardNavigation=!!I.context.keyboardNavigation,D=!0),I.context&&I.context.focusHandler&&(this.context.focusHandler=I.context.focusHandler),I.options){const k={};let A=!1;Object.keys(I.options).forEach(M=>{k[M]=I.options[M],this.context.options[M]!==I.options[M]&&(A=!0)}),A&&(this.context.options=k,D=!0)}if(I.plugins){let k=this.context.plugins.length!==I.plugins.length;I.plugins.forEach((A,M)=>{this.context.plugins[M]!==A&&(k=!0)}),k&&(this.context.plugins=[...I.plugins],D=!0)}w.forEach(k=>{const A=I.context;if(A&&Object.prototype.hasOwnProperty.call(A,k)){let M=JSON.stringify(A[k]);"constraints"===k&&(M=JSON.stringify(ee(ee({},A[k]),S))),"interactions"===k&&(M=JSON.stringify(ee(ee({},A[k]),E))),M!==_[k]&&(D=!0,_[k]=M,this.context[k]=JSON.parse(M))}})}else D=!0;return this.context.theme&&this.context.theme.name()!==_.themeName&&(D=!0,_.themeName=this.context.theme.name()),this.context.translator.language()!==_.language&&(D=!0,_.language=C.context.translator.language()),D?(b=!0,this.currentResult=f.component.run(this),this.currentResult):this.currentResult||Promise.resolve()},resize(){return f.component.updateRectOnNextRun(this),this.render()},willUnmount(){f.component.teardown(this)},setSnapshotData(I){return f.component.runSnaps(this,I)},onContextMenu(I,D,k){return f.component.runMenu(this,I,D,k)},focus(){f.component.focus(this)},blur(){f.component.blur(this)},getImperativeHandle(){return f.component.getImperativeHandle(this)},destroy(){},observeActions(I){f.component.observeActions(this,I)},isHooked:!0};return w.forEach(I=>{_[I]=JSON.stringify(C.context[I])}),_.themeName=C.context.theme?C.context.theme.name():void 0,_.language=C.context.translator?C.context.translator.language():void 0,Object.assign(C,{selections:p.selections}),[C,null]}(t,i,s):vF(t,i),d=[];return i.model.__snInterceptor&&i.model.__snInterceptor.teardown(),t.qae.properties.onChange&&(i.model.__snInterceptor={setProperties:i.model.setProperties,applyPatches:i.model.applyPatches,teardown:void 0},i.model.setProperties=function(){for(var f=arguments.length,p=new Array(f),m=0;m<f;m++)p[m]=arguments[m];return t.qae.properties.onChange.call({model:i.model},...p),i.model.__snInterceptor.setProperties.call(this,...p)},i.model.applyPatches=function(f,p){return i.model[p?"getEffectiveProperties":"getProperties"]().then(y=>{const b=Io.clone(y),_=f.map(S=>({op:S.qOp,value:JSON.parse(S.qValue),path:S.qPath}));Io.apply(y,_),t.qae.properties.onChange.call({model:i.model},y);const w=Io.generate(b,y).map(S=>({qOp:S.op,qValue:JSON.stringify(S.value),qPath:S.path}));return i.model.__snInterceptor.applyPatches.call(this,w,p)})},i.model.__snInterceptor.teardown=()=>{i.model.setProperties=i.model.__snInterceptor.setProperties,delete i.model.__snInterceptor},d.push(i.model.__snInterceptor.teardown)),{generator:t,component:l,selectionToolbar:{items:c?c.selectionToolbarItems:[]},destroy(){d.forEach(f=>f())},logicalSize:t.definition.logicalSize||(()=>!1)}}(l,c,i),definition:{}};return Object.keys(s).forEach(c=>{l[c]||(l.definition[c]=s[c])}),l}const Sg=(t,i,s)=>{if(!t)return Promise.resolve();let l=Io.generate(i,s);return ni(!0,i,s),l&&l.length?(l=l.map(c=>({qOp:c.op,qValue:JSON.stringify(c.value),qPath:c.path})),t.__snInterceptor?t.__snInterceptor.applyPatches.call(t,l,!0):t.applyPatches(l,!0)):Promise.resolve()},GA=()=>{};function ZL(){let t,{model:i,halo:s,initialError:l,onDestroy:c=be(function*(){})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},d=GA,f=null,p=null,m=null,y=null;const b=new Promise(D=>{m=D}),_=new Promise(D=>{y=D}),w=D=>()=>{D&&D(),y()};let S={},E=[];const C=new so;return{id:i.id,model:i,destroy:()=>be(function*(){yield c(),d(),d=GA})(),convertTo(D){var k=arguments;return be(function*(){let A=k.length>2&&void 0!==k[2]&&k[2];if(!(k.length>1&&void 0!==k[1])||k[1]){const M=yield i.getLayout();if(NL(M)&&!A){const B=yield yg({halo:s,model:i,cellRef:f,newType:D});return yield mF(i,B.qProperty),B}const T=yield i.getEffectiveProperties(),O=yield yg({halo:s,model:i,cellRef:f,newType:D,properties:T}),N=O.qProperty;return yield Sg(i,T,N),O}return yield yg({halo:s,model:i,cellRef:f,newType:D})})()},toggleDataView:D=>be(function*(){let k;if(t||!1===D)t&&!0!==D&&(k=i,yield s.app.destroySessionObject(t),t=void 0);else{let A=s.config.context.dataViewType;const M=yield i.getEffectiveProperties();if(!s.types.getSupportedVersion(A)){if(!s.types.getSupportedVersion("table"))throw new Error("No data view type registered");A="table"}const T=yield yg({halo:s,model:i,cellRef:f,newType:A,properties:M,viewDataMode:!0});k=yield s.app.createSessionObject(T.qProperty),t=k.id}k&&f.current.setModel(k)})(),addListener(D,k){C.addListener(D,k)},removeListener(D,k){C.removeListener(D,k)},getImperativeHandle:(D=be(function*(){return yield _,f.current.getImperativeHandle()}),function(){return D.apply(this,arguments)}),__DO_NOT_USE__:{mount(D){if(p)throw new Error("Already mounted");if(!(D instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return p=D,[d,f]=function(k){let{halo:A,element:M,model:T,initialSnOptions:O,initialSnPlugins:N,onMount:B,emitter:j,initialError:G}=k;const{root:Q}=A,H=V.createRef(),z=fa(),K=zl.createPortal(V.createElement(Qv,{ref:H,halo:A,model:T,currentId:z,initialSnOptions:O,initialSnPlugins:N,initialError:G,onMount:B,emitter:j}),M,z),Y=()=>{Q.remove(K),T.removeListener("closed",Y)};return T.on("closed",Y),Q.add(K),Q.addCell(z,H),[Y,H]}({halo:s,element:D,model:i,initialSnOptions:S,initialSnPlugins:E,initialError:l,onMount:m,emitter:C}),b},applyProperties:D=>be(function*(){const k=nx("/",D,yield i.getEffectiveProperties());if(k.length)return i.applyPatches(k,!0)})(),options(D){var k;(k=be(function*(A){const M=A.onInitialRender;p?be(function*(){yield b,f.current.setSnOptions(ee(ee(ee({},S),A),{onInitialRender:w(M)}))})():S=ee(ee(ee({},S),A),{onInitialRender:w(M)})}),function(A){return k.apply(this,arguments)})(D)},plugins(D){var k;(k=be(function*(A){OA(A),p?be(function*(){yield b,f.current.setSnPlugins(A)})():E=A}),function(A){return k.apply(this,arguments)})(D)},exportImage:()=>f.current.exportImage(),takeSnapshot:()=>f.current.takeSnapshot(),getModel:()=>i,convert:{toType:D=>be(function*(){const k=yield i.getEffectiveProperties(),A=yield yg({halo:s,model:i,cellRef:f,newType:D,properties:k}),M=A.qProperty;return yield Sg(i,k,M),A})(),revert:()=>be(function*(){yield i.clearSoftPatches()})()}}};var D}function sx(t,i,s,l){return UA.apply(this,arguments)}function UA(){return UA=be(function*(t,i,s,l){const c=ZL({model:t,halo:s,initialError:l,onDestroy:arguments.length>4&&void 0!==arguments[4]?arguments[4]:be(function*(){})});return i.options&&c.__DO_NOT_USE__.options(i.options),i.plugins&&c.__DO_NOT_USE__.plugins(i.plugins),i.element&&(yield c.__DO_NOT_USE__.mount(i.element)),c}),UA.apply(this,arguments)}function Xv(t,i,s){return ax.apply(this,arguments)}function ax(){return ax=be(function*(t,i,s){let{type:l,version:c,fields:d,properties:f,extendProperties:p}=t,m={};const y=[];try{const b=i.types.get({name:l,version:c});m=yield b.initialProperties(f,p);const _=yield b.supernova();d&&(yield gL({sn:_,properties:m,fields:d,children:y},i)),f&&_&&_.qae.properties.onChange&&_.qae.properties.onChange.call({},m)}catch(b){m=s?null:{qInfo:{qType:l},visualization:l}}if(!s){const b=yield i.app.createObject(m);return y.length>0&&(yield b.setFullPropertyTree({qProperty:m,qChildren:y})),Ru.set(b.id,b),b}return m}),ax.apply(this,arguments)}const XL_className="njs-sheet";function WA(t,i,s){return t.bounds?t.bounds:{y:t.row/s*100,x:t.col/i*100,width:t.colspan/i*100,height:t.rowspan/s*100}}function JL(t){let{model:i,halo:s,initialSnOptions:l,initialSnPlugins:c,initialError:d,onMount:f}=t;const{root:p}=s,[m]=ec(i),{theme:y}=P.useContext(ai),[b,_]=P.useState([]),[w,S]=P.useState(void 0),[E,C]=P.useState(void 0),[I,D]=P.useState("");P.useEffect(()=>{if(m){const O=JSON.stringify(m.cells);if(O===I)return;D(O),function(){var B=be(function*(){b.forEach(z=>{p.removeCell(z.currentId)});const j=m.cells,{columns:G,rows:Q}=m,H=yield Promise.all(j.map(function(){var z=be(function*(K){let Y;const X=new Promise($=>{Y=$}),re=b.find($=>$.id===K.name);return re?(re.bounds=WA(K,G,Q),delete re.mountedPromise,re):{model:(yield($=be(function*(W,te){let{id:J,options:ae,plugins:ue,element:_e}=W;const ve="".concat(J);let Ee=Iu.get(ve);Ee||(Ee=te.app.getObject(J),Iu.set(ve,Ee));const fe=yield Ee;return Ru.set(ve,fe),sx(fe,{options:ae,plugins:ue,element:_e},te)}),function(W,te){return $.apply(this,arguments)})({id:K.name},s)).model,id:K.name,bounds:WA(K,G,Q),cellRef:V.createRef(),currentId:fa(),mounted:Y,mountedPromise:X};var $});return function(K){return z.apply(this,arguments)}}()));H.forEach(z=>p.addCell(z.currentId,z.cellRef)),_(H)});return function(){return B.apply(this,arguments)}}()()}},[m]);const k=P.useMemo(()=>b?b.map(O=>function(N,B,j,G,Q,H){const{x:z,y:K,width:Y,height:X}=N.bounds;return V.createElement("div",{style:{left:"".concat(z,"%"),top:"".concat(K,"%"),width:"".concat(Y,"%"),height:"".concat(X,"%"),position:"absolute"}},V.createElement(Qv,{ref:N.cellRef,halo:B,model:N.model,currentId:N.currentId,initialSnOptions:j,initialSnPlugins:G,initialError:Q,onMount:H}))}(O,s,l,c,d,O.mounted)):[],[b]);P.useEffect(()=>{const O=null!=m&&m.components?m.components.find(N=>"general"===N.key):null;S(lA(O,s.public.theme)),C(aA(O,s.app))},[m,s.public.theme,s.app,y]);const A=!m||Number.isNaN(m.height)?"100%":"".concat(Number(m.height),"%"),M=b.map(O=>O.mountedPromise);return M.filter(O=>!!O).length&&Promise.all(M).then(()=>{f()}),V.createElement("div",{className:XL_className,style:{width:"100%",height:A,position:"relative",backgroundColor:w,backgroundImage:E&&E.url?"url(".concat(E.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:E&&E.size,backgroundPosition:E&&E.pos}},k)}const KA=()=>{};function e5(){let{model:t,halo:i,initialError:s,onDestroy:l=be(function*(){})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},c=KA,d=null,f=null,p=null;const m=new Promise(w=>{p=w});let y={},b=[];return{id:t.id,model:t,destroy:()=>be(function*(){yield l(),c(),c=KA})(),__DO_NOT_USE__:{mount(w){if(f)throw new Error("Already mounted");if(!(w instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return f=w,[c,d]=function(S){let{halo:E,element:C,model:I,initialSnOptions:D,initialSnPlugins:k,onMount:A,initialError:M}=S;const{root:T}=E,O=V.createRef(),N=zl.createPortal(V.createElement(JL,{ref:O,halo:E,model:I,initialSnOptions:D,initialSnPlugins:k,initialError:M,onMount:A}),C,I.id),B=()=>{T.remove(N),I.removeListener("closed",B)};return I.on("closed",B),T.add(N),[B,O]}({halo:i,element:w,model:t,initialSnOptions:y,initialSnPlugins:b,initialError:s,onMount:p}),m},applyProperties:w=>be(function*(){const S=nx("/",w,yield t.getEffectiveProperties());if(S.length)return t.applyPatches(S,!0)})(),options(w){var S;(S=be(function*(E){f?be(function*(){yield m,d.current.setSnOptions(ee(ee({},y),E))})():y=ee(ee({},y),E)}),function(E){return S.apply(this,arguments)})(w)},plugins(w){var S;(S=be(function*(E){OA(E),f?be(function*(){yield m,d.current.setSnPlugins(E)})():b=E}),function(E){return S.apply(this,arguments)})(w)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>t}}}function t5(t,i){return lx.apply(this,arguments)}function lx(){return lx=be(function*(t,i){let{id:s,options:l,plugins:c,element:d}=t;const f="".concat(s);let p=Iu.get(f);p||(p=i.app.getObject(s),Iu.set(f,p));const m=yield p;return Ru.set(f,m),"sheet"===m.genericType?(y=be(function*(b,_,w,S){const E=e5({model:b,halo:w,initialError:S,onDestroy:arguments.length>4&&void 0!==arguments[4]?arguments[4]:be(function*(){})});return _.options&&E.__DO_NOT_USE__.options(_.options),_.plugins&&E.__DO_NOT_USE__.plugins(_.plugins),_.element&&(yield E.__DO_NOT_USE__.mount(_.element)),E}),function(b,_,w,S){return y.apply(this,arguments)})(m,{options:l,plugins:c,element:d},i):sx(m,{options:l,plugins:c,element:d},i);var y}),lx.apply(this,arguments)}function n5(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:i=>!0===t[i]}}var QA,YA,bF=Ht;function Ht(t){var i=this;if(i instanceof Ht||(i=new Ht),i.tail=null,i.head=null,i.length=0,t&&"function"==typeof t.forEach)t.forEach(function(c){i.push(c)});else if(arguments.length>0)for(var s=0,l=arguments.length;s<l;s++)i.push(arguments[s]);return i}function r5(t,i,s){var l=i===t.head?new Hf(s,null,i,t):new Hf(s,i,i.next,t);return null===l.next&&(t.tail=l),null===l.prev&&(t.head=l),t.length++,l}function el(t,i){t.tail=new Hf(i,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function _F(t,i){t.head=new Hf(i,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function Hf(t,i,s,l){if(!(this instanceof Hf))return new Hf(t,i,s,l);this.list=l,this.value=t,i?(i.next=this,this.prev=i):this.prev=null,s?(s.prev=this,this.next=s):this.next=null}Ht.Node=Hf,Ht.create=Ht,Ht.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var i=t.next,s=t.prev;return i&&(i.prev=s),s&&(s.next=i),t===this.head&&(this.head=i),t===this.tail&&(this.tail=s),t.list.length--,t.next=null,t.prev=null,t.list=null,i},Ht.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var i=this.head;t.list=this,t.next=i,i&&(i.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}},Ht.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var i=this.tail;t.list=this,t.prev=i,i&&(i.next=t),this.tail=t,this.head||(this.head=t),this.length++}},Ht.prototype.push=function(){for(var t=0,i=arguments.length;t<i;t++)el(this,arguments[t]);return this.length},Ht.prototype.unshift=function(){for(var t=0,i=arguments.length;t<i;t++)_F(this,arguments[t]);return this.length},Ht.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}},Ht.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}},Ht.prototype.forEach=function(t,i){i=i||this;for(var s=this.head,l=0;null!==s;l++)t.call(i,s.value,l,this),s=s.next},Ht.prototype.forEachReverse=function(t,i){i=i||this;for(var s=this.tail,l=this.length-1;null!==s;l--)t.call(i,s.value,l,this),s=s.prev},Ht.prototype.get=function(t){for(var i=0,s=this.head;null!==s&&i<t;i++)s=s.next;if(i===t&&null!==s)return s.value},Ht.prototype.getReverse=function(t){for(var i=0,s=this.tail;null!==s&&i<t;i++)s=s.prev;if(i===t&&null!==s)return s.value},Ht.prototype.map=function(t,i){i=i||this;for(var s=new Ht,l=this.head;null!==l;)s.push(t.call(i,l.value,this)),l=l.next;return s},Ht.prototype.mapReverse=function(t,i){i=i||this;for(var s=new Ht,l=this.tail;null!==l;)s.push(t.call(i,l.value,this)),l=l.prev;return s},Ht.prototype.reduce=function(t,i){var s,l=this.head;if(arguments.length>1)s=i;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");l=this.head.next,s=this.head.value}for(var c=0;null!==l;c++)s=t(s,l.value,c),l=l.next;return s},Ht.prototype.reduceReverse=function(t,i){var s,l=this.tail;if(arguments.length>1)s=i;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");l=this.tail.prev,s=this.tail.value}for(var c=this.length-1;null!==l;c--)s=t(s,l.value,c),l=l.prev;return s},Ht.prototype.toArray=function(){for(var t=new Array(this.length),i=0,s=this.head;null!==s;i++)t[i]=s.value,s=s.next;return t},Ht.prototype.toArrayReverse=function(){for(var t=new Array(this.length),i=0,s=this.tail;null!==s;i++)t[i]=s.value,s=s.prev;return t},Ht.prototype.slice=function(t,i){(i=i||this.length)<0&&(i+=this.length),(t=t||0)<0&&(t+=this.length);var s=new Ht;if(i<t||i<0)return s;t<0&&(t=0),i>this.length&&(i=this.length);for(var l=0,c=this.head;null!==c&&l<t;l++)c=c.next;for(;null!==c&&l<i;l++,c=c.next)s.push(c.value);return s},Ht.prototype.sliceReverse=function(t,i){(i=i||this.length)<0&&(i+=this.length),(t=t||0)<0&&(t+=this.length);var s=new Ht;if(i<t||i<0)return s;t<0&&(t=0),i>this.length&&(i=this.length);for(var l=this.length,c=this.tail;null!==c&&l>i;l--)c=c.prev;for(;null!==c&&l>t;l--,c=c.prev)s.push(c.value);return s},Ht.prototype.splice=function(t,i,...s){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var l=0,c=this.head;null!==c&&l<t;l++)c=c.next;var d=[];for(l=0;c&&l<i;l++)d.push(c.value),c=this.removeNode(c);for(null===c&&(c=this.tail),c!==this.head&&c!==this.tail&&(c=c.prev),l=0;l<s.length;l++)c=r5(this,c,s[l]);return d},Ht.prototype.reverse=function(){for(var t=this.head,i=this.tail,s=t;null!==s;s=s.prev){var l=s.prev;s.prev=s.next,s.next=l}return this.head=i,this.tail=t,this};try{(YA||(YA=1,QA=function(t){t.prototype[Symbol.iterator]=function*(){for(let i=this.head;i;i=i.next)yield i.value}}),QA)(Ht)}catch(t){}const wF=bF,sc=Symbol("max"),ha=Symbol("length"),Eg=Symbol("lengthCalculator"),Jv=Symbol("allowStale"),$f=Symbol("maxAge"),ac=Symbol("dispose"),o5=Symbol("noDisposeOnSet"),li=Symbol("lruList"),pa=Symbol("cache"),s5=Symbol("updateAgeOnGet"),e0=()=>1,Nu=(t,i,s)=>{const l=t[pa].get(i);if(l){const c=l.value;if(Cg(t,c)){if(_t(t,l),!t[Jv])return}else s&&(t[s5]&&(l.value.now=Date.now()),t[li].unshiftNode(l));return c.value}},Cg=(t,i)=>{if(!i||!i.maxAge&&!t[$f])return!1;const s=Date.now()-i.now;return i.maxAge?s>i.maxAge:t[$f]&&s>t[$f]},Fu=t=>{if(t[ha]>t[sc])for(let i=t[li].tail;t[ha]>t[sc]&&null!==i;){const s=i.prev;_t(t,i),i=s}},_t=(t,i)=>{if(i){const s=i.value;t[ac]&&t[ac](s.key,s.value),t[ha]-=s.length,t[pa].delete(s.key),t[li].removeNode(i)}};class t0{constructor(i,s,l,c,d){this.key=i,this.value=s,this.length=l,this.now=c,this.maxAge=d||0}}const cx=(t,i,s,l)=>{let c=s.value;Cg(t,c)&&(_t(t,s),t[Jv]||(c=void 0)),c&&i.call(l,c.value,c.key,t)};const l5=Object.freeze({loose:!0}),c5=Object.freeze({});var ux=t=>t?"object"!=typeof t?l5:t:c5,dx={exports:{}},fx={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},n0="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];return console.error("SEMVER",...i)}:()=>{};!function(t,i){const{MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:l,MAX_LENGTH:c}=fx,d=n0,f=(i=t.exports={}).re=[],p=i.safeRe=[],m=i.src=[],y=i.t={};let b=0;const _="[a-zA-Z0-9-]",w=[["\\s",1],["\\d",c],[_,l]],S=(E,C,I)=>{const D=(A=>{for(const[M,T]of w)A=A.split("".concat(M,"*")).join("".concat(M,"{0,").concat(T,"}")).split("".concat(M,"+")).join("".concat(M,"{1,").concat(T,"}"));return A})(C),k=b++;d(E,k,C),y[E]=k,m[k]=C,f[k]=new RegExp(C,I?"g":void 0),p[k]=new RegExp(D,I?"g":void 0)};S("NUMERICIDENTIFIER","0|[1-9]\\d*"),S("NUMERICIDENTIFIERLOOSE","\\d+"),S("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-]".concat(_,"*")),S("MAINVERSION","(".concat(m[y.NUMERICIDENTIFIER],")\\.")+"(".concat(m[y.NUMERICIDENTIFIER],")\\.")+"(".concat(m[y.NUMERICIDENTIFIER],")")),S("MAINVERSIONLOOSE","(".concat(m[y.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(m[y.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(m[y.NUMERICIDENTIFIERLOOSE],")")),S("PRERELEASEIDENTIFIER","(?:".concat(m[y.NUMERICIDENTIFIER],"|").concat(m[y.NONNUMERICIDENTIFIER],")")),S("PRERELEASEIDENTIFIERLOOSE","(?:".concat(m[y.NUMERICIDENTIFIERLOOSE],"|").concat(m[y.NONNUMERICIDENTIFIER],")")),S("PRERELEASE","(?:-(".concat(m[y.PRERELEASEIDENTIFIER],"(?:\\.").concat(m[y.PRERELEASEIDENTIFIER],")*))")),S("PRERELEASELOOSE","(?:-?(".concat(m[y.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(m[y.PRERELEASEIDENTIFIERLOOSE],")*))")),S("BUILDIDENTIFIER","".concat(_,"+")),S("BUILD","(?:\\+(".concat(m[y.BUILDIDENTIFIER],"(?:\\.").concat(m[y.BUILDIDENTIFIER],")*))")),S("FULLPLAIN","v?".concat(m[y.MAINVERSION]).concat(m[y.PRERELEASE],"?").concat(m[y.BUILD],"?")),S("FULL","^".concat(m[y.FULLPLAIN],"$")),S("LOOSEPLAIN","[v=\\s]*".concat(m[y.MAINVERSIONLOOSE]).concat(m[y.PRERELEASELOOSE],"?").concat(m[y.BUILD],"?")),S("LOOSE","^".concat(m[y.LOOSEPLAIN],"$")),S("GTLT","((?:<|>)?=?)"),S("XRANGEIDENTIFIERLOOSE","".concat(m[y.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),S("XRANGEIDENTIFIER","".concat(m[y.NUMERICIDENTIFIER],"|x|X|\\*")),S("XRANGEPLAIN","[v=\\s]*(".concat(m[y.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(m[y.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(m[y.XRANGEIDENTIFIER],")")+"(?:".concat(m[y.PRERELEASE],")?").concat(m[y.BUILD],"?")+")?)?"),S("XRANGEPLAINLOOSE","[v=\\s]*(".concat(m[y.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(m[y.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(m[y.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(m[y.PRERELEASELOOSE],")?").concat(m[y.BUILD],"?")+")?)?"),S("XRANGE","^".concat(m[y.GTLT],"\\s*").concat(m[y.XRANGEPLAIN],"$")),S("XRANGELOOSE","^".concat(m[y.GTLT],"\\s*").concat(m[y.XRANGEPLAINLOOSE],"$")),S("COERCEPLAIN","".concat("(^|[^\\d])(\\d{1,").concat(s,"})")+"(?:\\.(\\d{1,".concat(s,"}))?")+"(?:\\.(\\d{1,".concat(s,"}))?")),S("COERCE","".concat(m[y.COERCEPLAIN],"(?:$|[^\\d])")),S("COERCEFULL",m[y.COERCEPLAIN]+"(?:".concat(m[y.PRERELEASE],")?")+"(?:".concat(m[y.BUILD],")?")+"(?:$|[^\\d])"),S("COERCERTL",m[y.COERCE],!0),S("COERCERTLFULL",m[y.COERCEFULL],!0),S("LONETILDE","(?:~>?)"),S("TILDETRIM","(\\s*)".concat(m[y.LONETILDE],"\\s+"),!0),i.tildeTrimReplace="$1~",S("TILDE","^".concat(m[y.LONETILDE]).concat(m[y.XRANGEPLAIN],"$")),S("TILDELOOSE","^".concat(m[y.LONETILDE]).concat(m[y.XRANGEPLAINLOOSE],"$")),S("LONECARET","(?:\\^)"),S("CARETTRIM","(\\s*)".concat(m[y.LONECARET],"\\s+"),!0),i.caretTrimReplace="$1^",S("CARET","^".concat(m[y.LONECARET]).concat(m[y.XRANGEPLAIN],"$")),S("CARETLOOSE","^".concat(m[y.LONECARET]).concat(m[y.XRANGEPLAINLOOSE],"$")),S("COMPARATORLOOSE","^".concat(m[y.GTLT],"\\s*(").concat(m[y.LOOSEPLAIN],")$|^$")),S("COMPARATOR","^".concat(m[y.GTLT],"\\s*(").concat(m[y.FULLPLAIN],")$|^$")),S("COMPARATORTRIM","(\\s*)".concat(m[y.GTLT],"\\s*(").concat(m[y.LOOSEPLAIN],"|").concat(m[y.XRANGEPLAIN],")"),!0),i.comparatorTrimReplace="$1$2$3",S("HYPHENRANGE","^\\s*(".concat(m[y.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(m[y.XRANGEPLAIN],")")+"\\s*$"),S("HYPHENRANGELOOSE","^\\s*(".concat(m[y.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(m[y.XRANGEPLAINLOOSE],")")+"\\s*$"),S("STAR","(<|>)?=?\\s*\\*"),S("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),S("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(dx,dx.exports);var hx=dx.exports;const ZA=/^[0-9]+$/,u5=(t,i)=>{const s=ZA.test(t),l=ZA.test(i);return s&&l&&(t=+t,i=+i),t===i?0:s&&!l?-1:l&&!s?1:t<i?-1:1};var d5={compareIdentifiers:u5,rcompareIdentifiers:(t,i)=>u5(i,t)};const r0=n0,{MAX_LENGTH:XA,MAX_SAFE_INTEGER:o0}=fx,{safeRe:JA,t:eI}=hx,f5=ux,{compareIdentifiers:Gf}=d5;var px=class pc{constructor(i,s){if(s=f5(s),i instanceof pc){if(i.loose===!!s.loose&&i.includePrerelease===!!s.includePrerelease)return i;i=i.version}else if("string"!=typeof i)throw new TypeError('Invalid version. Must be a string. Got type "'.concat(typeof i,'".'));if(i.length>XA)throw new TypeError("version is longer than ".concat(XA," characters"));r0("SemVer",i,s),this.options=s,this.loose=!!s.loose,this.includePrerelease=!!s.includePrerelease;const l=i.trim().match(s.loose?JA[eI.LOOSE]:JA[eI.FULL]);if(!l)throw new TypeError("Invalid Version: ".concat(i));if(this.raw=i,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>o0||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o0||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o0||this.patch<0)throw new TypeError("Invalid patch version");this.prerelease=l[4]?l[4].split(".").map(c=>{if(/^[0-9]+$/.test(c)){const d=+c;if(d>=0&&d<o0)return d}return c}):[],this.build=l[5]?l[5].split("."):[],this.format()}format(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}toString(){return this.version}compare(i){if(r0("SemVer.compare",this.version,this.options,i),!(i instanceof pc)){if("string"==typeof i&&i===this.version)return 0;i=new pc(i,this.options)}return i.version===this.version?0:this.compareMain(i)||this.comparePre(i)}compareMain(i){return i instanceof pc||(i=new pc(i,this.options)),Gf(this.major,i.major)||Gf(this.minor,i.minor)||Gf(this.patch,i.patch)}comparePre(i){if(i instanceof pc||(i=new pc(i,this.options)),this.prerelease.length&&!i.prerelease.length)return-1;if(!this.prerelease.length&&i.prerelease.length)return 1;if(!this.prerelease.length&&!i.prerelease.length)return 0;let s=0;do{const l=this.prerelease[s],c=i.prerelease[s];if(r0("prerelease compare",s,l,c),void 0===l&&void 0===c)return 0;if(void 0===c)return 1;if(void 0===l)return-1;if(l!==c)return Gf(l,c)}while(++s)}compareBuild(i){i instanceof pc||(i=new pc(i,this.options));let s=0;do{const l=this.build[s],c=i.build[s];if(r0("prerelease compare",s,l,c),void 0===l&&void 0===c)return 0;if(void 0===c)return 1;if(void 0===l)return-1;if(l!==c)return Gf(l,c)}while(++s)}inc(i,s,l){switch(i){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",s,l);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",s,l);break;case"prepatch":this.prerelease.length=0,this.inc("patch",s,l),this.inc("pre",s,l);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",s,l),this.inc("pre",s,l);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const c=Number(l)?1:0;if(!s&&!1===l)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[c];else{let d=this.prerelease.length;for(;--d>=0;)"number"==typeof this.prerelease[d]&&(this.prerelease[d]++,d=-2);if(-1===d){if(s===this.prerelease.join(".")&&!1===l)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(c)}}if(s){let d=[s,c];!1===l&&(d=[s]),0===Gf(this.prerelease[0],s)?isNaN(this.prerelease[1])&&(this.prerelease=d):this.prerelease=d}break}default:throw new Error("invalid increment argument: ".concat(i))}return this.raw=this.format(),this.build.length&&(this.raw+="+".concat(this.build.join("."))),this}};const tI=px;var Uf=(t,i,s)=>new tI(t,s).compare(new tI(i,s));const h5=Uf,g5=Uf,y5=Uf,b5=Uf,w5=Uf,S5=Uf;var Dg,s0,ji,yx,vx=(t,i,s,l)=>{switch(i){case"===":return"object"==typeof t&&(t=t.version),"object"==typeof s&&(s=s.version),t===s;case"!==":return"object"==typeof t&&(t=t.version),"object"==typeof s&&(s=s.version),t!==s;case"":case"=":case"==":return((t,i,s)=>0===h5(t,i,s))(t,s,l);case"!=":return((t,i,s)=>0!==g5(t,i,s))(t,s,l);case">":return((t,i,s)=>y5(t,i,s)>0)(t,s,l);case">=":return((t,i,s)=>b5(t,i,s)>=0)(t,s,l);case"<":return((t,i,s)=>w5(t,i,s)<0)(t,s,l);case"<=":return((t,i,s)=>S5(t,i,s)<=0)(t,s,l);default:throw new TypeError("Invalid operator: ".concat(i))}};const rI=function bx(){if(yx)return ji;yx=1;class t{constructor(z,K){if(K=s(K),z instanceof t)return z.loose===!!K.loose&&z.includePrerelease===!!K.includePrerelease?z:new t(z.raw,K);if(z instanceof l)return this.raw=z.value,this.set=[[z]],this.format(),this;if(this.options=K,this.loose=!!K.loose,this.includePrerelease=!!K.includePrerelease,this.raw=z.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(Y=>this.parseRange(Y.trim())).filter(Y=>Y.length),!this.set.length)throw new TypeError("Invalid SemVer Range: ".concat(this.raw));if(this.set.length>1){const Y=this.set[0];if(this.set=this.set.filter(X=>!S(X[0])),0===this.set.length)this.set=[Y];else if(this.set.length>1)for(const X of this.set)if(1===X.length&&E(X[0])){this.set=[X];break}}this.format()}format(){return this.range=this.set.map(z=>z.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(z){const K=((this.options.includePrerelease&&_)|(this.options.loose&&w))+":"+z,Y=i.get(K);if(Y)return Y;const X=this.options.loose;z=z.replace(X?f[p.HYPHENRANGELOOSE]:f[p.HYPHENRANGE],G(this.options.includePrerelease)),c("hyphen replace",z),z=z.replace(f[p.COMPARATORTRIM],m),c("comparator trim",z),z=z.replace(f[p.TILDETRIM],y),c("tilde trim",z),z=z.replace(f[p.CARETTRIM],b),c("caret trim",z);let q=z.split(" ").map(J=>I(J,this.options)).join(" ").split(/\s+/).map(J=>j(J,this.options));X&&(q=q.filter(J=>(c("loose invalid filter",J,this.options),!!J.match(f[p.COMPARATORLOOSE])))),c("range list",q);const $=new Map,W=q.map(J=>new l(J,this.options));for(const J of W){if(S(J))return[J];$.set(J.value,J)}$.size>1&&$.has("")&&$.delete("");const te=[...$.values()];return i.set(K,te),te}intersects(z,K){if(!(z instanceof t))throw new TypeError("a Range is required");return this.set.some(Y=>C(Y,K)&&z.set.some(X=>C(X,K)&&Y.every(re=>X.every(q=>re.intersects(q,K)))))}test(z){if(!z)return!1;if("string"==typeof z)try{z=new d(z,this.options)}catch(K){return!1}for(let K=0;K<this.set.length;K++)if(Q(this.set[K],z,this.options))return!0;return!1}}ji=t;const i=new class{constructor(t){if("number"==typeof t&&(t={max:t}),t||(t={}),t.max&&("number"!=typeof t.max||t.max<0))throw new TypeError("max must be a non-negative number");this[sc]=t.max||1/0;const i=t.length||e0;if(this[Eg]="function"!=typeof i?e0:i,this[Jv]=t.stale||!1,t.maxAge&&"number"!=typeof t.maxAge)throw new TypeError("maxAge must be a number");this[$f]=t.maxAge||0,this[ac]=t.dispose,this[o5]=t.noDisposeOnSet||!1,this[s5]=t.updateAgeOnGet||!1,this.reset()}set max(t){if("number"!=typeof t||t<0)throw new TypeError("max must be a non-negative number");this[sc]=t||1/0,Fu(this)}get max(){return this[sc]}set allowStale(t){this[Jv]=!!t}get allowStale(){return this[Jv]}set maxAge(t){if("number"!=typeof t)throw new TypeError("maxAge must be a non-negative number");this[$f]=t,Fu(this)}get maxAge(){return this[$f]}set lengthCalculator(t){"function"!=typeof t&&(t=e0),t!==this[Eg]&&(this[Eg]=t,this[ha]=0,this[li].forEach(i=>{i.length=this[Eg](i.value,i.key),this[ha]+=i.length})),Fu(this)}get lengthCalculator(){return this[Eg]}get length(){return this[ha]}get itemCount(){return this[li].length}rforEach(t,i){i=i||this;for(let s=this[li].tail;null!==s;){const l=s.prev;cx(this,t,s,i),s=l}}forEach(t,i){i=i||this;for(let s=this[li].head;null!==s;){const l=s.next;cx(this,t,s,i),s=l}}keys(){return this[li].toArray().map(t=>t.key)}values(){return this[li].toArray().map(t=>t.value)}reset(){this[ac]&&this[li]&&this[li].length&&this[li].forEach(t=>this[ac](t.key,t.value)),this[pa]=new Map,this[li]=new wF,this[ha]=0}dump(){return this[li].map(t=>!Cg(this,t)&&{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[li]}set(t,i,s){if((s=s||this[$f])&&"number"!=typeof s)throw new TypeError("maxAge must be a number");const l=s?Date.now():0,c=this[Eg](i,t);if(this[pa].has(t)){if(c>this[sc])return _t(this,this[pa].get(t)),!1;const f=this[pa].get(t).value;return this[ac]&&(this[o5]||this[ac](t,f.value)),f.now=l,f.maxAge=s,f.value=i,this[ha]+=c-f.length,f.length=c,this.get(t),Fu(this),!0}const d=new t0(t,i,c,l,s);return d.length>this[sc]?(this[ac]&&this[ac](t,i),!1):(this[ha]+=d.length,this[li].unshift(d),this[pa].set(t,this[li].head),Fu(this),!0)}has(t){if(!this[pa].has(t))return!1;const i=this[pa].get(t).value;return!Cg(this,i)}get(t){return Nu(this,t,!0)}peek(t){return Nu(this,t,!1)}pop(){const t=this[li].tail;return t?(_t(this,t),t.value):null}del(t){_t(this,this[pa].get(t))}load(t){this.reset();const i=Date.now();for(let s=t.length-1;s>=0;s--){const l=t[s],c=l.e||0;if(0===c)this.set(l.k,l.v);else{const d=c-i;d>0&&this.set(l.k,l.v,d)}}}prune(){this[pa].forEach((t,i)=>Nu(this,i,!1))}}({max:1e3}),s=ux,l=function(){if(s0)return Dg;s0=1;const H=Symbol("SemVer ANY");class z{static get ANY(){return H}constructor(J,ae){if(ae=K(ae),J instanceof z){if(J.loose===!!ae.loose)return J;J=J.value}J=J.trim().split(/\s+/).join(" "),q("comparator",J,ae),this.options=ae,this.loose=!!ae.loose,this.parse(J),this.value=this.semver===H?"":this.operator+this.semver.version,q("comp",this)}parse(J){const ue=J.match(this.options.loose?Y[X.COMPARATORLOOSE]:Y[X.COMPARATOR]);if(!ue)throw new TypeError("Invalid comparator: ".concat(J));this.operator=void 0!==ue[1]?ue[1]:"","="===this.operator&&(this.operator=""),this.semver=ue[2]?new $(ue[2],this.options.loose):H}toString(){return this.value}test(J){if(q("Comparator.test",J,this.options.loose),this.semver===H||J===H)return!0;if("string"==typeof J)try{J=new $(J,this.options)}catch(ae){return!1}return re(J,this.operator,this.semver,this.options)}intersects(J,ae){if(!(J instanceof z))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new W(J.value,ae).test(this.value):""===J.operator?""===J.value||new W(this.value,ae).test(J.semver):!((ae=K(ae)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===J.value)||!ae.includePrerelease&&(this.value.startsWith("<0.0.0")||J.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!J.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!J.operator.startsWith("<"))&&(this.semver.version!==J.semver.version||!this.operator.includes("=")||!J.operator.includes("="))&&!(re(this.semver,"<",J.semver,ae)&&this.operator.startsWith(">")&&J.operator.startsWith("<"))&&!(re(this.semver,">",J.semver,ae)&&this.operator.startsWith("<")&&J.operator.startsWith(">")))}}Dg=z;const K=ux,{safeRe:Y,t:X}=hx,re=vx,q=n0,$=px,W=bx();return Dg}(),c=n0,d=px,{safeRe:f,t:p,comparatorTrimReplace:m,tildeTrimReplace:y,caretTrimReplace:b}=hx,{FLAG_INCLUDE_PRERELEASE:_,FLAG_LOOSE:w}=fx,S=H=>"<0.0.0-0"===H.value,E=H=>""===H.value,C=(H,z)=>{let K=!0;const Y=H.slice();let X=Y.pop();for(;K&&Y.length;)K=Y.every(re=>X.intersects(re,z)),X=Y.pop();return K},I=(H,z)=>(c("comp",H,z),H=M(H,z),c("caret",H),H=k(H,z),c("tildes",H),H=O(H,z),c("xrange",H),H=B(H,z),c("stars",H),H),D=H=>!H||"x"===H.toLowerCase()||"*"===H,k=(H,z)=>H.trim().split(/\s+/).map(K=>A(K,z)).join(" "),A=(H,z)=>H.replace(z.loose?f[p.TILDELOOSE]:f[p.TILDE],(Y,X,re,q,$)=>{let W;return c("tilde",H,Y,X,re,q,$),D(X)?W="":D(re)?W=">=".concat(X,".0.0 <").concat(+X+1,".0.0-0"):D(q)?W=">=".concat(X,".").concat(re,".0 <").concat(X,".").concat(+re+1,".0-0"):$?(c("replaceTilde pr",$),W=">=".concat(X,".").concat(re,".").concat(q,"-").concat($," <").concat(X,".").concat(+re+1,".0-0")):W=">=".concat(X,".").concat(re,".").concat(q," <").concat(X,".").concat(+re+1,".0-0"),c("tilde return",W),W}),M=(H,z)=>H.trim().split(/\s+/).map(K=>T(K,z)).join(" "),T=(H,z)=>{c("caret",H,z);const Y=z.includePrerelease?"-0":"";return H.replace(z.loose?f[p.CARETLOOSE]:f[p.CARET],(X,re,q,$,W)=>{let te;return c("caret",H,X,re,q,$,W),D(re)?te="":D(q)?te=">=".concat(re,".0.0").concat(Y," <").concat(+re+1,".0.0-0"):D($)?te="0"===re?">=".concat(re,".").concat(q,".0").concat(Y," <").concat(re,".").concat(+q+1,".0-0"):">=".concat(re,".").concat(q,".0").concat(Y," <").concat(+re+1,".0.0-0"):W?(c("replaceCaret pr",W),te="0"===re?"0"===q?">=".concat(re,".").concat(q,".").concat($,"-").concat(W," <").concat(re,".").concat(q,".").concat(+$+1,"-0"):">=".concat(re,".").concat(q,".").concat($,"-").concat(W," <").concat(re,".").concat(+q+1,".0-0"):">=".concat(re,".").concat(q,".").concat($,"-").concat(W," <").concat(+re+1,".0.0-0")):(c("no pr"),te="0"===re?"0"===q?">=".concat(re,".").concat(q,".").concat($).concat(Y," <").concat(re,".").concat(q,".").concat(+$+1,"-0"):">=".concat(re,".").concat(q,".").concat($).concat(Y," <").concat(re,".").concat(+q+1,".0-0"):">=".concat(re,".").concat(q,".").concat($," <").concat(+re+1,".0.0-0")),c("caret return",te),te})},O=(H,z)=>(c("replaceXRanges",H,z),H.split(/\s+/).map(K=>N(K,z)).join(" ")),N=(H,z)=>(H=H.trim()).replace(z.loose?f[p.XRANGELOOSE]:f[p.XRANGE],(Y,X,re,q,$,W)=>{c("xRange",H,Y,X,re,q,$,W);const te=D(re),J=te||D(q),ae=J||D($);return"="===X&&ae&&(X=""),W=z.includePrerelease?"-0":"",te?Y=">"===X||"<"===X?"<0.0.0-0":"*":X&&ae?(J&&(q=0),$=0,">"===X?(X=">=",J?(re=+re+1,q=0,$=0):(q=+q+1,$=0)):"<="===X&&(X="<",J?re=+re+1:q=+q+1),"<"===X&&(W="-0"),Y="".concat(X+re,".").concat(q,".").concat($).concat(W)):J?Y=">=".concat(re,".0.0").concat(W," <").concat(+re+1,".0.0-0"):ae&&(Y=">=".concat(re,".").concat(q,".0").concat(W," <").concat(re,".").concat(+q+1,".0-0")),c("xRange return",Y),Y}),B=(H,z)=>(c("replaceStars",H,z),H.trim().replace(f[p.STAR],"")),j=(H,z)=>(c("replaceGTE0",H,z),H.trim().replace(f[z.includePrerelease?p.GTE0PRE:p.GTE0],"")),G=H=>(z,K,Y,X,re,q,$,W,te,J,ae,ue,_e)=>(K=D(Y)?"":D(X)?">=".concat(Y,".0.0").concat(H?"-0":""):D(re)?">=".concat(Y,".").concat(X,".0").concat(H?"-0":""):q?">=".concat(K):">=".concat(K).concat(H?"-0":""),W=D(te)?"":D(J)?"<".concat(+te+1,".0.0-0"):D(ae)?"<".concat(te,".").concat(+J+1,".0-0"):ue?"<=".concat(te,".").concat(J,".").concat(ae,"-").concat(ue):H?"<".concat(te,".").concat(J,".").concat(+ae+1,"-0"):"<=".concat(W),"".concat(K," ").concat(W).trim()),Q=(H,z,K)=>{for(let Y=0;Y<H.length;Y++)if(!H[Y].test(z))return!1;if(z.prerelease.length&&!K.includePrerelease){for(let Y=0;Y<H.length;Y++)if(c(H[Y].semver),H[Y].semver!==l.ANY&&H[Y].semver.prerelease.length>0){const X=H[Y].semver;if(X.major===z.major&&X.minor===z.minor&&X.patch===z.patch)return!0}return!1}return!0};return ji}();var EF=ci((t,i,s)=>{try{i=new rI(i,s)}catch(l){return!1}return i.test(t)});const kg={};function iI(t,i){const s={};let l=null;return{get:c=>s[c],register:(c,d)=>{if(s[c])throw new Error("Supernova '".concat(t,"@").concat(c,"' already registered."));s[c]=function ju(t,i){let s,l,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{meta:d}=c,f={name:t.name,version:t.version,supportsPropertiesVersion:p=>!(p&&d&&d.deps&&d.deps.properties)||EF(p,d.deps.properties),supernova:()=>{return(p=be(function*(m,y,b,_){let{config:w}=b;const S="".concat(m,"__").concat(y);if(!kg[S]){const E="".concat(m).concat(y&&" v".concat(y)||"");if(_&&"function"!=typeof _)throw new Error("load of visualization '".concat(E,"' is not a fuction, wrap load promise in function"));const C=(_||w.load)({name:m,version:y}),I=Promise.resolve(C);kg[S]=I.then(D=>{if(!D)throw new Error("load() of visualization '".concat(E,"' resolved to an invalid object"));return D}).catch(D=>{throw new Error("Failed to load visualization: '".concat(E,"'"))})}return kg[S]}),function(m,y,b,_){return p.apply(this,arguments)})(f.name,f.version,i,c.load).then(p=>(s=s||$A(p,i.public.galaxy),l=JSON.stringify(s.qae.properties.initial),s));var p},initialProperties(p){let m=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.supernova().then(()=>{const y=ee({qInfo:{qType:f.name},visualization:f.name,version:f.version,showTitles:!0},JSON.parse(l));return m?(ni(!0,y,p),y):ee(ee({},y),p)})}};return f}({name:t,version:c},i,d),l=null},getMatchingVersionFromProperties:c=>{var d;l||(d=Object.keys(s),l=[...d.filter(p=>"undefined"===p),...d.filter(p=>"undefined"!==p).map(p=>p.split(".").map(m=>parseInt(m,10))).sort((p,m)=>p[0]-m[0]||p[1]-m[1]||p[2]-m[2]).map(p=>p.join("."))]);for(let d=l.length-1;d>=0;d--)if(s[l[d]].supportsPropertiesVersion(c))return l[d];return null},versions:s}}function oI(t){let{halo:i,parent:s}=t;const l={},c=s||{get:()=>{}};return{register:(d,f)=>{l[d.name]||(l[d.name]=iI(d.name,i)),l[d.name].register(d.version,f)},getSupportedVersion:(d,f)=>{if(l[d])return l[d].getMatchingVersionFromProperties(f)},get(d){const{name:f}=d;let{version:p}=d;return l[f]?l[f].versions[p]||(p=Object.keys(l[f].versions)[0]):this.register({name:f,version:p}),l[f].get(p)||c.get(d)},getList:()=>Object.keys(l).map(d=>({name:d,versions:Object.keys(l[d].versions).map(f=>"undefined"===f?void 0:f)})),clearFromCache:d=>{var f;l[d]&&(l[d]=void 0),f=d,Object.keys(kg).forEach(p=>{p.split("__")[0]===f&&(kg[p]=void 0)})}}}const D5={get:function(){var t=be(function*(i){const s=yield fetch("/njs/snapshot/".concat(i));if(!s.ok)throw new Error(s.statusText);return s.json()});return function(s){return t.apply(this,arguments)}}(),capture:t=>fetch("/njs/capture",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then(i=>i.json())},a0=function(){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return ee(ee({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),t)},k5=function(){return[...arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],...arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]].filter((t,i,s)=>s.indexOf(t)===i)};var sI=function t(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const s=Y5(i.context.language);function l(c,d){if(d)return l.createConfiguration(d)(c);let f=ee(ee({},i.context),{},{translator:s.translator});const[p]=function(I){let D,{app:k,context:A}=I;const M=new Promise(j=>{D=j}),T=V.createRef(),O=document.createElement("div");O.style.display="none",O.setAttribute("data-nebulajs-version","4.13.0"),O.setAttribute("data-app-id",k.id),document.body.appendChild(O),A&&XC(A),L0.createRoot(O).render(V.createElement(EP,{ref:T,app:k,initialContext:A,renderCallback:D}));const N={},B=[];return[{toggleFocusOfCells(j){Object.keys(N).forEach(G=>{N[G].current.toggleFocus(G===j)})},cells:N,addCell(j,G){N[j]=G},removeCell(j){delete N[j]},add(j){be(function*(){yield M,B.push(j),T.current.setComps(B)})()},remove(j){be(function*(){yield M;const G=B.indexOf(j);-1!==G&&B.splice(G,1),T.current.setComps(B)})()},setMuiThemeName(j){be(function*(){yield M,T.current.setMuiThemeName(j)})()},context(j){be(function*(){yield M,j&&XC(j),T.current.setContext(j)})()},getAppSelections:(j=be(function*(){return yield M,T.current.getAppSelections()}),function(){return j.apply(this,arguments)})},T,M];var j}({app:c,context:f}),m=function(){let{themes:I=[],loadTheme:D,root:k}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const A=T0();return{setTheme:(M=be(function*(T){let O=I.filter(B=>B.id===T)[0],N="dark"===T?"dark":"light";if(!O&&D&&(O={load:D}),O&&O.load)try{const B=yield Promise.race([O.load(T),BI(5e3,{__timedOut:!0})]);B.__timedOut||(N="dark"===B.type?"dark":"light",A.internalAPI.setTheme(B,T),k.setMuiThemeName(N))}catch(B){}else A.internalAPI.setTheme({type:N},T),k.setMuiThemeName(N)}),function(O){return M.apply(this,arguments)}),externalAPI:A.externalAPI};var M}({themes:i.themes,loadTheme:i.loadTheme,root:p});f.themeApi=m.externalAPI;const y={galaxy:{translator:s.translator,flags:n5(i.flags),deviceType:O0(i.context.deviceType),anything:i.anything},theme:m.externalAPI,translator:s.translator,nebbie:null},b={app:c,root:p,config:i,public:y,context:f,types:null},_=oI({halo:b});i.types.forEach(I=>_.register({name:I.name,version:I.version},{meta:I.meta,load:I.load}));let w=m.setTheme(i.context.theme),S=null,E=null;const C={render:(I=be(function*(D){return yield w,D.id?t5(D,b):(k=be(function*(A,M){let{type:T,version:O,fields:N,properties:B,options:j,plugins:G,element:Q,extendProperties:H}=A,z={};const K=[];let Y;try{const q=M.types.get({name:T,version:O});z=yield q.initialProperties(B,H);const $=yield q.supernova();N&&(yield gL({sn:$,properties:z,fields:N,children:K},M)),B&&$&&$.qae.properties.onChange&&$.qae.properties.onChange.call({},z)}catch(q){Y=q,z={qInfo:{qType:T},visualization:T}}const X=yield M.app.createSessionObject(z);K.length>0&&(yield X.setFullPropertyTree({qProperty:z,qChildren:K})),Ru.set(X.id,X);const re=zT(X);return sx(X,{options:j,plugins:G,element:Q},M,Y,be(function*(){yield M.app.destroySessionObject(X.id),re()}))}),function(A,M){return k.apply(this,arguments)})(D,b);var k}),function(k){return I.apply(this,arguments)}),create:function(){var I=be(function*(D){return Xv(D,b,!1)});return function(k){return I.apply(this,arguments)}}(),generateProperties:function(){var I=be(function*(D){return Xv(D,b,!0)});return function(k){return I.apply(this,arguments)}}(),context:function(){var I=be(function*(D){let k;["theme","language","constraints","interactions","keyboardNavigation"].forEach(A=>{Object.prototype.hasOwnProperty.call(D,A)&&D[A]!==f[A]&&(k||(k={}),k[A]=D[A])}),k&&(f=ee(ee(ee({},f),k),{},{translator:s.translator}),k.theme&&(w=m.setTheme(k.theme),yield w),k.language&&b.public.translator.language(k.language),p.context(f))});return function(k){return I.apply(this,arguments)}}(),selections:function(){var I=be(function*(){return S||(S={mount(D){E||(E=function(k){let{element:A,app:M}=k;return zl.createPortal(V.createElement(rL,{app:M}),A,fa())}({element:D,app:c}),p.add(E))},unmount(){E&&(p.remove(E),E=null)}}),S});return function(){return I.apply(this,arguments)}}(),field:function(){var I=be(function*(D){let k;const A="string"==typeof D?D:D.qLibraryId;if(D.qId)k=D.qId;else if(!A)throw new Error("Field identifier or object id must be provided");const M={fieldName:A,mount(T){var O=arguments,N=this;return be(function*(){let B=O.length>1&&void 0!==O[1]?O[1]:{};if(!T)throw new Error("Element for ".concat(A||k," not provided"));if(N._instance)throw new Error("Field or object ".concat(A||k," already mounted"));const j=()=>M.emit("selectionActivated"),G=()=>M.emit("selectionDeactivated");return new Promise(Q=>{N._instance=function(H){let{element:z,app:K,fieldIdentifier:Y,qId:X,stateName:re="$",options:q={},renderedCallback:$}=H;return zl.createPortal(V.createElement(Lu,{app:K,element:z,fieldIdentifier:Y,qId:X,stateName:re,options:q,renderedCallback:$}),z,fa())}({element:T,app:c,fieldIdentifier:D,qId:k,options:Gv(ee({onSelectionActivated:j,onSelectionDeactivated:G},B)),stateName:B.stateName||"$",renderedCallback:Q}),p.add(N._instance)})})()},unmount(){this._instance&&(p.remove(this._instance),this._instance=null)}};return Bv(M),M});return function(k){return I.apply(this,arguments)}}(),getRegisteredTypes:_.getList,__DO_NOT_USE__:{types:_,popover(I,D,k){C._popoverInstance&&(p.remove(C._popoverInstance),C._popoverInstance=null);const A=function(){let M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const T=ee({},pL);return ni(!0,T,M),T}(ee({onPopoverClose:()=>C.emit("fieldPopoverClose")},k));C._popoverInstance=V.createElement(ZN,{element:I,key:fa(),app:c,fieldIdentifier:D,options:A,stateName:k.stateName||"$"}),p.add(C._popoverInstance)}}};var I;return b.public.nebbie=C,b.types=_,Bv(C),C}return l.createConfiguration=c=>{return t({context:a0((d=i).context,(f=c).context),load:f.load||d.load,loadTheme:f.loadTheme||d.loadTheme,snapshot:ee({},f.snapshot||d.snapshot),types:k5(d.types,f.types),themes:k5(d.themes,f.themes),flags:a0(d.flags,f.flags),anything:a0(d.anything,f.anything)});var d,f},l.config=i,l}({context:{theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1,dataViewType:"sn-table"},load:()=>{},types:[],themes:[],anything:{},flags:{KPI_REACTCOLORPICKER:!0},snapshot:D5});function xx(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}const A5=globalThis.crypto||{getRandomValues:()=>123456};function aI(t){return i=>{const s=ni({},i);s.qInfo=s.qInfo||{},s.qInfo.qId=s.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,d=>(d^A5.getRandomValues(new Uint8Array(1))[0]&15>>d/4).toString(16)));const l=s._mock;let c=s;return l&&(delete s._mock,c=ni({},s,l)),Promise.resolve({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(c),getProperties:()=>Promise.resolve(s),getEffectiveProperties:()=>Promise.resolve(s),removeListener:()=>{},id:s.qInfo.qId,properties:s,session:t})}}const Sx=function(t){let{args:i=[],defaultValue:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"function"==typeof t?t(...i):void 0!==t?t:s},Ex=function(t){let{defaultValue:i,async:s=!0,delay:l=0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(){for(var c=arguments.length,d=new Array(c),f=0;f<c;f++)d[f]=arguments[f];const p=Sx(t,{defaultValue:i,args:d});return s?new Promise(m=>{setTimeout(()=>m(p),l)}):p}},l0=["id","session"],c0=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function u0(t){return!c0.includes(t)}function Cx(t){const i=Sx(t.getLayout);return i.qInfo&&i.qInfo.qId}function Dx(t,i){return t.reduce((s,l)=>ee(ee({},s),function(c,d){let f=Cx(c);const{delay:p}=d,{id:m,session:y}=c,b=_n(c,l0);if(m&&f&&m!==f)throw new Error("Generic object has multiple IDs, qInfo.qId: ".concat(f,", id: ").concat(m));return f=f||m||"object - ".concat(+Date.now()),{[f]:ee(ee({id:f,session:Sx(y,{defaultValue:!0}),on:()=>{},once:()=>{}},Object.entries(b).reduce((_,w)=>{let[S,E]=w;return ee(ee({},_),{},{[S]:Ex(E,{async:u0(S),delay:p})})},{})),{},{genericType:c.type})}}(l,i)),{})}function Bu(t){if(!t.getLayout)throw new Error('Generic object is missing "getLayout"');if(!Cx(t))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function kx(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Array.isArray(t)||0===t.length)return()=>{throw new Error('No "genericObjects" specified')};t.forEach(Bu);const s=Dx(t,i);return function(){var l=be(function*(c){return Promise.resolve(s[c])});return function(c){return l.apply(this,arguments)}}()}function d0(){return()=>Promise.resolve({id:"app-layout"})}const I5={fromGenericObjects(t){return function(i){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const l=new xx,c=new aI(l),d=new kx(i,s),f=new d0,p={id:"app - ".concat(+Date.now()),session:l,createSessionObject:c,destroySessionObject:(m=be(function*(){}),function(){return m.apply(this,arguments)}),getObject:d,getAppLayout:f};var m;return Promise.resolve(p)}(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},Wf={generator:$A,hook:GL,theme:T0,locale:wI};dt.EnigmaMocker=I5,dt.__DO_NOT_USE__=Wf,dt.conversion=vL,dt.embed=sI,dt.onContextMenu=function(t){const i=Ja(++Ro);i.value||(i.value=1,bt.__hooks.menus.push(i)),i.fn=t},dt.onTakeSnapshot=function(t){const i=Ja(++Ro);i.value||(i.value=1,bt.__hooks.snaps.push(i)),i.fn=t},dt.useAction=function(t,i){const[s]=xg({action(){s._config.action.call(null)}});return s.component||(s.component=bt,bt.__hooks.actions.list.push(s)),FA(()=>{const l=t();s._config=l,s.active=l.active||!1,s.disabled=l.disabled||!1,s.hidden=l.hidden||!1,s.label=l.label||"",s.getSvgIconShape=l.icon?()=>l.icon:void 0,s.key=l.key||s.component.__hooks.actions.list.length,s.component.__hooks.actions.changed=!0},i),s.action},dt.useApp=function(){const t=ei("app");return t&&t.session?t:void 0},dt.useAppLayout=function(){return ei("appLayout")},dt.useConstraints=function(){return ei("constraints")},dt.useDeviceType=function(){return ei("deviceType")},dt.useEffect=UL,dt.useElement=WL,dt.useEmbed=function(){return ei("nebbie")},dt.useEmitter=function(){return ei("emitter")},dt.useGlobal=function(){const t=ei("global");return t&&t.session?t:void 0},dt.useImperativeHandle=function(t,i){const s=Ja(++Ro);if(s.imperative||(s.imperative=!0),wg(s.value?s.value[0]:void 0,i)){const l=t();s.value=[i,l],bt.__hooks.imperativeHandle=l}},dt.useInteractionState=function(){return ei("interactions")},dt.useKeyboard=function(){const t=ei("keyboardNavigation"),i=ei("focusHandler");if(!bt.__hooks.accessibility.exitFunction){const p=function(){let b=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const _=this.__hooks.accessibility;_.enabled&&_.active&&(BA(this),i&&i.blurCallback&&i.blurCallback(b))}.bind(bt);bt.__hooks.accessibility.exitFunction=p;const m=function(){const b=this.__hooks.accessibility;b.enabled&&!b.active&&(i&&i.blurCallback&&i.blurCallback(!1),jA(this))}.bind(bt);bt.__hooks.accessibility.focusFunction=m;const y=function(){this.__hooks.accessibility.enabled&&i&&i.focusToolbarButton&&i.focusToolbarButton(arguments.length>0&&void 0!==arguments[0]&&arguments[0])}.bind(bt);bt.__hooks.accessibility.focusSelectionFunction=y}const s=bt.__hooks.accessibility.focusFunction,l=bt.__hooks.accessibility.exitFunction,c=bt.__hooks.accessibility.focusSelectionFunction,[d,f]=xg({active:!1,enabled:t,blur:l,focus:s,focusSelection:c});return bt.__hooks.accessibility.setter=f,bt.__hooks.accessibility.enabled=t,UL(()=>f({active:!1,enabled:t,blur:l,focus:s,focusSelection:c}),[t]),d},dt.useLayout=function(){return ei("layout")},dt.useMemo=FA,dt.useModel=function(){const t=ei("model");return t&&t.session?t:void 0},dt.useOptions=function(){return ei("options")},dt.usePlugins=function(){return ei("plugins")},dt.usePromise=function(t,i){const[s,l]=xg(()=>({resolved:void 0,rejected:void 0,state:"pending"})),c=Ja(++Ro);return c.component||(c.component=bt),NA(()=>{let d=!1;return c.teardown=()=>{d=!0,c.teardown=null;const f=c.component.__hooks.pendingPromises.indexOf(c);f>-1&&c.component.__hooks.pendingPromises.splice(f,1)},t().then(f=>{d||(c.teardown&&c.teardown(),l({resolved:f,rejected:void 0,state:"resolved"}))}).catch(f=>{d||(c.teardown&&c.teardown(),l({resolved:void 0,rejected:f,state:"resolved"}))}),c.component.__hooks.pendingPromises.push(c),()=>{c.teardown&&c.teardown()}},i),[s.resolved,s.rejected]},dt.useRect=function(){const t=WL(),i=bt.__hooks.resizer,[s,l]=xg(()=>{const{left:c,top:d,width:f,height:p}=t.getBoundingClientRect();return{left:c,top:d,width:f,height:p}});return i.current=s,-1===i.setters.indexOf(l)&&i.setters.push(l),i.update&&i.resize&&(i.update=!1,i.resize()),NA(()=>{if(i.initiated)return;i.initiated=!0;const c=()=>{const{left:d,top:f,width:p,height:m}=t.getBoundingClientRect(),y=i.current;y.width===p&&y.height===m&&y.left===d&&y.top===f||i.setters.forEach(b=>b({left:d,top:f,width:p,height:m}))};if(i.resize=()=>{c()},i.explicitResize)return()=>{i.resize=void 0};if("function"==typeof ResizeObserver){let d=new ResizeObserver(c);return d.observe(t),()=>{d.unobserve(t),d.disconnect(t),d=null,i.resize=void 0}}},[t]),s},dt.useRenderState=function(){Ja(++Ro);const t=bt.__hooks;return{pending:()=>{t.waitForData=!0},restore:()=>{t.waitForData=!1}}},dt.useSelections=function(){return ei("selections")},dt.useStaleLayout=function(){const t=ei("layout"),[i]=xg({current:t});return t.qSelectionInfo&&t.qSelectionInfo.qInSelections||(i.current=t),i.current},dt.useState=xg,dt.useTheme=function(){return ei("theme")},dt.useTranslator=function(){return ei("translator")}}(dr)},5:(vn,dr,bn)=>{vn.exports=bn(879)},613:function(vn,dr,bn){var be=bn(926).default;vn.exports=function(){"use strict";function dt(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat((Math.random()+1).toString(36).substring(2))})}}function qi(Ie,Vt){var Zt=Object.keys(Ie);if(Object.getOwnPropertySymbols){var zt=Object.getOwnPropertySymbols(Ie);Vt&&(zt=zt.filter(function(ui){return Object.getOwnPropertyDescriptor(Ie,ui).enumerable})),Zt.push.apply(Zt,zt)}return Zt}function ci(Ie){for(var Vt=1;Vt<arguments.length;Vt++){var Zt=null!=arguments[Vt]?arguments[Vt]:{};Vt%2?qi(Object(Zt),!0).forEach(function(zt){Di(Ie,zt,Zt[zt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ie,Object.getOwnPropertyDescriptors(Zt)):qi(Object(Zt)).forEach(function(zt){Object.defineProperty(Ie,zt,Object.getOwnPropertyDescriptor(Zt,zt))})}return Ie}function Di(Ie,Vt,Zt){return Vt in Ie?Object.defineProperty(Ie,Vt,{value:Zt,enumerable:!0,configurable:!0,writable:!0}):Ie[Vt]=Zt,Ie}function ee(){return Ie=>Promise.resolve(ci({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve({}),id:Ie&&Ie.qInfo&&Ie.qInfo.qId?Ie.qInfo.qId:"sel - ".concat((Math.random()+1).toString(36).substring(2))},Ie))}const io=function(Ie){let{args:Vt=[],defaultValue:Zt}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"function"==typeof Ie?Ie(...Vt):void 0!==Ie?Ie:Zt},oo=function(Ie){let{defaultValue:Vt,async:Zt=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(){for(var zt=arguments.length,ui=new Array(zt),di=0;di<zt;di++)ui[di]=arguments[di];const nn=io(Ie,{defaultValue:Vt,args:ui});return Zt?Promise.resolve(nn):nn}};function Vi(Ie,Vt){return _n.apply(this,arguments)}function _n(){return(_n=be(function*(Ie,Vt){const Zt=Ie.map(Vt);return Ie[(yield Promise.all(Zt)).findIndex(zt=>zt)]})).apply(this,arguments)}const Jf=["id","session"],Dt=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function gc(Ie){return!Dt.includes(Ie)}function mc(Ie){const{id:Vt,session:Zt}=Ie,zt=function To(Ie,Vt){if(null==Ie)return{};var Zt,zt,ui=function(nn,yc){if(null==nn)return{};var Gs,Us,ma={},eh=Object.keys(nn);for(Us=0;Us<eh.length;Us++)yc.indexOf(Gs=eh[Us])>=0||(ma[Gs]=nn[Gs]);return ma}(Ie,Vt);if(Object.getOwnPropertySymbols){var di=Object.getOwnPropertySymbols(Ie);for(zt=0;zt<di.length;zt++)Vt.indexOf(Zt=di[zt])>=0||Object.prototype.propertyIsEnumerable.call(Ie,Zt)&&(ui[Zt]=Ie[Zt])}return ui}(Ie,Jf);return ci({id:io(Vt,{defaultValue:"object - ".concat((Math.random()+1).toString(36).substring(2))}),session:io(Zt,{defaultValue:!0}),on:()=>{},once:()=>{}},Object.entries(zt).reduce((ui,di)=>{let[nn,yc]=di;return ci(ci({},ui),{},{[nn]:oo(yc,{async:gc(nn)})})},{}))}function Fg(Ie){if(!Ie.getLayout)throw new Error('Generic object is missing "getLayout"');const Vt=io(Ie.getLayout);if(!Vt.qInfo||!Vt.qInfo.qId)throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function jx(){let Ie=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];Ie.forEach(Fg);const Vt=Ie.map(mc);return function(){var Zt=be(function*(zt){const ui=Vi(Vt,function(){var di=be(function*(nn){return(yield nn.getLayout()).qInfo.qId===zt});return function(nn){return di.apply(this,arguments)}}());return Promise.resolve(ui)});return function(zt){return Zt.apply(this,arguments)}}()}function jg(){return()=>Promise.resolve({id:"app-layout"})}return{fromGenericObjects:Ie=>{if(!Array.isArray(Ie)||0===Ie.length)throw new Error('No "genericObjects" specified');const Vt=new dt,Zt=new ee,zt=new jx(Ie),ui=new jg,di={id:"app - ".concat((Math.random()+1).toString(36).substring(2)),session:Vt,createSessionObject:Zt,getObject:zt,getAppLayout:ui};return Promise.resolve(di)}}}()},926:vn=>{function dr(be,dt,qi,ci,Di,To,ee){try{var io=be[To](ee),oo=io.value}catch(Vi){return void qi(Vi)}io.done?dt(oo):Promise.resolve(oo).then(ci,Di)}vn.exports=function bn(be){return function(){var dt=this,qi=arguments;return new Promise(function(ci,Di){var To=be.apply(dt,qi);function ee(oo){dr(To,ci,Di,ee,io,"next",oo)}function io(oo){dr(To,ci,Di,ee,io,"throw",oo)}ee(void 0)})}},vn.exports.__esModule=!0,vn.exports.default=vn.exports}},zi={};function Wn(vn){var dr=zi[vn];if(void 0!==dr)return dr.exports;var bn=zi[vn]={exports:{}};return Ci[vn].call(bn.exports,bn,bn.exports,Wn),bn.exports}Wn.n=vn=>{var dr=vn&&vn.__esModule?()=>vn.default:()=>vn;return Wn.d(dr,{a:dr}),dr},Wn.d=(vn,dr)=>{for(var bn in dr)Wn.o(dr,bn)&&!Wn.o(vn,bn)&&Object.defineProperty(vn,bn,{enumerable:!0,get:dr[bn]})},Wn.o=(vn,dr)=>Object.prototype.hasOwnProperty.call(vn,dr),(()=>{"use strict";function vn(r){return"function"==typeof r}let dr=!1;const bn={Promise:void 0,set useDeprecatedSynchronousErrorHandling(r){if(r){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else dr&&console.log("RxJS: Back to a better error behavior. Thank you. <3");dr=r},get useDeprecatedSynchronousErrorHandling(){return dr}};function be(r){setTimeout(()=>{throw r},0)}const dt={closed:!0,next(r){},error(r){if(bn.useDeprecatedSynchronousErrorHandling)throw r;be(r)},complete(){}},qi=Array.isArray||(r=>r&&"number"==typeof r.length);function ci(r){return null!==r&&"object"==typeof r}const To=(()=>{function r(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((n,o)=>`${o+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return r.prototype=Object.create(Error.prototype),r})();class ee{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:o,_unsubscribe:a,_subscriptions:u}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof ee)n.remove(this);else if(null!==n)for(let h=0;h<n.length;++h)n[h].remove(this);if(vn(a)){o&&(this._unsubscribe=void 0);try{a.call(this)}catch(h){e=h instanceof To?io(h.errors):[h]}}if(qi(u)){let h=-1,g=u.length;for(;++h<g;){const v=u[h];if(ci(v))try{v.unsubscribe()}catch(x){e=e||[],x instanceof To?e=e.concat(io(x.errors)):e.push(x)}}}if(e)throw new To(e)}add(e){let n=e;if(!e)return ee.EMPTY;switch(typeof e){case"function":n=new ee(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof ee)){const u=n;n=new ee,n._subscriptions=[u]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:o}=n;if(null===o)n._parentOrParents=this;else if(o instanceof ee){if(o===this)return n;n._parentOrParents=[o,this]}else{if(-1!==o.indexOf(this))return n;o.push(this)}const a=this._subscriptions;return null===a?this._subscriptions=[n]:a.push(n),n}remove(e){const n=this._subscriptions;if(n){const o=n.indexOf(e);-1!==o&&n.splice(o,1)}}}var r;function io(r){return r.reduce((e,n)=>e.concat(n instanceof To?n.errors:n),[])}ee.EMPTY=((r=new ee).closed=!0,r);const oo="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class _n extends ee{constructor(e,n,o){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=dt;break;case 1:if(!e){this.destination=dt;break}if("object"==typeof e){e instanceof _n?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new Jf(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new Jf(this,e,n,o)}}[oo](){return this}static create(e,n,o){const a=new _n(e,n,o);return a.syncErrorThrowable=!1,a}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class Jf extends _n{constructor(e,n,o,a){super(),this._parentSubscriber=e;let u,h=this;vn(n)?u=n:n&&(u=n.next,o=n.error,a=n.complete,n!==dt&&(h=Object.create(n),vn(h.unsubscribe)&&this.add(h.unsubscribe.bind(h)),h.unsubscribe=this.unsubscribe.bind(this))),this._context=h,this._next=u,this._error=o,this._complete=a}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:n}=this;bn.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?this.__tryOrSetError(n,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:n}=this,{useDeprecatedSynchronousErrorHandling:o}=bn;if(this._error)o&&n.syncErrorThrowable?(this.__tryOrSetError(n,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(n.syncErrorThrowable)o?(n.syncErrorValue=e,n.syncErrorThrown=!0):be(e),this.unsubscribe();else{if(this.unsubscribe(),o)throw e;be(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const n=()=>this._complete.call(this._context);bn.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,n){try{e.call(this._context,n)}catch(o){if(this.unsubscribe(),bn.useDeprecatedSynchronousErrorHandling)throw o;be(o)}}__tryOrSetError(e,n,o){if(!bn.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{n.call(this._context,o)}catch(a){return bn.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=a,e.syncErrorThrown=!0,!0):(be(a),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const mc="function"==typeof Symbol&&Symbol.observable||"@@observable";function Fg(r){return r}let Ie=(()=>{class r{constructor(n){this._isScalar=!1,n&&(this._subscribe=n)}lift(n){const o=new r;return o.source=this,o.operator=n,o}subscribe(n,o,a){const{operator:u}=this,h=function gc(r,e,n){if(r){if(r instanceof _n)return r;if(r[oo])return r[oo]()}return r||e||n?new _n(r,e,n):new _n(dt)}(n,o,a);if(h.add(u?u.call(h,this.source):this.source||bn.useDeprecatedSynchronousErrorHandling&&!h.syncErrorThrowable?this._subscribe(h):this._trySubscribe(h)),bn.useDeprecatedSynchronousErrorHandling&&h.syncErrorThrowable&&(h.syncErrorThrowable=!1,h.syncErrorThrown))throw h.syncErrorValue;return h}_trySubscribe(n){try{return this._subscribe(n)}catch(o){bn.useDeprecatedSynchronousErrorHandling&&(n.syncErrorThrown=!0,n.syncErrorValue=o),function Dt(r){for(;r;){const{closed:e,destination:n,isStopped:o}=r;if(e||o)return!1;r=n&&n instanceof _n?n:null}return!0}(n)?n.error(o):console.warn(o)}}forEach(n,o){return new(o=Vt(o))((a,u)=>{let h;h=this.subscribe(g=>{try{n(g)}catch(v){u(v),h&&h.unsubscribe()}},u,a)})}_subscribe(n){const{source:o}=this;return o&&o.subscribe(n)}[mc](){return this}pipe(...n){return 0===n.length?this:function jg(r){return 0===r.length?Fg:1===r.length?r[0]:function(n){return r.reduce((o,a)=>a(o),n)}}(n)(this)}toPromise(n){return new(n=Vt(n))((o,a)=>{let u;this.subscribe(h=>u=h,h=>a(h),()=>o(u))})}}return r.create=e=>new r(e),r})();function Vt(r){if(r||(r=bn.Promise||Promise),!r)throw new Error("no Promise impl found");return r}const zt=(()=>{function r(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return r.prototype=Object.create(Error.prototype),r})();class ui extends ee{constructor(e,n){super(),this.subject=e,this.subscriber=n,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,n=e.observers;if(this.subject=null,!n||0===n.length||e.isStopped||e.closed)return;const o=n.indexOf(this.subscriber);-1!==o&&n.splice(o,1)}}class di extends _n{constructor(e){super(e),this.destination=e}}let nn=(()=>{class r extends Ie{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[oo](){return new di(this)}lift(n){const o=new yc(this,this);return o.operator=n,o}next(n){if(this.closed)throw new zt;if(!this.isStopped){const{observers:o}=this,a=o.length,u=o.slice();for(let h=0;h<a;h++)u[h].next(n)}}error(n){if(this.closed)throw new zt;this.hasError=!0,this.thrownError=n,this.isStopped=!0;const{observers:o}=this,a=o.length,u=o.slice();for(let h=0;h<a;h++)u[h].error(n);this.observers.length=0}complete(){if(this.closed)throw new zt;this.isStopped=!0;const{observers:n}=this,o=n.length,a=n.slice();for(let u=0;u<o;u++)a[u].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(n){if(this.closed)throw new zt;return super._trySubscribe(n)}_subscribe(n){if(this.closed)throw new zt;return this.hasError?(n.error(this.thrownError),ee.EMPTY):this.isStopped?(n.complete(),ee.EMPTY):(this.observers.push(n),new ui(this,n))}asObservable(){const n=new Ie;return n.source=this,n}}return r.create=(e,n)=>new yc(e,n),r})();class yc extends nn{constructor(e,n){super(),this.destination=e,this.source=n}next(e){const{destination:n}=this;n&&n.next&&n.next(e)}error(e){const{destination:n}=this;n&&n.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:n}=this;return n?this.source.subscribe(e):ee.EMPTY}}function Gs(r){return r&&"function"==typeof r.schedule}function Us(r,e){return function(o){if("function"!=typeof r)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return o.lift(new ma(r,e))}}class ma{constructor(e,n){this.project=e,this.thisArg=n}call(e,n){return n.subscribe(new eh(e,this.project,this.thisArg))}}class eh extends _n{constructor(e,n,o){super(e),this.project=n,this.count=0,this.thisArg=o||this}_next(e){let n;try{n=this.project.call(this.thisArg,e,this.count++)}catch(o){return void this.destination.error(o)}this.destination.next(n)}}const Bg=r=>e=>{for(let n=0,o=r.length;n<o&&!e.closed;n++)e.next(r[n]);e.complete()},th=function Bx(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),zg=r=>r&&"number"==typeof r.length&&"function"!=typeof r;function C0(r){return!!r&&"function"!=typeof r.subscribe&&"function"==typeof r.then}const qg=r=>{if(r&&"function"==typeof r[mc])return(r=>e=>{const n=r[mc]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)})(r);if(zg(r))return Bg(r);if(C0(r))return(r=>e=>(r.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,be),e))(r);if(r&&"function"==typeof r[th])return(r=>e=>{const n=r[th]();for(;;){let o;try{o=n.next()}catch(a){return e.error(a),e}if(o.done){e.complete();break}if(e.next(o.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e})(r);{const n=`You provided ${ci(r)?"an invalid object":`'${r}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(n)}};function D0(r,e){return new Ie(n=>{const o=new ee;let a=0;return o.add(e.schedule(function(){a!==r.length?(n.next(r[a++]),n.closed||o.add(this.schedule())):n.complete()})),o})}function V(r,e){return e?function P(r,e){if(null!=r){if(function $g(r){return r&&"function"==typeof r[mc]}(r))return function Vg(r,e){return new Ie(n=>{const o=new ee;return o.add(e.schedule(()=>{const a=r[mc]();o.add(a.subscribe({next(u){o.add(e.schedule(()=>n.next(u)))},error(u){o.add(e.schedule(()=>n.error(u)))},complete(){o.add(e.schedule(()=>n.complete()))}}))})),o})}(r,e);if(C0(r))return function Hg(r,e){return new Ie(n=>{const o=new ee;return o.add(e.schedule(()=>r.then(a=>{o.add(e.schedule(()=>{n.next(a),o.add(e.schedule(()=>n.complete()))}))},a=>{o.add(e.schedule(()=>n.error(a)))}))),o})}(r,e);if(zg(r))return D0(r,e);if(function _I(r){return r&&"function"==typeof r[th]}(r)||"string"==typeof r)return function ki(r,e){if(!r)throw new Error("Iterable cannot be null");return new Ie(n=>{const o=new ee;let a;return o.add(()=>{a&&"function"==typeof a.return&&a.return()}),o.add(e.schedule(()=>{a=r[th](),o.add(e.schedule(function(){if(n.closed)return;let u,h;try{const g=a.next();u=g.value,h=g.done}catch(g){return void n.error(g)}h?n.complete():(n.next(u),this.schedule())}))})),o})}(r,e)}throw new TypeError((null!==r&&typeof r||r)+" is not observable")}(r,e):r instanceof Ie?r:new Ie(qg(r))}class Uu extends _n{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class nh extends _n{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function kn(r,e){if(!e.closed)return r instanceof Ie?r.subscribe(e):qg(r)(e)}function Er(r,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?o=>o.pipe(Er((a,u)=>V(r(a,u)).pipe(Us((h,g)=>e(a,h,u,g))),n)):("number"==typeof e&&(n=e),o=>o.lift(new xI(r,n)))}class xI{constructor(e,n=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=n}call(e,n){return n.subscribe(new so(e,this.project,this.concurrent))}}class so extends nh{constructor(e,n,o=Number.POSITIVE_INFINITY){super(e),this.project=n,this.concurrent=o,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let n;const o=this.index++;try{n=this.project(e,o)}catch(a){return void this.destination.error(a)}this.active++,this._innerSub(n)}_innerSub(e){const n=new Uu(this),o=this.destination;o.add(n);const a=kn(e,n);a!==n&&o.add(a)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function $x(r=Number.POSITIVE_INFINITY){return Er(Fg,r)}function Wu(r,e){return e?D0(r,e):new Ie(Bg(r))}function ya(...r){let e=Number.POSITIVE_INFINITY,n=null,o=r[r.length-1];return Gs(o)?(n=r.pop(),r.length>1&&"number"==typeof r[r.length-1]&&(e=r.pop())):"number"==typeof o&&(e=r.pop()),null===n&&1===r.length&&r[0]instanceof Ie?r[0]:$x(e)(Wu(r,n))}function rh(){return function(e){return e.lift(new Ku(e))}}class Ku{constructor(e){this.connectable=e}call(e,n){const{connectable:o}=this;o._refCount++;const a=new ih(e,o),u=n.subscribe(a);return a.closed||(a.connection=o.connect()),u}}class ih extends _n{constructor(e,n){super(e),this.connectable=n}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const n=e._refCount;if(n<=0)return void(this.connection=null);if(e._refCount=n-1,n>1)return void(this.connection=null);const{connection:o}=this,a=e._connection;this.connection=null,a&&(!o||a===o)&&a.unsubscribe()}}class Ws extends Ie{constructor(e,n){super(),this.source=e,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new ee,e.add(this.source.subscribe(new EI(this.getSubject(),this))),e.closed&&(this._connection=null,e=ee.EMPTY)),e}refCount(){return rh()(this)}}const SI=(()=>{const r=Ws.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:r._subscribe},_isComplete:{value:r._isComplete,writable:!0},getSubject:{value:r.getSubject},connect:{value:r.connect},refCount:{value:r.refCount}}})();class EI extends di{constructor(e,n){super(e),this.connectable=n}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const n=e._connection;e._refCount=0,e._subject=null,e._connection=null,n&&n.unsubscribe()}}}class kI{constructor(e,n){this.subjectFactory=e,this.selector=n}call(e,n){const{selector:o}=this,a=this.subjectFactory(),u=o(a).subscribe(e);return u.add(n.subscribe(a)),u}}function AI(){return new nn}function dn(r){for(let e in r)if(r[e]===dn)return e;throw Error("Could not find renamed property on target object.")}function Gg(r,e){for(const n in e)e.hasOwnProperty(n)&&!r.hasOwnProperty(n)&&(r[n]=e[n])}function Mt(r){if("string"==typeof r)return r;if(Array.isArray(r))return"["+r.map(Mt).join(", ")+"]";if(null==r)return""+r;if(r.overriddenName)return`${r.overriddenName}`;if(r.name)return`${r.name}`;const e=r.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function Ug(r,e){return null==r||""===r?null===e?"":e:null==e||""===e?r:r+" "+e}const Wg=dn({__forward_ref__:dn});function Kg(r){return r.__forward_ref__=Kg,r.toString=function(){return Mt(this())},r}function He(r){return k0(r)?r():r}function k0(r){return"function"==typeof r&&r.hasOwnProperty(Wg)&&r.__forward_ref__===Kg}class Me extends Error{constructor(e,n){super(function va(r,e){return`NG0${Math.abs(r)}${e?": "+e:""}`}(e,n)),this.code=e}}function Qr(r){return"function"==typeof r?r.name||r.toString():"object"==typeof r&&null!=r&&"function"==typeof r.type?r.type.name||r.type.toString():function Ye(r){return"string"==typeof r?r:null==r?"":String(r)}(r)}function vc(r,e){const n=e?` in ${e}`:"";throw new Me(-201,`No provider for ${Qr(r)} found${n}`)}function ao(r,e){null==r&&function an(r,e,n,o){throw new Error(`ASSERTION ERROR: ${r}`+(null==o?"":` [Expected=> ${n} ${o} ${e} <=Actual]`))}(e,r,null,"!=")}function Ae(r){return{token:r.token,providedIn:r.providedIn||null,factory:r.factory,value:void 0}}function Hi(r){return{providers:r.providers||[],imports:r.imports||[]}}function I0(r){return Kx(r,Yg)||Kx(r,T0)}function Kx(r,e){return r.hasOwnProperty(e)?r[e]:null}function Qg(r){return r&&(r.hasOwnProperty(M0)||r.hasOwnProperty(BI))?r[M0]:null}const Yg=dn({\u0275prov:dn}),M0=dn({\u0275inj:dn}),T0=dn({ngInjectableDef:dn}),BI=dn({ngInjectorDef:dn});var ft=(()=>((ft=ft||{})[ft.Default=0]="Default",ft[ft.Host=1]="Host",ft[ft.Self=2]="Self",ft[ft.SkipSelf=4]="SkipSelf",ft[ft.Optional=8]="Optional",ft))();let O0;function ba(r){const e=O0;return O0=r,e}function $i(r,e,n){const o=I0(r);return o&&"root"==o.providedIn?void 0===o.value?o.value=o.factory():o.value:n&ft.Optional?null:void 0!==e?e:void vc(Mt(r),"Injector")}function _a(r){return{toString:r}.toString()}var ss=(()=>((ss=ss||{})[ss.OnPush=0]="OnPush",ss[ss.Default=1]="Default",ss))(),me=(()=>(function(r){r[r.Emulated=0]="Emulated",r[r.None=2]="None",r[r.ShadowDom=3]="ShadowDom"}(me||(me={})),me))();const Yx="undefined"!=typeof globalThis&&globalThis,oh="undefined"!=typeof window&&window,bc="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ot=Yx||"undefined"!=typeof global&&global||oh||bc,_c={},fn=[],Yr=dn({\u0275cmp:dn}),Br=dn({\u0275dir:dn}),ah=dn({\u0275pipe:dn}),Zg=dn({\u0275mod:dn}),as=dn({\u0275fac:dn}),lo=dn({__NG_ELEMENT_ID__:dn});let Xg=0;function il(r){return _a(()=>{const n={},o={type:r.type,providersResolver:null,decls:r.decls,vars:r.vars,factory:null,template:r.template||null,consts:r.consts||null,ngContentSelectors:r.ngContentSelectors,hostBindings:r.hostBindings||null,hostVars:r.hostVars||0,hostAttrs:r.hostAttrs||null,contentQueries:r.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:r.exportAs||null,onPush:r.changeDetection===ss.OnPush,directiveDefs:null,pipeDefs:null,selectors:r.selectors||fn,viewQuery:r.viewQuery||null,features:r.features||null,data:r.data||{},encapsulation:r.encapsulation||me.Emulated,id:"c",styles:r.styles||fn,_:null,setInput:null,schemas:r.schemas||null,tView:null},a=r.directives,u=r.features,h=r.pipes;return o.id+=Xg++,o.inputs=tm(r.inputs,n),o.outputs=tm(r.outputs),u&&u.forEach(g=>g(o)),o.directiveDefs=a?()=>("function"==typeof a?a():a).map(Jg):null,o.pipeDefs=h?()=>("function"==typeof h?h():h).map(em):null,o})}function Jg(r){return Ln(r)||function wa(r){return r[Br]||null}(r)}function em(r){return function ol(r){return r[ah]||null}(r)}const P0={};function co(r){return _a(()=>{const e={type:r.type,bootstrap:r.bootstrap||fn,declarations:r.declarations||fn,imports:r.imports||fn,exports:r.exports||fn,transitiveCompileScopes:null,schemas:r.schemas||null,id:r.id||null};return null!=r.id&&(P0[r.id]=r.type),e})}function tm(r,e){if(null==r)return _c;const n={};for(const o in r)if(r.hasOwnProperty(o)){let a=r[o],u=a;Array.isArray(a)&&(u=a[1],a=a[0]),n[a]=o,e&&(e[a]=u)}return n}const je=il;function Ln(r){return r[Yr]||null}function hi(r,e){const n=r[Zg]||null;if(!n&&!0===e)throw new Error(`Type ${Mt(r)} does not have '\u0275mod' property.`);return n}function Ui(r){return Array.isArray(r)&&"object"==typeof r[1]}function Ii(r){return Array.isArray(r)&&!0===r[1]}function B0(r){return 0!=(8&r.flags)}function ch(r){return 2==(2&r.flags)}function cs(r){return null!==r.template}function z0(r){return 0!=(512&r[2])}function Cc(r,e){return r.hasOwnProperty(as)?r[as]:null}class ll{constructor(e,n,o){this.previousValue=e,this.currentValue=n,this.firstChange=o}isFirstChange(){return this.firstChange}}function cl(){return $0}function $0(r){return r.type.prototype.ngOnChanges&&(r.setInput=oS),iS}function iS(){const r=U0(this),e=null==r?void 0:r.current;if(e){const n=r.previous;if(n===_c)r.previous=e;else for(let o in e)n[o]=e[o];r.current=null,this.ngOnChanges(e)}}function oS(r,e,n,o){const a=U0(r)||function KI(r,e){return r[G0]=e}(r,{previous:_c,current:null}),u=a.current||(a.current={}),h=a.previous,g=this.declaredInputs[n],v=h[g];u[g]=new ll(v&&v.currentValue,e,h===_c),r[o]=e}cl.ngInherit=!0;const G0="__ngSimpleChanges__";function U0(r){return r[G0]||null}let td;function Xn(r){return!!r.listen}const im={createRenderer:(r,e)=>function fo(){return void 0!==td?td:"undefined"!=typeof document?document:void 0}()};function Pn(r){for(;Array.isArray(r);)r=r[0];return r}function Wi(r,e){return Pn(e[r.index])}function yt(r,e){const n=e[r];return Ui(n)?n:n[0]}function Y0(r){return 4==(4&r[2])}function sm(r){return 128==(128&r[2])}function Ea(r,e){return null==e?null:r[e]}function X0(r){r[18]=0}function am(r,e){r[5]+=e;let n=r,o=r[3];for(;null!==o&&(1===e&&1===n[5]||-1===e&&0===n[5]);)o[5]+=e,n=o,o=o[3]}const it={lFrame:cS(null),bindingsEnabled:!0};function rd(){return it.bindingsEnabled}function ge(){return it.lFrame.lView}function kt(){return it.lFrame.tView}function Jn(){let r=J0();for(;null!==r&&64===r.type;)r=r.parent;return r}function J0(){return it.lFrame.currentTNode}function Ki(r,e){const n=it.lFrame;n.currentTNode=r,n.isParent=e}function Ac(){return it.lFrame.isParent}function cm(r,e){const n=it.lFrame;n.bindingIndex=n.bindingRootIndex=r,dm(e)}function dm(r){it.lFrame.currentDirectiveIndex=r}function fm(){return it.lFrame.currentQueryIndex}function vh(r){it.lFrame.currentQueryIndex=r}function bh(r){const e=r[1];return 2===e.type?e.declTNode:1===e.type?r[6]:null}function Ic(r,e,n){if(n&ft.SkipSelf){let a=e,u=r;for(;!(a=a.parent,null!==a||n&ft.Host||(a=bh(u),null===a||(u=u[15],10&a.type))););if(null===a)return!1;e=a,r=u}const o=it.lFrame=sd();return o.currentTNode=e,o.lView=r,!0}function od(r){const e=sd(),n=r[1];it.lFrame=e,e.currentTNode=n.firstChild,e.lView=r,e.tView=n,e.contextLView=r,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function sd(){const r=it.lFrame,e=null===r?null:r.child;return null===e?cS(r):e}function cS(r){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:r,child:null,inI18n:!1};return null!==r&&(r.child=e),e}function _h(){const r=it.lFrame;return it.lFrame=r.parent,r.currentTNode=null,r.lView=null,r}const rb=_h;function hm(){const r=_h();r.isParent=!0,r.tView=null,r.selectedIndex=-1,r.contextLView=null,r.elementDepthCount=0,r.currentDirectiveIndex=-1,r.currentNamespace=null,r.bindingRootIndex=-1,r.bindingIndex=-1,r.currentQueryIndex=0}function gl(r){it.lFrame.selectedIndex=r}function pm(r,e){for(let n=e.directiveStart,o=e.directiveEnd;n<o;n++){const u=r.data[n].type.prototype,{ngAfterContentInit:h,ngAfterContentChecked:g,ngAfterViewInit:v,ngAfterViewChecked:x,ngOnDestroy:R}=u;h&&(r.contentHooks||(r.contentHooks=[])).push(-n,h),g&&((r.contentHooks||(r.contentHooks=[])).push(n,g),(r.contentCheckHooks||(r.contentCheckHooks=[])).push(n,g)),v&&(r.viewHooks||(r.viewHooks=[])).push(-n,v),x&&((r.viewHooks||(r.viewHooks=[])).push(n,x),(r.viewCheckHooks||(r.viewCheckHooks=[])).push(n,x)),null!=R&&(r.destroyHooks||(r.destroyHooks=[])).push(n,R)}}function wh(r,e,n){uS(r,e,3,n)}function gm(r,e,n,o){(3&r[2])===n&&uS(r,e,n,o)}function sb(r,e){let n=r[2];(3&n)===e&&(n&=2047,n+=1,r[2]=n)}function uS(r,e,n,o){const u=null!=o?o:-1,h=e.length-1;let g=0;for(let v=void 0!==o?65535&r[18]:0;v<h;v++)if("number"==typeof e[v+1]){if(g=e[v],null!=o&&g>=o)break}else e[v]<0&&(r[18]+=65536),(g<u||-1==u)&&(iR(r,n,e,v),r[18]=(4294901760&r[18])+v+2),v++}function iR(r,e,n,o){const a=n[o]<0,u=n[o+1],g=r[a?-n[o]:n[o]];if(a){if(r[2]>>11<r[18]>>16&&(3&r[2])===e){r[2]+=2048;try{u.call(g)}finally{}}}else try{u.call(g)}finally{}}class Rc{constructor(e,n,o){this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=o}}function ym(r,e,n){const o=Xn(r);let a=0;for(;a<n.length;){const u=n[a];if("number"==typeof u){if(0!==u)break;a++;const h=n[a++],g=n[a++],v=n[a++];o?r.setAttribute(e,g,v,h):e.setAttributeNS(h,g,v)}else{const h=u,g=n[++a];vm(h)?o&&r.setProperty(e,h,g):o?r.setAttribute(e,h,g):e.setAttribute(h,g),a++}}return a}function ab(r){return 3===r||4===r||6===r}function vm(r){return 64===r.charCodeAt(0)}function Mc(r,e){if(null!==e&&0!==e.length)if(null===r||0===r.length)r=e.slice();else{let n=-1;for(let o=0;o<e.length;o++){const a=e[o];"number"==typeof a?n=a:0===n||ld(r,n,a,null,-1===n||2===n?e[++o]:null)}}return r}function ld(r,e,n,o,a){let u=0,h=r.length;if(-1===e)h=-1;else for(;u<r.length;){const g=r[u++];if("number"==typeof g){if(g===e){h=-1;break}if(g>e){h=u-1;break}}}for(;u<r.length;){const g=r[u];if("number"==typeof g)break;if(g===n){if(null===o)return void(null!==a&&(r[u+1]=a));if(o===r[u+1])return void(r[u+2]=a)}u++,null!==o&&u++,null!==a&&u++}-1!==h&&(r.splice(h,0,e),u=h+1),r.splice(u++,0,n),null!==o&&r.splice(u++,0,o),null!==a&&r.splice(u++,0,a)}function hS(r){return-1!==r}function Ca(r){return 32767&r}function Tc(r,e){let n=function aR(r){return r>>16}(r),o=e;for(;n>0;)o=o[15],n--;return o}let Eh=!0;function cd(r){const e=Eh;return Eh=r,e}let cR=0;function Ch(r,e){const n=ho(r,e);if(-1!==n)return n;const o=e[1];o.firstCreatePass&&(r.injectorIndex=e.length,ub(o.data,r),ub(e,null),ub(o.blueprint,null));const a=yl(r,e),u=r.injectorIndex;if(hS(a)){const h=Ca(a),g=Tc(a,e),v=g[1].data;for(let x=0;x<8;x++)e[u+x]=g[h+x]|v[h+x]}return e[u+8]=a,u}function ub(r,e){r.push(0,0,0,0,0,0,0,0,e)}function ho(r,e){return-1===r.injectorIndex||r.parent&&r.parent.injectorIndex===r.injectorIndex||null===e[r.injectorIndex+8]?-1:r.injectorIndex}function yl(r,e){if(r.parent&&-1!==r.parent.injectorIndex)return r.parent.injectorIndex;let n=0,o=null,a=e;for(;null!==a;){const u=a[1],h=u.type;if(o=2===h?u.declTNode:1===h?a[6]:null,null===o)return-1;if(n++,a=a[15],-1!==o.injectorIndex)return o.injectorIndex|n<<16}return-1}function Dh(r,e,n){!function uR(r,e,n){let o;"string"==typeof n?o=n.charCodeAt(0)||0:n.hasOwnProperty(lo)&&(o=n[lo]),null==o&&(o=n[lo]=cR++);const a=255&o;e.data[r+(a>>5)]|=1<<a}(r,e,n)}function db(r,e,n){if(n&ft.Optional)return r;vc(e,"NodeInjector")}function fb(r,e,n,o){if(n&ft.Optional&&void 0===o&&(o=null),0==(n&(ft.Self|ft.Host))){const a=r[9],u=ba(void 0);try{return a?a.get(e,o,n&ft.Optional):$i(e,o,n&ft.Optional)}finally{ba(u)}}return db(o,e,n)}function bm(r,e,n,o=ft.Default,a){if(null!==r){const u=function hb(r){if("string"==typeof r)return r.charCodeAt(0)||0;const e=r.hasOwnProperty(lo)?r[lo]:void 0;return"number"==typeof e?e>=0?255&e:dR:e}(n);if("function"==typeof u){if(!Ic(e,r,o))return o&ft.Host?db(a,n,o):fb(e,n,o,a);try{const h=u(o);if(null!=h||o&ft.Optional)return h;vc(n)}finally{rb()}}else if("number"==typeof u){let h=null,g=ho(r,e),v=-1,x=o&ft.Host?e[16][6]:null;for((-1===g||o&ft.SkipSelf)&&(v=-1===g?yl(r,e):e[g+8],-1!==v&&kh(o,!1)?(h=e[1],g=Ca(v),e=Tc(v,e)):g=-1);-1!==g;){const R=e[1];if(pb(u,g,R.data)){const L=ud(g,e,n,h,o,x);if(L!==gS)return L}v=e[g+8],-1!==v&&kh(o,e[1].data[g+8]===x)&&pb(u,g,e)?(h=R,g=Ca(v),e=Tc(v,e)):g=-1}}}return fb(e,n,o,a)}const gS={};function dR(){return new fs(Jn(),ge())}function ud(r,e,n,o,a,u){const h=e[1],g=h.data[r+8],R=dd(g,h,n,null==o?ch(g)&&Eh:o!=h&&0!=(3&g.type),a&ft.Host&&u===g);return null!==R?Da(e,h,R,g):gS}function dd(r,e,n,o,a){const u=r.providerIndexes,h=e.data,g=1048575&u,v=r.directiveStart,R=u>>20,F=a?g+R:r.directiveEnd;for(let U=o?g:g+R;U<F;U++){const Z=h[U];if(U<v&&n===Z||U>=v&&Z.type===n)return U}if(a){const U=h[v];if(U&&cs(U)&&U.type===n)return v}return null}function Da(r,e,n,o){let a=r[n];const u=e.data;if(function xh(r){return r instanceof Rc}(a)){const h=a;h.resolving&&function Ux(r,e){const n=e?`. Dependency path: ${e.join(" > ")} > ${r}`:"";throw new Me(-200,`Circular dependency in DI detected for ${r}${n}`)}(Qr(u[n]));const g=cd(h.canSeeViewProviders);h.resolving=!0;const v=h.injectImpl?ba(h.injectImpl):null;Ic(r,o,ft.Default);try{a=r[n]=h.factory(void 0,u,r,o),e.firstCreatePass&&n>=o.directiveStart&&function rR(r,e,n){const{ngOnChanges:o,ngOnInit:a,ngDoCheck:u}=e.type.prototype;if(o){const h=$0(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(r,h),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(r,h)}a&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-r,a),u&&((n.preOrderHooks||(n.preOrderHooks=[])).push(r,u),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(r,u))}(n,u[n],e)}finally{null!==v&&ba(v),cd(g),h.resolving=!1,rb()}}return a}function pb(r,e,n){return!!(n[e+(r>>5)]&1<<r)}function kh(r,e){return!(r&ft.Self||r&ft.Host&&e)}class fs{constructor(e,n){this._tNode=e,this._lView=n}get(e,n,o){return bm(this._tNode,this._lView,e,o,n)}}function ht(r){return _a(()=>{const e=r.prototype.constructor,n=e[as]||_m(e),o=Object.prototype;let a=Object.getPrototypeOf(r.prototype).constructor;for(;a&&a!==o;){const u=a[as]||_m(a);if(u&&u!==n)return u;a=Object.getPrototypeOf(a)}return u=>new u})}function _m(r){return k0(r)?()=>{const e=_m(He(r));return e&&e()}:Cc(r)}class pt{constructor(e,n){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=Ae({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}function Fo(r,e){void 0===e&&(e=r);for(let n=0;n<r.length;n++){let o=r[n];Array.isArray(o)?(e===r&&(e=r.slice(0,n)),Fo(o,e)):e!==r&&e.push(o)}return e}function Xs(r,e){r.forEach(n=>Array.isArray(n)?Xs(n,e):e(n))}function vb(r,e,n){e>=r.length?r.push(n):r.splice(e,0,n)}function Bc(r,e){return e>=r.length-1?r.pop():r.splice(e,1)[0]}const ta={},gd="ngTempTokenPath",wl=/\n/gm,xn="__source",xl=dn({provide:String,useValue:dn});let Dr;function Ti(r){const e=Dr;return Dr=r,e}function qc(r,e=ft.Default){if(void 0===Dr)throw new Me(203,"");return null===Dr?$i(r,void 0,e):Dr.get(r,e&ft.Optional?null:void 0,e)}function he(r,e=ft.Default){return(function L0(){return O0}()||qc)(He(r),e)}const yd=he;function Cm(r){const e=[];for(let n=0;n<r.length;n++){const o=He(r[n]);if(Array.isArray(o)){if(0===o.length)throw new Me(900,"");let a,u=ft.Default;for(let h=0;h<o.length;h++){const g=o[h],v=Dm(g);"number"==typeof v?-1===v?a=g.token:u|=v:a=g}e.push(he(a,u))}else e.push(he(o))}return e}function Dm(r){return r.__NG_DI_FLAG__}var Li=(()=>((Li=Li||{})[Li.Important=1]="Important",Li[Li.DashCase=2]="DashCase",Li))();const zo="__ngContext__";function zr(r,e){r[zo]=e}function El(r){const e=function Sl(r){return r[zo]||null}(r);return e?Array.isArray(e)?e:e.lView:null}function na(r,e){return undefined(r,e)}function vo(r){const e=r[3];return Ii(e)?e[3]:e}function Rm(r){return Nb(r[13])}function Sd(r){return Nb(r[4])}function Nb(r){for(;null!==r&&!Ii(r);)r=r[4];return r}function Dl(r,e,n,o,a){if(null!=o){let u,h=!1;Ii(o)?u=o:Ui(o)&&(h=!0,o=o[0]);const g=Pn(o);0===r&&null!==n?null==a?Lm(e,n,g):kl(e,n,g,a||null,!0):1===r&&null!==n?kl(e,n,g,a||null,!0):2===r?function qb(r,e,n){const o=Dd(r,e);o&&function Pm(r,e,n,o){Xn(r)?r.removeChild(e,n,o):e.removeChild(n)}(r,o,e,n)}(e,g,h):3===r&&e.destroyNode(g),null!=u&&function ra(r,e,n,o,a){const u=n[7];u!==Pn(n)&&Dl(e,r,o,u,a);for(let g=10;g<n.length;g++){const v=n[g];Jc(v[1],v,r,e,o,u)}}(e,r,u,n,a)}}function Mm(r,e,n){if(Xn(r))return r.createElement(e,n);{const o=null!==n?function aS(r){const e=r.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(n):null;return null===o?r.createElement(e):r.createElementNS(o,e)}}function Bb(r,e){const n=r[9],o=n.indexOf(e),a=e[3];1024&e[2]&&(e[2]&=-1025,am(a,-1)),n.splice(o,1)}function Wc(r,e){if(r.length<=10)return;const n=10+e,o=r[n];if(o){const a=o[17];null!==a&&a!==r&&Bb(a,o),e>0&&(r[n-1][4]=o[4]);const u=Bc(r,10+e);!function jb(r,e){Jc(r,e,e[11],2,null,null),e[0]=null,e[6]=null}(o[1],o);const h=u[19];null!==h&&h.detachView(u[1]),o[3]=null,o[4]=null,o[2]&=-129}return o}function ms(r,e){if(!(256&e[2])){const n=e[11];Xn(n)&&n.destroyNode&&Jc(r,e,n,3,null,null),function DS(r){let e=r[13];if(!e)return Kc(r[1],r);for(;e;){let n=null;if(Ui(e))n=e[13];else{const o=e[10];o&&(n=o)}if(!n){for(;e&&!e[4]&&e!==r;)Ui(e)&&Kc(e[1],e),e=e[3];null===e&&(e=r),Ui(e)&&Kc(e[1],e),n=e&&e[4]}e=n}}(e)}}function Kc(r,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function Qc(r,e){let n;if(null!=r&&null!=(n=r.destroyHooks))for(let o=0;o<n.length;o+=2){const a=e[n[o]];if(!(a instanceof Rc)){const u=n[o+1];if(Array.isArray(u))for(let h=0;h<u.length;h+=2){const g=a[u[h]],v=u[h+1];try{v.call(g)}finally{}}else try{u.call(a)}finally{}}}}(r,e),function Oh(r,e){const n=r.cleanup,o=e[7];let a=-1;if(null!==n)for(let u=0;u<n.length-1;u+=2)if("string"==typeof n[u]){const h=n[u+1],g="function"==typeof h?h(e):Pn(e[h]),v=o[a=n[u+2]],x=n[u+3];"boolean"==typeof x?g.removeEventListener(n[u],v,x):x>=0?o[a=x]():o[a=-x].unsubscribe(),u+=2}else{const h=o[a=n[u+1]];n[u].call(h)}if(null!==o){for(let u=a+1;u<o.length;u++)o[u]();e[7]=null}}(r,e),1===e[1].type&&Xn(e[11])&&e[11].destroy();const n=e[17];if(null!==n&&Ii(e[3])){n!==e[3]&&Bb(n,e);const o=e[19];null!==o&&o.detachView(r)}}}function Om(r,e,n){return function Yc(r,e,n){let o=e;for(;null!==o&&40&o.type;)o=(e=o).parent;if(null===o)return n[0];if(2&o.flags){const a=r.data[o.directiveStart].encapsulation;if(a===me.None||a===me.Emulated)return null}return Wi(o,n)}(r,e.parent,n)}function kl(r,e,n,o,a){Xn(r)?r.insertBefore(e,n,o,a):e.insertBefore(n,o,a)}function Lm(r,e,n){Xn(r)?r.appendChild(e,n):e.appendChild(n)}function Qn(r,e,n,o,a){null!==o?kl(r,e,n,o,a):Lm(r,e,n)}function Dd(r,e){return Xn(r)?r.parentNode(e):e.parentNode}let Al=function Nm(r,e,n){return 40&r.type?Wi(r,n):null};function pr(r,e,n,o){const a=Om(r,o,e),u=e[11],g=function Lh(r,e,n){return Al(r,e,n)}(o.parent||e[6],o,e);if(null!=a)if(Array.isArray(n))for(let v=0;v<n.length;v++)Qn(u,a,n[v],g,!1);else Qn(u,a,n,g,!1)}function Zc(r,e){if(null!==e){const n=e.type;if(3&n)return Wi(e,r);if(4&n)return Xc(-1,r[e.index]);if(8&n){const o=e.child;if(null!==o)return Zc(r,o);{const a=r[e.index];return Ii(a)?Xc(-1,a):Pn(a)}}if(32&n)return na(e,r)()||Pn(r[e.index]);{const o=kd(r,e);return null!==o?Array.isArray(o)?o[0]:Zc(vo(r[16]),o):Zc(r,e.next)}}return null}function kd(r,e){return null!==e?r[16][6].projection[e.projection]:null}function Xc(r,e){const n=10+r+1;if(n<e.length){const o=e[n],a=o[1].firstChild;if(null!==a)return Zc(o,a)}return e[7]}function Xr(r,e,n,o,a,u,h){for(;null!=n;){const g=o[n.index],v=n.type;if(h&&0===e&&(g&&zr(Pn(g),o),n.flags|=4),64!=(64&n.flags))if(8&v)Xr(r,e,n.child,o,a,u,!1),Dl(e,r,a,g,u);else if(32&v){const x=na(n,o);let R;for(;R=x();)Dl(e,r,a,R,u);Dl(e,r,a,g,u)}else 16&v?Fm(r,e,o,n,a,u):Dl(e,r,a,g,u);n=h?n.projectionNext:n.next}}function Jc(r,e,n,o,a,u){Xr(n,o,r.firstChild,e,a,u,!1)}function Fm(r,e,n,o,a,u){const h=n[16],v=h[6].projection[o.projection];if(Array.isArray(v))for(let x=0;x<v.length;x++)Dl(e,r,a,v[x],u);else Xr(r,e,v,h[3],a,u,!0)}function Ad(r,e,n){Xn(r)?r.setAttribute(e,"style",n):e.style.cssText=n}function Ph(r,e,n){Xn(r)?""===n?r.removeAttribute(e,"class"):r.setAttribute(e,"class",n):e.className=n}function Md(r){return r.ngOriginalError}function IR(r,...e){r.error(...e)}class Re{constructor(){this._console=console}handleError(e){const n=this._findOriginalError(e),o=function vi(r){return r&&r.ngErrorLogger||IR}(e);o(this._console,"ERROR",e),n&&o(this._console,"ORIGINAL ERROR",n)}_findOriginalError(e){let n=e&&Md(e);for(;n&&Md(n);)n=Md(n);return n||null}}const ZS=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ot))();function zn(r){return r instanceof Function?r():r}function ys(r,e,n){let o=r.length;for(;;){const a=r.indexOf(e,n);if(-1===a)return a;if(0===a||r.charCodeAt(a-1)<=32){const u=e.length;if(a+u===o||r.charCodeAt(a+u)<=32)return a}n=a+1}}const oa="ng-template";function TR(r,e,n){let o=0;for(;o<r.length;){let a=r[o++];if(n&&"class"===a){if(a=r[o],-1!==ys(a.toLowerCase(),e,0))return!0}else if(1===a){for(;o<r.length&&"string"==typeof(a=r[o++]);)if(a.toLowerCase()===e)return!0;return!1}}return!1}function a1(r){return 4===r.type&&r.value!==oa}function eE(r,e,n){return e===(4!==r.type||n?r.value:oa)}function tE(r,e,n){let o=4;const a=r.attrs||[],u=function l1(r){for(let e=0;e<r.length;e++)if(ab(r[e]))return e;return r.length}(a);let h=!1;for(let g=0;g<e.length;g++){const v=e[g];if("number"!=typeof v){if(!h)if(4&o){if(o=2|1&o,""!==v&&!eE(r,v,n)||""===v&&1===e.length){if(Go(o))return!1;h=!0}}else{const x=8&o?v:e[++g];if(8&o&&null!==r.attrs){if(!TR(r.attrs,x,n)){if(Go(o))return!1;h=!0}continue}const L=nE(8&o?"class":v,a,a1(r),n);if(-1===L){if(Go(o))return!1;h=!0;continue}if(""!==x){let F;F=L>u?"":a[L+1].toLowerCase();const U=8&o?F:null;if(U&&-1!==ys(U,x,0)||2&o&&x!==F){if(Go(o))return!1;h=!0}}}}else{if(!h&&!Go(o)&&!Go(v))return!1;if(h&&Go(v))continue;h=!1,o=v|1&o}}return Go(o)||h}function Go(r){return 0==(1&r)}function nE(r,e,n,o){if(null===e)return-1;let a=0;if(o||!n){let u=!1;for(;a<e.length;){const h=e[a];if(h===r)return a;if(3===h||6===h)u=!0;else{if(1===h||2===h){let g=e[++a];for(;"string"==typeof g;)g=e[++a];continue}if(4===h)break;if(0===h){a+=4;continue}}a+=u?1:2}return-1}return function Uo(r,e){let n=r.indexOf(4);if(n>-1)for(n++;n<r.length;){const o=r[n];if("number"==typeof o)return-1;if(o===e)return n;n++}return-1}(e,r)}function rE(r,e,n=!1){for(let o=0;o<e.length;o++)if(tE(r,e[o],n))return!0;return!1}function Vr(r,e){return r?":not("+e.trim()+")":e}function Ar(r){let e=r[0],n=1,o=2,a="",u=!1;for(;n<r.length;){let h=r[n];if("string"==typeof h)if(2&o){const g=r[++n];a+="["+h+(g.length>0?'="'+g+'"':"")+"]"}else 8&o?a+="."+h:4&o&&(a+=" "+h);else""!==a&&!Go(h)&&(e+=Vr(u,a),a=""),o=h,u=u||!Go(o);n++}return""!==a&&(e+=Vr(u,a)),e}const et={};function Kh(r,e){const n=r.contentQueries;if(null!==n)for(let o=0;o<n.length;o+=2){const a=n[o],u=n[o+1];if(-1!==u){const h=r.data[u];vh(a),h.contentQueries(2,e[u],u)}}}function Qh(r,e,n,o,a,u,h,g,v,x){const R=e.blueprint.slice();return R[0]=a,R[2]=140|o,X0(R),R[3]=R[15]=r,R[8]=n,R[10]=h||r&&r[10],R[11]=g||r&&r[11],R[12]=v||r&&r[12]||null,R[9]=x||r&&r[9]||null,R[6]=u,R[16]=2==e.type?r[16]:R,R}function jl(r,e,n,o,a){let u=r.data[e];if(null===u)u=function Zm(r,e,n,o,a){const u=J0(),h=Ac(),v=r.data[e]=function ey(r,e,n,o,a,u){return{type:n,index:o,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:a,attrs:u,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,h?u:u&&u.parent,n,e,o,a);return null===r.firstChild&&(r.firstChild=v),null!==u&&(h?null==u.child&&null!==v.parent&&(u.child=v):null===u.next&&(u.next=v)),v}(r,e,n,o,a),function lm(){return it.lFrame.inI18n}()&&(u.flags|=64);else if(64&u.type){u.type=n,u.value=o,u.attrs=a;const h=function yh(){const r=it.lFrame,e=r.currentTNode;return r.isParent?e:e.parent}();u.injectorIndex=null===h?-1:h.injectorIndex}return Ki(u,!0),u}function lu(r,e,n,o){if(0===n)return-1;const a=e.length;for(let u=0;u<n;u++)e.push(o),r.blueprint.push(o),r.data.push(null);return a}function Bl(r,e,n){od(e);try{const o=r.viewQuery;null!==o&&du(1,o,n);const a=r.template;null!==a&&Xm(r,e,a,1,n),r.firstCreatePass&&(r.firstCreatePass=!1),r.staticContentQueries&&Kh(r,e),r.staticViewQueries&&du(2,r.viewQuery,n);const u=r.components;null!==u&&function p1(r,e){for(let n=0;n<e.length;n++)eo(r,e[n])}(e,u)}catch(o){throw r.firstCreatePass&&(r.incompleteFirstPass=!0,r.firstCreatePass=!1),o}finally{e[2]&=-5,hm()}}function Pa(r,e,n,o){const a=e[2];if(256!=(256&a)){od(e);try{X0(e),function tb(r){return it.lFrame.bindingIndex=r}(r.bindingStartIndex),null!==n&&Xm(r,e,n,2,o);const h=3==(3&a);if(h){const x=r.preOrderCheckHooks;null!==x&&wh(e,x,null)}else{const x=r.preOrderHooks;null!==x&&gm(e,x,0,null),sb(e,0)}if(function sy(r){for(let e=Rm(r);null!==e;e=Sd(e)){if(!e[2])continue;const n=e[9];for(let o=0;o<n.length;o++){const a=n[o],u=a[3];0==(1024&a[2])&&am(u,1),a[2]|=1024}}}(e),function oy(r){for(let e=Rm(r);null!==e;e=Sd(e))for(let n=10;n<e.length;n++){const o=e[n],a=o[1];sm(o)&&Pa(a,o,a.template,o[8])}}(e),null!==r.contentQueries&&Kh(r,e),h){const x=r.contentCheckHooks;null!==x&&wh(e,x)}else{const x=r.contentHooks;null!==x&&gm(e,x,1),sb(e,1)}!function au(r,e){const n=r.hostBindingOpCodes;if(null!==n)try{for(let o=0;o<n.length;o++){const a=n[o];if(a<0)gl(~a);else{const u=a,h=n[++o],g=n[++o];cm(h,u),g(2,e[u])}}}finally{gl(-1)}}(r,e);const g=r.components;null!==g&&function h1(r,e){for(let n=0;n<e.length;n++)zd(r,e[n])}(e,g);const v=r.viewQuery;if(null!==v&&du(2,v,o),h){const x=r.viewCheckHooks;null!==x&&wh(e,x)}else{const x=r.viewHooks;null!==x&&gm(e,x,2),sb(e,2)}!0===r.firstUpdatePass&&(r.firstUpdatePass=!1),e[2]&=-73,1024&e[2]&&(e[2]&=-1025,am(e[3],-1))}finally{hm()}}}function lE(r,e,n,o){const a=e[10],h=Y0(e);try{!h&&a.begin&&a.begin(),h&&Bl(r,e,o),Pa(r,e,n,o)}finally{!h&&a.end&&a.end()}}function Xm(r,e,n,o,a){const u=function Mi(){return it.lFrame.selectedIndex}(),h=2&o;try{gl(-1),h&&e.length>20&&function Od(r,e,n,o){if(!o)if(3==(3&e[2])){const u=r.preOrderCheckHooks;null!==u&&wh(e,u,n)}else{const u=r.preOrderHooks;null!==u&&gm(e,u,0,n)}gl(n)}(r,e,20,!1),n(o,a)}finally{gl(u)}}function Jm(r){const e=r.tView;return null===e||e.incompleteFirstPass?r.tView=cu(1,null,r.template,r.decls,r.vars,r.directiveDefs,r.pipeDefs,r.viewQuery,r.schemas,r.consts):e}function cu(r,e,n,o,a,u,h,g,v,x){const R=20+o,L=R+a,F=function cE(r,e){const n=[];for(let o=0;o<e;o++)n.push(o<r?null:et);return n}(R,L),U="function"==typeof x?x():x;return F[1]={type:r,blueprint:F,template:n,queries:null,viewQuery:g,declTNode:e,data:F.slice().fill(null,R),bindingStartIndex:R,expandoStartIndex:L,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof u?u():u,pipeRegistry:"function"==typeof h?h():h,firstChild:null,schemas:v,consts:U,incompleteFirstPass:!1}}function uE(r,e,n,o){const a=function np(r){return r[7]||(r[7]=[])}(e);null===n?a.push(o):(a.push(n),r.firstCreatePass&&function vE(r){return r.cleanup||(r.cleanup=[])}(r).push(o,a.length-1))}function ty(r,e,n){for(let o in r)if(r.hasOwnProperty(o)){const a=r[o];(n=null===n?{}:n).hasOwnProperty(o)?n[o].push(e,a):n[o]=[e,a]}return n}function fE(r,e,n,o,a,u){const h=u.hostBindings;if(h){let g=r.hostBindingOpCodes;null===g&&(g=r.hostBindingOpCodes=[]);const v=~e.index;(function bi(r){let e=r.length;for(;e>0;){const n=r[--e];if("number"==typeof n&&n<0)return n}return 0})(g)!=v&&g.push(v),g.push(o,a,h)}}function v1(r,e){null!==r.hostBindings&&r.hostBindings(1,e)}function ry(r,e){e.flags|=2,(r.components||(r.components=[])).push(e.index)}function VR(r,e,n){if(n){if(e.exportAs)for(let o=0;o<e.exportAs.length;o++)n[e.exportAs[o]]=r;cs(e)&&(n[""]=r)}}function Xh(r,e,n){r.flags|=1,r.directiveStart=e,r.directiveEnd=e+n,r.providerIndexes=e}function gE(r,e,n,o,a){r.data[o]=a;const u=a.factory||(a.factory=Cc(a.type)),h=new Rc(u,cs(a),null);r.blueprint[o]=h,n[o]=h,fE(r,e,0,o,lu(r,n,a.hostVars,et),a)}function mE(r,e,n){const o=Wi(e,r),a=Jm(n),u=r[10],h=Fa(r,Qh(r,a,null,n.onPush?64:16,o,e,u,u.createRenderer(o,n),null,null));r[e.index]=h}function oi(r,e,n,o,a,u){const h=u[e];if(null!==h){const g=o.setInput;for(let v=0;v<h.length;){const x=h[v++],R=h[v++],L=h[v++];null!==g?o.setInput(n,L,x,R):n[R]=L}}}function ep(r,e){let n=null,o=0;for(;o<e.length;){const a=e[o];if(0!==a)if(5!==a){if("number"==typeof a)break;r.hasOwnProperty(a)&&(null===n&&(n=[]),n.push(a,r[a],e[o+1])),o+=2}else o+=2;else o+=4}return n}function zd(r,e){const n=yt(e,r);if(sm(n)){const o=n[1];80&n[2]?Pa(o,n,o.template,n[8]):n[5]>0&&ay(n)}}function ay(r){for(let o=Rm(r);null!==o;o=Sd(o))for(let a=10;a<o.length;a++){const u=o[a];if(1024&u[2]){const h=u[1];Pa(h,u,h.template,u[8])}else u[5]>0&&ay(u)}const n=r[1].components;if(null!==n)for(let o=0;o<n.length;o++){const a=yt(n[o],r);sm(a)&&a[5]>0&&ay(a)}}function eo(r,e){const n=yt(e,r),o=n[1];(function Ir(r,e){for(let n=e.length;n<r.blueprint.length;n++)e.push(r.blueprint[n])})(o,n),Bl(o,n,n[8])}function Fa(r,e){return r[13]?r[14][4]=e:r[13]=e,r[14]=e,e}function Pi(r,e,n){const o=e[10];o.begin&&o.begin();try{Pa(r,e,r.template,n)}catch(a){throw function cy(r,e){const n=r[9],o=n?n.get(Re,null):null;o&&o.handleError(e)}(e,a),a}finally{o.end&&o.end()}}function bs(r){!function _1(r){for(let e=0;e<r.components.length;e++){const n=r.components[e],o=El(n),a=o[1];lE(a,o,a.template,n)}}(r[8])}function du(r,e,n){vh(0),e(r,n)}const yE=(()=>Promise.resolve(null))();function rp(r,e,n){let o=n?r.styles:null,a=n?r.classes:null,u=0;if(null!==e)for(let h=0;h<e.length;h++){const g=e[h];"number"==typeof g?u=g:1==u?a=Ug(a,g):2==u&&(o=Ug(o,g+": "+e[++h]+";"))}n?r.styles=o:r.stylesWithoutHost=o,n?r.classes=a:r.classesWithoutHost=a}const dy=new pt("INJECTOR",-1);class ql{get(e,n=ta){if(n===ta){const o=new Error(`NullInjectorError: No provider for ${Mt(e)}!`);throw o.name="NullInjectorError",o}return n}}const fy=new pt("Set Injector scope."),Vd={},$R={};let x1;function S1(){return void 0===x1&&(x1=new ql),x1}function xE(r,e=null,n=null,o){const a=SE(r,e,n,o);return a._resolveInjectorDefTypes(),a}function SE(r,e=null,n=null,o){return new EE(r,n,e||S1(),o)}class EE{constructor(e,n,o,a=null){this.parent=o,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const u=[];n&&Xs(n,g=>this.processProvider(g,e,n)),Xs([e],g=>this.processInjectorType(g,[],u)),this.records.set(dy,Vl(void 0,this));const h=this.records.get(fy);this.scope=null!=h?h.value:null,this.source=a||("object"==typeof e?null:Mt(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,n=ta,o=ft.Default){this.assertNotDestroyed();const a=Ti(this),u=ba(void 0);try{if(!(o&ft.SkipSelf)){let g=this.records.get(e);if(void 0===g){const v=function vy(r){return"function"==typeof r||"object"==typeof r&&r instanceof pt}(e)&&I0(e);g=v&&this.injectableDefInScope(v)?Vl(hy(e),Vd):null,this.records.set(e,g)}if(null!=g)return this.hydrate(e,g)}return(o&ft.Self?S1():this.parent).get(e,n=o&ft.Optional&&n===ta?null:n)}catch(h){if("NullInjectorError"===h.name){if((h[gd]=h[gd]||[]).unshift(Mt(e)),a)throw h;return function _S(r,e,n,o){const a=r[gd];throw e[xn]&&a.unshift(e[xn]),r.message=function Ia(r,e,n,o=null){r=r&&"\n"===r.charAt(0)&&"\u0275"==r.charAt(1)?r.substr(2):r;let a=Mt(e);if(Array.isArray(e))a=e.map(Mt).join(" -> ");else if("object"==typeof e){let u=[];for(let h in e)if(e.hasOwnProperty(h)){let g=e[h];u.push(h+":"+("string"==typeof g?JSON.stringify(g):Mt(g)))}a=`{${u.join(", ")}}`}return`${n}${o?"("+o+")":""}[${a}]: ${r.replace(wl,"\n ")}`}("\n"+r.message,a,n,o),r.ngTokenPath=a,r[gd]=null,r}(h,e,"R3InjectorError",this.source)}throw h}finally{ba(u),Ti(a)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((o,a)=>e.push(Mt(a))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Me(205,!1)}processInjectorType(e,n,o){if(!(e=He(e)))return!1;let a=Qg(e);const u=null==a&&e.ngModule||void 0,h=void 0===u?e:u,g=-1!==o.indexOf(h);if(void 0!==u&&(a=Qg(u)),null==a)return!1;if(null!=a.imports&&!g){let R;o.push(h);try{Xs(a.imports,L=>{this.processInjectorType(L,n,o)&&(void 0===R&&(R=[]),R.push(L))})}finally{}if(void 0!==R)for(let L=0;L<R.length;L++){const{ngModule:F,providers:U}=R[L];Xs(U,Z=>this.processProvider(Z,F,U||fn))}}this.injectorDefTypes.add(h);const v=Cc(h)||(()=>new h);this.records.set(h,Vl(v,Vd));const x=a.providers;if(null!=x&&!g){const R=e;Xs(x,L=>this.processProvider(L,R,x))}return void 0!==u&&void 0!==e.providers}processProvider(e,n,o){let a=Hl(e=He(e))?e:He(e&&e.provide);const u=function GR(r,e,n){return E1(r)?Vl(void 0,r.useValue):Vl(function CE(r,e,n){let o;if(Hl(r)){const a=He(r);return Cc(a)||hy(a)}if(E1(r))o=()=>He(r.useValue);else if(function C1(r){return!(!r||!r.useFactory)}(r))o=()=>r.useFactory(...Cm(r.deps||[]));else if(function ln(r){return!(!r||!r.useExisting)}(r))o=()=>he(He(r.useExisting));else{const a=He(r&&(r.useClass||r.provide));if(!function my(r){return!!r.deps}(r))return Cc(a)||hy(a);o=()=>new a(...Cm(r.deps))}return o}(r),Vd)}(e);if(Hl(e)||!0!==e.multi)this.records.get(a);else{let h=this.records.get(a);h||(h=Vl(void 0,Vd,!0),h.factory=()=>Cm(h.multi),this.records.set(a,h)),a=e,h.multi.push(e)}this.records.set(a,u)}hydrate(e,n){return n.value===Vd&&(n.value=$R,n.value=n.factory()),"object"==typeof n.value&&n.value&&function yy(r){return null!==r&&"object"==typeof r&&"function"==typeof r.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}injectableDefInScope(e){if(!e.providedIn)return!1;const n=He(e.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function hy(r){const e=I0(r),n=null!==e?e.factory:Cc(r);if(null!==n)return n;if(r instanceof pt)throw new Me(204,!1);if(r instanceof Function)return function py(r){const e=r.length;if(e>0)throw function bl(r,e){const n=[];for(let o=0;o<r;o++)n.push(e);return n}(e,"?"),new Me(204,!1);const n=function R0(r){const e=r&&(r[Yg]||r[T0]);if(e){const n=function Qx(r){if(r.hasOwnProperty("name"))return r.name;const e=(""+r).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(r);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),e}return null}(r);return null!==n?()=>n.factory(r):()=>new r}(r);throw new Me(204,!1)}function Vl(r,e,n=!1){return{factory:r,value:e,multi:n?[]:void 0}}function E1(r){return null!==r&&"object"==typeof r&&xl in r}function Hl(r){return"function"==typeof r}let si=(()=>{class r{static create(n,o){var a;if(Array.isArray(n))return xE({name:""},o,n,"");{const u=null!==(a=n.name)&&void 0!==a?a:"";return xE({name:u},n.parent,n.providers,u)}}}return r.THROW_IF_NOT_FOUND=ta,r.NULL=new ql,r.\u0275prov=Ae({token:r,providedIn:"any",factory:()=>he(dy)}),r.__NG_ELEMENT_ID__=-1,r})();function ZR(r,e){pm(El(r)[1],Jn())}function rt(r){let e=function RE(r){return Object.getPrototypeOf(r.prototype).constructor}(r.type),n=!0;const o=[r];for(;e;){let a;if(cs(r))a=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Me(903,"");a=e.\u0275dir}if(a){if(n){o.push(a);const h=r;h.inputs=Hd(r.inputs),h.declaredInputs=Hd(r.declaredInputs),h.outputs=Hd(r.outputs);const g=a.hostBindings;g&&lp(r,g);const v=a.viewQuery,x=a.contentQueries;if(v&&JR(r,v),x&&L1(r,x),Gg(r.inputs,a.inputs),Gg(r.declaredInputs,a.declaredInputs),Gg(r.outputs,a.outputs),cs(a)&&a.data.animation){const R=r.data;R.animation=(R.animation||[]).concat(a.data.animation)}}const u=a.features;if(u)for(let h=0;h<u.length;h++){const g=u[h];g&&g.ngInherit&&g(r),g===rt&&(n=!1)}}e=Object.getPrototypeOf(e)}!function ME(r){let e=0,n=null;for(let o=r.length-1;o>=0;o--){const a=r[o];a.hostVars=e+=a.hostVars,a.hostAttrs=Mc(a.hostAttrs,n=Mc(n,a.hostAttrs))}}(o)}function Hd(r){return r===_c?{}:r===fn?[]:r}function JR(r,e){const n=r.viewQuery;r.viewQuery=n?(o,a)=>{e(o,a),n(o,a)}:e}function L1(r,e){const n=r.contentQueries;r.contentQueries=n?(o,a,u)=>{e(o,a,u),n(o,a,u)}:e}function lp(r,e){const n=r.hostBindings;r.hostBindings=n?(o,a)=>{e(o,a),n(o,a)}:e}let Sy=null;function Gd(){if(!Sy){const r=Ot.Symbol;if(r&&r.iterator)Sy=r.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let n=0;n<e.length;++n){const o=e[n];"entries"!==o&&"size"!==o&&Map.prototype[o]===Map.prototype.entries&&(Sy=o)}}}return Sy}function oe(r,e=ft.Default){const n=ge();return null===n?he(r,e):bm(Jn(),n,He(r),e)}function G1(r,e,n,o,a){const h=a?"class":"style";!function _E(r,e,n,o,a){for(let u=0;u<n.length;){const h=n[u++],g=n[u++],v=e[h],x=r.data[h];null!==x.setInput?x.setInput(v,a,o,g):v[g]=a}}(r,n,e.inputs[h],h,o)}function Iy(r,e,n,o){const a=ge(),u=kt(),h=20+r,g=a[11],v=a[h]=Mm(g,e,function ob(){return it.lFrame.currentNamespace}()),x=u.firstCreatePass?function lM(r,e,n,o,a,u,h){const g=e.consts,x=jl(e,r,2,a,Ea(g,u));return function y1(r,e,n,o){let a=!1;if(rd()){const u=function b1(r,e,n){const o=r.directiveRegistry;let a=null;if(o)for(let u=0;u<o.length;u++){const h=o[u];rE(n,h.selectors,!1)&&(a||(a=[]),Dh(Ch(n,e),r,h.type),cs(h)?(ry(r,n),a.unshift(h)):a.push(h))}return a}(r,e,n),h=null===o?null:{"":-1};if(null!==u){a=!0,Xh(n,r.data.length,u.length);for(let R=0;R<u.length;R++){const L=u[R];L.providersResolver&&L.providersResolver(L)}let g=!1,v=!1,x=lu(r,e,u.length,null);for(let R=0;R<u.length;R++){const L=u[R];n.mergedAttrs=Mc(n.mergedAttrs,L.hostAttrs),gE(r,n,e,x,L),VR(x,L,h),null!==L.contentQueries&&(n.flags|=8),(null!==L.hostBindings||null!==L.hostAttrs||0!==L.hostVars)&&(n.flags|=128);const F=L.type.prototype;!g&&(F.ngOnChanges||F.ngOnInit||F.ngDoCheck)&&((r.preOrderHooks||(r.preOrderHooks=[])).push(n.index),g=!0),!v&&(F.ngOnChanges||F.ngDoCheck)&&((r.preOrderCheckHooks||(r.preOrderCheckHooks=[])).push(n.index),v=!0),x++}!function zl(r,e){const o=e.directiveEnd,a=r.data,u=e.attrs,h=[];let g=null,v=null;for(let x=e.directiveStart;x<o;x++){const R=a[x],L=R.inputs,F=null===u||a1(e)?null:ep(L,u);h.push(F),g=ty(L,x,g),v=ty(R.outputs,x,v)}null!==g&&(g.hasOwnProperty("class")&&(e.flags|=16),g.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=h,e.inputs=g,e.outputs=v}(r,n)}h&&function pE(r,e,n){if(e){const o=r.localNames=[];for(let a=0;a<e.length;a+=2){const u=n[e[a+1]];if(null==u)throw new Me(-301,!1);o.push(e[a],u)}}}(n,o,h)}return n.mergedAttrs=Mc(n.mergedAttrs,n.attrs),a}(e,n,x,Ea(g,h)),null!==x.attrs&&rp(x,x.attrs,!1),null!==x.mergedAttrs&&rp(x,x.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,x),x}(h,u,a,0,e,n,o):u.data[h];Ki(x,!0);const R=x.mergedAttrs;null!==R&&ym(g,v,R);const L=x.classes;null!==L&&Ph(g,v,L);const F=x.styles;return null!==F&&Ad(g,v,F),64!=(64&x.flags)&&pr(u,a,v,x),0===function dl(){return it.lFrame.elementDepthCount}()&&zr(v,a),function fl(){it.lFrame.elementDepthCount++}(),function uh(r){return 1==(1&r.flags)}(x)&&(function Yh(r,e,n){!rd()||(function hE(r,e,n,o){const a=n.directiveStart,u=n.directiveEnd;r.firstCreatePass||Ch(n,e),zr(o,e);const h=n.initialInputs;for(let g=a;g<u;g++){const v=r.data[g],x=cs(v);x&&mE(e,n,v);const R=Da(e,r,g,n);zr(R,e),null!==h&&oi(0,g-a,R,v,0,h),x&&(yt(n.index,e)[8]=R)}}(r,e,n,Wi(n,e)),128==(128&n.flags)&&function Jt(r,e,n){const o=n.directiveStart,a=n.directiveEnd,h=n.index,g=function um(){return it.lFrame.currentDirectiveIndex}();try{gl(h);for(let v=o;v<a;v++){const x=r.data[v],R=e[v];dm(v),(null!==x.hostBindings||0!==x.hostVars||null!==x.hostAttrs)&&v1(x,R)}}finally{gl(-1),dm(g)}}(r,e,n))}(u,a,x),function g1(r,e,n){if(B0(e)){const a=e.directiveEnd;for(let u=e.directiveStart;u<a;u++){const h=r.data[u];h.contentQueries&&h.contentQueries(1,n[u],u)}}}(u,x,a)),null!==o&&function jd(r,e,n=Wi){const o=e.localNames;if(null!==o){let a=e.index+1;for(let u=0;u<o.length;u+=2){const h=o[u+1],g=-1===h?n(e,r):r[h];r[a++]=g}}}(a,x),Iy}function gu(){let r=Jn();Ac()?function pl(){it.lFrame.isParent=!1}():(r=r.parent,Ki(r,!1));const e=r;!function mh(){it.lFrame.elementDepthCount--}();const n=kt();return n.firstCreatePass&&(pm(n,r),B0(r)&&n.queries.elementEnd(r)),null!=e.classesWithoutHost&&function dS(r){return 0!=(16&r.flags)}(e)&&G1(n,e,ge(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function fS(r){return 0!=(32&r.flags)}(e)&&G1(n,e,ge(),e.stylesWithoutHost,!1),gu}function rf(r,e,n,o){return Iy(r,e,n,o),gu(),rf}function K1(r){return!!r&&"function"==typeof r.then}const cM=function QE(r){return!!r&&"function"==typeof r.subscribe},bp="en-US";let h_=bp;class $a{}class QC{resolveComponentFactory(e){throw function n2(r){const e=Error(`No component factory found for ${Mt(r)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=r,e}(e)}}let Cu=(()=>{class r{}return r.NULL=new QC,r})();function r2(){return _f(Jn(),ge())}function _f(r,e){return new Ut(Wi(r,e))}let Ut=(()=>{class r{constructor(n){this.nativeElement=n}}return r.__NG_ELEMENT_ID__=r2,r})();function C_(r){return r instanceof Ut?r.nativeElement:r}class Ze{}let s2=(()=>{class r{}return r.\u0275prov=Ae({token:r,providedIn:"root",factory:()=>null}),r})();class Ep{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const ai=new Ep("13.4.0"),Do={};function Jy(r,e,n,o,a=!1){for(;null!==n;){const u=e[n.index];if(null!==u&&o.push(Pn(u)),Ii(u))for(let g=10;g<u.length;g++){const v=u[g],x=v[1].firstChild;null!==x&&Jy(v[1],v,x,o)}const h=n.type;if(8&h)Jy(r,e,n.child,o);else if(32&h){const g=na(n,e);let v;for(;v=g();)o.push(v)}else if(16&h){const g=kd(e,n);if(Array.isArray(g))o.push(...g);else{const v=vo(e[16]);Jy(v[1],v,g,o,!0)}}n=a?n.projectionNext:n.next}return o}class ev{constructor(e,n){this._lView=e,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const e=this._lView,n=e[1];return Jy(n,e,n.firstChild,[])}get context(){return this._lView[8]}set context(e){this._lView[8]=e}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[3];if(Ii(e)){const n=e[8],o=n?n.indexOf(this):-1;o>-1&&(Wc(e,o),Bc(n,o))}this._attachedToViewContainer=!1}ms(this._lView[1],this._lView)}onDestroy(e){uE(this._lView[1],this._lView,null,e)}markForCheck(){!function qd(r){for(;r;){r[2]|=64;const e=vo(r);if(z0(r)&&!e)return r;r=e}return null}(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Pi(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Me(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Tm(r,e){Jc(r,e,e[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Me(902,"");this._appRef=e}}class a2 extends ev{constructor(e){super(e),this._view=e}detectChanges(){bs(this._view)}checkNoChanges(){}get context(){return null}}class YC extends Cu{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const n=Ln(e);return new Cp(n,this.ngModule)}}function ZC(r){const e=[];for(let n in r)r.hasOwnProperty(n)&&e.push({propName:r[n],templateName:n});return e}class Cp extends $a{constructor(e,n){super(),this.componentDef=e,this.ngModule=n,this.componentType=e.type,this.selector=function ii(r){return r.map(Ar).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return ZC(this.componentDef.inputs)}get outputs(){return ZC(this.componentDef.outputs)}create(e,n,o,a){const u=(a=a||this.ngModule)?function tv(r,e){return{get:(n,o,a)=>{const u=r.get(n,Do,a);return u!==Do||o===Do?u:e.get(n,o,a)}}}(e,a.injector):e,h=u.get(Ze,im),g=u.get(s2,null),v=h.createRenderer(null,this.componentDef),x=this.componentDef.selectors[0][0]||"div",R=o?function Bd(r,e,n){if(Xn(r))return r.selectRootElement(e,n===me.ShadowDom);let o="string"==typeof e?r.querySelector(e):e;return o.textContent="",o}(v,o,this.componentDef.encapsulation):Mm(h.createRenderer(null,this.componentDef),x,function Ga(r){const e=r.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(x)),L=this.componentDef.onPush?576:528,F=function IE(r,e){return{components:[],scheduler:r||ZS,clean:yE,playerHandler:e||null,flags:0}}(),U=cu(0,null,null,1,0,null,null,null,null,null),Z=Qh(null,U,F,L,null,null,h,v,g,u);let ie,le;od(Z);try{const de=function T1(r,e,n,o,a,u){const h=n[1];n[20]=r;const v=jl(h,20,2,"#host",null),x=v.mergedAttrs=e.hostAttrs;null!==x&&(rp(v,x,!0),null!==r&&(ym(a,r,x),null!==v.classes&&Ph(a,r,v.classes),null!==v.styles&&Ad(a,r,v.styles)));const R=o.createRenderer(r,e),L=Qh(n,Jm(e),null,e.onPush?64:16,n[20],v,o,R,u||null,null);return h.firstCreatePass&&(Dh(Ch(v,n),h,e.type),ry(h,v),Xh(v,n.length,1)),Fa(n,L),n[20]=L}(R,this.componentDef,Z,h,v);if(R)if(o)ym(v,R,["ng-version",ai.full]);else{const{attrs:se,classes:ke}=function bo(r){const e=[],n=[];let o=1,a=2;for(;o<r.length;){let u=r[o];if("string"==typeof u)2===a?""!==u&&e.push(u,r[++o]):8===a&&n.push(u);else{if(!Go(a))break;a=u}o++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);se&&ym(v,R,se),ke&&ke.length>0&&Ph(v,R,ke.join(" "))}if(le=function Dc(r,e){return r.data[e]}(U,20),void 0!==n){const se=le.projection=[];for(let ke=0;ke<this.ngContentSelectors.length;ke++){const ze=n[ke];se.push(null!=ze?Array.from(ze):null)}}ie=function O1(r,e,n,o,a){const u=n[1],h=function qR(r,e,n){const o=Jn();r.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),gE(r,o,e,lu(r,e,1,null),n));const a=Da(e,r,o.directiveStart,o);zr(a,e);const u=Wi(o,e);return u&&zr(u,e),a}(u,n,e);if(o.components.push(h),r[8]=h,a&&a.forEach(v=>v(h,e)),e.contentQueries){const v=Jn();e.contentQueries(1,h,v.directiveStart)}const g=Jn();return!u.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(gl(g.index),fE(n[1],g,0,g.directiveStart,g.directiveEnd,e),v1(e,h)),h}(de,this.componentDef,Z,F,[ZR]),Bl(U,Z,null)}finally{hm()}return new l2(this.componentType,ie,_f(le,Z),Z,le)}}class l2 extends class t2{}{constructor(e,n,o,a,u){super(),this.location=o,this._rootLView=a,this._tNode=u,this.instance=n,this.hostView=this.changeDetectorRef=new a2(a),this.componentType=e}get injector(){return new fs(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}class wf{}const xs=new Map;class nD extends wf{constructor(e,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new YC(this);const o=hi(e);this._bootstrapComponents=zn(o.bootstrap),this._r3Injector=SE(e,n,[{provide:wf,useValue:this},{provide:Cu,useValue:this.componentFactoryResolver}],Mt(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,n=si.THROW_IF_NOT_FOUND,o=ft.Default){return e===si||e===wf||e===dy?this:this._r3Injector.get(e,n,o)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class rD extends class D_{}{constructor(e){super(),this.moduleType=e,null!==hi(e)&&function eD(r){const e=new Set;!function n(o){const a=hi(o,!0),u=a.id;null!==u&&(function JC(r,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${r} - ${Mt(e)} vs ${Mt(e.name)}`)}(u,xs.get(u),o),xs.set(u,o));const h=zn(a.imports);for(const g of h)e.has(g)||(e.add(g),n(g))}(r)}(e)}create(e){return new nD(this.moduleType,e)}}function xi(r){return e=>{setTimeout(r,void 0,e)}}const or=class g2 extends nn{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,n,o){var a,u,h;let g=e,v=n||(()=>null),x=o;if(e&&"object"==typeof e){const L=e;g=null===(a=L.next)||void 0===a?void 0:a.bind(L),v=null===(u=L.error)||void 0===u?void 0:u.bind(L),x=null===(h=L.complete)||void 0===h?void 0:h.bind(L)}this.__isAsync&&(v=xi(v),g&&(g=xi(g)),x&&(x=xi(x)));const R=super.subscribe({next:g,error:v,complete:x});return e instanceof ee&&e.add(R),R}};function ts(){return this._results[Gd()]()}class Si{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=Gd(),o=Si.prototype;o[n]||(o[n]=ts)}get changes(){return this._changes||(this._changes=new or)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,n){return this._results.reduce(e,n)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,n){const o=this;o.dirty=!1;const a=Fo(e);(this._changesDetected=!function yS(r,e,n){if(r.length!==e.length)return!1;for(let o=0;o<r.length;o++){let a=r[o],u=e[o];if(n&&(a=n(a),u=n(u)),u!==a)return!1}return!0}(o._results,a,n))&&(o._results=a,o.length=a.length,o.last=a[this.length-1],o.first=a[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let Es=(()=>{class r{}return r.__NG_ELEMENT_ID__=Rp,r})();const Ip=Es,Sf=class extends Ip{constructor(e,n,o){super(),this._declarationLView=e,this._declarationTContainer=n,this.elementRef=o}createEmbeddedView(e){const n=this._declarationTContainer.tViews,o=Qh(this._declarationLView,n,e,16,null,n.declTNode,null,null,null,null);o[17]=this._declarationLView[this._declarationTContainer.index];const u=this._declarationLView[19];return null!==u&&(o[19]=u.createEmbeddedView(n)),Bl(n,o,e),new ev(o)}};function Rp(){return rv(Jn(),ge())}function rv(r,e){return 4&r.type?new Sf(e,r,_f(r,e)):null}let Cs=(()=>{class r{}return r.__NG_ELEMENT_ID__=Mp,r})();function Mp(){return Ds(Jn(),ge())}const m2=Cs,T_=class extends m2{constructor(e,n,o){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=o}get element(){return _f(this._hostTNode,this._hostLView)}get injector(){return new fs(this._hostTNode,this._hostLView)}get parentInjector(){const e=yl(this._hostTNode,this._hostLView);if(hS(e)){const n=Tc(e,this._hostLView),o=Ca(e);return new fs(n[1].data[o+8],n)}return new fs(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const n=O_(this._lContainer);return null!==n&&n[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,n,o){const a=e.createEmbeddedView(n||{});return this.insert(a,o),a}createComponent(e,n,o,a,u){const h=e&&!function vl(r){return"function"==typeof r}(e);let g;if(h)g=n;else{const L=n||{};g=L.index,o=L.injector,a=L.projectableNodes,u=L.ngModuleRef}const v=h?e:new Cp(Ln(e)),x=o||this.parentInjector;if(!u&&null==v.ngModule){const F=(h?x:this.parentInjector).get(wf,null);F&&(u=F)}const R=v.create(x,a,void 0,u);return this.insert(R.hostView,g),R}insert(e,n){const o=e._lView,a=o[1];if(function Z0(r){return Ii(r[3])}(o)){const R=this.indexOf(e);if(-1!==R)this.detach(R);else{const L=o[3],F=new T_(L,L[6],L[3]);F.detach(F.indexOf(e))}}const u=this._adjustIndex(n),h=this._lContainer;!function kS(r,e,n,o){const a=10+o,u=n.length;o>0&&(n[a-1][4]=e),o<u-10?(e[4]=n[a],vb(n,10+o,e)):(n.push(e),e[4]=null),e[3]=n;const h=e[17];null!==h&&n!==h&&function Cd(r,e){const n=r[9];e[16]!==e[3][3][16]&&(r[2]=!0),null===n?r[9]=[e]:n.push(e)}(h,e);const g=e[19];null!==g&&g.insertView(r),e[2]|=128}(a,o,h,u);const g=Xc(u,h),v=o[11],x=Dd(v,h[7]);return null!==x&&function Th(r,e,n,o,a,u){o[0]=a,o[6]=e,Jc(r,o,n,1,a,u)}(a,h[6],v,o,x,g),e.attachToViewContainerRef(),vb(L_(h),u,e),e}move(e,n){return this.insert(e,n)}indexOf(e){const n=O_(this._lContainer);return null!==n?n.indexOf(e):-1}remove(e){const n=this._adjustIndex(e,-1),o=Wc(this._lContainer,n);o&&(Bc(L_(this._lContainer),n),ms(o[1],o))}detach(e){const n=this._adjustIndex(e,-1),o=Wc(this._lContainer,n);return o&&null!=Bc(L_(this._lContainer),n)?new ev(o):null}_adjustIndex(e,n=0){return null==e?this.length+n:e}};function O_(r){return r[8]}function L_(r){return r[8]||(r[8]=[])}function Ds(r,e){let n;const o=e[r.index];if(Ii(o))n=o;else{let a;if(8&r.type)a=Pn(o);else{const u=e[11];a=u.createComment("");const h=Wi(r,e);kl(u,Dd(u,h),a,function zb(r,e){return Xn(r)?r.nextSibling(e):e.nextSibling}(u,h),!1)}e[r.index]=n=function iy(r,e,n,o){return new Array(r,!0,!1,e,null,0,o,n,null,null)}(o,e,a,r),Fa(e,n)}return new T_(n,r,e)}class Tp{constructor(e){this.queryList=e,this.matches=null}clone(){return new Tp(this.queryList)}setDirty(){this.queryList.setDirty()}}class P_{constructor(e=[]){this.queries=e}createEmbeddedView(e){const n=e.queries;if(null!==n){const o=null!==e.contentQueries?e.contentQueries[0]:n.length,a=[];for(let u=0;u<o;u++){const h=n.getByIndex(u);a.push(this.queries[h.indexInDeclarationView].clone())}return new P_(a)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let n=0;n<this.queries.length;n++)null!==j_(e,n).matches&&this.queries[n].setDirty()}}class As{constructor(e,n,o=null){this.predicate=e,this.flags=n,this.read=o}}class Ua{constructor(e=[]){this.queries=e}elementStart(e,n){for(let o=0;o<this.queries.length;o++)this.queries[o].elementStart(e,n)}elementEnd(e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(e)}embeddedTView(e){let n=null;for(let o=0;o<this.length;o++){const a=null!==n?n.length:0,u=this.getByIndex(o).embeddedTView(e,a);u&&(u.indexInDeclarationView=o,null!==n?n.push(u):n=[u])}return null!==n?new Ua(n):null}template(e,n){for(let o=0;o<this.queries.length;o++)this.queries[o].template(e,n)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class Ef{constructor(e,n=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}elementStart(e,n){this.isApplyingToNode(n)&&this.matchTNode(e,n)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,n){this.elementStart(e,n)}embeddedTView(e,n){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,n),new Ef(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const n=this._declarationNodeIndex;let o=e.parent;for(;null!==o&&8&o.type&&o.index!==n;)o=o.parent;return n===(null!==o?o.index:-1)}return this._appliesToNextNode}matchTNode(e,n){const o=this.metadata.predicate;if(Array.isArray(o))for(let a=0;a<o.length;a++){const u=o[a];this.matchTNodeWithReadOption(e,n,Cf(n,u)),this.matchTNodeWithReadOption(e,n,dd(n,e,u,!1,!1))}else o===Es?4&n.type&&this.matchTNodeWithReadOption(e,n,-1):this.matchTNodeWithReadOption(e,n,dd(n,e,o,!1,!1))}matchTNodeWithReadOption(e,n,o){if(null!==o){const a=this.metadata.read;if(null!==a)if(a===Ut||a===Cs||a===Es&&4&n.type)this.addMatch(n.index,-2);else{const u=dd(n,e,a,!1,!1);null!==u&&this.addMatch(n.index,u)}else this.addMatch(n.index,o)}}addMatch(e,n){null===this.matches?this.matches=[e,n]:this.matches.push(e,n)}}function Cf(r,e){const n=r.localNames;if(null!==n)for(let o=0;o<n.length;o+=2)if(n[o]===e)return n[o+1];return null}function fD(r,e,n,o){return-1===n?function N_(r,e){return 11&r.type?_f(r,e):4&r.type?rv(r,e):null}(e,r):-2===n?function Df(r,e,n){return n===Ut?_f(e,r):n===Es?rv(e,r):n===Cs?Ds(e,r):void 0}(r,e,o):Da(r,r[1],n,e)}function iv(r,e,n,o){const a=e[19].queries[o];if(null===a.matches){const u=r.data,h=n.matches,g=[];for(let v=0;v<h.length;v+=2){const x=h[v];g.push(x<0?null:fD(e,u[x],h[v+1],n.metadata.read))}a.matches=g}return a.matches}function ov(r,e,n,o){const a=r.queries.getByIndex(n),u=a.matches;if(null!==u){const h=iv(r,e,a,n);for(let g=0;g<u.length;g+=2){const v=u[g];if(v>0)o.push(h[g/2]);else{const x=u[g+1],R=e[-v];for(let L=10;L<R.length;L++){const F=R[L];F[17]===F[3]&&ov(F[1],F,x,o)}if(null!==R[9]){const L=R[9];for(let F=0;F<L.length;F++){const U=L[F];ov(U[1],U,x,o)}}}}}return o}function Is(r){const e=ge(),n=kt(),o=fm();vh(o+1);const a=j_(n,o);if(r.dirty&&Y0(e)===(2==(2&a.metadata.flags))){if(null===a.matches)r.reset([]);else{const u=a.crossesNgTemplate?ov(n,e,o,[]):iv(n,e,a,o);r.reset(u,C_),r.notifyOnChanges()}return!0}return!1}function F_(r,e,n){const o=kt();o.firstCreatePass&&(function sv(r,e,n){null===r.queries&&(r.queries=new Ua),r.queries.track(new Ef(e,n))}(o,new As(r,e,n),-1),2==(2&e)&&(o.staticViewQueries=!0)),function Af(r,e,n){const o=new Si(4==(4&n));uE(r,e,o,o.destroy),null===e[19]&&(e[19]=new P_),e[19].queries.push(new Tp(o))}(o,ge(),e)}function kf(){return function hD(r,e){return r[19].queries[e].queryList}(ge(),fm())}function j_(r,e){return r.queries.getByIndex(e)}function dv(...r){}const En=new pt("Application Initializer");let jp=(()=>{class r{constructor(n){this.appInits=n,this.resolve=dv,this.reject=dv,this.initialized=!1,this.done=!1,this.donePromise=new Promise((o,a)=>{this.resolve=o,this.reject=a})}runInitializers(){if(this.initialized)return;const n=[],o=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let a=0;a<this.appInits.length;a++){const u=this.appInits[a]();if(K1(u))n.push(u);else if(cM(u)){const h=new Promise((g,v)=>{u.subscribe({complete:g,error:v})});n.push(h)}}Promise.all(n).then(()=>{o()}).catch(a=>{this.reject(a)}),0===n.length&&o(),this.initialized=!0}}return r.\u0275fac=function(n){return new(n||r)(he(En,8))},r.\u0275prov=Ae({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const Mf=new pt("AppId",{providedIn:"root",factory:function RD(){return`${fv()}${fv()}${fv()}`}});function fv(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const MD=new pt("Platform Initializer"),Ts=new pt("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),D2=new pt("appBootstrapListener"),ns=new pt("LocaleId",{providedIn:"root",factory:()=>yd(ns,ft.Optional|ft.SkipSelf)||function K_(){return"undefined"!=typeof $localize&&$localize.locale||bp}()}),LD=(()=>Promise.resolve(0))();function Y_(r){"undefined"==typeof Zone?LD.then(()=>{r&&r.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",r)}class Hn{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:o=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new or(!1),this.onMicrotaskEmpty=new or(!1),this.onStable=new or(!1),this.onError=new or(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const a=this;a._nesting=0,a._outer=a._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!o&&n,a.shouldCoalesceRunChangeDetection=o,a.lastRequestAnimationFrameId=-1,a.nativeRequestAnimationFrame=function PP(){let r=Ot.requestAnimationFrame,e=Ot.cancelAnimationFrame;if("undefined"!=typeof Zone&&r&&e){const n=r[Zone.__symbol__("OriginalDelegate")];n&&(r=n);const o=e[Zone.__symbol__("OriginalDelegate")];o&&(e=o)}return{nativeRequestAnimationFrame:r,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function P2(r){const e=()=>{!function L2(r){r.isCheckStableRunning||-1!==r.lastRequestAnimationFrameId||(r.lastRequestAnimationFrameId=r.nativeRequestAnimationFrame.call(Ot,()=>{r.fakeTopEventTask||(r.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{r.lastRequestAnimationFrameId=-1,PD(r),r.isCheckStableRunning=!0,ca(r),r.isCheckStableRunning=!1},void 0,()=>{},()=>{})),r.fakeTopEventTask.invoke()}),PD(r))}(r)};r._inner=r._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,o,a,u,h,g)=>{try{return ND(r),n.invokeTask(a,u,h,g)}finally{(r.shouldCoalesceEventChangeDetection&&"eventTask"===u.type||r.shouldCoalesceRunChangeDetection)&&e(),FD(r)}},onInvoke:(n,o,a,u,h,g,v)=>{try{return ND(r),n.invoke(a,u,h,g,v)}finally{r.shouldCoalesceRunChangeDetection&&e(),FD(r)}},onHasTask:(n,o,a,u)=>{n.hasTask(a,u),o===a&&("microTask"==u.change?(r._hasPendingMicrotasks=u.microTask,PD(r),ca(r)):"macroTask"==u.change&&(r.hasPendingMacrotasks=u.macroTask))},onHandleError:(n,o,a,u)=>(n.handleError(a,u),r.runOutsideAngular(()=>r.onError.emit(u)),!1)})}(a)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Hn.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Hn.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,n,o){return this._inner.run(e,n,o)}runTask(e,n,o,a){const u=this._inner,h=u.scheduleEventTask("NgZoneEvent: "+a,e,O2,dv,dv);try{return u.runTask(h,n,o)}finally{u.cancelTask(h)}}runGuarded(e,n,o){return this._inner.runGuarded(e,n,o)}runOutsideAngular(e){return this._outer.run(e)}}const O2={};function ca(r){if(0==r._nesting&&!r.hasPendingMicrotasks&&!r.isStable)try{r._nesting++,r.onMicrotaskEmpty.emit(null)}finally{if(r._nesting--,!r.hasPendingMicrotasks)try{r.runOutsideAngular(()=>r.onStable.emit(null))}finally{r.isStable=!0}}}function PD(r){r.hasPendingMicrotasks=!!(r._hasPendingMicrotasks||(r.shouldCoalesceEventChangeDetection||r.shouldCoalesceRunChangeDetection)&&-1!==r.lastRequestAnimationFrameId)}function ND(r){r._nesting++,r.isStable&&(r.isStable=!1,r.onUnstable.emit(null))}function FD(r){r._nesting--,ca(r)}class N2{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new or,this.onMicrotaskEmpty=new or,this.onStable=new or,this.onError=new or}run(e,n,o){return e.apply(n,o)}runGuarded(e,n,o){return e.apply(n,o)}runOutsideAngular(e){return e()}runTask(e,n,o,a){return e.apply(n,o)}}let Z_=(()=>{class r{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Hn.assertNotInAngularZone(),Y_(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Y_(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(o=>!o.updateCb||!o.updateCb(n)||(clearTimeout(o.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,o,a){let u=-1;o&&o>0&&(u=setTimeout(()=>{this._callbacks=this._callbacks.filter(h=>h.timeoutId!==u),n(this._didWork,this.getPendingTasks())},o)),this._callbacks.push({doneCb:n,timeoutId:u,updateCb:a})}whenStable(n,o,a){if(a&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,o,a),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,o,a){return[]}}return r.\u0275fac=function(n){return new(n||r)(he(Hn))},r.\u0275prov=Ae({token:r,factory:r.\u0275fac}),r})(),NP=(()=>{class r{constructor(){this._applications=new Map,ua.addToWindow(this)}registerApplication(n,o){this._applications.set(n,o)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,o=!0){return ua.findTestabilityInTree(this,n,o)}}return r.\u0275fac=function(n){return new(n||r)},r.\u0275prov=Ae({token:r,factory:r.\u0275fac,providedIn:"platform"}),r})();class F2{addToWindow(e){}findTestabilityInTree(e,n,o){return null}}let ua=new F2,ku=null;const jD=new pt("AllowMultipleToken"),BD=new pt("PlatformOnDestroy");function V2(r,e,n=[]){const o=`Platform: ${e}`,a=new pt(o);return(u=[])=>{let h=X_();if(!h||h.injector.get(jD,!1)){const g=[...n,...u,{provide:a,useValue:!0}];r?r(g):function q2(r){if(ku&&!ku.get(jD,!1))throw new Me(400,"");ku=r;const e=r.get(zD),n=r.get(MD,null);n&&n.forEach(o=>o())}(function H2(r=[],e){return si.create({name:e,providers:[{provide:fy,useValue:"platform"},{provide:BD,useValue:()=>ku=null},...r]})}(g,o))}return function Bp(r){const e=X_();if(!e)throw new Me(401,"");return e}()}}function X_(){var r;return null!==(r=null==ku?void 0:ku.get(zD))&&void 0!==r?r:null}let zD=(()=>{class r{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,o){const g=function BP(r,e){let n;return n="noop"===r?new N2:("zone.js"===r?void 0:r)||new Hn({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(o?o.ngZone:void 0,{ngZoneEventCoalescing:o&&o.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:o&&o.ngZoneRunCoalescing||!1}),v=[{provide:Hn,useValue:g}];return g.run(()=>{const x=si.create({providers:v,parent:this.injector,name:n.moduleType.name}),R=n.create(x),L=R.injector.get(Re,null);if(!L)throw new Me(402,"");return g.runOutsideAngular(()=>{const F=g.onError.subscribe({next:U=>{L.handleError(U)}});R.onDestroy(()=>{J_(this._modules,R),F.unsubscribe()})}),function qD(r,e,n){try{const o=n();return K1(o)?o.catch(a=>{throw e.runOutsideAngular(()=>r.handleError(a)),a}):o}catch(o){throw e.runOutsideAngular(()=>r.handleError(o)),o}}(L,g,()=>{const F=R.injector.get(jp);return F.runInitializers(),F.donePromise.then(()=>(function TM(r){ao(r,"Expected localeId to be defined"),"string"==typeof r&&(h_=r.toLowerCase().replace(/_/g,"-"))}(R.injector.get(ns,bp)||bp),this._moduleDoBootstrap(R),R))})})}bootstrapModule(n,o=[]){const a=VD({},o);return function B2(r,e,n){const o=new rD(n);return Promise.resolve(o)}(0,0,n).then(u=>this.bootstrapModuleFactory(u,a))}_moduleDoBootstrap(n){const o=n.injector.get(hv);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(a=>o.bootstrap(a));else{if(!n.instance.ngDoBootstrap)throw new Me(403,"");n.instance.ngDoBootstrap(o)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Me(404,"");this._modules.slice().forEach(o=>o.destroy()),this._destroyListeners.forEach(o=>o());const n=this._injector.get(BD,null);null==n||n(),this._destroyed=!0}get destroyed(){return this._destroyed}}return r.\u0275fac=function(n){return new(n||r)(he(si))},r.\u0275prov=Ae({token:r,factory:r.\u0275fac,providedIn:"platform"}),r})();function VD(r,e){return Array.isArray(e)?e.reduce(VD,r):Object.assign(Object.assign({},r),e)}let hv=(()=>{class r{constructor(n,o,a,u){this._zone=n,this._injector=o,this._exceptionHandler=a,this._initStatus=u,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const h=new Ie(v=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{v.next(this._stable),v.complete()})}),g=new Ie(v=>{let x;this._zone.runOutsideAngular(()=>{x=this._zone.onStable.subscribe(()=>{Hn.assertNotInAngularZone(),Y_(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,v.next(!0))})})});const R=this._zone.onUnstable.subscribe(()=>{Hn.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{v.next(!1)}))});return()=>{x.unsubscribe(),R.unsubscribe()}});this.isStable=ya(h,g.pipe(function Gx(){return r=>rh()(function DI(r,e){return function(o){let a;if(a="function"==typeof r?r:function(){return r},"function"==typeof e)return o.lift(new kI(a,e));const u=Object.create(o,SI);return u.source=o,u.subjectFactory=a,u}}(AI)(r))}()))}bootstrap(n,o){if(!this._initStatus.done)throw new Me(405,"");let a;a=n instanceof $a?n:this._injector.get(Cu).resolveComponentFactory(n),this.componentTypes.push(a.componentType);const u=function z2(r){return r.isBoundToModule}(a)?void 0:this._injector.get(wf),g=a.create(si.NULL,[],o||a.selector,u),v=g.location.nativeElement,x=g.injector.get(Z_,null),R=x&&g.injector.get(NP);return x&&R&&R.registerApplication(v,x),g.onDestroy(()=>{this.detachView(g.hostView),J_(this.components,g),R&&R.unregisterApplication(v)}),this._loadComponent(g),g}tick(){if(this._runningTick)throw new Me(101,"");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const o=n;this._views.push(o),o.attachToAppRef(this)}detachView(n){const o=n;J_(this._views,o),o.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(D2,[]).concat(this._bootstrapListeners).forEach(a=>a(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return r.\u0275fac=function(n){return new(n||r)(he(Hn),he(si),he(Re),he(jp))},r.\u0275prov=Ae({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function J_(r,e){const n=r.indexOf(e);n>-1&&r.splice(n,1)}let $D=!0,WD=(()=>{class r{}return r.__NG_ELEMENT_ID__=G2,r})();function G2(r){return function KD(r,e,n){if(ch(r)&&!n){const o=yt(r.index,e);return new ev(o,o)}return 47&r.type?new ev(e[16],e):null}(Jn(),ge(),16==(16&r))}const lT=V2(null,"core",[]);let cT=(()=>{class r{constructor(n){}}return r.\u0275fac=function(n){return new(n||r)(he(hv))},r.\u0275mod=co({type:r}),r.\u0275inj=Hi({}),r})(),yv=null;function Wa(){return yv}const en=new pt("DocumentToken"),vw="browser";function Mu(r){return r===vw}function da(r){return"server"===r}let Kk=(()=>{class r{}return r.\u0275fac=function(n){return new(n||r)},r.\u0275mod=co({type:r}),r.\u0275inj=Hi({}),r})();class Iw extends class DO extends class ik{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function dT(r){yv||(yv=r)}(new Iw)}onAndCancel(e,n,o){return e.addEventListener(n,o,!1),()=>{e.removeEventListener(n,o,!1)}}dispatchEvent(e,n){e.dispatchEvent(n)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,n){return(n=n||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,n){return"window"===n?window:"document"===n?e:"body"===n?e.body:null}getBaseHref(e){const n=function Yk(){return lg=lg||document.querySelector("base"),lg?lg.getAttribute("href"):null}();return null==n?null:function kO(r){cg=cg||document.createElement("a"),cg.setAttribute("href",r);const e=cg.pathname;return"/"===e.charAt(0)?e:`/${e}`}(n)}resetBaseElement(){lg=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function xk(r,e){e=encodeURIComponent(e);for(const n of r.split(";")){const o=n.indexOf("="),[a,u]=-1==o?[n,""]:[n.slice(0,o),n.slice(o+1)];if(a.trim()===e)return decodeURIComponent(u)}return null}(document.cookie,e)}}let cg,lg=null;const Zk=new pt("TRANSITION_ID"),IO=[{provide:En,useFactory:function AO(r,e,n){return()=>{n.get(jp).donePromise.then(()=>{const o=Wa(),a=e.querySelectorAll(`style[ng-transition="${r}"]`);for(let u=0;u<a.length;u++)o.remove(a[u])})}},deps:[Zk,en,si],multi:!0}];class Mv{static init(){!function j2(r){ua=r}(new Mv)}addToWindow(e){Ot.getAngularTestability=(o,a=!0)=>{const u=e.findTestabilityInTree(o,a);if(null==u)throw new Error("Could not find testability for element.");return u},Ot.getAllAngularTestabilities=()=>e.getAllTestabilities(),Ot.getAllAngularRootElements=()=>e.getAllRootElements(),Ot.frameworkStabilizers||(Ot.frameworkStabilizers=[]),Ot.frameworkStabilizers.push(o=>{const a=Ot.getAllAngularTestabilities();let u=a.length,h=!1;const g=function(v){h=h||v,u--,0==u&&o(h)};a.forEach(function(v){v.whenStable(g)})})}findTestabilityInTree(e,n,o){if(null==n)return null;const a=e.getTestability(n);return null!=a?a:o?Wa().isShadowRoot(n)?this.findTestabilityInTree(e,n.host,!0):this.findTestabilityInTree(e,n.parentElement,!0):null}}let RO=(()=>{class r{build(){return new XMLHttpRequest}}return r.\u0275fac=function(n){return new(n||r)},r.\u0275prov=Ae({token:r,factory:r.\u0275fac}),r})();const Tv=new pt("EventManagerPlugins");let Ov=(()=>{class r{constructor(n,o){this._zone=o,this._eventNameToPlugin=new Map,n.forEach(a=>a.manager=this),this._plugins=n.slice().reverse()}addEventListener(n,o,a){return this._findPluginFor(o).addEventListener(n,o,a)}addGlobalEventListener(n,o,a){return this._findPluginFor(o).addGlobalEventListener(n,o,a)}getZone(){return this._zone}_findPluginFor(n){const o=this._eventNameToPlugin.get(n);if(o)return o;const a=this._plugins;for(let u=0;u<a.length;u++){const h=a[u];if(h.supports(n))return this._eventNameToPlugin.set(n,h),h}throw new Error(`No event manager plugin found for event ${n}`)}}return r.\u0275fac=function(n){return new(n||r)(he(Tv),he(Hn))},r.\u0275prov=Ae({token:r,factory:r.\u0275fac}),r})();class Xk{constructor(e){this._doc=e}addGlobalEventListener(e,n,o){const a=Wa().getGlobalEventTarget(this._doc,e);if(!a)throw new Error(`Unsupported event target ${a} for event ${n}`);return this.addEventListener(a,n,o)}}let Rw=(()=>{class r{constructor(){this._stylesSet=new Set}addStyles(n){const o=new Set;n.forEach(a=>{this._stylesSet.has(a)||(this._stylesSet.add(a),o.add(a))}),this.onStylesAdded(o)}onStylesAdded(n){}getAllStyles(){return Array.from(this._stylesSet)}}return r.\u0275fac=function(n){return new(n||r)},r.\u0275prov=Ae({token:r,factory:r.\u0275fac}),r})(),ug=(()=>{class r extends Rw{constructor(n){super(),this._doc=n,this._hostNodes=new Map,this._hostNodes.set(n.head,[])}_addStylesToHost(n,o,a){n.forEach(u=>{const h=this._doc.createElement("style");h.textContent=u,a.push(o.appendChild(h))})}addHost(n){const o=[];this._addStylesToHost(this._stylesSet,n,o),this._hostNodes.set(n,o)}removeHost(n){const o=this._hostNodes.get(n);o&&o.forEach(Mw),this._hostNodes.delete(n)}onStylesAdded(n){this._hostNodes.forEach((o,a)=>{this._addStylesToHost(n,a,o)})}ngOnDestroy(){this._hostNodes.forEach(n=>n.forEach(Mw))}}return r.\u0275fac=function(n){return new(n||r)(he(en))},r.\u0275prov=Ae({token:r,factory:r.\u0275fac}),r})();function Mw(r){Wa().remove(r)}const Tw={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Ow=/%COMP%/g;function Lv(r,e,n){for(let o=0;o<e.length;o++){let a=e[o];Array.isArray(a)?Lv(r,a,n):(a=a.replace(Ow,r),n.push(a))}return n}function tA(r){return e=>{if("__ngUnwrap__"===e)return r;!1===r(e)&&(e.preventDefault(),e.returnValue=!1)}}let Pv=(()=>{class r{constructor(n,o,a){this.eventManager=n,this.sharedStylesHost=o,this.appId=a,this.rendererByCompId=new Map,this.defaultRenderer=new Nv(n)}createRenderer(n,o){if(!n||!o)return this.defaultRenderer;switch(o.encapsulation){case me.Emulated:{let a=this.rendererByCompId.get(o.id);return a||(a=new LO(this.eventManager,this.sharedStylesHost,o,this.appId),this.rendererByCompId.set(o.id,a)),a.applyToHost(n),a}case 1:case me.ShadowDom:return new jv(this.eventManager,this.sharedStylesHost,n,o);default:if(!this.rendererByCompId.has(o.id)){const a=Lv(o.id,o.styles,[]);this.sharedStylesHost.addStyles(a),this.rendererByCompId.set(o.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return r.\u0275fac=function(n){return new(n||r)(he(Ov),he(ug),he(Mf))},r.\u0275prov=Ae({token:r,factory:r.\u0275fac}),r})();class Nv{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,n){return n?document.createElementNS(Tw[n]||n,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,n){e.appendChild(n)}insertBefore(e,n,o){e&&e.insertBefore(n,o)}removeChild(e,n){e&&e.removeChild(n)}selectRootElement(e,n){let o="string"==typeof e?document.querySelector(e):e;if(!o)throw new Error(`The selector "${e}" did not match any elements`);return n||(o.textContent=""),o}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,n,o,a){if(a){n=a+":"+n;const u=Tw[a];u?e.setAttributeNS(u,n,o):e.setAttribute(n,o)}else e.setAttribute(n,o)}removeAttribute(e,n,o){if(o){const a=Tw[o];a?e.removeAttributeNS(a,n):e.removeAttribute(`${o}:${n}`)}else e.removeAttribute(n)}addClass(e,n){e.classList.add(n)}removeClass(e,n){e.classList.remove(n)}setStyle(e,n,o,a){a&(Li.DashCase|Li.Important)?e.style.setProperty(n,o,a&Li.Important?"important":""):e.style[n]=o}removeStyle(e,n,o){o&Li.DashCase?e.style.removeProperty(n):e.style[n]=""}setProperty(e,n,o){e[n]=o}setValue(e,n){e.nodeValue=n}listen(e,n,o){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,n,tA(o)):this.eventManager.addEventListener(e,n,tA(o))}}class LO extends Nv{constructor(e,n,o,a){super(e),this.component=o;const u=Lv(a+"-"+o.id,o.styles,[]);n.addStyles(u),this.contentAttr=function eA(r){return"_ngcontent-%COMP%".replace(Ow,r)}(a+"-"+o.id),this.hostAttr=function OO(r){return"_nghost-%COMP%".replace(Ow,r)}(a+"-"+o.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,n){const o=super.createElement(e,n);return super.setAttribute(o,this.contentAttr,""),o}}class jv extends Nv{constructor(e,n,o,a){super(e),this.sharedStylesHost=n,this.hostEl=o,this.shadowRoot=o.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const u=Lv(a.id,a.styles,[]);for(let h=0;h<u.length;h++){const g=document.createElement("style");g.textContent=u[h],this.shadowRoot.appendChild(g)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,n){return super.appendChild(this.nodeOrShadowRoot(e),n)}insertBefore(e,n,o){return super.insertBefore(this.nodeOrShadowRoot(e),n,o)}removeChild(e,n){return super.removeChild(this.nodeOrShadowRoot(e),n)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let PO=(()=>{class r extends Xk{constructor(n){super(n)}supports(n){return!0}addEventListener(n,o,a){return n.addEventListener(o,a,!1),()=>this.removeEventListener(n,o,a)}removeEventListener(n,o,a){return n.removeEventListener(o,a)}}return r.\u0275fac=function(n){return new(n||r)(he(en))},r.\u0275prov=Ae({token:r,factory:r.\u0275fac}),r})();const rA=["alt","control","meta","shift"],Nw={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},dg={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},NO={alt:r=>r.altKey,control:r=>r.ctrlKey,meta:r=>r.metaKey,shift:r=>r.shiftKey};let FO=(()=>{class r extends Xk{constructor(n){super(n)}supports(n){return null!=r.parseEventName(n)}addEventListener(n,o,a){const u=r.parseEventName(o),h=r.eventCallback(u.fullKey,a,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Wa().onAndCancel(n,u.domEventName,h))}static parseEventName(n){const o=n.toLowerCase().split("."),a=o.shift();if(0===o.length||"keydown"!==a&&"keyup"!==a)return null;const u=r._normalizeKey(o.pop());let h="";if(rA.forEach(v=>{const x=o.indexOf(v);x>-1&&(o.splice(x,1),h+=v+".")}),h+=u,0!=o.length||0===u.length)return null;const g={};return g.domEventName=a,g.fullKey=h,g}static getEventFullKey(n){let o="",a=function iA(r){let e=r.key;if(null==e){if(e=r.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===r.location&&dg.hasOwnProperty(e)&&(e=dg[e]))}return Nw[e]||e}(n);return a=a.toLowerCase()," "===a?a="space":"."===a&&(a="dot"),rA.forEach(u=>{u!=a&&NO[u](n)&&(o+=u+".")}),o+=a,o}static eventCallback(n,o,a){return u=>{r.getEventFullKey(u)===n&&a.runGuarded(()=>o(u))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return r.\u0275fac=function(n){return new(n||r)(he(en))},r.\u0275prov=Ae({token:r,factory:r.\u0275fac}),r})();const sA=V2(lT,"browser",[{provide:Ts,useValue:vw},{provide:MD,useValue:function Bv(){Iw.makeCurrent(),Mv.init()},multi:!0},{provide:en,useFactory:function BO(){return function Zs(r){td=r}(document),document},deps:[]}]),zv=[{provide:fy,useValue:"root"},{provide:Re,useFactory:function jO(){return new Re},deps:[]},{provide:Tv,useClass:PO,multi:!0,deps:[en,Hn,Ts]},{provide:Tv,useClass:FO,multi:!0,deps:[en]},{provide:Pv,useClass:Pv,deps:[Ov,ug,Mf]},{provide:Ze,useExisting:Pv},{provide:Rw,useExisting:ug},{provide:ug,useClass:ug,deps:[en]},{provide:Z_,useClass:Z_,deps:[Hn]},{provide:Ov,useClass:Ov,deps:[Tv,Hn]},{provide:class EO{},useClass:RO,deps:[]}];let Fw=(()=>{class r{constructor(n){if(n)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(n){return{ngModule:r,providers:[{provide:Mf,useValue:n.appId},{provide:Zk,useExisting:Mf},IO]}}}return r.\u0275fac=function(n){return new(n||r)(he(r,12))},r.\u0275mod=co({type:r}),r.\u0275inj=Hi({providers:zv,imports:[Kk,cT]}),r})();"undefined"!=typeof window&&window;class tL extends ee{constructor(e,n){super()}schedule(e,n=0){return this}}class Vv extends tL{constructor(e,n){super(e,n),this.scheduler=e,this.work=n,this.pending=!1}schedule(e,n=0){if(this.closed)return this;this.state=e;const o=this.id,a=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(a,o,n)),this.pending=!0,this.delay=n,this.id=this.id||this.requestAsyncId(a,this.id,n),this}requestAsyncId(e,n,o=0){return setInterval(e.flush.bind(e,this),o)}recycleAsyncId(e,n,o=0){if(null!==o&&this.delay===o&&!1===this.pending)return n;clearInterval(n)}execute(e,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const o=this._execute(e,n);if(o)return o;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,n){let a,o=!1;try{this.work(e)}catch(u){o=!0,a=!!u&&u||new Error(u)}if(o)return this.unsubscribe(),a}_unsubscribe(){const e=this.id,n=this.scheduler,o=n.actions,a=o.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==a&&o.splice(a,1),null!=e&&(this.id=this.recycleAsyncId(n,e,null)),this.delay=null}}let mA=(()=>{class r{constructor(n,o=r.now){this.SchedulerAction=n,this.now=o}schedule(n,o=0,a){return new this.SchedulerAction(this,n).schedule(a,o)}}return r.now=()=>Date.now(),r})();class Bs extends mA{constructor(e,n=mA.now){super(e,()=>Bs.delegate&&Bs.delegate!==this?Bs.delegate.now():n()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,n=0,o){return Bs.delegate&&Bs.delegate!==this?Bs.delegate.schedule(e,n,o):super.schedule(e,n,o)}flush(e){const{actions:n}=this;if(this.active)return void n.push(e);let o;this.active=!0;do{if(o=e.execute(e.state,e.delay))break}while(e=n.shift());if(this.active=!1,o){for(;e=n.shift();)e.unsubscribe();throw o}}}new class fa extends Bs{flush(e){this.active=!0,this.scheduled=void 0;const{actions:n}=this;let o,a=-1,u=n.length;e=e||n.shift();do{if(o=e.execute(e.state,e.delay))break}while(++a<u&&(e=n.shift()));if(this.active=!1,o){for(;++a<u&&(e=n.shift());)e.unsubscribe();throw o}}}(class nL extends Vv{constructor(e,n){super(e,n),this.scheduler=e,this.work=n}requestAsyncId(e,n,o=0){return null!==o&&o>0?super.requestAsyncId(e,n,o):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,n,o=0){if(null!==o&&o>0||null===o&&this.delay>0)return super.recycleAsyncId(e,n,o);0===e.actions.length&&(cancelAnimationFrame(n),e.scheduled=void 0)}});let $w=1;const Gw=Promise.resolve(),zf={};function Uw(r){return r in zf&&(delete zf[r],!0)}const Hv={setImmediate(r){const e=$w++;return zf[e]=!0,Gw.then(()=>Uw(e)&&r()),e},clearImmediate(r){Uw(r)}};new class sL extends Bs{flush(e){this.active=!0,this.scheduled=void 0;const{actions:n}=this;let o,a=-1,u=n.length;e=e||n.shift();do{if(o=e.execute(e.state,e.delay))break}while(++a<u&&(e=n.shift()));if(this.active=!1,o){for(;++a<u&&(e=n.shift());)e.unsubscribe();throw o}}}(class oL extends Vv{constructor(e,n){super(e,n),this.scheduler=e,this.work=n}requestAsyncId(e,n,o=0){return null!==o&&o>0?super.requestAsyncId(e,n,o):(e.actions.push(this),e.scheduled||(e.scheduled=Hv.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,n,o=0){if(null!==o&&o>0||null===o&&this.delay>0)return super.recycleAsyncId(e,n,o);0===e.actions.length&&(Hv.clearImmediate(n),e.scheduled=void 0)}});function $v(r,e){return function(o){return o.lift(new wA(r,e))}}new Bs(Vv);class wA{constructor(e,n){this.predicate=e,this.thisArg=n}call(e,n){return n.subscribe(new fL(e,this.predicate,this.thisArg))}}class fL extends _n{constructor(e,n,o){super(e),this.predicate=n,this.thisArg=o,this.count=0}_next(e){let n;try{n=this.predicate.call(this.thisArg,e,this.count++)}catch(o){return void this.destination.error(o)}n&&this.destination.next(e)}}let pg;try{pg="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(r){pg=!1}let Xa=(()=>{class r{constructor(n){this._platformId=n,this.isBrowser=this._platformId?Mu(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!pg)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return r.\u0275fac=function(n){return new(n||r)(he(Ts))},r.\u0275prov=Ae({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function CA(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}let bL=(()=>{class r{}return r.\u0275fac=function(n){return new(n||r)},r.\u0275mod=co({type:r}),r.\u0275inj=Hi({}),r})();Object.create(Error.prototype);const AL=new Ie(r=>r.complete());let _g=(()=>{class r{constructor(n,o){this._platform=o,this._document=n}ngOnDestroy(){var n;null===(n=this._containerElement)||void 0===n||n.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const n="cdk-overlay-container";if(this._platform.isBrowser||CA()){const a=this._document.querySelectorAll(`.${n}[platform="server"], .${n}[platform="test"]`);for(let u=0;u<a.length;u++)a[u].remove()}const o=this._document.createElement("div");o.classList.add(n),CA()?o.setAttribute("platform","test"):this._platform.isBrowser||o.setAttribute("platform","server"),this._document.body.appendChild(o),this._containerElement=o}}return r.\u0275fac=function(n){return new(n||r)(he(en),he(Xa))},r.\u0275prov=Ae({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const jA=new class FA extends Bs{}(class NA extends Vv{constructor(e,n){super(e,n),this.scheduler=e,this.work=n}schedule(e,n=0){return n>0?super.schedule(e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)}execute(e,n){return n>0||this.closed?super.execute(e,n):this._execute(e,n)}requestAsyncId(e,n,o=0){return null!==o&&o>0||null===o&&this.delay>0?super.requestAsyncId(e,n,o):e.flush(this)}});function zA({error:r,subscriber:e}){e.error(r)}class is{constructor(e,n,o){this.kind=e,this.value=n,this.error=o,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,n,o){switch(this.kind){case"N":return e&&e(this.value);case"E":return n&&n(this.error);case"C":return o&&o()}}accept(e,n,o){return e&&"function"==typeof e.next?this.observe(e):this.do(e,n,o)}toObservable(){switch(this.kind){case"N":return function pA(...r){let e=r[r.length-1];return Gs(e)?(r.pop(),D0(r,e)):Wu(r)}(this.value);case"E":return function BA(r,e){return new Ie(e?n=>e.schedule(zA,0,{error:r,subscriber:n}):n=>n.error(r))}(this.error);case"C":return function RA(r){return r?function IL(r){return new Ie(e=>r.schedule(()=>e.complete()))}(r):AL}()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new is("N",e):is.undefinedValueNotification}static createError(e){return new is("E",void 0,e)}static createComplete(){return is.completeNotification}}is.completeNotification=new is("C"),is.undefinedValueNotification=new is("N",void 0);class oc extends _n{constructor(e,n,o=0){super(e),this.scheduler=n,this.delay=o}static dispatch(e){const{notification:n,destination:o}=e;n.observe(o),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(oc.dispatch,this.delay,new qA(e,this.destination)))}_next(e){this.scheduleMessage(is.createNext(e))}_error(e){this.scheduleMessage(is.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(is.createComplete()),this.unsubscribe()}}class qA{constructor(e,n){this.notification=e,this.destination=n}}class VA extends nn{constructor(e=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY,o){super(),this.scheduler=o,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){const n=this._events;n.push(e),n.length>this._bufferSize&&n.shift(),super.next(e)}nextTimeWindow(e){this._events.push(new QL(this._getNow(),e)),this._trimBufferThenGetEvents(),super.next(e)}_subscribe(e){const n=this._infiniteTimeWindow,o=n?this._events:this._trimBufferThenGetEvents(),a=this.scheduler,u=o.length;let h;if(this.closed)throw new zt;if(this.isStopped||this.hasError?h=ee.EMPTY:(this.observers.push(e),h=new ui(this,e)),a&&e.add(e=new oc(e,a)),n)for(let g=0;g<u&&!e.closed;g++)e.next(o[g]);else for(let g=0;g<u&&!e.closed;g++)e.next(o[g].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),h}_getNow(){return(this.scheduler||jA).now()}_trimBufferThenGetEvents(){const e=this._getNow(),n=this._bufferSize,o=this._windowTime,a=this._events,u=a.length;let h=0;for(;h<u&&!(e-a[h].time<o);)h++;return u>n&&(h=Math.max(h,u-n)),h>0&&a.splice(0,h),a}}class QL{constructor(e,n){this.time=e,this.value=n}}function HA(r,e){return"function"==typeof e?n=>n.pipe(HA((o,a)=>V(r(o,a)).pipe(Us((u,h)=>e(o,u,a,h))))):n=>n.lift(new YL(r))}class YL{constructor(e){this.project=e}call(e,n){return n.subscribe(new $A(e,this.project))}}class $A extends nh{constructor(e,n){super(e),this.project=n,this.index=0}_next(e){let n;const o=this.index++;try{n=this.project(e,o)}catch(a){return void this.destination.error(a)}this._innerSub(n)}_innerSub(e){const n=this.innerSubscription;n&&n.unsubscribe();const o=new Uu(this),a=this.destination;a.add(o),this.innerSubscription=kn(e,o),this.innerSubscription!==o&&a.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;(!e||e.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const Sg={schedule(r,e){const n=setTimeout(r,e);return()=>clearTimeout(n)},scheduleBeforeRender(r){if("undefined"==typeof window)return Sg.schedule(r,0);if(void 0===window.requestAnimationFrame)return Sg.schedule(r,16);const e=window.requestAnimationFrame(r);return()=>window.cancelAnimationFrame(e)}};let Xv;function e5(r,e,n){let o=n;return function ZL(r){return!!r&&r.nodeType===Node.ELEMENT_NODE}(r)&&e.some((a,u)=>!("*"===a||!function ax(r,e){if(!Xv){const n=Element.prototype;Xv=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return r.nodeType===Node.ELEMENT_NODE&&Xv.call(r,e)}(r,a)||(o=u,0))),o}class lx{constructor(e,n){this.componentFactory=n.get(Cu).resolveComponentFactory(e)}create(e){return new n5(this.componentFactory,e)}}class n5{constructor(e,n){this.componentFactory=e,this.injector=n,this.eventEmitters=new VA(1),this.events=this.eventEmitters.pipe(HA(o=>ya(...o))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:o})=>o)),this.ngZone=this.injector.get(Hn),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=Sg.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(e){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,n){this.runInZone(()=>{null!==this.componentRef?function XL(r,e){return r===e||r!=r&&e!=e}(n,this.getInputValue(e))&&(void 0!==n||!this.unchangedInputs.has(e))||(this.recordInputChange(e,n),this.unchangedInputs.delete(e),this.hasInputChanges=!0,this.componentRef.instance[e]=n,this.scheduleDetectChanges()):this.initialInputValues.set(e,n)})}initializeComponent(e){const n=si.create({providers:[],parent:this.injector}),o=function KA(r,e){const n=r.childNodes,o=e.map(()=>[]);let a=-1;e.some((u,h)=>"*"===u&&(a=h,!0));for(let u=0,h=n.length;u<h;++u){const g=n[u],v=e5(g,e,a);-1!==v&&o[v].push(g)}return o}(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(n,o,e),this.viewChangeDetectorRef=this.componentRef.injector.get(WD),this.implementsOnChanges=function sx(r){return"function"==typeof r}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(hv).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:e})=>{this.initialInputValues.has(e)&&this.setInputValue(e,this.initialInputValues.get(e))}),this.initialInputValues.clear()}initializeOutputs(e){const n=this.componentFactory.outputs.map(({propName:o,templateName:a})=>e.instance[o].pipe(Us(h=>({name:a,value:h}))));this.eventEmitters.next(n)}callNgOnChanges(e){if(!this.implementsOnChanges||null===this.inputChanges)return;const n=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(n)}markViewForCheck(e){this.hasInputChanges&&(this.hasInputChanges=!1,e.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Sg.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(e,n){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const o=this.inputChanges[e];if(o)return void(o.currentValue=n);const a=this.unchangedInputs.has(e),u=a?void 0:this.getInputValue(e);this.inputChanges[e]=new ll(u,n,a)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}}class QA extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}class Ht{}const el="*";function sc(r,e=null){return{type:2,steps:r,options:e}}function ha(r){return{type:6,styles:r,offset:null}}function e0(r){Promise.resolve(null).then(r)}class Nu{constructor(e=0,n=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+n}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){e0(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const n="start"==e?this._onStartFns:this._onDoneFns;n.forEach(o=>o()),n.length=0}}class Cg{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let n=0,o=0,a=0;const u=this.players.length;0==u?e0(()=>this._onFinish()):this.players.forEach(h=>{h.onDone(()=>{++n==u&&this._onFinish()}),h.onDestroy(()=>{++o==u&&this._onDestroy()}),h.onStart(()=>{++a==u&&this._onStart()})}),this.totalTime=this.players.reduce((h,g)=>Math.max(h,g.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const n=e*this.totalTime;this.players.forEach(o=>{const a=o.totalTime?Math.min(1,n/o.totalTime):1;o.setPosition(a)})}getPosition(){const e=this.players.reduce((n,o)=>null===n||o.totalTime>n.totalTime?o:n,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const n="start"==e?this._onStartFns:this._onDoneFns;n.forEach(o=>o()),n.length=0}}const _t=!1;function cx(r){return new Me(3e3,_t)}function C5(){return"undefined"!=typeof window&&void 0!==window.document}function gx(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function lc(r){switch(r.length){case 0:return new Nu;case 1:return r[0];default:return new Cg(r)}}function nI(r,e,n,o,a={},u={}){const h=[],g=[];let v=-1,x=null;if(o.forEach(R=>{const L=R.offset,F=L==v,U=F&&x||{};Object.keys(R).forEach(Z=>{let ie=Z,le=R[Z];if("offset"!==Z)switch(ie=e.normalizePropertyName(ie,h),le){case"!":le=a[Z];break;case el:le=u[Z];break;default:le=e.normalizeStyleValue(Z,ie,le,h)}U[ie]=le}),F||g.push(U),x=U,v=L}),h.length)throw function p5(r){return new Me(3502,_t)}();return g}function mx(r,e,n,o){switch(e){case"start":r.onStart(()=>o(n&&Dg(n,"start",r)));break;case"done":r.onDone(()=>o(n&&Dg(n,"done",r)));break;case"destroy":r.onDestroy(()=>o(n&&Dg(n,"destroy",r)))}}function Dg(r,e,n){const o=n.totalTime,u=s0(r.element,r.triggerName,r.fromState,r.toState,e||r.phaseName,null==o?r.totalTime:o,!!n.disabled),h=r._data;return null!=h&&(u._data=h),u}function s0(r,e,n,o,a="",u=0,h){return{element:r,triggerName:e,fromState:n,toState:o,phaseName:a,totalTime:u,disabled:!!h}}function ji(r,e,n){let o;return r instanceof Map?(o=r.get(e),o||r.set(e,o=n)):(o=r[e],o||(o=r[e]=n)),o}function yx(r){const e=r.indexOf(":");return[r.substring(1,e),r.substr(e+1)]}let vx=(r,e)=>!1,bx=(r,e,n)=>[],rI=null;function _x(r){const e=r.parentNode||r.host;return e===rI?null:e}(gx()||"undefined"!=typeof Element)&&(C5()?(rI=(()=>document.documentElement)(),vx=(r,e)=>{for(;e;){if(e===r)return!0;e=_x(e)}return!1}):vx=(r,e)=>r.contains(e),bx=(r,e,n)=>{if(n)return Array.from(r.querySelectorAll(e));const o=r.querySelector(e);return o?[o]:[]});let ju=null,iI=!1;function oI(r){ju||(ju=function D5(){return"undefined"!=typeof document?document.body:null}()||{},iI=!!ju.style&&"WebkitAppearance"in ju.style);let e=!0;return ju.style&&!function kg(r){return"ebkit"==r.substring(1,6)}(r)&&(e=r in ju.style,!e&&iI&&(e="Webkit"+r.charAt(0).toUpperCase()+r.substr(1)in ju.style)),e}const wx=vx,a0=bx;let sI=(()=>{class r{validateStyleProperty(n){return oI(n)}matchesElement(n,o){return!1}containsElement(n,o){return wx(n,o)}getParentElement(n){return _x(n)}query(n,o,a){return a0(n,o,a)}computeStyle(n,o,a){return a||""}animate(n,o,a,u,h,g=[],v){return new Nu(a,u)}}return r.\u0275fac=function(n){return new(n||r)},r.\u0275prov=Ae({token:r,factory:r.\u0275fac}),r})(),xx=(()=>{class r{}return r.NOOP=new sI,r})();const Ex="ng-enter",l0="ng-leave",c0="ng-trigger",u0=".ng-trigger",Cx="ng-animating",Dx=".ng-animating";function Bu(r){if("number"==typeof r)return r;const e=r.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:kx(parseFloat(e[1]),e[2])}function kx(r,e){return"s"===e?1e3*r:r}function d0(r,e,n){return r.hasOwnProperty("duration")?r:function I5(r,e,n){let a,u=0,h="";if("string"==typeof r){const g=r.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===g)return e.push(cx()),{duration:0,delay:0,easing:""};a=kx(parseFloat(g[1]),g[2]);const v=g[3];null!=v&&(u=kx(parseFloat(v),g[4]));const x=g[5];x&&(h=x)}else a=r;if(!n){let g=!1,v=e.length;a<0&&(e.push(function a5(){return new Me(3100,_t)}()),g=!0),u<0&&(e.push(function l5(){return new Me(3101,_t)}()),g=!0),g&&e.splice(v,0,cx())}return{duration:a,delay:u,easing:h}}(r,e,n)}function Wf(r,e={}){return Object.keys(r).forEach(n=>{e[n]=r[n]}),e}function i(r,e,n={}){if(e)for(let o in r)n[o]=r[o];else Wf(r,n);return n}function s(r,e,n){return n?e+":"+n+";":""}function l(r){let e="";for(let n=0;n<r.style.length;n++){const o=r.style.item(n);e+=s(0,o,r.style.getPropertyValue(o))}for(const n in r.style)r.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=s(0,E(n),r.style[n]));r.setAttribute("style",e)}function c(r,e,n){r.style&&(Object.keys(e).forEach(o=>{const a=S(o);n&&!n.hasOwnProperty(o)&&(n[o]=r.style[a]),r.style[a]=e[o]}),gx()&&l(r))}function d(r,e){r.style&&(Object.keys(e).forEach(n=>{const o=S(n);r.style[o]=""}),gx()&&l(r))}function f(r){return Array.isArray(r)?1==r.length?r[0]:sc(r):r}const m=new RegExp("{{\\s*(.+?)\\s*}}","g");function y(r){let e=[];if("string"==typeof r){let n;for(;n=m.exec(r);)e.push(n[1]);m.lastIndex=0}return e}function b(r,e,n){const o=r.toString(),a=o.replace(m,(u,h)=>{let g=e[h];return e.hasOwnProperty(h)||(n.push(function ux(r){return new Me(3003,_t)}()),g=""),g.toString()});return a==o?r:a}function _(r){const e=[];let n=r.next();for(;!n.done;)e.push(n.value),n=r.next();return e}const w=/-+([a-z0-9])/g;function S(r){return r.replace(w,(...e)=>e[1].toUpperCase())}function E(r){return r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function D(r,e,n){switch(e.type){case 7:return r.visitTrigger(e,n);case 0:return r.visitState(e,n);case 1:return r.visitTransition(e,n);case 2:return r.visitSequence(e,n);case 3:return r.visitGroup(e,n);case 4:return r.visitAnimate(e,n);case 5:return r.visitKeyframes(e,n);case 6:return r.visitStyle(e,n);case 8:return r.visitReference(e,n);case 9:return r.visitAnimateChild(e,n);case 10:return r.visitAnimateRef(e,n);case 11:return r.visitQuery(e,n);case 12:return r.visitStagger(e,n);default:throw function dx(r){return new Me(3004,_t)}()}}function k(r,e){return window.getComputedStyle(r)[e]}const G="*";function Q(r,e){const n=[];return"string"==typeof r?r.split(/\s*,\s*/).forEach(o=>function H(r,e,n){if(":"==r[0]){const v=function z(r,e){switch(r){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(n,o)=>parseFloat(o)>parseFloat(n);case":decrement":return(n,o)=>parseFloat(o)<parseFloat(n);default:return e.push(function px(r){return new Me(3016,_t)}()),"* => *"}}(r,n);if("function"==typeof v)return void e.push(v);r=v}const o=r.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==o||o.length<4)return n.push(function Gf(r){return new Me(3015,_t)}()),e;const a=o[1],u=o[2],h=o[3];e.push(X(a,h));"<"==u[0]&&!(a==G&&h==G)&&e.push(X(h,a))}(o,n,e)):n.push(r),n}const K=new Set(["true","1"]),Y=new Set(["false","0"]);function X(r,e){const n=K.has(r)||Y.has(r),o=K.has(e)||Y.has(e);return(a,u)=>{let h=r==G||r==a,g=e==G||e==u;return!h&&n&&"boolean"==typeof a&&(h=a?K.has(r):Y.has(r)),!g&&o&&"boolean"==typeof u&&(g=u?K.has(e):Y.has(e)),h&&g}}const q=new RegExp("s*:selfs*,?","g");function $(r,e,n,o){return new te(r).build(e,n,o)}class te{constructor(e){this._driver=e}build(e,n,o){const a=new ue(n);this._resetContextStyleTimingState(a);const u=D(this,f(e),a);return a.unsupportedCSSPropertiesFound.size&&a.unsupportedCSSPropertiesFound.keys(),u}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,n){let o=n.queryCount=0,a=n.depCount=0;const u=[],h=[];return"@"==e.name.charAt(0)&&n.errors.push(function xF(){return new Me(3006,_t)}()),e.definitions.forEach(g=>{if(this._resetContextStyleTimingState(n),0==g.type){const v=g,x=v.name;x.toString().split(/\s*,\s*/).forEach(R=>{v.name=R,u.push(this.visitState(v,n))}),v.name=x}else if(1==g.type){const v=this.visitTransition(g,n);o+=v.queryCount,a+=v.depCount,h.push(v)}else n.errors.push(function n0(){return new Me(3007,_t)}())}),{type:7,name:e.name,states:u,transitions:h,queryCount:o,depCount:a,options:null}}visitState(e,n){const o=this.visitStyle(e.styles,n),a=e.options&&e.options.params||null;if(o.containsDynamicStyles){const u=new Set,h=a||{};o.styles.forEach(g=>{if(ve(g)){const v=g;Object.keys(v).forEach(x=>{y(v[x]).forEach(R=>{h.hasOwnProperty(R)||u.add(R)})})}}),u.size&&(_(u.values()),n.errors.push(function hx(r,e){return new Me(3008,_t)}()))}return{type:0,name:e.name,style:o,options:a?{params:a}:null}}visitTransition(e,n){n.queryCount=0,n.depCount=0;const o=D(this,f(e.animation),n);return{type:1,matchers:Q(e.expr,n.errors),animation:o,queryCount:n.queryCount,depCount:n.depCount,options:fe(e.options)}}visitSequence(e,n){return{type:2,steps:e.steps.map(o=>D(this,o,n)),options:fe(e.options)}}visitGroup(e,n){const o=n.currentTime;let a=0;const u=e.steps.map(h=>{n.currentTime=o;const g=D(this,h,n);return a=Math.max(a,n.currentTime),g});return n.currentTime=a,{type:3,steps:u,options:fe(e.options)}}visitAnimate(e,n){const o=function Ee(r,e){if(r.hasOwnProperty("duration"))return r;if("number"==typeof r)return we(d0(r,e).duration,0,"");const n=r;if(n.split(/\s+/).some(u=>"{"==u.charAt(0)&&"{"==u.charAt(1))){const u=we(0,0,"");return u.dynamic=!0,u.strValue=n,u}const a=d0(n,e);return we(a.duration,a.delay,a.easing)}(e.timings,n.errors);n.currentAnimateTimings=o;let a,u=e.styles?e.styles:ha({});if(5==u.type)a=this.visitKeyframes(u,n);else{let h=e.styles,g=!1;if(!h){g=!0;const x={};o.easing&&(x.easing=o.easing),h=ha(x)}n.currentTime+=o.duration+o.delay;const v=this.visitStyle(h,n);v.isEmptyStep=g,a=v}return n.currentAnimateTimings=null,{type:4,timings:o,style:a,options:null}}visitStyle(e,n){const o=this._makeStyleAst(e,n);return this._validateStyleAst(o,n),o}_makeStyleAst(e,n){const o=[];Array.isArray(e.styles)?e.styles.forEach(h=>{"string"==typeof h?h==el?o.push(h):n.errors.push(function ZA(r){return new Me(3002,_t)}()):o.push(h)}):o.push(e.styles);let a=!1,u=null;return o.forEach(h=>{if(ve(h)){const g=h,v=g.easing;if(v&&(u=v,delete g.easing),!a)for(let x in g)if(g[x].toString().indexOf("{{")>=0){a=!0;break}}}),{type:6,styles:o,easing:u,offset:e.offset,containsDynamicStyles:a,options:null}}_validateStyleAst(e,n){const o=n.currentAnimateTimings;let a=n.currentTime,u=n.currentTime;o&&u>0&&(u-=o.duration+o.delay),e.styles.forEach(h=>{"string"!=typeof h&&Object.keys(h).forEach(g=>{if(!this._driver.validateStyleProperty(g))return delete h[g],void n.unsupportedCSSPropertiesFound.add(g);const v=n.collectedStyles[n.currentQuerySelector],x=v[g];let R=!0;x&&(u!=a&&u>=x.startTime&&a<=x.endTime&&(n.errors.push(function d5(r,e,n,o,a){return new Me(3010,_t)}()),R=!1),u=x.startTime),R&&(v[g]={startTime:u,endTime:a}),n.options&&function p(r,e,n){const o=e.params||{},a=y(r);a.length&&a.forEach(u=>{o.hasOwnProperty(u)||n.push(function c5(r){return new Me(3001,_t)}())})}(h[g],n.options,n.errors)})})}visitKeyframes(e,n){const o={type:5,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(function r0(){return new Me(3011,_t)}()),o;let u=0;const h=[];let g=!1,v=!1,x=0;const R=e.steps.map(de=>{const se=this._makeStyleAst(de,n);let ke=null!=se.offset?se.offset:function _e(r){if("string"==typeof r)return null;let e=null;if(Array.isArray(r))r.forEach(n=>{if(ve(n)&&n.hasOwnProperty("offset")){const o=n;e=parseFloat(o.offset),delete o.offset}});else if(ve(r)&&r.hasOwnProperty("offset")){const n=r;e=parseFloat(n.offset),delete n.offset}return e}(se.styles),ze=0;return null!=ke&&(u++,ze=se.offset=ke),v=v||ze<0||ze>1,g=g||ze<x,x=ze,h.push(ze),se});v&&n.errors.push(function XA(){return new Me(3012,_t)}()),g&&n.errors.push(function o0(){return new Me(3200,_t)}());const L=e.steps.length;let F=0;u>0&&u<L?n.errors.push(function JA(){return new Me(3202,_t)}()):0==u&&(F=1/(L-1));const U=L-1,Z=n.currentTime,ie=n.currentAnimateTimings,le=ie.duration;return R.forEach((de,se)=>{const ke=F>0?se==U?1:F*se:h[se],ze=ke*le;n.currentTime=Z+ie.delay+ze,ie.duration=ze,this._validateStyleAst(de,n),de.offset=ke,o.styles.push(de)}),o}visitReference(e,n){return{type:8,animation:D(this,f(e.animation),n),options:fe(e.options)}}visitAnimateChild(e,n){return n.depCount++,{type:9,options:fe(e.options)}}visitAnimateRef(e,n){return{type:10,animation:this.visitReference(e.animation,n),options:fe(e.options)}}visitQuery(e,n){const o=n.currentQuerySelector,a=e.options||{};n.queryCount++,n.currentQuery=e;const[u,h]=function J(r){const e=!!r.split(/\s*,\s*/).find(n=>":self"==n);return e&&(r=r.replace(q,"")),r=r.replace(/@\*/g,u0).replace(/@\w+/g,n=>u0+"-"+n.substr(1)).replace(/:animating/g,Dx),[r,e]}(e.selector);n.currentQuerySelector=o.length?o+" "+u:u,ji(n.collectedStyles,n.currentQuerySelector,{});const g=D(this,f(e.animation),n);return n.currentQuery=null,n.currentQuerySelector=o,{type:11,selector:u,limit:a.limit||0,optional:!!a.optional,includeSelf:h,animation:g,originalSelector:e.selector,options:fe(e.options)}}visitStagger(e,n){n.currentQuery||n.errors.push(function eI(){return new Me(3013,_t)}());const o="full"===e.timings?{duration:0,delay:0,easing:"full"}:d0(e.timings,n.errors,!0);return{type:12,animation:D(this,f(e.animation),n),timings:o,options:null}}}class ue{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function ve(r){return!Array.isArray(r)&&"object"==typeof r}function fe(r){return r?(r=Wf(r)).params&&(r.params=function ae(r){return r?Wf(r):null}(r.params)):r={},r}function we(r,e,n){return{duration:r,delay:e,easing:n}}function pe(r,e,n,o,a,u,h=null,g=!1){return{type:1,element:r,keyframes:e,preStyleProps:n,postStyleProps:o,duration:a,delay:u,totalTime:a+u,easing:h,subTimeline:g}}class ye{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,n){let o=this._map.get(e);o||this._map.set(e,o=[]),o.push(...n)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const qe=new RegExp(":enter","g"),lt=new RegExp(":leave","g");function xe(r,e,n,o,a,u={},h={},g,v,x=[]){return(new Ke).buildKeyframes(r,e,n,o,a,u,h,g,v,x)}class Ke{buildKeyframes(e,n,o,a,u,h,g,v,x,R=[]){x=x||new ye;const L=new Tt(e,n,x,a,u,R,[]);L.options=v,L.currentTimeline.setStyles([h],null,L.errors,v),D(this,o,L);const F=L.timelines.filter(U=>U.containsAnimation());if(Object.keys(g).length){let U;for(let Z=F.length-1;Z>=0;Z--){const ie=F[Z];if(ie.element===n){U=ie;break}}U&&!U.allowOnlyTimelineStyles()&&U.setStyles([g],null,L.errors,v)}return F.length?F.map(U=>U.buildKeyframes()):[pe(n,[],[],[],0,0,"",!1)]}visitTrigger(e,n){}visitState(e,n){}visitTransition(e,n){}visitAnimateChild(e,n){const o=n.subInstructions.get(n.element);if(o){const a=n.createSubContext(e.options),u=n.currentTimeline.currentTime,h=this._visitSubInstructions(o,a,a.options);u!=h&&n.transformIntoNewTimeline(h)}n.previousNode=e}visitAnimateRef(e,n){const o=n.createSubContext(e.options);o.transformIntoNewTimeline(),this.visitReference(e.animation,o),n.transformIntoNewTimeline(o.currentTimeline.currentTime),n.previousNode=e}_visitSubInstructions(e,n,o){let u=n.currentTimeline.currentTime;const h=null!=o.duration?Bu(o.duration):null,g=null!=o.delay?Bu(o.delay):null;return 0!==h&&e.forEach(v=>{const x=n.appendInstructionToTimeline(v,h,g);u=Math.max(u,x.duration+x.delay)}),u}visitReference(e,n){n.updateOptions(e.options,!0),D(this,e.animation,n),n.previousNode=e}visitSequence(e,n){const o=n.subContextCount;let a=n;const u=e.options;if(u&&(u.params||u.delay)&&(a=n.createSubContext(u),a.transformIntoNewTimeline(),null!=u.delay)){6==a.previousNode.type&&(a.currentTimeline.snapshotCurrentStyles(),a.previousNode=Xe);const h=Bu(u.delay);a.delayNextStep(h)}e.steps.length&&(e.steps.forEach(h=>D(this,h,a)),a.currentTimeline.applyStylesToKeyframe(),a.subContextCount>o&&a.transformIntoNewTimeline()),n.previousNode=e}visitGroup(e,n){const o=[];let a=n.currentTimeline.currentTime;const u=e.options&&e.options.delay?Bu(e.options.delay):0;e.steps.forEach(h=>{const g=n.createSubContext(e.options);u&&g.delayNextStep(u),D(this,h,g),a=Math.max(a,g.currentTimeline.currentTime),o.push(g.currentTimeline)}),o.forEach(h=>n.currentTimeline.mergeTimelineCollectedStyles(h)),n.transformIntoNewTimeline(a),n.previousNode=e}_visitTiming(e,n){if(e.dynamic){const o=e.strValue;return d0(n.params?b(o,n.params,n.errors):o,n.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,n){const o=n.currentAnimateTimings=this._visitTiming(e.timings,n),a=n.currentTimeline;o.delay&&(n.incrementTime(o.delay),a.snapshotCurrentStyles());const u=e.style;5==u.type?this.visitKeyframes(u,n):(n.incrementTime(o.duration),this.visitStyle(u,n),a.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=e}visitStyle(e,n){const o=n.currentTimeline,a=n.currentAnimateTimings;!a&&o.getCurrentStyleProperties().length&&o.forwardFrame();const u=a&&a.easing||e.easing;e.isEmptyStep?o.applyEmptyStep(u):o.setStyles(e.styles,u,n.errors,n.options),n.previousNode=e}visitKeyframes(e,n){const o=n.currentAnimateTimings,a=n.currentTimeline.duration,u=o.duration,g=n.createSubContext().currentTimeline;g.easing=o.easing,e.styles.forEach(v=>{g.forwardTime((v.offset||0)*u),g.setStyles(v.styles,v.easing,n.errors,n.options),g.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(g),n.transformIntoNewTimeline(a+u),n.previousNode=e}visitQuery(e,n){const o=n.currentTimeline.currentTime,a=e.options||{},u=a.delay?Bu(a.delay):0;u&&(6===n.previousNode.type||0==o&&n.currentTimeline.getCurrentStyleProperties().length)&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Xe);let h=o;const g=n.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!a.optional,n.errors);n.currentQueryTotal=g.length;let v=null;g.forEach((x,R)=>{n.currentQueryIndex=R;const L=n.createSubContext(e.options,x);u&&L.delayNextStep(u),x===n.element&&(v=L.currentTimeline),D(this,e.animation,L),L.currentTimeline.applyStylesToKeyframe(),h=Math.max(h,L.currentTimeline.currentTime)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(h),v&&(n.currentTimeline.mergeTimelineCollectedStyles(v),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=e}visitStagger(e,n){const o=n.parentContext,a=n.currentTimeline,u=e.timings,h=Math.abs(u.duration),g=h*(n.currentQueryTotal-1);let v=h*n.currentQueryIndex;switch(u.duration<0?"reverse":u.easing){case"reverse":v=g-v;break;case"full":v=o.currentStaggerTime}const R=n.currentTimeline;v&&R.delayNextStep(v);const L=R.currentTime;D(this,e.animation,n),n.previousNode=e,o.currentStaggerTime=a.currentTime-L+(a.startTime-o.currentTimeline.startTime)}}const Xe={};class Tt{constructor(e,n,o,a,u,h,g,v){this._driver=e,this.element=n,this.subInstructions=o,this._enterClassName=a,this._leaveClassName=u,this.errors=h,this.timelines=g,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Xe,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=v||new Je(this._driver,n,0),g.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,n){if(!e)return;const o=e;let a=this.options;null!=o.duration&&(a.duration=Bu(o.duration)),null!=o.delay&&(a.delay=Bu(o.delay));const u=o.params;if(u){let h=a.params;h||(h=this.options.params={}),Object.keys(u).forEach(g=>{(!n||!h.hasOwnProperty(g))&&(h[g]=b(u[g],h,this.errors))})}}_copyOptions(){const e={};if(this.options){const n=this.options.params;if(n){const o=e.params={};Object.keys(n).forEach(a=>{o[a]=n[a]})}}return e}createSubContext(e=null,n,o){const a=n||this.element,u=new Tt(this._driver,a,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(a,o||0));return u.previousNode=this.previousNode,u.currentAnimateTimings=this.currentAnimateTimings,u.options=this._copyOptions(),u.updateOptions(e),u.currentQueryIndex=this.currentQueryIndex,u.currentQueryTotal=this.currentQueryTotal,u.parentContext=this,this.subContextCount++,u}transformIntoNewTimeline(e){return this.previousNode=Xe,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,n,o){const a={duration:null!=n?n:e.duration,delay:this.currentTimeline.currentTime+(null!=o?o:0)+e.delay,easing:""},u=new nt(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,a,e.stretchStartingKeyframe);return this.timelines.push(u),a}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,n,o,a,u,h){let g=[];if(a&&g.push(this.element),e.length>0){e=(e=e.replace(qe,"."+this._enterClassName)).replace(lt,"."+this._leaveClassName);let x=this._driver.query(this.element,e,1!=o);0!==o&&(x=o<0?x.slice(x.length+o,x.length):x.slice(0,o)),g.push(...x)}return!u&&0==g.length&&h.push(function f5(r){return new Me(3014,_t)}()),g}}class Je{constructor(e,n,o,a){this._driver=e,this.element=n,this.startTime=o,this._elementTimelineStylesLookup=a,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const n=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||n?(this.forwardTime(this.currentTime+e),n&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,n){return this.applyStylesToKeyframe(),new Je(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,n){this._localTimelineStyles[e]=n,this._globalTimelineStyles[e]=n,this._styleSummary[e]={time:this.currentTime,value:n}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(n=>{this._backFill[n]=this._globalTimelineStyles[n]||el,this._currentKeyframe[n]=el}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,n,o,a){n&&(this._previousKeyframe.easing=n);const u=a&&a.params||{},h=function xt(r,e){const n={};let o;return r.forEach(a=>{"*"===a?(o=o||Object.keys(e),o.forEach(u=>{n[u]=el})):i(a,!1,n)}),n}(e,this._globalTimelineStyles);Object.keys(h).forEach(g=>{const v=b(h[g],u,o);this._pendingStyles[g]=v,this._localTimelineStyles.hasOwnProperty(g)||(this._backFill[g]=this._globalTimelineStyles.hasOwnProperty(g)?this._globalTimelineStyles[g]:el),this._updateStyle(g,v)})}applyStylesToKeyframe(){const e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach(o=>{this._currentKeyframe[o]=e[o]}),Object.keys(this._localTimelineStyles).forEach(o=>{this._currentKeyframe.hasOwnProperty(o)||(this._currentKeyframe[o]=this._localTimelineStyles[o])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const n=this._localTimelineStyles[e];this._pendingStyles[e]=n,this._updateStyle(e,n)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let n in this._currentKeyframe)e.push(n);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(n=>{const o=this._styleSummary[n],a=e._styleSummary[n];(!o||a.time>o.time)&&this._updateStyle(n,a.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,n=new Set,o=1===this._keyframes.size&&0===this.duration;let a=[];this._keyframes.forEach((g,v)=>{const x=i(g,!0);Object.keys(x).forEach(R=>{const L=x[R];"!"==L?e.add(R):L==el&&n.add(R)}),o||(x.offset=v/this.duration),a.push(x)});const u=e.size?_(e.values()):[],h=n.size?_(n.values()):[];if(o){const g=a[0],v=Wf(g);g.offset=0,v.offset=1,a=[g,v]}return pe(this.element,a,u,h,this.duration,this.startTime,this.easing,!1)}}class nt extends Je{constructor(e,n,o,a,u,h,g=!1){super(e,n,h.delay),this.keyframes=o,this.preStyleProps=a,this.postStyleProps=u,this._stretchStartingKeyframe=g,this.timings={duration:h.duration,delay:h.delay,easing:h.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:n,duration:o,easing:a}=this.timings;if(this._stretchStartingKeyframe&&n){const u=[],h=o+n,g=n/h,v=i(e[0],!1);v.offset=0,u.push(v);const x=i(e[0],!1);x.offset=ot(g),u.push(x);const R=e.length-1;for(let L=1;L<=R;L++){let F=i(e[L],!1);F.offset=ot((n+F.offset*o)/h),u.push(F)}o=h,n=0,a="",e=u}return pe(this.element,e,this.preStyleProps,this.postStyleProps,o,n,a,!0)}}function ot(r,e=3){const n=Math.pow(10,e-1);return Math.round(r*n)/n}class Kt{}class Be extends Kt{normalizePropertyName(e,n){return S(e)}normalizeStyleValue(e,n,o,a){let u="";const h=o.toString().trim();if(qt[n]&&0!==o&&"0"!==o)if("number"==typeof o)u="px";else{const g=o.match(/^[+-]?[\d\.]+([a-z]*)$/);g&&0==g[1].length&&a.push(function fx(r,e){return new Me(3005,_t)}())}return h+u}}const qt=(()=>function gn(r){const e={};return r.forEach(n=>e[n]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function mn(r,e,n,o,a,u,h,g,v,x,R,L,F){return{type:0,element:r,triggerName:e,isRemovalTransition:a,fromState:n,fromStyles:u,toState:o,toStyles:h,timelines:g,queriedElements:v,preStyleProps:x,postStyleProps:R,totalTime:L,errors:F}}const Nr={};class Kr{constructor(e,n,o){this._triggerName=e,this.ast=n,this._stateStyles=o}match(e,n,o,a){return function _r(r,e,n,o,a){return r.some(u=>u(e,n,o,a))}(this.ast.matchers,e,n,o,a)}buildStyles(e,n,o){const a=this._stateStyles["*"],u=this._stateStyles[e],h=a?a.buildStyles(n,o):{};return u?u.buildStyles(n,o):h}build(e,n,o,a,u,h,g,v,x,R){const L=[],F=this.ast.options&&this.ast.options.params||Nr,Z=this.buildStyles(o,g&&g.params||Nr,L),ie=v&&v.params||Nr,le=this.buildStyles(a,ie,L),de=new Set,se=new Map,ke=new Map,ze="void"===a,Rt={params:Object.assign(Object.assign({},F),ie)},ur=R?[]:xe(e,n,this.ast.animation,u,h,Z,le,Rt,x,L);let xr=0;if(ur.forEach(Vs=>{xr=Math.max(Vs.duration+Vs.delay,xr)}),L.length)return mn(n,this._triggerName,o,a,ze,Z,le,[],[],se,ke,xr,L);ur.forEach(Vs=>{const Hs=Vs.element,w0=ji(se,Hs,{});Vs.preStyleProps.forEach(nl=>w0[nl]=!0);const Gu=ji(ke,Hs,{});Vs.postStyleProps.forEach(nl=>Gu[nl]=!0),Hs!==n&&de.add(Hs)});const qs=_(de.values());return mn(n,this._triggerName,o,a,ze,Z,le,ur,qs,se,ke,xr)}}class Qt{constructor(e,n,o){this.styles=e,this.defaultParams=n,this.normalizer=o}buildStyles(e,n){const o={},a=Wf(this.defaultParams);return Object.keys(e).forEach(u=>{const h=e[u];null!=h&&(a[u]=h)}),this.styles.styles.forEach(u=>{if("string"!=typeof u){const h=u;Object.keys(h).forEach(g=>{let v=h[g];v.length>1&&(v=b(v,a,n));const x=this.normalizer.normalizePropertyName(g,n);v=this.normalizer.normalizeStyleValue(g,x,v,n),o[x]=v})}}),o}}class un{constructor(e,n,o){this.name=e,this.ast=n,this._normalizer=o,this.transitionFactories=[],this.states={},n.states.forEach(a=>{this.states[a.name]=new Qt(a.style,a.options&&a.options.params||{},o)}),Gn(this.states,"true","1"),Gn(this.states,"false","0"),n.transitions.forEach(a=>{this.transitionFactories.push(new Kr(e,a,this.states))}),this.fallbackTransition=function $n(r,e,n){return new Kr(r,{type:1,animation:{type:2,steps:[],options:null},matchers:[(h,g)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,n,o,a){return this.transitionFactories.find(h=>h.match(e,n,o,a))||null}matchStyles(e,n,o){return this.fallbackTransition.buildStyles(e,n,o)}}function Gn(r,e,n){r.hasOwnProperty(e)?r.hasOwnProperty(n)||(r[n]=r[e]):r.hasOwnProperty(n)&&(r[e]=r[n])}const Dn=new ye;class Fe{constructor(e,n,o){this.bodyNode=e,this._driver=n,this._normalizer=o,this._animations={},this._playersById={},this.players=[]}register(e,n){const o=[],u=$(this._driver,n,o,[]);if(o.length)throw function g5(r){return new Me(3503,_t)}();this._animations[e]=u}_buildPlayer(e,n,o){const a=e.element,u=nI(0,this._normalizer,0,e.keyframes,n,o);return this._driver.animate(a,u,e.duration,e.delay,e.easing,[],!0)}create(e,n,o={}){const a=[],u=this._animations[e];let h;const g=new Map;if(u?(h=xe(this._driver,n,u,Ex,l0,{},{},o,Dn,a),h.forEach(R=>{const L=ji(g,R.element,{});R.postStyleProps.forEach(F=>L[F]=null)})):(a.push(function m5(){return new Me(3300,_t)}()),h=[]),a.length)throw function y5(r){return new Me(3504,_t)}();g.forEach((R,L)=>{Object.keys(R).forEach(F=>{R[F]=this._driver.computeStyle(L,F,el)})});const x=lc(h.map(R=>{const L=g.get(R.element);return this._buildPlayer(R,{},L)}));return this._playersById[e]=x,x.onDestroy(()=>this.destroy(e)),this.players.push(x),x}destroy(e){const n=this._getPlayer(e);n.destroy(),delete this._playersById[e];const o=this.players.indexOf(n);o>=0&&this.players.splice(o,1)}_getPlayer(e){const n=this._playersById[e];if(!n)throw function v5(r){return new Me(3301,_t)}();return n}listen(e,n,o,a){const u=s0(n,"","","");return mx(this._getPlayer(e),o,u,a),()=>{}}command(e,n,o,a){if("register"==o)return void this.register(e,a[0]);if("create"==o)return void this.create(e,n,a[0]||{});const u=this._getPlayer(e);switch(o){case"play":u.play();break;case"pause":u.pause();break;case"reset":u.reset();break;case"restart":u.restart();break;case"finish":u.finish();break;case"init":u.init();break;case"setPosition":u.setPosition(parseFloat(a[0]));break;case"destroy":this.destroy(e)}}}const Ge="ng-animate-queued",At="ng-animate-disabled",Bt=[],sn={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Tn={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Nt="__ng_removed";class Ct{constructor(e,n=""){this.namespaceId=n;const o=e&&e.hasOwnProperty("value");if(this.value=function no(r){return null!=r?r:null}(o?e.value:e),o){const u=Wf(e);delete u.value,this.options=u}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const n=e.params;if(n){const o=this.options.params;Object.keys(n).forEach(a=>{null==o[a]&&(o[a]=n[a])})}}}const Ft="void",It=new Ct(Ft);class On{constructor(e,n,o){this.id=e,this.hostElement=n,this._engine=o,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,yn(n,this._hostClassName)}listen(e,n,o,a){if(!this._triggers.hasOwnProperty(n))throw function b5(r,e){return new Me(3302,_t)}();if(null==o||0==o.length)throw function _5(r){return new Me(3303,_t)}();if(!function cc(r){return"start"==r||"done"==r}(o))throw function w5(r,e){return new Me(3400,_t)}();const u=ji(this._elementListeners,e,[]),h={name:n,phase:o,callback:a};u.push(h);const g=ji(this._engine.statesByElement,e,{});return g.hasOwnProperty(n)||(yn(e,c0),yn(e,c0+"-"+n),g[n]=It),()=>{this._engine.afterFlush(()=>{const v=u.indexOf(h);v>=0&&u.splice(v,1),this._triggers[n]||delete g[n]})}}register(e,n){return!this._triggers[e]&&(this._triggers[e]=n,!0)}_getTrigger(e){const n=this._triggers[e];if(!n)throw function x5(r){return new Me(3401,_t)}();return n}trigger(e,n,o,a=!0){const u=this._getTrigger(n),h=new Yn(this.id,n,e);let g=this._engine.statesByElement.get(e);g||(yn(e,c0),yn(e,c0+"-"+n),this._engine.statesByElement.set(e,g={}));let v=g[n];const x=new Ct(o,this.id);if(!(o&&o.hasOwnProperty("value"))&&v&&x.absorbOptions(v.options),g[n]=x,v||(v=It),x.value!==Ft&&v.value===x.value){if(!function R5(r,e){const n=Object.keys(r),o=Object.keys(e);if(n.length!=o.length)return!1;for(let a=0;a<n.length;a++){const u=n[a];if(!e.hasOwnProperty(u)||r[u]!==e[u])return!1}return!0}(v.params,x.params)){const ie=[],le=u.matchStyles(v.value,v.params,ie),de=u.matchStyles(x.value,x.params,ie);ie.length?this._engine.reportError(ie):this._engine.afterFlush(()=>{d(e,le),c(e,de)})}return}const F=ji(this._engine.playersByElement,e,[]);F.forEach(ie=>{ie.namespaceId==this.id&&ie.triggerName==n&&ie.queued&&ie.destroy()});let U=u.matchTransition(v.value,x.value,e,x.params),Z=!1;if(!U){if(!a)return;U=u.fallbackTransition,Z=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:n,transition:U,fromState:v,toState:x,player:h,isFallbackTransition:Z}),Z||(yn(e,Ge),h.onStart(()=>{dc(e,Ge)})),h.onDone(()=>{let ie=this.players.indexOf(h);ie>=0&&this.players.splice(ie,1);const le=this._engine.playersByElement.get(e);if(le){let de=le.indexOf(h);de>=0&&le.splice(de,1)}}),this.players.push(h),F.push(h),h}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((n,o)=>{delete n[e]}),this._elementListeners.forEach((n,o)=>{this._elementListeners.set(o,n.filter(a=>a.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const n=this._engine.playersByElement.get(e);n&&(n.forEach(o=>o.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,n){const o=this._engine.driver.query(e,u0,!0);o.forEach(a=>{if(a[Nt])return;const u=this._engine.fetchNamespacesByElement(a);u.size?u.forEach(h=>h.triggerLeaveAnimation(a,n,!1,!0)):this.clearElementCache(a)}),this._engine.afterFlushAnimationsDone(()=>o.forEach(a=>this.clearElementCache(a)))}triggerLeaveAnimation(e,n,o,a){const u=this._engine.statesByElement.get(e),h=new Map;if(u){const g=[];if(Object.keys(u).forEach(v=>{if(h.set(v,u[v].value),this._triggers[v]){const x=this.trigger(e,v,Ft,a);x&&g.push(x)}}),g.length)return this._engine.markElementAsRemoved(this.id,e,!0,n,h),o&&lc(g).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const n=this._elementListeners.get(e),o=this._engine.statesByElement.get(e);if(n&&o){const a=new Set;n.forEach(u=>{const h=u.name;if(a.has(h))return;a.add(h);const v=this._triggers[h].fallbackTransition,x=o[h]||It,R=new Ct(Ft),L=new Yn(this.id,h,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:h,transition:v,fromState:x,toState:R,player:L,isFallbackTransition:!0})})}}removeNode(e,n){const o=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,n),this.triggerLeaveAnimation(e,n,!0))return;let a=!1;if(o.totalAnimations){const u=o.players.length?o.playersByQueriedElement.get(e):[];if(u&&u.length)a=!0;else{let h=e;for(;h=h.parentNode;)if(o.statesByElement.get(h)){a=!0;break}}}if(this.prepareLeaveAnimationListeners(e),a)o.markElementAsRemoved(this.id,e,!1,n);else{const u=e[Nt];(!u||u===sn)&&(o.afterFlush(()=>this.clearElementCache(e)),o.destroyInnerAnimations(e),o._onRemovalComplete(e,n))}}insertNode(e,n){yn(e,this._hostClassName)}drainQueuedTransitions(e){const n=[];return this._queue.forEach(o=>{const a=o.player;if(a.destroyed)return;const u=o.element,h=this._elementListeners.get(u);h&&h.forEach(g=>{if(g.name==o.triggerName){const v=s0(u,o.triggerName,o.fromState.value,o.toState.value);v._data=e,mx(o.player,g.phase,v,g.callback)}}),a.markedForDestroy?this._engine.afterFlush(()=>{a.destroy()}):n.push(o)}),this._queue=[],n.sort((o,a)=>{const u=o.transition.ast.depCount,h=a.transition.ast.depCount;return 0==u||0==h?u-h:this._engine.driver.containsElement(o.element,a.element)?1:-1})}destroy(e){this.players.forEach(n=>n.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let n=!1;return this._elementListeners.has(e)&&(n=!0),n=!!this._queue.find(o=>o.element===e)||n,n}}class ti{constructor(e,n,o){this.bodyNode=e,this.driver=n,this._normalizer=o,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(a,u)=>{}}_onRemovalComplete(e,n){this.onRemovalComplete(e,n)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(n=>{n.players.forEach(o=>{o.queued&&e.push(o)})}),e}createNamespace(e,n){const o=new On(e,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(o,n):(this.newHostElements.set(n,o),this.collectEnterElement(n)),this._namespaceLookup[e]=o}_balanceNamespaceList(e,n){const o=this._namespaceList,a=this.namespacesByHostElement,u=o.length-1;if(u>=0){let h=!1;if(void 0!==this.driver.getParentElement){let g=this.driver.getParentElement(n);for(;g;){const v=a.get(g);if(v){const x=o.indexOf(v);o.splice(x+1,0,e),h=!0;break}g=this.driver.getParentElement(g)}}else for(let g=u;g>=0;g--)if(this.driver.containsElement(o[g].hostElement,n)){o.splice(g+1,0,e),h=!0;break}h||o.unshift(e)}else o.push(e);return a.set(n,e),e}register(e,n){let o=this._namespaceLookup[e];return o||(o=this.createNamespace(e,n)),o}registerTrigger(e,n,o){let a=this._namespaceLookup[e];a&&a.register(n,o)&&this.totalAnimations++}destroy(e,n){if(!e)return;const o=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(o.hostElement),delete this._namespaceLookup[e];const a=this._namespaceList.indexOf(o);a>=0&&this._namespaceList.splice(a,1)}),this.afterFlushAnimationsDone(()=>o.destroy(n))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const n=new Set,o=this.statesByElement.get(e);if(o){const a=Object.keys(o);for(let u=0;u<a.length;u++){const h=o[a[u]].namespaceId;if(h){const g=this._fetchNamespace(h);g&&n.add(g)}}}return n}trigger(e,n,o,a){if(Bi(n)){const u=this._fetchNamespace(e);if(u)return u.trigger(n,o,a),!0}return!1}insertNode(e,n,o,a){if(!Bi(n))return;const u=n[Nt];if(u&&u.setForRemoval){u.setForRemoval=!1,u.setForMove=!0;const h=this.collectedLeaveElements.indexOf(n);h>=0&&this.collectedLeaveElements.splice(h,1)}if(e){const h=this._fetchNamespace(e);h&&h.insertNode(n,o)}a&&this.collectEnterElement(n)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,n){n?this.disabledNodes.has(e)||(this.disabledNodes.add(e),yn(e,At)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),dc(e,At))}removeNode(e,n,o,a){if(Bi(n)){const u=e?this._fetchNamespace(e):null;if(u?u.removeNode(n,a):this.markElementAsRemoved(e,n,!1,a),o){const h=this.namespacesByHostElement.get(n);h&&h.id!==e&&h.removeNode(n,a)}}else this._onRemovalComplete(n,a)}markElementAsRemoved(e,n,o,a,u){this.collectedLeaveElements.push(n),n[Nt]={namespaceId:e,setForRemoval:a,hasAnimation:o,removedBeforeQueried:!1,previousTriggersValues:u}}listen(e,n,o,a,u){return Bi(n)?this._fetchNamespace(e).listen(n,o,a,u):()=>{}}_buildInstruction(e,n,o,a,u){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,o,a,e.fromState.options,e.toState.options,n,u)}destroyInnerAnimations(e){let n=this.driver.query(e,u0,!0);n.forEach(o=>this.destroyActiveAnimationsForElement(o)),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,Dx,!0),n.forEach(o=>this.finishActiveQueriedAnimationOnElement(o)))}destroyActiveAnimationsForElement(e){const n=this.playersByElement.get(e);n&&n.forEach(o=>{o.queued?o.markedForDestroy=!0:o.destroy()})}finishActiveQueriedAnimationOnElement(e){const n=this.playersByQueriedElement.get(e);n&&n.forEach(o=>o.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return lc(this.players).onDone(()=>e());e()})}processLeaveNode(e){var n;const o=e[Nt];if(o&&o.setForRemoval){if(e[Nt]=sn,o.namespaceId){this.destroyInnerAnimations(e);const a=this._fetchNamespace(o.namespaceId);a&&a.clearElementCache(e)}this._onRemovalComplete(e,o.setForRemoval)}(null===(n=e.classList)||void 0===n?void 0:n.contains(At))&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(a=>{this.markElementAsDisabled(a,!1)})}flush(e=-1){let n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((o,a)=>this._balanceNamespaceList(o,a)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let o=0;o<this.collectedEnterElements.length;o++)yn(this.collectedEnterElements[o],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const o=[];try{n=this._flushAnimations(o,e)}finally{for(let a=0;a<o.length;a++)o[a]()}}else for(let o=0;o<this.collectedLeaveElements.length;o++)this.processLeaveNode(this.collectedLeaveElements[o]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(o=>o()),this._flushFns=[],this._whenQuietFns.length){const o=this._whenQuietFns;this._whenQuietFns=[],n.length?lc(n).onDone(()=>{o.forEach(a=>a())}):o.forEach(a=>a())}}reportError(e){throw function S5(r){return new Me(3402,_t)}()}_flushAnimations(e,n){const o=new ye,a=[],u=new Map,h=[],g=new Map,v=new Map,x=new Map,R=new Set;this.disabledNodes.forEach(Le=>{R.add(Le);const Qe=this.driver.query(Le,".ng-animate-queued",!0);for(let at=0;at<Qe.length;at++)R.add(Qe[at])});const L=this.bodyNode,F=Array.from(this.statesByElement.keys()),U=mt(F,this.collectedEnterElements),Z=new Map;let ie=0;U.forEach((Le,Qe)=>{const at=Ex+ie++;Z.set(Qe,at),Le.forEach(tn=>yn(tn,at))});const le=[],de=new Set,se=new Set;for(let Le=0;Le<this.collectedLeaveElements.length;Le++){const Qe=this.collectedLeaveElements[Le],at=Qe[Nt];at&&at.setForRemoval&&(le.push(Qe),de.add(Qe),at.hasAnimation?this.driver.query(Qe,".ng-star-inserted",!0).forEach(tn=>de.add(tn)):se.add(Qe))}const ke=new Map,ze=mt(F,Array.from(de));ze.forEach((Le,Qe)=>{const at=l0+ie++;ke.set(Qe,at),Le.forEach(tn=>yn(tn,at))}),e.push(()=>{U.forEach((Le,Qe)=>{const at=Z.get(Qe);Le.forEach(tn=>dc(tn,at))}),ze.forEach((Le,Qe)=>{const at=ke.get(Qe);Le.forEach(tn=>dc(tn,at))}),le.forEach(Le=>{this.processLeaveNode(Le)})});const Rt=[],ur=[];for(let Le=this._namespaceList.length-1;Le>=0;Le--)this._namespaceList[Le].drainQueuedTransitions(n).forEach(at=>{const tn=at.player,Ei=at.element;if(Rt.push(tn),this.collectedEnterElements.length){const Mo=Ei[Nt];if(Mo&&Mo.setForMove){if(Mo.previousTriggersValues&&Mo.previousTriggersValues.has(at.triggerName)){const Pg=Mo.previousTriggersValues.get(at.triggerName),Xf=this.statesByElement.get(at.element);Xf&&Xf[at.triggerName]&&(Xf[at.triggerName].value=Pg)}return void tn.destroy()}}const hc=!L||!this.driver.containsElement(L,Ei),$s=ke.get(Ei),Zf=Z.get(Ei),Sr=this._buildInstruction(at,o,Zf,$s,hc);if(Sr.errors&&Sr.errors.length)return void ur.push(Sr);if(hc)return tn.onStart(()=>d(Ei,Sr.fromStyles)),tn.onDestroy(()=>c(Ei,Sr.toStyles)),void a.push(tn);if(at.isFallbackTransition)return tn.onStart(()=>d(Ei,Sr.fromStyles)),tn.onDestroy(()=>c(Ei,Sr.toStyles)),void a.push(tn);const d3=[];Sr.timelines.forEach(Mo=>{Mo.stretchStartingKeyframe=!0,this.disabledNodes.has(Mo.element)||d3.push(Mo)}),Sr.timelines=d3,o.append(Ei,Sr.timelines),h.push({instruction:Sr,player:tn,element:Ei}),Sr.queriedElements.forEach(Mo=>ji(g,Mo,[]).push(tn)),Sr.preStyleProps.forEach((Mo,Pg)=>{const Xf=Object.keys(Mo);if(Xf.length){let Ng=v.get(Pg);Ng||v.set(Pg,Ng=new Set),Xf.forEach(Q5=>Ng.add(Q5))}}),Sr.postStyleProps.forEach((Mo,Pg)=>{const Xf=Object.keys(Mo);let Ng=x.get(Pg);Ng||x.set(Pg,Ng=new Set),Xf.forEach(Q5=>Ng.add(Q5))})});if(ur.length){const Le=[];ur.forEach(Qe=>{Le.push(function E5(r,e){return new Me(3505,_t)}())}),Rt.forEach(Qe=>Qe.destroy()),this.reportError(Le)}const xr=new Map,qs=new Map;h.forEach(Le=>{const Qe=Le.element;o.has(Qe)&&(qs.set(Qe,Qe),this._beforeAnimationBuild(Le.player.namespaceId,Le.instruction,xr))}),a.forEach(Le=>{const Qe=Le.element;this._getPreviousPlayers(Qe,!1,Le.namespaceId,Le.triggerName,null).forEach(tn=>{ji(xr,Qe,[]).push(tn),tn.destroy()})});const Vs=le.filter(Le=>lI(Le,v,x)),Hs=new Map;uc(Hs,this.driver,se,x,el).forEach(Le=>{lI(Le,v,x)&&Vs.push(Le)});const Gu=new Map;U.forEach((Le,Qe)=>{uc(Gu,this.driver,new Set(Le),v,"!")}),Vs.forEach(Le=>{const Qe=Hs.get(Le),at=Gu.get(Le);Hs.set(Le,Object.assign(Object.assign({},Qe),at))});const nl=[],x0=[],S0={};h.forEach(Le=>{const{element:Qe,player:at,instruction:tn}=Le;if(o.has(Qe)){if(R.has(Qe))return at.onDestroy(()=>c(Qe,tn.toStyles)),at.disabled=!0,at.overrideTotalTime(tn.totalTime),void a.push(at);let Ei=S0;if(qs.size>1){let $s=Qe;const Zf=[];for(;$s=$s.parentNode;){const Sr=qs.get($s);if(Sr){Ei=Sr;break}Zf.push($s)}Zf.forEach(Sr=>qs.set(Sr,Ei))}const hc=this._buildAnimation(at.namespaceId,tn,xr,u,Gu,Hs);if(at.setRealPlayer(hc),Ei===S0)nl.push(at);else{const $s=this.playersByElement.get(Ei);$s&&$s.length&&(at.parentPlayer=lc($s)),a.push(at)}}else d(Qe,tn.fromStyles),at.onDestroy(()=>c(Qe,tn.toStyles)),x0.push(at),R.has(Qe)&&a.push(at)}),x0.forEach(Le=>{const Qe=u.get(Le.element);if(Qe&&Qe.length){const at=lc(Qe);Le.setRealPlayer(at)}}),a.forEach(Le=>{Le.parentPlayer?Le.syncPlayerEvents(Le.parentPlayer):Le.destroy()});for(let Le=0;Le<le.length;Le++){const Qe=le[Le],at=Qe[Nt];if(dc(Qe,l0),at&&at.hasAnimation)continue;let tn=[];if(g.size){let hc=g.get(Qe);hc&&hc.length&&tn.push(...hc);let $s=this.driver.query(Qe,Dx,!0);for(let Zf=0;Zf<$s.length;Zf++){let Sr=g.get($s[Zf]);Sr&&Sr.length&&tn.push(...Sr)}}const Ei=tn.filter(hc=>!hc.destroyed);Ei.length?Ag(this,Qe,Ei):this.processLeaveNode(Qe)}return le.length=0,nl.forEach(Le=>{this.players.push(Le),Le.onDone(()=>{Le.destroy();const Qe=this.players.indexOf(Le);this.players.splice(Qe,1)}),Le.play()}),nl}elementContainsData(e,n){let o=!1;const a=n[Nt];return a&&a.setForRemoval&&(o=!0),this.playersByElement.has(n)&&(o=!0),this.playersByQueriedElement.has(n)&&(o=!0),this.statesByElement.has(n)&&(o=!0),this._fetchNamespace(e).elementContainsData(n)||o}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,n,o,a,u){let h=[];if(n){const g=this.playersByQueriedElement.get(e);g&&(h=g)}else{const g=this.playersByElement.get(e);if(g){const v=!u||u==Ft;g.forEach(x=>{x.queued||!v&&x.triggerName!=a||h.push(x)})}}return(o||a)&&(h=h.filter(g=>!(o&&o!=g.namespaceId||a&&a!=g.triggerName))),h}_beforeAnimationBuild(e,n,o){const u=n.element,h=n.isRemovalTransition?void 0:e,g=n.isRemovalTransition?void 0:n.triggerName;for(const v of n.timelines){const x=v.element,R=x!==u,L=ji(o,x,[]);this._getPreviousPlayers(x,R,h,g,n.toState).forEach(U=>{const Z=U.getRealPlayer();Z.beforeDestroy&&Z.beforeDestroy(),U.destroy(),L.push(U)})}d(u,n.fromStyles)}_buildAnimation(e,n,o,a,u,h){const g=n.triggerName,v=n.element,x=[],R=new Set,L=new Set,F=n.timelines.map(Z=>{const ie=Z.element;R.add(ie);const le=ie[Nt];if(le&&le.removedBeforeQueried)return new Nu(Z.duration,Z.delay);const de=ie!==v,se=function Kf(r){const e=[];return f0(r,e),e}((o.get(ie)||Bt).map(xr=>xr.getRealPlayer())).filter(xr=>!!xr.element&&xr.element===ie),ke=u.get(ie),ze=h.get(ie),Rt=nI(0,this._normalizer,0,Z.keyframes,ke,ze),ur=this._buildPlayer(Z,Rt,se);if(Z.subTimeline&&a&&L.add(ie),de){const xr=new Yn(e,g,ie);xr.setRealPlayer(ur),x.push(xr)}return ur});x.forEach(Z=>{ji(this.playersByQueriedElement,Z.element,[]).push(Z),Z.onDone(()=>function Fr(r,e,n){let o;if(r instanceof Map){if(o=r.get(e),o){if(o.length){const a=o.indexOf(n);o.splice(a,1)}0==o.length&&r.delete(e)}}else if(o=r[e],o){if(o.length){const a=o.indexOf(n);o.splice(a,1)}0==o.length&&delete r[e]}return o}(this.playersByQueriedElement,Z.element,Z))}),R.forEach(Z=>yn(Z,Cx));const U=lc(F);return U.onDestroy(()=>{R.forEach(Z=>dc(Z,Cx)),c(v,n.toStyles)}),L.forEach(Z=>{ji(a,Z,[]).push(U)}),U}_buildPlayer(e,n,o){return n.length>0?this.driver.animate(e.element,n,e.duration,e.delay,e.easing,o):new Nu(e.duration,e.delay)}}class Yn{constructor(e,n,o){this.namespaceId=e,this.triggerName=n,this.element=o,this._player=new Nu,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(n=>{this._queuedCallbacks[n].forEach(o=>mx(e,n,void 0,o))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const n=this._player;n.triggerCallback&&e.onStart(()=>n.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,n){ji(this._queuedCallbacks,e,[]).push(n)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const n=this._player;n.triggerCallback&&n.triggerCallback(e)}}function Bi(r){return r&&1===r.nodeType}function ro(r,e){const n=r.style.display;return r.style.display=null!=e?e:"none",n}function uc(r,e,n,o,a){const u=[];n.forEach(v=>u.push(ro(v)));const h=[];o.forEach((v,x)=>{const R={};v.forEach(L=>{const F=R[L]=e.computeStyle(x,L,a);(!F||0==F.length)&&(x[Nt]=Tn,h.push(x))}),r.set(x,R)});let g=0;return n.forEach(v=>ro(v,u[g++])),h}function mt(r,e){const n=new Map;if(r.forEach(g=>n.set(g,[])),0==e.length)return n;const a=new Set(e),u=new Map;function h(g){if(!g)return 1;let v=u.get(g);if(v)return v;const x=g.parentNode;return v=n.has(x)?x:a.has(x)?1:h(x),u.set(g,v),v}return e.forEach(g=>{const v=h(g);1!==v&&n.get(v).push(g)}),n}function yn(r,e){var n;null===(n=r.classList)||void 0===n||n.add(e)}function dc(r,e){var n;null===(n=r.classList)||void 0===n||n.remove(e)}function Ag(r,e,n){lc(n).onDone(()=>r.processLeaveNode(e))}function f0(r,e){for(let n=0;n<r.length;n++){const o=r[n];o instanceof Cg?f0(o.players,e):e.push(o)}}function lI(r,e,n){const o=n.get(r);if(!o)return!1;let a=e.get(r);return a?o.forEach(u=>a.add(u)):e.set(r,o),n.delete(r),!0}class h0{constructor(e,n,o){this.bodyNode=e,this._driver=n,this._normalizer=o,this._triggerCache={},this.onRemovalComplete=(a,u)=>{},this._transitionEngine=new ti(e,n,o),this._timelineEngine=new Fe(e,n,o),this._transitionEngine.onRemovalComplete=(a,u)=>this.onRemovalComplete(a,u)}registerTrigger(e,n,o,a,u){const h=e+"-"+a;let g=this._triggerCache[h];if(!g){const v=[],R=$(this._driver,u,v,[]);if(v.length)throw function h5(r,e){return new Me(3404,_t)}();g=function $t(r,e,n){return new un(r,e,n)}(a,R,this._normalizer),this._triggerCache[h]=g}this._transitionEngine.registerTrigger(n,a,g)}register(e,n){this._transitionEngine.register(e,n)}destroy(e,n){this._transitionEngine.destroy(e,n)}onInsert(e,n,o,a){this._transitionEngine.insertNode(e,n,o,a)}onRemove(e,n,o,a){this._transitionEngine.removeNode(e,n,a||!1,o)}disableAnimations(e,n){this._transitionEngine.markElementAsDisabled(e,n)}process(e,n,o,a){if("@"==o.charAt(0)){const[u,h]=yx(o);this._timelineEngine.command(u,n,h,a)}else this._transitionEngine.trigger(e,n,o,a)}listen(e,n,o,a,u){if("@"==o.charAt(0)){const[h,g]=yx(o);return this._timelineEngine.listen(h,n,g,u)}return this._transitionEngine.listen(e,n,o,a,u)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let T5=(()=>{class r{constructor(n,o,a){this._element=n,this._startStyles=o,this._endStyles=a,this._state=0;let u=r.initialStylesByElement.get(n);u||r.initialStylesByElement.set(n,u={}),this._initialStyles=u}start(){this._state<1&&(this._startStyles&&c(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(c(this._element,this._initialStyles),this._endStyles&&(c(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(r.initialStylesByElement.delete(this._element),this._startStyles&&(d(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(d(this._element,this._endStyles),this._endStyles=null),c(this._element,this._initialStyles),this._state=3)}}return r.initialStylesByElement=new WeakMap,r})();function zu(r){let e=null;const n=Object.keys(r);for(let o=0;o<n.length;o++){const a=n[o];cI(a)&&(e=e||{},e[a]=r[a])}return e}function cI(r){return"display"===r||"position"===r}class p0{constructor(e,n,o,a){this.element=e,this.keyframes=n,this.options=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=o.duration,this._delay=o.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,n,o){return e.animate(n,o)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};if(this.hasStarted()){const n=this._finalKeyframe;Object.keys(n).forEach(o=>{"offset"!=o&&(e[o]=this._finished?n[o]:k(this.element,o))})}this.currentSnapshot=e}triggerCallback(e){const n="start"==e?this._onStartFns:this._onDoneFns;n.forEach(o=>o()),n.length=0}}class g0{validateStyleProperty(e){return oI(e)}matchesElement(e,n){return!1}containsElement(e,n){return wx(e,n)}getParentElement(e){return _x(e)}query(e,n,o){return a0(e,n,o)}computeStyle(e,n,o){return window.getComputedStyle(e)[n]}animate(e,n,o,a,u,h=[]){const v={duration:o,delay:a,fill:0==a?"both":"forwards"};u&&(v.easing=u);const x={},R=h.filter(F=>F instanceof p0);(function C(r,e){return 0===r||0===e})(o,a)&&R.forEach(F=>{let U=F.currentSnapshot;Object.keys(U).forEach(Z=>x[Z]=U[Z])}),n=function I(r,e,n){const o=Object.keys(n);if(o.length&&e.length){let u=e[0],h=[];if(o.forEach(g=>{u.hasOwnProperty(g)||h.push(g),u[g]=n[g]}),h.length)for(var a=1;a<e.length;a++){let g=e[a];h.forEach(function(v){g[v]=k(r,v)})}}return e}(e,n=n.map(F=>i(F,!1)),x);const L=function M5(r,e){let n=null,o=null;return Array.isArray(e)&&e.length?(n=zu(e[0]),e.length>1&&(o=zu(e[e.length-1]))):e&&(n=zu(e)),n||o?new T5(r,n,o):null}(e,n);return new p0(e,n,v,L)}}let Qf=(()=>{class r extends Ht{constructor(n,o){super(),this._nextAnimationId=0,this._renderer=n.createRenderer(o.body,{id:"0",encapsulation:me.None,styles:[],data:{animation:[]}})}build(n){const o=this._nextAnimationId.toString();this._nextAnimationId++;const a=Array.isArray(n)?sc(n):n;return Ax(this._renderer,null,o,"register",[a]),new Ig(o,this._renderer)}}return r.\u0275fac=function(n){return new(n||r)(he(Ze),he(en))},r.\u0275prov=Ae({token:r,factory:r.\u0275fac}),r})();class Ig extends class r5{}{constructor(e,n){super(),this._id=e,this._renderer=n}create(e,n){return new O5(this._id,e,n||{},this._renderer)}}class O5{constructor(e,n,o,a){this.id=e,this.element=n,this._renderer=a,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",o)}_listen(e,n){return this._renderer.listen(this.element,`@@${this.id}:${e}`,n)}_command(e,...n){return Ax(this._renderer,this.element,this.id,e,n)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(e){this._command("setPosition",e)}getPosition(){var e,n;return null!==(n=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==n?n:0}}function Ax(r,e,n,o,a){return r.setProperty(e,`@@${n}:${o}`,a)}const uI="@.disabled";let dI=(()=>{class r{constructor(n,o,a){this.delegate=n,this.engine=o,this._zone=a,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),o.onRemovalComplete=(u,h)=>{const g=null==h?void 0:h.parentNode(u);g&&h.removeChild(g,u)}}createRenderer(n,o){const u=this.delegate.createRenderer(n,o);if(!(n&&o&&o.data&&o.data.animation)){let R=this._rendererCache.get(u);return R||(R=new m0("",u,this.engine),this._rendererCache.set(u,R)),R}const h=o.id,g=o.id+"-"+this._currentId;this._currentId++,this.engine.register(g,n);const v=R=>{Array.isArray(R)?R.forEach(v):this.engine.registerTrigger(h,g,n,R.name,R)};return o.data.animation.forEach(v),new Ix(this,g,u,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(n,o,a){n>=0&&n<this._microtaskId?this._zone.run(()=>o(a)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(u=>{const[h,g]=u;h(g)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([o,a]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return r.\u0275fac=function(n){return new(n||r)(he(Ze),he(h0),he(Hn))},r.\u0275prov=Ae({token:r,factory:r.\u0275fac}),r})();class m0{constructor(e,n,o){this.namespaceId=e,this.delegate=n,this.engine=o,this.destroyNode=this.delegate.destroyNode?a=>n.destroyNode(a):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,n){return this.delegate.createElement(e,n)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,n){this.delegate.appendChild(e,n),this.engine.onInsert(this.namespaceId,n,e,!1)}insertBefore(e,n,o,a=!0){this.delegate.insertBefore(e,n,o),this.engine.onInsert(this.namespaceId,n,e,a)}removeChild(e,n,o){this.engine.onRemove(this.namespaceId,n,this.delegate,o)}selectRootElement(e,n){return this.delegate.selectRootElement(e,n)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,n,o,a){this.delegate.setAttribute(e,n,o,a)}removeAttribute(e,n,o){this.delegate.removeAttribute(e,n,o)}addClass(e,n){this.delegate.addClass(e,n)}removeClass(e,n){this.delegate.removeClass(e,n)}setStyle(e,n,o,a){this.delegate.setStyle(e,n,o,a)}removeStyle(e,n,o){this.delegate.removeStyle(e,n,o)}setProperty(e,n,o){"@"==n.charAt(0)&&n==uI?this.disableAnimations(e,!!o):this.delegate.setProperty(e,n,o)}setValue(e,n){this.delegate.setValue(e,n)}listen(e,n,o){return this.delegate.listen(e,n,o)}disableAnimations(e,n){this.engine.disableAnimations(e,n)}}class Ix extends m0{constructor(e,n,o,a){super(n,o,a),this.factory=e,this.namespaceId=n}setProperty(e,n,o){"@"==n.charAt(0)?"."==n.charAt(1)&&n==uI?this.disableAnimations(e,o=void 0===o||!!o):this.engine.process(this.namespaceId,e,n.substr(1),o):this.delegate.setProperty(e,n,o)}listen(e,n,o){if("@"==n.charAt(0)){const a=function Mg(r){switch(r){case"body":return document.body;case"document":return document;case"window":return window;default:return r}}(e);let u=n.substr(1),h="";return"@"!=u.charAt(0)&&([u,h]=function qu(r){const e=r.indexOf(".");return[r.substring(0,e),r.substr(e+1)]}(u)),this.engine.listen(this.namespaceId,a,u,h,g=>{this.factory.scheduleListenerCallback(g._data||-1,o,g)})}return this.delegate.listen(e,n,o)}}let fc=(()=>{class r extends h0{constructor(n,o,a){super(n.body,o,a)}ngOnDestroy(){this.flush()}}return r.\u0275fac=function(n){return new(n||r)(he(en),he(xx),he(Kt))},r.\u0275prov=Ae({token:r,factory:r.\u0275fac}),r})();const Vu=new pt("AnimationModuleType"),Hu=[{provide:Ht,useClass:Qf},{provide:Kt,useFactory:function fI(){return new Be}},{provide:h0,useClass:fc},{provide:Ze,useFactory:function L5(r,e,n){return new dI(r,e,n)},deps:[Pv,h0,Hn]}],Rx=[{provide:xx,useFactory:()=>new g0},{provide:Vu,useValue:"BrowserAnimations"},...Hu],P5=[{provide:xx,useClass:sI},{provide:Vu,useValue:"NoopAnimations"},...Hu];let N5=(()=>{class r{static withConfig(n){return{ngModule:r,providers:n.disableAnimations?P5:Rx}}}return r.\u0275fac=function(n){return new(n||r)},r.\u0275mod=co({type:r}),r.\u0275inj=Hi({providers:Rx,imports:[Fw]}),r})(),hI=(()=>{class r{constructor(n){this._document=n}ngOnDestroy(){const n=this._containerElement;n&&n.parentNode&&n.parentNode.removeChild(n)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const n="cdk-overlay-container",o=this._document.querySelectorAll(`.${n}`);if(null==o?void 0:o.length)this._containerElement=o[0];else{const a=this._document.createElement("div");a.classList.add(n),this._document.body.appendChild(a),this._containerElement=a}}}return r.\u0275fac=function(n){return new(n||r)(he(en))},r.\u0275prov=Ae({token:r,factory:r.\u0275fac}),r})();class pI extends nn{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const n=super._subscribe(e);return n&&!n.closed&&e.next(this._value),n}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new zt;return this._value}next(e){super.next(this._value=e)}}function Mx(r){for(let e in r){let n=r[e]||"";switch(e){case"display":r.display="flex"===n?["-webkit-flex","flex"]:"inline-flex"===n?["-webkit-inline-flex","inline-flex"]:n;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":r["-webkit-"+e]=n;break;case"flex-direction":n=n||"row",r["-webkit-flex-direction"]=n,r["flex-direction"]=n;break;case"order":r.order=r["-webkit-"+e]=isNaN(+n)?"0":n}}return r}const y0="inline",Tg=["row","column","row-reverse","column-reverse"];function Tx(r){let[e,n,o]=function Ox(r){var e;r=null!==(e=null==r?void 0:r.toLowerCase())&&void 0!==e?e:"";let[n,o,a]=r.split(" ");return Tg.find(u=>u===n)||(n=Tg[0]),o===y0&&(o=a!==y0?a:"",a=y0),[n,Lx(o),!!a]}(r);return function Px(r,e=null,n=!1){return{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":r,"flex-wrap":e||null}}(e,n,o)}function Lx(r){if(r)switch(r.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":r="wrap-reverse";break;case"no":case"none":case"nowrap":r="nowrap";break;default:r="wrap"}return r}function ga(){}class E3{constructor(e,n,o){this.nextOrObserver=e,this.error=n,this.complete=o}call(e,n){return n.subscribe(new C3(e,this.nextOrObserver,this.error,this.complete))}}class C3 extends _n{constructor(e,n,o,a){super(e),this._tapNext=ga,this._tapError=ga,this._tapComplete=ga,this._tapError=o||ga,this._tapComplete=a||ga,vn(n)?(this._context=this,this._tapNext=n):n&&(this._context=n,this._tapNext=n.next||ga,this._tapError=n.error||ga,this._tapComplete=n.complete||ga)}_next(e){try{this._tapNext.call(this._context,e)}catch(n){return void this.destination.error(n)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(n){return void this.destination.error(n)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}const k3={provide:D2,useFactory:function D3(r,e){return()=>{if(Mu(e)){const n=Array.from(r.querySelectorAll(`[class*=${kF}]`)),o=/\bflex-layout-.+?\b/g;n.forEach(a=>{a.classList.contains(`${kF}ssr`)&&a.parentNode?a.parentNode.removeChild(a):a.className.replace(o,"")})}}},deps:[en,Ts],multi:!0},kF="flex-layout-";let F5=(()=>{class r{}return r.\u0275fac=function(n){return new(n||r)},r.\u0275mod=co({type:r}),r.\u0275inj=Hi({providers:[k3]}),r})();class Lg{constructor(e=!1,n="all",o="",a="",u=0){this.matches=e,this.mediaQuery=n,this.mqAlias=o,this.suffix=a,this.priority=u,this.property=""}clone(){return new Lg(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let A3=(()=>{class r{constructor(){this.stylesheet=new Map}addStyleToElement(n,o,a){const u=this.stylesheet.get(n);u?u.set(o,a):this.stylesheet.set(n,new Map([[o,a]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(n,o){const a=this.stylesheet.get(n);let u="";if(a){const h=a.get(o);("number"==typeof h||"string"==typeof h)&&(u=h+"")}return u}}return r.\u0275fac=function(n){return new(n||r)},r.\u0275prov=Ae({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const j5={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},tl=new pt("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>j5}),v0=new pt("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),B5=new pt("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function AF(r,e){return r=r?r.clone():new Lg,e&&(r.mqAlias=e.alias,r.mediaQuery=e.mediaQuery,r.suffix=e.suffix,r.priority=e.priority),r}class jr{constructor(){this.shouldCache=!0}sideEffect(e,n,o){}}let Zn=(()=>{class r{constructor(n,o,a,u){this._serverStylesheet=n,this._serverModuleLoaded=o,this._platformId=a,this.layoutConfig=u}applyStyleToElement(n,o,a=null){let u={};"string"==typeof o&&(u[o]=a,o=u),u=this.layoutConfig.disableVendorPrefixes?o:Mx(o),this._applyMultiValueStyleToElement(u,n)}applyStyleToElements(n,o=[]){const a=this.layoutConfig.disableVendorPrefixes?n:Mx(n);o.forEach(u=>{this._applyMultiValueStyleToElement(a,u)})}getFlowDirection(n){const o="flex-direction";let a=this.lookupStyle(n,o);return[a||"row",this.lookupInlineStyle(n,o)||da(this._platformId)&&this._serverModuleLoaded?a:""]}hasWrap(n){return"wrap"===this.lookupStyle(n,"flex-wrap")}lookupAttributeValue(n,o){var a;return null!==(a=n.getAttribute(o))&&void 0!==a?a:""}lookupInlineStyle(n,o){return Mu(this._platformId)?n.style.getPropertyValue(o):function I3(r,e){var n;return null!==(n=IF(r)[e])&&void 0!==n?n:""}(n,o)}lookupStyle(n,o,a=!1){let u="";return n&&((u=this.lookupInlineStyle(n,o))||(Mu(this._platformId)?a||(u=getComputedStyle(n).getPropertyValue(o)):this._serverModuleLoaded&&(u=this._serverStylesheet.getStyleForElement(n,o)))),u?u.trim():""}_applyMultiValueStyleToElement(n,o){Object.keys(n).sort().forEach(a=>{const u=n[a],h=Array.isArray(u)?u:[u];h.sort();for(let g of h)g=g?g+"":"",Mu(this._platformId)||!this._serverModuleLoaded?Mu(this._platformId)?o.style.setProperty(a,g):R3(o,a,g):this._serverStylesheet.addStyleToElement(o,a,g)})}}return r.\u0275fac=function(n){return new(n||r)(he(A3),he(v0),he(Ts),he(tl))},r.\u0275prov=Ae({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function R3(r,e,n){e=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const o=IF(r);o[e]=null!=n?n:"",function M3(r,e){let n="";for(const o in e)e[o]&&(n+=`${o}:${e[o]};`);r.setAttribute("style",n)}(r,o)}function IF(r){const e={},n=r.getAttribute("style");if(n){const o=n.split(/;+/g);for(let a=0;a<o.length;a++){const u=o[a].trim();if(u.length>0){const h=u.indexOf(":");if(-1===h)throw new Error(`Invalid CSS style: ${u}`);e[u.substr(0,h).trim()]=u.substr(h+1).trim()}}}return e}function Nx(r,e){return(e&&e.priority||0)-(r&&r.priority||0)}function T3(r,e){return(r.priority||0)-(e.priority||0)}let z5=(()=>{class r{constructor(n,o,a){this._zone=n,this._platformId=o,this._document=a,this.source=new pI(new Lg(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const n=[];return this.registry.forEach((o,a)=>{o.matches&&n.push(a)}),n}isActive(n){var o;const a=this.registry.get(n);return null!==(o=null==a?void 0:a.matches)&&void 0!==o?o:this.registerQuery(n).some(u=>u.matches)}observe(n,o=!1){if(n&&n.length){const a=this._observable$.pipe($v(h=>!o||n.indexOf(h.mediaQuery)>-1));return ya(new Ie(h=>{const g=this.registerQuery(n);if(g.length){const v=g.pop();g.forEach(x=>{h.next(x)}),this.source.next(v)}h.complete()}),a)}return this._observable$}registerQuery(n){const o=Array.isArray(n)?n:[n],a=[];return function O3(r,e){const n=r.filter(o=>!RF[o]);if(n.length>0){const o=n.join(", ");try{const a=e.createElement("style");a.setAttribute("type","text/css"),a.styleSheet||a.appendChild(e.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${o} {.fx-query-test{ }}\n`)),e.head.appendChild(a),n.forEach(u=>RF[u]=a)}catch(a){console.error(a)}}}(o,this._document),o.forEach(u=>{const h=v=>{this._zone.run(()=>this.source.next(new Lg(v.matches,u)))};let g=this.registry.get(u);g||(g=this.buildMQL(u),g.addListener(h),this.pendingRemoveListenerFns.push(()=>g.removeListener(h)),this.registry.set(u,g)),g.matches&&a.push(new Lg(!0,u))}),a}ngOnDestroy(){let n;for(;n=this.pendingRemoveListenerFns.pop();)n()}buildMQL(n){return function L3(r,e){return e&&window.matchMedia("all").addListener?window.matchMedia(r):{matches:"all"===r||""===r,media:r,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(n,Mu(this._platformId))}}return r.\u0275fac=function(n){return new(n||r)(he(Hn),he(Ts),he(en))},r.\u0275prov=Ae({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const RF={},P3=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],MF="(orientation: portrait) and (max-width: 599.98px)",TF="(orientation: landscape) and (max-width: 959.98px)",OF="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",LF="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",PF="(orientation: portrait) and (min-width: 840px)",NF="(orientation: landscape) and (min-width: 1280px)",$u={HANDSET:`${MF}, ${TF}`,TABLET:`${OF} , ${LF}`,WEB:`${PF}, ${NF} `,HANDSET_PORTRAIT:`${MF}`,TABLET_PORTRAIT:`${OF} `,WEB_PORTRAIT:`${PF}`,HANDSET_LANDSCAPE:`${TF}`,TABLET_LANDSCAPE:`${LF}`,WEB_LANDSCAPE:`${NF}`},N3=[{alias:"handset",priority:2e3,mediaQuery:$u.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:$u.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:$u.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:$u.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:$u.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:$u.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:$u.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:$u.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:$u.WEB_PORTRAIT,overlapping:!0}],F3=/(\.|-|_)/g;function j3(r){let e=r.length>0?r.charAt(0):"",n=r.length>1?r.slice(1):"";return e.toUpperCase()+n}const V3=new pt("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const r=yd(B5),e=yd(tl),n=[].concat.apply([],(r||[]).map(a=>Array.isArray(a)?a:[a]));return function q3(r,e=[]){const n={};return r.forEach(o=>{n[o.alias]=o}),e.forEach(o=>{n[o.alias]?function zs(r,...e){if(null==r)throw TypeError("Cannot convert undefined or null to object");for(let n of e)if(null!=n)for(let o in n)n.hasOwnProperty(o)&&(r[o]=n[o]);return r}(n[o.alias],o):n[o.alias]=o}),function z3(r){return r.forEach(e=>{e.suffix||(e.suffix=function B3(r){return r.replace(F3,"|").split("|").map(j3).join("")}(e.alias),e.overlapping=!!e.overlapping)}),r}(Object.keys(n).map(o=>n[o]))}((e.disableDefaultBps?[]:P3).concat(e.addOrientationBps?N3:[]),n)}});let q5=(()=>{class r{constructor(n){this.findByMap=new Map,this.items=[...n].sort(T3)}findByAlias(n){return n?this.findWithPredicate(n,o=>o.alias===n):null}findByQuery(n){return this.findWithPredicate(n,o=>o.mediaQuery===n)}get overlappings(){return this.items.filter(n=>n.overlapping)}get aliases(){return this.items.map(n=>n.alias)}get suffixes(){return this.items.map(n=>{var o;return null!==(o=null==n?void 0:n.suffix)&&void 0!==o?o:""})}findWithPredicate(n,o){var a;let u=this.findByMap.get(n);return u||(u=null!==(a=this.items.find(o))&&void 0!==a?a:null,this.findByMap.set(n,u)),null!=u?u:null}}return r.\u0275fac=function(n){return new(n||r)(he(V3))},r.\u0275prov=Ae({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const b0="print",H3={alias:b0,mediaQuery:b0,priority:1e3};let $3=(()=>{class r{constructor(n,o,a){this.breakpoints=n,this.layoutConfig=o,this._document=a,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new G3,this.deactivations=[]}withPrintQuery(n){return[...n,b0]}isPrintEvent(n){return n.mediaQuery.startsWith(b0)}get printAlias(){var n;return[...null!==(n=this.layoutConfig.printWithBreakpoints)&&void 0!==n?n:[]]}get printBreakPoints(){return this.printAlias.map(n=>this.breakpoints.findByAlias(n)).filter(n=>null!==n)}getEventBreakpoints({mediaQuery:n}){const o=this.breakpoints.findByQuery(n);return(o?[...this.printBreakPoints,o]:this.printBreakPoints).sort(Nx)}updateEvent(n){var o;let a=this.breakpoints.findByQuery(n.mediaQuery);return this.isPrintEvent(n)&&(a=this.getEventBreakpoints(n)[0],n.mediaQuery=null!==(o=null==a?void 0:a.mediaQuery)&&void 0!==o?o:""),AF(n,a)}registerBeforeAfterPrintHooks(n){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const o=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(n,this.getEventBreakpoints(new Lg(!0,b0))),n.updateStyles())},a=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(n),n.updateStyles())};this._document.defaultView.addEventListener("beforeprint",o),this._document.defaultView.addEventListener("afterprint",a),this.beforePrintEventListeners.push(o),this.afterPrintEventListeners.push(a)}interceptEvents(n){return o=>{this.isPrintEvent(o)?o.matches&&!this.isPrinting?(this.startPrinting(n,this.getEventBreakpoints(o)),n.updateStyles()):!o.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(n),n.updateStyles()):this.collectActivations(n,o)}}blockPropagation(){return n=>!(this.isPrinting||this.isPrintEvent(n))}startPrinting(n,o){this.isPrinting=!0,this.formerActivations=n.activatedBreakpoints,n.activatedBreakpoints=this.queue.addPrintBreakpoints(o)}stopPrinting(n){n.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(n,o){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!o.matches){const a=this.breakpoints.findByQuery(o.mediaQuery);if(a){const u=this.formerActivations&&this.formerActivations.includes(a),h=!this.formerActivations&&n.activatedBreakpoints.includes(a);(u||h)&&(this.deactivations.push(a),this.deactivations.sort(Nx))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(n=>this._document.defaultView.removeEventListener("beforeprint",n)),this.afterPrintEventListeners.forEach(n=>this._document.defaultView.removeEventListener("afterprint",n)))}}return r.\u0275fac=function(n){return new(n||r)(he(q5),he(tl),he(en))},r.\u0275prov=Ae({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();class G3{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(e){return e.push(H3),e.sort(Nx),e.forEach(n=>this.addBreakpoint(n)),this.printBreakpoints}addBreakpoint(e){e&&void 0===this.printBreakpoints.find(o=>o.mediaQuery===e.mediaQuery)&&(this.printBreakpoints=function U3(r){var e;return null!==(e=null==r?void 0:r.mediaQuery.startsWith(b0))&&void 0!==e&&e}(e)?[e,...this.printBreakpoints]:[...this.printBreakpoints,e])}clear(){this.printBreakpoints=[]}}let cr=(()=>{class r{constructor(n,o,a){this.matchMedia=n,this.breakpoints=o,this.hook=a,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new nn,this.observeActivations()}get activatedAlias(){var n,o;return null!==(o=null===(n=this.activatedBreakpoints[0])||void 0===n?void 0:n.alias)&&void 0!==o?o:""}set activatedBreakpoints(n){this._activatedBreakpoints=[...n]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(n){this._useFallbacks=n}onMediaChange(n){const o=this.findByQuery(n.mediaQuery);if(o){n=AF(n,o);const a=this.activatedBreakpoints.indexOf(o);n.matches&&-1===a?(this._activatedBreakpoints.push(o),this._activatedBreakpoints.sort(Nx),this.updateStyles()):!n.matches&&-1!==a&&(this._activatedBreakpoints.splice(a,1),this._activatedBreakpoints.sort(Nx),this.updateStyles())}}init(n,o,a,u,h=[]){FF(this.updateMap,n,o,a),FF(this.clearMap,n,o,u),this.buildElementKeyMap(n,o),this.watchExtraTriggers(n,o,h)}getValue(n,o,a){const u=this.elementMap.get(n);if(u){const h=void 0!==a?u.get(a):this.getActivatedValues(u,o);if(h)return h.get(o)}}hasValue(n,o){const a=this.elementMap.get(n);if(a){const u=this.getActivatedValues(a,o);if(u)return void 0!==u.get(o)||!1}return!1}setValue(n,o,a,u){var h;let g=this.elementMap.get(n);if(g){const x=(null!==(h=g.get(u))&&void 0!==h?h:new Map).set(o,a);g.set(u,x),this.elementMap.set(n,g)}else g=(new Map).set(u,(new Map).set(o,a)),this.elementMap.set(n,g);const v=this.getValue(n,o);void 0!==v&&this.updateElement(n,o,v)}trackValue(n,o){return this.subject.asObservable().pipe($v(a=>a.element===n&&a.key===o))}updateStyles(){this.elementMap.forEach((n,o)=>{const a=new Set(this.elementKeyMap.get(o));let u=this.getActivatedValues(n);u&&u.forEach((h,g)=>{this.updateElement(o,g,h),a.delete(g)}),a.forEach(h=>{if(u=this.getActivatedValues(n,h),u){const g=u.get(h);this.updateElement(o,h,g)}else this.clearElement(o,h)})})}clearElement(n,o){const a=this.clearMap.get(n);if(a){const u=a.get(o);u&&(u(),this.subject.next({element:n,key:o,value:""}))}}updateElement(n,o,a){const u=this.updateMap.get(n);if(u){const h=u.get(o);h&&(h(a),this.subject.next({element:n,key:o,value:a}))}}releaseElement(n){const o=this.watcherMap.get(n);o&&(o.forEach(u=>u.unsubscribe()),this.watcherMap.delete(n));const a=this.elementMap.get(n);a&&(a.forEach((u,h)=>a.delete(h)),this.elementMap.delete(n))}triggerUpdate(n,o){const a=this.elementMap.get(n);if(a){const u=this.getActivatedValues(a,o);u&&(o?this.updateElement(n,o,u.get(o)):u.forEach((h,g)=>this.updateElement(n,g,h)))}}buildElementKeyMap(n,o){let a=this.elementKeyMap.get(n);a||(a=new Set,this.elementKeyMap.set(n,a)),a.add(o)}watchExtraTriggers(n,o,a){if(a&&a.length){let u=this.watcherMap.get(n);if(u||(u=new Map,this.watcherMap.set(n,u)),!u.get(o)){const g=ya(...a).subscribe(()=>{const v=this.getValue(n,o);this.updateElement(n,o,v)});u.set(o,g)}}}findByQuery(n){return this.breakpoints.findByQuery(n)}getActivatedValues(n,o){for(let u=0;u<this.activatedBreakpoints.length;u++){const g=n.get(this.activatedBreakpoints[u].alias);if(g&&(void 0===o||g.has(o)&&null!=g.get(o)))return g}if(!this._useFallbacks)return;const a=n.get("");return void 0===o||a&&a.has(o)?a:void 0}observeActivations(){const n=this.breakpoints.items.map(o=>o.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(n)).pipe(function S3(r,e,n){return function(a){return a.lift(new E3(r,e,n))}}(this.hook.interceptEvents(this)),$v(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return r.\u0275fac=function(n){return new(n||r)(he(z5),he(q5),he($3))},r.\u0275prov=Ae({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function FF(r,e,n,o){var a;if(void 0!==o){const u=null!==(a=r.get(e))&&void 0!==a?a:new Map;u.set(n,o),r.set(e,u)}}let wr=(()=>{class r{constructor(n,o,a,u){this.elementRef=n,this.styleBuilder=o,this.styler=a,this.marshal=u,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new nn,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(n){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,n,this.marshal.activatedAlias)}ngOnChanges(n){Object.keys(n).forEach(o=>{if(-1!==this.inputs.indexOf(o)){const a=o.split(".").slice(1).join(".");this.setValue(n[o].currentValue,a)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(n=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),n)}addStyles(n,o){const a=this.styleBuilder,u=a.shouldCache;let h=this.styleCache.get(n);(!h||!u)&&(h=a.buildStyles(n,o),u&&this.styleCache.set(n,h)),this.mru=Object.assign({},h),this.applyStyleToElement(h),a.sideEffect(n,h,o)}clearStyles(){Object.keys(this.mru).forEach(n=>{this.mru[n]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(n,o=!1){if(n){const[a,u]=this.styler.getFlowDirection(n);if(!u&&o){const h=Tx(a);this.styler.applyStyleToElements(h,[n])}return a.trim()}return"row"}hasWrap(n){return this.styler.hasWrap(n)}applyStyleToElement(n,o,a=this.nativeElement){this.styler.applyStyleToElement(a,n,o)}setValue(n,o){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,n,o)}updateWithValue(n){this.currentValue!==n&&(this.addStyles(n),this.currentValue=n)}}return r.\u0275fac=function(n){return new(n||r)(oe(Ut),oe(jr),oe(Zn),oe(cr))},r.\u0275dir=je({type:r,features:[cl]}),r})(),UF=(()=>{class r{}return r.\u0275fac=function(n){return new(n||r)},r.\u0275mod=co({type:r}),r.\u0275inj=Hi({imports:[[F5]]}),r})(),h6=(()=>{class r extends jr{buildStyles(n,{display:o}){const a=Tx(n);return Object.assign(Object.assign({},a),{display:"none"===o?o:a.display})}}return r.\u0275fac=function(){let e;return function(o){return(e||(e=ht(r)))(o||r)}}(),r.\u0275prov=Ae({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const p6=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let g6=(()=>{class r extends wr{constructor(n,o,a,u,h){super(n,a,o,u),this._config=h,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(n){var o;const u=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=null!==(o=KF.get(u))&&void 0!==o?o:new Map,KF.set(u,this.styleCache),this.currentValue!==n&&(this.addStyles(n,{display:u}),this.currentValue=n)}}return r.\u0275fac=function(n){return new(n||r)(oe(Ut),oe(Zn),oe(h6),oe(cr),oe(tl))},r.\u0275dir=je({type:r,features:[rt]}),r})(),WF=(()=>{class r extends g6{constructor(){super(...arguments),this.inputs=p6}}return r.\u0275fac=function(){let e;return function(o){return(e||(e=ht(r)))(o||r)}}(),r.\u0275dir=je({type:r,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[rt]}),r})();const KF=new Map;let ZF=(()=>{class r{}return r.\u0275fac=function(n){return new(n||r)},r.\u0275mod=co({type:r}),r.\u0275inj=Hi({imports:[[F5,bL]]}),r})(),o3=(()=>{class r{}return r.\u0275fac=function(n){return new(n||r)},r.\u0275mod=co({type:r}),r.\u0275inj=Hi({imports:[[F5]]}),r})(),N4=(()=>{class r{constructor(n,o){da(o)&&!n&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(n,o=[]){return{ngModule:r,providers:n.serverLoaded?[{provide:tl,useValue:Object.assign(Object.assign({},j5),n)},{provide:B5,useValue:o,multi:!0},{provide:v0,useValue:!0}]:[{provide:tl,useValue:Object.assign(Object.assign({},j5),n)},{provide:B5,useValue:o,multi:!0}]}}}return r.\u0275fac=function(n){return new(n||r)(he(v0),he(Ts))},r.\u0275mod=co({type:r}),r.\u0275inj=Hi({imports:[[ZF,UF,o3],ZF,UF,o3]}),r})();function Un(r,e,n,o){return new(n||(n=Promise))(function(u,h){function g(R){try{x(o.next(R))}catch(L){h(L)}}function v(R){try{x(o.throw(R))}catch(L){h(L)}}function x(R){R.done?u(R.value):function a(u){return u instanceof n?u:new n(function(h){h(u)})}(R.value).then(g,v)}x((o=o.apply(r,e||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;var a3=Wn(5),sj=Wn(613),aj=Wn.n(sj);const yI=new Map,W5=[].map,lj=[].some,cj={}.hasOwnProperty,Yf="https://cdn.jsdelivr.net/npm/",uj=/^((?:@[^/@]+\/)?[^/@]+)(?:@([^/]+))?(?:\/(.*))?$/,dj=/^\d+\.\d+\.\d+(-[\w-.+]+)?$/,l3=/\.[^/]*$/,fj=["unpkg","jsdelivr","browser","main"];class _0 extends Error{constructor(e){super(e),this.name="RequireError"}}function c3(r){const e=uj.exec(r);return e&&{name:e[1],version:e[2],path:e[3]}}function u3(r){const e=`${Yf}${r.name}${r.version?`@${r.version}`:""}/package.json`;let n=yI.get(e);return n||yI.set(e,n=fetch(e).then(o=>{if(!o.ok)throw new _0("unable to load package.json");return o.redirected&&!yI.has(o.url)&&yI.set(o.url,n),o.json()})),n}function K5(r){const e=new Map;function n(h){if("string"!=typeof h)return h;let g=e.get(h);return g||(g=new Promise((v,x)=>Un(this,void 0,void 0,function*(){try{const R=yield fetch(h);if(!R.ok)throw new _0(`Unable to fetch module from ${h}`);const L=yield R.text(),F=[],U=function vj(r){function e(n,o,a){const u=arguments.length;u<2?(a=n,o=[]):u<3&&(a=o,o="string"==typeof n?[]:n),r.push(lj.call(o,yj)?h=>{const g={},v={exports:g};return Promise.all(W5.call(o,x=>"exports"==(x+="")?g:"module"===x?v:h(x))).then(x=>(a.apply(null,x),v.exports))}:h=>Promise.all(W5.call(o,h)).then(g=>"function"==typeof a?a.apply(null,g):a))}return e.amd={},e}(F);new Function("define",L)(U);const ie=F.shift();if("function"!=typeof ie)throw new _0(`Module did not call define() and cannot be loaded from ${h}`);const le=yield ie(o(h));v(le)}catch(R){console.error(R),x(R instanceof _0?R:new _0(`Error loading module from ${h}`))}})),e.set(h,g)),g}function o(h){return g=>Promise.resolve(r(g,h)).then(n)}function u(h){return arguments.length>1?Promise.all(W5.call(arguments,o(null))).then(gj):o(null)(h)}return u.alias=function a(h){return K5((g,v)=>g in h&&(v=null,"string"!=typeof(g=h[g]))?g:r(g,v))},u.resolve=r,u}function gj(r){const e={};for(const n of r)for(const o in n)cj.call(n,o)&&(null==n[o]?Object.defineProperty(e,o,{get:mj(n,o)}):e[o]=n[o]);return e}function mj(r,e){return()=>r[e]}function yj(r){return"exports"==(r+="")||"module"===r}K5(function pj(r,e){return Un(this,void 0,void 0,function*(){if(r.startsWith(Yf)&&(r=r.substring(Yf.length)),/^(\w+:)|\/\//i.test(r))return r;if(/^[.]{0,2}\//i.test(r))return new URL(r,null==e?location:e).href;if(!r.length||/^[\s._]/.test(r)||/\s$/.test(r))throw new _0("illegal name");const n=c3(r);if(!n)return`${Yf}${r}`;if(!n.version&&null!=e&&e.startsWith(Yf)){const a=yield u3(c3(e.substring(Yf.length)));n.version=a.dependencies&&a.dependencies[n.name]||a.peerDependencies&&a.peerDependencies[n.name]}if(n.path&&!l3.test(n.path)&&(n.path+=".js"),n.path&&n.version&&dj.test(n.version))return`${Yf}${n.name}@${n.version}/${n.path}`;const o=yield u3(n);return`${Yf}${o.name}@${o.version}/${n.path||function hj(r){for(const e of fj){const n=r[e];if("string"==typeof n)return l3.test(n)?n:`${n}.js`}}(o)||"index.js"}`})});const bj=["toolbar"],_j=["viz"];let wj=(()=>{class r{ngAfterViewInit(){return Un(this,void 0,void 0,function*(){yield this.render()})}render(){return Un(this,void 0,void 0,function*(){this.oldQLayout=JSON.parse(JSON.stringify(this.qLayout));const n={getLayout:()=>this.qLayout,selectHyperCubeCells:(...g)=>{},getEffectiveProperties:(...g)=>Un(this,void 0,void 0,function*(){return yield this.onVizMethod({name:"getEffectiveProperties",args:g})}),getHyperCubeReducedData:(...g)=>Un(this,void 0,void 0,function*(){return yield this.onVizMethod({name:"getHyperCubeReducedData",args:g})}),getHyperCubeData:(...g)=>Un(this,void 0,void 0,function*(){return yield this.onVizMethod({name:"getHyperCubeData",args:g})}),getHyperCubeStackData:(...g)=>Un(this,void 0,void 0,function*(){return yield this.onVizMethod({name:"getHyperCubeStackData",args:g})}),getHyperCubeContinuousData:(...g)=>Un(this,void 0,void 0,function*(){return yield this.onVizMethod({name:"getHyperCubeContinuousData",args:g})}),getStackedDataPages:(...g)=>this.qLayout.qHyperCube.qDataPages,getFullPropertyTree:()=>{},getHyperCubeTreeData:()=>{},beginSelections:(...g)=>{},selectHyperCubeContinuousRange:(...g)=>Un(this,void 0,void 0,function*(){var v;yield null===(v=this.onSelections)||void 0===v?void 0:v.call(this,{selections:g,method:"selectHyperCubeContinuousRange"})}),selectHyperCubeValues:(...g)=>Un(this,void 0,void 0,function*(){var v;yield null===(v=this.onSelections)||void 0===v?void 0:v.call(this,{selections:g,method:"selectHyperCubeValues"})}),selectListObjectValues:(...g)=>Un(this,void 0,void 0,function*(){var v;yield null===(v=this.onSelections)||void 0===v?void 0:v.call(this,{selections:g,method:"selectListObjectValues"})}),rangeSelectHyperCubeValues:(...g)=>Un(this,void 0,void 0,function*(){var v;yield null===(v=this.onSelections)||void 0===v?void 0:v.call(this,{selections:g,method:"rangeSelectHyperCubeValues"})}),resetMadeSelections:(...g)=>{},clearSelections:(...g)=>{},endSelections:(...g)=>{},removeListener:(...g)=>{},useKeyboard:(...g)=>{},on:(...g)=>{},getField:(...g)=>{},selectValues:(...g)=>{}};this.app=yield aj().fromGenericObjects([n]),this.app.getMeasure=g=>Un(this,void 0,void 0,function*(){return{getMeasure:()=>Un(this,void 0,void 0,function*(){return yield this.onGetMeasure({measureId:g})})}});const o=this.app.getObject;this.app.getObject=g=>Un(this,void 0,void 0,function*(){return g===this.qLayout.qInfo.qId?yield o(this.qLayout.qInfo.qId):{getLayout:()=>Un(this,void 0,void 0,function*(){return yield this.onGetObject({objectId:g})})}}),this.app.getField=g=>Un(this,void 0,void 0,function*(){return{selectValues:(v,x,R)=>Un(this,void 0,void 0,function*(){return yield this.onSelectFieldValues({fieldId:g,arr:v,toggle:x,softlock:R})}),clear:()=>Un(this,void 0,void 0,function*(){return yield this.onClearField({fieldId:g})}),selectAll:v=>Un(this,void 0,void 0,function*(){return yield this.onFieldSelectAll({fieldId:g,softlock:v})}),selectPossible:v=>Un(this,void 0,void 0,function*(){return yield this.onFieldSelectPossible({fieldId:g,softlock:v})})}}),this.app.getFieldDescription=g=>Un(this,void 0,void 0,function*(){return this.onGetFieldDescription({fieldId:g})});const a=K5(g=>this.nebulaPackagesUrl?`${this.nebulaPackagesUrl}/${g}`:`https://unpkg.com/@nebula.js/${g}`).alias({"@nebula.js/stardust":a3}),u=[["sn-action-button@1.38.1","action-button"],["sn-bar-chart","barchart"],["sn-bullet-chart","bullet-chart"],["sn-combo-chart","combo-chart"],["sn-funnel-chart","funnel-chart"],["sn-grid-chart","sn-grid-chart"],["sn-kpi","kpi"],["sn-line-chart","line-chart"],["sn-mekko-chart","mekko"],["sn-org-chart","org"],["sn-pie-chart","piechart"],["sn-sankey-chart","sankey"],["sn-table","table"],["sn-video-player","video-player"],["sn-scatter-plot","scatterplot"],["sn-treemap","treemap"],["nebula-date-range-picker","qlik-date-picker"],["sn-pivot-table","pivot-table"],["sn-map","map"],["sn-text","sn-text"]].map(g=>({name:g[1],load:()=>a(g[0])}));this.n=a3.embed(this.app,{types:u,themes:[{id:"customTheme",load:()=>Un(this,void 0,void 0,function*(){return this.theme})}],context:{theme:"customTheme"},flags:{IM_1869_HIDE_DIM_MEA_LINE:!0,CLIENT_IM_3365:!0}}),this.qLayout&&(this.viz=yield this.n.render({element:this.vizEl.nativeElement,id:this.qLayout.qInfo.qId}))})}destroyApp(){var n;null===(n=document.querySelector(`div[data-app-id='${this.app.id}']`))||void 0===n||n.remove()}ngOnDestroy(){this.destroyApp()}ngOnChanges(n){return Un(this,void 0,void 0,function*(){this.viz&&JSON.stringify(this.qLayout)!==JSON.stringify(this.oldQLayout)&&(this.viz.destroy(),this.destroyApp(),yield this.render())})}}return r.\u0275fac=function(n){return new(n||r)},r.\u0275cmp=il({type:r,selectors:[["drayman-nebula-internal"]],viewQuery:function(n,o){if(1&n&&(F_(bj,5),F_(_j,5)),2&n){let a;Is(a=kf())&&(o.toolbarEl=a.first),Is(a=kf())&&(o.vizEl=a.first)}},inputs:{qLayout:"qLayout",theme:"theme",onSelections:"onSelections",onVizMethod:"onVizMethod",onGetMeasure:"onGetMeasure",onGetObject:"onGetObject",onSelectFieldValues:"onSelectFieldValues",onFieldSelectPossible:"onFieldSelectPossible",onFieldSelectAll:"onFieldSelectAll",onGetFieldDescription:"onGetFieldDescription",onClearField:"onClearField",nebulaPackagesUrl:"nebulaPackagesUrl"},features:[cl],decls:5,vars:0,consts:[["fxLayout","column",1,"nebula-container"],["toolbar",""],[1,"viz"],["viz",""]],template:function(n,o){1&n&&(Iy(0,"div",0),rf(1,"div",null,1)(3,"div",2,3),gu())},directives:[WF],styles:[".nebula-container[_ngcontent-%COMP%]{width:100%;margin:0;height:100%;min-width:100%;min-height:100%}.viz[_ngcontent-%COMP%]{flex:1}"]}),r})(),xj=(()=>{class r{constructor(n){this.injector=n}ngDoBootstrap(){const n=function YA(r,e){const n=function JL(r,e){return e.get(Cu).resolveComponentFactory(r).inputs}(r,e.injector),o=e.strategyFactory||new lx(r,e.injector),a=function WA(r){const e={};return r.forEach(({propName:n,templateName:o})=>{e[function GA(r){return r.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}(o)]=n}),e}(n);class u extends QA{constructor(g){super(),this.injector=g}get ngElementStrategy(){if(!this._ngElementStrategy){const g=this._ngElementStrategy=o.create(this.injector||e.injector);n.forEach(({propName:v})=>{if(!this.hasOwnProperty(v))return;const x=this[v];delete this[v],g.setInputValue(v,x)})}return this._ngElementStrategy}attributeChangedCallback(g,v,x,R){this.ngElementStrategy.setInputValue(a[g],x)}connectedCallback(){let g=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),g=!0),this.ngElementStrategy.connect(this),g||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(g=>{const v=new CustomEvent(g.name,{detail:g.value});this.dispatchEvent(v)})}}return u.observedAttributes=Object.keys(a),n.forEach(({propName:h})=>{Object.defineProperty(u.prototype,h,{get(){return this.ngElementStrategy.getInputValue(h)},set(g){this.ngElementStrategy.setInputValue(h,g)},configurable:!0,enumerable:!0})}),u}(wj,{injector:this.injector});customElements.define("drayman-nebula",n)}}return r.\u0275fac=function(n){return new(n||r)(he(si))},r.\u0275mod=co({type:r}),r.\u0275inj=Hi({providers:[{provide:_g,useClass:hI}],imports:[[Fw,N5,N4]]}),r})();(function $2(){$D=!1})(),sA().bootstrapModule(xj).catch(r=>console.error(r))})()})();